From 7f3c47b1a443411be60e6bfc8bda81dc19e1c925 Mon Sep 17 00:00:00 2001 From: David Dias Horta Date: Mon, 14 Oct 2024 17:34:43 +0200 Subject: [PATCH] ui: build update --- ...o6eMAf.js => DegreeProgrammes-DtRCSLRH.js} | 2 +- ...eView-Dw3dayNI.js => HomeView-Dp_Mccdw.js} | 2 +- ....js => LoadingWithResultModal-B5hmnBBo.js} | 2 +- ...rview-BmrLpnbu.js => Overview-C6eQvzhu.js} | 182 +++++++++--------- ui/dist/assets/Overview-TV7ym95m.css | 1 - ui/dist/assets/Overview-mEpTX5ao.css | 1 + ...-BrnJwnT_.js => announcements-DXPjmohv.js} | 2 +- ...ssMode-DQruK-oB.js => cssMode-gfx9-M_K.js} | 2 +- ...r2-B8Rt5LUV.js => freemarker2-CkuUKxEA.js} | 2 +- ...ars-ByMWt90J.js => handlebars-DFwLcN89.js} | 2 +- .../{html-Dt76PXei.js => html-b84dk0tF.js} | 2 +- ...lMode-CO67Uu-6.js => htmlMode-83odpPnD.js} | 2 +- .../{index-7TvH9hL2.js => index-B1k2z2W3.js} | 2 +- .../{index-BUNPVbzS.js => index-Cn9EX2GC.js} | 14 +- .../{index-mddo8Vsu.js => index-DpfM9Q-q.js} | 4 +- ...ipt-C94guP2z.js => javascript-CdS9kcBx.js} | 2 +- ...nMode-CV1B7G11.js => jsonMode-7AgGqp70.js} | 2 +- ...{liquid-CWEjMak3.js => liquid-C9UEz-zQ.js} | 2 +- .../{mdx-DW_NZpvZ.js => mdx-CTrDZr5s.js} | 2 +- ...{python-CwXslKsP.js => python-6SDGJmgD.js} | 2 +- .../{razor-BSbe7fwy.js => razor-CnHig80X.js} | 2 +- ...{tsMode-CeQsB0gm.js => tsMode-Bx98Lcxh.js} | 2 +- ...ipt-7nKRn4jz.js => typescript-At7g-sU_.js} | 2 +- .../{xml-DpPQ_Q24.js => xml-Bho0kI7b.js} | 2 +- .../{yaml-B_Jizig3.js => yaml-Nqp_BVLm.js} | 2 +- ui/dist/index.html | 2 +- 26 files changed, 122 insertions(+), 122 deletions(-) rename ui/dist/assets/{DegreeProgrammes-D4o6eMAf.js => DegreeProgrammes-DtRCSLRH.js} (96%) rename ui/dist/assets/{HomeView-Dw3dayNI.js => HomeView-Dp_Mccdw.js} (93%) rename ui/dist/assets/{LoadingWithResultModal-C_NNHIwF.js => LoadingWithResultModal-B5hmnBBo.js} (95%) rename ui/dist/assets/{Overview-BmrLpnbu.js => Overview-C6eQvzhu.js} (66%) delete mode 100644 ui/dist/assets/Overview-TV7ym95m.css create mode 100644 ui/dist/assets/Overview-mEpTX5ao.css rename ui/dist/assets/{announcements-BrnJwnT_.js => announcements-DXPjmohv.js} (98%) rename ui/dist/assets/{cssMode-DQruK-oB.js => cssMode-gfx9-M_K.js} (99%) rename ui/dist/assets/{freemarker2-B8Rt5LUV.js => freemarker2-CkuUKxEA.js} (98%) rename ui/dist/assets/{handlebars-ByMWt90J.js => handlebars-DFwLcN89.js} (97%) rename ui/dist/assets/{html-Dt76PXei.js => html-b84dk0tF.js} (96%) rename ui/dist/assets/{htmlMode-CO67Uu-6.js => htmlMode-83odpPnD.js} (99%) rename ui/dist/assets/{index-7TvH9hL2.js => index-B1k2z2W3.js} (93%) rename ui/dist/assets/{index-BUNPVbzS.js => index-Cn9EX2GC.js} (99%) rename ui/dist/assets/{index-mddo8Vsu.js => index-DpfM9Q-q.js} (99%) rename ui/dist/assets/{javascript-C94guP2z.js => javascript-CdS9kcBx.js} (81%) rename ui/dist/assets/{jsonMode-CV1B7G11.js => jsonMode-7AgGqp70.js} (99%) rename ui/dist/assets/{liquid-CWEjMak3.js => liquid-C9UEz-zQ.js} (95%) rename ui/dist/assets/{mdx-DW_NZpvZ.js => mdx-CTrDZr5s.js} (96%) rename ui/dist/assets/{python-CwXslKsP.js => python-6SDGJmgD.js} (95%) rename ui/dist/assets/{razor-BSbe7fwy.js => razor-CnHig80X.js} (97%) rename ui/dist/assets/{tsMode-CeQsB0gm.js => tsMode-Bx98Lcxh.js} (99%) rename ui/dist/assets/{typescript-7nKRn4jz.js => typescript-At7g-sU_.js} (96%) rename ui/dist/assets/{xml-DpPQ_Q24.js => xml-Bho0kI7b.js} (93%) rename ui/dist/assets/{yaml-B_Jizig3.js => yaml-Nqp_BVLm.js} (95%) diff --git a/ui/dist/assets/DegreeProgrammes-D4o6eMAf.js b/ui/dist/assets/DegreeProgrammes-DtRCSLRH.js similarity index 96% rename from ui/dist/assets/DegreeProgrammes-D4o6eMAf.js rename to ui/dist/assets/DegreeProgrammes-DtRCSLRH.js index f73a926..26fd6df 100644 --- a/ui/dist/assets/DegreeProgrammes-D4o6eMAf.js +++ b/ui/dist/assets/DegreeProgrammes-DtRCSLRH.js @@ -1 +1 @@ -import{f as D,g as h,N as $,o as i,c as r,A as x,a as e,O as _,P as V,_ as k,j as S,h as U,e as g,F as b,l as C,k as P,v as I,b as c,w as p,t as v,p as N,d as B}from"./index-mddo8Vsu.js";import{a as w}from"./announcements-BrnJwnT_.js";const E={key:1},O=["placeholder","value"],T=D({__name:"EditableText",props:{modelValue:String,placeholder:String},setup(o){const l=h(!1),u=h(null);return $(()=>{var n;l.value&&((n=u.value)==null||n.focus())}),(n,t)=>(i(),r("div",{class:"editable-text",tabindex:"0",onKeyup:t[4]||(t[4]=_(V(d=>l.value=!l.value,["stop"]),["enter"])),onDblclick:t[5]||(t[5]=d=>l.value=!0)},[!l.value&&(o.modelValue||!o.placeholder)?x(n.$slots,"default",{key:0},void 0,!0):(i(),r("div",E,[e("input",{type:"text",ref_key:"input",ref:u,placeholder:o.placeholder,value:o.modelValue,onChange:t[0]||(t[0]=d=>n.$emit("update:modelValue",d.target.value)),onBlur:t[1]||(t[1]=d=>l.value=!1),onKeyup:[t[2]||(t[2]=_(V(d=>l.value=!1,["stop"]),["enter"])),t[3]||(t[3]=_(V(d=>l.value=!1,["stop"]),["esc"]))]},null,40,O)]))],32))}}),m=k(T,[["__scopeId","data-v-753953a3"]]),f=o=>(N("data-v-7e93d191"),o=o(),B(),o),A=f(()=>e("h1",null,"Degree Programmes",-1)),K={class:"actions"},M=["disabled"],F=f(()=>e("span",{class:"material-symbols-rounded"},"save",-1)),J={class:"programmes"},j=f(()=>e("div",{class:"programme"},[e("span",{class:"swatch"}),e("p",null,"ID"),e("span",null,"Category"),e("span",null,"Channel"),e("span",null,"Role"),e("span",{class:"delete"})],-1)),L={class:"swatch-wrapper"},R=["onUpdate:modelValue"],q=["onClick"],z=f(()=>e("span",{class:"material-symbols-rounded"},"add",-1)),G=D({__name:"DegreeProgrammes",setup(o){const l=h([]),u=h(""),n=async()=>{l.value=await w.db.getDegreeProgrammes(),u.value=JSON.stringify(l.value)},t=async()=>{await w.db.updateDegreeProgrammes(l.value),await n()};S(n);const d=U(()=>JSON.stringify(l.value)!==u.value);return(H,y)=>(i(),r(b,null,[A,e("div",K,[e("button",{onClick:t,disabled:!d.value},[F,g(" Save ")],8,M)]),e("div",J,[j,(i(!0),r(b,null,C(l.value,a=>(i(),r("div",{key:a.id,class:"programme"},[e("div",L,[P(e("input",{type:"color",class:"swatch","onUpdate:modelValue":s=>a.colour=s},null,8,R),[[I,a.colour]])]),c(m,{placeholder:"'Anlassnummer' from students db",modelValue:a.id,"onUpdate:modelValue":s=>a.id=s},{default:p(()=>[e("p",null,v(a.id),1)]),_:2},1032,["modelValue","onUpdate:modelValue"]),c(m,{placeholder:"Discord channel category",modelValue:a.category,"onUpdate:modelValue":s=>a.category=s},{default:p(()=>[e("span",null,v(a.category),1)]),_:2},1032,["modelValue","onUpdate:modelValue"]),c(m,{placeholder:"Discord channel name",modelValue:a.channel,"onUpdate:modelValue":s=>a.channel=s},{default:p(()=>[e("span",null,v(a.channel),1)]),_:2},1032,["modelValue","onUpdate:modelValue"]),c(m,{placeholder:"Discord role name",modelValue:a.role,"onUpdate:modelValue":s=>a.role=s},{default:p(()=>[e("span",null,v(a.role),1)]),_:2},1032,["modelValue","onUpdate:modelValue"]),e("span",{onClick:s=>l.value.splice(l.value.indexOf(a),1),class:"delete material-symbols-rounded"}," delete ",8,q)]))),128)),e("div",{class:"add-programme",onClick:y[0]||(y[0]=a=>l.value.push({id:"",category:"",channel:"",role:"",colour:"#000000"}))},[z,g(" Add Programme ")])])],64))}}),X=k(G,[["__scopeId","data-v-7e93d191"]]);export{X as default}; +import{f as D,g as h,N as $,o as i,c as r,A as x,a as e,O as _,P as V,_ as k,j as S,h as U,e as g,F as b,l as C,k as P,v as I,b as c,w as p,t as v,p as N,d as B}from"./index-DpfM9Q-q.js";import{a as w}from"./announcements-DXPjmohv.js";const E={key:1},O=["placeholder","value"],T=D({__name:"EditableText",props:{modelValue:String,placeholder:String},setup(o){const l=h(!1),u=h(null);return $(()=>{var n;l.value&&((n=u.value)==null||n.focus())}),(n,t)=>(i(),r("div",{class:"editable-text",tabindex:"0",onKeyup:t[4]||(t[4]=_(V(d=>l.value=!l.value,["stop"]),["enter"])),onDblclick:t[5]||(t[5]=d=>l.value=!0)},[!l.value&&(o.modelValue||!o.placeholder)?x(n.$slots,"default",{key:0},void 0,!0):(i(),r("div",E,[e("input",{type:"text",ref_key:"input",ref:u,placeholder:o.placeholder,value:o.modelValue,onChange:t[0]||(t[0]=d=>n.$emit("update:modelValue",d.target.value)),onBlur:t[1]||(t[1]=d=>l.value=!1),onKeyup:[t[2]||(t[2]=_(V(d=>l.value=!1,["stop"]),["enter"])),t[3]||(t[3]=_(V(d=>l.value=!1,["stop"]),["esc"]))]},null,40,O)]))],32))}}),m=k(T,[["__scopeId","data-v-753953a3"]]),f=o=>(N("data-v-7e93d191"),o=o(),B(),o),A=f(()=>e("h1",null,"Degree Programmes",-1)),K={class:"actions"},M=["disabled"],F=f(()=>e("span",{class:"material-symbols-rounded"},"save",-1)),J={class:"programmes"},j=f(()=>e("div",{class:"programme"},[e("span",{class:"swatch"}),e("p",null,"ID"),e("span",null,"Category"),e("span",null,"Channel"),e("span",null,"Role"),e("span",{class:"delete"})],-1)),L={class:"swatch-wrapper"},R=["onUpdate:modelValue"],q=["onClick"],z=f(()=>e("span",{class:"material-symbols-rounded"},"add",-1)),G=D({__name:"DegreeProgrammes",setup(o){const l=h([]),u=h(""),n=async()=>{l.value=await w.db.getDegreeProgrammes(),u.value=JSON.stringify(l.value)},t=async()=>{await w.db.updateDegreeProgrammes(l.value),await n()};S(n);const d=U(()=>JSON.stringify(l.value)!==u.value);return(H,y)=>(i(),r(b,null,[A,e("div",K,[e("button",{onClick:t,disabled:!d.value},[F,g(" Save ")],8,M)]),e("div",J,[j,(i(!0),r(b,null,C(l.value,a=>(i(),r("div",{key:a.id,class:"programme"},[e("div",L,[P(e("input",{type:"color",class:"swatch","onUpdate:modelValue":s=>a.colour=s},null,8,R),[[I,a.colour]])]),c(m,{placeholder:"'Anlassnummer' from students db",modelValue:a.id,"onUpdate:modelValue":s=>a.id=s},{default:p(()=>[e("p",null,v(a.id),1)]),_:2},1032,["modelValue","onUpdate:modelValue"]),c(m,{placeholder:"Discord channel category",modelValue:a.category,"onUpdate:modelValue":s=>a.category=s},{default:p(()=>[e("span",null,v(a.category),1)]),_:2},1032,["modelValue","onUpdate:modelValue"]),c(m,{placeholder:"Discord channel name",modelValue:a.channel,"onUpdate:modelValue":s=>a.channel=s},{default:p(()=>[e("span",null,v(a.channel),1)]),_:2},1032,["modelValue","onUpdate:modelValue"]),c(m,{placeholder:"Discord role name",modelValue:a.role,"onUpdate:modelValue":s=>a.role=s},{default:p(()=>[e("span",null,v(a.role),1)]),_:2},1032,["modelValue","onUpdate:modelValue"]),e("span",{onClick:s=>l.value.splice(l.value.indexOf(a),1),class:"delete material-symbols-rounded"}," delete ",8,q)]))),128)),e("div",{class:"add-programme",onClick:y[0]||(y[0]=a=>l.value.push({id:"",category:"",channel:"",role:"",colour:"#000000"}))},[z,g(" Add Programme ")])])],64))}}),X=k(G,[["__scopeId","data-v-7e93d191"]]);export{X as default}; diff --git a/ui/dist/assets/HomeView-Dw3dayNI.js b/ui/dist/assets/HomeView-Dp_Mccdw.js similarity index 93% rename from ui/dist/assets/HomeView-Dw3dayNI.js rename to ui/dist/assets/HomeView-Dp_Mccdw.js index ae80878..aa10681 100644 --- a/ui/dist/assets/HomeView-Dw3dayNI.js +++ b/ui/dist/assets/HomeView-Dp_Mccdw.js @@ -1 +1 @@ -import{_ as d,r as l,o as r,c as i,a as s,b as n,w as a,p as _,d as u,e as c}from"./index-mddo8Vsu.js";const p={},o=e=>(_("data-v-4f1e7846"),e=e(),u(),e),m={class:"section"},h={class:"info"},f=o(()=>s("h1",null,"Announcements",-1)),v=o(()=>s("button",null,[s("span",{class:"material-symbols-rounded"},"arrow_forward"),c(" Go to Announcements ")],-1)),b=o(()=>s("div",{class:"icon"},[s("span",{class:"material-symbols-rounded"},"campaign")],-1)),x={class:"section"},w={class:"info"},k=o(()=>s("h1",null,"Discord User Management",-1)),y=o(()=>s("button",null,[s("span",{class:"material-symbols-rounded"},"explore"),c(" Explore ")],-1)),I=o(()=>s("div",{class:"icon"},[s("span",{class:"material-symbols-rounded"},"group")],-1));function V(e,g){const t=l("router-link");return r(),i("main",null,[s("div",m,[s("div",h,[f,n(t,{to:"/announcements"},{default:a(()=>[v]),_:1})]),b]),s("div",x,[s("div",w,[k,n(t,{to:"/discord/users"},{default:a(()=>[y]),_:1})]),I])])}const N=d(p,[["render",V],["__scopeId","data-v-4f1e7846"]]);export{N as default}; +import{_ as d,r as l,o as r,c as i,a as s,b as n,w as a,p as _,d as u,e as c}from"./index-DpfM9Q-q.js";const p={},o=e=>(_("data-v-4f1e7846"),e=e(),u(),e),m={class:"section"},h={class:"info"},f=o(()=>s("h1",null,"Announcements",-1)),v=o(()=>s("button",null,[s("span",{class:"material-symbols-rounded"},"arrow_forward"),c(" Go to Announcements ")],-1)),b=o(()=>s("div",{class:"icon"},[s("span",{class:"material-symbols-rounded"},"campaign")],-1)),x={class:"section"},w={class:"info"},k=o(()=>s("h1",null,"Discord User Management",-1)),y=o(()=>s("button",null,[s("span",{class:"material-symbols-rounded"},"explore"),c(" Explore ")],-1)),I=o(()=>s("div",{class:"icon"},[s("span",{class:"material-symbols-rounded"},"group")],-1));function V(e,g){const t=l("router-link");return r(),i("main",null,[s("div",m,[s("div",h,[f,n(t,{to:"/announcements"},{default:a(()=>[v]),_:1})]),b]),s("div",x,[s("div",w,[k,n(t,{to:"/discord/users"},{default:a(()=>[y]),_:1})]),I])])}const N=d(p,[["render",V],["__scopeId","data-v-4f1e7846"]]);export{N as default}; diff --git a/ui/dist/assets/LoadingWithResultModal-C_NNHIwF.js b/ui/dist/assets/LoadingWithResultModal-B5hmnBBo.js similarity index 95% rename from ui/dist/assets/LoadingWithResultModal-C_NNHIwF.js rename to ui/dist/assets/LoadingWithResultModal-B5hmnBBo.js index 2ac99ff..9dc3f34 100644 --- a/ui/dist/assets/LoadingWithResultModal-C_NNHIwF.js +++ b/ui/dist/assets/LoadingWithResultModal-B5hmnBBo.js @@ -1 +1 @@ -import{f as h,g as n,i as V,o as t,c as d,a as _,A as k,_ as m,x as v,w as M,m as i,t as w}from"./index-mddo8Vsu.js";const x=h({__name:"Modal",props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(u,{emit:c}){const l=u,a=c,s=n(null),o=()=>{var e;(e=s.value)==null||e.close(),a("update:modelValue",!1)},p=()=>{var e;(e=s.value)==null||e.showModal(),a("update:modelValue",!0)};return V(()=>l.modelValue,e=>{e?p():o()}),(e,g)=>(t(),d("dialog",{class:"modal",ref_key:"modal",ref:s,onClose:o},[_("span",{onClick:o,class:"material-symbols-rounded close"},"close"),k(e.$slots,"default",{},void 0,!0)],544))}}),L=m(x,[["__scopeId","data-v-25558f2c"]]),S={},B={class:"loader"};function C(u,c){return t(),d("div",B)}const E=m(S,[["render",C],["__scopeId","data-v-534af8c0"]]),$={class:"content"},b={key:1,class:"error material-symbols-rounded"},I={key:2,class:"success material-symbols-rounded"},N=h({__name:"LoadingWithResultModal",setup(u,{expose:c}){const l=n(!1),a=n(!1),s=n(""),o=n(!1);return c({onSuccess:r=>{l.value=!0,s.value=r??""},onError:r=>{a.value=!0,s.value=r||"Something went wrong!"},onLoading:()=>{l.value=!1,a.value=!1,s.value="",o.value=!0}}),(r,f)=>(t(),v(L,{modelValue:o.value,"onUpdate:modelValue":f[0]||(f[0]=y=>o.value=y)},{default:M(()=>[_("div",$,[!l.value&&!a.value?(t(),v(E,{key:0})):i("",!0),a.value?(t(),d("span",b," error ")):i("",!0),l.value?(t(),d("span",I," check_circle ")):i("",!0),_("h3",null,w(s.value),1)])]),_:1},8,["modelValue"]))}}),W=m(N,[["__scopeId","data-v-ed55c407"]]);export{W as L,L as M,E as a}; +import{f as h,g as n,i as V,o as t,c as d,a as _,A as k,_ as m,x as v,w as M,m as i,t as w}from"./index-DpfM9Q-q.js";const x=h({__name:"Modal",props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(u,{emit:c}){const l=u,a=c,s=n(null),o=()=>{var e;(e=s.value)==null||e.close(),a("update:modelValue",!1)},p=()=>{var e;(e=s.value)==null||e.showModal(),a("update:modelValue",!0)};return V(()=>l.modelValue,e=>{e?p():o()}),(e,g)=>(t(),d("dialog",{class:"modal",ref_key:"modal",ref:s,onClose:o},[_("span",{onClick:o,class:"material-symbols-rounded close"},"close"),k(e.$slots,"default",{},void 0,!0)],544))}}),L=m(x,[["__scopeId","data-v-25558f2c"]]),S={},B={class:"loader"};function C(u,c){return t(),d("div",B)}const E=m(S,[["render",C],["__scopeId","data-v-534af8c0"]]),$={class:"content"},b={key:1,class:"error material-symbols-rounded"},I={key:2,class:"success material-symbols-rounded"},N=h({__name:"LoadingWithResultModal",setup(u,{expose:c}){const l=n(!1),a=n(!1),s=n(""),o=n(!1);return c({onSuccess:r=>{l.value=!0,s.value=r??""},onError:r=>{a.value=!0,s.value=r||"Something went wrong!"},onLoading:()=>{l.value=!1,a.value=!1,s.value="",o.value=!0}}),(r,f)=>(t(),v(L,{modelValue:o.value,"onUpdate:modelValue":f[0]||(f[0]=y=>o.value=y)},{default:M(()=>[_("div",$,[!l.value&&!a.value?(t(),v(E,{key:0})):i("",!0),a.value?(t(),d("span",b," error ")):i("",!0),l.value?(t(),d("span",I," check_circle ")):i("",!0),_("h3",null,w(s.value),1)])]),_:1},8,["modelValue"]))}}),W=m(N,[["__scopeId","data-v-ed55c407"]]);export{W as L,L as M,E as a}; diff --git a/ui/dist/assets/Overview-BmrLpnbu.js b/ui/dist/assets/Overview-C6eQvzhu.js similarity index 66% rename from ui/dist/assets/Overview-BmrLpnbu.js rename to ui/dist/assets/Overview-C6eQvzhu.js index b9edc74..9095e7b 100644 --- a/ui/dist/assets/Overview-BmrLpnbu.js +++ b/ui/dist/assets/Overview-C6eQvzhu.js @@ -1,4 +1,4 @@ -import{f as Xft,u as Qft,g as eB,h as IK,i as v5e,j as Yft,r as Zft,o as fD,c as pD,a as ru,k as Kft,v as ept,e as FK,F as tpt,l as rpt,m as b5e,t as dD,b as npt,w as ipt,p as spt,d as apt,_ as opt}from"./index-mddo8Vsu.js";import{u as cpt,a as lpt}from"./announcements-BrnJwnT_.js";import{r as Pk,c as S5e}from"./___vite-browser-external_commonjs-proxy-D5Dao81r.js";const upt=(L0,M0)=>{var ub=!1;return function(){ub||(L0(),ub=!0,setTimeout(function(){ub=!1},M0))}},_pt=(L0,M0)=>{var ub;return function(){clearTimeout(ub),ub=setTimeout(()=>{L0()},M0)}};function T5e(L0){throw new Error('Could not dynamically require "'+L0+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var fpt={exports:{}};(function(L0){var M0={};/*! ***************************************************************************** +import{f as Xft,u as Qft,g as Yj,h as n0e,i as v5e,j as Yft,r as Zft,o as _D,c as fD,a as ru,k as Kft,v as ept,e as AK,F as tpt,l as rpt,m as b5e,t as pD,b as npt,w as ipt,p as spt,d as apt,_ as opt}from"./index-DpfM9Q-q.js";import{u as cpt,a as lpt}from"./announcements-DXPjmohv.js";import{r as Ek,c as S5e}from"./___vite-browser-external_commonjs-proxy-D5Dao81r.js";const upt=(L0,M0)=>{var ub=!1;return function(){ub||(L0(),ub=!0,setTimeout(function(){ub=!1},M0))}},_pt=(L0,M0)=>{var ub;return function(){clearTimeout(ub),ub=setTimeout(()=>{L0()},M0)}};function T5e(L0){throw new Error('Could not dynamically require "'+L0+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var fpt={exports:{}};(function(L0){var M0={};/*! ***************************************************************************** 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 @@ -11,43 +11,43 @@ import{f as Xft,u as Qft,g as eB,h as IK,i as v5e,j as Yft,r as Zft,o as fD,c as See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. - ***************************************************************************** */var ub=(()=>{var XI=Object.defineProperty,_b=Object.getOwnPropertyNames,wt=(e,t)=>function(){return e&&(t=(0,e[_b(e)[0]])(e=0)),t},tB=(e,t)=>function(){return t||(0,e[_b(e)[0]])((t={exports:{}}).exports,t),t.exports},vl=(e,t)=>{for(var n in t)XI(e,n,{get:t[n],enumerable:!0})},R0,yf,R4,QI=wt({"src/compiler/corePublic.ts"(){R0="5.4",yf="5.4.5",R4=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(R4||{})}});function gr(e){return e?e.length:0}function er(e,t){if(e)for(let n=0;n=0;n--){const i=t(e[n],n);if(i)return i}}function $o(e,t){if(e!==void 0)for(let n=0;n=0;i--){const s=e[i];if(t(s,i))return s}}function vc(e,t,n){if(e===void 0)return-1;for(let i=n??0;i=0;i--)if(t(e[i],i))return i;return-1}function u0e(e,t){for(let n=0;nn(i,t[s]))}function LK(e,t,n){for(let i=n||0;i{const o=t(s,i);if(o!==void 0){const[c,u]=o;c!==void 0&&u!==void 0&&n.set(c,u)}}),n}function z4(e,t,n){if(e.has(t))return e.get(t);const i=n();return e.set(t,i),i}function _1(e,t){return e.has(t)?!1:(e.add(t),!0)}function*jK(e){yield e}function sB(e,t,n){let i;if(e){i=[];const s=e.length;let o,c,u=0,f=0;for(;u{const[o,c]=t(s,i);n.set(o,c)}),n}function ct(e,t){if(e)if(t){for(const n of e)if(t(n))return!0}else return e.length>0;return!1}function aB(e,t,n){let i;for(let s=0;se[c])}function I5e(e,t){const n=[];for(const i of e)zf(n,i,t);return n}function Nv(e,t,n){return e.length===0?[]:e.length===1?e.slice():n?N5e(e,t,n):I5e(e,t)}function F5e(e,t){if(e.length===0)return Ve;let n=e[0];const i=[n];for(let s=1;s0&&(s&=-2),s&2&&i(o,f)>0&&(s&=-3),o=f}return s}function _d(e,t,n=Vh){if(!e||!t)return e===t;if(e.length!==t.length)return!1;for(let i=0;i0&&E.assertGreaterThanOrEqual(n(t[o],t[o-1]),0);t:for(const c=s;sc&&E.assertGreaterThanOrEqual(n(e[s],e[s-1]),0),n(t[o],e[s])){case-1:i.push(t[o]);continue e;case 0:continue e;case 1:continue t}}return i}function _r(e,t){return t===void 0?e:e===void 0?[t]:(e.push(t),e)}function Dk(e,t){return e===void 0?t:t===void 0?e:ts(e)?ts(t)?es(e,t):_r(e,t):ts(t)?_r(t,e):[e,t]}function zK(e,t){return t<0?e.length+t:t}function Nn(e,t,n,i){if(t===void 0||t.length===0)return e;if(e===void 0)return t.slice(n,i);n=n===void 0?0:zK(t,n),i=i===void 0?t.length:zK(t,i);for(let s=n;sn(e[i],e[s])||wo(i,s))}function fb(e,t){return e.length===0?e:e.slice().sort(t)}function*cB(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function Bh(e,t){const n=hD(e);return _0e(e,n,t),n.map(i=>e[i])}function lB(e,t,n,i){for(;n>1),f=n(e[u],u);switch(i(f,t)){case-1:o=u+1;break;case 0:return u;case 1:c=u-1;break}}return~o}function Du(e,t,n,i,s){if(e&&e.length>0){const o=e.length;if(o>0){let c=i===void 0||i<0?0:i;const u=s===void 0||c+s>o-1?o-1:c+s;let f;for(arguments.length<=2?(f=e[c],c++):f=n;c<=u;)f=t(f,e[c],c),c++;return f}}return n}function Za(e,t){return W0.call(e,t)}function t7(e,t){return W0.call(e,t)?e[t]:void 0}function ug(e){const t=[];for(const n in e)W0.call(e,n)&&t.push(n);return t}function f0e(e){const t=[];do{const n=Object.getOwnPropertyNames(e);for(const i of n)zf(t,i)}while(e=Object.getPrototypeOf(e));return t}function vT(e){const t=[];for(const n in e)W0.call(e,n)&&t.push(e[n]);return t}function WK(e,t){const n=new Array(e);for(let i=0;i100&&n>t.length>>1){const u=t.length-n;t.copyWithin(0,n),t.length=u,n=0}return c}return{enqueue:s,dequeue:o,isEmpty:i}}function mB(e,t){const n=new Map;let i=0;function*s(){for(const c of n.values())ts(c)?yield*c:yield c}const o={has(c){const u=e(c);if(!n.has(u))return!1;const f=n.get(u);if(!ts(f))return t(f,c);for(const g of f)if(t(g,c))return!0;return!1},add(c){const u=e(c);if(n.has(u)){const f=n.get(u);if(ts(f))bs(f,c,t)||(f.push(c),i++);else{const g=f;t(g,c)||(n.set(u,[g,c]),i++)}}else n.set(u,c),i++;return this},delete(c){const u=e(c);if(!n.has(u))return!1;const f=n.get(u);if(ts(f)){for(let g=0;gs(),[Symbol.toStringTag]:n[Symbol.toStringTag]};return o}function ts(e){return Array.isArray(e)}function bT(e){return ts(e)?e:[e]}function ls(e){return typeof e=="string"}function zh(e){return typeof e=="number"}function Wn(e,t){return e!==void 0&&t(e)?e:void 0}function Ls(e,t){return e!==void 0&&t(e)?e:E.fail(`Invalid cast. The supplied value ${e} did not pass the test '${E.getFunctionName(t)}'.`)}function Ca(e){}function fd(){return!1}function Wh(){return!0}function f1(){}function Do(e){return e}function qK(e){return e.toLowerCase()}function km(e){return nee.test(e)?e.replace(nee,qK):e}function ks(){throw new Error("Not implemented")}function Hu(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function Cm(e){const t=new Map;return n=>{const i=`${typeof n}:${n}`;let s=t.get(i);return s===void 0&&!t.has(i)&&(s=e(n),t.set(i,s)),s}}function p0e(e){const t=new WeakMap;return n=>{let i=t.get(n);return i===void 0&&!t.has(n)&&(i=e(n),t.set(n,i)),i}}function HK(e,t){return(...n)=>{let i=t.get(n);return i===void 0&&!t.has(n)&&(i=e(...n),t.set(n,i)),i}}function d0e(e,t,n,i,s){if(s){const o=[];for(let c=0;cDu(o,(u,f)=>f(u),c)}else return i?o=>i(n(t(e(o)))):n?o=>n(t(e(o))):t?o=>t(e(o)):e?o=>e(o):o=>o}function Vh(e,t){return e===t}function p1(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function pb(e,t){return Vh(e,t)}function m0e(e,t){return e===t?0:e===void 0?-1:t===void 0?1:et(n,i)===-1?n:i)}function s7(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toUpperCase(),t=t.toUpperCase(),et?1:0)}function GK(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toLowerCase(),t=t.toLowerCase(),et?1:0)}function mu(e,t){return m0e(e,t)}function Ak(e){return e?s7:mu}function $K(){return kB}function XK(e){kB!==e&&(kB=e,iee=void 0)}function SD(e,t){return(iee||(iee=y0e(kB)))(e,t)}function QK(e,t,n,i){return e===t?0:e===void 0?-1:t===void 0?1:i(e[n],t[n])}function J0(e,t){return wo(e?1:0,t?1:0)}function q4(e,t,n){const i=Math.max(2,Math.floor(e.length*.34));let s=Math.floor(e.length*.4)+1,o;for(const c of t){const u=n(c);if(u!==void 0&&Math.abs(u.length-e.length)<=i){if(u===e||u.length<3&&u.toLowerCase()!==e.toLowerCase())continue;const f=M5e(e,u,s-.1);if(f===void 0)continue;E.assert(fn?u-n:1),d=Math.floor(t.length>n+u?n+u:t.length);s[0]=u;let y=u;for(let T=1;Tn)return;const S=i;i=s,s=S}const c=i[t.length];return c>n?void 0:c}function Yo(e,t,n){const i=e.length-t.length;return i>=0&&(n?p1(e.slice(i),t):e.indexOf(t,i)===i)}function Nk(e,t){return Yo(e,t)?e.slice(0,e.length-t.length):e}function YK(e,t){return Yo(e,t)?e.slice(0,e.length-t.length):void 0}function hB(e){let t=e.length;for(let n=t-1;n>0;n--){let i=e.charCodeAt(n);if(i>=48&&i<=57)do--n,i=e.charCodeAt(n);while(n>0&&i>=48&&i<=57);else if(n>4&&(i===110||i===78)){if(--n,i=e.charCodeAt(n),i!==105&&i!==73||(--n,i=e.charCodeAt(n),i!==109&&i!==77))break;--n,i=e.charCodeAt(n)}else break;if(i!==45&&i!==46)break;t=n}return t===e.length?e:e.slice(0,t)}function Ik(e,t){for(let n=0;nn===t)}function R5e(e,t){for(let n=0;ns&&(s=c.prefix.length,i=o)}return i}function Vi(e,t,n){return n?p1(e.slice(0,t.length),t):e.lastIndexOf(t,0)===0}function H4(e,t){return Vi(e,t)?e.substr(t.length):e}function bB(e,t,n=Do){return Vi(n(e),n(t))?e.substring(t.length):void 0}function a7({prefix:e,suffix:t},n){return n.length>=e.length+t.length&&Vi(n,e)&&Yo(n,t)}function o7(e,t){return n=>e(n)&&t(n)}function pd(...e){return(...t)=>{let n;for(const i of e)if(n=i(...t),n)return n;return n}}function c7(e){return(...t)=>!e(...t)}function g0e(e){}function TT(e){return e===void 0?void 0:[e]}function l7(e,t,n,i,s,o){o=o||Ca;let c=0,u=0;const f=e.length,g=t.length;let d=!1;for(;c(e[e.None=0]="None",e[e.CaseSensitive=1]="CaseSensitive",e[e.CaseInsensitive=2]="CaseInsensitive",e[e.Both=3]="Both",e))(TB||{}),Uh=Array.prototype.at?(e,t)=>e==null?void 0:e.at(t):(e,t)=>{if(e&&(t=zK(e,t),t(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(xB||{}),y0e=(()=>{return t;function e(n,i,s){if(n===i)return 0;if(n===void 0)return-1;if(i===void 0)return 1;const o=s(n,i);return o<0?-1:o>0?1:0}function t(n){const i=new Intl.Collator(n,{usage:"sort",sensitivity:"variant"}).compare;return(s,o)=>e(s,o,i)}})()}}),CB,E,B5e=wt({"src/compiler/debug.ts"(){Fs(),Fs(),CB=(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))(CB||{}),(e=>{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function n(Ht){return e.currentLogLevel<=Ht}e.shouldLog=n;function i(Ht,Ue){e.loggingHost&&n(Ht)&&e.loggingHost.log(Ht,Ue)}function s(Ht){i(3,Ht)}e.log=s,(Ht=>{function Ue(ei){i(1,ei)}Ht.error=Ue;function Et(ei){i(2,ei)}Ht.warn=Et;function fr(ei){i(3,ei)}Ht.log=fr;function Hn(ei){i(4,ei)}Ht.trace=Hn})(s=e.log||(e.log={}));const o={};function c(){return t}e.getAssertionLevel=c;function u(Ht){const Ue=t;if(t=Ht,Ht>Ue)for(const Et of ug(o)){const fr=o[Et];fr!==void 0&&e[Et]!==fr.assertion&&Ht>=fr.level&&(e[Et]=fr,o[Et]=void 0)}}e.setAssertionLevel=u;function f(Ht){return t>=Ht}e.shouldAssert=f;function g(Ht,Ue){return f(Ht)?!0:(o[Ue]={level:Ht,assertion:e[Ue]},e[Ue]=Ca,!1)}function d(Ht,Ue){debugger;const Et=new Error(Ht?`Debug Failure. ${Ht}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(Et,Ue||d),Et}e.fail=d;function y(Ht,Ue,Et){return d(`${Ue||"Unexpected node."}\r + ***************************************************************************** */var ub=(()=>{var $I=Object.defineProperty,u1=Object.getOwnPropertyNames,Dt=(e,t)=>function(){return e&&(t=(0,e[u1(e)[0]])(e=0)),t},IK=(e,t)=>function(){return t||(0,e[u1(e)[0]])((t={exports:{}}).exports,t),t.exports},Gc=(e,t)=>{for(var n in t)$I(e,n,{get:t[n],enumerable:!0})},qg,ld,Pk,FK=Dt({"src/compiler/corePublic.ts"(){qg="5.4",ld="5.4.5",Pk=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(Pk||{})}});function mr(e){return e?e.length:0}function rr(e,t){if(e)for(let n=0;n=0;n--){const i=t(e[n],n);if(i)return i}}function Qa(e,t){if(e!==void 0)for(let n=0;n=0;i--){const s=e[i];if(t(s,i))return s}}function vc(e,t,n){if(e===void 0)return-1;for(let i=n??0;i=0;i--)if(t(e[i],i))return i;return-1}function u0e(e,t){for(let n=0;nn(i,t[s]))}function OK(e,t,n){for(let i=n||0;i{const o=t(s,i);if(o!==void 0){const[c,u]=o;c!==void 0&&u!==void 0&&n.set(c,u)}}),n}function J4(e,t,n){if(e.has(t))return e.get(t);const i=n();return e.set(t,i),i}function _1(e,t){return e.has(t)?!1:(e.add(t),!0)}function*RK(e){yield e}function nB(e,t,n){let i;if(e){i=[];const s=e.length;let o,c,u=0,f=0;for(;u{const[o,c]=t(s,i);n.set(o,c)}),n}function ct(e,t){if(e)if(t){for(const n of e)if(t(n))return!0}else return e.length>0;return!1}function iB(e,t,n){let i;for(let s=0;se[c])}function I5e(e,t){const n=[];for(const i of e)Jf(n,i,t);return n}function Nv(e,t,n){return e.length===0?[]:e.length===1?e.slice():n?N5e(e,t,n):I5e(e,t)}function F5e(e,t){if(e.length===0)return Ve;let n=e[0];const i=[n];for(let s=1;s0&&(s&=-2),s&2&&i(o,f)>0&&(s&=-3),o=f}return s}function ud(e,t,n=Vh){if(!e||!t)return e===t;if(e.length!==t.length)return!1;for(let i=0;i0&&E.assertGreaterThanOrEqual(n(t[o],t[o-1]),0);t:for(const c=s;sc&&E.assertGreaterThanOrEqual(n(e[s],e[s-1]),0),n(t[o],e[s])){case-1:i.push(t[o]);continue e;case 0:continue e;case 1:continue t}}return i}function _r(e,t){return t===void 0?e:e===void 0?[t]:(e.push(t),e)}function Dk(e,t){return e===void 0?t:t===void 0?e:ts(e)?ts(t)?es(e,t):_r(e,t):ts(t)?_r(t,e):[e,t]}function JK(e,t){return t<0?e.length+t:t}function Nn(e,t,n,i){if(t===void 0||t.length===0)return e;if(e===void 0)return t.slice(n,i);n=n===void 0?0:JK(t,n),i=i===void 0?t.length:JK(t,i);for(let s=n;sn(e[i],e[s])||Ao(i,s))}function _b(e,t){return e.length===0?e:e.slice().sort(t)}function*aB(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function Bh(e,t){const n=gD(e);return _0e(e,n,t),n.map(i=>e[i])}function oB(e,t,n,i){for(;n>1),f=n(e[u],u);switch(i(f,t)){case-1:o=u+1;break;case 0:return u;case 1:c=u-1;break}}return~o}function Du(e,t,n,i,s){if(e&&e.length>0){const o=e.length;if(o>0){let c=i===void 0||i<0?0:i;const u=s===void 0||c+s>o-1?o-1:c+s;let f;for(arguments.length<=2?(f=e[c],c++):f=n;c<=u;)f=t(f,e[c],c),c++;return f}}return n}function Ka(e,t){return z0.call(e,t)}function ZI(e,t){return z0.call(e,t)?e[t]:void 0}function ug(e){const t=[];for(const n in e)z0.call(e,n)&&t.push(n);return t}function f0e(e){const t=[];do{const n=Object.getOwnPropertyNames(e);for(const i of n)Jf(t,i)}while(e=Object.getPrototypeOf(e));return t}function yT(e){const t=[];for(const n in e)z0.call(e,n)&&t.push(e[n]);return t}function zK(e,t){const n=new Array(e);for(let i=0;i100&&n>t.length>>1){const u=t.length-n;t.copyWithin(0,n),t.length=u,n=0}return c}return{enqueue:s,dequeue:o,isEmpty:i}}function pB(e,t){const n=new Map;let i=0;function*s(){for(const c of n.values())ts(c)?yield*c:yield c}const o={has(c){const u=e(c);if(!n.has(u))return!1;const f=n.get(u);if(!ts(f))return t(f,c);for(const g of f)if(t(g,c))return!0;return!1},add(c){const u=e(c);if(n.has(u)){const f=n.get(u);if(ts(f))bs(f,c,t)||(f.push(c),i++);else{const g=f;t(g,c)||(n.set(u,[g,c]),i++)}}else n.set(u,c),i++;return this},delete(c){const u=e(c);if(!n.has(u))return!1;const f=n.get(u);if(ts(f)){for(let g=0;gs(),[Symbol.toStringTag]:n[Symbol.toStringTag]};return o}function ts(e){return Array.isArray(e)}function vT(e){return ts(e)?e:[e]}function ls(e){return typeof e=="string"}function zh(e){return typeof e=="number"}function Wn(e,t){return e!==void 0&&t(e)?e:void 0}function Ls(e,t){return e!==void 0&&t(e)?e:E.fail(`Invalid cast. The supplied value ${e} did not pass the test '${E.getFunctionName(t)}'.`)}function Ca(e){}function _d(){return!1}function Wh(){return!0}function f1(){}function wo(e){return e}function UK(e){return e.toLowerCase()}function km(e){return ree.test(e)?e.replace(ree,UK):e}function ks(){throw new Error("Not implemented")}function Hu(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function Cm(e){const t=new Map;return n=>{const i=`${typeof n}:${n}`;let s=t.get(i);return s===void 0&&!t.has(i)&&(s=e(n),t.set(i,s)),s}}function p0e(e){const t=new WeakMap;return n=>{let i=t.get(n);return i===void 0&&!t.has(n)&&(i=e(n),t.set(n,i)),i}}function qK(e,t){return(...n)=>{let i=t.get(n);return i===void 0&&!t.has(n)&&(i=e(...n),t.set(n,i)),i}}function d0e(e,t,n,i,s){if(s){const o=[];for(let c=0;cDu(o,(u,f)=>f(u),c)}else return i?o=>i(n(t(e(o)))):n?o=>n(t(e(o))):t?o=>t(e(o)):e?o=>e(o):o=>o}function Vh(e,t){return e===t}function p1(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function fb(e,t){return Vh(e,t)}function m0e(e,t){return e===t?0:e===void 0?-1:t===void 0?1:et(n,i)===-1?n:i)}function r7(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toUpperCase(),t=t.toUpperCase(),et?1:0)}function HK(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toLowerCase(),t=t.toLowerCase(),et?1:0)}function mu(e,t){return m0e(e,t)}function Ak(e){return e?r7:mu}function GK(){return TB}function $K(e){TB!==e&&(TB=e,nee=void 0)}function bD(e,t){return(nee||(nee=y0e(TB)))(e,t)}function XK(e,t,n,i){return e===t?0:e===void 0?-1:t===void 0?1:i(e[n],t[n])}function B0(e,t){return Ao(e?1:0,t?1:0)}function U4(e,t,n){const i=Math.max(2,Math.floor(e.length*.34));let s=Math.floor(e.length*.4)+1,o;for(const c of t){const u=n(c);if(u!==void 0&&Math.abs(u.length-e.length)<=i){if(u===e||u.length<3&&u.toLowerCase()!==e.toLowerCase())continue;const f=M5e(e,u,s-.1);if(f===void 0)continue;E.assert(fn?u-n:1),d=Math.floor(t.length>n+u?n+u:t.length);s[0]=u;let y=u;for(let T=1;Tn)return;const S=i;i=s,s=S}const c=i[t.length];return c>n?void 0:c}function Yo(e,t,n){const i=e.length-t.length;return i>=0&&(n?p1(e.slice(i),t):e.indexOf(t,i)===i)}function Nk(e,t){return Yo(e,t)?e.slice(0,e.length-t.length):e}function QK(e,t){return Yo(e,t)?e.slice(0,e.length-t.length):void 0}function mB(e){let t=e.length;for(let n=t-1;n>0;n--){let i=e.charCodeAt(n);if(i>=48&&i<=57)do--n,i=e.charCodeAt(n);while(n>0&&i>=48&&i<=57);else if(n>4&&(i===110||i===78)){if(--n,i=e.charCodeAt(n),i!==105&&i!==73||(--n,i=e.charCodeAt(n),i!==109&&i!==77))break;--n,i=e.charCodeAt(n)}else break;if(i!==45&&i!==46)break;t=n}return t===e.length?e:e.slice(0,t)}function Ik(e,t){for(let n=0;nn===t)}function R5e(e,t){for(let n=0;ns&&(s=c.prefix.length,i=o)}return i}function Vi(e,t,n){return n?p1(e.slice(0,t.length),t):e.lastIndexOf(t,0)===0}function q4(e,t){return Vi(e,t)?e.substr(t.length):e}function yB(e,t,n=wo){return Vi(n(e),n(t))?e.substring(t.length):void 0}function n7({prefix:e,suffix:t},n){return n.length>=e.length+t.length&&Vi(n,e)&&Yo(n,t)}function i7(e,t){return n=>e(n)&&t(n)}function fd(...e){return(...t)=>{let n;for(const i of e)if(n=i(...t),n)return n;return n}}function s7(e){return(...t)=>!e(...t)}function g0e(e){}function ST(e){return e===void 0?void 0:[e]}function a7(e,t,n,i,s,o){o=o||Ca;let c=0,u=0;const f=e.length,g=t.length;let d=!1;for(;c(e[e.None=0]="None",e[e.CaseSensitive=1]="CaseSensitive",e[e.CaseInsensitive=2]="CaseInsensitive",e[e.Both=3]="Both",e))(bB||{}),Uh=Array.prototype.at?(e,t)=>e==null?void 0:e.at(t):(e,t)=>{if(e&&(t=JK(e,t),t(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(SB||{}),y0e=(()=>{return t;function e(n,i,s){if(n===i)return 0;if(n===void 0)return-1;if(i===void 0)return 1;const o=s(n,i);return o<0?-1:o>0?1:0}function t(n){const i=new Intl.Collator(n,{usage:"sort",sensitivity:"variant"}).compare;return(s,o)=>e(s,o,i)}})()}}),xB,E,B5e=Dt({"src/compiler/debug.ts"(){Fs(),Fs(),xB=(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))(xB||{}),(e=>{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function n(Ht){return e.currentLogLevel<=Ht}e.shouldLog=n;function i(Ht,Ue){e.loggingHost&&n(Ht)&&e.loggingHost.log(Ht,Ue)}function s(Ht){i(3,Ht)}e.log=s,(Ht=>{function Ue(ei){i(1,ei)}Ht.error=Ue;function Et(ei){i(2,ei)}Ht.warn=Et;function fr(ei){i(3,ei)}Ht.log=fr;function Hn(ei){i(4,ei)}Ht.trace=Hn})(s=e.log||(e.log={}));const o={};function c(){return t}e.getAssertionLevel=c;function u(Ht){const Ue=t;if(t=Ht,Ht>Ue)for(const Et of ug(o)){const fr=o[Et];fr!==void 0&&e[Et]!==fr.assertion&&Ht>=fr.level&&(e[Et]=fr,o[Et]=void 0)}}e.setAssertionLevel=u;function f(Ht){return t>=Ht}e.shouldAssert=f;function g(Ht,Ue){return f(Ht)?!0:(o[Ue]={level:Ht,assertion:e[Ue]},e[Ue]=Ca,!1)}function d(Ht,Ue){debugger;const Et=new Error(Ht?`Debug Failure. ${Ht}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(Et,Ue||d),Et}e.fail=d;function y(Ht,Ue,Et){return d(`${Ue||"Unexpected node."}\r Node ${fe(Ht.kind)} was unexpected.`,Et||y)}e.failBadSyntaxKind=y;function S(Ht,Ue,Et,fr){Ht||(Ue=Ue?`False expression: ${Ue}`:"False expression.",Et&&(Ue+=`\r -Verbose Debug Information: `+(typeof Et=="string"?Et:Et())),d(Ue,fr||S))}e.assert=S;function T(Ht,Ue,Et,fr,Hn){if(Ht!==Ue){const ei=Et?fr?`${Et} ${fr}`:Et:"";d(`Expected ${Ht} === ${Ue}. ${ei}`,Hn||T)}}e.assertEqual=T;function k(Ht,Ue,Et,fr){Ht>=Ue&&d(`Expected ${Ht} < ${Ue}. ${Et||""}`,fr||k)}e.assertLessThan=k;function w(Ht,Ue,Et){Ht>Ue&&d(`Expected ${Ht} <= ${Ue}`,Et||w)}e.assertLessThanOrEqual=w;function P(Ht,Ue,Et){Ht= ${Ue}`,Et||P)}e.assertGreaterThanOrEqual=P;function F(Ht,Ue,Et){Ht==null&&d(Ue,Et||F)}e.assertIsDefined=F;function J(Ht,Ue,Et){return F(Ht,Ue,Et||J),Ht}e.checkDefined=J;function U(Ht,Ue,Et){for(const fr of Ht)F(fr,Ue,Et||U)}e.assertEachIsDefined=U;function $(Ht,Ue,Et){return U(Ht,Ue,Et||$),Ht}e.checkEachDefined=$;function j(Ht,Ue="Illegal value:",Et){const fr=typeof Ht=="object"&&Za(Ht,"kind")&&Za(Ht,"pos")?"SyntaxKind: "+fe(Ht.kind):JSON.stringify(Ht);return d(`${Ue} ${fr}`,Et||j)}e.assertNever=j;function re(Ht,Ue,Et,fr){g(1,"assertEachNode")&&S(Ue===void 0||Wi(Ht,Ue),Et||"Unexpected node.",()=>`Node array did not pass test '${ee(Ue)}'.`,fr||re)}e.assertEachNode=re;function R(Ht,Ue,Et,fr){g(1,"assertNode")&&S(Ht!==void 0&&(Ue===void 0||Ue(Ht)),Et||"Unexpected node.",()=>`Node ${fe(Ht==null?void 0:Ht.kind)} did not pass test '${ee(Ue)}'.`,fr||R)}e.assertNode=R;function Y(Ht,Ue,Et,fr){g(1,"assertNotNode")&&S(Ht===void 0||Ue===void 0||!Ue(Ht),Et||"Unexpected node.",()=>`Node ${fe(Ht.kind)} should not have passed test '${ee(Ue)}'.`,fr||Y)}e.assertNotNode=Y;function ue(Ht,Ue,Et,fr){g(1,"assertOptionalNode")&&S(Ue===void 0||Ht===void 0||Ue(Ht),Et||"Unexpected node.",()=>`Node ${fe(Ht==null?void 0:Ht.kind)} did not pass test '${ee(Ue)}'.`,fr||ue)}e.assertOptionalNode=ue;function pe(Ht,Ue,Et,fr){g(1,"assertOptionalToken")&&S(Ue===void 0||Ht===void 0||Ht.kind===Ue,Et||"Unexpected node.",()=>`Node ${fe(Ht==null?void 0:Ht.kind)} was not a '${fe(Ue)}' token.`,fr||pe)}e.assertOptionalToken=pe;function H(Ht,Ue,Et){g(1,"assertMissingNode")&&S(Ht===void 0,Ue||"Unexpected node.",()=>`Node ${fe(Ht.kind)} was unexpected'.`,Et||H)}e.assertMissingNode=H;function q(Ht){}e.type=q;function ee(Ht){if(typeof Ht!="function")return"";if(Za(Ht,"name"))return Ht.name;{const Ue=Function.prototype.toString.call(Ht),Et=/^function\s+([\w$]+)\s*\(/.exec(Ue);return Et?Et[1]:""}}e.getFunctionName=ee;function oe(Ht){return`{ name: ${xi(Ht.escapedName)}; flags: ${ft(Ht.flags)}; declarations: ${nr(Ht.declarations,Ue=>fe(Ue.kind))} }`}e.formatSymbol=oe;function Se(Ht=0,Ue,Et){const fr=K(Ue);if(Ht===0)return fr.length>0&&fr[0][0]===0?fr[0][1]:"0";if(Et){const Hn=[];let ei=Ht;for(const[Ii,ns]of fr){if(Ii>Ht)break;Ii!==0&&Ii&Ht&&(Hn.push(ns),ei&=~Ii)}if(ei===0)return Hn.join("|")}else for(const[Hn,ei]of fr)if(Hn===Ht)return ei;return Ht.toString()}e.formatEnum=Se;const ae=new Map;function K(Ht){const Ue=ae.get(Ht);if(Ue)return Ue;const Et=[];for(const Hn in Ht){const ei=Ht[Hn];typeof ei=="number"&&Et.push([ei,Hn])}const fr=Bh(Et,(Hn,ei)=>wo(Hn[0],ei[0]));return ae.set(Ht,fr),fr}function fe(Ht){return Se(Ht,p7,!1)}e.formatSyntaxKind=fe;function ke(Ht){return Se(Ht,E7,!1)}e.formatSnippetKind=ke;function Oe(Ht){return Se(Ht,k7,!1)}e.formatScriptKind=Oe;function me(Ht){return Se(Ht,d7,!0)}e.formatNodeFlags=me;function be(Ht){return Se(Ht,m7,!0)}e.formatModifierFlags=be;function xe(Ht){return Se(Ht,C7,!0)}e.formatTransformFlags=xe;function De(Ht){return Se(Ht,P7,!0)}e.formatEmitFlags=De;function ft(Ht){return Se(Ht,b7,!0)}e.formatSymbolFlags=ft;function ge(Ht){return Se(Ht,S7,!0)}e.formatTypeFlags=ge;function Fe(Ht){return Se(Ht,x7,!0)}e.formatSignatureFlags=Fe;function $e(Ht){return Se(Ht,T7,!0)}e.formatObjectFlags=$e;function Pt(Ht){return Se(Ht,CD,!0)}e.formatFlowFlags=Pt;function at(Ht){return Se(Ht,g7,!0)}e.formatRelationComparisonResult=at;function Je(Ht){return Se(Ht,h9,!0)}e.formatCheckMode=Je;function pt(Ht){return Se(Ht,y9,!0)}e.formatSignatureCheckMode=pt;function zt(Ht){return Se(Ht,g9,!0)}e.formatTypeFacts=zt;let Vt=!1,hr;function Lr(Ht){"__debugFlowFlags"in Ht||Object.defineProperties(Ht,{__tsDebuggerDisplay:{value(){const Ue=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",Et=this.flags&-2048;return`${Ue}${Et?` (${Pt(Et)})`:""}`}},__debugFlowFlags:{get(){return Se(this.flags,CD,!0)}},__debugToString:{value(){return ln(this)}}})}function tr(Ht){Vt&&(typeof Object.setPrototypeOf=="function"?(hr||(hr=Object.create(Object.prototype),Lr(hr)),Object.setPrototypeOf(Ht,hr)):Lr(Ht))}e.attachFlowNodeDebugInfo=tr;let jt;function Rt(Ht){"__tsDebuggerDisplay"in Ht||Object.defineProperties(Ht,{__tsDebuggerDisplay:{value(Ue){return Ue=String(Ue).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),`NodeArray ${Ue}`}}})}function Kn(Ht){Vt&&(typeof Object.setPrototypeOf=="function"?(jt||(jt=Object.create(Array.prototype),Rt(jt)),Object.setPrototypeOf(Ht,jt)):Rt(Ht))}e.attachNodeArrayDebugInfo=Kn;function Ji(){if(Vt)return;const Ht=new WeakMap,Ue=new WeakMap;Object.defineProperties(Il.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){const fr=this.flags&33554432?"TransientSymbol":"Symbol",Hn=this.flags&-33554433;return`${fr} '${Xo(this)}'${Hn?` (${ft(Hn)})`:""}`}},__debugFlags:{get(){return ft(this.flags)}}}),Object.defineProperties(Il.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){const fr=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",Hn=this.flags&524288?this.objectFlags&-1344:0;return`${fr}${this.symbol?` '${Xo(this.symbol)}'`:""}${Hn?` (${$e(Hn)})`:""}`}},__debugFlags:{get(){return ge(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?$e(this.objectFlags):""}},__debugTypeToString:{value(){let fr=Ht.get(this);return fr===void 0&&(fr=this.checker.typeToString(this),Ht.set(this,fr)),fr}}}),Object.defineProperties(Il.getSignatureConstructor().prototype,{__debugFlags:{get(){return Fe(this.flags)}},__debugSignatureToString:{value(){var fr;return(fr=this.checker)==null?void 0:fr.signatureToString(this)}}});const Et=[Il.getNodeConstructor(),Il.getIdentifierConstructor(),Il.getTokenConstructor(),Il.getSourceFileConstructor()];for(const fr of Et)Za(fr.prototype,"__debugKind")||Object.defineProperties(fr.prototype,{__tsDebuggerDisplay:{value(){return`${Fo(this)?"GeneratedIdentifier":Ie(this)?`Identifier '${on(this)}'`:Pi(this)?`PrivateIdentifier '${on(this)}'`:aa(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:j_(this)?`NumericLiteral ${this.text}`:hO(this)?`BigIntLiteral ${this.text}n`:Vo(this)?"TypeParameterDeclaration":rs(this)?"ParameterDeclaration":sc(this)?"ConstructorDeclaration":xf(this)?"GetAccessorDeclaration":J_(this)?"SetAccessorDeclaration":sx(this)?"CallSignatureDeclaration":Dw(this)?"ConstructSignatureDeclaration":i2(this)?"IndexSignatureDeclaration":ww(this)?"TypePredicateNode":$f(this)?"TypeReferenceNode":Mm(this)?"FunctionTypeNode":MC(this)?"ConstructorTypeNode":ax(this)?"TypeQueryNode":z_(this)?"TypeLiteralNode":Aw(this)?"ArrayTypeNode":ox(this)?"TupleTypeNode":TO(this)?"OptionalTypeNode":xO(this)?"RestTypeNode":_y(this)?"UnionTypeNode":cx(this)?"IntersectionTypeNode":lx(this)?"ConditionalTypeNode":Wb(this)?"InferTypeNode":Vb(this)?"ParenthesizedTypeNode":Nw(this)?"ThisTypeNode":Ub(this)?"TypeOperatorNode":qb(this)?"IndexedAccessTypeNode":jC(this)?"MappedTypeNode":fy(this)?"LiteralTypeNode":RC(this)?"NamedTupleMember":Cg(this)?"ImportTypeNode":fe(this.kind)}${this.flags?` (${me(this.flags)})`:""}`}},__debugKind:{get(){return fe(this.kind)}},__debugNodeFlags:{get(){return me(this.flags)}},__debugModifierFlags:{get(){return be(Nre(this))}},__debugTransformFlags:{get(){return xe(this.transformFlags)}},__debugIsParseTreeNode:{get(){return nE(this)}},__debugEmitFlags:{get(){return De(ha(this))}},__debugGetText:{value(Hn){if(xo(this))return"";let ei=Ue.get(this);if(ei===void 0){const Ii=as(this),ns=Ii&&wr(Ii);ei=ns?Bv(ns,Ii,Hn):"",Ue.set(this,ei)}return ei}}});Vt=!0}e.enableDebugInfo=Ji;function yi(Ht){const Ue=Ht&7;let Et=Ue===0?"in out":Ue===3?"[bivariant]":Ue===2?"in":Ue===1?"out":Ue===4?"[independent]":"";return Ht&8?Et+=" (unmeasurable)":Ht&16&&(Et+=" (unreliable)"),Et}e.formatVariance=yi;class os{__debugToString(){var Ue;switch(this.kind){case 3:return((Ue=this.debugInfo)==null?void 0:Ue.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return mD(this.sources,this.targets||nr(this.sources,()=>"any"),(Et,fr)=>`${Et.__debugTypeToString()} -> ${typeof fr=="string"?fr:fr.__debugTypeToString()}`).join(", ");case 2:return mD(this.sources,this.targets,(Et,fr)=>`${Et.__debugTypeToString()} -> ${fr().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(` +Verbose Debug Information: `+(typeof Et=="string"?Et:Et())),d(Ue,fr||S))}e.assert=S;function T(Ht,Ue,Et,fr,Hn){if(Ht!==Ue){const ei=Et?fr?`${Et} ${fr}`:Et:"";d(`Expected ${Ht} === ${Ue}. ${ei}`,Hn||T)}}e.assertEqual=T;function k(Ht,Ue,Et,fr){Ht>=Ue&&d(`Expected ${Ht} < ${Ue}. ${Et||""}`,fr||k)}e.assertLessThan=k;function w(Ht,Ue,Et){Ht>Ue&&d(`Expected ${Ht} <= ${Ue}`,Et||w)}e.assertLessThanOrEqual=w;function P(Ht,Ue,Et){Ht= ${Ue}`,Et||P)}e.assertGreaterThanOrEqual=P;function F(Ht,Ue,Et){Ht==null&&d(Ue,Et||F)}e.assertIsDefined=F;function J(Ht,Ue,Et){return F(Ht,Ue,Et||J),Ht}e.checkDefined=J;function U(Ht,Ue,Et){for(const fr of Ht)F(fr,Ue,Et||U)}e.assertEachIsDefined=U;function $(Ht,Ue,Et){return U(Ht,Ue,Et||$),Ht}e.checkEachDefined=$;function j(Ht,Ue="Illegal value:",Et){const fr=typeof Ht=="object"&&Ka(Ht,"kind")&&Ka(Ht,"pos")?"SyntaxKind: "+fe(Ht.kind):JSON.stringify(Ht);return d(`${Ue} ${fr}`,Et||j)}e.assertNever=j;function re(Ht,Ue,Et,fr){g(1,"assertEachNode")&&S(Ue===void 0||Wi(Ht,Ue),Et||"Unexpected node.",()=>`Node array did not pass test '${ee(Ue)}'.`,fr||re)}e.assertEachNode=re;function R(Ht,Ue,Et,fr){g(1,"assertNode")&&S(Ht!==void 0&&(Ue===void 0||Ue(Ht)),Et||"Unexpected node.",()=>`Node ${fe(Ht==null?void 0:Ht.kind)} did not pass test '${ee(Ue)}'.`,fr||R)}e.assertNode=R;function Y(Ht,Ue,Et,fr){g(1,"assertNotNode")&&S(Ht===void 0||Ue===void 0||!Ue(Ht),Et||"Unexpected node.",()=>`Node ${fe(Ht.kind)} should not have passed test '${ee(Ue)}'.`,fr||Y)}e.assertNotNode=Y;function ue(Ht,Ue,Et,fr){g(1,"assertOptionalNode")&&S(Ue===void 0||Ht===void 0||Ue(Ht),Et||"Unexpected node.",()=>`Node ${fe(Ht==null?void 0:Ht.kind)} did not pass test '${ee(Ue)}'.`,fr||ue)}e.assertOptionalNode=ue;function pe(Ht,Ue,Et,fr){g(1,"assertOptionalToken")&&S(Ue===void 0||Ht===void 0||Ht.kind===Ue,Et||"Unexpected node.",()=>`Node ${fe(Ht==null?void 0:Ht.kind)} was not a '${fe(Ue)}' token.`,fr||pe)}e.assertOptionalToken=pe;function H(Ht,Ue,Et){g(1,"assertMissingNode")&&S(Ht===void 0,Ue||"Unexpected node.",()=>`Node ${fe(Ht.kind)} was unexpected'.`,Et||H)}e.assertMissingNode=H;function q(Ht){}e.type=q;function ee(Ht){if(typeof Ht!="function")return"";if(Ka(Ht,"name"))return Ht.name;{const Ue=Function.prototype.toString.call(Ht),Et=/^function\s+([\w$]+)\s*\(/.exec(Ue);return Et?Et[1]:""}}e.getFunctionName=ee;function oe(Ht){return`{ name: ${xi(Ht.escapedName)}; flags: ${ft(Ht.flags)}; declarations: ${nr(Ht.declarations,Ue=>fe(Ue.kind))} }`}e.formatSymbol=oe;function Se(Ht=0,Ue,Et){const fr=K(Ue);if(Ht===0)return fr.length>0&&fr[0][0]===0?fr[0][1]:"0";if(Et){const Hn=[];let ei=Ht;for(const[Ii,ns]of fr){if(Ii>Ht)break;Ii!==0&&Ii&Ht&&(Hn.push(ns),ei&=~Ii)}if(ei===0)return Hn.join("|")}else for(const[Hn,ei]of fr)if(Hn===Ht)return ei;return Ht.toString()}e.formatEnum=Se;const ae=new Map;function K(Ht){const Ue=ae.get(Ht);if(Ue)return Ue;const Et=[];for(const Hn in Ht){const ei=Ht[Hn];typeof ei=="number"&&Et.push([ei,Hn])}const fr=Bh(Et,(Hn,ei)=>Ao(Hn[0],ei[0]));return ae.set(Ht,fr),fr}function fe(Ht){return Se(Ht,u7,!1)}e.formatSyntaxKind=fe;function ke(Ht){return Se(Ht,x7,!1)}e.formatSnippetKind=ke;function Oe(Ht){return Se(Ht,S7,!1)}e.formatScriptKind=Oe;function me(Ht){return Se(Ht,_7,!0)}e.formatNodeFlags=me;function be(Ht){return Se(Ht,f7,!0)}e.formatModifierFlags=be;function xe(Ht){return Se(Ht,T7,!0)}e.formatTransformFlags=xe;function De(Ht){return Se(Ht,k7,!0)}e.formatEmitFlags=De;function ft(Ht){return Se(Ht,h7,!0)}e.formatSymbolFlags=ft;function ge(Ht){return Se(Ht,y7,!0)}e.formatTypeFlags=ge;function Fe(Ht){return Se(Ht,b7,!0)}e.formatSignatureFlags=Fe;function $e(Ht){return Se(Ht,v7,!0)}e.formatObjectFlags=$e;function Pt(Ht){return Se(Ht,kD,!0)}e.formatFlowFlags=Pt;function at(Ht){return Se(Ht,p7,!0)}e.formatRelationComparisonResult=at;function Je(Ht){return Se(Ht,d9,!0)}e.formatCheckMode=Je;function pt(Ht){return Se(Ht,m9,!0)}e.formatSignatureCheckMode=pt;function zt(Ht){return Se(Ht,p9,!0)}e.formatTypeFacts=zt;let Vt=!1,hr;function Lr(Ht){"__debugFlowFlags"in Ht||Object.defineProperties(Ht,{__tsDebuggerDisplay:{value(){const Ue=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",Et=this.flags&-2048;return`${Ue}${Et?` (${Pt(Et)})`:""}`}},__debugFlowFlags:{get(){return Se(this.flags,kD,!0)}},__debugToString:{value(){return ln(this)}}})}function er(Ht){Vt&&(typeof Object.setPrototypeOf=="function"?(hr||(hr=Object.create(Object.prototype),Lr(hr)),Object.setPrototypeOf(Ht,hr)):Lr(Ht))}e.attachFlowNodeDebugInfo=er;let jt;function Rt(Ht){"__tsDebuggerDisplay"in Ht||Object.defineProperties(Ht,{__tsDebuggerDisplay:{value(Ue){return Ue=String(Ue).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),`NodeArray ${Ue}`}}})}function Kn(Ht){Vt&&(typeof Object.setPrototypeOf=="function"?(jt||(jt=Object.create(Array.prototype),Rt(jt)),Object.setPrototypeOf(Ht,jt)):Rt(Ht))}e.attachNodeArrayDebugInfo=Kn;function Ji(){if(Vt)return;const Ht=new WeakMap,Ue=new WeakMap;Object.defineProperties(Il.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){const fr=this.flags&33554432?"TransientSymbol":"Symbol",Hn=this.flags&-33554433;return`${fr} '${Xo(this)}'${Hn?` (${ft(Hn)})`:""}`}},__debugFlags:{get(){return ft(this.flags)}}}),Object.defineProperties(Il.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){const fr=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",Hn=this.flags&524288?this.objectFlags&-1344:0;return`${fr}${this.symbol?` '${Xo(this.symbol)}'`:""}${Hn?` (${$e(Hn)})`:""}`}},__debugFlags:{get(){return ge(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?$e(this.objectFlags):""}},__debugTypeToString:{value(){let fr=Ht.get(this);return fr===void 0&&(fr=this.checker.typeToString(this),Ht.set(this,fr)),fr}}}),Object.defineProperties(Il.getSignatureConstructor().prototype,{__debugFlags:{get(){return Fe(this.flags)}},__debugSignatureToString:{value(){var fr;return(fr=this.checker)==null?void 0:fr.signatureToString(this)}}});const Et=[Il.getNodeConstructor(),Il.getIdentifierConstructor(),Il.getTokenConstructor(),Il.getSourceFileConstructor()];for(const fr of Et)Ka(fr.prototype,"__debugKind")||Object.defineProperties(fr.prototype,{__tsDebuggerDisplay:{value(){return`${Oo(this)?"GeneratedIdentifier":Ie(this)?`Identifier '${on(this)}'`:Pi(this)?`PrivateIdentifier '${on(this)}'`:aa(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:j_(this)?`NumericLiteral ${this.text}`:dO(this)?`BigIntLiteral ${this.text}n`:Uo(this)?"TypeParameterDeclaration":rs(this)?"ParameterDeclaration":sc(this)?"ConstructorDeclaration":Tf(this)?"GetAccessorDeclaration":J_(this)?"SetAccessorDeclaration":ix(this)?"CallSignatureDeclaration":Pw(this)?"ConstructSignatureDeclaration":i2(this)?"IndexSignatureDeclaration":Dw(this)?"TypePredicateNode":Gf(this)?"TypeReferenceNode":Mm(this)?"FunctionTypeNode":MC(this)?"ConstructorTypeNode":sx(this)?"TypeQueryNode":z_(this)?"TypeLiteralNode":ww(this)?"ArrayTypeNode":ax(this)?"TupleTypeNode":vO(this)?"OptionalTypeNode":bO(this)?"RestTypeNode":uy(this)?"UnionTypeNode":ox(this)?"IntersectionTypeNode":cx(this)?"ConditionalTypeNode":zb(this)?"InferTypeNode":Wb(this)?"ParenthesizedTypeNode":Aw(this)?"ThisTypeNode":Vb(this)?"TypeOperatorNode":Ub(this)?"IndexedAccessTypeNode":jC(this)?"MappedTypeNode":_y(this)?"LiteralTypeNode":RC(this)?"NamedTupleMember":Cg(this)?"ImportTypeNode":fe(this.kind)}${this.flags?` (${me(this.flags)})`:""}`}},__debugKind:{get(){return fe(this.kind)}},__debugNodeFlags:{get(){return me(this.flags)}},__debugModifierFlags:{get(){return be(Are(this))}},__debugTransformFlags:{get(){return xe(this.transformFlags)}},__debugIsParseTreeNode:{get(){return rE(this)}},__debugEmitFlags:{get(){return De(ha(this))}},__debugGetText:{value(Hn){if(ko(this))return"";let ei=Ue.get(this);if(ei===void 0){const Ii=as(this),ns=Ii&&wr(Ii);ei=ns?Bv(ns,Ii,Hn):"",Ue.set(this,ei)}return ei}}});Vt=!0}e.enableDebugInfo=Ji;function yi(Ht){const Ue=Ht&7;let Et=Ue===0?"in out":Ue===3?"[bivariant]":Ue===2?"in":Ue===1?"out":Ue===4?"[independent]":"";return Ht&8?Et+=" (unmeasurable)":Ht&16&&(Et+=" (unreliable)"),Et}e.formatVariance=yi;class os{__debugToString(){var Ue;switch(this.kind){case 3:return((Ue=this.debugInfo)==null?void 0:Ue.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return cg(this.sources,this.targets||nr(this.sources,()=>"any"),(Et,fr)=>`${Et.__debugTypeToString()} -> ${typeof fr=="string"?fr:fr.__debugTypeToString()}`).join(", ");case 2:return cg(this.sources,this.targets,(Et,fr)=>`${Et.__debugTypeToString()} -> ${fr().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(` `).join(` `)} m2: ${this.mapper2.__debugToString().split(` `).join(` - `)}`;default:return j(this)}}}e.DebugTypeMapper=os;function yr(Ht){return e.isDebugging?Object.setPrototypeOf(Ht,os.prototype):Ht}e.attachDebugPrototypeIfDebug=yr;function _i(Ht){return console.log(ln(Ht))}e.printControlFlowGraph=_i;function ln(Ht){let Ue=-1;function Et(A){return A.id||(A.id=Ue,Ue--),A.id}let fr;(A=>{A.lr="─",A.ud="│",A.dr="╭",A.dl="╮",A.ul="╯",A.ur="╰",A.udr="├",A.udl="┤",A.dlr="┬",A.ulr="┴",A.udlr="╫"})(fr||(fr={}));let Hn;(A=>{A[A.None=0]="None",A[A.Up=1]="Up",A[A.Down=2]="Down",A[A.Left=4]="Left",A[A.Right=8]="Right",A[A.UpDown=3]="UpDown",A[A.LeftRight=12]="LeftRight",A[A.UpLeft=5]="UpLeft",A[A.UpRight=9]="UpRight",A[A.DownLeft=6]="DownLeft",A[A.DownRight=10]="DownRight",A[A.UpDownLeft=7]="UpDownLeft",A[A.UpDownRight=11]="UpDownRight",A[A.UpLeftRight=13]="UpLeftRight",A[A.DownLeftRight=14]="DownLeftRight",A[A.UpDownLeftRight=15]="UpDownLeftRight",A[A.NoChildren=16]="NoChildren"})(Hn||(Hn={}));const ei=2032,Ii=882,ns=Object.create(null),Vs=[],_a=et(Ht,new Set);for(const A of Vs)A.text=Yt(A.flowNode,A.circular),Ge(A);const cr=mt(_a),br=Be(cr);return nt(_a,0),Kt();function Le(A){return!!(A.flags&128)}function rt(A){return!!(A.flags&12)&&!!A.antecedents}function tt(A){return!!(A.flags&ei)}function yt(A){return!!(A.flags&Ii)}function ne(A){const le=[];for(const V of A.edges)V.source===A&&le.push(V.target);return le}function we(A){const le=[];for(const V of A.edges)V.target===A&&le.push(V.source);return le}function et(A,le){const V=Et(A);let ce=ns[V];if(ce&&le.has(A))return ce.circular=!0,ce={id:-1,flowNode:A,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},Vs.push(ce),ce;if(le.add(A),!ce)if(ns[V]=ce={id:V,flowNode:A,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},Vs.push(ce),rt(A))for(const Ne of A.antecedents)B(ce,Ne,le);else tt(A)&&B(ce,A.antecedent,le);return le.delete(A),ce}function B(A,le,V){const ce=et(le,V),Ne={source:A,target:ce};A.edges.push(Ne),ce.edges.push(Ne)}function Ge(A){if(A.level!==-1)return A.level;let le=0;for(const V of we(A))le=Math.max(le,Ge(V)+1);return A.level=le}function mt(A){let le=0;for(const V of ne(A))le=Math.max(le,mt(V));return le+1}function Be(A){const le=Pe(Array(A),0);for(const V of Vs)le[V.level]=Math.max(le[V.level],V.text.length);return le}function nt(A,le){if(A.lane===-1){A.lane=le,A.endLane=le;const V=ne(A);for(let ce=0;ce0&&le++;const Ne=V[ce];nt(Ne,le),Ne.endLane>A.endLane&&(le=Ne.endLane)}A.endLane=le}}function Dt(A){if(A&2)return"Start";if(A&4)return"Branch";if(A&8)return"Loop";if(A&16)return"Assignment";if(A&32)return"True";if(A&64)return"False";if(A&128)return"SwitchClause";if(A&256)return"ArrayMutation";if(A&512)return"Call";if(A&1024)return"ReduceLabel";if(A&1)return"Unreachable";throw new Error}function ir(A){const le=wr(A);return Bv(le,A,!1)}function Yt(A,le){let V=Dt(A.flags);if(le&&(V=`${V}#${Et(A)}`),yt(A))A.node&&(V+=` (${ir(A.node)})`);else if(Le(A)){const ce=[];for(let Ne=A.clauseStart;NeMath.max(_t,Tt.lane),0)+1,V=Pe(Array(le),""),ce=br.map(()=>Array(le)),Ne=br.map(()=>Pe(Array(le),0));for(const _t of Vs){ce[_t.level][_t.lane]=_t;const Tt=ne(_t);for(let ar=0;ar0&&(Nr|=1),ar0&&(Nr|=1),ar0?Ne[_t-1][Tt]:0,ar=Tt>0?Ne[_t][Tt-1]:0;let Er=Ne[_t][Tt];Er||(Jt&8&&(Er|=12),ar&2&&(Er|=3),Ne[_t][Tt]=Er)}for(let _t=0;_t{A.lr="─",A.ud="│",A.dr="╭",A.dl="╮",A.ul="╯",A.ur="╰",A.udr="├",A.udl="┤",A.dlr="┬",A.ulr="┴",A.udlr="╫"})(fr||(fr={}));let Hn;(A=>{A[A.None=0]="None",A[A.Up=1]="Up",A[A.Down=2]="Down",A[A.Left=4]="Left",A[A.Right=8]="Right",A[A.UpDown=3]="UpDown",A[A.LeftRight=12]="LeftRight",A[A.UpLeft=5]="UpLeft",A[A.UpRight=9]="UpRight",A[A.DownLeft=6]="DownLeft",A[A.DownRight=10]="DownRight",A[A.UpDownLeft=7]="UpDownLeft",A[A.UpDownRight=11]="UpDownRight",A[A.UpLeftRight=13]="UpLeftRight",A[A.DownLeftRight=14]="DownLeftRight",A[A.UpDownLeftRight=15]="UpDownLeftRight",A[A.NoChildren=16]="NoChildren"})(Hn||(Hn={}));const ei=2032,Ii=882,ns=Object.create(null),Vs=[],_a=et(Ht,new Set);for(const A of Vs)A.text=Yt(A.flowNode,A.circular),Ge(A);const cr=mt(_a),br=Be(cr);return nt(_a,0),Kt();function Le(A){return!!(A.flags&128)}function rt(A){return!!(A.flags&12)&&!!A.antecedents}function tt(A){return!!(A.flags&ei)}function yt(A){return!!(A.flags&Ii)}function ne(A){const le=[];for(const V of A.edges)V.source===A&&le.push(V.target);return le}function we(A){const le=[];for(const V of A.edges)V.target===A&&le.push(V.source);return le}function et(A,le){const V=Et(A);let ce=ns[V];if(ce&&le.has(A))return ce.circular=!0,ce={id:-1,flowNode:A,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},Vs.push(ce),ce;if(le.add(A),!ce)if(ns[V]=ce={id:V,flowNode:A,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},Vs.push(ce),rt(A))for(const Ne of A.antecedents)B(ce,Ne,le);else tt(A)&&B(ce,A.antecedent,le);return le.delete(A),ce}function B(A,le,V){const ce=et(le,V),Ne={source:A,target:ce};A.edges.push(Ne),ce.edges.push(Ne)}function Ge(A){if(A.level!==-1)return A.level;let le=0;for(const V of we(A))le=Math.max(le,Ge(V)+1);return A.level=le}function mt(A){let le=0;for(const V of ne(A))le=Math.max(le,mt(V));return le+1}function Be(A){const le=Pe(Array(A),0);for(const V of Vs)le[V.level]=Math.max(le[V.level],V.text.length);return le}function nt(A,le){if(A.lane===-1){A.lane=le,A.endLane=le;const V=ne(A);for(let ce=0;ce0&&le++;const Ne=V[ce];nt(Ne,le),Ne.endLane>A.endLane&&(le=Ne.endLane)}A.endLane=le}}function wt(A){if(A&2)return"Start";if(A&4)return"Branch";if(A&8)return"Loop";if(A&16)return"Assignment";if(A&32)return"True";if(A&64)return"False";if(A&128)return"SwitchClause";if(A&256)return"ArrayMutation";if(A&512)return"Call";if(A&1024)return"ReduceLabel";if(A&1)return"Unreachable";throw new Error}function ir(A){const le=wr(A);return Bv(le,A,!1)}function Yt(A,le){let V=wt(A.flags);if(le&&(V=`${V}#${Et(A)}`),yt(A))A.node&&(V+=` (${ir(A.node)})`);else if(Le(A)){const ce=[];for(let Ne=A.clauseStart;NeMath.max(_t,Tt.lane),0)+1,V=Pe(Array(le),""),ce=br.map(()=>Array(le)),Ne=br.map(()=>Pe(Array(le),0));for(const _t of Vs){ce[_t.level][_t.lane]=_t;const Tt=ne(_t);for(let ar=0;ar0&&(Nr|=1),ar0&&(Nr|=1),ar0?Ne[_t-1][Tt]:0,ar=Tt>0?Ne[_t][Tt-1]:0;let Er=Ne[_t][Tt];Er||(Jt&8&&(Er|=12),ar&2&&(Er|=3),Ne[_t][Tt]=Er)}for(let _t=0;_t0?A.repeat(le):"";let V="";for(;V.length=",i.version)),fp(s.major)||n.push(fp(s.minor)?Em("<",s.version.increment("major")):fp(s.patch)?Em("<",s.version.increment("minor")):Em("<=",s.version)),!0):!1}function W5e(e,t,n){const i=see(t);if(!i)return!1;const{version:s,major:o,minor:c,patch:u}=i;if(fp(o))(e==="<"||e===">")&&n.push(Em("<",Rp.zero));else switch(e){case"~":n.push(Em(">=",s)),n.push(Em("<",s.increment(fp(c)?"major":"minor")));break;case"^":n.push(Em(">=",s)),n.push(Em("<",s.increment(s.major>0||fp(c)?"major":s.minor>0||fp(u)?"minor":"patch")));break;case"<":case">=":n.push(fp(c)||fp(u)?Em(e,s.with({prerelease:"0"})):Em(e,s));break;case"<=":case">":n.push(fp(c)?Em(e==="<="?"<":">=",s.increment("major").with({prerelease:"0"})):fp(u)?Em(e==="<="?"<":">=",s.increment("minor").with({prerelease:"0"})):Em(e,s));break;case"=":case void 0:fp(c)||fp(u)?(n.push(Em(">=",s.with({prerelease:"0"}))),n.push(Em("<",s.increment(fp(c)?"major":"minor").with({prerelease:"0"})))):n.push(Em("=",s));break;default:return!1}return!0}function fp(e){return e==="*"||e==="x"||e==="X"}function Em(e,t){return{operator:e,operand:t}}function V5e(e,t){if(t.length===0)return!0;for(const n of t)if(U5e(e,n))return!0;return!1}function U5e(e,t){for(const n of t)if(!q5e(e,n.operator,n.operand))return!1;return!0}function q5e(e,t,n){const i=e.compareTo(n);switch(t){case"<":return i<0;case"<=":return i<=0;case">":return i>0;case">=":return i>=0;case"=":return i===0;default:return E.assertNever(t)}}function H5e(e){return nr(e,G5e).join(" || ")||"*"}function G5e(e){return nr(e,$5e).join(" ")}function $5e(e){return`${e.operator}${e.operand}`}var S0e,T0e,x0e,k0e,C0e,aee,EB,Rp,TD,E0e,P0e,D0e,w0e,A0e,X5e=wt({"src/compiler/semver.ts"(){Fs(),S0e=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,T0e=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,x0e=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,k0e=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,C0e=/^[a-z0-9-]+$/i,aee=/^(0|[1-9]\d*)$/,EB=class $I{constructor(t,n=0,i=0,s="",o=""){typeof t=="string"&&({major:t,minor:n,patch:i,prerelease:s,build:o}=E.checkDefined(v0e(t),"Invalid version")),E.assert(t>=0,"Invalid argument: major"),E.assert(n>=0,"Invalid argument: minor"),E.assert(i>=0,"Invalid argument: patch");const c=s?ts(s)?s:s.split("."):Ve,u=o?ts(o)?o:o.split("."):Ve;E.assert(Wi(c,f=>x0e.test(f)),"Invalid argument: prerelease"),E.assert(Wi(u,f=>C0e.test(f)),"Invalid argument: build"),this.major=t,this.minor=n,this.patch=i,this.prerelease=c,this.build=u}static tryParse(t){const n=v0e(t);if(!n)return;const{major:i,minor:s,patch:o,prerelease:c,build:u}=n;return new $I(i,s,o,c,u)}compareTo(t){return this===t?0:t===void 0?1:wo(this.major,t.major)||wo(this.minor,t.minor)||wo(this.patch,t.patch)||J5e(this.prerelease,t.prerelease)}increment(t){switch(t){case"major":return new $I(this.major+1,0,0);case"minor":return new $I(this.major,this.minor+1,0);case"patch":return new $I(this.major,this.minor,this.patch+1);default:return E.assertNever(t)}}with(t){const{major:n=this.major,minor:i=this.minor,patch:s=this.patch,prerelease:o=this.prerelease,build:c=this.build}=t;return new $I(n,i,s,o,c)}toString(){let t=`${this.major}.${this.minor}.${this.patch}`;return ct(this.prerelease)&&(t+=`-${this.prerelease.join(".")}`),ct(this.build)&&(t+=`+${this.build.join(".")}`),t}},EB.zero=new EB(0,0,0,["0"]),Rp=EB,TD=class x5e{constructor(t){this._alternatives=t?E.checkDefined(b0e(t),"Invalid range spec."):Ve}static tryParse(t){const n=b0e(t);if(n){const i=new x5e("");return i._alternatives=n,i}}test(t){return typeof t=="string"&&(t=new Rp(t)),V5e(t,this._alternatives)}toString(){return H5e(this._alternatives)}},E0e=/\|\|/g,P0e=/\s+/g,D0e=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,w0e=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,A0e=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i}});function N0e(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 Q5e(){if(typeof performance=="object"&&typeof PerformanceObserver=="function"&&N0e(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance,PerformanceObserver}}function Y5e(){if(SB())try{const{performance:e,PerformanceObserver:t}=Pk;if(N0e(e,t))return{shouldWriteNativeEvents:!1,performance:e,PerformanceObserver:t}}catch{}}function oee(){return PB}var PB,cee,To,Z5e=wt({"src/compiler/performanceCore.ts"(){Fs(),PB=Q5e()||Y5e(),cee=PB==null?void 0:PB.performance,To=cee?()=>cee.now():Date.now?Date.now:()=>+new Date}}),f7,wu,K5e=wt({"src/compiler/perfLogger.ts"(){try{const e=M0.TS_ETW_MODULE_PATH??"./node_modules/@microsoft/typescript-etw";f7=T5e(e)}catch{f7=void 0}wu=f7!=null&&f7.logEvent?f7:void 0}});function I0e(e,t,n,i){return e?DB(t,n,i):wB}function DB(e,t,n){let i=0;return{enter:s,exit:o};function s(){++i===1&&Ao(t)}function o(){--i===0?(Ao(n),bf(e,t,n)):i<0&&E.fail("enter/exit count does not match.")}}function Ao(e){if(Fk){const t=G4.get(e)??0;G4.set(e,t+1),Ok.set(e,To()),db==null||db.mark(e),typeof onProfilerEvent=="function"&&onProfilerEvent(e)}}function bf(e,t,n){if(Fk){const i=(n!==void 0?Ok.get(n):void 0)??To(),s=(t!==void 0?Ok.get(t):void 0)??lee,o=Lk.get(e)||0;Lk.set(e,o+(i-s)),db==null||db.measure(e,t,n)}}function eFe(e){return G4.get(e)||0}function tFe(e){return Lk.get(e)||0}function rFe(e){Lk.forEach((t,n)=>e(n,t))}function nFe(e){Ok.forEach((t,n)=>e(n))}function iFe(e){e!==void 0?Lk.delete(e):Lk.clear(),db==null||db.clearMeasures(e)}function sFe(e){e!==void 0?(G4.delete(e),Ok.delete(e)):(G4.clear(),Ok.clear()),db==null||db.clearMarks(e)}function aFe(){return Fk}function oFe(e=zl){var t;return Fk||(Fk=!0,xD||(xD=oee()),xD&&(lee=xD.performance.timeOrigin,(xD.shouldWriteNativeEvents||(t=e==null?void 0:e.cpuProfilingEnabled)!=null&&t.call(e)||e!=null&&e.debugMode)&&(db=xD.performance))),!0}function cFe(){Fk&&(Ok.clear(),G4.clear(),Lk.clear(),db=void 0,Fk=!1)}var xD,db,wB,Fk,lee,Ok,G4,Lk,lFe=wt({"src/compiler/performance.ts"(){Fs(),wB={enter:Ca,exit:Ca},Fk=!1,lee=To(),Ok=new Map,G4=new Map,Lk=new Map}}),uee={};vl(uee,{clearMarks:()=>sFe,clearMeasures:()=>iFe,createTimer:()=>DB,createTimerIf:()=>I0e,disable:()=>cFe,enable:()=>oFe,forEachMark:()=>nFe,forEachMeasure:()=>rFe,getCount:()=>eFe,getDuration:()=>tFe,isEnabled:()=>aFe,mark:()=>Ao,measure:()=>bf,nullTimer:()=>wB});var mb=wt({"src/compiler/_namespaces/ts.performance.ts"(){lFe()}}),qr,kD,_ee,fee,uFe=wt({"src/compiler/tracing.ts"(){Fs(),mb(),(e=>{let t,n=0,i=0,s;const o=[];let c;const u=[];function f(re,R,Y){if(E.assert(!qr,"Tracing already started"),t===void 0)try{t=Pk}catch(ee){throw new Error(`tracing requires having fs -(original error: ${ee.message||ee})`)}s=re,o.length=0,c===void 0&&(c=Mn(R,"legend.json")),t.existsSync(R)||t.mkdirSync(R,{recursive:!0});const ue=s==="build"?`.${process.pid}-${++n}`:s==="server"?`.${process.pid}`:"",pe=Mn(R,`trace${ue}.json`),H=Mn(R,`types${ue}.json`);u.push({configFilePath:Y,tracePath:pe,typesPath:H}),i=t.openSync(pe,"w"),qr=e;const q={cat:"__metadata",ph:"M",ts:1e3*To(),pid:1,tid:1};t.writeSync(i,`[ +`;function Ce(_t,Tt){V[_t]+=Tt}}function W(A){switch(A){case 3:return"│";case 12:return"─";case 5:return"╯";case 9:return"╰";case 6:return"╮";case 10:return"╭";case 7:return"┤";case 11:return"├";case 13:return"┴";case 14:return"┬";case 15:return"╫"}return" "}function Pe(A,le){if(A.fill)A.fill(le);else for(let V=0;V0?A.repeat(le):"";let V="";for(;V.length=",i.version)),_p(s.major)||n.push(_p(s.minor)?Em("<",s.version.increment("major")):_p(s.patch)?Em("<",s.version.increment("minor")):Em("<=",s.version)),!0):!1}function W5e(e,t,n){const i=iee(t);if(!i)return!1;const{version:s,major:o,minor:c,patch:u}=i;if(_p(o))(e==="<"||e===">")&&n.push(Em("<",Lp.zero));else switch(e){case"~":n.push(Em(">=",s)),n.push(Em("<",s.increment(_p(c)?"major":"minor")));break;case"^":n.push(Em(">=",s)),n.push(Em("<",s.increment(s.major>0||_p(c)?"major":s.minor>0||_p(u)?"minor":"patch")));break;case"<":case">=":n.push(_p(c)||_p(u)?Em(e,s.with({prerelease:"0"})):Em(e,s));break;case"<=":case">":n.push(_p(c)?Em(e==="<="?"<":">=",s.increment("major").with({prerelease:"0"})):_p(u)?Em(e==="<="?"<":">=",s.increment("minor").with({prerelease:"0"})):Em(e,s));break;case"=":case void 0:_p(c)||_p(u)?(n.push(Em(">=",s.with({prerelease:"0"}))),n.push(Em("<",s.increment(_p(c)?"major":"minor").with({prerelease:"0"})))):n.push(Em("=",s));break;default:return!1}return!0}function _p(e){return e==="*"||e==="x"||e==="X"}function Em(e,t){return{operator:e,operand:t}}function V5e(e,t){if(t.length===0)return!0;for(const n of t)if(U5e(e,n))return!0;return!1}function U5e(e,t){for(const n of t)if(!q5e(e,n.operator,n.operand))return!1;return!0}function q5e(e,t,n){const i=e.compareTo(n);switch(t){case"<":return i<0;case"<=":return i<=0;case">":return i>0;case">=":return i>=0;case"=":return i===0;default:return E.assertNever(t)}}function H5e(e){return nr(e,G5e).join(" || ")||"*"}function G5e(e){return nr(e,$5e).join(" ")}function $5e(e){return`${e.operator}${e.operand}`}var S0e,T0e,x0e,k0e,C0e,see,kB,Lp,SD,E0e,P0e,D0e,w0e,A0e,X5e=Dt({"src/compiler/semver.ts"(){Fs(),S0e=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,T0e=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,x0e=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,k0e=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,C0e=/^[a-z0-9-]+$/i,see=/^(0|[1-9]\d*)$/,kB=class GI{constructor(t,n=0,i=0,s="",o=""){typeof t=="string"&&({major:t,minor:n,patch:i,prerelease:s,build:o}=E.checkDefined(v0e(t),"Invalid version")),E.assert(t>=0,"Invalid argument: major"),E.assert(n>=0,"Invalid argument: minor"),E.assert(i>=0,"Invalid argument: patch");const c=s?ts(s)?s:s.split("."):Ve,u=o?ts(o)?o:o.split("."):Ve;E.assert(Wi(c,f=>x0e.test(f)),"Invalid argument: prerelease"),E.assert(Wi(u,f=>C0e.test(f)),"Invalid argument: build"),this.major=t,this.minor=n,this.patch=i,this.prerelease=c,this.build=u}static tryParse(t){const n=v0e(t);if(!n)return;const{major:i,minor:s,patch:o,prerelease:c,build:u}=n;return new GI(i,s,o,c,u)}compareTo(t){return this===t?0:t===void 0?1:Ao(this.major,t.major)||Ao(this.minor,t.minor)||Ao(this.patch,t.patch)||J5e(this.prerelease,t.prerelease)}increment(t){switch(t){case"major":return new GI(this.major+1,0,0);case"minor":return new GI(this.major,this.minor+1,0);case"patch":return new GI(this.major,this.minor,this.patch+1);default:return E.assertNever(t)}}with(t){const{major:n=this.major,minor:i=this.minor,patch:s=this.patch,prerelease:o=this.prerelease,build:c=this.build}=t;return new GI(n,i,s,o,c)}toString(){let t=`${this.major}.${this.minor}.${this.patch}`;return ct(this.prerelease)&&(t+=`-${this.prerelease.join(".")}`),ct(this.build)&&(t+=`+${this.build.join(".")}`),t}},kB.zero=new kB(0,0,0,["0"]),Lp=kB,SD=class x5e{constructor(t){this._alternatives=t?E.checkDefined(b0e(t),"Invalid range spec."):Ve}static tryParse(t){const n=b0e(t);if(n){const i=new x5e("");return i._alternatives=n,i}}test(t){return typeof t=="string"&&(t=new Lp(t)),V5e(t,this._alternatives)}toString(){return H5e(this._alternatives)}},E0e=/\|\|/g,P0e=/\s+/g,D0e=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,w0e=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,A0e=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i}});function N0e(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 Q5e(){if(typeof performance=="object"&&typeof PerformanceObserver=="function"&&N0e(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance,PerformanceObserver}}function Y5e(){if(vB())try{const{performance:e,PerformanceObserver:t}=Ek;if(N0e(e,t))return{shouldWriteNativeEvents:!1,performance:e,PerformanceObserver:t}}catch{}}function aee(){return CB}var CB,oee,xo,Z5e=Dt({"src/compiler/performanceCore.ts"(){Fs(),CB=Q5e()||Y5e(),oee=CB==null?void 0:CB.performance,xo=oee?()=>oee.now():Date.now?Date.now:()=>+new Date}}),l7,wu,K5e=Dt({"src/compiler/perfLogger.ts"(){try{const e=M0.TS_ETW_MODULE_PATH??"./node_modules/@microsoft/typescript-etw";l7=T5e(e)}catch{l7=void 0}wu=l7!=null&&l7.logEvent?l7:void 0}});function I0e(e,t,n,i){return e?EB(t,n,i):PB}function EB(e,t,n){let i=0;return{enter:s,exit:o};function s(){++i===1&&No(t)}function o(){--i===0?(No(n),vf(e,t,n)):i<0&&E.fail("enter/exit count does not match.")}}function No(e){if(Fk){const t=H4.get(e)??0;H4.set(e,t+1),Ok.set(e,xo()),pb==null||pb.mark(e),typeof onProfilerEvent=="function"&&onProfilerEvent(e)}}function vf(e,t,n){if(Fk){const i=(n!==void 0?Ok.get(n):void 0)??xo(),s=(t!==void 0?Ok.get(t):void 0)??cee,o=Lk.get(e)||0;Lk.set(e,o+(i-s)),pb==null||pb.measure(e,t,n)}}function eFe(e){return H4.get(e)||0}function tFe(e){return Lk.get(e)||0}function rFe(e){Lk.forEach((t,n)=>e(n,t))}function nFe(e){Ok.forEach((t,n)=>e(n))}function iFe(e){e!==void 0?Lk.delete(e):Lk.clear(),pb==null||pb.clearMeasures(e)}function sFe(e){e!==void 0?(H4.delete(e),Ok.delete(e)):(H4.clear(),Ok.clear()),pb==null||pb.clearMarks(e)}function aFe(){return Fk}function oFe(e=zl){var t;return Fk||(Fk=!0,TD||(TD=aee()),TD&&(cee=TD.performance.timeOrigin,(TD.shouldWriteNativeEvents||(t=e==null?void 0:e.cpuProfilingEnabled)!=null&&t.call(e)||e!=null&&e.debugMode)&&(pb=TD.performance))),!0}function cFe(){Fk&&(Ok.clear(),H4.clear(),Lk.clear(),pb=void 0,Fk=!1)}var TD,pb,PB,Fk,cee,Ok,H4,Lk,lFe=Dt({"src/compiler/performance.ts"(){Fs(),PB={enter:Ca,exit:Ca},Fk=!1,cee=xo(),Ok=new Map,H4=new Map,Lk=new Map}}),lee={};Gc(lee,{clearMarks:()=>sFe,clearMeasures:()=>iFe,createTimer:()=>EB,createTimerIf:()=>I0e,disable:()=>cFe,enable:()=>oFe,forEachMark:()=>nFe,forEachMeasure:()=>rFe,getCount:()=>eFe,getDuration:()=>tFe,isEnabled:()=>aFe,mark:()=>No,measure:()=>vf,nullTimer:()=>PB});var db=Dt({"src/compiler/_namespaces/ts.performance.ts"(){lFe()}}),qr,xD,uee,_ee,uFe=Dt({"src/compiler/tracing.ts"(){Fs(),db(),(e=>{let t,n=0,i=0,s;const o=[];let c;const u=[];function f(re,R,Y){if(E.assert(!qr,"Tracing already started"),t===void 0)try{t=Ek}catch(ee){throw new Error(`tracing requires having fs +(original error: ${ee.message||ee})`)}s=re,o.length=0,c===void 0&&(c=Mn(R,"legend.json")),t.existsSync(R)||t.mkdirSync(R,{recursive:!0});const ue=s==="build"?`.${process.pid}-${++n}`:s==="server"?`.${process.pid}`:"",pe=Mn(R,`trace${ue}.json`),H=Mn(R,`types${ue}.json`);u.push({configFilePath:Y,tracePath:pe,typesPath:H}),i=t.openSync(pe,"w"),qr=e;const q={cat:"__metadata",ph:"M",ts:1e3*xo(),pid:1,tid:1};t.writeSync(i,`[ `+[{name:"process_name",args:{name:"tsc"},...q},{name:"thread_name",args:{name:"Main"},...q},{name:"TracingStartedInBrowser",...q,cat:"disabled-by-default-devtools.timeline"}].map(ee=>JSON.stringify(ee)).join(`, `))}e.startTracing=f;function g(){E.assert(qr,"Tracing is not in progress"),E.assert(!!o.length==(s!=="server")),t.writeSync(i,` ] -`),t.closeSync(i),qr=void 0,o.length?$(o):u[u.length-1].typesPath=void 0}e.stopTracing=g;function d(re){s!=="server"&&o.push(re)}e.recordType=d,(re=>{re.Parse="parse",re.Program="program",re.Bind="bind",re.Check="check",re.CheckTypes="checkTypes",re.Emit="emit",re.Session="session"})(e.Phase||(e.Phase={}));function y(re,R,Y){J("I",re,R,Y,'"s":"g"')}e.instant=y;const S=[];function T(re,R,Y,ue=!1){ue&&J("B",re,R,Y),S.push({phase:re,name:R,args:Y,time:1e3*To(),separateBeginAndEnd:ue})}e.push=T;function k(re){E.assert(S.length>0),F(S.length-1,1e3*To(),re),S.length--}e.pop=k;function w(){const re=1e3*To();for(let R=S.length-1;R>=0;R--)F(R,re);S.length=0}e.popAll=w;const P=1e3*10;function F(re,R,Y){const{phase:ue,name:pe,args:H,time:q,separateBeginAndEnd:ee}=S[re];ee?(E.assert(!Y,"`results` are not supported for events with `separateBeginAndEnd`"),J("E",ue,pe,H,void 0,R)):P-q%P<=R-q&&J("X",ue,pe,{...H,results:Y},`"dur":${R-q}`,q)}function J(re,R,Y,ue,pe,H=1e3*To()){s==="server"&&R==="checkTypes"||(Ao("beginTracing"),t.writeSync(i,`, -{"pid":1,"tid":1,"ph":"${re}","cat":"${R}","ts":${H},"name":"${Y}"`),pe&&t.writeSync(i,`,${pe}`),ue&&t.writeSync(i,`,"args":${JSON.stringify(ue)}`),t.writeSync(i,"}"),Ao("endTracing"),bf("Tracing","beginTracing","endTracing"))}function U(re){const R=wr(re);return R?{path:R.path,start:Y(Ha(R,re.pos)),end:Y(Ha(R,re.end))}:void 0;function Y(ue){return{line:ue.line+1,character:ue.character+1}}}function $(re){var R,Y,ue,pe,H,q,ee,oe,Se,ae,K,fe,ke,Oe,me,be,xe,De,ft;Ao("beginDumpTypes");const ge=u[u.length-1].typesPath,Fe=t.openSync(ge,"w"),$e=new Map;t.writeSync(Fe,"[");const Pt=re.length;for(let at=0;at_i.id),referenceLocation:U(yr.node)}}let tr={};if(Je.flags&16777216){const yr=Je;tr={conditionalCheckType:(q=yr.checkType)==null?void 0:q.id,conditionalExtendsType:(ee=yr.extendsType)==null?void 0:ee.id,conditionalTrueType:((oe=yr.resolvedTrueType)==null?void 0:oe.id)??-1,conditionalFalseType:((Se=yr.resolvedFalseType)==null?void 0:Se.id)??-1}}let jt={};if(Je.flags&33554432){const yr=Je;jt={substitutionBaseType:(ae=yr.baseType)==null?void 0:ae.id,constraintType:(K=yr.constraint)==null?void 0:K.id}}let Rt={};if(pt&1024){const yr=Je;Rt={reverseMappedSourceType:(fe=yr.source)==null?void 0:fe.id,reverseMappedMappedType:(ke=yr.mappedType)==null?void 0:ke.id,reverseMappedConstraintType:(Oe=yr.constraintType)==null?void 0:Oe.id}}let Kn={};if(pt&256){const yr=Je;Kn={evolvingArrayElementType:yr.elementType.id,evolvingArrayFinalType:(me=yr.finalArrayType)==null?void 0:me.id}}let Ji;const yi=Je.checker.getRecursionIdentity(Je);yi&&(Ji=$e.get(yi),Ji||(Ji=$e.size,$e.set(yi,Ji)));const os={id:Je.id,intrinsicName:Je.intrinsicName,symbolName:(zt==null?void 0:zt.escapedName)&&xi(zt.escapedName),recursionId:Ji,isTuple:pt&8?!0:void 0,unionTypes:Je.flags&1048576?(be=Je.types)==null?void 0:be.map(yr=>yr.id):void 0,intersectionTypes:Je.flags&2097152?Je.types.map(yr=>yr.id):void 0,aliasTypeArguments:(xe=Je.aliasTypeArguments)==null?void 0:xe.map(yr=>yr.id),keyofType:Je.flags&4194304?(De=Je.type)==null?void 0:De.id:void 0,...hr,...Lr,...tr,...jt,...Rt,...Kn,destructuringPattern:U(Je.pattern),firstDeclaration:U((ft=zt==null?void 0:zt.declarations)==null?void 0:ft[0]),flags:E.formatTypeFlags(Je.flags).split("|"),display:Vt};t.writeSync(Fe,JSON.stringify(os)),at{re.Parse="parse",re.Program="program",re.Bind="bind",re.Check="check",re.CheckTypes="checkTypes",re.Emit="emit",re.Session="session"})(e.Phase||(e.Phase={}));function y(re,R,Y){J("I",re,R,Y,'"s":"g"')}e.instant=y;const S=[];function T(re,R,Y,ue=!1){ue&&J("B",re,R,Y),S.push({phase:re,name:R,args:Y,time:1e3*xo(),separateBeginAndEnd:ue})}e.push=T;function k(re){E.assert(S.length>0),F(S.length-1,1e3*xo(),re),S.length--}e.pop=k;function w(){const re=1e3*xo();for(let R=S.length-1;R>=0;R--)F(R,re);S.length=0}e.popAll=w;const P=1e3*10;function F(re,R,Y){const{phase:ue,name:pe,args:H,time:q,separateBeginAndEnd:ee}=S[re];ee?(E.assert(!Y,"`results` are not supported for events with `separateBeginAndEnd`"),J("E",ue,pe,H,void 0,R)):P-q%P<=R-q&&J("X",ue,pe,{...H,results:Y},`"dur":${R-q}`,q)}function J(re,R,Y,ue,pe,H=1e3*xo()){s==="server"&&R==="checkTypes"||(No("beginTracing"),t.writeSync(i,`, +{"pid":1,"tid":1,"ph":"${re}","cat":"${R}","ts":${H},"name":"${Y}"`),pe&&t.writeSync(i,`,${pe}`),ue&&t.writeSync(i,`,"args":${JSON.stringify(ue)}`),t.writeSync(i,"}"),No("endTracing"),vf("Tracing","beginTracing","endTracing"))}function U(re){const R=wr(re);return R?{path:R.path,start:Y(Ha(R,re.pos)),end:Y(Ha(R,re.end))}:void 0;function Y(ue){return{line:ue.line+1,character:ue.character+1}}}function $(re){var R,Y,ue,pe,H,q,ee,oe,Se,ae,K,fe,ke,Oe,me,be,xe,De,ft;No("beginDumpTypes");const ge=u[u.length-1].typesPath,Fe=t.openSync(ge,"w"),$e=new Map;t.writeSync(Fe,"[");const Pt=re.length;for(let at=0;at_i.id),referenceLocation:U(yr.node)}}let er={};if(Je.flags&16777216){const yr=Je;er={conditionalCheckType:(q=yr.checkType)==null?void 0:q.id,conditionalExtendsType:(ee=yr.extendsType)==null?void 0:ee.id,conditionalTrueType:((oe=yr.resolvedTrueType)==null?void 0:oe.id)??-1,conditionalFalseType:((Se=yr.resolvedFalseType)==null?void 0:Se.id)??-1}}let jt={};if(Je.flags&33554432){const yr=Je;jt={substitutionBaseType:(ae=yr.baseType)==null?void 0:ae.id,constraintType:(K=yr.constraint)==null?void 0:K.id}}let Rt={};if(pt&1024){const yr=Je;Rt={reverseMappedSourceType:(fe=yr.source)==null?void 0:fe.id,reverseMappedMappedType:(ke=yr.mappedType)==null?void 0:ke.id,reverseMappedConstraintType:(Oe=yr.constraintType)==null?void 0:Oe.id}}let Kn={};if(pt&256){const yr=Je;Kn={evolvingArrayElementType:yr.elementType.id,evolvingArrayFinalType:(me=yr.finalArrayType)==null?void 0:me.id}}let Ji;const yi=Je.checker.getRecursionIdentity(Je);yi&&(Ji=$e.get(yi),Ji||(Ji=$e.size,$e.set(yi,Ji)));const os={id:Je.id,intrinsicName:Je.intrinsicName,symbolName:(zt==null?void 0:zt.escapedName)&&xi(zt.escapedName),recursionId:Ji,isTuple:pt&8?!0:void 0,unionTypes:Je.flags&1048576?(be=Je.types)==null?void 0:be.map(yr=>yr.id):void 0,intersectionTypes:Je.flags&2097152?Je.types.map(yr=>yr.id):void 0,aliasTypeArguments:(xe=Je.aliasTypeArguments)==null?void 0:xe.map(yr=>yr.id),keyofType:Je.flags&4194304?(De=Je.type)==null?void 0:De.id:void 0,...hr,...Lr,...er,...jt,...Rt,...Kn,destructuringPattern:U(Je.pattern),firstDeclaration:U((ft=zt==null?void 0:zt.declarations)==null?void 0:ft[0]),flags:E.formatTypeFlags(Je.flags).split("|"),display:Vt};t.writeSync(Fe,JSON.stringify(os)),at(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))(p7||{}),d7=(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))(d7||{}),m7=(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))(m7||{}),AB=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(AB||{}),g7=(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))(g7||{}),h7=(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))(h7||{}),NB=(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))(NB||{}),CD=(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))(CD||{}),IB=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(IB||{}),Mk=class{},y7=(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))(y7||{}),FB=(e=>(e[e.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.ResolutionDiagnostics=2]="ResolutionDiagnostics",e))(FB||{}),OB=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e))(OB||{}),v7=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))(v7||{}),LB=(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))(LB||{}),MB=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(MB||{}),RB=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(RB||{}),jB=(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))(jB||{}),BB=(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))(BB||{}),JB=(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))(JB||{}),zB=(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))(zB||{}),WB=(e=>(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e))(WB||{}),VB=(e=>(e[e.UnionOrIntersection=0]="UnionOrIntersection",e[e.Spread=1]="Spread",e))(VB||{}),UB=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(UB||{}),qB=(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))(qB||{}),b7=(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))(b7||{}),HB=(e=>(e[e.Numeric=0]="Numeric",e[e.Literal=1]="Literal",e))(HB||{}),GB=(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))(GB||{}),$B=(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))($B||{}),XB=(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))(XB||{}),S7=(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))(S7||{}),T7=(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))(T7||{}),QB=(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))(QB||{}),YB=(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))(YB||{}),ZB=(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))(ZB||{}),KB=(e=>(e[e.None=0]="None",e[e.StringsOnly=1]="StringsOnly",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.NoReducibleCheck=4]="NoReducibleCheck",e))(KB||{}),eJ=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))(eJ||{}),tJ=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))(tJ||{}),x7=(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))(x7||{}),rJ=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(rJ||{}),nJ=(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))(nJ||{}),iJ=(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))(iJ||{}),sJ=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(sJ||{}),aJ=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))(aJ||{}),oJ=(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))(oJ||{}),ED=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(ED||{}),Rk=(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))(Rk||{}),cJ=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))(cJ||{}),lJ=(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))(lJ||{}),uJ=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(uJ||{}),_J=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))(_J||{}),$4=(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))($4||{}),fJ=(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))(fJ||{}),pJ=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))(pJ||{}),dJ=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(dJ||{}),k7=(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))(k7||{}),mJ=(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))(mJ||{}),gJ=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(gJ||{}),hJ=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))(hJ||{}),yJ=(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))(yJ||{}),vJ=(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))(vJ||{}),C7=(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))(C7||{}),E7=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(E7||{}),P7=(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))(P7||{}),bJ=(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))(bJ||{}),SJ=(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))(SJ||{}),TJ=(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))(TJ||{}),xJ=(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))(xJ||{}),kJ=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))(kJ||{}),CJ=(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))(CJ||{}),EJ=(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))(EJ||{}),PJ=(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))(PJ||{}),PD={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}},DJ=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))(DJ||{})}});function X4(e){let t=5381;for(let n=0;n{U.isClosed=!0,ST(t,U)}}}function u(P){const F=[];return F.pollingInterval=P,F.pollIndex=0,F.pollScheduled=!1,F}function f(P,F){F.pollIndex=d(F,F.pollingInterval,F.pollIndex,A7[F.pollingInterval]),F.length?w(F.pollingInterval):(E.assert(F.pollIndex===0),F.pollScheduled=!1)}function g(P,F){d(n,250,0,n.length),f(P,F),!F.pollScheduled&&n.length&&w(250)}function d(P,F,J,U){return L0e(e,P,J,U,$);function $(j,re,R){R?(j.unchangedPolls=0,P!==n&&(P[re]=void 0,T(j))):j.unchangedPolls!==wD[F]?j.unchangedPolls++:P===n?(j.unchangedPolls=1,P[re]=void 0,S(j,250)):F!==2e3&&(j.unchangedPolls++,P[re]=void 0,S(j,F===250?500:2e3))}}function y(P){switch(P){case 250:return i;case 500:return s;case 2e3:return o}}function S(P,F){y(F).push(P),k(F)}function T(P){n.push(P),k(250)}function k(P){y(P).pollScheduled||w(P)}function w(P){y(P).pollScheduled=e.setTimeout(P===250?g:f,P,P===250?"pollLowPollingIntervalQueue":"pollPollingIntervalQueue",y(P))}}function pFe(e,t,n,i){const s=vf(),o=i?new Map:void 0,c=new Map,u=nu(t);return f;function f(d,y,S,T){const k=u(d);s.add(k,y).length===1&&o&&o.set(k,n(d)||rf);const w=Un(k)||".",P=c.get(w)||g(Un(d)||".",w,T);return P.referenceCount++,{close:()=>{P.referenceCount===1?(P.close(),c.delete(w)):P.referenceCount--,s.remove(k,y)}}}function g(d,y,S){const T=e(d,1,(k,w)=>{if(!ls(w))return;const P=Xi(w,d),F=u(P),J=P&&s.get(F);if(J){let U,$=1;if(o){const j=o.get(F);if(k==="change"&&(U=n(P)||rf,U.getTime()===j.getTime()))return;U||(U=n(P)||rf),o.set(F,U),j===rf?$=0:U===rf&&($=2)}for(const j of J)j(P,$,U)}},!1,500,S);return T.referenceCount=0,c.set(y,T),T}}function dFe(e){const t=[];let n=0,i;return s;function s(u,f){const g={fileName:u,callback:f,mtime:xT(e,u)};return t.push(g),c(),{close:()=>{g.isClosed=!0,ST(t,g)}}}function o(){i=void 0,n=L0e(e,t,n,A7[250]),c()}function c(){!t.length||i||(i=e.setTimeout(o,2e3,"pollQueue"))}}function M0e(e,t,n,i,s){const c=nu(t)(n),u=e.get(c);return u?u.callbacks.push(i):e.set(c,{watcher:s((f,g,d)=>{var y;return(y=e.get(c))==null?void 0:y.callbacks.slice().forEach(S=>S(f,g,d))}),callbacks:[i]}),{close:()=>{const f=e.get(c);f&&(!Ik(f.callbacks,i)||f.callbacks.length||(e.delete(c),Qf(f)))}}}function mFe(e,t){const n=e.mtime.getTime(),i=t.getTime();return n!==i?(e.mtime=t,e.callback(e.fileName,wJ(n,i),t),!0):!1}function wJ(e,t){return e===0?0:t===0?2:1}function DD(e){return hee(e)}function dee(e){hee=e}function gFe({watchDirectory:e,useCaseSensitiveFileNames:t,getCurrentDirectory:n,getAccessibleSortedChildDirectories:i,fileSystemEntryExists:s,realpath:o,setTimeout:c,clearTimeout:u}){const f=new Map,g=vf(),d=new Map;let y;const S=Ak(!t),T=nu(t);return(R,Y,ue,pe)=>ue?k(R,pe,Y):e(R,Y,ue,pe);function k(R,Y,ue){const pe=T(R);let H=f.get(pe);H?H.refCount++:(H={watcher:e(R,ee=>{j(ee,Y)||(Y!=null&&Y.synchronousWatchDirectory?(w(pe,ee),$(R,pe,Y)):P(R,pe,ee,Y))},!1,Y),refCount:1,childWatches:Ve},f.set(pe,H),$(R,pe,Y));const q=ue&&{dirName:R,callback:ue};return q&&g.add(pe,q),{dirName:R,close:()=>{const ee=E.checkDefined(f.get(pe));q&&g.remove(pe,q),ee.refCount--,!ee.refCount&&(f.delete(pe),Qf(ee),ee.childWatches.forEach(md))}}}function w(R,Y,ue){let pe,H;ls(Y)?pe=Y:H=Y,g.forEach((q,ee)=>{if(!(H&&H.get(ee)===!0)&&(ee===R||Vi(R,ee)&&R[ee.length]===Io))if(H)if(ue){const oe=H.get(ee);oe?oe.push(...ue):H.set(ee,ue.slice())}else H.set(ee,!0);else q.forEach(({callback:oe})=>oe(pe))})}function P(R,Y,ue,pe){const H=f.get(Y);if(H&&s(R,1)){F(R,Y,ue,pe);return}w(Y,ue),U(H)}function F(R,Y,ue,pe){const H=d.get(Y);H?H.fileNames.push(ue):d.set(Y,{dirName:R,options:pe,fileNames:[ue]}),y&&(u(y),y=void 0),y=c(J,1e3,"timerToUpdateChildWatches")}function J(){y=void 0,DD(`sysLog:: onTimerToUpdateChildWatches:: ${d.size}`);const R=To(),Y=new Map;for(;!y&&d.size;){const pe=d.entries().next();E.assert(!pe.done);const{value:[H,{dirName:q,options:ee,fileNames:oe}]}=pe;d.delete(H);const Se=$(q,H,ee);w(H,Y,Se?void 0:oe)}DD(`sysLog:: invokingWatchers:: Elapsed:: ${To()-R}ms:: ${d.size}`),g.forEach((pe,H)=>{const q=Y.get(H);q&&pe.forEach(({callback:ee,dirName:oe})=>{ts(q)?q.forEach(ee):ee(oe)})});const ue=To()-R;DD(`sysLog:: Elapsed:: ${ue}ms:: onTimerToUpdateChildWatches:: ${d.size} ${y}`)}function U(R){if(!R)return;const Y=R.childWatches;R.childWatches=Ve;for(const ue of Y)ue.close(),U(f.get(T(ue.dirName)))}function $(R,Y,ue){const pe=f.get(Y);if(!pe)return!1;let H;const q=l7(s(R,1)?Ri(i(R),Se=>{const ae=Xi(Se,R);return!j(ae,ue)&&S(ae,Hs(o(ae)))===0?ae:void 0}):Ve,pe.childWatches,(Se,ae)=>S(Se,ae.dirName),ee,md,oe);return pe.childWatches=H||Ve,q;function ee(Se){const ae=k(Se,ue);oe(ae)}function oe(Se){(H||(H=[])).push(Se)}}function j(R,Y){return ct(AD,ue=>re(R,ue))||R0e(R,Y,t,n)}function re(R,Y){return R.includes(Y)?!0:t?!1:T(R).includes(Y)}}function hFe(e){return(t,n,i)=>e(n===1?"change":"rename","",i)}function yFe(e,t,n){return(i,s,o)=>{i==="rename"?(o||(o=n(e)||rf),t(e,o!==rf?0:2,o)):t(e,1,o)}}function R0e(e,t,n,i){return((t==null?void 0:t.excludeDirectories)||(t==null?void 0:t.excludeFiles))&&($O(e,t==null?void 0:t.excludeFiles,n,i())||$O(e,t==null?void 0:t.excludeDirectories,n,i()))}function j0e(e,t,n,i,s){return(o,c)=>{if(o==="rename"){const u=c?Hs(Mn(e,c)):e;(!c||!R0e(u,n,i,s))&&t(u)}}}function mee({pollingWatchFileWorker:e,getModifiedTime:t,setTimeout:n,clearTimeout:i,fsWatchWorker:s,fileSystemEntryExists:o,useCaseSensitiveFileNames:c,getCurrentDirectory:u,fsSupportsRecursiveFsWatch:f,getAccessibleSortedChildDirectories:g,realpath:d,tscWatchFile:y,useNonPollingWatchers:S,tscWatchDirectory:T,inodeWatching:k,fsWatchWithTimestamp:w,sysLog:P}){const F=new Map,J=new Map,U=new Map;let $,j,re,R,Y=!1;return{watchFile:ue,watchDirectory:oe};function ue(me,be,xe,De){De=q(De,S);const ft=E.checkDefined(De.watchFile);switch(ft){case 0:return K(me,be,250,void 0);case 1:return K(me,be,xe,void 0);case 2:return pe()(me,be,xe,void 0);case 3:return H()(me,be,void 0,void 0);case 4:return fe(me,0,yFe(me,be,t),!1,xe,kA(De));case 5:return re||(re=pFe(fe,c,t,w)),re(me,be,xe,kA(De));default:E.assertNever(ft)}}function pe(){return $||($=fFe({getModifiedTime:t,setTimeout:n}))}function H(){return j||(j=dFe({getModifiedTime:t,setTimeout:n}))}function q(me,be){if(me&&me.watchFile!==void 0)return me;switch(y){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return ee(4,1,me);case"UseFsEventsWithFallbackDynamicPolling":return ee(4,2,me);case"UseFsEventsOnParentDirectory":be=!0;default:return be?ee(5,1,me):{watchFile:4}}}function ee(me,be,xe){const De=xe==null?void 0:xe.fallbackPolling;return{watchFile:me,fallbackPolling:De===void 0?be:De}}function oe(me,be,xe,De){return f?fe(me,1,j0e(me,be,De,c,u),xe,500,kA(De)):(R||(R=gFe({useCaseSensitiveFileNames:c,getCurrentDirectory:u,fileSystemEntryExists:o,getAccessibleSortedChildDirectories:g,watchDirectory:Se,realpath:d,setTimeout:n,clearTimeout:i})),R(me,be,xe,De))}function Se(me,be,xe,De){E.assert(!xe);const ft=ae(De),ge=E.checkDefined(ft.watchDirectory);switch(ge){case 1:return K(me,()=>be(me),500,void 0);case 2:return pe()(me,()=>be(me),500,void 0);case 3:return H()(me,()=>be(me),void 0,void 0);case 0:return fe(me,1,j0e(me,be,De,c,u),xe,500,kA(ft));default:E.assertNever(ge)}}function ae(me){if(me&&me.watchDirectory!==void 0)return me;switch(T){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:const be=me==null?void 0:me.fallbackPolling;return{watchDirectory:0,fallbackPolling:be!==void 0?be:void 0}}}function K(me,be,xe,De){return M0e(F,c,me,be,ft=>e(me,ft,xe,De))}function fe(me,be,xe,De,ft,ge){return M0e(De?U:J,c,me,xe,Fe=>ke(me,be,Fe,De,ft,ge))}function ke(me,be,xe,De,ft,ge){let Fe,$e;k&&(Fe=me.substring(me.lastIndexOf(Io)),$e=Fe.slice(Io.length));let Pt=o(me,be)?Je():Vt();return{close:()=>{Pt&&(Pt.close(),Pt=void 0)}};function at(hr){Pt&&(P(`sysLog:: ${me}:: Changing watcher to ${hr===Je?"Present":"Missing"}FileSystemEntryWatcher`),Pt.close(),Pt=hr())}function Je(){if(Y)return P(`sysLog:: ${me}:: Defaulting to watchFile`),zt();try{const hr=(be===1||!w?s:Oe)(me,De,k?pt:xe);return hr.on("error",()=>{xe("rename",""),at(Vt)}),hr}catch(hr){return Y||(Y=hr.code==="ENOSPC"),P(`sysLog:: ${me}:: Changing to watchFile`),zt()}}function pt(hr,Lr){let tr;if(Lr&&Yo(Lr,"~")&&(tr=Lr,Lr=Lr.slice(0,Lr.length-1)),hr==="rename"&&(!Lr||Lr===$e||Yo(Lr,Fe))){const jt=t(me)||rf;tr&&xe(hr,tr,jt),xe(hr,Lr,jt),k?at(jt===rf?Vt:Je):jt===rf&&at(Vt)}else tr&&xe(hr,tr),xe(hr,Lr)}function zt(){return ue(me,hFe(xe),ft,ge)}function Vt(){return ue(me,(hr,Lr,tr)=>{Lr===0&&(tr||(tr=t(me)||rf),tr!==rf&&(xe("rename","",tr),at(Je)))},ft,ge)}}function Oe(me,be,xe){let De=t(me)||rf;return s(me,be,(ft,ge,Fe)=>{ft==="change"&&(Fe||(Fe=t(me)||rf),Fe.getTime()===De.getTime())||(De=Fe||t(me)||rf,xe(ft,ge,De))})}}function gee(e){const t=e.writeFile;e.writeFile=(n,i,s)=>fW(n,i,!!s,(o,c,u)=>t.call(e,o,c,u),o=>e.createDirectory(o),o=>e.directoryExists(o))}function B0e(e){zl=e}var AJ,D7,rf,w7,A7,wD,AD,hee,NJ,zl,vFe=wt({"src/compiler/sys.ts"(){Fs(),AJ=(e=>(e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",e))(AJ||{}),D7=(e=>(e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low",e))(D7||{}),rf=new Date(0),w7={Low:32,Medium:64,High:256},A7=pee(w7),wD=pee(w7),AD=["/node_modules/.","/.git","/.#"],hee=Ca,NJ=(e=>(e[e.File=0]="File",e[e.Directory=1]="Directory",e))(NJ||{}),zl=(()=>{const e="\uFEFF";function t(){const i=/^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/,s=Pk,o=Pk,c=Pk;let u;try{u=Pk}catch{u=void 0}let f,g="./profile.cpuprofile";const d=Pk.Buffer,y=process.platform==="darwin",S=process.platform==="linux"||y,T=c.platform(),k=H(),w=s.realpathSync.native?process.platform==="win32"?De:s.realpathSync.native:s.realpathSync,P=__filename.endsWith("sys.js")?o.join(o.dirname(__dirname),"__fake__.js"):__filename,F=process.platform==="win32"||y,J=Hu(()=>process.cwd()),{watchFile:U,watchDirectory:$}=mee({pollingWatchFileWorker:ee,getModifiedTime:ge,setTimeout,clearTimeout,fsWatchWorker:oe,useCaseSensitiveFileNames:k,getCurrentDirectory:J,fileSystemEntryExists:Oe,fsSupportsRecursiveFsWatch:F,getAccessibleSortedChildDirectories:at=>fe(at).directories,realpath:ft,tscWatchFile:M0.TSC_WATCHFILE,useNonPollingWatchers:!!M0.TSC_NONPOLLING_WATCHER,tscWatchDirectory:M0.TSC_WATCHDIRECTORY,inodeWatching:S,fsWatchWithTimestamp:y,sysLog:DD}),j={args:process.argv.slice(2),newLine:c.EOL,useCaseSensitiveFileNames:k,write(at){process.stdout.write(at)},getWidthOfTerminal(){return process.stdout.columns},writeOutputIsTTY(){return process.stdout.isTTY},readFile:ae,writeFile:K,watchFile:U,watchDirectory:$,resolvePath:at=>o.resolve(at),fileExists:me,directoryExists:be,getAccessibleFileSystemEntries:fe,createDirectory(at){if(!j.directoryExists(at))try{s.mkdirSync(at)}catch(Je){if(Je.code!=="EEXIST")throw Je}},getExecutingFilePath(){return P},getCurrentDirectory:J,getDirectories:xe,getEnvironmentVariable(at){return M0[at]||""},readDirectory:ke,getModifiedTime:ge,setModifiedTime:Fe,deleteFile:$e,createHash:u?Pt:X4,createSHA256Hash:u?Pt:void 0,getMemoryUsage(){return S5e.gc&&S5e.gc(),process.memoryUsage().heapUsed},getFileSize(at){try{const Je=re(at);if(Je!=null&&Je.isFile())return Je.size}catch{}return 0},exit(at){ue(()=>process.exit(at))},enableCPUProfiler:R,disableCPUProfiler:ue,cpuProfilingEnabled:()=>!!f||bs(process.execArgv,"--cpu-prof")||bs(process.execArgv,"--prof"),realpath:ft,debugMode:!!M0.NODE_INSPECTOR_IPC||!!M0.VSCODE_INSPECTOR_OPTIONS||ct(process.execArgv,at=>/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(at))||!!process.recordreplay,tryEnableSourceMapsForHost(){try{Pk.install()}catch{}},setTimeout,clearTimeout,clearScreen:()=>{process.stdout.write("\x1Bc")},setBlocking:()=>{var at;const Je=(at=process.stdout)==null?void 0:at._handle;Je&&Je.setBlocking&&Je.setBlocking(!0)},bufferFrom:pe,base64decode:at=>pe(at,"base64").toString("utf8"),base64encode:at=>pe(at).toString("base64"),require:(at,Je)=>{try{const pt=_se(Je,at,j);return{module:T5e(pt),modulePath:pt,error:void 0}}catch(pt){return{module:void 0,modulePath:void 0,error:pt}}}};return j;function re(at){return s.statSync(at,{throwIfNoEntry:!1})}function R(at,Je){if(f)return Je(),!1;const pt=Pk;if(!pt||!pt.Session)return Je(),!1;const zt=new pt.Session;return zt.connect(),zt.post("Profiler.enable",()=>{zt.post("Profiler.start",()=>{f=zt,g=at,Je()})}),!0}function Y(at){let Je=0;const pt=new Map,zt=iu(o.dirname(P)),Vt=`file://${Pm(zt)===1?"":"/"}${zt}`;for(const hr of at.nodes)if(hr.callFrame.url){const Lr=iu(hr.callFrame.url);jp(Vt,Lr,k)?hr.callFrame.url=CT(Vt,Lr,Vt,nu(k),!0):i.test(Lr)||(hr.callFrame.url=(pt.has(Lr)?pt:pt.set(Lr,`external${Je}.js`)).get(Lr),Je++)}return at}function ue(at){if(f&&f!=="stopping"){const Je=f;return f.post("Profiler.stop",(pt,{profile:zt})=>{var Vt;if(!pt){try{(Vt=re(g))!=null&&Vt.isDirectory()&&(g=o.join(g,`${new Date().toISOString().replace(/:/g,"-")}+P${process.pid}.cpuprofile`))}catch{}try{s.mkdirSync(o.dirname(g),{recursive:!0})}catch{}s.writeFileSync(g,JSON.stringify(Y(zt)))}f=void 0,Je.disconnect(),at()}),f="stopping",!0}else return at(),!1}function pe(at,Je){return d.from&&d.from!==Int8Array.from?d.from(at,Je):new d(at,Je)}function H(){return T==="win32"||T==="win64"?!1:!me(q(__filename))}function q(at){return at.replace(/\w/g,Je=>{const pt=Je.toUpperCase();return Je===pt?Je.toLowerCase():pt})}function ee(at,Je,pt){s.watchFile(at,{persistent:!0,interval:pt},Vt);let zt;return{close:()=>s.unwatchFile(at,Vt)};function Vt(hr,Lr){const tr=+Lr.mtime==0||zt===2;if(+hr.mtime==0){if(tr)return;zt=2}else if(tr)zt=0;else{if(+hr.mtime==+Lr.mtime)return;zt=1}Je(at,zt,hr.mtime)}}function oe(at,Je,pt){return s.watch(at,F?{persistent:!0,recursive:!!Je}:{persistent:!0},pt)}function Se(at,Je){let pt;try{pt=s.readFileSync(at)}catch{return}let zt=pt.length;if(zt>=2&&pt[0]===254&&pt[1]===255){zt&=-2;for(let Vt=0;Vt=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 ae(at,Je){var pt,zt;(pt=wu)==null||pt.logStartReadFile(at);const Vt=Se(at);return(zt=wu)==null||zt.logStopReadFile(),Vt}function K(at,Je,pt){var zt;(zt=wu)==null||zt.logEvent("WriteFile: "+at),pt&&(Je=e+Je);let Vt;try{Vt=s.openSync(at,"w"),s.writeSync(Vt,Je,void 0,"utf8")}finally{Vt!==void 0&&s.closeSync(Vt)}}function fe(at){var Je;(Je=wu)==null||Je.logEvent("ReadDir: "+(at||"."));try{const pt=s.readdirSync(at||".",{withFileTypes:!0}),zt=[],Vt=[];for(const hr of pt){const Lr=typeof hr=="string"?hr:hr.name;if(Lr==="."||Lr==="..")continue;let tr;if(typeof hr=="string"||hr.isSymbolicLink()){const jt=Mn(at,Lr);try{if(tr=re(jt),!tr)continue}catch{continue}}else tr=hr;tr.isFile()?zt.push(Lr):tr.isDirectory()&&Vt.push(Lr)}return zt.sort(),Vt.sort(),{files:zt,directories:Vt}}catch{return jF}}function ke(at,Je,pt,zt,Vt){return LW(at,Je,pt,zt,k,process.cwd(),Vt,fe,ft)}function Oe(at,Je){const pt=Error.stackTraceLimit;Error.stackTraceLimit=0;try{const zt=re(at);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 me(at){return Oe(at,0)}function be(at){return Oe(at,1)}function xe(at){return fe(at).directories.slice()}function De(at){return at.length<260?s.realpathSync.native(at):s.realpathSync(at)}function ft(at){try{return w(at)}catch{return at}}function ge(at){var Je;const pt=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return(Je=re(at))==null?void 0:Je.mtime}catch{return}finally{Error.stackTraceLimit=pt}}function Fe(at,Je){try{s.utimesSync(at,Je,Je)}catch{return}}function $e(at){try{return s.unlinkSync(at)}catch{return}}function Pt(at){const Je=u.createHash("sha256");return Je.update(at),Je.digest("hex")}}let n;return SB()&&(n=t()),n&&gee(n),n})(),zl&&zl.getEnvironmentVariable&&(_Fe(zl),E.setAssertionLevel(/^development$/i.test(zl.getEnvironmentVariable("NODE_ENV"))?1:0)),zl&&zl.debugMode&&(E.isDebugging=!0)}});function IJ(e){return e===47||e===92}function yee(e){return N7(e)<0}function F_(e){return N7(e)>0}function FJ(e){const t=N7(e);return t>0&&t===e.length}function Q4(e){return N7(e)!==0}function nf(e){return/^\.\.?($|[\\/])/.test(e)}function OJ(e){return!Q4(e)&&!nf(e)}function kT(e){return wc(e).includes(".")}function Zo(e,t){return e.length>t.length&&Yo(e,t)}function Gc(e,t){for(const n of t)if(Zo(e,n))return!0;return!1}function qh(e){return e.length>0&&IJ(e.charCodeAt(e.length-1))}function J0e(e){return e>=97&&e<=122||e>=65&&e<=90}function bFe(e,t){const n=e.charCodeAt(t);if(n===58)return t+1;if(n===37&&e.charCodeAt(t+1)===51){const i=e.charCodeAt(t+2);if(i===97||i===65)return t+3}return-1}function N7(e){if(!e)return 0;const t=e.charCodeAt(0);if(t===47||t===92){if(e.charCodeAt(1)!==t)return 1;const i=e.indexOf(t===47?Io:OD,2);return i<0?e.length:i+1}if(J0e(t)&&e.charCodeAt(1)===58){const i=e.charCodeAt(2);if(i===47||i===92)return 3;if(e.length===2)return 2}const n=e.indexOf(See);if(n!==-1){const i=n+See.length,s=e.indexOf(Io,i);if(s!==-1){const o=e.slice(0,n),c=e.slice(i,s);if(o==="file"&&(c===""||c==="localhost")&&J0e(e.charCodeAt(s+1))){const u=bFe(e,s+2);if(u!==-1){if(e.charCodeAt(u)===47)return~(u+1);if(u===e.length)return~u}}return~(s+1)}return~e.length}return 0}function Pm(e){const t=N7(e);return t<0?~t:t}function Un(e){e=iu(e);const t=Pm(e);return t===e.length?e:(e=d1(e),e.slice(0,Math.max(t,e.lastIndexOf(Io))))}function wc(e,t,n){if(e=iu(e),Pm(e)===e.length)return"";e=d1(e);const s=e.slice(Math.max(Pm(e),e.lastIndexOf(Io)+1)),o=t!==void 0&&n!==void 0?jk(s,t,n):void 0;return o?s.slice(0,s.length-o.length):s}function z0e(e,t,n){if(Vi(t,".")||(t="."+t),e.length>=t.length&&e.charCodeAt(e.length-t.length)===46){const i=e.slice(e.length-t.length);if(n(i,t))return i}}function SFe(e,t,n){if(typeof t=="string")return z0e(e,t,n)||"";for(const i of t){const s=z0e(e,i,n);if(s)return s}return""}function jk(e,t,n){if(t)return SFe(d1(e),t,n?p1:pb);const i=wc(e),s=i.lastIndexOf(".");return s>=0?i.substring(s):""}function TFe(e,t){const n=e.substring(0,t),i=e.substring(t).split(Io);return i.length&&!Po(i)&&i.pop(),[n,...i]}function ll(e,t=""){return e=Mn(t,e),TFe(e,Pm(e))}function V0(e,t){return e.length===0?"":(e[0]&&ul(e[0]))+e.slice(1,t).join(Io)}function iu(e){return e.includes("\\")?e.replace(U0e,Io):e}function hb(e){if(!ct(e))return[];const t=[e[0]];for(let n=1;n1){if(t[t.length-1]!==".."){t.pop();continue}}else if(t[0])continue}t.push(i)}}return t}function Mn(e,...t){e&&(e=iu(e));for(let n of t)n&&(n=iu(n),!e||Pm(n)!==0?e=n:e=ul(e)+n);return e}function U0(e,...t){return Hs(ct(t)?Mn(e,...t):iu(e))}function ND(e,t){return hb(ll(e,t))}function Xi(e,t){return V0(ND(e,t))}function Hs(e){if(e=iu(e),!F7.test(e))return e;const t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!F7.test(e)))return e;const n=V0(hb(ll(e)));return n&&qh(e)?ul(n):n}function xFe(e){return e.length===0?"":e.slice(1).join(Io)}function LJ(e,t){return xFe(ND(e,t))}function No(e,t,n){const i=F_(e)?Hs(e):Xi(e,t);return n(i)}function d1(e){return qh(e)?e.substr(0,e.length-1):e}function ul(e){return qh(e)?e:e+Io}function Fv(e){return!Q4(e)&&!nf(e)?"./"+e:e}function ID(e,t,n,i){const s=n!==void 0&&i!==void 0?jk(e,n,i):jk(e);return s?e.slice(0,e.length-s.length)+(Vi(t,".")?t:"."+t):e}function vee(e,t){const n=rU(e);return n?e.slice(0,e.length-n.length)+(Vi(t,".")?t:"."+t):ID(e,t)}function bee(e,t,n){if(e===t)return 0;if(e===void 0)return-1;if(t===void 0)return 1;const i=e.substring(0,Pm(e)),s=t.substring(0,Pm(t)),o=s7(i,s);if(o!==0)return o;const c=e.substring(i.length),u=t.substring(s.length);if(!F7.test(c)&&!F7.test(u))return n(c,u);const f=hb(ll(e)),g=hb(ll(t)),d=Math.min(f.length,g.length);for(let y=1;y0==Pm(t)>0,"Paths must either both be absolute or both be relative");const o=RJ(e,t,(typeof n=="boolean"?n:!1)?p1:pb,typeof n=="function"?n:Do);return V0(o)}function Y4(e,t,n){return F_(e)?CT(t,e,t,n,!1):e}function FD(e,t,n){return Fv(Bp(Un(e),t,n))}function CT(e,t,n,i,s){const o=RJ(U0(n,e),U0(n,t),pb,i),c=o[0];if(s&&F_(c)){const u=c.charAt(0)===Io?"file://":"file:///";o[0]=u+c}return V0(o)}function Jp(e,t){for(;;){const n=t(e);if(n!==void 0)return n;const i=Un(e);if(i===e)return;e=i}}function I7(e){return Yo(e,"/node_modules")}var Io,OD,See,U0e,F7,kFe=wt({"src/compiler/path.ts"(){Fs(),Io="/",OD="\\",See="://",U0e=/\\/g,F7=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/}});function b(e,t,n,i,s,o,c){return{code:e,category:t,key:n,message:i,reportsUnnecessary:s,elidedInCompatabilityPyramid:o,reportsDeprecated:c}}var p,CFe=wt({"src/compiler/diagnosticInformationMap.generated.ts"(){F0e(),p={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 Au(e){return e>=80}function Tee(e){return e===32||Au(e)}function LD(e,t){if(e=2?LD(e,Z0e):t===1?LD(e,Q0e):LD(e,$0e)}function EFe(e,t){return t>=2?LD(e,K0e):t===1?LD(e,Y0e):LD(e,X0e)}function PFe(e){const t=[];return e.forEach((n,i)=>{t[n]=i}),t}function Ws(e){return nye[e]}function Ov(e){return Eee.get(e)}function ET(e){const t=[];let n=0,i=0;for(;n127&&gu(s)&&(t.push(i),i=n);break}}return t.push(i),t}function MD(e,t,n,i){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,n,i):L7($g(e),t,n,e.text,i)}function L7(e,t,n,i,s){(t<0||t>=e.length)&&(s?t=t<0?0:t>=e.length?e.length-1:t:E.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${i!==void 0?gD(e,ET(i)):"unknown"}`));const o=e[t]+n;return s?o>e[t+1]?e[t+1]:typeof i=="string"&&o>i.length?i.length:o:(t=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function gu(e){return e===10||e===13||e===8232||e===8233}function eE(e){return e>=48&&e<=57}function q0e(e){return eE(e)||e>=65&&e<=70||e>=97&&e<=102}function DFe(e){return e<=1114111}function M7(e){return e>=48&&e<=55}function xee(e,t){const n=e.charCodeAt(t);switch(n){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 n>127}}function ca(e,t,n,i,s){if(gd(t))return t;let o=!1;for(;;){const c=e.charCodeAt(t);switch(c){case 13:e.charCodeAt(t+1)===10&&t++;case 10:if(t++,n)return t;o=!!s;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&&Xg(c)){t++;continue}break}return t}}function tE(e,t){if(E.assert(t>=0),t===0||gu(e.charCodeAt(t-1))){const n=e.charCodeAt(t);if(t+j7=0&&n127&&Xg(k)){y&&gu(k)&&(d=!0),n++;continue}break e}}return y&&(T=s(u,f,g,d,o,T)),T}function jD(e,t,n,i){return JJ(!1,e,t,!1,n,i)}function BD(e,t,n,i){return JJ(!1,e,t,!0,n,i)}function kee(e,t,n,i,s){return JJ(!0,e,t,!1,n,i,s)}function Cee(e,t,n,i,s){return JJ(!0,e,t,!0,n,i,s)}function H0e(e,t,n,i,s,o=[]){return o.push({kind:n,pos:e,end:t,hasTrailingNewLine:i}),o}function _g(e,t){return kee(e,t,H0e,void 0,void 0)}function m1(e,t){return Cee(e,t,H0e,void 0,void 0)}function R7(e){const t=zJ.exec(e);if(t)return t[0]}function fg(e,t){return e>=65&&e<=90||e>=97&&e<=122||e===36||e===95||e>127&&O7(e,t)}function g1(e,t,n){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===36||e===95||(n===1?e===45||e===58:!1)||e>127&&EFe(e,t)}function Sf(e,t,n){let i=q0(e,0);if(!fg(i,t))return!1;for(let s=h1(i);sd,getStartPos:()=>d,getTokenEnd:()=>f,getTextPos:()=>f,getToken:()=>S,getTokenStart:()=>y,getTokenPos:()=>y,getTokenText:()=>u.substring(y,f),getTokenValue:()=>T,hasUnicodeEscape:()=>(k&1024)!==0,hasExtendedUnicodeEscape:()=>(k&8)!==0,hasPrecedingLineBreak:()=>(k&1)!==0,hasPrecedingJSDocComment:()=>(k&2)!==0,isIdentifier:()=>S===80||S>118,isReservedWord:()=>S>=83&&S<=118,isUnterminated:()=>(k&4)!==0,getCommentDirectives:()=>w,getNumericLiteralFlags:()=>k&25584,getTokenFlags:()=>k,reScanGreaterToken:ge,reScanAsteriskEqualsToken:Fe,reScanSlashToken:$e,reScanTemplateToken:Je,reScanTemplateHeadOrNoSubstitutionTemplate:pt,scanJsxIdentifier:jt,scanJsxAttributeValue:Rt,reScanJsxAttributeValue:Kn,reScanJsxToken:zt,reScanLessThanToken:Vt,reScanHashToken:hr,reScanQuestionToken:Lr,reScanInvalidIdentifier:De,scanJsxToken:tr,scanJsDocToken:yi,scanJSDocCommentTextToken:Ji,scan:be,getText:Ht,clearCommentDirectives:Ue,setText:Et,setScriptTarget:Hn,setLanguageVariant:ei,setScriptKind:Ii,setJSDocParsingMode:ns,setOnError:fr,resetTokenState:Vs,setTextPos:Vs,setInJSDocType:_a,tryScan:ln,lookAhead:_i,scanRange:yr};return E.isDebugging&&Object.defineProperty(U,"__debugShowCurrentPositionInText",{get:()=>{const cr=U.getText();return cr.slice(0,U.getTokenFullStart())+"║"+cr.slice(U.getTokenFullStart())}}),U;function $(cr,br=f,Le,rt){if(s){const tt=f;f=br,s(cr,Le||0,rt),f=tt}}function j(){let cr=f,br=!1,Le=!1,rt="";for(;;){const tt=u.charCodeAt(f);if(tt===95){k|=512,br?(br=!1,Le=!0,rt+=u.substring(cr,f)):(k|=16384,$(Le?p.Multiple_consecutive_numeric_separators_are_not_permitted:p.Numeric_separators_are_not_allowed_here,f,1)),f++,cr=f;continue}if(eE(tt)){br=!0,Le=!1,f++;continue}break}return u.charCodeAt(f-1)===95&&(k|=16384,$(p.Numeric_separators_are_not_allowed_here,f-1,1)),rt+u.substring(cr,f)}function re(){let cr=f,br;if(u.charCodeAt(f)===48)if(f++,u.charCodeAt(f)===95)k|=16896,$(p.Numeric_separators_are_not_allowed_here,f,1),f--,br=j();else if(!Y())k|=8192,br=""+ +T;else if(!T)br="0";else{T=""+parseInt(T,8),k|=32;const ne=S===41,we=(ne?"-":"")+"0o"+(+T).toString(8);return ne&&cr--,$(p.Octal_literals_are_not_allowed_Use_the_syntax_0,cr,f-cr,we),9}else br=j();let Le,rt;u.charCodeAt(f)===46&&(f++,Le=j());let tt=f;if(u.charCodeAt(f)===69||u.charCodeAt(f)===101){f++,k|=16,(u.charCodeAt(f)===43||u.charCodeAt(f)===45)&&f++;const ne=f,we=j();we?(rt=u.substring(tt,ne)+we,tt=f):$(p.Digit_expected)}let yt;if(k&512?(yt=br,Le&&(yt+="."+Le),rt&&(yt+=rt)):yt=u.substring(cr,tt),k&8192)return $(p.Decimals_with_leading_zeros_are_not_allowed,cr,tt-cr),T=""+ +yt,9;if(Le!==void 0||k&16)return R(cr,Le===void 0&&!!(k&16)),T=""+ +yt,9;{T=yt;const ne=me();return R(cr),ne}}function R(cr,br){if(!fg(q0(u,f),e))return;const Le=f,{length:rt}=fe();rt===1&&u[Le]==="n"?$(br?p.A_bigint_literal_cannot_use_exponential_notation:p.A_bigint_literal_must_be_an_integer,cr,Le-cr+1):($(p.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,Le,rt),f=Le)}function Y(){const cr=f;let br=!0;for(;eE(u.charCodeAt(f));)M7(u.charCodeAt(f))||(br=!1),f++;return T=u.substring(cr,f),br}function ue(cr,br){const Le=H(cr,!1,br);return Le?parseInt(Le,16):-1}function pe(cr,br){return H(cr,!0,br)}function H(cr,br,Le){let rt=[],tt=!1,yt=!1;for(;rt.length=65&&ne<=70)ne+=32;else if(!(ne>=48&&ne<=57||ne>=97&&ne<=102))break;rt.push(ne),f++,yt=!1}return rt.length=g){Le+=u.substring(rt,f),k|=4,$(p.Unterminated_string_literal);break}const tt=u.charCodeAt(f);if(tt===br){Le+=u.substring(rt,f),f++;break}if(tt===92&&!cr){Le+=u.substring(rt,f),Le+=oe(!0),rt=f;continue}if((tt===10||tt===13)&&!cr){Le+=u.substring(rt,f),k|=4,$(p.Unterminated_string_literal);break}f++}return Le}function ee(cr){const br=u.charCodeAt(f)===96;f++;let Le=f,rt="",tt;for(;;){if(f>=g){rt+=u.substring(Le,f),k|=4,$(p.Unterminated_template_literal),tt=br?15:18;break}const yt=u.charCodeAt(f);if(yt===96){rt+=u.substring(Le,f),f++,tt=br?15:18;break}if(yt===36&&f+1=g)return $(p.Unexpected_end_of_text),"";const Le=u.charCodeAt(f);switch(f++,Le){case 48:if(f>=g||!eE(u.charCodeAt(f)))return"\0";case 49:case 50:case 51:f=g?(k|=2048,cr&&$(p.Unexpected_end_of_text),u.substring(br,f)):u.charCodeAt(f)!==125?(k|=2048,cr&&$(p.Unterminated_Unicode_escape_sequence),u.substring(br,f)):(f++,k|=8,Jk(tt)):(k|=2048,cr&&$(p.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),u.substring(br,f))}for(;f1114111&&($(p.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),Le=!0),f>=g?($(p.Unexpected_end_of_text),Le=!0):u.charCodeAt(f)===125?f++:($(p.Unterminated_Unicode_escape_sequence),Le=!0),Le?"":Jk(br)}function ae(){if(f+5=0&&g1(Le,e)){f+=3,k|=8,cr+=Se(),br=f;continue}if(Le=ae(),!(Le>=0&&g1(Le,e)))break;k|=1024,cr+=u.substring(br,f),cr+=Jk(Le),f+=6,br=f}else break}return cr+=u.substring(br,f),cr}function ke(){const cr=T.length;if(cr>=2&&cr<=12){const br=T.charCodeAt(0);if(br>=97&&br<=122){const Le=G0e.get(T);if(Le!==void 0)return S=Le}}return S=80}function Oe(cr){let br="",Le=!1,rt=!1;for(;;){const tt=u.charCodeAt(f);if(tt===95){k|=512,Le?(Le=!1,rt=!0):$(rt?p.Multiple_consecutive_numeric_separators_are_not_permitted:p.Numeric_separators_are_not_allowed_here,f,1),f++;continue}if(Le=!0,!eE(tt)||tt-48>=cr)break;br+=u[f],f++,rt=!1}return u.charCodeAt(f-1)===95&&$(p.Numeric_separators_are_not_allowed_here,f-1,1),br}function me(){return u.charCodeAt(f)===110?(T+="n",k&384&&(T=$E(T)+"n"),f++,10):(T=""+(k&128?parseInt(T.slice(2),2):k&256?parseInt(T.slice(2),8):+T),9)}function be(){d=f,k=0;let cr=!1;for(;;){if(y=f,f>=g)return S=1;const br=q0(u,f);if(f===0){if(u.slice(0,256).includes("�"))return $(p.File_appears_to_be_binary),f=g,S=8;if(br===35&&jJ(u,f)){if(f=BJ(u,f),t)continue;return S=6}}switch(br){case 10:case 13:if(k|=1,t){f++;continue}else return br===13&&f+1=0&&fg(Le,e))return f+=3,k|=8,T=Se()+fe(),S=ke();const rt=ae();return rt>=0&&fg(rt,e)?(f+=6,k|=1024,T=String.fromCharCode(rt)+fe(),S=ke()):($(p.Invalid_character),f++,S=0);case 35:if(f!==0&&u[f+1]==="!")return $(p.can_only_be_used_at_the_start_of_a_file),f++,S=0;const tt=q0(u,f+1);if(tt===92){f++;const we=K();if(we>=0&&fg(we,e))return f+=3,k|=8,T="#"+Se()+fe(),S=81;const et=ae();if(et>=0&&fg(et,e))return f+=6,k|=1024,T="#"+String.fromCharCode(et)+fe(),S=81;f--}return fg(tt,e)?(f++,ft(tt,e)):(T="#",$(p.Invalid_character,f++,h1(br))),S=81;default:const yt=ft(br,e);if(yt)return S=yt;if(Jd(br)){f+=h1(br);continue}else if(gu(br)){k|=1,f+=h1(br);continue}const ne=h1(br);return $(p.Invalid_character,f,ne),f+=ne,S=0}}}function xe(){switch(J){case 0:return!0;case 1:return!1}return F!==3&&F!==4?!0:J===3?!1:rye.test(u.slice(d,f))}function De(){E.assert(S===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),f=y=d,k=0;const cr=q0(u,f),br=ft(cr,99);return br?S=br:(f+=h1(cr),S)}function ft(cr,br){let Le=cr;if(fg(Le,br)){for(f+=h1(Le);f=g)return S=1;let br=u.charCodeAt(f);if(br===60)return u.charCodeAt(f+1)===47?(f+=2,S=31):(f++,S=30);if(br===123)return f++,S=19;let Le=0;for(;f0)break;Xg(br)||(Le=f)}f++}return T=u.substring(d,f),Le===-1?13:12}function jt(){if(Au(S)){for(;f=g)return S=1;for(let br=u.charCodeAt(f);f=0&&Jd(u.charCodeAt(f-1))&&!(f+1=g)return S=1;const cr=q0(u,f);switch(f+=h1(cr),cr){case 9:case 11:case 12:case 32:for(;f=0&&fg(br,e))return f+=3,k|=8,T=Se()+fe(),S=ke();const Le=ae();return Le>=0&&fg(Le,e)?(f+=6,k|=1024,T=String.fromCharCode(Le)+fe(),S=ke()):(f++,S=0)}if(fg(cr,e)){let br=cr;for(;f=0),f=cr,d=cr,y=cr,S=0,T=void 0,k=0}function _a(cr){P+=cr?1:-1}}function q0(e,t){return e.codePointAt(t)}function h1(e){return e>=65536?2:1}function wFe(e){if(E.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);const t=Math.floor((e-65536)/1024)+55296,n=(e-65536)%1024+56320;return String.fromCharCode(t,n)}function Jk(e){return iye(e)}var JD,G0e,Eee,$0e,X0e,Q0e,Y0e,Z0e,K0e,eye,tye,rye,nye,j7,zJ,iye,AFe=wt({"src/compiler/scanner.ts"(){Fs(),JD={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},G0e=new Map(Object.entries(JD)),Eee=new Map(Object.entries({...JD,"{":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})),$0e=[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],X0e=[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],Q0e=[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],Y0e=[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],Z0e=[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],K0e=[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],eye=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,tye=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,rye=/@(?:see|link)/i,nye=PFe(Eee),j7=7,zJ=/^#!.*/,iye=String.fromCodePoint?e=>String.fromCodePoint(e):wFe}});function Sl(e){return nf(e)||F_(e)}function zk(e){return W4(e,WE)}function zD(e){switch(Fa(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 bc(e){return e.start+e.length}function Pee(e){return e.length===0}function WJ(e,t){return t>=e.start&&t=e.pos&&t<=e.end}function Dee(e,t){return t.start>=e.start&&bc(t)<=bc(e)}function sye(e,t){return wee(e,t)!==void 0}function wee(e,t){const n=Nee(e,t);return n&&n.length===0?void 0:n}function aye(e,t){return VD(e.start,e.length,t.start,t.length)}function B7(e,t,n){return VD(e.start,e.length,t,n)}function VD(e,t,n,i){const s=e+t,o=n+i;return n<=s&&o>=e}function Aee(e,t){return t<=bc(e)&&t>=e.start}function Nee(e,t){const n=Math.max(e.start,t.start),i=Math.min(bc(e),bc(t));return n<=i?Rc(n,i):void 0}function Wl(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function Rc(e,t){return Wl(e,t-e)}function rE(e){return Wl(e.span.start,e.newLength)}function Iee(e){return Pee(e.span)&&e.newLength===0}function UD(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function Fee(e){if(e.length===0)return a8;if(e.length===1)return e[0];const t=e[0];let n=t.span.start,i=bc(t.span),s=n+t.newLength;for(let o=1;o=2&&e.charCodeAt(0)===95&&e.charCodeAt(1)===95?"_"+e:e}function xi(e){const t=e;return t.length>=3&&t.charCodeAt(0)===95&&t.charCodeAt(1)===95&&t.charCodeAt(2)===95?t.substr(1):t}function on(e){return xi(e.escapedText)}function v1(e){const t=Ov(e.escapedText);return t?Wn(t,c_):void 0}function Xo(e){return e.valueDeclaration&&Iu(e.valueDeclaration)?on(e.valueDeclaration.name):xi(e.escapedName)}function lye(e){const t=e.parent.parent;if(t){if(yu(t))return UJ(t);switch(t.kind){case 243:if(t.declarationList&&t.declarationList.declarations[0])return UJ(t.declarationList.declarations[0]);break;case 244:let n=t.expression;switch(n.kind===226&&n.operatorToken.kind===64&&(n=n.left),n.kind){case 211:return n.name;case 212:const i=n.argumentExpression;if(Ie(i))return i}break;case 217:return UJ(t.expression);case 256:{if(yu(t.statement)||ot(t.statement))return UJ(t.statement);break}}}}function UJ(e){const t=us(e);return t&&Ie(t)?t:void 0}function qD(e,t){return!!(Nu(e)&&Ie(e.name)&&on(e.name)===on(t)||ac(e)&&ct(e.declarationList.declarations,n=>qD(n,t)))}function Ree(e){return e.name||lye(e)}function Nu(e){return!!e.name}function J7(e){switch(e.kind){case 80:return e;case 355:case 348:{const{name:n}=e;if(n.kind===166)return n.right;break}case 213:case 226:{const n=e;switch(fc(n)){case 1:case 4:case 5:case 3:return M5(n.left);case 7:case 8:case 9:return n.arguments[1];default:return}}case 353:return Ree(e);case 347:return lye(e);case 277:{const{expression:n}=e;return Ie(n)?n:void 0}case 212:const t=e;if(L5(t))return t.argumentExpression}return e.name}function us(e){if(e!==void 0)return J7(e)||(co(e)||po(e)||kl(e)?z7(e):void 0)}function z7(e){if(e.parent){if(zc(e.parent)||Ea(e.parent))return e.parent.name;if(Zr(e.parent)&&e===e.parent.right){if(Ie(e.parent.left))return e.parent.left;if(oo(e.parent.left))return M5(e.parent.left)}else if(hi(e.parent)&&Ie(e.parent.name))return e.parent.name}else return}function H0(e){if(Vf(e))return An(e.modifiers,ql)}function Lv(e){if(Rn(e,98303))return An(e.modifiers,ta)}function uye(e,t){if(e.name)if(Ie(e.name)){const n=e.name.escapedText;return GD(e.parent,t).filter(i=>bd(i)&&Ie(i.name)&&i.name.escapedText===n)}else{const n=e.parent.parameters.indexOf(e);E.assert(n>-1,"Parameters should always be in their parents' parameter list");const i=GD(e.parent,t).filter(bd);if(nCp(i)&&i.typeParameters.some(s=>s.name.escapedText===n))}function Bee(e){return _ye(e,!1)}function Jee(e){return _ye(e,!0)}function zee(e){return!!pp(e,bd)}function Wee(e){return pp(e,gx)}function Vee(e){return V7(e,IO)}function qJ(e){return pp(e,die)}function fye(e){return pp(e,MV)}function Uee(e){return pp(e,MV,!0)}function pye(e){return pp(e,RV)}function qee(e){return pp(e,RV,!0)}function dye(e){return pp(e,jV)}function Hee(e){return pp(e,jV,!0)}function mye(e){return pp(e,BV)}function Gee(e){return pp(e,BV,!0)}function $ee(e){return pp(e,AO,!0)}function HJ(e){return pp(e,JV)}function Xee(e){return pp(e,JV,!0)}function GJ(e){return pp(e,Lw)}function W7(e){return pp(e,zV)}function Qee(e){return pp(e,NO)}function gye(e){return pp(e,Cp)}function $J(e){return pp(e,FO)}function b1(e){const t=pp(e,b3);if(t&&t.typeExpression&&t.typeExpression.type)return t}function S1(e){let t=pp(e,b3);return!t&&rs(e)&&(t=wn(Vk(e),n=>!!n.typeExpression)),t&&t.typeExpression&&t.typeExpression.type}function HD(e){const t=Qee(e);if(t&&t.typeExpression)return t.typeExpression.type;const n=b1(e);if(n&&n.typeExpression){const i=n.typeExpression.type;if(z_(i)){const s=wn(i.members,sx);return s&&s.type}if(Mm(i)||VC(i))return i.type}}function GD(e,t){var n;if(!L8(e))return Ve;let i=(n=e.jsDoc)==null?void 0:n.jsDocCache;if(i===void 0||t){const s=Uz(e,t);E.assert(s.length<2||s[0]!==s[1]),i=Zs(s,o=>vd(o)?o.tags:o),t||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=i)}return i}function T1(e){return GD(e,!1)}function hye(e){return GD(e,!0)}function pp(e,t,n){return wn(GD(e,n),t)}function V7(e,t){return T1(e).filter(t)}function yye(e,t){return T1(e).filter(n=>n.kind===t)}function $D(e){return typeof e=="string"?e:e==null?void 0:e.map(t=>t.kind===328?t.text:IFe(t)).join("")}function IFe(e){const t=e.kind===331?"link":e.kind===332?"linkcode":"linkplain",n=e.name?L_(e.name):"",i=e.name&&e.text.startsWith("://")?"":" ";return`{@${t} ${n}${i}${e.text}}`}function G0(e){if(R1(e)){if(UC(e.parent)){const t=pC(e.parent);if(t&&gr(t.tags))return Zs(t.tags,n=>Cp(n)?n.typeParameters:void 0)}return Ve}if(hp(e))return E.assert(e.parent.kind===327),Zs(e.parent.tags,t=>Cp(t)?t.typeParameters:void 0);if(e.typeParameters||Cie(e)&&e.typeParameters)return e.typeParameters;if(Hr(e)){const t=Q5(e);if(t.length)return t;const n=S1(e);if(n&&Mm(n)&&n.typeParameters)return n.typeParameters}return Ve}function Uk(e){return e.constraint?e.constraint:Cp(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function pg(e){return e.kind===80||e.kind===81}function U7(e){return e.kind===178||e.kind===177}function q7(e){return Sn(e)&&!!(e.flags&64)}function XJ(e){return ko(e)&&!!(e.flags&64)}function yb(e){return Rs(e)&&!!(e.flags&64)}function hu(e){const t=e.kind;return!!(e.flags&64)&&(t===211||t===212||t===213||t===235)}function iE(e){return hu(e)&&!_x(e)&&!!e.questionDotToken}function H7(e){return iE(e.parent)&&e.parent.expression===e}function sE(e){return!hu(e.parent)||iE(e.parent)||e!==e.parent.expression}function QJ(e){return e.kind===226&&e.operatorToken.kind===61}function Qg(e){return $f(e)&&Ie(e.typeName)&&e.typeName.escapedText==="const"&&!e.typeArguments}function zp(e){return xc(e,8)}function G7(e){return _x(e)&&!!(e.flags&64)}function aE(e){return e.kind===252||e.kind===251}function YJ(e){return e.kind===280||e.kind===279}function Yee(e){switch(e.kind){case 309:case 310:return!0;default:return!1}}function ZJ(e){return Yee(e)||e.kind===307||e.kind===311}function oE(e){return e.kind===355||e.kind===348}function vye(e){return XD(e.kind)}function XD(e){return e>=166}function KJ(e){return e>=0&&e<=165}function PT(e){return KJ(e.kind)}function Mv(e){return Za(e,"pos")&&Za(e,"end")}function cE(e){return 9<=e&&e<=15}function Rv(e){return cE(e.kind)}function ez(e){switch(e.kind){case 210:case 209:case 14:case 218:case 231:return!0}return!1}function $0(e){return 15<=e&&e<=18}function Zee(e){return $0(e.kind)}function $7(e){const t=e.kind;return t===17||t===18}function DT(e){return x_(e)||vu(e)}function QD(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 Kee(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 x1(e){return QD(e)||Kee(e)}function tz(e){return e.kind===11||$0(e.kind)}function ete(e){return aa(e)||Ie(e)}function Fo(e){var t;return Ie(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function vb(e){var t;return Pi(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function YD(e){const t=e.emitNode.autoGenerate.flags;return!!(t&32)&&!!(t&16)&&!!(t&8)}function Iu(e){return(xs(e)||AT(e))&&Pi(e.name)}function qk(e){return Sn(e)&&Pi(e.name)}function $h(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 lE(e){return!!(WT(e)&31)}function rz(e){return lE(e)||e===126||e===164||e===129}function ta(e){return $h(e.kind)}function b_(e){const t=e.kind;return t===166||t===80}function Ac(e){const t=e.kind;return t===80||t===81||t===11||t===9||t===167}function bb(e){const t=e.kind;return t===80||t===206||t===207}function As(e){return!!e&&wT(e.kind)}function Hk(e){return!!e&&(wT(e.kind)||ec(e))}function fo(e){return e&&bye(e.kind)}function uE(e){return e.kind===112||e.kind===97}function bye(e){switch(e){case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function wT(e){switch(e){case 173:case 179:case 330:case 180:case 181:case 184:case 324:case 185:return!0;default:return bye(e)}}function nz(e){return Ni(e)||Zd(e)||Cs(e)&&As(e.parent)}function Tl(e){const t=e.kind;return t===176||t===172||t===174||t===177||t===178||t===181||t===175||t===240}function $n(e){return e&&(e.kind===263||e.kind===231)}function X0(e){return e&&(e.kind===177||e.kind===178)}function s_(e){return xs(e)&&Gd(e)}function tte(e){return Hr(e)&&wF(e)?(!qv(e)||!iy(e.expression))&&!Nb(e,!0):e.parent&&$n(e.parent)&&xs(e)&&!Gd(e)}function AT(e){switch(e.kind){case 174:case 177:case 178:return!0;default:return!1}}function Sye(e){switch(e.kind){case 174:case 177:case 178:case 172:return!0;default:return!1}}function Oo(e){return ta(e)||ql(e)}function Sb(e){const t=e.kind;return t===180||t===179||t===171||t===173||t===181||t===177||t===178}function X7(e){return Sb(e)||Tl(e)}function Yg(e){const t=e.kind;return t===303||t===304||t===305||t===174||t===177||t===178}function ki(e){return PW(e.kind)}function rte(e){switch(e.kind){case 184:case 185:return!0}return!1}function Ns(e){if(e){const t=e.kind;return t===207||t===206}return!1}function _E(e){const t=e.kind;return t===209||t===210}function Q7(e){const t=e.kind;return t===208||t===232}function ZD(e){switch(e.kind){case 260:case 169:case 208:return!0}return!1}function nte(e){return hi(e)||rs(e)||e8(e)||t8(e)}function KD(e){return iz(e)||sz(e)}function iz(e){switch(e.kind){case 206:case 210:return!0}return!1}function e8(e){switch(e.kind){case 208:case 303:case 304:case 305:return!0}return!1}function sz(e){switch(e.kind){case 207:case 209:return!0}return!1}function t8(e){switch(e.kind){case 208:case 232:case 230:case 209:case 210:case 80:case 211:case 212:return!0}return nl(e,!0)}function ite(e){const t=e.kind;return t===211||t===166||t===205}function ste(e){const t=e.kind;return t===211||t===166}function az(e){return jv(e)||t2(e)}function jv(e){switch(e.kind){case 286:case 285:case 213:case 214:case 215:case 170:return!0;default:return!1}}function zd(e){return e.kind===213||e.kind===214}function NT(e){const t=e.kind;return t===228||t===15}function S_(e){return Tye(zp(e).kind)}function Tye(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 oz(e){return xye(zp(e).kind)}function xye(e){switch(e){case 224:case 225:case 220:case 221:case 222:case 223:case 216:return!0;default:return Tye(e)}}function ate(e){switch(e.kind){case 225:return!0;case 224:return e.operator===46||e.operator===47;default:return!1}}function ote(e){switch(e.kind){case 106:case 112:case 97:case 224:return!0;default:return Rv(e)}}function ot(e){return FFe(zp(e).kind)}function FFe(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 xye(e)}}function Tb(e){const t=e.kind;return t===216||t===234}function kye(e){return IV(e)||EO(e)}function Q0(e,t){switch(e.kind){case 248:case 249:case 250:case 246:case 247:return!0;case 256:return t&&Q0(e.statement,t)}return!1}function cte(e){return oc(e)||Tc(e)}function lte(e){return ct(e,cte)}function Y7(e){return!_8(e)&&!oc(e)&&!Rn(e,32)&&!su(e)}function r8(e){return _8(e)||oc(e)||Rn(e,32)}function Gk(e){return e.kind===249||e.kind===250}function Z7(e){return Cs(e)||ot(e)}function cz(e){return Cs(e)}function Wf(e){return dl(e)||ot(e)}function ute(e){const t=e.kind;return t===268||t===267||t===80}function Cye(e){const t=e.kind;return t===268||t===267}function Eye(e){const t=e.kind;return t===80||t===267}function lz(e){const t=e.kind;return t===275||t===274}function n8(e){return e.kind===267||e.kind===266}function Wd(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 Dm(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 OFe(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 _te(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 fte(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 yu(e){return e.kind===168?e.parent&&e.parent.kind!==352||Hr(e):OFe(e.kind)}function pte(e){return _te(e.kind)}function i8(e){return fte(e.kind)}function Ei(e){const t=e.kind;return fte(t)||_te(t)||LFe(e)}function LFe(e){return e.kind!==241||e.parent!==void 0&&(e.parent.kind===258||e.parent.kind===299)?!1:!Vv(e)}function dte(e){const t=e.kind;return fte(t)||_te(t)||t===241}function mte(e){const t=e.kind;return t===283||t===166||t===80}function fE(e){const t=e.kind;return t===110||t===80||t===211||t===295}function s8(e){const t=e.kind;return t===284||t===294||t===285||t===12||t===288}function K7(e){const t=e.kind;return t===291||t===293}function gte(e){const t=e.kind;return t===11||t===294}function Fu(e){const t=e.kind;return t===286||t===285}function e5(e){const t=e.kind;return t===296||t===297}function $k(e){return e.kind>=316&&e.kind<=357}function t5(e){return e.kind===327||e.kind===326||e.kind===328||IT(e)||Xk(e)||Yb(e)||R1(e)}function Xk(e){return e.kind>=334&&e.kind<=357}function Xh(e){return e.kind===178}function Y0(e){return e.kind===177}function sf(e){if(!L8(e))return!1;const{jsDoc:t}=e;return!!t&&t.length>0}function r5(e){return!!e.type}function Z0(e){return!!e.initializer}function xb(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:case 306:return!0;default:return!1}}function uz(e){return e.kind===291||e.kind===293||Yg(e)}function n5(e){return e.kind===183||e.kind===233}function hte(e){let t=yte;for(const n of e){if(!n.length)continue;let i=0;for(;i0?n.parent.parameters[s-1]:void 0,c=t.text,u=o?es(m1(c,ca(c,o.end+1,!1,!0)),_g(c,e.pos)):m1(c,ca(c,e.pos,!1,!0));return ct(u)&&Pye(ka(u),t)}const i=n&&Nz(n,t);return!!er(i,s=>Pye(s,t))}var a8,pz,yte,MFe=wt({"src/compiler/utilitiesPublic.ts"(){Fs(),a8=UD(Wl(0,0),0),pz=["cs","de","es","fr","it","ja","ko","pl","pt-br","ru","tr","zh-cn","zh-tw"],yte=1073741823}});function Bo(e,t){const n=e.declarations;if(n){for(const i of n)if(i.kind===t)return i}}function vte(e,t){return An(e.declarations||Ve,n=>n.kind===t)}function Bs(e){const t=new Map;if(e)for(const n of e)t.set(n.escapedName,n);return t}function wm(e){return(e.flags&33554432)!==0}function RFe(){var e="";const t=n=>e+=n;return{getText:()=>e,write:t,rawWrite:t,writeKeyword:t,writeOperator:t,writePunctuation:t,writeSpace:t,writeStringLiteral:t,writeLiteral:t,writeParameter:t,writeProperty:t,writeSymbol:(n,i)=>t(n),writeTrailingSemicolon:t,writeComment:t,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&Xg(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:Ca,decreaseIndent:Ca,clear:()=>e=""}}function i5(e,t){return e.configFilePath!==t.configFilePath||bte(e,t)}function bte(e,t){return Qk(e,t,QO)}function Ste(e,t){return Qk(e,t,TU)}function Qk(e,t,n){return e!==t&&n.some(i=>!xF(fF(e,i),fF(t,i)))}function Tte(e,t){for(;;){const n=t(e);if(n==="quit")return;if(n!==void 0)return n;if(Ni(e))return;e=e.parent}}function _l(e,t){const n=e.entries();for(const[i,s]of n){const o=t(s,i);if(o)return o}}function Am(e,t){const n=e.keys();for(const i of n){const s=t(i);if(s)return s}}function s5(e,t){e.forEach((n,i)=>{t.set(i,n)})}function pE(e){const t=_w.getText();try{return e(_w),_w.getText()}finally{_w.clear(),_w.writeKeyword(t)}}function o8(e){return e.end-e.pos}function dz(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular}function xte(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&&jFe(e.resolvedModule.packageId,t.resolvedModule.packageId)&&e.alternateResult===t.alternateResult}function a5(e,t,n,i,s){var o;const c=(o=t.getResolvedModule(e,n,i))==null?void 0:o.alternateResult,u=c&&(Ru(t.getCompilerOptions())===2?[p.There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler,[c]]:[p.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,[c,c.includes(zm+"@types/")?`@types/${n6(s)}`:s]]),f=u?vs(void 0,u[0],...u[1]):t.typesPackageExists(s)?vs(void 0,p.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,s,n6(s)):t.packageBundlesTypes(s)?vs(void 0,p.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,s,n):vs(void 0,p.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,n,n6(s));return f&&(f.repopulateInfo=()=>({moduleReference:n,mode:i,packageName:s===n?void 0:s})),f}function jFe(e,t){return e===t||!!e&&!!t&&e.name===t.name&&e.subModuleName===t.subModuleName&&e.version===t.version}function o5({name:e,subModuleName:t}){return t?`${e}/${t}`:e}function K0(e){return`${o5(e)}@${e.version}`}function kte(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 mz(e,t,n,i){E.assert(e.length===t.length);for(let s=0;s=0),$g(t)[e]}function Dye(e){const t=wr(e),n=Ha(t,e.pos);return`${t.fileName}(${n.line+1},${n.character+1})`}function l8(e,t){E.assert(e>=0);const n=$g(t),i=e,s=t.text;if(i+1===n.length)return s.length-1;{const o=n[i];let c=n[i+1]-1;for(E.assert(gu(s.charCodeAt(c)));o<=c&&gu(s.charCodeAt(c));)c--;return c}}function l5(e,t,n){return!(n&&n(t))&&!e.identifiers.has(t)}function _c(e){return e===void 0?!0:e.pos===e.end&&e.pos>=0&&e.kind!==1}function dp(e){return!_c(e)}function Ete(e,t){return Vo(e)?t===e.expression:ec(e)?t===e.modifiers:B_(e)?t===e.initializer:xs(e)?t===e.questionToken&&s_(e):zc(e)?t===e.modifiers||t===e.questionToken||t===e.exclamationToken||u8(e.modifiers,t,Oo):k_(e)?t===e.equalsToken||t===e.modifiers||t===e.questionToken||t===e.exclamationToken||u8(e.modifiers,t,Oo):hc(e)?t===e.exclamationToken:sc(e)?t===e.typeParameters||t===e.type||u8(e.typeParameters,t,Vo):xf(e)?t===e.typeParameters||u8(e.typeParameters,t,Vo):J_(e)?t===e.typeParameters||t===e.type||u8(e.typeParameters,t,Vo):Ow(e)?t===e.modifiers||u8(e.modifiers,t,Oo):!1}function u8(e,t,n){return!e||ts(t)||!n(t)?!1:bs(e,t)}function wye(e,t,n){if(t===void 0||t.length===0)return e;let i=0;for(;i[`${Ha(e,c.range.end).line}`,c])),i=new Map;return{getUnusedExpectations:s,markUsed:o};function s(){return gs(n.entries()).filter(([c,u])=>u.type===0&&!i.get(c)).map(([c,u])=>u)}function o(c){return n.has(`${c}`)?(i.set(`${c}`,!0),!0):!1}}function k1(e,t,n){return _c(e)?e.pos:$k(e)||e.kind===12?ca((t||wr(e)).text,e.pos,!1,!0):n&&sf(e)?k1(e.jsDoc[0],t):e.kind===358&&e._children.length>0?k1(e._children[0],t,n):ca((t||wr(e)).text,e.pos,!1,!1,T8(e))}function yz(e,t){const n=!_c(e)&&$p(e)?hT(e.modifiers,ql):void 0;return n?ca((t||wr(e)).text,n.end):k1(e,t)}function Bv(e,t,n=!1){return dE(e.text,t,n)}function JFe(e){return!!Pr(e,d2)}function _5(e){return!!(Tc(e)&&e.exportClause&&jm(e.exportClause)&&e.exportClause.name.escapedText==="default")}function dE(e,t,n=!1){if(_c(t))return"";let i=e.substring(n?t.pos:ca(e,t.pos),t.end);return JFe(t)&&(i=i.split(/\r\n|\n|\r/).map(s=>s.replace(/^\s*\*/,"").trimStart()).join(` -`)),i}function jc(e,t=!1){return Bv(wr(e),e,t)}function zFe(e){return e.pos}function Zk(e,t){return Jh(e,t,zFe,wo)}function ha(e){const t=e.emitNode;return t&&t.flags||0}function Wp(e){const t=e.emitNode;return t&&t.internalFlags||0}function Dte(e,t,n){if(t&&WFe(e,n))return Bv(t,e);switch(e.kind){case 11:{const i=n&2?cW:n&1||ha(e)&16777216?bg:H8;return e.singleQuote?"'"+i(e.text,39)+"'":'"'+i(e.text,34)+'"'}case 15:case 16:case 17:case 18:{const i=n&1||ha(e)&16777216?bg:H8,s=e.rawText??aW(i(e.text,96));switch(e.kind){case 15:return"`"+s+"`";case 16:return"`"+s+"${";case 17:return"}"+s+"${";case 18:return"}"+s+"`"}break}case 9:case 10:return e.text;case 14:return n&4&&e.isUnterminated?e.text+(e.text.charCodeAt(e.text.length-1)===92?" /":"/"):e.text}return E.fail(`Literal kind '${e.kind}' not accounted for.`)}function WFe(e,t){if(xo(e)||!e.parent||t&4&&e.isUnterminated)return!1;if(j_(e)){if(e.numericLiteralFlags&26656)return!1;if(e.numericLiteralFlags&512)return!!(t&8)}return!hO(e)}function wte(e){return ls(e)?'"'+H8(e)+'"':""+e}function Ate(e){return wc(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function vz(e){return(Gh(e)&7)!==0||bz(e)}function bz(e){const t=Hd(e);return t.kind===260&&t.parent.kind===299}function su(e){return Sc(e)&&(e.name.kind===11||Vd(e))}function f5(e){return Sc(e)&&e.name.kind===11}function Sz(e){return Sc(e)&&aa(e.name)}function Nte(e){return Sc(e)||Ie(e)}function mE(e){return VFe(e.valueDeclaration)}function VFe(e){return!!e&&e.kind===267&&!e.body}function Ite(e){return e.kind===312||e.kind===267||Hk(e)}function Vd(e){return!!(e.flags&2048)}function Jv(e){return su(e)&&Tz(e)}function Tz(e){switch(e.parent.kind){case 312:return Ic(e.parent);case 268:return su(e.parent.parent)&&Ni(e.parent.parent.parent)&&!Ic(e.parent.parent.parent)}return!1}function xz(e){var t;return(t=e.declarations)==null?void 0:t.find(n=>!Jv(n)&&!(Sc(n)&&Vd(n)))}function UFe(e){return e===1||e===100||e===199}function FT(e,t){return Ic(e)||UFe(au(t))&&!!e.commonJsModuleIndicator}function kz(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return e.isDeclarationFile?!1:Mu(t,"alwaysStrict")||Sie(e.statements)?!0:Ic(e)||xp(t)?au(t)>=5?!0:!t.noImplicitUseStrict:!1}function Cz(e){return!!(e.flags&33554432)||Rn(e,128)}function Ez(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!Hk(t)}return!1}function Pz(e){switch(E.type(e),e.kind){case 345:case 353:case 330:return!0;default:return Dz(e)}}function Dz(e){switch(E.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 Cb(e){switch(e.kind){case 272:case 271:return!0;default:return!1}}function Fte(e){return Cb(e)||Uv(e)}function p5(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 Ote(e){return _8(e)||Sc(e)||Cg(e)||of(e)}function _8(e){return Cb(e)||Tc(e)}function wz(e){return Pr(e.parent,t=>!!(zU(t)&1))}function Nm(e){return Pr(e.parent,t=>Ez(t,t.parent))}function Lte(e,t){let n=Nm(e);for(;n;)t(n),n=Nm(n)}function Ka(e){return!e||o8(e)===0?"(Missing)":jc(e)}function Mte(e){return e.declaration?Ka(e.declaration.parameters[0].name):void 0}function f8(e){return e.kind===167&&!Tf(e.expression)}function gE(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 Wo(e.text);case 167:return Tf(e.expression)?Wo(e.expression.text):void 0;case 295:return $T(e);default:return E.assertNever(e)}}function Kk(e){return E.checkDefined(gE(e))}function L_(e){switch(e.kind){case 110:return"this";case 81:case 80:return o8(e)===0?on(e):jc(e);case 166:return L_(e.left)+"."+L_(e.right);case 211:return Ie(e.name)||Pi(e.name)?L_(e.expression)+"."+L_(e.name):E.assertNever(e.name);case 318:return L_(e.left)+L_(e.right);case 295:return L_(e.namespace)+":"+L_(e.name);default:return E.assertNever(e)}}function yn(e,t,...n){const i=wr(e);return mp(i,e,t,...n)}function eC(e,t,n,...i){const s=ca(e.text,t.pos);return xl(e,s,t.end-s,n,...i)}function mp(e,t,n,...i){const s=Eb(e,t);return xl(e,s.start,s.length,n,...i)}function Zg(e,t,n,i){const s=Eb(e,t);return d5(e,s.start,s.length,n,i)}function p8(e,t,n,i){const s=ca(e.text,t.pos);return d5(e,s,t.end-s,n,i)}function Rte(e,t,n){E.assertGreaterThanOrEqual(t,0),E.assertGreaterThanOrEqual(n,0),E.assertLessThanOrEqual(t,e.length),E.assertLessThanOrEqual(t+n,e.length)}function d5(e,t,n,i,s){return Rte(e.text,t,n),{file:e,start:t,length:n,code:i.code,category:i.category,messageText:i.next?i:i.messageText,relatedInformation:s}}function Az(e,t,n){return{file:e,start:0,length:0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:n}}function jte(e){return typeof e.messageText=="string"?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function Bte(e,t,n){return{file:e,start:t.pos,length:t.end-t.pos,code:n.code,category:n.category,messageText:n.message}}function Im(e,t){const n=Hh(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);n.scan();const i=n.getTokenStart();return Rc(i,n.getTokenEnd())}function Jte(e,t){const n=Hh(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return n.scan(),n.getToken()}function qFe(e,t){const n=ca(e.text,t.pos);if(t.body&&t.body.kind===241){const{line:i}=Ha(e,t.body.pos),{line:s}=Ha(e,t.body.end);if(i0?t.statements[0].pos:t.end;return Rc(o,c)}case 253:case 229:{const o=ca(e.text,t.pos);return Im(e,o)}case 238:{const o=ca(e.text,t.expression.end);return Im(e,o)}case 357:{const o=ca(e.text,t.tagName.pos);return Im(e,o)}}if(n===void 0)return Im(e,t.pos);E.assert(!vd(n));const i=_c(n),s=i||ex(t)?n.pos:ca(e.text,n.pos);return i?(E.assert(s===n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),E.assert(s===n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(E.assert(s>=n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),E.assert(s<=n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),Rc(s,n.end)}function af(e){return(e.externalModuleIndicator||e.commonJsModuleIndicator)!==void 0}function gp(e){return e.scriptKind===6}function zv(e){return!!(y1(e)&4096)}function m5(e){return!!(y1(e)&8&&!O_(e,e.parent))}function d8(e){return(Gh(e)&7)===6}function m8(e){return(Gh(e)&7)===4}function tC(e){return(Gh(e)&7)===2}function g5(e){return(Gh(e)&7)===1}function Pb(e){return e.kind===213&&e.expression.kind===108}function of(e){return e.kind===213&&e.expression.kind===102}function rC(e){return f3(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function ty(e){return Cg(e)&&fy(e.argument)&&aa(e.argument.literal)}function Vp(e){return e.kind===244&&e.expression.kind===11}function g8(e){return!!(ha(e)&2097152)}function h5(e){return g8(e)&&$c(e)}function HFe(e){return Ie(e.name)&&!e.initializer}function y5(e){return g8(e)&&ac(e)&&Wi(e.declarationList.declarations,HFe)}function Nz(e,t){return e.kind!==12?_g(t.text,e.pos):void 0}function Iz(e,t){const n=e.kind===169||e.kind===168||e.kind===218||e.kind===219||e.kind===217||e.kind===260||e.kind===281?es(m1(t,e.pos),_g(t,e.pos)):_g(t,e.pos);return An(n,i=>t.charCodeAt(i.pos+1)===42&&t.charCodeAt(i.pos+2)===42&&t.charCodeAt(i.pos+3)!==47)}function gg(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 Fye(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),E.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:{const{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 Fye(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 bs(t.typeArguments,e)}}}return!1}function Fye(e){return IO(e.parent)||gx(e.parent)||kf(e.parent)&&!K5(e)}function Oye(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent}return!1}function Wv(e,t){return n(e);function n(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 Ss(i,n)}}}function zte(e,t){return n(e);function n(i){switch(i.kind){case 229:t(i);const s=i.expression;s&&n(s);return;case 266:case 264:case 267:case 265:return;default:if(As(i)){if(i.name&&i.name.kind===167){n(i.name.expression);return}}else gg(i)||Ss(i,n)}}}function Fz(e){return e&&e.kind===188?e.elementType:e&&e.kind===183?Tm(e.typeArguments):void 0}function Wte(e){switch(e.kind){case 264:case 263:case 231:case 187:return e.members;case 210:return e.properties}}function nC(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 Vte(e){return nC(e)||X0(e)}function hE(e){return e.parent.kind===261&&e.parent.parent.kind===243}function Ute(e){return Hr(e)?ua(e.parent)&&Zr(e.parent.parent)&&fc(e.parent.parent)===2||v5(e.parent):!1}function v5(e){return Hr(e)?Zr(e)&&fc(e)===1:!1}function qte(e){return(hi(e)?tC(e)&&Ie(e.name)&&hE(e):xs(e)?FE(e)&&Bc(e):B_(e)&&FE(e))||v5(e)}function Hte(e){switch(e.kind){case 174:case 173:case 176:case 177:case 178:case 262:case 218:return!0}return!1}function Oz(e,t){for(;;){if(t&&t(e),e.statement.kind!==256)return e.statement;e=e.statement}}function Vv(e){return e&&e.kind===241&&As(e.parent)}function Up(e){return e&&e.kind===174&&e.parent.kind===210}function b5(e){return(e.kind===174||e.kind===177||e.kind===178)&&(e.parent.kind===210||e.parent.kind===231)}function Gte(e){return e&&e.kind===1}function Lye(e){return e&&e.kind===0}function iC(e,t,n,i){return er(e==null?void 0:e.properties,s=>{if(!zc(s))return;const o=gE(s.name);return t===o||i&&i===o?n(s):void 0})}function $te(e,t,n){return iC(e,t,i=>ju(i.initializer)?wn(i.initializer.elements,s=>aa(s)&&s.text===n):void 0)}function yE(e){if(e&&e.statements.length){const t=e.statements[0].expression;return Wn(t,ua)}}function S5(e,t,n){return h8(e,t,i=>ju(i.initializer)?wn(i.initializer.elements,s=>aa(s)&&s.text===n):void 0)}function h8(e,t,n){return iC(yE(e),t,n)}function cf(e){return Pr(e.parent,As)}function Xte(e){return Pr(e.parent,fo)}function Nl(e){return Pr(e.parent,$n)}function Qte(e){return Pr(e.parent,t=>$n(t)||As(t)?"quit":ec(t))}function T5(e){return Pr(e.parent,Hk)}function x5(e){const t=Pr(e.parent,n=>$n(n)?"quit":ql(n));return t&&$n(t.parent)?Nl(t.parent):Nl(t??e)}function a_(e,t,n){for(E.assert(e.kind!==312);;){if(e=e.parent,!e)return E.fail();switch(e.kind){case 167:if(n&&$n(e.parent.parent))return e;e=e.parent.parent;break;case 170:e.parent.kind===169&&Tl(e.parent.parent)?e=e.parent.parent:Tl(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 Yte(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 k5(e){Ie(e)&&(Xc(e.parent)||$c(e.parent))&&e.parent.name===e&&(e=e.parent);const t=a_(e,!0,!1);return Ni(t)}function Zte(e){const t=a_(e,!1,!1);if(t)switch(t.kind){case 176:case 262:case 218:return t}}function y8(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&&Tl(e.parent.parent)?e=e.parent.parent:Tl(e.parent)&&(e=e.parent);break}}}function Db(e){if(e.kind===218||e.kind===219){let t=e,n=e.parent;for(;n.kind===217;)t=n,n=n.parent;if(n.kind===213&&n.expression===t)return n}}function Mye(e){return e.kind===108||o_(e)}function o_(e){const t=e.kind;return(t===211||t===212)&&e.expression.kind===108}function v8(e){const t=e.kind;return(t===211||t===212)&&e.expression.kind===110}function C5(e){var t;return!!e&&hi(e)&&((t=e.initializer)==null?void 0:t.kind)===110}function Kte(e){return!!e&&(k_(e)||zc(e))&&Zr(e.parent.parent)&&e.parent.parent.operatorToken.kind===64&&e.parent.parent.right.kind===110}function b8(e){switch(e.kind){case 183:return e.typeName;case 233:return pc(e.expression)?e.expression:void 0;case 80:case 166:return e}}function E5(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 P5(e,t,n,i){if(e&&Nu(t)&&Pi(t.name))return!1;switch(t.kind){case 263:return!0;case 231:return!e;case 172:return n!==void 0&&(e?Xc(n):$n(n)&&!Zv(t)&&!dW(t));case 177:case 178:case 174:return t.body!==void 0&&n!==void 0&&(e?Xc(n):$n(n));case 169:return e?n!==void 0&&n.body!==void 0&&(n.kind===176||n.kind===174||n.kind===178)&&Xv(n)!==t&&i!==void 0&&i.kind===263:!1}return!1}function sC(e,t,n,i){return Vf(t)&&P5(e,t,n,i)}function S8(e,t,n,i){return sC(e,t,n,i)||vE(e,t,n)}function vE(e,t,n){switch(t.kind){case 263:return ct(t.members,i=>S8(e,i,t,n));case 231:return!e&&ct(t.members,i=>S8(e,i,t,n));case 174:case 178:case 176:return ct(t.parameters,i=>sC(e,i,t,n));default:return!1}}function Qh(e,t){if(sC(e,t))return!0;const n=Sg(t);return!!n&&vE(e,n,t)}function Lz(e,t,n){let i;if(X0(t)){const{firstAccessor:s,secondAccessor:o,setAccessor:c}=Rb(n.members,t),u=Vf(s)?s:o&&Vf(o)?o:void 0;if(!u||t!==u)return!1;i=c==null?void 0:c.parameters}else hc(t)&&(i=t.parameters);if(sC(e,t,n))return!0;if(i){for(const s of i)if(!Qv(s)&&sC(e,s,t,n))return!0}return!1}function Mz(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 11:return Mz(e.textSourceNode);case 15:return e.text===""}return!1}return e.text===""}function aC(e){const{parent:t}=e;return t.kind===286||t.kind===285||t.kind===287?t.tagName===e:!1}function hg(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!kf(e.parent)&&!gx(e.parent);case 166:for(;e.parent.kind===166;)e=e.parent;return e.parent.kind===186||IT(e.parent)||v3(e.parent)||M1(e.parent)||aC(e);case 318:for(;M1(e.parent);)e=e.parent;return e.parent.kind===186||IT(e.parent)||v3(e.parent)||M1(e.parent)||aC(e);case 81:return Zr(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===103;case 80:if(e.parent.kind===186||IT(e.parent)||v3(e.parent)||M1(e.parent)||aC(e))return!0;case 9:case 10:case 11:case 15:case 110:return D5(e);default:return!1}}function D5(e){const{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:const n=t;return n.initializer===e&&n.initializer.kind!==261||n.condition===e||n.incrementor===e;case 249:case 250:const 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&&!gg(t);case 304:return t.objectAssignmentInitializer===e;case 238:return e===t.expression;default:return hg(t)}}function w5(e){for(;e.kind===166||e.kind===80;)e=e.parent;return e.kind===186}function ere(e){return jm(e)&&!!e.parent.moduleSpecifier}function C1(e){return e.kind===271&&e.moduleReference.kind===283}function bE(e){return E.assert(C1(e)),e.moduleReference.expression}function Rz(e){return Uv(e)&&CC(e.initializer).arguments[0]}function oC(e){return e.kind===271&&e.moduleReference.kind!==283}function Ou(e){return Hr(e)}function Rye(e){return!Hr(e)}function Hr(e){return!!e&&!!(e.flags&524288)}function A5(e){return!!e&&!!(e.flags&134217728)}function jz(e){return!gp(e)}function T8(e){return!!e&&!!(e.flags&16777216)}function N5(e){return $f(e)&&Ie(e.typeName)&&e.typeName.escapedText==="Object"&&e.typeArguments&&e.typeArguments.length===2&&(e.typeArguments[0].kind===154||e.typeArguments[0].kind===150)}function Gu(e,t){if(e.kind!==213)return!1;const{expression:n,arguments:i}=e;if(n.kind!==80||n.escapedText!=="require"||i.length!==1)return!1;const s=i[0];return!t||Ma(s)}function I5(e){return jye(e,!1)}function Uv(e){return jye(e,!0)}function tre(e){return Ea(e)&&Uv(e.parent.parent)}function jye(e,t){return hi(e)&&!!e.initializer&&Gu(t?CC(e.initializer):e.initializer,!0)}function Bz(e){return ac(e)&&e.declarationList.declarations.length>0&&Wi(e.declarationList.declarations,t=>I5(t))}function x8(e){return e===39||e===34}function F5(e,t){return Bv(t,e).charCodeAt(0)===34}function SE(e){return Zr(e)||oo(e)||Ie(e)||Rs(e)}function k8(e){return Hr(e)&&e.initializer&&Zr(e.initializer)&&(e.initializer.operatorToken.kind===57||e.initializer.operatorToken.kind===61)&&e.name&&pc(e.name)&&cC(e.name,e.initializer.left)?e.initializer.right:e.initializer}function C8(e){const t=k8(e);return t&&E1(t,iy(e.name))}function GFe(e,t){return er(e.properties,n=>zc(n)&&Ie(n.name)&&n.name.escapedText==="value"&&n.initializer&&E1(n.initializer,t))}function OT(e){if(e&&e.parent&&Zr(e.parent)&&e.parent.operatorToken.kind===64){const t=iy(e.parent.left);return E1(e.parent.right,t)||$Fe(e.parent.left,e.parent.right,t)}if(e&&Rs(e)&&Ab(e)){const t=GFe(e.arguments[2],e.arguments[1].text==="prototype");if(t)return t}}function E1(e,t){if(Rs(e)){const n=Va(e.expression);return n.kind===218||n.kind===219?e:void 0}if(e.kind===218||e.kind===231||e.kind===219||ua(e)&&(e.properties.length===0||t))return e}function $Fe(e,t,n){const i=Zr(t)&&(t.operatorToken.kind===57||t.operatorToken.kind===61)&&E1(t.right,n);if(i&&cC(e,t.left))return i}function rre(e){const t=hi(e.parent)?e.parent.name:Zr(e.parent)&&e.parent.operatorToken.kind===64?e.parent.left:void 0;return t&&E1(e.right,iy(t))&&pc(t)&&cC(t,e.left)}function Jz(e){if(Zr(e.parent)){const t=(e.parent.operatorToken.kind===57||e.parent.operatorToken.kind===61)&&Zr(e.parent.parent)?e.parent.parent:e.parent;if(t.operatorToken.kind===64&&Ie(t.left))return t.left}else if(hi(e.parent))return e.parent.name}function cC(e,t){return qd(e)&&qd(t)?yp(e)===yp(t):pg(e)&&O5(t)&&(t.expression.kind===110||Ie(t.expression)&&(t.expression.escapedText==="window"||t.expression.escapedText==="self"||t.expression.escapedText==="global"))?cC(e,D8(t)):O5(e)&&O5(t)?Kg(e)===Kg(t)&&cC(e.expression,t.expression):!1}function E8(e){for(;nl(e,!0);)e=e.right;return e}function wb(e){return Ie(e)&&e.escapedText==="exports"}function zz(e){return Ie(e)&&e.escapedText==="module"}function yg(e){return(Sn(e)||P8(e))&&zz(e.expression)&&Kg(e)==="exports"}function fc(e){const t=XFe(e);return t===5||Hr(e)?t:0}function Ab(e){return gr(e.arguments)===3&&Sn(e.expression)&&Ie(e.expression.expression)&&on(e.expression.expression)==="Object"&&on(e.expression.name)==="defineProperty"&&Tf(e.arguments[1])&&Nb(e.arguments[0],!0)}function O5(e){return Sn(e)||P8(e)}function P8(e){return ko(e)&&Tf(e.argumentExpression)}function qv(e,t){return Sn(e)&&(!t&&e.expression.kind===110||Ie(e.name)&&Nb(e.expression,!0))||L5(e,t)}function L5(e,t){return P8(e)&&(!t&&e.expression.kind===110||pc(e.expression)||qv(e.expression,!0))}function Nb(e,t){return pc(e)||qv(e,t)}function D8(e){return Sn(e)?e.name:e.argumentExpression}function XFe(e){if(Rs(e)){if(!Ab(e))return 0;const t=e.arguments[0];return wb(t)||yg(t)?8:qv(t)&&Kg(t)==="prototype"?9:7}return e.operatorToken.kind!==64||!oo(e.left)||QFe(E8(e))?0:Nb(e.left.expression,!0)&&Kg(e.left)==="prototype"&&ua(Wz(e))?6:w8(e.left)}function QFe(e){return ux(e)&&j_(e.expression)&&e.expression.text==="0"}function M5(e){if(Sn(e))return e.name;const t=Va(e.argumentExpression);return j_(t)||Ma(t)?t:e}function Kg(e){const t=M5(e);if(t){if(Ie(t))return t.escapedText;if(Ma(t)||j_(t))return Wo(t.text)}}function w8(e){if(e.expression.kind===110)return 4;if(yg(e))return 2;if(Nb(e.expression,!0)){if(iy(e.expression))return 3;let t=e;for(;!Ie(t.expression);)t=t.expression;const n=t.expression;if((n.escapedText==="exports"||n.escapedText==="module"&&Kg(t)==="exports")&&qv(e))return 1;if(Nb(e,!0)||ko(e)&&W5(e))return 5}return 0}function Wz(e){for(;Zr(e.right);)e=e.right;return e.right}function A8(e){return Zr(e)&&fc(e)===3}function nre(e){return Hr(e)&&e.parent&&e.parent.kind===244&&(!ko(e)||P8(e))&&!!b1(e.parent)}function N8(e,t){const{valueDeclaration:n}=e;(!n||!(t.flags&33554432&&!Hr(t)&&!(n.flags&33554432))&&SE(n)&&!SE(t)||n.kind!==t.kind&&Nte(n))&&(e.valueDeclaration=t)}function ire(e){if(!e||!e.valueDeclaration)return!1;const t=e.valueDeclaration;return t.kind===262||hi(t)&&t.initializer&&As(t.initializer)}function lC(e){var t,n;switch(e.kind){case 260:case 208:return(t=Pr(e.initializer,i=>Gu(i,!0)))==null?void 0:t.arguments[0];case 272:case 278:return Wn(e.moduleSpecifier,Ma);case 271:return Wn((n=Wn(e.moduleReference,Bm))==null?void 0:n.expression,Ma);case 273:case 280:return Wn(e.parent.moduleSpecifier,Ma);case 274:case 281:return Wn(e.parent.parent.moduleSpecifier,Ma);case 276:return Wn(e.parent.parent.parent.moduleSpecifier,Ma);case 205:return ty(e)?e.argument.literal:void 0;default:E.assertNever(e)}}function TE(e){return I8(e)||E.failBadSyntaxKind(e.parent)}function I8(e){switch(e.parent.kind){case 272:case 278:return e.parent;case 283:return e.parent.parent;case 213:return of(e.parent)||Gu(e.parent,!1)?e.parent:void 0;case 201:return E.assert(aa(e)),Wn(e.parent.parent,Cg);default:return}}function uC(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 ty(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 E.assertNever(e)}}function _C(e){switch(e.kind){case 272:return e.importClause&&Wn(e.importClause.namedBindings,my);case 271:return e;case 278:return e.exportClause&&Wn(e.exportClause,jm);default:return E.assertNever(e)}}function LT(e){return e.kind===272&&!!e.importClause&&!!e.importClause.name}function R5(e,t){if(e.name){const n=t(e);if(n)return n}if(e.namedBindings){const n=my(e.namedBindings)?t(e.namedBindings):er(e.namedBindings.elements,t);if(n)return n}}function MT(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 fC(e){const t=VC(e)?bl(e.parameters):void 0,n=Wn(t&&t.name,Ie);return!!n&&n.escapedText==="new"}function hp(e){return e.kind===353||e.kind===345||e.kind===347}function F8(e){return hp(e)||Gp(e)}function YFe(e){return Cl(e)&&Zr(e.expression)&&e.expression.operatorToken.kind===64?E8(e.expression):void 0}function Bye(e){return Cl(e)&&Zr(e.expression)&&fc(e.expression)!==0&&Zr(e.expression.right)&&(e.expression.right.operatorToken.kind===57||e.expression.right.operatorToken.kind===61)?e.expression.right.right:void 0}function Vz(e){switch(e.kind){case 243:const t=RT(e);return t&&t.initializer;case 172:return e.initializer;case 303:return e.initializer}}function RT(e){return ac(e)?bl(e.declarationList.declarations):void 0}function Jye(e){return Sc(e)&&e.body&&e.body.kind===267?e.body:void 0}function O8(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 L8(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 Uz(e,t){let n;nC(e)&&Z0(e)&&sf(e.initializer)&&(n=Nn(n,zye(e,e.initializer.jsDoc)));let i=e;for(;i&&i.parent;){if(sf(i)&&(n=Nn(n,zye(e,i.jsDoc))),i.kind===169){n=Nn(n,(t?jee:Vk)(i));break}if(i.kind===168){n=Nn(n,(t?Jee:Bee)(i));break}i=qz(i)}return n||Ve}function zye(e,t){const n=ka(t);return Zs(t,i=>{if(i===n){const s=An(i.tags,o=>ZFe(e,o));return i.tags===s?[i]:s}else return An(i.tags,UC)})}function ZFe(e,t){return!(b3(t)||FO(t))||!t.parent||!vd(t.parent)||!l_(t.parent.parent)||t.parent.parent===e}function qz(e){const t=e.parent;if(t.kind===303||t.kind===277||t.kind===172||t.kind===244&&e.kind===211||t.kind===253||Jye(t)||nl(e))return t;if(t.parent&&(RT(t.parent)===e||nl(t)))return t.parent;if(t.parent&&t.parent.parent&&(RT(t.parent.parent)||Vz(t.parent.parent)===e||Bye(t.parent.parent)))return t.parent.parent}function M8(e){if(e.symbol)return e.symbol;if(!Ie(e.name))return;const t=e.name.escapedText,n=P1(e);if(!n)return;const i=wn(n.parameters,s=>s.name.kind===80&&s.name.escapedText===t);return i&&i.symbol}function j5(e){if(vd(e.parent)&&e.parent.tags){const t=wn(e.parent.tags,hp);if(t)return t}return P1(e)}function Hz(e){return V7(e,UC)}function P1(e){const t=D1(e);if(t)return B_(t)&&t.type&&As(t.type)?t.type:As(t)?t:void 0}function D1(e){const t=Ib(e);if(t)return Bye(t)||YFe(t)||Vz(t)||RT(t)||Jye(t)||t}function Ib(e){const t=pC(e);if(!t)return;const n=t.parent;if(n&&n.jsDoc&&t===Po(n.jsDoc))return n}function pC(e){return Pr(e.parent,vd)}function sre(e){const t=e.name.escapedText,{typeParameters:n}=e.parent.parent.parent;return n&&wn(n,i=>i.name.escapedText===t)}function Wye(e){return!!e.typeArguments}function are(e){let t=e.parent;for(;;){switch(t.kind){case 226:const n=t,i=n.operatorToken.kind;return Kh(i)&&n.left===e?n:void 0;case 224:case 225:const s=t,o=s.operator;return o===46||o===47?s:void 0;case 249:case 250:const c=t;return c.initializer===e?c: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 jT(e){const t=are(e);if(!t)return 0;switch(t.kind){case 226:const n=t.operatorToken.kind;return n===64||OE(n)?1:2;case 224:case 225:return 2;case 249:case 250:return 1}}function vg(e){return!!are(e)}function KFe(e){const t=Va(e.right);return t.kind===226&&YV(t.operatorToken.kind)}function Gz(e){const t=are(e);return!!t&&nl(t,!0)&&KFe(t)}function ore(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 cre(e){return co(e)||po(e)||AT(e)||$c(e)||sc(e)}function Vye(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function R8(e){return Vye(e,196)}function Yh(e){return Vye(e,217)}function lre(e){let t;for(;e&&e.kind===196;)t=e,e=e.parent;return[t,e]}function j8(e){for(;Vb(e);)e=e.type;return e}function Va(e,t){return xc(e,t?17:1)}function $z(e){return e.kind!==211&&e.kind!==212?!1:(e=Yh(e.parent),e&&e.kind===220)}function Hv(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function eh(e){return!Ni(e)&&!Ns(e)&&yu(e.parent)&&e.parent.name===e}function xE(e){const t=e.parent;switch(e.kind){case 11:case 15:case 9:if(Pa(t))return t.parent;case 80:if(yu(t))return t.name===e?t:void 0;if(Xu(t)){const n=t.parent;return bd(n)&&n.name===t?n:void 0}else{const n=t.parent;return Zr(n)&&fc(n)!==0&&(n.left.symbol||n.symbol)&&us(n)===e?n:void 0}case 81:return yu(t)&&t.name===e?t:void 0;default:return}}function B8(e){return Tf(e)&&e.parent.kind===167&&yu(e.parent.parent)}function ure(e){const 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 Uye(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&&dC(e)?!0:Hr(e)&&(Zr(e)&&fc(e)===2&&dC(e)||Sn(e)&&Zr(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===64&&J8(e.parent.right))}function Xz(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 Xz(e)}}function J8(e){return pc(e)||kl(e)}function dC(e){const t=Qz(e);return J8(t)}function Qz(e){return oc(e)?e.expression:e.right}function _re(e){return e.kind===304?e.name:e.kind===303?e.initializer:e.parent.right}function Ud(e){const t=Gv(e);if(t&&Hr(e)){const n=Wee(e);if(n)return n.class}return t}function Gv(e){const t=z8(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function mC(e){if(Hr(e))return Vee(e).map(t=>t.class);{const t=z8(e.heritageClauses,119);return t==null?void 0:t.types}}function kE(e){return Bu(e)?CE(e)||Ve:$n(e)&&es(TT(Ud(e)),mC(e))||Ve}function CE(e){const t=z8(e.heritageClauses,96);return t?t.types:void 0}function z8(e,t){if(e){for(const n of e)if(n.token===t)return n}}function w1(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function c_(e){return 83<=e&&e<=165}function Yz(e){return 19<=e&&e<=79}function B5(e){return c_(e)||Yz(e)}function J5(e){return 128<=e&&e<=165}function Zz(e){return c_(e)&&!J5(e)}function qye(e){return 119<=e&&e<=127}function BT(e){const t=Ov(e);return t!==void 0&&Zz(t)}function Hye(e){const t=Ov(e);return t!==void 0&&c_(t)}function Kz(e){const t=v1(e);return!!t&&!J5(t)}function gC(e){return 2<=e&&e<=7}function fl(e){if(!e)return 4;let t=0;switch(e.kind){case 262:case 218:case 174:e.asteriskToken&&(t|=1);case 219:Rn(e,1024)&&(t|=2);break}return e.body||(t|=4),t}function EE(e){switch(e.kind){case 262:case 218:case 219:case 174:return e.body!==void 0&&e.asteriskToken===void 0&&Rn(e,1024)}return!1}function Tf(e){return Ma(e)||j_(e)}function z5(e){return dy(e)&&(e.operator===40||e.operator===41)&&j_(e.operand)}function ry(e){const t=us(e);return!!t&&W5(t)}function W5(e){if(!(e.kind===167||e.kind===212))return!1;const t=ko(e)?Va(e.argumentExpression):e.expression;return!Tf(t)&&!z5(t)}function Fb(e){switch(e.kind){case 80:case 81:return e.escapedText;case 11:case 15:case 9:return Wo(e.text);case 167:const t=e.expression;return Tf(t)?Wo(t.text):z5(t)?t.operator===41?Ws(t.operator)+t.operand.text:t.operand.text:void 0;case 295:return $T(e);default:return E.assertNever(e)}}function qd(e){switch(e.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function yp(e){return pg(e)?on(e):yd(e)?r3(e):e.text}function PE(e){return pg(e)?e.escapedText:yd(e)?$T(e):Wo(e.text)}function Gye(e){return`__@${Ks(e)}@${e.escapedName}`}function W8(e,t){return`__#${Ks(e)}@${t}`}function V8(e){return Vi(e.escapedName,"__@")}function fre(e){return Vi(e.escapedName,"__#")}function $ye(e){return e.kind===80&&e.escapedText==="Symbol"}function pre(e){return Ie(e)?on(e)==="__proto__":aa(e)&&e.text==="__proto__"}function DE(e,t){switch(e=xc(e),e.kind){case 231:if(lq(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 eW(e){switch(e.kind){case 303:return!pre(e.name);case 304:return!!e.objectAssignmentInitializer;case 260:return Ie(e.name)&&!!e.initializer;case 169:return Ie(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 208:return Ie(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 Ie(e.left)}break;case 277:return!0}return!1}function M_(e,t){if(!eW(e))return!1;switch(e.kind){case 303:return DE(e.initializer,t);case 304:return DE(e.objectAssignmentInitializer,t);case 260:case 169:case 208:case 172:return DE(e.initializer,t);case 226:return DE(e.right,t);case 277:return DE(e.expression,t)}}function tW(e){return e.escapedText==="push"||e.escapedText==="unshift"}function $v(e){return Hd(e).kind===169}function Hd(e){for(;e.kind===208;)e=e.parent.parent;return e}function rW(e){const t=e.kind;return t===176||t===218||t===262||t===219||t===174||t===177||t===178||t===267||t===312}function xo(e){return gd(e.pos)||gd(e.end)}function Xye(e){return as(e,Ni)||e}function nW(e){const t=sW(e),n=e.kind===214&&e.arguments!==void 0;return iW(e.kind,t,n)}function iW(e,t,n){switch(e){case 214:return n?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 wE(e){const t=sW(e),n=e.kind===214&&e.arguments!==void 0;return U8(e.kind,t,n)}function sW(e){return e.kind===226?e.operatorToken.kind:e.kind===224||e.kind===225?e.operator:e.kind}function U8(e,t,n){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 q8(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 n?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 q8(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 hC(e){return An(e,t=>{switch(t.kind){case 294:return!!t.expression;case 12:return!t.containsOnlyTriviaWhiteSpaces;default:return!0}})}function yC(){let e=[];const t=[],n=new Map;let i=!1;return{add:o,lookup:s,getGlobalDiagnostics:c,getDiagnostics:u};function s(f){let g;if(f.file?g=n.get(f.file.fileName):g=e,!g)return;const d=Jh(g,f,Do,lF);if(d>=0)return g[d]}function o(f){let g;f.file?(g=n.get(f.file.fileName),g||(g=[],n.set(f.file.fileName,g),B0(t,f.file.fileName,mu))):(i&&(i=!1,e=e.slice()),g=e),B0(g,f,lF)}function c(){return i=!0,e}function u(f){if(f)return n.get(f)||[];const g=B4(t,d=>n.get(d));return e.length&&g.unshift(...e),g}}function aW(e){return e.replace(S1e,"\\${")}function dre(e){return!!((e.templateFlags||0)&2048)}function oW(e){return e&&!!(tx(e)?dre(e):dre(e.head)||ct(e.templateSpans,t=>dre(t.literal)))}function Qye(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function eOe(e,t,n){if(e.charCodeAt(0)===0){const i=n.charCodeAt(t+e.length);return i>=48&&i<=57?"\\x00":"\\0"}return C1e.get(e)||Qye(e.charCodeAt(0))}function bg(e,t){const n=t===96?k1e:t===39?x1e:T1e;return e.replace(n,eOe)}function H8(e,t){return e=bg(e,t),kne.test(e)?e.replace(kne,n=>Qye(n.charCodeAt(0))):e}function tOe(e){return"&#x"+e.toString(16).toUpperCase()+";"}function rOe(e){return e.charCodeAt(0)===0?"�":D1e.get(e)||tOe(e.charCodeAt(0))}function cW(e,t){const n=t===39?P1e:E1e;return e.replace(n,rOe)}function vp(e){const t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&nOe(e.charCodeAt(0))?e.substring(1,t-1):e}function nOe(e){return e===39||e===34||e===96}function vC(e){const t=e.charCodeAt(0);return t>=97&&t<=122||e.includes("-")}function V5(e){const t=n3[1];for(let n=n3.length;n<=e;n++)n3.push(n3[n-1]+t);return n3[e]}function bC(){return n3[1].length}function G8(e){var t,n,i,s,o,c=!1;function u(P){const F=ET(P);F.length>1?(s=s+F.length-1,o=t.length-P.length+ka(F),i=o-t.length===0):i=!1}function f(P){P&&P.length&&(i&&(P=V5(n)+P,i=!1),t+=P,u(P))}function g(P){P&&(c=!1),f(P)}function d(P){P&&(c=!0),f(P)}function y(){t="",n=0,i=!0,s=0,o=0,c=!1}function S(P){P!==void 0&&(t+=P,u(P),c=!1)}function T(P){P&&P.length&&g(P)}function k(P){(!i||P)&&(t+=e,s++,o=t.length,i=!0,c=!1)}function w(){return i?t.length:t.length+e.length}return y(),{write:g,rawWrite:S,writeLiteral:T,writeLine:k,increaseIndent:()=>{n++},decreaseIndent:()=>{n--},getIndent:()=>n,getTextPos:()=>t.length,getLine:()=>s,getColumn:()=>i?n*bC():t.length-o,getText:()=>t,isAtStartOfLine:()=>i,hasTrailingComment:()=>c,hasTrailingWhitespace:()=>!!t.length&&Xg(t.charCodeAt(t.length-1)),clear:y,writeKeyword:g,writeOperator:g,writeParameter:g,writeProperty:g,writePunctuation:g,writeSpace:g,writeStringLiteral:g,writeSymbol:(P,F)=>g(P),writeTrailingSemicolon:g,writeComment:d,getTextPosWithWriteLine:w}}function lW(e){let t=!1;function n(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return{...e,writeTrailingSemicolon(){t=!0},writeLiteral(i){n(),e.writeLiteral(i)},writeStringLiteral(i){n(),e.writeStringLiteral(i)},writeSymbol(i,s){n(),e.writeSymbol(i,s)},writePunctuation(i){n(),e.writePunctuation(i)},writeKeyword(i){n(),e.writeKeyword(i)},writeOperator(i){n(),e.writeOperator(i)},writeParameter(i){n(),e.writeParameter(i)},writeSpace(i){n(),e.writeSpace(i)},writeProperty(i){n(),e.writeProperty(i)},writeComment(i){n(),e.writeComment(i)},writeLine(){n(),e.writeLine()},increaseIndent(){n(),e.increaseIndent()},decreaseIndent(){n(),e.decreaseIndent()}}}function SC(e){return e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames():!1}function Zh(e){return nu(SC(e))}function U5(e,t,n){return t.moduleName||uW(e,t.fileName,n&&n.fileName)}function Yye(e,t){return e.getCanonicalFileName(Xi(t,e.getCurrentDirectory()))}function mre(e,t,n){const i=t.getExternalModuleFileFromDeclaration(n);if(!i||i.isDeclarationFile)return;const s=uC(n);if(!(s&&Ma(s)&&!nf(s.text)&&!Yye(e,i.path).includes(Yye(e,ul(e.getCommonSourceDirectory())))))return U5(e,i)}function uW(e,t,n){const i=f=>e.getCanonicalFileName(f),s=No(n?Un(n):e.getCommonSourceDirectory(),e.getCurrentDirectory(),i),o=Xi(t,e.getCurrentDirectory()),c=CT(s,o,s,i,!1),u=$u(c);return n?Fv(u):u}function gre(e,t,n){const i=t.getCompilerOptions();let s;return i.outDir?s=$u($5(e,t,i.outDir)):s=$u(e),s+n}function hre(e,t){return q5(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),n=>t.getCanonicalFileName(n))}function q5(e,t,n,i,s){const o=t.declarationDir||t.outDir,c=o?X5(e,o,n,i,s):e,u=H5(c);return $u(c)+u}function H5(e){return Gc(e,[".mjs",".mts"])?".d.mts":Gc(e,[".cjs",".cts"])?".d.cts":Gc(e,[".json"])?".d.json.ts":".d.ts"}function yre(e){return Gc(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:Gc(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:Gc(e,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function no(e){return e.outFile||e.out}function G5(e,t){var n;if(e.paths)return e.baseUrl??E.checkDefined(e.pathsBasePath||((n=t.getCurrentDirectory)==null?void 0:n.call(t)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function _W(e,t,n){const i=e.getCompilerOptions();if(no(i)){const s=au(i),o=i.emitDeclarationOnly||s===2||s===4;return An(e.getSourceFiles(),c=>(o||!Ic(c))&&Ob(c,e,n))}else{const s=t===void 0?e.getSourceFiles():[t];return An(s,o=>Ob(o,e,n))}}function Ob(e,t,n){const i=t.getCompilerOptions();if(i.noEmitForJsFiles&&Ou(e)||e.isDeclarationFile||t.isSourceFileFromExternalLibrary(e))return!1;if(n)return!0;if(t.isSourceOfProjectReferenceRedirect(e.fileName))return!1;if(!gp(e))return!0;if(t.getResolvedProjectReferenceToRedirect(e.fileName))return!1;if(no(i))return!0;if(!i.outDir)return!1;if(i.rootDir||i.composite&&i.configFilePath){const s=Xi(q3(i,()=>[],t.getCurrentDirectory(),t.getCanonicalFileName),t.getCurrentDirectory()),o=X5(e.fileName,i.outDir,t.getCurrentDirectory(),s,t.getCanonicalFileName);if(Gg(e.fileName,o,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0)return!1}return!0}function $5(e,t,n){return X5(e,n,t.getCurrentDirectory(),t.getCommonSourceDirectory(),i=>t.getCanonicalFileName(i))}function X5(e,t,n,i,s){let o=Xi(e,n);return o=s(o).indexOf(s(i))===0?o.substring(i.length):o,Mn(t,o)}function AE(e,t,n,i,s,o,c){e.writeFile(n,i,s,u=>{t.add(gc(p.Could_not_write_file_0_Colon_1,n,u))},o,c)}function Zye(e,t,n){if(e.length>Pm(e)&&!n(e)){const i=Un(e);Zye(i,t,n),t(e)}}function fW(e,t,n,i,s,o){try{i(e,t,n)}catch{Zye(Un(Hs(e)),s,o),i(e,t,n)}}function NE(e,t){const n=$g(e);return Z4(n,t)}function Lb(e,t){return Z4(e,t)}function Sg(e){return wn(e.members,t=>sc(t)&&dp(t.body))}function IE(e){if(e&&e.parameters.length>0){const t=e.parameters.length===2&&Qv(e.parameters[0]);return e.parameters[t?1:0]}}function vre(e){const t=IE(e);return t&&t.type}function Xv(e){if(e.parameters.length&&!R1(e)){const t=e.parameters[0];if(Qv(t))return t}}function Qv(e){return Yv(e.name)}function Yv(e){return!!e&&e.kind===80&&pW(e)}function Mb(e){return!!Pr(e,t=>t.kind===186?!0:t.kind===80||t.kind===166?!1:"quit")}function JT(e){if(!Yv(e))return!1;for(;Xu(e.parent)&&e.parent.left===e;)e=e.parent;return e.parent.kind===186}function pW(e){return e.escapedText==="this"}function Rb(e,t){let n,i,s,o;return ry(t)?(n=t,t.kind===177?s=t:t.kind===178?o=t:E.fail("Accessor has wrong kind")):er(e,c=>{if(X0(c)&&Ms(c)===Ms(t)){const u=Fb(c.name),f=Fb(t.name);u===f&&(n?i||(i=c):n=c,c.kind===177&&!s&&(s=c),c.kind===178&&!o&&(o=c))}}),{firstAccessor:n,secondAccessor:i,getAccessor:s,setAccessor:o}}function Vl(e){if(!Hr(e)&&$c(e))return;const t=e.type;return t||!Hr(e)?t:oE(e)?e.typeExpression&&e.typeExpression.type:S1(e)}function bre(e){return e.type}function bp(e){return R1(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(Hr(e)?HD(e):void 0)}function Q5(e){return Zs(T1(e),t=>iOe(t)?t.typeParameters:void 0)}function iOe(e){return Cp(e)&&!(e.parent.kind===327&&(e.parent.tags.some(hp)||e.parent.tags.some(UC)))}function Sre(e){const t=IE(e);return t&&Vl(t)}function Tre(e,t,n,i){xre(e,t,n.pos,i)}function xre(e,t,n,i){i&&i.length&&n!==i[0].pos&&Lb(e,n)!==Lb(e,i[0].pos)&&t.writeLine()}function kre(e,t,n,i){n!==i&&Lb(e,n)!==Lb(e,i)&&t.writeLine()}function Cre(e,t,n,i,s,o,c,u){if(i&&i.length>0){s&&n.writeSpace(" ");let f=!1;for(const g of i)f&&(n.writeSpace(" "),f=!1),u(e,t,n,g.pos,g.end,c),g.hasTrailingNewLine?n.writeLine():f=!0;f&&o&&n.writeSpace(" ")}}function Ere(e,t,n,i,s,o,c){let u,f;if(c?s.pos===0&&(u=An(_g(e,s.pos),g)):u=_g(e,s.pos),u){const d=[];let y;for(const S of u){if(y){const T=Lb(t,y.end);if(Lb(t,S.pos)>=T+2)break}d.push(S),y=S}if(d.length){const S=Lb(t,ka(d).end);Lb(t,ca(e,s.pos))>=S+2&&(Tre(t,n,s,u),Cre(e,t,n,d,!1,!0,o,i),f={nodePos:s.pos,detachedCommentEndPos:ka(d).end})}}return f;function g(d){return u5(e,d.pos)}}function TC(e,t,n,i,s,o){if(e.charCodeAt(i+1)===42){const c=Bk(t,i),u=t.length;let f;for(let g=i,d=c.line;g0){let k=T%bC();const w=V5((T-k)/bC());for(n.rawWrite(w);k;)n.rawWrite(" "),k--}else n.rawWrite("")}sOe(e,s,n,o,g,y),g=y}}else n.writeComment(e.substring(i,s))}function sOe(e,t,n,i,s,o){const c=Math.min(t,o-1),u=e.substring(s,c).trim();u?(n.writeComment(u),c!==t&&n.writeLine()):n.rawWrite(i)}function Kye(e,t,n){let i=0;for(;t=0&&e.kind<=165?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=mW(e)|536870912),n||t&&Hr(e)?(!(e.modifierFlagsCache&268435456)&&e.parent&&(e.modifierFlagsCache|=e1e(e)|268435456),t1e(e.modifierFlagsCache)):aOe(e.modifierFlagsCache))}function Lu(e){return wre(e,!0)}function Are(e){return wre(e,!0,!0)}function ny(e){return wre(e,!1)}function e1e(e){let t=0;return e.parent&&!rs(e)&&(Hr(e)&&(Uee(e)&&(t|=8388608),qee(e)&&(t|=16777216),Hee(e)&&(t|=33554432),Gee(e)&&(t|=67108864),$ee(e)&&(t|=134217728)),Xee(e)&&(t|=65536)),t}function aOe(e){return e&65535}function t1e(e){return e&131071|(e&260046848)>>>23}function oOe(e){return t1e(e1e(e))}function Nre(e){return mW(e)|oOe(e)}function mW(e){let t=$p(e)?$d(e.modifiers):0;return(e.flags&8||e.kind===80&&e.flags&4096)&&(t|=32),t}function $d(e){let t=0;if(e)for(const n of e)t|=WT(n.kind);return t}function WT(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 r1e(e){return e===57||e===56}function Ire(e){return r1e(e)||e===54}function OE(e){return e===76||e===77||e===78}function gW(e){return Zr(e)&&OE(e.operatorToken.kind)}function $8(e){return r1e(e)||e===61}function X8(e){return Zr(e)&&$8(e.operatorToken.kind)}function Kh(e){return e>=64&&e<=79}function hW(e){const t=yW(e);return t&&!t.isImplements?t.class:void 0}function yW(e){if(s0(e)){if(kf(e.parent)&&$n(e.parent.parent))return{class:e.parent.parent,isImplements:e.parent.token===119};if(gx(e.parent)){const t=D1(e.parent);if(t&&$n(t))return{class:t,isImplements:!1}}}}function nl(e,t){return Zr(e)&&(t?e.operatorToken.kind===64:Kh(e.operatorToken.kind))&&S_(e.left)}function n1e(e){return nl(e.parent)&&e.parent.left===e}function e0(e){if(nl(e,!0)){const t=e.left.kind;return t===210||t===209}return!1}function K5(e){return hW(e)!==void 0}function pc(e){return e.kind===80||Q8(e)}function lf(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 LE(e){return e.kind===80||e.kind===110||e.kind===108||e.kind===236||e.kind===211&&LE(e.expression)||e.kind===217&&LE(e.expression)}function Q8(e){return Sn(e)&&Ie(e.name)&&pc(e.expression)}function Y8(e){if(Sn(e)){const t=Y8(e.expression);if(t!==void 0)return t+"."+L_(e.name)}else if(ko(e)){const t=Y8(e.expression);if(t!==void 0&&Ac(e.argumentExpression))return t+"."+Fb(e.argumentExpression)}else{if(Ie(e))return xi(e.escapedText);if(yd(e))return r3(e)}}function iy(e){return qv(e)&&Kg(e)==="prototype"}function ME(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 vW(e){return!!e.parent&&(Sn(e.parent)&&e.parent.name===e||ko(e.parent)&&e.parent.argumentExpression===e)}function Fre(e){return Xu(e.parent)&&e.parent.right===e||Sn(e.parent)&&e.parent.name===e||M1(e.parent)&&e.parent.right===e}function eF(e){return Zr(e)&&e.operatorToken.kind===104}function Ore(e){return eF(e.parent)&&e===e.parent.right}function bW(e){return e.kind===210&&e.properties.length===0}function Lre(e){return e.kind===209&&e.elements.length===0}function xC(e){if(!(!cOe(e)||!e.declarations)){for(const t of e.declarations)if(t.localSymbol)return t.localSymbol}}function cOe(e){return e&&gr(e.declarations)>0&&Rn(e.declarations[0],2048)}function tF(e){return wn(F1e,t=>Zo(e,t))}function lOe(e){const t=[],n=e.length;for(let i=0;i>6|192),t.push(s&63|128)):s<65536?(t.push(s>>12|224),t.push(s>>6&63|128),t.push(s&63|128)):s<131072?(t.push(s>>18|240),t.push(s>>12&63|128),t.push(s>>6&63|128),t.push(s&63|128)):E.assert(!1,"Unexpected code point")}return t}function Mre(e){let t="";const n=lOe(e);let i=0;const s=n.length;let o,c,u,f;for(;i>2,c=(n[i]&3)<<4|n[i+1]>>4,u=(n[i+1]&15)<<2|n[i+2]>>6,f=n[i+2]&63,i+1>=s?u=f=64:i+2>=s&&(f=64),t+=Bb.charAt(o)+Bb.charAt(c)+Bb.charAt(u)+Bb.charAt(f),i+=3;return t}function uOe(e){let t="",n=0;const i=e.length;for(;n>4&3,d=(c&15)<<4|u>>2&15,y=(u&3)<<6|f&63;d===0&&u!==0?i.push(g):y===0&&f!==0?i.push(g,d):i.push(g,d,y),s+=4}return uOe(i)}function SW(e,t){const n=ls(t)?t:t.readFile(e);if(!n)return;const i=uU(e,n);return i.error?void 0:i.config}function RE(e,t){return SW(e,t)||{}}function rF(e){try{return JSON.parse(e)}catch{return}}function dd(e,t){return!t.directoryExists||t.directoryExists(e)}function t0(e){switch(e.newLine){case 0:return w1e;case 1:case void 0:return A1e}}function Uf(e,t=e){return E.assert(t>=e||t===-1),{pos:e,end:t}}function nF(e,t){return Uf(e.pos,t)}function A1(e,t){return Uf(t,e.end)}function th(e){const t=$p(e)?hT(e.modifiers,ql):void 0;return t&&!gd(t.end)?A1(e,t.end):e}function Xd(e){if(xs(e)||hc(e))return A1(e,e.name.pos);const t=$p(e)?Po(e.modifiers):void 0;return t&&!gd(t.end)?A1(e,t.end):th(e)}function i1e(e){return e.pos===e.end}function TW(e,t){return Uf(e,e+Ws(t).length)}function jb(e,t){return Jre(e,e,t)}function iF(e,t,n){return qf(jE(e,n,!1),jE(t,n,!1),n)}function Bre(e,t,n){return qf(e.end,t.end,n)}function Jre(e,t,n){return qf(jE(e,n,!1),t.end,n)}function Z8(e,t,n){return qf(e.end,jE(t,n,!1),n)}function xW(e,t,n,i){const s=jE(t,n,i);return K4(n,e.end,s)}function s1e(e,t,n){return K4(n,e.end,t.end)}function zre(e,t){return!qf(e.pos,e.end,t)}function qf(e,t,n){return K4(n,e,t)===0}function jE(e,t,n){return gd(e.pos)?-1:ca(t.text,e.pos,!1,n)}function Wre(e,t,n,i){const s=ca(n.text,e,!1,i),o=_Oe(s,t,n);return K4(n,o??t,s)}function Vre(e,t,n,i){const s=ca(n.text,e,!1,i);return K4(n,e,Math.min(t,s))}function _Oe(e,t=0,n){for(;e-- >t;)if(!Xg(n.text.charCodeAt(e)))return e}function kW(e){const t=as(e);if(t)switch(t.parent.kind){case 266:case 267:return t===t.parent.name}return!1}function BE(e){return An(e.declarations,K8)}function K8(e){return hi(e)&&e.initializer!==void 0}function a1e(e){return e.watch&&Za(e,"watch")}function md(e){e.close()}function Ko(e){return e.flags&33554432?e.links.checkFlags:0}function Hf(e,t=!1){if(e.valueDeclaration){const n=t&&e.declarations&&wn(e.declarations,J_)||e.flags&32768&&wn(e.declarations,xf)||e.valueDeclaration,i=y1(n);return e.parent&&e.parent.flags&32?i:i&-8}if(Ko(e)&6){const n=e.links.checkFlags,i=n&1024?2:n&256?1:4,s=n&2048?256:0;return i|s}return e.flags&4194304?257:0}function Ul(e,t){return e.flags&2097152?t.getAliasedSymbol(e):e}function kC(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function sF(e){return JE(e)===1}function VT(e){return JE(e)!==0}function JE(e){const{parent:t}=e;switch(t==null?void 0:t.kind){case 217:return JE(t);case 225:case 224:const{operator:n}=t;return n===46||n===47?2:0;case 226:const{left:i,operatorToken:s}=t;return i===e&&Kh(s.kind)?s.kind===64?1:2:0;case 211:return t.name!==e?0:JE(t);case 303:{const o=JE(t.parent);return e===t.name?fOe(o):o}case 304:return e===t.objectAssignmentInitializer?0:JE(t.parent);case 209:return JE(t);default:return 0}}function fOe(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return E.assertNever(e)}}function CW(e,t){if(!e||!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(typeof e[n]=="object"){if(!CW(e[n],t[n]))return!1}else if(typeof e[n]!="function"&&e[n]!==t[n])return!1;return!0}function T_(e,t){e.forEach(t),e.clear()}function Tg(e,t,n){const{onDeleteValue:i,onExistingValue:s}=n;e.forEach((o,c)=>{var u;t!=null&&t.has(c)?s&&s(o,(u=t.get)==null?void 0:u.call(t,c),c):(e.delete(c),i(o,c))})}function zE(e,t,n){Tg(e,t,n);const{createNewValue:i}=n;t==null||t.forEach((s,o)=>{e.has(o)||e.set(o,i(o,s))})}function Ure(e){if(e.flags&32){const t=rh(e);return!!t&&Rn(t,64)}return!1}function rh(e){var t;return(t=e.declarations)==null?void 0:t.find($n)}function bn(e){return e.flags&3899393?e.objectFlags:0}function o1e(e,t){return!!Jp(e,n=>t(n)?!0:void 0)}function aF(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&Ow(e.declarations[0])}function qre({moduleSpecifier:e}){return aa(e)?e.text:jc(e)}function EW(e){let t;return Ss(e,n=>{dp(n)&&(t=n)},n=>{for(let i=n.length-1;i>=0;i--)if(dp(n[i])){t=n[i];break}}),t}function qp(e,t,n=!0){return e.has(t)?!1:(e.set(t,n),!0)}function UT(e){return $n(e)||Bu(e)||z_(e)}function PW(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 oo(e){return e.kind===211||e.kind===212}function DW(e){return e.kind===211?e.name:(E.assert(e.kind===212),e.argumentExpression)}function Hre(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}}function oF(e){return e.kind===275||e.kind===279}function CC(e){for(;oo(e);)e=e.expression;return e}function Gre(e,t){if(oo(e.parent)&&vW(e))return n(e.parent);function n(i){if(i.kind===211){const s=t(i.name);if(s!==void 0)return s}else if(i.kind===212)if(Ie(i.argumentExpression)||Ma(i.argumentExpression)){const s=t(i.argumentExpression);if(s!==void 0)return s}else return;if(oo(i.expression))return n(i.expression);if(Ie(i.expression))return t(i.expression)}}function EC(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 pOe(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 dOe(e,t){this.flags=t,(E.isDebugging||qr)&&(this.checker=e)}function mOe(e,t){this.flags=t,E.isDebugging&&(this.checker=e)}function $re(e,t,n){this.pos=t,this.end=n,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 gOe(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function hOe(e,t,n){this.pos=t,this.end=n,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 yOe(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n||(i=>i)}function Xre(e){Cne.push(e),e(Il)}function Qre(e){Object.assign(Il,e),er(Cne,t=>t(Il))}function xg(e,t){return e.replace(/{(\d+)}/g,(n,i)=>""+E.checkDefined(t[+i]))}function Yre(e){OF=e}function Zre(e){!OF&&e&&(OF=e())}function ds(e){return OF&&OF[e.key]||e.message}function PC(e,t,n,i,s,...o){n+i>t.length&&(i=t.length-n),Rte(t,n,i);let c=ds(s);return ct(o)&&(c=xg(c,o)),{file:void 0,start:n,length:i,messageText:c,category:s.category,code:s.code,reportsUnnecessary:s.reportsUnnecessary,fileName:e}}function vOe(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function c1e(e,t){const n=t.fileName||"",i=t.text.length;E.assertEqual(e.fileName,n),E.assertLessThanOrEqual(e.start,i),E.assertLessThanOrEqual(e.start+e.length,i);const s={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){s.relatedInformation=[];for(const o of e.relatedInformation)vOe(o)&&o.fileName===n?(E.assertLessThanOrEqual(o.start,i),E.assertLessThanOrEqual(o.start+o.length,i),s.relatedInformation.push(c1e(o,t))):s.relatedInformation.push(o)}return s}function qT(e,t){const n=[];for(const i of e)n.push(c1e(i,t));return n}function xl(e,t,n,i,...s){Rte(e.text,t,n);let o=ds(i);return ct(s)&&(o=xg(o,s)),{file:e,start:t,length:n,messageText:o,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated}}function wW(e,...t){let n=ds(e);return ct(t)&&(n=xg(n,t)),n}function gc(e,...t){let n=ds(e);return ct(t)&&(n=xg(n,t)),{file:void 0,start:void 0,length:void 0,messageText:n,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function cF(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 vs(e,t,...n){let i=ds(t);return ct(n)&&(i=xg(i,n)),{messageText:i,category:t.category,code:t.code,next:e===void 0||Array.isArray(e)?e:[e]}}function Kre(e,t){let n=e;for(;n.next;)n=n.next[0];n.next=[t]}function l1e(e){return e.file?e.file.path:void 0}function WE(e,t){return lF(e,t)||bOe(e,t)||0}function lF(e,t){return mu(l1e(e),l1e(t))||wo(e.start,t.start)||wo(e.length,t.length)||wo(e.code,t.code)||u1e(e.messageText,t.messageText)||0}function bOe(e,t){return!e.relatedInformation&&!t.relatedInformation?0:e.relatedInformation&&t.relatedInformation?wo(e.relatedInformation.length,t.relatedInformation.length)||er(e.relatedInformation,(n,i)=>{const s=t.relatedInformation[i];return WE(n,s)})||0:e.relatedInformation?-1:1}function u1e(e,t){if(typeof e=="string"&&typeof t=="string")return mu(e,t);if(typeof e=="string")return-1;if(typeof t=="string")return 1;let n=mu(e.messageText,t.messageText);if(n)return n;if(!e.next&&!t.next)return 0;if(!e.next)return-1;if(!t.next)return 1;const i=Math.min(e.next.length,t.next.length);for(let s=0;st.next.length?1:0}function ew(e){return e===4||e===2||e===1||e===6?1:0}function _1e(e){if(e.transformFlags&2)return Fu(e)||u2(e)?e:Ss(e,_1e)}function SOe(e){return e.isDeclarationFile?void 0:_1e(e)}function TOe(e){return(e.impliedNodeFormat===99||Gc(e.fileName,[".cjs",".cts",".mjs",".mts"]))&&!e.isDeclarationFile?!0:void 0}function tw(e){switch(KW(e)){case 3:return s=>{s.externalModuleIndicator=qw(s)||!s.isDeclarationFile||void 0};case 1:return s=>{s.externalModuleIndicator=qw(s)};case 2:const t=[qw];(e.jsx===4||e.jsx===5)&&t.push(SOe),t.push(TOe);const n=pd(...t);return s=>void(s.externalModuleIndicator=n(s))}}function Lpt(e){return e}function uF(e){return e>=5&&e<=99}function _F(e){switch(au(e)){case 0:case 4:case 3:return!1}return!0}function AW(e){return e.verbatimModuleSyntax||e.isolatedModules&&e.preserveValueImports}function ene(e){return e.allowUnreachableCode===!1}function tne(e){return e.allowUnusedLabels===!1}function HT(e){return e>=3&&e<=99||e===100}function Mu(e,t){return e[t]===void 0?!!e.strict:!!e[t]}function rne(e){return e.useDefineForClassFields!==!1&&Fa(e)>=9}function nne(e,t){return Qk(t,e,vU)}function ine(e,t){return Qk(t,e,bU)}function sne(e,t){return Qk(t,e,SU)}function fF(e,t){return t.strictFlag?Mu(e,t.name):t.allowJsFlag?cy(e):e[t.name]}function pF(e){const t=e.jsx;return t===2||t===4||t===5}function dF(e,t){const n=t==null?void 0:t.pragmas.get("jsximportsource"),i=ts(n)?n[n.length-1]:n;return e.jsx===4||e.jsx===5||e.jsxImportSource||i?(i==null?void 0:i.arguments.factory)||e.jsxImportSource||"react":void 0}function mF(e,t){return e?`${e}/${t.jsx===5?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function NW(e){let t=!1;for(let n=0;ns,getSymlinkedDirectories:()=>n,getSymlinkedDirectoriesByRealpath:()=>i,setSymlinkedFile:(u,f)=>(s||(s=new Map)).set(u,f),setSymlinkedDirectory:(u,f)=>{let g=No(u,e,t);YE(g)||(g=ul(g),f!==!1&&!(n!=null&&n.has(g))&&(i||(i=vf())).add(f.realPath,u),(n||(n=new Map)).set(g,f))},setSymlinksFromResolutions(u,f,g){E.assert(!o),o=!0,u(d=>c(this,d.resolvedModule)),f(d=>c(this,d.resolvedTypeReferenceDirective)),g.forEach(d=>c(this,d.resolvedTypeReferenceDirective))},hasProcessedResolutions:()=>o};function c(u,f){if(!f||!f.originalPath||!f.resolvedFileName)return;const{resolvedFileName:g,originalPath:d}=f;u.setSymlinkedFile(No(d,e,t),g);const[y,S]=xOe(g,d,e,t)||Ve;y&&S&&u.setSymlinkedDirectory(S,{real:ul(y),realPath:ul(No(y,e,t))})}}function xOe(e,t,n,i){const s=ll(Xi(e,n)),o=ll(Xi(t,n));let c=!1;for(;s.length>=2&&o.length>=2&&!f1e(s[s.length-2],i)&&!f1e(o[o.length-2],i)&&i(s[s.length-1])===i(o[o.length-1]);)s.pop(),o.pop(),c=!0;return c?[V0(s),V0(o)]:void 0}function f1e(e,t){return e!==void 0&&(t(e)==="node_modules"||Vi(e,"@"))}function kOe(e){return IJ(e.charCodeAt(0))?e.slice(1):void 0}function FW(e,t,n){const i=bB(e,t,n);return i===void 0?void 0:kOe(i)}function p1e(e){return e.replace(eV,COe)}function COe(e){return"\\"+e}function VE(e,t,n){const i=gF(e,t,n);return!i||!i.length?void 0:`^(${i.map(c=>`(${c})`).join("|")})${n==="exclude"?"($|/)":"$"}`}function gF(e,t,n){if(!(e===void 0||e.length===0))return Zs(e,i=>i&&hF(i,t,n,nV[n]))}function OW(e){return!/[.*?]/.test(e)}function ane(e,t,n){const i=e&&hF(e,t,n,nV[n]);return i&&`^(${i})${n==="exclude"?"($|/)":"$"}`}function hF(e,t,n,{singleAsteriskRegexFragment:i,doubleAsteriskRegexFragment:s,replaceWildcardCharacter:o}=nV[n]){let c="",u=!1;const f=ND(e,t),g=ka(f);if(n!=="exclude"&&g==="**")return;f[0]=d1(f[0]),OW(g)&&f.push("**","*");let d=0;for(let y of f){if(y==="**")c+=s;else if(n==="directories"&&(c+="(",d++),u&&(c+=Io),n!=="exclude"){let S="";y.charCodeAt(0)===42?(S+="([^./]"+i+")?",y=y.substr(1)):y.charCodeAt(0)===63&&(S+="[^./]",y=y.substr(1)),S+=y.replace(eV,o),S!==y&&(c+=rV),c+=S}else c+=y.replace(eV,o);u=!0}for(;d>0;)c+=")?",d--;return c}function one(e,t){return e==="*"?t:e==="?"?"[^/]":"\\"+e}function yF(e,t,n,i,s){e=Hs(e),s=Hs(s);const o=Mn(s,e);return{includeFilePatterns:nr(gF(n,o,"files"),c=>`^${c}$`),includeFilePattern:VE(n,o,"files"),includeDirectoryPattern:VE(n,o,"directories"),excludePattern:VE(t,o,"exclude"),basePaths:EOe(e,n,i)}}function sy(e,t){return new RegExp(e,t?"":"i")}function LW(e,t,n,i,s,o,c,u,f){e=Hs(e),o=Hs(o);const g=yF(e,n,i,s,o),d=g.includeFilePatterns&&g.includeFilePatterns.map(F=>sy(F,s)),y=g.includeDirectoryPattern&&sy(g.includeDirectoryPattern,s),S=g.excludePattern&&sy(g.excludePattern,s),T=d?d.map(()=>[]):[[]],k=new Map,w=nu(s);for(const F of g.basePaths)P(F,Mn(o,F),c);return Mp(T);function P(F,J,U){const $=w(f(J));if(k.has($))return;k.set($,!0);const{files:j,directories:re}=u(F);for(const R of fb(j,mu)){const Y=Mn(F,R),ue=Mn(J,R);if(!(t&&!Gc(Y,t))&&!(S&&S.test(ue)))if(!d)T[0].push(Y);else{const pe=vc(d,H=>H.test(ue));pe!==-1&&T[pe].push(Y)}}if(!(U!==void 0&&(U--,U===0)))for(const R of fb(re,mu)){const Y=Mn(F,R),ue=Mn(J,R);(!y||y.test(ue))&&(!S||!S.test(ue))&&P(Y,ue,U)}}}function EOe(e,t,n){const i=[e];if(t){const s=[];for(const o of t){const c=F_(o)?o:Hs(Mn(e,o));s.push(POe(c))}s.sort(Ak(!n));for(const o of s)Wi(i,c=>!jp(c,o,e,!n))&&i.push(o)}return i}function POe(e){const t=LK(e,N1e);return t<0?kT(e)?d1(Un(e)):e:e.substring(0,e.lastIndexOf(Io,t))}function vF(e,t){return t||bF(e)||3}function bF(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 UE(e,t){const n=e&&cy(e);if(!t||t.length===0)return n?RF:IC;const i=n?RF:IC,s=Mp(i);return[...i,...Ri(t,c=>c.scriptKind===7||n&&DOe(c.scriptKind)&&!s.includes(c.extension)?[c.extension]:void 0)]}function rw(e,t){return!e||!F1(e)?t:t===RF?O1e:t===IC?I1e:[...t,[".json"]]}function DOe(e){return e===1||e===2}function Kv(e){return ct(FC,t=>Zo(e,t))}function GT(e){return ct(iV,t=>Zo(e,t))}function cne({imports:e},t=pd(Kv,GT)){return $o(e,({text:n})=>nf(n)&&!Gc(n,mw)?t(n):void 0)||!1}function lne(e,t,n,i){const s=Ru(n),o=3<=s&&s<=99;if(e==="js"||t===99&&o)return i6(n)&&c()!==2?3:2;if(e==="minimal")return 0;if(e==="index")return 1;if(!i6(n))return cne(i)?2:0;return c();function c(){let u=!1;const f=i.imports.length?i.imports:Ou(i)?wOe(i).map(g=>g.arguments[0]):Ve;for(const g of f)if(nf(g.text)){if(o&&t===1&&Lq(i,g,n)===99||Gc(g.text,mw))continue;if(GT(g.text))return 3;Kv(g.text)&&(u=!0)}return u?2:0}}function wOe(e){let t=0,n;for(const i of e.statements){if(t>3)break;Bz(i)?n=es(n,i.declarationList.declarations.map(s=>s.initializer)):Cl(i)&&Gu(i.expression,!0)?n=_r(n,i.expression):t++}return n||Ve}function une(e,t,n){if(!e)return!1;const i=UE(t,n);for(const s of Mp(rw(t,i)))if(Zo(e,s))return!0;return!1}function d1e(e){const t=e.match(/\//g);return t?t.length:0}function nw(e,t){return wo(d1e(e),d1e(t))}function $u(e){for(const t of oV){const n=_ne(e,t);if(n!==void 0)return n}return e}function _ne(e,t){return Zo(e,t)?iw(e,t):void 0}function iw(e,t){return e.substring(0,e.length-t.length)}function N1(e,t){return ID(e,t,oV,!1)}function DC(e){const 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 SF(e){return Ri(ug(e),t=>DC(t))}function gd(e){return!(e>=0)}function TF(e){return e===".ts"||e===".tsx"||e===".d.ts"||e===".cts"||e===".mts"||e===".d.mts"||e===".d.cts"||Vi(e,".d.")&&Yo(e,".ts")}function qE(e){return TF(e)||e===".json"}function HE(e){const t=nh(e);return t!==void 0?t:E.fail(`File ${e} has unknown extension.`)}function m1e(e){return nh(e)!==void 0}function nh(e){return wn(oV,t=>Zo(e,t))}function sw(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}function MW(e,t){const n=[];for(const i of e){if(i===t)return t;ls(i)||n.push(i)}return vB(n,i=>i,t)}function RW(e,t){const n=e.indexOf(t);return E.assert(n!==-1),e.slice(n)}function la(e,...t){return t.length&&(e.relatedInformation||(e.relatedInformation=[]),E.assert(e.relatedInformation!==Ve,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t)),e}function fne(e,t){E.assert(e.length!==0);let n=t(e[0]),i=n;for(let s=1;si&&(i=o)}return{min:n,max:i}}function jW(e){return{pos:k1(e),end:e.end}}function BW(e,t){const n=t.pos-1,i=Math.min(e.text.length,ca(e.text,t.end)+1);return{pos:n,end:i}}function GE(e,t,n){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||n.isSourceOfProjectReferenceRedirect(e.fileName)}function xF(e,t){return e===t||typeof e=="object"&&e!==null&&typeof t=="object"&&t!==null&&VK(e,t,xF)}function $E(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:const g=e.length-1;let d=0;for(;e.charCodeAt(d)===48;)d++;return e.slice(d,g)||"0"}const n=2,i=e.length-1,s=(i-n)*t,o=new Uint16Array((s>>>4)+(s&15?1:0));for(let g=i-1,d=0;g>=n;g--,d+=t){const y=d>>>4,S=e.charCodeAt(g),k=(S<=57?S-48:10+S-(S<=70?65:97))<<(d&15);o[y]|=k;const w=k>>>16;w&&(o[y+1]|=w)}let c="",u=o.length-1,f=!0;for(;f;){let g=0;f=!1;for(let d=u;d>=0;d--){const y=g<<16|o[d],S=y/10|0;o[d]=S,g=y-S*10,S&&!f&&(u=d,f=!0)}c=g+c}return c}function e2({negative:e,base10Value:t}){return(e&&t!=="0"?"-":"")+t}function pne(e){if(kF(e,!1))return JW(e)}function JW(e){const t=e.startsWith("-"),n=$E(`${t?e.slice(1):e}n`);return{negative:t,base10Value:n}}function kF(e,t){if(e==="")return!1;const n=Hh(99,!1);let i=!0;n.setOnError(()=>i=!1),n.setText(e+"n");let s=n.scan();const o=s===41;o&&(s=n.scan());const c=n.getTokenFlags();return i&&s===10&&n.getTokenEnd()===e.length+1&&!(c&512)&&(!t||e===e2({negative:o,base10Value:$E(n.getTokenValue())}))}function I1(e){return!!(e.flags&33554432)||w5(e)||IOe(e)||NOe(e)||!(hg(e)||AOe(e))}function AOe(e){return Ie(e)&&k_(e.parent)&&e.parent.name===e}function NOe(e){for(;e.kind===80||e.kind===211;)e=e.parent;if(e.kind!==167)return!1;if(Rn(e.parent,64))return!0;const t=e.parent.parent.kind;return t===264||t===187}function IOe(e){if(e.kind!==80)return!1;const t=Pr(e.parent,n=>{switch(n.kind){case 298:return!0;case 211:case 233:return!1;default:return"quit"}});return(t==null?void 0:t.token)===119||(t==null?void 0:t.parent.kind)===264}function dne(e){return $f(e)&&Ie(e.typeName)}function mne(e,t=Vh){if(e.length<2)return!0;const n=e[0];for(let i=1,s=e.length;ie.includes(t))}function yne(e){if(!e.parent)return;switch(e.kind){case 168:const{parent:n}=e;return n.kind===195?void 0:n.typeParameters;case 169:return e.parent.parameters;case 204:return e.parent.templateSpans;case 239:return e.parent.templateSpans;case 170:{const{parent:i}=e;return eS(i)?i.modifiers:void 0}case 298:return e.parent.heritageClauses}const{parent:t}=e;if(Xk(e))return Yb(e.parent)?void 0:e.parent.tags;switch(t.kind){case 187:case 264:return Sb(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 ki(e)?t.typeArguments:t.expression===e?void 0:t.arguments;case 284:case 288:return s8(e)?t.children:void 0;case 286:case 285:return ki(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 Tl(e)?t.members:void 0;case 266:return p2(e)?t.members:void 0;case 312:return t.statements}}function CF(e){if(!e.typeParameters){if(ct(e.parameters,t=>!Vl(t)))return!0;if(e.kind!==219){const t=bl(e.parameters);if(!(t&&Qv(t)))return!0}}return!1}function ZE(e){return e==="Infinity"||e==="-Infinity"||e==="NaN"}function vne(e){return e.kind===260&&e.parent.kind===299}function t2(e){return e.kind===218||e.kind===219}function r2(e){return e.replace(/\$/gm,()=>"\\$")}function kg(e){return(+e).toString()===e}function EF(e,t,n,i,s){const o=s&&e==="new";return!o&&Sf(e,t)?I.createIdentifier(e):!i&&!o&&kg(e)&&+e>=0?I.createNumericLiteral(+e):I.createStringLiteral(e,!!n)}function KE(e){return!!(e.flags&262144&&e.isThisType)}function PF(e){let t=0,n=0,i=0,s=0,o;(g=>{g[g.BeforeNodeModules=0]="BeforeNodeModules",g[g.NodeModules=1]="NodeModules",g[g.Scope=2]="Scope",g[g.PackageContent=3]="PackageContent"})(o||(o={}));let c=0,u=0,f=0;for(;u>=0;)switch(c=u,u=e.indexOf("/",c+1),f){case 0:e.indexOf(zm,c)===c&&(t=c,n=u,f=1);break;case 1:case 2:f===1&&e.charAt(c+1)==="@"?f=2:(i=u,f=3);break;case 3:e.indexOf(zm,c)===c?f=1:f=3;break}return s=c,f>1?{topLevelNodeModulesIndex:t,topLevelPackageNameIndex:n,packageRootIndex:i,fileNameIndex:s}:void 0}function g1e(e){var t;return e.kind===348?(t=e.typeExpression)==null?void 0:t.type:e.type}function NC(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 aw(e){return L1(e)||ac(e)||$c(e)||Xc(e)||Bu(e)||NC(e)||Sc(e)&&!Jv(e)&&!Vd(e)}function ow(e){if(!oE(e))return!1;const{isBracketed:t,typeExpression:n}=e;return t||!!n&&n.type.kind===323}function WW(e,t){if(e.length===0)return!1;const n=e.charCodeAt(0);return n===35?e.length>1&&fg(e.charCodeAt(1),t):fg(n,t)}function bne(e){var t;return((t=gV(e))==null?void 0:t.kind)===0}function cw(e){return Hr(e)&&(e.type&&e.type.kind===323||Vk(e).some(({isBracketed:t,typeExpression:n})=>t||!!n&&n.type.kind===323))}function e3(e){switch(e.kind){case 172:case 171:return!!e.questionToken;case 169:return!!e.questionToken||cw(e);case 355:case 348:return ow(e);default:return!1}}function Sne(e){const t=e.kind;return(t===211||t===212)&&_x(e.expression)}function VW(e){return Hr(e)&&l_(e)&&sf(e)&&!!$J(e)}function UW(e){return E.checkDefined(DF(e))}function DF(e){const t=$J(e);return t&&t.typeExpression&&t.typeExpression.type}function t3(e){return Ie(e)?e.escapedText:$T(e)}function lw(e){return Ie(e)?on(e):r3(e)}function Tne(e){const t=e.kind;return t===80||t===295}function $T(e){return`${e.namespace.escapedText}:${on(e.name)}`}function r3(e){return`${on(e.namespace)}:${on(e.name)}`}function qW(e){return Ie(e)?on(e):r3(e)}function Sp(e){return!!(e.flags&8576)}function Tp(e){return e.flags&8192?e.escapedName:e.flags&384?Wo(""+e.value):E.fail()}function wF(e){return!!e&&(Sn(e)||ko(e)||Zr(e))}function xne(e){return e===void 0?!1:!!o6(e.attributes)}function XT(e,t){return L1e.call(e,"*",t)}function AF(e){return Ie(e.name)?e.name.escapedText:Wo(e.name.text)}var NF,oy,uw,IF,_w,FF,HW,GW,h1e,y1e,$W,v1e,b1e,XW,QW,YW,ZW,S1e,T1e,x1e,k1e,C1e,kne,E1e,P1e,D1e,n3,Bb,w1e,A1e,Il,Cne,OF,Jc,Fa,au,Ru,KW,xp,Om,Jb,LF,MF,F1,Gf,n2,i3,fw,cy,s3,eV,N1e,tV,rV,Ene,Pne,Dne,nV,IC,iV,I1e,F1e,sV,FC,RF,O1e,pw,dw,mw,aV,oV,jF,L1e,OOe=wt({"src/compiler/utilities.ts"(){Fs(),NF=[],oy="tslib",uw=160,IF=1e6,_w=RFe(),FF=Hu(()=>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:Ve})),AsyncIterator:new Map(Object.entries({es2015:Ve})),Atomics:new Map(Object.entries({es2017:Ve})),SharedArrayBuffer:new Map(Object.entries({es2017:Ve})),AsyncIterable:new Map(Object.entries({es2018:Ve})),AsyncIterableIterator:new Map(Object.entries({es2018:Ve})),AsyncGenerator:new Map(Object.entries({es2018:Ve})),AsyncGeneratorFunction:new Map(Object.entries({es2018:Ve})),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:Ve,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:Ve})),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:Ve,es2022:["at"],es2023:["findLastIndex","findLast"]})),BigUint64Array:new Map(Object.entries({es2020:Ve,es2022:["at"],es2023:["findLastIndex","findLast"]})),Error:new Map(Object.entries({es2022:["cause"]}))}))),HW=(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))(HW||{}),GW=/^(\/\/\/\s*/,h1e=/^(\/\/\/\s*/,y1e=/^(\/\/\/\s*/,$W=/^(\/\/\/\s*/,v1e=/^\/\/\/\s*/,b1e=/^(\/\/\/\s*/,XW=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))(XW||{}),QW=(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))(QW||{}),YW=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(YW||{}),ZW=(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))(ZW||{}),S1e=/\$\{/g,T1e=/[\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,x1e=/[\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,k1e=/\r\n|[\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,C1e=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","…":"\\u0085","\r\n":"\\r\\n"})),kne=/[^\u0000-\u007F]/g,E1e=/["\u0000-\u001f\u2028\u2029\u0085]/g,P1e=/['\u0000-\u001f\u2028\u2029\u0085]/g,D1e=new Map(Object.entries({'"':""","'":"'"})),n3=[""," "],Bb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",w1e=`\r +`),t.closeSync(Fe),No("endDumpTypes"),vf("Dump types","beginDumpTypes","endDumpTypes")}function j(){c&&t.writeFileSync(c,JSON.stringify(u))}e.dumpLegend=j})(xD||(xD={})),uee=xD.startTracing,_ee=xD.dumpLegend}});function mb(e,t=!0){const n=CD[e.category];return t?n.toLowerCase():n}var u7,_7,f7,DB,p7,d7,wB,kD,AB,Mk,m7,NB,IB,g7,FB,OB,LB,MB,RB,jB,BB,JB,zB,WB,VB,h7,UB,qB,HB,GB,y7,v7,$B,XB,QB,YB,ZB,KB,b7,eJ,tJ,rJ,nJ,iJ,sJ,CD,Rk,aJ,oJ,cJ,lJ,G4,uJ,_J,fJ,S7,pJ,dJ,mJ,gJ,hJ,T7,x7,k7,yJ,vJ,bJ,SJ,TJ,xJ,kJ,CJ,ED,EJ,F0e=Dt({"src/compiler/types.ts"(){u7=(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))(u7||{}),_7=(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))(_7||{}),f7=(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))(f7||{}),DB=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(DB||{}),p7=(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))(p7||{}),d7=(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))(d7||{}),wB=(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))(wB||{}),kD=(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))(kD||{}),AB=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(AB||{}),Mk=class{},m7=(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))(m7||{}),NB=(e=>(e[e.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.ResolutionDiagnostics=2]="ResolutionDiagnostics",e))(NB||{}),IB=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e))(IB||{}),g7=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))(g7||{}),FB=(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))(FB||{}),OB=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(OB||{}),LB=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(LB||{}),MB=(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))(MB||{}),RB=(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))(RB||{}),jB=(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))(jB||{}),BB=(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))(BB||{}),JB=(e=>(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e))(JB||{}),zB=(e=>(e[e.UnionOrIntersection=0]="UnionOrIntersection",e[e.Spread=1]="Spread",e))(zB||{}),WB=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(WB||{}),VB=(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))(VB||{}),h7=(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))(h7||{}),UB=(e=>(e[e.Numeric=0]="Numeric",e[e.Literal=1]="Literal",e))(UB||{}),qB=(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))(qB||{}),HB=(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))(HB||{}),GB=(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))(GB||{}),y7=(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))(y7||{}),v7=(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))(v7||{}),$B=(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))($B||{}),XB=(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))(XB||{}),QB=(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))(QB||{}),YB=(e=>(e[e.None=0]="None",e[e.StringsOnly=1]="StringsOnly",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.NoReducibleCheck=4]="NoReducibleCheck",e))(YB||{}),ZB=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))(ZB||{}),KB=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))(KB||{}),b7=(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))(b7||{}),eJ=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(eJ||{}),tJ=(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))(tJ||{}),rJ=(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))(rJ||{}),nJ=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(nJ||{}),iJ=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))(iJ||{}),sJ=(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))(sJ||{}),CD=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(CD||{}),Rk=(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))(Rk||{}),aJ=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))(aJ||{}),oJ=(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))(oJ||{}),cJ=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(cJ||{}),lJ=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))(lJ||{}),G4=(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))(G4||{}),uJ=(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))(uJ||{}),_J=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))(_J||{}),fJ=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(fJ||{}),S7=(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))(S7||{}),pJ=(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))(pJ||{}),dJ=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(dJ||{}),mJ=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))(mJ||{}),gJ=(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))(gJ||{}),hJ=(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))(hJ||{}),T7=(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))(T7||{}),x7=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(x7||{}),k7=(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))(k7||{}),yJ=(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))(yJ||{}),vJ=(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))(vJ||{}),bJ=(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))(bJ||{}),SJ=(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))(SJ||{}),TJ=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))(TJ||{}),xJ=(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))(xJ||{}),kJ=(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))(kJ||{}),CJ=(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))(CJ||{}),ED={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}},EJ=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))(EJ||{})}});function $4(e){let t=5381;for(let n=0;n{U.isClosed=!0,bT(t,U)}}}function u(P){const F=[];return F.pollingInterval=P,F.pollIndex=0,F.pollScheduled=!1,F}function f(P,F){F.pollIndex=d(F,F.pollingInterval,F.pollIndex,P7[F.pollingInterval]),F.length?w(F.pollingInterval):(E.assert(F.pollIndex===0),F.pollScheduled=!1)}function g(P,F){d(n,250,0,n.length),f(P,F),!F.pollScheduled&&n.length&&w(250)}function d(P,F,J,U){return L0e(e,P,J,U,$);function $(j,re,R){R?(j.unchangedPolls=0,P!==n&&(P[re]=void 0,T(j))):j.unchangedPolls!==DD[F]?j.unchangedPolls++:P===n?(j.unchangedPolls=1,P[re]=void 0,S(j,250)):F!==2e3&&(j.unchangedPolls++,P[re]=void 0,S(j,F===250?500:2e3))}}function y(P){switch(P){case 250:return i;case 500:return s;case 2e3:return o}}function S(P,F){y(F).push(P),k(F)}function T(P){n.push(P),k(250)}function k(P){y(P).pollScheduled||w(P)}function w(P){y(P).pollScheduled=e.setTimeout(P===250?g:f,P,P===250?"pollLowPollingIntervalQueue":"pollPollingIntervalQueue",y(P))}}function pFe(e,t,n,i){const s=yf(),o=i?new Map:void 0,c=new Map,u=nu(t);return f;function f(d,y,S,T){const k=u(d);s.add(k,y).length===1&&o&&o.set(k,n(d)||rf);const w=Un(k)||".",P=c.get(w)||g(Un(d)||".",w,T);return P.referenceCount++,{close:()=>{P.referenceCount===1?(P.close(),c.delete(w)):P.referenceCount--,s.remove(k,y)}}}function g(d,y,S){const T=e(d,1,(k,w)=>{if(!ls(w))return;const P=Xi(w,d),F=u(P),J=P&&s.get(F);if(J){let U,$=1;if(o){const j=o.get(F);if(k==="change"&&(U=n(P)||rf,U.getTime()===j.getTime()))return;U||(U=n(P)||rf),o.set(F,U),j===rf?$=0:U===rf&&($=2)}for(const j of J)j(P,$,U)}},!1,500,S);return T.referenceCount=0,c.set(y,T),T}}function dFe(e){const t=[];let n=0,i;return s;function s(u,f){const g={fileName:u,callback:f,mtime:TT(e,u)};return t.push(g),c(),{close:()=>{g.isClosed=!0,bT(t,g)}}}function o(){i=void 0,n=L0e(e,t,n,P7[250]),c()}function c(){!t.length||i||(i=e.setTimeout(o,2e3,"pollQueue"))}}function M0e(e,t,n,i,s){const c=nu(t)(n),u=e.get(c);return u?u.callbacks.push(i):e.set(c,{watcher:s((f,g,d)=>{var y;return(y=e.get(c))==null?void 0:y.callbacks.slice().forEach(S=>S(f,g,d))}),callbacks:[i]}),{close:()=>{const f=e.get(c);f&&(!Ik(f.callbacks,i)||f.callbacks.length||(e.delete(c),Xf(f)))}}}function mFe(e,t){const n=e.mtime.getTime(),i=t.getTime();return n!==i?(e.mtime=t,e.callback(e.fileName,PJ(n,i),t),!0):!1}function PJ(e,t){return e===0?0:t===0?2:1}function PD(e){return gee(e)}function pee(e){gee=e}function gFe({watchDirectory:e,useCaseSensitiveFileNames:t,getCurrentDirectory:n,getAccessibleSortedChildDirectories:i,fileSystemEntryExists:s,realpath:o,setTimeout:c,clearTimeout:u}){const f=new Map,g=yf(),d=new Map;let y;const S=Ak(!t),T=nu(t);return(R,Y,ue,pe)=>ue?k(R,pe,Y):e(R,Y,ue,pe);function k(R,Y,ue){const pe=T(R);let H=f.get(pe);H?H.refCount++:(H={watcher:e(R,ee=>{j(ee,Y)||(Y!=null&&Y.synchronousWatchDirectory?(w(pe,ee),$(R,pe,Y)):P(R,pe,ee,Y))},!1,Y),refCount:1,childWatches:Ve},f.set(pe,H),$(R,pe,Y));const q=ue&&{dirName:R,callback:ue};return q&&g.add(pe,q),{dirName:R,close:()=>{const ee=E.checkDefined(f.get(pe));q&&g.remove(pe,q),ee.refCount--,!ee.refCount&&(f.delete(pe),Xf(ee),ee.childWatches.forEach(dd))}}}function w(R,Y,ue){let pe,H;ls(Y)?pe=Y:H=Y,g.forEach((q,ee)=>{if(!(H&&H.get(ee)===!0)&&(ee===R||Vi(R,ee)&&R[ee.length]===Fo))if(H)if(ue){const oe=H.get(ee);oe?oe.push(...ue):H.set(ee,ue.slice())}else H.set(ee,!0);else q.forEach(({callback:oe})=>oe(pe))})}function P(R,Y,ue,pe){const H=f.get(Y);if(H&&s(R,1)){F(R,Y,ue,pe);return}w(Y,ue),U(H)}function F(R,Y,ue,pe){const H=d.get(Y);H?H.fileNames.push(ue):d.set(Y,{dirName:R,options:pe,fileNames:[ue]}),y&&(u(y),y=void 0),y=c(J,1e3,"timerToUpdateChildWatches")}function J(){y=void 0,PD(`sysLog:: onTimerToUpdateChildWatches:: ${d.size}`);const R=xo(),Y=new Map;for(;!y&&d.size;){const pe=d.entries().next();E.assert(!pe.done);const{value:[H,{dirName:q,options:ee,fileNames:oe}]}=pe;d.delete(H);const Se=$(q,H,ee);w(H,Y,Se?void 0:oe)}PD(`sysLog:: invokingWatchers:: Elapsed:: ${xo()-R}ms:: ${d.size}`),g.forEach((pe,H)=>{const q=Y.get(H);q&&pe.forEach(({callback:ee,dirName:oe})=>{ts(q)?q.forEach(ee):ee(oe)})});const ue=xo()-R;PD(`sysLog:: Elapsed:: ${ue}ms:: onTimerToUpdateChildWatches:: ${d.size} ${y}`)}function U(R){if(!R)return;const Y=R.childWatches;R.childWatches=Ve;for(const ue of Y)ue.close(),U(f.get(T(ue.dirName)))}function $(R,Y,ue){const pe=f.get(Y);if(!pe)return!1;let H;const q=a7(s(R,1)?Ri(i(R),Se=>{const ae=Xi(Se,R);return!j(ae,ue)&&S(ae,Hs(o(ae)))===0?ae:void 0}):Ve,pe.childWatches,(Se,ae)=>S(Se,ae.dirName),ee,dd,oe);return pe.childWatches=H||Ve,q;function ee(Se){const ae=k(Se,ue);oe(ae)}function oe(Se){(H||(H=[])).push(Se)}}function j(R,Y){return ct(wD,ue=>re(R,ue))||R0e(R,Y,t,n)}function re(R,Y){return R.includes(Y)?!0:t?!1:T(R).includes(Y)}}function hFe(e){return(t,n,i)=>e(n===1?"change":"rename","",i)}function yFe(e,t,n){return(i,s,o)=>{i==="rename"?(o||(o=n(e)||rf),t(e,o!==rf?0:2,o)):t(e,1,o)}}function R0e(e,t,n,i){return((t==null?void 0:t.excludeDirectories)||(t==null?void 0:t.excludeFiles))&&(qO(e,t==null?void 0:t.excludeFiles,n,i())||qO(e,t==null?void 0:t.excludeDirectories,n,i()))}function j0e(e,t,n,i,s){return(o,c)=>{if(o==="rename"){const u=c?Hs(Mn(e,c)):e;(!c||!R0e(u,n,i,s))&&t(u)}}}function dee({pollingWatchFileWorker:e,getModifiedTime:t,setTimeout:n,clearTimeout:i,fsWatchWorker:s,fileSystemEntryExists:o,useCaseSensitiveFileNames:c,getCurrentDirectory:u,fsSupportsRecursiveFsWatch:f,getAccessibleSortedChildDirectories:g,realpath:d,tscWatchFile:y,useNonPollingWatchers:S,tscWatchDirectory:T,inodeWatching:k,fsWatchWithTimestamp:w,sysLog:P}){const F=new Map,J=new Map,U=new Map;let $,j,re,R,Y=!1;return{watchFile:ue,watchDirectory:oe};function ue(me,be,xe,De){De=q(De,S);const ft=E.checkDefined(De.watchFile);switch(ft){case 0:return K(me,be,250,void 0);case 1:return K(me,be,xe,void 0);case 2:return pe()(me,be,xe,void 0);case 3:return H()(me,be,void 0,void 0);case 4:return fe(me,0,yFe(me,be,t),!1,xe,xA(De));case 5:return re||(re=pFe(fe,c,t,w)),re(me,be,xe,xA(De));default:E.assertNever(ft)}}function pe(){return $||($=fFe({getModifiedTime:t,setTimeout:n}))}function H(){return j||(j=dFe({getModifiedTime:t,setTimeout:n}))}function q(me,be){if(me&&me.watchFile!==void 0)return me;switch(y){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return ee(4,1,me);case"UseFsEventsWithFallbackDynamicPolling":return ee(4,2,me);case"UseFsEventsOnParentDirectory":be=!0;default:return be?ee(5,1,me):{watchFile:4}}}function ee(me,be,xe){const De=xe==null?void 0:xe.fallbackPolling;return{watchFile:me,fallbackPolling:De===void 0?be:De}}function oe(me,be,xe,De){return f?fe(me,1,j0e(me,be,De,c,u),xe,500,xA(De)):(R||(R=gFe({useCaseSensitiveFileNames:c,getCurrentDirectory:u,fileSystemEntryExists:o,getAccessibleSortedChildDirectories:g,watchDirectory:Se,realpath:d,setTimeout:n,clearTimeout:i})),R(me,be,xe,De))}function Se(me,be,xe,De){E.assert(!xe);const ft=ae(De),ge=E.checkDefined(ft.watchDirectory);switch(ge){case 1:return K(me,()=>be(me),500,void 0);case 2:return pe()(me,()=>be(me),500,void 0);case 3:return H()(me,()=>be(me),void 0,void 0);case 0:return fe(me,1,j0e(me,be,De,c,u),xe,500,xA(ft));default:E.assertNever(ge)}}function ae(me){if(me&&me.watchDirectory!==void 0)return me;switch(T){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:const be=me==null?void 0:me.fallbackPolling;return{watchDirectory:0,fallbackPolling:be!==void 0?be:void 0}}}function K(me,be,xe,De){return M0e(F,c,me,be,ft=>e(me,ft,xe,De))}function fe(me,be,xe,De,ft,ge){return M0e(De?U:J,c,me,xe,Fe=>ke(me,be,Fe,De,ft,ge))}function ke(me,be,xe,De,ft,ge){let Fe,$e;k&&(Fe=me.substring(me.lastIndexOf(Fo)),$e=Fe.slice(Fo.length));let Pt=o(me,be)?Je():Vt();return{close:()=>{Pt&&(Pt.close(),Pt=void 0)}};function at(hr){Pt&&(P(`sysLog:: ${me}:: Changing watcher to ${hr===Je?"Present":"Missing"}FileSystemEntryWatcher`),Pt.close(),Pt=hr())}function Je(){if(Y)return P(`sysLog:: ${me}:: Defaulting to watchFile`),zt();try{const hr=(be===1||!w?s:Oe)(me,De,k?pt:xe);return hr.on("error",()=>{xe("rename",""),at(Vt)}),hr}catch(hr){return Y||(Y=hr.code==="ENOSPC"),P(`sysLog:: ${me}:: Changing to watchFile`),zt()}}function pt(hr,Lr){let er;if(Lr&&Yo(Lr,"~")&&(er=Lr,Lr=Lr.slice(0,Lr.length-1)),hr==="rename"&&(!Lr||Lr===$e||Yo(Lr,Fe))){const jt=t(me)||rf;er&&xe(hr,er,jt),xe(hr,Lr,jt),k?at(jt===rf?Vt:Je):jt===rf&&at(Vt)}else er&&xe(hr,er),xe(hr,Lr)}function zt(){return ue(me,hFe(xe),ft,ge)}function Vt(){return ue(me,(hr,Lr,er)=>{Lr===0&&(er||(er=t(me)||rf),er!==rf&&(xe("rename","",er),at(Je)))},ft,ge)}}function Oe(me,be,xe){let De=t(me)||rf;return s(me,be,(ft,ge,Fe)=>{ft==="change"&&(Fe||(Fe=t(me)||rf),Fe.getTime()===De.getTime())||(De=Fe||t(me)||rf,xe(ft,ge,De))})}}function mee(e){const t=e.writeFile;e.writeFile=(n,i,s)=>uW(n,i,!!s,(o,c,u)=>t.call(e,o,c,u),o=>e.createDirectory(o),o=>e.directoryExists(o))}function B0e(e){zl=e}var DJ,C7,rf,E7,P7,DD,wD,gee,wJ,zl,vFe=Dt({"src/compiler/sys.ts"(){Fs(),DJ=(e=>(e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",e))(DJ||{}),C7=(e=>(e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low",e))(C7||{}),rf=new Date(0),E7={Low:32,Medium:64,High:256},P7=fee(E7),DD=fee(E7),wD=["/node_modules/.","/.git","/.#"],gee=Ca,wJ=(e=>(e[e.File=0]="File",e[e.Directory=1]="Directory",e))(wJ||{}),zl=(()=>{const e="\uFEFF";function t(){const i=/^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/,s=Ek,o=Ek,c=Ek;let u;try{u=Ek}catch{u=void 0}let f,g="./profile.cpuprofile";const d=Ek.Buffer,y=process.platform==="darwin",S=process.platform==="linux"||y,T=c.platform(),k=H(),w=s.realpathSync.native?process.platform==="win32"?De:s.realpathSync.native:s.realpathSync,P=__filename.endsWith("sys.js")?o.join(o.dirname(__dirname),"__fake__.js"):__filename,F=process.platform==="win32"||y,J=Hu(()=>process.cwd()),{watchFile:U,watchDirectory:$}=dee({pollingWatchFileWorker:ee,getModifiedTime:ge,setTimeout,clearTimeout,fsWatchWorker:oe,useCaseSensitiveFileNames:k,getCurrentDirectory:J,fileSystemEntryExists:Oe,fsSupportsRecursiveFsWatch:F,getAccessibleSortedChildDirectories:at=>fe(at).directories,realpath:ft,tscWatchFile:M0.TSC_WATCHFILE,useNonPollingWatchers:!!M0.TSC_NONPOLLING_WATCHER,tscWatchDirectory:M0.TSC_WATCHDIRECTORY,inodeWatching:S,fsWatchWithTimestamp:y,sysLog:PD}),j={args:process.argv.slice(2),newLine:c.EOL,useCaseSensitiveFileNames:k,write(at){process.stdout.write(at)},getWidthOfTerminal(){return process.stdout.columns},writeOutputIsTTY(){return process.stdout.isTTY},readFile:ae,writeFile:K,watchFile:U,watchDirectory:$,resolvePath:at=>o.resolve(at),fileExists:me,directoryExists:be,getAccessibleFileSystemEntries:fe,createDirectory(at){if(!j.directoryExists(at))try{s.mkdirSync(at)}catch(Je){if(Je.code!=="EEXIST")throw Je}},getExecutingFilePath(){return P},getCurrentDirectory:J,getDirectories:xe,getEnvironmentVariable(at){return M0[at]||""},readDirectory:ke,getModifiedTime:ge,setModifiedTime:Fe,deleteFile:$e,createHash:u?Pt:$4,createSHA256Hash:u?Pt:void 0,getMemoryUsage(){return S5e.gc&&S5e.gc(),process.memoryUsage().heapUsed},getFileSize(at){try{const Je=re(at);if(Je!=null&&Je.isFile())return Je.size}catch{}return 0},exit(at){ue(()=>process.exit(at))},enableCPUProfiler:R,disableCPUProfiler:ue,cpuProfilingEnabled:()=>!!f||bs(process.execArgv,"--cpu-prof")||bs(process.execArgv,"--prof"),realpath:ft,debugMode:!!M0.NODE_INSPECTOR_IPC||!!M0.VSCODE_INSPECTOR_OPTIONS||ct(process.execArgv,at=>/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(at))||!!process.recordreplay,tryEnableSourceMapsForHost(){try{Ek.install()}catch{}},setTimeout,clearTimeout,clearScreen:()=>{process.stdout.write("\x1Bc")},setBlocking:()=>{var at;const Je=(at=process.stdout)==null?void 0:at._handle;Je&&Je.setBlocking&&Je.setBlocking(!0)},bufferFrom:pe,base64decode:at=>pe(at,"base64").toString("utf8"),base64encode:at=>pe(at).toString("base64"),require:(at,Je)=>{try{const pt=use(Je,at,j);return{module:T5e(pt),modulePath:pt,error:void 0}}catch(pt){return{module:void 0,modulePath:void 0,error:pt}}}};return j;function re(at){return s.statSync(at,{throwIfNoEntry:!1})}function R(at,Je){if(f)return Je(),!1;const pt=Ek;if(!pt||!pt.Session)return Je(),!1;const zt=new pt.Session;return zt.connect(),zt.post("Profiler.enable",()=>{zt.post("Profiler.start",()=>{f=zt,g=at,Je()})}),!0}function Y(at){let Je=0;const pt=new Map,zt=iu(o.dirname(P)),Vt=`file://${Pm(zt)===1?"":"/"}${zt}`;for(const hr of at.nodes)if(hr.callFrame.url){const Lr=iu(hr.callFrame.url);Mp(Vt,Lr,k)?hr.callFrame.url=kT(Vt,Lr,Vt,nu(k),!0):i.test(Lr)||(hr.callFrame.url=(pt.has(Lr)?pt:pt.set(Lr,`external${Je}.js`)).get(Lr),Je++)}return at}function ue(at){if(f&&f!=="stopping"){const Je=f;return f.post("Profiler.stop",(pt,{profile:zt})=>{var Vt;if(!pt){try{(Vt=re(g))!=null&&Vt.isDirectory()&&(g=o.join(g,`${new Date().toISOString().replace(/:/g,"-")}+P${process.pid}.cpuprofile`))}catch{}try{s.mkdirSync(o.dirname(g),{recursive:!0})}catch{}s.writeFileSync(g,JSON.stringify(Y(zt)))}f=void 0,Je.disconnect(),at()}),f="stopping",!0}else return at(),!1}function pe(at,Je){return d.from&&d.from!==Int8Array.from?d.from(at,Je):new d(at,Je)}function H(){return T==="win32"||T==="win64"?!1:!me(q(__filename))}function q(at){return at.replace(/\w/g,Je=>{const pt=Je.toUpperCase();return Je===pt?Je.toLowerCase():pt})}function ee(at,Je,pt){s.watchFile(at,{persistent:!0,interval:pt},Vt);let zt;return{close:()=>s.unwatchFile(at,Vt)};function Vt(hr,Lr){const er=+Lr.mtime==0||zt===2;if(+hr.mtime==0){if(er)return;zt=2}else if(er)zt=0;else{if(+hr.mtime==+Lr.mtime)return;zt=1}Je(at,zt,hr.mtime)}}function oe(at,Je,pt){return s.watch(at,F?{persistent:!0,recursive:!!Je}:{persistent:!0},pt)}function Se(at,Je){let pt;try{pt=s.readFileSync(at)}catch{return}let zt=pt.length;if(zt>=2&&pt[0]===254&&pt[1]===255){zt&=-2;for(let Vt=0;Vt=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 ae(at,Je){var pt,zt;(pt=wu)==null||pt.logStartReadFile(at);const Vt=Se(at);return(zt=wu)==null||zt.logStopReadFile(),Vt}function K(at,Je,pt){var zt;(zt=wu)==null||zt.logEvent("WriteFile: "+at),pt&&(Je=e+Je);let Vt;try{Vt=s.openSync(at,"w"),s.writeSync(Vt,Je,void 0,"utf8")}finally{Vt!==void 0&&s.closeSync(Vt)}}function fe(at){var Je;(Je=wu)==null||Je.logEvent("ReadDir: "+(at||"."));try{const pt=s.readdirSync(at||".",{withFileTypes:!0}),zt=[],Vt=[];for(const hr of pt){const Lr=typeof hr=="string"?hr:hr.name;if(Lr==="."||Lr==="..")continue;let er;if(typeof hr=="string"||hr.isSymbolicLink()){const jt=Mn(at,Lr);try{if(er=re(jt),!er)continue}catch{continue}}else er=hr;er.isFile()?zt.push(Lr):er.isDirectory()&&Vt.push(Lr)}return zt.sort(),Vt.sort(),{files:zt,directories:Vt}}catch{return LF}}function ke(at,Je,pt,zt,Vt){return FW(at,Je,pt,zt,k,process.cwd(),Vt,fe,ft)}function Oe(at,Je){const pt=Error.stackTraceLimit;Error.stackTraceLimit=0;try{const zt=re(at);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 me(at){return Oe(at,0)}function be(at){return Oe(at,1)}function xe(at){return fe(at).directories.slice()}function De(at){return at.length<260?s.realpathSync.native(at):s.realpathSync(at)}function ft(at){try{return w(at)}catch{return at}}function ge(at){var Je;const pt=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return(Je=re(at))==null?void 0:Je.mtime}catch{return}finally{Error.stackTraceLimit=pt}}function Fe(at,Je){try{s.utimesSync(at,Je,Je)}catch{return}}function $e(at){try{return s.unlinkSync(at)}catch{return}}function Pt(at){const Je=u.createHash("sha256");return Je.update(at),Je.digest("hex")}}let n;return vB()&&(n=t()),n&&mee(n),n})(),zl&&zl.getEnvironmentVariable&&(_Fe(zl),E.setAssertionLevel(/^development$/i.test(zl.getEnvironmentVariable("NODE_ENV"))?1:0)),zl&&zl.debugMode&&(E.isDebugging=!0)}});function AJ(e){return e===47||e===92}function hee(e){return D7(e)<0}function F_(e){return D7(e)>0}function NJ(e){const t=D7(e);return t>0&&t===e.length}function X4(e){return D7(e)!==0}function nf(e){return/^\.\.?($|[\\/])/.test(e)}function IJ(e){return!X4(e)&&!nf(e)}function xT(e){return wc(e).includes(".")}function Zo(e,t){return e.length>t.length&&Yo(e,t)}function $c(e,t){for(const n of t)if(Zo(e,n))return!0;return!1}function qh(e){return e.length>0&&AJ(e.charCodeAt(e.length-1))}function J0e(e){return e>=97&&e<=122||e>=65&&e<=90}function bFe(e,t){const n=e.charCodeAt(t);if(n===58)return t+1;if(n===37&&e.charCodeAt(t+1)===51){const i=e.charCodeAt(t+2);if(i===97||i===65)return t+3}return-1}function D7(e){if(!e)return 0;const t=e.charCodeAt(0);if(t===47||t===92){if(e.charCodeAt(1)!==t)return 1;const i=e.indexOf(t===47?Fo:FD,2);return i<0?e.length:i+1}if(J0e(t)&&e.charCodeAt(1)===58){const i=e.charCodeAt(2);if(i===47||i===92)return 3;if(e.length===2)return 2}const n=e.indexOf(bee);if(n!==-1){const i=n+bee.length,s=e.indexOf(Fo,i);if(s!==-1){const o=e.slice(0,n),c=e.slice(i,s);if(o==="file"&&(c===""||c==="localhost")&&J0e(e.charCodeAt(s+1))){const u=bFe(e,s+2);if(u!==-1){if(e.charCodeAt(u)===47)return~(u+1);if(u===e.length)return~u}}return~(s+1)}return~e.length}return 0}function Pm(e){const t=D7(e);return t<0?~t:t}function Un(e){e=iu(e);const t=Pm(e);return t===e.length?e:(e=d1(e),e.slice(0,Math.max(t,e.lastIndexOf(Fo))))}function wc(e,t,n){if(e=iu(e),Pm(e)===e.length)return"";e=d1(e);const s=e.slice(Math.max(Pm(e),e.lastIndexOf(Fo)+1)),o=t!==void 0&&n!==void 0?jk(s,t,n):void 0;return o?s.slice(0,s.length-o.length):s}function z0e(e,t,n){if(Vi(t,".")||(t="."+t),e.length>=t.length&&e.charCodeAt(e.length-t.length)===46){const i=e.slice(e.length-t.length);if(n(i,t))return i}}function SFe(e,t,n){if(typeof t=="string")return z0e(e,t,n)||"";for(const i of t){const s=z0e(e,i,n);if(s)return s}return""}function jk(e,t,n){if(t)return SFe(d1(e),t,n?p1:fb);const i=wc(e),s=i.lastIndexOf(".");return s>=0?i.substring(s):""}function TFe(e,t){const n=e.substring(0,t),i=e.substring(t).split(Fo);return i.length&&!Do(i)&&i.pop(),[n,...i]}function ul(e,t=""){return e=Mn(t,e),TFe(e,Pm(e))}function W0(e,t){return e.length===0?"":(e[0]&&_l(e[0]))+e.slice(1,t).join(Fo)}function iu(e){return e.includes("\\")?e.replace(U0e,Fo):e}function gb(e){if(!ct(e))return[];const t=[e[0]];for(let n=1;n1){if(t[t.length-1]!==".."){t.pop();continue}}else if(t[0])continue}t.push(i)}}return t}function Mn(e,...t){e&&(e=iu(e));for(let n of t)n&&(n=iu(n),!e||Pm(n)!==0?e=n:e=_l(e)+n);return e}function V0(e,...t){return Hs(ct(t)?Mn(e,...t):iu(e))}function AD(e,t){return gb(ul(e,t))}function Xi(e,t){return W0(AD(e,t))}function Hs(e){if(e=iu(e),!A7.test(e))return e;const t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!A7.test(e)))return e;const n=W0(gb(ul(e)));return n&&qh(e)?_l(n):n}function xFe(e){return e.length===0?"":e.slice(1).join(Fo)}function FJ(e,t){return xFe(AD(e,t))}function Io(e,t,n){const i=F_(e)?Hs(e):Xi(e,t);return n(i)}function d1(e){return qh(e)?e.substr(0,e.length-1):e}function _l(e){return qh(e)?e:e+Fo}function Fv(e){return!X4(e)&&!nf(e)?"./"+e:e}function ND(e,t,n,i){const s=n!==void 0&&i!==void 0?jk(e,n,i):jk(e);return s?e.slice(0,e.length-s.length)+(Vi(t,".")?t:"."+t):e}function yee(e,t){const n=eU(e);return n?e.slice(0,e.length-n.length)+(Vi(t,".")?t:"."+t):ND(e,t)}function vee(e,t,n){if(e===t)return 0;if(e===void 0)return-1;if(t===void 0)return 1;const i=e.substring(0,Pm(e)),s=t.substring(0,Pm(t)),o=r7(i,s);if(o!==0)return o;const c=e.substring(i.length),u=t.substring(s.length);if(!A7.test(c)&&!A7.test(u))return n(c,u);const f=gb(ul(e)),g=gb(ul(t)),d=Math.min(f.length,g.length);for(let y=1;y0==Pm(t)>0,"Paths must either both be absolute or both be relative");const o=LJ(e,t,(typeof n=="boolean"?n:!1)?p1:fb,typeof n=="function"?n:wo);return W0(o)}function Q4(e,t,n){return F_(e)?kT(t,e,t,n,!1):e}function ID(e,t,n){return Fv(Rp(Un(e),t,n))}function kT(e,t,n,i,s){const o=LJ(V0(n,e),V0(n,t),fb,i),c=o[0];if(s&&F_(c)){const u=c.charAt(0)===Fo?"file://":"file:///";o[0]=u+c}return W0(o)}function jp(e,t){for(;;){const n=t(e);if(n!==void 0)return n;const i=Un(e);if(i===e)return;e=i}}function w7(e){return Yo(e,"/node_modules")}var Fo,FD,bee,U0e,A7,kFe=Dt({"src/compiler/path.ts"(){Fs(),Fo="/",FD="\\",bee="://",U0e=/\\/g,A7=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/}});function b(e,t,n,i,s,o,c){return{code:e,category:t,key:n,message:i,reportsUnnecessary:s,elidedInCompatabilityPyramid:o,reportsDeprecated:c}}var p,CFe=Dt({"src/compiler/diagnosticInformationMap.generated.ts"(){F0e(),p={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 Au(e){return e>=80}function See(e){return e===32||Au(e)}function OD(e,t){if(e=2?OD(e,Z0e):t===1?OD(e,Q0e):OD(e,$0e)}function EFe(e,t){return t>=2?OD(e,K0e):t===1?OD(e,Y0e):OD(e,X0e)}function PFe(e){const t=[];return e.forEach((n,i)=>{t[n]=i}),t}function Ws(e){return nye[e]}function Ov(e){return Cee.get(e)}function CT(e){const t=[];let n=0,i=0;for(;n127&&gu(s)&&(t.push(i),i=n);break}}return t.push(i),t}function LD(e,t,n,i){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,n,i):I7($g(e),t,n,e.text,i)}function I7(e,t,n,i,s){(t<0||t>=e.length)&&(s?t=t<0?0:t>=e.length?e.length-1:t:E.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${i!==void 0?mD(e,CT(i)):"unknown"}`));const o=e[t]+n;return s?o>e[t+1]?e[t+1]:typeof i=="string"&&o>i.length?i.length:o:(t=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function gu(e){return e===10||e===13||e===8232||e===8233}function K4(e){return e>=48&&e<=57}function q0e(e){return K4(e)||e>=65&&e<=70||e>=97&&e<=102}function DFe(e){return e<=1114111}function F7(e){return e>=48&&e<=55}function Tee(e,t){const n=e.charCodeAt(t);switch(n){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 n>127}}function ca(e,t,n,i,s){if(md(t))return t;let o=!1;for(;;){const c=e.charCodeAt(t);switch(c){case 13:e.charCodeAt(t+1)===10&&t++;case 10:if(t++,n)return t;o=!!s;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&&Xg(c)){t++;continue}break}return t}}function eE(e,t){if(E.assert(t>=0),t===0||gu(e.charCodeAt(t-1))){const n=e.charCodeAt(t);if(t+L7=0&&n127&&Xg(k)){y&&gu(k)&&(d=!0),n++;continue}break e}}return y&&(T=s(u,f,g,d,o,T)),T}function RD(e,t,n,i){return jJ(!1,e,t,!1,n,i)}function jD(e,t,n,i){return jJ(!1,e,t,!0,n,i)}function xee(e,t,n,i,s){return jJ(!0,e,t,!1,n,i,s)}function kee(e,t,n,i,s){return jJ(!0,e,t,!0,n,i,s)}function H0e(e,t,n,i,s,o=[]){return o.push({kind:n,pos:e,end:t,hasTrailingNewLine:i}),o}function _g(e,t){return xee(e,t,H0e,void 0,void 0)}function m1(e,t){return kee(e,t,H0e,void 0,void 0)}function O7(e){const t=BJ.exec(e);if(t)return t[0]}function fg(e,t){return e>=65&&e<=90||e>=97&&e<=122||e===36||e===95||e>127&&N7(e,t)}function g1(e,t,n){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===36||e===95||(n===1?e===45||e===58:!1)||e>127&&EFe(e,t)}function bf(e,t,n){let i=U0(e,0);if(!fg(i,t))return!1;for(let s=h1(i);sd,getStartPos:()=>d,getTokenEnd:()=>f,getTextPos:()=>f,getToken:()=>S,getTokenStart:()=>y,getTokenPos:()=>y,getTokenText:()=>u.substring(y,f),getTokenValue:()=>T,hasUnicodeEscape:()=>(k&1024)!==0,hasExtendedUnicodeEscape:()=>(k&8)!==0,hasPrecedingLineBreak:()=>(k&1)!==0,hasPrecedingJSDocComment:()=>(k&2)!==0,isIdentifier:()=>S===80||S>118,isReservedWord:()=>S>=83&&S<=118,isUnterminated:()=>(k&4)!==0,getCommentDirectives:()=>w,getNumericLiteralFlags:()=>k&25584,getTokenFlags:()=>k,reScanGreaterToken:ge,reScanAsteriskEqualsToken:Fe,reScanSlashToken:$e,reScanTemplateToken:Je,reScanTemplateHeadOrNoSubstitutionTemplate:pt,scanJsxIdentifier:jt,scanJsxAttributeValue:Rt,reScanJsxAttributeValue:Kn,reScanJsxToken:zt,reScanLessThanToken:Vt,reScanHashToken:hr,reScanQuestionToken:Lr,reScanInvalidIdentifier:De,scanJsxToken:er,scanJsDocToken:yi,scanJSDocCommentTextToken:Ji,scan:be,getText:Ht,clearCommentDirectives:Ue,setText:Et,setScriptTarget:Hn,setLanguageVariant:ei,setScriptKind:Ii,setJSDocParsingMode:ns,setOnError:fr,resetTokenState:Vs,setTextPos:Vs,setInJSDocType:_a,tryScan:ln,lookAhead:_i,scanRange:yr};return E.isDebugging&&Object.defineProperty(U,"__debugShowCurrentPositionInText",{get:()=>{const cr=U.getText();return cr.slice(0,U.getTokenFullStart())+"║"+cr.slice(U.getTokenFullStart())}}),U;function $(cr,br=f,Le,rt){if(s){const tt=f;f=br,s(cr,Le||0,rt),f=tt}}function j(){let cr=f,br=!1,Le=!1,rt="";for(;;){const tt=u.charCodeAt(f);if(tt===95){k|=512,br?(br=!1,Le=!0,rt+=u.substring(cr,f)):(k|=16384,$(Le?p.Multiple_consecutive_numeric_separators_are_not_permitted:p.Numeric_separators_are_not_allowed_here,f,1)),f++,cr=f;continue}if(K4(tt)){br=!0,Le=!1,f++;continue}break}return u.charCodeAt(f-1)===95&&(k|=16384,$(p.Numeric_separators_are_not_allowed_here,f-1,1)),rt+u.substring(cr,f)}function re(){let cr=f,br;if(u.charCodeAt(f)===48)if(f++,u.charCodeAt(f)===95)k|=16896,$(p.Numeric_separators_are_not_allowed_here,f,1),f--,br=j();else if(!Y())k|=8192,br=""+ +T;else if(!T)br="0";else{T=""+parseInt(T,8),k|=32;const ne=S===41,we=(ne?"-":"")+"0o"+(+T).toString(8);return ne&&cr--,$(p.Octal_literals_are_not_allowed_Use_the_syntax_0,cr,f-cr,we),9}else br=j();let Le,rt;u.charCodeAt(f)===46&&(f++,Le=j());let tt=f;if(u.charCodeAt(f)===69||u.charCodeAt(f)===101){f++,k|=16,(u.charCodeAt(f)===43||u.charCodeAt(f)===45)&&f++;const ne=f,we=j();we?(rt=u.substring(tt,ne)+we,tt=f):$(p.Digit_expected)}let yt;if(k&512?(yt=br,Le&&(yt+="."+Le),rt&&(yt+=rt)):yt=u.substring(cr,tt),k&8192)return $(p.Decimals_with_leading_zeros_are_not_allowed,cr,tt-cr),T=""+ +yt,9;if(Le!==void 0||k&16)return R(cr,Le===void 0&&!!(k&16)),T=""+ +yt,9;{T=yt;const ne=me();return R(cr),ne}}function R(cr,br){if(!fg(U0(u,f),e))return;const Le=f,{length:rt}=fe();rt===1&&u[Le]==="n"?$(br?p.A_bigint_literal_cannot_use_exponential_notation:p.A_bigint_literal_must_be_an_integer,cr,Le-cr+1):($(p.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,Le,rt),f=Le)}function Y(){const cr=f;let br=!0;for(;K4(u.charCodeAt(f));)F7(u.charCodeAt(f))||(br=!1),f++;return T=u.substring(cr,f),br}function ue(cr,br){const Le=H(cr,!1,br);return Le?parseInt(Le,16):-1}function pe(cr,br){return H(cr,!0,br)}function H(cr,br,Le){let rt=[],tt=!1,yt=!1;for(;rt.length=65&&ne<=70)ne+=32;else if(!(ne>=48&&ne<=57||ne>=97&&ne<=102))break;rt.push(ne),f++,yt=!1}return rt.length=g){Le+=u.substring(rt,f),k|=4,$(p.Unterminated_string_literal);break}const tt=u.charCodeAt(f);if(tt===br){Le+=u.substring(rt,f),f++;break}if(tt===92&&!cr){Le+=u.substring(rt,f),Le+=oe(!0),rt=f;continue}if((tt===10||tt===13)&&!cr){Le+=u.substring(rt,f),k|=4,$(p.Unterminated_string_literal);break}f++}return Le}function ee(cr){const br=u.charCodeAt(f)===96;f++;let Le=f,rt="",tt;for(;;){if(f>=g){rt+=u.substring(Le,f),k|=4,$(p.Unterminated_template_literal),tt=br?15:18;break}const yt=u.charCodeAt(f);if(yt===96){rt+=u.substring(Le,f),f++,tt=br?15:18;break}if(yt===36&&f+1=g)return $(p.Unexpected_end_of_text),"";const Le=u.charCodeAt(f);switch(f++,Le){case 48:if(f>=g||!K4(u.charCodeAt(f)))return"\0";case 49:case 50:case 51:f=g?(k|=2048,cr&&$(p.Unexpected_end_of_text),u.substring(br,f)):u.charCodeAt(f)!==125?(k|=2048,cr&&$(p.Unterminated_Unicode_escape_sequence),u.substring(br,f)):(f++,k|=8,Jk(tt)):(k|=2048,cr&&$(p.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),u.substring(br,f))}for(;f1114111&&($(p.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),Le=!0),f>=g?($(p.Unexpected_end_of_text),Le=!0):u.charCodeAt(f)===125?f++:($(p.Unterminated_Unicode_escape_sequence),Le=!0),Le?"":Jk(br)}function ae(){if(f+5=0&&g1(Le,e)){f+=3,k|=8,cr+=Se(),br=f;continue}if(Le=ae(),!(Le>=0&&g1(Le,e)))break;k|=1024,cr+=u.substring(br,f),cr+=Jk(Le),f+=6,br=f}else break}return cr+=u.substring(br,f),cr}function ke(){const cr=T.length;if(cr>=2&&cr<=12){const br=T.charCodeAt(0);if(br>=97&&br<=122){const Le=G0e.get(T);if(Le!==void 0)return S=Le}}return S=80}function Oe(cr){let br="",Le=!1,rt=!1;for(;;){const tt=u.charCodeAt(f);if(tt===95){k|=512,Le?(Le=!1,rt=!0):$(rt?p.Multiple_consecutive_numeric_separators_are_not_permitted:p.Numeric_separators_are_not_allowed_here,f,1),f++;continue}if(Le=!0,!K4(tt)||tt-48>=cr)break;br+=u[f],f++,rt=!1}return u.charCodeAt(f-1)===95&&$(p.Numeric_separators_are_not_allowed_here,f-1,1),br}function me(){return u.charCodeAt(f)===110?(T+="n",k&384&&(T=GE(T)+"n"),f++,10):(T=""+(k&128?parseInt(T.slice(2),2):k&256?parseInt(T.slice(2),8):+T),9)}function be(){d=f,k=0;let cr=!1;for(;;){if(y=f,f>=g)return S=1;const br=U0(u,f);if(f===0){if(u.slice(0,256).includes("�"))return $(p.File_appears_to_be_binary),f=g,S=8;if(br===35&&MJ(u,f)){if(f=RJ(u,f),t)continue;return S=6}}switch(br){case 10:case 13:if(k|=1,t){f++;continue}else return br===13&&f+1=0&&fg(Le,e))return f+=3,k|=8,T=Se()+fe(),S=ke();const rt=ae();return rt>=0&&fg(rt,e)?(f+=6,k|=1024,T=String.fromCharCode(rt)+fe(),S=ke()):($(p.Invalid_character),f++,S=0);case 35:if(f!==0&&u[f+1]==="!")return $(p.can_only_be_used_at_the_start_of_a_file),f++,S=0;const tt=U0(u,f+1);if(tt===92){f++;const we=K();if(we>=0&&fg(we,e))return f+=3,k|=8,T="#"+Se()+fe(),S=81;const et=ae();if(et>=0&&fg(et,e))return f+=6,k|=1024,T="#"+String.fromCharCode(et)+fe(),S=81;f--}return fg(tt,e)?(f++,ft(tt,e)):(T="#",$(p.Invalid_character,f++,h1(br))),S=81;default:const yt=ft(br,e);if(yt)return S=yt;if(Bd(br)){f+=h1(br);continue}else if(gu(br)){k|=1,f+=h1(br);continue}const ne=h1(br);return $(p.Invalid_character,f,ne),f+=ne,S=0}}}function xe(){switch(J){case 0:return!0;case 1:return!1}return F!==3&&F!==4?!0:J===3?!1:rye.test(u.slice(d,f))}function De(){E.assert(S===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),f=y=d,k=0;const cr=U0(u,f),br=ft(cr,99);return br?S=br:(f+=h1(cr),S)}function ft(cr,br){let Le=cr;if(fg(Le,br)){for(f+=h1(Le);f=g)return S=1;let br=u.charCodeAt(f);if(br===60)return u.charCodeAt(f+1)===47?(f+=2,S=31):(f++,S=30);if(br===123)return f++,S=19;let Le=0;for(;f0)break;Xg(br)||(Le=f)}f++}return T=u.substring(d,f),Le===-1?13:12}function jt(){if(Au(S)){for(;f=g)return S=1;for(let br=u.charCodeAt(f);f=0&&Bd(u.charCodeAt(f-1))&&!(f+1=g)return S=1;const cr=U0(u,f);switch(f+=h1(cr),cr){case 9:case 11:case 12:case 32:for(;f=0&&fg(br,e))return f+=3,k|=8,T=Se()+fe(),S=ke();const Le=ae();return Le>=0&&fg(Le,e)?(f+=6,k|=1024,T=String.fromCharCode(Le)+fe(),S=ke()):(f++,S=0)}if(fg(cr,e)){let br=cr;for(;f=0),f=cr,d=cr,y=cr,S=0,T=void 0,k=0}function _a(cr){P+=cr?1:-1}}function U0(e,t){return e.codePointAt(t)}function h1(e){return e>=65536?2:1}function wFe(e){if(E.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);const t=Math.floor((e-65536)/1024)+55296,n=(e-65536)%1024+56320;return String.fromCharCode(t,n)}function Jk(e){return iye(e)}var BD,G0e,Cee,$0e,X0e,Q0e,Y0e,Z0e,K0e,eye,tye,rye,nye,L7,BJ,iye,AFe=Dt({"src/compiler/scanner.ts"(){Fs(),BD={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},G0e=new Map(Object.entries(BD)),Cee=new Map(Object.entries({...BD,"{":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})),$0e=[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],X0e=[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],Q0e=[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],Y0e=[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],Z0e=[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],K0e=[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],eye=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,tye=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,rye=/@(?:see|link)/i,nye=PFe(Cee),L7=7,BJ=/^#!.*/,iye=String.fromCodePoint?e=>String.fromCodePoint(e):wFe}});function Sl(e){return nf(e)||F_(e)}function zk(e){return z4(e,zE)}function JD(e){switch(Fa(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 bc(e){return e.start+e.length}function Eee(e){return e.length===0}function JJ(e,t){return t>=e.start&&t=e.pos&&t<=e.end}function Pee(e,t){return t.start>=e.start&&bc(t)<=bc(e)}function sye(e,t){return Dee(e,t)!==void 0}function Dee(e,t){const n=Aee(e,t);return n&&n.length===0?void 0:n}function aye(e,t){return WD(e.start,e.length,t.start,t.length)}function M7(e,t,n){return WD(e.start,e.length,t,n)}function WD(e,t,n,i){const s=e+t,o=n+i;return n<=s&&o>=e}function wee(e,t){return t<=bc(e)&&t>=e.start}function Aee(e,t){const n=Math.max(e.start,t.start),i=Math.min(bc(e),bc(t));return n<=i?Rc(n,i):void 0}function Wl(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function Rc(e,t){return Wl(e,t-e)}function tE(e){return Wl(e.span.start,e.newLength)}function Nee(e){return Eee(e.span)&&e.newLength===0}function VD(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function Iee(e){if(e.length===0)return s8;if(e.length===1)return e[0];const t=e[0];let n=t.span.start,i=bc(t.span),s=n+t.newLength;for(let o=1;o=2&&e.charCodeAt(0)===95&&e.charCodeAt(1)===95?"_"+e:e}function xi(e){const t=e;return t.length>=3&&t.charCodeAt(0)===95&&t.charCodeAt(1)===95&&t.charCodeAt(2)===95?t.substr(1):t}function on(e){return xi(e.escapedText)}function v1(e){const t=Ov(e.escapedText);return t?Wn(t,c_):void 0}function Xo(e){return e.valueDeclaration&&Iu(e.valueDeclaration)?on(e.valueDeclaration.name):xi(e.escapedName)}function lye(e){const t=e.parent.parent;if(t){if(yu(t))return WJ(t);switch(t.kind){case 243:if(t.declarationList&&t.declarationList.declarations[0])return WJ(t.declarationList.declarations[0]);break;case 244:let n=t.expression;switch(n.kind===226&&n.operatorToken.kind===64&&(n=n.left),n.kind){case 211:return n.name;case 212:const i=n.argumentExpression;if(Ie(i))return i}break;case 217:return WJ(t.expression);case 256:{if(yu(t.statement)||ot(t.statement))return WJ(t.statement);break}}}}function WJ(e){const t=us(e);return t&&Ie(t)?t:void 0}function UD(e,t){return!!(Nu(e)&&Ie(e.name)&&on(e.name)===on(t)||ac(e)&&ct(e.declarationList.declarations,n=>UD(n,t)))}function Mee(e){return e.name||lye(e)}function Nu(e){return!!e.name}function R7(e){switch(e.kind){case 80:return e;case 355:case 348:{const{name:n}=e;if(n.kind===166)return n.right;break}case 213:case 226:{const n=e;switch(fc(n)){case 1:case 4:case 5:case 3:return F5(n.left);case 7:case 8:case 9:return n.arguments[1];default:return}}case 353:return Mee(e);case 347:return lye(e);case 277:{const{expression:n}=e;return Ie(n)?n:void 0}case 212:const t=e;if(I5(t))return t.argumentExpression}return e.name}function us(e){if(e!==void 0)return R7(e)||(lo(e)||mo(e)||kl(e)?j7(e):void 0)}function j7(e){if(e.parent){if(zc(e.parent)||Ea(e.parent))return e.parent.name;if(Zr(e.parent)&&e===e.parent.right){if(Ie(e.parent.left))return e.parent.left;if(co(e.parent.left))return F5(e.parent.left)}else if(hi(e.parent)&&Ie(e.parent.name))return e.parent.name}else return}function q0(e){if(Wf(e))return An(e.modifiers,ql)}function Lv(e){if(Rn(e,98303))return An(e.modifiers,ta)}function uye(e,t){if(e.name)if(Ie(e.name)){const n=e.name.escapedText;return HD(e.parent,t).filter(i=>vd(i)&&Ie(i.name)&&i.name.escapedText===n)}else{const n=e.parent.parameters.indexOf(e);E.assert(n>-1,"Parameters should always be in their parents' parameter list");const i=HD(e.parent,t).filter(vd);if(nkp(i)&&i.typeParameters.some(s=>s.name.escapedText===n))}function jee(e){return _ye(e,!1)}function Bee(e){return _ye(e,!0)}function Jee(e){return!!fp(e,vd)}function zee(e){return fp(e,mx)}function Wee(e){return J7(e,wO)}function VJ(e){return fp(e,pie)}function fye(e){return fp(e,OV)}function Vee(e){return fp(e,OV,!0)}function pye(e){return fp(e,LV)}function Uee(e){return fp(e,LV,!0)}function dye(e){return fp(e,MV)}function qee(e){return fp(e,MV,!0)}function mye(e){return fp(e,RV)}function Hee(e){return fp(e,RV,!0)}function Gee(e){return fp(e,PO,!0)}function UJ(e){return fp(e,jV)}function $ee(e){return fp(e,jV,!0)}function qJ(e){return fp(e,Ow)}function B7(e){return fp(e,BV)}function Xee(e){return fp(e,DO)}function gye(e){return fp(e,kp)}function HJ(e){return fp(e,AO)}function b1(e){const t=fp(e,v3);if(t&&t.typeExpression&&t.typeExpression.type)return t}function S1(e){let t=fp(e,v3);return!t&&rs(e)&&(t=wn(Vk(e),n=>!!n.typeExpression)),t&&t.typeExpression&&t.typeExpression.type}function qD(e){const t=Xee(e);if(t&&t.typeExpression)return t.typeExpression.type;const n=b1(e);if(n&&n.typeExpression){const i=n.typeExpression.type;if(z_(i)){const s=wn(i.members,ix);return s&&s.type}if(Mm(i)||VC(i))return i.type}}function HD(e,t){var n;if(!O8(e))return Ve;let i=(n=e.jsDoc)==null?void 0:n.jsDocCache;if(i===void 0||t){const s=Wz(e,t);E.assert(s.length<2||s[0]!==s[1]),i=Zs(s,o=>yd(o)?o.tags:o),t||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=i)}return i}function T1(e){return HD(e,!1)}function hye(e){return HD(e,!0)}function fp(e,t,n){return wn(HD(e,n),t)}function J7(e,t){return T1(e).filter(t)}function yye(e,t){return T1(e).filter(n=>n.kind===t)}function GD(e){return typeof e=="string"?e:e==null?void 0:e.map(t=>t.kind===328?t.text:IFe(t)).join("")}function IFe(e){const t=e.kind===331?"link":e.kind===332?"linkcode":"linkplain",n=e.name?L_(e.name):"",i=e.name&&e.text.startsWith("://")?"":" ";return`{@${t} ${n}${i}${e.text}}`}function H0(e){if(R1(e)){if(UC(e.parent)){const t=pC(e.parent);if(t&&mr(t.tags))return Zs(t.tags,n=>kp(n)?n.typeParameters:void 0)}return Ve}if(gp(e))return E.assert(e.parent.kind===327),Zs(e.parent.tags,t=>kp(t)?t.typeParameters:void 0);if(e.typeParameters||kie(e)&&e.typeParameters)return e.typeParameters;if(Hr(e)){const t=G5(e);if(t.length)return t;const n=S1(e);if(n&&Mm(n)&&n.typeParameters)return n.typeParameters}return Ve}function Uk(e){return e.constraint?e.constraint:kp(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function pg(e){return e.kind===80||e.kind===81}function z7(e){return e.kind===178||e.kind===177}function W7(e){return Sn(e)&&!!(e.flags&64)}function GJ(e){return Co(e)&&!!(e.flags&64)}function hb(e){return Rs(e)&&!!(e.flags&64)}function hu(e){const t=e.kind;return!!(e.flags&64)&&(t===211||t===212||t===213||t===235)}function nE(e){return hu(e)&&!ux(e)&&!!e.questionDotToken}function V7(e){return nE(e.parent)&&e.parent.expression===e}function iE(e){return!hu(e.parent)||nE(e.parent)||e!==e.parent.expression}function $J(e){return e.kind===226&&e.operatorToken.kind===61}function Qg(e){return Gf(e)&&Ie(e.typeName)&&e.typeName.escapedText==="const"&&!e.typeArguments}function Bp(e){return xc(e,8)}function U7(e){return ux(e)&&!!(e.flags&64)}function sE(e){return e.kind===252||e.kind===251}function XJ(e){return e.kind===280||e.kind===279}function Qee(e){switch(e.kind){case 309:case 310:return!0;default:return!1}}function QJ(e){return Qee(e)||e.kind===307||e.kind===311}function aE(e){return e.kind===355||e.kind===348}function vye(e){return $D(e.kind)}function $D(e){return e>=166}function YJ(e){return e>=0&&e<=165}function ET(e){return YJ(e.kind)}function Mv(e){return Ka(e,"pos")&&Ka(e,"end")}function oE(e){return 9<=e&&e<=15}function Rv(e){return oE(e.kind)}function ZJ(e){switch(e.kind){case 210:case 209:case 14:case 218:case 231:return!0}return!1}function G0(e){return 15<=e&&e<=18}function Yee(e){return G0(e.kind)}function q7(e){const t=e.kind;return t===17||t===18}function PT(e){return x_(e)||vu(e)}function XD(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 Zee(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 x1(e){return XD(e)||Zee(e)}function KJ(e){return e.kind===11||G0(e.kind)}function Kee(e){return aa(e)||Ie(e)}function Oo(e){var t;return Ie(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function yb(e){var t;return Pi(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function QD(e){const t=e.emitNode.autoGenerate.flags;return!!(t&32)&&!!(t&16)&&!!(t&8)}function Iu(e){return(xs(e)||wT(e))&&Pi(e.name)}function qk(e){return Sn(e)&&Pi(e.name)}function $h(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 cE(e){return!!(zT(e)&31)}function ez(e){return cE(e)||e===126||e===164||e===129}function ta(e){return $h(e.kind)}function b_(e){const t=e.kind;return t===166||t===80}function Ac(e){const t=e.kind;return t===80||t===81||t===11||t===9||t===167}function vb(e){const t=e.kind;return t===80||t===206||t===207}function As(e){return!!e&&DT(e.kind)}function Hk(e){return!!e&&(DT(e.kind)||ec(e))}function po(e){return e&&bye(e.kind)}function lE(e){return e.kind===112||e.kind===97}function bye(e){switch(e){case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function DT(e){switch(e){case 173:case 179:case 330:case 180:case 181:case 184:case 324:case 185:return!0;default:return bye(e)}}function tz(e){return Ni(e)||Yd(e)||Cs(e)&&As(e.parent)}function Tl(e){const t=e.kind;return t===176||t===172||t===174||t===177||t===178||t===181||t===175||t===240}function $n(e){return e&&(e.kind===263||e.kind===231)}function $0(e){return e&&(e.kind===177||e.kind===178)}function s_(e){return xs(e)&&Hd(e)}function ete(e){return Hr(e)&&EF(e)?(!qv(e)||!ny(e.expression))&&!Ab(e,!0):e.parent&&$n(e.parent)&&xs(e)&&!Hd(e)}function wT(e){switch(e.kind){case 174:case 177:case 178:return!0;default:return!1}}function Sye(e){switch(e.kind){case 174:case 177:case 178:case 172:return!0;default:return!1}}function Lo(e){return ta(e)||ql(e)}function bb(e){const t=e.kind;return t===180||t===179||t===171||t===173||t===181||t===177||t===178}function H7(e){return bb(e)||Tl(e)}function Yg(e){const t=e.kind;return t===303||t===304||t===305||t===174||t===177||t===178}function ki(e){return CW(e.kind)}function tte(e){switch(e.kind){case 184:case 185:return!0}return!1}function Ns(e){if(e){const t=e.kind;return t===207||t===206}return!1}function uE(e){const t=e.kind;return t===209||t===210}function G7(e){const t=e.kind;return t===208||t===232}function YD(e){switch(e.kind){case 260:case 169:case 208:return!0}return!1}function rte(e){return hi(e)||rs(e)||KD(e)||e8(e)}function ZD(e){return rz(e)||nz(e)}function rz(e){switch(e.kind){case 206:case 210:return!0}return!1}function KD(e){switch(e.kind){case 208:case 303:case 304:case 305:return!0}return!1}function nz(e){switch(e.kind){case 207:case 209:return!0}return!1}function e8(e){switch(e.kind){case 208:case 232:case 230:case 209:case 210:case 80:case 211:case 212:return!0}return il(e,!0)}function nte(e){const t=e.kind;return t===211||t===166||t===205}function ite(e){const t=e.kind;return t===211||t===166}function iz(e){return jv(e)||t2(e)}function jv(e){switch(e.kind){case 286:case 285:case 213:case 214:case 215:case 170:return!0;default:return!1}}function Jd(e){return e.kind===213||e.kind===214}function AT(e){const t=e.kind;return t===228||t===15}function S_(e){return Tye(Bp(e).kind)}function Tye(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 sz(e){return xye(Bp(e).kind)}function xye(e){switch(e){case 224:case 225:case 220:case 221:case 222:case 223:case 216:return!0;default:return Tye(e)}}function ste(e){switch(e.kind){case 225:return!0;case 224:return e.operator===46||e.operator===47;default:return!1}}function ate(e){switch(e.kind){case 106:case 112:case 97:case 224:return!0;default:return Rv(e)}}function ot(e){return FFe(Bp(e).kind)}function FFe(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 xye(e)}}function Sb(e){const t=e.kind;return t===216||t===234}function kye(e){return AV(e)||xO(e)}function X0(e,t){switch(e.kind){case 248:case 249:case 250:case 246:case 247:return!0;case 256:return t&&X0(e.statement,t)}return!1}function ote(e){return oc(e)||Tc(e)}function cte(e){return ct(e,ote)}function $7(e){return!u8(e)&&!oc(e)&&!Rn(e,32)&&!su(e)}function t8(e){return u8(e)||oc(e)||Rn(e,32)}function Gk(e){return e.kind===249||e.kind===250}function X7(e){return Cs(e)||ot(e)}function az(e){return Cs(e)}function zf(e){return ml(e)||ot(e)}function lte(e){const t=e.kind;return t===268||t===267||t===80}function Cye(e){const t=e.kind;return t===268||t===267}function Eye(e){const t=e.kind;return t===80||t===267}function oz(e){const t=e.kind;return t===275||t===274}function r8(e){return e.kind===267||e.kind===266}function zd(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 Dm(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 OFe(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 ute(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 _te(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 yu(e){return e.kind===168?e.parent&&e.parent.kind!==352||Hr(e):OFe(e.kind)}function fte(e){return ute(e.kind)}function n8(e){return _te(e.kind)}function Ei(e){const t=e.kind;return _te(t)||ute(t)||LFe(e)}function LFe(e){return e.kind!==241||e.parent!==void 0&&(e.parent.kind===258||e.parent.kind===299)?!1:!Vv(e)}function pte(e){const t=e.kind;return _te(t)||ute(t)||t===241}function dte(e){const t=e.kind;return t===283||t===166||t===80}function _E(e){const t=e.kind;return t===110||t===80||t===211||t===295}function i8(e){const t=e.kind;return t===284||t===294||t===285||t===12||t===288}function Q7(e){const t=e.kind;return t===291||t===293}function mte(e){const t=e.kind;return t===11||t===294}function Fu(e){const t=e.kind;return t===286||t===285}function Y7(e){const t=e.kind;return t===296||t===297}function $k(e){return e.kind>=316&&e.kind<=357}function Z7(e){return e.kind===327||e.kind===326||e.kind===328||NT(e)||Xk(e)||Qb(e)||R1(e)}function Xk(e){return e.kind>=334&&e.kind<=357}function Xh(e){return e.kind===178}function Q0(e){return e.kind===177}function sf(e){if(!O8(e))return!1;const{jsDoc:t}=e;return!!t&&t.length>0}function K7(e){return!!e.type}function Y0(e){return!!e.initializer}function Tb(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:case 306:return!0;default:return!1}}function cz(e){return e.kind===291||e.kind===293||Yg(e)}function e5(e){return e.kind===183||e.kind===233}function gte(e){let t=hte;for(const n of e){if(!n.length)continue;let i=0;for(;i0?n.parent.parameters[s-1]:void 0,c=t.text,u=o?es(m1(c,ca(c,o.end+1,!1,!0)),_g(c,e.pos)):m1(c,ca(c,e.pos,!1,!0));return ct(u)&&Pye(ka(u),t)}const i=n&&wz(n,t);return!!rr(i,s=>Pye(s,t))}var s8,_z,hte,MFe=Dt({"src/compiler/utilitiesPublic.ts"(){Fs(),s8=VD(Wl(0,0),0),_z=["cs","de","es","fr","it","ja","ko","pl","pt-br","ru","tr","zh-cn","zh-tw"],hte=1073741823}});function Jo(e,t){const n=e.declarations;if(n){for(const i of n)if(i.kind===t)return i}}function yte(e,t){return An(e.declarations||Ve,n=>n.kind===t)}function Bs(e){const t=new Map;if(e)for(const n of e)t.set(n.escapedName,n);return t}function wm(e){return(e.flags&33554432)!==0}function RFe(){var e="";const t=n=>e+=n;return{getText:()=>e,write:t,rawWrite:t,writeKeyword:t,writeOperator:t,writePunctuation:t,writeSpace:t,writeStringLiteral:t,writeLiteral:t,writeParameter:t,writeProperty:t,writeSymbol:(n,i)=>t(n),writeTrailingSemicolon:t,writeComment:t,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&Xg(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:Ca,decreaseIndent:Ca,clear:()=>e=""}}function t5(e,t){return e.configFilePath!==t.configFilePath||vte(e,t)}function vte(e,t){return Qk(e,t,GO)}function bte(e,t){return Qk(e,t,bU)}function Qk(e,t,n){return e!==t&&n.some(i=>!bF(lF(e,i),lF(t,i)))}function Ste(e,t){for(;;){const n=t(e);if(n==="quit")return;if(n!==void 0)return n;if(Ni(e))return;e=e.parent}}function fl(e,t){const n=e.entries();for(const[i,s]of n){const o=t(s,i);if(o)return o}}function Am(e,t){const n=e.keys();for(const i of n){const s=t(i);if(s)return s}}function r5(e,t){e.forEach((n,i)=>{t.set(i,n)})}function fE(e){const t=uw.getText();try{return e(uw),uw.getText()}finally{uw.clear(),uw.writeKeyword(t)}}function a8(e){return e.end-e.pos}function fz(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular}function Tte(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&&jFe(e.resolvedModule.packageId,t.resolvedModule.packageId)&&e.alternateResult===t.alternateResult}function n5(e,t,n,i,s){var o;const c=(o=t.getResolvedModule(e,n,i))==null?void 0:o.alternateResult,u=c&&(Ru(t.getCompilerOptions())===2?[p.There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler,[c]]:[p.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,[c,c.includes(zm+"@types/")?`@types/${n6(s)}`:s]]),f=u?vs(void 0,u[0],...u[1]):t.typesPackageExists(s)?vs(void 0,p.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,s,n6(s)):t.packageBundlesTypes(s)?vs(void 0,p.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,s,n):vs(void 0,p.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,n,n6(s));return f&&(f.repopulateInfo=()=>({moduleReference:n,mode:i,packageName:s===n?void 0:s})),f}function jFe(e,t){return e===t||!!e&&!!t&&e.name===t.name&&e.subModuleName===t.subModuleName&&e.version===t.version}function i5({name:e,subModuleName:t}){return t?`${e}/${t}`:e}function Z0(e){return`${i5(e)}@${e.version}`}function xte(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 pz(e,t,n,i){E.assert(e.length===t.length);for(let s=0;s=0),$g(t)[e]}function Dye(e){const t=wr(e),n=Ha(t,e.pos);return`${t.fileName}(${n.line+1},${n.character+1})`}function c8(e,t){E.assert(e>=0);const n=$g(t),i=e,s=t.text;if(i+1===n.length)return s.length-1;{const o=n[i];let c=n[i+1]-1;for(E.assert(gu(s.charCodeAt(c)));o<=c&&gu(s.charCodeAt(c));)c--;return c}}function a5(e,t,n){return!(n&&n(t))&&!e.identifiers.has(t)}function _c(e){return e===void 0?!0:e.pos===e.end&&e.pos>=0&&e.kind!==1}function pp(e){return!_c(e)}function Cte(e,t){return Uo(e)?t===e.expression:ec(e)?t===e.modifiers:B_(e)?t===e.initializer:xs(e)?t===e.questionToken&&s_(e):zc(e)?t===e.modifiers||t===e.questionToken||t===e.exclamationToken||l8(e.modifiers,t,Lo):k_(e)?t===e.equalsToken||t===e.modifiers||t===e.questionToken||t===e.exclamationToken||l8(e.modifiers,t,Lo):hc(e)?t===e.exclamationToken:sc(e)?t===e.typeParameters||t===e.type||l8(e.typeParameters,t,Uo):Tf(e)?t===e.typeParameters||l8(e.typeParameters,t,Uo):J_(e)?t===e.typeParameters||t===e.type||l8(e.typeParameters,t,Uo):Fw(e)?t===e.modifiers||l8(e.modifiers,t,Lo):!1}function l8(e,t,n){return!e||ts(t)||!n(t)?!1:bs(e,t)}function wye(e,t,n){if(t===void 0||t.length===0)return e;let i=0;for(;i[`${Ha(e,c.range.end).line}`,c])),i=new Map;return{getUnusedExpectations:s,markUsed:o};function s(){return gs(n.entries()).filter(([c,u])=>u.type===0&&!i.get(c)).map(([c,u])=>u)}function o(c){return n.has(`${c}`)?(i.set(`${c}`,!0),!0):!1}}function k1(e,t,n){return _c(e)?e.pos:$k(e)||e.kind===12?ca((t||wr(e)).text,e.pos,!1,!0):n&&sf(e)?k1(e.jsDoc[0],t):e.kind===358&&e._children.length>0?k1(e._children[0],t,n):ca((t||wr(e)).text,e.pos,!1,!1,S8(e))}function gz(e,t){const n=!_c(e)&&Hp(e)?gT(e.modifiers,ql):void 0;return n?ca((t||wr(e)).text,n.end):k1(e,t)}function Bv(e,t,n=!1){return pE(e.text,t,n)}function JFe(e){return!!Pr(e,d2)}function c5(e){return!!(Tc(e)&&e.exportClause&&jm(e.exportClause)&&e.exportClause.name.escapedText==="default")}function pE(e,t,n=!1){if(_c(t))return"";let i=e.substring(n?t.pos:ca(e,t.pos),t.end);return JFe(t)&&(i=i.split(/\r\n|\n|\r/).map(s=>s.replace(/^\s*\*/,"").trimStart()).join(` +`)),i}function jc(e,t=!1){return Bv(wr(e),e,t)}function zFe(e){return e.pos}function Zk(e,t){return Jh(e,t,zFe,Ao)}function ha(e){const t=e.emitNode;return t&&t.flags||0}function Jp(e){const t=e.emitNode;return t&&t.internalFlags||0}function Pte(e,t,n){if(t&&WFe(e,n))return Bv(t,e);switch(e.kind){case 11:{const i=n&2?aW:n&1||ha(e)&16777216?bg:q8;return e.singleQuote?"'"+i(e.text,39)+"'":'"'+i(e.text,34)+'"'}case 15:case 16:case 17:case 18:{const i=n&1||ha(e)&16777216?bg:q8,s=e.rawText??iW(i(e.text,96));switch(e.kind){case 15:return"`"+s+"`";case 16:return"`"+s+"${";case 17:return"}"+s+"${";case 18:return"}"+s+"`"}break}case 9:case 10:return e.text;case 14:return n&4&&e.isUnterminated?e.text+(e.text.charCodeAt(e.text.length-1)===92?" /":"/"):e.text}return E.fail(`Literal kind '${e.kind}' not accounted for.`)}function WFe(e,t){if(ko(e)||!e.parent||t&4&&e.isUnterminated)return!1;if(j_(e)){if(e.numericLiteralFlags&26656)return!1;if(e.numericLiteralFlags&512)return!!(t&8)}return!dO(e)}function Dte(e){return ls(e)?'"'+q8(e)+'"':""+e}function wte(e){return wc(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function hz(e){return(Gh(e)&7)!==0||yz(e)}function yz(e){const t=qd(e);return t.kind===260&&t.parent.kind===299}function su(e){return Sc(e)&&(e.name.kind===11||Wd(e))}function l5(e){return Sc(e)&&e.name.kind===11}function vz(e){return Sc(e)&&aa(e.name)}function Ate(e){return Sc(e)||Ie(e)}function dE(e){return VFe(e.valueDeclaration)}function VFe(e){return!!e&&e.kind===267&&!e.body}function Nte(e){return e.kind===312||e.kind===267||Hk(e)}function Wd(e){return!!(e.flags&2048)}function Jv(e){return su(e)&&bz(e)}function bz(e){switch(e.parent.kind){case 312:return Ic(e.parent);case 268:return su(e.parent.parent)&&Ni(e.parent.parent.parent)&&!Ic(e.parent.parent.parent)}return!1}function Sz(e){var t;return(t=e.declarations)==null?void 0:t.find(n=>!Jv(n)&&!(Sc(n)&&Wd(n)))}function UFe(e){return e===1||e===100||e===199}function IT(e,t){return Ic(e)||UFe(au(t))&&!!e.commonJsModuleIndicator}function Tz(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return e.isDeclarationFile?!1:Mu(t,"alwaysStrict")||bie(e.statements)?!0:Ic(e)||Tp(t)?au(t)>=5?!0:!t.noImplicitUseStrict:!1}function xz(e){return!!(e.flags&33554432)||Rn(e,128)}function kz(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!Hk(t)}return!1}function Cz(e){switch(E.type(e),e.kind){case 345:case 353:case 330:return!0;default:return Ez(e)}}function Ez(e){switch(E.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 kb(e){switch(e.kind){case 272:case 271:return!0;default:return!1}}function Ite(e){return kb(e)||Uv(e)}function u5(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 Fte(e){return u8(e)||Sc(e)||Cg(e)||of(e)}function u8(e){return kb(e)||Tc(e)}function Pz(e){return Pr(e.parent,t=>!!(BU(t)&1))}function Nm(e){return Pr(e.parent,t=>kz(t,t.parent))}function Ote(e,t){let n=Nm(e);for(;n;)t(n),n=Nm(n)}function eo(e){return!e||a8(e)===0?"(Missing)":jc(e)}function Lte(e){return e.declaration?eo(e.declaration.parameters[0].name):void 0}function _8(e){return e.kind===167&&!Sf(e.expression)}function mE(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 Vo(e.text);case 167:return Sf(e.expression)?Vo(e.expression.text):void 0;case 295:return GT(e);default:return E.assertNever(e)}}function Kk(e){return E.checkDefined(mE(e))}function L_(e){switch(e.kind){case 110:return"this";case 81:case 80:return a8(e)===0?on(e):jc(e);case 166:return L_(e.left)+"."+L_(e.right);case 211:return Ie(e.name)||Pi(e.name)?L_(e.expression)+"."+L_(e.name):E.assertNever(e.name);case 318:return L_(e.left)+L_(e.right);case 295:return L_(e.namespace)+":"+L_(e.name);default:return E.assertNever(e)}}function yn(e,t,...n){const i=wr(e);return dp(i,e,t,...n)}function eC(e,t,n,...i){const s=ca(e.text,t.pos);return xl(e,s,t.end-s,n,...i)}function dp(e,t,n,...i){const s=Cb(e,t);return xl(e,s.start,s.length,n,...i)}function Zg(e,t,n,i){const s=Cb(e,t);return _5(e,s.start,s.length,n,i)}function f8(e,t,n,i){const s=ca(e.text,t.pos);return _5(e,s,t.end-s,n,i)}function Mte(e,t,n){E.assertGreaterThanOrEqual(t,0),E.assertGreaterThanOrEqual(n,0),E.assertLessThanOrEqual(t,e.length),E.assertLessThanOrEqual(t+n,e.length)}function _5(e,t,n,i,s){return Mte(e.text,t,n),{file:e,start:t,length:n,code:i.code,category:i.category,messageText:i.next?i:i.messageText,relatedInformation:s}}function Dz(e,t,n){return{file:e,start:0,length:0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:n}}function Rte(e){return typeof e.messageText=="string"?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function jte(e,t,n){return{file:e,start:t.pos,length:t.end-t.pos,code:n.code,category:n.category,messageText:n.message}}function Im(e,t){const n=Hh(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);n.scan();const i=n.getTokenStart();return Rc(i,n.getTokenEnd())}function Bte(e,t){const n=Hh(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return n.scan(),n.getToken()}function qFe(e,t){const n=ca(e.text,t.pos);if(t.body&&t.body.kind===241){const{line:i}=Ha(e,t.body.pos),{line:s}=Ha(e,t.body.end);if(i0?t.statements[0].pos:t.end;return Rc(o,c)}case 253:case 229:{const o=ca(e.text,t.pos);return Im(e,o)}case 238:{const o=ca(e.text,t.expression.end);return Im(e,o)}case 357:{const o=ca(e.text,t.tagName.pos);return Im(e,o)}}if(n===void 0)return Im(e,t.pos);E.assert(!yd(n));const i=_c(n),s=i||KT(t)?n.pos:ca(e.text,n.pos);return i?(E.assert(s===n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),E.assert(s===n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(E.assert(s>=n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),E.assert(s<=n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),Rc(s,n.end)}function af(e){return(e.externalModuleIndicator||e.commonJsModuleIndicator)!==void 0}function mp(e){return e.scriptKind===6}function zv(e){return!!(y1(e)&4096)}function f5(e){return!!(y1(e)&8&&!O_(e,e.parent))}function p8(e){return(Gh(e)&7)===6}function d8(e){return(Gh(e)&7)===4}function tC(e){return(Gh(e)&7)===2}function p5(e){return(Gh(e)&7)===1}function Eb(e){return e.kind===213&&e.expression.kind===108}function of(e){return e.kind===213&&e.expression.kind===102}function rC(e){return _3(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function ey(e){return Cg(e)&&_y(e.argument)&&aa(e.argument.literal)}function zp(e){return e.kind===244&&e.expression.kind===11}function m8(e){return!!(ha(e)&2097152)}function d5(e){return m8(e)&&Xc(e)}function HFe(e){return Ie(e.name)&&!e.initializer}function m5(e){return m8(e)&&ac(e)&&Wi(e.declarationList.declarations,HFe)}function wz(e,t){return e.kind!==12?_g(t.text,e.pos):void 0}function Az(e,t){const n=e.kind===169||e.kind===168||e.kind===218||e.kind===219||e.kind===217||e.kind===260||e.kind===281?es(m1(t,e.pos),_g(t,e.pos)):_g(t,e.pos);return An(n,i=>t.charCodeAt(i.pos+1)===42&&t.charCodeAt(i.pos+2)===42&&t.charCodeAt(i.pos+3)!==47)}function gg(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 Fye(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),E.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:{const{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 Fye(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 bs(t.typeArguments,e)}}}return!1}function Fye(e){return wO(e.parent)||mx(e.parent)||xf(e.parent)&&!Q5(e)}function Oye(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent}return!1}function Wv(e,t){return n(e);function n(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 Ss(i,n)}}}function Jte(e,t){return n(e);function n(i){switch(i.kind){case 229:t(i);const s=i.expression;s&&n(s);return;case 266:case 264:case 267:case 265:return;default:if(As(i)){if(i.name&&i.name.kind===167){n(i.name.expression);return}}else gg(i)||Ss(i,n)}}}function Nz(e){return e&&e.kind===188?e.elementType:e&&e.kind===183?Tm(e.typeArguments):void 0}function zte(e){switch(e.kind){case 264:case 263:case 231:case 187:return e.members;case 210:return e.properties}}function nC(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 Wte(e){return nC(e)||$0(e)}function gE(e){return e.parent.kind===261&&e.parent.parent.kind===243}function Vte(e){return Hr(e)?ua(e.parent)&&Zr(e.parent.parent)&&fc(e.parent.parent)===2||g5(e.parent):!1}function g5(e){return Hr(e)?Zr(e)&&fc(e)===1:!1}function Ute(e){return(hi(e)?tC(e)&&Ie(e.name)&&gE(e):xs(e)?IE(e)&&Bc(e):B_(e)&&IE(e))||g5(e)}function qte(e){switch(e.kind){case 174:case 173:case 176:case 177:case 178:case 262:case 218:return!0}return!1}function Iz(e,t){for(;;){if(t&&t(e),e.statement.kind!==256)return e.statement;e=e.statement}}function Vv(e){return e&&e.kind===241&&As(e.parent)}function Wp(e){return e&&e.kind===174&&e.parent.kind===210}function h5(e){return(e.kind===174||e.kind===177||e.kind===178)&&(e.parent.kind===210||e.parent.kind===231)}function Hte(e){return e&&e.kind===1}function Lye(e){return e&&e.kind===0}function iC(e,t,n,i){return rr(e==null?void 0:e.properties,s=>{if(!zc(s))return;const o=mE(s.name);return t===o||i&&i===o?n(s):void 0})}function Gte(e,t,n){return iC(e,t,i=>ju(i.initializer)?wn(i.initializer.elements,s=>aa(s)&&s.text===n):void 0)}function hE(e){if(e&&e.statements.length){const t=e.statements[0].expression;return Wn(t,ua)}}function y5(e,t,n){return g8(e,t,i=>ju(i.initializer)?wn(i.initializer.elements,s=>aa(s)&&s.text===n):void 0)}function g8(e,t,n){return iC(hE(e),t,n)}function cf(e){return Pr(e.parent,As)}function $te(e){return Pr(e.parent,po)}function Nl(e){return Pr(e.parent,$n)}function Xte(e){return Pr(e.parent,t=>$n(t)||As(t)?"quit":ec(t))}function v5(e){return Pr(e.parent,Hk)}function b5(e){const t=Pr(e.parent,n=>$n(n)?"quit":ql(n));return t&&$n(t.parent)?Nl(t.parent):Nl(t??e)}function a_(e,t,n){for(E.assert(e.kind!==312);;){if(e=e.parent,!e)return E.fail();switch(e.kind){case 167:if(n&&$n(e.parent.parent))return e;e=e.parent.parent;break;case 170:e.parent.kind===169&&Tl(e.parent.parent)?e=e.parent.parent:Tl(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 Qte(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 S5(e){Ie(e)&&(Qc(e.parent)||Xc(e.parent))&&e.parent.name===e&&(e=e.parent);const t=a_(e,!0,!1);return Ni(t)}function Yte(e){const t=a_(e,!1,!1);if(t)switch(t.kind){case 176:case 262:case 218:return t}}function h8(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&&Tl(e.parent.parent)?e=e.parent.parent:Tl(e.parent)&&(e=e.parent);break}}}function Pb(e){if(e.kind===218||e.kind===219){let t=e,n=e.parent;for(;n.kind===217;)t=n,n=n.parent;if(n.kind===213&&n.expression===t)return n}}function Mye(e){return e.kind===108||o_(e)}function o_(e){const t=e.kind;return(t===211||t===212)&&e.expression.kind===108}function y8(e){const t=e.kind;return(t===211||t===212)&&e.expression.kind===110}function T5(e){var t;return!!e&&hi(e)&&((t=e.initializer)==null?void 0:t.kind)===110}function Zte(e){return!!e&&(k_(e)||zc(e))&&Zr(e.parent.parent)&&e.parent.parent.operatorToken.kind===64&&e.parent.parent.right.kind===110}function v8(e){switch(e.kind){case 183:return e.typeName;case 233:return pc(e.expression)?e.expression:void 0;case 80:case 166:return e}}function x5(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 k5(e,t,n,i){if(e&&Nu(t)&&Pi(t.name))return!1;switch(t.kind){case 263:return!0;case 231:return!e;case 172:return n!==void 0&&(e?Qc(n):$n(n)&&!Zv(t)&&!fW(t));case 177:case 178:case 174:return t.body!==void 0&&n!==void 0&&(e?Qc(n):$n(n));case 169:return e?n!==void 0&&n.body!==void 0&&(n.kind===176||n.kind===174||n.kind===178)&&Xv(n)!==t&&i!==void 0&&i.kind===263:!1}return!1}function sC(e,t,n,i){return Wf(t)&&k5(e,t,n,i)}function b8(e,t,n,i){return sC(e,t,n,i)||yE(e,t,n)}function yE(e,t,n){switch(t.kind){case 263:return ct(t.members,i=>b8(e,i,t,n));case 231:return!e&&ct(t.members,i=>b8(e,i,t,n));case 174:case 178:case 176:return ct(t.parameters,i=>sC(e,i,t,n));default:return!1}}function Qh(e,t){if(sC(e,t))return!0;const n=Sg(t);return!!n&&yE(e,n,t)}function Fz(e,t,n){let i;if($0(t)){const{firstAccessor:s,secondAccessor:o,setAccessor:c}=Mb(n.members,t),u=Wf(s)?s:o&&Wf(o)?o:void 0;if(!u||t!==u)return!1;i=c==null?void 0:c.parameters}else hc(t)&&(i=t.parameters);if(sC(e,t,n))return!0;if(i){for(const s of i)if(!Qv(s)&&sC(e,s,t,n))return!0}return!1}function Oz(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 11:return Oz(e.textSourceNode);case 15:return e.text===""}return!1}return e.text===""}function aC(e){const{parent:t}=e;return t.kind===286||t.kind===285||t.kind===287?t.tagName===e:!1}function hg(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!xf(e.parent)&&!mx(e.parent);case 166:for(;e.parent.kind===166;)e=e.parent;return e.parent.kind===186||NT(e.parent)||y3(e.parent)||M1(e.parent)||aC(e);case 318:for(;M1(e.parent);)e=e.parent;return e.parent.kind===186||NT(e.parent)||y3(e.parent)||M1(e.parent)||aC(e);case 81:return Zr(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===103;case 80:if(e.parent.kind===186||NT(e.parent)||y3(e.parent)||M1(e.parent)||aC(e))return!0;case 9:case 10:case 11:case 15:case 110:return C5(e);default:return!1}}function C5(e){const{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:const n=t;return n.initializer===e&&n.initializer.kind!==261||n.condition===e||n.incrementor===e;case 249:case 250:const 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&&!gg(t);case 304:return t.objectAssignmentInitializer===e;case 238:return e===t.expression;default:return hg(t)}}function E5(e){for(;e.kind===166||e.kind===80;)e=e.parent;return e.kind===186}function Kte(e){return jm(e)&&!!e.parent.moduleSpecifier}function C1(e){return e.kind===271&&e.moduleReference.kind===283}function vE(e){return E.assert(C1(e)),e.moduleReference.expression}function Lz(e){return Uv(e)&&CC(e.initializer).arguments[0]}function oC(e){return e.kind===271&&e.moduleReference.kind!==283}function Ou(e){return Hr(e)}function Rye(e){return!Hr(e)}function Hr(e){return!!e&&!!(e.flags&524288)}function P5(e){return!!e&&!!(e.flags&134217728)}function Mz(e){return!mp(e)}function S8(e){return!!e&&!!(e.flags&16777216)}function D5(e){return Gf(e)&&Ie(e.typeName)&&e.typeName.escapedText==="Object"&&e.typeArguments&&e.typeArguments.length===2&&(e.typeArguments[0].kind===154||e.typeArguments[0].kind===150)}function Gu(e,t){if(e.kind!==213)return!1;const{expression:n,arguments:i}=e;if(n.kind!==80||n.escapedText!=="require"||i.length!==1)return!1;const s=i[0];return!t||Ma(s)}function w5(e){return jye(e,!1)}function Uv(e){return jye(e,!0)}function ere(e){return Ea(e)&&Uv(e.parent.parent)}function jye(e,t){return hi(e)&&!!e.initializer&&Gu(t?CC(e.initializer):e.initializer,!0)}function Rz(e){return ac(e)&&e.declarationList.declarations.length>0&&Wi(e.declarationList.declarations,t=>w5(t))}function T8(e){return e===39||e===34}function A5(e,t){return Bv(t,e).charCodeAt(0)===34}function bE(e){return Zr(e)||co(e)||Ie(e)||Rs(e)}function x8(e){return Hr(e)&&e.initializer&&Zr(e.initializer)&&(e.initializer.operatorToken.kind===57||e.initializer.operatorToken.kind===61)&&e.name&&pc(e.name)&&cC(e.name,e.initializer.left)?e.initializer.right:e.initializer}function k8(e){const t=x8(e);return t&&E1(t,ny(e.name))}function GFe(e,t){return rr(e.properties,n=>zc(n)&&Ie(n.name)&&n.name.escapedText==="value"&&n.initializer&&E1(n.initializer,t))}function FT(e){if(e&&e.parent&&Zr(e.parent)&&e.parent.operatorToken.kind===64){const t=ny(e.parent.left);return E1(e.parent.right,t)||$Fe(e.parent.left,e.parent.right,t)}if(e&&Rs(e)&&wb(e)){const t=GFe(e.arguments[2],e.arguments[1].text==="prototype");if(t)return t}}function E1(e,t){if(Rs(e)){const n=Va(e.expression);return n.kind===218||n.kind===219?e:void 0}if(e.kind===218||e.kind===231||e.kind===219||ua(e)&&(e.properties.length===0||t))return e}function $Fe(e,t,n){const i=Zr(t)&&(t.operatorToken.kind===57||t.operatorToken.kind===61)&&E1(t.right,n);if(i&&cC(e,t.left))return i}function tre(e){const t=hi(e.parent)?e.parent.name:Zr(e.parent)&&e.parent.operatorToken.kind===64?e.parent.left:void 0;return t&&E1(e.right,ny(t))&&pc(t)&&cC(t,e.left)}function jz(e){if(Zr(e.parent)){const t=(e.parent.operatorToken.kind===57||e.parent.operatorToken.kind===61)&&Zr(e.parent.parent)?e.parent.parent:e.parent;if(t.operatorToken.kind===64&&Ie(t.left))return t.left}else if(hi(e.parent))return e.parent.name}function cC(e,t){return Ud(e)&&Ud(t)?hp(e)===hp(t):pg(e)&&N5(t)&&(t.expression.kind===110||Ie(t.expression)&&(t.expression.escapedText==="window"||t.expression.escapedText==="self"||t.expression.escapedText==="global"))?cC(e,P8(t)):N5(e)&&N5(t)?Kg(e)===Kg(t)&&cC(e.expression,t.expression):!1}function C8(e){for(;il(e,!0);)e=e.right;return e}function Db(e){return Ie(e)&&e.escapedText==="exports"}function Bz(e){return Ie(e)&&e.escapedText==="module"}function yg(e){return(Sn(e)||E8(e))&&Bz(e.expression)&&Kg(e)==="exports"}function fc(e){const t=XFe(e);return t===5||Hr(e)?t:0}function wb(e){return mr(e.arguments)===3&&Sn(e.expression)&&Ie(e.expression.expression)&&on(e.expression.expression)==="Object"&&on(e.expression.name)==="defineProperty"&&Sf(e.arguments[1])&&Ab(e.arguments[0],!0)}function N5(e){return Sn(e)||E8(e)}function E8(e){return Co(e)&&Sf(e.argumentExpression)}function qv(e,t){return Sn(e)&&(!t&&e.expression.kind===110||Ie(e.name)&&Ab(e.expression,!0))||I5(e,t)}function I5(e,t){return E8(e)&&(!t&&e.expression.kind===110||pc(e.expression)||qv(e.expression,!0))}function Ab(e,t){return pc(e)||qv(e,t)}function P8(e){return Sn(e)?e.name:e.argumentExpression}function XFe(e){if(Rs(e)){if(!wb(e))return 0;const t=e.arguments[0];return Db(t)||yg(t)?8:qv(t)&&Kg(t)==="prototype"?9:7}return e.operatorToken.kind!==64||!co(e.left)||QFe(C8(e))?0:Ab(e.left.expression,!0)&&Kg(e.left)==="prototype"&&ua(Jz(e))?6:D8(e.left)}function QFe(e){return lx(e)&&j_(e.expression)&&e.expression.text==="0"}function F5(e){if(Sn(e))return e.name;const t=Va(e.argumentExpression);return j_(t)||Ma(t)?t:e}function Kg(e){const t=F5(e);if(t){if(Ie(t))return t.escapedText;if(Ma(t)||j_(t))return Vo(t.text)}}function D8(e){if(e.expression.kind===110)return 4;if(yg(e))return 2;if(Ab(e.expression,!0)){if(ny(e.expression))return 3;let t=e;for(;!Ie(t.expression);)t=t.expression;const n=t.expression;if((n.escapedText==="exports"||n.escapedText==="module"&&Kg(t)==="exports")&&qv(e))return 1;if(Ab(e,!0)||Co(e)&&B5(e))return 5}return 0}function Jz(e){for(;Zr(e.right);)e=e.right;return e.right}function w8(e){return Zr(e)&&fc(e)===3}function rre(e){return Hr(e)&&e.parent&&e.parent.kind===244&&(!Co(e)||E8(e))&&!!b1(e.parent)}function A8(e,t){const{valueDeclaration:n}=e;(!n||!(t.flags&33554432&&!Hr(t)&&!(n.flags&33554432))&&bE(n)&&!bE(t)||n.kind!==t.kind&&Ate(n))&&(e.valueDeclaration=t)}function nre(e){if(!e||!e.valueDeclaration)return!1;const t=e.valueDeclaration;return t.kind===262||hi(t)&&t.initializer&&As(t.initializer)}function lC(e){var t,n;switch(e.kind){case 260:case 208:return(t=Pr(e.initializer,i=>Gu(i,!0)))==null?void 0:t.arguments[0];case 272:case 278:return Wn(e.moduleSpecifier,Ma);case 271:return Wn((n=Wn(e.moduleReference,Bm))==null?void 0:n.expression,Ma);case 273:case 280:return Wn(e.parent.moduleSpecifier,Ma);case 274:case 281:return Wn(e.parent.parent.moduleSpecifier,Ma);case 276:return Wn(e.parent.parent.parent.moduleSpecifier,Ma);case 205:return ey(e)?e.argument.literal:void 0;default:E.assertNever(e)}}function SE(e){return N8(e)||E.failBadSyntaxKind(e.parent)}function N8(e){switch(e.parent.kind){case 272:case 278:return e.parent;case 283:return e.parent.parent;case 213:return of(e.parent)||Gu(e.parent,!1)?e.parent:void 0;case 201:return E.assert(aa(e)),Wn(e.parent.parent,Cg);default:return}}function uC(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 ey(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 E.assertNever(e)}}function _C(e){switch(e.kind){case 272:return e.importClause&&Wn(e.importClause.namedBindings,dy);case 271:return e;case 278:return e.exportClause&&Wn(e.exportClause,jm);default:return E.assertNever(e)}}function OT(e){return e.kind===272&&!!e.importClause&&!!e.importClause.name}function O5(e,t){if(e.name){const n=t(e);if(n)return n}if(e.namedBindings){const n=dy(e.namedBindings)?t(e.namedBindings):rr(e.namedBindings.elements,t);if(n)return n}}function LT(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 fC(e){const t=VC(e)?bl(e.parameters):void 0,n=Wn(t&&t.name,Ie);return!!n&&n.escapedText==="new"}function gp(e){return e.kind===353||e.kind===345||e.kind===347}function I8(e){return gp(e)||qp(e)}function YFe(e){return Cl(e)&&Zr(e.expression)&&e.expression.operatorToken.kind===64?C8(e.expression):void 0}function Bye(e){return Cl(e)&&Zr(e.expression)&&fc(e.expression)!==0&&Zr(e.expression.right)&&(e.expression.right.operatorToken.kind===57||e.expression.right.operatorToken.kind===61)?e.expression.right.right:void 0}function zz(e){switch(e.kind){case 243:const t=MT(e);return t&&t.initializer;case 172:return e.initializer;case 303:return e.initializer}}function MT(e){return ac(e)?bl(e.declarationList.declarations):void 0}function Jye(e){return Sc(e)&&e.body&&e.body.kind===267?e.body:void 0}function F8(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 O8(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 Wz(e,t){let n;nC(e)&&Y0(e)&&sf(e.initializer)&&(n=Nn(n,zye(e,e.initializer.jsDoc)));let i=e;for(;i&&i.parent;){if(sf(i)&&(n=Nn(n,zye(e,i.jsDoc))),i.kind===169){n=Nn(n,(t?Ree:Vk)(i));break}if(i.kind===168){n=Nn(n,(t?Bee:jee)(i));break}i=Vz(i)}return n||Ve}function zye(e,t){const n=ka(t);return Zs(t,i=>{if(i===n){const s=An(i.tags,o=>ZFe(e,o));return i.tags===s?[i]:s}else return An(i.tags,UC)})}function ZFe(e,t){return!(v3(t)||AO(t))||!t.parent||!yd(t.parent)||!l_(t.parent.parent)||t.parent.parent===e}function Vz(e){const t=e.parent;if(t.kind===303||t.kind===277||t.kind===172||t.kind===244&&e.kind===211||t.kind===253||Jye(t)||il(e))return t;if(t.parent&&(MT(t.parent)===e||il(t)))return t.parent;if(t.parent&&t.parent.parent&&(MT(t.parent.parent)||zz(t.parent.parent)===e||Bye(t.parent.parent)))return t.parent.parent}function L8(e){if(e.symbol)return e.symbol;if(!Ie(e.name))return;const t=e.name.escapedText,n=P1(e);if(!n)return;const i=wn(n.parameters,s=>s.name.kind===80&&s.name.escapedText===t);return i&&i.symbol}function L5(e){if(yd(e.parent)&&e.parent.tags){const t=wn(e.parent.tags,gp);if(t)return t}return P1(e)}function Uz(e){return J7(e,UC)}function P1(e){const t=D1(e);if(t)return B_(t)&&t.type&&As(t.type)?t.type:As(t)?t:void 0}function D1(e){const t=Nb(e);if(t)return Bye(t)||YFe(t)||zz(t)||MT(t)||Jye(t)||t}function Nb(e){const t=pC(e);if(!t)return;const n=t.parent;if(n&&n.jsDoc&&t===Do(n.jsDoc))return n}function pC(e){return Pr(e.parent,yd)}function ire(e){const t=e.name.escapedText,{typeParameters:n}=e.parent.parent.parent;return n&&wn(n,i=>i.name.escapedText===t)}function Wye(e){return!!e.typeArguments}function sre(e){let t=e.parent;for(;;){switch(t.kind){case 226:const n=t,i=n.operatorToken.kind;return Kh(i)&&n.left===e?n:void 0;case 224:case 225:const s=t,o=s.operator;return o===46||o===47?s:void 0;case 249:case 250:const c=t;return c.initializer===e?c: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 RT(e){const t=sre(e);if(!t)return 0;switch(t.kind){case 226:const n=t.operatorToken.kind;return n===64||FE(n)?1:2;case 224:case 225:return 2;case 249:case 250:return 1}}function vg(e){return!!sre(e)}function KFe(e){const t=Va(e.right);return t.kind===226&&XV(t.operatorToken.kind)}function qz(e){const t=sre(e);return!!t&&il(t,!0)&&KFe(t)}function are(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 ore(e){return lo(e)||mo(e)||wT(e)||Xc(e)||sc(e)}function Vye(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function M8(e){return Vye(e,196)}function Yh(e){return Vye(e,217)}function cre(e){let t;for(;e&&e.kind===196;)t=e,e=e.parent;return[t,e]}function R8(e){for(;Wb(e);)e=e.type;return e}function Va(e,t){return xc(e,t?17:1)}function Hz(e){return e.kind!==211&&e.kind!==212?!1:(e=Yh(e.parent),e&&e.kind===220)}function Hv(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function eh(e){return!Ni(e)&&!Ns(e)&&yu(e.parent)&&e.parent.name===e}function TE(e){const t=e.parent;switch(e.kind){case 11:case 15:case 9:if(Pa(t))return t.parent;case 80:if(yu(t))return t.name===e?t:void 0;if(Xu(t)){const n=t.parent;return vd(n)&&n.name===t?n:void 0}else{const n=t.parent;return Zr(n)&&fc(n)!==0&&(n.left.symbol||n.symbol)&&us(n)===e?n:void 0}case 81:return yu(t)&&t.name===e?t:void 0;default:return}}function j8(e){return Sf(e)&&e.parent.kind===167&&yu(e.parent.parent)}function lre(e){const 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 Uye(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&&dC(e)?!0:Hr(e)&&(Zr(e)&&fc(e)===2&&dC(e)||Sn(e)&&Zr(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===64&&B8(e.parent.right))}function Gz(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 Gz(e)}}function B8(e){return pc(e)||kl(e)}function dC(e){const t=$z(e);return B8(t)}function $z(e){return oc(e)?e.expression:e.right}function ure(e){return e.kind===304?e.name:e.kind===303?e.initializer:e.parent.right}function Vd(e){const t=Gv(e);if(t&&Hr(e)){const n=zee(e);if(n)return n.class}return t}function Gv(e){const t=J8(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function mC(e){if(Hr(e))return Wee(e).map(t=>t.class);{const t=J8(e.heritageClauses,119);return t==null?void 0:t.types}}function xE(e){return Bu(e)?kE(e)||Ve:$n(e)&&es(ST(Vd(e)),mC(e))||Ve}function kE(e){const t=J8(e.heritageClauses,96);return t?t.types:void 0}function J8(e,t){if(e){for(const n of e)if(n.token===t)return n}}function w1(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function c_(e){return 83<=e&&e<=165}function Xz(e){return 19<=e&&e<=79}function M5(e){return c_(e)||Xz(e)}function R5(e){return 128<=e&&e<=165}function Qz(e){return c_(e)&&!R5(e)}function qye(e){return 119<=e&&e<=127}function jT(e){const t=Ov(e);return t!==void 0&&Qz(t)}function Hye(e){const t=Ov(e);return t!==void 0&&c_(t)}function Yz(e){const t=v1(e);return!!t&&!R5(t)}function gC(e){return 2<=e&&e<=7}function pl(e){if(!e)return 4;let t=0;switch(e.kind){case 262:case 218:case 174:e.asteriskToken&&(t|=1);case 219:Rn(e,1024)&&(t|=2);break}return e.body||(t|=4),t}function CE(e){switch(e.kind){case 262:case 218:case 219:case 174:return e.body!==void 0&&e.asteriskToken===void 0&&Rn(e,1024)}return!1}function Sf(e){return Ma(e)||j_(e)}function j5(e){return py(e)&&(e.operator===40||e.operator===41)&&j_(e.operand)}function ty(e){const t=us(e);return!!t&&B5(t)}function B5(e){if(!(e.kind===167||e.kind===212))return!1;const t=Co(e)?Va(e.argumentExpression):e.expression;return!Sf(t)&&!j5(t)}function Ib(e){switch(e.kind){case 80:case 81:return e.escapedText;case 11:case 15:case 9:return Vo(e.text);case 167:const t=e.expression;return Sf(t)?Vo(t.text):j5(t)?t.operator===41?Ws(t.operator)+t.operand.text:t.operand.text:void 0;case 295:return GT(e);default:return E.assertNever(e)}}function Ud(e){switch(e.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function hp(e){return pg(e)?on(e):hd(e)?t3(e):e.text}function EE(e){return pg(e)?e.escapedText:hd(e)?GT(e):Vo(e.text)}function Gye(e){return`__@${Ks(e)}@${e.escapedName}`}function z8(e,t){return`__#${Ks(e)}@${t}`}function W8(e){return Vi(e.escapedName,"__@")}function _re(e){return Vi(e.escapedName,"__#")}function $ye(e){return e.kind===80&&e.escapedText==="Symbol"}function fre(e){return Ie(e)?on(e)==="__proto__":aa(e)&&e.text==="__proto__"}function PE(e,t){switch(e=xc(e),e.kind){case 231:if(oq(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 Zz(e){switch(e.kind){case 303:return!fre(e.name);case 304:return!!e.objectAssignmentInitializer;case 260:return Ie(e.name)&&!!e.initializer;case 169:return Ie(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 208:return Ie(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 Ie(e.left)}break;case 277:return!0}return!1}function M_(e,t){if(!Zz(e))return!1;switch(e.kind){case 303:return PE(e.initializer,t);case 304:return PE(e.objectAssignmentInitializer,t);case 260:case 169:case 208:case 172:return PE(e.initializer,t);case 226:return PE(e.right,t);case 277:return PE(e.expression,t)}}function Kz(e){return e.escapedText==="push"||e.escapedText==="unshift"}function $v(e){return qd(e).kind===169}function qd(e){for(;e.kind===208;)e=e.parent.parent;return e}function eW(e){const t=e.kind;return t===176||t===218||t===262||t===219||t===174||t===177||t===178||t===267||t===312}function ko(e){return md(e.pos)||md(e.end)}function Xye(e){return as(e,Ni)||e}function tW(e){const t=nW(e),n=e.kind===214&&e.arguments!==void 0;return rW(e.kind,t,n)}function rW(e,t,n){switch(e){case 214:return n?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 DE(e){const t=nW(e),n=e.kind===214&&e.arguments!==void 0;return V8(e.kind,t,n)}function nW(e){return e.kind===226?e.operatorToken.kind:e.kind===224||e.kind===225?e.operator:e.kind}function V8(e,t,n){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 U8(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 n?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 U8(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 hC(e){return An(e,t=>{switch(t.kind){case 294:return!!t.expression;case 12:return!t.containsOnlyTriviaWhiteSpaces;default:return!0}})}function yC(){let e=[];const t=[],n=new Map;let i=!1;return{add:o,lookup:s,getGlobalDiagnostics:c,getDiagnostics:u};function s(f){let g;if(f.file?g=n.get(f.file.fileName):g=e,!g)return;const d=Jh(g,f,wo,aF);if(d>=0)return g[d]}function o(f){let g;f.file?(g=n.get(f.file.fileName),g||(g=[],n.set(f.file.fileName,g),j0(t,f.file.fileName,mu))):(i&&(i=!1,e=e.slice()),g=e),j0(g,f,aF)}function c(){return i=!0,e}function u(f){if(f)return n.get(f)||[];const g=j4(t,d=>n.get(d));return e.length&&g.unshift(...e),g}}function iW(e){return e.replace(S1e,"\\${")}function pre(e){return!!((e.templateFlags||0)&2048)}function sW(e){return e&&!!(ex(e)?pre(e):pre(e.head)||ct(e.templateSpans,t=>pre(t.literal)))}function Qye(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function eOe(e,t,n){if(e.charCodeAt(0)===0){const i=n.charCodeAt(t+e.length);return i>=48&&i<=57?"\\x00":"\\0"}return C1e.get(e)||Qye(e.charCodeAt(0))}function bg(e,t){const n=t===96?k1e:t===39?x1e:T1e;return e.replace(n,eOe)}function q8(e,t){return e=bg(e,t),xne.test(e)?e.replace(xne,n=>Qye(n.charCodeAt(0))):e}function tOe(e){return"&#x"+e.toString(16).toUpperCase()+";"}function rOe(e){return e.charCodeAt(0)===0?"�":D1e.get(e)||tOe(e.charCodeAt(0))}function aW(e,t){const n=t===39?P1e:E1e;return e.replace(n,rOe)}function yp(e){const t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&nOe(e.charCodeAt(0))?e.substring(1,t-1):e}function nOe(e){return e===39||e===34||e===96}function vC(e){const t=e.charCodeAt(0);return t>=97&&t<=122||e.includes("-")}function J5(e){const t=r3[1];for(let n=r3.length;n<=e;n++)r3.push(r3[n-1]+t);return r3[e]}function bC(){return r3[1].length}function H8(e){var t,n,i,s,o,c=!1;function u(P){const F=CT(P);F.length>1?(s=s+F.length-1,o=t.length-P.length+ka(F),i=o-t.length===0):i=!1}function f(P){P&&P.length&&(i&&(P=J5(n)+P,i=!1),t+=P,u(P))}function g(P){P&&(c=!1),f(P)}function d(P){P&&(c=!0),f(P)}function y(){t="",n=0,i=!0,s=0,o=0,c=!1}function S(P){P!==void 0&&(t+=P,u(P),c=!1)}function T(P){P&&P.length&&g(P)}function k(P){(!i||P)&&(t+=e,s++,o=t.length,i=!0,c=!1)}function w(){return i?t.length:t.length+e.length}return y(),{write:g,rawWrite:S,writeLiteral:T,writeLine:k,increaseIndent:()=>{n++},decreaseIndent:()=>{n--},getIndent:()=>n,getTextPos:()=>t.length,getLine:()=>s,getColumn:()=>i?n*bC():t.length-o,getText:()=>t,isAtStartOfLine:()=>i,hasTrailingComment:()=>c,hasTrailingWhitespace:()=>!!t.length&&Xg(t.charCodeAt(t.length-1)),clear:y,writeKeyword:g,writeOperator:g,writeParameter:g,writeProperty:g,writePunctuation:g,writeSpace:g,writeStringLiteral:g,writeSymbol:(P,F)=>g(P),writeTrailingSemicolon:g,writeComment:d,getTextPosWithWriteLine:w}}function oW(e){let t=!1;function n(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return{...e,writeTrailingSemicolon(){t=!0},writeLiteral(i){n(),e.writeLiteral(i)},writeStringLiteral(i){n(),e.writeStringLiteral(i)},writeSymbol(i,s){n(),e.writeSymbol(i,s)},writePunctuation(i){n(),e.writePunctuation(i)},writeKeyword(i){n(),e.writeKeyword(i)},writeOperator(i){n(),e.writeOperator(i)},writeParameter(i){n(),e.writeParameter(i)},writeSpace(i){n(),e.writeSpace(i)},writeProperty(i){n(),e.writeProperty(i)},writeComment(i){n(),e.writeComment(i)},writeLine(){n(),e.writeLine()},increaseIndent(){n(),e.increaseIndent()},decreaseIndent(){n(),e.decreaseIndent()}}}function SC(e){return e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames():!1}function Zh(e){return nu(SC(e))}function z5(e,t,n){return t.moduleName||cW(e,t.fileName,n&&n.fileName)}function Yye(e,t){return e.getCanonicalFileName(Xi(t,e.getCurrentDirectory()))}function dre(e,t,n){const i=t.getExternalModuleFileFromDeclaration(n);if(!i||i.isDeclarationFile)return;const s=uC(n);if(!(s&&Ma(s)&&!nf(s.text)&&!Yye(e,i.path).includes(Yye(e,_l(e.getCommonSourceDirectory())))))return z5(e,i)}function cW(e,t,n){const i=f=>e.getCanonicalFileName(f),s=Io(n?Un(n):e.getCommonSourceDirectory(),e.getCurrentDirectory(),i),o=Xi(t,e.getCurrentDirectory()),c=kT(s,o,s,i,!1),u=$u(c);return n?Fv(u):u}function mre(e,t,n){const i=t.getCompilerOptions();let s;return i.outDir?s=$u(q5(e,t,i.outDir)):s=$u(e),s+n}function gre(e,t){return W5(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),n=>t.getCanonicalFileName(n))}function W5(e,t,n,i,s){const o=t.declarationDir||t.outDir,c=o?H5(e,o,n,i,s):e,u=V5(c);return $u(c)+u}function V5(e){return $c(e,[".mjs",".mts"])?".d.mts":$c(e,[".cjs",".cts"])?".d.cts":$c(e,[".json"])?".d.json.ts":".d.ts"}function hre(e){return $c(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:$c(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:$c(e,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function io(e){return e.outFile||e.out}function U5(e,t){var n;if(e.paths)return e.baseUrl??E.checkDefined(e.pathsBasePath||((n=t.getCurrentDirectory)==null?void 0:n.call(t)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function lW(e,t,n){const i=e.getCompilerOptions();if(io(i)){const s=au(i),o=i.emitDeclarationOnly||s===2||s===4;return An(e.getSourceFiles(),c=>(o||!Ic(c))&&Fb(c,e,n))}else{const s=t===void 0?e.getSourceFiles():[t];return An(s,o=>Fb(o,e,n))}}function Fb(e,t,n){const i=t.getCompilerOptions();if(i.noEmitForJsFiles&&Ou(e)||e.isDeclarationFile||t.isSourceFileFromExternalLibrary(e))return!1;if(n)return!0;if(t.isSourceOfProjectReferenceRedirect(e.fileName))return!1;if(!mp(e))return!0;if(t.getResolvedProjectReferenceToRedirect(e.fileName))return!1;if(io(i))return!0;if(!i.outDir)return!1;if(i.rootDir||i.composite&&i.configFilePath){const s=Xi(U3(i,()=>[],t.getCurrentDirectory(),t.getCanonicalFileName),t.getCurrentDirectory()),o=H5(e.fileName,i.outDir,t.getCurrentDirectory(),s,t.getCanonicalFileName);if(Gg(e.fileName,o,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0)return!1}return!0}function q5(e,t,n){return H5(e,n,t.getCurrentDirectory(),t.getCommonSourceDirectory(),i=>t.getCanonicalFileName(i))}function H5(e,t,n,i,s){let o=Xi(e,n);return o=s(o).indexOf(s(i))===0?o.substring(i.length):o,Mn(t,o)}function wE(e,t,n,i,s,o,c){e.writeFile(n,i,s,u=>{t.add(gc(p.Could_not_write_file_0_Colon_1,n,u))},o,c)}function Zye(e,t,n){if(e.length>Pm(e)&&!n(e)){const i=Un(e);Zye(i,t,n),t(e)}}function uW(e,t,n,i,s,o){try{i(e,t,n)}catch{Zye(Un(Hs(e)),s,o),i(e,t,n)}}function AE(e,t){const n=$g(e);return Y4(n,t)}function Ob(e,t){return Y4(e,t)}function Sg(e){return wn(e.members,t=>sc(t)&&pp(t.body))}function NE(e){if(e&&e.parameters.length>0){const t=e.parameters.length===2&&Qv(e.parameters[0]);return e.parameters[t?1:0]}}function yre(e){const t=NE(e);return t&&t.type}function Xv(e){if(e.parameters.length&&!R1(e)){const t=e.parameters[0];if(Qv(t))return t}}function Qv(e){return Yv(e.name)}function Yv(e){return!!e&&e.kind===80&&_W(e)}function Lb(e){return!!Pr(e,t=>t.kind===186?!0:t.kind===80||t.kind===166?!1:"quit")}function BT(e){if(!Yv(e))return!1;for(;Xu(e.parent)&&e.parent.left===e;)e=e.parent;return e.parent.kind===186}function _W(e){return e.escapedText==="this"}function Mb(e,t){let n,i,s,o;return ty(t)?(n=t,t.kind===177?s=t:t.kind===178?o=t:E.fail("Accessor has wrong kind")):rr(e,c=>{if($0(c)&&Ms(c)===Ms(t)){const u=Ib(c.name),f=Ib(t.name);u===f&&(n?i||(i=c):n=c,c.kind===177&&!s&&(s=c),c.kind===178&&!o&&(o=c))}}),{firstAccessor:n,secondAccessor:i,getAccessor:s,setAccessor:o}}function Vl(e){if(!Hr(e)&&Xc(e))return;const t=e.type;return t||!Hr(e)?t:aE(e)?e.typeExpression&&e.typeExpression.type:S1(e)}function vre(e){return e.type}function vp(e){return R1(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(Hr(e)?qD(e):void 0)}function G5(e){return Zs(T1(e),t=>iOe(t)?t.typeParameters:void 0)}function iOe(e){return kp(e)&&!(e.parent.kind===327&&(e.parent.tags.some(gp)||e.parent.tags.some(UC)))}function bre(e){const t=NE(e);return t&&Vl(t)}function Sre(e,t,n,i){Tre(e,t,n.pos,i)}function Tre(e,t,n,i){i&&i.length&&n!==i[0].pos&&Ob(e,n)!==Ob(e,i[0].pos)&&t.writeLine()}function xre(e,t,n,i){n!==i&&Ob(e,n)!==Ob(e,i)&&t.writeLine()}function kre(e,t,n,i,s,o,c,u){if(i&&i.length>0){s&&n.writeSpace(" ");let f=!1;for(const g of i)f&&(n.writeSpace(" "),f=!1),u(e,t,n,g.pos,g.end,c),g.hasTrailingNewLine?n.writeLine():f=!0;f&&o&&n.writeSpace(" ")}}function Cre(e,t,n,i,s,o,c){let u,f;if(c?s.pos===0&&(u=An(_g(e,s.pos),g)):u=_g(e,s.pos),u){const d=[];let y;for(const S of u){if(y){const T=Ob(t,y.end);if(Ob(t,S.pos)>=T+2)break}d.push(S),y=S}if(d.length){const S=Ob(t,ka(d).end);Ob(t,ca(e,s.pos))>=S+2&&(Sre(t,n,s,u),kre(e,t,n,d,!1,!0,o,i),f={nodePos:s.pos,detachedCommentEndPos:ka(d).end})}}return f;function g(d){return o5(e,d.pos)}}function TC(e,t,n,i,s,o){if(e.charCodeAt(i+1)===42){const c=Bk(t,i),u=t.length;let f;for(let g=i,d=c.line;g0){let k=T%bC();const w=J5((T-k)/bC());for(n.rawWrite(w);k;)n.rawWrite(" "),k--}else n.rawWrite("")}sOe(e,s,n,o,g,y),g=y}}else n.writeComment(e.substring(i,s))}function sOe(e,t,n,i,s,o){const c=Math.min(t,o-1),u=e.substring(s,c).trim();u?(n.writeComment(u),c!==t&&n.writeLine()):n.rawWrite(i)}function Kye(e,t,n){let i=0;for(;t=0&&e.kind<=165?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=pW(e)|536870912),n||t&&Hr(e)?(!(e.modifierFlagsCache&268435456)&&e.parent&&(e.modifierFlagsCache|=e1e(e)|268435456),t1e(e.modifierFlagsCache)):aOe(e.modifierFlagsCache))}function Lu(e){return Dre(e,!0)}function wre(e){return Dre(e,!0,!0)}function ry(e){return Dre(e,!1)}function e1e(e){let t=0;return e.parent&&!rs(e)&&(Hr(e)&&(Vee(e)&&(t|=8388608),Uee(e)&&(t|=16777216),qee(e)&&(t|=33554432),Hee(e)&&(t|=67108864),Gee(e)&&(t|=134217728)),$ee(e)&&(t|=65536)),t}function aOe(e){return e&65535}function t1e(e){return e&131071|(e&260046848)>>>23}function oOe(e){return t1e(e1e(e))}function Are(e){return pW(e)|oOe(e)}function pW(e){let t=Hp(e)?Gd(e.modifiers):0;return(e.flags&8||e.kind===80&&e.flags&4096)&&(t|=32),t}function Gd(e){let t=0;if(e)for(const n of e)t|=zT(n.kind);return t}function zT(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 r1e(e){return e===57||e===56}function Nre(e){return r1e(e)||e===54}function FE(e){return e===76||e===77||e===78}function dW(e){return Zr(e)&&FE(e.operatorToken.kind)}function G8(e){return r1e(e)||e===61}function $8(e){return Zr(e)&&G8(e.operatorToken.kind)}function Kh(e){return e>=64&&e<=79}function mW(e){const t=gW(e);return t&&!t.isImplements?t.class:void 0}function gW(e){if(s0(e)){if(xf(e.parent)&&$n(e.parent.parent))return{class:e.parent.parent,isImplements:e.parent.token===119};if(mx(e.parent)){const t=D1(e.parent);if(t&&$n(t))return{class:t,isImplements:!1}}}}function il(e,t){return Zr(e)&&(t?e.operatorToken.kind===64:Kh(e.operatorToken.kind))&&S_(e.left)}function n1e(e){return il(e.parent)&&e.parent.left===e}function e0(e){if(il(e,!0)){const t=e.left.kind;return t===210||t===209}return!1}function Q5(e){return mW(e)!==void 0}function pc(e){return e.kind===80||X8(e)}function lf(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 OE(e){return e.kind===80||e.kind===110||e.kind===108||e.kind===236||e.kind===211&&OE(e.expression)||e.kind===217&&OE(e.expression)}function X8(e){return Sn(e)&&Ie(e.name)&&pc(e.expression)}function Q8(e){if(Sn(e)){const t=Q8(e.expression);if(t!==void 0)return t+"."+L_(e.name)}else if(Co(e)){const t=Q8(e.expression);if(t!==void 0&&Ac(e.argumentExpression))return t+"."+Ib(e.argumentExpression)}else{if(Ie(e))return xi(e.escapedText);if(hd(e))return t3(e)}}function ny(e){return qv(e)&&Kg(e)==="prototype"}function LE(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 hW(e){return!!e.parent&&(Sn(e.parent)&&e.parent.name===e||Co(e.parent)&&e.parent.argumentExpression===e)}function Ire(e){return Xu(e.parent)&&e.parent.right===e||Sn(e.parent)&&e.parent.name===e||M1(e.parent)&&e.parent.right===e}function Y5(e){return Zr(e)&&e.operatorToken.kind===104}function Fre(e){return Y5(e.parent)&&e===e.parent.right}function yW(e){return e.kind===210&&e.properties.length===0}function Ore(e){return e.kind===209&&e.elements.length===0}function xC(e){if(!(!cOe(e)||!e.declarations)){for(const t of e.declarations)if(t.localSymbol)return t.localSymbol}}function cOe(e){return e&&mr(e.declarations)>0&&Rn(e.declarations[0],2048)}function Z5(e){return wn(F1e,t=>Zo(e,t))}function lOe(e){const t=[],n=e.length;for(let i=0;i>6|192),t.push(s&63|128)):s<65536?(t.push(s>>12|224),t.push(s>>6&63|128),t.push(s&63|128)):s<131072?(t.push(s>>18|240),t.push(s>>12&63|128),t.push(s>>6&63|128),t.push(s&63|128)):E.assert(!1,"Unexpected code point")}return t}function Lre(e){let t="";const n=lOe(e);let i=0;const s=n.length;let o,c,u,f;for(;i>2,c=(n[i]&3)<<4|n[i+1]>>4,u=(n[i+1]&15)<<2|n[i+2]>>6,f=n[i+2]&63,i+1>=s?u=f=64:i+2>=s&&(f=64),t+=jb.charAt(o)+jb.charAt(c)+jb.charAt(u)+jb.charAt(f),i+=3;return t}function uOe(e){let t="",n=0;const i=e.length;for(;n>4&3,d=(c&15)<<4|u>>2&15,y=(u&3)<<6|f&63;d===0&&u!==0?i.push(g):y===0&&f!==0?i.push(g,d):i.push(g,d,y),s+=4}return uOe(i)}function vW(e,t){const n=ls(t)?t:t.readFile(e);if(!n)return;const i=cU(e,n);return i.error?void 0:i.config}function ME(e,t){return vW(e,t)||{}}function K5(e){try{return JSON.parse(e)}catch{return}}function pd(e,t){return!t.directoryExists||t.directoryExists(e)}function t0(e){switch(e.newLine){case 0:return w1e;case 1:case void 0:return A1e}}function Vf(e,t=e){return E.assert(t>=e||t===-1),{pos:e,end:t}}function eF(e,t){return Vf(e.pos,t)}function A1(e,t){return Vf(t,e.end)}function th(e){const t=Hp(e)?gT(e.modifiers,ql):void 0;return t&&!md(t.end)?A1(e,t.end):e}function $d(e){if(xs(e)||hc(e))return A1(e,e.name.pos);const t=Hp(e)?Do(e.modifiers):void 0;return t&&!md(t.end)?A1(e,t.end):th(e)}function i1e(e){return e.pos===e.end}function bW(e,t){return Vf(e,e+Ws(t).length)}function Rb(e,t){return Bre(e,e,t)}function tF(e,t,n){return Uf(RE(e,n,!1),RE(t,n,!1),n)}function jre(e,t,n){return Uf(e.end,t.end,n)}function Bre(e,t,n){return Uf(RE(e,n,!1),t.end,n)}function Y8(e,t,n){return Uf(e.end,RE(t,n,!1),n)}function SW(e,t,n,i){const s=RE(t,n,i);return Z4(n,e.end,s)}function s1e(e,t,n){return Z4(n,e.end,t.end)}function Jre(e,t){return!Uf(e.pos,e.end,t)}function Uf(e,t,n){return Z4(n,e,t)===0}function RE(e,t,n){return md(e.pos)?-1:ca(t.text,e.pos,!1,n)}function zre(e,t,n,i){const s=ca(n.text,e,!1,i),o=_Oe(s,t,n);return Z4(n,o??t,s)}function Wre(e,t,n,i){const s=ca(n.text,e,!1,i);return Z4(n,e,Math.min(t,s))}function _Oe(e,t=0,n){for(;e-- >t;)if(!Xg(n.text.charCodeAt(e)))return e}function TW(e){const t=as(e);if(t)switch(t.parent.kind){case 266:case 267:return t===t.parent.name}return!1}function jE(e){return An(e.declarations,Z8)}function Z8(e){return hi(e)&&e.initializer!==void 0}function a1e(e){return e.watch&&Ka(e,"watch")}function dd(e){e.close()}function Ko(e){return e.flags&33554432?e.links.checkFlags:0}function qf(e,t=!1){if(e.valueDeclaration){const n=t&&e.declarations&&wn(e.declarations,J_)||e.flags&32768&&wn(e.declarations,Tf)||e.valueDeclaration,i=y1(n);return e.parent&&e.parent.flags&32?i:i&-8}if(Ko(e)&6){const n=e.links.checkFlags,i=n&1024?2:n&256?1:4,s=n&2048?256:0;return i|s}return e.flags&4194304?257:0}function Ul(e,t){return e.flags&2097152?t.getAliasedSymbol(e):e}function kC(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function rF(e){return BE(e)===1}function WT(e){return BE(e)!==0}function BE(e){const{parent:t}=e;switch(t==null?void 0:t.kind){case 217:return BE(t);case 225:case 224:const{operator:n}=t;return n===46||n===47?2:0;case 226:const{left:i,operatorToken:s}=t;return i===e&&Kh(s.kind)?s.kind===64?1:2:0;case 211:return t.name!==e?0:BE(t);case 303:{const o=BE(t.parent);return e===t.name?fOe(o):o}case 304:return e===t.objectAssignmentInitializer?0:BE(t.parent);case 209:return BE(t);default:return 0}}function fOe(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return E.assertNever(e)}}function xW(e,t){if(!e||!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(typeof e[n]=="object"){if(!xW(e[n],t[n]))return!1}else if(typeof e[n]!="function"&&e[n]!==t[n])return!1;return!0}function T_(e,t){e.forEach(t),e.clear()}function Tg(e,t,n){const{onDeleteValue:i,onExistingValue:s}=n;e.forEach((o,c)=>{var u;t!=null&&t.has(c)?s&&s(o,(u=t.get)==null?void 0:u.call(t,c),c):(e.delete(c),i(o,c))})}function JE(e,t,n){Tg(e,t,n);const{createNewValue:i}=n;t==null||t.forEach((s,o)=>{e.has(o)||e.set(o,i(o,s))})}function Vre(e){if(e.flags&32){const t=rh(e);return!!t&&Rn(t,64)}return!1}function rh(e){var t;return(t=e.declarations)==null?void 0:t.find($n)}function bn(e){return e.flags&3899393?e.objectFlags:0}function o1e(e,t){return!!jp(e,n=>t(n)?!0:void 0)}function nF(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&Fw(e.declarations[0])}function Ure({moduleSpecifier:e}){return aa(e)?e.text:jc(e)}function kW(e){let t;return Ss(e,n=>{pp(n)&&(t=n)},n=>{for(let i=n.length-1;i>=0;i--)if(pp(n[i])){t=n[i];break}}),t}function Vp(e,t,n=!0){return e.has(t)?!1:(e.set(t,n),!0)}function VT(e){return $n(e)||Bu(e)||z_(e)}function CW(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 co(e){return e.kind===211||e.kind===212}function EW(e){return e.kind===211?e.name:(E.assert(e.kind===212),e.argumentExpression)}function qre(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}}function iF(e){return e.kind===275||e.kind===279}function CC(e){for(;co(e);)e=e.expression;return e}function Hre(e,t){if(co(e.parent)&&hW(e))return n(e.parent);function n(i){if(i.kind===211){const s=t(i.name);if(s!==void 0)return s}else if(i.kind===212)if(Ie(i.argumentExpression)||Ma(i.argumentExpression)){const s=t(i.argumentExpression);if(s!==void 0)return s}else return;if(co(i.expression))return n(i.expression);if(Ie(i.expression))return t(i.expression)}}function EC(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 pOe(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 dOe(e,t){this.flags=t,(E.isDebugging||qr)&&(this.checker=e)}function mOe(e,t){this.flags=t,E.isDebugging&&(this.checker=e)}function Gre(e,t,n){this.pos=t,this.end=n,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 gOe(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function hOe(e,t,n){this.pos=t,this.end=n,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 yOe(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n||(i=>i)}function $re(e){kne.push(e),e(Il)}function Xre(e){Object.assign(Il,e),rr(kne,t=>t(Il))}function xg(e,t){return e.replace(/{(\d+)}/g,(n,i)=>""+E.checkDefined(t[+i]))}function Qre(e){NF=e}function Yre(e){!NF&&e&&(NF=e())}function ds(e){return NF&&NF[e.key]||e.message}function PC(e,t,n,i,s,...o){n+i>t.length&&(i=t.length-n),Mte(t,n,i);let c=ds(s);return ct(o)&&(c=xg(c,o)),{file:void 0,start:n,length:i,messageText:c,category:s.category,code:s.code,reportsUnnecessary:s.reportsUnnecessary,fileName:e}}function vOe(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function c1e(e,t){const n=t.fileName||"",i=t.text.length;E.assertEqual(e.fileName,n),E.assertLessThanOrEqual(e.start,i),E.assertLessThanOrEqual(e.start+e.length,i);const s={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){s.relatedInformation=[];for(const o of e.relatedInformation)vOe(o)&&o.fileName===n?(E.assertLessThanOrEqual(o.start,i),E.assertLessThanOrEqual(o.start+o.length,i),s.relatedInformation.push(c1e(o,t))):s.relatedInformation.push(o)}return s}function UT(e,t){const n=[];for(const i of e)n.push(c1e(i,t));return n}function xl(e,t,n,i,...s){Mte(e.text,t,n);let o=ds(i);return ct(s)&&(o=xg(o,s)),{file:e,start:t,length:n,messageText:o,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated}}function PW(e,...t){let n=ds(e);return ct(t)&&(n=xg(n,t)),n}function gc(e,...t){let n=ds(e);return ct(t)&&(n=xg(n,t)),{file:void 0,start:void 0,length:void 0,messageText:n,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function sF(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 vs(e,t,...n){let i=ds(t);return ct(n)&&(i=xg(i,n)),{messageText:i,category:t.category,code:t.code,next:e===void 0||Array.isArray(e)?e:[e]}}function Zre(e,t){let n=e;for(;n.next;)n=n.next[0];n.next=[t]}function l1e(e){return e.file?e.file.path:void 0}function zE(e,t){return aF(e,t)||bOe(e,t)||0}function aF(e,t){return mu(l1e(e),l1e(t))||Ao(e.start,t.start)||Ao(e.length,t.length)||Ao(e.code,t.code)||u1e(e.messageText,t.messageText)||0}function bOe(e,t){return!e.relatedInformation&&!t.relatedInformation?0:e.relatedInformation&&t.relatedInformation?Ao(e.relatedInformation.length,t.relatedInformation.length)||rr(e.relatedInformation,(n,i)=>{const s=t.relatedInformation[i];return zE(n,s)})||0:e.relatedInformation?-1:1}function u1e(e,t){if(typeof e=="string"&&typeof t=="string")return mu(e,t);if(typeof e=="string")return-1;if(typeof t=="string")return 1;let n=mu(e.messageText,t.messageText);if(n)return n;if(!e.next&&!t.next)return 0;if(!e.next)return-1;if(!t.next)return 1;const i=Math.min(e.next.length,t.next.length);for(let s=0;st.next.length?1:0}function K8(e){return e===4||e===2||e===1||e===6?1:0}function _1e(e){if(e.transformFlags&2)return Fu(e)||u2(e)?e:Ss(e,_1e)}function SOe(e){return e.isDeclarationFile?void 0:_1e(e)}function TOe(e){return(e.impliedNodeFormat===99||$c(e.fileName,[".cjs",".cts",".mjs",".mts"]))&&!e.isDeclarationFile?!0:void 0}function ew(e){switch(YW(e)){case 3:return s=>{s.externalModuleIndicator=Uw(s)||!s.isDeclarationFile||void 0};case 1:return s=>{s.externalModuleIndicator=Uw(s)};case 2:const t=[Uw];(e.jsx===4||e.jsx===5)&&t.push(SOe),t.push(TOe);const n=fd(...t);return s=>void(s.externalModuleIndicator=n(s))}}function Lpt(e){return e}function oF(e){return e>=5&&e<=99}function cF(e){switch(au(e)){case 0:case 4:case 3:return!1}return!0}function DW(e){return e.verbatimModuleSyntax||e.isolatedModules&&e.preserveValueImports}function Kre(e){return e.allowUnreachableCode===!1}function ene(e){return e.allowUnusedLabels===!1}function qT(e){return e>=3&&e<=99||e===100}function Mu(e,t){return e[t]===void 0?!!e.strict:!!e[t]}function tne(e){return e.useDefineForClassFields!==!1&&Fa(e)>=9}function rne(e,t){return Qk(t,e,hU)}function nne(e,t){return Qk(t,e,yU)}function ine(e,t){return Qk(t,e,vU)}function lF(e,t){return t.strictFlag?Mu(e,t.name):t.allowJsFlag?oy(e):e[t.name]}function uF(e){const t=e.jsx;return t===2||t===4||t===5}function _F(e,t){const n=t==null?void 0:t.pragmas.get("jsximportsource"),i=ts(n)?n[n.length-1]:n;return e.jsx===4||e.jsx===5||e.jsxImportSource||i?(i==null?void 0:i.arguments.factory)||e.jsxImportSource||"react":void 0}function fF(e,t){return e?`${e}/${t.jsx===5?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function wW(e){let t=!1;for(let n=0;ns,getSymlinkedDirectories:()=>n,getSymlinkedDirectoriesByRealpath:()=>i,setSymlinkedFile:(u,f)=>(s||(s=new Map)).set(u,f),setSymlinkedDirectory:(u,f)=>{let g=Io(u,e,t);QE(g)||(g=_l(g),f!==!1&&!(n!=null&&n.has(g))&&(i||(i=yf())).add(f.realPath,u),(n||(n=new Map)).set(g,f))},setSymlinksFromResolutions(u,f,g){E.assert(!o),o=!0,u(d=>c(this,d.resolvedModule)),f(d=>c(this,d.resolvedTypeReferenceDirective)),g.forEach(d=>c(this,d.resolvedTypeReferenceDirective))},hasProcessedResolutions:()=>o};function c(u,f){if(!f||!f.originalPath||!f.resolvedFileName)return;const{resolvedFileName:g,originalPath:d}=f;u.setSymlinkedFile(Io(d,e,t),g);const[y,S]=xOe(g,d,e,t)||Ve;y&&S&&u.setSymlinkedDirectory(S,{real:_l(y),realPath:_l(Io(y,e,t))})}}function xOe(e,t,n,i){const s=ul(Xi(e,n)),o=ul(Xi(t,n));let c=!1;for(;s.length>=2&&o.length>=2&&!f1e(s[s.length-2],i)&&!f1e(o[o.length-2],i)&&i(s[s.length-1])===i(o[o.length-1]);)s.pop(),o.pop(),c=!0;return c?[W0(s),W0(o)]:void 0}function f1e(e,t){return e!==void 0&&(t(e)==="node_modules"||Vi(e,"@"))}function kOe(e){return AJ(e.charCodeAt(0))?e.slice(1):void 0}function NW(e,t,n){const i=yB(e,t,n);return i===void 0?void 0:kOe(i)}function p1e(e){return e.replace(ZW,COe)}function COe(e){return"\\"+e}function WE(e,t,n){const i=pF(e,t,n);return!i||!i.length?void 0:`^(${i.map(c=>`(${c})`).join("|")})${n==="exclude"?"($|/)":"$"}`}function pF(e,t,n){if(!(e===void 0||e.length===0))return Zs(e,i=>i&&dF(i,t,n,tV[n]))}function IW(e){return!/[.*?]/.test(e)}function sne(e,t,n){const i=e&&dF(e,t,n,tV[n]);return i&&`^(${i})${n==="exclude"?"($|/)":"$"}`}function dF(e,t,n,{singleAsteriskRegexFragment:i,doubleAsteriskRegexFragment:s,replaceWildcardCharacter:o}=tV[n]){let c="",u=!1;const f=AD(e,t),g=ka(f);if(n!=="exclude"&&g==="**")return;f[0]=d1(f[0]),IW(g)&&f.push("**","*");let d=0;for(let y of f){if(y==="**")c+=s;else if(n==="directories"&&(c+="(",d++),u&&(c+=Fo),n!=="exclude"){let S="";y.charCodeAt(0)===42?(S+="([^./]"+i+")?",y=y.substr(1)):y.charCodeAt(0)===63&&(S+="[^./]",y=y.substr(1)),S+=y.replace(ZW,o),S!==y&&(c+=eV),c+=S}else c+=y.replace(ZW,o);u=!0}for(;d>0;)c+=")?",d--;return c}function ane(e,t){return e==="*"?t:e==="?"?"[^/]":"\\"+e}function mF(e,t,n,i,s){e=Hs(e),s=Hs(s);const o=Mn(s,e);return{includeFilePatterns:nr(pF(n,o,"files"),c=>`^${c}$`),includeFilePattern:WE(n,o,"files"),includeDirectoryPattern:WE(n,o,"directories"),excludePattern:WE(t,o,"exclude"),basePaths:EOe(e,n,i)}}function iy(e,t){return new RegExp(e,t?"":"i")}function FW(e,t,n,i,s,o,c,u,f){e=Hs(e),o=Hs(o);const g=mF(e,n,i,s,o),d=g.includeFilePatterns&&g.includeFilePatterns.map(F=>iy(F,s)),y=g.includeDirectoryPattern&&iy(g.includeDirectoryPattern,s),S=g.excludePattern&&iy(g.excludePattern,s),T=d?d.map(()=>[]):[[]],k=new Map,w=nu(s);for(const F of g.basePaths)P(F,Mn(o,F),c);return Op(T);function P(F,J,U){const $=w(f(J));if(k.has($))return;k.set($,!0);const{files:j,directories:re}=u(F);for(const R of _b(j,mu)){const Y=Mn(F,R),ue=Mn(J,R);if(!(t&&!$c(Y,t))&&!(S&&S.test(ue)))if(!d)T[0].push(Y);else{const pe=vc(d,H=>H.test(ue));pe!==-1&&T[pe].push(Y)}}if(!(U!==void 0&&(U--,U===0)))for(const R of _b(re,mu)){const Y=Mn(F,R),ue=Mn(J,R);(!y||y.test(ue))&&(!S||!S.test(ue))&&P(Y,ue,U)}}}function EOe(e,t,n){const i=[e];if(t){const s=[];for(const o of t){const c=F_(o)?o:Hs(Mn(e,o));s.push(POe(c))}s.sort(Ak(!n));for(const o of s)Wi(i,c=>!Mp(c,o,e,!n))&&i.push(o)}return i}function POe(e){const t=OK(e,N1e);return t<0?xT(e)?d1(Un(e)):e:e.substring(0,e.lastIndexOf(Fo,t))}function gF(e,t){return t||hF(e)||3}function hF(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 VE(e,t){const n=e&&oy(e);if(!t||t.length===0)return n?OF:IC;const i=n?OF:IC,s=Op(i);return[...i,...Ri(t,c=>c.scriptKind===7||n&&DOe(c.scriptKind)&&!s.includes(c.extension)?[c.extension]:void 0)]}function tw(e,t){return!e||!F1(e)?t:t===OF?O1e:t===IC?I1e:[...t,[".json"]]}function DOe(e){return e===1||e===2}function Kv(e){return ct(FC,t=>Zo(e,t))}function HT(e){return ct(rV,t=>Zo(e,t))}function one({imports:e},t=fd(Kv,HT)){return Qa(e,({text:n})=>nf(n)&&!$c(n,dw)?t(n):void 0)||!1}function cne(e,t,n,i){const s=Ru(n),o=3<=s&&s<=99;if(e==="js"||t===99&&o)return i6(n)&&c()!==2?3:2;if(e==="minimal")return 0;if(e==="index")return 1;if(!i6(n))return one(i)?2:0;return c();function c(){let u=!1;const f=i.imports.length?i.imports:Ou(i)?wOe(i).map(g=>g.arguments[0]):Ve;for(const g of f)if(nf(g.text)){if(o&&t===1&&Fq(i,g,n)===99||$c(g.text,dw))continue;if(HT(g.text))return 3;Kv(g.text)&&(u=!0)}return u?2:0}}function wOe(e){let t=0,n;for(const i of e.statements){if(t>3)break;Rz(i)?n=es(n,i.declarationList.declarations.map(s=>s.initializer)):Cl(i)&&Gu(i.expression,!0)?n=_r(n,i.expression):t++}return n||Ve}function lne(e,t,n){if(!e)return!1;const i=VE(t,n);for(const s of Op(tw(t,i)))if(Zo(e,s))return!0;return!1}function d1e(e){const t=e.match(/\//g);return t?t.length:0}function rw(e,t){return Ao(d1e(e),d1e(t))}function $u(e){for(const t of sV){const n=une(e,t);if(n!==void 0)return n}return e}function une(e,t){return Zo(e,t)?nw(e,t):void 0}function nw(e,t){return e.substring(0,e.length-t.length)}function N1(e,t){return ND(e,t,sV,!1)}function DC(e){const 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 yF(e){return Ri(ug(e),t=>DC(t))}function md(e){return!(e>=0)}function vF(e){return e===".ts"||e===".tsx"||e===".d.ts"||e===".cts"||e===".mts"||e===".d.mts"||e===".d.cts"||Vi(e,".d.")&&Yo(e,".ts")}function UE(e){return vF(e)||e===".json"}function qE(e){const t=nh(e);return t!==void 0?t:E.fail(`File ${e} has unknown extension.`)}function m1e(e){return nh(e)!==void 0}function nh(e){return wn(sV,t=>Zo(e,t))}function iw(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}function OW(e,t){const n=[];for(const i of e){if(i===t)return t;ls(i)||n.push(i)}return hB(n,i=>i,t)}function LW(e,t){const n=e.indexOf(t);return E.assert(n!==-1),e.slice(n)}function la(e,...t){return t.length&&(e.relatedInformation||(e.relatedInformation=[]),E.assert(e.relatedInformation!==Ve,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t)),e}function _ne(e,t){E.assert(e.length!==0);let n=t(e[0]),i=n;for(let s=1;si&&(i=o)}return{min:n,max:i}}function MW(e){return{pos:k1(e),end:e.end}}function RW(e,t){const n=t.pos-1,i=Math.min(e.text.length,ca(e.text,t.end)+1);return{pos:n,end:i}}function HE(e,t,n){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||n.isSourceOfProjectReferenceRedirect(e.fileName)}function bF(e,t){return e===t||typeof e=="object"&&e!==null&&typeof t=="object"&&t!==null&&WK(e,t,bF)}function GE(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:const g=e.length-1;let d=0;for(;e.charCodeAt(d)===48;)d++;return e.slice(d,g)||"0"}const n=2,i=e.length-1,s=(i-n)*t,o=new Uint16Array((s>>>4)+(s&15?1:0));for(let g=i-1,d=0;g>=n;g--,d+=t){const y=d>>>4,S=e.charCodeAt(g),k=(S<=57?S-48:10+S-(S<=70?65:97))<<(d&15);o[y]|=k;const w=k>>>16;w&&(o[y+1]|=w)}let c="",u=o.length-1,f=!0;for(;f;){let g=0;f=!1;for(let d=u;d>=0;d--){const y=g<<16|o[d],S=y/10|0;o[d]=S,g=y-S*10,S&&!f&&(u=d,f=!0)}c=g+c}return c}function e2({negative:e,base10Value:t}){return(e&&t!=="0"?"-":"")+t}function fne(e){if(SF(e,!1))return jW(e)}function jW(e){const t=e.startsWith("-"),n=GE(`${t?e.slice(1):e}n`);return{negative:t,base10Value:n}}function SF(e,t){if(e==="")return!1;const n=Hh(99,!1);let i=!0;n.setOnError(()=>i=!1),n.setText(e+"n");let s=n.scan();const o=s===41;o&&(s=n.scan());const c=n.getTokenFlags();return i&&s===10&&n.getTokenEnd()===e.length+1&&!(c&512)&&(!t||e===e2({negative:o,base10Value:GE(n.getTokenValue())}))}function I1(e){return!!(e.flags&33554432)||E5(e)||IOe(e)||NOe(e)||!(hg(e)||AOe(e))}function AOe(e){return Ie(e)&&k_(e.parent)&&e.parent.name===e}function NOe(e){for(;e.kind===80||e.kind===211;)e=e.parent;if(e.kind!==167)return!1;if(Rn(e.parent,64))return!0;const t=e.parent.parent.kind;return t===264||t===187}function IOe(e){if(e.kind!==80)return!1;const t=Pr(e.parent,n=>{switch(n.kind){case 298:return!0;case 211:case 233:return!1;default:return"quit"}});return(t==null?void 0:t.token)===119||(t==null?void 0:t.parent.kind)===264}function pne(e){return Gf(e)&&Ie(e.typeName)}function dne(e,t=Vh){if(e.length<2)return!0;const n=e[0];for(let i=1,s=e.length;ie.includes(t))}function hne(e){if(!e.parent)return;switch(e.kind){case 168:const{parent:n}=e;return n.kind===195?void 0:n.typeParameters;case 169:return e.parent.parameters;case 204:return e.parent.templateSpans;case 239:return e.parent.templateSpans;case 170:{const{parent:i}=e;return Kb(i)?i.modifiers:void 0}case 298:return e.parent.heritageClauses}const{parent:t}=e;if(Xk(e))return Qb(e.parent)?void 0:e.parent.tags;switch(t.kind){case 187:case 264:return bb(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 ki(e)?t.typeArguments:t.expression===e?void 0:t.arguments;case 284:case 288:return i8(e)?t.children:void 0;case 286:case 285:return ki(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 Tl(e)?t.members:void 0;case 266:return p2(e)?t.members:void 0;case 312:return t.statements}}function TF(e){if(!e.typeParameters){if(ct(e.parameters,t=>!Vl(t)))return!0;if(e.kind!==219){const t=bl(e.parameters);if(!(t&&Qv(t)))return!0}}return!1}function YE(e){return e==="Infinity"||e==="-Infinity"||e==="NaN"}function yne(e){return e.kind===260&&e.parent.kind===299}function t2(e){return e.kind===218||e.kind===219}function r2(e){return e.replace(/\$/gm,()=>"\\$")}function kg(e){return(+e).toString()===e}function xF(e,t,n,i,s){const o=s&&e==="new";return!o&&bf(e,t)?I.createIdentifier(e):!i&&!o&&kg(e)&&+e>=0?I.createNumericLiteral(+e):I.createStringLiteral(e,!!n)}function ZE(e){return!!(e.flags&262144&&e.isThisType)}function kF(e){let t=0,n=0,i=0,s=0,o;(g=>{g[g.BeforeNodeModules=0]="BeforeNodeModules",g[g.NodeModules=1]="NodeModules",g[g.Scope=2]="Scope",g[g.PackageContent=3]="PackageContent"})(o||(o={}));let c=0,u=0,f=0;for(;u>=0;)switch(c=u,u=e.indexOf("/",c+1),f){case 0:e.indexOf(zm,c)===c&&(t=c,n=u,f=1);break;case 1:case 2:f===1&&e.charAt(c+1)==="@"?f=2:(i=u,f=3);break;case 3:e.indexOf(zm,c)===c?f=1:f=3;break}return s=c,f>1?{topLevelNodeModulesIndex:t,topLevelPackageNameIndex:n,packageRootIndex:i,fileNameIndex:s}:void 0}function g1e(e){var t;return e.kind===348?(t=e.typeExpression)==null?void 0:t.type:e.type}function NC(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 sw(e){return L1(e)||ac(e)||Xc(e)||Qc(e)||Bu(e)||NC(e)||Sc(e)&&!Jv(e)&&!Wd(e)}function aw(e){if(!aE(e))return!1;const{isBracketed:t,typeExpression:n}=e;return t||!!n&&n.type.kind===323}function JW(e,t){if(e.length===0)return!1;const n=e.charCodeAt(0);return n===35?e.length>1&&fg(e.charCodeAt(1),t):fg(n,t)}function vne(e){var t;return((t=dV(e))==null?void 0:t.kind)===0}function ow(e){return Hr(e)&&(e.type&&e.type.kind===323||Vk(e).some(({isBracketed:t,typeExpression:n})=>t||!!n&&n.type.kind===323))}function KE(e){switch(e.kind){case 172:case 171:return!!e.questionToken;case 169:return!!e.questionToken||ow(e);case 355:case 348:return aw(e);default:return!1}}function bne(e){const t=e.kind;return(t===211||t===212)&&ux(e.expression)}function zW(e){return Hr(e)&&l_(e)&&sf(e)&&!!HJ(e)}function WW(e){return E.checkDefined(CF(e))}function CF(e){const t=HJ(e);return t&&t.typeExpression&&t.typeExpression.type}function e3(e){return Ie(e)?e.escapedText:GT(e)}function cw(e){return Ie(e)?on(e):t3(e)}function Sne(e){const t=e.kind;return t===80||t===295}function GT(e){return`${e.namespace.escapedText}:${on(e.name)}`}function t3(e){return`${on(e.namespace)}:${on(e.name)}`}function VW(e){return Ie(e)?on(e):t3(e)}function bp(e){return!!(e.flags&8576)}function Sp(e){return e.flags&8192?e.escapedName:e.flags&384?Vo(""+e.value):E.fail()}function EF(e){return!!e&&(Sn(e)||Co(e)||Zr(e))}function Tne(e){return e===void 0?!1:!!o6(e.attributes)}function $T(e,t){return L1e.call(e,"*",t)}function PF(e){return Ie(e.name)?e.name.escapedText:Vo(e.name.text)}var DF,ay,lw,wF,uw,AF,UW,qW,h1e,y1e,HW,v1e,b1e,GW,$W,XW,QW,S1e,T1e,x1e,k1e,C1e,xne,E1e,P1e,D1e,r3,jb,w1e,A1e,Il,kne,NF,Jc,Fa,au,Ru,YW,Tp,Om,Bb,IF,FF,F1,Hf,n2,n3,_w,oy,i3,ZW,N1e,KW,eV,Cne,Ene,Pne,tV,IC,rV,I1e,F1e,nV,FC,OF,O1e,fw,pw,dw,iV,sV,LF,L1e,OOe=Dt({"src/compiler/utilities.ts"(){Fs(),DF=[],ay="tslib",lw=160,wF=1e6,uw=RFe(),AF=Hu(()=>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:Ve})),AsyncIterator:new Map(Object.entries({es2015:Ve})),Atomics:new Map(Object.entries({es2017:Ve})),SharedArrayBuffer:new Map(Object.entries({es2017:Ve})),AsyncIterable:new Map(Object.entries({es2018:Ve})),AsyncIterableIterator:new Map(Object.entries({es2018:Ve})),AsyncGenerator:new Map(Object.entries({es2018:Ve})),AsyncGeneratorFunction:new Map(Object.entries({es2018:Ve})),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:Ve,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:Ve})),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:Ve,es2022:["at"],es2023:["findLastIndex","findLast"]})),BigUint64Array:new Map(Object.entries({es2020:Ve,es2022:["at"],es2023:["findLastIndex","findLast"]})),Error:new Map(Object.entries({es2022:["cause"]}))}))),UW=(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))(UW||{}),qW=/^(\/\/\/\s*/,h1e=/^(\/\/\/\s*/,y1e=/^(\/\/\/\s*/,HW=/^(\/\/\/\s*/,v1e=/^\/\/\/\s*/,b1e=/^(\/\/\/\s*/,GW=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))(GW||{}),$W=(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))($W||{}),XW=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(XW||{}),QW=(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))(QW||{}),S1e=/\$\{/g,T1e=/[\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,x1e=/[\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,k1e=/\r\n|[\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,C1e=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","…":"\\u0085","\r\n":"\\r\\n"})),xne=/[^\u0000-\u007F]/g,E1e=/["\u0000-\u001f\u2028\u2029\u0085]/g,P1e=/['\u0000-\u001f\u2028\u2029\u0085]/g,D1e=new Map(Object.entries({'"':""","'":"'"})),r3=[""," "],jb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",w1e=`\r `,A1e=` -`,Il={getNodeConstructor:()=>$re,getTokenConstructor:()=>gOe,getIdentifierConstructor:()=>hOe,getPrivateIdentifierConstructor:()=>$re,getSourceFileConstructor:()=>$re,getSymbolConstructor:()=>pOe,getTypeConstructor:()=>dOe,getSignatureConstructor:()=>mOe,getSourceMapSourceConstructor:()=>yOe},Cne=[],Jc={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:Jc.target.computeValue(e)>=2?5:1},moduleResolution:{dependencies:["module","target"],computeValue:e=>{let t=e.moduleResolution;if(t===void 0)switch(Jc.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||(Jc.module.computeValue(e)===100||Jc.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(Jc.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:Jc.esModuleInterop.computeValue(e)||Jc.module.computeValue(e)===4||Jc.moduleResolution.computeValue(e)===100},resolvePackageJsonExports:{dependencies:["moduleResolution"],computeValue:e=>{const t=Jc.moduleResolution.computeValue(e);if(!HT(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=>{const t=Jc.moduleResolution.computeValue(e);if(!HT(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:Jc.moduleResolution.computeValue(e)===100},declaration:{dependencies:["composite"],computeValue:e=>!!(e.declaration||e.composite)},preserveConstEnums:{dependencies:["isolatedModules","verbatimModuleSyntax"],computeValue:e=>!!(e.preserveConstEnums||Jc.isolatedModules.computeValue(e))},incremental:{dependencies:["composite"],computeValue:e=>!!(e.incremental||e.composite)},declarationMap:{dependencies:["declaration","composite"],computeValue:e=>!!(e.declarationMap&&Jc.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?Jc.target.computeValue(e)>=9:e.useDefineForClassFields},noImplicitAny:{dependencies:["strict"],computeValue:e=>Mu(e,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:e=>Mu(e,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:e=>Mu(e,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:e=>Mu(e,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:e=>Mu(e,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:e=>Mu(e,"strictPropertyInitialization")},alwaysStrict:{dependencies:["strict"],computeValue:e=>Mu(e,"alwaysStrict")},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:e=>Mu(e,"useUnknownInCatchVariables")}},Fa=Jc.target.computeValue,au=Jc.module.computeValue,Ru=Jc.moduleResolution.computeValue,KW=Jc.moduleDetection.computeValue,xp=Jc.isolatedModules.computeValue,Om=Jc.esModuleInterop.computeValue,Jb=Jc.allowSyntheticDefaultImports.computeValue,LF=Jc.resolvePackageJsonExports.computeValue,MF=Jc.resolvePackageJsonImports.computeValue,F1=Jc.resolveJsonModule.computeValue,Gf=Jc.declaration.computeValue,n2=Jc.preserveConstEnums.computeValue,i3=Jc.incremental.computeValue,fw=Jc.declarationMap.computeValue,cy=Jc.allowJs.computeValue,s3=Jc.useDefineForClassFields.computeValue,eV=/[^\w\s/]/g,N1e=[42,63],tV=["node_modules","bower_components","jspm_packages"],rV=`(?!(${tV.join("|")})(/|$))`,Ene={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${rV}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>one(e,Ene.singleAsteriskRegexFragment)},Pne={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${rV}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>one(e,Pne.singleAsteriskRegexFragment)},Dne={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:e=>one(e,Dne.singleAsteriskRegexFragment)},nV={files:Ene,directories:Pne,exclude:Dne},IC=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],iV=Mp(IC),I1e=[...IC,[".json"]],F1e=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],sV=[[".js",".jsx"],[".mjs"],[".cjs"]],FC=Mp(sV),RF=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],O1e=[...RF,[".json"]],pw=[".d.ts",".d.cts",".d.mts"],dw=[".ts",".cts",".mts",".tsx"],mw=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"],aV=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))(aV||{}),oV=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"],jF={files:Ve,directories:Ve},L1e=String.prototype.replace}});function wne(){let e,t,n,i,s;return{createBaseSourceFileNode:o,createBaseIdentifierNode:c,createBasePrivateIdentifierNode:u,createBaseTokenNode:f,createBaseNode:g};function o(d){return new(s||(s=Il.getSourceFileConstructor()))(d,-1,-1)}function c(d){return new(n||(n=Il.getIdentifierConstructor()))(d,-1,-1)}function u(d){return new(i||(i=Il.getPrivateIdentifierConstructor()))(d,-1,-1)}function f(d){return new(t||(t=Il.getTokenConstructor()))(d,-1,-1)}function g(d){return new(e||(e=Il.getNodeConstructor()))(d,-1,-1)}}var LOe=wt({"src/compiler/factory/baseNodeFactory.ts"(){Fs()}});function Ane(e){let t,n;return{getParenthesizeLeftSideOfBinaryForOperator:i,getParenthesizeRightSideOfBinaryForOperator:s,parenthesizeLeftSideOfBinary:g,parenthesizeRightSideOfBinary:d,parenthesizeExpressionOfComputedPropertyName:y,parenthesizeConditionOfConditionalExpression:S,parenthesizeBranchOfConditionalExpression:T,parenthesizeExpressionOfExportDefault:k,parenthesizeExpressionOfNew:w,parenthesizeLeftSideOfAccess:P,parenthesizeOperandOfPostfixUnary:F,parenthesizeOperandOfPrefixUnary:J,parenthesizeExpressionsOfCommaDelimitedList:U,parenthesizeExpressionForDisallowedComma:$,parenthesizeExpressionOfExpressionStatement:j,parenthesizeConciseBodyOfArrowFunction:re,parenthesizeCheckTypeOfConditionalType:R,parenthesizeExtendsTypeOfConditionalType:Y,parenthesizeConstituentTypesOfUnionType:pe,parenthesizeConstituentTypeOfUnionType:ue,parenthesizeConstituentTypesOfIntersectionType:q,parenthesizeConstituentTypeOfIntersectionType:H,parenthesizeOperandOfTypeOperator:ee,parenthesizeOperandOfReadonlyTypeOperator:oe,parenthesizeNonArrayTypeOfPostfixType:Se,parenthesizeElementTypesOfTupleType:ae,parenthesizeElementTypeOfTupleType:K,parenthesizeTypeOfOptionalType:ke,parenthesizeTypeArguments:be,parenthesizeLeadingTypeArgument:Oe};function i(xe){t||(t=new Map);let De=t.get(xe);return De||(De=ft=>g(xe,ft),t.set(xe,De)),De}function s(xe){n||(n=new Map);let De=n.get(xe);return De||(De=ft=>d(xe,void 0,ft),n.set(xe,De)),De}function o(xe,De,ft,ge){const Fe=U8(226,xe),$e=iW(226,xe),Pt=zp(De);if(!ft&&De.kind===219&&Fe>3)return!0;const at=wE(Pt);switch(wo(at,Fe)){case-1:return!(!ft&&$e===1&&De.kind===229);case 1:return!1;case 0:if(ft)return $e===1;if(Zr(Pt)&&Pt.operatorToken.kind===xe){if(c(xe))return!1;if(xe===40){const pt=ge?u(ge):0;if(cE(pt)&&pt===u(Pt))return!1}}return nW(Pt)===0}}function c(xe){return xe===42||xe===52||xe===51||xe===53||xe===28}function u(xe){if(xe=zp(xe),cE(xe.kind))return xe.kind;if(xe.kind===226&&xe.operatorToken.kind===40){if(xe.cachedLiteralKind!==void 0)return xe.cachedLiteralKind;const De=u(xe.left),ft=cE(De)&&De===u(xe.right)?De:0;return xe.cachedLiteralKind=ft,ft}return 0}function f(xe,De,ft,ge){return zp(De).kind===217?De:o(xe,De,ft,ge)?e.createParenthesizedExpression(De):De}function g(xe,De){return f(xe,De,!0)}function d(xe,De,ft){return f(xe,ft,!1,De)}function y(xe){return S3(xe)?e.createParenthesizedExpression(xe):xe}function S(xe){const De=U8(227,58),ft=zp(xe),ge=wE(ft);return wo(ge,De)!==1?e.createParenthesizedExpression(xe):xe}function T(xe){const De=zp(xe);return S3(De)?e.createParenthesizedExpression(xe):xe}function k(xe){const De=zp(xe);let ft=S3(De);if(!ft)switch(EC(De,!1).kind){case 231:case 218:ft=!0}return ft?e.createParenthesizedExpression(xe):xe}function w(xe){const De=EC(xe,!0);switch(De.kind){case 213:return e.createParenthesizedExpression(xe);case 214:return De.arguments?xe:e.createParenthesizedExpression(xe)}return P(xe)}function P(xe,De){const ft=zp(xe);return S_(ft)&&(ft.kind!==214||ft.arguments)&&(De||!hu(ft))?xe:Ke(e.createParenthesizedExpression(xe),xe)}function F(xe){return S_(xe)?xe:Ke(e.createParenthesizedExpression(xe),xe)}function J(xe){return oz(xe)?xe:Ke(e.createParenthesizedExpression(xe),xe)}function U(xe){const De=rl(xe,$);return Ke(e.createNodeArray(De,xe.hasTrailingComma),xe)}function $(xe){const De=zp(xe),ft=wE(De),ge=U8(226,28);return ft>ge?xe:Ke(e.createParenthesizedExpression(xe),xe)}function j(xe){const De=zp(xe);if(Rs(De)){const ge=De.expression,Fe=zp(ge).kind;if(Fe===218||Fe===219){const $e=e.updateCallExpression(De,Ke(e.createParenthesizedExpression(ge),ge),De.typeArguments,De.arguments);return e.restoreOuterExpressions(xe,$e,8)}}const ft=EC(De,!1).kind;return ft===210||ft===218?Ke(e.createParenthesizedExpression(xe),xe):xe}function re(xe){return!Cs(xe)&&(S3(xe)||EC(xe,!1).kind===210)?Ke(e.createParenthesizedExpression(xe),xe):xe}function R(xe){switch(xe.kind){case 184:case 185:case 194:return e.createParenthesizedType(xe)}return xe}function Y(xe){switch(xe.kind){case 194:return e.createParenthesizedType(xe)}return xe}function ue(xe){switch(xe.kind){case 192:case 193:return e.createParenthesizedType(xe)}return R(xe)}function pe(xe){return e.createNodeArray(rl(xe,ue))}function H(xe){switch(xe.kind){case 192:case 193:return e.createParenthesizedType(xe)}return ue(xe)}function q(xe){return e.createNodeArray(rl(xe,H))}function ee(xe){switch(xe.kind){case 193:return e.createParenthesizedType(xe)}return H(xe)}function oe(xe){switch(xe.kind){case 198:return e.createParenthesizedType(xe)}return ee(xe)}function Se(xe){switch(xe.kind){case 195:case 198:case 186:return e.createParenthesizedType(xe)}return ee(xe)}function ae(xe){return e.createNodeArray(rl(xe,K))}function K(xe){return fe(xe)?e.createParenthesizedType(xe):xe}function fe(xe){return WC(xe)?xe.postfix:RC(xe)||Mm(xe)||MC(xe)||Ub(xe)?fe(xe.type):lx(xe)?fe(xe.falseType):_y(xe)||cx(xe)?fe(ka(xe.types)):Wb(xe)?!!xe.typeParameter.constraint&&fe(xe.typeParameter.constraint):!1}function ke(xe){return fe(xe)?e.createParenthesizedType(xe):Se(xe)}function Oe(xe){return rte(xe)&&xe.typeParameters?e.createParenthesizedType(xe):xe}function me(xe,De){return De===0?Oe(xe):xe}function be(xe){if(ct(xe))return e.createNodeArray(rl(xe,me))}}var cV,MOe=wt({"src/compiler/factory/parenthesizerRules.ts"(){Fs(),cV={getParenthesizeLeftSideOfBinaryForOperator:e=>Do,getParenthesizeRightSideOfBinaryForOperator:e=>Do,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,n)=>n,parenthesizeExpressionOfComputedPropertyName:Do,parenthesizeConditionOfConditionalExpression:Do,parenthesizeBranchOfConditionalExpression:Do,parenthesizeExpressionOfExportDefault:Do,parenthesizeExpressionOfNew:e=>Ls(e,S_),parenthesizeLeftSideOfAccess:e=>Ls(e,S_),parenthesizeOperandOfPostfixUnary:e=>Ls(e,S_),parenthesizeOperandOfPrefixUnary:e=>Ls(e,oz),parenthesizeExpressionsOfCommaDelimitedList:e=>Ls(e,Mv),parenthesizeExpressionForDisallowedComma:Do,parenthesizeExpressionOfExpressionStatement:Do,parenthesizeConciseBodyOfArrowFunction:Do,parenthesizeCheckTypeOfConditionalType:Do,parenthesizeExtendsTypeOfConditionalType:Do,parenthesizeConstituentTypesOfUnionType:e=>Ls(e,Mv),parenthesizeConstituentTypeOfUnionType:Do,parenthesizeConstituentTypesOfIntersectionType:e=>Ls(e,Mv),parenthesizeConstituentTypeOfIntersectionType:Do,parenthesizeOperandOfTypeOperator:Do,parenthesizeOperandOfReadonlyTypeOperator:Do,parenthesizeNonArrayTypeOfPostfixType:Do,parenthesizeElementTypesOfTupleType:e=>Ls(e,Mv),parenthesizeElementTypeOfTupleType:Do,parenthesizeTypeOfOptionalType:Do,parenthesizeTypeArguments:e=>e&&Ls(e,Mv),parenthesizeLeadingTypeArgument:Do}}});function Nne(e){return{convertToFunctionBlock:t,convertToFunctionExpression:n,convertToClassExpression:i,convertToArrayAssignmentElement:s,convertToObjectAssignmentElement:o,convertToAssignmentPattern:c,convertToObjectAssignmentPattern:u,convertToArrayAssignmentPattern:f,convertToAssignmentElementTarget:g};function t(d,y){if(Cs(d))return d;const S=e.createReturnStatement(d);Ke(S,d);const T=e.createBlock([S],y);return Ke(T,d),T}function n(d){var y;if(!d.body)return E.fail("Cannot convert a FunctionDeclaration without a body");const S=e.createFunctionExpression((y=Lv(d))==null?void 0:y.filter(T=>!nx(T)&&!SO(T)),d.asteriskToken,d.name,d.typeParameters,d.parameters,d.type,d.body);return dn(S,d),Ke(S,d),a3(d)&&zF(S,!0),S}function i(d){var y;const S=e.createClassExpression((y=d.modifiers)==null?void 0:y.filter(T=>!nx(T)&&!SO(T)),d.name,d.typeParameters,d.heritageClauses,d.members);return dn(S,d),Ke(S,d),a3(d)&&zF(S,!0),S}function s(d){if(Ea(d)){if(d.dotDotDotToken)return E.assertNode(d.name,Ie),dn(Ke(e.createSpreadElement(d.name),d),d);const y=g(d.name);return d.initializer?dn(Ke(e.createAssignment(y,d.initializer),d),d):y}return Ls(d,ot)}function o(d){if(Ea(d)){if(d.dotDotDotToken)return E.assertNode(d.name,Ie),dn(Ke(e.createSpreadAssignment(d.name),d),d);if(d.propertyName){const y=g(d.name);return dn(Ke(e.createPropertyAssignment(d.propertyName,d.initializer?e.createAssignment(y,d.initializer):y),d),d)}return E.assertNode(d.name,Ie),dn(Ke(e.createShorthandPropertyAssignment(d.name,d.initializer),d),d)}return Ls(d,Yg)}function c(d){switch(d.kind){case 207:case 209:return f(d);case 206:case 210:return u(d)}}function u(d){return kp(d)?dn(Ke(e.createObjectLiteralExpression(nr(d.elements,o)),d),d):Ls(d,ua)}function f(d){return s2(d)?dn(Ke(e.createArrayLiteralExpression(nr(d.elements,s)),d),d):Ls(d,ju)}function g(d){return Ns(d)?c(d):Ls(d,ot)}}var lV,ROe=wt({"src/compiler/factory/nodeConverters.ts"(){Fs(),lV={convertToFunctionBlock:ks,convertToFunctionExpression:ks,convertToClassExpression:ks,convertToArrayAssignmentElement:ks,convertToObjectAssignmentElement:ks,convertToAssignmentPattern:ks,convertToObjectAssignmentPattern:ks,convertToArrayAssignmentPattern:ks,convertToAssignmentElementTarget:ks}}});function M1e(e){Fne.push(e)}function gw(e,t){const n=e&8?Do:dn,i=Hu(()=>e&1?cV:Ane(F)),s=Hu(()=>e&2?lV:Nne(F)),o=Cm(v=>(D,M)=>he(D,v,M)),c=Cm(v=>D=>Ye(v,D)),u=Cm(v=>D=>At(D,v)),f=Cm(v=>()=>Y6(v)),g=Cm(v=>D=>PS(v,D)),d=Cm(v=>(D,M)=>M2(v,D,M)),y=Cm(v=>(D,M)=>Z6(v,D,M)),S=Cm(v=>(D,M)=>Co(v,D,M)),T=Cm(v=>(D,M)=>cv(v,D,M)),k=Cm(v=>(D,M,ie)=>rp(v,D,M,ie)),w=Cm(v=>(D,M,ie)=>Ly(v,D,M,ie)),P=Cm(v=>(D,M,ie,ze)=>My(v,D,M,ie,ze)),F={get parenthesizer(){return i()},get converters(){return s()},baseFactory:t,flags:e,createNodeArray:J,createNumericLiteral:re,createBigIntLiteral:R,createStringLiteral:ue,createStringLiteralFromNode:pe,createRegularExpressionLiteral:H,createLiteralLikeNode:q,createIdentifier:Se,createTempVariable:ae,createLoopVariable:K,createUniqueName:fe,getGeneratedNameForNode:ke,createPrivateIdentifier:me,createUniquePrivateName:xe,getGeneratedPrivateNameForNode:De,createToken:ge,createSuper:Fe,createThis:$e,createNull:Pt,createTrue:at,createFalse:Je,createModifier:pt,createModifiersFromModifierFlags:zt,createQualifiedName:Vt,updateQualifiedName:hr,createComputedPropertyName:Lr,updateComputedPropertyName:tr,createTypeParameterDeclaration:jt,updateTypeParameterDeclaration:Rt,createParameterDeclaration:Kn,updateParameterDeclaration:Ji,createDecorator:yi,updateDecorator:os,createPropertySignature:yr,updatePropertySignature:_i,createPropertyDeclaration:Ht,updatePropertyDeclaration:Ue,createMethodSignature:Et,updateMethodSignature:fr,createMethodDeclaration:Hn,updateMethodDeclaration:ei,createConstructorDeclaration:cr,updateConstructorDeclaration:br,createGetAccessorDeclaration:rt,updateGetAccessorDeclaration:tt,createSetAccessorDeclaration:ne,updateSetAccessorDeclaration:we,createCallSignature:B,updateCallSignature:Ge,createConstructSignature:mt,updateConstructSignature:Be,createIndexSignature:nt,updateIndexSignature:Dt,createClassStaticBlockDeclaration:ns,updateClassStaticBlockDeclaration:Vs,createTemplateLiteralTypeSpan:ir,updateTemplateLiteralTypeSpan:Yt,createKeywordTypeNode:Kt,createTypePredicateNode:W,updateTypePredicateNode:Pe,createTypeReferenceNode:St,updateTypeReferenceNode:A,createFunctionTypeNode:le,updateFunctionTypeNode:V,createConstructorTypeNode:Ne,updateConstructorTypeNode:Tt,createTypeQueryNode:Er,updateTypeQueryNode:Nr,createTypeLiteralNode:fi,updateTypeLiteralNode:oi,createArrayTypeNode:Wr,updateArrayTypeNode:Cn,createTupleTypeNode:Qi,updateTupleTypeNode:pi,createNamedTupleMember:ci,updateNamedTupleMember:In,createOptionalTypeNode:is,updateOptionalTypeNode:pr,createRestTypeNode:uo,updateRestTypeNode:kc,createUnionTypeNode:mo,updateUnionTypeNode:Uo,createIntersectionTypeNode:Ol,updateIntersectionTypeNode:$i,createConditionalTypeNode:zs,updateConditionalTypeNode:Ll,createInferTypeNode:Qa,updateInferTypeNode:oa,createImportTypeNode:Fc,updateImportTypeNode:rc,createParenthesizedType:Mo,updateParenthesizedType:fs,createThisTypeNode:Wt,createTypeOperatorNode:go,updateTypeOperatorNode:Pl,createIndexedAccessTypeNode:Ml,updateIndexedAccessTypeNode:q_,createMappedTypeNode:io,updateMappedTypeNode:Yc,createLiteralTypeNode:se,updateLiteralTypeNode:X,createTemplateLiteralType:zo,updateTemplateLiteralType:Kf,createObjectBindingPattern:Ee,updateObjectBindingPattern:lt,createArrayBindingPattern:Xt,updateArrayBindingPattern:an,createBindingElement:rn,updateBindingElement:En,createArrayLiteralExpression:li,updateArrayLiteralExpression:gn,createObjectLiteralExpression:Ps,updateObjectLiteralExpression:Qo,createPropertyAccessExpression:e&4?(v,D)=>Qr(ho(v,D),262144):ho,updatePropertyAccessExpression:Vc,createPropertyAccessChain:e&4?(v,D,M)=>Qr($a(v,D,M),262144):$a,updatePropertyAccessChain:gl,createElementAccessExpression:ol,updateElementAccessExpression:Pp,createElementAccessChain:Ju,updateElementAccessChain:Te,createCallExpression:Fr,updateCallExpression:Yi,createCallChain:Ds,updateCallChain:Is,createNewExpression:Cc,updateNewExpression:Uc,createTaggedTemplateExpression:Ro,updateTaggedTemplateExpression:qo,createTypeAssertion:dc,updateTypeAssertion:Ec,createParenthesizedExpression:hl,updateParenthesizedExpression:If,createFunctionExpression:__,updateFunctionExpression:Ku,createArrowFunction:ep,updateArrowFunction:am,createDeleteExpression:qm,updateDeleteExpression:_h,createTypeOfExpression:_u,updateTypeOfExpression:fh,createVoidExpression:H_,updateVoidExpression:Ag,createAwaitExpression:f_,updateAwaitExpression:Q,createPrefixUnaryExpression:Ye,updatePrefixUnaryExpression:Ct,createPostfixUnaryExpression:At,updatePostfixUnaryExpression:O,createBinaryExpression:he,updateBinaryExpression:Ft,createConditionalExpression:zr,updateConditionalExpression:Vn,createTemplateExpression:Ln,updateTemplateExpression:ji,createTemplateHead:G_,createTemplateMiddle:p_,createTemplateTail:Cy,createNoSubstitutionTemplateLiteral:ja,createTemplateLiteralLikeNode:Zc,createYieldExpression:Zp,updateYieldExpression:Kp,createSpreadElement:Ci,updateSpreadElement:ph,createClassExpression:h0,updateClassExpression:ed,createOmittedExpression:w2,createExpressionWithTypeArguments:A2,updateExpressionWithTypeArguments:Ff,createAsExpression:om,updateAsExpression:Of,createNonNullExpression:dh,updateNonNullExpression:Ae,createSatisfiesExpression:We,updateSatisfiesExpression:bt,createNonNullChain:Nt,updateNonNullChain:sr,createMetaProperty:Mr,updateMetaProperty:rr,createTemplateSpan:Rr,updateTemplateSpan:Yn,createSemicolonClassElement:Gr,createBlock:zn,updateBlock:Yr,createVariableStatement:ws,updateVariableStatement:Ta,createEmptyStatement:ku,createExpressionStatement:jl,updateExpressionStatement:mh,createIfStatement:Z1,updateIfStatement:qx,createDoStatement:K1,updateDoStatement:V6,createWhileStatement:U6,updateWhileStatement:q6,createForStatement:yS,updateForStatement:N2,createForInStatement:Hx,updateForInStatement:H6,createForOfStatement:Gx,updateForOfStatement:$x,createContinueStatement:Xx,updateContinueStatement:Qx,createBreakStatement:vS,updateBreakStatement:Yx,createReturnStatement:I2,updateReturnStatement:F2,createWithStatement:Ey,updateWithStatement:Py,createSwitchStatement:Ng,updateSwitchStatement:ev,createLabeledStatement:wa,updateLabeledStatement:bS,createThrowStatement:G6,updateThrowStatement:tv,createTryStatement:gh,updateTryStatement:Hm,createDebuggerStatement:tp,createVariableDeclaration:d_,updateVariableDeclaration:$_,createVariableDeclarationList:P_,updateVariableDeclarationList:y0,createFunctionDeclaration:SS,updateFunctionDeclaration:$6,createClassDeclaration:Dy,updateClassDeclaration:rv,createInterfaceDeclaration:Kx,updateInterfaceDeclaration:qc,createTypeAliasDeclaration:v0,updateTypeAliasDeclaration:ek,createEnumDeclaration:xd,updateEnumDeclaration:TS,createModuleDeclaration:Me,updateModuleDeclaration:kd,createModuleBlock:Bl,updateModuleBlock:nv,createCaseBlock:tk,updateCaseBlock:wy,createNamespaceExportDeclaration:b0,updateNamespaceExportDeclaration:S0,createImportEqualsDeclaration:xa,updateImportEqualsDeclaration:Cd,createImportDeclaration:xS,updateImportDeclaration:kS,createImportClause:iv,updateImportClause:CS,createAssertClause:Dp,updateAssertClause:wp,createAssertEntry:hh,updateAssertEntry:rk,createImportTypeAssertionContainer:Ed,updateImportTypeAssertionContainer:X6,createImportAttributes:O2,updateImportAttributes:wi,createImportAttribute:jn,updateImportAttribute:Gm,createNamespaceImport:m_,updateNamespaceImport:EP,createNamespaceExport:yh,updateNamespaceExport:PP,createNamedImports:Ay,updateNamedImports:Ho,createImportSpecifier:_f,updateImportSpecifier:Ig,createExportAssignment:Ap,updateExportAssignment:Ny,createExportDeclaration:td,updateExportDeclaration:vh,createNamedExports:ES,updateNamedExports:Fg,createExportSpecifier:nk,updateExportSpecifier:Og,createMissingDeclaration:cm,createExternalModuleReference:T0,updateExternalModuleReference:Q6,get createJSDocAllType(){return f(319)},get createJSDocUnknownType(){return f(320)},get createJSDocNonNullableType(){return y(322)},get updateJSDocNonNullableType(){return S(322)},get createJSDocNullableType(){return y(321)},get updateJSDocNullableType(){return S(321)},get createJSDocOptionalType(){return g(323)},get updateJSDocOptionalType(){return d(323)},get createJSDocVariadicType(){return g(325)},get updateJSDocVariadicType(){return d(325)},get createJSDocNamepathType(){return g(326)},get updateJSDocNamepathType(){return d(326)},createJSDocFunctionType:DS,updateJSDocFunctionType:rd,createJSDocTypeLiteral:Iy,updateJSDocTypeLiteral:K6,createJSDocTypeExpression:wS,updateJSDocTypeExpression:DP,createJSDocSignature:en,updateJSDocSignature:Dl,createJSDocTemplateTag:lm,updateJSDocTemplateTag:$r,createJSDocTypedefTag:AS,updateJSDocTypedefTag:sv,createJSDocParameterTag:yl,updateJSDocParameterTag:$m,createJSDocPropertyTag:nd,updateJSDocPropertyTag:R2,createJSDocCallbackTag:j2,updateJSDocCallbackTag:Fy,createJSDocOverloadTag:bh,updateJSDocOverloadTag:NS,createJSDocAugmentsTag:id,updateJSDocAugmentsTag:av,createJSDocImplementsTag:Lg,updateJSDocImplementsTag:D_,createJSDocSeeTag:Oy,updateJSDocSeeTag:ik,createJSDocNameReference:ov,updateJSDocNameReference:e4,createJSDocMemberName:B2,updateJSDocMemberName:IS,createJSDocLink:ff,updateJSDocLink:FS,createJSDocLinkCode:mc,updateJSDocLinkCode:cl,createJSDocLinkPlain:OS,updateJSDocLinkPlain:$l,get createJSDocTypeTag(){return w(351)},get updateJSDocTypeTag(){return P(351)},get createJSDocReturnTag(){return w(349)},get updateJSDocReturnTag(){return P(349)},get createJSDocThisTag(){return w(350)},get updateJSDocThisTag(){return P(350)},get createJSDocAuthorTag(){return T(337)},get updateJSDocAuthorTag(){return k(337)},get createJSDocClassTag(){return T(339)},get updateJSDocClassTag(){return k(339)},get createJSDocPublicTag(){return T(340)},get updateJSDocPublicTag(){return k(340)},get createJSDocPrivateTag(){return T(341)},get updateJSDocPrivateTag(){return k(341)},get createJSDocProtectedTag(){return T(342)},get updateJSDocProtectedTag(){return k(342)},get createJSDocReadonlyTag(){return T(343)},get updateJSDocReadonlyTag(){return k(343)},get createJSDocOverrideTag(){return T(344)},get updateJSDocOverrideTag(){return k(344)},get createJSDocDeprecatedTag(){return T(338)},get updateJSDocDeprecatedTag(){return k(338)},get createJSDocThrowsTag(){return w(356)},get updateJSDocThrowsTag(){return P(356)},get createJSDocSatisfiesTag(){return w(357)},get updateJSDocSatisfiesTag(){return P(357)},createJSDocEnumTag:pf,updateJSDocEnumTag:LS,createJSDocUnknownTag:wl,updateJSDocUnknownTag:sk,createJSDocText:MS,updateJSDocText:yo,createJSDocComment:t4,updateJSDocComment:lv,createJsxElement:J2,updateJsxElement:wP,createJsxSelfClosingElement:zu,updateJsxSelfClosingElement:Sh,createJsxOpeningElement:um,updateJsxOpeningElement:ak,createJsxClosingElement:X_,updateJsxClosingElement:ok,createJsxFragment:w_,createJsxText:k0,updateJsxText:RS,createJsxOpeningFragment:r4,createJsxJsxClosingFragment:n4,updateJsxFragment:ck,createJsxAttribute:jS,updateJsxAttribute:i4,createJsxAttributes:Ry,updateJsxAttributes:Q_,createJsxSpreadAttribute:Xm,updateJsxSpreadAttribute:s4,createJsxExpression:BS,updateJsxExpression:Na,createJsxNamespacedName:un,updateJsxNamespacedName:Mf,createCaseClause:e_,updateCaseClause:z2,createDefaultClause:a4,updateDefaultClause:uv,createHeritageClause:W2,updateHeritageClause:JS,createCatchClause:Mg,updateCatchClause:Pd,createPropertyAssignment:Rf,updatePropertyAssignment:sd,createShorthandPropertyAssignment:Rg,updateShorthandPropertyAssignment:jg,createSpreadAssignment:Oc,updateSpreadAssignment:o4,createEnumMember:np,updateEnumMember:Qm,createSourceFile:jf,updateSourceFile:so,createRedirectedSourceFile:V2,createBundle:U2,updateBundle:q2,createUnparsedSource:xh,createUnparsedPrologue:fv,createUnparsedPrepend:C,createUnparsedTextLike:te,createUnparsedSyntheticReference:it,createInputFiles:Ut,createSyntheticExpression:vn,createSyntaxList:gi,createNotEmittedStatement:ti,createPartiallyEmittedExpression:Li,updatePartiallyEmittedExpression:Gs,createCommaListExpression:t_,updateCommaListExpression:ip,createSyntheticReferenceExpression:By,updateSyntheticReferenceExpression:ni,cloneNode:zy,get createComma(){return o(28)},get createAssignment(){return o(64)},get createLogicalOr(){return o(57)},get createLogicalAnd(){return o(56)},get createBitwiseOr(){return o(52)},get createBitwiseXor(){return o(53)},get createBitwiseAnd(){return o(51)},get createStrictEquality(){return o(37)},get createStrictInequality(){return o(38)},get createEquality(){return o(35)},get createInequality(){return o(36)},get createLessThan(){return o(30)},get createLessThanEquals(){return o(33)},get createGreaterThan(){return o(32)},get createGreaterThanEquals(){return o(34)},get createLeftShift(){return o(48)},get createRightShift(){return o(49)},get createUnsignedRightShift(){return o(50)},get createAdd(){return o(40)},get createSubtract(){return o(41)},get createMultiply(){return o(42)},get createDivide(){return o(44)},get createModulo(){return o(45)},get createExponent(){return o(43)},get createPrefixPlus(){return c(40)},get createPrefixMinus(){return c(41)},get createPrefixIncrement(){return c(46)},get createPrefixDecrement(){return c(47)},get createBitwiseNot(){return c(55)},get createLogicalNot(){return c(54)},get createPostfixIncrement(){return u(46)},get createPostfixDecrement(){return u(47)},createImmediatelyInvokedFunctionExpression:WS,createImmediatelyInvokedArrowFunction:H2,createVoidZero:_m,createExportDefault:Zm,createExternalModuleExport:c4,createTypeCheck:VS,createIsNotTypeCheck:NR,createMethodCall:Wy,createGlobalMethodCall:Dd,createFunctionBindCall:nI,createFunctionCallCall:iI,createFunctionApplyCall:pv,createArraySliceCall:AP,createArrayConcatCall:Km,createObjectDefinePropertyCall:fk,createObjectGetOwnPropertyDescriptorCall:sI,createReflectGetCall:fm,createReflectSetCall:G,createPropertyDescriptor:je,createCallBinding:ui,createAssignmentTargetWrapper:Zn,inlineExpressions:Ai,getInternalName:eo,getLocalName:Da,getExportName:sp,getDeclarationName:pm,getNamespaceMemberName:Bg,getExternalModuleOrNamespaceExportName:kh,restoreOuterExpressions:Ot,restoreEnclosingLabel:Tn,createUseStrictPrologue:A_,copyPrologue:Ch,copyStandardPrologue:US,copyCustomPrologue:l4,ensureUseStrict:NP,liftToBlock:IP,mergeLexicalEnvironment:Eh,replaceModifiers:Uy,replaceDecoratorsAndModifiers:u4,replacePropertyName:df};return er(Fne,v=>v(F)),F;function J(v,D){if(v===void 0||v===Ve)v=[];else if(Mv(v)){if(D===void 0||v.hasTrailingComma===D)return v.transformFlags===void 0&&R1e(v),E.attachNodeArrayDebugInfo(v),v;const ze=v.slice();return ze.pos=v.pos,ze.end=v.end,ze.hasTrailingComma=D,ze.transformFlags=v.transformFlags,E.attachNodeArrayDebugInfo(ze),ze}const M=v.length,ie=M>=1&&M<=4?v.slice():v;return ie.pos=-1,ie.end=-1,ie.hasTrailingComma=!!D,ie.transformFlags=0,R1e(ie),E.attachNodeArrayDebugInfo(ie),ie}function U(v){return t.createBaseNode(v)}function $(v){const D=U(v);return D.symbol=void 0,D.localSymbol=void 0,D}function j(v,D){return v!==D&&(v.typeArguments=D.typeArguments),Vr(v,D)}function re(v,D=0){const M=typeof v=="number"?v+"":v;E.assert(M.charCodeAt(0)!==45,"Negative numbers should be created in combination with createPrefixUnaryExpression");const ie=$(9);return ie.text=M,ie.numericLiteralFlags=D,D&384&&(ie.transformFlags|=1024),ie}function R(v){const D=ft(10);return D.text=typeof v=="string"?v:e2(v)+"n",D.transformFlags|=32,D}function Y(v,D){const M=$(11);return M.text=v,M.singleQuote=D,M}function ue(v,D,M){const ie=Y(v,D);return ie.hasExtendedUnicodeEscape=M,M&&(ie.transformFlags|=1024),ie}function pe(v){const D=Y(yp(v),void 0);return D.textSourceNode=v,D}function H(v){const D=ft(14);return D.text=v,D}function q(v,D){switch(v){case 9:return re(D,0);case 10:return R(D);case 11:return ue(D,void 0);case 12:return k0(D,!1);case 13:return k0(D,!0);case 14:return H(D);case 15:return Zc(v,D,void 0,0)}}function ee(v){const D=t.createBaseIdentifierNode(80);return D.escapedText=v,D.jsDoc=void 0,D.flowNode=void 0,D.symbol=void 0,D}function oe(v,D,M,ie){const ze=ee(Wo(v));return Tw(ze,{flags:D,id:JF,prefix:M,suffix:ie}),JF++,ze}function Se(v,D,M){D===void 0&&v&&(D=Ov(v)),D===80&&(D=void 0);const ie=ee(Wo(v));return M&&(ie.flags|=256),ie.escapedText==="await"&&(ie.transformFlags|=67108864),ie.flags&256&&(ie.transformFlags|=1024),ie}function ae(v,D,M,ie){let ze=1;D&&(ze|=8);const Lt=oe("",ze,M,ie);return v&&v(Lt),Lt}function K(v){let D=2;return v&&(D|=8),oe("",D,void 0,void 0)}function fe(v,D=0,M,ie){return E.assert(!(D&7),"Argument out of range: flags"),E.assert((D&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),oe(v,3|D,M,ie)}function ke(v,D=0,M,ie){E.assert(!(D&7),"Argument out of range: flags");const ze=v?pg(v)?j1(!1,M,v,ie,on):`generated@${Oa(v)}`:"";(M||ie)&&(D|=16);const Lt=oe(ze,4|D,M,ie);return Lt.original=v,Lt}function Oe(v){const D=t.createBasePrivateIdentifierNode(81);return D.escapedText=v,D.transformFlags|=16777216,D}function me(v){return Vi(v,"#")||E.fail("First character of private identifier must be #: "+v),Oe(Wo(v))}function be(v,D,M,ie){const ze=Oe(Wo(v));return Tw(ze,{flags:D,id:JF,prefix:M,suffix:ie}),JF++,ze}function xe(v,D,M){v&&!Vi(v,"#")&&E.fail("First character of private identifier must be #: "+v);const ie=8|(v?3:1);return be(v??"",ie,D,M)}function De(v,D,M){const ie=pg(v)?j1(!0,D,v,M,on):`#generated@${Oa(v)}`,Lt=be(ie,4|(D||M?16:0),D,M);return Lt.original=v,Lt}function ft(v){return t.createBaseTokenNode(v)}function ge(v){E.assert(v>=0&&v<=165,"Invalid token"),E.assert(v<=15||v>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),E.assert(v<=9||v>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),E.assert(v!==80,"Invalid token. Use 'createIdentifier' to create identifiers");const D=ft(v);let M=0;switch(v){case 134:M=384;break;case 160:M=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:M=1;break;case 108:M=134218752,D.flowNode=void 0;break;case 126:M=1024;break;case 129:M=16777216;break;case 110:M=16384,D.flowNode=void 0;break}return M&&(D.transformFlags|=M),D}function Fe(){return ge(108)}function $e(){return ge(110)}function Pt(){return ge(106)}function at(){return ge(112)}function Je(){return ge(97)}function pt(v){return ge(v)}function zt(v){const D=[];return v&32&&D.push(pt(95)),v&128&&D.push(pt(138)),v&2048&&D.push(pt(90)),v&4096&&D.push(pt(87)),v&1&&D.push(pt(125)),v&2&&D.push(pt(123)),v&4&&D.push(pt(124)),v&64&&D.push(pt(128)),v&256&&D.push(pt(126)),v&16&&D.push(pt(164)),v&8&&D.push(pt(148)),v&512&&D.push(pt(129)),v&1024&&D.push(pt(134)),v&8192&&D.push(pt(103)),v&16384&&D.push(pt(147)),D.length?D:void 0}function Vt(v,D){const M=U(166);return M.left=v,M.right=Lc(D),M.transformFlags|=cn(M.left)|hw(M.right),M.flowNode=void 0,M}function hr(v,D,M){return v.left!==D||v.right!==M?Vr(Vt(D,M),v):v}function Lr(v){const D=U(167);return D.expression=i().parenthesizeExpressionOfComputedPropertyName(v),D.transformFlags|=cn(D.expression)|1024|131072,D}function tr(v,D){return v.expression!==D?Vr(Lr(D),v):v}function jt(v,D,M,ie){const ze=$(168);return ze.modifiers=ya(v),ze.name=Lc(D),ze.constraint=M,ze.default=ie,ze.transformFlags=1,ze.expression=void 0,ze.jsDoc=void 0,ze}function Rt(v,D,M,ie,ze){return v.modifiers!==D||v.name!==M||v.constraint!==ie||v.default!==ze?Vr(jt(D,M,ie,ze),v):v}function Kn(v,D,M,ie,ze,Lt){const nn=$(169);return nn.modifiers=ya(v),nn.dotDotDotToken=D,nn.name=Lc(M),nn.questionToken=ie,nn.type=ze,nn.initializer=pk(Lt),Yv(nn.name)?nn.transformFlags=1:nn.transformFlags=Sa(nn.modifiers)|cn(nn.dotDotDotToken)|ly(nn.name)|cn(nn.questionToken)|cn(nn.initializer)|(nn.questionToken??nn.type?1:0)|(nn.dotDotDotToken??nn.initializer?1024:0)|($d(nn.modifiers)&31?8192:0),nn.jsDoc=void 0,nn}function Ji(v,D,M,ie,ze,Lt,nn){return v.modifiers!==D||v.dotDotDotToken!==M||v.name!==ie||v.questionToken!==ze||v.type!==Lt||v.initializer!==nn?Vr(Kn(D,M,ie,ze,Lt,nn),v):v}function yi(v){const D=U(170);return D.expression=i().parenthesizeLeftSideOfAccess(v,!1),D.transformFlags|=cn(D.expression)|1|8192|33554432,D}function os(v,D){return v.expression!==D?Vr(yi(D),v):v}function yr(v,D,M,ie){const ze=$(171);return ze.modifiers=ya(v),ze.name=Lc(D),ze.type=ie,ze.questionToken=M,ze.transformFlags=1,ze.initializer=void 0,ze.jsDoc=void 0,ze}function _i(v,D,M,ie,ze){return v.modifiers!==D||v.name!==M||v.questionToken!==ie||v.type!==ze?ln(yr(D,M,ie,ze),v):v}function ln(v,D){return v!==D&&(v.initializer=D.initializer),Vr(v,D)}function Ht(v,D,M,ie,ze){const Lt=$(172);Lt.modifiers=ya(v),Lt.name=Lc(D),Lt.questionToken=M&&uy(M)?M:void 0,Lt.exclamationToken=M&&Pw(M)?M:void 0,Lt.type=ie,Lt.initializer=pk(ze);const nn=Lt.flags&33554432||$d(Lt.modifiers)&128;return Lt.transformFlags=Sa(Lt.modifiers)|ly(Lt.name)|cn(Lt.initializer)|(nn||Lt.questionToken||Lt.exclamationToken||Lt.type?1:0)|(Pa(Lt.name)||$d(Lt.modifiers)&256&&Lt.initializer?8192:0)|16777216,Lt.jsDoc=void 0,Lt}function Ue(v,D,M,ie,ze,Lt){return v.modifiers!==D||v.name!==M||v.questionToken!==(ie!==void 0&&uy(ie)?ie:void 0)||v.exclamationToken!==(ie!==void 0&&Pw(ie)?ie:void 0)||v.type!==ze||v.initializer!==Lt?Vr(Ht(D,M,ie,ze,Lt),v):v}function Et(v,D,M,ie,ze,Lt){const nn=$(173);return nn.modifiers=ya(v),nn.name=Lc(D),nn.questionToken=M,nn.typeParameters=ya(ie),nn.parameters=ya(ze),nn.type=Lt,nn.transformFlags=1,nn.jsDoc=void 0,nn.locals=void 0,nn.nextContainer=void 0,nn.typeArguments=void 0,nn}function fr(v,D,M,ie,ze,Lt,nn){return v.modifiers!==D||v.name!==M||v.questionToken!==ie||v.typeParameters!==ze||v.parameters!==Lt||v.type!==nn?j(Et(D,M,ie,ze,Lt,nn),v):v}function Hn(v,D,M,ie,ze,Lt,nn,Mi){const vo=$(174);if(vo.modifiers=ya(v),vo.asteriskToken=D,vo.name=Lc(M),vo.questionToken=ie,vo.exclamationToken=void 0,vo.typeParameters=ya(ze),vo.parameters=J(Lt),vo.type=nn,vo.body=Mi,!vo.body)vo.transformFlags=1;else{const wd=$d(vo.modifiers)&1024,Hy=!!vo.asteriskToken,ad=wd&&Hy;vo.transformFlags=Sa(vo.modifiers)|cn(vo.asteriskToken)|ly(vo.name)|cn(vo.questionToken)|Sa(vo.typeParameters)|Sa(vo.parameters)|cn(vo.type)|cn(vo.body)&-67108865|(ad?128:wd?256:Hy?2048:0)|(vo.questionToken||vo.typeParameters||vo.type?1:0)|1024}return vo.typeArguments=void 0,vo.jsDoc=void 0,vo.locals=void 0,vo.nextContainer=void 0,vo.flowNode=void 0,vo.endFlowNode=void 0,vo.returnFlowNode=void 0,vo}function ei(v,D,M,ie,ze,Lt,nn,Mi,vo){return v.modifiers!==D||v.asteriskToken!==M||v.name!==ie||v.questionToken!==ze||v.typeParameters!==Lt||v.parameters!==nn||v.type!==Mi||v.body!==vo?Ii(Hn(D,M,ie,ze,Lt,nn,Mi,vo),v):v}function Ii(v,D){return v!==D&&(v.exclamationToken=D.exclamationToken),Vr(v,D)}function ns(v){const D=$(175);return D.body=v,D.transformFlags=cn(v)|16777216,D.modifiers=void 0,D.jsDoc=void 0,D.locals=void 0,D.nextContainer=void 0,D.endFlowNode=void 0,D.returnFlowNode=void 0,D}function Vs(v,D){return v.body!==D?_a(ns(D),v):v}function _a(v,D){return v!==D&&(v.modifiers=D.modifiers),Vr(v,D)}function cr(v,D,M){const ie=$(176);return ie.modifiers=ya(v),ie.parameters=J(D),ie.body=M,ie.transformFlags=Sa(ie.modifiers)|Sa(ie.parameters)|cn(ie.body)&-67108865|1024,ie.typeParameters=void 0,ie.type=void 0,ie.typeArguments=void 0,ie.jsDoc=void 0,ie.locals=void 0,ie.nextContainer=void 0,ie.endFlowNode=void 0,ie.returnFlowNode=void 0,ie}function br(v,D,M,ie){return v.modifiers!==D||v.parameters!==M||v.body!==ie?Le(cr(D,M,ie),v):v}function Le(v,D){return v!==D&&(v.typeParameters=D.typeParameters,v.type=D.type),j(v,D)}function rt(v,D,M,ie,ze){const Lt=$(177);return Lt.modifiers=ya(v),Lt.name=Lc(D),Lt.parameters=J(M),Lt.type=ie,Lt.body=ze,Lt.body?Lt.transformFlags=Sa(Lt.modifiers)|ly(Lt.name)|Sa(Lt.parameters)|cn(Lt.type)|cn(Lt.body)&-67108865|(Lt.type?1:0):Lt.transformFlags=1,Lt.typeArguments=void 0,Lt.typeParameters=void 0,Lt.jsDoc=void 0,Lt.locals=void 0,Lt.nextContainer=void 0,Lt.flowNode=void 0,Lt.endFlowNode=void 0,Lt.returnFlowNode=void 0,Lt}function tt(v,D,M,ie,ze,Lt){return v.modifiers!==D||v.name!==M||v.parameters!==ie||v.type!==ze||v.body!==Lt?yt(rt(D,M,ie,ze,Lt),v):v}function yt(v,D){return v!==D&&(v.typeParameters=D.typeParameters),j(v,D)}function ne(v,D,M,ie){const ze=$(178);return ze.modifiers=ya(v),ze.name=Lc(D),ze.parameters=J(M),ze.body=ie,ze.body?ze.transformFlags=Sa(ze.modifiers)|ly(ze.name)|Sa(ze.parameters)|cn(ze.body)&-67108865|(ze.type?1:0):ze.transformFlags=1,ze.typeArguments=void 0,ze.typeParameters=void 0,ze.type=void 0,ze.jsDoc=void 0,ze.locals=void 0,ze.nextContainer=void 0,ze.flowNode=void 0,ze.endFlowNode=void 0,ze.returnFlowNode=void 0,ze}function we(v,D,M,ie,ze){return v.modifiers!==D||v.name!==M||v.parameters!==ie||v.body!==ze?et(ne(D,M,ie,ze),v):v}function et(v,D){return v!==D&&(v.typeParameters=D.typeParameters,v.type=D.type),j(v,D)}function B(v,D,M){const ie=$(179);return ie.typeParameters=ya(v),ie.parameters=ya(D),ie.type=M,ie.transformFlags=1,ie.jsDoc=void 0,ie.locals=void 0,ie.nextContainer=void 0,ie.typeArguments=void 0,ie}function Ge(v,D,M,ie){return v.typeParameters!==D||v.parameters!==M||v.type!==ie?j(B(D,M,ie),v):v}function mt(v,D,M){const ie=$(180);return ie.typeParameters=ya(v),ie.parameters=ya(D),ie.type=M,ie.transformFlags=1,ie.jsDoc=void 0,ie.locals=void 0,ie.nextContainer=void 0,ie.typeArguments=void 0,ie}function Be(v,D,M,ie){return v.typeParameters!==D||v.parameters!==M||v.type!==ie?j(mt(D,M,ie),v):v}function nt(v,D,M){const ie=$(181);return ie.modifiers=ya(v),ie.parameters=ya(D),ie.type=M,ie.transformFlags=1,ie.jsDoc=void 0,ie.locals=void 0,ie.nextContainer=void 0,ie.typeArguments=void 0,ie}function Dt(v,D,M,ie){return v.parameters!==M||v.type!==ie||v.modifiers!==D?j(nt(D,M,ie),v):v}function ir(v,D){const M=U(204);return M.type=v,M.literal=D,M.transformFlags=1,M}function Yt(v,D,M){return v.type!==D||v.literal!==M?Vr(ir(D,M),v):v}function Kt(v){return ge(v)}function W(v,D,M){const ie=U(182);return ie.assertsModifier=v,ie.parameterName=Lc(D),ie.type=M,ie.transformFlags=1,ie}function Pe(v,D,M,ie){return v.assertsModifier!==D||v.parameterName!==M||v.type!==ie?Vr(W(D,M,ie),v):v}function St(v,D){const M=U(183);return M.typeName=Lc(v),M.typeArguments=D&&i().parenthesizeTypeArguments(J(D)),M.transformFlags=1,M}function A(v,D,M){return v.typeName!==D||v.typeArguments!==M?Vr(St(D,M),v):v}function le(v,D,M){const ie=$(184);return ie.typeParameters=ya(v),ie.parameters=ya(D),ie.type=M,ie.transformFlags=1,ie.modifiers=void 0,ie.jsDoc=void 0,ie.locals=void 0,ie.nextContainer=void 0,ie.typeArguments=void 0,ie}function V(v,D,M,ie){return v.typeParameters!==D||v.parameters!==M||v.type!==ie?ce(le(D,M,ie),v):v}function ce(v,D){return v!==D&&(v.modifiers=D.modifiers),j(v,D)}function Ne(...v){return v.length===4?Ce(...v):v.length===3?_t(...v):E.fail("Incorrect number of arguments specified.")}function Ce(v,D,M,ie){const ze=$(185);return ze.modifiers=ya(v),ze.typeParameters=ya(D),ze.parameters=ya(M),ze.type=ie,ze.transformFlags=1,ze.jsDoc=void 0,ze.locals=void 0,ze.nextContainer=void 0,ze.typeArguments=void 0,ze}function _t(v,D,M){return Ce(void 0,v,D,M)}function Tt(...v){return v.length===5?Jt(...v):v.length===4?ar(...v):E.fail("Incorrect number of arguments specified.")}function Jt(v,D,M,ie,ze){return v.modifiers!==D||v.typeParameters!==M||v.parameters!==ie||v.type!==ze?j(Ne(D,M,ie,ze),v):v}function ar(v,D,M,ie){return Jt(v,v.modifiers,D,M,ie)}function Er(v,D){const M=U(186);return M.exprName=v,M.typeArguments=D&&i().parenthesizeTypeArguments(D),M.transformFlags=1,M}function Nr(v,D,M){return v.exprName!==D||v.typeArguments!==M?Vr(Er(D,M),v):v}function fi(v){const D=$(187);return D.members=J(v),D.transformFlags=1,D}function oi(v,D){return v.members!==D?Vr(fi(D),v):v}function Wr(v){const D=U(188);return D.elementType=i().parenthesizeNonArrayTypeOfPostfixType(v),D.transformFlags=1,D}function Cn(v,D){return v.elementType!==D?Vr(Wr(D),v):v}function Qi(v){const D=U(189);return D.elements=J(i().parenthesizeElementTypesOfTupleType(v)),D.transformFlags=1,D}function pi(v,D){return v.elements!==D?Vr(Qi(D),v):v}function ci(v,D,M,ie){const ze=$(202);return ze.dotDotDotToken=v,ze.name=D,ze.questionToken=M,ze.type=ie,ze.transformFlags=1,ze.jsDoc=void 0,ze}function In(v,D,M,ie,ze){return v.dotDotDotToken!==D||v.name!==M||v.questionToken!==ie||v.type!==ze?Vr(ci(D,M,ie,ze),v):v}function is(v){const D=U(190);return D.type=i().parenthesizeTypeOfOptionalType(v),D.transformFlags=1,D}function pr(v,D){return v.type!==D?Vr(is(D),v):v}function uo(v){const D=U(191);return D.type=v,D.transformFlags=1,D}function kc(v,D){return v.type!==D?Vr(uo(D),v):v}function _s(v,D,M){const ie=U(v);return ie.types=F.createNodeArray(M(D)),ie.transformFlags=1,ie}function Ra(v,D,M){return v.types!==D?Vr(_s(v.kind,D,M),v):v}function mo(v){return _s(192,v,i().parenthesizeConstituentTypesOfUnionType)}function Uo(v,D){return Ra(v,D,i().parenthesizeConstituentTypesOfUnionType)}function Ol(v){return _s(193,v,i().parenthesizeConstituentTypesOfIntersectionType)}function $i(v,D){return Ra(v,D,i().parenthesizeConstituentTypesOfIntersectionType)}function zs(v,D,M,ie){const ze=U(194);return ze.checkType=i().parenthesizeCheckTypeOfConditionalType(v),ze.extendsType=i().parenthesizeExtendsTypeOfConditionalType(D),ze.trueType=M,ze.falseType=ie,ze.transformFlags=1,ze.locals=void 0,ze.nextContainer=void 0,ze}function Ll(v,D,M,ie,ze){return v.checkType!==D||v.extendsType!==M||v.trueType!==ie||v.falseType!==ze?Vr(zs(D,M,ie,ze),v):v}function Qa(v){const D=U(195);return D.typeParameter=v,D.transformFlags=1,D}function oa(v,D){return v.typeParameter!==D?Vr(Qa(D),v):v}function zo(v,D){const M=U(203);return M.head=v,M.templateSpans=J(D),M.transformFlags=1,M}function Kf(v,D,M){return v.head!==D||v.templateSpans!==M?Vr(zo(D,M),v):v}function Fc(v,D,M,ie,ze=!1){const Lt=U(205);return Lt.argument=v,Lt.attributes=D,Lt.assertions&&Lt.assertions.assertClause&&Lt.attributes&&(Lt.assertions.assertClause=Lt.attributes),Lt.qualifier=M,Lt.typeArguments=ie&&i().parenthesizeTypeArguments(ie),Lt.isTypeOf=ze,Lt.transformFlags=1,Lt}function rc(v,D,M,ie,ze,Lt=v.isTypeOf){return v.argument!==D||v.attributes!==M||v.qualifier!==ie||v.typeArguments!==ze||v.isTypeOf!==Lt?Vr(Fc(D,M,ie,ze,Lt),v):v}function Mo(v){const D=U(196);return D.type=v,D.transformFlags=1,D}function fs(v,D){return v.type!==D?Vr(Mo(D),v):v}function Wt(){const v=U(197);return v.transformFlags=1,v}function go(v,D){const M=U(198);return M.operator=v,M.type=v===148?i().parenthesizeOperandOfReadonlyTypeOperator(D):i().parenthesizeOperandOfTypeOperator(D),M.transformFlags=1,M}function Pl(v,D){return v.type!==D?Vr(go(v.operator,D),v):v}function Ml(v,D){const M=U(199);return M.objectType=i().parenthesizeNonArrayTypeOfPostfixType(v),M.indexType=D,M.transformFlags=1,M}function q_(v,D,M){return v.objectType!==D||v.indexType!==M?Vr(Ml(D,M),v):v}function io(v,D,M,ie,ze,Lt){const nn=$(200);return nn.readonlyToken=v,nn.typeParameter=D,nn.nameType=M,nn.questionToken=ie,nn.type=ze,nn.members=Lt&&J(Lt),nn.transformFlags=1,nn.locals=void 0,nn.nextContainer=void 0,nn}function Yc(v,D,M,ie,ze,Lt,nn){return v.readonlyToken!==D||v.typeParameter!==M||v.nameType!==ie||v.questionToken!==ze||v.type!==Lt||v.members!==nn?Vr(io(D,M,ie,ze,Lt,nn),v):v}function se(v){const D=U(201);return D.literal=v,D.transformFlags=1,D}function X(v,D){return v.literal!==D?Vr(se(D),v):v}function Ee(v){const D=U(206);return D.elements=J(v),D.transformFlags|=Sa(D.elements)|1024|524288,D.transformFlags&32768&&(D.transformFlags|=65664),D}function lt(v,D){return v.elements!==D?Vr(Ee(D),v):v}function Xt(v){const D=U(207);return D.elements=J(v),D.transformFlags|=Sa(D.elements)|1024|524288,D}function an(v,D){return v.elements!==D?Vr(Xt(D),v):v}function rn(v,D,M,ie){const ze=$(208);return ze.dotDotDotToken=v,ze.propertyName=Lc(D),ze.name=Lc(M),ze.initializer=pk(ie),ze.transformFlags|=cn(ze.dotDotDotToken)|ly(ze.propertyName)|ly(ze.name)|cn(ze.initializer)|(ze.dotDotDotToken?32768:0)|1024,ze.flowNode=void 0,ze}function En(v,D,M,ie,ze){return v.propertyName!==M||v.dotDotDotToken!==D||v.name!==ie||v.initializer!==ze?Vr(rn(D,M,ie,ze),v):v}function li(v,D){const M=U(209),ie=v&&Po(v),ze=J(v,ie&&pl(ie)?!0:void 0);return M.elements=i().parenthesizeExpressionsOfCommaDelimitedList(ze),M.multiLine=D,M.transformFlags|=Sa(M.elements),M}function gn(v,D){return v.elements!==D?Vr(li(D,v.multiLine),v):v}function Ps(v,D){const M=$(210);return M.properties=J(v),M.multiLine=D,M.transformFlags|=Sa(M.properties),M.jsDoc=void 0,M}function Qo(v,D){return v.properties!==D?Vr(Ps(D,v.multiLine),v):v}function ml(v,D,M){const ie=$(211);return ie.expression=v,ie.questionDotToken=D,ie.name=M,ie.transformFlags=cn(ie.expression)|cn(ie.questionDotToken)|(Ie(ie.name)?hw(ie.name):cn(ie.name)|536870912),ie.jsDoc=void 0,ie.flowNode=void 0,ie}function ho(v,D){const M=ml(i().parenthesizeLeftSideOfAccess(v,!1),void 0,Lc(D));return u3(v)&&(M.transformFlags|=384),M}function Vc(v,D,M){return q7(v)?gl(v,D,v.questionDotToken,Ls(M,Ie)):v.expression!==D||v.name!==M?Vr(ho(D,M),v):v}function $a(v,D,M){const ie=ml(i().parenthesizeLeftSideOfAccess(v,!0),D,Lc(M));return ie.flags|=64,ie.transformFlags|=32,ie}function gl(v,D,M,ie){return E.assert(!!(v.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),v.expression!==D||v.questionDotToken!==M||v.name!==ie?Vr($a(D,M,ie),v):v}function E_(v,D,M){const ie=$(212);return ie.expression=v,ie.questionDotToken=D,ie.argumentExpression=M,ie.transformFlags|=cn(ie.expression)|cn(ie.questionDotToken)|cn(ie.argumentExpression),ie.jsDoc=void 0,ie.flowNode=void 0,ie}function ol(v,D){const M=E_(i().parenthesizeLeftSideOfAccess(v,!1),void 0,mv(D));return u3(v)&&(M.transformFlags|=384),M}function Pp(v,D,M){return XJ(v)?Te(v,D,v.questionDotToken,M):v.expression!==D||v.argumentExpression!==M?Vr(ol(D,M),v):v}function Ju(v,D,M){const ie=E_(i().parenthesizeLeftSideOfAccess(v,!0),D,mv(M));return ie.flags|=64,ie.transformFlags|=32,ie}function Te(v,D,M,ie){return E.assert(!!(v.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),v.expression!==D||v.questionDotToken!==M||v.argumentExpression!==ie?Vr(Ju(D,M,ie),v):v}function kt(v,D,M,ie){const ze=$(213);return ze.expression=v,ze.questionDotToken=D,ze.typeArguments=M,ze.arguments=ie,ze.transformFlags|=cn(ze.expression)|cn(ze.questionDotToken)|Sa(ze.typeArguments)|Sa(ze.arguments),ze.typeArguments&&(ze.transformFlags|=1),o_(ze.expression)&&(ze.transformFlags|=16384),ze}function Fr(v,D,M){const ie=kt(i().parenthesizeLeftSideOfAccess(v,!1),void 0,ya(D),i().parenthesizeExpressionsOfCommaDelimitedList(J(M)));return _3(ie.expression)&&(ie.transformFlags|=8388608),ie}function Yi(v,D,M,ie){return yb(v)?Is(v,D,v.questionDotToken,M,ie):v.expression!==D||v.typeArguments!==M||v.arguments!==ie?Vr(Fr(D,M,ie),v):v}function Ds(v,D,M,ie){const ze=kt(i().parenthesizeLeftSideOfAccess(v,!0),D,ya(M),i().parenthesizeExpressionsOfCommaDelimitedList(J(ie)));return ze.flags|=64,ze.transformFlags|=32,ze}function Is(v,D,M,ie,ze){return E.assert(!!(v.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),v.expression!==D||v.questionDotToken!==M||v.typeArguments!==ie||v.arguments!==ze?Vr(Ds(D,M,ie,ze),v):v}function Cc(v,D,M){const ie=$(214);return ie.expression=i().parenthesizeExpressionOfNew(v),ie.typeArguments=ya(D),ie.arguments=M?i().parenthesizeExpressionsOfCommaDelimitedList(M):void 0,ie.transformFlags|=cn(ie.expression)|Sa(ie.typeArguments)|Sa(ie.arguments)|32,ie.typeArguments&&(ie.transformFlags|=1),ie}function Uc(v,D,M,ie){return v.expression!==D||v.typeArguments!==M||v.arguments!==ie?Vr(Cc(D,M,ie),v):v}function Ro(v,D,M){const ie=U(215);return ie.tag=i().parenthesizeLeftSideOfAccess(v,!1),ie.typeArguments=ya(D),ie.template=M,ie.transformFlags|=cn(ie.tag)|Sa(ie.typeArguments)|cn(ie.template)|1024,ie.typeArguments&&(ie.transformFlags|=1),oW(ie.template)&&(ie.transformFlags|=128),ie}function qo(v,D,M,ie){return v.tag!==D||v.typeArguments!==M||v.template!==ie?Vr(Ro(D,M,ie),v):v}function dc(v,D){const M=U(216);return M.expression=i().parenthesizeOperandOfPrefixUnary(D),M.type=v,M.transformFlags|=cn(M.expression)|cn(M.type)|1,M}function Ec(v,D,M){return v.type!==D||v.expression!==M?Vr(dc(D,M),v):v}function hl(v){const D=U(217);return D.expression=v,D.transformFlags=cn(D.expression),D.jsDoc=void 0,D}function If(v,D){return v.expression!==D?Vr(hl(D),v):v}function __(v,D,M,ie,ze,Lt,nn){const Mi=$(218);Mi.modifiers=ya(v),Mi.asteriskToken=D,Mi.name=Lc(M),Mi.typeParameters=ya(ie),Mi.parameters=J(ze),Mi.type=Lt,Mi.body=nn;const vo=$d(Mi.modifiers)&1024,wd=!!Mi.asteriskToken,Hy=vo&&wd;return Mi.transformFlags=Sa(Mi.modifiers)|cn(Mi.asteriskToken)|ly(Mi.name)|Sa(Mi.typeParameters)|Sa(Mi.parameters)|cn(Mi.type)|cn(Mi.body)&-67108865|(Hy?128:vo?256:wd?2048:0)|(Mi.typeParameters||Mi.type?1:0)|4194304,Mi.typeArguments=void 0,Mi.jsDoc=void 0,Mi.locals=void 0,Mi.nextContainer=void 0,Mi.flowNode=void 0,Mi.endFlowNode=void 0,Mi.returnFlowNode=void 0,Mi}function Ku(v,D,M,ie,ze,Lt,nn,Mi){return v.name!==ie||v.modifiers!==D||v.asteriskToken!==M||v.typeParameters!==ze||v.parameters!==Lt||v.type!==nn||v.body!==Mi?j(__(D,M,ie,ze,Lt,nn,Mi),v):v}function ep(v,D,M,ie,ze,Lt){const nn=$(219);nn.modifiers=ya(v),nn.typeParameters=ya(D),nn.parameters=J(M),nn.type=ie,nn.equalsGreaterThanToken=ze??ge(39),nn.body=i().parenthesizeConciseBodyOfArrowFunction(Lt);const Mi=$d(nn.modifiers)&1024;return nn.transformFlags=Sa(nn.modifiers)|Sa(nn.typeParameters)|Sa(nn.parameters)|cn(nn.type)|cn(nn.equalsGreaterThanToken)|cn(nn.body)&-67108865|(nn.typeParameters||nn.type?1:0)|(Mi?16640:0)|1024,nn.typeArguments=void 0,nn.jsDoc=void 0,nn.locals=void 0,nn.nextContainer=void 0,nn.flowNode=void 0,nn.endFlowNode=void 0,nn.returnFlowNode=void 0,nn}function am(v,D,M,ie,ze,Lt,nn){return v.modifiers!==D||v.typeParameters!==M||v.parameters!==ie||v.type!==ze||v.equalsGreaterThanToken!==Lt||v.body!==nn?j(ep(D,M,ie,ze,Lt,nn),v):v}function qm(v){const D=U(220);return D.expression=i().parenthesizeOperandOfPrefixUnary(v),D.transformFlags|=cn(D.expression),D}function _h(v,D){return v.expression!==D?Vr(qm(D),v):v}function _u(v){const D=U(221);return D.expression=i().parenthesizeOperandOfPrefixUnary(v),D.transformFlags|=cn(D.expression),D}function fh(v,D){return v.expression!==D?Vr(_u(D),v):v}function H_(v){const D=U(222);return D.expression=i().parenthesizeOperandOfPrefixUnary(v),D.transformFlags|=cn(D.expression),D}function Ag(v,D){return v.expression!==D?Vr(H_(D),v):v}function f_(v){const D=U(223);return D.expression=i().parenthesizeOperandOfPrefixUnary(v),D.transformFlags|=cn(D.expression)|256|128|2097152,D}function Q(v,D){return v.expression!==D?Vr(f_(D),v):v}function Ye(v,D){const M=U(224);return M.operator=v,M.operand=i().parenthesizeOperandOfPrefixUnary(D),M.transformFlags|=cn(M.operand),(v===46||v===47)&&Ie(M.operand)&&!Fo(M.operand)&&!ah(M.operand)&&(M.transformFlags|=268435456),M}function Ct(v,D){return v.operand!==D?Vr(Ye(v.operator,D),v):v}function At(v,D){const M=U(225);return M.operator=D,M.operand=i().parenthesizeOperandOfPostfixUnary(v),M.transformFlags|=cn(M.operand),Ie(M.operand)&&!Fo(M.operand)&&!ah(M.operand)&&(M.transformFlags|=268435456),M}function O(v,D){return v.operand!==D?Vr(At(D,v.operator),v):v}function he(v,D,M){const ie=$(226),ze=FP(D),Lt=ze.kind;return ie.left=i().parenthesizeLeftSideOfBinary(Lt,v),ie.operatorToken=ze,ie.right=i().parenthesizeRightSideOfBinary(Lt,ie.left,M),ie.transformFlags|=cn(ie.left)|cn(ie.operatorToken)|cn(ie.right),Lt===61?ie.transformFlags|=32:Lt===64?ua(ie.left)?ie.transformFlags|=5248|Xe(ie.left):ju(ie.left)&&(ie.transformFlags|=5120|Xe(ie.left)):Lt===43||Lt===68?ie.transformFlags|=512:OE(Lt)&&(ie.transformFlags|=16),Lt===103&&Pi(ie.left)&&(ie.transformFlags|=536870912),ie.jsDoc=void 0,ie}function Xe(v){return Uw(v)?65536:0}function Ft(v,D,M,ie){return v.left!==D||v.operatorToken!==M||v.right!==ie?Vr(he(D,M,ie),v):v}function zr(v,D,M,ie,ze){const Lt=U(227);return Lt.condition=i().parenthesizeConditionOfConditionalExpression(v),Lt.questionToken=D??ge(58),Lt.whenTrue=i().parenthesizeBranchOfConditionalExpression(M),Lt.colonToken=ie??ge(59),Lt.whenFalse=i().parenthesizeBranchOfConditionalExpression(ze),Lt.transformFlags|=cn(Lt.condition)|cn(Lt.questionToken)|cn(Lt.whenTrue)|cn(Lt.colonToken)|cn(Lt.whenFalse),Lt}function Vn(v,D,M,ie,ze,Lt){return v.condition!==D||v.questionToken!==M||v.whenTrue!==ie||v.colonToken!==ze||v.whenFalse!==Lt?Vr(zr(D,M,ie,ze,Lt),v):v}function Ln(v,D){const M=U(228);return M.head=v,M.templateSpans=J(D),M.transformFlags|=cn(M.head)|Sa(M.templateSpans)|1024,M}function ji(v,D,M){return v.head!==D||v.templateSpans!==M?Vr(Ln(D,M),v):v}function fa(v,D,M,ie=0){E.assert(!(ie&-7177),"Unsupported template flags.");let ze;if(M!==void 0&&M!==D&&(ze=jOe(v,M),typeof ze=="object"))return E.fail("Invalid raw text");if(D===void 0){if(ze===void 0)return E.fail("Arguments 'text' and 'rawText' may not both be undefined.");D=ze}else ze!==void 0&&E.assert(D===ze,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return D}function pa(v){let D=1024;return v&&(D|=128),D}function lc(v,D,M,ie){const ze=ft(v);return ze.text=D,ze.rawText=M,ze.templateFlags=ie&7176,ze.transformFlags=pa(ze.templateFlags),ze}function Rl(v,D,M,ie){const ze=$(v);return ze.text=D,ze.rawText=M,ze.templateFlags=ie&7176,ze.transformFlags=pa(ze.templateFlags),ze}function Zc(v,D,M,ie){return v===15?Rl(v,D,M,ie):lc(v,D,M,ie)}function G_(v,D,M){return v=fa(16,v,D,M),Zc(16,v,D,M)}function p_(v,D,M){return v=fa(16,v,D,M),Zc(17,v,D,M)}function Cy(v,D,M){return v=fa(16,v,D,M),Zc(18,v,D,M)}function ja(v,D,M){return v=fa(16,v,D,M),Rl(15,v,D,M)}function Zp(v,D){E.assert(!v||!!D,"A `YieldExpression` with an asteriskToken must have an expression.");const M=U(229);return M.expression=D&&i().parenthesizeExpressionForDisallowedComma(D),M.asteriskToken=v,M.transformFlags|=cn(M.expression)|cn(M.asteriskToken)|1024|128|1048576,M}function Kp(v,D,M){return v.expression!==M||v.asteriskToken!==D?Vr(Zp(D,M),v):v}function Ci(v){const D=U(230);return D.expression=i().parenthesizeExpressionForDisallowedComma(v),D.transformFlags|=cn(D.expression)|1024|32768,D}function ph(v,D){return v.expression!==D?Vr(Ci(D),v):v}function h0(v,D,M,ie,ze){const Lt=$(231);return Lt.modifiers=ya(v),Lt.name=Lc(D),Lt.typeParameters=ya(M),Lt.heritageClauses=ya(ie),Lt.members=J(ze),Lt.transformFlags|=Sa(Lt.modifiers)|ly(Lt.name)|Sa(Lt.typeParameters)|Sa(Lt.heritageClauses)|Sa(Lt.members)|(Lt.typeParameters?1:0)|1024,Lt.jsDoc=void 0,Lt}function ed(v,D,M,ie,ze,Lt){return v.modifiers!==D||v.name!==M||v.typeParameters!==ie||v.heritageClauses!==ze||v.members!==Lt?Vr(h0(D,M,ie,ze,Lt),v):v}function w2(){return U(232)}function A2(v,D){const M=U(233);return M.expression=i().parenthesizeLeftSideOfAccess(v,!1),M.typeArguments=D&&i().parenthesizeTypeArguments(D),M.transformFlags|=cn(M.expression)|Sa(M.typeArguments)|1024,M}function Ff(v,D,M){return v.expression!==D||v.typeArguments!==M?Vr(A2(D,M),v):v}function om(v,D){const M=U(234);return M.expression=v,M.type=D,M.transformFlags|=cn(M.expression)|cn(M.type)|1,M}function Of(v,D,M){return v.expression!==D||v.type!==M?Vr(om(D,M),v):v}function dh(v){const D=U(235);return D.expression=i().parenthesizeLeftSideOfAccess(v,!1),D.transformFlags|=cn(D.expression)|1,D}function Ae(v,D){return G7(v)?sr(v,D):v.expression!==D?Vr(dh(D),v):v}function We(v,D){const M=U(238);return M.expression=v,M.type=D,M.transformFlags|=cn(M.expression)|cn(M.type)|1,M}function bt(v,D,M){return v.expression!==D||v.type!==M?Vr(We(D,M),v):v}function Nt(v){const D=U(235);return D.flags|=64,D.expression=i().parenthesizeLeftSideOfAccess(v,!0),D.transformFlags|=cn(D.expression)|1,D}function sr(v,D){return E.assert(!!(v.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),v.expression!==D?Vr(Nt(D),v):v}function Mr(v,D){const M=U(236);switch(M.keywordToken=v,M.name=D,M.transformFlags|=cn(M.name),v){case 105:M.transformFlags|=1024;break;case 102:M.transformFlags|=32;break;default:return E.assertNever(v)}return M.flowNode=void 0,M}function rr(v,D){return v.name!==D?Vr(Mr(v.keywordToken,D),v):v}function Rr(v,D){const M=U(239);return M.expression=v,M.literal=D,M.transformFlags|=cn(M.expression)|cn(M.literal)|1024,M}function Yn(v,D,M){return v.expression!==D||v.literal!==M?Vr(Rr(D,M),v):v}function Gr(){const v=U(240);return v.transformFlags|=1024,v}function zn(v,D){const M=U(241);return M.statements=J(v),M.multiLine=D,M.transformFlags|=Sa(M.statements),M.jsDoc=void 0,M.locals=void 0,M.nextContainer=void 0,M}function Yr(v,D){return v.statements!==D?Vr(zn(D,v.multiLine),v):v}function ws(v,D){const M=U(243);return M.modifiers=ya(v),M.declarationList=ts(D)?P_(D):D,M.transformFlags|=Sa(M.modifiers)|cn(M.declarationList),$d(M.modifiers)&128&&(M.transformFlags=1),M.jsDoc=void 0,M.flowNode=void 0,M}function Ta(v,D,M){return v.modifiers!==D||v.declarationList!==M?Vr(ws(D,M),v):v}function ku(){const v=U(242);return v.jsDoc=void 0,v}function jl(v){const D=U(244);return D.expression=i().parenthesizeExpressionOfExpressionStatement(v),D.transformFlags|=cn(D.expression),D.jsDoc=void 0,D.flowNode=void 0,D}function mh(v,D){return v.expression!==D?Vr(jl(D),v):v}function Z1(v,D,M){const ie=U(245);return ie.expression=v,ie.thenStatement=qy(D),ie.elseStatement=qy(M),ie.transformFlags|=cn(ie.expression)|cn(ie.thenStatement)|cn(ie.elseStatement),ie.jsDoc=void 0,ie.flowNode=void 0,ie}function qx(v,D,M,ie){return v.expression!==D||v.thenStatement!==M||v.elseStatement!==ie?Vr(Z1(D,M,ie),v):v}function K1(v,D){const M=U(246);return M.statement=qy(v),M.expression=D,M.transformFlags|=cn(M.statement)|cn(M.expression),M.jsDoc=void 0,M.flowNode=void 0,M}function V6(v,D,M){return v.statement!==D||v.expression!==M?Vr(K1(D,M),v):v}function U6(v,D){const M=U(247);return M.expression=v,M.statement=qy(D),M.transformFlags|=cn(M.expression)|cn(M.statement),M.jsDoc=void 0,M.flowNode=void 0,M}function q6(v,D,M){return v.expression!==D||v.statement!==M?Vr(U6(D,M),v):v}function yS(v,D,M,ie){const ze=U(248);return ze.initializer=v,ze.condition=D,ze.incrementor=M,ze.statement=qy(ie),ze.transformFlags|=cn(ze.initializer)|cn(ze.condition)|cn(ze.incrementor)|cn(ze.statement),ze.jsDoc=void 0,ze.locals=void 0,ze.nextContainer=void 0,ze.flowNode=void 0,ze}function N2(v,D,M,ie,ze){return v.initializer!==D||v.condition!==M||v.incrementor!==ie||v.statement!==ze?Vr(yS(D,M,ie,ze),v):v}function Hx(v,D,M){const ie=U(249);return ie.initializer=v,ie.expression=D,ie.statement=qy(M),ie.transformFlags|=cn(ie.initializer)|cn(ie.expression)|cn(ie.statement),ie.jsDoc=void 0,ie.locals=void 0,ie.nextContainer=void 0,ie.flowNode=void 0,ie}function H6(v,D,M,ie){return v.initializer!==D||v.expression!==M||v.statement!==ie?Vr(Hx(D,M,ie),v):v}function Gx(v,D,M,ie){const ze=U(250);return ze.awaitModifier=v,ze.initializer=D,ze.expression=i().parenthesizeExpressionForDisallowedComma(M),ze.statement=qy(ie),ze.transformFlags|=cn(ze.awaitModifier)|cn(ze.initializer)|cn(ze.expression)|cn(ze.statement)|1024,v&&(ze.transformFlags|=128),ze.jsDoc=void 0,ze.locals=void 0,ze.nextContainer=void 0,ze.flowNode=void 0,ze}function $x(v,D,M,ie,ze){return v.awaitModifier!==D||v.initializer!==M||v.expression!==ie||v.statement!==ze?Vr(Gx(D,M,ie,ze),v):v}function Xx(v){const D=U(251);return D.label=Lc(v),D.transformFlags|=cn(D.label)|4194304,D.jsDoc=void 0,D.flowNode=void 0,D}function Qx(v,D){return v.label!==D?Vr(Xx(D),v):v}function vS(v){const D=U(252);return D.label=Lc(v),D.transformFlags|=cn(D.label)|4194304,D.jsDoc=void 0,D.flowNode=void 0,D}function Yx(v,D){return v.label!==D?Vr(vS(D),v):v}function I2(v){const D=U(253);return D.expression=v,D.transformFlags|=cn(D.expression)|128|4194304,D.jsDoc=void 0,D.flowNode=void 0,D}function F2(v,D){return v.expression!==D?Vr(I2(D),v):v}function Ey(v,D){const M=U(254);return M.expression=v,M.statement=qy(D),M.transformFlags|=cn(M.expression)|cn(M.statement),M.jsDoc=void 0,M.flowNode=void 0,M}function Py(v,D,M){return v.expression!==D||v.statement!==M?Vr(Ey(D,M),v):v}function Ng(v,D){const M=U(255);return M.expression=i().parenthesizeExpressionForDisallowedComma(v),M.caseBlock=D,M.transformFlags|=cn(M.expression)|cn(M.caseBlock),M.jsDoc=void 0,M.flowNode=void 0,M.possiblyExhaustive=!1,M}function ev(v,D,M){return v.expression!==D||v.caseBlock!==M?Vr(Ng(D,M),v):v}function wa(v,D){const M=U(256);return M.label=Lc(v),M.statement=qy(D),M.transformFlags|=cn(M.label)|cn(M.statement),M.jsDoc=void 0,M.flowNode=void 0,M}function bS(v,D,M){return v.label!==D||v.statement!==M?Vr(wa(D,M),v):v}function G6(v){const D=U(257);return D.expression=v,D.transformFlags|=cn(D.expression),D.jsDoc=void 0,D.flowNode=void 0,D}function tv(v,D){return v.expression!==D?Vr(G6(D),v):v}function gh(v,D,M){const ie=U(258);return ie.tryBlock=v,ie.catchClause=D,ie.finallyBlock=M,ie.transformFlags|=cn(ie.tryBlock)|cn(ie.catchClause)|cn(ie.finallyBlock),ie.jsDoc=void 0,ie.flowNode=void 0,ie}function Hm(v,D,M,ie){return v.tryBlock!==D||v.catchClause!==M||v.finallyBlock!==ie?Vr(gh(D,M,ie),v):v}function tp(){const v=U(259);return v.jsDoc=void 0,v.flowNode=void 0,v}function d_(v,D,M,ie){const ze=$(260);return ze.name=Lc(v),ze.exclamationToken=D,ze.type=M,ze.initializer=pk(ie),ze.transformFlags|=ly(ze.name)|cn(ze.initializer)|(ze.exclamationToken??ze.type?1:0),ze.jsDoc=void 0,ze}function $_(v,D,M,ie,ze){return v.name!==D||v.type!==ie||v.exclamationToken!==M||v.initializer!==ze?Vr(d_(D,M,ie,ze),v):v}function P_(v,D=0){const M=U(261);return M.flags|=D&7,M.declarations=J(v),M.transformFlags|=Sa(M.declarations)|4194304,D&7&&(M.transformFlags|=263168),D&4&&(M.transformFlags|=4),M}function y0(v,D){return v.declarations!==D?Vr(P_(D,v.flags),v):v}function SS(v,D,M,ie,ze,Lt,nn){const Mi=$(262);if(Mi.modifiers=ya(v),Mi.asteriskToken=D,Mi.name=Lc(M),Mi.typeParameters=ya(ie),Mi.parameters=J(ze),Mi.type=Lt,Mi.body=nn,!Mi.body||$d(Mi.modifiers)&128)Mi.transformFlags=1;else{const vo=$d(Mi.modifiers)&1024,wd=!!Mi.asteriskToken,Hy=vo&&wd;Mi.transformFlags=Sa(Mi.modifiers)|cn(Mi.asteriskToken)|ly(Mi.name)|Sa(Mi.typeParameters)|Sa(Mi.parameters)|cn(Mi.type)|cn(Mi.body)&-67108865|(Hy?128:vo?256:wd?2048:0)|(Mi.typeParameters||Mi.type?1:0)|4194304}return Mi.typeArguments=void 0,Mi.jsDoc=void 0,Mi.locals=void 0,Mi.nextContainer=void 0,Mi.endFlowNode=void 0,Mi.returnFlowNode=void 0,Mi}function $6(v,D,M,ie,ze,Lt,nn,Mi){return v.modifiers!==D||v.asteriskToken!==M||v.name!==ie||v.typeParameters!==ze||v.parameters!==Lt||v.type!==nn||v.body!==Mi?Zx(SS(D,M,ie,ze,Lt,nn,Mi),v):v}function Zx(v,D){return v!==D&&v.modifiers===D.modifiers&&(v.modifiers=D.modifiers),j(v,D)}function Dy(v,D,M,ie,ze){const Lt=$(263);return Lt.modifiers=ya(v),Lt.name=Lc(D),Lt.typeParameters=ya(M),Lt.heritageClauses=ya(ie),Lt.members=J(ze),$d(Lt.modifiers)&128?Lt.transformFlags=1:(Lt.transformFlags|=Sa(Lt.modifiers)|ly(Lt.name)|Sa(Lt.typeParameters)|Sa(Lt.heritageClauses)|Sa(Lt.members)|(Lt.typeParameters?1:0)|1024,Lt.transformFlags&8192&&(Lt.transformFlags|=1)),Lt.jsDoc=void 0,Lt}function rv(v,D,M,ie,ze,Lt){return v.modifiers!==D||v.name!==M||v.typeParameters!==ie||v.heritageClauses!==ze||v.members!==Lt?Vr(Dy(D,M,ie,ze,Lt),v):v}function Kx(v,D,M,ie,ze){const Lt=$(264);return Lt.modifiers=ya(v),Lt.name=Lc(D),Lt.typeParameters=ya(M),Lt.heritageClauses=ya(ie),Lt.members=J(ze),Lt.transformFlags=1,Lt.jsDoc=void 0,Lt}function qc(v,D,M,ie,ze,Lt){return v.modifiers!==D||v.name!==M||v.typeParameters!==ie||v.heritageClauses!==ze||v.members!==Lt?Vr(Kx(D,M,ie,ze,Lt),v):v}function v0(v,D,M,ie){const ze=$(265);return ze.modifiers=ya(v),ze.name=Lc(D),ze.typeParameters=ya(M),ze.type=ie,ze.transformFlags=1,ze.jsDoc=void 0,ze.locals=void 0,ze.nextContainer=void 0,ze}function ek(v,D,M,ie,ze){return v.modifiers!==D||v.name!==M||v.typeParameters!==ie||v.type!==ze?Vr(v0(D,M,ie,ze),v):v}function xd(v,D,M){const ie=$(266);return ie.modifiers=ya(v),ie.name=Lc(D),ie.members=J(M),ie.transformFlags|=Sa(ie.modifiers)|cn(ie.name)|Sa(ie.members)|1,ie.transformFlags&=-67108865,ie.jsDoc=void 0,ie}function TS(v,D,M,ie){return v.modifiers!==D||v.name!==M||v.members!==ie?Vr(xd(D,M,ie),v):v}function Me(v,D,M,ie=0){const ze=$(267);return ze.modifiers=ya(v),ze.flags|=ie&2088,ze.name=D,ze.body=M,$d(ze.modifiers)&128?ze.transformFlags=1:ze.transformFlags|=Sa(ze.modifiers)|cn(ze.name)|cn(ze.body)|1,ze.transformFlags&=-67108865,ze.jsDoc=void 0,ze.locals=void 0,ze.nextContainer=void 0,ze}function kd(v,D,M,ie){return v.modifiers!==D||v.name!==M||v.body!==ie?Vr(Me(D,M,ie,v.flags),v):v}function Bl(v){const D=U(268);return D.statements=J(v),D.transformFlags|=Sa(D.statements),D.jsDoc=void 0,D}function nv(v,D){return v.statements!==D?Vr(Bl(D),v):v}function tk(v){const D=U(269);return D.clauses=J(v),D.transformFlags|=Sa(D.clauses),D.locals=void 0,D.nextContainer=void 0,D}function wy(v,D){return v.clauses!==D?Vr(tk(D),v):v}function b0(v){const D=$(270);return D.name=Lc(v),D.transformFlags|=hw(D.name)|1,D.modifiers=void 0,D.jsDoc=void 0,D}function S0(v,D){return v.name!==D?CP(b0(D),v):v}function CP(v,D){return v!==D&&(v.modifiers=D.modifiers),Vr(v,D)}function xa(v,D,M,ie){const ze=$(271);return ze.modifiers=ya(v),ze.name=Lc(M),ze.isTypeOnly=D,ze.moduleReference=ie,ze.transformFlags|=Sa(ze.modifiers)|hw(ze.name)|cn(ze.moduleReference),Bm(ze.moduleReference)||(ze.transformFlags|=1),ze.transformFlags&=-67108865,ze.jsDoc=void 0,ze}function Cd(v,D,M,ie,ze){return v.modifiers!==D||v.isTypeOnly!==M||v.name!==ie||v.moduleReference!==ze?Vr(xa(D,M,ie,ze),v):v}function xS(v,D,M,ie){const ze=U(272);return ze.modifiers=ya(v),ze.importClause=D,ze.moduleSpecifier=M,ze.attributes=ze.assertClause=ie,ze.transformFlags|=cn(ze.importClause)|cn(ze.moduleSpecifier),ze.transformFlags&=-67108865,ze.jsDoc=void 0,ze}function kS(v,D,M,ie,ze){return v.modifiers!==D||v.importClause!==M||v.moduleSpecifier!==ie||v.attributes!==ze?Vr(xS(D,M,ie,ze),v):v}function iv(v,D,M){const ie=$(273);return ie.isTypeOnly=v,ie.name=D,ie.namedBindings=M,ie.transformFlags|=cn(ie.name)|cn(ie.namedBindings),v&&(ie.transformFlags|=1),ie.transformFlags&=-67108865,ie}function CS(v,D,M,ie){return v.isTypeOnly!==D||v.name!==M||v.namedBindings!==ie?Vr(iv(D,M,ie),v):v}function Dp(v,D){const M=U(300);return M.elements=J(v),M.multiLine=D,M.token=132,M.transformFlags|=4,M}function wp(v,D,M){return v.elements!==D||v.multiLine!==M?Vr(Dp(D,M),v):v}function hh(v,D){const M=U(301);return M.name=v,M.value=D,M.transformFlags|=4,M}function rk(v,D,M){return v.name!==D||v.value!==M?Vr(hh(D,M),v):v}function Ed(v,D){const M=U(302);return M.assertClause=v,M.multiLine=D,M}function X6(v,D,M){return v.assertClause!==D||v.multiLine!==M?Vr(Ed(D,M),v):v}function O2(v,D,M){const ie=U(300);return ie.token=M??118,ie.elements=J(v),ie.multiLine=D,ie.transformFlags|=4,ie}function wi(v,D,M){return v.elements!==D||v.multiLine!==M?Vr(O2(D,M,v.token),v):v}function jn(v,D){const M=U(301);return M.name=v,M.value=D,M.transformFlags|=4,M}function Gm(v,D,M){return v.name!==D||v.value!==M?Vr(jn(D,M),v):v}function m_(v){const D=$(274);return D.name=v,D.transformFlags|=cn(D.name),D.transformFlags&=-67108865,D}function EP(v,D){return v.name!==D?Vr(m_(D),v):v}function yh(v){const D=$(280);return D.name=v,D.transformFlags|=cn(D.name)|32,D.transformFlags&=-67108865,D}function PP(v,D){return v.name!==D?Vr(yh(D),v):v}function Ay(v){const D=U(275);return D.elements=J(v),D.transformFlags|=Sa(D.elements),D.transformFlags&=-67108865,D}function Ho(v,D){return v.elements!==D?Vr(Ay(D),v):v}function _f(v,D,M){const ie=$(276);return ie.isTypeOnly=v,ie.propertyName=D,ie.name=M,ie.transformFlags|=cn(ie.propertyName)|cn(ie.name),ie.transformFlags&=-67108865,ie}function Ig(v,D,M,ie){return v.isTypeOnly!==D||v.propertyName!==M||v.name!==ie?Vr(_f(D,M,ie),v):v}function Ap(v,D,M){const ie=$(277);return ie.modifiers=ya(v),ie.isExportEquals=D,ie.expression=D?i().parenthesizeRightSideOfBinary(64,void 0,M):i().parenthesizeExpressionOfExportDefault(M),ie.transformFlags|=Sa(ie.modifiers)|cn(ie.expression),ie.transformFlags&=-67108865,ie.jsDoc=void 0,ie}function Ny(v,D,M){return v.modifiers!==D||v.expression!==M?Vr(Ap(D,v.isExportEquals,M),v):v}function td(v,D,M,ie,ze){const Lt=$(278);return Lt.modifiers=ya(v),Lt.isTypeOnly=D,Lt.exportClause=M,Lt.moduleSpecifier=ie,Lt.attributes=Lt.assertClause=ze,Lt.transformFlags|=Sa(Lt.modifiers)|cn(Lt.exportClause)|cn(Lt.moduleSpecifier),Lt.transformFlags&=-67108865,Lt.jsDoc=void 0,Lt}function vh(v,D,M,ie,ze,Lt){return v.modifiers!==D||v.isTypeOnly!==M||v.exportClause!==ie||v.moduleSpecifier!==ze||v.attributes!==Lt?L2(td(D,M,ie,ze,Lt),v):v}function L2(v,D){return v!==D&&v.modifiers===D.modifiers&&(v.modifiers=D.modifiers),Vr(v,D)}function ES(v){const D=U(279);return D.elements=J(v),D.transformFlags|=Sa(D.elements),D.transformFlags&=-67108865,D}function Fg(v,D){return v.elements!==D?Vr(ES(D),v):v}function nk(v,D,M){const ie=U(281);return ie.isTypeOnly=v,ie.propertyName=Lc(D),ie.name=Lc(M),ie.transformFlags|=cn(ie.propertyName)|cn(ie.name),ie.transformFlags&=-67108865,ie.jsDoc=void 0,ie}function Og(v,D,M,ie){return v.isTypeOnly!==D||v.propertyName!==M||v.name!==ie?Vr(nk(D,M,ie),v):v}function cm(){const v=$(282);return v.jsDoc=void 0,v}function T0(v){const D=U(283);return D.expression=v,D.transformFlags|=cn(D.expression),D.transformFlags&=-67108865,D}function Q6(v,D){return v.expression!==D?Vr(T0(D),v):v}function Y6(v){return U(v)}function Z6(v,D,M=!1){const ie=PS(v,M?D&&i().parenthesizeNonArrayTypeOfPostfixType(D):D);return ie.postfix=M,ie}function PS(v,D){const M=U(v);return M.type=D,M}function Co(v,D,M){return D.type!==M?Vr(Z6(v,M,D.postfix),D):D}function M2(v,D,M){return D.type!==M?Vr(PS(v,M),D):D}function DS(v,D){const M=$(324);return M.parameters=ya(v),M.type=D,M.transformFlags=Sa(M.parameters)|(M.type?1:0),M.jsDoc=void 0,M.locals=void 0,M.nextContainer=void 0,M.typeArguments=void 0,M}function rd(v,D,M){return v.parameters!==D||v.type!==M?Vr(DS(D,M),v):v}function Iy(v,D=!1){const M=$(329);return M.jsDocPropertyTags=ya(v),M.isArrayType=D,M}function K6(v,D,M){return v.jsDocPropertyTags!==D||v.isArrayType!==M?Vr(Iy(D,M),v):v}function wS(v){const D=U(316);return D.type=v,D}function DP(v,D){return v.type!==D?Vr(wS(D),v):v}function en(v,D,M){const ie=$(330);return ie.typeParameters=ya(v),ie.parameters=J(D),ie.type=M,ie.jsDoc=void 0,ie.locals=void 0,ie.nextContainer=void 0,ie}function Dl(v,D,M,ie){return v.typeParameters!==D||v.parameters!==M||v.type!==ie?Vr(en(D,M,ie),v):v}function Oi(v){const D=uV(v.kind);return v.tagName.escapedText===Wo(D)?v.tagName:Se(D)}function Lf(v,D,M){const ie=U(v);return ie.tagName=D,ie.comment=M,ie}function x0(v,D,M){const ie=$(v);return ie.tagName=D,ie.comment=M,ie}function lm(v,D,M,ie){const ze=Lf(352,v??Se("template"),ie);return ze.constraint=D,ze.typeParameters=J(M),ze}function $r(v,D=Oi(v),M,ie,ze){return v.tagName!==D||v.constraint!==M||v.typeParameters!==ie||v.comment!==ze?Vr(lm(D,M,ie,ze),v):v}function AS(v,D,M,ie){const ze=x0(353,v??Se("typedef"),ie);return ze.typeExpression=D,ze.fullName=M,ze.name=XV(M),ze.locals=void 0,ze.nextContainer=void 0,ze}function sv(v,D=Oi(v),M,ie,ze){return v.tagName!==D||v.typeExpression!==M||v.fullName!==ie||v.comment!==ze?Vr(AS(D,M,ie,ze),v):v}function yl(v,D,M,ie,ze,Lt){const nn=x0(348,v??Se("param"),Lt);return nn.typeExpression=ie,nn.name=D,nn.isNameFirst=!!ze,nn.isBracketed=M,nn}function $m(v,D=Oi(v),M,ie,ze,Lt,nn){return v.tagName!==D||v.name!==M||v.isBracketed!==ie||v.typeExpression!==ze||v.isNameFirst!==Lt||v.comment!==nn?Vr(yl(D,M,ie,ze,Lt,nn),v):v}function nd(v,D,M,ie,ze,Lt){const nn=x0(355,v??Se("prop"),Lt);return nn.typeExpression=ie,nn.name=D,nn.isNameFirst=!!ze,nn.isBracketed=M,nn}function R2(v,D=Oi(v),M,ie,ze,Lt,nn){return v.tagName!==D||v.name!==M||v.isBracketed!==ie||v.typeExpression!==ze||v.isNameFirst!==Lt||v.comment!==nn?Vr(nd(D,M,ie,ze,Lt,nn),v):v}function j2(v,D,M,ie){const ze=x0(345,v??Se("callback"),ie);return ze.typeExpression=D,ze.fullName=M,ze.name=XV(M),ze.locals=void 0,ze.nextContainer=void 0,ze}function Fy(v,D=Oi(v),M,ie,ze){return v.tagName!==D||v.typeExpression!==M||v.fullName!==ie||v.comment!==ze?Vr(j2(D,M,ie,ze),v):v}function bh(v,D,M){const ie=Lf(346,v??Se("overload"),M);return ie.typeExpression=D,ie}function NS(v,D=Oi(v),M,ie){return v.tagName!==D||v.typeExpression!==M||v.comment!==ie?Vr(bh(D,M,ie),v):v}function id(v,D,M){const ie=Lf(335,v??Se("augments"),M);return ie.class=D,ie}function av(v,D=Oi(v),M,ie){return v.tagName!==D||v.class!==M||v.comment!==ie?Vr(id(D,M,ie),v):v}function Lg(v,D,M){const ie=Lf(336,v??Se("implements"),M);return ie.class=D,ie}function Oy(v,D,M){const ie=Lf(354,v??Se("see"),M);return ie.name=D,ie}function ik(v,D,M,ie){return v.tagName!==D||v.name!==M||v.comment!==ie?Vr(Oy(D,M,ie),v):v}function ov(v){const D=U(317);return D.name=v,D}function e4(v,D){return v.name!==D?Vr(ov(D),v):v}function B2(v,D){const M=U(318);return M.left=v,M.right=D,M.transformFlags|=cn(M.left)|cn(M.right),M}function IS(v,D,M){return v.left!==D||v.right!==M?Vr(B2(D,M),v):v}function ff(v,D){const M=U(331);return M.name=v,M.text=D,M}function FS(v,D,M){return v.name!==D?Vr(ff(D,M),v):v}function mc(v,D){const M=U(332);return M.name=v,M.text=D,M}function cl(v,D,M){return v.name!==D?Vr(mc(D,M),v):v}function OS(v,D){const M=U(333);return M.name=v,M.text=D,M}function $l(v,D,M){return v.name!==D?Vr(OS(D,M),v):v}function D_(v,D=Oi(v),M,ie){return v.tagName!==D||v.class!==M||v.comment!==ie?Vr(Lg(D,M,ie),v):v}function cv(v,D,M){return Lf(v,D??Se(uV(v)),M)}function rp(v,D,M=Oi(D),ie){return D.tagName!==M||D.comment!==ie?Vr(cv(v,M,ie),D):D}function Ly(v,D,M,ie){const ze=Lf(v,D??Se(uV(v)),ie);return ze.typeExpression=M,ze}function My(v,D,M=Oi(D),ie,ze){return D.tagName!==M||D.typeExpression!==ie||D.comment!==ze?Vr(Ly(v,M,ie,ze),D):D}function wl(v,D){return Lf(334,v,D)}function sk(v,D,M){return v.tagName!==D||v.comment!==M?Vr(wl(D,M),v):v}function pf(v,D,M){const ie=x0(347,v??Se(uV(347)),M);return ie.typeExpression=D,ie.locals=void 0,ie.nextContainer=void 0,ie}function LS(v,D=Oi(v),M,ie){return v.tagName!==D||v.typeExpression!==M||v.comment!==ie?Vr(pf(D,M,ie),v):v}function MS(v){const D=U(328);return D.text=v,D}function yo(v,D){return v.text!==D?Vr(MS(D),v):v}function t4(v,D){const M=U(327);return M.comment=v,M.tags=ya(D),M}function lv(v,D,M){return v.comment!==D||v.tags!==M?Vr(t4(D,M),v):v}function J2(v,D,M){const ie=U(284);return ie.openingElement=v,ie.children=J(D),ie.closingElement=M,ie.transformFlags|=cn(ie.openingElement)|Sa(ie.children)|cn(ie.closingElement)|2,ie}function wP(v,D,M,ie){return v.openingElement!==D||v.children!==M||v.closingElement!==ie?Vr(J2(D,M,ie),v):v}function zu(v,D,M){const ie=U(285);return ie.tagName=v,ie.typeArguments=ya(D),ie.attributes=M,ie.transformFlags|=cn(ie.tagName)|Sa(ie.typeArguments)|cn(ie.attributes)|2,ie.typeArguments&&(ie.transformFlags|=1),ie}function Sh(v,D,M,ie){return v.tagName!==D||v.typeArguments!==M||v.attributes!==ie?Vr(zu(D,M,ie),v):v}function um(v,D,M){const ie=U(286);return ie.tagName=v,ie.typeArguments=ya(D),ie.attributes=M,ie.transformFlags|=cn(ie.tagName)|Sa(ie.typeArguments)|cn(ie.attributes)|2,D&&(ie.transformFlags|=1),ie}function ak(v,D,M,ie){return v.tagName!==D||v.typeArguments!==M||v.attributes!==ie?Vr(um(D,M,ie),v):v}function X_(v){const D=U(287);return D.tagName=v,D.transformFlags|=cn(D.tagName)|2,D}function ok(v,D){return v.tagName!==D?Vr(X_(D),v):v}function w_(v,D,M){const ie=U(288);return ie.openingFragment=v,ie.children=J(D),ie.closingFragment=M,ie.transformFlags|=cn(ie.openingFragment)|Sa(ie.children)|cn(ie.closingFragment)|2,ie}function ck(v,D,M,ie){return v.openingFragment!==D||v.children!==M||v.closingFragment!==ie?Vr(w_(D,M,ie),v):v}function k0(v,D){const M=U(12);return M.text=v,M.containsOnlyTriviaWhiteSpaces=!!D,M.transformFlags|=2,M}function RS(v,D,M){return v.text!==D||v.containsOnlyTriviaWhiteSpaces!==M?Vr(k0(D,M),v):v}function r4(){const v=U(289);return v.transformFlags|=2,v}function n4(){const v=U(290);return v.transformFlags|=2,v}function jS(v,D){const M=$(291);return M.name=v,M.initializer=D,M.transformFlags|=cn(M.name)|cn(M.initializer)|2,M}function i4(v,D,M){return v.name!==D||v.initializer!==M?Vr(jS(D,M),v):v}function Ry(v){const D=$(292);return D.properties=J(v),D.transformFlags|=Sa(D.properties)|2,D}function Q_(v,D){return v.properties!==D?Vr(Ry(D),v):v}function Xm(v){const D=U(293);return D.expression=v,D.transformFlags|=cn(D.expression)|2,D}function s4(v,D){return v.expression!==D?Vr(Xm(D),v):v}function BS(v,D){const M=U(294);return M.dotDotDotToken=v,M.expression=D,M.transformFlags|=cn(M.dotDotDotToken)|cn(M.expression)|2,M}function Na(v,D){return v.expression!==D?Vr(BS(v.dotDotDotToken,D),v):v}function un(v,D){const M=U(295);return M.namespace=v,M.name=D,M.transformFlags|=cn(M.namespace)|cn(M.name)|2,M}function Mf(v,D,M){return v.namespace!==D||v.name!==M?Vr(un(D,M),v):v}function e_(v,D){const M=U(296);return M.expression=i().parenthesizeExpressionForDisallowedComma(v),M.statements=J(D),M.transformFlags|=cn(M.expression)|Sa(M.statements),M.jsDoc=void 0,M}function z2(v,D,M){return v.expression!==D||v.statements!==M?Vr(e_(D,M),v):v}function a4(v){const D=U(297);return D.statements=J(v),D.transformFlags=Sa(D.statements),D}function uv(v,D){return v.statements!==D?Vr(a4(D),v):v}function W2(v,D){const M=U(298);switch(M.token=v,M.types=J(D),M.transformFlags|=Sa(M.types),v){case 96:M.transformFlags|=1024;break;case 119:M.transformFlags|=1;break;default:return E.assertNever(v)}return M}function JS(v,D){return v.types!==D?Vr(W2(v.token,D),v):v}function Mg(v,D){const M=U(299);return M.variableDeclaration=OP(v),M.block=D,M.transformFlags|=cn(M.variableDeclaration)|cn(M.block)|(v?0:64),M.locals=void 0,M.nextContainer=void 0,M}function Pd(v,D,M){return v.variableDeclaration!==D||v.block!==M?Vr(Mg(D,M),v):v}function Rf(v,D){const M=$(303);return M.name=Lc(v),M.initializer=i().parenthesizeExpressionForDisallowedComma(D),M.transformFlags|=ly(M.name)|cn(M.initializer),M.modifiers=void 0,M.questionToken=void 0,M.exclamationToken=void 0,M.jsDoc=void 0,M}function sd(v,D,M){return v.name!==D||v.initializer!==M?Th(Rf(D,M),v):v}function Th(v,D){return v!==D&&(v.modifiers=D.modifiers,v.questionToken=D.questionToken,v.exclamationToken=D.exclamationToken),Vr(v,D)}function Rg(v,D){const M=$(304);return M.name=Lc(v),M.objectAssignmentInitializer=D&&i().parenthesizeExpressionForDisallowedComma(D),M.transformFlags|=hw(M.name)|cn(M.objectAssignmentInitializer)|1024,M.equalsToken=void 0,M.modifiers=void 0,M.questionToken=void 0,M.exclamationToken=void 0,M.jsDoc=void 0,M}function jg(v,D,M){return v.name!==D||v.objectAssignmentInitializer!==M?lk(Rg(D,M),v):v}function lk(v,D){return v!==D&&(v.modifiers=D.modifiers,v.questionToken=D.questionToken,v.exclamationToken=D.exclamationToken,v.equalsToken=D.equalsToken),Vr(v,D)}function Oc(v){const D=$(305);return D.expression=i().parenthesizeExpressionForDisallowedComma(v),D.transformFlags|=cn(D.expression)|128|65536,D.jsDoc=void 0,D}function o4(v,D){return v.expression!==D?Vr(Oc(D),v):v}function np(v,D){const M=$(306);return M.name=Lc(v),M.initializer=D&&i().parenthesizeExpressionForDisallowedComma(D),M.transformFlags|=cn(M.name)|cn(M.initializer)|1,M.jsDoc=void 0,M}function Qm(v,D,M){return v.name!==D||v.initializer!==M?Vr(np(D,M),v):v}function jf(v,D,M){const ie=t.createBaseSourceFileNode(312);return ie.statements=J(v),ie.endOfFileToken=D,ie.flags|=M,ie.text="",ie.fileName="",ie.path="",ie.resolvedPath="",ie.originalFileName="",ie.languageVersion=0,ie.languageVariant=0,ie.scriptKind=0,ie.isDeclarationFile=!1,ie.hasNoDefaultLib=!1,ie.transformFlags|=Sa(ie.statements)|cn(ie.endOfFileToken),ie.locals=void 0,ie.nextContainer=void 0,ie.endFlowNode=void 0,ie.nodeCount=0,ie.identifierCount=0,ie.symbolCount=0,ie.parseDiagnostics=void 0,ie.bindDiagnostics=void 0,ie.bindSuggestionDiagnostics=void 0,ie.lineMap=void 0,ie.externalModuleIndicator=void 0,ie.setExternalModuleIndicator=void 0,ie.pragmas=void 0,ie.checkJsDirective=void 0,ie.referencedFiles=void 0,ie.typeReferenceDirectives=void 0,ie.libReferenceDirectives=void 0,ie.amdDependencies=void 0,ie.commentDirectives=void 0,ie.identifiers=void 0,ie.packageJsonLocations=void 0,ie.packageJsonScope=void 0,ie.imports=void 0,ie.moduleAugmentations=void 0,ie.ambientModuleNames=void 0,ie.classifiableNames=void 0,ie.impliedNodeFormat=void 0,ie}function V2(v){const D=Object.create(v.redirectTarget);return Object.defineProperties(D,{id:{get(){return this.redirectInfo.redirectTarget.id},set(M){this.redirectInfo.redirectTarget.id=M}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(M){this.redirectInfo.redirectTarget.symbol=M}}}),D.redirectInfo=v,D}function _v(v){const D=V2(v.redirectInfo);return D.flags|=v.flags&-17,D.fileName=v.fileName,D.path=v.path,D.resolvedPath=v.resolvedPath,D.originalFileName=v.originalFileName,D.packageJsonLocations=v.packageJsonLocations,D.packageJsonScope=v.packageJsonScope,D.emitNode=void 0,D}function uk(v){const D=t.createBaseSourceFileNode(312);D.flags|=v.flags&-17;for(const M in v)if(!(Za(D,M)||!Za(v,M))){if(M==="emitNode"){D.emitNode=void 0;continue}D[M]=v[M]}return D}function zS(v){const D=v.redirectInfo?_v(v):uk(v);return n(D,v),D}function Bf(v,D,M,ie,ze,Lt,nn){const Mi=zS(v);return Mi.statements=J(D),Mi.isDeclarationFile=M,Mi.referencedFiles=ie,Mi.typeReferenceDirectives=ze,Mi.hasNoDefaultLib=Lt,Mi.libReferenceDirectives=nn,Mi.transformFlags=Sa(Mi.statements)|cn(Mi.endOfFileToken),Mi}function so(v,D,M=v.isDeclarationFile,ie=v.referencedFiles,ze=v.typeReferenceDirectives,Lt=v.hasNoDefaultLib,nn=v.libReferenceDirectives){return v.statements!==D||v.isDeclarationFile!==M||v.referencedFiles!==ie||v.typeReferenceDirectives!==ze||v.hasNoDefaultLib!==Lt||v.libReferenceDirectives!==nn?Vr(Bf(v,D,M,ie,ze,Lt,nn),v):v}function U2(v,D=Ve){const M=U(313);return M.prepends=D,M.sourceFiles=v,M.syntheticFileReferences=void 0,M.syntheticTypeReferences=void 0,M.syntheticLibReferences=void 0,M.hasNoDefaultLib=void 0,M}function q2(v,D,M=Ve){return v.sourceFiles!==D||v.prepends!==M?Vr(U2(D,M),v):v}function xh(v,D,M){const ie=U(314);return ie.prologues=v,ie.syntheticReferences=D,ie.texts=M,ie.fileName="",ie.text="",ie.referencedFiles=Ve,ie.libReferenceDirectives=Ve,ie.getLineAndCharacterOfPosition=ze=>Ha(ie,ze),ie}function jy(v,D){const M=U(v);return M.data=D,M}function fv(v){return jy(307,v)}function C(v,D){const M=jy(308,v);return M.texts=D,M}function te(v,D){return jy(D?310:309,v)}function it(v){const D=U(311);return D.data=v.data,D.section=v,D}function Ut(){const v=U(315);return v.javascriptText="",v.declarationText="",v}function vn(v,D=!1,M){const ie=U(237);return ie.type=v,ie.isSpread=D,ie.tupleNameSource=M,ie}function gi(v){const D=U(358);return D._children=v,D}function ti(v){const D=U(359);return D.original=v,Ke(D,v),D}function Li(v,D){const M=U(360);return M.expression=v,M.original=D,M.transformFlags|=cn(M.expression)|1,Ke(M,D),M}function Gs(v,D){return v.expression!==D?Vr(Li(D,v.original),v):v}function Cu(v){if(xo(v)&&!nE(v)&&!v.original&&!v.emitNode&&!v.id){if(p3(v))return v.elements;if(Zr(v)&&Hne(v.operatorToken))return[v.left,v.right]}return v}function t_(v){const D=U(361);return D.elements=J(MK(v,Cu)),D.transformFlags|=Sa(D.elements),D}function ip(v,D){return v.elements!==D?Vr(t_(D),v):v}function By(v,D){const M=U(362);return M.expression=v,M.thisArg=D,M.transformFlags|=cn(M.expression)|cn(M.thisArg),M}function ni(v,D,M){return v.expression!==D||v.thisArg!==M?Vr(By(D,M),v):v}function Ym(v){const D=ee(v.escapedText);return D.flags|=v.flags&-17,D.transformFlags=v.transformFlags,n(D,v),Tw(D,{...v.emitNode.autoGenerate}),D}function Ar(v){const D=ee(v.escapedText);D.flags|=v.flags&-17,D.jsDoc=v.jsDoc,D.flowNode=v.flowNode,D.symbol=v.symbol,D.transformFlags=v.transformFlags,n(D,v);const M=zb(v);return M&&i0(D,M),D}function _k(v){const D=Oe(v.escapedText);return D.flags|=v.flags&-17,D.transformFlags=v.transformFlags,n(D,v),Tw(D,{...v.emitNode.autoGenerate}),D}function Jy(v){const D=Oe(v.escapedText);return D.flags|=v.flags&-17,D.transformFlags=v.transformFlags,n(D,v),D}function zy(v){if(v===void 0)return v;if(Ni(v))return zS(v);if(Fo(v))return Ym(v);if(Ie(v))return Ar(v);if(vb(v))return _k(v);if(Pi(v))return Jy(v);const D=XD(v.kind)?t.createBaseNode(v.kind):t.createBaseTokenNode(v.kind);D.flags|=v.flags&-17,D.transformFlags=v.transformFlags,n(D,v);for(const M in v)Za(D,M)||!Za(v,M)||(D[M]=v[M]);return D}function WS(v,D,M){return Fr(__(void 0,void 0,void 0,void 0,D?[D]:[],void 0,zn(v,!0)),void 0,M?[M]:[])}function H2(v,D,M){return Fr(ep(void 0,void 0,D?[D]:[],void 0,void 0,zn(v,!0)),void 0,M?[M]:[])}function _m(){return H_(re("0"))}function Zm(v){return Ap(void 0,!1,v)}function c4(v){return td(void 0,!1,ES([nk(!1,void 0,v)]))}function VS(v,D){return D==="null"?F.createStrictEquality(v,Pt()):D==="undefined"?F.createStrictEquality(v,_m()):F.createStrictEquality(_u(v),ue(D))}function NR(v,D){return D==="null"?F.createStrictInequality(v,Pt()):D==="undefined"?F.createStrictInequality(v,_m()):F.createStrictInequality(_u(v),ue(D))}function Wy(v,D,M){return yb(v)?Ds($a(v,void 0,D),void 0,void 0,M):Fr(ho(v,D),void 0,M)}function nI(v,D,M){return Wy(v,"bind",[D,...M])}function iI(v,D,M){return Wy(v,"call",[D,...M])}function pv(v,D,M){return Wy(v,"apply",[D,M])}function Dd(v,D,M){return Wy(Se(v),D,M)}function AP(v,D){return Wy(v,"slice",D===void 0?[]:[mv(D)])}function Km(v,D){return Wy(v,"concat",D)}function fk(v,D,M){return Dd("Object","defineProperty",[v,mv(D),M])}function sI(v,D){return Dd("Object","getOwnPropertyDescriptor",[v,mv(D)])}function fm(v,D,M){return Dd("Reflect","get",M?[v,D,M]:[v,D])}function G(v,D,M,ie){return Dd("Reflect","set",ie?[v,D,M,ie]:[v,D,M])}function ve(v,D,M){return M?(v.push(Rf(D,M)),!0):!1}function je(v,D){const M=[];ve(M,"enumerable",mv(v.enumerable)),ve(M,"configurable",mv(v.configurable));let ie=ve(M,"writable",mv(v.writable));ie=ve(M,"value",v.value)||ie;let ze=ve(M,"get",v.get);return ze=ve(M,"set",v.set)||ze,E.assert(!(ie&&ze),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),Ps(M,!D)}function dt(v,D){switch(v.kind){case 217:return If(v,D);case 216:return Ec(v,v.type,D);case 234:return Of(v,D,v.type);case 238:return bt(v,D,v.type);case 235:return Ae(v,D);case 360:return Gs(v,D)}}function ht(v){return l_(v)&&xo(v)&&xo(n0(v))&&xo(Yd(v))&&!ct(OC(v))&&!ct(Sw(v))}function Ot(v,D,M=15){return v&&RO(v,M)&&!ht(v)?dt(v,Ot(v.expression,D)):D}function Tn(v,D,M){if(!D)return v;const ie=bS(D,D.label,c2(D.statement)?Tn(v,D.statement):v);return M&&M(D),ie}function vi(v,D){const M=Va(v);switch(M.kind){case 80:return D;case 110:case 9:case 10:case 11:return!1;case 209:return M.elements.length!==0;case 210:return M.properties.length>0;default:return!0}}function ui(v,D,M,ie=!1){const ze=xc(v,15);let Lt,nn;return o_(ze)?(Lt=$e(),nn=ze):u3(ze)?(Lt=$e(),nn=M!==void 0&&M<2?Ke(Se("_super"),ze):ze):ha(ze)&8192?(Lt=_m(),nn=i().parenthesizeLeftSideOfAccess(ze,!1)):Sn(ze)?vi(ze.expression,ie)?(Lt=ae(D),nn=ho(Ke(F.createAssignment(Lt,ze.expression),ze.expression),ze.name),Ke(nn,ze)):(Lt=ze.expression,nn=ze):ko(ze)?vi(ze.expression,ie)?(Lt=ae(D),nn=ol(Ke(F.createAssignment(Lt,ze.expression),ze.expression),ze.argumentExpression),Ke(nn,ze)):(Lt=ze.expression,nn=ze):(Lt=_m(),nn=i().parenthesizeLeftSideOfAccess(v,!1)),{target:nn,thisArg:Lt}}function Zn(v,D){return ho(hl(Ps([ne(void 0,"value",[Kn(void 0,void 0,v,void 0,void 0,void 0)],zn([jl(D)]))])),"value")}function Ai(v){return v.length>10?t_(v):Du(v,F.createComma)}function Ba(v,D,M,ie=0,ze){const Lt=ze?v&&J7(v):us(v);if(Lt&&Ie(Lt)&&!Fo(Lt)){const nn=ba(Ke(zy(Lt),Lt),Lt.parent);return ie|=ha(Lt),M||(ie|=96),D||(ie|=3072),ie&&Qr(nn,ie),nn}return ke(v)}function eo(v,D,M){return Ba(v,D,M,98304)}function Da(v,D,M,ie){return Ba(v,D,M,32768,ie)}function sp(v,D,M){return Ba(v,D,M,16384)}function pm(v,D,M){return Ba(v,D,M)}function Bg(v,D,M,ie){const ze=ho(v,xo(D)?D:zy(D));Ke(ze,D);let Lt=0;return ie||(Lt|=96),M||(Lt|=3072),Lt&&Qr(ze,Lt),ze}function kh(v,D,M,ie){return v&&Rn(D,32)?Bg(v,Ba(D),M,ie):sp(D,M,ie)}function Ch(v,D,M,ie){const ze=US(v,D,0,M);return l4(v,D,ze,ie)}function Vy(v){return aa(v.expression)&&v.expression.text==="use strict"}function A_(){return bu(jl(ue("use strict")))}function US(v,D,M=0,ie){E.assert(D.length===0,"Prologue directives should be at the first statement in the target statements array");let ze=!1;const Lt=v.length;for(;MMi&&wd.splice(ze,0,...D.slice(Mi,vo)),Mi>nn&&wd.splice(ie,0,...D.slice(nn,Mi)),nn>Lt&&wd.splice(M,0,...D.slice(Lt,nn)),Lt>0)if(M===0)wd.splice(0,0,...D.slice(0,Lt));else{const Hy=new Map;for(let ad=0;ad=0;ad--){const gv=D[ad];Hy.has(gv.expression.text)||wd.unshift(gv)}}return Mv(v)?Ke(J(wd,v.hasTrailingComma),v):v}function Uy(v,D){let M;return typeof D=="number"?M=zt(D):M=D,Vo(v)?Rt(v,M,v.name,v.constraint,v.default):rs(v)?Ji(v,M,v.dotDotDotToken,v.name,v.questionToken,v.type,v.initializer):MC(v)?Jt(v,M,v.typeParameters,v.parameters,v.type):B_(v)?_i(v,M,v.name,v.questionToken,v.type):xs(v)?Ue(v,M,v.name,v.questionToken??v.exclamationToken,v.type,v.initializer):Lm(v)?fr(v,M,v.name,v.questionToken,v.typeParameters,v.parameters,v.type):hc(v)?ei(v,M,v.asteriskToken,v.name,v.questionToken,v.typeParameters,v.parameters,v.type,v.body):sc(v)?br(v,M,v.parameters,v.body):xf(v)?tt(v,M,v.name,v.parameters,v.type,v.body):J_(v)?we(v,M,v.name,v.parameters,v.body):i2(v)?Dt(v,M,v.parameters,v.type):co(v)?Ku(v,M,v.asteriskToken,v.name,v.typeParameters,v.parameters,v.type,v.body):po(v)?am(v,M,v.typeParameters,v.parameters,v.type,v.equalsGreaterThanToken,v.body):kl(v)?ed(v,M,v.name,v.typeParameters,v.heritageClauses,v.members):ac(v)?Ta(v,M,v.declarationList):$c(v)?$6(v,M,v.asteriskToken,v.name,v.typeParameters,v.parameters,v.type,v.body):Xc(v)?rv(v,M,v.name,v.typeParameters,v.heritageClauses,v.members):Bu(v)?qc(v,M,v.name,v.typeParameters,v.heritageClauses,v.members):Gp(v)?ek(v,M,v.name,v.typeParameters,v.type):L1(v)?TS(v,M,v.name,v.members):Sc(v)?kd(v,M,v.name,v.body):El(v)?Cd(v,M,v.isTypeOnly,v.name,v.moduleReference):il(v)?kS(v,M,v.importClause,v.moduleSpecifier,v.attributes):oc(v)?Ny(v,M,v.expression):Tc(v)?vh(v,M,v.isTypeOnly,v.exportClause,v.moduleSpecifier,v.attributes):E.assertNever(v)}function u4(v,D){return rs(v)?Ji(v,D,v.dotDotDotToken,v.name,v.questionToken,v.type,v.initializer):xs(v)?Ue(v,D,v.name,v.questionToken??v.exclamationToken,v.type,v.initializer):hc(v)?ei(v,D,v.asteriskToken,v.name,v.questionToken,v.typeParameters,v.parameters,v.type,v.body):xf(v)?tt(v,D,v.name,v.parameters,v.type,v.body):J_(v)?we(v,D,v.name,v.parameters,v.body):kl(v)?ed(v,D,v.name,v.typeParameters,v.heritageClauses,v.members):Xc(v)?rv(v,D,v.name,v.typeParameters,v.heritageClauses,v.members):E.assertNever(v)}function df(v,D){switch(v.kind){case 177:return tt(v,v.modifiers,D,v.parameters,v.type,v.body);case 178:return we(v,v.modifiers,D,v.parameters,v.body);case 174:return ei(v,v.modifiers,v.asteriskToken,D,v.questionToken,v.typeParameters,v.parameters,v.type,v.body);case 173:return fr(v,v.modifiers,D,v.questionToken,v.typeParameters,v.parameters,v.type);case 172:return Ue(v,v.modifiers,D,v.questionToken??v.exclamationToken,v.type,v.initializer);case 171:return _i(v,v.modifiers,D,v.questionToken,v.type);case 303:return sd(v,D,v.initializer)}}function ya(v){return v?J(v):void 0}function Lc(v){return typeof v=="string"?Se(v):v}function mv(v){return typeof v=="string"?ue(v):typeof v=="number"?re(v):typeof v=="boolean"?v?at():Je():v}function pk(v){return v&&i().parenthesizeExpressionForDisallowedComma(v)}function FP(v){return typeof v=="number"?ge(v):v}function qy(v){return v&&IV(v)?Ke(n(ku(),v),v):v}function OP(v){return typeof v=="string"||v&&!hi(v)?d_(v,void 0,void 0,void 0):v}function Vr(v,D){return v!==D&&(n(v,D),Ke(v,D)),v}}function uV(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 E.fail(`Unsupported kind: ${E.formatSyntaxKind(e)}`)}}function jOe(e,t){switch(r0||(r0=Hh(99,!1,0)),e){case 15:r0.setText("`"+t+"`");break;case 16:r0.setText("`"+t+"${");break;case 17:r0.setText("}"+t+"${");break;case 18:r0.setText("}"+t+"`");break}let n=r0.scan();if(n===20&&(n=r0.reScanTemplateToken(!1)),r0.isUnterminated())return r0.setText(void 0),One;let i;switch(n){case 15:case 16:case 17:case 18:i=r0.getTokenValue();break}return i===void 0||r0.scan()!==1?(r0.setText(void 0),One):(r0.setText(void 0),i)}function ly(e){return e&&Ie(e)?hw(e):cn(e)}function hw(e){return cn(e)&-67108865}function BOe(e,t){return t|e.transformFlags&134234112}function cn(e){if(!e)return 0;const t=e.transformFlags&~Ine(e.kind);return Nu(e)&&Ac(e.name)?BOe(e.name,t):t}function Sa(e){return e?e.transformFlags:0}function R1e(e){let t=0;for(const n of e)t|=cn(n);e.transformFlags=t}function Ine(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 BF(e){return e.flags|=16,e}function _V(e,t,n){let i,s,o,c,u,f,g,d,y,S;ls(e)?(o="",c=e,u=e.length,f=t,g=n):(E.assert(t==="js"||t==="dts"),o=(t==="js"?e.javascriptPath:e.declarationPath)||"",f=t==="js"?e.javascriptMapPath:e.declarationMapPath,d=()=>t==="js"?e.javascriptText:e.declarationText,y=()=>t==="js"?e.javascriptMapText:e.declarationMapText,u=()=>d().length,e.buildInfo&&e.buildInfo.bundle&&(E.assert(n===void 0||typeof n=="boolean"),i=n,s=t==="js"?e.buildInfo.bundle.js:e.buildInfo.bundle.dts,S=e.oldFileOfCurrentEmit));const T=S?zOe(E.checkDefined(s)):JOe(s,i,u);return T.fileName=o,T.sourceMapPath=f,T.oldFileOfCurrentEmit=S,d&&y?(Object.defineProperty(T,"text",{get:d}),Object.defineProperty(T,"sourceMapText",{get:y})):(E.assert(!S),T.text=c??"",T.sourceMapText=g),T}function JOe(e,t,n){let i,s,o,c,u,f,g,d;for(const S of e?e.sections:Ve)switch(S.kind){case"prologue":i=_r(i,Ke(I.createUnparsedPrologue(S.data),S));break;case"emitHelpers":s=_r(s,bV().get(S.data));break;case"no-default-lib":d=!0;break;case"reference":o=_r(o,{pos:-1,end:-1,fileName:S.data});break;case"type":c=_r(c,{pos:-1,end:-1,fileName:S.data});break;case"type-import":c=_r(c,{pos:-1,end:-1,fileName:S.data,resolutionMode:99});break;case"type-require":c=_r(c,{pos:-1,end:-1,fileName:S.data,resolutionMode:1});break;case"lib":u=_r(u,{pos:-1,end:-1,fileName:S.data});break;case"prepend":let T;for(const k of S.texts)(!t||k.kind!=="internal")&&(T=_r(T,Ke(I.createUnparsedTextLike(k.data,k.kind==="internal"),k)));f=Nn(f,T),g=_r(g,I.createUnparsedPrepend(S.data,T??Ve));break;case"internal":if(t){g||(g=[]);break}case"text":g=_r(g,Ke(I.createUnparsedTextLike(S.data,S.kind==="internal"),S));break;default:E.assertNever(S)}if(!g){const S=I.createUnparsedTextLike(void 0,!1);QE(S,0,typeof n=="function"?n():n),g=[S]}const y=Jm.createUnparsedSource(i??Ve,void 0,g);return AC(i,y),AC(g,y),AC(f,y),y.hasNoDefaultLib=d,y.helpers=s,y.referencedFiles=o||Ve,y.typeReferenceDirectives=c,y.libReferenceDirectives=u||Ve,y}function zOe(e){let t,n;for(const s of e.sections)switch(s.kind){case"internal":case"text":t=_r(t,Ke(I.createUnparsedTextLike(s.data,s.kind==="internal"),s));break;case"no-default-lib":case"reference":case"type":case"type-import":case"type-require":case"lib":n=_r(n,Ke(I.createUnparsedSyntheticReference(s),s));break;case"prologue":case"emitHelpers":case"prepend":break;default:E.assertNever(s)}const i=I.createUnparsedSource(Ve,n,t??Ve);return AC(n,i),AC(t,i),i.helpers=nr(e.sources&&e.sources.helpers,s=>bV().get(s)),i}function j1e(e,t,n,i,s,o){return ls(e)?pV(void 0,e,n,i,void 0,t,s,o):fV(e,t,n,i,s,o)}function fV(e,t,n,i,s,o,c,u){const f=Jm.createInputFiles();f.javascriptPath=t,f.javascriptMapPath=n,f.declarationPath=i,f.declarationMapPath=s,f.buildInfoPath=o;const g=new Map,d=k=>{if(k===void 0)return;let w=g.get(k);return w===void 0&&(w=e(k),g.set(k,w!==void 0?w:!1)),w!==!1?w:void 0},y=k=>{const w=d(k);return w!==void 0?w:`/* Input file ${k} was missing */\r -`};let S;return Object.defineProperties(f,{javascriptText:{get:()=>y(t)},javascriptMapText:{get:()=>d(n)},declarationText:{get:()=>y(E.checkDefined(i))},declarationMapText:{get:()=>d(s)},buildInfo:{get:()=>{if(S===void 0&&o)if(c!=null&&c.getBuildInfo)S=c.getBuildInfo(o,u.configFilePath)??!1;else{const k=d(o);S=k!==void 0?M9(o,k)??!1:!1}return S||void 0}}}),f}function pV(e,t,n,i,s,o,c,u,f,g,d){const y=Jm.createInputFiles();return y.javascriptPath=e,y.javascriptText=t,y.javascriptMapPath=n,y.javascriptMapText=i,y.declarationPath=s,y.declarationText=o,y.declarationMapPath=c,y.declarationMapText=u,y.buildInfoPath=f,y.buildInfo=g,y.oldFileOfCurrentEmit=d,y}function B1e(e,t,n){return new(z1e||(z1e=Il.getSourceMapSourceConstructor()))(e,t,n)}function dn(e,t){if(e.original!==t&&(e.original=t,t)){const n=t.emitNode;n&&(e.emitNode=WOe(n,e.emitNode))}return e}function WOe(e,t){const{flags:n,internalFlags:i,leadingComments:s,trailingComments:o,commentRange:c,sourceMapRange:u,tokenSourceMapRanges:f,constantValue:g,helpers:d,startsOnNewLine:y,snippetElement:S,classThis:T,assignedName:k}=e;if(t||(t={}),n&&(t.flags=n),i&&(t.internalFlags=i&-9),s&&(t.leadingComments=Nn(s.slice(),t.leadingComments)),o&&(t.trailingComments=Nn(o.slice(),t.trailingComments)),c&&(t.commentRange=c),u&&(t.sourceMapRange=u),f&&(t.tokenSourceMapRanges=VOe(f,t.tokenSourceMapRanges)),g!==void 0&&(t.constantValue=g),d)for(const w of d)t.helpers=Hg(t.helpers,w);return y!==void 0&&(t.startsOnNewLine=y),S!==void 0&&(t.snippetElement=S),T&&(t.classThis=T),k&&(t.assignedName=k),t}function VOe(e,t){t||(t=[]);for(const n in e)t[n]=e[n];return t}var JF,dV,Fne,r0,One,yw,J1e,I,z1e,UOe=wt({"src/compiler/factory/nodeFactory.ts"(){Fs(),JF=0,dV=(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))(dV||{}),Fne=[],One={},yw=wne(),J1e={createBaseSourceFileNode:e=>BF(yw.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>BF(yw.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>BF(yw.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>BF(yw.createBaseTokenNode(e)),createBaseNode:e=>BF(yw.createBaseNode(e))},I=gw(4,J1e)}});function ou(e){if(e.emitNode)E.assert(!(e.emitNode.internalFlags&8),"Invalid attempt to mutate an immutable node.");else{if(nE(e)){if(e.kind===312)return e.emitNode={annotatedNodes:[e]};const t=wr(as(wr(e)))??E.fail("Could not determine parsed source file.");ou(t).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function mV(e){var t,n;const i=(n=(t=wr(as(e)))==null?void 0:t.emitNode)==null?void 0:n.annotatedNodes;if(i)for(const s of i)s.emitNode=void 0}function vw(e){const t=ou(e);return t.flags|=3072,t.leadingComments=void 0,t.trailingComments=void 0,e}function Qr(e,t){return ou(e).flags=t,e}function Qd(e,t){const n=ou(e);return n.flags=n.flags|t,e}function bw(e,t){return ou(e).internalFlags=t,e}function QT(e,t){const n=ou(e);return n.internalFlags=n.internalFlags|t,e}function n0(e){var t;return((t=e.emitNode)==null?void 0:t.sourceMapRange)??e}function sa(e,t){return ou(e).sourceMapRange=t,e}function W1e(e,t){var n,i;return(i=(n=e.emitNode)==null?void 0:n.tokenSourceMapRanges)==null?void 0:i[t]}function Lne(e,t,n){const i=ou(e),s=i.tokenSourceMapRanges??(i.tokenSourceMapRanges=[]);return s[t]=n,e}function a3(e){var t;return(t=e.emitNode)==null?void 0:t.startsOnNewLine}function zF(e,t){return ou(e).startsOnNewLine=t,e}function Yd(e){var t;return((t=e.emitNode)==null?void 0:t.commentRange)??e}function Nc(e,t){return ou(e).commentRange=t,e}function OC(e){var t;return(t=e.emitNode)==null?void 0:t.leadingComments}function O1(e,t){return ou(e).leadingComments=t,e}function o3(e,t,n,i){return O1(e,_r(OC(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:n}))}function Sw(e){var t;return(t=e.emitNode)==null?void 0:t.trailingComments}function YT(e,t){return ou(e).trailingComments=t,e}function WF(e,t,n,i){return YT(e,_r(Sw(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:n}))}function Mne(e,t){O1(e,OC(t)),YT(e,Sw(t));const n=ou(t);return n.leadingComments=void 0,n.trailingComments=void 0,e}function Rne(e){var t;return(t=e.emitNode)==null?void 0:t.constantValue}function jne(e,t){const n=ou(e);return n.constantValue=t,e}function ZT(e,t){const n=ou(e);return n.helpers=_r(n.helpers,t),e}function ih(e,t){if(ct(t)){const n=ou(e);for(const i of t)n.helpers=Hg(n.helpers,i)}return e}function V1e(e,t){var n;const i=(n=e.emitNode)==null?void 0:n.helpers;return i?Ik(i,t):!1}function VF(e){var t;return(t=e.emitNode)==null?void 0:t.helpers}function Bne(e,t,n){const i=e.emitNode,s=i&&i.helpers;if(!ct(s))return;const o=ou(t);let c=0;for(let u=0;u0&&(s[u-c]=f)}c>0&&(s.length-=c)}function gV(e){var t;return(t=e.emitNode)==null?void 0:t.snippetElement}function hV(e,t){const n=ou(e);return n.snippetElement=t,e}function yV(e){return ou(e).internalFlags|=4,e}function Jne(e,t){const n=ou(e);return n.typeNode=t,e}function zne(e){var t;return(t=e.emitNode)==null?void 0:t.typeNode}function i0(e,t){return ou(e).identifierTypeArguments=t,e}function zb(e){var t;return(t=e.emitNode)==null?void 0:t.identifierTypeArguments}function Tw(e,t){return ou(e).autoGenerate=t,e}function U1e(e){var t;return(t=e.emitNode)==null?void 0:t.autoGenerate}function Wne(e,t){return ou(e).generatedImportReference=t,e}function Vne(e){var t;return(t=e.emitNode)==null?void 0:t.generatedImportReference}var qOe=wt({"src/compiler/factory/emitNode.ts"(){Fs()}});function Une(e){const t=e.factory,n=Hu(()=>bw(t.createTrue(),8)),i=Hu(()=>bw(t.createFalse(),8));return{getUnscopedHelperName:s,createDecorateHelper:o,createMetadataHelper:c,createParamHelper:u,createESDecorateHelper:w,createRunInitializersHelper:P,createAssignHelper:F,createAwaitHelper:J,createAsyncGeneratorHelper:U,createAsyncDelegatorHelper:$,createAsyncValuesHelper:j,createRestHelper:re,createAwaiterHelper:R,createExtendsHelper:Y,createTemplateObjectHelper:ue,createSpreadArrayHelper:pe,createPropKeyHelper:H,createSetFunctionNameHelper:q,createValuesHelper:ee,createReadHelper:oe,createGeneratorHelper:Se,createCreateBindingHelper:ae,createImportStarHelper:K,createImportStarCallbackHelper:fe,createImportDefaultHelper:ke,createExportStarHelper:Oe,createClassPrivateFieldGetHelper:me,createClassPrivateFieldSetHelper:be,createClassPrivateFieldInHelper:xe,createAddDisposableResourceHelper:De,createDisposeResourcesHelper:ft};function s(ge){return Qr(t.createIdentifier(ge),8196)}function o(ge,Fe,$e,Pt){e.requestEmitHelper(UF);const at=[];return at.push(t.createArrayLiteralExpression(ge,!0)),at.push(Fe),$e&&(at.push($e),Pt&&at.push(Pt)),t.createCallExpression(s("__decorate"),void 0,at)}function c(ge,Fe){return e.requestEmitHelper(qF),t.createCallExpression(s("__metadata"),void 0,[t.createStringLiteral(ge),Fe])}function u(ge,Fe,$e){return e.requestEmitHelper(HF),Ke(t.createCallExpression(s("__param"),void 0,[t.createNumericLiteral(Fe+""),ge]),$e)}function f(ge){const Fe=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral("class")),t.createPropertyAssignment(t.createIdentifier("name"),ge.name),t.createPropertyAssignment(t.createIdentifier("metadata"),ge.metadata)];return t.createObjectLiteralExpression(Fe)}function g(ge){const Fe=ge.computed?t.createElementAccessExpression(t.createIdentifier("obj"),ge.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),ge.name);return t.createPropertyAssignment("get",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,Fe))}function d(ge){const Fe=ge.computed?t.createElementAccessExpression(t.createIdentifier("obj"),ge.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),ge.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(Fe,t.createIdentifier("value")))])))}function y(ge){const Fe=ge.computed?ge.name:Ie(ge.name)?t.createStringLiteralFromNode(ge.name):ge.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(Fe,103,t.createIdentifier("obj"))))}function S(ge,Fe){const $e=[];return $e.push(y(ge)),Fe.get&&$e.push(g(ge)),Fe.set&&$e.push(d(ge)),t.createObjectLiteralExpression($e)}function T(ge){const Fe=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral(ge.kind)),t.createPropertyAssignment(t.createIdentifier("name"),ge.name.computed?ge.name.name:t.createStringLiteralFromNode(ge.name.name)),t.createPropertyAssignment(t.createIdentifier("static"),ge.static?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("private"),ge.private?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("access"),S(ge.name,ge.access)),t.createPropertyAssignment(t.createIdentifier("metadata"),ge.metadata)];return t.createObjectLiteralExpression(Fe)}function k(ge){return ge.kind==="class"?f(ge):T(ge)}function w(ge,Fe,$e,Pt,at,Je){return e.requestEmitHelper(GF),t.createCallExpression(s("__esDecorate"),void 0,[ge??t.createNull(),Fe??t.createNull(),$e,k(Pt),at,Je])}function P(ge,Fe,$e){return e.requestEmitHelper($F),t.createCallExpression(s("__runInitializers"),void 0,$e?[ge,Fe,$e]:[ge,Fe])}function F(ge){return Fa(e.getCompilerOptions())>=2?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"assign"),void 0,ge):(e.requestEmitHelper(XF),t.createCallExpression(s("__assign"),void 0,ge))}function J(ge){return e.requestEmitHelper(KT),t.createCallExpression(s("__await"),void 0,[ge])}function U(ge,Fe){return e.requestEmitHelper(KT),e.requestEmitHelper(QF),(ge.emitNode||(ge.emitNode={})).flags|=1572864,t.createCallExpression(s("__asyncGenerator"),void 0,[Fe?t.createThis():t.createVoidZero(),t.createIdentifier("arguments"),ge])}function $(ge){return e.requestEmitHelper(KT),e.requestEmitHelper(YF),t.createCallExpression(s("__asyncDelegator"),void 0,[ge])}function j(ge){return e.requestEmitHelper(ZF),t.createCallExpression(s("__asyncValues"),void 0,[ge])}function re(ge,Fe,$e,Pt){e.requestEmitHelper(KF);const at=[];let Je=0;for(let pt=0;pt{let i="";for(let s=0;se.name))}function c3(e,t){return Rs(e)&&Ie(e.expression)&&(ha(e.expression)&8192)!==0&&e.expression.escapedText===t}var SV,UF,qF,HF,GF,$F,XF,KT,QF,YF,ZF,KF,eO,tO,rO,nO,iO,sO,aO,oO,cO,LC,lO,xw,uO,_O,fO,pO,dO,mO,gO,q1e,kw,Cw,HOe=wt({"src/compiler/factory/emitHelpers.ts"(){Fs(),SV=(e=>(e.Field="f",e.Method="m",e.Accessor="a",e))(SV||{}),UF={name:"typescript:decorate",importName:"__decorate",scoped:!1,priority:2,text:` +`,Il={getNodeConstructor:()=>Gre,getTokenConstructor:()=>gOe,getIdentifierConstructor:()=>hOe,getPrivateIdentifierConstructor:()=>Gre,getSourceFileConstructor:()=>Gre,getSymbolConstructor:()=>pOe,getTypeConstructor:()=>dOe,getSignatureConstructor:()=>mOe,getSourceMapSourceConstructor:()=>yOe},kne=[],Jc={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:Jc.target.computeValue(e)>=2?5:1},moduleResolution:{dependencies:["module","target"],computeValue:e=>{let t=e.moduleResolution;if(t===void 0)switch(Jc.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||(Jc.module.computeValue(e)===100||Jc.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(Jc.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:Jc.esModuleInterop.computeValue(e)||Jc.module.computeValue(e)===4||Jc.moduleResolution.computeValue(e)===100},resolvePackageJsonExports:{dependencies:["moduleResolution"],computeValue:e=>{const t=Jc.moduleResolution.computeValue(e);if(!qT(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=>{const t=Jc.moduleResolution.computeValue(e);if(!qT(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:Jc.moduleResolution.computeValue(e)===100},declaration:{dependencies:["composite"],computeValue:e=>!!(e.declaration||e.composite)},preserveConstEnums:{dependencies:["isolatedModules","verbatimModuleSyntax"],computeValue:e=>!!(e.preserveConstEnums||Jc.isolatedModules.computeValue(e))},incremental:{dependencies:["composite"],computeValue:e=>!!(e.incremental||e.composite)},declarationMap:{dependencies:["declaration","composite"],computeValue:e=>!!(e.declarationMap&&Jc.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?Jc.target.computeValue(e)>=9:e.useDefineForClassFields},noImplicitAny:{dependencies:["strict"],computeValue:e=>Mu(e,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:e=>Mu(e,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:e=>Mu(e,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:e=>Mu(e,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:e=>Mu(e,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:e=>Mu(e,"strictPropertyInitialization")},alwaysStrict:{dependencies:["strict"],computeValue:e=>Mu(e,"alwaysStrict")},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:e=>Mu(e,"useUnknownInCatchVariables")}},Fa=Jc.target.computeValue,au=Jc.module.computeValue,Ru=Jc.moduleResolution.computeValue,YW=Jc.moduleDetection.computeValue,Tp=Jc.isolatedModules.computeValue,Om=Jc.esModuleInterop.computeValue,Bb=Jc.allowSyntheticDefaultImports.computeValue,IF=Jc.resolvePackageJsonExports.computeValue,FF=Jc.resolvePackageJsonImports.computeValue,F1=Jc.resolveJsonModule.computeValue,Hf=Jc.declaration.computeValue,n2=Jc.preserveConstEnums.computeValue,n3=Jc.incremental.computeValue,_w=Jc.declarationMap.computeValue,oy=Jc.allowJs.computeValue,i3=Jc.useDefineForClassFields.computeValue,ZW=/[^\w\s/]/g,N1e=[42,63],KW=["node_modules","bower_components","jspm_packages"],eV=`(?!(${KW.join("|")})(/|$))`,Cne={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${eV}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>ane(e,Cne.singleAsteriskRegexFragment)},Ene={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${eV}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>ane(e,Ene.singleAsteriskRegexFragment)},Pne={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:e=>ane(e,Pne.singleAsteriskRegexFragment)},tV={files:Cne,directories:Ene,exclude:Pne},IC=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],rV=Op(IC),I1e=[...IC,[".json"]],F1e=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],nV=[[".js",".jsx"],[".mjs"],[".cjs"]],FC=Op(nV),OF=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],O1e=[...OF,[".json"]],fw=[".d.ts",".d.cts",".d.mts"],pw=[".ts",".cts",".mts",".tsx"],dw=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"],iV=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))(iV||{}),sV=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"],LF={files:Ve,directories:Ve},L1e=String.prototype.replace}});function Dne(){let e,t,n,i,s;return{createBaseSourceFileNode:o,createBaseIdentifierNode:c,createBasePrivateIdentifierNode:u,createBaseTokenNode:f,createBaseNode:g};function o(d){return new(s||(s=Il.getSourceFileConstructor()))(d,-1,-1)}function c(d){return new(n||(n=Il.getIdentifierConstructor()))(d,-1,-1)}function u(d){return new(i||(i=Il.getPrivateIdentifierConstructor()))(d,-1,-1)}function f(d){return new(t||(t=Il.getTokenConstructor()))(d,-1,-1)}function g(d){return new(e||(e=Il.getNodeConstructor()))(d,-1,-1)}}var LOe=Dt({"src/compiler/factory/baseNodeFactory.ts"(){Fs()}});function wne(e){let t,n;return{getParenthesizeLeftSideOfBinaryForOperator:i,getParenthesizeRightSideOfBinaryForOperator:s,parenthesizeLeftSideOfBinary:g,parenthesizeRightSideOfBinary:d,parenthesizeExpressionOfComputedPropertyName:y,parenthesizeConditionOfConditionalExpression:S,parenthesizeBranchOfConditionalExpression:T,parenthesizeExpressionOfExportDefault:k,parenthesizeExpressionOfNew:w,parenthesizeLeftSideOfAccess:P,parenthesizeOperandOfPostfixUnary:F,parenthesizeOperandOfPrefixUnary:J,parenthesizeExpressionsOfCommaDelimitedList:U,parenthesizeExpressionForDisallowedComma:$,parenthesizeExpressionOfExpressionStatement:j,parenthesizeConciseBodyOfArrowFunction:re,parenthesizeCheckTypeOfConditionalType:R,parenthesizeExtendsTypeOfConditionalType:Y,parenthesizeConstituentTypesOfUnionType:pe,parenthesizeConstituentTypeOfUnionType:ue,parenthesizeConstituentTypesOfIntersectionType:q,parenthesizeConstituentTypeOfIntersectionType:H,parenthesizeOperandOfTypeOperator:ee,parenthesizeOperandOfReadonlyTypeOperator:oe,parenthesizeNonArrayTypeOfPostfixType:Se,parenthesizeElementTypesOfTupleType:ae,parenthesizeElementTypeOfTupleType:K,parenthesizeTypeOfOptionalType:ke,parenthesizeTypeArguments:be,parenthesizeLeadingTypeArgument:Oe};function i(xe){t||(t=new Map);let De=t.get(xe);return De||(De=ft=>g(xe,ft),t.set(xe,De)),De}function s(xe){n||(n=new Map);let De=n.get(xe);return De||(De=ft=>d(xe,void 0,ft),n.set(xe,De)),De}function o(xe,De,ft,ge){const Fe=V8(226,xe),$e=rW(226,xe),Pt=Bp(De);if(!ft&&De.kind===219&&Fe>3)return!0;const at=DE(Pt);switch(Ao(at,Fe)){case-1:return!(!ft&&$e===1&&De.kind===229);case 1:return!1;case 0:if(ft)return $e===1;if(Zr(Pt)&&Pt.operatorToken.kind===xe){if(c(xe))return!1;if(xe===40){const pt=ge?u(ge):0;if(oE(pt)&&pt===u(Pt))return!1}}return tW(Pt)===0}}function c(xe){return xe===42||xe===52||xe===51||xe===53||xe===28}function u(xe){if(xe=Bp(xe),oE(xe.kind))return xe.kind;if(xe.kind===226&&xe.operatorToken.kind===40){if(xe.cachedLiteralKind!==void 0)return xe.cachedLiteralKind;const De=u(xe.left),ft=oE(De)&&De===u(xe.right)?De:0;return xe.cachedLiteralKind=ft,ft}return 0}function f(xe,De,ft,ge){return Bp(De).kind===217?De:o(xe,De,ft,ge)?e.createParenthesizedExpression(De):De}function g(xe,De){return f(xe,De,!0)}function d(xe,De,ft){return f(xe,ft,!1,De)}function y(xe){return b3(xe)?e.createParenthesizedExpression(xe):xe}function S(xe){const De=V8(227,58),ft=Bp(xe),ge=DE(ft);return Ao(ge,De)!==1?e.createParenthesizedExpression(xe):xe}function T(xe){const De=Bp(xe);return b3(De)?e.createParenthesizedExpression(xe):xe}function k(xe){const De=Bp(xe);let ft=b3(De);if(!ft)switch(EC(De,!1).kind){case 231:case 218:ft=!0}return ft?e.createParenthesizedExpression(xe):xe}function w(xe){const De=EC(xe,!0);switch(De.kind){case 213:return e.createParenthesizedExpression(xe);case 214:return De.arguments?xe:e.createParenthesizedExpression(xe)}return P(xe)}function P(xe,De){const ft=Bp(xe);return S_(ft)&&(ft.kind!==214||ft.arguments)&&(De||!hu(ft))?xe:Ke(e.createParenthesizedExpression(xe),xe)}function F(xe){return S_(xe)?xe:Ke(e.createParenthesizedExpression(xe),xe)}function J(xe){return sz(xe)?xe:Ke(e.createParenthesizedExpression(xe),xe)}function U(xe){const De=nl(xe,$);return Ke(e.createNodeArray(De,xe.hasTrailingComma),xe)}function $(xe){const De=Bp(xe),ft=DE(De),ge=V8(226,28);return ft>ge?xe:Ke(e.createParenthesizedExpression(xe),xe)}function j(xe){const De=Bp(xe);if(Rs(De)){const ge=De.expression,Fe=Bp(ge).kind;if(Fe===218||Fe===219){const $e=e.updateCallExpression(De,Ke(e.createParenthesizedExpression(ge),ge),De.typeArguments,De.arguments);return e.restoreOuterExpressions(xe,$e,8)}}const ft=EC(De,!1).kind;return ft===210||ft===218?Ke(e.createParenthesizedExpression(xe),xe):xe}function re(xe){return!Cs(xe)&&(b3(xe)||EC(xe,!1).kind===210)?Ke(e.createParenthesizedExpression(xe),xe):xe}function R(xe){switch(xe.kind){case 184:case 185:case 194:return e.createParenthesizedType(xe)}return xe}function Y(xe){switch(xe.kind){case 194:return e.createParenthesizedType(xe)}return xe}function ue(xe){switch(xe.kind){case 192:case 193:return e.createParenthesizedType(xe)}return R(xe)}function pe(xe){return e.createNodeArray(nl(xe,ue))}function H(xe){switch(xe.kind){case 192:case 193:return e.createParenthesizedType(xe)}return ue(xe)}function q(xe){return e.createNodeArray(nl(xe,H))}function ee(xe){switch(xe.kind){case 193:return e.createParenthesizedType(xe)}return H(xe)}function oe(xe){switch(xe.kind){case 198:return e.createParenthesizedType(xe)}return ee(xe)}function Se(xe){switch(xe.kind){case 195:case 198:case 186:return e.createParenthesizedType(xe)}return ee(xe)}function ae(xe){return e.createNodeArray(nl(xe,K))}function K(xe){return fe(xe)?e.createParenthesizedType(xe):xe}function fe(xe){return WC(xe)?xe.postfix:RC(xe)||Mm(xe)||MC(xe)||Vb(xe)?fe(xe.type):cx(xe)?fe(xe.falseType):uy(xe)||ox(xe)?fe(ka(xe.types)):zb(xe)?!!xe.typeParameter.constraint&&fe(xe.typeParameter.constraint):!1}function ke(xe){return fe(xe)?e.createParenthesizedType(xe):Se(xe)}function Oe(xe){return tte(xe)&&xe.typeParameters?e.createParenthesizedType(xe):xe}function me(xe,De){return De===0?Oe(xe):xe}function be(xe){if(ct(xe))return e.createNodeArray(nl(xe,me))}}var aV,MOe=Dt({"src/compiler/factory/parenthesizerRules.ts"(){Fs(),aV={getParenthesizeLeftSideOfBinaryForOperator:e=>wo,getParenthesizeRightSideOfBinaryForOperator:e=>wo,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,n)=>n,parenthesizeExpressionOfComputedPropertyName:wo,parenthesizeConditionOfConditionalExpression:wo,parenthesizeBranchOfConditionalExpression:wo,parenthesizeExpressionOfExportDefault:wo,parenthesizeExpressionOfNew:e=>Ls(e,S_),parenthesizeLeftSideOfAccess:e=>Ls(e,S_),parenthesizeOperandOfPostfixUnary:e=>Ls(e,S_),parenthesizeOperandOfPrefixUnary:e=>Ls(e,sz),parenthesizeExpressionsOfCommaDelimitedList:e=>Ls(e,Mv),parenthesizeExpressionForDisallowedComma:wo,parenthesizeExpressionOfExpressionStatement:wo,parenthesizeConciseBodyOfArrowFunction:wo,parenthesizeCheckTypeOfConditionalType:wo,parenthesizeExtendsTypeOfConditionalType:wo,parenthesizeConstituentTypesOfUnionType:e=>Ls(e,Mv),parenthesizeConstituentTypeOfUnionType:wo,parenthesizeConstituentTypesOfIntersectionType:e=>Ls(e,Mv),parenthesizeConstituentTypeOfIntersectionType:wo,parenthesizeOperandOfTypeOperator:wo,parenthesizeOperandOfReadonlyTypeOperator:wo,parenthesizeNonArrayTypeOfPostfixType:wo,parenthesizeElementTypesOfTupleType:e=>Ls(e,Mv),parenthesizeElementTypeOfTupleType:wo,parenthesizeTypeOfOptionalType:wo,parenthesizeTypeArguments:e=>e&&Ls(e,Mv),parenthesizeLeadingTypeArgument:wo}}});function Ane(e){return{convertToFunctionBlock:t,convertToFunctionExpression:n,convertToClassExpression:i,convertToArrayAssignmentElement:s,convertToObjectAssignmentElement:o,convertToAssignmentPattern:c,convertToObjectAssignmentPattern:u,convertToArrayAssignmentPattern:f,convertToAssignmentElementTarget:g};function t(d,y){if(Cs(d))return d;const S=e.createReturnStatement(d);Ke(S,d);const T=e.createBlock([S],y);return Ke(T,d),T}function n(d){var y;if(!d.body)return E.fail("Cannot convert a FunctionDeclaration without a body");const S=e.createFunctionExpression((y=Lv(d))==null?void 0:y.filter(T=>!rx(T)&&!yO(T)),d.asteriskToken,d.name,d.typeParameters,d.parameters,d.type,d.body);return dn(S,d),Ke(S,d),s3(d)&&jF(S,!0),S}function i(d){var y;const S=e.createClassExpression((y=d.modifiers)==null?void 0:y.filter(T=>!rx(T)&&!yO(T)),d.name,d.typeParameters,d.heritageClauses,d.members);return dn(S,d),Ke(S,d),s3(d)&&jF(S,!0),S}function s(d){if(Ea(d)){if(d.dotDotDotToken)return E.assertNode(d.name,Ie),dn(Ke(e.createSpreadElement(d.name),d),d);const y=g(d.name);return d.initializer?dn(Ke(e.createAssignment(y,d.initializer),d),d):y}return Ls(d,ot)}function o(d){if(Ea(d)){if(d.dotDotDotToken)return E.assertNode(d.name,Ie),dn(Ke(e.createSpreadAssignment(d.name),d),d);if(d.propertyName){const y=g(d.name);return dn(Ke(e.createPropertyAssignment(d.propertyName,d.initializer?e.createAssignment(y,d.initializer):y),d),d)}return E.assertNode(d.name,Ie),dn(Ke(e.createShorthandPropertyAssignment(d.name,d.initializer),d),d)}return Ls(d,Yg)}function c(d){switch(d.kind){case 207:case 209:return f(d);case 206:case 210:return u(d)}}function u(d){return xp(d)?dn(Ke(e.createObjectLiteralExpression(nr(d.elements,o)),d),d):Ls(d,ua)}function f(d){return s2(d)?dn(Ke(e.createArrayLiteralExpression(nr(d.elements,s)),d),d):Ls(d,ju)}function g(d){return Ns(d)?c(d):Ls(d,ot)}}var oV,ROe=Dt({"src/compiler/factory/nodeConverters.ts"(){Fs(),oV={convertToFunctionBlock:ks,convertToFunctionExpression:ks,convertToClassExpression:ks,convertToArrayAssignmentElement:ks,convertToObjectAssignmentElement:ks,convertToAssignmentPattern:ks,convertToObjectAssignmentPattern:ks,convertToArrayAssignmentPattern:ks,convertToAssignmentElementTarget:ks}}});function M1e(e){Ine.push(e)}function mw(e,t){const n=e&8?wo:dn,i=Hu(()=>e&1?aV:wne(F)),s=Hu(()=>e&2?oV:Ane(F)),o=Cm(v=>(D,M)=>he(D,v,M)),c=Cm(v=>D=>Ye(v,D)),u=Cm(v=>D=>At(D,v)),f=Cm(v=>()=>Y6(v)),g=Cm(v=>D=>ES(v,D)),d=Cm(v=>(D,M)=>M2(v,D,M)),y=Cm(v=>(D,M)=>Z6(v,D,M)),S=Cm(v=>(D,M)=>Eo(v,D,M)),T=Cm(v=>(D,M)=>cv(v,D,M)),k=Cm(v=>(D,M,ie)=>tp(v,D,M,ie)),w=Cm(v=>(D,M,ie)=>Oy(v,D,M,ie)),P=Cm(v=>(D,M,ie,ze)=>Ly(v,D,M,ie,ze)),F={get parenthesizer(){return i()},get converters(){return s()},baseFactory:t,flags:e,createNodeArray:J,createNumericLiteral:re,createBigIntLiteral:R,createStringLiteral:ue,createStringLiteralFromNode:pe,createRegularExpressionLiteral:H,createLiteralLikeNode:q,createIdentifier:Se,createTempVariable:ae,createLoopVariable:K,createUniqueName:fe,getGeneratedNameForNode:ke,createPrivateIdentifier:me,createUniquePrivateName:xe,getGeneratedPrivateNameForNode:De,createToken:ge,createSuper:Fe,createThis:$e,createNull:Pt,createTrue:at,createFalse:Je,createModifier:pt,createModifiersFromModifierFlags:zt,createQualifiedName:Vt,updateQualifiedName:hr,createComputedPropertyName:Lr,updateComputedPropertyName:er,createTypeParameterDeclaration:jt,updateTypeParameterDeclaration:Rt,createParameterDeclaration:Kn,updateParameterDeclaration:Ji,createDecorator:yi,updateDecorator:os,createPropertySignature:yr,updatePropertySignature:_i,createPropertyDeclaration:Ht,updatePropertyDeclaration:Ue,createMethodSignature:Et,updateMethodSignature:fr,createMethodDeclaration:Hn,updateMethodDeclaration:ei,createConstructorDeclaration:cr,updateConstructorDeclaration:br,createGetAccessorDeclaration:rt,updateGetAccessorDeclaration:tt,createSetAccessorDeclaration:ne,updateSetAccessorDeclaration:we,createCallSignature:B,updateCallSignature:Ge,createConstructSignature:mt,updateConstructSignature:Be,createIndexSignature:nt,updateIndexSignature:wt,createClassStaticBlockDeclaration:ns,updateClassStaticBlockDeclaration:Vs,createTemplateLiteralTypeSpan:ir,updateTemplateLiteralTypeSpan:Yt,createKeywordTypeNode:Kt,createTypePredicateNode:W,updateTypePredicateNode:Pe,createTypeReferenceNode:St,updateTypeReferenceNode:A,createFunctionTypeNode:le,updateFunctionTypeNode:V,createConstructorTypeNode:Ne,updateConstructorTypeNode:Tt,createTypeQueryNode:Er,updateTypeQueryNode:Nr,createTypeLiteralNode:fi,updateTypeLiteralNode:oi,createArrayTypeNode:Wr,updateArrayTypeNode:Cn,createTupleTypeNode:Qi,updateTupleTypeNode:pi,createNamedTupleMember:ci,updateNamedTupleMember:In,createOptionalTypeNode:is,updateOptionalTypeNode:pr,createRestTypeNode:_o,updateRestTypeNode:kc,createUnionTypeNode:go,updateUnionTypeNode:qo,createIntersectionTypeNode:Ol,updateIntersectionTypeNode:$i,createConditionalTypeNode:zs,updateConditionalTypeNode:Ll,createInferTypeNode:Ya,updateInferTypeNode:oa,createImportTypeNode:Fc,updateImportTypeNode:rc,createParenthesizedType:Ro,updateParenthesizedType:fs,createThisTypeNode:Wt,createTypeOperatorNode:ho,updateTypeOperatorNode:Pl,createIndexedAccessTypeNode:Ml,updateIndexedAccessTypeNode:q_,createMappedTypeNode:so,updateMappedTypeNode:Zc,createLiteralTypeNode:se,updateLiteralTypeNode:X,createTemplateLiteralType:Wo,updateTemplateLiteralType:Zf,createObjectBindingPattern:Ee,updateObjectBindingPattern:lt,createArrayBindingPattern:Xt,updateArrayBindingPattern:an,createBindingElement:rn,updateBindingElement:En,createArrayLiteralExpression:li,updateArrayLiteralExpression:gn,createObjectLiteralExpression:Ps,updateObjectLiteralExpression:Qo,createPropertyAccessExpression:e&4?(v,D)=>Qr(yo(v,D),262144):yo,updatePropertyAccessExpression:Vc,createPropertyAccessChain:e&4?(v,D,M)=>Qr($a(v,D,M),262144):$a,updatePropertyAccessChain:hl,createElementAccessExpression:cl,updateElementAccessExpression:Ep,createElementAccessChain:Ju,updateElementAccessChain:Te,createCallExpression:Fr,updateCallExpression:Yi,createCallChain:Ds,updateCallChain:Is,createNewExpression:Cc,updateNewExpression:Uc,createTaggedTemplateExpression:jo,updateTaggedTemplateExpression:Ho,createTypeAssertion:dc,updateTypeAssertion:Ec,createParenthesizedExpression:yl,updateParenthesizedExpression:Nf,createFunctionExpression:__,updateFunctionExpression:Ku,createArrowFunction:Kf,updateArrowFunction:sm,createDeleteExpression:qm,updateDeleteExpression:_h,createTypeOfExpression:_u,updateTypeOfExpression:fh,createVoidExpression:H_,updateVoidExpression:Ag,createAwaitExpression:f_,updateAwaitExpression:Q,createPrefixUnaryExpression:Ye,updatePrefixUnaryExpression:Ct,createPostfixUnaryExpression:At,updatePostfixUnaryExpression:O,createBinaryExpression:he,updateBinaryExpression:Ft,createConditionalExpression:zr,updateConditionalExpression:Vn,createTemplateExpression:Ln,updateTemplateExpression:ji,createTemplateHead:G_,createTemplateMiddle:p_,createTemplateTail:ky,createNoSubstitutionTemplateLiteral:ja,createTemplateLiteralLikeNode:Kc,createYieldExpression:Qp,updateYieldExpression:Yp,createSpreadElement:Ci,updateSpreadElement:ph,createClassExpression:h0,updateClassExpression:Zp,createOmittedExpression:w2,createExpressionWithTypeArguments:A2,updateExpressionWithTypeArguments:If,createAsExpression:am,updateAsExpression:Ff,createNonNullExpression:dh,updateNonNullExpression:Ae,createSatisfiesExpression:We,updateSatisfiesExpression:bt,createNonNullChain:Nt,updateNonNullChain:sr,createMetaProperty:Mr,updateMetaProperty:tr,createTemplateSpan:Rr,updateTemplateSpan:Yn,createSemicolonClassElement:Gr,createBlock:zn,updateBlock:Yr,createVariableStatement:ws,updateVariableStatement:Ta,createEmptyStatement:ku,createExpressionStatement:jl,updateExpressionStatement:mh,createIfStatement:Z1,updateIfStatement:Ux,createDoStatement:K1,updateDoStatement:V6,createWhileStatement:U6,updateWhileStatement:q6,createForStatement:hS,updateForStatement:N2,createForInStatement:qx,updateForInStatement:H6,createForOfStatement:Hx,updateForOfStatement:Gx,createContinueStatement:$x,updateContinueStatement:Xx,createBreakStatement:yS,updateBreakStatement:Qx,createReturnStatement:I2,updateReturnStatement:F2,createWithStatement:Cy,updateWithStatement:Ey,createSwitchStatement:Ng,updateSwitchStatement:ev,createLabeledStatement:wa,updateLabeledStatement:vS,createThrowStatement:G6,updateThrowStatement:tv,createTryStatement:gh,updateTryStatement:Hm,createDebuggerStatement:ep,createVariableDeclaration:d_,updateVariableDeclaration:$_,createVariableDeclarationList:P_,updateVariableDeclarationList:y0,createFunctionDeclaration:bS,updateFunctionDeclaration:$6,createClassDeclaration:Py,updateClassDeclaration:rv,createInterfaceDeclaration:Zx,updateInterfaceDeclaration:qc,createTypeAliasDeclaration:v0,updateTypeAliasDeclaration:Kx,createEnumDeclaration:Td,updateEnumDeclaration:SS,createModuleDeclaration:Me,updateModuleDeclaration:xd,createModuleBlock:Bl,updateModuleBlock:nv,createCaseBlock:ek,updateCaseBlock:Dy,createNamespaceExportDeclaration:b0,updateNamespaceExportDeclaration:S0,createImportEqualsDeclaration:xa,updateImportEqualsDeclaration:kd,createImportDeclaration:TS,updateImportDeclaration:xS,createImportClause:iv,updateImportClause:kS,createAssertClause:Pp,updateAssertClause:Dp,createAssertEntry:hh,updateAssertEntry:tk,createImportTypeAssertionContainer:Cd,updateImportTypeAssertionContainer:X6,createImportAttributes:O2,updateImportAttributes:wi,createImportAttribute:jn,updateImportAttribute:Gm,createNamespaceImport:m_,updateNamespaceImport:CP,createNamespaceExport:yh,updateNamespaceExport:EP,createNamedImports:wy,updateNamedImports:Go,createImportSpecifier:_f,updateImportSpecifier:Ig,createExportAssignment:wp,updateExportAssignment:Ay,createExportDeclaration:Kp,updateExportDeclaration:vh,createNamedExports:CS,updateNamedExports:Fg,createExportSpecifier:rk,updateExportSpecifier:Og,createMissingDeclaration:om,createExternalModuleReference:T0,updateExternalModuleReference:Q6,get createJSDocAllType(){return f(319)},get createJSDocUnknownType(){return f(320)},get createJSDocNonNullableType(){return y(322)},get updateJSDocNonNullableType(){return S(322)},get createJSDocNullableType(){return y(321)},get updateJSDocNullableType(){return S(321)},get createJSDocOptionalType(){return g(323)},get updateJSDocOptionalType(){return d(323)},get createJSDocVariadicType(){return g(325)},get updateJSDocVariadicType(){return d(325)},get createJSDocNamepathType(){return g(326)},get updateJSDocNamepathType(){return d(326)},createJSDocFunctionType:PS,updateJSDocFunctionType:ed,createJSDocTypeLiteral:Ny,updateJSDocTypeLiteral:K6,createJSDocTypeExpression:DS,updateJSDocTypeExpression:PP,createJSDocSignature:en,updateJSDocSignature:Dl,createJSDocTemplateTag:cm,updateJSDocTemplateTag:$r,createJSDocTypedefTag:wS,updateJSDocTypedefTag:sv,createJSDocParameterTag:vl,updateJSDocParameterTag:$m,createJSDocPropertyTag:td,updateJSDocPropertyTag:R2,createJSDocCallbackTag:j2,updateJSDocCallbackTag:Iy,createJSDocOverloadTag:bh,updateJSDocOverloadTag:AS,createJSDocAugmentsTag:rd,updateJSDocAugmentsTag:av,createJSDocImplementsTag:Lg,updateJSDocImplementsTag:D_,createJSDocSeeTag:Fy,updateJSDocSeeTag:nk,createJSDocNameReference:ov,updateJSDocNameReference:e4,createJSDocMemberName:B2,updateJSDocMemberName:NS,createJSDocLink:ff,updateJSDocLink:IS,createJSDocLinkCode:mc,updateJSDocLinkCode:ll,createJSDocLinkPlain:FS,updateJSDocLinkPlain:$l,get createJSDocTypeTag(){return w(351)},get updateJSDocTypeTag(){return P(351)},get createJSDocReturnTag(){return w(349)},get updateJSDocReturnTag(){return P(349)},get createJSDocThisTag(){return w(350)},get updateJSDocThisTag(){return P(350)},get createJSDocAuthorTag(){return T(337)},get updateJSDocAuthorTag(){return k(337)},get createJSDocClassTag(){return T(339)},get updateJSDocClassTag(){return k(339)},get createJSDocPublicTag(){return T(340)},get updateJSDocPublicTag(){return k(340)},get createJSDocPrivateTag(){return T(341)},get updateJSDocPrivateTag(){return k(341)},get createJSDocProtectedTag(){return T(342)},get updateJSDocProtectedTag(){return k(342)},get createJSDocReadonlyTag(){return T(343)},get updateJSDocReadonlyTag(){return k(343)},get createJSDocOverrideTag(){return T(344)},get updateJSDocOverrideTag(){return k(344)},get createJSDocDeprecatedTag(){return T(338)},get updateJSDocDeprecatedTag(){return k(338)},get createJSDocThrowsTag(){return w(356)},get updateJSDocThrowsTag(){return P(356)},get createJSDocSatisfiesTag(){return w(357)},get updateJSDocSatisfiesTag(){return P(357)},createJSDocEnumTag:pf,updateJSDocEnumTag:OS,createJSDocUnknownTag:wl,updateJSDocUnknownTag:ik,createJSDocText:LS,updateJSDocText:vo,createJSDocComment:t4,updateJSDocComment:lv,createJsxElement:J2,updateJsxElement:DP,createJsxSelfClosingElement:zu,updateJsxSelfClosingElement:Sh,createJsxOpeningElement:lm,updateJsxOpeningElement:sk,createJsxClosingElement:X_,updateJsxClosingElement:ak,createJsxFragment:w_,createJsxText:k0,updateJsxText:MS,createJsxOpeningFragment:r4,createJsxJsxClosingFragment:n4,updateJsxFragment:ok,createJsxAttribute:RS,updateJsxAttribute:i4,createJsxAttributes:My,updateJsxAttributes:Q_,createJsxSpreadAttribute:Xm,updateJsxSpreadAttribute:s4,createJsxExpression:jS,updateJsxExpression:Na,createJsxNamespacedName:un,updateJsxNamespacedName:Lf,createCaseClause:e_,updateCaseClause:z2,createDefaultClause:a4,updateDefaultClause:uv,createHeritageClause:W2,updateHeritageClause:BS,createCatchClause:Mg,updateCatchClause:Ed,createPropertyAssignment:Mf,updatePropertyAssignment:nd,createShorthandPropertyAssignment:Rg,updateShorthandPropertyAssignment:jg,createSpreadAssignment:Oc,updateSpreadAssignment:o4,createEnumMember:rp,updateEnumMember:Qm,createSourceFile:Rf,updateSourceFile:ao,createRedirectedSourceFile:V2,createBundle:U2,updateBundle:q2,createUnparsedSource:xh,createUnparsedPrologue:fv,createUnparsedPrepend:C,createUnparsedTextLike:te,createUnparsedSyntheticReference:it,createInputFiles:Ut,createSyntheticExpression:vn,createSyntaxList:gi,createNotEmittedStatement:ti,createPartiallyEmittedExpression:Li,updatePartiallyEmittedExpression:Gs,createCommaListExpression:t_,updateCommaListExpression:np,createSyntheticReferenceExpression:jy,updateSyntheticReferenceExpression:ni,cloneNode:Jy,get createComma(){return o(28)},get createAssignment(){return o(64)},get createLogicalOr(){return o(57)},get createLogicalAnd(){return o(56)},get createBitwiseOr(){return o(52)},get createBitwiseXor(){return o(53)},get createBitwiseAnd(){return o(51)},get createStrictEquality(){return o(37)},get createStrictInequality(){return o(38)},get createEquality(){return o(35)},get createInequality(){return o(36)},get createLessThan(){return o(30)},get createLessThanEquals(){return o(33)},get createGreaterThan(){return o(32)},get createGreaterThanEquals(){return o(34)},get createLeftShift(){return o(48)},get createRightShift(){return o(49)},get createUnsignedRightShift(){return o(50)},get createAdd(){return o(40)},get createSubtract(){return o(41)},get createMultiply(){return o(42)},get createDivide(){return o(44)},get createModulo(){return o(45)},get createExponent(){return o(43)},get createPrefixPlus(){return c(40)},get createPrefixMinus(){return c(41)},get createPrefixIncrement(){return c(46)},get createPrefixDecrement(){return c(47)},get createBitwiseNot(){return c(55)},get createLogicalNot(){return c(54)},get createPostfixIncrement(){return u(46)},get createPostfixDecrement(){return u(47)},createImmediatelyInvokedFunctionExpression:zS,createImmediatelyInvokedArrowFunction:H2,createVoidZero:um,createExportDefault:Zm,createExternalModuleExport:c4,createTypeCheck:WS,createIsNotTypeCheck:DR,createMethodCall:zy,createGlobalMethodCall:Pd,createFunctionBindCall:rI,createFunctionCallCall:nI,createFunctionApplyCall:pv,createArraySliceCall:wP,createArrayConcatCall:Km,createObjectDefinePropertyCall:_k,createObjectGetOwnPropertyDescriptorCall:iI,createReflectGetCall:_m,createReflectSetCall:G,createPropertyDescriptor:je,createCallBinding:ui,createAssignmentTargetWrapper:Zn,inlineExpressions:Ai,getInternalName:to,getLocalName:Da,getExportName:ip,getDeclarationName:fm,getNamespaceMemberName:Bg,getExternalModuleOrNamespaceExportName:kh,restoreOuterExpressions:Ot,restoreEnclosingLabel:Tn,createUseStrictPrologue:A_,copyPrologue:Ch,copyStandardPrologue:VS,copyCustomPrologue:l4,ensureUseStrict:AP,liftToBlock:NP,mergeLexicalEnvironment:Eh,replaceModifiers:Vy,replaceDecoratorsAndModifiers:u4,replacePropertyName:df};return rr(Ine,v=>v(F)),F;function J(v,D){if(v===void 0||v===Ve)v=[];else if(Mv(v)){if(D===void 0||v.hasTrailingComma===D)return v.transformFlags===void 0&&R1e(v),E.attachNodeArrayDebugInfo(v),v;const ze=v.slice();return ze.pos=v.pos,ze.end=v.end,ze.hasTrailingComma=D,ze.transformFlags=v.transformFlags,E.attachNodeArrayDebugInfo(ze),ze}const M=v.length,ie=M>=1&&M<=4?v.slice():v;return ie.pos=-1,ie.end=-1,ie.hasTrailingComma=!!D,ie.transformFlags=0,R1e(ie),E.attachNodeArrayDebugInfo(ie),ie}function U(v){return t.createBaseNode(v)}function $(v){const D=U(v);return D.symbol=void 0,D.localSymbol=void 0,D}function j(v,D){return v!==D&&(v.typeArguments=D.typeArguments),Vr(v,D)}function re(v,D=0){const M=typeof v=="number"?v+"":v;E.assert(M.charCodeAt(0)!==45,"Negative numbers should be created in combination with createPrefixUnaryExpression");const ie=$(9);return ie.text=M,ie.numericLiteralFlags=D,D&384&&(ie.transformFlags|=1024),ie}function R(v){const D=ft(10);return D.text=typeof v=="string"?v:e2(v)+"n",D.transformFlags|=32,D}function Y(v,D){const M=$(11);return M.text=v,M.singleQuote=D,M}function ue(v,D,M){const ie=Y(v,D);return ie.hasExtendedUnicodeEscape=M,M&&(ie.transformFlags|=1024),ie}function pe(v){const D=Y(hp(v),void 0);return D.textSourceNode=v,D}function H(v){const D=ft(14);return D.text=v,D}function q(v,D){switch(v){case 9:return re(D,0);case 10:return R(D);case 11:return ue(D,void 0);case 12:return k0(D,!1);case 13:return k0(D,!0);case 14:return H(D);case 15:return Kc(v,D,void 0,0)}}function ee(v){const D=t.createBaseIdentifierNode(80);return D.escapedText=v,D.jsDoc=void 0,D.flowNode=void 0,D.symbol=void 0,D}function oe(v,D,M,ie){const ze=ee(Vo(v));return Sw(ze,{flags:D,id:RF,prefix:M,suffix:ie}),RF++,ze}function Se(v,D,M){D===void 0&&v&&(D=Ov(v)),D===80&&(D=void 0);const ie=ee(Vo(v));return M&&(ie.flags|=256),ie.escapedText==="await"&&(ie.transformFlags|=67108864),ie.flags&256&&(ie.transformFlags|=1024),ie}function ae(v,D,M,ie){let ze=1;D&&(ze|=8);const Lt=oe("",ze,M,ie);return v&&v(Lt),Lt}function K(v){let D=2;return v&&(D|=8),oe("",D,void 0,void 0)}function fe(v,D=0,M,ie){return E.assert(!(D&7),"Argument out of range: flags"),E.assert((D&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),oe(v,3|D,M,ie)}function ke(v,D=0,M,ie){E.assert(!(D&7),"Argument out of range: flags");const ze=v?pg(v)?j1(!1,M,v,ie,on):`generated@${Oa(v)}`:"";(M||ie)&&(D|=16);const Lt=oe(ze,4|D,M,ie);return Lt.original=v,Lt}function Oe(v){const D=t.createBasePrivateIdentifierNode(81);return D.escapedText=v,D.transformFlags|=16777216,D}function me(v){return Vi(v,"#")||E.fail("First character of private identifier must be #: "+v),Oe(Vo(v))}function be(v,D,M,ie){const ze=Oe(Vo(v));return Sw(ze,{flags:D,id:RF,prefix:M,suffix:ie}),RF++,ze}function xe(v,D,M){v&&!Vi(v,"#")&&E.fail("First character of private identifier must be #: "+v);const ie=8|(v?3:1);return be(v??"",ie,D,M)}function De(v,D,M){const ie=pg(v)?j1(!0,D,v,M,on):`#generated@${Oa(v)}`,Lt=be(ie,4|(D||M?16:0),D,M);return Lt.original=v,Lt}function ft(v){return t.createBaseTokenNode(v)}function ge(v){E.assert(v>=0&&v<=165,"Invalid token"),E.assert(v<=15||v>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),E.assert(v<=9||v>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),E.assert(v!==80,"Invalid token. Use 'createIdentifier' to create identifiers");const D=ft(v);let M=0;switch(v){case 134:M=384;break;case 160:M=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:M=1;break;case 108:M=134218752,D.flowNode=void 0;break;case 126:M=1024;break;case 129:M=16777216;break;case 110:M=16384,D.flowNode=void 0;break}return M&&(D.transformFlags|=M),D}function Fe(){return ge(108)}function $e(){return ge(110)}function Pt(){return ge(106)}function at(){return ge(112)}function Je(){return ge(97)}function pt(v){return ge(v)}function zt(v){const D=[];return v&32&&D.push(pt(95)),v&128&&D.push(pt(138)),v&2048&&D.push(pt(90)),v&4096&&D.push(pt(87)),v&1&&D.push(pt(125)),v&2&&D.push(pt(123)),v&4&&D.push(pt(124)),v&64&&D.push(pt(128)),v&256&&D.push(pt(126)),v&16&&D.push(pt(164)),v&8&&D.push(pt(148)),v&512&&D.push(pt(129)),v&1024&&D.push(pt(134)),v&8192&&D.push(pt(103)),v&16384&&D.push(pt(147)),D.length?D:void 0}function Vt(v,D){const M=U(166);return M.left=v,M.right=Lc(D),M.transformFlags|=cn(M.left)|gw(M.right),M.flowNode=void 0,M}function hr(v,D,M){return v.left!==D||v.right!==M?Vr(Vt(D,M),v):v}function Lr(v){const D=U(167);return D.expression=i().parenthesizeExpressionOfComputedPropertyName(v),D.transformFlags|=cn(D.expression)|1024|131072,D}function er(v,D){return v.expression!==D?Vr(Lr(D),v):v}function jt(v,D,M,ie){const ze=$(168);return ze.modifiers=ya(v),ze.name=Lc(D),ze.constraint=M,ze.default=ie,ze.transformFlags=1,ze.expression=void 0,ze.jsDoc=void 0,ze}function Rt(v,D,M,ie,ze){return v.modifiers!==D||v.name!==M||v.constraint!==ie||v.default!==ze?Vr(jt(D,M,ie,ze),v):v}function Kn(v,D,M,ie,ze,Lt){const nn=$(169);return nn.modifiers=ya(v),nn.dotDotDotToken=D,nn.name=Lc(M),nn.questionToken=ie,nn.type=ze,nn.initializer=fk(Lt),Yv(nn.name)?nn.transformFlags=1:nn.transformFlags=Sa(nn.modifiers)|cn(nn.dotDotDotToken)|cy(nn.name)|cn(nn.questionToken)|cn(nn.initializer)|(nn.questionToken??nn.type?1:0)|(nn.dotDotDotToken??nn.initializer?1024:0)|(Gd(nn.modifiers)&31?8192:0),nn.jsDoc=void 0,nn}function Ji(v,D,M,ie,ze,Lt,nn){return v.modifiers!==D||v.dotDotDotToken!==M||v.name!==ie||v.questionToken!==ze||v.type!==Lt||v.initializer!==nn?Vr(Kn(D,M,ie,ze,Lt,nn),v):v}function yi(v){const D=U(170);return D.expression=i().parenthesizeLeftSideOfAccess(v,!1),D.transformFlags|=cn(D.expression)|1|8192|33554432,D}function os(v,D){return v.expression!==D?Vr(yi(D),v):v}function yr(v,D,M,ie){const ze=$(171);return ze.modifiers=ya(v),ze.name=Lc(D),ze.type=ie,ze.questionToken=M,ze.transformFlags=1,ze.initializer=void 0,ze.jsDoc=void 0,ze}function _i(v,D,M,ie,ze){return v.modifiers!==D||v.name!==M||v.questionToken!==ie||v.type!==ze?ln(yr(D,M,ie,ze),v):v}function ln(v,D){return v!==D&&(v.initializer=D.initializer),Vr(v,D)}function Ht(v,D,M,ie,ze){const Lt=$(172);Lt.modifiers=ya(v),Lt.name=Lc(D),Lt.questionToken=M&&ly(M)?M:void 0,Lt.exclamationToken=M&&Ew(M)?M:void 0,Lt.type=ie,Lt.initializer=fk(ze);const nn=Lt.flags&33554432||Gd(Lt.modifiers)&128;return Lt.transformFlags=Sa(Lt.modifiers)|cy(Lt.name)|cn(Lt.initializer)|(nn||Lt.questionToken||Lt.exclamationToken||Lt.type?1:0)|(Pa(Lt.name)||Gd(Lt.modifiers)&256&&Lt.initializer?8192:0)|16777216,Lt.jsDoc=void 0,Lt}function Ue(v,D,M,ie,ze,Lt){return v.modifiers!==D||v.name!==M||v.questionToken!==(ie!==void 0&&ly(ie)?ie:void 0)||v.exclamationToken!==(ie!==void 0&&Ew(ie)?ie:void 0)||v.type!==ze||v.initializer!==Lt?Vr(Ht(D,M,ie,ze,Lt),v):v}function Et(v,D,M,ie,ze,Lt){const nn=$(173);return nn.modifiers=ya(v),nn.name=Lc(D),nn.questionToken=M,nn.typeParameters=ya(ie),nn.parameters=ya(ze),nn.type=Lt,nn.transformFlags=1,nn.jsDoc=void 0,nn.locals=void 0,nn.nextContainer=void 0,nn.typeArguments=void 0,nn}function fr(v,D,M,ie,ze,Lt,nn){return v.modifiers!==D||v.name!==M||v.questionToken!==ie||v.typeParameters!==ze||v.parameters!==Lt||v.type!==nn?j(Et(D,M,ie,ze,Lt,nn),v):v}function Hn(v,D,M,ie,ze,Lt,nn,Mi){const bo=$(174);if(bo.modifiers=ya(v),bo.asteriskToken=D,bo.name=Lc(M),bo.questionToken=ie,bo.exclamationToken=void 0,bo.typeParameters=ya(ze),bo.parameters=J(Lt),bo.type=nn,bo.body=Mi,!bo.body)bo.transformFlags=1;else{const Dd=Gd(bo.modifiers)&1024,qy=!!bo.asteriskToken,id=Dd&&qy;bo.transformFlags=Sa(bo.modifiers)|cn(bo.asteriskToken)|cy(bo.name)|cn(bo.questionToken)|Sa(bo.typeParameters)|Sa(bo.parameters)|cn(bo.type)|cn(bo.body)&-67108865|(id?128:Dd?256:qy?2048:0)|(bo.questionToken||bo.typeParameters||bo.type?1:0)|1024}return bo.typeArguments=void 0,bo.jsDoc=void 0,bo.locals=void 0,bo.nextContainer=void 0,bo.flowNode=void 0,bo.endFlowNode=void 0,bo.returnFlowNode=void 0,bo}function ei(v,D,M,ie,ze,Lt,nn,Mi,bo){return v.modifiers!==D||v.asteriskToken!==M||v.name!==ie||v.questionToken!==ze||v.typeParameters!==Lt||v.parameters!==nn||v.type!==Mi||v.body!==bo?Ii(Hn(D,M,ie,ze,Lt,nn,Mi,bo),v):v}function Ii(v,D){return v!==D&&(v.exclamationToken=D.exclamationToken),Vr(v,D)}function ns(v){const D=$(175);return D.body=v,D.transformFlags=cn(v)|16777216,D.modifiers=void 0,D.jsDoc=void 0,D.locals=void 0,D.nextContainer=void 0,D.endFlowNode=void 0,D.returnFlowNode=void 0,D}function Vs(v,D){return v.body!==D?_a(ns(D),v):v}function _a(v,D){return v!==D&&(v.modifiers=D.modifiers),Vr(v,D)}function cr(v,D,M){const ie=$(176);return ie.modifiers=ya(v),ie.parameters=J(D),ie.body=M,ie.transformFlags=Sa(ie.modifiers)|Sa(ie.parameters)|cn(ie.body)&-67108865|1024,ie.typeParameters=void 0,ie.type=void 0,ie.typeArguments=void 0,ie.jsDoc=void 0,ie.locals=void 0,ie.nextContainer=void 0,ie.endFlowNode=void 0,ie.returnFlowNode=void 0,ie}function br(v,D,M,ie){return v.modifiers!==D||v.parameters!==M||v.body!==ie?Le(cr(D,M,ie),v):v}function Le(v,D){return v!==D&&(v.typeParameters=D.typeParameters,v.type=D.type),j(v,D)}function rt(v,D,M,ie,ze){const Lt=$(177);return Lt.modifiers=ya(v),Lt.name=Lc(D),Lt.parameters=J(M),Lt.type=ie,Lt.body=ze,Lt.body?Lt.transformFlags=Sa(Lt.modifiers)|cy(Lt.name)|Sa(Lt.parameters)|cn(Lt.type)|cn(Lt.body)&-67108865|(Lt.type?1:0):Lt.transformFlags=1,Lt.typeArguments=void 0,Lt.typeParameters=void 0,Lt.jsDoc=void 0,Lt.locals=void 0,Lt.nextContainer=void 0,Lt.flowNode=void 0,Lt.endFlowNode=void 0,Lt.returnFlowNode=void 0,Lt}function tt(v,D,M,ie,ze,Lt){return v.modifiers!==D||v.name!==M||v.parameters!==ie||v.type!==ze||v.body!==Lt?yt(rt(D,M,ie,ze,Lt),v):v}function yt(v,D){return v!==D&&(v.typeParameters=D.typeParameters),j(v,D)}function ne(v,D,M,ie){const ze=$(178);return ze.modifiers=ya(v),ze.name=Lc(D),ze.parameters=J(M),ze.body=ie,ze.body?ze.transformFlags=Sa(ze.modifiers)|cy(ze.name)|Sa(ze.parameters)|cn(ze.body)&-67108865|(ze.type?1:0):ze.transformFlags=1,ze.typeArguments=void 0,ze.typeParameters=void 0,ze.type=void 0,ze.jsDoc=void 0,ze.locals=void 0,ze.nextContainer=void 0,ze.flowNode=void 0,ze.endFlowNode=void 0,ze.returnFlowNode=void 0,ze}function we(v,D,M,ie,ze){return v.modifiers!==D||v.name!==M||v.parameters!==ie||v.body!==ze?et(ne(D,M,ie,ze),v):v}function et(v,D){return v!==D&&(v.typeParameters=D.typeParameters,v.type=D.type),j(v,D)}function B(v,D,M){const ie=$(179);return ie.typeParameters=ya(v),ie.parameters=ya(D),ie.type=M,ie.transformFlags=1,ie.jsDoc=void 0,ie.locals=void 0,ie.nextContainer=void 0,ie.typeArguments=void 0,ie}function Ge(v,D,M,ie){return v.typeParameters!==D||v.parameters!==M||v.type!==ie?j(B(D,M,ie),v):v}function mt(v,D,M){const ie=$(180);return ie.typeParameters=ya(v),ie.parameters=ya(D),ie.type=M,ie.transformFlags=1,ie.jsDoc=void 0,ie.locals=void 0,ie.nextContainer=void 0,ie.typeArguments=void 0,ie}function Be(v,D,M,ie){return v.typeParameters!==D||v.parameters!==M||v.type!==ie?j(mt(D,M,ie),v):v}function nt(v,D,M){const ie=$(181);return ie.modifiers=ya(v),ie.parameters=ya(D),ie.type=M,ie.transformFlags=1,ie.jsDoc=void 0,ie.locals=void 0,ie.nextContainer=void 0,ie.typeArguments=void 0,ie}function wt(v,D,M,ie){return v.parameters!==M||v.type!==ie||v.modifiers!==D?j(nt(D,M,ie),v):v}function ir(v,D){const M=U(204);return M.type=v,M.literal=D,M.transformFlags=1,M}function Yt(v,D,M){return v.type!==D||v.literal!==M?Vr(ir(D,M),v):v}function Kt(v){return ge(v)}function W(v,D,M){const ie=U(182);return ie.assertsModifier=v,ie.parameterName=Lc(D),ie.type=M,ie.transformFlags=1,ie}function Pe(v,D,M,ie){return v.assertsModifier!==D||v.parameterName!==M||v.type!==ie?Vr(W(D,M,ie),v):v}function St(v,D){const M=U(183);return M.typeName=Lc(v),M.typeArguments=D&&i().parenthesizeTypeArguments(J(D)),M.transformFlags=1,M}function A(v,D,M){return v.typeName!==D||v.typeArguments!==M?Vr(St(D,M),v):v}function le(v,D,M){const ie=$(184);return ie.typeParameters=ya(v),ie.parameters=ya(D),ie.type=M,ie.transformFlags=1,ie.modifiers=void 0,ie.jsDoc=void 0,ie.locals=void 0,ie.nextContainer=void 0,ie.typeArguments=void 0,ie}function V(v,D,M,ie){return v.typeParameters!==D||v.parameters!==M||v.type!==ie?ce(le(D,M,ie),v):v}function ce(v,D){return v!==D&&(v.modifiers=D.modifiers),j(v,D)}function Ne(...v){return v.length===4?Ce(...v):v.length===3?_t(...v):E.fail("Incorrect number of arguments specified.")}function Ce(v,D,M,ie){const ze=$(185);return ze.modifiers=ya(v),ze.typeParameters=ya(D),ze.parameters=ya(M),ze.type=ie,ze.transformFlags=1,ze.jsDoc=void 0,ze.locals=void 0,ze.nextContainer=void 0,ze.typeArguments=void 0,ze}function _t(v,D,M){return Ce(void 0,v,D,M)}function Tt(...v){return v.length===5?Jt(...v):v.length===4?ar(...v):E.fail("Incorrect number of arguments specified.")}function Jt(v,D,M,ie,ze){return v.modifiers!==D||v.typeParameters!==M||v.parameters!==ie||v.type!==ze?j(Ne(D,M,ie,ze),v):v}function ar(v,D,M,ie){return Jt(v,v.modifiers,D,M,ie)}function Er(v,D){const M=U(186);return M.exprName=v,M.typeArguments=D&&i().parenthesizeTypeArguments(D),M.transformFlags=1,M}function Nr(v,D,M){return v.exprName!==D||v.typeArguments!==M?Vr(Er(D,M),v):v}function fi(v){const D=$(187);return D.members=J(v),D.transformFlags=1,D}function oi(v,D){return v.members!==D?Vr(fi(D),v):v}function Wr(v){const D=U(188);return D.elementType=i().parenthesizeNonArrayTypeOfPostfixType(v),D.transformFlags=1,D}function Cn(v,D){return v.elementType!==D?Vr(Wr(D),v):v}function Qi(v){const D=U(189);return D.elements=J(i().parenthesizeElementTypesOfTupleType(v)),D.transformFlags=1,D}function pi(v,D){return v.elements!==D?Vr(Qi(D),v):v}function ci(v,D,M,ie){const ze=$(202);return ze.dotDotDotToken=v,ze.name=D,ze.questionToken=M,ze.type=ie,ze.transformFlags=1,ze.jsDoc=void 0,ze}function In(v,D,M,ie,ze){return v.dotDotDotToken!==D||v.name!==M||v.questionToken!==ie||v.type!==ze?Vr(ci(D,M,ie,ze),v):v}function is(v){const D=U(190);return D.type=i().parenthesizeTypeOfOptionalType(v),D.transformFlags=1,D}function pr(v,D){return v.type!==D?Vr(is(D),v):v}function _o(v){const D=U(191);return D.type=v,D.transformFlags=1,D}function kc(v,D){return v.type!==D?Vr(_o(D),v):v}function _s(v,D,M){const ie=U(v);return ie.types=F.createNodeArray(M(D)),ie.transformFlags=1,ie}function Ra(v,D,M){return v.types!==D?Vr(_s(v.kind,D,M),v):v}function go(v){return _s(192,v,i().parenthesizeConstituentTypesOfUnionType)}function qo(v,D){return Ra(v,D,i().parenthesizeConstituentTypesOfUnionType)}function Ol(v){return _s(193,v,i().parenthesizeConstituentTypesOfIntersectionType)}function $i(v,D){return Ra(v,D,i().parenthesizeConstituentTypesOfIntersectionType)}function zs(v,D,M,ie){const ze=U(194);return ze.checkType=i().parenthesizeCheckTypeOfConditionalType(v),ze.extendsType=i().parenthesizeExtendsTypeOfConditionalType(D),ze.trueType=M,ze.falseType=ie,ze.transformFlags=1,ze.locals=void 0,ze.nextContainer=void 0,ze}function Ll(v,D,M,ie,ze){return v.checkType!==D||v.extendsType!==M||v.trueType!==ie||v.falseType!==ze?Vr(zs(D,M,ie,ze),v):v}function Ya(v){const D=U(195);return D.typeParameter=v,D.transformFlags=1,D}function oa(v,D){return v.typeParameter!==D?Vr(Ya(D),v):v}function Wo(v,D){const M=U(203);return M.head=v,M.templateSpans=J(D),M.transformFlags=1,M}function Zf(v,D,M){return v.head!==D||v.templateSpans!==M?Vr(Wo(D,M),v):v}function Fc(v,D,M,ie,ze=!1){const Lt=U(205);return Lt.argument=v,Lt.attributes=D,Lt.assertions&&Lt.assertions.assertClause&&Lt.attributes&&(Lt.assertions.assertClause=Lt.attributes),Lt.qualifier=M,Lt.typeArguments=ie&&i().parenthesizeTypeArguments(ie),Lt.isTypeOf=ze,Lt.transformFlags=1,Lt}function rc(v,D,M,ie,ze,Lt=v.isTypeOf){return v.argument!==D||v.attributes!==M||v.qualifier!==ie||v.typeArguments!==ze||v.isTypeOf!==Lt?Vr(Fc(D,M,ie,ze,Lt),v):v}function Ro(v){const D=U(196);return D.type=v,D.transformFlags=1,D}function fs(v,D){return v.type!==D?Vr(Ro(D),v):v}function Wt(){const v=U(197);return v.transformFlags=1,v}function ho(v,D){const M=U(198);return M.operator=v,M.type=v===148?i().parenthesizeOperandOfReadonlyTypeOperator(D):i().parenthesizeOperandOfTypeOperator(D),M.transformFlags=1,M}function Pl(v,D){return v.type!==D?Vr(ho(v.operator,D),v):v}function Ml(v,D){const M=U(199);return M.objectType=i().parenthesizeNonArrayTypeOfPostfixType(v),M.indexType=D,M.transformFlags=1,M}function q_(v,D,M){return v.objectType!==D||v.indexType!==M?Vr(Ml(D,M),v):v}function so(v,D,M,ie,ze,Lt){const nn=$(200);return nn.readonlyToken=v,nn.typeParameter=D,nn.nameType=M,nn.questionToken=ie,nn.type=ze,nn.members=Lt&&J(Lt),nn.transformFlags=1,nn.locals=void 0,nn.nextContainer=void 0,nn}function Zc(v,D,M,ie,ze,Lt,nn){return v.readonlyToken!==D||v.typeParameter!==M||v.nameType!==ie||v.questionToken!==ze||v.type!==Lt||v.members!==nn?Vr(so(D,M,ie,ze,Lt,nn),v):v}function se(v){const D=U(201);return D.literal=v,D.transformFlags=1,D}function X(v,D){return v.literal!==D?Vr(se(D),v):v}function Ee(v){const D=U(206);return D.elements=J(v),D.transformFlags|=Sa(D.elements)|1024|524288,D.transformFlags&32768&&(D.transformFlags|=65664),D}function lt(v,D){return v.elements!==D?Vr(Ee(D),v):v}function Xt(v){const D=U(207);return D.elements=J(v),D.transformFlags|=Sa(D.elements)|1024|524288,D}function an(v,D){return v.elements!==D?Vr(Xt(D),v):v}function rn(v,D,M,ie){const ze=$(208);return ze.dotDotDotToken=v,ze.propertyName=Lc(D),ze.name=Lc(M),ze.initializer=fk(ie),ze.transformFlags|=cn(ze.dotDotDotToken)|cy(ze.propertyName)|cy(ze.name)|cn(ze.initializer)|(ze.dotDotDotToken?32768:0)|1024,ze.flowNode=void 0,ze}function En(v,D,M,ie,ze){return v.propertyName!==M||v.dotDotDotToken!==D||v.name!==ie||v.initializer!==ze?Vr(rn(D,M,ie,ze),v):v}function li(v,D){const M=U(209),ie=v&&Do(v),ze=J(v,ie&&dl(ie)?!0:void 0);return M.elements=i().parenthesizeExpressionsOfCommaDelimitedList(ze),M.multiLine=D,M.transformFlags|=Sa(M.elements),M}function gn(v,D){return v.elements!==D?Vr(li(D,v.multiLine),v):v}function Ps(v,D){const M=$(210);return M.properties=J(v),M.multiLine=D,M.transformFlags|=Sa(M.properties),M.jsDoc=void 0,M}function Qo(v,D){return v.properties!==D?Vr(Ps(D,v.multiLine),v):v}function gl(v,D,M){const ie=$(211);return ie.expression=v,ie.questionDotToken=D,ie.name=M,ie.transformFlags=cn(ie.expression)|cn(ie.questionDotToken)|(Ie(ie.name)?gw(ie.name):cn(ie.name)|536870912),ie.jsDoc=void 0,ie.flowNode=void 0,ie}function yo(v,D){const M=gl(i().parenthesizeLeftSideOfAccess(v,!1),void 0,Lc(D));return l3(v)&&(M.transformFlags|=384),M}function Vc(v,D,M){return W7(v)?hl(v,D,v.questionDotToken,Ls(M,Ie)):v.expression!==D||v.name!==M?Vr(yo(D,M),v):v}function $a(v,D,M){const ie=gl(i().parenthesizeLeftSideOfAccess(v,!0),D,Lc(M));return ie.flags|=64,ie.transformFlags|=32,ie}function hl(v,D,M,ie){return E.assert(!!(v.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),v.expression!==D||v.questionDotToken!==M||v.name!==ie?Vr($a(D,M,ie),v):v}function E_(v,D,M){const ie=$(212);return ie.expression=v,ie.questionDotToken=D,ie.argumentExpression=M,ie.transformFlags|=cn(ie.expression)|cn(ie.questionDotToken)|cn(ie.argumentExpression),ie.jsDoc=void 0,ie.flowNode=void 0,ie}function cl(v,D){const M=E_(i().parenthesizeLeftSideOfAccess(v,!1),void 0,mv(D));return l3(v)&&(M.transformFlags|=384),M}function Ep(v,D,M){return GJ(v)?Te(v,D,v.questionDotToken,M):v.expression!==D||v.argumentExpression!==M?Vr(cl(D,M),v):v}function Ju(v,D,M){const ie=E_(i().parenthesizeLeftSideOfAccess(v,!0),D,mv(M));return ie.flags|=64,ie.transformFlags|=32,ie}function Te(v,D,M,ie){return E.assert(!!(v.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),v.expression!==D||v.questionDotToken!==M||v.argumentExpression!==ie?Vr(Ju(D,M,ie),v):v}function kt(v,D,M,ie){const ze=$(213);return ze.expression=v,ze.questionDotToken=D,ze.typeArguments=M,ze.arguments=ie,ze.transformFlags|=cn(ze.expression)|cn(ze.questionDotToken)|Sa(ze.typeArguments)|Sa(ze.arguments),ze.typeArguments&&(ze.transformFlags|=1),o_(ze.expression)&&(ze.transformFlags|=16384),ze}function Fr(v,D,M){const ie=kt(i().parenthesizeLeftSideOfAccess(v,!1),void 0,ya(D),i().parenthesizeExpressionsOfCommaDelimitedList(J(M)));return u3(ie.expression)&&(ie.transformFlags|=8388608),ie}function Yi(v,D,M,ie){return hb(v)?Is(v,D,v.questionDotToken,M,ie):v.expression!==D||v.typeArguments!==M||v.arguments!==ie?Vr(Fr(D,M,ie),v):v}function Ds(v,D,M,ie){const ze=kt(i().parenthesizeLeftSideOfAccess(v,!0),D,ya(M),i().parenthesizeExpressionsOfCommaDelimitedList(J(ie)));return ze.flags|=64,ze.transformFlags|=32,ze}function Is(v,D,M,ie,ze){return E.assert(!!(v.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),v.expression!==D||v.questionDotToken!==M||v.typeArguments!==ie||v.arguments!==ze?Vr(Ds(D,M,ie,ze),v):v}function Cc(v,D,M){const ie=$(214);return ie.expression=i().parenthesizeExpressionOfNew(v),ie.typeArguments=ya(D),ie.arguments=M?i().parenthesizeExpressionsOfCommaDelimitedList(M):void 0,ie.transformFlags|=cn(ie.expression)|Sa(ie.typeArguments)|Sa(ie.arguments)|32,ie.typeArguments&&(ie.transformFlags|=1),ie}function Uc(v,D,M,ie){return v.expression!==D||v.typeArguments!==M||v.arguments!==ie?Vr(Cc(D,M,ie),v):v}function jo(v,D,M){const ie=U(215);return ie.tag=i().parenthesizeLeftSideOfAccess(v,!1),ie.typeArguments=ya(D),ie.template=M,ie.transformFlags|=cn(ie.tag)|Sa(ie.typeArguments)|cn(ie.template)|1024,ie.typeArguments&&(ie.transformFlags|=1),sW(ie.template)&&(ie.transformFlags|=128),ie}function Ho(v,D,M,ie){return v.tag!==D||v.typeArguments!==M||v.template!==ie?Vr(jo(D,M,ie),v):v}function dc(v,D){const M=U(216);return M.expression=i().parenthesizeOperandOfPrefixUnary(D),M.type=v,M.transformFlags|=cn(M.expression)|cn(M.type)|1,M}function Ec(v,D,M){return v.type!==D||v.expression!==M?Vr(dc(D,M),v):v}function yl(v){const D=U(217);return D.expression=v,D.transformFlags=cn(D.expression),D.jsDoc=void 0,D}function Nf(v,D){return v.expression!==D?Vr(yl(D),v):v}function __(v,D,M,ie,ze,Lt,nn){const Mi=$(218);Mi.modifiers=ya(v),Mi.asteriskToken=D,Mi.name=Lc(M),Mi.typeParameters=ya(ie),Mi.parameters=J(ze),Mi.type=Lt,Mi.body=nn;const bo=Gd(Mi.modifiers)&1024,Dd=!!Mi.asteriskToken,qy=bo&&Dd;return Mi.transformFlags=Sa(Mi.modifiers)|cn(Mi.asteriskToken)|cy(Mi.name)|Sa(Mi.typeParameters)|Sa(Mi.parameters)|cn(Mi.type)|cn(Mi.body)&-67108865|(qy?128:bo?256:Dd?2048:0)|(Mi.typeParameters||Mi.type?1:0)|4194304,Mi.typeArguments=void 0,Mi.jsDoc=void 0,Mi.locals=void 0,Mi.nextContainer=void 0,Mi.flowNode=void 0,Mi.endFlowNode=void 0,Mi.returnFlowNode=void 0,Mi}function Ku(v,D,M,ie,ze,Lt,nn,Mi){return v.name!==ie||v.modifiers!==D||v.asteriskToken!==M||v.typeParameters!==ze||v.parameters!==Lt||v.type!==nn||v.body!==Mi?j(__(D,M,ie,ze,Lt,nn,Mi),v):v}function Kf(v,D,M,ie,ze,Lt){const nn=$(219);nn.modifiers=ya(v),nn.typeParameters=ya(D),nn.parameters=J(M),nn.type=ie,nn.equalsGreaterThanToken=ze??ge(39),nn.body=i().parenthesizeConciseBodyOfArrowFunction(Lt);const Mi=Gd(nn.modifiers)&1024;return nn.transformFlags=Sa(nn.modifiers)|Sa(nn.typeParameters)|Sa(nn.parameters)|cn(nn.type)|cn(nn.equalsGreaterThanToken)|cn(nn.body)&-67108865|(nn.typeParameters||nn.type?1:0)|(Mi?16640:0)|1024,nn.typeArguments=void 0,nn.jsDoc=void 0,nn.locals=void 0,nn.nextContainer=void 0,nn.flowNode=void 0,nn.endFlowNode=void 0,nn.returnFlowNode=void 0,nn}function sm(v,D,M,ie,ze,Lt,nn){return v.modifiers!==D||v.typeParameters!==M||v.parameters!==ie||v.type!==ze||v.equalsGreaterThanToken!==Lt||v.body!==nn?j(Kf(D,M,ie,ze,Lt,nn),v):v}function qm(v){const D=U(220);return D.expression=i().parenthesizeOperandOfPrefixUnary(v),D.transformFlags|=cn(D.expression),D}function _h(v,D){return v.expression!==D?Vr(qm(D),v):v}function _u(v){const D=U(221);return D.expression=i().parenthesizeOperandOfPrefixUnary(v),D.transformFlags|=cn(D.expression),D}function fh(v,D){return v.expression!==D?Vr(_u(D),v):v}function H_(v){const D=U(222);return D.expression=i().parenthesizeOperandOfPrefixUnary(v),D.transformFlags|=cn(D.expression),D}function Ag(v,D){return v.expression!==D?Vr(H_(D),v):v}function f_(v){const D=U(223);return D.expression=i().parenthesizeOperandOfPrefixUnary(v),D.transformFlags|=cn(D.expression)|256|128|2097152,D}function Q(v,D){return v.expression!==D?Vr(f_(D),v):v}function Ye(v,D){const M=U(224);return M.operator=v,M.operand=i().parenthesizeOperandOfPrefixUnary(D),M.transformFlags|=cn(M.operand),(v===46||v===47)&&Ie(M.operand)&&!Oo(M.operand)&&!ah(M.operand)&&(M.transformFlags|=268435456),M}function Ct(v,D){return v.operand!==D?Vr(Ye(v.operator,D),v):v}function At(v,D){const M=U(225);return M.operator=D,M.operand=i().parenthesizeOperandOfPostfixUnary(v),M.transformFlags|=cn(M.operand),Ie(M.operand)&&!Oo(M.operand)&&!ah(M.operand)&&(M.transformFlags|=268435456),M}function O(v,D){return v.operand!==D?Vr(At(D,v.operator),v):v}function he(v,D,M){const ie=$(226),ze=IP(D),Lt=ze.kind;return ie.left=i().parenthesizeLeftSideOfBinary(Lt,v),ie.operatorToken=ze,ie.right=i().parenthesizeRightSideOfBinary(Lt,ie.left,M),ie.transformFlags|=cn(ie.left)|cn(ie.operatorToken)|cn(ie.right),Lt===61?ie.transformFlags|=32:Lt===64?ua(ie.left)?ie.transformFlags|=5248|Xe(ie.left):ju(ie.left)&&(ie.transformFlags|=5120|Xe(ie.left)):Lt===43||Lt===68?ie.transformFlags|=512:FE(Lt)&&(ie.transformFlags|=16),Lt===103&&Pi(ie.left)&&(ie.transformFlags|=536870912),ie.jsDoc=void 0,ie}function Xe(v){return Vw(v)?65536:0}function Ft(v,D,M,ie){return v.left!==D||v.operatorToken!==M||v.right!==ie?Vr(he(D,M,ie),v):v}function zr(v,D,M,ie,ze){const Lt=U(227);return Lt.condition=i().parenthesizeConditionOfConditionalExpression(v),Lt.questionToken=D??ge(58),Lt.whenTrue=i().parenthesizeBranchOfConditionalExpression(M),Lt.colonToken=ie??ge(59),Lt.whenFalse=i().parenthesizeBranchOfConditionalExpression(ze),Lt.transformFlags|=cn(Lt.condition)|cn(Lt.questionToken)|cn(Lt.whenTrue)|cn(Lt.colonToken)|cn(Lt.whenFalse),Lt}function Vn(v,D,M,ie,ze,Lt){return v.condition!==D||v.questionToken!==M||v.whenTrue!==ie||v.colonToken!==ze||v.whenFalse!==Lt?Vr(zr(D,M,ie,ze,Lt),v):v}function Ln(v,D){const M=U(228);return M.head=v,M.templateSpans=J(D),M.transformFlags|=cn(M.head)|Sa(M.templateSpans)|1024,M}function ji(v,D,M){return v.head!==D||v.templateSpans!==M?Vr(Ln(D,M),v):v}function fa(v,D,M,ie=0){E.assert(!(ie&-7177),"Unsupported template flags.");let ze;if(M!==void 0&&M!==D&&(ze=jOe(v,M),typeof ze=="object"))return E.fail("Invalid raw text");if(D===void 0){if(ze===void 0)return E.fail("Arguments 'text' and 'rawText' may not both be undefined.");D=ze}else ze!==void 0&&E.assert(D===ze,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return D}function pa(v){let D=1024;return v&&(D|=128),D}function lc(v,D,M,ie){const ze=ft(v);return ze.text=D,ze.rawText=M,ze.templateFlags=ie&7176,ze.transformFlags=pa(ze.templateFlags),ze}function Rl(v,D,M,ie){const ze=$(v);return ze.text=D,ze.rawText=M,ze.templateFlags=ie&7176,ze.transformFlags=pa(ze.templateFlags),ze}function Kc(v,D,M,ie){return v===15?Rl(v,D,M,ie):lc(v,D,M,ie)}function G_(v,D,M){return v=fa(16,v,D,M),Kc(16,v,D,M)}function p_(v,D,M){return v=fa(16,v,D,M),Kc(17,v,D,M)}function ky(v,D,M){return v=fa(16,v,D,M),Kc(18,v,D,M)}function ja(v,D,M){return v=fa(16,v,D,M),Rl(15,v,D,M)}function Qp(v,D){E.assert(!v||!!D,"A `YieldExpression` with an asteriskToken must have an expression.");const M=U(229);return M.expression=D&&i().parenthesizeExpressionForDisallowedComma(D),M.asteriskToken=v,M.transformFlags|=cn(M.expression)|cn(M.asteriskToken)|1024|128|1048576,M}function Yp(v,D,M){return v.expression!==M||v.asteriskToken!==D?Vr(Qp(D,M),v):v}function Ci(v){const D=U(230);return D.expression=i().parenthesizeExpressionForDisallowedComma(v),D.transformFlags|=cn(D.expression)|1024|32768,D}function ph(v,D){return v.expression!==D?Vr(Ci(D),v):v}function h0(v,D,M,ie,ze){const Lt=$(231);return Lt.modifiers=ya(v),Lt.name=Lc(D),Lt.typeParameters=ya(M),Lt.heritageClauses=ya(ie),Lt.members=J(ze),Lt.transformFlags|=Sa(Lt.modifiers)|cy(Lt.name)|Sa(Lt.typeParameters)|Sa(Lt.heritageClauses)|Sa(Lt.members)|(Lt.typeParameters?1:0)|1024,Lt.jsDoc=void 0,Lt}function Zp(v,D,M,ie,ze,Lt){return v.modifiers!==D||v.name!==M||v.typeParameters!==ie||v.heritageClauses!==ze||v.members!==Lt?Vr(h0(D,M,ie,ze,Lt),v):v}function w2(){return U(232)}function A2(v,D){const M=U(233);return M.expression=i().parenthesizeLeftSideOfAccess(v,!1),M.typeArguments=D&&i().parenthesizeTypeArguments(D),M.transformFlags|=cn(M.expression)|Sa(M.typeArguments)|1024,M}function If(v,D,M){return v.expression!==D||v.typeArguments!==M?Vr(A2(D,M),v):v}function am(v,D){const M=U(234);return M.expression=v,M.type=D,M.transformFlags|=cn(M.expression)|cn(M.type)|1,M}function Ff(v,D,M){return v.expression!==D||v.type!==M?Vr(am(D,M),v):v}function dh(v){const D=U(235);return D.expression=i().parenthesizeLeftSideOfAccess(v,!1),D.transformFlags|=cn(D.expression)|1,D}function Ae(v,D){return U7(v)?sr(v,D):v.expression!==D?Vr(dh(D),v):v}function We(v,D){const M=U(238);return M.expression=v,M.type=D,M.transformFlags|=cn(M.expression)|cn(M.type)|1,M}function bt(v,D,M){return v.expression!==D||v.type!==M?Vr(We(D,M),v):v}function Nt(v){const D=U(235);return D.flags|=64,D.expression=i().parenthesizeLeftSideOfAccess(v,!0),D.transformFlags|=cn(D.expression)|1,D}function sr(v,D){return E.assert(!!(v.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),v.expression!==D?Vr(Nt(D),v):v}function Mr(v,D){const M=U(236);switch(M.keywordToken=v,M.name=D,M.transformFlags|=cn(M.name),v){case 105:M.transformFlags|=1024;break;case 102:M.transformFlags|=32;break;default:return E.assertNever(v)}return M.flowNode=void 0,M}function tr(v,D){return v.name!==D?Vr(Mr(v.keywordToken,D),v):v}function Rr(v,D){const M=U(239);return M.expression=v,M.literal=D,M.transformFlags|=cn(M.expression)|cn(M.literal)|1024,M}function Yn(v,D,M){return v.expression!==D||v.literal!==M?Vr(Rr(D,M),v):v}function Gr(){const v=U(240);return v.transformFlags|=1024,v}function zn(v,D){const M=U(241);return M.statements=J(v),M.multiLine=D,M.transformFlags|=Sa(M.statements),M.jsDoc=void 0,M.locals=void 0,M.nextContainer=void 0,M}function Yr(v,D){return v.statements!==D?Vr(zn(D,v.multiLine),v):v}function ws(v,D){const M=U(243);return M.modifiers=ya(v),M.declarationList=ts(D)?P_(D):D,M.transformFlags|=Sa(M.modifiers)|cn(M.declarationList),Gd(M.modifiers)&128&&(M.transformFlags=1),M.jsDoc=void 0,M.flowNode=void 0,M}function Ta(v,D,M){return v.modifiers!==D||v.declarationList!==M?Vr(ws(D,M),v):v}function ku(){const v=U(242);return v.jsDoc=void 0,v}function jl(v){const D=U(244);return D.expression=i().parenthesizeExpressionOfExpressionStatement(v),D.transformFlags|=cn(D.expression),D.jsDoc=void 0,D.flowNode=void 0,D}function mh(v,D){return v.expression!==D?Vr(jl(D),v):v}function Z1(v,D,M){const ie=U(245);return ie.expression=v,ie.thenStatement=Uy(D),ie.elseStatement=Uy(M),ie.transformFlags|=cn(ie.expression)|cn(ie.thenStatement)|cn(ie.elseStatement),ie.jsDoc=void 0,ie.flowNode=void 0,ie}function Ux(v,D,M,ie){return v.expression!==D||v.thenStatement!==M||v.elseStatement!==ie?Vr(Z1(D,M,ie),v):v}function K1(v,D){const M=U(246);return M.statement=Uy(v),M.expression=D,M.transformFlags|=cn(M.statement)|cn(M.expression),M.jsDoc=void 0,M.flowNode=void 0,M}function V6(v,D,M){return v.statement!==D||v.expression!==M?Vr(K1(D,M),v):v}function U6(v,D){const M=U(247);return M.expression=v,M.statement=Uy(D),M.transformFlags|=cn(M.expression)|cn(M.statement),M.jsDoc=void 0,M.flowNode=void 0,M}function q6(v,D,M){return v.expression!==D||v.statement!==M?Vr(U6(D,M),v):v}function hS(v,D,M,ie){const ze=U(248);return ze.initializer=v,ze.condition=D,ze.incrementor=M,ze.statement=Uy(ie),ze.transformFlags|=cn(ze.initializer)|cn(ze.condition)|cn(ze.incrementor)|cn(ze.statement),ze.jsDoc=void 0,ze.locals=void 0,ze.nextContainer=void 0,ze.flowNode=void 0,ze}function N2(v,D,M,ie,ze){return v.initializer!==D||v.condition!==M||v.incrementor!==ie||v.statement!==ze?Vr(hS(D,M,ie,ze),v):v}function qx(v,D,M){const ie=U(249);return ie.initializer=v,ie.expression=D,ie.statement=Uy(M),ie.transformFlags|=cn(ie.initializer)|cn(ie.expression)|cn(ie.statement),ie.jsDoc=void 0,ie.locals=void 0,ie.nextContainer=void 0,ie.flowNode=void 0,ie}function H6(v,D,M,ie){return v.initializer!==D||v.expression!==M||v.statement!==ie?Vr(qx(D,M,ie),v):v}function Hx(v,D,M,ie){const ze=U(250);return ze.awaitModifier=v,ze.initializer=D,ze.expression=i().parenthesizeExpressionForDisallowedComma(M),ze.statement=Uy(ie),ze.transformFlags|=cn(ze.awaitModifier)|cn(ze.initializer)|cn(ze.expression)|cn(ze.statement)|1024,v&&(ze.transformFlags|=128),ze.jsDoc=void 0,ze.locals=void 0,ze.nextContainer=void 0,ze.flowNode=void 0,ze}function Gx(v,D,M,ie,ze){return v.awaitModifier!==D||v.initializer!==M||v.expression!==ie||v.statement!==ze?Vr(Hx(D,M,ie,ze),v):v}function $x(v){const D=U(251);return D.label=Lc(v),D.transformFlags|=cn(D.label)|4194304,D.jsDoc=void 0,D.flowNode=void 0,D}function Xx(v,D){return v.label!==D?Vr($x(D),v):v}function yS(v){const D=U(252);return D.label=Lc(v),D.transformFlags|=cn(D.label)|4194304,D.jsDoc=void 0,D.flowNode=void 0,D}function Qx(v,D){return v.label!==D?Vr(yS(D),v):v}function I2(v){const D=U(253);return D.expression=v,D.transformFlags|=cn(D.expression)|128|4194304,D.jsDoc=void 0,D.flowNode=void 0,D}function F2(v,D){return v.expression!==D?Vr(I2(D),v):v}function Cy(v,D){const M=U(254);return M.expression=v,M.statement=Uy(D),M.transformFlags|=cn(M.expression)|cn(M.statement),M.jsDoc=void 0,M.flowNode=void 0,M}function Ey(v,D,M){return v.expression!==D||v.statement!==M?Vr(Cy(D,M),v):v}function Ng(v,D){const M=U(255);return M.expression=i().parenthesizeExpressionForDisallowedComma(v),M.caseBlock=D,M.transformFlags|=cn(M.expression)|cn(M.caseBlock),M.jsDoc=void 0,M.flowNode=void 0,M.possiblyExhaustive=!1,M}function ev(v,D,M){return v.expression!==D||v.caseBlock!==M?Vr(Ng(D,M),v):v}function wa(v,D){const M=U(256);return M.label=Lc(v),M.statement=Uy(D),M.transformFlags|=cn(M.label)|cn(M.statement),M.jsDoc=void 0,M.flowNode=void 0,M}function vS(v,D,M){return v.label!==D||v.statement!==M?Vr(wa(D,M),v):v}function G6(v){const D=U(257);return D.expression=v,D.transformFlags|=cn(D.expression),D.jsDoc=void 0,D.flowNode=void 0,D}function tv(v,D){return v.expression!==D?Vr(G6(D),v):v}function gh(v,D,M){const ie=U(258);return ie.tryBlock=v,ie.catchClause=D,ie.finallyBlock=M,ie.transformFlags|=cn(ie.tryBlock)|cn(ie.catchClause)|cn(ie.finallyBlock),ie.jsDoc=void 0,ie.flowNode=void 0,ie}function Hm(v,D,M,ie){return v.tryBlock!==D||v.catchClause!==M||v.finallyBlock!==ie?Vr(gh(D,M,ie),v):v}function ep(){const v=U(259);return v.jsDoc=void 0,v.flowNode=void 0,v}function d_(v,D,M,ie){const ze=$(260);return ze.name=Lc(v),ze.exclamationToken=D,ze.type=M,ze.initializer=fk(ie),ze.transformFlags|=cy(ze.name)|cn(ze.initializer)|(ze.exclamationToken??ze.type?1:0),ze.jsDoc=void 0,ze}function $_(v,D,M,ie,ze){return v.name!==D||v.type!==ie||v.exclamationToken!==M||v.initializer!==ze?Vr(d_(D,M,ie,ze),v):v}function P_(v,D=0){const M=U(261);return M.flags|=D&7,M.declarations=J(v),M.transformFlags|=Sa(M.declarations)|4194304,D&7&&(M.transformFlags|=263168),D&4&&(M.transformFlags|=4),M}function y0(v,D){return v.declarations!==D?Vr(P_(D,v.flags),v):v}function bS(v,D,M,ie,ze,Lt,nn){const Mi=$(262);if(Mi.modifiers=ya(v),Mi.asteriskToken=D,Mi.name=Lc(M),Mi.typeParameters=ya(ie),Mi.parameters=J(ze),Mi.type=Lt,Mi.body=nn,!Mi.body||Gd(Mi.modifiers)&128)Mi.transformFlags=1;else{const bo=Gd(Mi.modifiers)&1024,Dd=!!Mi.asteriskToken,qy=bo&&Dd;Mi.transformFlags=Sa(Mi.modifiers)|cn(Mi.asteriskToken)|cy(Mi.name)|Sa(Mi.typeParameters)|Sa(Mi.parameters)|cn(Mi.type)|cn(Mi.body)&-67108865|(qy?128:bo?256:Dd?2048:0)|(Mi.typeParameters||Mi.type?1:0)|4194304}return Mi.typeArguments=void 0,Mi.jsDoc=void 0,Mi.locals=void 0,Mi.nextContainer=void 0,Mi.endFlowNode=void 0,Mi.returnFlowNode=void 0,Mi}function $6(v,D,M,ie,ze,Lt,nn,Mi){return v.modifiers!==D||v.asteriskToken!==M||v.name!==ie||v.typeParameters!==ze||v.parameters!==Lt||v.type!==nn||v.body!==Mi?Yx(bS(D,M,ie,ze,Lt,nn,Mi),v):v}function Yx(v,D){return v!==D&&v.modifiers===D.modifiers&&(v.modifiers=D.modifiers),j(v,D)}function Py(v,D,M,ie,ze){const Lt=$(263);return Lt.modifiers=ya(v),Lt.name=Lc(D),Lt.typeParameters=ya(M),Lt.heritageClauses=ya(ie),Lt.members=J(ze),Gd(Lt.modifiers)&128?Lt.transformFlags=1:(Lt.transformFlags|=Sa(Lt.modifiers)|cy(Lt.name)|Sa(Lt.typeParameters)|Sa(Lt.heritageClauses)|Sa(Lt.members)|(Lt.typeParameters?1:0)|1024,Lt.transformFlags&8192&&(Lt.transformFlags|=1)),Lt.jsDoc=void 0,Lt}function rv(v,D,M,ie,ze,Lt){return v.modifiers!==D||v.name!==M||v.typeParameters!==ie||v.heritageClauses!==ze||v.members!==Lt?Vr(Py(D,M,ie,ze,Lt),v):v}function Zx(v,D,M,ie,ze){const Lt=$(264);return Lt.modifiers=ya(v),Lt.name=Lc(D),Lt.typeParameters=ya(M),Lt.heritageClauses=ya(ie),Lt.members=J(ze),Lt.transformFlags=1,Lt.jsDoc=void 0,Lt}function qc(v,D,M,ie,ze,Lt){return v.modifiers!==D||v.name!==M||v.typeParameters!==ie||v.heritageClauses!==ze||v.members!==Lt?Vr(Zx(D,M,ie,ze,Lt),v):v}function v0(v,D,M,ie){const ze=$(265);return ze.modifiers=ya(v),ze.name=Lc(D),ze.typeParameters=ya(M),ze.type=ie,ze.transformFlags=1,ze.jsDoc=void 0,ze.locals=void 0,ze.nextContainer=void 0,ze}function Kx(v,D,M,ie,ze){return v.modifiers!==D||v.name!==M||v.typeParameters!==ie||v.type!==ze?Vr(v0(D,M,ie,ze),v):v}function Td(v,D,M){const ie=$(266);return ie.modifiers=ya(v),ie.name=Lc(D),ie.members=J(M),ie.transformFlags|=Sa(ie.modifiers)|cn(ie.name)|Sa(ie.members)|1,ie.transformFlags&=-67108865,ie.jsDoc=void 0,ie}function SS(v,D,M,ie){return v.modifiers!==D||v.name!==M||v.members!==ie?Vr(Td(D,M,ie),v):v}function Me(v,D,M,ie=0){const ze=$(267);return ze.modifiers=ya(v),ze.flags|=ie&2088,ze.name=D,ze.body=M,Gd(ze.modifiers)&128?ze.transformFlags=1:ze.transformFlags|=Sa(ze.modifiers)|cn(ze.name)|cn(ze.body)|1,ze.transformFlags&=-67108865,ze.jsDoc=void 0,ze.locals=void 0,ze.nextContainer=void 0,ze}function xd(v,D,M,ie){return v.modifiers!==D||v.name!==M||v.body!==ie?Vr(Me(D,M,ie,v.flags),v):v}function Bl(v){const D=U(268);return D.statements=J(v),D.transformFlags|=Sa(D.statements),D.jsDoc=void 0,D}function nv(v,D){return v.statements!==D?Vr(Bl(D),v):v}function ek(v){const D=U(269);return D.clauses=J(v),D.transformFlags|=Sa(D.clauses),D.locals=void 0,D.nextContainer=void 0,D}function Dy(v,D){return v.clauses!==D?Vr(ek(D),v):v}function b0(v){const D=$(270);return D.name=Lc(v),D.transformFlags|=gw(D.name)|1,D.modifiers=void 0,D.jsDoc=void 0,D}function S0(v,D){return v.name!==D?kP(b0(D),v):v}function kP(v,D){return v!==D&&(v.modifiers=D.modifiers),Vr(v,D)}function xa(v,D,M,ie){const ze=$(271);return ze.modifiers=ya(v),ze.name=Lc(M),ze.isTypeOnly=D,ze.moduleReference=ie,ze.transformFlags|=Sa(ze.modifiers)|gw(ze.name)|cn(ze.moduleReference),Bm(ze.moduleReference)||(ze.transformFlags|=1),ze.transformFlags&=-67108865,ze.jsDoc=void 0,ze}function kd(v,D,M,ie,ze){return v.modifiers!==D||v.isTypeOnly!==M||v.name!==ie||v.moduleReference!==ze?Vr(xa(D,M,ie,ze),v):v}function TS(v,D,M,ie){const ze=U(272);return ze.modifiers=ya(v),ze.importClause=D,ze.moduleSpecifier=M,ze.attributes=ze.assertClause=ie,ze.transformFlags|=cn(ze.importClause)|cn(ze.moduleSpecifier),ze.transformFlags&=-67108865,ze.jsDoc=void 0,ze}function xS(v,D,M,ie,ze){return v.modifiers!==D||v.importClause!==M||v.moduleSpecifier!==ie||v.attributes!==ze?Vr(TS(D,M,ie,ze),v):v}function iv(v,D,M){const ie=$(273);return ie.isTypeOnly=v,ie.name=D,ie.namedBindings=M,ie.transformFlags|=cn(ie.name)|cn(ie.namedBindings),v&&(ie.transformFlags|=1),ie.transformFlags&=-67108865,ie}function kS(v,D,M,ie){return v.isTypeOnly!==D||v.name!==M||v.namedBindings!==ie?Vr(iv(D,M,ie),v):v}function Pp(v,D){const M=U(300);return M.elements=J(v),M.multiLine=D,M.token=132,M.transformFlags|=4,M}function Dp(v,D,M){return v.elements!==D||v.multiLine!==M?Vr(Pp(D,M),v):v}function hh(v,D){const M=U(301);return M.name=v,M.value=D,M.transformFlags|=4,M}function tk(v,D,M){return v.name!==D||v.value!==M?Vr(hh(D,M),v):v}function Cd(v,D){const M=U(302);return M.assertClause=v,M.multiLine=D,M}function X6(v,D,M){return v.assertClause!==D||v.multiLine!==M?Vr(Cd(D,M),v):v}function O2(v,D,M){const ie=U(300);return ie.token=M??118,ie.elements=J(v),ie.multiLine=D,ie.transformFlags|=4,ie}function wi(v,D,M){return v.elements!==D||v.multiLine!==M?Vr(O2(D,M,v.token),v):v}function jn(v,D){const M=U(301);return M.name=v,M.value=D,M.transformFlags|=4,M}function Gm(v,D,M){return v.name!==D||v.value!==M?Vr(jn(D,M),v):v}function m_(v){const D=$(274);return D.name=v,D.transformFlags|=cn(D.name),D.transformFlags&=-67108865,D}function CP(v,D){return v.name!==D?Vr(m_(D),v):v}function yh(v){const D=$(280);return D.name=v,D.transformFlags|=cn(D.name)|32,D.transformFlags&=-67108865,D}function EP(v,D){return v.name!==D?Vr(yh(D),v):v}function wy(v){const D=U(275);return D.elements=J(v),D.transformFlags|=Sa(D.elements),D.transformFlags&=-67108865,D}function Go(v,D){return v.elements!==D?Vr(wy(D),v):v}function _f(v,D,M){const ie=$(276);return ie.isTypeOnly=v,ie.propertyName=D,ie.name=M,ie.transformFlags|=cn(ie.propertyName)|cn(ie.name),ie.transformFlags&=-67108865,ie}function Ig(v,D,M,ie){return v.isTypeOnly!==D||v.propertyName!==M||v.name!==ie?Vr(_f(D,M,ie),v):v}function wp(v,D,M){const ie=$(277);return ie.modifiers=ya(v),ie.isExportEquals=D,ie.expression=D?i().parenthesizeRightSideOfBinary(64,void 0,M):i().parenthesizeExpressionOfExportDefault(M),ie.transformFlags|=Sa(ie.modifiers)|cn(ie.expression),ie.transformFlags&=-67108865,ie.jsDoc=void 0,ie}function Ay(v,D,M){return v.modifiers!==D||v.expression!==M?Vr(wp(D,v.isExportEquals,M),v):v}function Kp(v,D,M,ie,ze){const Lt=$(278);return Lt.modifiers=ya(v),Lt.isTypeOnly=D,Lt.exportClause=M,Lt.moduleSpecifier=ie,Lt.attributes=Lt.assertClause=ze,Lt.transformFlags|=Sa(Lt.modifiers)|cn(Lt.exportClause)|cn(Lt.moduleSpecifier),Lt.transformFlags&=-67108865,Lt.jsDoc=void 0,Lt}function vh(v,D,M,ie,ze,Lt){return v.modifiers!==D||v.isTypeOnly!==M||v.exportClause!==ie||v.moduleSpecifier!==ze||v.attributes!==Lt?L2(Kp(D,M,ie,ze,Lt),v):v}function L2(v,D){return v!==D&&v.modifiers===D.modifiers&&(v.modifiers=D.modifiers),Vr(v,D)}function CS(v){const D=U(279);return D.elements=J(v),D.transformFlags|=Sa(D.elements),D.transformFlags&=-67108865,D}function Fg(v,D){return v.elements!==D?Vr(CS(D),v):v}function rk(v,D,M){const ie=U(281);return ie.isTypeOnly=v,ie.propertyName=Lc(D),ie.name=Lc(M),ie.transformFlags|=cn(ie.propertyName)|cn(ie.name),ie.transformFlags&=-67108865,ie.jsDoc=void 0,ie}function Og(v,D,M,ie){return v.isTypeOnly!==D||v.propertyName!==M||v.name!==ie?Vr(rk(D,M,ie),v):v}function om(){const v=$(282);return v.jsDoc=void 0,v}function T0(v){const D=U(283);return D.expression=v,D.transformFlags|=cn(D.expression),D.transformFlags&=-67108865,D}function Q6(v,D){return v.expression!==D?Vr(T0(D),v):v}function Y6(v){return U(v)}function Z6(v,D,M=!1){const ie=ES(v,M?D&&i().parenthesizeNonArrayTypeOfPostfixType(D):D);return ie.postfix=M,ie}function ES(v,D){const M=U(v);return M.type=D,M}function Eo(v,D,M){return D.type!==M?Vr(Z6(v,M,D.postfix),D):D}function M2(v,D,M){return D.type!==M?Vr(ES(v,M),D):D}function PS(v,D){const M=$(324);return M.parameters=ya(v),M.type=D,M.transformFlags=Sa(M.parameters)|(M.type?1:0),M.jsDoc=void 0,M.locals=void 0,M.nextContainer=void 0,M.typeArguments=void 0,M}function ed(v,D,M){return v.parameters!==D||v.type!==M?Vr(PS(D,M),v):v}function Ny(v,D=!1){const M=$(329);return M.jsDocPropertyTags=ya(v),M.isArrayType=D,M}function K6(v,D,M){return v.jsDocPropertyTags!==D||v.isArrayType!==M?Vr(Ny(D,M),v):v}function DS(v){const D=U(316);return D.type=v,D}function PP(v,D){return v.type!==D?Vr(DS(D),v):v}function en(v,D,M){const ie=$(330);return ie.typeParameters=ya(v),ie.parameters=J(D),ie.type=M,ie.jsDoc=void 0,ie.locals=void 0,ie.nextContainer=void 0,ie}function Dl(v,D,M,ie){return v.typeParameters!==D||v.parameters!==M||v.type!==ie?Vr(en(D,M,ie),v):v}function Oi(v){const D=cV(v.kind);return v.tagName.escapedText===Vo(D)?v.tagName:Se(D)}function Of(v,D,M){const ie=U(v);return ie.tagName=D,ie.comment=M,ie}function x0(v,D,M){const ie=$(v);return ie.tagName=D,ie.comment=M,ie}function cm(v,D,M,ie){const ze=Of(352,v??Se("template"),ie);return ze.constraint=D,ze.typeParameters=J(M),ze}function $r(v,D=Oi(v),M,ie,ze){return v.tagName!==D||v.constraint!==M||v.typeParameters!==ie||v.comment!==ze?Vr(cm(D,M,ie,ze),v):v}function wS(v,D,M,ie){const ze=x0(353,v??Se("typedef"),ie);return ze.typeExpression=D,ze.fullName=M,ze.name=GV(M),ze.locals=void 0,ze.nextContainer=void 0,ze}function sv(v,D=Oi(v),M,ie,ze){return v.tagName!==D||v.typeExpression!==M||v.fullName!==ie||v.comment!==ze?Vr(wS(D,M,ie,ze),v):v}function vl(v,D,M,ie,ze,Lt){const nn=x0(348,v??Se("param"),Lt);return nn.typeExpression=ie,nn.name=D,nn.isNameFirst=!!ze,nn.isBracketed=M,nn}function $m(v,D=Oi(v),M,ie,ze,Lt,nn){return v.tagName!==D||v.name!==M||v.isBracketed!==ie||v.typeExpression!==ze||v.isNameFirst!==Lt||v.comment!==nn?Vr(vl(D,M,ie,ze,Lt,nn),v):v}function td(v,D,M,ie,ze,Lt){const nn=x0(355,v??Se("prop"),Lt);return nn.typeExpression=ie,nn.name=D,nn.isNameFirst=!!ze,nn.isBracketed=M,nn}function R2(v,D=Oi(v),M,ie,ze,Lt,nn){return v.tagName!==D||v.name!==M||v.isBracketed!==ie||v.typeExpression!==ze||v.isNameFirst!==Lt||v.comment!==nn?Vr(td(D,M,ie,ze,Lt,nn),v):v}function j2(v,D,M,ie){const ze=x0(345,v??Se("callback"),ie);return ze.typeExpression=D,ze.fullName=M,ze.name=GV(M),ze.locals=void 0,ze.nextContainer=void 0,ze}function Iy(v,D=Oi(v),M,ie,ze){return v.tagName!==D||v.typeExpression!==M||v.fullName!==ie||v.comment!==ze?Vr(j2(D,M,ie,ze),v):v}function bh(v,D,M){const ie=Of(346,v??Se("overload"),M);return ie.typeExpression=D,ie}function AS(v,D=Oi(v),M,ie){return v.tagName!==D||v.typeExpression!==M||v.comment!==ie?Vr(bh(D,M,ie),v):v}function rd(v,D,M){const ie=Of(335,v??Se("augments"),M);return ie.class=D,ie}function av(v,D=Oi(v),M,ie){return v.tagName!==D||v.class!==M||v.comment!==ie?Vr(rd(D,M,ie),v):v}function Lg(v,D,M){const ie=Of(336,v??Se("implements"),M);return ie.class=D,ie}function Fy(v,D,M){const ie=Of(354,v??Se("see"),M);return ie.name=D,ie}function nk(v,D,M,ie){return v.tagName!==D||v.name!==M||v.comment!==ie?Vr(Fy(D,M,ie),v):v}function ov(v){const D=U(317);return D.name=v,D}function e4(v,D){return v.name!==D?Vr(ov(D),v):v}function B2(v,D){const M=U(318);return M.left=v,M.right=D,M.transformFlags|=cn(M.left)|cn(M.right),M}function NS(v,D,M){return v.left!==D||v.right!==M?Vr(B2(D,M),v):v}function ff(v,D){const M=U(331);return M.name=v,M.text=D,M}function IS(v,D,M){return v.name!==D?Vr(ff(D,M),v):v}function mc(v,D){const M=U(332);return M.name=v,M.text=D,M}function ll(v,D,M){return v.name!==D?Vr(mc(D,M),v):v}function FS(v,D){const M=U(333);return M.name=v,M.text=D,M}function $l(v,D,M){return v.name!==D?Vr(FS(D,M),v):v}function D_(v,D=Oi(v),M,ie){return v.tagName!==D||v.class!==M||v.comment!==ie?Vr(Lg(D,M,ie),v):v}function cv(v,D,M){return Of(v,D??Se(cV(v)),M)}function tp(v,D,M=Oi(D),ie){return D.tagName!==M||D.comment!==ie?Vr(cv(v,M,ie),D):D}function Oy(v,D,M,ie){const ze=Of(v,D??Se(cV(v)),ie);return ze.typeExpression=M,ze}function Ly(v,D,M=Oi(D),ie,ze){return D.tagName!==M||D.typeExpression!==ie||D.comment!==ze?Vr(Oy(v,M,ie,ze),D):D}function wl(v,D){return Of(334,v,D)}function ik(v,D,M){return v.tagName!==D||v.comment!==M?Vr(wl(D,M),v):v}function pf(v,D,M){const ie=x0(347,v??Se(cV(347)),M);return ie.typeExpression=D,ie.locals=void 0,ie.nextContainer=void 0,ie}function OS(v,D=Oi(v),M,ie){return v.tagName!==D||v.typeExpression!==M||v.comment!==ie?Vr(pf(D,M,ie),v):v}function LS(v){const D=U(328);return D.text=v,D}function vo(v,D){return v.text!==D?Vr(LS(D),v):v}function t4(v,D){const M=U(327);return M.comment=v,M.tags=ya(D),M}function lv(v,D,M){return v.comment!==D||v.tags!==M?Vr(t4(D,M),v):v}function J2(v,D,M){const ie=U(284);return ie.openingElement=v,ie.children=J(D),ie.closingElement=M,ie.transformFlags|=cn(ie.openingElement)|Sa(ie.children)|cn(ie.closingElement)|2,ie}function DP(v,D,M,ie){return v.openingElement!==D||v.children!==M||v.closingElement!==ie?Vr(J2(D,M,ie),v):v}function zu(v,D,M){const ie=U(285);return ie.tagName=v,ie.typeArguments=ya(D),ie.attributes=M,ie.transformFlags|=cn(ie.tagName)|Sa(ie.typeArguments)|cn(ie.attributes)|2,ie.typeArguments&&(ie.transformFlags|=1),ie}function Sh(v,D,M,ie){return v.tagName!==D||v.typeArguments!==M||v.attributes!==ie?Vr(zu(D,M,ie),v):v}function lm(v,D,M){const ie=U(286);return ie.tagName=v,ie.typeArguments=ya(D),ie.attributes=M,ie.transformFlags|=cn(ie.tagName)|Sa(ie.typeArguments)|cn(ie.attributes)|2,D&&(ie.transformFlags|=1),ie}function sk(v,D,M,ie){return v.tagName!==D||v.typeArguments!==M||v.attributes!==ie?Vr(lm(D,M,ie),v):v}function X_(v){const D=U(287);return D.tagName=v,D.transformFlags|=cn(D.tagName)|2,D}function ak(v,D){return v.tagName!==D?Vr(X_(D),v):v}function w_(v,D,M){const ie=U(288);return ie.openingFragment=v,ie.children=J(D),ie.closingFragment=M,ie.transformFlags|=cn(ie.openingFragment)|Sa(ie.children)|cn(ie.closingFragment)|2,ie}function ok(v,D,M,ie){return v.openingFragment!==D||v.children!==M||v.closingFragment!==ie?Vr(w_(D,M,ie),v):v}function k0(v,D){const M=U(12);return M.text=v,M.containsOnlyTriviaWhiteSpaces=!!D,M.transformFlags|=2,M}function MS(v,D,M){return v.text!==D||v.containsOnlyTriviaWhiteSpaces!==M?Vr(k0(D,M),v):v}function r4(){const v=U(289);return v.transformFlags|=2,v}function n4(){const v=U(290);return v.transformFlags|=2,v}function RS(v,D){const M=$(291);return M.name=v,M.initializer=D,M.transformFlags|=cn(M.name)|cn(M.initializer)|2,M}function i4(v,D,M){return v.name!==D||v.initializer!==M?Vr(RS(D,M),v):v}function My(v){const D=$(292);return D.properties=J(v),D.transformFlags|=Sa(D.properties)|2,D}function Q_(v,D){return v.properties!==D?Vr(My(D),v):v}function Xm(v){const D=U(293);return D.expression=v,D.transformFlags|=cn(D.expression)|2,D}function s4(v,D){return v.expression!==D?Vr(Xm(D),v):v}function jS(v,D){const M=U(294);return M.dotDotDotToken=v,M.expression=D,M.transformFlags|=cn(M.dotDotDotToken)|cn(M.expression)|2,M}function Na(v,D){return v.expression!==D?Vr(jS(v.dotDotDotToken,D),v):v}function un(v,D){const M=U(295);return M.namespace=v,M.name=D,M.transformFlags|=cn(M.namespace)|cn(M.name)|2,M}function Lf(v,D,M){return v.namespace!==D||v.name!==M?Vr(un(D,M),v):v}function e_(v,D){const M=U(296);return M.expression=i().parenthesizeExpressionForDisallowedComma(v),M.statements=J(D),M.transformFlags|=cn(M.expression)|Sa(M.statements),M.jsDoc=void 0,M}function z2(v,D,M){return v.expression!==D||v.statements!==M?Vr(e_(D,M),v):v}function a4(v){const D=U(297);return D.statements=J(v),D.transformFlags=Sa(D.statements),D}function uv(v,D){return v.statements!==D?Vr(a4(D),v):v}function W2(v,D){const M=U(298);switch(M.token=v,M.types=J(D),M.transformFlags|=Sa(M.types),v){case 96:M.transformFlags|=1024;break;case 119:M.transformFlags|=1;break;default:return E.assertNever(v)}return M}function BS(v,D){return v.types!==D?Vr(W2(v.token,D),v):v}function Mg(v,D){const M=U(299);return M.variableDeclaration=FP(v),M.block=D,M.transformFlags|=cn(M.variableDeclaration)|cn(M.block)|(v?0:64),M.locals=void 0,M.nextContainer=void 0,M}function Ed(v,D,M){return v.variableDeclaration!==D||v.block!==M?Vr(Mg(D,M),v):v}function Mf(v,D){const M=$(303);return M.name=Lc(v),M.initializer=i().parenthesizeExpressionForDisallowedComma(D),M.transformFlags|=cy(M.name)|cn(M.initializer),M.modifiers=void 0,M.questionToken=void 0,M.exclamationToken=void 0,M.jsDoc=void 0,M}function nd(v,D,M){return v.name!==D||v.initializer!==M?Th(Mf(D,M),v):v}function Th(v,D){return v!==D&&(v.modifiers=D.modifiers,v.questionToken=D.questionToken,v.exclamationToken=D.exclamationToken),Vr(v,D)}function Rg(v,D){const M=$(304);return M.name=Lc(v),M.objectAssignmentInitializer=D&&i().parenthesizeExpressionForDisallowedComma(D),M.transformFlags|=gw(M.name)|cn(M.objectAssignmentInitializer)|1024,M.equalsToken=void 0,M.modifiers=void 0,M.questionToken=void 0,M.exclamationToken=void 0,M.jsDoc=void 0,M}function jg(v,D,M){return v.name!==D||v.objectAssignmentInitializer!==M?ck(Rg(D,M),v):v}function ck(v,D){return v!==D&&(v.modifiers=D.modifiers,v.questionToken=D.questionToken,v.exclamationToken=D.exclamationToken,v.equalsToken=D.equalsToken),Vr(v,D)}function Oc(v){const D=$(305);return D.expression=i().parenthesizeExpressionForDisallowedComma(v),D.transformFlags|=cn(D.expression)|128|65536,D.jsDoc=void 0,D}function o4(v,D){return v.expression!==D?Vr(Oc(D),v):v}function rp(v,D){const M=$(306);return M.name=Lc(v),M.initializer=D&&i().parenthesizeExpressionForDisallowedComma(D),M.transformFlags|=cn(M.name)|cn(M.initializer)|1,M.jsDoc=void 0,M}function Qm(v,D,M){return v.name!==D||v.initializer!==M?Vr(rp(D,M),v):v}function Rf(v,D,M){const ie=t.createBaseSourceFileNode(312);return ie.statements=J(v),ie.endOfFileToken=D,ie.flags|=M,ie.text="",ie.fileName="",ie.path="",ie.resolvedPath="",ie.originalFileName="",ie.languageVersion=0,ie.languageVariant=0,ie.scriptKind=0,ie.isDeclarationFile=!1,ie.hasNoDefaultLib=!1,ie.transformFlags|=Sa(ie.statements)|cn(ie.endOfFileToken),ie.locals=void 0,ie.nextContainer=void 0,ie.endFlowNode=void 0,ie.nodeCount=0,ie.identifierCount=0,ie.symbolCount=0,ie.parseDiagnostics=void 0,ie.bindDiagnostics=void 0,ie.bindSuggestionDiagnostics=void 0,ie.lineMap=void 0,ie.externalModuleIndicator=void 0,ie.setExternalModuleIndicator=void 0,ie.pragmas=void 0,ie.checkJsDirective=void 0,ie.referencedFiles=void 0,ie.typeReferenceDirectives=void 0,ie.libReferenceDirectives=void 0,ie.amdDependencies=void 0,ie.commentDirectives=void 0,ie.identifiers=void 0,ie.packageJsonLocations=void 0,ie.packageJsonScope=void 0,ie.imports=void 0,ie.moduleAugmentations=void 0,ie.ambientModuleNames=void 0,ie.classifiableNames=void 0,ie.impliedNodeFormat=void 0,ie}function V2(v){const D=Object.create(v.redirectTarget);return Object.defineProperties(D,{id:{get(){return this.redirectInfo.redirectTarget.id},set(M){this.redirectInfo.redirectTarget.id=M}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(M){this.redirectInfo.redirectTarget.symbol=M}}}),D.redirectInfo=v,D}function _v(v){const D=V2(v.redirectInfo);return D.flags|=v.flags&-17,D.fileName=v.fileName,D.path=v.path,D.resolvedPath=v.resolvedPath,D.originalFileName=v.originalFileName,D.packageJsonLocations=v.packageJsonLocations,D.packageJsonScope=v.packageJsonScope,D.emitNode=void 0,D}function lk(v){const D=t.createBaseSourceFileNode(312);D.flags|=v.flags&-17;for(const M in v)if(!(Ka(D,M)||!Ka(v,M))){if(M==="emitNode"){D.emitNode=void 0;continue}D[M]=v[M]}return D}function JS(v){const D=v.redirectInfo?_v(v):lk(v);return n(D,v),D}function jf(v,D,M,ie,ze,Lt,nn){const Mi=JS(v);return Mi.statements=J(D),Mi.isDeclarationFile=M,Mi.referencedFiles=ie,Mi.typeReferenceDirectives=ze,Mi.hasNoDefaultLib=Lt,Mi.libReferenceDirectives=nn,Mi.transformFlags=Sa(Mi.statements)|cn(Mi.endOfFileToken),Mi}function ao(v,D,M=v.isDeclarationFile,ie=v.referencedFiles,ze=v.typeReferenceDirectives,Lt=v.hasNoDefaultLib,nn=v.libReferenceDirectives){return v.statements!==D||v.isDeclarationFile!==M||v.referencedFiles!==ie||v.typeReferenceDirectives!==ze||v.hasNoDefaultLib!==Lt||v.libReferenceDirectives!==nn?Vr(jf(v,D,M,ie,ze,Lt,nn),v):v}function U2(v,D=Ve){const M=U(313);return M.prepends=D,M.sourceFiles=v,M.syntheticFileReferences=void 0,M.syntheticTypeReferences=void 0,M.syntheticLibReferences=void 0,M.hasNoDefaultLib=void 0,M}function q2(v,D,M=Ve){return v.sourceFiles!==D||v.prepends!==M?Vr(U2(D,M),v):v}function xh(v,D,M){const ie=U(314);return ie.prologues=v,ie.syntheticReferences=D,ie.texts=M,ie.fileName="",ie.text="",ie.referencedFiles=Ve,ie.libReferenceDirectives=Ve,ie.getLineAndCharacterOfPosition=ze=>Ha(ie,ze),ie}function Ry(v,D){const M=U(v);return M.data=D,M}function fv(v){return Ry(307,v)}function C(v,D){const M=Ry(308,v);return M.texts=D,M}function te(v,D){return Ry(D?310:309,v)}function it(v){const D=U(311);return D.data=v.data,D.section=v,D}function Ut(){const v=U(315);return v.javascriptText="",v.declarationText="",v}function vn(v,D=!1,M){const ie=U(237);return ie.type=v,ie.isSpread=D,ie.tupleNameSource=M,ie}function gi(v){const D=U(358);return D._children=v,D}function ti(v){const D=U(359);return D.original=v,Ke(D,v),D}function Li(v,D){const M=U(360);return M.expression=v,M.original=D,M.transformFlags|=cn(M.expression)|1,Ke(M,D),M}function Gs(v,D){return v.expression!==D?Vr(Li(D,v.original),v):v}function Cu(v){if(ko(v)&&!rE(v)&&!v.original&&!v.emitNode&&!v.id){if(f3(v))return v.elements;if(Zr(v)&&qne(v.operatorToken))return[v.left,v.right]}return v}function t_(v){const D=U(361);return D.elements=J(LK(v,Cu)),D.transformFlags|=Sa(D.elements),D}function np(v,D){return v.elements!==D?Vr(t_(D),v):v}function jy(v,D){const M=U(362);return M.expression=v,M.thisArg=D,M.transformFlags|=cn(M.expression)|cn(M.thisArg),M}function ni(v,D,M){return v.expression!==D||v.thisArg!==M?Vr(jy(D,M),v):v}function Ym(v){const D=ee(v.escapedText);return D.flags|=v.flags&-17,D.transformFlags=v.transformFlags,n(D,v),Sw(D,{...v.emitNode.autoGenerate}),D}function Ar(v){const D=ee(v.escapedText);D.flags|=v.flags&-17,D.jsDoc=v.jsDoc,D.flowNode=v.flowNode,D.symbol=v.symbol,D.transformFlags=v.transformFlags,n(D,v);const M=Jb(v);return M&&i0(D,M),D}function uk(v){const D=Oe(v.escapedText);return D.flags|=v.flags&-17,D.transformFlags=v.transformFlags,n(D,v),Sw(D,{...v.emitNode.autoGenerate}),D}function By(v){const D=Oe(v.escapedText);return D.flags|=v.flags&-17,D.transformFlags=v.transformFlags,n(D,v),D}function Jy(v){if(v===void 0)return v;if(Ni(v))return JS(v);if(Oo(v))return Ym(v);if(Ie(v))return Ar(v);if(yb(v))return uk(v);if(Pi(v))return By(v);const D=$D(v.kind)?t.createBaseNode(v.kind):t.createBaseTokenNode(v.kind);D.flags|=v.flags&-17,D.transformFlags=v.transformFlags,n(D,v);for(const M in v)Ka(D,M)||!Ka(v,M)||(D[M]=v[M]);return D}function zS(v,D,M){return Fr(__(void 0,void 0,void 0,void 0,D?[D]:[],void 0,zn(v,!0)),void 0,M?[M]:[])}function H2(v,D,M){return Fr(Kf(void 0,void 0,D?[D]:[],void 0,void 0,zn(v,!0)),void 0,M?[M]:[])}function um(){return H_(re("0"))}function Zm(v){return wp(void 0,!1,v)}function c4(v){return Kp(void 0,!1,CS([rk(!1,void 0,v)]))}function WS(v,D){return D==="null"?F.createStrictEquality(v,Pt()):D==="undefined"?F.createStrictEquality(v,um()):F.createStrictEquality(_u(v),ue(D))}function DR(v,D){return D==="null"?F.createStrictInequality(v,Pt()):D==="undefined"?F.createStrictInequality(v,um()):F.createStrictInequality(_u(v),ue(D))}function zy(v,D,M){return hb(v)?Ds($a(v,void 0,D),void 0,void 0,M):Fr(yo(v,D),void 0,M)}function rI(v,D,M){return zy(v,"bind",[D,...M])}function nI(v,D,M){return zy(v,"call",[D,...M])}function pv(v,D,M){return zy(v,"apply",[D,M])}function Pd(v,D,M){return zy(Se(v),D,M)}function wP(v,D){return zy(v,"slice",D===void 0?[]:[mv(D)])}function Km(v,D){return zy(v,"concat",D)}function _k(v,D,M){return Pd("Object","defineProperty",[v,mv(D),M])}function iI(v,D){return Pd("Object","getOwnPropertyDescriptor",[v,mv(D)])}function _m(v,D,M){return Pd("Reflect","get",M?[v,D,M]:[v,D])}function G(v,D,M,ie){return Pd("Reflect","set",ie?[v,D,M,ie]:[v,D,M])}function ve(v,D,M){return M?(v.push(Mf(D,M)),!0):!1}function je(v,D){const M=[];ve(M,"enumerable",mv(v.enumerable)),ve(M,"configurable",mv(v.configurable));let ie=ve(M,"writable",mv(v.writable));ie=ve(M,"value",v.value)||ie;let ze=ve(M,"get",v.get);return ze=ve(M,"set",v.set)||ze,E.assert(!(ie&&ze),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),Ps(M,!D)}function dt(v,D){switch(v.kind){case 217:return Nf(v,D);case 216:return Ec(v,v.type,D);case 234:return Ff(v,D,v.type);case 238:return bt(v,D,v.type);case 235:return Ae(v,D);case 360:return Gs(v,D)}}function ht(v){return l_(v)&&ko(v)&&ko(n0(v))&&ko(Qd(v))&&!ct(OC(v))&&!ct(bw(v))}function Ot(v,D,M=15){return v&&OO(v,M)&&!ht(v)?dt(v,Ot(v.expression,D)):D}function Tn(v,D,M){if(!D)return v;const ie=vS(D,D.label,c2(D.statement)?Tn(v,D.statement):v);return M&&M(D),ie}function vi(v,D){const M=Va(v);switch(M.kind){case 80:return D;case 110:case 9:case 10:case 11:return!1;case 209:return M.elements.length!==0;case 210:return M.properties.length>0;default:return!0}}function ui(v,D,M,ie=!1){const ze=xc(v,15);let Lt,nn;return o_(ze)?(Lt=$e(),nn=ze):l3(ze)?(Lt=$e(),nn=M!==void 0&&M<2?Ke(Se("_super"),ze):ze):ha(ze)&8192?(Lt=um(),nn=i().parenthesizeLeftSideOfAccess(ze,!1)):Sn(ze)?vi(ze.expression,ie)?(Lt=ae(D),nn=yo(Ke(F.createAssignment(Lt,ze.expression),ze.expression),ze.name),Ke(nn,ze)):(Lt=ze.expression,nn=ze):Co(ze)?vi(ze.expression,ie)?(Lt=ae(D),nn=cl(Ke(F.createAssignment(Lt,ze.expression),ze.expression),ze.argumentExpression),Ke(nn,ze)):(Lt=ze.expression,nn=ze):(Lt=um(),nn=i().parenthesizeLeftSideOfAccess(v,!1)),{target:nn,thisArg:Lt}}function Zn(v,D){return yo(yl(Ps([ne(void 0,"value",[Kn(void 0,void 0,v,void 0,void 0,void 0)],zn([jl(D)]))])),"value")}function Ai(v){return v.length>10?t_(v):Du(v,F.createComma)}function Ba(v,D,M,ie=0,ze){const Lt=ze?v&&R7(v):us(v);if(Lt&&Ie(Lt)&&!Oo(Lt)){const nn=ba(Ke(Jy(Lt),Lt),Lt.parent);return ie|=ha(Lt),M||(ie|=96),D||(ie|=3072),ie&&Qr(nn,ie),nn}return ke(v)}function to(v,D,M){return Ba(v,D,M,98304)}function Da(v,D,M,ie){return Ba(v,D,M,32768,ie)}function ip(v,D,M){return Ba(v,D,M,16384)}function fm(v,D,M){return Ba(v,D,M)}function Bg(v,D,M,ie){const ze=yo(v,ko(D)?D:Jy(D));Ke(ze,D);let Lt=0;return ie||(Lt|=96),M||(Lt|=3072),Lt&&Qr(ze,Lt),ze}function kh(v,D,M,ie){return v&&Rn(D,32)?Bg(v,Ba(D),M,ie):ip(D,M,ie)}function Ch(v,D,M,ie){const ze=VS(v,D,0,M);return l4(v,D,ze,ie)}function Wy(v){return aa(v.expression)&&v.expression.text==="use strict"}function A_(){return bu(jl(ue("use strict")))}function VS(v,D,M=0,ie){E.assert(D.length===0,"Prologue directives should be at the first statement in the target statements array");let ze=!1;const Lt=v.length;for(;MMi&&Dd.splice(ze,0,...D.slice(Mi,bo)),Mi>nn&&Dd.splice(ie,0,...D.slice(nn,Mi)),nn>Lt&&Dd.splice(M,0,...D.slice(Lt,nn)),Lt>0)if(M===0)Dd.splice(0,0,...D.slice(0,Lt));else{const qy=new Map;for(let id=0;id=0;id--){const gv=D[id];qy.has(gv.expression.text)||Dd.unshift(gv)}}return Mv(v)?Ke(J(Dd,v.hasTrailingComma),v):v}function Vy(v,D){let M;return typeof D=="number"?M=zt(D):M=D,Uo(v)?Rt(v,M,v.name,v.constraint,v.default):rs(v)?Ji(v,M,v.dotDotDotToken,v.name,v.questionToken,v.type,v.initializer):MC(v)?Jt(v,M,v.typeParameters,v.parameters,v.type):B_(v)?_i(v,M,v.name,v.questionToken,v.type):xs(v)?Ue(v,M,v.name,v.questionToken??v.exclamationToken,v.type,v.initializer):Lm(v)?fr(v,M,v.name,v.questionToken,v.typeParameters,v.parameters,v.type):hc(v)?ei(v,M,v.asteriskToken,v.name,v.questionToken,v.typeParameters,v.parameters,v.type,v.body):sc(v)?br(v,M,v.parameters,v.body):Tf(v)?tt(v,M,v.name,v.parameters,v.type,v.body):J_(v)?we(v,M,v.name,v.parameters,v.body):i2(v)?wt(v,M,v.parameters,v.type):lo(v)?Ku(v,M,v.asteriskToken,v.name,v.typeParameters,v.parameters,v.type,v.body):mo(v)?sm(v,M,v.typeParameters,v.parameters,v.type,v.equalsGreaterThanToken,v.body):kl(v)?Zp(v,M,v.name,v.typeParameters,v.heritageClauses,v.members):ac(v)?Ta(v,M,v.declarationList):Xc(v)?$6(v,M,v.asteriskToken,v.name,v.typeParameters,v.parameters,v.type,v.body):Qc(v)?rv(v,M,v.name,v.typeParameters,v.heritageClauses,v.members):Bu(v)?qc(v,M,v.name,v.typeParameters,v.heritageClauses,v.members):qp(v)?Kx(v,M,v.name,v.typeParameters,v.type):L1(v)?SS(v,M,v.name,v.members):Sc(v)?xd(v,M,v.name,v.body):El(v)?kd(v,M,v.isTypeOnly,v.name,v.moduleReference):sl(v)?xS(v,M,v.importClause,v.moduleSpecifier,v.attributes):oc(v)?Ay(v,M,v.expression):Tc(v)?vh(v,M,v.isTypeOnly,v.exportClause,v.moduleSpecifier,v.attributes):E.assertNever(v)}function u4(v,D){return rs(v)?Ji(v,D,v.dotDotDotToken,v.name,v.questionToken,v.type,v.initializer):xs(v)?Ue(v,D,v.name,v.questionToken??v.exclamationToken,v.type,v.initializer):hc(v)?ei(v,D,v.asteriskToken,v.name,v.questionToken,v.typeParameters,v.parameters,v.type,v.body):Tf(v)?tt(v,D,v.name,v.parameters,v.type,v.body):J_(v)?we(v,D,v.name,v.parameters,v.body):kl(v)?Zp(v,D,v.name,v.typeParameters,v.heritageClauses,v.members):Qc(v)?rv(v,D,v.name,v.typeParameters,v.heritageClauses,v.members):E.assertNever(v)}function df(v,D){switch(v.kind){case 177:return tt(v,v.modifiers,D,v.parameters,v.type,v.body);case 178:return we(v,v.modifiers,D,v.parameters,v.body);case 174:return ei(v,v.modifiers,v.asteriskToken,D,v.questionToken,v.typeParameters,v.parameters,v.type,v.body);case 173:return fr(v,v.modifiers,D,v.questionToken,v.typeParameters,v.parameters,v.type);case 172:return Ue(v,v.modifiers,D,v.questionToken??v.exclamationToken,v.type,v.initializer);case 171:return _i(v,v.modifiers,D,v.questionToken,v.type);case 303:return nd(v,D,v.initializer)}}function ya(v){return v?J(v):void 0}function Lc(v){return typeof v=="string"?Se(v):v}function mv(v){return typeof v=="string"?ue(v):typeof v=="number"?re(v):typeof v=="boolean"?v?at():Je():v}function fk(v){return v&&i().parenthesizeExpressionForDisallowedComma(v)}function IP(v){return typeof v=="number"?ge(v):v}function Uy(v){return v&&AV(v)?Ke(n(ku(),v),v):v}function FP(v){return typeof v=="string"||v&&!hi(v)?d_(v,void 0,void 0,void 0):v}function Vr(v,D){return v!==D&&(n(v,D),Ke(v,D)),v}}function cV(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 E.fail(`Unsupported kind: ${E.formatSyntaxKind(e)}`)}}function jOe(e,t){switch(r0||(r0=Hh(99,!1,0)),e){case 15:r0.setText("`"+t+"`");break;case 16:r0.setText("`"+t+"${");break;case 17:r0.setText("}"+t+"${");break;case 18:r0.setText("}"+t+"`");break}let n=r0.scan();if(n===20&&(n=r0.reScanTemplateToken(!1)),r0.isUnterminated())return r0.setText(void 0),Fne;let i;switch(n){case 15:case 16:case 17:case 18:i=r0.getTokenValue();break}return i===void 0||r0.scan()!==1?(r0.setText(void 0),Fne):(r0.setText(void 0),i)}function cy(e){return e&&Ie(e)?gw(e):cn(e)}function gw(e){return cn(e)&-67108865}function BOe(e,t){return t|e.transformFlags&134234112}function cn(e){if(!e)return 0;const t=e.transformFlags&~Nne(e.kind);return Nu(e)&&Ac(e.name)?BOe(e.name,t):t}function Sa(e){return e?e.transformFlags:0}function R1e(e){let t=0;for(const n of e)t|=cn(n);e.transformFlags=t}function Nne(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 MF(e){return e.flags|=16,e}function lV(e,t,n){let i,s,o,c,u,f,g,d,y,S;ls(e)?(o="",c=e,u=e.length,f=t,g=n):(E.assert(t==="js"||t==="dts"),o=(t==="js"?e.javascriptPath:e.declarationPath)||"",f=t==="js"?e.javascriptMapPath:e.declarationMapPath,d=()=>t==="js"?e.javascriptText:e.declarationText,y=()=>t==="js"?e.javascriptMapText:e.declarationMapText,u=()=>d().length,e.buildInfo&&e.buildInfo.bundle&&(E.assert(n===void 0||typeof n=="boolean"),i=n,s=t==="js"?e.buildInfo.bundle.js:e.buildInfo.bundle.dts,S=e.oldFileOfCurrentEmit));const T=S?zOe(E.checkDefined(s)):JOe(s,i,u);return T.fileName=o,T.sourceMapPath=f,T.oldFileOfCurrentEmit=S,d&&y?(Object.defineProperty(T,"text",{get:d}),Object.defineProperty(T,"sourceMapText",{get:y})):(E.assert(!S),T.text=c??"",T.sourceMapText=g),T}function JOe(e,t,n){let i,s,o,c,u,f,g,d;for(const S of e?e.sections:Ve)switch(S.kind){case"prologue":i=_r(i,Ke(I.createUnparsedPrologue(S.data),S));break;case"emitHelpers":s=_r(s,yV().get(S.data));break;case"no-default-lib":d=!0;break;case"reference":o=_r(o,{pos:-1,end:-1,fileName:S.data});break;case"type":c=_r(c,{pos:-1,end:-1,fileName:S.data});break;case"type-import":c=_r(c,{pos:-1,end:-1,fileName:S.data,resolutionMode:99});break;case"type-require":c=_r(c,{pos:-1,end:-1,fileName:S.data,resolutionMode:1});break;case"lib":u=_r(u,{pos:-1,end:-1,fileName:S.data});break;case"prepend":let T;for(const k of S.texts)(!t||k.kind!=="internal")&&(T=_r(T,Ke(I.createUnparsedTextLike(k.data,k.kind==="internal"),k)));f=Nn(f,T),g=_r(g,I.createUnparsedPrepend(S.data,T??Ve));break;case"internal":if(t){g||(g=[]);break}case"text":g=_r(g,Ke(I.createUnparsedTextLike(S.data,S.kind==="internal"),S));break;default:E.assertNever(S)}if(!g){const S=I.createUnparsedTextLike(void 0,!1);XE(S,0,typeof n=="function"?n():n),g=[S]}const y=Jm.createUnparsedSource(i??Ve,void 0,g);return AC(i,y),AC(g,y),AC(f,y),y.hasNoDefaultLib=d,y.helpers=s,y.referencedFiles=o||Ve,y.typeReferenceDirectives=c,y.libReferenceDirectives=u||Ve,y}function zOe(e){let t,n;for(const s of e.sections)switch(s.kind){case"internal":case"text":t=_r(t,Ke(I.createUnparsedTextLike(s.data,s.kind==="internal"),s));break;case"no-default-lib":case"reference":case"type":case"type-import":case"type-require":case"lib":n=_r(n,Ke(I.createUnparsedSyntheticReference(s),s));break;case"prologue":case"emitHelpers":case"prepend":break;default:E.assertNever(s)}const i=I.createUnparsedSource(Ve,n,t??Ve);return AC(n,i),AC(t,i),i.helpers=nr(e.sources&&e.sources.helpers,s=>yV().get(s)),i}function j1e(e,t,n,i,s,o){return ls(e)?_V(void 0,e,n,i,void 0,t,s,o):uV(e,t,n,i,s,o)}function uV(e,t,n,i,s,o,c,u){const f=Jm.createInputFiles();f.javascriptPath=t,f.javascriptMapPath=n,f.declarationPath=i,f.declarationMapPath=s,f.buildInfoPath=o;const g=new Map,d=k=>{if(k===void 0)return;let w=g.get(k);return w===void 0&&(w=e(k),g.set(k,w!==void 0?w:!1)),w!==!1?w:void 0},y=k=>{const w=d(k);return w!==void 0?w:`/* Input file ${k} was missing */\r +`};let S;return Object.defineProperties(f,{javascriptText:{get:()=>y(t)},javascriptMapText:{get:()=>d(n)},declarationText:{get:()=>y(E.checkDefined(i))},declarationMapText:{get:()=>d(s)},buildInfo:{get:()=>{if(S===void 0&&o)if(c!=null&&c.getBuildInfo)S=c.getBuildInfo(o,u.configFilePath)??!1;else{const k=d(o);S=k!==void 0?F9(o,k)??!1:!1}return S||void 0}}}),f}function _V(e,t,n,i,s,o,c,u,f,g,d){const y=Jm.createInputFiles();return y.javascriptPath=e,y.javascriptText=t,y.javascriptMapPath=n,y.javascriptMapText=i,y.declarationPath=s,y.declarationText=o,y.declarationMapPath=c,y.declarationMapText=u,y.buildInfoPath=f,y.buildInfo=g,y.oldFileOfCurrentEmit=d,y}function B1e(e,t,n){return new(z1e||(z1e=Il.getSourceMapSourceConstructor()))(e,t,n)}function dn(e,t){if(e.original!==t&&(e.original=t,t)){const n=t.emitNode;n&&(e.emitNode=WOe(n,e.emitNode))}return e}function WOe(e,t){const{flags:n,internalFlags:i,leadingComments:s,trailingComments:o,commentRange:c,sourceMapRange:u,tokenSourceMapRanges:f,constantValue:g,helpers:d,startsOnNewLine:y,snippetElement:S,classThis:T,assignedName:k}=e;if(t||(t={}),n&&(t.flags=n),i&&(t.internalFlags=i&-9),s&&(t.leadingComments=Nn(s.slice(),t.leadingComments)),o&&(t.trailingComments=Nn(o.slice(),t.trailingComments)),c&&(t.commentRange=c),u&&(t.sourceMapRange=u),f&&(t.tokenSourceMapRanges=VOe(f,t.tokenSourceMapRanges)),g!==void 0&&(t.constantValue=g),d)for(const w of d)t.helpers=Hg(t.helpers,w);return y!==void 0&&(t.startsOnNewLine=y),S!==void 0&&(t.snippetElement=S),T&&(t.classThis=T),k&&(t.assignedName=k),t}function VOe(e,t){t||(t=[]);for(const n in e)t[n]=e[n];return t}var RF,fV,Ine,r0,Fne,hw,J1e,I,z1e,UOe=Dt({"src/compiler/factory/nodeFactory.ts"(){Fs(),RF=0,fV=(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))(fV||{}),Ine=[],Fne={},hw=Dne(),J1e={createBaseSourceFileNode:e=>MF(hw.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>MF(hw.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>MF(hw.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>MF(hw.createBaseTokenNode(e)),createBaseNode:e=>MF(hw.createBaseNode(e))},I=mw(4,J1e)}});function ou(e){if(e.emitNode)E.assert(!(e.emitNode.internalFlags&8),"Invalid attempt to mutate an immutable node.");else{if(rE(e)){if(e.kind===312)return e.emitNode={annotatedNodes:[e]};const t=wr(as(wr(e)))??E.fail("Could not determine parsed source file.");ou(t).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function pV(e){var t,n;const i=(n=(t=wr(as(e)))==null?void 0:t.emitNode)==null?void 0:n.annotatedNodes;if(i)for(const s of i)s.emitNode=void 0}function yw(e){const t=ou(e);return t.flags|=3072,t.leadingComments=void 0,t.trailingComments=void 0,e}function Qr(e,t){return ou(e).flags=t,e}function Xd(e,t){const n=ou(e);return n.flags=n.flags|t,e}function vw(e,t){return ou(e).internalFlags=t,e}function XT(e,t){const n=ou(e);return n.internalFlags=n.internalFlags|t,e}function n0(e){var t;return((t=e.emitNode)==null?void 0:t.sourceMapRange)??e}function sa(e,t){return ou(e).sourceMapRange=t,e}function W1e(e,t){var n,i;return(i=(n=e.emitNode)==null?void 0:n.tokenSourceMapRanges)==null?void 0:i[t]}function One(e,t,n){const i=ou(e),s=i.tokenSourceMapRanges??(i.tokenSourceMapRanges=[]);return s[t]=n,e}function s3(e){var t;return(t=e.emitNode)==null?void 0:t.startsOnNewLine}function jF(e,t){return ou(e).startsOnNewLine=t,e}function Qd(e){var t;return((t=e.emitNode)==null?void 0:t.commentRange)??e}function Nc(e,t){return ou(e).commentRange=t,e}function OC(e){var t;return(t=e.emitNode)==null?void 0:t.leadingComments}function O1(e,t){return ou(e).leadingComments=t,e}function a3(e,t,n,i){return O1(e,_r(OC(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:n}))}function bw(e){var t;return(t=e.emitNode)==null?void 0:t.trailingComments}function QT(e,t){return ou(e).trailingComments=t,e}function BF(e,t,n,i){return QT(e,_r(bw(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:n}))}function Lne(e,t){O1(e,OC(t)),QT(e,bw(t));const n=ou(t);return n.leadingComments=void 0,n.trailingComments=void 0,e}function Mne(e){var t;return(t=e.emitNode)==null?void 0:t.constantValue}function Rne(e,t){const n=ou(e);return n.constantValue=t,e}function YT(e,t){const n=ou(e);return n.helpers=_r(n.helpers,t),e}function ih(e,t){if(ct(t)){const n=ou(e);for(const i of t)n.helpers=Hg(n.helpers,i)}return e}function V1e(e,t){var n;const i=(n=e.emitNode)==null?void 0:n.helpers;return i?Ik(i,t):!1}function JF(e){var t;return(t=e.emitNode)==null?void 0:t.helpers}function jne(e,t,n){const i=e.emitNode,s=i&&i.helpers;if(!ct(s))return;const o=ou(t);let c=0;for(let u=0;u0&&(s[u-c]=f)}c>0&&(s.length-=c)}function dV(e){var t;return(t=e.emitNode)==null?void 0:t.snippetElement}function mV(e,t){const n=ou(e);return n.snippetElement=t,e}function gV(e){return ou(e).internalFlags|=4,e}function Bne(e,t){const n=ou(e);return n.typeNode=t,e}function Jne(e){var t;return(t=e.emitNode)==null?void 0:t.typeNode}function i0(e,t){return ou(e).identifierTypeArguments=t,e}function Jb(e){var t;return(t=e.emitNode)==null?void 0:t.identifierTypeArguments}function Sw(e,t){return ou(e).autoGenerate=t,e}function U1e(e){var t;return(t=e.emitNode)==null?void 0:t.autoGenerate}function zne(e,t){return ou(e).generatedImportReference=t,e}function Wne(e){var t;return(t=e.emitNode)==null?void 0:t.generatedImportReference}var qOe=Dt({"src/compiler/factory/emitNode.ts"(){Fs()}});function Vne(e){const t=e.factory,n=Hu(()=>vw(t.createTrue(),8)),i=Hu(()=>vw(t.createFalse(),8));return{getUnscopedHelperName:s,createDecorateHelper:o,createMetadataHelper:c,createParamHelper:u,createESDecorateHelper:w,createRunInitializersHelper:P,createAssignHelper:F,createAwaitHelper:J,createAsyncGeneratorHelper:U,createAsyncDelegatorHelper:$,createAsyncValuesHelper:j,createRestHelper:re,createAwaiterHelper:R,createExtendsHelper:Y,createTemplateObjectHelper:ue,createSpreadArrayHelper:pe,createPropKeyHelper:H,createSetFunctionNameHelper:q,createValuesHelper:ee,createReadHelper:oe,createGeneratorHelper:Se,createCreateBindingHelper:ae,createImportStarHelper:K,createImportStarCallbackHelper:fe,createImportDefaultHelper:ke,createExportStarHelper:Oe,createClassPrivateFieldGetHelper:me,createClassPrivateFieldSetHelper:be,createClassPrivateFieldInHelper:xe,createAddDisposableResourceHelper:De,createDisposeResourcesHelper:ft};function s(ge){return Qr(t.createIdentifier(ge),8196)}function o(ge,Fe,$e,Pt){e.requestEmitHelper(zF);const at=[];return at.push(t.createArrayLiteralExpression(ge,!0)),at.push(Fe),$e&&(at.push($e),Pt&&at.push(Pt)),t.createCallExpression(s("__decorate"),void 0,at)}function c(ge,Fe){return e.requestEmitHelper(WF),t.createCallExpression(s("__metadata"),void 0,[t.createStringLiteral(ge),Fe])}function u(ge,Fe,$e){return e.requestEmitHelper(VF),Ke(t.createCallExpression(s("__param"),void 0,[t.createNumericLiteral(Fe+""),ge]),$e)}function f(ge){const Fe=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral("class")),t.createPropertyAssignment(t.createIdentifier("name"),ge.name),t.createPropertyAssignment(t.createIdentifier("metadata"),ge.metadata)];return t.createObjectLiteralExpression(Fe)}function g(ge){const Fe=ge.computed?t.createElementAccessExpression(t.createIdentifier("obj"),ge.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),ge.name);return t.createPropertyAssignment("get",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,Fe))}function d(ge){const Fe=ge.computed?t.createElementAccessExpression(t.createIdentifier("obj"),ge.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),ge.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(Fe,t.createIdentifier("value")))])))}function y(ge){const Fe=ge.computed?ge.name:Ie(ge.name)?t.createStringLiteralFromNode(ge.name):ge.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(Fe,103,t.createIdentifier("obj"))))}function S(ge,Fe){const $e=[];return $e.push(y(ge)),Fe.get&&$e.push(g(ge)),Fe.set&&$e.push(d(ge)),t.createObjectLiteralExpression($e)}function T(ge){const Fe=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral(ge.kind)),t.createPropertyAssignment(t.createIdentifier("name"),ge.name.computed?ge.name.name:t.createStringLiteralFromNode(ge.name.name)),t.createPropertyAssignment(t.createIdentifier("static"),ge.static?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("private"),ge.private?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("access"),S(ge.name,ge.access)),t.createPropertyAssignment(t.createIdentifier("metadata"),ge.metadata)];return t.createObjectLiteralExpression(Fe)}function k(ge){return ge.kind==="class"?f(ge):T(ge)}function w(ge,Fe,$e,Pt,at,Je){return e.requestEmitHelper(UF),t.createCallExpression(s("__esDecorate"),void 0,[ge??t.createNull(),Fe??t.createNull(),$e,k(Pt),at,Je])}function P(ge,Fe,$e){return e.requestEmitHelper(qF),t.createCallExpression(s("__runInitializers"),void 0,$e?[ge,Fe,$e]:[ge,Fe])}function F(ge){return Fa(e.getCompilerOptions())>=2?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"assign"),void 0,ge):(e.requestEmitHelper(HF),t.createCallExpression(s("__assign"),void 0,ge))}function J(ge){return e.requestEmitHelper(ZT),t.createCallExpression(s("__await"),void 0,[ge])}function U(ge,Fe){return e.requestEmitHelper(ZT),e.requestEmitHelper(GF),(ge.emitNode||(ge.emitNode={})).flags|=1572864,t.createCallExpression(s("__asyncGenerator"),void 0,[Fe?t.createThis():t.createVoidZero(),t.createIdentifier("arguments"),ge])}function $(ge){return e.requestEmitHelper(ZT),e.requestEmitHelper($F),t.createCallExpression(s("__asyncDelegator"),void 0,[ge])}function j(ge){return e.requestEmitHelper(XF),t.createCallExpression(s("__asyncValues"),void 0,[ge])}function re(ge,Fe,$e,Pt){e.requestEmitHelper(QF);const at=[];let Je=0;for(let pt=0;pt{let i="";for(let s=0;se.name))}function o3(e,t){return Rs(e)&&Ie(e.expression)&&(ha(e.expression)&8192)!==0&&e.expression.escapedText===t}var vV,zF,WF,VF,UF,qF,HF,ZT,GF,$F,XF,QF,YF,ZF,KF,eO,tO,rO,nO,iO,sO,LC,aO,Tw,oO,cO,lO,uO,_O,fO,pO,q1e,xw,kw,HOe=Dt({"src/compiler/factory/emitHelpers.ts"(){Fs(),vV=(e=>(e.Field="f",e.Method="m",e.Accessor="a",e))(vV||{}),zF={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); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; - };`},qF={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:` + };`},WF={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:` var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); - };`},HF={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:` + };`},VF={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:` var __param = (this && this.__param) || function (paramIndex, decorator) { return function (target, key) { decorator(target, key, paramIndex); } - };`},GF={name:"typescript:esDecorate",importName:"__esDecorate",scoped:!1,priority:2,text:` + };`},UF={name:"typescript:esDecorate",importName:"__esDecorate",scoped:!1,priority:2,text:` var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; } var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value"; @@ -74,14 +74,14 @@ ${V.join(` } if (target) Object.defineProperty(target, contextIn.name, descriptor); done = true; - };`},$F={name:"typescript:runInitializers",importName:"__runInitializers",scoped:!1,priority:2,text:` + };`},qF={name:"typescript:runInitializers",importName:"__runInitializers",scoped:!1,priority:2,text:` var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) { var useValue = arguments.length > 2; for (var i = 0; i < initializers.length; i++) { value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg); } return useValue ? value : void 0; - };`},XF={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:` + };`},HF={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:` var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { @@ -92,8 +92,8 @@ ${V.join(` return t; }; return __assign.apply(this, arguments); - };`},KT={name:"typescript:await",importName:"__await",scoped:!1,text:` - var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }`},QF={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[KT],text:` + };`},ZT={name:"typescript:await",importName:"__await",scoped:!1,text:` + var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }`},GF={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[ZT],text:` var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; @@ -105,19 +105,19 @@ ${V.join(` function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } - };`},YF={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[KT],text:` + };`},$F={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[ZT],text:` var __asyncDelegator = (this && this.__asyncDelegator) || function (o) { var i, p; return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; } - };`},ZF={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:` + };`},XF={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:` var __asyncValues = (this && this.__asyncValues) || function (o) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var m = o[Symbol.asyncIterator], i; return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } - };`},KF={name:"typescript:rest",importName:"__rest",scoped:!1,text:` + };`},QF={name:"typescript:rest",importName:"__rest",scoped:!1,text:` var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) @@ -128,7 +128,7 @@ ${V.join(` t[p[i]] = s[p[i]]; } return t; - };`},eO={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:` + };`},YF={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:` var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { @@ -137,7 +137,7 @@ ${V.join(` function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); - };`},tO={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:` + };`},ZF={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:` var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || @@ -153,11 +153,11 @@ ${V.join(` function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; - })();`},rO={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:` + })();`},KF={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:` var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } return cooked; - };`},nO={name:"typescript:read",importName:"__read",scoped:!1,text:` + };`},eO={name:"typescript:read",importName:"__read",scoped:!1,text:` var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; @@ -173,7 +173,7 @@ ${V.join(` finally { if (e) throw e.error; } } return ar; - };`},iO={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:` + };`},tO={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:` var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { if (ar || !(i in from)) { @@ -182,14 +182,14 @@ ${V.join(` } } return to.concat(ar || Array.prototype.slice.call(from)); - };`},sO={name:"typescript:propKey",importName:"__propKey",scoped:!1,text:` + };`},rO={name:"typescript:propKey",importName:"__propKey",scoped:!1,text:` var __propKey = (this && this.__propKey) || function (x) { return typeof x === "symbol" ? x : "".concat(x); - };`},aO={name:"typescript:setFunctionName",importName:"__setFunctionName",scoped:!1,text:` + };`},nO={name:"typescript:setFunctionName",importName:"__setFunctionName",scoped:!1,text:` var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) { if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : ""; return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name }); - };`},oO={name:"typescript:values",importName:"__values",scoped:!1,text:` + };`},iO={name:"typescript:values",importName:"__values",scoped:!1,text:` var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); @@ -200,7 +200,7 @@ ${V.join(` } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); - };`},cO={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:` + };`},sO={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:` var __generator = (this && this.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; @@ -238,40 +238,40 @@ ${V.join(` }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; - }));`},lO={name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:` + }));`},aO={name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:` var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); }) : function(o, v) { o["default"] = v; - });`},xw={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[LC,lO],priority:2,text:` + });`},Tw={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[LC,aO],priority:2,text:` var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); __setModuleDefault(result, mod); return result; - };`},uO={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:` + };`},oO={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:` var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; - };`},_O={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[LC],priority:2,text:` + };`},cO={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[LC],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); - };`},fO={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:` + };`},lO={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:` var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); - };`},pO={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:` + };`},uO={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:` var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { if (kind === "m") throw new TypeError("Private method is not writable"); if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; - };`},dO={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:` + };`},_O={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:` var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) { if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object"); return typeof state === "function" ? receiver === state : state.has(receiver); - };`},mO={name:"typescript:addDisposableResource",importName:"__addDisposableResource",scoped:!1,text:` + };`},fO={name:"typescript:addDisposableResource",importName:"__addDisposableResource",scoped:!1,text:` var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) { if (value !== null && value !== void 0) { if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected."); @@ -291,7 +291,7 @@ ${V.join(` env.stack.push({ async: true }); } return value; - };`},gO={name:"typescript:disposeResources",importName:"__disposeResources",scoped:!1,text:` + };`},pO={name:"typescript:disposeResources",importName:"__disposeResources",scoped:!1,text:` var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) { return function (env) { function fail(e) { @@ -316,73 +316,73 @@ ${V.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; - });`},kw={name:"typescript:async-super",scoped:!0,text:vV` - const ${"_superIndex"} = name => super[name];`},Cw={name:"typescript:advanced-async-super",scoped:!0,text:vV` + });`},xw={name:"typescript:async-super",scoped:!0,text:hV` + const ${"_superIndex"} = name => super[name];`},kw={name:"typescript:advanced-async-super",scoped:!0,text:hV` 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 j_(e){return e.kind===9}function hO(e){return e.kind===10}function aa(e){return e.kind===11}function ex(e){return e.kind===12}function TV(e){return e.kind===14}function tx(e){return e.kind===15}function rx(e){return e.kind===16}function xV(e){return e.kind===17}function yO(e){return e.kind===18}function vO(e){return e.kind===26}function Hne(e){return e.kind===28}function kV(e){return e.kind===40}function CV(e){return e.kind===41}function Ew(e){return e.kind===42}function Pw(e){return e.kind===54}function uy(e){return e.kind===58}function Gne(e){return e.kind===59}function bO(e){return e.kind===29}function $ne(e){return e.kind===39}function Ie(e){return e.kind===80}function Pi(e){return e.kind===81}function nx(e){return e.kind===95}function SO(e){return e.kind===90}function l3(e){return e.kind===134}function Xne(e){return e.kind===131}function EV(e){return e.kind===135}function Qne(e){return e.kind===148}function ix(e){return e.kind===126}function Yne(e){return e.kind===128}function Zne(e){return e.kind===164}function Kne(e){return e.kind===129}function u3(e){return e.kind===108}function _3(e){return e.kind===102}function eie(e){return e.kind===84}function Xu(e){return e.kind===166}function Pa(e){return e.kind===167}function Vo(e){return e.kind===168}function rs(e){return e.kind===169}function ql(e){return e.kind===170}function B_(e){return e.kind===171}function xs(e){return e.kind===172}function Lm(e){return e.kind===173}function hc(e){return e.kind===174}function ec(e){return e.kind===175}function sc(e){return e.kind===176}function xf(e){return e.kind===177}function J_(e){return e.kind===178}function sx(e){return e.kind===179}function Dw(e){return e.kind===180}function i2(e){return e.kind===181}function ww(e){return e.kind===182}function $f(e){return e.kind===183}function Mm(e){return e.kind===184}function MC(e){return e.kind===185}function ax(e){return e.kind===186}function z_(e){return e.kind===187}function Aw(e){return e.kind===188}function ox(e){return e.kind===189}function RC(e){return e.kind===202}function TO(e){return e.kind===190}function xO(e){return e.kind===191}function _y(e){return e.kind===192}function cx(e){return e.kind===193}function lx(e){return e.kind===194}function Wb(e){return e.kind===195}function Vb(e){return e.kind===196}function Nw(e){return e.kind===197}function Ub(e){return e.kind===198}function qb(e){return e.kind===199}function jC(e){return e.kind===200}function fy(e){return e.kind===201}function Cg(e){return e.kind===205}function PV(e){return e.kind===204}function tie(e){return e.kind===203}function kp(e){return e.kind===206}function s2(e){return e.kind===207}function Ea(e){return e.kind===208}function ju(e){return e.kind===209}function ua(e){return e.kind===210}function Sn(e){return e.kind===211}function ko(e){return e.kind===212}function Rs(e){return e.kind===213}function a2(e){return e.kind===214}function o2(e){return e.kind===215}function rie(e){return e.kind===216}function l_(e){return e.kind===217}function co(e){return e.kind===218}function po(e){return e.kind===219}function nie(e){return e.kind===220}function BC(e){return e.kind===221}function ux(e){return e.kind===222}function py(e){return e.kind===223}function dy(e){return e.kind===224}function DV(e){return e.kind===225}function Zr(e){return e.kind===226}function JC(e){return e.kind===227}function kO(e){return e.kind===228}function CO(e){return e.kind===229}function hd(e){return e.kind===230}function kl(e){return e.kind===231}function pl(e){return e.kind===232}function s0(e){return e.kind===233}function Iw(e){return e.kind===234}function wV(e){return e.kind===238}function _x(e){return e.kind===235}function f3(e){return e.kind===236}function H1e(e){return e.kind===237}function EO(e){return e.kind===360}function p3(e){return e.kind===361}function d3(e){return e.kind===239}function iie(e){return e.kind===240}function Cs(e){return e.kind===241}function ac(e){return e.kind===243}function AV(e){return e.kind===242}function Cl(e){return e.kind===244}function Hb(e){return e.kind===245}function G1e(e){return e.kind===246}function $1e(e){return e.kind===247}function Gb(e){return e.kind===248}function PO(e){return e.kind===249}function Fw(e){return e.kind===250}function X1e(e){return e.kind===251}function Q1e(e){return e.kind===252}function Hp(e){return e.kind===253}function sie(e){return e.kind===254}function m3(e){return e.kind===255}function c2(e){return e.kind===256}function NV(e){return e.kind===257}function $b(e){return e.kind===258}function Y1e(e){return e.kind===259}function hi(e){return e.kind===260}function dl(e){return e.kind===261}function $c(e){return e.kind===262}function Xc(e){return e.kind===263}function Bu(e){return e.kind===264}function Gp(e){return e.kind===265}function L1(e){return e.kind===266}function Sc(e){return e.kind===267}function Zd(e){return e.kind===268}function g3(e){return e.kind===269}function Ow(e){return e.kind===270}function El(e){return e.kind===271}function il(e){return e.kind===272}function Rm(e){return e.kind===273}function Z1e(e){return e.kind===302}function aie(e){return e.kind===300}function K1e(e){return e.kind===301}function fx(e){return e.kind===300}function oie(e){return e.kind===301}function my(e){return e.kind===274}function jm(e){return e.kind===280}function sh(e){return e.kind===275}function x_(e){return e.kind===276}function oc(e){return e.kind===277}function Tc(e){return e.kind===278}function Xf(e){return e.kind===279}function vu(e){return e.kind===281}function eve(e){return e.kind===282}function IV(e){return e.kind===359}function px(e){return e.kind===362}function Bm(e){return e.kind===283}function Eg(e){return e.kind===284}function Xb(e){return e.kind===285}function Kd(e){return e.kind===286}function l2(e){return e.kind===287}function u2(e){return e.kind===288}function dx(e){return e.kind===289}function cie(e){return e.kind===290}function em(e){return e.kind===291}function _2(e){return e.kind===292}function mx(e){return e.kind===293}function h3(e){return e.kind===294}function yd(e){return e.kind===295}function zC(e){return e.kind===296}function y3(e){return e.kind===297}function kf(e){return e.kind===298}function f2(e){return e.kind===299}function zc(e){return e.kind===303}function k_(e){return e.kind===304}function a0(e){return e.kind===305}function p2(e){return e.kind===306}function lie(e){return e.kind===308}function Ni(e){return e.kind===312}function FV(e){return e.kind===313}function Qb(e){return e.kind===314}function d2(e){return e.kind===316}function v3(e){return e.kind===317}function M1(e){return e.kind===318}function uie(e){return e.kind===331}function _ie(e){return e.kind===332}function tve(e){return e.kind===333}function fie(e){return e.kind===319}function pie(e){return e.kind===320}function WC(e){return e.kind===321}function DO(e){return e.kind===322}function OV(e){return e.kind===323}function VC(e){return e.kind===324}function wO(e){return e.kind===325}function rve(e){return e.kind===326}function vd(e){return e.kind===327}function Yb(e){return e.kind===329}function R1(e){return e.kind===330}function gx(e){return e.kind===335}function nve(e){return e.kind===337}function die(e){return e.kind===339}function LV(e){return e.kind===345}function MV(e){return e.kind===340}function RV(e){return e.kind===341}function jV(e){return e.kind===342}function BV(e){return e.kind===343}function AO(e){return e.kind===344}function UC(e){return e.kind===346}function JV(e){return e.kind===338}function ive(e){return e.kind===354}function Lw(e){return e.kind===347}function bd(e){return e.kind===348}function NO(e){return e.kind===349}function zV(e){return e.kind===350}function b3(e){return e.kind===351}function Cp(e){return e.kind===352}function Zb(e){return e.kind===353}function sve(e){return e.kind===334}function mie(e){return e.kind===355}function IO(e){return e.kind===336}function FO(e){return e.kind===357}function ave(e){return e.kind===356}function qC(e){return e.kind===358}var GOe=wt({"src/compiler/factory/nodeTests.ts"(){Fs()}});function Mw(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function Kb(e,t,n,i){if(Pa(n))return Ke(e.createElementAccessExpression(t,n.expression),i);{const s=Ke(pg(n)?e.createPropertyAccessExpression(t,n):e.createElementAccessExpression(t,n),n);return Qd(s,128),s}}function gie(e,t){const n=Jm.createIdentifier(e||"React");return ba(n,as(t)),n}function hie(e,t,n){if(Xu(t)){const i=hie(e,t.left,n),s=e.createIdentifier(on(t.right));return s.escapedText=t.right.escapedText,e.createPropertyAccessExpression(i,s)}else return gie(on(t),n)}function WV(e,t,n,i){return t?hie(e,t,i):e.createPropertyAccessExpression(gie(n,i),"createElement")}function $Oe(e,t,n,i){return t?hie(e,t,i):e.createPropertyAccessExpression(gie(n,i),"Fragment")}function yie(e,t,n,i,s,o){const c=[n];if(i&&c.push(i),s&&s.length>0)if(i||c.push(e.createNull()),s.length>1)for(const u of s)bu(u),c.push(u);else c.push(s[0]);return Ke(e.createCallExpression(t,void 0,c),o)}function vie(e,t,n,i,s,o,c){const f=[$Oe(e,n,i,o),e.createNull()];if(s&&s.length>0)if(s.length>1)for(const g of s)bu(g),f.push(g);else f.push(s[0]);return Ke(e.createCallExpression(WV(e,t,i,o),void 0,f),c)}function VV(e,t,n){if(dl(t)){const i=va(t.declarations),s=e.updateVariableDeclaration(i,i.name,void 0,void 0,n);return Ke(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[s])),t)}else{const i=Ke(e.createAssignment(t,n),t);return Ke(e.createExpressionStatement(i),t)}}function ove(e,t,n){return Cs(t)?e.updateBlock(t,Ke(e.createNodeArray([n,...t.statements]),t.statements)):e.createBlock(e.createNodeArray([t,n]),!0)}function Rw(e,t){if(Xu(t)){const n=Rw(e,t.left),i=ba(Ke(e.cloneNode(t.right),t.right),t.right.parent);return Ke(e.createPropertyAccessExpression(n,i),t)}else return ba(Ke(e.cloneNode(t),t),t.parent)}function UV(e,t){return Ie(t)?e.createStringLiteralFromNode(t):Pa(t)?ba(Ke(e.cloneNode(t.expression),t.expression),t.expression.parent):ba(Ke(e.cloneNode(t),t),t.parent)}function XOe(e,t,n,i,s){const{firstAccessor:o,getAccessor:c,setAccessor:u}=Rb(t,n);if(n===o)return Ke(e.createObjectDefinePropertyCall(i,UV(e,n.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:c&&Ke(dn(e.createFunctionExpression(Lv(c),void 0,void 0,void 0,c.parameters,void 0,c.body),c),c),set:u&&Ke(dn(e.createFunctionExpression(Lv(u),void 0,void 0,void 0,u.parameters,void 0,u.body),u),u)},!s)),o)}function QOe(e,t,n){return dn(Ke(e.createAssignment(Kb(e,n,t.name,t.name),t.initializer),t),t)}function YOe(e,t,n){return dn(Ke(e.createAssignment(Kb(e,n,t.name,t.name),e.cloneNode(t.name)),t),t)}function ZOe(e,t,n){return dn(Ke(e.createAssignment(Kb(e,n,t.name,t.name),dn(Ke(e.createFunctionExpression(Lv(t),t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t)}function bie(e,t,n,i){switch(n.name&&Pi(n.name)&&E.failBadSyntaxKind(n.name,"Private identifiers are not allowed in object literals."),n.kind){case 177:case 178:return XOe(e,t.properties,n,i,!!t.multiLine);case 303:return QOe(e,n,i);case 304:return YOe(e,n,i);case 174:return ZOe(e,n,i)}}function OO(e,t,n,i,s){const o=t.operator;E.assert(o===46||o===47,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");const c=e.createTempVariable(i);n=e.createAssignment(c,n),Ke(n,t.operand);let u=dy(t)?e.createPrefixUnaryExpression(o,c):e.createPostfixUnaryExpression(c,o);return Ke(u,t),s&&(u=e.createAssignment(s,u),Ke(u,t)),n=e.createComma(n,u),Ke(n,t),DV(t)&&(n=e.createComma(n,c),Ke(n,t)),n}function qV(e){return(ha(e)&65536)!==0}function ah(e){return(ha(e)&32768)!==0}function LO(e){return(ha(e)&16384)!==0}function cve(e){return aa(e.expression)&&e.expression.text==="use strict"}function HV(e){for(const t of e)if(Vp(t)){if(cve(t))return t}else break}function Sie(e){const t=bl(e);return t!==void 0&&Vp(t)&&cve(t)}function jw(e){return e.kind===226&&e.operatorToken.kind===28}function S3(e){return jw(e)||p3(e)}function HC(e){return l_(e)&&Hr(e)&&!!b1(e)}function MO(e){const t=S1(e);return E.assertIsDefined(t),t}function RO(e,t=15){switch(e.kind){case 217:return t&16&&HC(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 xc(e,t=15){for(;RO(e,t);)e=e.expression;return e}function Tie(e,t=15){let n=e.parent;for(;RO(n,t);)n=n.parent,E.assert(n);return n}function lve(e){return xc(e,6)}function bu(e){return zF(e,!0)}function Bw(e){const t=ic(e,Ni),n=t&&t.emitNode;return n&&n.externalHelpersModuleName}function xie(e){const t=ic(e,Ni),n=t&&t.emitNode;return!!n&&(!!n.externalHelpersModuleName||!!n.externalHelpers)}function GV(e,t,n,i,s,o,c){if(i.importHelpers&&FT(n,i)){let u;const f=au(i);if(f>=5&&f<=99||n.impliedNodeFormat===99){const g=VF(n);if(g){const d=[];for(const y of g)if(!y.scoped){const S=y.importName;S&&zf(d,S)}if(ct(d)){d.sort(mu),u=e.createNamedImports(nr(d,T=>l5(n,T)?e.createImportSpecifier(!1,void 0,e.createIdentifier(T)):e.createImportSpecifier(!1,e.createIdentifier(T),t.getUnscopedHelperName(T))));const y=ic(n,Ni),S=ou(y);S.externalHelpers=!0}}}else{const g=kie(e,n,i,s,o||c);g&&(u=e.createNamespaceImport(g))}if(u){const g=e.createImportDeclaration(void 0,e.createImportClause(!1,void 0,u),e.createStringLiteral(oy),void 0);return QT(g,2),g}}}function kie(e,t,n,i,s){if(n.importHelpers&&FT(t,n)){const o=Bw(t);if(o)return o;const c=au(n);let u=(i||Om(n)&&s)&&c!==4&&(c<5||t.impliedNodeFormat===1);if(!u){const f=VF(t);if(f){for(const g of f)if(!g.scoped){u=!0;break}}}if(u){const f=ic(t,Ni),g=ou(f);return g.externalHelpersModuleName||(g.externalHelpersModuleName=e.createUniqueName(oy))}}}function GC(e,t,n){const i=_C(t);if(i&&!LT(t)&&!_5(t)){const s=i.name;return Fo(s)?s:e.createIdentifier(Bv(n,s)||on(s))}if(t.kind===272&&t.importClause||t.kind===278&&t.moduleSpecifier)return e.getGeneratedNameForNode(t)}function hx(e,t,n,i,s,o){const c=uC(t);if(c&&aa(c))return e9e(t,i,e,s,o)||KOe(e,c,n)||e.cloneNode(c)}function KOe(e,t,n){const i=n.renamedDependencies&&n.renamedDependencies.get(t.text);return i?e.createStringLiteral(i):void 0}function Jw(e,t,n,i){if(t){if(t.moduleName)return e.createStringLiteral(t.moduleName);if(!t.isDeclarationFile&&no(i))return e.createStringLiteral(uW(n,t.fileName))}}function e9e(e,t,n,i,s){return Jw(n,i.getExternalModuleFileFromDeclaration(e),t,s)}function zw(e){if(ZD(e))return e.initializer;if(zc(e)){const t=e.initializer;return nl(t,!0)?t.right:void 0}if(k_(e))return e.objectAssignmentInitializer;if(nl(e,!0))return e.right;if(hd(e))return zw(e.expression)}function gy(e){if(ZD(e))return e.name;if(Yg(e)){switch(e.kind){case 303:return gy(e.initializer);case 304:return e.name;case 305:return gy(e.expression)}return}return nl(e,!0)?gy(e.left):hd(e)?gy(e.expression):e}function jO(e){switch(e.kind){case 169:case 208:return e.dotDotDotToken;case 230:case 305:return e}}function $V(e){const t=BO(e);return E.assert(!!t||a0(e),"Invalid property name for binding element."),t}function BO(e){switch(e.kind){case 208:if(e.propertyName){const n=e.propertyName;return Pi(n)?E.failBadSyntaxKind(n):Pa(n)&&uve(n.expression)?n.expression:n}break;case 303:if(e.name){const n=e.name;return Pi(n)?E.failBadSyntaxKind(n):Pa(n)&&uve(n.expression)?n.expression:n}break;case 305:return e.name&&Pi(e.name)?E.failBadSyntaxKind(e.name):e.name}const t=gy(e);if(t&&Ac(t))return t}function uve(e){const t=e.kind;return t===11||t===9}function $C(e){switch(e.kind){case 206:case 207:case 209:return e.elements;case 210:return e.properties}}function XV(e){if(e){let t=e;for(;;){if(Ie(t)||!t.body)return Ie(t)?t:t.name;t=t.body}}}function _ve(e){const t=e.kind;return t===176||t===178}function Cie(e){const t=e.kind;return t===176||t===177||t===178}function QV(e){const 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 Eie(e){const t=e.kind;return t===175||t===303||t===304||t===282||t===270}function Pie(e){return uy(e)||Pw(e)}function Die(e){return Ie(e)||Nw(e)}function wie(e){return Qne(e)||kV(e)||CV(e)}function Aie(e){return uy(e)||kV(e)||CV(e)}function Nie(e){return Ie(e)||aa(e)}function fve(e){const t=e.kind;return t===106||t===112||t===97||Rv(e)||dy(e)}function t9e(e){return e===43}function r9e(e){return e===42||e===44||e===45}function n9e(e){return t9e(e)||r9e(e)}function i9e(e){return e===40||e===41}function s9e(e){return i9e(e)||n9e(e)}function a9e(e){return e===48||e===49||e===50}function YV(e){return a9e(e)||s9e(e)}function o9e(e){return e===30||e===33||e===32||e===34||e===104||e===103}function c9e(e){return o9e(e)||YV(e)}function l9e(e){return e===35||e===37||e===36||e===38}function u9e(e){return l9e(e)||c9e(e)}function _9e(e){return e===51||e===52||e===53}function f9e(e){return _9e(e)||u9e(e)}function p9e(e){return e===56||e===57}function d9e(e){return p9e(e)||f9e(e)}function m9e(e){return e===61||d9e(e)||Kh(e)}function g9e(e){return m9e(e)||e===28}function Iie(e){return g9e(e.kind)}function JO(e,t,n,i,s,o){const c=new mve(e,t,n,i,s,o);return u;function u(f,g){const d={value:void 0},y=[KV.enter],S=[f],T=[void 0];let k=0;for(;y[k]!==KV.done;)k=y[k](c,k,y,S,T,d,g);return E.assertEqual(k,0),d.value}}function pve(e){return e===95||e===90}function Ww(e){const t=e.kind;return pve(t)}function dve(e){const t=e.kind;return $h(t)&&!pve(t)}function Fie(e,t){if(t!==void 0)return t.length===0?t:Ke(e.createNodeArray([],t.hasTrailingComma),t)}function Vw(e){var t;const n=e.emitNode.autoGenerate;if(n.flags&4){const i=n.id;let s=e,o=s.original;for(;o;){s=o;const c=(t=s.emitNode)==null?void 0:t.autoGenerate;if(pg(s)&&(c===void 0||c.flags&4&&c.id!==i))break;o=s.original}return s}return e}function XC(e,t){return typeof e=="object"?j1(!1,e.prefix,e.node,e.suffix,t):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function h9e(e,t){return typeof e=="string"?e:y9e(e,E.checkDefined(t))}function y9e(e,t){return vb(e)?t(e).slice(1):Fo(e)?t(e):Pi(e)?e.escapedText.slice(1):on(e)}function j1(e,t,n,i,s){return t=XC(t,s),i=XC(i,s),n=h9e(n,s),`${e?"#":""}${t}${n}${i}`}function ZV(e,t,n,i){return e.updatePropertyDeclaration(t,n,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage"),void 0,void 0,i)}function Oie(e,t,n,i,s=e.createThis()){return e.createGetAccessorDeclaration(n,i,[],void 0,e.createBlock([e.createReturnStatement(e.createPropertyAccessExpression(s,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")))]))}function Lie(e,t,n,i,s=e.createThis()){return e.createSetAccessorDeclaration(n,i,[e.createParameterDeclaration(void 0,void 0,"value")],e.createBlock([e.createExpressionStatement(e.createAssignment(e.createPropertyAccessExpression(s,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")),e.createIdentifier("value")))]))}function zO(e){let t=e.expression;for(;;){if(t=xc(t),p3(t)){t=ka(t.elements);continue}if(jw(t)){t=t.right;continue}if(nl(t,!0)&&Fo(t.left))return t;break}}function v9e(e){return l_(e)&&xo(e)&&!e.emitNode}function WO(e,t){if(v9e(e))WO(e.expression,t);else if(jw(e))WO(e.left,t),WO(e.right,t);else if(p3(e))for(const n of e.elements)WO(n,t);else t.push(e)}function Mie(e){const t=[];return WO(e,t),t}function Uw(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(const t of $C(e)){const n=gy(t);if(n&&_E(n)&&(n.transformFlags&65536||n.transformFlags&128&&Uw(n)))return!0}return!1}var KV,mve,b9e=wt({"src/compiler/factory/utilities.ts"(){Fs(),(e=>{function t(d,y,S,T,k,w,P){const F=y>0?k[y-1]:void 0;return E.assertEqual(S[y],t),k[y]=d.onEnter(T[y],F,P),S[y]=u(d,t),y}e.enter=t;function n(d,y,S,T,k,w,P){E.assertEqual(S[y],n),E.assertIsDefined(d.onLeft),S[y]=u(d,n);const F=d.onLeft(T[y].left,k[y],T[y]);return F?(g(y,T,F),f(y,S,T,k,F)):y}e.left=n;function i(d,y,S,T,k,w,P){return E.assertEqual(S[y],i),E.assertIsDefined(d.onOperator),S[y]=u(d,i),d.onOperator(T[y].operatorToken,k[y],T[y]),y}e.operator=i;function s(d,y,S,T,k,w,P){E.assertEqual(S[y],s),E.assertIsDefined(d.onRight),S[y]=u(d,s);const F=d.onRight(T[y].right,k[y],T[y]);return F?(g(y,T,F),f(y,S,T,k,F)):y}e.right=s;function o(d,y,S,T,k,w,P){E.assertEqual(S[y],o),S[y]=u(d,o);const F=d.onExit(T[y],k[y]);if(y>0){if(y--,d.foldState){const J=S[y]===o?"right":"left";k[y]=d.foldState(k[y],F,J)}}else w.value=F;return y}e.exit=o;function c(d,y,S,T,k,w,P){return E.assertEqual(S[y],c),y}e.done=c;function u(d,y){switch(y){case t:if(d.onLeft)return n;case n:if(d.onOperator)return i;case i:if(d.onRight)return s;case s:return o;case o:return c;case c:return c;default:E.fail("Invalid state")}}e.nextState=u;function f(d,y,S,T,k){return d++,y[d]=t,S[d]=k,T[d]=void 0,d}function g(d,y,S){if(E.shouldAssert(2))for(;d>=0;)E.assert(y[d]!==S,"Circular traversal detected."),d--}})(KV||(KV={})),mve=class{constructor(e,t,n,i,s,o){this.onEnter=e,this.onLeft=t,this.onOperator=n,this.onRight=i,this.onExit=s,this.foldState=o}}}});function Ke(e,t){return t?Fm(e,t.pos,t.end):e}function $p(e){const 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 eS(e){const t=e.kind;return t===169||t===172||t===174||t===177||t===178||t===231||t===263}var S9e=wt({"src/compiler/factory/utilitiesPublic.ts"(){Fs()}});function Mt(e,t){return t&&e(t)}function Ti(e,t,n){if(n){if(t)return t(n);for(const i of n){const s=e(i);if(s)return s}}}function eU(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===42&&e.charCodeAt(t+3)!==47}function qw(e){return er(e.statements,T9e)||x9e(e)}function T9e(e){return $p(e)&&k9e(e,95)||El(e)&&Bm(e.moduleReference)||il(e)||oc(e)||Tc(e)?e:void 0}function x9e(e){return e.flags&8388608?gve(e):void 0}function gve(e){return C9e(e)?e:Ss(e,gve)}function k9e(e,t){return ct(e.modifiers,n=>n.kind===t)}function C9e(e){return f3(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function hve(e,t,n){return Ti(t,n,e.typeParameters)||Ti(t,n,e.parameters)||Mt(t,e.type)}function yve(e,t,n){return Ti(t,n,e.types)}function vve(e,t,n){return Mt(t,e.type)}function bve(e,t,n){return Ti(t,n,e.elements)}function Sve(e,t,n){return Mt(t,e.expression)||Mt(t,e.questionDotToken)||Ti(t,n,e.typeArguments)||Ti(t,n,e.arguments)}function Tve(e,t,n){return Ti(t,n,e.statements)}function xve(e,t,n){return Mt(t,e.label)}function kve(e,t,n){return Ti(t,n,e.modifiers)||Mt(t,e.name)||Ti(t,n,e.typeParameters)||Ti(t,n,e.heritageClauses)||Ti(t,n,e.members)}function Cve(e,t,n){return Ti(t,n,e.elements)}function Eve(e,t,n){return Mt(t,e.propertyName)||Mt(t,e.name)}function Pve(e,t,n){return Mt(t,e.tagName)||Ti(t,n,e.typeArguments)||Mt(t,e.attributes)}function T3(e,t,n){return Mt(t,e.type)}function Dve(e,t,n){return Mt(t,e.tagName)||(e.isNameFirst?Mt(t,e.name)||Mt(t,e.typeExpression):Mt(t,e.typeExpression)||Mt(t,e.name))||(typeof e.comment=="string"?void 0:Ti(t,n,e.comment))}function x3(e,t,n){return Mt(t,e.tagName)||Mt(t,e.typeExpression)||(typeof e.comment=="string"?void 0:Ti(t,n,e.comment))}function Rie(e,t,n){return Mt(t,e.name)}function QC(e,t,n){return Mt(t,e.tagName)||(typeof e.comment=="string"?void 0:Ti(t,n,e.comment))}function E9e(e,t,n){return Mt(t,e.expression)}function Ss(e,t,n){if(e===void 0||e.kind<=165)return;const i=jve[e.kind];return i===void 0?void 0:i(e,t,n)}function k3(e,t,n){const i=wve(e),s=[];for(;s.length=0;--u)i.push(o[u]),s.push(c)}else{const u=t(o,c);if(u){if(u==="skip")continue;return u}if(o.kind>=166)for(const f of wve(o))i.push(f),s.push(o)}}}function wve(e){const t=[];return Ss(e,n,n),t;function n(i){t.unshift(i)}}function Ave(e){e.externalModuleIndicator=qw(e)}function Hw(e,t,n,i=!1,s){var o,c,u,f;(o=qr)==null||o.push(qr.Phase.Parse,"createSourceFile",{path:e},!0),Ao("beforeParse");let g;(c=wu)==null||c.logStartParseSourceFile(e);const{languageVersion:d,setExternalModuleIndicator:y,impliedNodeFormat:S,jsDocParsingMode:T}=typeof n=="object"?n:{languageVersion:n};if(d===100)g=J1.parseSourceFile(e,t,d,void 0,i,6,Ca,T);else{const k=S===void 0?y:w=>(w.impliedNodeFormat=S,(y||Ave)(w));g=J1.parseSourceFile(e,t,d,void 0,i,s,k,T)}return(u=wu)==null||u.logStopParseSourceFile(),Ao("afterParse"),bf("Parse","beforeParse","afterParse"),(f=qr)==null||f.pop(),g}function yx(e,t){return J1.parseIsolatedEntityName(e,t)}function Gw(e,t){return J1.parseJsonText(e,t)}function Ic(e){return e.externalModuleIndicator!==void 0}function tU(e,t,n,i=!1){const s=aU.updateSourceFile(e,t,n,i);return s.flags|=e.flags&12582912,s}function jie(e,t,n){const i=J1.JSDocParser.parseIsolatedJSDocComment(e,t,n);return i&&i.jsDoc&&J1.fixupParentReferences(i.jsDoc),i}function Nve(e,t,n){return J1.JSDocParser.parseJSDocTypeExpressionForTests(e,t,n)}function Hl(e){return rU(e)!==void 0}function rU(e){const t=jk(e,pw,!1);if(t)return t;if(Zo(e,".ts")){const n=wc(e).lastIndexOf(".d.");if(n>=0)return e.substring(n)}}function P9e(e,t,n,i){if(e){if(e==="import")return 99;if(e==="require")return 1;i(t,n-t,p.resolution_mode_should_be_either_require_or_import)}}function nU(e,t){const n=[];for(const i of _g(t,0)||Ve){const s=t.substring(i.pos,i.end);w9e(n,i,s)}e.pragmas=new Map;for(const i of n){if(e.pragmas.has(i.name)){const s=e.pragmas.get(i.name);s instanceof Array?s.push(i.args):e.pragmas.set(i.name,[s,i.args]);continue}e.pragmas.set(i.name,i.args)}}function iU(e,t){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach((n,i)=>{switch(i){case"reference":{const s=e.referencedFiles,o=e.typeReferenceDirectives,c=e.libReferenceDirectives;er(bT(n),u=>{const{types:f,lib:g,path:d,["resolution-mode"]:y}=u.arguments;if(u.arguments["no-default-lib"])e.hasNoDefaultLib=!0;else if(f){const S=P9e(y,f.pos,f.end,t);o.push({pos:f.pos,end:f.end,fileName:f.value,...S?{resolutionMode:S}:{}})}else g?c.push({pos:g.pos,end:g.end,fileName:g.value}):d?s.push({pos:d.pos,end:d.end,fileName:d.value}):t(u.range.pos,u.range.end-u.range.pos,p.Invalid_reference_directive_syntax)});break}case"amd-dependency":{e.amdDependencies=nr(bT(n),s=>({name:s.arguments.name,path:s.arguments.path}));break}case"amd-module":{if(n instanceof Array)for(const s of n)e.moduleName&&t(s.range.pos,s.range.end-s.range.pos,p.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=s.arguments.name;else e.moduleName=n.arguments.name;break}case"ts-nocheck":case"ts-check":{er(bT(n),s=>{(!e.checkJsDirective||s.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:i==="ts-check",end:s.range.end,pos:s.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:E.fail("Unhandled pragma kind")}})}function D9e(e){if(oU.has(e))return oU.get(e);const t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return oU.set(e,t),t}function w9e(e,t,n){const i=t.kind===2&&Bve.exec(n);if(i){const o=i[1].toLowerCase(),c=PD[o];if(!c||!(c.kind&1))return;if(c.args){const u={};for(const f of c.args){const d=D9e(f.name).exec(n);if(!d&&!f.optional)return;if(d){const y=d[2]||d[3];if(f.captureSpan){const S=t.pos+d.index+d[1].length+1;u[f.name]={value:y,pos:S,end:S+y.length}}else u[f.name]=y}}e.push({name:o,args:{arguments:u,range:t}})}else e.push({name:o,args:{arguments:{},range:t}});return}const s=t.kind===2&&Jve.exec(n);if(s)return Ive(e,t,2,s);if(t.kind===3){const o=/@(\S+)(\s+.*)?$/gim;let c;for(;c=o.exec(n);)Ive(e,t,4,c)}}function Ive(e,t,n,i){if(!i)return;const s=i[1].toLowerCase(),o=PD[s];if(!o||!(o.kind&n))return;const c=i[2],u=A9e(o,c);u!=="fail"&&e.push({name:s,args:{arguments:u,range:t}})}function A9e(e,t){if(!t)return{};if(!e.args)return{};const n=t.trim().split(/\s+/),i={};for(let s=0;snew(Rve||(Rve=Il.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(Lve||(Lve=Il.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(Mve||(Mve=Il.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(Ove||(Ove=Il.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(Fve||(Fve=Il.getNodeConstructor()))(e,-1,-1)},Jm=gw(1,sU),jve={166:function(t,n,i){return Mt(n,t.left)||Mt(n,t.right)},168:function(t,n,i){return Ti(n,i,t.modifiers)||Mt(n,t.name)||Mt(n,t.constraint)||Mt(n,t.default)||Mt(n,t.expression)},304:function(t,n,i){return Ti(n,i,t.modifiers)||Mt(n,t.name)||Mt(n,t.questionToken)||Mt(n,t.exclamationToken)||Mt(n,t.equalsToken)||Mt(n,t.objectAssignmentInitializer)},305:function(t,n,i){return Mt(n,t.expression)},169:function(t,n,i){return Ti(n,i,t.modifiers)||Mt(n,t.dotDotDotToken)||Mt(n,t.name)||Mt(n,t.questionToken)||Mt(n,t.type)||Mt(n,t.initializer)},172:function(t,n,i){return Ti(n,i,t.modifiers)||Mt(n,t.name)||Mt(n,t.questionToken)||Mt(n,t.exclamationToken)||Mt(n,t.type)||Mt(n,t.initializer)},171:function(t,n,i){return Ti(n,i,t.modifiers)||Mt(n,t.name)||Mt(n,t.questionToken)||Mt(n,t.type)||Mt(n,t.initializer)},303:function(t,n,i){return Ti(n,i,t.modifiers)||Mt(n,t.name)||Mt(n,t.questionToken)||Mt(n,t.exclamationToken)||Mt(n,t.initializer)},260:function(t,n,i){return Mt(n,t.name)||Mt(n,t.exclamationToken)||Mt(n,t.type)||Mt(n,t.initializer)},208:function(t,n,i){return Mt(n,t.dotDotDotToken)||Mt(n,t.propertyName)||Mt(n,t.name)||Mt(n,t.initializer)},181:function(t,n,i){return Ti(n,i,t.modifiers)||Ti(n,i,t.typeParameters)||Ti(n,i,t.parameters)||Mt(n,t.type)},185:function(t,n,i){return Ti(n,i,t.modifiers)||Ti(n,i,t.typeParameters)||Ti(n,i,t.parameters)||Mt(n,t.type)},184:function(t,n,i){return Ti(n,i,t.modifiers)||Ti(n,i,t.typeParameters)||Ti(n,i,t.parameters)||Mt(n,t.type)},179:hve,180:hve,174:function(t,n,i){return Ti(n,i,t.modifiers)||Mt(n,t.asteriskToken)||Mt(n,t.name)||Mt(n,t.questionToken)||Mt(n,t.exclamationToken)||Ti(n,i,t.typeParameters)||Ti(n,i,t.parameters)||Mt(n,t.type)||Mt(n,t.body)},173:function(t,n,i){return Ti(n,i,t.modifiers)||Mt(n,t.name)||Mt(n,t.questionToken)||Ti(n,i,t.typeParameters)||Ti(n,i,t.parameters)||Mt(n,t.type)},176:function(t,n,i){return Ti(n,i,t.modifiers)||Mt(n,t.name)||Ti(n,i,t.typeParameters)||Ti(n,i,t.parameters)||Mt(n,t.type)||Mt(n,t.body)},177:function(t,n,i){return Ti(n,i,t.modifiers)||Mt(n,t.name)||Ti(n,i,t.typeParameters)||Ti(n,i,t.parameters)||Mt(n,t.type)||Mt(n,t.body)},178:function(t,n,i){return Ti(n,i,t.modifiers)||Mt(n,t.name)||Ti(n,i,t.typeParameters)||Ti(n,i,t.parameters)||Mt(n,t.type)||Mt(n,t.body)},262:function(t,n,i){return Ti(n,i,t.modifiers)||Mt(n,t.asteriskToken)||Mt(n,t.name)||Ti(n,i,t.typeParameters)||Ti(n,i,t.parameters)||Mt(n,t.type)||Mt(n,t.body)},218:function(t,n,i){return Ti(n,i,t.modifiers)||Mt(n,t.asteriskToken)||Mt(n,t.name)||Ti(n,i,t.typeParameters)||Ti(n,i,t.parameters)||Mt(n,t.type)||Mt(n,t.body)},219:function(t,n,i){return Ti(n,i,t.modifiers)||Ti(n,i,t.typeParameters)||Ti(n,i,t.parameters)||Mt(n,t.type)||Mt(n,t.equalsGreaterThanToken)||Mt(n,t.body)},175:function(t,n,i){return Ti(n,i,t.modifiers)||Mt(n,t.body)},183:function(t,n,i){return Mt(n,t.typeName)||Ti(n,i,t.typeArguments)},182:function(t,n,i){return Mt(n,t.assertsModifier)||Mt(n,t.parameterName)||Mt(n,t.type)},186:function(t,n,i){return Mt(n,t.exprName)||Ti(n,i,t.typeArguments)},187:function(t,n,i){return Ti(n,i,t.members)},188:function(t,n,i){return Mt(n,t.elementType)},189:function(t,n,i){return Ti(n,i,t.elements)},192:yve,193:yve,194:function(t,n,i){return Mt(n,t.checkType)||Mt(n,t.extendsType)||Mt(n,t.trueType)||Mt(n,t.falseType)},195:function(t,n,i){return Mt(n,t.typeParameter)},205:function(t,n,i){return Mt(n,t.argument)||Mt(n,t.attributes)||Mt(n,t.qualifier)||Ti(n,i,t.typeArguments)},302:function(t,n,i){return Mt(n,t.assertClause)},196:vve,198:vve,199:function(t,n,i){return Mt(n,t.objectType)||Mt(n,t.indexType)},200:function(t,n,i){return Mt(n,t.readonlyToken)||Mt(n,t.typeParameter)||Mt(n,t.nameType)||Mt(n,t.questionToken)||Mt(n,t.type)||Ti(n,i,t.members)},201:function(t,n,i){return Mt(n,t.literal)},202:function(t,n,i){return Mt(n,t.dotDotDotToken)||Mt(n,t.name)||Mt(n,t.questionToken)||Mt(n,t.type)},206:bve,207:bve,209:function(t,n,i){return Ti(n,i,t.elements)},210:function(t,n,i){return Ti(n,i,t.properties)},211:function(t,n,i){return Mt(n,t.expression)||Mt(n,t.questionDotToken)||Mt(n,t.name)},212:function(t,n,i){return Mt(n,t.expression)||Mt(n,t.questionDotToken)||Mt(n,t.argumentExpression)},213:Sve,214:Sve,215:function(t,n,i){return Mt(n,t.tag)||Mt(n,t.questionDotToken)||Ti(n,i,t.typeArguments)||Mt(n,t.template)},216:function(t,n,i){return Mt(n,t.type)||Mt(n,t.expression)},217:function(t,n,i){return Mt(n,t.expression)},220:function(t,n,i){return Mt(n,t.expression)},221:function(t,n,i){return Mt(n,t.expression)},222:function(t,n,i){return Mt(n,t.expression)},224:function(t,n,i){return Mt(n,t.operand)},229:function(t,n,i){return Mt(n,t.asteriskToken)||Mt(n,t.expression)},223:function(t,n,i){return Mt(n,t.expression)},225:function(t,n,i){return Mt(n,t.operand)},226:function(t,n,i){return Mt(n,t.left)||Mt(n,t.operatorToken)||Mt(n,t.right)},234:function(t,n,i){return Mt(n,t.expression)||Mt(n,t.type)},235:function(t,n,i){return Mt(n,t.expression)},238:function(t,n,i){return Mt(n,t.expression)||Mt(n,t.type)},236:function(t,n,i){return Mt(n,t.name)},227:function(t,n,i){return Mt(n,t.condition)||Mt(n,t.questionToken)||Mt(n,t.whenTrue)||Mt(n,t.colonToken)||Mt(n,t.whenFalse)},230:function(t,n,i){return Mt(n,t.expression)},241:Tve,268:Tve,312:function(t,n,i){return Ti(n,i,t.statements)||Mt(n,t.endOfFileToken)},243:function(t,n,i){return Ti(n,i,t.modifiers)||Mt(n,t.declarationList)},261:function(t,n,i){return Ti(n,i,t.declarations)},244:function(t,n,i){return Mt(n,t.expression)},245:function(t,n,i){return Mt(n,t.expression)||Mt(n,t.thenStatement)||Mt(n,t.elseStatement)},246:function(t,n,i){return Mt(n,t.statement)||Mt(n,t.expression)},247:function(t,n,i){return Mt(n,t.expression)||Mt(n,t.statement)},248:function(t,n,i){return Mt(n,t.initializer)||Mt(n,t.condition)||Mt(n,t.incrementor)||Mt(n,t.statement)},249:function(t,n,i){return Mt(n,t.initializer)||Mt(n,t.expression)||Mt(n,t.statement)},250:function(t,n,i){return Mt(n,t.awaitModifier)||Mt(n,t.initializer)||Mt(n,t.expression)||Mt(n,t.statement)},251:xve,252:xve,253:function(t,n,i){return Mt(n,t.expression)},254:function(t,n,i){return Mt(n,t.expression)||Mt(n,t.statement)},255:function(t,n,i){return Mt(n,t.expression)||Mt(n,t.caseBlock)},269:function(t,n,i){return Ti(n,i,t.clauses)},296:function(t,n,i){return Mt(n,t.expression)||Ti(n,i,t.statements)},297:function(t,n,i){return Ti(n,i,t.statements)},256:function(t,n,i){return Mt(n,t.label)||Mt(n,t.statement)},257:function(t,n,i){return Mt(n,t.expression)},258:function(t,n,i){return Mt(n,t.tryBlock)||Mt(n,t.catchClause)||Mt(n,t.finallyBlock)},299:function(t,n,i){return Mt(n,t.variableDeclaration)||Mt(n,t.block)},170:function(t,n,i){return Mt(n,t.expression)},263:kve,231:kve,264:function(t,n,i){return Ti(n,i,t.modifiers)||Mt(n,t.name)||Ti(n,i,t.typeParameters)||Ti(n,i,t.heritageClauses)||Ti(n,i,t.members)},265:function(t,n,i){return Ti(n,i,t.modifiers)||Mt(n,t.name)||Ti(n,i,t.typeParameters)||Mt(n,t.type)},266:function(t,n,i){return Ti(n,i,t.modifiers)||Mt(n,t.name)||Ti(n,i,t.members)},306:function(t,n,i){return Mt(n,t.name)||Mt(n,t.initializer)},267:function(t,n,i){return Ti(n,i,t.modifiers)||Mt(n,t.name)||Mt(n,t.body)},271:function(t,n,i){return Ti(n,i,t.modifiers)||Mt(n,t.name)||Mt(n,t.moduleReference)},272:function(t,n,i){return Ti(n,i,t.modifiers)||Mt(n,t.importClause)||Mt(n,t.moduleSpecifier)||Mt(n,t.attributes)},273:function(t,n,i){return Mt(n,t.name)||Mt(n,t.namedBindings)},300:function(t,n,i){return Ti(n,i,t.elements)},301:function(t,n,i){return Mt(n,t.name)||Mt(n,t.value)},270:function(t,n,i){return Ti(n,i,t.modifiers)||Mt(n,t.name)},274:function(t,n,i){return Mt(n,t.name)},280:function(t,n,i){return Mt(n,t.name)},275:Cve,279:Cve,278:function(t,n,i){return Ti(n,i,t.modifiers)||Mt(n,t.exportClause)||Mt(n,t.moduleSpecifier)||Mt(n,t.attributes)},276:Eve,281:Eve,277:function(t,n,i){return Ti(n,i,t.modifiers)||Mt(n,t.expression)},228:function(t,n,i){return Mt(n,t.head)||Ti(n,i,t.templateSpans)},239:function(t,n,i){return Mt(n,t.expression)||Mt(n,t.literal)},203:function(t,n,i){return Mt(n,t.head)||Ti(n,i,t.templateSpans)},204:function(t,n,i){return Mt(n,t.type)||Mt(n,t.literal)},167:function(t,n,i){return Mt(n,t.expression)},298:function(t,n,i){return Ti(n,i,t.types)},233:function(t,n,i){return Mt(n,t.expression)||Ti(n,i,t.typeArguments)},283:function(t,n,i){return Mt(n,t.expression)},282:function(t,n,i){return Ti(n,i,t.modifiers)},361:function(t,n,i){return Ti(n,i,t.elements)},284:function(t,n,i){return Mt(n,t.openingElement)||Ti(n,i,t.children)||Mt(n,t.closingElement)},288:function(t,n,i){return Mt(n,t.openingFragment)||Ti(n,i,t.children)||Mt(n,t.closingFragment)},285:Pve,286:Pve,292:function(t,n,i){return Ti(n,i,t.properties)},291:function(t,n,i){return Mt(n,t.name)||Mt(n,t.initializer)},293:function(t,n,i){return Mt(n,t.expression)},294:function(t,n,i){return Mt(n,t.dotDotDotToken)||Mt(n,t.expression)},287:function(t,n,i){return Mt(n,t.tagName)},295:function(t,n,i){return Mt(n,t.namespace)||Mt(n,t.name)},190:T3,191:T3,316:T3,322:T3,321:T3,323:T3,325:T3,324:function(t,n,i){return Ti(n,i,t.parameters)||Mt(n,t.type)},327:function(t,n,i){return(typeof t.comment=="string"?void 0:Ti(n,i,t.comment))||Ti(n,i,t.tags)},354:function(t,n,i){return Mt(n,t.tagName)||Mt(n,t.name)||(typeof t.comment=="string"?void 0:Ti(n,i,t.comment))},317:function(t,n,i){return Mt(n,t.name)},318:function(t,n,i){return Mt(n,t.left)||Mt(n,t.right)},348:Dve,355:Dve,337:function(t,n,i){return Mt(n,t.tagName)||(typeof t.comment=="string"?void 0:Ti(n,i,t.comment))},336:function(t,n,i){return Mt(n,t.tagName)||Mt(n,t.class)||(typeof t.comment=="string"?void 0:Ti(n,i,t.comment))},335:function(t,n,i){return Mt(n,t.tagName)||Mt(n,t.class)||(typeof t.comment=="string"?void 0:Ti(n,i,t.comment))},352:function(t,n,i){return Mt(n,t.tagName)||Mt(n,t.constraint)||Ti(n,i,t.typeParameters)||(typeof t.comment=="string"?void 0:Ti(n,i,t.comment))},353:function(t,n,i){return Mt(n,t.tagName)||(t.typeExpression&&t.typeExpression.kind===316?Mt(n,t.typeExpression)||Mt(n,t.fullName)||(typeof t.comment=="string"?void 0:Ti(n,i,t.comment)):Mt(n,t.fullName)||Mt(n,t.typeExpression)||(typeof t.comment=="string"?void 0:Ti(n,i,t.comment)))},345:function(t,n,i){return Mt(n,t.tagName)||Mt(n,t.fullName)||Mt(n,t.typeExpression)||(typeof t.comment=="string"?void 0:Ti(n,i,t.comment))},349:x3,351:x3,350:x3,347:x3,357:x3,356:x3,346:x3,330:function(t,n,i){return er(t.typeParameters,n)||er(t.parameters,n)||Mt(n,t.type)},331:Rie,332:Rie,333:Rie,329:function(t,n,i){return er(t.jsDocPropertyTags,n)},334:QC,339:QC,340:QC,341:QC,342:QC,343:QC,338:QC,344:QC,360:E9e},(e=>{var t=Hh(99,!0),n=40960,i,s,o,c,u;function f(G){return Je++,G}var g={createBaseSourceFileNode:G=>f(new u(G,0,0)),createBaseIdentifierNode:G=>f(new o(G,0,0)),createBasePrivateIdentifierNode:G=>f(new c(G,0,0)),createBaseTokenNode:G=>f(new s(G,0,0)),createBaseNode:G=>f(new i(G,0,0))},d=gw(11,g),{createNodeArray:y,createNumericLiteral:S,createStringLiteral:T,createLiteralLikeNode:k,createIdentifier:w,createPrivateIdentifier:P,createToken:F,createArrayLiteralExpression:J,createObjectLiteralExpression:U,createPropertyAccessExpression:$,createPropertyAccessChain:j,createElementAccessExpression:re,createElementAccessChain:R,createCallExpression:Y,createCallChain:ue,createNewExpression:pe,createParenthesizedExpression:H,createBlock:q,createVariableStatement:ee,createExpressionStatement:oe,createIfStatement:Se,createWhileStatement:ae,createForStatement:K,createForOfStatement:fe,createVariableDeclaration:ke,createVariableDeclarationList:Oe}=d,me,be,xe,De,ft,ge,Fe,$e,Pt,at,Je,pt,zt,Vt,hr,Lr,tr=!0,jt=!1;function Rt(G,ve,je,dt,ht=!1,Ot,Tn,vi=0){var ui;if(Ot=vF(G,Ot),Ot===6){const Ai=Ji(G,ve,je,dt,ht);return Qw(Ai,(ui=Ai.statements[0])==null?void 0:ui.expression,Ai.parseDiagnostics,!1,void 0),Ai.referencedFiles=Ve,Ai.typeReferenceDirectives=Ve,Ai.libReferenceDirectives=Ve,Ai.amdDependencies=Ve,Ai.hasNoDefaultLib=!1,Ai.pragmas=_7,Ai}yi(G,ve,je,dt,Ot,vi);const Zn=yr(je,ht,Ot,Tn||Ave,vi);return os(),Zn}e.parseSourceFile=Rt;function Kn(G,ve){yi("",G,ve,void 0,1,0),Ce();const je=Q(!0),dt=V()===1&&!Fe.length;return os(),dt?je:void 0}e.parseIsolatedEntityName=Kn;function Ji(G,ve,je=2,dt,ht=!1){yi(G,ve,je,dt,6,0),be=Lr,Ce();const Ot=A();let Tn,vi;if(V()===1)Tn=fs([],Ot,Ot),vi=zo();else{let Ai;for(;V()!==1;){let Da;switch(V()){case 23:Da=j2();break;case 112:case 97:case 106:Da=zo();break;case 41:pi(()=>Ce()===9&&Ce()!==59)?Da=jn():Da=bh();break;case 9:case 11:if(pi(()=>Ce()!==59)){Da=Ln();break}default:Da=bh();break}Ai&&ts(Ai)?Ai.push(Da):Ai?Ai=[Ai,Da]:(Ai=Da,V()!==1&&Yt(p.Unexpected_token))}const Ba=ts(Ai)?Wt(J(Ai),Ot):E.checkDefined(Ai),eo=oe(Ba);Wt(eo,Ot),Tn=fs([eo],Ot),vi=Qa(1,p.Unexpected_token)}const ui=Et(G,2,6,!1,Tn,vi,be,Ca);ht&&Ue(ui),ui.nodeCount=Je,ui.identifierCount=zt,ui.identifiers=pt,ui.parseDiagnostics=qT(Fe,ui),$e&&(ui.jsDocDiagnostics=qT($e,ui));const Zn=ui;return os(),Zn}e.parseJsonText=Ji;function yi(G,ve,je,dt,ht,Ot){switch(i=Il.getNodeConstructor(),s=Il.getTokenConstructor(),o=Il.getIdentifierConstructor(),c=Il.getPrivateIdentifierConstructor(),u=Il.getSourceFileConstructor(),me=Hs(G),xe=ve,De=je,Pt=dt,ft=ht,ge=ew(ht),Fe=[],Vt=0,pt=new Map,zt=0,Je=0,be=0,tr=!0,ft){case 1:case 2:Lr=524288;break;case 6:Lr=134742016;break;default:Lr=0;break}jt=!1,t.setText(xe),t.setOnError(St),t.setScriptTarget(De),t.setLanguageVariant(ge),t.setScriptKind(ft),t.setJSDocParsingMode(Ot)}function os(){t.clearCommentDirectives(),t.setText(""),t.setOnError(void 0),t.setScriptKind(0),t.setJSDocParsingMode(0),xe=void 0,De=void 0,Pt=void 0,ft=void 0,ge=void 0,be=0,Fe=void 0,$e=void 0,Vt=0,pt=void 0,hr=void 0,tr=!0}function yr(G,ve,je,dt,ht){const Ot=Hl(me);Ot&&(Lr|=33554432),be=Lr,Ce();const Tn=Is(0,w_);E.assert(V()===1);const vi=le(),ui=ln(zo(),vi),Zn=Et(me,G,je,Ot,Tn,ui,be,dt);return nU(Zn,xe),iU(Zn,Ai),Zn.commentDirectives=t.getCommentDirectives(),Zn.nodeCount=Je,Zn.identifierCount=zt,Zn.identifiers=pt,Zn.parseDiagnostics=qT(Fe,Zn),Zn.jsDocParsingMode=ht,$e&&(Zn.jsDocDiagnostics=qT($e,Zn)),ve&&Ue(Zn),Zn;function Ai(Ba,eo,Da){Fe.push(PC(me,xe,Ba,eo,Da))}}let _i=!1;function ln(G,ve){if(!ve)return G;E.assert(!G.jsDoc);const je=Ri(Iz(G,xe),dt=>fm.parseJSDocComment(G,dt.pos,dt.end-dt.pos));return je.length&&(G.jsDoc=je),_i&&(_i=!1,G.flags|=536870912),G}function Ht(G){const ve=Pt,je=aU.createSyntaxCursor(G);Pt={currentNode:Ai};const dt=[],ht=Fe;Fe=[];let Ot=0,Tn=ui(G.statements,0);for(;Tn!==-1;){const Ba=G.statements[Ot],eo=G.statements[Tn];Nn(dt,G.statements,Ot,Tn),Ot=Zn(G.statements,Tn);const Da=vc(ht,pm=>pm.start>=Ba.pos),sp=Da>=0?vc(ht,pm=>pm.start>=eo.pos,Da):-1;Da>=0&&Nn(Fe,ht,Da,sp>=0?sp:void 0),Qi(()=>{const pm=Lr;for(Lr|=65536,t.resetTokenState(eo.pos),Ce();V()!==1;){const Bg=t.getTokenFullStart(),kh=Cc(0,w_);if(dt.push(kh),Bg===t.getTokenFullStart()&&Ce(),Ot>=0){const Ch=G.statements[Ot];if(kh.end===Ch.pos)break;kh.end>Ch.pos&&(Ot=Zn(G.statements,Ot+1))}}Lr=pm},2),Tn=Ot>=0?ui(G.statements,Ot):-1}if(Ot>=0){const Ba=G.statements[Ot];Nn(dt,G.statements,Ot);const eo=vc(ht,Da=>Da.start>=Ba.pos);eo>=0&&Nn(Fe,ht,eo)}return Pt=ve,d.updateSourceFile(G,Ke(y(dt),G.statements));function vi(Ba){return!(Ba.flags&65536)&&!!(Ba.transformFlags&67108864)}function ui(Ba,eo){for(let Da=eo;Da118}function is(){return V()===80?!0:V()===127&&mt()||V()===135&&ir()?!1:V()>118}function pr(G,ve,je=!0){return V()===G?(je&&Ce(),!0):(ve?Yt(ve):Yt(p._0_expected,Ws(G)),!1)}const uo=Object.keys(JD).filter(G=>G.length>2);function kc(G){if(o2(G)){W(ca(xe,G.template.pos),G.template.end,p.Module_declaration_names_may_only_use_or_quoted_strings);return}const ve=Ie(G)?on(G):void 0;if(!ve||!Sf(ve,De)){Yt(p._0_expected,Ws(27));return}const je=ca(xe,G.pos);switch(ve){case"const":case"let":case"var":W(je,G.end,p.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":_s(p.Interface_name_cannot_be_0,p.Interface_must_be_given_a_name,19);return;case"is":W(je,t.getTokenStart(),p.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":_s(p.Namespace_name_cannot_be_0,p.Namespace_must_be_given_a_name,19);return;case"type":_s(p.Type_alias_name_cannot_be_0,p.Type_alias_must_be_given_a_name,64);return}const dt=q4(ve,uo,ht=>ht)??Ra(ve);if(dt){W(je,G.end,p.Unknown_keyword_or_identifier_Did_you_mean_0,dt);return}V()!==0&&W(je,G.end,p.Unexpected_keyword_or_identifier)}function _s(G,ve,je){V()===je?Yt(ve):Yt(G,t.getTokenValue())}function Ra(G){for(const ve of uo)if(G.length>ve.length+2&&Vi(G,ve))return`${ve} ${G.slice(ve.length)}`}function mo(G,ve,je){if(V()===60&&!t.hasPrecedingLineBreak()){Yt(p.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(V()===21){Yt(p.Cannot_start_a_function_call_in_a_type_annotation),Ce();return}if(ve&&!Fc()){je?Yt(p._0_expected,Ws(27)):Yt(p.Expected_for_property_initializer);return}if(!rc()){if(je){Yt(p._0_expected,Ws(27));return}kc(G)}}function Uo(G){return V()===G?(_t(),!0):(E.assert(B5(G)),Yt(p._0_expected,Ws(G)),!1)}function Ol(G,ve,je,dt){if(V()===ve){Ce();return}const ht=Yt(p._0_expected,Ws(ve));je&&ht&&la(ht,PC(me,xe,dt,1,p.The_parser_expected_to_find_a_1_to_match_the_0_token_here,Ws(G),Ws(ve)))}function $i(G){return V()===G?(Ce(),!0):!1}function zs(G){if(V()===G)return zo()}function Ll(G){if(V()===G)return Kf()}function Qa(G,ve,je){return zs(G)||go(G,!1,ve||p._0_expected,je||Ws(G))}function oa(G){const ve=Ll(G);return ve||(E.assert(B5(G)),go(G,!1,p._0_expected,Ws(G)))}function zo(){const G=A(),ve=V();return Ce(),Wt(F(ve),G)}function Kf(){const G=A(),ve=V();return _t(),Wt(F(ve),G)}function Fc(){return V()===27?!0:V()===20||V()===1||t.hasPrecedingLineBreak()}function rc(){return Fc()?(V()===27&&Ce(),!0):!1}function Mo(){return rc()||pr(27)}function fs(G,ve,je,dt){const ht=y(G,dt);return Fm(ht,ve,je??t.getTokenFullStart()),ht}function Wt(G,ve,je){return Fm(G,ve,je??t.getTokenFullStart()),Lr&&(G.flags|=Lr),jt&&(jt=!1,G.flags|=262144),G}function go(G,ve,je,...dt){ve?Kt(t.getTokenFullStart(),0,je,...dt):je&&Yt(je,...dt);const ht=A(),Ot=G===80?w("",void 0):$0(G)?d.createTemplateLiteralLikeNode(G,"","",void 0):G===9?S("",void 0):G===11?T("",void 0):G===282?d.createMissingDeclaration():F(G);return Wt(Ot,ht)}function Pl(G){let ve=pt.get(G);return ve===void 0&&pt.set(G,ve=G),ve}function Ml(G,ve,je){if(G){zt++;const vi=A(),ui=V(),Zn=Pl(t.getTokenValue()),Ai=t.hasExtendedUnicodeEscape();return ce(),Wt(w(Zn,ui,Ai),vi)}if(V()===81)return Yt(je||p.Private_identifiers_are_not_allowed_outside_class_bodies),Ml(!0);if(V()===0&&t.tryScan(()=>t.reScanInvalidIdentifier()===80))return Ml(!0);zt++;const dt=V()===1,ht=t.isReservedWord(),Ot=t.getTokenText(),Tn=ht?p.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:p.Identifier_expected;return go(80,dt,ve||Tn,Ot)}function q_(G){return Ml(In(),void 0,G)}function io(G,ve){return Ml(is(),G,ve)}function Yc(G){return Ml(Au(V()),G)}function se(){return(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&Yt(p.Unicode_escape_sequence_cannot_appear_here),Ml(Au(V()))}function X(){return Au(V())||V()===11||V()===9}function Ee(){return Au(V())||V()===11}function lt(G){if(V()===11||V()===9){const ve=Ln();return ve.text=Pl(ve.text),ve}return V()===23?an():V()===81?rn():Yc()}function Xt(){return lt()}function an(){const G=A();pr(23);const ve=cr(Me);return pr(24),Wt(d.createComputedPropertyName(ve),G)}function rn(){const G=A(),ve=P(Pl(t.getTokenValue()));return Ce(),Wt(ve,G)}function En(G){return V()===G&&ci(gn)}function li(){return Ce(),t.hasPrecedingLineBreak()?!1:ho()}function gn(){switch(V()){case 87:return Ce()===94;case 95:return Ce(),V()===90?pi(Vc):V()===156?pi(Qo):Ps();case 90:return Vc();case 126:case 139:case 153:return Ce(),ho();default:return li()}}function Ps(){return V()===60||V()!==42&&V()!==130&&V()!==19&&ho()}function Qo(){return Ce(),Ps()}function ml(){return $h(V())&&ci(gn)}function ho(){return V()===23||V()===19||V()===42||V()===26||X()}function Vc(){return Ce(),V()===86||V()===100||V()===120||V()===60||V()===128&&pi(LS)||V()===134&&pi(MS)}function $a(G,ve){if(Uc(G))return!0;switch(G){case 0:case 1:case 3:return!(V()===27&&ve)&&J2();case 2:return V()===84||V()===90;case 4:return pi(Ta);case 5:return pi(Rg)||V()===27&&!ve;case 6:return V()===23||X();case 12:switch(V()){case 23:case 42:case 26:case 25:return!0;default:return X()}case 18:return X();case 9:return V()===23||V()===26||X();case 24:return Ee();case 7:return V()===19?pi(gl):ve?is()&&!Ju():ek()&&!Ju();case 8:return Na();case 10:return V()===28||V()===26||Na();case 19:return V()===103||V()===87||is();case 15:switch(V()){case 28:case 25:return!0}case 11:return V()===26||xd();case 16:return om(!1);case 17:return om(!0);case 20:case 21:return V()===28||Ng();case 22:return C();case 23:return V()===161&&pi(n4)?!1:Au(V());case 13:return Au(V())||V()===19;case 14:return!0;case 25:return!0;case 26:return E.fail("ParsingContext.Count used as a context");default:E.assertNever(G,"Non-exhaustive case in 'isListElement'.")}}function gl(){if(E.assert(V()===19),Ce()===20){const G=Ce();return G===28||G===19||G===96||G===119}return!0}function E_(){return Ce(),is()}function ol(){return Ce(),Au(V())}function Pp(){return Ce(),Tee(V())}function Ju(){return V()===119||V()===96?pi(Te):!1}function Te(){return Ce(),xd()}function kt(){return Ce(),Ng()}function Fr(G){if(V()===1)return!0;switch(G){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return V()===20;case 3:return V()===20||V()===84||V()===90;case 7:return V()===19||V()===96||V()===119;case 8:return Yi();case 19:return V()===32||V()===21||V()===19||V()===96||V()===119;case 11:return V()===22||V()===27;case 15:case 21:case 10:return V()===24;case 17:case 16:case 18:return V()===22||V()===24;case 20:return V()!==28;case 22:return V()===19||V()===20;case 13:return V()===32||V()===44;case 14:return V()===30&&pi(ni);default:return!1}}function Yi(){return!!(Fc()||hh(V())||V()===39)}function Ds(){E.assert(Vt,"Missing parsing context");for(let G=0;G<26;G++)if(Vt&1<=0)}function fh(G){return G===6?p.An_enum_member_name_must_be_followed_by_a_or:void 0}function H_(){const G=fs([],A());return G.isMissingList=!0,G}function Ag(G){return!!G.isMissingList}function f_(G,ve,je,dt){if(pr(je)){const ht=_u(G,ve);return pr(dt),ht}return H_()}function Q(G,ve){const je=A();let dt=G?Yc(ve):io(ve);for(;$i(25)&&V()!==30;)dt=Wt(d.createQualifiedName(dt,Ct(G,!1,!0)),je);return dt}function Ye(G,ve){return Wt(d.createQualifiedName(G,ve),G.pos)}function Ct(G,ve,je){if(t.hasPrecedingLineBreak()&&Au(V())&&pi(pf))return go(80,!0,p.Identifier_expected);if(V()===81){const dt=rn();return ve?dt:go(80,!0,p.Identifier_expected)}return G?je?Yc():se():io()}function At(G){const ve=A(),je=[];let dt;do dt=Vn(G),je.push(dt);while(dt.literal.kind===17);return fs(je,ve)}function O(G){const ve=A();return Wt(d.createTemplateExpression(ji(G),At(G)),ve)}function he(){const G=A();return Wt(d.createTemplateLiteralType(ji(!1),Xe()),G)}function Xe(){const G=A(),ve=[];let je;do je=Ft(),ve.push(je);while(je.literal.kind===17);return fs(ve,G)}function Ft(){const G=A();return Wt(d.createTemplateLiteralTypeSpan(qc(),zr(!1)),G)}function zr(G){return V()===20?(Er(G),fa()):Qa(18,p._0_expected,Ws(20))}function Vn(G){const ve=A();return Wt(d.createTemplateSpan(cr(Me),zr(G)),ve)}function Ln(){return lc(V())}function ji(G){!G&&t.getTokenFlags()&26656&&Er(!1);const ve=lc(V());return E.assert(ve.kind===16,"Template head has wrong token kind"),ve}function fa(){const G=lc(V());return E.assert(G.kind===17||G.kind===18,"Template fragment has wrong token kind"),G}function pa(G){const ve=G===15||G===18,je=t.getTokenText();return je.substring(1,je.length-(t.isUnterminated()?0:ve?1:2))}function lc(G){const ve=A(),je=$0(G)?d.createTemplateLiteralLikeNode(G,t.getTokenValue(),pa(G),t.getTokenFlags()&7176):G===9?S(t.getTokenValue(),t.getNumericLiteralFlags()):G===11?T(t.getTokenValue(),void 0,t.hasExtendedUnicodeEscape()):cE(G)?k(G,t.getTokenValue()):E.fail();return t.hasExtendedUnicodeEscape()&&(je.hasExtendedUnicodeEscape=!0),t.isUnterminated()&&(je.isUnterminated=!0),Ce(),Wt(je,ve)}function Rl(){return Q(!0,p.Type_expected)}function Zc(){if(!t.hasPrecedingLineBreak()&&Nr()===30)return f_(20,qc,30,32)}function G_(){const G=A();return Wt(d.createTypeReferenceNode(Rl(),Zc()),G)}function p_(G){switch(G.kind){case 183:return _c(G.typeName);case 184:case 185:{const{parameters:ve,type:je}=G;return Ag(ve)||p_(je)}case 196:return p_(G.type);default:return!1}}function Cy(G){return Ce(),Wt(d.createTypePredicateNode(void 0,G,qc()),G.pos)}function ja(){const G=A();return Ce(),Wt(d.createThisTypeNode(),G)}function Zp(){const G=A();return Ce(),Wt(d.createJSDocAllType(),G)}function Kp(){const G=A();return Ce(),Wt(d.createJSDocNonNullableType(Py(),!1),G)}function Ci(){const G=A();return Ce(),V()===28||V()===20||V()===22||V()===32||V()===64||V()===52?Wt(d.createJSDocUnknownType(),G):Wt(d.createJSDocNullableType(qc(),!1),G)}function ph(){const G=A(),ve=le();if(ci(ip)){const je=rr(36),dt=Nt(59,!1);return ln(Wt(d.createJSDocFunctionType(je,dt),G),ve)}return Wt(d.createTypeReferenceNode(Yc(),void 0),G)}function h0(){const G=A();let ve;return(V()===110||V()===105)&&(ve=Yc(),pr(59)),Wt(d.createParameterDeclaration(void 0,void 0,ve,void 0,ed(),void 0),G)}function ed(){t.setInJSDocType(!0);const G=A();if($i(144)){const dt=d.createJSDocNamepathType(void 0);e:for(;;)switch(V()){case 20:case 1:case 28:case 5:break e;default:_t()}return t.setInJSDocType(!1),Wt(dt,G)}const ve=$i(26);let je=Dy();return t.setInJSDocType(!1),ve&&(je=Wt(d.createJSDocVariadicType(je),G)),V()===64?(Ce(),Wt(d.createJSDocOptionalType(je),G)):je}function w2(){const G=A();pr(114);const ve=Q(!0),je=t.hasPrecedingLineBreak()?void 0:fv();return Wt(d.createTypeQueryNode(ve,je),G)}function A2(){const G=A(),ve=Qm(!1,!0),je=io();let dt,ht;$i(96)&&(Ng()||!xd()?dt=qc():ht=Ay());const Ot=$i(64)?qc():void 0,Tn=d.createTypeParameterDeclaration(ve,je,dt,Ot);return Tn.expression=ht,Wt(Tn,G)}function Ff(){if(V()===30)return f_(19,A2,30,32)}function om(G){return V()===26||Na()||$h(V())||V()===60||Ng(!G)}function Of(G){const ve=un(p.Private_identifiers_cannot_be_used_as_parameters);return o8(ve)===0&&!ct(G)&&$h(V())&&Ce(),ve}function dh(){return In()||V()===23||V()===19}function Ae(G){return bt(G)}function We(G){return bt(G,!1)}function bt(G,ve=!0){const je=A(),dt=le(),ht=G?ne(()=>Qm(!0)):we(()=>Qm(!0));if(V()===110){const ui=d.createParameterDeclaration(ht,void 0,Ml(!0),void 0,v0(),void 0),Zn=bl(ht);return Zn&&Pe(Zn,p.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),ln(Wt(ui,je),dt)}const Ot=tr;tr=!1;const Tn=zs(26);if(!ve&&!dh())return;const vi=ln(Wt(d.createParameterDeclaration(ht,Tn,Of(ht),zs(58),v0(),kd()),je),dt);return tr=Ot,vi}function Nt(G,ve){if(sr(G,ve))return Le(Dy)}function sr(G,ve){return G===39?(pr(G),!0):$i(59)?!0:ve&&V()===39?(Yt(p._0_expected,Ws(59)),Ce(),!0):!1}function Mr(G,ve){const je=mt(),dt=ir();ei(!!(G&1)),ns(!!(G&2));const ht=G&32?_u(17,h0):_u(16,()=>ve?Ae(dt):We(dt));return ei(je),ns(dt),ht}function rr(G){if(!pr(21))return H_();const ve=Mr(G,!0);return pr(22),ve}function Rr(){$i(28)||Mo()}function Yn(G){const ve=A(),je=le();G===180&&pr(105);const dt=Ff(),ht=rr(4),Ot=Nt(59,!0);Rr();const Tn=G===179?d.createCallSignature(dt,ht,Ot):d.createConstructSignature(dt,ht,Ot);return ln(Wt(Tn,ve),je)}function Gr(){return V()===23&&pi(zn)}function zn(){if(Ce(),V()===26||V()===24)return!0;if($h(V())){if(Ce(),is())return!0}else if(is())Ce();else return!1;return V()===59||V()===28?!0:V()!==58?!1:(Ce(),V()===59||V()===28||V()===24)}function Yr(G,ve,je){const dt=f_(16,()=>Ae(!1),23,24),ht=v0();Rr();const Ot=d.createIndexSignature(je,dt,ht);return ln(Wt(Ot,G),ve)}function ws(G,ve,je){const dt=Xt(),ht=zs(58);let Ot;if(V()===21||V()===30){const Tn=Ff(),vi=rr(4),ui=Nt(59,!0);Ot=d.createMethodSignature(je,dt,ht,Tn,vi,ui)}else{const Tn=v0();Ot=d.createPropertySignature(je,dt,ht,Tn),V()===64&&(Ot.initializer=kd())}return Rr(),ln(Wt(Ot,G),ve)}function Ta(){if(V()===21||V()===30||V()===139||V()===153)return!0;let G=!1;for(;$h(V());)G=!0,Ce();return V()===23?!0:(X()&&(G=!0,Ce()),G?V()===21||V()===30||V()===58||V()===59||V()===28||Fc():!1)}function ku(){if(V()===21||V()===30)return Yn(179);if(V()===105&&pi(jl))return Yn(180);const G=A(),ve=le(),je=Qm(!1);return En(139)?Th(G,ve,je,177,4):En(153)?Th(G,ve,je,178,4):Gr()?Yr(G,ve,je):ws(G,ve,je)}function jl(){return Ce(),V()===21||V()===30}function mh(){return Ce()===25}function Z1(){switch(Ce()){case 21:case 30:case 25:return!0}return!1}function qx(){const G=A();return Wt(d.createTypeLiteralNode(K1()),G)}function K1(){let G;return pr(19)?(G=Is(4,ku),pr(20)):G=H_(),G}function V6(){return Ce(),V()===40||V()===41?Ce()===148:(V()===148&&Ce(),V()===23&&E_()&&Ce()===103)}function U6(){const G=A(),ve=Yc();pr(103);const je=qc();return Wt(d.createTypeParameterDeclaration(void 0,ve,je,void 0),G)}function q6(){const G=A();pr(19);let ve;(V()===148||V()===40||V()===41)&&(ve=zo(),ve.kind!==148&&pr(148)),pr(23);const je=U6(),dt=$i(130)?qc():void 0;pr(24);let ht;(V()===58||V()===40||V()===41)&&(ht=zo(),ht.kind!==58&&pr(58));const Ot=v0();Mo();const Tn=Is(4,ku);return pr(20),Wt(d.createMappedTypeNode(ve,je,dt,ht,Ot,Tn),G)}function yS(){const G=A();if($i(26))return Wt(d.createRestTypeNode(qc()),G);const ve=qc();if(WC(ve)&&ve.pos===ve.type.pos){const je=d.createOptionalTypeNode(ve.type);return Ke(je,ve),je.flags=ve.flags,je}return ve}function N2(){return Ce()===59||V()===58&&Ce()===59}function Hx(){return V()===26?Au(Ce())&&N2():Au(V())&&N2()}function H6(){if(pi(Hx)){const G=A(),ve=le(),je=zs(26),dt=Yc(),ht=zs(58);pr(59);const Ot=yS(),Tn=d.createNamedTupleMember(je,dt,ht,Ot);return ln(Wt(Tn,G),ve)}return yS()}function Gx(){const G=A();return Wt(d.createTupleTypeNode(f_(21,H6,23,24)),G)}function $x(){const G=A();pr(21);const ve=qc();return pr(22),Wt(d.createParenthesizedType(ve),G)}function Xx(){let G;if(V()===128){const ve=A();Ce();const je=Wt(F(128),ve);G=fs([je],ve)}return G}function Qx(){const G=A(),ve=le(),je=Xx(),dt=$i(105);E.assert(!je||dt,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");const ht=Ff(),Ot=rr(4),Tn=Nt(39,!1),vi=dt?d.createConstructorTypeNode(je,ht,Ot,Tn):d.createFunctionTypeNode(ht,Ot,Tn);return ln(Wt(vi,G),ve)}function vS(){const G=zo();return V()===25?void 0:G}function Yx(G){const ve=A();G&&Ce();let je=V()===112||V()===97||V()===106?zo():lc(V());return G&&(je=Wt(d.createPrefixUnaryExpression(41,je),ve)),Wt(d.createLiteralTypeNode(je),ve)}function I2(){return Ce(),V()===102}function F2(){be|=4194304;const G=A(),ve=$i(114);pr(102),pr(21);const je=qc();let dt;if($i(28)){const Tn=t.getTokenStart();pr(19);const vi=V();if(vi===118||vi===132?Ce():Yt(p._0_expected,Ws(118)),pr(59),dt=Jy(vi,!0),!pr(20)){const ui=Po(Fe);ui&&ui.code===p._0_expected.code&&la(ui,PC(me,xe,Tn,1,p.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}pr(22);const ht=$i(25)?Rl():void 0,Ot=Zc();return Wt(d.createImportTypeNode(je,dt,ht,Ot,ve),G)}function Ey(){return Ce(),V()===9||V()===10}function Py(){switch(V()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return ci(vS)||G_();case 67:t.reScanAsteriskEqualsToken();case 42:return Zp();case 61:t.reScanQuestionToken();case 58:return Ci();case 100:return ph();case 54:return Kp();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return Yx();case 41:return pi(Ey)?Yx(!0):G_();case 116:return zo();case 110:{const G=ja();return V()===142&&!t.hasPrecedingLineBreak()?Cy(G):G}case 114:return pi(I2)?F2():w2();case 19:return pi(V6)?q6():qx();case 23:return Gx();case 21:return $x();case 102:return F2();case 131:return pi(pf)?Kx():G_();case 16:return he();default:return G_()}}function Ng(G){switch(V()){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!G;case 41:return!G&&pi(Ey);case 21:return!G&&pi(ev);default:return is()}}function ev(){return Ce(),V()===22||om(!1)||Ng()}function wa(){const G=A();let ve=Py();for(;!t.hasPrecedingLineBreak();)switch(V()){case 54:Ce(),ve=Wt(d.createJSDocNonNullableType(ve,!0),G);break;case 58:if(pi(kt))return ve;Ce(),ve=Wt(d.createJSDocNullableType(ve,!0),G);break;case 23:if(pr(23),Ng()){const je=qc();pr(24),ve=Wt(d.createIndexedAccessTypeNode(ve,je),G)}else pr(24),ve=Wt(d.createArrayTypeNode(ve),G);break;default:return ve}return ve}function bS(G){const ve=A();return pr(G),Wt(d.createTypeOperatorNode(G,Hm()),ve)}function G6(){if($i(96)){const G=rt(qc);if(nt()||V()!==58)return G}}function tv(){const G=A(),ve=io(),je=ci(G6),dt=d.createTypeParameterDeclaration(void 0,ve,je);return Wt(dt,G)}function gh(){const G=A();return pr(140),Wt(d.createInferTypeNode(tv()),G)}function Hm(){const G=V();switch(G){case 143:case 158:case 148:return bS(G);case 140:return gh()}return Le(wa)}function tp(G){if(SS()){const ve=Qx();let je;return Mm(ve)?je=G?p.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:p.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:je=G?p.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:p.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,Pe(ve,je),ve}}function d_(G,ve,je){const dt=A(),ht=G===52,Ot=$i(G);let Tn=Ot&&tp(ht)||ve();if(V()===G||Ot){const vi=[Tn];for(;$i(G);)vi.push(tp(ht)||ve());Tn=Wt(je(fs(vi,dt)),dt)}return Tn}function $_(){return d_(51,Hm,d.createIntersectionTypeNode)}function P_(){return d_(52,$_,d.createUnionTypeNode)}function y0(){return Ce(),V()===105}function SS(){return V()===30||V()===21&&pi(Zx)?!0:V()===105||V()===128&&pi(y0)}function $6(){if($h(V())&&Qm(!1),is()||V()===110)return Ce(),!0;if(V()===23||V()===19){const G=Fe.length;return un(),G===Fe.length}return!1}function Zx(){return Ce(),!!(V()===22||V()===26||$6()&&(V()===59||V()===28||V()===58||V()===64||V()===22&&(Ce(),V()===39)))}function Dy(){const G=A(),ve=is()&&ci(rv),je=qc();return ve?Wt(d.createTypePredicateNode(void 0,ve,je),G):je}function rv(){const G=io();if(V()===142&&!t.hasPrecedingLineBreak())return Ce(),G}function Kx(){const G=A(),ve=Qa(131),je=V()===110?ja():io(),dt=$i(142)?qc():void 0;return Wt(d.createTypePredicateNode(ve,je,dt),G)}function qc(){if(Lr&81920)return Vs(81920,qc);if(SS())return Qx();const G=A(),ve=P_();if(!nt()&&!t.hasPrecedingLineBreak()&&$i(96)){const je=rt(qc);pr(58);const dt=Le(qc);pr(59);const ht=Le(qc);return Wt(d.createConditionalTypeNode(ve,je,dt,ht),G)}return ve}function v0(){return $i(59)?qc():void 0}function ek(){switch(V()){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(Z1);default:return is()}}function xd(){if(ek())return!0;switch(V()){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 Ed()?!0:is()}}function TS(){return V()!==19&&V()!==100&&V()!==86&&V()!==60&&xd()}function Me(){const G=Dt();G&&Ii(!1);const ve=A();let je=Bl(!0),dt;for(;dt=zs(28);)je=O2(je,dt,Bl(!0),ve);return G&&Ii(!0),je}function kd(){return $i(64)?Bl(!0):void 0}function Bl(G){if(nv())return wy();const ve=S0(G)||xS(G);if(ve)return ve;const je=A(),dt=le(),ht=wp(0);return ht.kind===80&&V()===39?b0(je,ht,G,dt,void 0):S_(ht)&&Kh(Jt())?O2(ht,zo(),Bl(G),je):Dp(ht,je,G)}function nv(){return V()===127?mt()?!0:pi(yo):!1}function tk(){return Ce(),!t.hasPrecedingLineBreak()&&is()}function wy(){const G=A();return Ce(),!t.hasPrecedingLineBreak()&&(V()===42||xd())?Wt(d.createYieldExpression(zs(42),Bl(!0)),G):Wt(d.createYieldExpression(void 0,void 0),G)}function b0(G,ve,je,dt,ht){E.assert(V()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");const Ot=d.createParameterDeclaration(void 0,void 0,ve,void 0,void 0,void 0);Wt(Ot,ve.pos);const Tn=fs([Ot],Ot.pos,Ot.end),vi=Qa(39),ui=CS(!!ht,je),Zn=d.createArrowFunction(ht,void 0,Tn,void 0,vi,ui);return ln(Wt(Zn,G),dt)}function S0(G){const ve=CP();if(ve!==0)return ve===1?iv(!0,!0):ci(()=>Cd(G))}function CP(){return V()===21||V()===30||V()===134?pi(xa):V()===39?1:0}function xa(){if(V()===134&&(Ce(),t.hasPrecedingLineBreak()||V()!==21&&V()!==30))return 0;const G=V(),ve=Ce();if(G===21){if(ve===22)switch(Ce()){case 39:case 59:case 19:return 1;default:return 0}if(ve===23||ve===19)return 2;if(ve===26)return 1;if($h(ve)&&ve!==134&&pi(E_))return Ce()===130?0:1;if(!is()&&ve!==110)return 0;switch(Ce()){case 59:return 1;case 58:return Ce(),V()===59||V()===28||V()===64||V()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return E.assert(G===30),!is()&&V()!==87?0:ge===1?pi(()=>{$i(87);const dt=Ce();if(dt===96)switch(Ce()){case 64:case 32:case 44:return!1;default:return!0}else if(dt===28||dt===64)return!0;return!1})?1:0:2}function Cd(G){const ve=t.getTokenStart();if(hr!=null&&hr.has(ve))return;const je=iv(!1,G);return je||(hr||(hr=new Set)).add(ve),je}function xS(G){if(V()===134&&pi(kS)===1){const ve=A(),je=le(),dt=jf(),ht=wp(0);return b0(ve,ht,G,je,dt)}}function kS(){if(V()===134){if(Ce(),t.hasPrecedingLineBreak()||V()===39)return 0;const G=wp(0);if(!t.hasPrecedingLineBreak()&&G.kind===80&&V()===39)return 1}return 0}function iv(G,ve){const je=A(),dt=le(),ht=jf(),Ot=ct(ht,l3)?2:0,Tn=Ff();let vi;if(pr(21)){if(G)vi=Mr(Ot,G);else{const Bg=Mr(Ot,G);if(!Bg)return;vi=Bg}if(!pr(22)&&!G)return}else{if(!G)return;vi=H_()}const ui=V()===59,Zn=Nt(59,!1);if(Zn&&!G&&p_(Zn))return;let Ai=Zn;for(;(Ai==null?void 0:Ai.kind)===196;)Ai=Ai.type;const Ba=Ai&&VC(Ai);if(!G&&V()!==39&&(Ba||V()!==19))return;const eo=V(),Da=Qa(39),sp=eo===39||eo===19?CS(ct(ht,l3),ve):io();if(!ve&&ui&&V()!==59)return;const pm=d.createArrowFunction(ht,Tn,vi,Zn,Da,sp);return ln(Wt(pm,je),dt)}function CS(G,ve){if(V()===19)return Oy(G?2:0);if(V()!==27&&V()!==100&&V()!==86&&J2()&&!TS())return Oy(16|(G?2:0));const je=tr;tr=!1;const dt=G?ne(()=>Bl(ve)):we(()=>Bl(ve));return tr=je,dt}function Dp(G,ve,je){const dt=zs(58);if(!dt)return G;let ht;return Wt(d.createConditionalExpression(G,dt,Vs(n,()=>Bl(!1)),ht=Qa(59),dp(ht)?Bl(je):go(80,!1,p._0_expected,Ws(59))),ve)}function wp(G){const ve=A(),je=Ay();return rk(G,je,ve)}function hh(G){return G===103||G===165}function rk(G,ve,je){for(;;){Jt();const dt=q8(V());if(!(V()===43?dt>=G:dt>G)||V()===103&&Be())break;if(V()===130||V()===152){if(t.hasPrecedingLineBreak())break;{const Ot=V();Ce(),ve=Ot===152?X6(ve,qc()):wi(ve,qc())}}else ve=O2(ve,zo(),wp(dt),je)}return ve}function Ed(){return Be()&&V()===103?!1:q8(V())>0}function X6(G,ve){return Wt(d.createSatisfiesExpression(G,ve),G.pos)}function O2(G,ve,je,dt){return Wt(d.createBinaryExpression(G,ve,je),dt)}function wi(G,ve){return Wt(d.createAsExpression(G,ve),G.pos)}function jn(){const G=A();return Wt(d.createPrefixUnaryExpression(V(),Ne(Ho)),G)}function Gm(){const G=A();return Wt(d.createDeleteExpression(Ne(Ho)),G)}function m_(){const G=A();return Wt(d.createTypeOfExpression(Ne(Ho)),G)}function EP(){const G=A();return Wt(d.createVoidExpression(Ne(Ho)),G)}function yh(){return V()===135?ir()?!0:pi(yo):!1}function PP(){const G=A();return Wt(d.createAwaitExpression(Ne(Ho)),G)}function Ay(){if(_f()){const je=A(),dt=Ig();return V()===43?rk(q8(V()),dt,je):dt}const G=V(),ve=Ho();if(V()===43){const je=ca(xe,ve.pos),{end:dt}=ve;ve.kind===216?W(je,dt,p.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(E.assert(B5(G)),W(je,dt,p.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,Ws(G)))}return ve}function Ho(){switch(V()){case 40:case 41:case 55:case 54:return jn();case 91:return Gm();case 114:return m_();case 116:return EP();case 30:return ge===1?vh(!0,void 0,void 0,!0):rd();case 135:if(yh())return PP();default:return Ig()}}function _f(){switch(V()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(ge!==1)return!1;default:return!0}}function Ig(){if(V()===46||V()===47){const ve=A();return Wt(d.createPrefixUnaryExpression(V(),Ne(Ap)),ve)}else if(ge===1&&V()===30&&pi(Pp))return vh(!0);const G=Ap();if(E.assert(S_(G)),(V()===46||V()===47)&&!t.hasPrecedingLineBreak()){const ve=V();return Ce(),Wt(d.createPostfixUnaryExpression(G,ve),G.pos)}return G}function Ap(){const G=A();let ve;return V()===102?pi(jl)?(be|=4194304,ve=zo()):pi(mh)?(Ce(),Ce(),ve=Wt(d.createMetaProperty(102,Yc()),G),be|=8388608):ve=Ny():ve=V()===108?td():Ny(),x0(G,ve)}function Ny(){const G=A(),ve=sv();return Dl(G,ve,!0)}function td(){const G=A();let ve=zo();if(V()===30){const je=A(),dt=ci($r);dt!==void 0&&(W(je,A(),p.super_may_not_use_type_arguments),Oi()||(ve=d.createExpressionWithTypeArguments(ve,dt)))}return V()===21||V()===25||V()===23?ve:(Qa(25,p.super_must_be_followed_by_an_argument_list_or_member_access),Wt($(ve,Ct(!0,!0,!0)),G))}function vh(G,ve,je,dt=!1){const ht=A(),Ot=Og(G);let Tn;if(Ot.kind===286){let vi=Fg(Ot),ui;const Zn=vi[vi.length-1];if((Zn==null?void 0:Zn.kind)===284&&!B1(Zn.openingElement.tagName,Zn.closingElement.tagName)&&B1(Ot.tagName,Zn.closingElement.tagName)){const Ai=Zn.children.end,Ba=Wt(d.createJsxElement(Zn.openingElement,Zn.children,Wt(d.createJsxClosingElement(Wt(w(""),Ai,Ai)),Ai,Ai)),Zn.openingElement.pos,Ai);vi=fs([...vi.slice(0,vi.length-1),Ba],vi.pos,Ai),ui=Zn.closingElement}else ui=M2(Ot,G),B1(Ot.tagName,ui.tagName)||(je&&Kd(je)&&B1(ui.tagName,je.tagName)?Pe(Ot.tagName,p.JSX_element_0_has_no_corresponding_closing_tag,dE(xe,Ot.tagName)):Pe(ui.tagName,p.Expected_corresponding_JSX_closing_tag_for_0,dE(xe,Ot.tagName)));Tn=Wt(d.createJsxElement(Ot,vi,ui),ht)}else Ot.kind===289?Tn=Wt(d.createJsxFragment(Ot,Fg(Ot),DS(G)),ht):(E.assert(Ot.kind===285),Tn=Ot);if(!dt&&G&&V()===30){const vi=typeof ve>"u"?Tn.pos:ve,ui=ci(()=>vh(!0,vi));if(ui){const Zn=go(28,!1);return QE(Zn,ui.pos,0),W(ca(xe,vi),ui.end,p.JSX_expressions_must_have_one_parent_element),Wt(d.createBinaryExpression(Tn,Zn,ui),ht)}}return Tn}function L2(){const G=A(),ve=d.createJsxText(t.getTokenValue(),at===13);return at=t.scanJsxToken(),Wt(ve,G)}function ES(G,ve){switch(ve){case 1:if(dx(G))Pe(G,p.JSX_fragment_has_no_corresponding_closing_tag);else{const je=G.tagName,dt=Math.min(ca(xe,je.pos),je.end);W(dt,je.end,p.JSX_element_0_has_no_corresponding_closing_tag,dE(xe,G.tagName))}return;case 31:case 7:return;case 12:case 13:return L2();case 19:return Q6(!1);case 30:return vh(!1,void 0,G);default:return E.assertNever(ve)}}function Fg(G){const ve=[],je=A(),dt=Vt;for(Vt|=16384;;){const ht=ES(G,at=t.reScanJsxToken());if(!ht||(ve.push(ht),Kd(G)&&(ht==null?void 0:ht.kind)===284&&!B1(ht.openingElement.tagName,ht.closingElement.tagName)&&B1(G.tagName,ht.closingElement.tagName)))break}return Vt=dt,fs(ve,je)}function nk(){const G=A();return Wt(d.createJsxAttributes(Is(13,Y6)),G)}function Og(G){const ve=A();if(pr(30),V()===32)return Wr(),Wt(d.createJsxOpeningFragment(),ve);const je=cm(),dt=Lr&524288?void 0:fv(),ht=nk();let Ot;return V()===32?(Wr(),Ot=d.createJsxOpeningElement(je,dt,ht)):(pr(44),pr(32,void 0,!1)&&(G?Ce():Wr()),Ot=d.createJsxSelfClosingElement(je,dt,ht)),Wt(Ot,ve)}function cm(){const G=A(),ve=T0();if(yd(ve))return ve;let je=ve;for(;$i(25);)je=Wt($(je,Ct(!0,!1,!1)),G);return je}function T0(){const G=A();oi();const ve=V()===110,je=se();return $i(59)?(oi(),Wt(d.createJsxNamespacedName(je,se()),G)):ve?Wt(d.createToken(110),G):je}function Q6(G){const ve=A();if(!pr(19))return;let je,dt;return V()!==20&&(G||(je=zs(26)),dt=Me()),G?pr(20):pr(20,void 0,!1)&&Wr(),Wt(d.createJsxExpression(je,dt),ve)}function Y6(){if(V()===19)return Co();const G=A();return Wt(d.createJsxAttribute(PS(),Z6()),G)}function Z6(){if(V()===64){if(Cn()===11)return Ln();if(V()===19)return Q6(!0);if(V()===30)return vh(!0);Yt(p.or_JSX_element_expected)}}function PS(){const G=A();oi();const ve=se();return $i(59)?(oi(),Wt(d.createJsxNamespacedName(ve,se()),G)):ve}function Co(){const G=A();pr(19),pr(26);const ve=Me();return pr(20),Wt(d.createJsxSpreadAttribute(ve),G)}function M2(G,ve){const je=A();pr(31);const dt=cm();return pr(32,void 0,!1)&&(ve||!B1(G.tagName,dt)?Ce():Wr()),Wt(d.createJsxClosingElement(dt),je)}function DS(G){const ve=A();return pr(31),pr(32,p.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(G?Ce():Wr()),Wt(d.createJsxJsxClosingFragment(),ve)}function rd(){E.assert(ge!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");const G=A();pr(30);const ve=qc();pr(32);const je=Ho();return Wt(d.createTypeAssertion(ve,je),G)}function Iy(){return Ce(),Au(V())||V()===23||Oi()}function K6(){return V()===29&&pi(Iy)}function wS(G){if(G.flags&64)return!0;if(_x(G)){let ve=G.expression;for(;_x(ve)&&!(ve.flags&64);)ve=ve.expression;if(ve.flags&64){for(;_x(G);)G.flags|=64,G=G.expression;return!0}}return!1}function DP(G,ve,je){const dt=Ct(!0,!0,!0),ht=je||wS(ve),Ot=ht?j(ve,je,dt):$(ve,dt);if(ht&&Pi(Ot.name)&&Pe(Ot.name,p.An_optional_chain_cannot_contain_private_identifiers),s0(ve)&&ve.typeArguments){const Tn=ve.typeArguments.pos-1,vi=ca(xe,ve.typeArguments.end)+1;W(Tn,vi,p.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return Wt(Ot,G)}function en(G,ve,je){let dt;if(V()===24)dt=go(80,!0,p.An_element_access_expression_should_take_an_argument);else{const Ot=cr(Me);Tf(Ot)&&(Ot.text=Pl(Ot.text)),dt=Ot}pr(24);const ht=je||wS(ve)?R(ve,je,dt):re(ve,dt);return Wt(ht,G)}function Dl(G,ve,je){for(;;){let dt,ht=!1;if(je&&K6()?(dt=Qa(29),ht=Au(V())):ht=$i(25),ht){ve=DP(G,ve,dt);continue}if((dt||!Dt())&&$i(23)){ve=en(G,ve,dt);continue}if(Oi()){ve=!dt&&ve.kind===233?Lf(G,ve.expression,dt,ve.typeArguments):Lf(G,ve,dt,void 0);continue}if(!dt){if(V()===54&&!t.hasPrecedingLineBreak()){Ce(),ve=Wt(d.createNonNullExpression(ve),G);continue}const Ot=ci($r);if(Ot){ve=Wt(d.createExpressionWithTypeArguments(ve,Ot),G);continue}}return ve}}function Oi(){return V()===15||V()===16}function Lf(G,ve,je,dt){const ht=d.createTaggedTemplateExpression(ve,dt,V()===15?(Er(!0),Ln()):O(!0));return(je||ve.flags&64)&&(ht.flags|=64),ht.questionDotToken=je,Wt(ht,G)}function x0(G,ve){for(;;){ve=Dl(G,ve,!0);let je;const dt=zs(29);if(dt&&(je=ci($r),Oi())){ve=Lf(G,ve,dt,je);continue}if(je||V()===21){!dt&&ve.kind===233&&(je=ve.typeArguments,ve=ve.expression);const ht=lm(),Ot=dt||wS(ve)?ue(ve,dt,je,ht):Y(ve,je,ht);ve=Wt(Ot,G);continue}if(dt){const ht=go(80,!1,p.Identifier_expected);ve=Wt(j(ve,dt,ht),G)}break}return ve}function lm(){pr(21);const G=_u(11,R2);return pr(22),G}function $r(){if(Lr&524288||Nr()!==30)return;Ce();const G=_u(20,qc);if(Jt()===32)return Ce(),G&&AS()?G:void 0}function AS(){switch(V()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return t.hasPrecedingLineBreak()||Ed()||!xd()}function sv(){switch(V()){case 15:t.getTokenFlags()&26656&&Er(!1);case 9:case 10:case 11:return Ln();case 110:case 108:case 106:case 112:case 97:return zo();case 21:return yl();case 23:return j2();case 19:return bh();case 134:if(!pi(MS))break;return NS();case 60:return _v();case 86:return uk();case 100:return NS();case 105:return av();case 44:case 69:if(ar()===14)return Ln();break;case 16:return O(!1);case 81:return rn()}return io(p.Expression_expected)}function yl(){const G=A(),ve=le();pr(21);const je=cr(Me);return pr(22),ln(Wt(H(je),G),ve)}function $m(){const G=A();pr(26);const ve=Bl(!0);return Wt(d.createSpreadElement(ve),G)}function nd(){return V()===26?$m():V()===28?Wt(d.createOmittedExpression(),A()):Bl(!0)}function R2(){return Vs(n,nd)}function j2(){const G=A(),ve=t.getTokenStart(),je=pr(23),dt=t.hasPrecedingLineBreak(),ht=_u(15,nd);return Ol(23,24,je,ve),Wt(J(ht,dt),G)}function Fy(){const G=A(),ve=le();if(zs(26)){const Ai=Bl(!0);return ln(Wt(d.createSpreadAssignment(Ai),G),ve)}const je=Qm(!0);if(En(139))return Th(G,ve,je,177,0);if(En(153))return Th(G,ve,je,178,0);const dt=zs(42),ht=is(),Ot=Xt(),Tn=zs(58),vi=zs(54);if(dt||V()===21||V()===30)return Pd(G,ve,je,dt,Ot,Tn,vi);let ui;if(ht&&V()!==59){const Ai=zs(64),Ba=Ai?cr(()=>Bl(!0)):void 0;ui=d.createShorthandPropertyAssignment(Ot,Ba),ui.equalsToken=Ai}else{pr(59);const Ai=cr(()=>Bl(!0));ui=d.createPropertyAssignment(Ot,Ai)}return ui.modifiers=je,ui.questionToken=Tn,ui.exclamationToken=vi,ln(Wt(ui,G),ve)}function bh(){const G=A(),ve=t.getTokenStart(),je=pr(19),dt=t.hasPrecedingLineBreak(),ht=_u(12,Fy,!0);return Ol(19,20,je,ve),Wt(U(ht,dt),G)}function NS(){const G=Dt();Ii(!1);const ve=A(),je=le(),dt=Qm(!1);pr(100);const ht=zs(42),Ot=ht?1:0,Tn=ct(dt,l3)?2:0,vi=Ot&&Tn?et(id):Ot?tt(id):Tn?ne(id):id(),ui=Ff(),Zn=rr(Ot|Tn),Ai=Nt(59,!1),Ba=Oy(Ot|Tn);Ii(G);const eo=d.createFunctionExpression(dt,ht,vi,ui,Zn,Ai,Ba);return ln(Wt(eo,ve),je)}function id(){return In()?q_():void 0}function av(){const G=A();if(pr(105),$i(25)){const Ot=Yc();return Wt(d.createMetaProperty(105,Ot),G)}const ve=A();let je=Dl(ve,sv(),!1),dt;je.kind===233&&(dt=je.typeArguments,je=je.expression),V()===29&&Yt(p.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,dE(xe,je));const ht=V()===21?lm():void 0;return Wt(pe(je,dt,ht),G)}function Lg(G,ve){const je=A(),dt=le(),ht=t.getTokenStart(),Ot=pr(19,ve);if(Ot||G){const Tn=t.hasPrecedingLineBreak(),vi=Is(1,w_);Ol(19,20,Ot,ht);const ui=ln(Wt(q(vi,Tn),je),dt);return V()===64&&(Yt(p.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),Ce()),ui}else{const Tn=H_();return ln(Wt(q(Tn,void 0),je),dt)}}function Oy(G,ve){const je=mt();ei(!!(G&1));const dt=ir();ns(!!(G&2));const ht=tr;tr=!1;const Ot=Dt();Ot&&Ii(!1);const Tn=Lg(!!(G&16),ve);return Ot&&Ii(!0),tr=ht,ei(je),ns(dt),Tn}function ik(){const G=A(),ve=le();return pr(27),ln(Wt(d.createEmptyStatement(),G),ve)}function ov(){const G=A(),ve=le();pr(101);const je=t.getTokenStart(),dt=pr(21),ht=cr(Me);Ol(21,22,dt,je);const Ot=w_(),Tn=$i(93)?w_():void 0;return ln(Wt(Se(ht,Ot,Tn),G),ve)}function e4(){const G=A(),ve=le();pr(92);const je=w_();pr(117);const dt=t.getTokenStart(),ht=pr(21),Ot=cr(Me);return Ol(21,22,ht,dt),$i(27),ln(Wt(d.createDoStatement(je,Ot),G),ve)}function B2(){const G=A(),ve=le();pr(117);const je=t.getTokenStart(),dt=pr(21),ht=cr(Me);Ol(21,22,dt,je);const Ot=w_();return ln(Wt(ae(ht,Ot),G),ve)}function IS(){const G=A(),ve=le();pr(99);const je=zs(135);pr(21);let dt;V()!==27&&(V()===115||V()===121||V()===87||V()===160&&pi(Sh)||V()===135&&pi(X_)?dt=z2(!0):dt=br(Me));let ht;if(je?pr(165):$i(165)){const Ot=cr(()=>Bl(!0));pr(22),ht=fe(je,dt,Ot,w_())}else if($i(103)){const Ot=cr(Me);pr(22),ht=d.createForInStatement(dt,Ot,w_())}else{pr(27);const Ot=V()!==27&&V()!==22?cr(Me):void 0;pr(27);const Tn=V()!==22?cr(Me):void 0;pr(22),ht=K(dt,Ot,Tn,w_())}return ln(Wt(ht,G),ve)}function ff(G){const ve=A(),je=le();pr(G===252?83:88);const dt=Fc()?void 0:io();Mo();const ht=G===252?d.createBreakStatement(dt):d.createContinueStatement(dt);return ln(Wt(ht,ve),je)}function FS(){const G=A(),ve=le();pr(107);const je=Fc()?void 0:cr(Me);return Mo(),ln(Wt(d.createReturnStatement(je),G),ve)}function mc(){const G=A(),ve=le();pr(118);const je=t.getTokenStart(),dt=pr(21),ht=cr(Me);Ol(21,22,dt,je);const Ot=_a(67108864,w_);return ln(Wt(d.createWithStatement(ht,Ot),G),ve)}function cl(){const G=A(),ve=le();pr(84);const je=cr(Me);pr(59);const dt=Is(3,w_);return ln(Wt(d.createCaseClause(je,dt),G),ve)}function OS(){const G=A();pr(90),pr(59);const ve=Is(3,w_);return Wt(d.createDefaultClause(ve),G)}function $l(){return V()===84?cl():OS()}function D_(){const G=A();pr(19);const ve=Is(2,$l);return pr(20),Wt(d.createCaseBlock(ve),G)}function cv(){const G=A(),ve=le();pr(109),pr(21);const je=cr(Me);pr(22);const dt=D_();return ln(Wt(d.createSwitchStatement(je,dt),G),ve)}function rp(){const G=A(),ve=le();pr(111);let je=t.hasPrecedingLineBreak()?void 0:cr(Me);return je===void 0&&(zt++,je=Wt(w(""),A())),rc()||kc(je),ln(Wt(d.createThrowStatement(je),G),ve)}function Ly(){const G=A(),ve=le();pr(113);const je=Lg(!1),dt=V()===85?My():void 0;let ht;return(!dt||V()===98)&&(pr(98,p.catch_or_finally_expected),ht=Lg(!1)),ln(Wt(d.createTryStatement(je,dt,ht),G),ve)}function My(){const G=A();pr(85);let ve;$i(21)?(ve=e_(),pr(22)):ve=void 0;const je=Lg(!1);return Wt(d.createCatchClause(ve,je),G)}function wl(){const G=A(),ve=le();return pr(89),Mo(),ln(Wt(d.createDebuggerStatement(),G),ve)}function sk(){const G=A();let ve=le(),je;const dt=V()===21,ht=cr(Me);return Ie(ht)&&$i(59)?je=d.createLabeledStatement(ht,w_()):(rc()||kc(ht),je=oe(ht),dt&&(ve=!1)),ln(Wt(je,G),ve)}function pf(){return Ce(),Au(V())&&!t.hasPrecedingLineBreak()}function LS(){return Ce(),V()===86&&!t.hasPrecedingLineBreak()}function MS(){return Ce(),V()===100&&!t.hasPrecedingLineBreak()}function yo(){return Ce(),(Au(V())||V()===9||V()===10||V()===11)&&!t.hasPrecedingLineBreak()}function t4(){for(;;)switch(V()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return ak();case 135:return ok();case 120:case 156:return tk();case 144:case 145:return i4();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:const G=V();if(Ce(),t.hasPrecedingLineBreak())return!1;if(G===138&&V()===156)return!0;continue;case 162:return Ce(),V()===19||V()===80||V()===95;case 102:return Ce(),V()===11||V()===42||V()===19||Au(V());case 95:let ve=Ce();if(ve===156&&(ve=pi(Ce)),ve===64||ve===42||ve===19||ve===90||ve===130||ve===60)return!0;continue;case 126:Ce();continue;default:return!1}}function lv(){return pi(t4)}function J2(){switch(V()){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 lv()||pi(Z1);case 87:case 95:return lv();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 lv()||!pi(pf);default:return xd()}}function wP(){return Ce(),In()||V()===19||V()===23}function zu(){return pi(wP)}function Sh(){return um(!0)}function um(G){return Ce(),G&&V()===165?!1:(In()||V()===19)&&!t.hasPrecedingLineBreak()}function ak(){return pi(um)}function X_(G){return Ce()===160?um(G):!1}function ok(){return pi(X_)}function w_(){switch(V()){case 27:return ik();case 19:return Lg(!1);case 115:return uv(A(),le(),void 0);case 121:if(zu())return uv(A(),le(),void 0);break;case 135:if(ok())return uv(A(),le(),void 0);break;case 160:if(ak())return uv(A(),le(),void 0);break;case 100:return W2(A(),le(),void 0);case 86:return zS(A(),le(),void 0);case 101:return ov();case 92:return e4();case 117:return B2();case 99:return IS();case 88:return ff(251);case 83:return ff(252);case 107:return FS();case 118:return mc();case 109:return cv();case 111:return rp();case 113:case 85:case 98:return Ly();case 89:return wl();case 60:return k0();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(lv())return k0();break}return sk()}function ck(G){return G.kind===138}function k0(){const G=A(),ve=le(),je=Qm(!0);if(ct(je,ck)){const ht=RS(G);if(ht)return ht;for(const Ot of je)Ot.flags|=33554432;return _a(33554432,()=>r4(G,ve,je))}else return r4(G,ve,je)}function RS(G){return _a(33554432,()=>{const ve=Uc(Vt,G);if(ve)return Ro(ve)})}function r4(G,ve,je){switch(V()){case 115:case 121:case 87:case 160:case 135:return uv(G,ve,je);case 100:return W2(G,ve,je);case 86:return zS(G,ve,je);case 120:return it(G,ve,je);case 156:return Ut(G,ve,je);case 94:return gi(G,ve,je);case 162:case 144:case 145:return Cu(G,ve,je);case 102:return Ar(G,ve,je);case 95:switch(Ce(),V()){case 90:case 64:return Km(G,ve,je);case 130:return Ym(G,ve,je);default:return AP(G,ve,je)}default:if(je){const dt=go(282,!0,p.Declaration_expected);return XE(dt,G),dt.modifiers=je,dt}return}}function n4(){return Ce()===11}function jS(){return Ce(),V()===161||V()===64}function i4(){return Ce(),!t.hasPrecedingLineBreak()&&(is()||V()===11)}function Ry(G,ve){if(V()!==19){if(G&4){Rr();return}if(Fc()){Mo();return}}return Oy(G,ve)}function Q_(){const G=A();if(V()===28)return Wt(d.createOmittedExpression(),G);const ve=zs(26),je=un(),dt=kd();return Wt(d.createBindingElement(ve,void 0,je,dt),G)}function Xm(){const G=A(),ve=zs(26),je=In();let dt=Xt(),ht;je&&V()!==59?(ht=dt,dt=void 0):(pr(59),ht=un());const Ot=kd();return Wt(d.createBindingElement(ve,dt,ht,Ot),G)}function s4(){const G=A();pr(19);const ve=cr(()=>_u(9,Xm));return pr(20),Wt(d.createObjectBindingPattern(ve),G)}function BS(){const G=A();pr(23);const ve=cr(()=>_u(10,Q_));return pr(24),Wt(d.createArrayBindingPattern(ve),G)}function Na(){return V()===19||V()===23||V()===81||In()}function un(G){return V()===23?BS():V()===19?s4():q_(G)}function Mf(){return e_(!0)}function e_(G){const ve=A(),je=le(),dt=un(p.Private_identifiers_are_not_allowed_in_variable_declarations);let ht;G&&dt.kind===80&&V()===54&&!t.hasPrecedingLineBreak()&&(ht=zo());const Ot=v0(),Tn=hh(V())?void 0:kd(),vi=ke(dt,ht,Ot,Tn);return ln(Wt(vi,ve),je)}function z2(G){const ve=A();let je=0;switch(V()){case 115:break;case 121:je|=1;break;case 87:je|=2;break;case 160:je|=4;break;case 135:E.assert(ok()),je|=6,Ce();break;default:E.fail()}Ce();let dt;if(V()===165&&pi(a4))dt=H_();else{const ht=Be();Hn(G),dt=_u(8,G?e_:Mf),Hn(ht)}return Wt(Oe(dt,je),ve)}function a4(){return E_()&&Ce()===22}function uv(G,ve,je){const dt=z2(!1);Mo();const ht=ee(je,dt);return ln(Wt(ht,G),ve)}function W2(G,ve,je){const dt=ir(),ht=$d(je);pr(100);const Ot=zs(42),Tn=ht&2048?id():q_(),vi=Ot?1:0,ui=ht&1024?2:0,Zn=Ff();ht&32&&ns(!0);const Ai=rr(vi|ui),Ba=Nt(59,!1),eo=Ry(vi|ui,p.or_expected);ns(dt);const Da=d.createFunctionDeclaration(je,Ot,Tn,Zn,Ai,Ba,eo);return ln(Wt(Da,G),ve)}function JS(){if(V()===137)return pr(137);if(V()===11&&pi(Ce)===21)return ci(()=>{const G=Ln();return G.text==="constructor"?G:void 0})}function Mg(G,ve,je){return ci(()=>{if(JS()){const dt=Ff(),ht=rr(0),Ot=Nt(59,!1),Tn=Ry(0,p.or_expected),vi=d.createConstructorDeclaration(je,ht,Tn);return vi.typeParameters=dt,vi.type=Ot,ln(Wt(vi,G),ve)}})}function Pd(G,ve,je,dt,ht,Ot,Tn,vi){const ui=dt?1:0,Zn=ct(je,l3)?2:0,Ai=Ff(),Ba=rr(ui|Zn),eo=Nt(59,!1),Da=Ry(ui|Zn,vi),sp=d.createMethodDeclaration(je,dt,ht,Ot,Ai,Ba,eo,Da);return sp.exclamationToken=Tn,ln(Wt(sp,G),ve)}function Rf(G,ve,je,dt,ht){const Ot=!ht&&!t.hasPrecedingLineBreak()?zs(54):void 0,Tn=v0(),vi=Vs(90112,kd);mo(dt,Tn,vi);const ui=d.createPropertyDeclaration(je,dt,ht||Ot,Tn,vi);return ln(Wt(ui,G),ve)}function sd(G,ve,je){const dt=zs(42),ht=Xt(),Ot=zs(58);return dt||V()===21||V()===30?Pd(G,ve,je,dt,ht,Ot,void 0,p.or_expected):Rf(G,ve,je,ht,Ot)}function Th(G,ve,je,dt,ht){const Ot=Xt(),Tn=Ff(),vi=rr(0),ui=Nt(59,!1),Zn=Ry(ht),Ai=dt===177?d.createGetAccessorDeclaration(je,Ot,vi,ui,Zn):d.createSetAccessorDeclaration(je,Ot,vi,Zn);return Ai.typeParameters=Tn,J_(Ai)&&(Ai.type=ui),ln(Wt(Ai,G),ve)}function Rg(){let G;if(V()===60)return!0;for(;$h(V());){if(G=V(),rz(G))return!0;Ce()}if(V()===42||(X()&&(G=V(),Ce()),V()===23))return!0;if(G!==void 0){if(!c_(G)||G===153||G===139)return!0;switch(V()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return Fc()}}return!1}function jg(G,ve,je){Qa(126);const dt=lk(),ht=ln(Wt(d.createClassStaticBlockDeclaration(dt),G),ve);return ht.modifiers=je,ht}function lk(){const G=mt(),ve=ir();ei(!1),ns(!0);const je=Lg(!1);return ei(G),ns(ve),je}function Oc(){if(ir()&&V()===135){const G=A(),ve=io(p.Expression_expected);Ce();const je=Dl(G,ve,!0);return x0(G,je)}return Ap()}function o4(){const G=A();if(!$i(60))return;const ve=yt(Oc);return Wt(d.createDecorator(ve),G)}function np(G,ve,je){const dt=A(),ht=V();if(V()===87&&ve){if(!ci(li))return}else{if(je&&V()===126&&pi(By))return;if(G&&V()===126)return;if(!ml())return}return Wt(F(ht),dt)}function Qm(G,ve,je){const dt=A();let ht,Ot,Tn,vi=!1,ui=!1,Zn=!1;if(G&&V()===60)for(;Ot=o4();)ht=_r(ht,Ot);for(;Tn=np(vi,ve,je);)Tn.kind===126&&(vi=!0),ht=_r(ht,Tn),ui=!0;if(ui&&G&&V()===60)for(;Ot=o4();)ht=_r(ht,Ot),Zn=!0;if(Zn)for(;Tn=np(vi,ve,je);)Tn.kind===126&&(vi=!0),ht=_r(ht,Tn);return ht&&fs(ht,dt)}function jf(){let G;if(V()===134){const ve=A();Ce();const je=Wt(F(134),ve);G=fs([je],ve)}return G}function V2(){const G=A(),ve=le();if(V()===27)return Ce(),ln(Wt(d.createSemicolonClassElement(),G),ve);const je=Qm(!0,!0,!0);if(V()===126&&pi(By))return jg(G,ve,je);if(En(139))return Th(G,ve,je,177,0);if(En(153))return Th(G,ve,je,178,0);if(V()===137||V()===11){const dt=Mg(G,ve,je);if(dt)return dt}if(Gr())return Yr(G,ve,je);if(Au(V())||V()===11||V()===9||V()===42||V()===23)if(ct(je,ck)){for(const ht of je)ht.flags|=33554432;return _a(33554432,()=>sd(G,ve,je))}else return sd(G,ve,je);if(je){const dt=go(80,!0,p.Declaration_expected);return Rf(G,ve,je,dt,void 0)}return E.fail("Should not have attempted to parse class member declaration.")}function _v(){const G=A(),ve=le(),je=Qm(!0);if(V()===86)return Bf(G,ve,je,231);const dt=go(282,!0,p.Expression_expected);return XE(dt,G),dt.modifiers=je,dt}function uk(){return Bf(A(),le(),void 0,231)}function zS(G,ve,je){return Bf(G,ve,je,263)}function Bf(G,ve,je,dt){const ht=ir();pr(86);const Ot=so(),Tn=Ff();ct(je,nx)&&ns(!0);const vi=q2();let ui;pr(19)?(ui=te(),pr(20)):ui=H_(),ns(ht);const Zn=dt===263?d.createClassDeclaration(je,Ot,Tn,vi,ui):d.createClassExpression(je,Ot,Tn,vi,ui);return ln(Wt(Zn,G),ve)}function so(){return In()&&!U2()?Ml(In()):void 0}function U2(){return V()===119&&pi(ol)}function q2(){if(C())return Is(22,xh)}function xh(){const G=A(),ve=V();E.assert(ve===96||ve===119),Ce();const je=_u(7,jy);return Wt(d.createHeritageClause(ve,je),G)}function jy(){const G=A(),ve=Ap();if(ve.kind===233)return ve;const je=fv();return Wt(d.createExpressionWithTypeArguments(ve,je),G)}function fv(){return V()===30?f_(20,qc,30,32):void 0}function C(){return V()===96||V()===119}function te(){return Is(5,V2)}function it(G,ve,je){pr(120);const dt=io(),ht=Ff(),Ot=q2(),Tn=K1(),vi=d.createInterfaceDeclaration(je,dt,ht,Ot,Tn);return ln(Wt(vi,G),ve)}function Ut(G,ve,je){pr(156),t.hasPrecedingLineBreak()&&Yt(p.Line_break_not_permitted_here);const dt=io(),ht=Ff();pr(64);const Ot=V()===141&&ci(vS)||qc();Mo();const Tn=d.createTypeAliasDeclaration(je,dt,ht,Ot);return ln(Wt(Tn,G),ve)}function vn(){const G=A(),ve=le(),je=Xt(),dt=cr(kd);return ln(Wt(d.createEnumMember(je,dt),G),ve)}function gi(G,ve,je){pr(94);const dt=io();let ht;pr(19)?(ht=B(()=>_u(6,vn)),pr(20)):ht=H_();const Ot=d.createEnumDeclaration(je,dt,ht);return ln(Wt(Ot,G),ve)}function ti(){const G=A();let ve;return pr(19)?(ve=Is(1,w_),pr(20)):ve=H_(),Wt(d.createModuleBlock(ve),G)}function Li(G,ve,je,dt){const ht=dt&32,Ot=dt&8?Yc():io(),Tn=$i(25)?Li(A(),!1,void 0,8|ht):ti(),vi=d.createModuleDeclaration(je,Ot,Tn,dt);return ln(Wt(vi,G),ve)}function Gs(G,ve,je){let dt=0,ht;V()===162?(ht=io(),dt|=2048):(ht=Ln(),ht.text=Pl(ht.text));let Ot;V()===19?Ot=ti():Mo();const Tn=d.createModuleDeclaration(je,ht,Ot,dt);return ln(Wt(Tn,G),ve)}function Cu(G,ve,je){let dt=0;if(V()===162)return Gs(G,ve,je);if($i(145))dt|=32;else if(pr(144),V()===11)return Gs(G,ve,je);return Li(G,ve,je,dt)}function t_(){return V()===149&&pi(ip)}function ip(){return Ce()===21}function By(){return Ce()===19}function ni(){return Ce()===44}function Ym(G,ve,je){pr(130),pr(145);const dt=io();Mo();const ht=d.createNamespaceExportDeclaration(dt);return ht.modifiers=je,ln(Wt(ht,G),ve)}function Ar(G,ve,je){pr(102);const dt=t.getTokenFullStart();let ht;is()&&(ht=io());let Ot=!1;if((ht==null?void 0:ht.escapedText)==="type"&&(V()!==161||is()&&pi(jS))&&(is()||zy())&&(Ot=!0,ht=is()?io():void 0),ht&&!WS())return H2(G,ve,je,ht,Ot);let Tn;(ht||V()===42||V()===19)&&(Tn=_m(ht,dt,Ot),pr(161));const vi=VS(),ui=V();let Zn;(ui===118||ui===132)&&!t.hasPrecedingLineBreak()&&(Zn=Jy(ui)),Mo();const Ai=d.createImportDeclaration(je,Tn,vi,Zn);return ln(Wt(Ai,G),ve)}function _k(){const G=A(),ve=Au(V())?Yc():lc(11);pr(59);const je=Bl(!0);return Wt(d.createImportAttribute(ve,je),G)}function Jy(G,ve){const je=A();ve||pr(G);const dt=t.getTokenStart();if(pr(19)){const ht=t.hasPrecedingLineBreak(),Ot=_u(24,_k,!0);if(!pr(20)){const Tn=Po(Fe);Tn&&Tn.code===p._0_expected.code&&la(Tn,PC(me,xe,dt,1,p.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return Wt(d.createImportAttributes(Ot,ht,G),je)}else{const ht=fs([],A(),void 0,!1);return Wt(d.createImportAttributes(ht,!1,G),je)}}function zy(){return V()===42||V()===19}function WS(){return V()===28||V()===161}function H2(G,ve,je,dt,ht){pr(64);const Ot=Zm();Mo();const Tn=d.createImportEqualsDeclaration(je,ht,dt,Ot);return ln(Wt(Tn,G),ve)}function _m(G,ve,je){let dt;return(!G||$i(28))&&(dt=V()===42?NR():Wy(275)),Wt(d.createImportClause(je,G,dt),ve)}function Zm(){return t_()?c4():Q(!1)}function c4(){const G=A();pr(149),pr(21);const ve=VS();return pr(22),Wt(d.createExternalModuleReference(ve),G)}function VS(){if(V()===11){const G=Ln();return G.text=Pl(G.text),G}else return Me()}function NR(){const G=A();pr(42),pr(130);const ve=io();return Wt(d.createNamespaceImport(ve),G)}function Wy(G){const ve=A(),je=G===275?d.createNamedImports(f_(23,iI,19,20)):d.createNamedExports(f_(23,nI,19,20));return Wt(je,ve)}function nI(){const G=le();return ln(pv(281),G)}function iI(){return pv(276)}function pv(G){const ve=A();let je=c_(V())&&!is(),dt=t.getTokenStart(),ht=t.getTokenEnd(),Ot=!1,Tn,vi=!0,ui=Yc();if(ui.escapedText==="type")if(V()===130){const Ba=Yc();if(V()===130){const eo=Yc();Au(V())?(Ot=!0,Tn=Ba,ui=Ai(),vi=!1):(Tn=ui,ui=eo,vi=!1)}else Au(V())?(Tn=ui,vi=!1,ui=Ai()):(Ot=!0,ui=Ba)}else Au(V())&&(Ot=!0,ui=Ai());vi&&V()===130&&(Tn=ui,pr(130),ui=Ai()),G===276&&je&&W(dt,ht,p.Identifier_expected);const Zn=G===276?d.createImportSpecifier(Ot,Tn,ui):d.createExportSpecifier(Ot,Tn,ui);return Wt(Zn,ve);function Ai(){return je=c_(V())&&!is(),dt=t.getTokenStart(),ht=t.getTokenEnd(),Yc()}}function Dd(G){return Wt(d.createNamespaceExport(Yc()),G)}function AP(G,ve,je){const dt=ir();ns(!0);let ht,Ot,Tn;const vi=$i(156),ui=A();$i(42)?($i(130)&&(ht=Dd(ui)),pr(161),Ot=VS()):(ht=Wy(279),(V()===161||V()===11&&!t.hasPrecedingLineBreak())&&(pr(161),Ot=VS()));const Zn=V();Ot&&(Zn===118||Zn===132)&&!t.hasPrecedingLineBreak()&&(Tn=Jy(Zn)),Mo(),ns(dt);const Ai=d.createExportDeclaration(je,vi,ht,Ot,Tn);return ln(Wt(Ai,G),ve)}function Km(G,ve,je){const dt=ir();ns(!0);let ht;$i(64)?ht=!0:pr(90);const Ot=Bl(!0);Mo(),ns(dt);const Tn=d.createExportAssignment(je,ht,Ot);return ln(Wt(Tn,G),ve)}let fk;(G=>{G[G.SourceElements=0]="SourceElements",G[G.BlockStatements=1]="BlockStatements",G[G.SwitchClauses=2]="SwitchClauses",G[G.SwitchClauseStatements=3]="SwitchClauseStatements",G[G.TypeMembers=4]="TypeMembers",G[G.ClassMembers=5]="ClassMembers",G[G.EnumMembers=6]="EnumMembers",G[G.HeritageClauseElement=7]="HeritageClauseElement",G[G.VariableDeclarations=8]="VariableDeclarations",G[G.ObjectBindingElements=9]="ObjectBindingElements",G[G.ArrayBindingElements=10]="ArrayBindingElements",G[G.ArgumentExpressions=11]="ArgumentExpressions",G[G.ObjectLiteralMembers=12]="ObjectLiteralMembers",G[G.JsxAttributes=13]="JsxAttributes",G[G.JsxChildren=14]="JsxChildren",G[G.ArrayLiteralMembers=15]="ArrayLiteralMembers",G[G.Parameters=16]="Parameters",G[G.JSDocParameters=17]="JSDocParameters",G[G.RestProperties=18]="RestProperties",G[G.TypeParameters=19]="TypeParameters",G[G.TypeArguments=20]="TypeArguments",G[G.TupleElementTypes=21]="TupleElementTypes",G[G.HeritageClauses=22]="HeritageClauses",G[G.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",G[G.ImportAttributes=24]="ImportAttributes",G[G.JSDocComment=25]="JSDocComment",G[G.Count=26]="Count"})(fk||(fk={}));let sI;(G=>{G[G.False=0]="False",G[G.True=1]="True",G[G.Unknown=2]="Unknown"})(sI||(sI={}));let fm;(G=>{function ve(Zn,Ai,Ba){yi("file.js",Zn,99,void 0,1,0),t.setText(Zn,Ai,Ba),at=t.scan();const eo=je(),Da=Et("file.js",99,1,!1,[],F(1),0,Ca),sp=qT(Fe,Da);return $e&&(Da.jsDocDiagnostics=qT($e,Da)),os(),eo?{jsDocTypeExpression:eo,diagnostics:sp}:void 0}G.parseJSDocTypeExpressionForTests=ve;function je(Zn){const Ai=A(),Ba=(Zn?$i:pr)(19),eo=_a(16777216,ed);(!Zn||Ba)&&Uo(20);const Da=d.createJSDocTypeExpression(eo);return Ue(Da),Wt(Da,Ai)}G.parseJSDocTypeExpression=je;function dt(){const Zn=A(),Ai=$i(19),Ba=A();let eo=Q(!1);for(;V()===81;)fi(),_t(),eo=Wt(d.createJSDocMemberName(eo,io()),Ba);Ai&&Uo(20);const Da=d.createJSDocNameReference(eo);return Ue(Da),Wt(Da,Zn)}G.parseJSDocNameReference=dt;function ht(Zn,Ai,Ba){yi("",Zn,99,void 0,1,0);const eo=_a(16777216,()=>ui(Ai,Ba)),sp=qT(Fe,{languageVariant:0,text:Zn});return os(),eo?{jsDoc:eo,diagnostics:sp}:void 0}G.parseIsolatedJSDocComment=ht;function Ot(Zn,Ai,Ba){const eo=at,Da=Fe.length,sp=jt,pm=_a(16777216,()=>ui(Ai,Ba));return ba(pm,Zn),Lr&524288&&($e||($e=[]),Nn($e,Fe,Da)),at=eo,Fe.length=Da,jt=sp,pm}G.parseJSDocComment=Ot;let Tn;(Zn=>{Zn[Zn.BeginningOfLine=0]="BeginningOfLine",Zn[Zn.SawAsterisk=1]="SawAsterisk",Zn[Zn.SavingComments=2]="SavingComments",Zn[Zn.SavingBackticks=3]="SavingBackticks"})(Tn||(Tn={}));let vi;(Zn=>{Zn[Zn.Property=1]="Property",Zn[Zn.Parameter=2]="Parameter",Zn[Zn.CallbackParameter=4]="CallbackParameter"})(vi||(vi={}));function ui(Zn=0,Ai){const Ba=xe,eo=Ai===void 0?Ba.length:Zn+Ai;if(Ai=eo-Zn,E.assert(Zn>=0),E.assert(Zn<=eo),E.assert(eo<=Ba.length),!eU(Ba,Zn))return;let Da,sp,pm,Bg,kh,Ch=[];const Vy=[],A_=Vt;Vt|=1<<25;const US=t.scanRange(Zn+3,Ai-5,l4);return Vt=A_,US;function l4(){let mr=1,kn,hn=Zn-(Ba.lastIndexOf(` -`,Zn)+1)+4;function bi(Ya){kn||(kn=hn),Ch.push(Ya),hn+=Ya.length}for(_t();C0(5););C0(4)&&(mr=0,hn=0);e:for(;;){switch(V()){case 60:IP(Ch),kh||(kh=A()),OP(u4(hn)),mr=0,kn=void 0;break;case 4:Ch.push(t.getTokenText()),mr=0,hn=0;break;case 42:const Ya=t.getTokenText();mr===1?(mr=2,bi(Ya)):(E.assert(mr===0),mr=1,hn+=Ya.length);break;case 5:E.assert(mr!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");const Eu=t.getTokenText();kn!==void 0&&hn+Eu.length>kn&&Ch.push(Eu.slice(kn-hn)),hn+=Eu.length;break;case 1:break e;case 82:mr=2,bi(t.getTokenValue());break;case 19:mr=2;const eg=t.getTokenFullStart(),Y_=t.getTokenEnd()-1,Ad=Lc(Y_);if(Ad){Bg||NP(Ch),Vy.push(Wt(d.createJSDocText(Ch.join("")),Bg??Zn,eg)),Vy.push(Ad),Ch=[],Bg=t.getTokenEnd();break}default:mr=2,bi(t.getTokenText());break}mr===2?Tt(!1):_t()}const di=Ch.join("").trimEnd();Vy.length&&di.length&&Vy.push(Wt(d.createJSDocText(di),Bg??Zn,kh)),Vy.length&&Da&&E.assertIsDefined(kh,"having parsed tags implies that the end of the comment span should be set");const Ia=Da&&fs(Da,sp,pm);return Wt(d.createJSDocComment(Vy.length?fs(Vy,Zn,kh):di.length?di:void 0,Ia),Zn,eo)}function NP(mr){for(;mr.length&&(mr[0]===` -`||mr[0]==="\r");)mr.shift()}function IP(mr){for(;mr.length;){const kn=mr[mr.length-1].trimEnd();if(kn==="")mr.pop();else if(kn.lengthEu&&(bi.push(Ph.slice(Eu-mr)),Ya=2),mr+=Ph.length;break;case 19:Ya=2;const Z_=t.getTokenFullStart(),p4=t.getTokenEnd()-1,aI=Lc(p4);aI?(di.push(Wt(d.createJSDocText(bi.join("")),Ia??hn,Z_)),di.push(aI),bi=[],Ia=t.getTokenEnd()):eg(t.getTokenText());break;case 62:Ya===3?Ya=2:Ya=3,eg(t.getTokenText());break;case 82:Ya!==3&&(Ya=2),eg(t.getTokenValue());break;case 42:if(Ya===0){Ya=1,mr+=1;break}default:Ya!==3&&(Ya=2),eg(t.getTokenText());break}Ya===2||Ya===3?Y_=Tt(Ya===3):Y_=_t()}NP(bi);const Ad=bi.join("").trimEnd();if(di.length)return Ad.length&&di.push(Wt(d.createJSDocText(Ad),Ia??hn)),fs(di,hn,t.getTokenEnd());if(Ad.length)return Ad}function Lc(mr){const kn=ci(pk);if(!kn)return;_t(),Eh();const hn=mv(),bi=[];for(;V()!==20&&V()!==4&&V()!==1;)bi.push(t.getTokenText()),_t();const di=kn==="link"?d.createJSDocLink:kn==="linkcode"?d.createJSDocLinkCode:d.createJSDocLinkPlain;return Wt(di(hn,bi.join("")),mr,t.getTokenEnd())}function mv(){if(Au(V())){const mr=A();let kn=Yc();for(;$i(25);)kn=Wt(d.createQualifiedName(kn,V()===81?go(80,!1):io()),mr);for(;V()===81;)fi(),_t(),kn=Wt(d.createJSDocMemberName(kn,io()),mr);return kn}}function pk(){if(Uy(),V()===19&&_t()===60&&Au(_t())){const mr=t.getTokenValue();if(FP(mr))return mr}}function FP(mr){return mr==="link"||mr==="linkcode"||mr==="linkplain"}function qy(mr,kn,hn,bi){return Wt(d.createJSDocUnknownTag(kn,df(mr,A(),hn,bi)),mr)}function OP(mr){mr&&(Da?Da.push(mr):(Da=[mr],sp=mr.pos),pm=mr.end)}function Vr(){return Uy(),V()===19?je():void 0}function v(){const mr=C0(23);mr&&Eh();const kn=C0(62),hn=f4();return kn&&oa(62),mr&&(Eh(),zs(64)&&Me(),pr(24)),{name:hn,isBracketed:mr}}function D(mr){switch(mr.kind){case 151:return!0;case 188:return D(mr.elementType);default:return $f(mr)&&Ie(mr.typeName)&&mr.typeName.escapedText==="Object"&&!mr.typeArguments}}function M(mr,kn,hn,bi){let di=Vr(),Ia=!di;Uy();const{name:Ya,isBracketed:Eu}=v(),eg=Uy();Ia&&!pi(pk)&&(di=Vr());const Y_=df(mr,A(),bi,eg),Ad=ie(di,Ya,hn,bi);Ad&&(di=Ad,Ia=!0);const Ph=hn===1?d.createJSDocPropertyTag(kn,Ya,Eu,di,Ia,Y_):d.createJSDocParameterTag(kn,Ya,Eu,di,Ia,Y_);return Wt(Ph,mr)}function ie(mr,kn,hn,bi){if(mr&&D(mr.type)){const di=A();let Ia,Ya;for(;Ia=ci(()=>OR(hn,bi,kn));)Ia.kind===348||Ia.kind===355?Ya=_r(Ya,Ia):Ia.kind===352&&Pe(Ia.tagName,p.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(Ya){const Eu=Wt(d.createJSDocTypeLiteral(Ya,mr.type.kind===188),di);return Wt(d.createJSDocTypeExpression(Eu),di)}}}function ze(mr,kn,hn,bi){ct(Da,NO)&&W(kn.pos,t.getTokenStart(),p._0_tag_already_specified,xi(kn.escapedText));const di=Vr();return Wt(d.createJSDocReturnTag(kn,di,df(mr,A(),hn,bi)),mr)}function Lt(mr,kn,hn,bi){ct(Da,b3)&&W(kn.pos,t.getTokenStart(),p._0_tag_already_specified,xi(kn.escapedText));const di=je(!0),Ia=hn!==void 0&&bi!==void 0?df(mr,A(),hn,bi):void 0;return Wt(d.createJSDocTypeTag(kn,di,Ia),mr)}function nn(mr,kn,hn,bi){const Ia=V()===23||pi(()=>_t()===60&&Au(_t())&&FP(t.getTokenValue()))?void 0:dt(),Ya=hn!==void 0&&bi!==void 0?df(mr,A(),hn,bi):void 0;return Wt(d.createJSDocSeeTag(kn,Ia,Ya),mr)}function Mi(mr,kn,hn,bi){const di=Vr(),Ia=df(mr,A(),hn,bi);return Wt(d.createJSDocThrowsTag(kn,di,Ia),mr)}function vo(mr,kn,hn,bi){const di=A(),Ia=wd();let Ya=t.getTokenFullStart();const Eu=df(mr,Ya,hn,bi);Eu||(Ya=t.getTokenFullStart());const eg=typeof Eu!="string"?fs(es([Wt(Ia,di,Ya)],Eu),di):Ia.text+Eu;return Wt(d.createJSDocAuthorTag(kn,eg),mr)}function wd(){const mr=[];let kn=!1,hn=t.getToken();for(;hn!==1&&hn!==4;){if(hn===30)kn=!0;else{if(hn===60&&!kn)break;if(hn===32&&kn){mr.push(t.getTokenText()),t.resetTokenState(t.getTokenEnd());break}}mr.push(t.getTokenText()),hn=_t()}return d.createJSDocText(mr.join(""))}function Hy(mr,kn,hn,bi){const di=OY();return Wt(d.createJSDocImplementsTag(kn,di,df(mr,A(),hn,bi)),mr)}function ad(mr,kn,hn,bi){const di=OY();return Wt(d.createJSDocAugmentsTag(kn,di,df(mr,A(),hn,bi)),mr)}function gv(mr,kn,hn,bi){const di=je(!1),Ia=hn!==void 0&&bi!==void 0?df(mr,A(),hn,bi):void 0;return Wt(d.createJSDocSatisfiesTag(kn,di,Ia),mr)}function OY(){const mr=$i(19),kn=A(),hn=Ade();t.setInJSDocType(!0);const bi=fv();t.setInJSDocType(!1);const di=d.createExpressionWithTypeArguments(hn,bi),Ia=Wt(di,kn);return mr&&pr(20),Ia}function Ade(){const mr=A();let kn=yv();for(;$i(25);){const hn=yv();kn=Wt($(kn,hn),mr)}return kn}function hv(mr,kn,hn,bi,di){return Wt(kn(hn,df(mr,A(),bi,di)),mr)}function IR(mr,kn,hn,bi){const di=je(!0);return Eh(),Wt(d.createJSDocThisTag(kn,di,df(mr,A(),hn,bi)),mr)}function LY(mr,kn,hn,bi){const di=je(!0);return Eh(),Wt(d.createJSDocEnumTag(kn,di,df(mr,A(),hn,bi)),mr)}function LP(mr,kn,hn,bi){let di=Vr();Uy();const Ia=FR();Eh();let Ya=ya(hn),Eu;if(!di||D(di.type)){let Y_,Ad,Ph,Z_=!1;for(;(Y_=ci(()=>jY(hn)))&&Y_.kind!==352;)if(Z_=!0,Y_.kind===351)if(Ad){const p4=Yt(p.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);p4&&la(p4,PC(me,xe,0,0,p.The_tag_was_first_specified_here));break}else Ad=Y_;else Ph=_r(Ph,Y_);if(Z_){const p4=di&&di.type.kind===188,aI=d.createJSDocTypeLiteral(Ph,p4);di=Ad&&Ad.typeExpression&&!D(Ad.typeExpression.type)?Ad.typeExpression:Wt(aI,mr),Eu=di.end}}Eu=Eu||Ya!==void 0?A():(Ia??di??kn).end,Ya||(Ya=df(mr,Eu,hn,bi));const eg=d.createJSDocTypedefTag(kn,di,Ia,Ya);return Wt(eg,mr,Eu)}function FR(mr){const kn=t.getTokenStart();if(!Au(V()))return;const hn=yv();if($i(25)){const bi=FR(!0),di=d.createModuleDeclaration(void 0,hn,bi,mr?8:void 0);return Wt(di,kn)}return mr&&(hn.flags|=4096),hn}function MY(mr){const kn=A();let hn,bi;for(;hn=ci(()=>OR(4,mr));){if(hn.kind===352){Pe(hn.tagName,p.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}bi=_r(bi,hn)}return fs(bi||[],kn)}function RY(mr,kn){const hn=MY(kn),bi=ci(()=>{if(C0(60)){const di=u4(kn);if(di&&di.kind===349)return di}});return Wt(d.createJSDocSignature(void 0,hn,bi),mr)}function Nde(mr,kn,hn,bi){const di=FR();Eh();let Ia=ya(hn);const Ya=RY(mr,hn);Ia||(Ia=df(mr,A(),hn,bi));const Eu=Ia!==void 0?A():Ya.end;return Wt(d.createJSDocCallbackTag(kn,Ya,di,Ia),mr,Eu)}function Ide(mr,kn,hn,bi){Eh();let di=ya(hn);const Ia=RY(mr,hn);di||(di=df(mr,A(),hn,bi));const Ya=di!==void 0?A():Ia.end;return Wt(d.createJSDocOverloadTag(kn,Ia,di),mr,Ya)}function _4(mr,kn){for(;!Ie(mr)||!Ie(kn);)if(!Ie(mr)&&!Ie(kn)&&mr.right.escapedText===kn.right.escapedText)mr=mr.left,kn=kn.left;else return!1;return mr.escapedText===kn.escapedText}function jY(mr){return OR(1,mr)}function OR(mr,kn,hn){let bi=!0,di=!1;for(;;)switch(_t()){case 60:if(bi){const Ia=G2(mr,kn);return Ia&&(Ia.kind===348||Ia.kind===355)&&hn&&(Ie(Ia.name)||!_4(hn,Ia.name.left))?!1:Ia}di=!1;break;case 4:bi=!0,di=!1;break;case 42:di&&(bi=!1),di=!0;break;case 80:bi=!1;break;case 1:return!1}}function G2(mr,kn){E.assert(V()===60);const hn=t.getTokenFullStart();_t();const bi=yv(),di=Uy();let Ia;switch(bi.escapedText){case"type":return mr===1&&Lt(hn,bi);case"prop":case"property":Ia=1;break;case"arg":case"argument":case"param":Ia=6;break;case"template":return $y(hn,bi,kn,di);case"this":return IR(hn,bi,kn,di);default:return!1}return mr&Ia?M(hn,bi,mr,kn):!1}function Xr(){const mr=A(),kn=C0(23);kn&&Eh();const hn=Qm(!1,!0),bi=yv(p.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);let di;if(kn&&(Eh(),pr(64),di=_a(16777216,ed),pr(24)),!_c(bi))return Wt(d.createTypeParameterDeclaration(hn,bi,void 0,di),mr)}function Gy(){const mr=A(),kn=[];do{Eh();const hn=Xr();hn!==void 0&&kn.push(hn),Uy()}while(C0(28));return fs(kn,mr)}function $y(mr,kn,hn,bi){const di=V()===19?je():void 0,Ia=Gy();return Wt(d.createJSDocTemplateTag(kn,di,Ia,df(mr,A(),hn,bi)),mr)}function C0(mr){return V()===mr?(_t(),!0):!1}function f4(){let mr=yv();for($i(23)&&pr(24);$i(25);){const kn=yv();$i(23)&&pr(24),mr=Ye(mr,kn)}return mr}function yv(mr){if(!Au(V()))return go(80,!mr,mr||p.Identifier_expected);zt++;const kn=t.getTokenStart(),hn=t.getTokenEnd(),bi=V(),di=Pl(t.getTokenValue()),Ia=Wt(w(di,bi),kn,hn);return _t(),Ia}}})(fm=e.JSDocParser||(e.JSDocParser={}))})(J1||(J1={})),(e=>{function t(T,k,w,P){if(P=P||E.shouldAssert(2),d(T,k,w,P),Iee(w))return T;if(T.statements.length===0)return J1.parseSourceFile(T.fileName,k,T.languageVersion,void 0,!0,T.scriptKind,T.setExternalModuleIndicator,T.jsDocParsingMode);const F=T;E.assert(!F.hasBeenIncrementallyParsed),F.hasBeenIncrementallyParsed=!0,J1.fixupParentReferences(F);const J=T.text,U=y(T),$=f(T,w);d(T,k,$,P),E.assert($.span.start<=w.span.start),E.assert(bc($.span)===bc(w.span)),E.assert(bc(rE($))===bc(rE(w)));const j=rE($).length-$.span.length;u(F,$.span.start,bc($.span),bc(rE($)),j,J,k,P);const re=J1.parseSourceFile(T.fileName,k,T.languageVersion,U,!0,T.scriptKind,T.setExternalModuleIndicator,T.jsDocParsingMode);return re.commentDirectives=n(T.commentDirectives,re.commentDirectives,$.span.start,bc($.span),j,J,k,P),re.impliedNodeFormat=T.impliedNodeFormat,re}e.updateSourceFile=t;function n(T,k,w,P,F,J,U,$){if(!T)return k;let j,re=!1;for(const Y of T){const{range:ue,type:pe}=Y;if(ue.endP){R();const H={range:{pos:ue.pos+F,end:ue.end+F},type:pe};j=_r(j,H),$&&E.assert(J.substring(ue.pos,ue.end)===U.substring(H.range.pos,H.range.end))}}return R(),j;function R(){re||(re=!0,j?k&&j.push(...k):j=k)}}function i(T,k,w,P,F,J){k?$(T):U(T);return;function U(j){let re="";if(J&&s(j)&&(re=P.substring(j.pos,j.end)),j._children&&(j._children=void 0),Fm(j,j.pos+w,j.end+w),J&&s(j)&&E.assert(re===F.substring(j.pos,j.end)),Ss(j,U,$),sf(j))for(const R of j.jsDoc)U(R);c(j,J)}function $(j){j._children=void 0,Fm(j,j.pos+w,j.end+w);for(const re of j)U(re)}}function s(T){switch(T.kind){case 11:case 9:case 80:return!0}return!1}function o(T,k,w,P,F){E.assert(T.end>=k,"Adjusting an element that was entirely before the change range"),E.assert(T.pos<=w,"Adjusting an element that was entirely after the change range"),E.assert(T.pos<=T.end);const J=Math.min(T.pos,P),U=T.end>=w?T.end+F:Math.min(T.end,P);E.assert(J<=U),T.parent&&(E.assertGreaterThanOrEqual(J,T.parent.pos),E.assertLessThanOrEqual(U,T.parent.end)),Fm(T,J,U)}function c(T,k){if(k){let w=T.pos;const P=F=>{E.assert(F.pos>=w),w=F.end};if(sf(T))for(const F of T.jsDoc)P(F);Ss(T,P),E.assert(w<=T.end)}}function u(T,k,w,P,F,J,U,$){j(T);return;function j(R){if(E.assert(R.pos<=R.end),R.pos>w){i(R,!1,F,J,U,$);return}const Y=R.end;if(Y>=k){if(R.intersectsChange=!0,R._children=void 0,o(R,k,w,P,F),Ss(R,j,re),sf(R))for(const ue of R.jsDoc)j(ue);c(R,$);return}E.assert(Yw){i(R,!0,F,J,U,$);return}const Y=R.end;if(Y>=k){R.intersectsChange=!0,R._children=void 0,o(R,k,w,P,F);for(const ue of R)j(ue);return}E.assert(Y0&&U<=1;U++){const $=g(T,P);E.assert($.pos<=P);const j=$.pos;P=Math.max(0,j-1)}const F=Rc(P,bc(k.span)),J=k.newLength+(k.span.start-P);return UD(F,J)}function g(T,k){let w=T,P;if(Ss(T,J),P){const U=F(P);U.pos>w.pos&&(w=U)}return w;function F(U){for(;;){const $=EW(U);if($)U=$;else return U}}function J(U){if(!_c(U))if(U.pos<=k){if(U.pos>=w.pos&&(w=U),kk),!0}}function d(T,k,w,P){const F=T.text;if(w&&(E.assert(F.length-w.span.length+w.newLength===k.length),P||E.shouldAssert(3))){const J=F.substr(0,w.span.start),U=k.substr(0,w.span.start);E.assert(J===U);const $=F.substring(bc(w.span),F.length),j=k.substring(bc(rE(w)),k.length);E.assert($===j)}}function y(T){let k=T.statements,w=0;E.assert(w=re.pos&&U=re.pos&&U{T[T.Value=-1]="Value"})(S||(S={}))})(aU||(aU={})),oU=new Map,Bve=/^\/\/\/\s*<(\S+)\s.*?\/>/im,Jve=/^\/\/\/?\s*@([^\s:]+)(.*)\s*$/im}});function VO(e){const t=new Map,n=new Map;return er(e,i=>{t.set(i.name.toLowerCase(),i),i.shortName&&n.set(i.shortName,i.name)}),{optionsNameMap:t,shortOptionNames:n}}function YC(){return k2e||(k2e=VO(Pg))}function Bie(e){return zve(e,gc)}function zve(e,t){const n=gs(e.type.keys()),i=(e.deprecatedKeys?n.filter(s=>!e.deprecatedKeys.has(s)):n).map(s=>`'${s}'`).join(", ");return t(p.Argument_for_0_option_must_be_Colon_1,`--${e.name}`,i)}function UO(e,t,n){return v2e(e,(t??"").trim(),n)}function Jie(e,t="",n){if(t=t.trim(),Vi(t,"-"))return;if(e.type==="listOrElement"&&!t.includes(","))return vx(e,t,n);if(t==="")return[];const i=t.split(",");switch(e.element.type){case"number":return Ri(i,s=>vx(e.element,parseInt(s),n));case"string":return Ri(i,s=>vx(e.element,s||"",n));case"boolean":case"object":return E.fail(`List of ${e.element.type} is not yet supported.`);default:return Ri(i,s=>UO(e.element,s,n))}}function Wve(e){return e.name}function zie(e,t,n,i,s){var o;if((o=t.alternateMode)!=null&&o.getOptionsNameMap().optionsNameMap.has(e.toLowerCase()))return z1(s,i,t.alternateMode.diagnostic,e);const c=q4(e,t.optionDeclarations,Wve);return c?z1(s,i,t.unknownDidYouMeanDiagnostic,n||e,c.name):z1(s,i,t.unknownOptionDiagnostic,n||e)}function cU(e,t,n){const i={};let s;const o=[],c=[];return u(t),{options:i,watchOptions:s,fileNames:o,errors:c};function u(g){let d=0;for(;dzl.readFile(T)));if(!ls(d)){c.push(d);return}const y=[];let S=0;for(;;){for(;S=d.length)break;const T=S;if(d.charCodeAt(T)===34){for(S++;S32;)S++;y.push(d.substring(T,S))}}u(y)}}function Vve(e,t,n,i,s,o){if(i.isTSConfigOnly){const c=e[t];c==="null"?(s[i.name]=void 0,t++):i.type==="boolean"?c==="false"?(s[i.name]=vx(i,!1,o),t++):(c==="true"&&t++,o.push(gc(p.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(o.push(gc(p.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,i.name)),c&&!Vi(c,"-")&&t++)}else if(!e[t]&&i.type!=="boolean"&&o.push(gc(n.optionTypeMismatchDiagnostic,i.name,fU(i))),e[t]!=="null")switch(i.type){case"number":s[i.name]=vx(i,parseInt(e[t]),o),t++;break;case"boolean":const c=e[t];s[i.name]=vx(i,c!=="false",o),(c==="false"||c==="true")&&t++;break;case"string":s[i.name]=vx(i,e[t]||"",o),t++;break;case"list":const u=Jie(i,e[t],o);s[i.name]=u||[],u&&t++;break;case"listOrElement":E.fail("listOrElement not supported here");break;default:s[i.name]=UO(i,e[t],o),t++;break}else s[i.name]=void 0,t++;return t}function Uve(e,t){return cU(iA,e,t)}function lU(e,t){return Wie(YC,e,t)}function Wie(e,t,n=!1){t=t.toLowerCase();const{optionsNameMap:i,shortOptionNames:s}=e();if(n){const o=s.get(t);o!==void 0&&(t=o)}return i.get(t)}function qve(){return E2e||(E2e=VO(ZO))}function Hve(e){const{options:t,watchOptions:n,fileNames:i,errors:s}=cU(D2e,e),o=t;return i.length===0&&i.push("."),o.clean&&o.force&&s.push(gc(p.Options_0_and_1_cannot_be_combined,"clean","force")),o.clean&&o.verbose&&s.push(gc(p.Options_0_and_1_cannot_be_combined,"clean","verbose")),o.clean&&o.watch&&s.push(gc(p.Options_0_and_1_cannot_be_combined,"clean","watch")),o.watch&&o.dry&&s.push(gc(p.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:o,watchOptions:n,projects:i,errors:s}}function Gve(e,...t){return Ls(gc(e,...t).messageText,ls)}function $w(e,t,n,i,s,o){const c=C3(e,g=>n.readFile(g));if(!ls(c)){n.onUnRecoverableConfigFileDiagnostic(c);return}const u=Gw(e,c),f=n.getCurrentDirectory();return u.path=No(e,f,nu(n.useCaseSensitiveFileNames)),u.resolvedPath=u.path,u.originalFileName=u.fileName,Yw(u,n,Xi(Un(e),f),t,Xi(e,f),void 0,o,i,s)}function Xw(e,t){const n=C3(e,t);return ls(n)?uU(e,n):{config:{},error:n}}function uU(e,t){const n=Gw(e,t);return{config:Zve(n,n.parseDiagnostics,void 0),error:n.parseDiagnostics.length?n.parseDiagnostics[0]:void 0}}function Vie(e,t){const n=C3(e,t);return ls(n)?Gw(e,n):{fileName:e,parseDiagnostics:[n]}}function C3(e,t){let n;try{n=t(e)}catch(i){return gc(p.Cannot_read_file_0_Colon_1,e,i.message)}return n===void 0?gc(p.Cannot_read_file_0,e):n}function _U(e){return Iv(e,Wve)}function $ve(){return w2e||(w2e=VO(ZC))}function Xve(){return A2e||(A2e=_U(Pg))}function Qve(){return N2e||(N2e=_U(ZC))}function Yve(){return I2e||(I2e=_U(nA))}function I9e(){return ise===void 0&&(ise={name:void 0,type:"object",elementOptions:_U([tse,rse,nse,sA,{name:"references",type:"list",element:{name:"references",type:"object"},category:p.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:p.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:p.File_Management,defaultValueDescription:p.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:p.File_Management,defaultValueDescription:p.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},Kw])}),ise}function Zve(e,t,n){var i;const s=(i=e.statements[0])==null?void 0:i.expression;if(s&&s.kind!==210){if(t.push(mp(e,s,p.The_root_value_of_a_0_file_must_be_an_object,wc(e.fileName)==="jsconfig.json"?"jsconfig.json":"tsconfig.json")),ju(s)){const o=wn(s.elements,ua);if(o)return Qw(e,o,t,!0,n)}return{}}return Qw(e,s,t,!0,n)}function Uie(e,t){var n;return Qw(e,(n=e.statements[0])==null?void 0:n.expression,t,!0,void 0)}function Qw(e,t,n,i,s){if(!t)return i?{}:void 0;return u(t,s==null?void 0:s.rootOptions);function o(g,d){var y;const S=i?{}:void 0;for(const T of g.properties){if(T.kind!==303){n.push(mp(e,T,p.Property_assignment_expected));continue}T.questionToken&&n.push(mp(e,T.questionToken,p.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),f(T.name)||n.push(mp(e,T.name,p.String_literal_with_double_quotes_expected));const k=f8(T.name)?void 0:Kk(T.name),w=k&&xi(k),P=w?(y=d==null?void 0:d.elementOptions)==null?void 0:y.get(w):void 0,F=u(T.initializer,P);typeof w<"u"&&(i&&(S[w]=F),s==null||s.onPropertySet(w,F,T,d,P))}return S}function c(g,d){if(!i){g.forEach(y=>u(y,d));return}return An(g.map(y=>u(y,d)),y=>y!==void 0)}function u(g,d){switch(g.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return f(g)||n.push(mp(e,g,p.String_literal_with_double_quotes_expected)),g.text;case 9:return Number(g.text);case 224:if(g.operator!==41||g.operand.kind!==9)break;return-Number(g.operand.text);case 210:return o(g,d);case 209:return c(g.elements,d&&d.element)}d?n.push(mp(e,g,p.Compiler_option_0_requires_a_value_of_type_1,d.name,fU(d))):n.push(mp(e,g,p.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function f(g){return aa(g)&&F5(g,e)}}function fU(e){return e.type==="listOrElement"?`${fU(e.element)} or Array`:e.type==="list"?"Array":ls(e.type)?e.type:"string"}function Kve(e,t){if(e){if(Zw(t))return!e.disallowNullOrUndefined;if(e.type==="list")return ts(t);if(e.type==="listOrElement")return ts(t)||Kve(e.element,t);const n=ls(e.type)?e.type:"string";return typeof t===n}return!1}function e2e(e,t,n){var i,s,o;const c=nu(n.useCaseSensitiveFileNames),u=nr(An(e.fileNames,(s=(i=e.options.configFile)==null?void 0:i.configFileSpecs)!=null&&s.validatedIncludeSpecs?O9e(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,n):Wh),k=>FD(Xi(t,n.getCurrentDirectory()),Xi(k,n.getCurrentDirectory()),c)),f={configFilePath:Xi(t,n.getCurrentDirectory()),useCaseSensitiveFileNames:n.useCaseSensitiveFileNames},g=HO(e.options,f),d=e.watchOptions&&L9e(e.watchOptions),y={compilerOptions:{...qO(g),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:d&&qO(d),references:nr(e.projectReferences,k=>({...k,path:k.originalPath?k.originalPath:"",originalPath:void 0})),files:gr(u)?u:void 0,...(o=e.options.configFile)!=null&&o.configFileSpecs?{include:F9e(e.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:e.compileOnSave?!0:void 0},S=new Set(g.keys()),T={};for(const k in Jc)if(!S.has(k)&&ct(Jc[k].dependencies,w=>S.has(w))){const w=Jc[k].computeValue(e.options),P=Jc[k].computeValue({});w!==P&&(T[k]=Jc[k].computeValue(e.options))}return wk(y.compilerOptions,qO(HO(T,f))),y}function qO(e){return{...gs(e.entries()).reduce((t,n)=>({...t,[n[0]]:n[1]}),{})}}function F9e(e){if(gr(e)){if(gr(e)!==1)return e;if(e[0]!==t9)return e}}function O9e(e,t,n,i){if(!t)return Wh;const s=yF(e,n,t,i.useCaseSensitiveFileNames,i.getCurrentDirectory()),o=s.excludePattern&&sy(s.excludePattern,i.useCaseSensitiveFileNames),c=s.includeFilePattern&&sy(s.includeFilePattern,i.useCaseSensitiveFileNames);return c?o?u=>!(c.test(u)&&!o.test(u)):u=>!c.test(u):o?u=>o.test(u):Wh}function t2e(e){switch(e.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return t2e(e.element);default:return e.type}}function pU(e,t){return _l(t,(n,i)=>{if(n===e)return i})}function HO(e,t){return r2e(e,YC(),t)}function L9e(e){return r2e(e,$ve())}function r2e(e,{optionsNameMap:t},n){const i=new Map,s=n&&nu(n.useCaseSensitiveFileNames);for(const o in e)if(Za(e,o)){if(t.has(o)&&(t.get(o).category===p.Command_line_Options||t.get(o).category===p.Output_Formatting))continue;const c=e[o],u=t.get(o.toLowerCase());if(u){E.assert(u.type!=="listOrElement");const f=t2e(u);f?u.type==="list"?i.set(o,c.map(g=>pU(g,f))):i.set(o,pU(c,f)):n&&u.isFilePath?i.set(o,FD(n.configFilePath,Xi(c,Un(n.configFilePath)),s)):i.set(o,c)}}return i}function n2e(e,t){const n=i2e(e);return s();function i(o){return Array(o+1).join(" ")}function s(){const o=[],c=i(2);return yU.forEach(u=>{if(!n.has(u.name))return;const f=n.get(u.name),g=Yie(u);f!==g?o.push(`${c}${u.name}: ${f}`):Za(KO,u.name)&&o.push(`${c}${u.name}: ${g}`)}),o.join(t)+t}}function i2e(e){const t=n7(e,KO);return HO(t)}function s2e(e,t,n){const i=i2e(e);return c();function s(u){return Array(u+1).join(" ")}function o({category:u,name:f,isCommandLineOnly:g}){const d=[p.Command_line_Options,p.Editor_Support,p.Compiler_Diagnostics,p.Backwards_Compatibility,p.Watch_and_Build_Modes,p.Output_Formatting];return!g&&u!==void 0&&(!d.includes(u)||i.has(f))}function c(){const u=new Map;u.set(p.Projects,[]),u.set(p.Language_and_Environment,[]),u.set(p.Modules,[]),u.set(p.JavaScript_Support,[]),u.set(p.Emit,[]),u.set(p.Interop_Constraints,[]),u.set(p.Type_Checking,[]),u.set(p.Completeness,[]);for(const T of Pg)if(o(T)){let k=u.get(T.category);k||u.set(T.category,k=[]),k.push(T)}let f=0,g=0;const d=[];u.forEach((T,k)=>{d.length!==0&&d.push({value:""}),d.push({value:`/* ${ds(k)} */`});for(const w of T){let P;i.has(w.name)?P=`"${w.name}": ${JSON.stringify(i.get(w.name))}${(g+=1)===i.size?"":","}`:P=`// "${w.name}": ${JSON.stringify(Yie(w))},`,d.push({value:P,description:`/* ${w.description&&ds(w.description)||w.name} */`}),f=Math.max(P.length,f)}});const y=s(2),S=[];S.push("{"),S.push(`${y}"compilerOptions": {`),S.push(`${y}${y}/* ${ds(p.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`),S.push("");for(const T of d){const{value:k,description:w=""}=T;S.push(k&&`${y}${y}${k}${w&&s(f-k.length+2)+w}`)}if(t.length){S.push(`${y}},`),S.push(`${y}"files": [`);for(let T=0;Ttypeof ae=="object","object"),ue=$(j("files"));if(ue){const ae=Y==="no-prop"||ts(Y)&&Y.length===0,K=Za(S,"extends");if(ue.length===0&&ae&&!K)if(t){const fe=c||"tsconfig.json",ke=p.The_files_list_in_config_file_0_is_empty,Oe=h8(t,"files",be=>be.initializer),me=z1(t,Oe,ke,fe);d.push(me)}else R(p.The_files_list_in_config_file_0_is_empty,c||"tsconfig.json")}let pe=$(j("include"));const H=j("exclude");let q=!1,ee=$(H);if(H==="no-prop"&&S.compilerOptions){const ae=S.compilerOptions.outDir,K=S.compilerOptions.declarationDir;(ae||K)&&(ee=[ae,K].filter(fe=>!!fe))}ue===void 0&&pe===void 0&&(pe=[t9],q=!0);let oe,Se;return pe&&(oe=x2e(pe,d,!0,t,"include")),ee&&(Se=x2e(ee,d,!1,t,"exclude")),{filesSpecs:ue,includeSpecs:pe,excludeSpecs:ee,validatedFilesSpec:An(ue,ls),validatedIncludeSpecs:oe,validatedExcludeSpecs:Se,pathPatterns:void 0,isDefaultIncludeSpec:q}}function J(Y){const ue=P3(w,Y,T,n,f);return u2e(ue,E3(S),u)&&d.push(l2e(w,c)),ue}function U(Y){let ue;const pe=re("references",H=>typeof H=="object","object");if(ts(pe))for(const H of pe)typeof H.path!="string"?R(p.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(ue||(ue=[])).push({path:Xi(H.path,Y),originalPath:H.path,prepend:H.prepend,circular:H.circular});return ue}function $(Y){return ts(Y)?Y:void 0}function j(Y){return re(Y,ls,"string")}function re(Y,ue,pe){if(Za(S,Y)&&!Zw(S[Y]))if(ts(S[Y])){const H=S[Y];return!t&&!Wi(H,ue)&&d.push(gc(p.Compiler_option_0_requires_a_value_of_type_1,Y,pe)),H}else return R(p.Compiler_option_0_requires_a_value_of_type_1,Y,"Array"),"not-array";return"no-prop"}function R(Y,...ue){t||d.push(gc(Y,...ue))}}function R9e(e){return e.code===p.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function l2e({includeSpecs:e,excludeSpecs:t},n){return gc(p.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,n||"tsconfig.json",JSON.stringify(e||[]),JSON.stringify(t||[]))}function u2e(e,t,n){return e.length===0&&t&&(!n||n.length===0)}function E3(e){return!Za(e,"files")&&!Za(e,"references")}function GO(e,t,n,i,s){const o=i.length;return u2e(e,s)?i.push(l2e(n,t)):rB(i,c=>!R9e(c)),o!==i.length}function j9e(e){return!!e.options}function _2e(e,t,n,i,s,o,c,u){var f;i=iu(i);const g=Xi(s||"",i);if(o.includes(g))return c.push(gc(p.Circularity_detected_while_resolving_configuration_Colon_0,[...o,g].join(" -> "))),{raw:e||Uie(t,c)};const d=e?B9e(e,n,i,s,c):J9e(t,n,i,s,c);if((f=d.options)!=null&&f.paths&&(d.options.pathsBasePath=i),d.extendedConfigPath){o=o.concat([g]);const S={options:{}};ls(d.extendedConfigPath)?y(S,d.extendedConfigPath):d.extendedConfigPath.forEach(T=>y(S,T)),!d.raw.include&&S.include&&(d.raw.include=S.include),!d.raw.exclude&&S.exclude&&(d.raw.exclude=S.exclude),!d.raw.files&&S.files&&(d.raw.files=S.files),d.raw.compileOnSave===void 0&&S.compileOnSave&&(d.raw.compileOnSave=S.compileOnSave),t&&S.extendedSourceFiles&&(t.extendedSourceFiles=gs(S.extendedSourceFiles.keys())),d.options=wk(S.options,d.options),d.watchOptions=d.watchOptions&&S.watchOptions?wk(S.watchOptions,d.watchOptions):d.watchOptions||S.watchOptions}return d;function y(S,T){const k=z9e(t,T,n,o,c,u,S);if(k&&j9e(k)){const w=k.raw;let P;const F=J=>{w[J]&&(S[J]=nr(w[J],U=>F_(U)?U:Mn(P||(P=Y4(Un(T),i,nu(n.useCaseSensitiveFileNames))),U)))};F("include"),F("exclude"),F("files"),w.compileOnSave!==void 0&&(S.compileOnSave=w.compileOnSave),wk(S.options,k.options),S.watchOptions=S.watchOptions&&k.watchOptions?wk({},S.watchOptions,k.watchOptions):S.watchOptions||k.watchOptions}}}function B9e(e,t,n,i,s){Za(e,"excludes")&&s.push(gc(p.Unknown_option_excludes_Did_you_mean_exclude));const o=h2e(e.compilerOptions,n,s,i),c=y2e(e.typeAcquisition,n,s,i),u=V9e(e.watchOptions,n,s);e.compileOnSave=W9e(e,n,s);const f=e.extends||e.extends===""?f2e(e.extends,t,n,i,s):void 0;return{raw:e,options:o,watchOptions:u,typeAcquisition:c,extendedConfigPath:f}}function f2e(e,t,n,i,s,o,c,u){let f;const g=i?o2e(i,n):n;if(ls(e))f=p2e(e,t,g,s,c,u);else if(ts(e)){f=[];for(let d=0;dJ.name===T)&&(g=_r(g,w.name))))}}function p2e(e,t,n,i,s,o){if(e=iu(e),F_(e)||Vi(e,"./")||Vi(e,"../")){let u=Xi(e,n);if(!t.fileExists(u)&&!Yo(u,".json")&&(u=`${u}.json`,!t.fileExists(u))){i.push(z1(o,s,p.File_0_not_found,e));return}return u}const c=dse(e,Mn(n,"tsconfig.json"),t);if(c.resolvedModule)return c.resolvedModule.resolvedFileName;e===""?i.push(z1(o,s,p.Compiler_option_0_cannot_be_given_an_empty_string,"extends")):i.push(z1(o,s,p.File_0_not_found,e))}function z9e(e,t,n,i,s,o,c){const u=n.useCaseSensitiveFileNames?t:km(t);let f,g,d;if(o&&(f=o.get(u))?{extendedResult:g,extendedConfig:d}=f:(g=Vie(t,y=>n.readFile(y)),g.parseDiagnostics.length||(d=_2e(void 0,g,n,Un(t),wc(t),i,s,o)),o&&o.set(u,{extendedResult:g,extendedConfig:d})),e&&((c.extendedSourceFiles??(c.extendedSourceFiles=new Set)).add(g.fileName),g.extendedSourceFiles))for(const y of g.extendedSourceFiles)c.extendedSourceFiles.add(y);if(g.parseDiagnostics.length){s.push(...g.parseDiagnostics);return}return d}function W9e(e,t,n){if(!Za(e,Kw.name))return!1;const i=tS(Kw,e.compileOnSave,t,n);return typeof i=="boolean"&&i}function d2e(e,t,n){const i=[];return{options:h2e(e,t,i,n),errors:i}}function m2e(e,t,n){const i=[];return{options:y2e(e,t,i,n),errors:i}}function g2e(e){return e&&wc(e)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function h2e(e,t,n,i){const s=g2e(i);return qie(Xve(),e,t,s,iA,n),i&&(s.configFilePath=iu(i)),s}function gU(e){return{enable:!!e&&wc(e)==="jsconfig.json",include:[],exclude:[]}}function y2e(e,t,n,i){const s=gU(i);return qie(Yve(),e,t,s,ese,n),s}function V9e(e,t,n){return qie(Qve(),e,t,void 0,e9,n)}function qie(e,t,n,i,s,o){if(t){for(const c in t){const u=e.get(c);u?(i||(i={}))[u.name]=tS(u,t[c],n,o):o.push(zie(c,s))}return i}}function z1(e,t,n,...i){return e&&t?mp(e,t,n,...i):gc(n,...i)}function tS(e,t,n,i,s,o,c){if(e.isCommandLineOnly){i.push(z1(c,s==null?void 0:s.name,p.Option_0_can_only_be_specified_on_command_line,e.name));return}if(Kve(e,t)){const u=e.type;if(u==="list"&&ts(t))return b2e(e,t,n,i,s,o,c);if(u==="listOrElement")return ts(t)?b2e(e,t,n,i,s,o,c):tS(e.element,t,n,i,s,o,c);if(!ls(e.type))return v2e(e,t,i,o,c);const f=vx(e,t,i,o,c);return Zw(f)?f:U9e(e,n,f)}else i.push(z1(c,o,p.Compiler_option_0_requires_a_value_of_type_1,e.name,fU(e)))}function U9e(e,t,n){return e.isFilePath&&(n=Xi(n,t),n===""&&(n=".")),n}function vx(e,t,n,i,s){var o;if(Zw(t))return;const c=(o=e.extraValidation)==null?void 0:o.call(e,t);if(!c)return t;n.push(z1(s,i,...c))}function v2e(e,t,n,i,s){if(Zw(t))return;const o=t.toLowerCase(),c=e.type.get(o);if(c!==void 0)return vx(e,c,n,i,s);n.push(zve(e,(u,...f)=>z1(s,i,u,...f)))}function b2e(e,t,n,i,s,o,c){return An(nr(t,(u,f)=>tS(e.element,u,n,i,s,o==null?void 0:o.elements[f],c)),u=>e.listPreserveFalsyValues?!0:!!u)}function P3(e,t,n,i,s=Ve){t=Hs(t);const o=nu(i.useCaseSensitiveFileNames),c=new Map,u=new Map,f=new Map,{validatedFilesSpec:g,validatedIncludeSpecs:d,validatedExcludeSpecs:y}=e,S=UE(n,s),T=rw(n,S);if(g)for(const F of g){const J=Xi(F,t);c.set(o(J),J)}let k;if(d&&d.length>0)for(const F of i.readDirectory(t,Mp(T),y,d,void 0)){if(Zo(F,".json")){if(!k){const $=d.filter(re=>Yo(re,".json")),j=nr(gF($,t,"files"),re=>`^${re}$`);k=j?j.map(re=>sy(re,i.useCaseSensitiveFileNames)):Ve}if(vc(k,$=>$.test(F))!==-1){const $=o(F);!c.has($)&&!f.has($)&&f.set($,F)}continue}if(G9e(F,c,u,S,o))continue;$9e(F,u,S,o);const J=o(F);!c.has(J)&&!u.has(J)&&u.set(J,F)}const w=gs(c.values()),P=gs(u.values());return w.concat(P,gs(f.values()))}function Hie(e,t,n,i,s){const{validatedFilesSpec:o,validatedIncludeSpecs:c,validatedExcludeSpecs:u}=t;if(!gr(c)||!gr(u))return!1;n=Hs(n);const f=nu(i);if(o){for(const g of o)if(f(Xi(g,n))===e)return!1}return T2e(e,u,i,s,n)}function S2e(e){const t=Vi(e,"**/")?0:e.indexOf("/**/");return t===-1?!1:(Yo(e,"/..")?e.length:e.lastIndexOf("/../"))>t}function $O(e,t,n,i){return T2e(e,An(t,s=>!S2e(s)),n,i)}function T2e(e,t,n,i,s){const o=VE(t,Mn(Hs(i),s),"exclude"),c=o&&sy(o,n);return c?c.test(e)?!0:!kT(e)&&c.test(ul(e)):!1}function x2e(e,t,n,i,s){return e.filter(c=>{if(!ls(c))return!1;const u=Gie(c,n);return u!==void 0&&t.push(o(...u)),u===void 0});function o(c,u){const f=S5(i,s,u);return z1(i,f,c,u)}}function Gie(e,t){if(E.assert(typeof e=="string"),t&&F2e.test(e))return[p.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e];if(S2e(e))return[p.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]}function q9e({validatedIncludeSpecs:e,validatedExcludeSpecs:t},n,i){const s=VE(t,n,"exclude"),o=s&&new RegExp(s,i?"":"i"),c={},u=new Map;if(e!==void 0){const f=[];for(const g of e){const d=Hs(Mn(n,g));if(o&&o.test(d))continue;const y=H9e(d,i);if(y){const{key:S,path:T,flags:k}=y,w=u.get(S),P=w!==void 0?c[w]:void 0;(P===void 0||PGc(e,c)?c:void 0);if(!o)return!1;for(const c of o){if(Zo(e,c)&&(c!==".ts"||!Zo(e,".d.ts")))return!1;const u=s(N1(e,c));if(t.has(u)||n.has(u)){if(c===".d.ts"&&(Zo(e,".js")||Zo(e,".jsx")))continue;return!0}}return!1}function $9e(e,t,n,i){const s=er(n,o=>Gc(e,o)?o:void 0);if(s)for(let o=s.length-1;o>=0;o--){const c=s[o];if(Zo(e,c))return;const u=i(N1(e,c));t.delete(u)}}function Xie(e){const t={};for(const n in e)if(Za(e,n)){const i=lU(n);i!==void 0&&(t[n]=Qie(e[n],i))}return t}function Qie(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(!ts(e))return Qie(e,t.element);case"list":const n=t.element;return ts(e)?Ri(e,i=>Qie(i,n)):"";default:return _l(t.type,(i,s)=>{if(i===e)return s})}}function Yie(e){switch(e.type){case"number":return 1;case"boolean":return!0;case"string":const t=e.defaultValueDescription;return e.isFilePath?`./${t&&typeof t=="string"?t:""}`:"";case"list":return[];case"listOrElement":return Yie(e.element);case"object":return{};default:const n=e7(e.type.keys());return n!==void 0?n:E.fail("Expected 'option.type' to have entries.")}}var Kw,Zie,D3,Kie,eA,XO,ZC,tA,rA,hU,yU,Pg,vU,bU,SU,QO,YO,TU,xU,kU,ZO,nA,k2e,C2e,KO,iA,E2e,P2e,D2e,ese,w2e,e9,A2e,N2e,I2e,sA,tse,rse,nse,ise,t9,F2e,O2e,X9e=wt({"src/compiler/commandLineParser.ts"(){Fs(),Kw={name:"compileOnSave",type:"boolean",defaultValueDescription:!1},Zie=new Map(Object.entries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5})),D3=new Map(j4(Zie.entries(),([e,t])=>[""+t,e])),Kie=[["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"]],eA=Kie.map(e=>e[0]),XO=new Map(Kie),ZC=[{name:"watchFile",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:p.Watch_and_Build_Modes,description:p.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:p.Watch_and_Build_Modes,description:p.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:p.Watch_and_Build_Modes,description:p.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:"synchronousWatchDirectory",type:"boolean",category:p.Watch_and_Build_Modes,description:p.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:Gie},category:p.Watch_and_Build_Modes,description:p.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:Gie},category:p.Watch_and_Build_Modes,description:p.Remove_a_list_of_files_from_the_watch_mode_s_processing}],tA=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:p.Command_line_Options,description:p.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",isCommandLineOnly:!0,category:p.Command_line_Options,defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:p.Command_line_Options,description:p.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:p.Output_Formatting,description:p.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:p.Compiler_Diagnostics,description:p.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:p.Compiler_Diagnostics,description:p.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:p.Compiler_Diagnostics,description:p.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:p.Output_Formatting,description:p.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:p.Compiler_Diagnostics,description:p.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:p.Compiler_Diagnostics,description:p.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:p.Compiler_Diagnostics,description:p.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:p.FILE_OR_DIRECTORY,category:p.Compiler_Diagnostics,description:p.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,isCommandLineOnly:!0,paramType:p.DIRECTORY,category:p.Compiler_Diagnostics,description:p.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:p.Projects,description:p.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:p.false_unless_composite_is_set},{name:"declaration",shortName:"d",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:p.Emit,transpileOptionValue:void 0,description:p.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:p.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:p.Emit,transpileOptionValue:void 0,defaultValueDescription:!1,description:p.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:p.Emit,description:p.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:p.Emit,defaultValueDescription:!1,description:p.Create_source_map_files_for_emitted_JavaScript_files},{name:"inlineSourceMap",type:"boolean",affectsBuildInfo:!0,category:p.Emit,description:p.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:p.Watch_and_Build_Modes,description:p.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:p.Command_line_Options,isCommandLineOnly:!0,description:p.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:p.Platform_specific}],rA={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:p.VERSION,showInSimplifiedHelpView:!0,category:p.Language_and_Environment,description:p.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},hU={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:p.KIND,showInSimplifiedHelpView:!0,category:p.Modules,description:p.Specify_what_module_code_is_generated,defaultValueDescription:void 0},yU=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:p.Command_line_Options,description:p.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:p.Command_line_Options,description:p.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:p.Command_line_Options,description:p.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:p.Command_line_Options,paramType:p.FILE_OR_DIRECTORY,description:p.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:p.Command_line_Options,description:p.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:p.Command_line_Options,isCommandLineOnly:!0,description:p.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:p.Command_line_Options,isCommandLineOnly:!0,description:p.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},rA,hU,{name:"lib",type:"list",element:{name:"lib",type:XO,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:p.Language_and_Environment,description:p.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:p.JavaScript_Support,description:p.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:p.JavaScript_Support,description:p.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:Zie,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,paramType:p.KIND,showInSimplifiedHelpView:!0,category:p.Language_and_Environment,description:p.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"outFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:p.FILE,showInSimplifiedHelpView:!0,category:p.Emit,description:p.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:p.DIRECTORY,showInSimplifiedHelpView:!0,category:p.Emit,description:p.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:p.LOCATION,category:p.Modules,description:p.Specify_the_root_folder_within_your_source_files,defaultValueDescription:p.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsBuildInfo:!0,isTSConfigOnly:!0,category:p.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:p.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:p.FILE,category:p.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:p.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:p.Emit,defaultValueDescription:!1,description:p.Disable_emitting_comments},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:p.Emit,description:p.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"importHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:p.Emit,description:p.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:p.Emit,description:p.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:p.Emit,description:p.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:p.Interop_Constraints,description:p.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"verbatimModuleSyntax",type:"boolean",category:p.Interop_Constraints,description:p.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:p.Type_Checking,description:p.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:p.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:p.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:p.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:p.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:p.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:p.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:p.false_unless_strict_is_set},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.Ensure_use_strict_is_always_emitted,defaultValueDescription:p.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.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:p.Type_Checking,description:p.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.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:p.Type_Checking,description:p.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:p.STRATEGY,category:p.Modules,description:p.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:p.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:p.Modules,description:p.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:p.Modules,description:p.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:p.Modules,description:p.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:p.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:p.Modules,description:p.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:p.Modules,description:p.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:p.Interop_Constraints,description:p.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:p.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:p.Interop_Constraints,description:p.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:p.Interop_Constraints,description:p.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:p.Modules,description:p.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:p.Modules,description:p.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"allowImportingTsExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Modules,description:p.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:p.Modules,description:p.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:p.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"resolvePackageJsonImports",type:"boolean",affectsModuleResolution:!0,category:p.Modules,description:p.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:p.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"customConditions",type:"list",element:{name:"condition",type:"string"},affectsModuleResolution:!0,category:p.Modules,description:p.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:"sourceRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:p.LOCATION,category:p.Emit,description:p.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:p.LOCATION,category:p.Emit,description:p.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSources",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:p.Emit,description:p.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Language_and_Environment,description:p.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:p.Language_and_Environment,description:p.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:p.Language_and_Environment,description:p.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:p.Language_and_Environment,description:p.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:p.Language_and_Environment,description:p.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:p.Modules,description:p.Enable_importing_json_files,defaultValueDescription:!1},{name:"allowArbitraryExtensions",type:"boolean",affectsProgramStructure:!0,category:p.Modules,description:p.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:p.Backwards_Compatibility,paramType:p.FILE,transpileOptionValue:void 0,description:p.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,affectsBuildInfo:!0,category:p.Language_and_Environment,description:p.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",affectsBuildInfo:!0,category:p.Completeness,description:p.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:p.Backwards_Compatibility,description:p.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:p.Emit,description:p.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:p.NEWLINE,category:p.Emit,description:p.Set_the_newline_character_for_emitting_files,defaultValueDescription:"lf"},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Output_Formatting,description:p.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:p.Language_and_Environment,affectsProgramStructure:!0,description:p.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:p.Modules,description:p.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:p.Emit,description:p.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:p.Editor_Support,description:p.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:p.Projects,description:p.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:p.Projects,description:p.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:p.Projects,description:p.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Backwards_Compatibility,description:p.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:p.Emit,description:p.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:p.Emit,transpileOptionValue:void 0,description:p.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:p.Emit,description:p.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:p.DIRECTORY,category:p.Emit,transpileOptionValue:void 0,description:p.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",affectsBuildInfo:!0,category:p.Completeness,description:p.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Backwards_Compatibility,description:p.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Backwards_Compatibility,description:p.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:p.Interop_Constraints,description:p.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:p.JavaScript_Support,description:p.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:p.Backwards_Compatibility,description:p.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:p.Language_and_Environment,description:p.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:p.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:p.Emit,description:p.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:p.Backwards_Compatibility,description:p.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:p.Specify_a_list_of_language_service_plugins_to_include,category:p.Editor_Support},{name:"moduleDetection",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsSourceFile:!0,affectsModuleResolution:!0,description:p.Control_what_method_is_used_to_detect_module_format_JS_files,category:p.Language_and_Environment,defaultValueDescription:p.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}],Pg=[...tA,...yU],vU=Pg.filter(e=>!!e.affectsSemanticDiagnostics),bU=Pg.filter(e=>!!e.affectsEmit),SU=Pg.filter(e=>!!e.affectsDeclarationPath),QO=Pg.filter(e=>!!e.affectsModuleResolution),YO=Pg.filter(e=>!!e.affectsSourceFile||!!e.affectsBindDiagnostics),TU=Pg.filter(e=>!!e.affectsProgramStructure),xU=Pg.filter(e=>Za(e,"transpileOptionValue")),kU=[{name:"verbose",shortName:"v",category:p.Command_line_Options,description:p.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:p.Command_line_Options,description:p.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:p.Command_line_Options,description:p.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:p.Command_line_Options,description:p.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1}],ZO=[...tA,...kU],nA=[{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}],C2e={diagnostic:p.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:qve},KO={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},iA={alternateMode:C2e,getOptionsNameMap:YC,optionDeclarations:Pg,unknownOptionDiagnostic:p.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:p.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:p.Compiler_option_0_expects_an_argument},P2e={diagnostic:p.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:YC},D2e={alternateMode:P2e,getOptionsNameMap:qve,optionDeclarations:ZO,unknownOptionDiagnostic:p.Unknown_build_option_0,unknownDidYouMeanDiagnostic:p.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:p.Build_option_0_requires_a_value_of_type_1},ese={optionDeclarations:nA,unknownOptionDiagnostic:p.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:p.Unknown_type_acquisition_option_0_Did_you_mean_1},e9={getOptionsNameMap:$ve,optionDeclarations:ZC,unknownOptionDiagnostic:p.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:p.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:p.Watch_option_0_requires_a_value_of_type_1},sA={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:p.File_Management,disallowNullOrUndefined:!0},tse={name:"compilerOptions",type:"object",elementOptions:Xve(),extraKeyDiagnostics:iA},rse={name:"watchOptions",type:"object",elementOptions:Qve(),extraKeyDiagnostics:e9},nse={name:"typeAcquisition",type:"object",elementOptions:Yve(),extraKeyDiagnostics:ese},t9="**/*",F2e=/(^|\/)\*\*\/?$/,O2e=/^[^*?]*(?=\/[^/]*[*?])/}});function Zi(e,t,...n){e.trace(wW(t,...n))}function oh(e,t){return!!e.traceResolution&&t.trace!==void 0}function bx(e,t){let n;if(t&&e){const i=e.contents.packageJsonContent;typeof i.name=="string"&&typeof i.version=="string"&&(n={name:i.name,subModuleName:t.path.slice(e.packageDirectory.length+Io.length),version:i.version})}return t&&{path:t.path,extension:t.ext,packageId:n,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function CU(e){return bx(void 0,e)}function L2e(e){if(e)return E.assert(e.packageId===void 0),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function r9(e){const 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 Q9e(e){const t=[];return e&1&&t.push(...dw),e&2&&t.push(...FC),e&4&&t.push(...pw),e&8&&t.push(".json"),t}function sse(e){if(e)return E.assert(TF(e.extension)),{fileName:e.path,packageId:e.packageId}}function M2e(e,t,n,i,s,o,c,u,f){if(!c.resultFromCache&&!c.compilerOptions.preserveSymlinks&&t&&n&&!t.originalPath&&!Sl(e)){const{resolvedFileName:g,originalPath:d}=B2e(t.path,c.host,c.traceEnabled);d&&(t={...t,path:g,originalPath:d})}return R2e(t,n,i,s,o,c.resultFromCache,u,f)}function R2e(e,t,n,i,s,o,c,u){return o?c!=null&&c.isReadonly?{...o,failedLookupLocations:ase(o.failedLookupLocations,n),affectingLocations:ase(o.affectingLocations,i),resolutionDiagnostics:ase(o.resolutionDiagnostics,s)}:(o.failedLookupLocations=KC(o.failedLookupLocations,n),o.affectingLocations=KC(o.affectingLocations,i),o.resolutionDiagnostics=KC(o.resolutionDiagnostics,s),o):{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:w3(n),affectingLocations:w3(i),resolutionDiagnostics:w3(s),alternateResult:u}}function w3(e){return e.length?e:void 0}function KC(e,t){return t!=null&&t.length?e!=null&&e.length?(e.push(...t),e):t:e}function ase(e,t){return e!=null&&e.length?t.length?[...e,...t]:e.slice():w3(t)}function j2e(e,t,n,i){if(!Za(e,t)){i.traceEnabled&&Zi(i.host,p.package_json_does_not_have_a_0_field,t);return}const s=e[t];if(typeof s!==n||s===null){i.traceEnabled&&Zi(i.host,p.Expected_type_of_0_field_in_package_json_to_be_1_got_2,t,n,s===null?"null":typeof s);return}return s}function EU(e,t,n,i){const s=j2e(e,t,"string",i);if(s===void 0)return;if(!s){i.traceEnabled&&Zi(i.host,p.package_json_had_a_falsy_0_field,t);return}const o=Hs(Mn(n,s));return i.traceEnabled&&Zi(i.host,p.package_json_has_0_field_1_that_references_2,t,s,o),o}function Y9e(e,t,n){return EU(e,"typings",t,n)||EU(e,"types",t,n)}function Z9e(e,t,n){return EU(e,"tsconfig",t,n)}function K9e(e,t,n){return EU(e,"main",t,n)}function eLe(e,t){const n=j2e(e,"typesVersions","object",t);if(n!==void 0)return t.traceEnabled&&Zi(t.host,p.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),n}function tLe(e,t){const n=eLe(e,t);if(n===void 0)return;if(t.traceEnabled)for(const c in n)Za(n,c)&&!TD.tryParse(c)&&Zi(t.host,p.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,c);const i=n9(n);if(!i){t.traceEnabled&&Zi(t.host,p.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,R0);return}const{version:s,paths:o}=i;if(typeof o!="object"){t.traceEnabled&&Zi(t.host,p.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${s}']`,"object",typeof o);return}return i}function n9(e){bse||(bse=new Rp(yf));for(const t in e){if(!Za(e,t))continue;const n=TD.tryParse(t);if(n!==void 0&&n.test(bse))return{version:t,paths:e[t]}}}function A3(e,t){if(e.typeRoots)return e.typeRoots;let n;if(e.configFilePath?n=Un(e.configFilePath):t.getCurrentDirectory&&(n=t.getCurrentDirectory()),n!==void 0)return rLe(n)}function rLe(e){let t;return Jp(Hs(e),n=>{const i=Mn(n,obe);(t??(t=[])).push(i)}),t}function nLe(e,t,n){const i=typeof n.useCaseSensitiveFileNames=="function"?n.useCaseSensitiveFileNames():n.useCaseSensitiveFileNames;return Gg(e,t,!i)===0}function B2e(e,t,n){const i=mLe(e,t,n),s=nLe(e,i,t);return{resolvedFileName:s?e:i,originalPath:s?void 0:e}}function J2e(e,t,n){const i=Yo(e,"/node_modules/@types")||Yo(e,"/node_modules/@types/")?ibe(t,n):t;return Mn(e,i)}function ose(e,t,n,i,s,o,c){E.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.");const u=oh(n,i);s&&(n=s.commandLine.options);const f=t?Un(t):void 0;let g=f?o==null?void 0:o.getFromDirectoryCache(e,c,f,s):void 0;if(!g&&f&&!Sl(e)&&(g=o==null?void 0:o.getFromNonRelativeNameCache(e,c,f,s)),g)return u&&(Zi(i,p.Resolving_type_reference_directive_0_containing_file_1,e,t),s&&Zi(i,p.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName),Zi(i,p.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,f),j(g)),g;const d=A3(n,i);u&&(t===void 0?d===void 0?Zi(i,p.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):Zi(i,p.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,d):d===void 0?Zi(i,p.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,t):Zi(i,p.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,t,d),s&&Zi(i,p.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName));const y=[],S=[];let T=cse(n);c!==void 0&&(T|=30);const k=Ru(n);c===99&&3<=k&&k<=99&&(T|=32);const w=T&8?hy(n,c):[],P=[],F={compilerOptions:n,host:i,traceEnabled:u,failedLookupLocations:y,affectingLocations:S,packageJsonInfoCache:o,features:T,conditions:w,requestContainingDirectory:f,reportDiagnostic:Y=>void P.push(Y),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};let J=re(),U=!0;J||(J=R(),U=!1);let $;if(J){const{fileName:Y,packageId:ue}=J;let pe=Y,H;n.preserveSymlinks||({resolvedFileName:pe,originalPath:H}=B2e(Y,i,u)),$={primary:U,resolvedFileName:pe,originalPath:H,packageId:ue,isExternalLibraryImport:W1(Y)}}return g={resolvedTypeReferenceDirective:$,failedLookupLocations:w3(y),affectingLocations:w3(S),resolutionDiagnostics:w3(P)},f&&o&&!o.isReadonly&&(o.getOrCreateCacheForDirectory(f,s).set(e,c,g),Sl(e)||o.getOrCreateCacheForNonRelativeName(e,c,s).set(f,g)),u&&j(g),g;function j(Y){var ue;(ue=Y.resolvedTypeReferenceDirective)!=null&&ue.resolvedFileName?Y.resolvedTypeReferenceDirective.packageId?Zi(i,p.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,Y.resolvedTypeReferenceDirective.resolvedFileName,K0(Y.resolvedTypeReferenceDirective.packageId),Y.resolvedTypeReferenceDirective.primary):Zi(i,p.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,Y.resolvedTypeReferenceDirective.resolvedFileName,Y.resolvedTypeReferenceDirective.primary):Zi(i,p.Type_reference_directive_0_was_not_resolved,e)}function re(){if(d&&d.length)return u&&Zi(i,p.Resolving_with_primary_search_path_0,d.join(", ")),$o(d,Y=>{const ue=J2e(Y,e,F),pe=dd(Y,i);if(!pe&&u&&Zi(i,p.Directory_0_does_not_exist_skipping_all_lookups_in_it,Y),n.typeRoots){const H=r6(4,ue,!pe,F);if(H){const q=oA(H.path),ee=q?m2(q,!1,F):void 0;return sse(bx(ee,H))}}return sse(gse(4,ue,!pe,F))});u&&Zi(i,p.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function R(){const Y=t&&Un(t);if(Y!==void 0){let ue;if(!n.typeRoots||!Yo(t,u6))if(u&&Zi(i,p.Looking_up_in_node_modules_folder_initial_location_0,Y),Sl(e)){const{path:pe}=H2e(Y,e);ue=NU(4,pe,!1,F,!0)}else{const pe=ebe(4,e,Y,F,void 0,void 0);ue=pe&&pe.value}else u&&Zi(i,p.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);return sse(ue)}else u&&Zi(i,p.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}function cse(e){let t=0;switch(Ru(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 hy(e,t){const n=Ru(e);if(t===void 0){if(n===100)t=99;else if(n===2)return[]}const i=t===99?["import"]:["require"];return e.noDtsResolution||i.push("types"),n!==100&&i.push("node"),es(i,e.customConditions)}function PU(e,t,n,i,s){const o=cA(s==null?void 0:s.getPackageJsonInfoCache(),i,n);return Jp(t,c=>{if(wc(c)!=="node_modules"){const u=Mn(c,"node_modules"),f=Mn(u,e);return m2(f,!1,o)}})}function i9(e,t){if(e.types)return e.types;const n=[];if(t.directoryExists&&t.getDirectories){const i=A3(e,t);if(i){for(const s of i)if(t.directoryExists(s))for(const o of t.getDirectories(s)){const c=Hs(o),u=Mn(s,c,"package.json");if(!(t.fileExists(u)&&RE(u,t).typings===null)){const g=wc(c);g.charCodeAt(0)!==46&&n.push(g)}}}}return n}function s9(e){return!!(e!=null&&e.contents)}function lse(e){return!!e&&!e.contents}function use(e){var t;if(e===null||typeof e!="object")return""+e;if(ts(e))return`[${(t=e.map(i=>use(i)))==null?void 0:t.join(",")}]`;let n="{";for(const i in e)Za(e,i)&&(n+=`${i}: ${use(e[i])}`);return n+"}"}function DU(e,t){return t.map(n=>use(fF(e,n))).join("|")+`|${e.pathsBasePath}`}function wU(e,t){const n=new Map,i=new Map;let s=new Map;return e&&n.set(e,s),{getMapOfCacheRedirects:o,getOrCreateMapOfCacheRedirects:c,update:u,clear:g,getOwnMap:()=>s};function o(y){return y?f(y.commandLine.options,!1):s}function c(y){return y?f(y.commandLine.options,!0):s}function u(y){e!==y&&(e?s=f(y,!0):n.set(y,s),e=y)}function f(y,S){let T=n.get(y);if(T)return T;const k=d(y);if(T=i.get(k),!T){if(e){const w=d(e);w===k?T=s:i.has(w)||i.set(w,s)}S&&(T??(T=new Map)),T&&i.set(k,T)}return T&&n.set(y,T),T}function g(){const y=e&&t.get(e);s.clear(),n.clear(),t.clear(),i.clear(),e&&(y&&t.set(e,y),n.set(e,s))}function d(y){let S=t.get(y);return S||t.set(y,S=DU(y,QO)),S}}function iLe(e,t){let n;return{getPackageJsonInfo:i,setPackageJsonInfo:s,clear:o,getInternalMap:c};function i(u){return n==null?void 0:n.get(No(u,e,t))}function s(u,f){(n||(n=new Map)).set(No(u,e,t),f)}function o(){n=void 0}function c(){return n}}function z2e(e,t,n,i){const s=e.getOrCreateMapOfCacheRedirects(t);let o=s.get(n);return o||(o=i(),s.set(n,o)),o}function sLe(e,t,n,i){const s=wU(n,i);return{getFromDirectoryCache:f,getOrCreateCacheForDirectory:u,clear:o,update:c,directoryToModuleNameMap:s};function o(){s.clear()}function c(g){s.update(g)}function u(g,d){const y=No(g,e,t);return z2e(s,d,y,()=>Sx())}function f(g,d,y,S){var T,k;const w=No(y,e,t);return(k=(T=s.getMapOfCacheRedirects(S))==null?void 0:T.get(w))==null?void 0:k.get(g,d)}}function N3(e,t){return t===void 0?e:`${t}|${e}`}function Sx(){const e=new Map,t=new Map,n={get(s,o){return e.get(i(s,o))},set(s,o,c){return e.set(i(s,o),c),n},delete(s,o){return e.delete(i(s,o)),n},has(s,o){return e.has(i(s,o))},forEach(s){return e.forEach((o,c)=>{const[u,f]=t.get(c);return s(o,u,f)})},size(){return e.size}};return n;function i(s,o){const c=N3(s,o);return t.set(c,[s,o]),c}}function aLe(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function oLe(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function cLe(e,t,n,i,s){const o=wU(n,s);return{getFromNonRelativeNameCache:f,getOrCreateCacheForNonRelativeName:g,clear:c,update:u};function c(){o.clear()}function u(y){o.update(y)}function f(y,S,T,k){var w,P;return E.assert(!Sl(y)),(P=(w=o.getMapOfCacheRedirects(k))==null?void 0:w.get(N3(y,S)))==null?void 0:P.get(T)}function g(y,S,T){return E.assert(!Sl(y)),z2e(o,T,N3(y,S),d)}function d(){const y=new Map;return{get:S,set:T};function S(w){return y.get(No(w,e,t))}function T(w,P){const F=No(w,e,t);if(y.has(F))return;y.set(F,P);const J=i(P),U=J&&k(F,J);let $=F;for(;$!==U;){const j=Un($);if(j===$||y.has(j))break;y.set(j,P),$=j}}function k(w,P){const F=No(Un(P),e,t);let J=0;const U=Math.min(w.length,F.length);for(;Ji,clearAllExceptPackageJsonInfoCache:g,optionsToRedirectsKey:o};function f(){g(),i.clear()}function g(){c.clear(),u.clear()}function d(y){c.update(y),u.update(y)}}function e6(e,t,n,i,s){const o=W2e(e,t,n,i,aLe,s);return o.getOrCreateCacheForModuleName=(c,u,f)=>o.getOrCreateCacheForNonRelativeName(c,u,f),o}function a9(e,t,n,i,s){return W2e(e,t,n,i,oLe,s)}function AU(e){return{moduleResolution:2,traceResolution:e.traceResolution}}function o9(e,t,n,i,s){return t6(e,t,AU(n),i,s)}function V2e(e,t,n,i){const s=Un(t);return n.getFromDirectoryCache(e,i,s,void 0)}function t6(e,t,n,i,s,o,c){var u,f,g;const d=oh(n,i);o&&(n=o.commandLine.options),d&&(Zi(i,p.Resolving_module_0_from_1,e,t),o&&Zi(i,p.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName));const y=Un(t);let S=s==null?void 0:s.getFromDirectoryCache(e,c,y,o);if(S)d&&Zi(i,p.Resolution_for_module_0_was_found_in_cache_from_location_1,e,y);else{let T=n.moduleResolution;switch(T===void 0?(T=Ru(n),d&&Zi(i,p.Module_resolution_kind_is_not_specified_using_0,Rk[T])):d&&Zi(i,p.Explicitly_specified_module_resolution_kind_Colon_0,Rk[T]),(u=wu)==null||u.logStartResolveModule(e),T){case 3:S=fLe(e,t,n,i,s,o,c);break;case 99:S=pLe(e,t,n,i,s,o,c);break;case 2:S=pse(e,t,n,i,s,o,c?hy(n,c):void 0);break;case 1:S=yse(e,t,n,i,s,o);break;case 100:S=fse(e,t,n,i,s,o,c?hy(n,c):void 0);break;default:return E.fail(`Unexpected moduleResolution: ${T}`)}S&&S.resolvedModule&&((f=wu)==null||f.logInfoEvent(`Module "${e}" resolved to "${S.resolvedModule.resolvedFileName}"`)),(g=wu)==null||g.logStopResolveModule(S&&S.resolvedModule?""+S.resolvedModule.resolvedFileName:"null"),s&&!s.isReadonly&&(s.getOrCreateCacheForDirectory(y,o).set(e,c,S),Sl(e)||s.getOrCreateCacheForNonRelativeName(e,c,o).set(y,S))}return d&&(S.resolvedModule?S.resolvedModule.packageId?Zi(i,p.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,S.resolvedModule.resolvedFileName,K0(S.resolvedModule.packageId)):Zi(i,p.Module_name_0_was_successfully_resolved_to_1,e,S.resolvedModule.resolvedFileName):Zi(i,p.Module_name_0_was_not_resolved,e)),S}function U2e(e,t,n,i,s){const o=lLe(e,t,i,s);return o?o.value:Sl(t)?uLe(e,t,n,i,s):_Le(e,t,i,s)}function lLe(e,t,n,i){var s;const{baseUrl:o,paths:c,configFile:u}=i.compilerOptions;if(c&&!nf(t)){i.traceEnabled&&(o&&Zi(i.host,p.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,o,t),Zi(i.host,p.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t));const f=G5(i.compilerOptions,i.host),g=u!=null&&u.configFileSpecs?(s=u.configFileSpecs).pathPatterns||(s.pathPatterns=SF(c)):void 0;return hse(e,t,f,c,g,n,!1,i)}}function uLe(e,t,n,i,s){if(!s.compilerOptions.rootDirs)return;s.traceEnabled&&Zi(s.host,p.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);const o=Hs(Mn(n,t));let c,u;for(const f of s.compilerOptions.rootDirs){let g=Hs(f);Yo(g,Io)||(g+=Io);const d=Vi(o,g)&&(u===void 0||u.lengthvoid U.push(Y),isConfigLookup:u,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};w&&HT(J)&&Zi(s,p.Resolving_in_0_mode_with_conditions_1,e&32?"ESM":"CJS",$.conditions.map(Y=>`'${Y}'`).join(", "));let j;if(J===2){const Y=c&5,ue=c&-6;j=Y&&R(Y,$)||ue&&R(ue,$)||void 0}else j=R(c,$);let re;if($.resolvedPackageDirectory&&!u&&!Sl(t)){const Y=(j==null?void 0:j.value)&&c&5&&!Y2e(5,j.value.resolved.extension);if((d=j==null?void 0:j.value)!=null&&d.isExternalLibraryImport&&Y&&e&8&&(g!=null&&g.includes("import"))){yy($,p.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);const ue={...$,features:$.features&-9,reportDiagnostic:Ca},pe=R(c&5,ue);(y=pe==null?void 0:pe.value)!=null&&y.isExternalLibraryImport&&(re=pe.value.resolved.path)}else if((!(j!=null&&j.value)||Y)&&J===2){yy($,p.Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update);const ue={...$.compilerOptions,moduleResolution:100},pe={...$,compilerOptions:ue,features:30,conditions:hy(ue),reportDiagnostic:Ca},H=R(c&5,pe);(S=H==null?void 0:H.value)!=null&&S.isExternalLibraryImport&&(re=H.value.resolved.path)}}return M2e(t,(T=j==null?void 0:j.value)==null?void 0:T.resolved,(k=j==null?void 0:j.value)==null?void 0:k.isExternalLibraryImport,P,F,U,$,o,re);function R(Y,ue){const H=U2e(Y,t,n,(q,ee,oe,Se)=>NU(q,ee,oe,Se,!0),ue);if(H)return Cf({resolved:H,isExternalLibraryImport:W1(H.path)});if(Sl(t)){const{path:q,parts:ee}=H2e(n,t),oe=NU(Y,q,!1,ue,!0);return oe&&Cf({resolved:oe,isExternalLibraryImport:bs(ee,"node_modules")})}else{let q;if(e&2&&Vi(t,"#")&&(q=vLe(Y,t,n,ue,o,f)),!q&&e&4&&(q=yLe(Y,t,n,ue,o,f)),!q){if(t.includes(":")){w&&Zi(s,p.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,t,r9(Y));return}w&&Zi(s,p.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,t,r9(Y)),q=ebe(Y,t,n,ue,o,f)}return Y&4&&(q??(q=abe(t,ue))),q&&{value:q.value&&{resolved:q.value,isExternalLibraryImport:!0}}}}}function H2e(e,t){const n=Mn(e,t),i=ll(n),s=Po(i);return{path:s==="."||s===".."?ul(Hs(n)):Hs(n),parts:i}}function mLe(e,t,n){if(!t.realpath)return e;const i=Hs(t.realpath(e));return n&&Zi(t,p.Resolving_real_path_for_0_result_1,e,i),i}function NU(e,t,n,i,s){if(i.traceEnabled&&Zi(i.host,p.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,r9(e)),!qh(t)){if(!n){const c=Un(t);dd(c,i.host)||(i.traceEnabled&&Zi(i.host,p.Directory_0_does_not_exist_skipping_all_lookups_in_it,c),n=!0)}const o=r6(e,t,n,i);if(o){const c=s?oA(o.path):void 0,u=c?m2(c,!1,i):void 0;return bx(u,o)}}if(n||dd(t,i.host)||(i.traceEnabled&&Zi(i.host,p.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),n=!0),!(i.features&32))return gse(e,t,n,i,s)}function W1(e){return e.includes(zm)}function oA(e,t){const n=Hs(e),i=n.lastIndexOf(zm);if(i===-1)return;const s=i+zm.length;let o=G2e(n,s,t);return n.charCodeAt(s)===64&&(o=G2e(n,o,t)),n.slice(0,o)}function G2e(e,t,n){const i=e.indexOf(Io,t+1);return i===-1?n?e.length:t:i}function mse(e,t,n,i){return CU(r6(e,t,n,i))}function r6(e,t,n,i){const s=$2e(e,t,n,i);if(s)return s;if(!(i.features&32)){const o=X2e(t,e,"",n,i);if(o)return o}}function $2e(e,t,n,i){if(!wc(t).includes("."))return;let o=$u(t);o===t&&(o=t.substring(0,t.lastIndexOf(".")));const c=t.substring(o.length);return i.traceEnabled&&Zi(i.host,p.File_name_0_has_a_1_extension_stripping_it,t,c),X2e(o,e,c,n,i)}function IU(e,t,n,i){return e&1&&Gc(t,dw)||e&4&&Gc(t,pw)?FU(t,n,i)!==void 0?{path:t,ext:tF(t),resolvedUsingTsExtension:void 0}:void 0:i.isConfigLookup&&e===8&&Zo(t,".json")?FU(t,n,i)!==void 0?{path:t,ext:".json",resolvedUsingTsExtension:void 0}:void 0:$2e(e,t,n,i)}function X2e(e,t,n,i,s){if(!i){const c=Un(e);c&&(i=!dd(c,s.host))}switch(n){case".mjs":case".mts":case".d.mts":return t&1&&o(".mts",n===".mts"||n===".d.mts")||t&4&&o(".d.mts",n===".mts"||n===".d.mts")||t&2&&o(".mjs")||void 0;case".cjs":case".cts":case".d.cts":return t&1&&o(".cts",n===".cts"||n===".d.cts")||t&4&&o(".d.cts",n===".cts"||n===".d.cts")||t&2&&o(".cjs")||void 0;case".json":return t&4&&o(".d.json.ts")||t&8&&o(".json")||void 0;case".tsx":case".jsx":return t&1&&(o(".tsx",n===".tsx")||o(".ts",n===".tsx"))||t&4&&o(".d.ts",n===".tsx")||t&2&&(o(".jsx")||o(".js"))||void 0;case".ts":case".d.ts":case".js":case"":return t&1&&(o(".ts",n===".ts"||n===".d.ts")||o(".tsx",n===".ts"||n===".d.ts"))||t&4&&o(".d.ts",n===".ts"||n===".d.ts")||t&2&&(o(".js")||o(".jsx"))||s.isConfigLookup&&o(".json")||void 0;default:return t&4&&!Hl(e+n)&&o(`.d${n}.ts`)||void 0}function o(c,u){const f=FU(e+c,i,s);return f===void 0?void 0:{path:f,ext:c,resolvedUsingTsExtension:!s.candidateIsFromPackageJsonField&&u}}}function FU(e,t,n){var i;if(!((i=n.compilerOptions.moduleSuffixes)!=null&&i.length))return Q2e(e,t,n);const s=nh(e)??"",o=s?iw(e,s):e;return er(n.compilerOptions.moduleSuffixes,c=>Q2e(o+c+s,t,n))}function Q2e(e,t,n){var i;if(!t){if(n.host.fileExists(e))return n.traceEnabled&&Zi(n.host,p.File_0_exists_use_it_as_a_name_resolution_result,e),e;n.traceEnabled&&Zi(n.host,p.File_0_does_not_exist,e)}(i=n.failedLookupLocations)==null||i.push(e)}function gse(e,t,n,i,s=!0){const o=s?m2(t,n,i):void 0,c=o&&o.contents.packageJsonContent,u=o&&c9(o,i);return bx(o,LU(e,t,n,i,c,u))}function OU(e,t,n,i,s){if(!s&&e.contents.resolvedEntrypoints!==void 0)return e.contents.resolvedEntrypoints;let o;const c=5|(s?2:0),u=cse(t),f=cA(i==null?void 0:i.getPackageJsonInfoCache(),n,t);f.conditions=hy(t),f.requestContainingDirectory=e.packageDirectory;const g=LU(c,e.packageDirectory,!1,f,e.contents.packageJsonContent,c9(e,f));if(o=_r(o,g==null?void 0:g.path),u&8&&e.contents.packageJsonContent.exports){const d=Nv([hy(t,99),hy(t,1)],_d);for(const y of d){const S={...f,failedLookupLocations:[],conditions:y,host:n},T=gLe(e,e.contents.packageJsonContent.exports,S,c);if(T)for(const k of T)o=Hg(o,k.path)}}return e.contents.resolvedEntrypoints=o||!1}function gLe(e,t,n,i){let s;if(ts(t))for(const c of t)o(c);else if(typeof t=="object"&&t!==null&&l9(t))for(const c in t)o(t[c]);else o(t);return s;function o(c){var u,f;if(typeof c=="string"&&Vi(c,"./"))if(c.includes("*")&&n.host.readDirectory){if(c.indexOf("*")!==c.lastIndexOf("*"))return!1;n.host.readDirectory(e.packageDirectory,Q9e(i),void 0,[vee(XT(c,"**/*"),".*")]).forEach(g=>{s=Hg(s,{path:g,ext:jk(g),resolvedUsingTsExtension:void 0})})}else{const g=ll(c).slice(2);if(g.includes("..")||g.includes(".")||g.includes("node_modules"))return!1;const d=Mn(e.packageDirectory,c),y=Xi(d,(f=(u=n.host).getCurrentDirectory)==null?void 0:f.call(u)),S=IU(i,y,!1,n);if(S)return s=Hg(s,S,(T,k)=>T.path===k.path),!0}else if(Array.isArray(c)){for(const g of c)if(o(g))return!0}else if(typeof c=="object"&&c!==null)return er(ug(c),g=>{if(g==="default"||bs(n.conditions,g)||_A(n.conditions,g))return o(c[g]),!0})}}function cA(e,t,n){return{host:t,compilerOptions:n,traceEnabled:oh(n,t),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:e,features:0,conditions:Ve,requestContainingDirectory:void 0,reportDiagnostic:Ca,isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1}}function lA(e,t){const n=ll(e);for(n.pop();n.length>0;){const i=m2(V0(n),!1,t);if(i)return i;n.pop()}}function c9(e,t){return e.contents.versionPaths===void 0&&(e.contents.versionPaths=tLe(e.contents.packageJsonContent,t)||!1),e.contents.versionPaths||void 0}function m2(e,t,n){var i,s,o,c,u,f;const{host:g,traceEnabled:d}=n,y=Mn(e,"package.json");if(t){(i=n.failedLookupLocations)==null||i.push(y);return}const S=(s=n.packageJsonInfoCache)==null?void 0:s.getPackageJsonInfo(y);if(S!==void 0){if(s9(S))return d&&Zi(g,p.File_0_exists_according_to_earlier_cached_lookups,y),(o=n.affectingLocations)==null||o.push(y),S.packageDirectory===e?S:{packageDirectory:e,contents:S.contents};S.directoryExists&&d&&Zi(g,p.File_0_does_not_exist_according_to_earlier_cached_lookups,y),(c=n.failedLookupLocations)==null||c.push(y);return}const T=dd(e,g);if(T&&g.fileExists(y)){const k=RE(y,g);d&&Zi(g,p.Found_package_json_at_0,y);const w={packageDirectory:e,contents:{packageJsonContent:k,versionPaths:void 0,resolvedEntrypoints:void 0}};return n.packageJsonInfoCache&&!n.packageJsonInfoCache.isReadonly&&n.packageJsonInfoCache.setPackageJsonInfo(y,w),(u=n.affectingLocations)==null||u.push(y),w}else T&&d&&Zi(g,p.File_0_does_not_exist,y),n.packageJsonInfoCache&&!n.packageJsonInfoCache.isReadonly&&n.packageJsonInfoCache.setPackageJsonInfo(y,{packageDirectory:e,directoryExists:T}),(f=n.failedLookupLocations)==null||f.push(y)}function LU(e,t,n,i,s,o){let c;s&&(i.isConfigLookup?c=Z9e(s,t,i):c=e&4&&Y9e(s,t,i)||e&7&&K9e(s,t,i)||void 0);const u=(S,T,k,w)=>{const P=IU(S,T,k,w);if(P)return CU(P);const F=S===4?5:S,J=w.features,U=w.candidateIsFromPackageJsonField;w.candidateIsFromPackageJsonField=!0,(s==null?void 0:s.type)!=="module"&&(w.features&=-33);const $=NU(F,T,k,w,!1);return w.features=J,w.candidateIsFromPackageJsonField=U,$},f=c?!dd(Un(c),i.host):void 0,g=n||!dd(t,i.host),d=Mn(t,i.isConfigLookup?"tsconfig":"index");if(o&&(!c||jp(t,c))){const S=Bp(t,c||d,!1);i.traceEnabled&&Zi(i.host,p.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,o.version,yf,S);const T=hse(e,S,t,o.paths,void 0,u,f||g,i);if(T)return L2e(T.value)}const y=c&&L2e(u(e,c,f,i));if(y)return y;if(!(i.features&32))return r6(e,d,g,i)}function Y2e(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 uA(e){let t=e.indexOf(Io);return e[0]==="@"&&(t=e.indexOf(Io,t+1)),t===-1?{packageName:e,rest:""}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function l9(e){return Wi(ug(e),t=>Vi(t,"."))}function hLe(e){return!ct(ug(e),t=>Vi(t,"."))}function yLe(e,t,n,i,s,o){var c,u;const f=Xi(Mn(n,"dummy"),(u=(c=i.host).getCurrentDirectory)==null?void 0:u.call(c)),g=lA(f,i);if(!g||!g.contents.packageJsonContent.exports||typeof g.contents.packageJsonContent.name!="string")return;const d=ll(t),y=ll(g.contents.packageJsonContent.name);if(!Wi(y,(P,F)=>d[F]===P))return;const S=d.slice(y.length),T=gr(S)?`.${Io}${S.join(Io)}`:".";if(cy(i.compilerOptions)&&!W1(n))return MU(g,e,T,i,s,o);const k=e&5,w=e&-6;return MU(g,k,T,i,s,o)||MU(g,w,T,i,s,o)}function MU(e,t,n,i,s,o){if(e.contents.packageJsonContent.exports){if(n==="."){let c;if(typeof e.contents.packageJsonContent.exports=="string"||Array.isArray(e.contents.packageJsonContent.exports)||typeof e.contents.packageJsonContent.exports=="object"&&hLe(e.contents.packageJsonContent.exports)?c=e.contents.packageJsonContent.exports:Za(e.contents.packageJsonContent.exports,".")&&(c=e.contents.packageJsonContent.exports["."]),c)return K2e(t,i,s,o,n,e,!1)(c,"",!1,".")}else if(l9(e.contents.packageJsonContent.exports)){if(typeof e.contents.packageJsonContent.exports!="object")return i.traceEnabled&&Zi(i.host,p.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,e.packageDirectory),Cf(void 0);const c=Z2e(t,i,s,o,n,e.contents.packageJsonContent.exports,e,!1);if(c)return c}return i.traceEnabled&&Zi(i.host,p.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,e.packageDirectory),Cf(void 0)}}function vLe(e,t,n,i,s,o){var c,u;if(t==="#"||Vi(t,"#/"))return i.traceEnabled&&Zi(i.host,p.Invalid_import_specifier_0_has_no_possible_resolutions,t),Cf(void 0);const f=Xi(Mn(n,"dummy"),(u=(c=i.host).getCurrentDirectory)==null?void 0:u.call(c)),g=lA(f,i);if(!g)return i.traceEnabled&&Zi(i.host,p.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,f),Cf(void 0);if(!g.contents.packageJsonContent.imports)return i.traceEnabled&&Zi(i.host,p.package_json_scope_0_has_no_imports_defined,g.packageDirectory),Cf(void 0);const d=Z2e(e,i,s,o,t,g.contents.packageJsonContent.imports,g,!0);return d||(i.traceEnabled&&Zi(i.host,p.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,g.packageDirectory),Cf(void 0))}function RU(e,t){const n=e.indexOf("*"),i=t.indexOf("*"),s=n===-1?e.length:n+1,o=i===-1?t.length:i+1;return s>o?-1:o>s||n===-1?1:i===-1||e.length>t.length?-1:t.length>e.length?1:0}function Z2e(e,t,n,i,s,o,c,u){const f=K2e(e,t,n,i,s,c,u);if(!Yo(s,Io)&&!s.includes("*")&&Za(o,s)){const y=o[s];return f(y,"",!1,s)}const g=fb(An(ug(o),y=>y.includes("*")||Yo(y,"/")),RU);for(const y of g)if(t.features&16&&d(y,s)){const S=o[y],T=y.indexOf("*"),k=s.substring(y.substring(0,T).length,s.length-(y.length-1-T));return f(S,k,!0,y)}else if(Yo(y,"*")&&Vi(s,y.substring(0,y.length-1))){const S=o[y],T=s.substring(y.length-1);return f(S,T,!0,y)}else if(Vi(s,y)){const S=o[y],T=s.substring(y.length);return f(S,T,!1,y)}function d(y,S){if(Yo(y,"*"))return!1;const T=y.indexOf("*");return T===-1?!1:Vi(S,y.substring(0,T))&&Yo(S,y.substring(T+1))}}function K2e(e,t,n,i,s,o,c){return u;function u(f,g,d,y){if(typeof f=="string"){if(!d&&g.length>0&&!Yo(f,"/"))return t.traceEnabled&&Zi(t.host,p.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,s),Cf(void 0);if(!Vi(f,"./")){if(c&&!Vi(f,"../")&&!Vi(f,"/")&&!F_(f)){const j=d?f.replace(/\*/g,g):f+g;yy(t,p.Using_0_subpath_1_with_target_2,"imports",y,j),yy(t,p.Resolving_module_0_from_1,j,o.packageDirectory+"/");const re=aA(t.features,j,o.packageDirectory+"/",t.compilerOptions,t.host,n,e,!1,i,t.conditions);return Cf(re.resolvedModule?{path:re.resolvedModule.resolvedFileName,extension:re.resolvedModule.extension,packageId:re.resolvedModule.packageId,originalPath:re.resolvedModule.originalPath,resolvedUsingTsExtension:re.resolvedModule.resolvedUsingTsExtension}:void 0)}return t.traceEnabled&&Zi(t.host,p.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,s),Cf(void 0)}const P=(nf(f)?ll(f).slice(1):ll(f)).slice(1);if(P.includes("..")||P.includes(".")||P.includes("node_modules"))return t.traceEnabled&&Zi(t.host,p.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,s),Cf(void 0);const F=Mn(o.packageDirectory,f),J=ll(g);if(J.includes("..")||J.includes(".")||J.includes("node_modules"))return t.traceEnabled&&Zi(t.host,p.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,s),Cf(void 0);t.traceEnabled&&Zi(t.host,p.Using_0_subpath_1_with_target_2,c?"imports":"exports",y,d?f.replace(/\*/g,g):f+g);const U=S(d?F.replace(/\*/g,g):F+g),$=k(U,g,Mn(o.packageDirectory,"package.json"),c);return $||Cf(bx(o,IU(e,U,!1,t)))}else if(typeof f=="object"&&f!==null)if(Array.isArray(f)){if(!gr(f))return t.traceEnabled&&Zi(t.host,p.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,s),Cf(void 0);for(const w of f){const P=u(w,g,d,y);if(P)return P}}else{yy(t,p.Entering_conditional_exports);for(const w of ug(f))if(w==="default"||t.conditions.includes(w)||_A(t.conditions,w)){yy(t,p.Matched_0_condition_1,c?"imports":"exports",w);const P=f[w],F=u(P,g,d,y);if(F)return yy(t,p.Resolved_under_condition_0,w),yy(t,p.Exiting_conditional_exports),F;yy(t,p.Failed_to_resolve_under_condition_0,w)}else yy(t,p.Saw_non_matching_condition_0,w);yy(t,p.Exiting_conditional_exports);return}else if(f===null)return t.traceEnabled&&Zi(t.host,p.package_json_scope_0_explicitly_maps_specifier_1_to_null,o.packageDirectory,s),Cf(void 0);return t.traceEnabled&&Zi(t.host,p.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,s),Cf(void 0);function S(w){var P,F;return w===void 0?w:Xi(w,(F=(P=t.host).getCurrentDirectory)==null?void 0:F.call(P))}function T(w,P){return ul(Mn(w,P))}function k(w,P,F,J){var U,$,j,re;if(!t.isConfigLookup&&(t.compilerOptions.declarationDir||t.compilerOptions.outDir)&&!w.includes("/node_modules/")&&(!t.compilerOptions.configFile||jp(o.packageDirectory,S(t.compilerOptions.configFile.fileName),!jU(t)))){const Y=Zh({useCaseSensitiveFileNames:()=>jU(t)}),ue=[];if(t.compilerOptions.rootDir||t.compilerOptions.composite&&t.compilerOptions.configFilePath){const pe=S(q3(t.compilerOptions,()=>[],(($=(U=t.host).getCurrentDirectory)==null?void 0:$.call(U))||"",Y));ue.push(pe)}else if(t.requestContainingDirectory){const pe=S(Mn(t.requestContainingDirectory,"index.ts")),H=S(q3(t.compilerOptions,()=>[pe,S(F)],((re=(j=t.host).getCurrentDirectory)==null?void 0:re.call(j))||"",Y));ue.push(H);let q=ul(H);for(;q&&q.length>1;){const ee=ll(q);ee.pop();const oe=V0(ee);ue.unshift(oe),q=ul(oe)}}ue.length>1&&t.reportDiagnostic(gc(J?p.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:p.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,P===""?".":P,F));for(const pe of ue){const H=R(pe);for(const q of H)if(jp(q,w,!jU(t))){const ee=w.slice(q.length+1),oe=Mn(pe,ee),Se=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(const ae of Se)if(Zo(oe,ae)){const K=yre(oe);for(const fe of K){if(!Y2e(e,fe))continue;const ke=ID(oe,fe,ae,!jU(t));if(t.host.fileExists(ke))return Cf(bx(o,IU(e,ke,!1,t)))}}}}}return;function R(Y){var ue,pe;const H=t.compilerOptions.configFile?((pe=(ue=t.host).getCurrentDirectory)==null?void 0:pe.call(ue))||"":Y,q=[];return t.compilerOptions.declarationDir&&q.push(S(T(H,t.compilerOptions.declarationDir))),t.compilerOptions.outDir&&t.compilerOptions.outDir!==t.compilerOptions.declarationDir&&q.push(S(T(H,t.compilerOptions.outDir))),q}}}}function _A(e,t){if(!e.includes("types")||!Vi(t,"types@"))return!1;const n=TD.tryParse(t.substring(6));return n?n.test(yf):!1}function ebe(e,t,n,i,s,o){return tbe(e,t,n,i,!1,s,o)}function bLe(e,t,n){return tbe(4,e,t,n,!0,void 0,void 0)}function tbe(e,t,n,i,s,o,c){const u=i.features===0?void 0:i.features&32?99:1,f=e&5,g=e&-6;if(f){yy(i,p.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,r9(f));const y=d(f);if(y)return y}if(g&&!s)return yy(i,p.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,r9(g)),d(g);function d(y){return Jp(iu(n),S=>{if(wc(S)!=="node_modules"){const T=sbe(o,t,u,S,c,i);return T||Cf(rbe(y,t,S,i,s,o,c))}})}}function rbe(e,t,n,i,s,o,c){const u=Mn(n,"node_modules"),f=dd(u,i.host);if(!f&&i.traceEnabled&&Zi(i.host,p.Directory_0_does_not_exist_skipping_all_lookups_in_it,u),!s){const g=nbe(e,t,u,f,i,o,c);if(g)return g}if(e&4){const g=Mn(u,"@types");let d=f;return f&&!dd(g,i.host)&&(i.traceEnabled&&Zi(i.host,p.Directory_0_does_not_exist_skipping_all_lookups_in_it,g),d=!1),nbe(4,ibe(t,i),g,d,i,o,c)}}function nbe(e,t,n,i,s,o,c){var u,f;const g=Hs(Mn(n,t)),{packageName:d,rest:y}=uA(t),S=Mn(n,d);let T,k=m2(g,!i,s);if(y!==""&&k&&(!(s.features&8)||!Za(((u=T=m2(S,!i,s))==null?void 0:u.contents.packageJsonContent)??Ve,"exports"))){const F=r6(e,g,!i,s);if(F)return CU(F);const J=LU(e,g,!i,s,k.contents.packageJsonContent,c9(k,s));return bx(k,J)}const w=(F,J,U,$)=>{let j=(y||!($.features&32))&&r6(F,J,U,$)||LU(F,J,U,$,k&&k.contents.packageJsonContent,k&&c9(k,$));return!j&&k&&(k.contents.packageJsonContent.exports===void 0||k.contents.packageJsonContent.exports===null)&&$.features&32&&(j=r6(F,Mn(J,"index.js"),U,$)),bx(k,j)};if(y!==""&&(k=T??m2(S,!i,s)),k&&(s.resolvedPackageDirectory=!0),k&&k.contents.packageJsonContent.exports&&s.features&8)return(f=MU(k,e,Mn(".",y),s,o,c))==null?void 0:f.value;const P=y!==""&&k?c9(k,s):void 0;if(P){s.traceEnabled&&Zi(s.host,p.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,P.version,yf,y);const F=i&&dd(S,s.host),J=hse(e,y,S,P.paths,void 0,w,!F,s);if(J)return J.value}return w(e,g,!i,s)}function hse(e,t,n,i,s,o,c,u){s||(s=SF(i));const f=MW(s,t);if(f){const g=ls(f)?void 0:KK(f,t),d=ls(f)?f:ZK(f);return u.traceEnabled&&Zi(u.host,p.Module_name_0_matched_pattern_1,t,d),{value:er(i[d],S=>{const T=g?XT(S,g):S,k=Hs(Mn(n,T));u.traceEnabled&&Zi(u.host,p.Trying_substitution_0_candidate_module_location_Colon_1,S,T);const w=nh(S);if(w!==void 0){const P=FU(k,c,u);if(P!==void 0)return CU({path:P,ext:w,resolvedUsingTsExtension:void 0})}return o(e,k,c||!dd(Un(k),u.host),u)})}}}function ibe(e,t){const n=n6(e);return t.traceEnabled&&n!==e&&Zi(t.host,p.Scoped_package_detected_looking_in_0,n),n}function u9(e){return`@types/${n6(e)}`}function n6(e){if(Vi(e,"@")){const t=e.replace(Io,JU);if(t!==e)return t.slice(1)}return e}function I3(e){const t=H4(e,"@types/");return t!==e?fA(t):e}function fA(e){return e.includes(JU)?"@"+e.replace(JU,Io):e}function sbe(e,t,n,i,s,o){const c=e&&e.getFromNonRelativeNameCache(t,n,i,s);if(c)return o.traceEnabled&&Zi(o.host,p.Resolution_for_module_0_was_found_in_cache_from_location_1,t,i),o.resultFromCache=c,{value:c.resolvedModule&&{path:c.resolvedModule.resolvedFileName,originalPath:c.resolvedModule.originalPath||!0,extension:c.resolvedModule.extension,packageId:c.resolvedModule.packageId,resolvedUsingTsExtension:c.resolvedModule.resolvedUsingTsExtension}}}function yse(e,t,n,i,s,o){const c=oh(n,i),u=[],f=[],g=Un(t),d=[],y={compilerOptions:n,host:i,traceEnabled:c,failedLookupLocations:u,affectingLocations:f,packageJsonInfoCache:s,features:0,conditions:[],requestContainingDirectory:g,reportDiagnostic:k=>void d.push(k),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},S=T(5)||T(2|(n.resolveJsonModule?8:0));return M2e(e,S&&S.value,(S==null?void 0:S.value)&&W1(S.value.path),u,f,d,y,s);function T(k){const w=U2e(k,e,g,mse,y);if(w)return{value:w};if(Sl(e)){const P=Hs(Mn(g,e));return Cf(mse(k,P,!1,y))}else{const P=Jp(g,F=>{const J=sbe(s,e,void 0,F,o,y);if(J)return J;const U=Hs(Mn(F,e));return Cf(mse(k,U,!1,y))});if(P)return P;if(k&5){let F=bLe(e,g,y);return k&4&&(F??(F=abe(e,y))),F}}}}function abe(e,t){if(t.compilerOptions.typeRoots)for(const n of t.compilerOptions.typeRoots){const i=J2e(n,e,t),s=dd(n,t.host);!s&&t.traceEnabled&&Zi(t.host,p.Directory_0_does_not_exist_skipping_all_lookups_in_it,n);const o=r6(4,i,!s,t);if(o){const u=oA(o.path),f=u?m2(u,!1,t):void 0;return Cf(bx(f,o))}const c=gse(4,i,!s,t);if(c)return Cf(c)}}function i6(e,t){return!!e.allowImportingTsExtensions||t&&Hl(t)}function vse(e,t,n,i,s,o){const c=oh(n,i);c&&Zi(i,p.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,t,e,s);const u=[],f=[],g=[],d={compilerOptions:n,host:i,traceEnabled:c,failedLookupLocations:u,affectingLocations:f,packageJsonInfoCache:o,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:S=>void g.push(S),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},y=rbe(4,e,s,d,!1,void 0,void 0);return R2e(y,!0,u,f,g,d.resultFromCache,void 0)}function Cf(e){return e!==void 0?{value:e}:void 0}function yy(e,t,...n){e.traceEnabled&&Zi(e.host,t,...n)}function jU(e){return e.host.useCaseSensitiveFileNames?typeof e.host.useCaseSensitiveFileNames=="boolean"?e.host.useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames():!0}var bse,obe,BU,zm,JU,SLe=wt({"src/compiler/moduleNameResolver.ts"(){Fs(),obe=Mn("node_modules","@types"),BU=(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))(BU||{}),zm="/node_modules/",JU="__"}});function ch(e,t){return e.body&&!e.body.parent&&(ba(e.body,e),ay(e.body,!1)),e.body?Sse(e.body,t):1}function Sse(e,t=new Map){const n=Oa(e);if(t.has(n))return t.get(n)||0;t.set(n,void 0);const i=TLe(e,t);return t.set(n,i),i}function TLe(e,t){switch(e.kind){case 264:case 265:return 0;case 266:if(zv(e))return 2;break;case 272:case 271:if(!Rn(e,32))return 0;break;case 278:const n=e;if(!n.moduleSpecifier&&n.exportClause&&n.exportClause.kind===279){let i=0;for(const s of n.exportClause.elements){const o=xLe(s,t);if(o>i&&(i=o),i===1)return i}return i}break;case 268:{let i=0;return Ss(e,s=>{const o=Sse(s,t);switch(o){case 0:return;case 2:i=2;return;case 1:return i=1,!0;default:E.assertNever(o)}}),i}case 267:return ch(e,t);case 80:if(e.flags&4096)return 0}return 1}function xLe(e,t){const n=e.propertyName||e.name;let i=e.parent;for(;i;){if(Cs(i)||Zd(i)||Ni(i)){const s=i.statements;let o;for(const c of s)if(qD(c,n)){c.parent||(ba(c,i),ay(c,!1));const u=Sse(c,t);if((o===void 0||u>o)&&(o=u),o===1)return o;c.kind===271&&(o=1)}if(o!==void 0)return o}i=i.parent}return 1}function Tx(e){return E.attachFlowNodeDebugInfo(e),e}function Tse(e,t){var n,i;Ao("beforeBind"),(n=wu)==null||n.logStartBindFile(""+e.fileName),lbe(e,t),(i=wu)==null||i.logStopBindFile(),Ao("afterBind"),bf("Bind","beforeBind","afterBind")}function kLe(){var e,t,n,i,s,o,c,u,f,g,d,y,S,T,k,w,P,F,J,U,$,j,re=!1,R=0,Y,ue,pe={flags:1},H={flags:1},q=W();return oe;function ee(O,he,...Xe){return mp(wr(O)||e,O,he,...Xe)}function oe(O,he){var Xe,Ft;e=O,t=he,n=Fa(t),j=Se(e,he),ue=new Set,R=0,Y=Il.getSymbolConstructor(),E.attachFlowNodeDebugInfo(pe),E.attachFlowNodeDebugInfo(H),e.locals||((Xe=qr)==null||Xe.push(qr.Phase.Bind,"bindSourceFile",{path:e.path},!0),Ee(e),(Ft=qr)==null||Ft.pop(),e.symbolCount=R,e.classifiableNames=ue,Ol()),e=void 0,t=void 0,n=void 0,i=void 0,s=void 0,o=void 0,c=void 0,u=void 0,f=void 0,g=!1,d=void 0,y=void 0,S=void 0,T=void 0,k=void 0,w=void 0,P=void 0,J=void 0,U=!1,re=!1,$=0}function Se(O,he){return Mu(he,"alwaysStrict")&&!O.isDeclarationFile?!0:!!O.externalModuleIndicator}function ae(O,he){return R++,new Y(O,he)}function K(O,he,Xe){O.flags|=Xe,he.symbol=O,O.declarations=Hg(O.declarations,he),Xe&1955&&!O.exports&&(O.exports=Bs()),Xe&6240&&!O.members&&(O.members=Bs()),O.constEnumOnlyModule&&O.flags&304&&(O.constEnumOnlyModule=!1),Xe&111551&&N8(O,he)}function fe(O){if(O.kind===277)return O.isExportEquals?"export=":"default";const he=us(O);if(he){if(su(O)){const Xe=yp(he);return Vd(O)?"__global":`"${Xe}"`}if(he.kind===167){const Xe=he.expression;if(Tf(Xe))return Wo(Xe.text);if(z5(Xe))return Ws(Xe.operator)+Xe.operand.text;E.fail("Only computed properties with literal names have declaration names")}if(Pi(he)){const Xe=Nl(O);if(!Xe)return;const Ft=Xe.symbol;return W8(Ft,he.escapedText)}return yd(he)?$T(he):qd(he)?PE(he):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(fc(O)===2)return"export=";E.fail("Unknown binary declaration kind");break;case 324:return fC(O)?"__new":"__call";case 169:return E.assert(O.parent.kind===324,"Impossible parameter parent kind",()=>`parent is: ${E.formatSyntaxKind(O.parent.kind)}, expected JSDocFunctionType`),"arg"+O.parent.parameters.indexOf(O)}}function ke(O){return Nu(O)?Ka(O.name):xi(E.checkDefined(fe(O)))}function Oe(O,he,Xe,Ft,zr,Vn,Ln){E.assert(Ln||!ry(Xe));const ji=Rn(Xe,2048)||vu(Xe)&&Xe.name.escapedText==="default",fa=Ln?"__computed":ji&&he?"default":fe(Xe);let pa;if(fa===void 0)pa=ae(0,"__missing");else if(pa=O.get(fa),Ft&2885600&&ue.add(fa),!pa)O.set(fa,pa=ae(0,fa)),Vn&&(pa.isReplaceableByMethod=!0);else{if(Vn&&!pa.isReplaceableByMethod)return pa;if(pa.flags&zr){if(pa.isReplaceableByMethod)O.set(fa,pa=ae(0,fa));else if(!(Ft&3&&pa.flags&67108864)){Nu(Xe)&&ba(Xe.name,Xe);let lc=pa.flags&2?p.Cannot_redeclare_block_scoped_variable_0:p.Duplicate_identifier_0,Rl=!0;(pa.flags&384||Ft&384)&&(lc=p.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,Rl=!1);let Zc=!1;gr(pa.declarations)&&(ji||pa.declarations&&pa.declarations.length&&Xe.kind===277&&!Xe.isExportEquals)&&(lc=p.A_module_cannot_have_multiple_default_exports,Rl=!1,Zc=!0);const G_=[];Gp(Xe)&&_c(Xe.type)&&Rn(Xe,32)&&pa.flags&2887656&&G_.push(ee(Xe,p.Did_you_mean_0,`export type { ${xi(Xe.name.escapedText)} }`));const p_=us(Xe)||Xe;er(pa.declarations,(ja,Zp)=>{const Kp=us(ja)||ja,Ci=Rl?ee(Kp,lc,ke(ja)):ee(Kp,lc);e.bindDiagnostics.push(Zc?la(Ci,ee(p_,Zp===0?p.Another_export_default_is_here:p.and_here)):Ci),Zc&&G_.push(ee(Kp,p.The_first_export_default_is_here))});const Cy=Rl?ee(p_,lc,ke(Xe)):ee(p_,lc);e.bindDiagnostics.push(la(Cy,...G_)),pa=ae(0,fa)}}}return K(pa,Xe,Ft),pa.parent?E.assert(pa.parent===he,"Existing symbol parent should match new one"):pa.parent=he,pa}function me(O,he,Xe){const Ft=!!(y1(O)&32)||be(O);if(he&2097152)return O.kind===281||O.kind===271&&Ft?Oe(s.symbol.exports,s.symbol,O,he,Xe):(E.assertNode(s,Dm),Oe(s.locals,void 0,O,he,Xe));if(hp(O)&&E.assert(Hr(O)),!su(O)&&(Ft||s.flags&128)){if(!Dm(s)||!s.locals||Rn(O,2048)&&!fe(O))return Oe(s.symbol.exports,s.symbol,O,he,Xe);const zr=he&111551?1048576:0,Vn=Oe(s.locals,void 0,O,zr,Xe);return Vn.exportSymbol=Oe(s.symbol.exports,s.symbol,O,he,Xe),O.localSymbol=Vn,Vn}else return E.assertNode(s,Dm),Oe(s.locals,void 0,O,he,Xe)}function be(O){if(O.parent&&Sc(O)&&(O=O.parent),!hp(O))return!1;if(!Lw(O)&&O.fullName)return!0;const he=us(O);return he?!!(Q8(he.parent)&&Ec(he.parent)||yu(he.parent)&&y1(he.parent)&32):!1}function xe(O,he){const Xe=s,Ft=o,zr=c;if(he&1?(O.kind!==219&&(o=s),s=c=O,he&32&&(s.locals=Bs(),Wr(s))):he&2&&(c=O,he&32&&(c.locals=void 0)),he&4){const Vn=d,Ln=y,ji=S,fa=T,pa=P,lc=J,Rl=U,Zc=he&16&&!Rn(O,1024)&&!O.asteriskToken&&!!Db(O)||O.kind===175;Zc||(d=Tx({flags:2}),he&144&&(d.node=O)),T=Zc||O.kind===176||Hr(O)&&(O.kind===262||O.kind===218)?hr():void 0,P=void 0,y=void 0,S=void 0,J=void 0,U=!1,Fe(O),O.flags&=-5633,!(d.flags&1)&&he&8&&dp(O.body)&&(O.flags|=512,U&&(O.flags|=1024),O.endFlowNode=d),O.kind===312&&(O.flags|=$,O.endFlowNode=d),T&&(Rt(T,d),d=yr(T),(O.kind===176||O.kind===175||Hr(O)&&(O.kind===262||O.kind===218))&&(O.returnFlowNode=d)),Zc||(d=Vn),y=Ln,S=ji,T=fa,P=pa,J=lc,U=Rl}else he&64?(g=!1,Fe(O),E.assertNotNode(O,Ie),O.flags=g?O.flags|256:O.flags&-257):Fe(O);s=Xe,o=Ft,c=zr}function De(O){ft(O,he=>he.kind===262?Ee(he):void 0),ft(O,he=>he.kind!==262?Ee(he):void 0)}function ft(O,he=Ee){O!==void 0&&er(O,he)}function ge(O){Ss(O,Ee,ft)}function Fe(O){const he=re;if(re=!1,At(O)){ge(O),lt(O),re=he;return}switch(O.kind>=243&&O.kind<=259&&!t.allowUnreachableCode&&(O.flowNode=d),O.kind){case 247:Ii(O);break;case 246:ns(O);break;case 248:Vs(O);break;case 249:case 250:_a(O);break;case 245:cr(O);break;case 253:case 257:br(O);break;case 252:case 251:tt(O);break;case 258:yt(O);break;case 255:ne(O);break;case 269:we(O);break;case 296:et(O);break;case 244:B(O);break;case 256:mt(O);break;case 224:ir(O);break;case 225:Yt(O);break;case 226:if(e0(O)){re=he,Kt(O);return}q(O);break;case 220:Pe(O);break;case 227:St(O);break;case 260:le(O);break;case 211:case 212:fi(O);break;case 213:oi(O);break;case 235:Nr(O);break;case 353:case 345:case 347:Ce(O);break;case 312:{De(O.statements),Ee(O.endOfFileToken);break}case 241:case 268:De(O.statements);break;case 208:V(O);break;case 169:ce(O);break;case 210:case 209:case 303:case 230:re=he;default:ge(O);break}lt(O),re=he}function $e(O){switch(O.kind){case 80:case 81:case 110:case 211:case 212:return at(O);case 213:return Je(O);case 217:if(HC(O))return!1;case 235:return $e(O.expression);case 226:return zt(O);case 224:return O.operator===54&&$e(O.operand);case 221:return $e(O.expression)}return!1}function Pt(O){return LE(O)||(Sn(O)||_x(O)||l_(O))&&Pt(O.expression)||Zr(O)&&O.operatorToken.kind===28&&Pt(O.right)||ko(O)&&(Tf(O.argumentExpression)||pc(O.argumentExpression))&&Pt(O.expression)||nl(O)&&Pt(O.left)}function at(O){return Pt(O)||hu(O)&&at(O.expression)}function Je(O){if(O.arguments){for(const he of O.arguments)if(at(he))return!0}return!!(O.expression.kind===211&&at(O.expression.expression))}function pt(O,he){return BC(O)&&Vt(O.expression)&&Ma(he)}function zt(O){switch(O.operatorToken.kind){case 64:case 76:case 77:case 78:return at(O.left);case 35:case 36:case 37:case 38:return Vt(O.left)||Vt(O.right)||pt(O.right,O.left)||pt(O.left,O.right)||uE(O.right)&&$e(O.left)||uE(O.left)&&$e(O.right);case 104:return Vt(O.left);case 103:return $e(O.right);case 28:return $e(O.right)}return!1}function Vt(O){switch(O.kind){case 217:return Vt(O.expression);case 226:switch(O.operatorToken.kind){case 64:return Vt(O.left);case 28:return Vt(O.right)}}return at(O)}function hr(){return Tx({flags:4,antecedents:void 0})}function Lr(){return Tx({flags:8,antecedents:void 0})}function tr(O,he,Xe){return Tx({flags:1024,target:O,antecedents:he,antecedent:Xe})}function jt(O){O.flags|=O.flags&2048?4096:2048}function Rt(O,he){!(he.flags&1)&&!bs(O.antecedents,he)&&((O.antecedents||(O.antecedents=[])).push(he),jt(he))}function Kn(O,he,Xe){return he.flags&1?he:Xe?(Xe.kind===112&&O&64||Xe.kind===97&&O&32)&&!H7(Xe)&&!QJ(Xe.parent)?pe:$e(Xe)?(jt(he),Tx({flags:O,antecedent:he,node:Xe})):he:O&32?he:pe}function Ji(O,he,Xe,Ft){return jt(O),Tx({flags:128,antecedent:O,switchStatement:he,clauseStart:Xe,clauseEnd:Ft})}function yi(O,he,Xe){jt(he);const Ft=Tx({flags:O,antecedent:he,node:Xe});return P&&Rt(P,Ft),Ft}function os(O,he){return jt(O),Tx({flags:512,antecedent:O,node:he})}function yr(O){const he=O.antecedents;return he?he.length===1?he[0]:O:pe}function _i(O){const he=O.parent;switch(he.kind){case 245:case 247:case 246:return he.expression===O;case 248:case 227:return he.condition===O}return!1}function ln(O){for(;;)if(O.kind===217)O=O.expression;else if(O.kind===224&&O.operator===54)O=O.operand;else return X8(O)}function Ht(O){return gW(Va(O))}function Ue(O){for(;l_(O.parent)||dy(O.parent)&&O.parent.operator===54;)O=O.parent;return!_i(O)&&!ln(O.parent)&&!(hu(O.parent)&&O.parent.expression===O)}function Et(O,he,Xe,Ft){const zr=k,Vn=w;k=Xe,w=Ft,O(he),k=zr,w=Vn}function fr(O,he,Xe){Et(Ee,O,he,Xe),(!O||!Ht(O)&&!ln(O)&&!(hu(O)&&sE(O)))&&(Rt(he,Kn(32,d,O)),Rt(Xe,Kn(64,d,O)))}function Hn(O,he,Xe){const Ft=y,zr=S;y=he,S=Xe,Ee(O),y=Ft,S=zr}function ei(O,he){let Xe=J;for(;Xe&&O.parent.kind===256;)Xe.continueTarget=he,Xe=Xe.next,O=O.parent;return he}function Ii(O){const he=ei(O,Lr()),Xe=hr(),Ft=hr();Rt(he,d),d=he,fr(O.expression,Xe,Ft),d=yr(Xe),Hn(O.statement,Ft,he),Rt(he,d),d=yr(Ft)}function ns(O){const he=Lr(),Xe=ei(O,hr()),Ft=hr();Rt(he,d),d=he,Hn(O.statement,Ft,Xe),Rt(Xe,d),d=yr(Xe),fr(O.expression,he,Ft),d=yr(Ft)}function Vs(O){const he=ei(O,Lr()),Xe=hr(),Ft=hr();Ee(O.initializer),Rt(he,d),d=he,fr(O.condition,Xe,Ft),d=yr(Xe),Hn(O.statement,Ft,he),Ee(O.incrementor),Rt(he,d),d=yr(Ft)}function _a(O){const he=ei(O,Lr()),Xe=hr();Ee(O.expression),Rt(he,d),d=he,O.kind===250&&Ee(O.awaitModifier),Rt(Xe,d),Ee(O.initializer),O.initializer.kind!==261&&nt(O.initializer),Hn(O.statement,Xe,he),Rt(he,d),d=yr(Xe)}function cr(O){const he=hr(),Xe=hr(),Ft=hr();fr(O.expression,he,Xe),d=yr(he),Ee(O.thenStatement),Rt(Ft,d),d=yr(Xe),Ee(O.elseStatement),Rt(Ft,d),d=yr(Ft)}function br(O){Ee(O.expression),O.kind===253&&(U=!0,T&&Rt(T,d)),d=pe}function Le(O){for(let he=J;he;he=he.next)if(he.name===O)return he}function rt(O,he,Xe){const Ft=O.kind===252?he:Xe;Ft&&(Rt(Ft,d),d=pe)}function tt(O){if(Ee(O.label),O.label){const he=Le(O.label.escapedText);he&&(he.referenced=!0,rt(O,he.breakTarget,he.continueTarget))}else rt(O,y,S)}function yt(O){const he=T,Xe=P,Ft=hr(),zr=hr();let Vn=hr();if(O.finallyBlock&&(T=zr),Rt(Vn,d),P=Vn,Ee(O.tryBlock),Rt(Ft,d),O.catchClause&&(d=yr(Vn),Vn=hr(),Rt(Vn,d),P=Vn,Ee(O.catchClause),Rt(Ft,d)),T=he,P=Xe,O.finallyBlock){const Ln=hr();Ln.antecedents=es(es(Ft.antecedents,Vn.antecedents),zr.antecedents),d=Ln,Ee(O.finallyBlock),d.flags&1?d=pe:(T&&zr.antecedents&&Rt(T,tr(Ln,zr.antecedents,d)),P&&Vn.antecedents&&Rt(P,tr(Ln,Vn.antecedents,d)),d=Ft.antecedents?tr(Ln,Ft.antecedents,d):pe)}else d=yr(Ft)}function ne(O){const he=hr();Ee(O.expression);const Xe=y,Ft=F;y=he,F=d,Ee(O.caseBlock),Rt(he,d);const zr=er(O.caseBlock.clauses,Vn=>Vn.kind===297);O.possiblyExhaustive=!zr&&!he.antecedents,zr||Rt(he,Ji(F,O,0,0)),y=Xe,F=Ft,d=yr(he)}function we(O){const he=O.clauses,Xe=O.parent.expression.kind===112||$e(O.parent.expression);let Ft=pe;for(let zr=0;zrTc(Xe)||oc(Xe))}function In(O){O.flags&33554432&&!ci(O)?O.flags|=128:O.flags&=-129}function is(O){if(In(O),su(O))if(Rn(O,32)&&io(O,p.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),Tz(O))pr(O);else{let he;if(O.name.kind===11){const{text:Ft}=O.name;he=DC(Ft),he===void 0&&io(O.name,p.Pattern_0_can_have_at_most_one_Asterisk_character,Ft)}const Xe=Cn(O,512,110735);e.patternAmbientModules=_r(e.patternAmbientModules,he&&!ls(he)?{pattern:he,symbol:Xe}:void 0)}else{const he=pr(O);if(he!==0){const{symbol:Xe}=O;Xe.constEnumOnlyModule=!(Xe.flags&304)&&he===2&&Xe.constEnumOnlyModule!==!1}}}function pr(O){const he=ch(O),Xe=he!==0;return Cn(O,Xe?512:1024,Xe?110735:0),he}function uo(O){const he=ae(131072,fe(O));K(he,O,131072);const Xe=ae(2048,"__type");K(Xe,O,2048),Xe.members=Bs(),Xe.members.set(he.escapedName,he)}function kc(O){return mo(O,4096,"__object")}function _s(O){return mo(O,4096,"__jsxAttributes")}function Ra(O,he,Xe){return Cn(O,he,Xe)}function mo(O,he,Xe){const Ft=ae(he,Xe);return he&106508&&(Ft.parent=s.symbol),K(Ft,O,he),Ft}function Uo(O,he,Xe){switch(c.kind){case 267:me(O,he,Xe);break;case 312:if(af(s)){me(O,he,Xe);break}default:E.assertNode(c,Dm),c.locals||(c.locals=Bs(),Wr(c)),Oe(c.locals,void 0,O,he,Xe)}}function Ol(){if(!f)return;const O=s,he=u,Xe=c,Ft=i,zr=d;for(const Vn of f){const Ln=Vn.parent.parent;s=wz(Ln)||e,c=Nm(Ln)||e,d=Tx({flags:2}),i=Vn,Ee(Vn.typeExpression);const ji=us(Vn);if((Lw(Vn)||!Vn.fullName)&&ji&&Q8(ji.parent)){const fa=Ec(ji.parent);if(fa){qo(e.symbol,ji.parent,fa,!!Pr(ji,lc=>Sn(lc)&&lc.name.escapedText==="prototype"),!1);const pa=s;switch(w8(ji.parent)){case 1:case 2:af(e)?s=e:s=void 0;break;case 4:s=ji.parent.expression;break;case 3:s=ji.parent.expression.name;break;case 5:s=g2(e,ji.parent.expression)?e:Sn(ji.parent.expression)?ji.parent.expression.name:ji.parent.expression;break;case 0:return E.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}s&&me(Vn,524288,788968),s=pa}}else Lw(Vn)||!Vn.fullName||Vn.fullName.kind===80?(i=Vn.parent,Uo(Vn,524288,788968)):Ee(Vn.fullName)}s=O,u=he,c=Xe,i=Ft,d=zr}function $i(O){if(!e.parseDiagnostics.length&&!(O.flags&33554432)&&!(O.flags&16777216)&&!ure(O)){const he=v1(O);if(he===void 0)return;j&&he>=119&&he<=127?e.bindDiagnostics.push(ee(O,zs(O),Ka(O))):he===135?Ic(e)&&k5(O)?e.bindDiagnostics.push(ee(O,p.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,Ka(O))):O.flags&65536&&e.bindDiagnostics.push(ee(O,p.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Ka(O))):he===127&&O.flags&16384&&e.bindDiagnostics.push(ee(O,p.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Ka(O)))}}function zs(O){return Nl(O)?p.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?p.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:p.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function Ll(O){O.escapedText==="#constructor"&&(e.parseDiagnostics.length||e.bindDiagnostics.push(ee(O,p.constructor_is_a_reserved_word,Ka(O))))}function Qa(O){j&&S_(O.left)&&Kh(O.operatorToken.kind)&&Fc(O,O.left)}function oa(O){j&&O.variableDeclaration&&Fc(O,O.variableDeclaration.name)}function zo(O){if(j&&O.expression.kind===80){const he=Eb(e,O.expression);e.bindDiagnostics.push(xl(e,he.start,he.length,p.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function Kf(O){return Ie(O)&&(O.escapedText==="eval"||O.escapedText==="arguments")}function Fc(O,he){if(he&&he.kind===80){const Xe=he;if(Kf(Xe)){const Ft=Eb(e,he);e.bindDiagnostics.push(xl(e,Ft.start,Ft.length,rc(O),on(Xe)))}}}function rc(O){return Nl(O)?p.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?p.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:p.Invalid_use_of_0_in_strict_mode}function Mo(O){j&&Fc(O,O.name)}function fs(O){return Nl(O)?p.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?p.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:p.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}function Wt(O){if(n<2&&c.kind!==312&&c.kind!==267&&!Hk(c)){const he=Eb(e,O);e.bindDiagnostics.push(xl(e,he.start,he.length,fs(O)))}}function go(O){j&&Fc(O,O.operand)}function Pl(O){j&&(O.operator===46||O.operator===47)&&Fc(O,O.operand)}function Ml(O){j&&io(O,p.with_statements_are_not_allowed_in_strict_mode)}function q_(O){j&&Fa(t)>=2&&(pte(O.statement)||ac(O.statement))&&io(O.label,p.A_label_is_not_allowed_here)}function io(O,he,...Xe){const Ft=Im(e,O.pos);e.bindDiagnostics.push(xl(e,Ft.start,Ft.length,he,...Xe))}function Yc(O,he,Xe){se(O,he,he,Xe)}function se(O,he,Xe,Ft){X(O,{pos:k1(he,e),end:Xe.end},Ft)}function X(O,he,Xe){const Ft=xl(e,he.pos,he.end-he.pos,Xe);O?e.bindDiagnostics.push(Ft):e.bindSuggestionDiagnostics=_r(e.bindSuggestionDiagnostics,{...Ft,category:2})}function Ee(O){if(!O)return;ba(O,i),qr&&(O.tracingPath=e.path);const he=j;if(rn(O),O.kind>165){const Xe=i;i=O;const Ft=zU(O);Ft===0?Fe(O):xe(O,Ft),i=Xe}else{const Xe=i;O.kind===1&&(i=O),lt(O),i=Xe}j=he}function lt(O){if(sf(O))if(Hr(O))for(const he of O.jsDoc)Ee(he);else for(const he of O.jsDoc)ba(he,O),ay(he,!1)}function Xt(O){if(!j)for(const he of O){if(!Vp(he))return;if(an(he)){j=!0;return}}}function an(O){const he=Bv(e,O.expression);return he==='"use strict"'||he==="'use strict'"}function rn(O){switch(O.kind){case 80:if(O.flags&4096){let Ln=O.parent;for(;Ln&&!hp(Ln);)Ln=Ln.parent;Uo(Ln,524288,788968);break}case 110:return d&&(ot(O)||i.kind===304)&&(O.flowNode=d),$i(O);case 166:d&&w5(O)&&(O.flowNode=d);break;case 236:case 108:O.flowNode=d;break;case 81:return Ll(O);case 211:case 212:const he=O;d&&Pt(he)&&(he.flowNode=d),nre(he)&&Fr(he),Hr(he)&&e.commonJsModuleIndicator&&yg(he)&&!_9(c,"module")&&Oe(e.locals,void 0,he.expression,134217729,111550);break;case 226:switch(fc(O)){case 1:E_(O);break;case 2:ol(O);break;case 3:Is(O.left,O);break;case 6:Yi(O);break;case 4:Ju(O);break;case 5:const Ln=O.left.expression;if(Hr(O)&&Ie(Ln)){const ji=_9(c,Ln.escapedText);if(C5(ji==null?void 0:ji.valueDeclaration)){Ju(O);break}}Uc(O);break;case 0:break;default:E.fail("Unknown binary expression special property assignment kind")}return Qa(O);case 299:return oa(O);case 220:return zo(O);case 225:return go(O);case 224:return Pl(O);case 254:return Ml(O);case 256:return q_(O);case 197:g=!0;return;case 182:break;case 168:return Ye(O);case 169:return fh(O);case 260:return _u(O);case 208:return O.flowNode=d,_u(O);case 172:case 171:return En(O);case 303:case 304:return f_(O,4,0);case 306:return f_(O,8,900095);case 179:case 180:case 181:return Cn(O,131072,0);case 174:case 173:return f_(O,8192|(O.questionToken?16777216:0),Up(O)?0:103359);case 262:return H_(O);case 176:return Cn(O,16384,0);case 177:return f_(O,32768,46015);case 178:return f_(O,65536,78783);case 184:case 324:case 330:case 185:return uo(O);case 187:case 329:case 200:return li(O);case 339:return _t(O);case 210:return kc(O);case 218:case 219:return Ag(O);case 213:switch(fc(O)){case 7:return Cc(O);case 8:return gl(O);case 9:return Ds(O);case 0:break;default:return E.fail("Unknown call expression assignment declaration kind")}Hr(O)&&am(O);break;case 231:case 263:return j=!0,qm(O);case 264:return Uo(O,64,788872);case 265:return Uo(O,524288,788968);case 266:return _h(O);case 267:return is(O);case 292:return _s(O);case 291:return Ra(O,4,0);case 271:case 274:case 276:case 281:return Cn(O,2097152,2097152);case 270:return ml(O);case 273:return Vc(O);case 278:return ho(O);case 277:return Qo(O);case 312:return Xt(O.statements),gn();case 241:if(!Hk(O.parent))return;case 268:return Xt(O.statements);case 348:if(O.parent.kind===330)return fh(O);if(O.parent.kind!==329)break;case 355:const zr=O,Vn=zr.isBracketed||zr.typeExpression&&zr.typeExpression.type.kind===323?16777220:4;return Cn(zr,Vn,0);case 353:case 345:case 347:return(f||(f=[])).push(O);case 346:return Ee(O.typeExpression)}}function En(O){const he=s_(O),Xe=he?98304:4,Ft=he?13247:0;return f_(O,Xe|(O.questionToken?16777216:0),Ft)}function li(O){return mo(O,2048,"__type")}function gn(){if(In(e),Ic(e))Ps();else if(gp(e)){Ps();const O=e.symbol;Oe(e.symbol.exports,e.symbol,e,4,-1),e.symbol=O}}function Ps(){mo(e,512,`"${$u(e.fileName)}"`)}function Qo(O){if(!s.symbol||!s.symbol.exports)mo(O,111551,fe(O));else{const he=dC(O)?2097152:4,Xe=Oe(s.symbol.exports,s.symbol,O,he,-1);O.isExportEquals&&N8(Xe,O)}}function ml(O){ct(O.modifiers)&&e.bindDiagnostics.push(ee(O,p.Modifiers_cannot_appear_here));const he=Ni(O.parent)?Ic(O.parent)?O.parent.isDeclarationFile?void 0:p.Global_module_exports_may_only_appear_in_declaration_files:p.Global_module_exports_may_only_appear_in_module_files:p.Global_module_exports_may_only_appear_at_top_level;he?e.bindDiagnostics.push(ee(O,he)):(e.symbol.globalExports=e.symbol.globalExports||Bs(),Oe(e.symbol.globalExports,e.symbol,O,2097152,2097152))}function ho(O){!s.symbol||!s.symbol.exports?mo(O,8388608,fe(O)):O.exportClause?jm(O.exportClause)&&(ba(O.exportClause,O),Oe(s.symbol.exports,s.symbol,O.exportClause,2097152,2097152)):Oe(s.symbol.exports,s.symbol,O,8388608,0)}function Vc(O){O.name&&Cn(O,2097152,2097152)}function $a(O){return e.externalModuleIndicator&&e.externalModuleIndicator!==!0?!1:(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=O,e.externalModuleIndicator||Ps()),!0)}function gl(O){if(!$a(O))return;const he=ep(O.arguments[0],void 0,(Xe,Ft)=>(Ft&&K(Ft,Xe,67110400),Ft));he&&Oe(he.exports,he,O,1048580,0)}function E_(O){if(!$a(O))return;const he=ep(O.left.expression,void 0,(Xe,Ft)=>(Ft&&K(Ft,Xe,67110400),Ft));if(he){const Ft=J8(O.right)&&(wb(O.left.expression)||yg(O.left.expression))?2097152:1048580;ba(O.left,O),Oe(he.exports,he,O.left,Ft,0)}}function ol(O){if(!$a(O))return;const he=E8(O.right);if(bW(he)||s===e&&g2(e,he))return;if(ua(he)&&Wi(he.properties,k_)){er(he.properties,Pp);return}const Xe=dC(O)?2097152:1049092,Ft=Oe(e.symbol.exports,e.symbol,O,Xe|67108864,0);N8(Ft,O)}function Pp(O){Oe(e.symbol.exports,e.symbol,O,69206016,0)}function Ju(O){if(E.assert(Hr(O)),Zr(O)&&Sn(O.left)&&Pi(O.left.name)||Sn(O)&&Pi(O.name))return;const Xe=a_(O,!1,!1);switch(Xe.kind){case 262:case 218:let Ft=Xe.symbol;if(Zr(Xe.parent)&&Xe.parent.operatorToken.kind===64){const Ln=Xe.parent.left;qv(Ln)&&iy(Ln.expression)&&(Ft=Ku(Ln.expression.expression,o))}Ft&&Ft.valueDeclaration&&(Ft.members=Ft.members||Bs(),ry(O)?Te(O,Ft,Ft.members):Oe(Ft.members,Ft,O,67108868,0),K(Ft,Ft.valueDeclaration,32));break;case 176:case 172:case 174:case 177:case 178:case 175:const zr=Xe.parent,Vn=Ms(Xe)?zr.symbol.exports:zr.symbol.members;ry(O)?Te(O,zr.symbol,Vn):Oe(Vn,zr.symbol,O,67108868,0,!0);break;case 312:if(ry(O))break;Xe.commonJsModuleIndicator?Oe(Xe.symbol.exports,Xe.symbol,O,1048580,0):Cn(O,1,111550);break;case 267:break;default:E.failBadSyntaxKind(Xe)}}function Te(O,he,Xe){Oe(Xe,he,O,4,0,!0,!0),kt(O,he)}function kt(O,he){he&&(he.assignmentDeclarationMembers||(he.assignmentDeclarationMembers=new Map)).set(Oa(O),O)}function Fr(O){O.expression.kind===110?Ju(O):qv(O)&&O.parent.parent.kind===312&&(iy(O.expression)?Is(O,O.parent):Ro(O))}function Yi(O){ba(O.left,O),ba(O.right,O),hl(O.left.expression,O.left,!1,!0)}function Ds(O){const he=Ku(O.arguments[0].expression);he&&he.valueDeclaration&&K(he,he.valueDeclaration,32),dc(O,he,!0)}function Is(O,he){const Xe=O.expression,Ft=Xe.expression;ba(Ft,Xe),ba(Xe,O),ba(O,he),hl(Ft,O,!0,!0)}function Cc(O){let he=Ku(O.arguments[0]);const Xe=O.parent.parent.kind===312;he=qo(he,O.arguments[0],Xe,!1,!1),dc(O,he,!1)}function Uc(O){var he;const Xe=Ku(O.left.expression,c)||Ku(O.left.expression,s);if(!Hr(O)&&!ire(Xe))return;const Ft=CC(O.left);if(!(Ie(Ft)&&((he=_9(s,Ft.escapedText))==null?void 0:he.flags)&2097152))if(ba(O.left,O),ba(O.right,O),Ie(O.left.expression)&&s===e&&g2(e,O.left.expression))E_(O);else if(ry(O)){mo(O,67108868,"__computed");const zr=qo(Xe,O.left.expression,Ec(O.left),!1,!1);kt(O,zr)}else Ro(Ls(O.left,Nb))}function Ro(O){E.assert(!Ie(O)),ba(O.expression,O),hl(O.expression,O,!1,!1)}function qo(O,he,Xe,Ft,zr){return(O==null?void 0:O.flags)&2097152||(Xe&&!Ft&&(O=ep(he,O,(ji,fa,pa)=>{if(fa)return K(fa,ji,67110400),fa;{const lc=pa?pa.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=Bs());return Oe(lc,pa,ji,67110400,110735)}})),zr&&O&&O.valueDeclaration&&K(O,O.valueDeclaration,32)),O}function dc(O,he,Xe){if(!he||!If(he))return;const Ft=Xe?he.members||(he.members=Bs()):he.exports||(he.exports=Bs());let zr=0,Vn=0;fo(OT(O))?(zr=8192,Vn=103359):Rs(O)&&Ab(O)&&(ct(O.arguments[2].properties,Ln=>{const ji=us(Ln);return!!ji&&Ie(ji)&&on(ji)==="set"})&&(zr|=65540,Vn|=78783),ct(O.arguments[2].properties,Ln=>{const ji=us(Ln);return!!ji&&Ie(ji)&&on(ji)==="get"})&&(zr|=32772,Vn|=46015)),zr===0&&(zr=4,Vn=0),Oe(Ft,he,O,zr|67108864,Vn&-67108865)}function Ec(O){return Zr(O.parent)?__(O.parent).parent.kind===312:O.parent.parent.kind===312}function hl(O,he,Xe,Ft){let zr=Ku(O,c)||Ku(O,s);const Vn=Ec(he);zr=qo(zr,he.expression,Vn,Xe,Ft),dc(he,zr,Xe)}function If(O){if(O.flags&1072)return!0;const he=O.valueDeclaration;if(he&&Rs(he))return!!OT(he);let Xe=he?hi(he)?he.initializer:Zr(he)?he.right:Sn(he)&&Zr(he.parent)?he.parent.right:void 0:void 0;if(Xe=Xe&&E8(Xe),Xe){const Ft=iy(hi(he)?he.name:Zr(he)?he.left:he);return!!E1(Zr(Xe)&&(Xe.operatorToken.kind===57||Xe.operatorToken.kind===61)?Xe.right:Xe,Ft)}return!1}function __(O){for(;Zr(O.parent);)O=O.parent;return O.parent}function Ku(O,he=s){if(Ie(O))return _9(he,O.escapedText);{const Xe=Ku(O.expression);return Xe&&Xe.exports&&Xe.exports.get(Kg(O))}}function ep(O,he,Xe){if(g2(e,O))return e.symbol;if(Ie(O))return Xe(O,Ku(O),he);{const Ft=ep(O.expression,he,Xe),zr=D8(O);return Pi(zr)&&E.fail("unexpected PrivateIdentifier"),Xe(zr,Ft&&Ft.exports&&Ft.exports.get(Kg(O)),Ft)}}function am(O){!e.commonJsModuleIndicator&&Gu(O,!1)&&$a(O)}function qm(O){if(O.kind===263)Uo(O,32,899503);else{const zr=O.name?O.name.escapedText:"__class";mo(O,32,zr),O.name&&ue.add(O.name.escapedText)}const{symbol:he}=O,Xe=ae(4194308,"prototype"),Ft=he.exports.get(Xe.escapedName);Ft&&(O.name&&ba(O.name,O),e.bindDiagnostics.push(ee(Ft.declarations[0],p.Duplicate_identifier_0,Xo(Xe)))),he.exports.set(Xe.escapedName,Xe),Xe.parent=he}function _h(O){return zv(O)?Uo(O,128,899967):Uo(O,256,899327)}function _u(O){if(j&&Fc(O,O.name),!Ns(O.name)){const he=O.kind===260?O:O.parent.parent;Hr(O)&&Uv(he)&&!b1(O)&&!(y1(O)&32)?Cn(O,2097152,2097152):vz(O)?Uo(O,2,111551):$v(O)?Cn(O,1,111551):Cn(O,1,111550)}}function fh(O){if(!(O.kind===348&&s.kind!==330)&&(j&&!(O.flags&33554432)&&Fc(O,O.name),Ns(O.name)?mo(O,1,"__"+O.parent.parameters.indexOf(O)):Cn(O,1,111551),O_(O,O.parent))){const he=O.parent.parent;Oe(he.symbol.members,he.symbol,O,4|(O.questionToken?16777216:0),0)}}function H_(O){!e.isDeclarationFile&&!(O.flags&33554432)&&EE(O)&&($|=4096),Mo(O),j?(Wt(O),Uo(O,16,110991)):Cn(O,16,110991)}function Ag(O){!e.isDeclarationFile&&!(O.flags&33554432)&&EE(O)&&($|=4096),d&&(O.flowNode=d),Mo(O);const he=O.name?O.name.escapedText:"__function";return mo(O,16,he)}function f_(O,he,Xe){return!e.isDeclarationFile&&!(O.flags&33554432)&&EE(O)&&($|=4096),d&&b5(O)&&(O.flowNode=d),ry(O)?mo(O,he,"__computed"):Cn(O,he,Xe)}function Q(O){const he=Pr(O,Xe=>Xe.parent&&lx(Xe.parent)&&Xe.parent.extendsType===Xe);return he&&he.parent}function Ye(O){if(Cp(O.parent)){const he=j5(O.parent);he?(E.assertNode(he,Dm),he.locals??(he.locals=Bs()),Oe(he.locals,void 0,O,262144,526824)):Cn(O,262144,526824)}else if(O.parent.kind===195){const he=Q(O.parent);he?(E.assertNode(he,Dm),he.locals??(he.locals=Bs()),Oe(he.locals,void 0,O,262144,526824)):mo(O,262144,fe(O))}else Cn(O,262144,526824)}function Ct(O){const he=ch(O);return he===1||he===2&&n2(t)}function At(O){if(!(d.flags&1))return!1;if(d===pe&&(i8(O)&&O.kind!==242||O.kind===263||O.kind===267&&Ct(O))&&(d=H,!t.allowUnreachableCode)){const Xe=ene(t)&&!(O.flags&33554432)&&(!ac(O)||!!(Gh(O.declarationList)&7)||O.declarationList.declarations.some(Ft=>!!Ft.initializer));CLe(O,(Ft,zr)=>se(Xe,Ft,zr,p.Unreachable_code_detected))}return!0}}function CLe(e,t){if(Ei(e)&&cbe(e)&&Cs(e.parent)){const{statements:n}=e.parent,i=RW(n,e);aB(i,cbe,(s,o)=>t(i[s],i[o-1]))}else t(e,e)}function cbe(e){return!$c(e)&&!ELe(e)&&!L1(e)&&!(ac(e)&&!(Gh(e)&7)&&e.declarationList.declarations.some(t=>!t.initializer))}function ELe(e){switch(e.kind){case 264:case 265:return!0;case 267:return ch(e)!==1;case 266:return Rn(e,4096);default:return!1}}function g2(e,t){let n=0;const i=bD();for(i.enqueue(t);!i.isEmpty()&&n<100;){if(n++,t=i.dequeue(),wb(t)||yg(t))return!0;if(Ie(t)){const s=_9(e,t.escapedText);if(s&&s.valueDeclaration&&hi(s.valueDeclaration)&&s.valueDeclaration.initializer){const o=s.valueDeclaration.initializer;i.enqueue(o),nl(o,!0)&&(i.enqueue(o.left),i.enqueue(o.right))}}}return!1}function zU(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(b5(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 As(e.parent)||ec(e.parent)?0:34}return 0}function _9(e,t){var n,i,s,o;const c=(i=(n=Wn(e,Dm))==null?void 0:n.locals)==null?void 0:i.get(t);if(c)return c.exportSymbol??c;if(Ni(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t))return e.jsGlobalAugmentations.get(t);if(Wd(e))return(o=(s=e.symbol)==null?void 0:s.exports)==null?void 0:o.get(t)}var WU,VU,lbe,PLe=wt({"src/compiler/binder.ts"(){Fs(),mb(),WU=(e=>(e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly",e))(WU||{}),VU=(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))(VU||{}),lbe=kLe()}});function xse(e,t,n,i,s,o,c,u,f,g){return d;function d(y=()=>!0){const S=[],T=[];return{walkType:ue=>{try{return k(ue),{visitedTypes:vT(S),visitedSymbols:vT(T)}}finally{lg(S),lg(T)}},walkSymbol:ue=>{try{return Y(ue),{visitedTypes:vT(S),visitedSymbols:vT(T)}}finally{lg(S),lg(T)}}};function k(ue){if(!(!ue||S[ue.id]||(S[ue.id]=ue,Y(ue.symbol)))){if(ue.flags&524288){const H=ue,q=H.objectFlags;q&4&&w(ue),q&32&&$(ue),q&3&&re(ue),q&24&&R(H)}ue.flags&262144&&P(ue),ue.flags&3145728&&F(ue),ue.flags&4194304&&J(ue),ue.flags&8388608&&U(ue)}}function w(ue){k(ue.target),er(g(ue),k)}function P(ue){k(u(ue))}function F(ue){er(ue.types,k)}function J(ue){k(ue.type)}function U(ue){k(ue.objectType),k(ue.indexType),k(ue.constraint)}function $(ue){k(ue.typeParameter),k(ue.constraintType),k(ue.templateType),k(ue.modifiersType)}function j(ue){const pe=t(ue);pe&&k(pe.type),er(ue.typeParameters,k);for(const H of ue.parameters)Y(H);k(e(ue)),k(n(ue))}function re(ue){R(ue),er(ue.typeParameters,k),er(i(ue),k),k(ue.thisType)}function R(ue){const pe=s(ue);for(const H of pe.indexInfos)k(H.keyType),k(H.type);for(const H of pe.callSignatures)j(H);for(const H of pe.constructSignatures)j(H);for(const H of pe.properties)Y(H)}function Y(ue){if(!ue)return!1;const pe=Ks(ue);if(T[pe])return!1;if(T[pe]=ue,!y(ue))return!0;const H=o(ue);return k(H),ue.exports&&ue.exports.forEach(Y),er(ue.declarations,q=>{if(q.type&&q.type.kind===186){const ee=q.type,oe=c(f(ee.exprName));Y(oe)}}),!1}}}var DLe=wt({"src/compiler/symbolWalker.ts"(){Fs()}});function pA({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t},n,i,s){const o=c();return{relativePreference:s!==void 0?Sl(s)?0:1:e==="relative"?0:e==="non-relative"?1:e==="project-relative"?3:2,getAllowedEndingsInPreferredOrder:u=>{const f=u!==i.impliedNodeFormat?c(u):o;if((u??i.impliedNodeFormat)===99)return i6(n,i.fileName)?[3,2]:[2];if(Ru(n)===1)return f===2?[2,1]:[1,2];const g=i6(n,i.fileName);switch(f){case 2:return g?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return g?[1,0,3,2]:[1,0,2];case 0:return g?[0,1,3,2]:[0,1,2];default:E.assertNever(f)}}};function c(u){if(s!==void 0){if(Kv(s))return 2;if(Yo(s,"/index"))return 1}return lne(t,u??i.impliedNodeFormat,n,i)}}function wLe(e,t,n,i,s,o,c={}){const u=ube(e,t,n,i,s,pA({},e,t,o),{},c);if(u!==o)return u}function f9(e,t,n,i,s,o={}){return ube(e,t,n,i,s,pA({},e,t),{},o)}function ALe(e,t,n,i,s,o={}){const c=UU(t.fileName,i),u=hbe(c,n,i,s,o);return $o(u,f=>Cse(f,c,t,i,e,s,!0,o.overrideImportMode))}function ube(e,t,n,i,s,o,c,u={}){const f=UU(n,s),g=hbe(f,i,s,c,u);return $o(g,d=>Cse(d,f,t,s,e,c,void 0,u.overrideImportMode))||dbe(i,f,e,s,u.overrideImportMode||t.impliedNodeFormat,o)}function NLe(e,t,n,i,s={}){return _be(e,t,n,i,s)[0]}function _be(e,t,n,i,s={}){var o;const c=c5(e);if(!c)return Ve;const u=(o=n.getModuleSpecifierCache)==null?void 0:o.call(n),f=u==null?void 0:u.get(t.path,c.path,i,s);return[f==null?void 0:f.moduleSpecifiers,c,f==null?void 0:f.modulePaths,u]}function fbe(e,t,n,i,s,o,c={}){return pbe(e,t,n,i,s,o,c,!1).moduleSpecifiers}function pbe(e,t,n,i,s,o,c={},u){let f=!1;const g=OLe(e,t);if(g)return{moduleSpecifiers:[g],computedWithoutCache:f};let[d,y,S,T]=_be(e,i,s,o,c);if(d)return{moduleSpecifiers:d,computedWithoutCache:f};if(!y)return{moduleSpecifiers:Ve,computedWithoutCache:f};f=!0,S||(S=ybe(UU(i.fileName,s),y.originalFileName,s));const k=ILe(S,n,i,s,o,c,u);return T==null||T.set(i.path,y.path,o,c,S,k),{moduleSpecifiers:k,computedWithoutCache:f}}function ILe(e,t,n,i,s,o={},c){const u=UU(n.fileName,i),f=pA(s,t,n),g=er(e,w=>er(i.getFileIncludeReasons().get(No(w.path,i.getCurrentDirectory(),u.getCanonicalFileName)),P=>{if(P.kind!==3||P.file!==n.path||n.impliedNodeFormat&&n.impliedNodeFormat!==Lae(n,P.index,t))return;const F=wA(n,P.index).text;return f.relativePreference!==1||!nf(F)?F:void 0}));if(g)return[g];const d=ct(e,w=>w.isInNodeModules);let y,S,T,k;for(const w of e){const P=w.isInNodeModules?Cse(w,u,n,i,t,s,void 0,o.overrideImportMode):void 0;if(y=_r(y,P),P&&w.isRedirect)return y;if(!P){const F=dbe(w.path,u,t,i,o.overrideImportMode||n.impliedNodeFormat,f,w.isRedirect);if(!F)continue;w.isRedirect?T=_r(T,F):OJ(F)?W1(F)?k=_r(k,F):S=_r(S,F):(c||!d||w.isInNodeModules)&&(k=_r(k,F))}}return S!=null&&S.length?S:T!=null&&T.length?T:y!=null&&y.length?y:E.checkDefined(k)}function UU(e,t){e=Xi(e,t.getCurrentDirectory());const n=nu(t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames():!0),i=Un(e);return{getCanonicalFileName:n,importingSourceFileName:e,sourceDirectory:i,canonicalSourceDirectory:n(i)}}function dbe(e,t,n,i,s,{getAllowedEndingsInPreferredOrder:o,relativePreference:c},u){const{baseUrl:f,paths:g,rootDirs:d}=n;if(u&&!g)return;const{sourceDirectory:y,canonicalSourceDirectory:S,getCanonicalFileName:T}=t,k=o(s),w=d&&RLe(d,e,y,T,k,n)||dA(Fv(Bp(y,e,T)),k,n);if(!f&&!g&&!MF(n)||c===0)return u?void 0:w;const P=Xi(G5(n,i)||f,i.getCurrentDirectory()),F=Tbe(e,P,T);if(!F)return u?void 0:w;const J=u?void 0:MLe(e,y,n,i,s),U=u||J===void 0?g&&vbe(F,g,k,i,n):void 0;if(u)return U;const $=J??(U===void 0&&f!==void 0?dA(F,k,n):U);if(!$)return w;if(c===1&&!nf($))return $;if(c===3&&!nf($)){const j=n.configFilePath?No(Un(n.configFilePath),i.getCurrentDirectory(),t.getCanonicalFileName):t.getCanonicalFileName(i.getCurrentDirectory()),re=No(e,j,T),R=Vi(S,j),Y=Vi(re,j);if(R&&!Y||!R&&Y)return $;const ue=kse(i,Un(re)),pe=kse(i,y),H=!SC(i);return FLe(ue,pe,H)?w:$}return xbe($)||p9(w)e.fileExists(Mn(n,"package.json"))?n:void 0)}function gbe(e,t,n,i,s){var o;const c=Zh(n),u=n.getCurrentDirectory(),f=n.isSourceOfProjectReferenceRedirect(t)?n.getProjectReferenceRedirect(t):void 0,g=No(t,u,c),d=n.redirectTargetsMap.get(g)||Ve,S=[...f?[f]:Ve,t,...d].map(F=>Xi(F,u));let T=!Wi(S,YE);if(!i){const F=er(S,J=>!(T&&YE(J))&&s(J,f===J));if(F)return F}const k=(o=n.getSymlinkCache)==null?void 0:o.call(n).getSymlinkedDirectoriesByRealpath(),w=Xi(t,u);return k&&Jp(Un(w),F=>{const J=k.get(ul(No(F,u,c)));if(J)return MJ(e,F,c)?!1:er(S,U=>{if(!MJ(U,F,c))return;const $=Bp(F,U,c);for(const j of J){const re=U0(j,$),R=s(re,U===f);if(T=!0,R)return R}})})||(i?er(S,F=>T&&YE(F)?void 0:s(F,F===f)):void 0)}function hbe(e,t,n,i,s={}){var o;const c=No(e.importingSourceFileName,n.getCurrentDirectory(),Zh(n)),u=No(t,n.getCurrentDirectory(),Zh(n)),f=(o=n.getModuleSpecifierCache)==null?void 0:o.call(n);if(f){const d=f.get(c,u,i,s);if(d!=null&&d.modulePaths)return d.modulePaths}const g=ybe(e,t,n);return f&&f.setModulePaths(c,u,i,s,g),g}function ybe(e,t,n){const i=new Map;gbe(e.importingSourceFileName,t,n,!0,(o,c)=>{const u=W1(o);i.set(o,{path:e.getCanonicalFileName(o),isRedirect:c,isInNodeModules:u})});const s=[];for(let o=e.canonicalSourceDirectory;i.size!==0;){const c=ul(o);let u;i.forEach(({path:g,isRedirect:d,isInNodeModules:y},S)=>{Vi(g,c)&&((u||(u=[])).push({path:S,isRedirect:d,isInNodeModules:y}),i.delete(S))}),u&&(u.length>1&&u.sort(mbe),s.push(...u));const f=Un(o);if(f===o)break;o=f}if(i.size){const o=gs(i.entries(),([c,{isRedirect:u,isInNodeModules:f}])=>({path:c,isRedirect:u,isInNodeModules:f}));o.length>1&&o.sort(mbe),s.push(...o)}return s}function OLe(e,t){var n;const i=(n=e.declarations)==null?void 0:n.find(c=>Sz(c)&&(!Jv(c)||!Sl(yp(c.name))));if(i)return i.name.text;const o=Ri(e.declarations,c=>{var u,f,g,d;if(!Sc(c))return;const y=w(c);if(!((u=y==null?void 0:y.parent)!=null&&u.parent&&Zd(y.parent)&&su(y.parent.parent)&&Ni(y.parent.parent.parent)))return;const S=(d=(g=(f=y.parent.parent.symbol.exports)==null?void 0:f.get("export="))==null?void 0:g.valueDeclaration)==null?void 0:d.expression;if(!S)return;const T=t.getSymbolAtLocation(S);if(!T)return;if(((T==null?void 0:T.flags)&2097152?t.getAliasedSymbol(T):T)===c.symbol)return y.parent.parent;function w(P){for(;P.flags&8;)P=P.parent;return P}})[0];if(o)return o.name.text}function vbe(e,t,n,i,s){for(const c in t)for(const u of t[c]){const f=Hs(u),g=f.indexOf("*"),d=n.map(y=>({ending:y,value:dA(e,[y],s)}));if(nh(f)&&d.push({ending:void 0,value:e}),g!==-1){const y=f.substring(0,g),S=f.substring(g+1);for(const{ending:T,value:k}of d)if(k.length>=y.length+S.length&&Vi(k,y)&&Yo(k,S)&&o({ending:T,value:k})){const w=k.substring(y.length,k.length-S.length);if(!nf(w))return XT(c,w)}}else if(ct(d,y=>y.ending!==0&&f===y.value)||ct(d,y=>y.ending===0&&f===y.value&&o(y)))return c}function o({ending:c,value:u}){return c!==0||u===dA(e,[c],s,i)}}function d9(e,t,n,i,s,o,c,u,f){if(typeof o=="string"){const g=!SC(t),d=()=>t.getCommonSourceDirectory(),y=f&&bq(n,e,g,d),S=f&&vq(n,e,g,d),T=Xi(Mn(i,o),void 0),k=GT(n)?$u(n)+Pse(n,e):void 0;switch(u){case 0:if(k&&Gg(k,T,g)===0||Gg(n,T,g)===0||y&&Gg(y,T,g)===0||S&&Gg(S,T,g)===0)return{moduleFileToTry:s};break;case 1:if(k&&jp(T,k,g)){const J=Bp(T,k,!1);return{moduleFileToTry:Xi(Mn(Mn(s,o),J),void 0)}}if(jp(T,n,g)){const J=Bp(T,n,!1);return{moduleFileToTry:Xi(Mn(Mn(s,o),J),void 0)}}if(y&&jp(T,y,g)){const J=Bp(T,y,!1);return{moduleFileToTry:Mn(s,J)}}if(S&&jp(T,S,g)){const J=Bp(T,S,!1);return{moduleFileToTry:Mn(s,J)}}break;case 2:const w=T.indexOf("*"),P=T.slice(0,w),F=T.slice(w+1);if(k&&Vi(k,P,g)&&Yo(k,F,g)){const J=k.slice(P.length,k.length-F.length);return{moduleFileToTry:XT(s,J)}}if(Vi(n,P,g)&&Yo(n,F,g)){const J=n.slice(P.length,n.length-F.length);return{moduleFileToTry:XT(s,J)}}if(y&&Vi(y,P,g)&&Yo(y,F,g)){const J=y.slice(P.length,y.length-F.length);return{moduleFileToTry:XT(s,J)}}if(S&&Vi(S,P,g)&&Yo(S,F,g)){const J=S.slice(P.length,S.length-F.length);return{moduleFileToTry:XT(s,J)}}break}}else{if(Array.isArray(o))return er(o,g=>d9(e,t,n,i,s,g,c,u,f));if(typeof o=="object"&&o!==null){for(const g of ug(o))if(g==="default"||c.indexOf(g)>=0||_A(c,g)){const d=o[g],y=d9(e,t,n,i,s,d,c,u,f);if(y)return y}}}}function LLe(e,t,n,i,s,o,c){return typeof o=="object"&&o!==null&&!Array.isArray(o)&&l9(o)?er(ug(o),u=>{const f=Xi(Mn(s,u),void 0),g=Yo(u,"/")?1:u.includes("*")?2:0;return d9(e,t,n,i,f,o[u],c,g,!1)}):d9(e,t,n,i,s,o,c,0,!1)}function MLe(e,t,n,i,s){var o,c,u;if(!i.readFile||!MF(n))return;const f=kse(i,t);if(!f)return;const g=Mn(f,"package.json"),d=(c=(o=i.getPackageJsonInfoCache)==null?void 0:o.call(i))==null?void 0:c.getPackageJsonInfo(g);if(lse(d)||!i.fileExists(g))return;const y=(d==null?void 0:d.contents.packageJsonContent)||rF(i.readFile(g)),S=y==null?void 0:y.imports;if(!S)return;const T=hy(n,s);return(u=er(ug(S),k=>{if(!Vi(k,"#")||k==="#"||Vi(k,"#/"))return;const w=Yo(k,"/")?1:k.includes("*")?2:0;return d9(n,i,e,f,k,S[k],T,w,!0)}))==null?void 0:u.moduleFileToTry}function RLe(e,t,n,i,s,o){const c=bbe(t,e,i);if(c===void 0)return;const u=bbe(n,e,i),f=Zs(u,d=>nr(c,y=>Fv(Bp(d,y,i)))),g=gB(f,nw);if(g)return dA(g,s,o)}function Cse({path:e,isRedirect:t},{getCanonicalFileName:n,canonicalSourceDirectory:i},s,o,c,u,f,g){if(!o.fileExists||!o.readFile)return;const d=PF(e);if(!d)return;const S=pA(u,c,s).getAllowedEndingsInPreferredOrder();let T=e,k=!1;if(!f){let $=d.packageRootIndex,j;for(;;){const{moduleFileToTry:re,packageRootPath:R,blockedByExports:Y,verbatimFromExports:ue}=U($);if(Ru(c)!==1){if(Y)return;if(ue)return re}if(R){T=R,k=!0;break}if(j||(j=re),$=e.indexOf(Io,$+1),$===-1){T=dA(j,S,c,o);break}}}if(t&&!k)return;const w=o.getGlobalTypingsCacheLocation&&o.getGlobalTypingsCacheLocation(),P=n(T.substring(0,d.topLevelNodeModulesIndex));if(!(Vi(i,P)||w&&Vi(n(w),P)))return;const F=T.substring(d.topLevelPackageNameIndex+1),J=I3(F);return Ru(c)===1&&J===F?void 0:J;function U($){var j,re;const R=e.substring(0,$),Y=Mn(R,"package.json");let ue=e,pe=!1;const H=(re=(j=o.getPackageJsonInfoCache)==null?void 0:j.call(o))==null?void 0:re.getPackageJsonInfo(Y);if(s9(H)||H===void 0&&o.fileExists(Y)){const q=(H==null?void 0:H.contents.packageJsonContent)||rF(o.readFile(Y)),ee=g||s.impliedNodeFormat;if(LF(c)){const ae=R.substring(d.topLevelPackageNameIndex+1),K=I3(ae),fe=hy(c,ee),ke=q!=null&&q.exports?LLe(c,o,e,R,K,q.exports,fe):void 0;if(ke)return{...ke,verbatimFromExports:!0};if(q!=null&&q.exports)return{moduleFileToTry:e,blockedByExports:!0}}const oe=q!=null&&q.typesVersions?n9(q.typesVersions):void 0;if(oe){const ae=e.slice(R.length+1),K=vbe(ae,oe.paths,S,o,c);K===void 0?pe=!0:ue=Mn(R,K)}const Se=(q==null?void 0:q.typings)||(q==null?void 0:q.types)||(q==null?void 0:q.main)||"index.js";if(ls(Se)&&!(pe&&MW(SF(oe.paths),Se))){const ae=No(Se,R,n),K=n(ue);if($u(ae)===$u(K))return{packageRootPath:R,moduleFileToTry:ue};if((q==null?void 0:q.type)!=="module"&&!Gc(K,mw)&&Vi(K,ae)&&Un(K)===d1(ae)&&$u(wc(K))==="index")return{packageRootPath:R,moduleFileToTry:ue}}}else{const q=n(ue.substring(d.packageRootIndex+1));if(q==="index.d.ts"||q==="index.js"||q==="index.ts"||q==="index.tsx")return{moduleFileToTry:ue,packageRootPath:R}}return{moduleFileToTry:ue}}}function jLe(e,t){if(!e.fileExists)return;const n=Mp(UE({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]));for(const i of n){const s=t+i;if(e.fileExists(s))return s}}function bbe(e,t,n){return Ri(t,i=>{const s=Tbe(e,i,n);return s!==void 0&&xbe(s)?void 0:s})}function dA(e,t,n,i){if(Gc(e,[".json",".mjs",".cjs"]))return e;const s=$u(e);if(e===s)return e;const o=t.indexOf(2),c=t.indexOf(3);if(Gc(e,[".mts",".cts"])&&c!==-1&&cg===0||g===1);return f!==-1&&f(e[e.Relative=0]="Relative",e[e.NonRelative=1]="NonRelative",e[e.Shortest=2]="Shortest",e[e.ExternalNonRelative=3]="ExternalNonRelative",e))(Dse||{})}}),h2={};vl(h2,{RelativePreference:()=>Dse,countPathComponents:()=>p9,forEachFileNameOfModule:()=>gbe,getModuleSpecifier:()=>f9,getModuleSpecifierPreferences:()=>pA,getModuleSpecifiers:()=>fbe,getModuleSpecifiersWithCacheInfo:()=>pbe,getNodeModulesPackageName:()=>ALe,tryGetJSExtensionForFile:()=>Pse,tryGetModuleSpecifiersFromCache:()=>NLe,tryGetRealFileNameForNonJsDeclarationFileName:()=>Sbe,updateModuleSpecifier:()=>wLe});var Ase=wt({"src/compiler/_namespaces/ts.moduleSpecifiers.ts"(){wse()}});function BLe(){this.flags=0}function Oa(e){return e.id||(e.id=Fse,Fse++),e.id}function Ks(e){return e.id||(e.id=Ise,Ise++),e.id}function qU(e,t){const n=ch(e);return n===1||t&&n===2}function Nse(e){var t=[],n=r=>{t.push(r)},i,s=new Set,o,c,u=Il.getSymbolConstructor(),f=Il.getTypeConstructor(),g=Il.getSignatureConstructor(),d=0,y=0,S=0,T=0,k=0,w=0,P,F,J=!1,U=Bs(),$=[1],j=e.getCompilerOptions(),re=Fa(j),R=au(j),Y=!!j.experimentalDecorators,ue=s3(j),pe=rne(j),H=Jb(j),q=Mu(j,"strictNullChecks"),ee=Mu(j,"strictFunctionTypes"),oe=Mu(j,"strictBindCallApply"),Se=Mu(j,"strictPropertyInitialization"),ae=Mu(j,"noImplicitAny"),K=Mu(j,"noImplicitThis"),fe=Mu(j,"useUnknownInCatchVariables"),ke=!!j.keyofStringsOnly,Oe=ke?1:0,me=j.suppressExcessPropertyErrors?0:8192,be=j.exactOptionalPropertyTypes,xe=hct(),De=Q_t(),ft=_m(),ge=Bs(),Fe=xa(4,"undefined");Fe.declarations=[];var $e=xa(1536,"globalThis",8);$e.exports=ge,$e.declarations=[],ge.set($e.escapedName,$e);var Pt=xa(4,"arguments"),at=xa(4,"require"),Je=j.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",pt=!j.verbatimModuleSyntax||!!j.importsNotUsedAsValues,zt,Vt,hr=0,Lr,tr=0;const jt={getNodeCount:()=>Du(e.getSourceFiles(),(r,a)=>r+a.nodeCount,0),getIdentifierCount:()=>Du(e.getSourceFiles(),(r,a)=>r+a.identifierCount,0),getSymbolCount:()=>Du(e.getSourceFiles(),(r,a)=>r+a.symbolCount,y),getTypeCount:()=>d,getInstantiationCount:()=>S,getRelationCacheSizes:()=>({assignable:d_.size,identity:P_.size,subtype:Hm.size,strictSubtype:tp.size}),isUndefinedSymbol:r=>r===Fe,isArgumentsSymbol:r=>r===Pt,isUnknownSymbol:r=>r===tt,getMergedSymbol:Na,getDiagnostics:q7e,getGlobalDiagnostics:f_t,getRecursionIdentity:hZ,getUnmatchedProperties:oge,getTypeOfSymbolAtLocation:(r,a)=>{const l=as(a);return l?sst(r,l):nt},getTypeOfSymbol:Xr,getSymbolsOfParameterPropertyDeclaration:(r,a)=>{const l=as(r,rs);return l===void 0?E.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(E.assert(O_(l,l.parent)),EP(l,Wo(a)))},getDeclaredTypeOfSymbol:Eo,getPropertiesOfType:Ua,getPropertyOfType:(r,a)=>$s(r,Wo(a)),getPrivateIdentifierPropertyOfType:(r,a,l)=>{const _=as(l);if(!_)return;const m=Wo(a),h=$Z(m,_);return h?Hge(r,h):void 0},getTypeOfPropertyOfType:(r,a)=>je(r,Wo(a)),getIndexInfoOfType:(r,a)=>zg(r,a===0?Ce:_t),getIndexInfosOfType:Wu,getIndexInfosOfIndexSymbol:tme,getSignaturesOfType:Es,getIndexTypeOfType:(r,a)=>bv(r,a===0?Ce:_t),getIndexType:r=>dm(r),getBaseTypes:Z_,getBaseTypeOfLiteralType:Oh,getWidenedType:gf,getTypeFromTypeNode:r=>{const a=as(r,ki);return a?ii(a):nt},getParameterType:Md,getParameterIdentifierInfoAtPosition:Lot,getPromisedTypeOfPromise:BI,getAwaitedType:r=>pT(r),getReturnTypeOfSignature:Ja,isNullableType:Cj,getNullableType:lj,getNonNullableType:Lh,getNonOptionalType:SZ,getTypeArguments:bo,typeToTypeNode:ft.typeToTypeNode,indexInfoToIndexSignatureDeclaration:ft.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:ft.signatureToSignatureDeclaration,symbolToEntityName:ft.symbolToEntityName,symbolToExpression:ft.symbolToExpression,symbolToNode:ft.symbolToNode,symbolToTypeParameterDeclarations:ft.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:ft.symbolToParameterDeclaration,typeParameterToDeclaration:ft.typeParameterToDeclaration,getSymbolsInScope:(r,a)=>{const l=as(r);return l?p_t(l,a):[]},getSymbolAtLocation:r=>{const a=as(r);return a?ld(a,!0):void 0},getIndexInfosAtLocation:r=>{const a=as(r);return a?S_t(a):void 0},getShorthandAssignmentValueSymbol:r=>{const a=as(r);return a?T_t(a):void 0},getExportSpecifierLocalTargetSymbol:r=>{const a=as(r,vu);return a?x_t(a):void 0},getExportSymbolOfSymbol(r){return Na(r.exportSymbol||r)},getTypeAtLocation:r=>{const a=as(r);return a?xk(a):nt},getTypeOfAssignmentPattern:r=>{const a=as(r,_E);return a&&kK(a)||nt},getPropertySymbolOfDestructuringAssignment:r=>{const a=as(r,Ie);return a?k_t(a):void 0},signatureToString:(r,a,l,_)=>Ym(r,as(a),l,_),typeToString:(r,a,l)=>Ar(r,as(a),l),symbolToString:(r,a,l,_)=>ni(r,as(a),l,_),typePredicateToString:(r,a,l)=>Zm(r,as(a),l),writeSignature:(r,a,l,_,m)=>Ym(r,as(a),l,_,m),writeType:(r,a,l,_)=>Ar(r,as(a),l,_),writeSymbol:(r,a,l,_,m)=>ni(r,as(a),l,_,m),writeTypePredicate:(r,a,l,_)=>Zm(r,as(a),l,_),getAugmentedPropertiesOfType:Ghe,getRootSymbols:K7e,getSymbolOfExpando:nK,getContextualType:(r,a)=>{const l=as(r,ot);if(l)return a&4?Ji(l,()=>y_(l,a)):y_(l,a)},getContextualTypeForObjectLiteralElement:r=>{const a=as(r,Yg);return a?Ige(a,void 0):void 0},getContextualTypeForArgumentAtIndex:(r,a)=>{const l=as(r,jv);return l&&Nge(l,a)},getContextualTypeForJsxAttribute:r=>{const a=as(r,K7);return a&&pNe(a,void 0)},isContextSensitive:cp,getTypeOfPropertyOfContextualType:wv,getFullyQualifiedName:pf,getResolvedSignature:(r,a,l)=>yi(r,a,l,0),getCandidateSignaturesForStringLiteralCompletions:Rt,getResolvedSignatureForSignatureHelp:(r,a,l)=>Kn(r,()=>yi(r,a,l,16)),getExpandedParameters:d8e,hasEffectiveRestParameter:ag,containsArgumentsReference:Zde,getConstantValue:r=>{const a=as(r,i5e);return a?$he(a):void 0},isValidPropertyAccess:(r,a)=>{const l=as(r,ite);return!!l&&Uat(l,Wo(a))},isValidPropertyAccessForCompletions:(r,a,l)=>{const _=as(r,Sn);return!!_&&VNe(_,a,l)},getSignatureFromDeclaration:r=>{const a=as(r,As);return a?Np(a):void 0},isImplementationOfOverload:r=>{const a=as(r,As);return a?r5e(a):void 0},getImmediateAliasedSymbol:Rge,getAliasedSymbol:cl,getEmitResolver:v0,getExportsOfModule:RS,getExportsAndPropertiesOfModule:r4,forEachExportAndPropertyOfModule:n4,getSymbolWalker:xse(Ptt,op,Ja,Z_,Id,Xr,od,r_,lf,bo),getAmbientModules:Bft,getJsxIntrinsicTagNamesAt:xat,isOptionalParameter:r=>{const a=as(r,rs);return a?uI(a):!1},tryGetMemberInModuleExports:(r,a)=>jS(Wo(r),a),tryGetMemberInModuleExportsAndProperties:(r,a)=>i4(Wo(r),a),tryFindAmbientModule:r=>VY(r,!0),tryFindAmbientModuleWithoutAugmentations:r=>VY(r,!1),getApparentType:n_,getUnionType:Bn,isTypeAssignableTo:Qs,createAnonymousType:so,createSignature:Jg,createSymbol:xa,createIndexInfo:ng,getAnyType:()=>B,getStringType:()=>Ce,getStringLiteralType:h_,getNumberType:()=>_t,getNumberLiteralType:Od,getBigIntType:()=>Tt,createPromiseType:Mj,createArrayType:pu,getElementTypeOfArrayType:cj,getBooleanType:()=>fi,getFalseType:r=>r?Jt:ar,getTrueType:r=>r?Er:Nr,getVoidType:()=>Wr,getUndefinedType:()=>Pe,getNullType:()=>ce,getESSymbolType:()=>oi,getNeverType:()=>Cn,getOptionalType:()=>V,getPromiseType:()=>HR(!1),getPromiseLikeType:()=>twe(!1),getAsyncIterableType:()=>{const r=KY(!1);if(r!==fs)return r},isSymbolAccessible:gi,isArrayType:up,isTupleType:da,isArrayLikeType:N0,isEmptyAnonymousObjectType:sg,isTypeInvalidDueToUnionDiscriminant:ctt,getExactOptionalProperties:Lnt,getAllPossiblePropertiesOfTypes:ltt,getSuggestedSymbolForNonexistentProperty:Xge,getSuggestionForNonexistentProperty:Qge,getSuggestedSymbolForNonexistentJSXAttribute:zNe,getSuggestedSymbolForNonexistentSymbol:(r,a,l)=>Yge(r,Wo(a),l),getSuggestionForNonexistentSymbol:(r,a,l)=>Jat(r,Wo(a),l),getSuggestedSymbolForNonexistentModule:QZ,getSuggestionForNonexistentExport:zat,getSuggestedSymbolForNonexistentClassMember:JNe,getBaseConstraintOfType:fu,getDefaultFromTypeParameter:r=>r&&r.flags&262144?XS(r):void 0,resolveName(r,a,l,_){return Ho(a,Wo(r),l,void 0,void 0,!1,_)},getJsxNamespace:r=>xi(rv(r)),getJsxFragmentFactory:r=>{const a=Qhe(r);return a&&xi(lf(a).escapedText)},getAccessibleSymbolChain:jy,getTypePredicateOfSignature:op,resolveExternalModuleName:r=>{const a=as(r,ot);return a&&zu(a,a,!0)},resolveExternalModuleSymbol:X_,tryGetThisTypeAt:(r,a,l)=>{const _=as(r);return _&&Pge(_,a,l)},getTypeArgumentConstraint:r=>{const a=as(r,ki);return a&&Xct(a)},getSuggestionDiagnostics:(r,a)=>{const l=as(r,Ni)||E.fail("Could not determine parsed source file.");if(GE(l,j,e))return Ve;let _;try{return i=a,qhe(l),E.assert(!!(jn(l).flags&1)),_=Nn(_,bS.getDiagnostics(l.fileName)),o7e(U7e(l),(m,h,x)=>{!Yk(m)&&!V7e(h,!!(m.flags&33554432))&&(_||(_=[])).push({...x,category:2})}),_||Ve}finally{i=void 0}},runWithCancellationToken:(r,a)=>{try{return i=r,a(jt)}finally{i=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:hn,isDeclarationVisible:Dd,isPropertyAccessible:Kge,getTypeOnlyAliasDeclaration:rp,getMemberOverrideModifierStatus:Put,isTypeParameterPossiblyReferenced:KR,typeHasCallOrConstructSignatures:CK};function Rt(r,a){const l=new Set,_=[];Ji(a,()=>yi(r,_,void 0,0));for(const m of _)l.add(m);_.length=0,Kn(a,()=>yi(r,_,void 0,0));for(const m of _)l.add(m);return gs(l)}function Kn(r,a){if(r=Pr(r,az),r){const l=[],_=[];for(;r;){const h=jn(r);if(l.push([h,h.resolvedSignature]),h.resolvedSignature=void 0,t2(r)){const x=wi(un(r)),N=x.type;_.push([x,N]),x.type=void 0}r=Pr(r.parent,az)}const m=a();for(const[h,x]of l)h.resolvedSignature=x;for(const[h,x]of _)h.type=x;return m}return a()}function Ji(r,a){const l=Pr(r,jv);if(l){let m=r;do jn(m).skipDirectInference=!0,m=m.parent;while(m&&m!==l)}J=!0;const _=Kn(r,a);if(J=!1,l){let m=r;do jn(m).skipDirectInference=void 0,m=m.parent;while(m&&m!==l)}return _}function yi(r,a,l,_){const m=as(r,jv);zt=l;const h=m?D4(m,a,_):void 0;return zt=void 0,h}var os=new Map,yr=new Map,_i=new Map,ln=new Map,Ht=new Map,Ue=new Map,Et=new Map,fr=new Map,Hn=new Map,ei=new Map,Ii=new Map,ns=new Map,Vs=new Map,_a=new Map,cr=new Map,br=[],Le=new Map,rt=new Set,tt=xa(4,"unknown"),yt=xa(0,"__resolving__"),ne=new Map,we=new Map,et=new Set,B=Oc(1,"any"),Ge=Oc(1,"any",262144,"auto"),mt=Oc(1,"any",void 0,"wildcard"),Be=Oc(1,"any",void 0,"blocked string"),nt=Oc(1,"error"),Dt=Oc(1,"unresolved"),ir=Oc(1,"any",65536,"non-inferrable"),Yt=Oc(1,"intrinsic"),Kt=Oc(2,"unknown"),W=Oc(2,"unknown",void 0,"non-null"),Pe=Oc(32768,"undefined"),St=q?Pe:Oc(32768,"undefined",65536,"widening"),A=Oc(32768,"undefined",void 0,"missing"),le=be?A:Pe,V=Oc(32768,"undefined",void 0,"optional"),ce=Oc(65536,"null"),Ne=q?ce:Oc(65536,"null",65536,"widening"),Ce=Oc(4,"string"),_t=Oc(8,"number"),Tt=Oc(64,"bigint"),Jt=Oc(512,"false",void 0,"fresh"),ar=Oc(512,"false"),Er=Oc(512,"true",void 0,"fresh"),Nr=Oc(512,"true");Er.regularType=Nr,Er.freshType=Er,Nr.regularType=Nr,Nr.freshType=Er,Jt.regularType=ar,Jt.freshType=Jt,ar.regularType=ar,ar.freshType=Jt;var fi=Bn([ar,Nr]),oi=Oc(4096,"symbol"),Wr=Oc(16384,"void"),Cn=Oc(131072,"never"),Qi=Oc(131072,"never",262144,"silent"),pi=Oc(131072,"never",void 0,"implicit"),ci=Oc(131072,"never",void 0,"unreachable"),In=Oc(67108864,"object"),is=Bn([Ce,_t]),pr=Bn([Ce,_t,oi]),uo=ke?Ce:pr,kc=Bn([_t,Tt]),_s=Bn([Ce,_t,fi,Tt,ce,Pe]),Ra=YS(["",""],[_t]),mo=ZR(r=>r.flags&262144?cnt(r):r,()=>"(restrictive mapper)"),Uo=ZR(r=>r.flags&262144?mt:r,()=>"(permissive mapper)"),Ol=Oc(131072,"never",void 0,"unique literal"),$i=ZR(r=>r.flags&262144?Ol:r,()=>"(unique literal mapper)"),zs,Ll=ZR(r=>(zs&&(r===q_||r===io||r===Yc)&&zs(!0),r),()=>"(unmeasurable reporter)"),Qa=ZR(r=>(zs&&(r===q_||r===io||r===Yc)&&zs(!1),r),()=>"(unreliable reporter)"),oa=so(void 0,U,Ve,Ve,Ve),zo=so(void 0,U,Ve,Ve,Ve);zo.objectFlags|=2048;var Kf=xa(2048,"__type");Kf.members=Bs();var Fc=so(Kf,U,Ve,Ve,Ve),rc=so(void 0,U,Ve,Ve,Ve),Mo=q?Bn([Pe,ce,rc]):Kt,fs=so(void 0,U,Ve,Ve,Ve);fs.instantiations=new Map;var Wt=so(void 0,U,Ve,Ve,Ve);Wt.objectFlags|=262144;var go=so(void 0,U,Ve,Ve,Ve),Pl=so(void 0,U,Ve,Ve,Ve),Ml=so(void 0,U,Ve,Ve,Ve),q_=jf(),io=jf();io.constraint=q_;var Yc=jf(),se=jf(),X=jf();X.constraint=se;var Ee=UR(1,"<>",0,B),lt=Jg(void 0,void 0,void 0,Ve,B,void 0,0,0),Xt=Jg(void 0,void 0,void 0,Ve,nt,void 0,0,0),an=Jg(void 0,void 0,void 0,Ve,B,void 0,0,0),rn=Jg(void 0,void 0,void 0,Ve,Qi,void 0,0,0),En=ng(_t,Ce,!0),li=new Map,gn={get yieldType(){return E.fail("Not supported")},get returnType(){return E.fail("Not supported")},get nextType(){return E.fail("Not supported")}},Ps=O0(B,B,B),Qo=O0(B,B,Kt),ml=O0(Cn,B,Pe),ho={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:Wtt,getGlobalIterableType:KY,getGlobalIterableIteratorType:Vtt,getGlobalGeneratorType:Utt,resolveIterationType:(r,a)=>pT(r,a,p.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),mustHaveANextMethodDiagnostic:p.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:p.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:p.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},Vc={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:qtt,getGlobalIterableType:pme,getGlobalIterableIteratorType:Htt,getGlobalGeneratorType:Gtt,resolveIterationType:(r,a)=>r,mustHaveANextMethodDiagnostic:p.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:p.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:p.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},$a,gl=new Map,E_=[],ol,Pp,Ju,Te,kt,Fr,Yi,Ds,Is,Cc,Uc,Ro,qo,dc,Ec,hl,If,__,Ku,ep,am,qm,_h,_u,fh,H_,Ag,f_,Q,Ye,Ct,At,O,he,Xe,Ft,zr,Vn,Ln,ji,fa,pa,lc,Rl,Zc,G_,p_,Cy,ja,Zp,Kp,Ci,ph,h0,ed,w2,A2,Ff=new Map,om=0,Of=0,dh=0,Ae=!1,We=0,bt,Nt,sr,Mr=[],rr=[],Rr=[],Yn=0,Gr=[],zn=[],Yr=0,ws=h_(""),Ta=Od(0),ku=iZ({negative:!1,base10Value:"0"}),jl=[],mh=[],Z1=[],qx=0,K1=!1,V6=0,U6=10,q6=[],yS=[],N2=[],Hx=[],H6=[],Gx=[],$x=[],Xx=[],Qx=[],vS=[],Yx=[],I2=[],F2=[],Ey=[],Py=[],Ng=[],ev=[],wa=yC(),bS=yC(),G6=Qm(),tv,gh,Hm=new Map,tp=new Map,d_=new Map,$_=new Map,P_=new Map,y0=new Map,SS=Bs();SS.set(Fe.escapedName,Fe);var $6=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",j.jsx===1?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return Y_t(),jt;function Zx(r){return r?cr.get(r):void 0}function Dy(r,a){return r&&cr.set(r,a),a}function rv(r){if(r){const a=wr(r);if(a)if(dx(r)){if(a.localJsxFragmentNamespace)return a.localJsxFragmentNamespace;const l=a.pragmas.get("jsxfrag");if(l){const m=ts(l)?l[0]:l;if(a.localJsxFragmentFactory=yx(m.arguments.factory,re),qe(a.localJsxFragmentFactory,qc,b_),a.localJsxFragmentFactory)return a.localJsxFragmentNamespace=lf(a.localJsxFragmentFactory).escapedText}const _=Qhe(r);if(_)return a.localJsxFragmentFactory=_,a.localJsxFragmentNamespace=lf(_).escapedText}else{const l=Kx(a);if(l)return a.localJsxNamespace=l}}return tv||(tv="React",j.jsxFactory?(gh=yx(j.jsxFactory,re),qe(gh,qc),gh&&(tv=lf(gh).escapedText)):j.reactNamespace&&(tv=Wo(j.reactNamespace))),gh||(gh=I.createQualifiedName(I.createIdentifier(xi(tv)),"createElement")),tv}function Kx(r){if(r.localJsxNamespace)return r.localJsxNamespace;const a=r.pragmas.get("jsx");if(a){const l=ts(a)?a[0]:a;if(r.localJsxFactory=yx(l.arguments.factory,re),qe(r.localJsxFactory,qc,b_),r.localJsxFactory)return r.localJsxNamespace=lf(r.localJsxFactory).escapedText}}function qc(r){return Fm(r,-1,-1),ur(r,qc,void 0)}function v0(r,a){return q7e(r,a),De}function ek(r,a,...l){const _=r?yn(r,a,...l):gc(a,...l),m=wa.lookup(_);return m||(wa.add(_),_)}function xd(r,a,l,..._){const m=Me(a,l,..._);return m.skippedOn=r,m}function TS(r,a,...l){return r?yn(r,a,...l):gc(a,...l)}function Me(r,a,...l){const _=TS(r,a,...l);return wa.add(_),_}function kd(r,a){r?wa.add(a):bS.add({...a,category:2})}function Bl(r,a,l,..._){if(a.pos<0||a.end<0){if(!r)return;const m=wr(a);kd(r,"message"in l?xl(m,0,0,l,..._):Az(m,l));return}kd(r,"message"in l?yn(a,l,..._):Zg(wr(a),a,l))}function nv(r,a,l,..._){const m=Me(r,l,..._);if(a){const h=yn(r,p.Did_you_forget_to_use_await);la(m,h)}return m}function tk(r,a){const l=Array.isArray(r)?er(r,HJ):HJ(r);return l&&la(a,yn(l,p.The_declaration_was_marked_as_deprecated_here)),bS.add(a),a}function wy(r){const a=e_(r);return a&&gr(r.declarations)>1?a.flags&64?ct(r.declarations,b0):Wi(r.declarations,b0):!!r.valueDeclaration&&b0(r.valueDeclaration)||gr(r.declarations)&&Wi(r.declarations,b0)}function b0(r){return!!(lb(r)&536870912)}function S0(r,a,l){const _=yn(r,p._0_is_deprecated,l);return tk(a,_)}function CP(r,a,l,_){const m=l?yn(r,p.The_signature_0_of_1_is_deprecated,_,l):yn(r,p._0_is_deprecated,_);return tk(a,m)}function xa(r,a,l){y++;const _=new u(r|33554432,a);return _.links=new Mse,_.links.checkFlags=l||0,_}function Cd(r,a){const l=xa(1,r);return l.links.type=a,l}function xS(r,a){const l=xa(4,r);return l.links.type=a,l}function kS(r){let a=0;return r&2&&(a|=111551),r&1&&(a|=111550),r&4&&(a|=0),r&8&&(a|=900095),r&16&&(a|=110991),r&32&&(a|=899503),r&64&&(a|=788872),r&256&&(a|=899327),r&128&&(a|=899967),r&512&&(a|=110735),r&8192&&(a|=103359),r&32768&&(a|=46015),r&65536&&(a|=78783),r&262144&&(a|=526824),r&524288&&(a|=788968),r&2097152&&(a|=2097152),a}function iv(r,a){a.mergeId||(a.mergeId=Ose,Ose++),q6[a.mergeId]=r}function CS(r){const a=xa(r.flags,r.escapedName);return a.declarations=r.declarations?r.declarations.slice():[],a.parent=r.parent,r.valueDeclaration&&(a.valueDeclaration=r.valueDeclaration),r.constEnumOnlyModule&&(a.constEnumOnlyModule=!0),r.members&&(a.members=new Map(r.members)),r.exports&&(a.exports=new Map(r.exports)),iv(a,r),a}function Dp(r,a,l=!1){if(!(r.flags&kS(a.flags))||(a.flags|r.flags)&67108864){if(a===r)return r;if(!(r.flags&33554432)){const m=mc(r);if(m===tt)return a;r=CS(m)}a.flags&512&&r.flags&512&&r.constEnumOnlyModule&&!a.constEnumOnlyModule&&(r.constEnumOnlyModule=!1),r.flags|=a.flags,a.valueDeclaration&&N8(r,a.valueDeclaration),Nn(r.declarations,a.declarations),a.members&&(r.members||(r.members=Bs()),Ed(r.members,a.members,l)),a.exports&&(r.exports||(r.exports=Bs()),Ed(r.exports,a.exports,l)),l||iv(r,a)}else if(r.flags&1024)r!==$e&&Me(a.declarations&&us(a.declarations[0]),p.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,ni(r));else{const m=!!(r.flags&384||a.flags&384),h=!!(r.flags&2||a.flags&2),x=m?p.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:h?p.Cannot_redeclare_block_scoped_variable_0:p.Duplicate_identifier_0,N=a.declarations&&wr(a.declarations[0]),L=r.declarations&&wr(r.declarations[0]),z=c8(N,j.checkJs),Z=c8(L,j.checkJs),de=ni(a);if(N&&L&&$a&&!m&&N!==L){const _e=Gg(N.path,L.path)===-1?N:L,Re=_e===N?L:N,st=z4($a,`${_e.path}|${Re.path}`,()=>({firstFile:_e,secondFile:Re,conflictingSymbols:new Map})),gt=z4(st.conflictingSymbols,de,()=>({isBlockScoped:h,firstFileLocations:[],secondFileLocations:[]}));z||_(gt.firstFileLocations,a),Z||_(gt.secondFileLocations,r)}else z||wp(a,x,de,r),Z||wp(r,x,de,a)}return r;function _(m,h){if(h.declarations)for(const x of h.declarations)zf(m,x)}}function wp(r,a,l,_){er(r.declarations,m=>{hh(m,a,l,_.declarations)})}function hh(r,a,l,_){const m=(E1(r,!1)?Jz(r):us(r))||r,h=ek(m,a,l);for(const x of _||Ve){const N=(E1(x,!1)?Jz(x):us(x))||x;if(N===m)continue;h.relatedInformation=h.relatedInformation||[];const L=yn(N,p._0_was_also_declared_here,l),z=yn(N,p.and_here);gr(h.relatedInformation)>=5||ct(h.relatedInformation,Z=>WE(Z,z)===0||WE(Z,L)===0)||la(h,gr(h.relatedInformation)?z:L)}}function rk(r,a){if(!(r!=null&&r.size))return a;if(!(a!=null&&a.size))return r;const l=Bs();return Ed(l,r),Ed(l,a),l}function Ed(r,a,l=!1){a.forEach((_,m)=>{const h=r.get(m);r.set(m,h?Dp(h,_,l):Na(_))})}function X6(r){var a,l,_;const m=r.parent;if(((a=m.symbol.declarations)==null?void 0:a[0])!==m){E.assert(m.symbol.declarations.length>1);return}if(Vd(m))Ed(ge,m.symbol.exports);else{const h=r.parent.parent.flags&33554432?void 0:p.Invalid_module_name_in_augmentation_module_0_cannot_be_found;let x=Sh(r,r,h,!0);if(!x)return;if(x=X_(x),x.flags&1920)if(ct(Pp,N=>x===N.symbol)){const N=Dp(m.symbol,x,!0);Ju||(Ju=new Map),Ju.set(r.text,N)}else{if((l=x.exports)!=null&&l.get("__export")&&((_=m.symbol.exports)!=null&&_.size)){const N=Lde(x,"resolvedExports");for(const[L,z]of gs(m.symbol.exports.entries()))N.has(L)&&!x.exports.has(L)&&Dp(N.get(L),z)}Dp(x,m.symbol)}else Me(r,p.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,r.text)}}function O2(r,a,l){a.forEach((m,h)=>{const x=r.get(h);x?er(x.declarations,_(xi(h),l)):r.set(h,m)});function _(m,h){return x=>wa.add(yn(x,h,m))}}function wi(r){if(r.flags&33554432)return r.links;const a=Ks(r);return yS[a]??(yS[a]=new Mse)}function jn(r){const a=Oa(r);return N2[a]||(N2[a]=new BLe)}function Gm(r){return r.kind===312&&!af(r)}function m_(r,a,l){if(l){const _=Na(r.get(a));if(_&&(E.assert((Ko(_)&1)===0,"Should never get an instantiated symbol here."),_.flags&l||_.flags&2097152&&$l(_)&l))return _}}function EP(r,a){const l=r.parent,_=r.parent.parent,m=m_(l.locals,a,111551),h=m_(Xy(_.symbol),a,111551);return m&&h?[m,h]:E.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function yh(r,a){const l=wr(r),_=wr(a),m=Nm(r);if(l!==_){if(R&&(l.externalModuleIndicator||_.externalModuleIndicator)||!no(j)||Mb(a)||r.flags&33554432||x(a,r))return!0;const L=e.getSourceFiles();return L.indexOf(l)<=L.indexOf(_)}if(a.flags&16777216||Mb(a)||dge(a))return!0;if(r.pos<=a.pos&&!(xs(r)&&v8(a.parent)&&!r.initializer&&!r.exclamationToken)){if(r.kind===208){const L=w1(a,208);return L?Pr(L,Ea)!==Pr(r,Ea)||r.posPa(L)&&L.parent.parent===r);if(xs(r))return!N(r,a,!1);if(O_(r,r.parent))return!(pe&&Nl(r)===Nl(a)&&x(a,r))}return!0}if(a.parent.kind===281||a.parent.kind===277&&a.parent.isExportEquals||a.kind===277&&a.isExportEquals)return!0;if(x(a,r))return pe&&Nl(r)&&(xs(r)||O_(r,r.parent))?!N(r,a,!0):!0;return!1;function h(L,z){switch(L.parent.parent.kind){case 243:case 248:case 250:if(M2(z,L,m))return!0;break}const Z=L.parent.parent;return Gk(Z)&&M2(z,Z.expression,m)}function x(L,z){return!!Pr(L,Z=>{if(Z===m)return"quit";if(As(Z))return!0;if(ec(Z))return z.posL.end?!1:Pr(z,_e=>{if(_e===L)return"quit";switch(_e.kind){case 219:return!0;case 172:return Z&&(xs(L)&&_e.parent===L.parent||O_(L,L.parent)&&_e.parent===L.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 PP(r,a,l){const _=Fa(j),m=a;if(rs(l)&&m.body&&r.valueDeclaration&&r.valueDeclaration.pos>=m.body.pos&&r.valueDeclaration.end<=m.body.end&&_>=2){const N=jn(m);return N.declarationRequiresScopeChange===void 0&&(N.declarationRequiresScopeChange=er(m.parameters,h)||!1),!N.declarationRequiresScopeChange}return!1;function h(N){return x(N.name)||!!N.initializer&&x(N.initializer)}function x(N){switch(N.kind){case 219:case 218:case 262:case 176:return!1;case 174:case 177:case 178:case 303:return x(N.name);case 172:return Bc(N)?!pe:x(N.name);default:return QJ(N)||hu(N)?_<7:Ea(N)&&N.dotDotDotToken&&kp(N.parent)?_<4:ki(N)?!1:Ss(N,x)||!1}}}function Ay(r){return Tb(r)&&Qg(r.type)||b3(r)&&Qg(r.typeExpression)}function Ho(r,a,l,_,m,h,x=!1,N=!0){return _f(r,a,l,_,m,h,x,N,m_)}function _f(r,a,l,_,m,h,x,N,L){var z,Z,de;const _e=r;let Re,st,gt,qt,$t,Ur=!1;const Tr=r;let Gt,Cr=!1;e:for(;r;){if(a==="const"&&Ay(r))return;if(n8(r)&&st&&r.name===st&&(st=r,r=r.parent),Dm(r)&&r.locals&&!Gm(r)&&(Re=L(r.locals,a,l))){let Br=!0;if(As(r)&&st&&st!==r.body?(l&Re.flags&788968&&st.kind!==327&&(Br=Re.flags&262144?st===r.type||st.kind===169||st.kind===348||st.kind===349||st.kind===168:!1),l&Re.flags&3&&(PP(Re,r,st)?Br=!1:Re.flags&1&&(Br=st.kind===169||st===r.type&&!!Pr(Re.valueDeclaration,rs)))):r.kind===194&&(Br=st===r.trueType),Br)break e;Re=void 0}switch(Ur=Ur||Ap(r,st),r.kind){case 312:if(!af(r))break;Cr=!0;case 267:const Br=((z=un(r))==null?void 0:z.exports)||U;if(r.kind===312||Sc(r)&&r.flags&33554432&&!Vd(r)){if(Re=Br.get("default")){const ss=xC(Re);if(ss&&Re.flags&l&&ss.escapedName===a)break e;Re=void 0}const Jr=Br.get(a);if(Jr&&Jr.flags===2097152&&(Bo(Jr,281)||Bo(Jr,280)))break}if(a!=="default"&&(Re=L(Br,a,l&2623475)))if(Ni(r)&&r.commonJsModuleIndicator&&!((Z=Re.declarations)!=null&&Z.some(hp)))Re=void 0;else break e;break;case 266:if(Re=L(((de=un(r))==null?void 0:de.exports)||U,a,l&8)){_&&xp(j)&&!(r.flags&33554432)&&wr(r)!==wr(Re.valueDeclaration)&&Me(Tr,p.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead,xi(a),Je,`${xi(Mf(r).escapedName)}.${xi(a)}`);break e}break;case 172:if(!Ms(r)){const Jr=Th(r.parent);Jr&&Jr.locals&&L(Jr.locals,a,l&111551)&&(E.assertNode(r,xs),qt=r)}break;case 263:case 231:case 264:if(Re=L(un(r).members||U,a,l&788968)){if(!vh(Re,r)){Re=void 0;break}if(st&&Ms(st)){_&&Me(Tr,p.Static_members_cannot_reference_class_type_parameters);return}break e}if(kl(r)&&l&32){const Jr=r.name;if(Jr&&a===Jr.escapedText){Re=r.symbol;break e}}break;case 233:if(st===r.expression&&r.parent.token===96){const Jr=r.parent.parent;if($n(Jr)&&(Re=L(un(Jr).members,a,l&788968))){_&&Me(Tr,p.Base_class_expressions_cannot_reference_class_type_parameters);return}}break;case 167:if(Gt=r.parent.parent,($n(Gt)||Gt.kind===264)&&(Re=L(un(Gt).members,a,l&788968))){_&&Me(Tr,p.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return}break;case 219:if(Fa(j)>=2)break;case 174:case 176:case 177:case 178:case 262:if(l&3&&a==="arguments"){Re=Pt;break e}break;case 218:if(l&3&&a==="arguments"){Re=Pt;break e}if(l&16){const Jr=r.name;if(Jr&&a===Jr.escapedText){Re=r.symbol;break e}}break;case 170:r.parent&&r.parent.kind===169&&(r=r.parent),r.parent&&(Tl(r.parent)||r.parent.kind===263)&&(r=r.parent);break;case 353:case 345:case 347:const Ir=pC(r);Ir&&(r=Ir.parent);break;case 169:st&&(st===r.initializer||st===r.name&&Ns(st))&&($t||($t=r));break;case 208:st&&(st===r.initializer||st===r.name&&Ns(st))&&$v(r)&&!$t&&($t=r);break;case 195:if(l&262144){const Jr=r.typeParameter.name;if(Jr&&a===Jr.escapedText){Re=r.typeParameter.symbol;break e}}break;case 281:st&&st===r.propertyName&&r.parent.parent.moduleSpecifier&&(r=r.parent.parent.parent);break}Ny(r)&&(gt=r),st=r,r=Cp(r)?j5(r)||r.parent:(bd(r)||NO(r))&&P1(r)||r.parent}if(h&&Re&&(!gt||Re!==gt.symbol)&&(Re.isReferenced|=l),!Re){if(st&&(E.assertNode(st,Ni),st.commonJsModuleIndicator&&a==="exports"&&l&st.symbol.flags))return st.symbol;x||(Re=L(ge,a,l))}if(!Re&&_e&&Hr(_e)&&_e.parent&&Gu(_e.parent,!1))return at;function kr(){return qt&&!pe?(Me(Tr,Tr&&qt.type&&WD(qt.type,Tr.pos)?p.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:p.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,Ka(qt.name),td(m)),!0):!1}if(Re){if(_&&kr())return}else{_&&n(()=>{if(!Tr||Tr.parent.kind!==331&&!L2(Tr,a,m)&&!kr()&&!ES(Tr)&&!nk(Tr,a,l)&&!T0(Tr,a)&&!PS(Tr,a,l)&&!Q6(Tr,a,l)&&!Og(Tr,a,l)){let Br,Ir;if(m&&(Ir=jat(m),Ir&&Me(Tr,_,td(m),Ir)),!Ir&&N&&V6{var Br;if(Tr&&(l&2||(l&32||l&384)&&(l&111551)===111551)){const Ir=Rf(Re);(Ir.flags&2||Ir.flags&32||Ir.flags&384)&&Co(Ir,Tr)}if(Re&&Cr&&(l&111551)===111551&&!(_e.flags&16777216)){const Ir=Na(Re);gr(Ir.declarations)&&Wi(Ir.declarations,Jr=>Ow(Jr)||Ni(Jr)&&!!Jr.symbol.globalExports)&&Bl(!j.allowUmdGlobalAccess,Tr,p._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,xi(a))}if(Re&&$t&&!Ur&&(l&111551)===111551){const Ir=Na(JY(Re)),Jr=Hd($t);Ir===un($t)?Me(Tr,p.Parameter_0_cannot_reference_itself,Ka($t.name)):Ir.valueDeclaration&&Ir.valueDeclaration.pos>$t.pos&&Jr.parent.locals&&L(Jr.parent.locals,Ir.escapedName,l)===Ir&&Me(Tr,p.Parameter_0_cannot_reference_identifier_1_declared_after_it,Ka($t.name),Ka(Tr))}if(Re&&Tr&&l&111551&&Re.flags&2097152&&!(Re.flags&111551)&&!I1(Tr)){const Ir=rp(Re,111551);if(Ir){const Jr=Ir.kind===281||Ir.kind===278||Ir.kind===280?p._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:p._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,ss=xi(a);Ig(Me(Tr,Jr,ss),Ir,ss)}}if(j.isolatedModules&&Re&&Cr&&(l&111551)===111551){const Jr=L(ge,a,l)===Re&&Ni(st)&&st.locals&&L(st.locals,a,-111552);if(Jr){const ss=(Br=Jr.declarations)==null?void 0:Br.find(Ki=>Ki.kind===276||Ki.kind===273||Ki.kind===274||Ki.kind===271);ss&&!QD(ss)&&Me(ss,p.Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,xi(a))}}}),Re}function Ig(r,a,l){return a?la(r,yn(a,a.kind===281||a.kind===278||a.kind===280?p._0_was_exported_here:p._0_was_imported_here,l)):r}function Ap(r,a){return r.kind!==219&&r.kind!==218?ax(r)||(fo(r)||r.kind===172&&!Ms(r))&&(!a||a!==r.name):a&&a===r.name?!1:r.asteriskToken||Rn(r,1024)?!0:!Db(r)}function Ny(r){switch(r.kind){case 262:case 263:case 264:case 266:case 265:case 267:return!0;default:return!1}}function td(r){return ls(r)?xi(r):Ka(r)}function vh(r,a){if(r.declarations){for(const l of r.declarations)if(l.kind===168&&(Cp(l.parent)?Ib(l.parent):l.parent)===a)return!(Cp(l.parent)&&wn(l.parent.parent.tags,hp))}return!1}function L2(r,a,l){if(!Ie(r)||r.escapedText!==a||H7e(r)||Mb(r))return!1;const _=a_(r,!1,!1);let m=_;for(;m;){if($n(m.parent)){const h=un(m.parent);if(!h)break;const x=Xr(h);if($s(x,a))return Me(r,p.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,td(l),ni(h)),!0;if(m===_&&!Ms(m)){const N=Eo(h).thisType;if($s(N,a))return Me(r,p.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,td(l)),!0}}m=m.parent}return!1}function ES(r){const a=Fg(r);return a&&yo(a,64,!0)?(Me(r,p.Cannot_extend_an_interface_0_Did_you_mean_implements,jc(a)),!0):!1}function Fg(r){switch(r.kind){case 80:case 211:return r.parent?Fg(r.parent):void 0;case 233:if(pc(r.expression))return r.expression;default:return}}function nk(r,a,l){const _=1920|(Hr(r)?111551:0);if(l===_){const m=mc(Ho(r,a,788968&~_,void 0,void 0,!1)),h=r.parent;if(m){if(Xu(h)){E.assert(h.left===r,"Should only be resolving left side of qualified name as a namespace");const x=h.right.escapedText;if($s(Eo(m),x))return Me(h,p.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,xi(a),xi(x)),!0}return Me(r,p._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,xi(a)),!0}}return!1}function Og(r,a,l){if(l&788584){const _=mc(Ho(r,a,111127,void 0,void 0,!1));if(_&&!(_.flags&1920))return Me(r,p._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,xi(a)),!0}return!1}function cm(r){return r==="any"||r==="string"||r==="number"||r==="boolean"||r==="never"||r==="unknown"}function T0(r,a){return cm(a)&&r.parent.kind===281?(Me(r,p.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,a),!0):!1}function Q6(r,a,l){if(l&111551){if(cm(a)){const h=r.parent.parent;if(h&&h.parent&&kf(h)){const x=h.token,N=h.parent.kind;N===264&&x===96?Me(r,p.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types,xi(a)):N===263&&x===96?Me(r,p.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,xi(a)):N===263&&x===119&&Me(r,p.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types,xi(a))}else Me(r,p._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,xi(a));return!0}const _=mc(Ho(r,a,788544,void 0,void 0,!1)),m=_&&$l(_);if(_&&m!==void 0&&!(m&111551)){const h=xi(a);return Z6(a)?Me(r,p._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,h):Y6(r,_)?Me(r,p._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,h,h==="K"?"P":"K"):Me(r,p._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,h),!0}}return!1}function Y6(r,a){const l=Pr(r.parent,_=>Pa(_)||B_(_)?!1:z_(_)||"quit");if(l&&l.members.length===1){const _=Eo(a);return!!(_.flags&1048576)&&Bj(_,384,!0)}return!1}function Z6(r){switch(r){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}function PS(r,a,l){if(l&111127){if(mc(Ho(r,a,1024,void 0,void 0,!1)))return Me(r,p.Cannot_use_namespace_0_as_a_value,xi(a)),!0}else if(l&788544&&mc(Ho(r,a,1536,void 0,void 0,!1)))return Me(r,p.Cannot_use_namespace_0_as_a_type,xi(a)),!0;return!1}function Co(r,a){var l;if(E.assert(!!(r.flags&2||r.flags&32||r.flags&384)),r.flags&67108881&&r.flags&32)return;const _=(l=r.declarations)==null?void 0:l.find(m=>vz(m)||$n(m)||m.kind===266);if(_===void 0)return E.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(_.flags&33554432)&&!yh(_,a)){let m;const h=Ka(us(_));r.flags&2?m=Me(a,p.Block_scoped_variable_0_used_before_its_declaration,h):r.flags&32?m=Me(a,p.Class_0_used_before_its_declaration,h):r.flags&256?m=Me(a,p.Enum_0_used_before_its_declaration,h):(E.assert(!!(r.flags&128)),xp(j)&&(m=Me(a,p.Enum_0_used_before_its_declaration,h))),m&&la(m,yn(_,p._0_is_declared_here,h))}}function M2(r,a,l){return!!a&&!!Pr(r,_=>_===a||(_===l||As(_)&&(!Db(_)||fl(_)&3)?"quit":!1))}function DS(r){switch(r.kind){case 271:return r;case 273:return r.parent;case 274:return r.parent.parent;case 276:return r.parent.parent.parent;default:return}}function rd(r){return r.declarations&&hT(r.declarations,Iy)}function Iy(r){return r.kind===271||r.kind===270||r.kind===273&&!!r.name||r.kind===274||r.kind===280||r.kind===276||r.kind===281||r.kind===277&&dC(r)||Zr(r)&&fc(r)===2&&dC(r)||oo(r)&&Zr(r.parent)&&r.parent.left===r&&r.parent.operatorToken.kind===64&&K6(r.parent.right)||r.kind===304||r.kind===303&&K6(r.initializer)||r.kind===260&&Uv(r)||r.kind===208&&Uv(r.parent.parent)}function K6(r){return J8(r)||co(r)&&ym(r)}function wS(r,a){const l=Oy(r);if(l){const m=CC(l.expression).arguments[0];return Ie(l.name)?mc($s(O8e(m),l.name.escapedText)):void 0}if(hi(r)||r.moduleReference.kind===283){const m=zu(r,Rz(r)||bE(r)),h=X_(m);return D_(r,m,h,!1),h}const _=sk(r.moduleReference,a);return DP(r,_),_}function DP(r,a){if(D_(r,void 0,a,!1)&&!r.isTypeOnly){const l=rp(un(r)),_=l.kind===281||l.kind===278,m=_?p.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:p.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,h=_?p._0_was_exported_here:p._0_was_imported_here,x=l.kind===278?"*":xi(l.name.escapedText);la(Me(r.moduleReference,m),yn(l,h,x))}}function en(r,a,l,_){const m=r.exports.get("export="),h=m?$s(Xr(m),a,!0):r.exports.get(a),x=mc(h,_);return D_(l,h,x,!1),x}function Dl(r){return oc(r)&&!r.isExportEquals||Rn(r,2048)||vu(r)||jm(r)}function Oi(r){return Ma(r)?e.getModeForUsageLocation(wr(r),r):void 0}function Lf(r,a){return r===99&&a===1}function x0(r){return Oi(r)===99&&Yo(r.text,".json")}function lm(r,a,l,_){const m=r&&Oi(_);if(r&&m!==void 0&&100<=R&&R<=199){const h=Lf(m,r.impliedNodeFormat);if(m===99||h)return h}if(!H)return!1;if(!r||r.isDeclarationFile){const h=en(a,"default",void 0,!0);return!(h&&ct(h.declarations,Dl)||en(a,Wo("__esModule"),void 0,l))}return Ou(r)?typeof r.externalModuleIndicator!="object"&&!en(a,Wo("__esModule"),void 0,l):k0(a)}function $r(r,a){const l=zu(r,r.parent.moduleSpecifier);if(l)return AS(l,r,a)}function AS(r,a,l){var _;let m;mE(r)?m=r:m=en(r,"default",a,l);const h=(_=r.declarations)==null?void 0:_.find(Ni),x=sv(a);if(!x)return m;const N=x0(x),L=lm(h,r,l,x);if(!m&&!L&&!N)if(k0(r)&&!H){const z=R>=5?"allowSyntheticDefaultImports":"esModuleInterop",de=r.exports.get("export=").valueDeclaration,_e=Me(a.name,p.Module_0_can_only_be_default_imported_using_the_1_flag,ni(r),z);de&&la(_e,yn(de,p.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,z))}else Rm(a)?yl(r,a):NS(r,r,a,DT(a)&&a.propertyName||a.name);else if(L||N){const z=X_(r,l)||mc(r,l);return D_(a,r,z,!1),z}return D_(a,m,void 0,!1),m}function sv(r){switch(r.kind){case 273:return r.parent.moduleSpecifier;case 271:return Bm(r.moduleReference)?r.moduleReference.expression:void 0;case 274:return r.parent.parent.moduleSpecifier;case 276:return r.parent.parent.parent.moduleSpecifier;case 281:return r.parent.parent.moduleSpecifier;default:return E.assertNever(r)}}function yl(r,a){var l,_,m;if((l=r.exports)!=null&&l.has(a.symbol.escapedName))Me(a.name,p.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,ni(r),ni(a.symbol));else{const h=Me(a.name,p.Module_0_has_no_default_export,ni(r)),x=(_=r.exports)==null?void 0:_.get("__export");if(x){const N=(m=x.declarations)==null?void 0:m.find(L=>{var z,Z;return!!(Tc(L)&&L.moduleSpecifier&&((Z=(z=zu(L,L.moduleSpecifier))==null?void 0:z.exports)!=null&&Z.has("default")))});N&&la(h,yn(N,p.export_Asterisk_does_not_re_export_a_default))}}}function $m(r,a){const l=r.parent.parent.moduleSpecifier,_=zu(r,l),m=w_(_,l,a,!1);return D_(r,_,m,!1),m}function nd(r,a){const l=r.parent.moduleSpecifier,_=l&&zu(r,l),m=l&&w_(_,l,a,!1);return D_(r,_,m,!1),m}function R2(r,a){if(r===tt&&a===tt)return tt;if(r.flags&790504)return r;const l=xa(r.flags|a.flags,r.escapedName);return E.assert(r.declarations||a.declarations),l.declarations=Nv(es(r.declarations,a.declarations),Vh),l.parent=r.parent||a.parent,r.valueDeclaration&&(l.valueDeclaration=r.valueDeclaration),a.members&&(l.members=new Map(a.members)),r.exports&&(l.exports=new Map(r.exports)),l}function j2(r,a,l,_){var m;if(r.flags&1536){const h=Q_(r).get(a.escapedText),x=mc(h,_),N=(m=wi(r).typeOnlyExportStarMap)==null?void 0:m.get(a.escapedText);return D_(l,h,x,!1,N,a.escapedText),x}}function Fy(r,a){if(r.flags&3){const l=r.valueDeclaration.type;if(l)return mc($s(ii(l),a))}}function bh(r,a,l=!1){var _;const m=Rz(r)||r.moduleSpecifier,h=zu(r,m),x=!Sn(a)&&a.propertyName||a.name;if(!Ie(x))return;const N=x.escapedText==="default"&&H,L=w_(h,m,!1,N);if(L&&x.escapedText){if(mE(h))return h;let z;h&&h.exports&&h.exports.get("export=")?z=$s(Xr(L),x.escapedText,!0):z=Fy(L,x.escapedText),z=mc(z,l);let Z=j2(L,x,a,l);if(Z===void 0&&x.escapedText==="default"){const _e=(_=h.declarations)==null?void 0:_.find(Ni);(x0(m)||lm(_e,h,l,m))&&(Z=X_(h,l)||mc(h,l))}const de=Z&&z&&Z!==z?R2(z,Z):Z||z;return de||NS(h,L,r,x),de}}function NS(r,a,l,_){var m;const h=pf(r,l),x=Ka(_),N=QZ(_,a);if(N!==void 0){const L=ni(N),z=Me(_,p._0_has_no_exported_member_named_1_Did_you_mean_2,h,x,L);N.valueDeclaration&&la(z,yn(N.valueDeclaration,p._0_is_declared_here,L))}else(m=r.exports)!=null&&m.has("default")?Me(_,p.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,h,x):id(l,_,x,r,h)}function id(r,a,l,_,m){var h,x;const N=(x=(h=Wn(_.valueDeclaration,Dm))==null?void 0:h.locals)==null?void 0:x.get(a.escapedText),L=_.exports;if(N){const z=L==null?void 0:L.get("export=");if(z)Pd(z,N)?av(r,a,l,m):Me(a,p.Module_0_has_no_exported_member_1,m,l);else{const Z=L?wn(Yde(L),_e=>!!Pd(_e,N)):void 0,de=Z?Me(a,p.Module_0_declares_1_locally_but_it_is_exported_as_2,m,l,ni(Z)):Me(a,p.Module_0_declares_1_locally_but_it_is_not_exported,m,l);N.declarations&&la(de,...nr(N.declarations,(_e,Re)=>yn(_e,Re===0?p._0_is_declared_here:p.and_here,l)))}}else Me(a,p.Module_0_has_no_exported_member_1,m,l)}function av(r,a,l,_){if(R>=5){const m=Om(j)?p._0_can_only_be_imported_by_using_a_default_import:p._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Me(a,m,l)}else if(Hr(r)){const m=Om(j)?p._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:p._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Me(a,m,l)}else{const m=Om(j)?p._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:p._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Me(a,m,l,l,_)}}function Lg(r,a){if(x_(r)&&on(r.propertyName||r.name)==="default"){const x=sv(r),N=x&&zu(r,x);if(N)return AS(N,r,a)}const l=Ea(r)?Hd(r):r.parent.parent.parent,_=Oy(l),m=bh(l,_||r,a),h=r.propertyName||r.name;return _&&m&&Ie(h)?mc($s(Xr(m),h.escapedText),a):(D_(r,void 0,m,!1),m)}function Oy(r){if(hi(r)&&r.initializer&&Sn(r.initializer))return r.initializer}function ik(r,a){if(Wd(r.parent)){const l=X_(r.parent.symbol,a);return D_(r,void 0,l,!1),l}}function ov(r,a,l){if(on(r.propertyName||r.name)==="default"){const m=sv(r),h=m&&zu(r,m);if(h)return AS(h,r,!!l)}const _=r.parent.parent.moduleSpecifier?bh(r.parent.parent,r,l):yo(r.propertyName||r.name,a,!1,l);return D_(r,void 0,_,!1),_}function e4(r,a){const l=oc(r)?r.expression:r.right,_=B2(l,a);return D_(r,void 0,_,!1),_}function B2(r,a){if(kl(r))return Dc(r).symbol;if(!b_(r)&&!pc(r))return;const l=yo(r,901119,!0,a);return l||(Dc(r),jn(r).resolvedSymbol)}function IS(r,a){if(Zr(r.parent)&&r.parent.left===r&&r.parent.operatorToken.kind===64)return B2(r.parent.right,a)}function ff(r,a=!1){switch(r.kind){case 271:case 260:return wS(r,a);case 273:return $r(r,a);case 274:return $m(r,a);case 280:return nd(r,a);case 276:case 208:return Lg(r,a);case 281:return ov(r,901119,a);case 277:case 226:return e4(r,a);case 270:return ik(r,a);case 304:return yo(r.name,901119,!0,a);case 303:return B2(r.initializer,a);case 212:case 211:return IS(r,a);default:return E.fail()}}function FS(r,a=901119){return r?(r.flags&(2097152|a))===2097152||!!(r.flags&2097152&&r.flags&67108864):!1}function mc(r,a){return!a&&FS(r)?cl(r):r}function cl(r){E.assert((r.flags&2097152)!==0,"Should only get Alias here.");const a=wi(r);if(a.aliasTarget)a.aliasTarget===yt&&(a.aliasTarget=tt);else{a.aliasTarget=yt;const l=rd(r);if(!l)return E.fail();const _=ff(l);a.aliasTarget===yt?a.aliasTarget=_||tt:Me(l,p.Circular_definition_of_import_alias_0,ni(r))}return a.aliasTarget}function OS(r){if(wi(r).aliasTarget!==yt)return cl(r)}function $l(r,a,l){const _=a&&rp(r),m=_&&Tc(_),h=_&&(m?zu(_.moduleSpecifier,_.moduleSpecifier,!0):cl(_.symbol)),x=m&&h?Xm(h):void 0;let N=l?0:r.flags,L;for(;r.flags&2097152;){const z=Rf(cl(r));if(!m&&z===h||(x==null?void 0:x.get(z.escapedName))===z)break;if(z===tt)return-1;if(z===r||L!=null&&L.has(z))break;z.flags&2097152&&(L?L.add(z):L=new Set([r,z])),N|=z.flags,r=z}return N}function D_(r,a,l,_,m,h){if(!r||Sn(r))return!1;const x=un(r);if(x1(r)){const L=wi(x);return L.typeOnlyDeclaration=r,!0}if(m){const L=wi(x);return L.typeOnlyDeclaration=m,x.escapedName!==h&&(L.typeOnlyExportStarName=h),!0}const N=wi(x);return cv(N,a,_)||cv(N,l,_)}function cv(r,a,l){var _;if(a&&(r.typeOnlyDeclaration===void 0||l&&r.typeOnlyDeclaration===!1)){const m=((_=a.exports)==null?void 0:_.get("export="))??a,h=m.declarations&&wn(m.declarations,x1);r.typeOnlyDeclaration=h??wi(m).typeOnlyDeclaration??!1}return!!r.typeOnlyDeclaration}function rp(r,a){if(!(r.flags&2097152))return;const l=wi(r);if(a===void 0)return l.typeOnlyDeclaration||void 0;if(l.typeOnlyDeclaration){const _=l.typeOnlyDeclaration.kind===278?mc(Xm(l.typeOnlyDeclaration.symbol.parent).get(l.typeOnlyExportStarName||r.escapedName)):cl(l.typeOnlyDeclaration.symbol);return $l(_)&a?l.typeOnlyDeclaration:void 0}}function Ly(r){if(!pt)return;const a=un(r),l=cl(a);l&&(l===tt||$l(a,!0)&111551&&!qI(l))&&My(a)}function My(r){E.assert(pt);const a=wi(r);if(!a.referenced){a.referenced=!0;const l=rd(r);if(!l)return E.fail();oC(l)&&$l(mc(r))&111551&&Dc(l.moduleReference)}}function wl(r){const a=wi(r);a.constEnumReferenced||(a.constEnumReferenced=!0)}function sk(r,a){return r.kind===80&&ME(r)&&(r=r.parent),r.kind===80||r.parent.kind===166?yo(r,1920,!1,a):(E.assert(r.parent.kind===271),yo(r,901119,!1,a))}function pf(r,a){return r.parent?pf(r.parent,a)+"."+ni(r):ni(r,a,void 0,36)}function LS(r){for(;Xu(r.parent);)r=r.parent;return r}function MS(r){let a=lf(r),l=Ho(a,a.escapedText,111551,void 0,a,!0);if(l){for(;Xu(a.parent);){const _=Xr(l);if(l=$s(_,a.parent.right.escapedText),!l)return;a=a.parent}return l}}function yo(r,a,l,_,m){if(_c(r))return;const h=1920|(Hr(r)?a&111551:0);let x;if(r.kind===80){const N=a===h||xo(r)?p.Cannot_find_namespace_0:PAe(lf(r)),L=Hr(r)&&!xo(r)?t4(r,a):void 0;if(x=Na(Ho(m||r,r.escapedText,a,l||L?void 0:N,r,!0,!1)),!x)return Na(L)}else if(r.kind===166||r.kind===211){const N=r.kind===166?r.left:r.expression,L=r.kind===166?r.right:r.name;let z=yo(N,h,l,!1,m);if(!z||_c(L))return;if(z===tt)return z;if(z.valueDeclaration&&Hr(z.valueDeclaration)&&Ru(j)!==100&&hi(z.valueDeclaration)&&z.valueDeclaration.initializer&&_Ie(z.valueDeclaration.initializer)){const Z=z.valueDeclaration.initializer.arguments[0],de=zu(Z,Z);if(de){const _e=X_(de);_e&&(z=_e)}}if(x=Na(m_(Q_(z),L.escapedText,a)),!x&&z.flags&2097152&&(x=Na(m_(Q_(cl(z)),L.escapedText,a))),!x){if(!l){const Z=pf(z),de=Ka(L),_e=QZ(L,z);if(_e){Me(L,p._0_has_no_exported_member_named_1_Did_you_mean_2,Z,de,ni(_e));return}const Re=Xu(r)&&LS(r);if(Te&&a&788968&&Re&&!BC(Re.parent)&&MS(Re)){Me(Re,p._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,L_(Re));return}if(a&1920&&Xu(r.parent)){const gt=Na(m_(Q_(z),L.escapedText,788968));if(gt){Me(r.parent.right,p.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,ni(gt),xi(r.parent.right.escapedText));return}}Me(L,p.Namespace_0_has_no_exported_member_1,Z,de)}return}}else E.assertNever(r,"Unknown entity name kind.");return E.assert((Ko(x)&1)===0,"Should never get an instantiated symbol here."),!xo(r)&&b_(r)&&(x.flags&2097152||r.parent.kind===277)&&D_(Xz(r),x,void 0,!0),x.flags&a||_?x:cl(x)}function t4(r,a){if(YY(r.parent)){const l=lv(r.parent);if(l)return Ho(l,r.escapedText,a,void 0,r,!0)}}function lv(r){if(Pr(r,m=>$k(m)||m.flags&16777216?hp(m):"quit"))return;const l=Ib(r);if(l&&Cl(l)&&A8(l.expression)){const m=un(l.expression.left);if(m)return J2(m)}if(l&&co(l)&&A8(l.parent)&&Cl(l.parent.parent)){const m=un(l.parent.left);if(m)return J2(m)}if(l&&(Up(l)||zc(l))&&Zr(l.parent.parent)&&fc(l.parent.parent)===6){const m=un(l.parent.parent.left);if(m)return J2(m)}const _=D1(r);if(_&&As(_)){const m=un(_);return m&&m.valueDeclaration}}function J2(r){const a=r.parent.valueDeclaration;return a?(SE(a)?OT(a):xb(a)?C8(a):void 0)||a:void 0}function wP(r){const a=r.valueDeclaration;if(!a||!Hr(a)||r.flags&524288||E1(a,!1))return;const l=hi(a)?C8(a):OT(a);if(l){const _=Mf(l);if(_)return ahe(_,r)}}function zu(r,a,l){const m=Ru(j)===1?p.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:p.Cannot_find_module_0_or_its_corresponding_type_declarations;return Sh(r,a,l?void 0:m)}function Sh(r,a,l,_=!1){return Ma(a)?um(r,a.text,l,a,_):void 0}function um(r,a,l,_,m=!1){var h,x,N,L,z,Z,de,_e,Re,st,gt;if(Vi(a,"@types/")){const Jr=p.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,ss=H4(a,"@types/");Me(_,Jr,ss,a)}const qt=VY(a,!0);if(qt)return qt;const $t=wr(r),Ur=Ma(r)?r:((h=Sc(r)?r:r.parent&&Sc(r.parent)&&r.parent.name===r?r.parent:void 0)==null?void 0:h.name)||((x=ty(r)?r:void 0)==null?void 0:x.argument.literal)||(hi(r)&&r.initializer&&Gu(r.initializer,!0)?r.initializer.arguments[0]:void 0)||((N=Pr(r,of))==null?void 0:N.arguments[0])||((L=Pr(r,il))==null?void 0:L.moduleSpecifier)||((z=Pr(r,C1))==null?void 0:z.moduleReference.expression)||((Z=Pr(r,Tc))==null?void 0:Z.moduleSpecifier),Tr=Ur&&Ma(Ur)?e.getModeForUsageLocation($t,Ur):$t.impliedNodeFormat,Gt=Ru(j),Cr=(de=e.getResolvedModule($t,a,Tr))==null?void 0:de.resolvedModule,kr=Cr&&qq(j,Cr,$t),Br=Cr&&(!kr||kr===p.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(Cr.resolvedFileName);if(Br){if(kr&&Me(_,kr,a,Cr.resolvedFileName),Cr.resolvedUsingTsExtension&&Hl(a)){const Jr=((_e=Pr(r,il))==null?void 0:_e.importClause)||Pr(r,pd(El,Tc));(Jr&&!Jr.isTypeOnly||Pr(r,of))&&Me(_,p.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,Ir(E.checkDefined(tF(a))))}else if(Cr.resolvedUsingTsExtension&&!i6(j,$t.fileName)){const Jr=((Re=Pr(r,il))==null?void 0:Re.importClause)||Pr(r,pd(El,Tc));if(!(Jr!=null&&Jr.isTypeOnly||Pr(r,Cg))){const ss=E.checkDefined(tF(a));Me(_,p.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,ss)}}if(Br.symbol){if(Cr.isExternalLibraryImport&&!qE(Cr.extension)&&ak(!1,_,$t,Tr,Cr,a),Gt===3||Gt===99){const Jr=$t.impliedNodeFormat===1&&!Pr(r,of)||!!Pr(r,El),ss=Pr(r,Ki=>Cg(Ki)||Tc(Ki)||il(Ki));if(Jr&&Br.impliedNodeFormat===99&&!xne(ss))if(Pr(r,El))Me(_,p.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 Ki;const hs=nh($t.fileName);if(hs===".ts"||hs===".js"||hs===".tsx"||hs===".jsx"){const Gi=$t.packageJsonScope,el=hs===".ts"?".mts":hs===".js"?".mjs":void 0;Gi&&!Gi.contents.packageJsonContent.type?el?Ki=vs(void 0,p.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,el,Mn(Gi.packageDirectory,"package.json")):Ki=vs(void 0,p.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,Mn(Gi.packageDirectory,"package.json")):el?Ki=vs(void 0,p.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,el):Ki=vs(void 0,p.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)}wa.add(Zg(wr(_),_,vs(Ki,p.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 Na(Br.symbol)}l&&Me(_,p.File_0_is_not_a_module,Br.fileName);return}if(Pp){const Jr=vB(Pp,ss=>ss.pattern,a);if(Jr){const ss=Ju&&Ju.get(a);return Na(ss||Jr.symbol)}}if(Cr&&!qE(Cr.extension)&&kr===void 0||kr===p.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(m){const Jr=p.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;Me(_,Jr,a,Cr.resolvedFileName)}else ak(ae&&!!l,_,$t,Tr,Cr,a);return}if(l){if(Cr){const Jr=e.getProjectReferenceRedirect(Cr.resolvedFileName);if(Jr){Me(_,p.Output_file_0_has_not_been_built_from_source_file_1,Jr,Cr.resolvedFileName);return}}if(kr)Me(_,kr,a,Cr.resolvedFileName);else{const Jr=nf(a)&&!kT(a),ss=Gt===3||Gt===99;if(!F1(j)&&Zo(a,".json")&&Gt!==1&&_F(j))Me(_,p.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,a);else if(Tr===99&&ss&&Jr){const Ki=Xi(a,Un($t.path)),hs=(st=$6.find(([Gi,el])=>e.fileExists(Ki+Gi)))==null?void 0:st[1];hs?Me(_,p.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,a+hs):Me(_,p.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((gt=e.getResolvedModule($t,a,Tr))!=null&>.alternateResult){const Ki=a5($t,e,a,Tr,a);Bl(!0,_,vs(Ki,l,a))}else Me(_,l,a)}}return;function Ir(Jr){const ss=iw(a,Jr);if(uF(R)||Tr===99){const Ki=Hl(a)&&i6(j);return ss+(Jr===".mts"||Jr===".d.mts"?Ki?".mts":".mjs":Jr===".cts"||Jr===".d.mts"?Ki?".cts":".cjs":Ki?".ts":".js")}return ss}}function ak(r,a,l,_,{packageId:m,resolvedFileName:h},x){let N;!Sl(x)&&m&&(N=a5(l,e,x,_,m.name)),Bl(r,a,vs(N,p.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,x,h))}function X_(r,a){if(r!=null&&r.exports){const l=mc(r.exports.get("export="),a),_=ok(Na(l),Na(r));return Na(_)||r}}function ok(r,a){if(!r||r===tt||r===a||a.exports.size===1||r.flags&2097152)return r;const l=wi(r);if(l.cjsExportMerged)return l.cjsExportMerged;const _=r.flags&33554432?r:CS(r);return _.flags=_.flags|512,_.exports===void 0&&(_.exports=Bs()),a.exports.forEach((m,h)=>{h!=="export="&&_.exports.set(h,_.exports.has(h)?Dp(_.exports.get(h),m):m)}),_===r&&(wi(_).resolvedExports=void 0,wi(_).resolvedMembers=void 0),wi(_).cjsExportMerged=_,l.cjsExportMerged=_}function w_(r,a,l,_){var m;const h=X_(r,l);if(!l&&h){if(!_&&!(h.flags&1539)&&!Bo(h,312)){const N=R>=5?"allowSyntheticDefaultImports":"esModuleInterop";return Me(a,p.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,N),h}const x=a.parent;if(il(x)&&_C(x)||of(x)){const N=of(x)?x.arguments[0]:x.moduleSpecifier,L=Xr(h),z=lIe(L,h,r,N);if(z)return ck(h,z,x);const Z=(m=r==null?void 0:r.declarations)==null?void 0:m.find(Ni),de=Z&&Lf(Oi(N),Z.impliedNodeFormat);if(Om(j)||de){let _e=VR(L,0);if((!_e||!_e.length)&&(_e=VR(L,1)),_e&&_e.length||$s(L,"default",!0)||de){const Re=L.flags&3670016?uIe(L,h,r,N):ohe(h,h.parent);return ck(h,Re,x)}}}}return h}function ck(r,a,l){const _=xa(r.flags,r.escapedName);_.declarations=r.declarations?r.declarations.slice():[],_.parent=r.parent,_.links.target=r,_.links.originatingImport=l,r.valueDeclaration&&(_.valueDeclaration=r.valueDeclaration),r.constEnumOnlyModule&&(_.constEnumOnlyModule=!0),r.members&&(_.members=new Map(r.members)),r.exports&&(_.exports=new Map(r.exports));const m=Id(a);return _.links.type=so(_,m.members,Ve,Ve,m.indexInfos),_}function k0(r){return r.exports.get("export=")!==void 0}function RS(r){return Yde(Xm(r))}function r4(r){const a=RS(r),l=X_(r);if(l!==r){const _=Xr(l);Ry(_)&&Nn(a,Ua(_))}return a}function n4(r,a){Xm(r).forEach((m,h)=>{V2(h)||a(m,h)});const _=X_(r);if(_!==r){const m=Xr(_);Ry(m)&&ott(m,(h,x)=>{a(h,x)})}}function jS(r,a){const l=Xm(a);if(l)return l.get(r)}function i4(r,a){const l=jS(r,a);if(l)return l;const _=X_(a);if(_===a)return;const m=Xr(_);return Ry(m)?$s(m,r):void 0}function Ry(r){return!(r.flags&402784252||bn(r)&1||up(r)||da(r))}function Q_(r){return r.flags&6256?Lde(r,"resolvedExports"):r.flags&1536?Xm(r):r.exports||U}function Xm(r){const a=wi(r);if(!a.resolvedExports){const{exports:l,typeOnlyExportStarMap:_}=BS(r);a.resolvedExports=l,a.typeOnlyExportStarMap=_}return a.resolvedExports}function s4(r,a,l,_){a&&a.forEach((m,h)=>{if(h==="default")return;const x=r.get(h);if(!x)r.set(h,m),l&&_&&l.set(h,{specifierText:jc(_.moduleSpecifier)});else if(l&&_&&x&&mc(x)!==mc(m)){const N=l.get(h);N.exportsWithDuplicate?N.exportsWithDuplicate.push(_):N.exportsWithDuplicate=[_]}})}function BS(r){const a=[];let l;const _=new Set;r=X_(r);const m=h(r)||U;return l&&_.forEach(x=>l.delete(x)),{exports:m,typeOnlyExportStarMap:l};function h(x,N,L){if(!L&&(x!=null&&x.exports)&&x.exports.forEach((de,_e)=>_.add(_e)),!(x&&x.exports&&zf(a,x)))return;const z=new Map(x.exports),Z=x.exports.get("__export");if(Z){const de=Bs(),_e=new Map;if(Z.declarations)for(const Re of Z.declarations){const st=zu(Re,Re.moduleSpecifier),gt=h(st,Re,L||Re.isTypeOnly);s4(de,gt,_e,Re)}_e.forEach(({exportsWithDuplicate:Re},st)=>{if(!(st==="export="||!(Re&&Re.length)||z.has(st)))for(const gt of Re)wa.add(yn(gt,p.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,_e.get(st).specifierText,xi(st)))}),s4(z,de)}return N!=null&&N.isTypeOnly&&(l??(l=new Map),z.forEach((de,_e)=>l.set(_e,N))),z}}function Na(r){let a;return r&&r.mergeId&&(a=q6[r.mergeId])?a:r}function un(r){return Na(r.symbol&&JY(r.symbol))}function Mf(r){return Wd(r)?un(r):void 0}function e_(r){return Na(r.parent&&JY(r.parent))}function z2(r){var a,l;return(((a=r.valueDeclaration)==null?void 0:a.kind)===219||((l=r.valueDeclaration)==null?void 0:l.kind)===218)&&Mf(r.valueDeclaration.parent)||r}function a4(r,a){const l=wr(a),_=Oa(l),m=wi(r);let h;if(m.extendedContainersByFile&&(h=m.extendedContainersByFile.get(_)))return h;if(l&&l.imports){for(const N of l.imports){if(xo(N))continue;const L=zu(a,N,!0);!L||!Mg(L,r)||(h=_r(h,L))}if(gr(h))return(m.extendedContainersByFile||(m.extendedContainersByFile=new Map)).set(_,h),h}if(m.extendedContainers)return m.extendedContainers;const x=e.getSourceFiles();for(const N of x){if(!Ic(N))continue;const L=un(N);Mg(L,r)&&(h=_r(h,L))}return m.extendedContainers=h||Ve}function uv(r,a,l){const _=e_(r);if(_&&!(r.flags&262144))return L(_);const m=Ri(r.declarations,Z=>{if(!su(Z)&&Z.parent){if(Cu(Z.parent))return un(Z.parent);if(Zd(Z.parent)&&Z.parent.parent&&X_(un(Z.parent.parent))===r)return un(Z.parent.parent)}if(kl(Z)&&Zr(Z.parent)&&Z.parent.operatorToken.kind===64&&oo(Z.parent.left)&&pc(Z.parent.left.expression))return yg(Z.parent.left)||wb(Z.parent.left.expression)?un(wr(Z)):(Dc(Z.parent.left.expression),jn(Z.parent.left.expression).resolvedSymbol)});if(!gr(m))return;const h=Ri(m,Z=>Mg(Z,r)?Z:void 0);let x=[],N=[];for(const Z of h){const[de,..._e]=L(Z);x=_r(x,de),N=Nn(N,_e)}return es(x,N);function L(Z){const de=Ri(Z.declarations,z),_e=a&&a4(r,a),Re=W2(Z,l);if(a&&Z.flags&xh(l)&&jy(Z,a,1920,!1))return _r(es(es([Z],de),_e),Re);const st=!(Z.flags&xh(l))&&Z.flags&788968&&Eo(Z).flags&524288&&l===111551?q2(a,qt=>_l(qt,$t=>{if($t.flags&xh(l)&&Xr($t)===Eo(Z))return $t})):void 0;let gt=st?[st,...de,Z]:[...de,Z];return gt=_r(gt,Re),gt=Nn(gt,_e),gt}function z(Z){return _&&JS(Z,_)}}function W2(r,a){const l=!!gr(r.declarations)&&va(r.declarations);if(a&111551&&l&&l.parent&&hi(l.parent)&&(ua(l)&&l===l.parent.initializer||z_(l)&&l===l.parent.type))return un(l.parent)}function JS(r,a){const l=Li(r),_=l&&l.exports&&l.exports.get("export=");return _&&Pd(_,a)?l:void 0}function Mg(r,a){if(r===e_(a))return a;const l=r.exports&&r.exports.get("export=");if(l&&Pd(l,a))return r;const _=Q_(r),m=_.get(a.escapedName);return m&&Pd(m,a)?m:_l(_,h=>{if(Pd(h,a))return h})}function Pd(r,a){if(Na(mc(Na(r)))===Na(mc(Na(a))))return r}function Rf(r){return Na(r&&(r.flags&1048576)!==0&&r.exportSymbol||r)}function sd(r,a){return!!(r.flags&111551||r.flags&2097152&&$l(r,!a)&111551)}function Th(r){const a=r.members;for(const l of a)if(l.kind===176&&dp(l.body))return l}function Rg(r){var a;const l=new f(jt,r);return d++,l.id=d,(a=qr)==null||a.recordType(l),l}function jg(r,a){const l=Rg(r);return l.symbol=a,l}function lk(r){return new f(jt,r)}function Oc(r,a,l=0,_){o4(a,_);const m=Rg(r);return m.intrinsicName=a,m.debugIntrinsicName=_,m.objectFlags=l|524288|2097152|33554432|16777216,m}function o4(r,a){const l=`${r},${a??""}`;et.has(l)&&E.fail(`Duplicate intrinsic type name ${r}${a?` (${a})`:""}; you may need to pass a name to createIntrinsicType.`),et.add(l)}function np(r,a){const l=jg(524288,a);return l.objectFlags=r,l.members=void 0,l.properties=void 0,l.callSignatures=void 0,l.constructSignatures=void 0,l.indexInfos=void 0,l}function Qm(){return Bn(gs($U.keys(),h_))}function jf(r){return jg(262144,r)}function V2(r){return r.charCodeAt(0)===95&&r.charCodeAt(1)===95&&r.charCodeAt(2)!==95&&r.charCodeAt(2)!==64&&r.charCodeAt(2)!==35}function _v(r){let a;return r.forEach((l,_)=>{uk(l,_)&&(a||(a=[])).push(l)}),a||Ve}function uk(r,a){return!V2(a)&&sd(r)}function zS(r){const a=_v(r),l=HY(r);return l?es(a,[l]):a}function Bf(r,a,l,_,m){const h=r;return h.members=a,h.properties=Ve,h.callSignatures=l,h.constructSignatures=_,h.indexInfos=m,a!==U&&(h.properties=_v(a)),h}function so(r,a,l,_,m){return Bf(np(16,r),a,l,_,m)}function U2(r){if(r.constructSignatures.length===0)return r;if(r.objectTypeWithoutAbstractConstructSignatures)return r.objectTypeWithoutAbstractConstructSignatures;const a=An(r.constructSignatures,_=>!(_.flags&4));if(r.constructSignatures===a)return r;const l=so(r.symbol,r.members,r.callSignatures,ct(a)?a:Ve,r.indexInfos);return r.objectTypeWithoutAbstractConstructSignatures=l,l.objectTypeWithoutAbstractConstructSignatures=l,l}function q2(r,a){let l;for(let _=r;_;_=_.parent){if(Dm(_)&&_.locals&&!Gm(_)&&(l=a(_.locals,void 0,!0,_)))return l;switch(_.kind){case 312:if(!af(_))break;case 267:const m=un(_);if(l=a((m==null?void 0:m.exports)||U,void 0,!0,_))return l;break;case 263:case 231:case 264:let h;if((un(_).members||U).forEach((x,N)=>{x.flags&788968&&(h||(h=Bs())).set(N,x)}),h&&(l=a(h,void 0,!1,_)))return l;break}}return a(ge,void 0,!0)}function xh(r){return r===111551?111551:1920}function jy(r,a,l,_,m=new Map){if(!(r&&!C(r)))return;const h=wi(r),x=h.accessibleChainCache||(h.accessibleChainCache=new Map),N=q2(a,($t,Ur,Tr,Gt)=>Gt),L=`${_?0:1}|${N&&Oa(N)}|${l}`;if(x.has(L))return x.get(L);const z=Ks(r);let Z=m.get(z);Z||m.set(z,Z=[]);const de=q2(a,_e);return x.set(L,de),de;function _e($t,Ur,Tr){if(!zf(Z,$t))return;const Gt=gt($t,Ur,Tr);return Z.pop(),Gt}function Re($t,Ur){return!fv($t,a,Ur)||!!jy($t.parent,a,xh(Ur),_,m)}function st($t,Ur,Tr){return(r===(Ur||$t)||Na(r)===Na(Ur||$t))&&!ct($t.declarations,Cu)&&(Tr||Re(Na($t),l))}function gt($t,Ur,Tr){return st($t.get(r.escapedName),void 0,Ur)?[r]:_l($t,Cr=>{if(Cr.flags&2097152&&Cr.escapedName!=="export="&&Cr.escapedName!=="default"&&!(aF(Cr)&&a&&Ic(wr(a)))&&(!_||ct(Cr.declarations,C1))&&(!Tr||!ct(Cr.declarations,ere))&&(Ur||!Bo(Cr,281))){const kr=cl(Cr),Br=qt(Cr,kr,Ur);if(Br)return Br}if(Cr.escapedName===r.escapedName&&Cr.exportSymbol&&st(Na(Cr.exportSymbol),void 0,Ur))return[r]})||($t===ge?qt($e,$e,Ur):void 0)}function qt($t,Ur,Tr){if(st($t,Ur,Tr))return[$t];const Gt=Q_(Ur),Cr=Gt&&_e(Gt,!0);if(Cr&&Re($t,xh(l)))return[$t].concat(Cr)}}function fv(r,a,l){let _=!1;return q2(a,m=>{let h=Na(m.get(r.escapedName));if(!h)return!1;if(h===r)return!0;const x=h.flags&2097152&&!Bo(h,281);return h=x?cl(h):h,(x?$l(h):h.flags)&l?(_=!0,!0):!1}),_}function C(r){if(r.declarations&&r.declarations.length){for(const a of r.declarations)switch(a.kind){case 172:case 174:case 177:case 178:continue;default:return!1}return!0}return!1}function te(r,a){return ti(r,a,788968,!1,!0).accessibility===0}function it(r,a){return ti(r,a,111551,!1,!0).accessibility===0}function Ut(r,a,l){return ti(r,a,l,!1,!1).accessibility===0}function vn(r,a,l,_,m,h){if(!gr(r))return;let x,N=!1;for(const L of r){const z=jy(L,a,_,!1);if(z){x=L;const _e=t_(z[0],m);if(_e)return _e}if(h&&ct(L.declarations,Cu)){if(m){N=!0;continue}return{accessibility:0}}const Z=uv(L,a,_),de=vn(Z,a,l,l===L?xh(_):_,m,h);if(de)return de}if(N)return{accessibility:0};if(x)return{accessibility:1,errorSymbolName:ni(l,a,_),errorModuleName:x!==l?ni(x,a,1920):void 0}}function gi(r,a,l,_){return ti(r,a,l,_,!0)}function ti(r,a,l,_,m){if(r&&a){const h=vn([r],a,r,l,_,m);if(h)return h;const x=er(r.declarations,Li);if(x){const N=Li(a);if(x!==N)return{accessibility:2,errorSymbolName:ni(r,a,l),errorModuleName:ni(x),errorNode:Hr(a)?a:void 0}}return{accessibility:1,errorSymbolName:ni(r,a,l)}}return{accessibility:0}}function Li(r){const a=Pr(r,Gs);return a&&un(a)}function Gs(r){return su(r)||r.kind===312&&af(r)}function Cu(r){return f5(r)||r.kind===312&&af(r)}function t_(r,a){let l;if(!Wi(An(r.declarations,h=>h.kind!==80),_))return;return{accessibility:0,aliasesToMakeVisible:l};function _(h){var x,N;if(!Dd(h)){const L=DS(h);if(L&&!Rn(L,32)&&Dd(L.parent))return m(h,L);if(hi(h)&&ac(h.parent.parent)&&!Rn(h.parent.parent,32)&&Dd(h.parent.parent.parent))return m(h,h.parent.parent);if(p5(h)&&!Rn(h,32)&&Dd(h.parent))return m(h,h);if(Ea(h)){if(r.flags&2097152&&Hr(h)&&((x=h.parent)!=null&&x.parent)&&hi(h.parent.parent)&&((N=h.parent.parent.parent)!=null&&N.parent)&&ac(h.parent.parent.parent.parent)&&!Rn(h.parent.parent.parent.parent,32)&&h.parent.parent.parent.parent.parent&&Dd(h.parent.parent.parent.parent.parent))return m(h,h.parent.parent.parent.parent);if(r.flags&2){const z=Pr(h,ac);return Rn(z,32)?!0:Dd(z.parent)?m(h,z):!1}}return!1}return!0}function m(h,x){return a&&(jn(h).isVisible=!0,l=Hg(l,x)),!0}}function ip(r){let a;return r.parent.kind===186||r.parent.kind===233&&!gg(r.parent)||r.parent.kind===167?a=1160127:r.kind===166||r.kind===211||r.parent.kind===271||r.parent.kind===166&&r.parent.left===r||r.parent.kind===211&&r.parent.expression===r||r.parent.kind===212&&r.parent.expression===r?a=1920:a=788968,a}function By(r,a){const l=ip(r),_=lf(r),m=Ho(a,_.escapedText,l,void 0,void 0,!1);return m&&m.flags&262144&&l&788968?{accessibility:0}:!m&&Yv(_)&&gi(un(a_(_,!1,!1)),_,l,!1).accessibility===0?{accessibility:0}:m&&t_(m,!0)||{accessibility:1,errorSymbolName:jc(_),errorNode:_}}function ni(r,a,l,_=4,m){let h=70221824;_&2&&(h|=128),_&1&&(h|=512),_&8&&(h|=16384),_&32&&(h|=134217728),_&16&&(h|=1073741824);const x=_&4?ft.symbolToNode:ft.symbolToEntityName;return m?N(m).getText():pE(N);function N(L){const z=x(r,l,a,h),Z=(a==null?void 0:a.kind)===312?xq():b2(),de=a&&wr(a);return Z.writeNode(4,z,de,L),L}}function Ym(r,a,l=0,_,m){return m?h(m).getText():pE(h);function h(x){let N;l&262144?N=_===1?185:184:N=_===1?180:179;const L=ft.signatureToSignatureDeclaration(r,N,a,WS(l)|70221824|512),z=SA(),Z=a&&wr(a);return z.writeNode(4,L,Z,lW(x)),x}}function Ar(r,a,l=1064960,_=G8("")){const m=j.noErrorTruncation||l&1,h=ft.typeToTypeNode(r,a,WS(l)|70221824|(m?1:0));if(h===void 0)return E.fail("should always get typenode");const x=r!==Dt?b2():Tq(),N=a&&wr(a);x.writeNode(4,h,N,_);const L=_.getText(),z=m?IF*2:uw*2;return z&&L&&L.length>=z?L.substr(0,z-3)+"...":L}function _k(r,a){let l=zy(r.symbol)?Ar(r,r.symbol.valueDeclaration):Ar(r),_=zy(a.symbol)?Ar(a,a.symbol.valueDeclaration):Ar(a);return l===_&&(l=Jy(r),_=Jy(a)),[l,_]}function Jy(r){return Ar(r,void 0,64)}function zy(r){return r&&!!r.valueDeclaration&&ot(r.valueDeclaration)&&!cp(r.valueDeclaration)}function WS(r=0){return r&848330095}function H2(r){return!!r.symbol&&!!(r.symbol.flags&32)&&(r===ap(r.symbol)||!!(r.flags&524288)&&!!(bn(r)&16777216))}function _m(){return{typeToTypeNode:(Ze,ye,vr,mn)=>a(ye,vr,mn,Xn=>_(Ze,Xn)),indexInfoToIndexSignatureDeclaration:(Ze,ye,vr,mn)=>a(ye,vr,mn,Xn=>Z(Ze,Xn,void 0)),signatureToSignatureDeclaration:(Ze,ye,vr,mn,Xn)=>a(vr,mn,Xn,si=>de(Ze,ye,si)),symbolToEntityName:(Ze,ye,vr,mn,Xn)=>a(vr,mn,Xn,si=>Gi(Ze,si,ye,!1)),symbolToExpression:(Ze,ye,vr,mn,Xn)=>a(vr,mn,Xn,si=>el(Ze,si,ye)),symbolToTypeParameterDeclarations:(Ze,ye,vr,mn)=>a(ye,vr,mn,Xn=>Cr(Ze,Xn)),symbolToParameterDeclaration:(Ze,ye,vr,mn)=>a(ye,vr,mn,Xn=>qt(Ze,Xn)),typeParameterToDeclaration:(Ze,ye,vr,mn)=>a(ye,vr,mn,Xn=>st(Ze,Xn)),symbolTableToDeclarationStatements:(Ze,ye,vr,mn,Xn)=>a(ye,vr,mn,si=>Go(Ze,si,Xn)),symbolToNode:(Ze,ye,vr,mn,Xn)=>a(vr,mn,Xn,si=>r(Ze,si,ye))};function r(Ze,ye,vr){if(ye.flags&1073741824){if(Ze.valueDeclaration){const Xn=us(Ze.valueDeclaration);if(Xn&&Pa(Xn))return Xn}const mn=wi(Ze).nameType;if(mn&&mn.flags&9216)return ye.enclosingDeclaration=mn.symbol.valueDeclaration,I.createComputedPropertyName(el(mn.symbol,ye,vr))}return el(Ze,ye,vr)}function a(Ze,ye,vr,mn){E.assert(Ze===void 0||(Ze.flags&16)===0);const Xn=vr!=null&&vr.trackSymbol?vr.moduleResolverHost:ye&134217728?zLe(e):void 0,si={enclosingDeclaration:Ze,flags:ye||0,tracker:void 0,encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0,trackedSymbols:void 0};si.tracker=new XU(si,vr,Xn);const ai=mn(si);return si.truncating&&si.flags&1&&si.tracker.reportTruncationError(),si.encounteredError?void 0:ai}function l(Ze){return Ze.truncating?Ze.truncating:Ze.truncating=Ze.approximateLength>(Ze.flags&1?IF:uw)}function _(Ze,ye){const vr=ye.flags,mn=m(Ze,ye);return ye.flags=vr,mn}function m(Ze,ye){var vr,mn;i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();const Xn=ye.flags&8388608;if(ye.flags&=-8388609,!Ze){if(!(ye.flags&262144)){ye.encounteredError=!0;return}return ye.approximateLength+=3,I.createKeywordTypeNode(133)}if(ye.flags&536870912||(Ze=Fd(Ze)),Ze.flags&1)return Ze.aliasSymbol?I.createTypeReferenceNode(Jr(Ze.aliasSymbol),L(Ze.aliasTypeArguments,ye)):Ze===Dt?o3(I.createKeywordTypeNode(133),3,"unresolved"):(ye.approximateLength+=3,I.createKeywordTypeNode(Ze===Yt?141:133));if(Ze.flags&2)return I.createKeywordTypeNode(159);if(Ze.flags&4)return ye.approximateLength+=6,I.createKeywordTypeNode(154);if(Ze.flags&8)return ye.approximateLength+=6,I.createKeywordTypeNode(150);if(Ze.flags&64)return ye.approximateLength+=6,I.createKeywordTypeNode(163);if(Ze.flags&16&&!Ze.aliasSymbol)return ye.approximateLength+=7,I.createKeywordTypeNode(136);if(Ze.flags&1056){if(Ze.symbol.flags&8){const dr=e_(Ze.symbol),Jn=ss(dr,ye,788968);if(Eo(dr)===Ze)return Jn;const Fi=Xo(Ze.symbol);return Sf(Fi,0)?mi(Jn,I.createTypeReferenceNode(Fi,void 0)):Cg(Jn)?(Jn.isTypeOf=!0,I.createIndexedAccessTypeNode(Jn,I.createLiteralTypeNode(I.createStringLiteral(Fi)))):$f(Jn)?I.createIndexedAccessTypeNode(I.createTypeQueryNode(Jn.typeName),I.createLiteralTypeNode(I.createStringLiteral(Fi))):E.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}return ss(Ze.symbol,ye,788968)}if(Ze.flags&128)return ye.approximateLength+=Ze.value.length+2,I.createLiteralTypeNode(Qr(I.createStringLiteral(Ze.value,!!(ye.flags&268435456)),16777216));if(Ze.flags&256){const dr=Ze.value;return ye.approximateLength+=(""+dr).length,I.createLiteralTypeNode(dr<0?I.createPrefixUnaryExpression(41,I.createNumericLiteral(-dr)):I.createNumericLiteral(dr))}if(Ze.flags&2048)return ye.approximateLength+=e2(Ze.value).length+1,I.createLiteralTypeNode(I.createBigIntLiteral(Ze.value));if(Ze.flags&512)return ye.approximateLength+=Ze.intrinsicName.length,I.createLiteralTypeNode(Ze.intrinsicName==="true"?I.createTrue():I.createFalse());if(Ze.flags&8192){if(!(ye.flags&1048576)){if(it(Ze.symbol,ye.enclosingDeclaration))return ye.approximateLength+=6,ss(Ze.symbol,ye,111551);ye.tracker.reportInaccessibleUniqueSymbolError&&ye.tracker.reportInaccessibleUniqueSymbolError()}return ye.approximateLength+=13,I.createTypeOperatorNode(158,I.createKeywordTypeNode(155))}if(Ze.flags&16384)return ye.approximateLength+=4,I.createKeywordTypeNode(116);if(Ze.flags&32768)return ye.approximateLength+=9,I.createKeywordTypeNode(157);if(Ze.flags&65536)return ye.approximateLength+=4,I.createLiteralTypeNode(I.createNull());if(Ze.flags&131072)return ye.approximateLength+=5,I.createKeywordTypeNode(146);if(Ze.flags&4096)return ye.approximateLength+=6,I.createKeywordTypeNode(155);if(Ze.flags&67108864)return ye.approximateLength+=6,I.createKeywordTypeNode(151);if(KE(Ze))return ye.flags&4194304&&(!ye.encounteredError&&!(ye.flags&32768)&&(ye.encounteredError=!0),(mn=(vr=ye.tracker).reportInaccessibleThisError)==null||mn.call(vr)),ye.approximateLength+=4,I.createThisTypeNode();if(!Xn&&Ze.aliasSymbol&&(ye.flags&16384||te(Ze.aliasSymbol,ye.enclosingDeclaration))){const dr=L(Ze.aliasTypeArguments,ye);return V2(Ze.aliasSymbol.escapedName)&&!(Ze.aliasSymbol.flags&32)?I.createTypeReferenceNode(I.createIdentifier(""),dr):gr(dr)===1&&Ze.aliasSymbol===Ds.symbol?I.createArrayTypeNode(dr[0]):ss(Ze.aliasSymbol,ye,788968,dr)}const si=bn(Ze);if(si&4)return E.assert(!!(Ze.flags&524288)),Ze.node?It(Ze,xr):xr(Ze);if(Ze.flags&262144||si&3){if(Ze.flags&262144&&bs(ye.inferTypeParameters,Ze)){ye.approximateLength+=Xo(Ze.symbol).length+6;let Jn;const Fi=r_(Ze);if(Fi){const qi=j8e(Ze,!0);qi&&Ih(Fi,qi)||(ye.approximateLength+=9,Jn=Fi&&_(Fi,ye))}return I.createInferTypeNode(Re(Ze,ye,Jn))}if(ye.flags&4&&Ze.flags&262144){const Jn=hs(Ze,ye);return ye.approximateLength+=on(Jn).length,I.createTypeReferenceNode(I.createIdentifier(on(Jn)),void 0)}if(Ze.symbol)return ss(Ze.symbol,ye,788968);const dr=(Ze===se||Ze===X)&&F&&F.symbol?(Ze===X?"sub-":"super-")+Xo(F.symbol):"?";return I.createTypeReferenceNode(I.createIdentifier(dr),void 0)}if(Ze.flags&1048576&&Ze.origin&&(Ze=Ze.origin),Ze.flags&3145728){const dr=Ze.flags&1048576?c4(Ze.types):Ze.types;if(gr(dr)===1)return _(dr[0],ye);const Jn=L(dr,ye,!0);if(Jn&&Jn.length>0)return Ze.flags&1048576?I.createUnionTypeNode(Jn):I.createIntersectionTypeNode(Jn);!ye.encounteredError&&!(ye.flags&262144)&&(ye.encounteredError=!0);return}if(si&48)return E.assert(!!(Ze.flags&524288)),Qt(Ze);if(Ze.flags&4194304){const dr=Ze.type;ye.approximateLength+=6;const Jn=_(dr,ye);return I.createTypeOperatorNode(143,Jn)}if(Ze.flags&134217728){const dr=Ze.texts,Jn=Ze.types,Fi=I.createTemplateHead(dr[0]),qi=I.createNodeArray(nr(Jn,(Ys,Hc)=>I.createTemplateLiteralTypeSpan(_(Ys,ye),(Hcai(dr));if(Ze.flags&33554432){const dr=_(Ze.baseType,ye),Jn=BP(Ze)&&ume("NoInfer",!1);return Jn?ss(Jn,ye,788968,[dr]):dr}return E.fail("Should be unreachable.");function ai(dr){const Jn=_(dr.checkType,ye);if(ye.approximateLength+=15,ye.flags&4&&dr.root.isDistributive&&!(dr.checkType.flags&262144)){const ao=jf(xa(262144,"T")),to=hs(ao,ye),Zl=I.createTypeReferenceNode(to);ye.approximateLength+=37;const So=tT(dr.root.checkType,ao,dr.mapper),jd=ye.inferTypeParameters;ye.inferTypeParameters=dr.root.inferTypeParameters;const He=_(zi(dr.root.extendsType,So),ye);ye.inferTypeParameters=jd;const ut=Pn(zi(ii(dr.root.node.trueType),So)),Bt=Pn(zi(ii(dr.root.node.falseType),So));return I.createConditionalTypeNode(Jn,I.createInferTypeNode(I.createTypeParameterDeclaration(void 0,I.cloneNode(Zl.typeName))),I.createConditionalTypeNode(I.createTypeReferenceNode(I.cloneNode(to)),_(dr.checkType,ye),I.createConditionalTypeNode(Zl,He,ut,Bt),I.createKeywordTypeNode(146)),I.createKeywordTypeNode(146))}const Fi=ye.inferTypeParameters;ye.inferTypeParameters=dr.root.inferTypeParameters;const qi=_(dr.extendsType,ye);ye.inferTypeParameters=Fi;const Ys=Pn(Tv(dr)),Hc=Pn(xv(dr));return I.createConditionalTypeNode(Jn,qi,Ys,Hc)}function Pn(dr){var Jn,Fi,qi;return dr.flags&1048576?(Jn=ye.visitedTypes)!=null&&Jn.has(Vu(dr))?(ye.flags&131072||(ye.encounteredError=!0,(qi=(Fi=ye.tracker)==null?void 0:Fi.reportCyclicStructureError)==null||qi.call(Fi)),h(ye)):It(dr,Ys=>_(Ys,ye)):_(dr,ye)}function _n(dr){return!!yI(dr)}function Qe(dr){return!!dr.target&&_n(dr.target)&&!_n(dr)}function xt(dr){var Jn;E.assert(!!(dr.flags&524288));const Fi=dr.declaration.readonlyToken?I.createToken(dr.declaration.readonlyToken.kind):void 0,qi=dr.declaration.questionToken?I.createToken(dr.declaration.questionToken.kind):void 0;let Ys,Hc;const ao=!m4(dr)&&!(HS(dr).flags&2)&&ye.flags&4&&!(Jf(dr).flags&262144&&((Jn=r_(Jf(dr)))==null?void 0:Jn.flags)&4194304);if(m4(dr)){if(Qe(dr)&&ye.flags&4){const ut=jf(xa(262144,"T")),Bt=hs(ut,ye);Hc=I.createTypeReferenceNode(Bt)}Ys=I.createTypeOperatorNode(143,Hc||_(HS(dr),ye))}else if(ao){const ut=jf(xa(262144,"T")),Bt=hs(ut,ye);Hc=I.createTypeReferenceNode(Bt),Ys=Hc}else Ys=_(Jf(dr),ye);const to=Re(Nd(dr),ye,Ys),Zl=dr.declaration.nameType?_(E0(dr),ye):void 0,So=_(a1(Dh(dr),!!(tg(dr)&4)),ye),jd=I.createMappedTypeNode(Fi,to,Zl,qi,So,void 0);ye.approximateLength+=10;const He=Qr(jd,1);if(Qe(dr)&&ye.flags&4){const ut=zi(r_(ii(dr.declaration.typeParameter.constraint.type))||Kt,dr.mapper);return I.createConditionalTypeNode(_(HS(dr),ye),I.createInferTypeNode(I.createTypeParameterDeclaration(void 0,I.cloneNode(Hc.typeName),ut.flags&2?void 0:_(ut,ye))),He,I.createKeywordTypeNode(146))}else if(ao)return I.createConditionalTypeNode(_(Jf(dr),ye),I.createInferTypeNode(I.createTypeParameterDeclaration(void 0,I.cloneNode(Hc.typeName),I.createTypeOperatorNode(143,_(HS(dr),ye)))),He,I.createKeywordTypeNode(146));return He}function Qt(dr){var Jn,Fi;const qi=dr.id,Ys=dr.symbol;if(Ys){if(!!(bn(dr)&8388608)){const So=dr.node;if(ax(So)&&ii(So)===dr){const jd=uc(ye,So);if(jd)return jd}return(Jn=ye.visitedTypes)!=null&&Jn.has(qi)?h(ye):It(dr,Zt)}const to=H2(dr)?788968:111551;if(ym(Ys.valueDeclaration))return ss(Ys,ye,to);if(Ys.flags&32&&!LY(Ys)&&!(Ys.valueDeclaration&&$n(Ys.valueDeclaration)&&ye.flags&2048&&(!Xc(Ys.valueDeclaration)||gi(Ys,ye.enclosingDeclaration,to,!1).accessibility!==0))||Ys.flags&896||Hc())return ss(Ys,ye,to);if((Fi=ye.visitedTypes)!=null&&Fi.has(qi)){const Zl=NR(dr);return Zl?ss(Zl,ye,788968):h(ye)}else return It(dr,Zt)}else return Zt(dr);function Hc(){var ao;const to=!!(Ys.flags&8192)&&ct(Ys.declarations,So=>Ms(So)),Zl=!!(Ys.flags&16)&&(Ys.parent||er(Ys.declarations,So=>So.parent.kind===312||So.parent.kind===268));if(to||Zl)return(!!(ye.flags&4096)||((ao=ye.visitedTypes)==null?void 0:ao.has(qi)))&&(!(ye.flags&8)||it(Ys,ye.enclosingDeclaration))}}function It(dr,Jn){var Fi,qi,Ys;const Hc=dr.id,ao=bn(dr)&16&&dr.symbol&&dr.symbol.flags&32,to=bn(dr)&4&&dr.node?"N"+Oa(dr.node):dr.flags&16777216?"N"+Oa(dr.root.node):dr.symbol?(ao?"+":"")+Ks(dr.symbol):void 0;ye.visitedTypes||(ye.visitedTypes=new Set),to&&!ye.symbolDepth&&(ye.symbolDepth=new Map);const Zl=ye.enclosingDeclaration&&jn(ye.enclosingDeclaration),So=`${Vu(dr)}|${ye.flags}`;Zl&&(Zl.serializedTypes||(Zl.serializedTypes=new Map));const jd=(Fi=Zl==null?void 0:Zl.serializedTypes)==null?void 0:Fi.get(So);if(jd)return(qi=jd.trackedSymbols)==null||qi.forEach(([Dn,Si,ms])=>ye.tracker.trackSymbol(Dn,Si,ms)),jd.truncating&&(ye.truncating=!0),ye.approximateLength+=jd.addedLength,lr(jd.node);let He;if(to){if(He=ye.symbolDepth.get(to)||0,He>10)return h(ye);ye.symbolDepth.set(to,He+1)}ye.visitedTypes.add(Hc);const ut=ye.trackedSymbols;ye.trackedSymbols=void 0;const Bt=ye.approximateLength,Or=Jn(dr),fn=ye.approximateLength-Bt;return!ye.reportedDiagnostic&&!ye.encounteredError&&((Ys=Zl==null?void 0:Zl.serializedTypes)==null||Ys.set(So,{node:Or,truncating:ye.truncating,addedLength:fn,trackedSymbols:ye.trackedSymbols})),ye.visitedTypes.delete(Hc),to&&ye.symbolDepth.set(to,He),ye.trackedSymbols=ut,Or;function lr(Dn){return!xo(Dn)&&as(Dn)===Dn?Dn:Ke(I.cloneNode(ur(Dn,lr,void 0,tn)),Dn)}function tn(Dn,Si,ms,Us,qs){return Dn&&Dn.length===0?Ke(I.createNodeArray(void 0,Dn.hasTrailingComma),Dn):Dr(Dn,Si,ms,Us,qs)}}function Zt(dr){if(g_(dr)||dr.containsError)return xt(dr);const Jn=Id(dr);if(!Jn.properties.length&&!Jn.indexInfos.length){if(!Jn.callSignatures.length&&!Jn.constructSignatures.length)return ye.approximateLength+=2,Qr(I.createTypeLiteralNode(void 0),1);if(Jn.callSignatures.length===1&&!Jn.constructSignatures.length){const ao=Jn.callSignatures[0];return de(ao,184,ye)}if(Jn.constructSignatures.length===1&&!Jn.callSignatures.length){const ao=Jn.constructSignatures[0];return de(ao,185,ye)}}const Fi=An(Jn.constructSignatures,ao=>!!(ao.flags&4));if(ct(Fi)){const ao=nr(Fi,QS);return Jn.callSignatures.length+(Jn.constructSignatures.length-Fi.length)+Jn.indexInfos.length+(ye.flags&2048?j0(Jn.properties,Zl=>!(Zl.flags&4194304)):gr(Jn.properties))&&ao.push(U2(Jn)),_(Xs(ao),ye)}const qi=ye.flags;ye.flags|=4194304;const Ys=ys(Jn);ye.flags=qi;const Hc=I.createTypeLiteralNode(Ys);return ye.approximateLength+=2,Qr(Hc,ye.flags&1024?0:1),Hc}function xr(dr){let Jn=bo(dr);if(dr.target===Ds||dr.target===Is){if(ye.flags&2){const Ys=_(Jn[0],ye);return I.createTypeReferenceNode(dr.target===Ds?"Array":"ReadonlyArray",[Ys])}const Fi=_(Jn[0],ye),qi=I.createArrayTypeNode(Fi);return dr.target===Ds?qi:I.createTypeOperatorNode(148,qi)}else if(dr.target.objectFlags&8){if(Jn=rl(Jn,(Fi,qi)=>a1(Fi,!!(dr.target.elementFlags[qi]&2))),Jn.length>0){const Fi=D0(dr),qi=L(Jn.slice(0,Fi),ye);if(qi){const{labeledElementDeclarations:Ys}=dr.target;for(let ao=0;ao0){const Zl=(dr.target.typeParameters||Ve).length;Hc=L(Jn.slice(qi,Zl),ye)}const ao=ye.flags;ye.flags|=16;const to=ss(dr.symbol,ye,788968,Hc);return ye.flags=ao,Ys?mi(Ys,to):to}}}function mi(dr,Jn){if(Cg(dr)){let Fi=dr.typeArguments,qi=dr.qualifier;qi&&(Ie(qi)?Fi!==zb(qi)&&(qi=i0(I.cloneNode(qi),Fi)):Fi!==zb(qi.right)&&(qi=I.updateQualifiedName(qi,qi.left,i0(I.cloneNode(qi.right),Fi)))),Fi=Jn.typeArguments;const Ys=xn(Jn);for(const Hc of Ys)qi=qi?I.createQualifiedName(qi,Hc):Hc;return I.updateImportTypeNode(dr,dr.argument,dr.attributes,qi,Fi,dr.isTypeOf)}else{let Fi=dr.typeArguments,qi=dr.typeName;Ie(qi)?Fi!==zb(qi)&&(qi=i0(I.cloneNode(qi),Fi)):Fi!==zb(qi.right)&&(qi=I.updateQualifiedName(qi,qi.left,i0(I.cloneNode(qi.right),Fi))),Fi=Jn.typeArguments;const Ys=xn(Jn);for(const Hc of Ys)qi=I.createQualifiedName(qi,Hc);return I.updateTypeReferenceNode(dr,qi,Fi)}}function xn(dr){let Jn=dr.typeName;const Fi=[];for(;!Ie(Jn);)Fi.unshift(Jn.right),Jn=Jn.left;return Fi.unshift(Jn),Fi}function ys(dr){if(l(ye))return[I.createPropertySignature(void 0,"...",void 0,void 0)];const Jn=[];for(const Ys of dr.callSignatures)Jn.push(de(Ys,179,ye));for(const Ys of dr.constructSignatures)Ys.flags&4||Jn.push(de(Ys,180,ye));for(const Ys of dr.indexInfos)Jn.push(Z(Ys,ye,dr.objectFlags&1024?h(ye):void 0));const Fi=dr.properties;if(!Fi)return Jn;let qi=0;for(const Ys of Fi){if(qi++,ye.flags&2048){if(Ys.flags&4194304)continue;Hf(Ys)&6&&ye.tracker.reportPrivateInBaseOfClassExpression&&ye.tracker.reportPrivateInBaseOfClassExpression(xi(Ys.escapedName))}if(l(ye)&&qi+2!(xr.flags&32768)),0);for(const xr of Zt){const mi=de(xr,173,ye,{name:Pn,questionToken:_n});vr.push(It(mi))}if(Zt.length||!_n)return}let Qe;x(Ze,ye)?Qe=h(ye):(Xn&&(ye.reverseMappedStack||(ye.reverseMappedStack=[]),ye.reverseMappedStack.push(Ze)),Qe=si?Xa(ye,si,Ze,ai):I.createKeywordTypeNode(133),Xn&&ye.reverseMappedStack.pop());const xt=Rd(Ze)?[I.createToken(148)]:void 0;xt&&(ye.approximateLength+=9);const Qt=I.createPropertySignature(xt,Pn,_n,Qe);vr.push(It(Qt));function It(Zt){var xr;const mi=(xr=Ze.declarations)==null?void 0:xr.find(xn=>xn.kind===355);if(mi){const xn=$D(mi.comment);xn&&O1(Zt,[{kind:3,text:`* + })(name => super[name], (name, value) => super[name] = value);`}}});function j_(e){return e.kind===9}function dO(e){return e.kind===10}function aa(e){return e.kind===11}function KT(e){return e.kind===12}function bV(e){return e.kind===14}function ex(e){return e.kind===15}function tx(e){return e.kind===16}function SV(e){return e.kind===17}function mO(e){return e.kind===18}function gO(e){return e.kind===26}function qne(e){return e.kind===28}function TV(e){return e.kind===40}function xV(e){return e.kind===41}function Cw(e){return e.kind===42}function Ew(e){return e.kind===54}function ly(e){return e.kind===58}function Hne(e){return e.kind===59}function hO(e){return e.kind===29}function Gne(e){return e.kind===39}function Ie(e){return e.kind===80}function Pi(e){return e.kind===81}function rx(e){return e.kind===95}function yO(e){return e.kind===90}function c3(e){return e.kind===134}function $ne(e){return e.kind===131}function kV(e){return e.kind===135}function Xne(e){return e.kind===148}function nx(e){return e.kind===126}function Qne(e){return e.kind===128}function Yne(e){return e.kind===164}function Zne(e){return e.kind===129}function l3(e){return e.kind===108}function u3(e){return e.kind===102}function Kne(e){return e.kind===84}function Xu(e){return e.kind===166}function Pa(e){return e.kind===167}function Uo(e){return e.kind===168}function rs(e){return e.kind===169}function ql(e){return e.kind===170}function B_(e){return e.kind===171}function xs(e){return e.kind===172}function Lm(e){return e.kind===173}function hc(e){return e.kind===174}function ec(e){return e.kind===175}function sc(e){return e.kind===176}function Tf(e){return e.kind===177}function J_(e){return e.kind===178}function ix(e){return e.kind===179}function Pw(e){return e.kind===180}function i2(e){return e.kind===181}function Dw(e){return e.kind===182}function Gf(e){return e.kind===183}function Mm(e){return e.kind===184}function MC(e){return e.kind===185}function sx(e){return e.kind===186}function z_(e){return e.kind===187}function ww(e){return e.kind===188}function ax(e){return e.kind===189}function RC(e){return e.kind===202}function vO(e){return e.kind===190}function bO(e){return e.kind===191}function uy(e){return e.kind===192}function ox(e){return e.kind===193}function cx(e){return e.kind===194}function zb(e){return e.kind===195}function Wb(e){return e.kind===196}function Aw(e){return e.kind===197}function Vb(e){return e.kind===198}function Ub(e){return e.kind===199}function jC(e){return e.kind===200}function _y(e){return e.kind===201}function Cg(e){return e.kind===205}function CV(e){return e.kind===204}function eie(e){return e.kind===203}function xp(e){return e.kind===206}function s2(e){return e.kind===207}function Ea(e){return e.kind===208}function ju(e){return e.kind===209}function ua(e){return e.kind===210}function Sn(e){return e.kind===211}function Co(e){return e.kind===212}function Rs(e){return e.kind===213}function a2(e){return e.kind===214}function o2(e){return e.kind===215}function tie(e){return e.kind===216}function l_(e){return e.kind===217}function lo(e){return e.kind===218}function mo(e){return e.kind===219}function rie(e){return e.kind===220}function BC(e){return e.kind===221}function lx(e){return e.kind===222}function fy(e){return e.kind===223}function py(e){return e.kind===224}function EV(e){return e.kind===225}function Zr(e){return e.kind===226}function JC(e){return e.kind===227}function SO(e){return e.kind===228}function TO(e){return e.kind===229}function gd(e){return e.kind===230}function kl(e){return e.kind===231}function dl(e){return e.kind===232}function s0(e){return e.kind===233}function Nw(e){return e.kind===234}function PV(e){return e.kind===238}function ux(e){return e.kind===235}function _3(e){return e.kind===236}function H1e(e){return e.kind===237}function xO(e){return e.kind===360}function f3(e){return e.kind===361}function p3(e){return e.kind===239}function nie(e){return e.kind===240}function Cs(e){return e.kind===241}function ac(e){return e.kind===243}function DV(e){return e.kind===242}function Cl(e){return e.kind===244}function qb(e){return e.kind===245}function G1e(e){return e.kind===246}function $1e(e){return e.kind===247}function Hb(e){return e.kind===248}function kO(e){return e.kind===249}function Iw(e){return e.kind===250}function X1e(e){return e.kind===251}function Q1e(e){return e.kind===252}function Up(e){return e.kind===253}function iie(e){return e.kind===254}function d3(e){return e.kind===255}function c2(e){return e.kind===256}function wV(e){return e.kind===257}function Gb(e){return e.kind===258}function Y1e(e){return e.kind===259}function hi(e){return e.kind===260}function ml(e){return e.kind===261}function Xc(e){return e.kind===262}function Qc(e){return e.kind===263}function Bu(e){return e.kind===264}function qp(e){return e.kind===265}function L1(e){return e.kind===266}function Sc(e){return e.kind===267}function Yd(e){return e.kind===268}function m3(e){return e.kind===269}function Fw(e){return e.kind===270}function El(e){return e.kind===271}function sl(e){return e.kind===272}function Rm(e){return e.kind===273}function Z1e(e){return e.kind===302}function sie(e){return e.kind===300}function K1e(e){return e.kind===301}function _x(e){return e.kind===300}function aie(e){return e.kind===301}function dy(e){return e.kind===274}function jm(e){return e.kind===280}function sh(e){return e.kind===275}function x_(e){return e.kind===276}function oc(e){return e.kind===277}function Tc(e){return e.kind===278}function $f(e){return e.kind===279}function vu(e){return e.kind===281}function eve(e){return e.kind===282}function AV(e){return e.kind===359}function fx(e){return e.kind===362}function Bm(e){return e.kind===283}function Eg(e){return e.kind===284}function $b(e){return e.kind===285}function Zd(e){return e.kind===286}function l2(e){return e.kind===287}function u2(e){return e.kind===288}function px(e){return e.kind===289}function oie(e){return e.kind===290}function Kd(e){return e.kind===291}function _2(e){return e.kind===292}function dx(e){return e.kind===293}function g3(e){return e.kind===294}function hd(e){return e.kind===295}function zC(e){return e.kind===296}function h3(e){return e.kind===297}function xf(e){return e.kind===298}function f2(e){return e.kind===299}function zc(e){return e.kind===303}function k_(e){return e.kind===304}function a0(e){return e.kind===305}function p2(e){return e.kind===306}function cie(e){return e.kind===308}function Ni(e){return e.kind===312}function NV(e){return e.kind===313}function Xb(e){return e.kind===314}function d2(e){return e.kind===316}function y3(e){return e.kind===317}function M1(e){return e.kind===318}function lie(e){return e.kind===331}function uie(e){return e.kind===332}function tve(e){return e.kind===333}function _ie(e){return e.kind===319}function fie(e){return e.kind===320}function WC(e){return e.kind===321}function CO(e){return e.kind===322}function IV(e){return e.kind===323}function VC(e){return e.kind===324}function EO(e){return e.kind===325}function rve(e){return e.kind===326}function yd(e){return e.kind===327}function Qb(e){return e.kind===329}function R1(e){return e.kind===330}function mx(e){return e.kind===335}function nve(e){return e.kind===337}function pie(e){return e.kind===339}function FV(e){return e.kind===345}function OV(e){return e.kind===340}function LV(e){return e.kind===341}function MV(e){return e.kind===342}function RV(e){return e.kind===343}function PO(e){return e.kind===344}function UC(e){return e.kind===346}function jV(e){return e.kind===338}function ive(e){return e.kind===354}function Ow(e){return e.kind===347}function vd(e){return e.kind===348}function DO(e){return e.kind===349}function BV(e){return e.kind===350}function v3(e){return e.kind===351}function kp(e){return e.kind===352}function Yb(e){return e.kind===353}function sve(e){return e.kind===334}function die(e){return e.kind===355}function wO(e){return e.kind===336}function AO(e){return e.kind===357}function ave(e){return e.kind===356}function qC(e){return e.kind===358}var GOe=Dt({"src/compiler/factory/nodeTests.ts"(){Fs()}});function Lw(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function Zb(e,t,n,i){if(Pa(n))return Ke(e.createElementAccessExpression(t,n.expression),i);{const s=Ke(pg(n)?e.createPropertyAccessExpression(t,n):e.createElementAccessExpression(t,n),n);return Xd(s,128),s}}function mie(e,t){const n=Jm.createIdentifier(e||"React");return ba(n,as(t)),n}function gie(e,t,n){if(Xu(t)){const i=gie(e,t.left,n),s=e.createIdentifier(on(t.right));return s.escapedText=t.right.escapedText,e.createPropertyAccessExpression(i,s)}else return mie(on(t),n)}function JV(e,t,n,i){return t?gie(e,t,i):e.createPropertyAccessExpression(mie(n,i),"createElement")}function $Oe(e,t,n,i){return t?gie(e,t,i):e.createPropertyAccessExpression(mie(n,i),"Fragment")}function hie(e,t,n,i,s,o){const c=[n];if(i&&c.push(i),s&&s.length>0)if(i||c.push(e.createNull()),s.length>1)for(const u of s)bu(u),c.push(u);else c.push(s[0]);return Ke(e.createCallExpression(t,void 0,c),o)}function yie(e,t,n,i,s,o,c){const f=[$Oe(e,n,i,o),e.createNull()];if(s&&s.length>0)if(s.length>1)for(const g of s)bu(g),f.push(g);else f.push(s[0]);return Ke(e.createCallExpression(JV(e,t,i,o),void 0,f),c)}function zV(e,t,n){if(ml(t)){const i=va(t.declarations),s=e.updateVariableDeclaration(i,i.name,void 0,void 0,n);return Ke(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[s])),t)}else{const i=Ke(e.createAssignment(t,n),t);return Ke(e.createExpressionStatement(i),t)}}function ove(e,t,n){return Cs(t)?e.updateBlock(t,Ke(e.createNodeArray([n,...t.statements]),t.statements)):e.createBlock(e.createNodeArray([t,n]),!0)}function Mw(e,t){if(Xu(t)){const n=Mw(e,t.left),i=ba(Ke(e.cloneNode(t.right),t.right),t.right.parent);return Ke(e.createPropertyAccessExpression(n,i),t)}else return ba(Ke(e.cloneNode(t),t),t.parent)}function WV(e,t){return Ie(t)?e.createStringLiteralFromNode(t):Pa(t)?ba(Ke(e.cloneNode(t.expression),t.expression),t.expression.parent):ba(Ke(e.cloneNode(t),t),t.parent)}function XOe(e,t,n,i,s){const{firstAccessor:o,getAccessor:c,setAccessor:u}=Mb(t,n);if(n===o)return Ke(e.createObjectDefinePropertyCall(i,WV(e,n.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:c&&Ke(dn(e.createFunctionExpression(Lv(c),void 0,void 0,void 0,c.parameters,void 0,c.body),c),c),set:u&&Ke(dn(e.createFunctionExpression(Lv(u),void 0,void 0,void 0,u.parameters,void 0,u.body),u),u)},!s)),o)}function QOe(e,t,n){return dn(Ke(e.createAssignment(Zb(e,n,t.name,t.name),t.initializer),t),t)}function YOe(e,t,n){return dn(Ke(e.createAssignment(Zb(e,n,t.name,t.name),e.cloneNode(t.name)),t),t)}function ZOe(e,t,n){return dn(Ke(e.createAssignment(Zb(e,n,t.name,t.name),dn(Ke(e.createFunctionExpression(Lv(t),t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t)}function vie(e,t,n,i){switch(n.name&&Pi(n.name)&&E.failBadSyntaxKind(n.name,"Private identifiers are not allowed in object literals."),n.kind){case 177:case 178:return XOe(e,t.properties,n,i,!!t.multiLine);case 303:return QOe(e,n,i);case 304:return YOe(e,n,i);case 174:return ZOe(e,n,i)}}function NO(e,t,n,i,s){const o=t.operator;E.assert(o===46||o===47,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");const c=e.createTempVariable(i);n=e.createAssignment(c,n),Ke(n,t.operand);let u=py(t)?e.createPrefixUnaryExpression(o,c):e.createPostfixUnaryExpression(c,o);return Ke(u,t),s&&(u=e.createAssignment(s,u),Ke(u,t)),n=e.createComma(n,u),Ke(n,t),EV(t)&&(n=e.createComma(n,c),Ke(n,t)),n}function VV(e){return(ha(e)&65536)!==0}function ah(e){return(ha(e)&32768)!==0}function IO(e){return(ha(e)&16384)!==0}function cve(e){return aa(e.expression)&&e.expression.text==="use strict"}function UV(e){for(const t of e)if(zp(t)){if(cve(t))return t}else break}function bie(e){const t=bl(e);return t!==void 0&&zp(t)&&cve(t)}function Rw(e){return e.kind===226&&e.operatorToken.kind===28}function b3(e){return Rw(e)||f3(e)}function HC(e){return l_(e)&&Hr(e)&&!!b1(e)}function FO(e){const t=S1(e);return E.assertIsDefined(t),t}function OO(e,t=15){switch(e.kind){case 217:return t&16&&HC(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 xc(e,t=15){for(;OO(e,t);)e=e.expression;return e}function Sie(e,t=15){let n=e.parent;for(;OO(n,t);)n=n.parent,E.assert(n);return n}function lve(e){return xc(e,6)}function bu(e){return jF(e,!0)}function jw(e){const t=ic(e,Ni),n=t&&t.emitNode;return n&&n.externalHelpersModuleName}function Tie(e){const t=ic(e,Ni),n=t&&t.emitNode;return!!n&&(!!n.externalHelpersModuleName||!!n.externalHelpers)}function qV(e,t,n,i,s,o,c){if(i.importHelpers&&IT(n,i)){let u;const f=au(i);if(f>=5&&f<=99||n.impliedNodeFormat===99){const g=JF(n);if(g){const d=[];for(const y of g)if(!y.scoped){const S=y.importName;S&&Jf(d,S)}if(ct(d)){d.sort(mu),u=e.createNamedImports(nr(d,T=>a5(n,T)?e.createImportSpecifier(!1,void 0,e.createIdentifier(T)):e.createImportSpecifier(!1,e.createIdentifier(T),t.getUnscopedHelperName(T))));const y=ic(n,Ni),S=ou(y);S.externalHelpers=!0}}}else{const g=xie(e,n,i,s,o||c);g&&(u=e.createNamespaceImport(g))}if(u){const g=e.createImportDeclaration(void 0,e.createImportClause(!1,void 0,u),e.createStringLiteral(ay),void 0);return XT(g,2),g}}}function xie(e,t,n,i,s){if(n.importHelpers&&IT(t,n)){const o=jw(t);if(o)return o;const c=au(n);let u=(i||Om(n)&&s)&&c!==4&&(c<5||t.impliedNodeFormat===1);if(!u){const f=JF(t);if(f){for(const g of f)if(!g.scoped){u=!0;break}}}if(u){const f=ic(t,Ni),g=ou(f);return g.externalHelpersModuleName||(g.externalHelpersModuleName=e.createUniqueName(ay))}}}function GC(e,t,n){const i=_C(t);if(i&&!OT(t)&&!c5(t)){const s=i.name;return Oo(s)?s:e.createIdentifier(Bv(n,s)||on(s))}if(t.kind===272&&t.importClause||t.kind===278&&t.moduleSpecifier)return e.getGeneratedNameForNode(t)}function gx(e,t,n,i,s,o){const c=uC(t);if(c&&aa(c))return e9e(t,i,e,s,o)||KOe(e,c,n)||e.cloneNode(c)}function KOe(e,t,n){const i=n.renamedDependencies&&n.renamedDependencies.get(t.text);return i?e.createStringLiteral(i):void 0}function Bw(e,t,n,i){if(t){if(t.moduleName)return e.createStringLiteral(t.moduleName);if(!t.isDeclarationFile&&io(i))return e.createStringLiteral(cW(n,t.fileName))}}function e9e(e,t,n,i,s){return Bw(n,i.getExternalModuleFileFromDeclaration(e),t,s)}function Jw(e){if(YD(e))return e.initializer;if(zc(e)){const t=e.initializer;return il(t,!0)?t.right:void 0}if(k_(e))return e.objectAssignmentInitializer;if(il(e,!0))return e.right;if(gd(e))return Jw(e.expression)}function my(e){if(YD(e))return e.name;if(Yg(e)){switch(e.kind){case 303:return my(e.initializer);case 304:return e.name;case 305:return my(e.expression)}return}return il(e,!0)?my(e.left):gd(e)?my(e.expression):e}function LO(e){switch(e.kind){case 169:case 208:return e.dotDotDotToken;case 230:case 305:return e}}function HV(e){const t=MO(e);return E.assert(!!t||a0(e),"Invalid property name for binding element."),t}function MO(e){switch(e.kind){case 208:if(e.propertyName){const n=e.propertyName;return Pi(n)?E.failBadSyntaxKind(n):Pa(n)&&uve(n.expression)?n.expression:n}break;case 303:if(e.name){const n=e.name;return Pi(n)?E.failBadSyntaxKind(n):Pa(n)&&uve(n.expression)?n.expression:n}break;case 305:return e.name&&Pi(e.name)?E.failBadSyntaxKind(e.name):e.name}const t=my(e);if(t&&Ac(t))return t}function uve(e){const t=e.kind;return t===11||t===9}function $C(e){switch(e.kind){case 206:case 207:case 209:return e.elements;case 210:return e.properties}}function GV(e){if(e){let t=e;for(;;){if(Ie(t)||!t.body)return Ie(t)?t:t.name;t=t.body}}}function _ve(e){const t=e.kind;return t===176||t===178}function kie(e){const t=e.kind;return t===176||t===177||t===178}function $V(e){const 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 Cie(e){const t=e.kind;return t===175||t===303||t===304||t===282||t===270}function Eie(e){return ly(e)||Ew(e)}function Pie(e){return Ie(e)||Aw(e)}function Die(e){return Xne(e)||TV(e)||xV(e)}function wie(e){return ly(e)||TV(e)||xV(e)}function Aie(e){return Ie(e)||aa(e)}function fve(e){const t=e.kind;return t===106||t===112||t===97||Rv(e)||py(e)}function t9e(e){return e===43}function r9e(e){return e===42||e===44||e===45}function n9e(e){return t9e(e)||r9e(e)}function i9e(e){return e===40||e===41}function s9e(e){return i9e(e)||n9e(e)}function a9e(e){return e===48||e===49||e===50}function XV(e){return a9e(e)||s9e(e)}function o9e(e){return e===30||e===33||e===32||e===34||e===104||e===103}function c9e(e){return o9e(e)||XV(e)}function l9e(e){return e===35||e===37||e===36||e===38}function u9e(e){return l9e(e)||c9e(e)}function _9e(e){return e===51||e===52||e===53}function f9e(e){return _9e(e)||u9e(e)}function p9e(e){return e===56||e===57}function d9e(e){return p9e(e)||f9e(e)}function m9e(e){return e===61||d9e(e)||Kh(e)}function g9e(e){return m9e(e)||e===28}function Nie(e){return g9e(e.kind)}function RO(e,t,n,i,s,o){const c=new mve(e,t,n,i,s,o);return u;function u(f,g){const d={value:void 0},y=[YV.enter],S=[f],T=[void 0];let k=0;for(;y[k]!==YV.done;)k=y[k](c,k,y,S,T,d,g);return E.assertEqual(k,0),d.value}}function pve(e){return e===95||e===90}function zw(e){const t=e.kind;return pve(t)}function dve(e){const t=e.kind;return $h(t)&&!pve(t)}function Iie(e,t){if(t!==void 0)return t.length===0?t:Ke(e.createNodeArray([],t.hasTrailingComma),t)}function Ww(e){var t;const n=e.emitNode.autoGenerate;if(n.flags&4){const i=n.id;let s=e,o=s.original;for(;o;){s=o;const c=(t=s.emitNode)==null?void 0:t.autoGenerate;if(pg(s)&&(c===void 0||c.flags&4&&c.id!==i))break;o=s.original}return s}return e}function XC(e,t){return typeof e=="object"?j1(!1,e.prefix,e.node,e.suffix,t):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function h9e(e,t){return typeof e=="string"?e:y9e(e,E.checkDefined(t))}function y9e(e,t){return yb(e)?t(e).slice(1):Oo(e)?t(e):Pi(e)?e.escapedText.slice(1):on(e)}function j1(e,t,n,i,s){return t=XC(t,s),i=XC(i,s),n=h9e(n,s),`${e?"#":""}${t}${n}${i}`}function QV(e,t,n,i){return e.updatePropertyDeclaration(t,n,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage"),void 0,void 0,i)}function Fie(e,t,n,i,s=e.createThis()){return e.createGetAccessorDeclaration(n,i,[],void 0,e.createBlock([e.createReturnStatement(e.createPropertyAccessExpression(s,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")))]))}function Oie(e,t,n,i,s=e.createThis()){return e.createSetAccessorDeclaration(n,i,[e.createParameterDeclaration(void 0,void 0,"value")],e.createBlock([e.createExpressionStatement(e.createAssignment(e.createPropertyAccessExpression(s,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")),e.createIdentifier("value")))]))}function jO(e){let t=e.expression;for(;;){if(t=xc(t),f3(t)){t=ka(t.elements);continue}if(Rw(t)){t=t.right;continue}if(il(t,!0)&&Oo(t.left))return t;break}}function v9e(e){return l_(e)&&ko(e)&&!e.emitNode}function BO(e,t){if(v9e(e))BO(e.expression,t);else if(Rw(e))BO(e.left,t),BO(e.right,t);else if(f3(e))for(const n of e.elements)BO(n,t);else t.push(e)}function Lie(e){const t=[];return BO(e,t),t}function Vw(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(const t of $C(e)){const n=my(t);if(n&&uE(n)&&(n.transformFlags&65536||n.transformFlags&128&&Vw(n)))return!0}return!1}var YV,mve,b9e=Dt({"src/compiler/factory/utilities.ts"(){Fs(),(e=>{function t(d,y,S,T,k,w,P){const F=y>0?k[y-1]:void 0;return E.assertEqual(S[y],t),k[y]=d.onEnter(T[y],F,P),S[y]=u(d,t),y}e.enter=t;function n(d,y,S,T,k,w,P){E.assertEqual(S[y],n),E.assertIsDefined(d.onLeft),S[y]=u(d,n);const F=d.onLeft(T[y].left,k[y],T[y]);return F?(g(y,T,F),f(y,S,T,k,F)):y}e.left=n;function i(d,y,S,T,k,w,P){return E.assertEqual(S[y],i),E.assertIsDefined(d.onOperator),S[y]=u(d,i),d.onOperator(T[y].operatorToken,k[y],T[y]),y}e.operator=i;function s(d,y,S,T,k,w,P){E.assertEqual(S[y],s),E.assertIsDefined(d.onRight),S[y]=u(d,s);const F=d.onRight(T[y].right,k[y],T[y]);return F?(g(y,T,F),f(y,S,T,k,F)):y}e.right=s;function o(d,y,S,T,k,w,P){E.assertEqual(S[y],o),S[y]=u(d,o);const F=d.onExit(T[y],k[y]);if(y>0){if(y--,d.foldState){const J=S[y]===o?"right":"left";k[y]=d.foldState(k[y],F,J)}}else w.value=F;return y}e.exit=o;function c(d,y,S,T,k,w,P){return E.assertEqual(S[y],c),y}e.done=c;function u(d,y){switch(y){case t:if(d.onLeft)return n;case n:if(d.onOperator)return i;case i:if(d.onRight)return s;case s:return o;case o:return c;case c:return c;default:E.fail("Invalid state")}}e.nextState=u;function f(d,y,S,T,k){return d++,y[d]=t,S[d]=k,T[d]=void 0,d}function g(d,y,S){if(E.shouldAssert(2))for(;d>=0;)E.assert(y[d]!==S,"Circular traversal detected."),d--}})(YV||(YV={})),mve=class{constructor(e,t,n,i,s,o){this.onEnter=e,this.onLeft=t,this.onOperator=n,this.onRight=i,this.onExit=s,this.foldState=o}}}});function Ke(e,t){return t?Fm(e,t.pos,t.end):e}function Hp(e){const 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 Kb(e){const t=e.kind;return t===169||t===172||t===174||t===177||t===178||t===231||t===263}var S9e=Dt({"src/compiler/factory/utilitiesPublic.ts"(){Fs()}});function Mt(e,t){return t&&e(t)}function Ti(e,t,n){if(n){if(t)return t(n);for(const i of n){const s=e(i);if(s)return s}}}function ZV(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===42&&e.charCodeAt(t+3)!==47}function Uw(e){return rr(e.statements,T9e)||x9e(e)}function T9e(e){return Hp(e)&&k9e(e,95)||El(e)&&Bm(e.moduleReference)||sl(e)||oc(e)||Tc(e)?e:void 0}function x9e(e){return e.flags&8388608?gve(e):void 0}function gve(e){return C9e(e)?e:Ss(e,gve)}function k9e(e,t){return ct(e.modifiers,n=>n.kind===t)}function C9e(e){return _3(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function hve(e,t,n){return Ti(t,n,e.typeParameters)||Ti(t,n,e.parameters)||Mt(t,e.type)}function yve(e,t,n){return Ti(t,n,e.types)}function vve(e,t,n){return Mt(t,e.type)}function bve(e,t,n){return Ti(t,n,e.elements)}function Sve(e,t,n){return Mt(t,e.expression)||Mt(t,e.questionDotToken)||Ti(t,n,e.typeArguments)||Ti(t,n,e.arguments)}function Tve(e,t,n){return Ti(t,n,e.statements)}function xve(e,t,n){return Mt(t,e.label)}function kve(e,t,n){return Ti(t,n,e.modifiers)||Mt(t,e.name)||Ti(t,n,e.typeParameters)||Ti(t,n,e.heritageClauses)||Ti(t,n,e.members)}function Cve(e,t,n){return Ti(t,n,e.elements)}function Eve(e,t,n){return Mt(t,e.propertyName)||Mt(t,e.name)}function Pve(e,t,n){return Mt(t,e.tagName)||Ti(t,n,e.typeArguments)||Mt(t,e.attributes)}function S3(e,t,n){return Mt(t,e.type)}function Dve(e,t,n){return Mt(t,e.tagName)||(e.isNameFirst?Mt(t,e.name)||Mt(t,e.typeExpression):Mt(t,e.typeExpression)||Mt(t,e.name))||(typeof e.comment=="string"?void 0:Ti(t,n,e.comment))}function T3(e,t,n){return Mt(t,e.tagName)||Mt(t,e.typeExpression)||(typeof e.comment=="string"?void 0:Ti(t,n,e.comment))}function Mie(e,t,n){return Mt(t,e.name)}function QC(e,t,n){return Mt(t,e.tagName)||(typeof e.comment=="string"?void 0:Ti(t,n,e.comment))}function E9e(e,t,n){return Mt(t,e.expression)}function Ss(e,t,n){if(e===void 0||e.kind<=165)return;const i=jve[e.kind];return i===void 0?void 0:i(e,t,n)}function x3(e,t,n){const i=wve(e),s=[];for(;s.length=0;--u)i.push(o[u]),s.push(c)}else{const u=t(o,c);if(u){if(u==="skip")continue;return u}if(o.kind>=166)for(const f of wve(o))i.push(f),s.push(o)}}}function wve(e){const t=[];return Ss(e,n,n),t;function n(i){t.unshift(i)}}function Ave(e){e.externalModuleIndicator=Uw(e)}function qw(e,t,n,i=!1,s){var o,c,u,f;(o=qr)==null||o.push(qr.Phase.Parse,"createSourceFile",{path:e},!0),No("beforeParse");let g;(c=wu)==null||c.logStartParseSourceFile(e);const{languageVersion:d,setExternalModuleIndicator:y,impliedNodeFormat:S,jsDocParsingMode:T}=typeof n=="object"?n:{languageVersion:n};if(d===100)g=J1.parseSourceFile(e,t,d,void 0,i,6,Ca,T);else{const k=S===void 0?y:w=>(w.impliedNodeFormat=S,(y||Ave)(w));g=J1.parseSourceFile(e,t,d,void 0,i,s,k,T)}return(u=wu)==null||u.logStopParseSourceFile(),No("afterParse"),vf("Parse","beforeParse","afterParse"),(f=qr)==null||f.pop(),g}function hx(e,t){return J1.parseIsolatedEntityName(e,t)}function Hw(e,t){return J1.parseJsonText(e,t)}function Ic(e){return e.externalModuleIndicator!==void 0}function KV(e,t,n,i=!1){const s=iU.updateSourceFile(e,t,n,i);return s.flags|=e.flags&12582912,s}function Rie(e,t,n){const i=J1.JSDocParser.parseIsolatedJSDocComment(e,t,n);return i&&i.jsDoc&&J1.fixupParentReferences(i.jsDoc),i}function Nve(e,t,n){return J1.JSDocParser.parseJSDocTypeExpressionForTests(e,t,n)}function Hl(e){return eU(e)!==void 0}function eU(e){const t=jk(e,fw,!1);if(t)return t;if(Zo(e,".ts")){const n=wc(e).lastIndexOf(".d.");if(n>=0)return e.substring(n)}}function P9e(e,t,n,i){if(e){if(e==="import")return 99;if(e==="require")return 1;i(t,n-t,p.resolution_mode_should_be_either_require_or_import)}}function tU(e,t){const n=[];for(const i of _g(t,0)||Ve){const s=t.substring(i.pos,i.end);w9e(n,i,s)}e.pragmas=new Map;for(const i of n){if(e.pragmas.has(i.name)){const s=e.pragmas.get(i.name);s instanceof Array?s.push(i.args):e.pragmas.set(i.name,[s,i.args]);continue}e.pragmas.set(i.name,i.args)}}function rU(e,t){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach((n,i)=>{switch(i){case"reference":{const s=e.referencedFiles,o=e.typeReferenceDirectives,c=e.libReferenceDirectives;rr(vT(n),u=>{const{types:f,lib:g,path:d,["resolution-mode"]:y}=u.arguments;if(u.arguments["no-default-lib"])e.hasNoDefaultLib=!0;else if(f){const S=P9e(y,f.pos,f.end,t);o.push({pos:f.pos,end:f.end,fileName:f.value,...S?{resolutionMode:S}:{}})}else g?c.push({pos:g.pos,end:g.end,fileName:g.value}):d?s.push({pos:d.pos,end:d.end,fileName:d.value}):t(u.range.pos,u.range.end-u.range.pos,p.Invalid_reference_directive_syntax)});break}case"amd-dependency":{e.amdDependencies=nr(vT(n),s=>({name:s.arguments.name,path:s.arguments.path}));break}case"amd-module":{if(n instanceof Array)for(const s of n)e.moduleName&&t(s.range.pos,s.range.end-s.range.pos,p.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=s.arguments.name;else e.moduleName=n.arguments.name;break}case"ts-nocheck":case"ts-check":{rr(vT(n),s=>{(!e.checkJsDirective||s.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:i==="ts-check",end:s.range.end,pos:s.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:E.fail("Unhandled pragma kind")}})}function D9e(e){if(sU.has(e))return sU.get(e);const t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return sU.set(e,t),t}function w9e(e,t,n){const i=t.kind===2&&Bve.exec(n);if(i){const o=i[1].toLowerCase(),c=ED[o];if(!c||!(c.kind&1))return;if(c.args){const u={};for(const f of c.args){const d=D9e(f.name).exec(n);if(!d&&!f.optional)return;if(d){const y=d[2]||d[3];if(f.captureSpan){const S=t.pos+d.index+d[1].length+1;u[f.name]={value:y,pos:S,end:S+y.length}}else u[f.name]=y}}e.push({name:o,args:{arguments:u,range:t}})}else e.push({name:o,args:{arguments:{},range:t}});return}const s=t.kind===2&&Jve.exec(n);if(s)return Ive(e,t,2,s);if(t.kind===3){const o=/@(\S+)(\s+.*)?$/gim;let c;for(;c=o.exec(n);)Ive(e,t,4,c)}}function Ive(e,t,n,i){if(!i)return;const s=i[1].toLowerCase(),o=ED[s];if(!o||!(o.kind&n))return;const c=i[2],u=A9e(o,c);u!=="fail"&&e.push({name:s,args:{arguments:u,range:t}})}function A9e(e,t){if(!t)return{};if(!e.args)return{};const n=t.trim().split(/\s+/),i={};for(let s=0;snew(Rve||(Rve=Il.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(Lve||(Lve=Il.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(Mve||(Mve=Il.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(Ove||(Ove=Il.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(Fve||(Fve=Il.getNodeConstructor()))(e,-1,-1)},Jm=mw(1,nU),jve={166:function(t,n,i){return Mt(n,t.left)||Mt(n,t.right)},168:function(t,n,i){return Ti(n,i,t.modifiers)||Mt(n,t.name)||Mt(n,t.constraint)||Mt(n,t.default)||Mt(n,t.expression)},304:function(t,n,i){return Ti(n,i,t.modifiers)||Mt(n,t.name)||Mt(n,t.questionToken)||Mt(n,t.exclamationToken)||Mt(n,t.equalsToken)||Mt(n,t.objectAssignmentInitializer)},305:function(t,n,i){return Mt(n,t.expression)},169:function(t,n,i){return Ti(n,i,t.modifiers)||Mt(n,t.dotDotDotToken)||Mt(n,t.name)||Mt(n,t.questionToken)||Mt(n,t.type)||Mt(n,t.initializer)},172:function(t,n,i){return Ti(n,i,t.modifiers)||Mt(n,t.name)||Mt(n,t.questionToken)||Mt(n,t.exclamationToken)||Mt(n,t.type)||Mt(n,t.initializer)},171:function(t,n,i){return Ti(n,i,t.modifiers)||Mt(n,t.name)||Mt(n,t.questionToken)||Mt(n,t.type)||Mt(n,t.initializer)},303:function(t,n,i){return Ti(n,i,t.modifiers)||Mt(n,t.name)||Mt(n,t.questionToken)||Mt(n,t.exclamationToken)||Mt(n,t.initializer)},260:function(t,n,i){return Mt(n,t.name)||Mt(n,t.exclamationToken)||Mt(n,t.type)||Mt(n,t.initializer)},208:function(t,n,i){return Mt(n,t.dotDotDotToken)||Mt(n,t.propertyName)||Mt(n,t.name)||Mt(n,t.initializer)},181:function(t,n,i){return Ti(n,i,t.modifiers)||Ti(n,i,t.typeParameters)||Ti(n,i,t.parameters)||Mt(n,t.type)},185:function(t,n,i){return Ti(n,i,t.modifiers)||Ti(n,i,t.typeParameters)||Ti(n,i,t.parameters)||Mt(n,t.type)},184:function(t,n,i){return Ti(n,i,t.modifiers)||Ti(n,i,t.typeParameters)||Ti(n,i,t.parameters)||Mt(n,t.type)},179:hve,180:hve,174:function(t,n,i){return Ti(n,i,t.modifiers)||Mt(n,t.asteriskToken)||Mt(n,t.name)||Mt(n,t.questionToken)||Mt(n,t.exclamationToken)||Ti(n,i,t.typeParameters)||Ti(n,i,t.parameters)||Mt(n,t.type)||Mt(n,t.body)},173:function(t,n,i){return Ti(n,i,t.modifiers)||Mt(n,t.name)||Mt(n,t.questionToken)||Ti(n,i,t.typeParameters)||Ti(n,i,t.parameters)||Mt(n,t.type)},176:function(t,n,i){return Ti(n,i,t.modifiers)||Mt(n,t.name)||Ti(n,i,t.typeParameters)||Ti(n,i,t.parameters)||Mt(n,t.type)||Mt(n,t.body)},177:function(t,n,i){return Ti(n,i,t.modifiers)||Mt(n,t.name)||Ti(n,i,t.typeParameters)||Ti(n,i,t.parameters)||Mt(n,t.type)||Mt(n,t.body)},178:function(t,n,i){return Ti(n,i,t.modifiers)||Mt(n,t.name)||Ti(n,i,t.typeParameters)||Ti(n,i,t.parameters)||Mt(n,t.type)||Mt(n,t.body)},262:function(t,n,i){return Ti(n,i,t.modifiers)||Mt(n,t.asteriskToken)||Mt(n,t.name)||Ti(n,i,t.typeParameters)||Ti(n,i,t.parameters)||Mt(n,t.type)||Mt(n,t.body)},218:function(t,n,i){return Ti(n,i,t.modifiers)||Mt(n,t.asteriskToken)||Mt(n,t.name)||Ti(n,i,t.typeParameters)||Ti(n,i,t.parameters)||Mt(n,t.type)||Mt(n,t.body)},219:function(t,n,i){return Ti(n,i,t.modifiers)||Ti(n,i,t.typeParameters)||Ti(n,i,t.parameters)||Mt(n,t.type)||Mt(n,t.equalsGreaterThanToken)||Mt(n,t.body)},175:function(t,n,i){return Ti(n,i,t.modifiers)||Mt(n,t.body)},183:function(t,n,i){return Mt(n,t.typeName)||Ti(n,i,t.typeArguments)},182:function(t,n,i){return Mt(n,t.assertsModifier)||Mt(n,t.parameterName)||Mt(n,t.type)},186:function(t,n,i){return Mt(n,t.exprName)||Ti(n,i,t.typeArguments)},187:function(t,n,i){return Ti(n,i,t.members)},188:function(t,n,i){return Mt(n,t.elementType)},189:function(t,n,i){return Ti(n,i,t.elements)},192:yve,193:yve,194:function(t,n,i){return Mt(n,t.checkType)||Mt(n,t.extendsType)||Mt(n,t.trueType)||Mt(n,t.falseType)},195:function(t,n,i){return Mt(n,t.typeParameter)},205:function(t,n,i){return Mt(n,t.argument)||Mt(n,t.attributes)||Mt(n,t.qualifier)||Ti(n,i,t.typeArguments)},302:function(t,n,i){return Mt(n,t.assertClause)},196:vve,198:vve,199:function(t,n,i){return Mt(n,t.objectType)||Mt(n,t.indexType)},200:function(t,n,i){return Mt(n,t.readonlyToken)||Mt(n,t.typeParameter)||Mt(n,t.nameType)||Mt(n,t.questionToken)||Mt(n,t.type)||Ti(n,i,t.members)},201:function(t,n,i){return Mt(n,t.literal)},202:function(t,n,i){return Mt(n,t.dotDotDotToken)||Mt(n,t.name)||Mt(n,t.questionToken)||Mt(n,t.type)},206:bve,207:bve,209:function(t,n,i){return Ti(n,i,t.elements)},210:function(t,n,i){return Ti(n,i,t.properties)},211:function(t,n,i){return Mt(n,t.expression)||Mt(n,t.questionDotToken)||Mt(n,t.name)},212:function(t,n,i){return Mt(n,t.expression)||Mt(n,t.questionDotToken)||Mt(n,t.argumentExpression)},213:Sve,214:Sve,215:function(t,n,i){return Mt(n,t.tag)||Mt(n,t.questionDotToken)||Ti(n,i,t.typeArguments)||Mt(n,t.template)},216:function(t,n,i){return Mt(n,t.type)||Mt(n,t.expression)},217:function(t,n,i){return Mt(n,t.expression)},220:function(t,n,i){return Mt(n,t.expression)},221:function(t,n,i){return Mt(n,t.expression)},222:function(t,n,i){return Mt(n,t.expression)},224:function(t,n,i){return Mt(n,t.operand)},229:function(t,n,i){return Mt(n,t.asteriskToken)||Mt(n,t.expression)},223:function(t,n,i){return Mt(n,t.expression)},225:function(t,n,i){return Mt(n,t.operand)},226:function(t,n,i){return Mt(n,t.left)||Mt(n,t.operatorToken)||Mt(n,t.right)},234:function(t,n,i){return Mt(n,t.expression)||Mt(n,t.type)},235:function(t,n,i){return Mt(n,t.expression)},238:function(t,n,i){return Mt(n,t.expression)||Mt(n,t.type)},236:function(t,n,i){return Mt(n,t.name)},227:function(t,n,i){return Mt(n,t.condition)||Mt(n,t.questionToken)||Mt(n,t.whenTrue)||Mt(n,t.colonToken)||Mt(n,t.whenFalse)},230:function(t,n,i){return Mt(n,t.expression)},241:Tve,268:Tve,312:function(t,n,i){return Ti(n,i,t.statements)||Mt(n,t.endOfFileToken)},243:function(t,n,i){return Ti(n,i,t.modifiers)||Mt(n,t.declarationList)},261:function(t,n,i){return Ti(n,i,t.declarations)},244:function(t,n,i){return Mt(n,t.expression)},245:function(t,n,i){return Mt(n,t.expression)||Mt(n,t.thenStatement)||Mt(n,t.elseStatement)},246:function(t,n,i){return Mt(n,t.statement)||Mt(n,t.expression)},247:function(t,n,i){return Mt(n,t.expression)||Mt(n,t.statement)},248:function(t,n,i){return Mt(n,t.initializer)||Mt(n,t.condition)||Mt(n,t.incrementor)||Mt(n,t.statement)},249:function(t,n,i){return Mt(n,t.initializer)||Mt(n,t.expression)||Mt(n,t.statement)},250:function(t,n,i){return Mt(n,t.awaitModifier)||Mt(n,t.initializer)||Mt(n,t.expression)||Mt(n,t.statement)},251:xve,252:xve,253:function(t,n,i){return Mt(n,t.expression)},254:function(t,n,i){return Mt(n,t.expression)||Mt(n,t.statement)},255:function(t,n,i){return Mt(n,t.expression)||Mt(n,t.caseBlock)},269:function(t,n,i){return Ti(n,i,t.clauses)},296:function(t,n,i){return Mt(n,t.expression)||Ti(n,i,t.statements)},297:function(t,n,i){return Ti(n,i,t.statements)},256:function(t,n,i){return Mt(n,t.label)||Mt(n,t.statement)},257:function(t,n,i){return Mt(n,t.expression)},258:function(t,n,i){return Mt(n,t.tryBlock)||Mt(n,t.catchClause)||Mt(n,t.finallyBlock)},299:function(t,n,i){return Mt(n,t.variableDeclaration)||Mt(n,t.block)},170:function(t,n,i){return Mt(n,t.expression)},263:kve,231:kve,264:function(t,n,i){return Ti(n,i,t.modifiers)||Mt(n,t.name)||Ti(n,i,t.typeParameters)||Ti(n,i,t.heritageClauses)||Ti(n,i,t.members)},265:function(t,n,i){return Ti(n,i,t.modifiers)||Mt(n,t.name)||Ti(n,i,t.typeParameters)||Mt(n,t.type)},266:function(t,n,i){return Ti(n,i,t.modifiers)||Mt(n,t.name)||Ti(n,i,t.members)},306:function(t,n,i){return Mt(n,t.name)||Mt(n,t.initializer)},267:function(t,n,i){return Ti(n,i,t.modifiers)||Mt(n,t.name)||Mt(n,t.body)},271:function(t,n,i){return Ti(n,i,t.modifiers)||Mt(n,t.name)||Mt(n,t.moduleReference)},272:function(t,n,i){return Ti(n,i,t.modifiers)||Mt(n,t.importClause)||Mt(n,t.moduleSpecifier)||Mt(n,t.attributes)},273:function(t,n,i){return Mt(n,t.name)||Mt(n,t.namedBindings)},300:function(t,n,i){return Ti(n,i,t.elements)},301:function(t,n,i){return Mt(n,t.name)||Mt(n,t.value)},270:function(t,n,i){return Ti(n,i,t.modifiers)||Mt(n,t.name)},274:function(t,n,i){return Mt(n,t.name)},280:function(t,n,i){return Mt(n,t.name)},275:Cve,279:Cve,278:function(t,n,i){return Ti(n,i,t.modifiers)||Mt(n,t.exportClause)||Mt(n,t.moduleSpecifier)||Mt(n,t.attributes)},276:Eve,281:Eve,277:function(t,n,i){return Ti(n,i,t.modifiers)||Mt(n,t.expression)},228:function(t,n,i){return Mt(n,t.head)||Ti(n,i,t.templateSpans)},239:function(t,n,i){return Mt(n,t.expression)||Mt(n,t.literal)},203:function(t,n,i){return Mt(n,t.head)||Ti(n,i,t.templateSpans)},204:function(t,n,i){return Mt(n,t.type)||Mt(n,t.literal)},167:function(t,n,i){return Mt(n,t.expression)},298:function(t,n,i){return Ti(n,i,t.types)},233:function(t,n,i){return Mt(n,t.expression)||Ti(n,i,t.typeArguments)},283:function(t,n,i){return Mt(n,t.expression)},282:function(t,n,i){return Ti(n,i,t.modifiers)},361:function(t,n,i){return Ti(n,i,t.elements)},284:function(t,n,i){return Mt(n,t.openingElement)||Ti(n,i,t.children)||Mt(n,t.closingElement)},288:function(t,n,i){return Mt(n,t.openingFragment)||Ti(n,i,t.children)||Mt(n,t.closingFragment)},285:Pve,286:Pve,292:function(t,n,i){return Ti(n,i,t.properties)},291:function(t,n,i){return Mt(n,t.name)||Mt(n,t.initializer)},293:function(t,n,i){return Mt(n,t.expression)},294:function(t,n,i){return Mt(n,t.dotDotDotToken)||Mt(n,t.expression)},287:function(t,n,i){return Mt(n,t.tagName)},295:function(t,n,i){return Mt(n,t.namespace)||Mt(n,t.name)},190:S3,191:S3,316:S3,322:S3,321:S3,323:S3,325:S3,324:function(t,n,i){return Ti(n,i,t.parameters)||Mt(n,t.type)},327:function(t,n,i){return(typeof t.comment=="string"?void 0:Ti(n,i,t.comment))||Ti(n,i,t.tags)},354:function(t,n,i){return Mt(n,t.tagName)||Mt(n,t.name)||(typeof t.comment=="string"?void 0:Ti(n,i,t.comment))},317:function(t,n,i){return Mt(n,t.name)},318:function(t,n,i){return Mt(n,t.left)||Mt(n,t.right)},348:Dve,355:Dve,337:function(t,n,i){return Mt(n,t.tagName)||(typeof t.comment=="string"?void 0:Ti(n,i,t.comment))},336:function(t,n,i){return Mt(n,t.tagName)||Mt(n,t.class)||(typeof t.comment=="string"?void 0:Ti(n,i,t.comment))},335:function(t,n,i){return Mt(n,t.tagName)||Mt(n,t.class)||(typeof t.comment=="string"?void 0:Ti(n,i,t.comment))},352:function(t,n,i){return Mt(n,t.tagName)||Mt(n,t.constraint)||Ti(n,i,t.typeParameters)||(typeof t.comment=="string"?void 0:Ti(n,i,t.comment))},353:function(t,n,i){return Mt(n,t.tagName)||(t.typeExpression&&t.typeExpression.kind===316?Mt(n,t.typeExpression)||Mt(n,t.fullName)||(typeof t.comment=="string"?void 0:Ti(n,i,t.comment)):Mt(n,t.fullName)||Mt(n,t.typeExpression)||(typeof t.comment=="string"?void 0:Ti(n,i,t.comment)))},345:function(t,n,i){return Mt(n,t.tagName)||Mt(n,t.fullName)||Mt(n,t.typeExpression)||(typeof t.comment=="string"?void 0:Ti(n,i,t.comment))},349:T3,351:T3,350:T3,347:T3,357:T3,356:T3,346:T3,330:function(t,n,i){return rr(t.typeParameters,n)||rr(t.parameters,n)||Mt(n,t.type)},331:Mie,332:Mie,333:Mie,329:function(t,n,i){return rr(t.jsDocPropertyTags,n)},334:QC,339:QC,340:QC,341:QC,342:QC,343:QC,338:QC,344:QC,360:E9e},(e=>{var t=Hh(99,!0),n=40960,i,s,o,c,u;function f(G){return Je++,G}var g={createBaseSourceFileNode:G=>f(new u(G,0,0)),createBaseIdentifierNode:G=>f(new o(G,0,0)),createBasePrivateIdentifierNode:G=>f(new c(G,0,0)),createBaseTokenNode:G=>f(new s(G,0,0)),createBaseNode:G=>f(new i(G,0,0))},d=mw(11,g),{createNodeArray:y,createNumericLiteral:S,createStringLiteral:T,createLiteralLikeNode:k,createIdentifier:w,createPrivateIdentifier:P,createToken:F,createArrayLiteralExpression:J,createObjectLiteralExpression:U,createPropertyAccessExpression:$,createPropertyAccessChain:j,createElementAccessExpression:re,createElementAccessChain:R,createCallExpression:Y,createCallChain:ue,createNewExpression:pe,createParenthesizedExpression:H,createBlock:q,createVariableStatement:ee,createExpressionStatement:oe,createIfStatement:Se,createWhileStatement:ae,createForStatement:K,createForOfStatement:fe,createVariableDeclaration:ke,createVariableDeclarationList:Oe}=d,me,be,xe,De,ft,ge,Fe,$e,Pt,at,Je,pt,zt,Vt,hr,Lr,er=!0,jt=!1;function Rt(G,ve,je,dt,ht=!1,Ot,Tn,vi=0){var ui;if(Ot=gF(G,Ot),Ot===6){const Ai=Ji(G,ve,je,dt,ht);return Xw(Ai,(ui=Ai.statements[0])==null?void 0:ui.expression,Ai.parseDiagnostics,!1,void 0),Ai.referencedFiles=Ve,Ai.typeReferenceDirectives=Ve,Ai.libReferenceDirectives=Ve,Ai.amdDependencies=Ve,Ai.hasNoDefaultLib=!1,Ai.pragmas=c7,Ai}yi(G,ve,je,dt,Ot,vi);const Zn=yr(je,ht,Ot,Tn||Ave,vi);return os(),Zn}e.parseSourceFile=Rt;function Kn(G,ve){yi("",G,ve,void 0,1,0),Ce();const je=Q(!0),dt=V()===1&&!Fe.length;return os(),dt?je:void 0}e.parseIsolatedEntityName=Kn;function Ji(G,ve,je=2,dt,ht=!1){yi(G,ve,je,dt,6,0),be=Lr,Ce();const Ot=A();let Tn,vi;if(V()===1)Tn=fs([],Ot,Ot),vi=Wo();else{let Ai;for(;V()!==1;){let Da;switch(V()){case 23:Da=j2();break;case 112:case 97:case 106:Da=Wo();break;case 41:pi(()=>Ce()===9&&Ce()!==59)?Da=jn():Da=bh();break;case 9:case 11:if(pi(()=>Ce()!==59)){Da=Ln();break}default:Da=bh();break}Ai&&ts(Ai)?Ai.push(Da):Ai?Ai=[Ai,Da]:(Ai=Da,V()!==1&&Yt(p.Unexpected_token))}const Ba=ts(Ai)?Wt(J(Ai),Ot):E.checkDefined(Ai),to=oe(Ba);Wt(to,Ot),Tn=fs([to],Ot),vi=Ya(1,p.Unexpected_token)}const ui=Et(G,2,6,!1,Tn,vi,be,Ca);ht&&Ue(ui),ui.nodeCount=Je,ui.identifierCount=zt,ui.identifiers=pt,ui.parseDiagnostics=UT(Fe,ui),$e&&(ui.jsDocDiagnostics=UT($e,ui));const Zn=ui;return os(),Zn}e.parseJsonText=Ji;function yi(G,ve,je,dt,ht,Ot){switch(i=Il.getNodeConstructor(),s=Il.getTokenConstructor(),o=Il.getIdentifierConstructor(),c=Il.getPrivateIdentifierConstructor(),u=Il.getSourceFileConstructor(),me=Hs(G),xe=ve,De=je,Pt=dt,ft=ht,ge=K8(ht),Fe=[],Vt=0,pt=new Map,zt=0,Je=0,be=0,er=!0,ft){case 1:case 2:Lr=524288;break;case 6:Lr=134742016;break;default:Lr=0;break}jt=!1,t.setText(xe),t.setOnError(St),t.setScriptTarget(De),t.setLanguageVariant(ge),t.setScriptKind(ft),t.setJSDocParsingMode(Ot)}function os(){t.clearCommentDirectives(),t.setText(""),t.setOnError(void 0),t.setScriptKind(0),t.setJSDocParsingMode(0),xe=void 0,De=void 0,Pt=void 0,ft=void 0,ge=void 0,be=0,Fe=void 0,$e=void 0,Vt=0,pt=void 0,hr=void 0,er=!0}function yr(G,ve,je,dt,ht){const Ot=Hl(me);Ot&&(Lr|=33554432),be=Lr,Ce();const Tn=Is(0,w_);E.assert(V()===1);const vi=le(),ui=ln(Wo(),vi),Zn=Et(me,G,je,Ot,Tn,ui,be,dt);return tU(Zn,xe),rU(Zn,Ai),Zn.commentDirectives=t.getCommentDirectives(),Zn.nodeCount=Je,Zn.identifierCount=zt,Zn.identifiers=pt,Zn.parseDiagnostics=UT(Fe,Zn),Zn.jsDocParsingMode=ht,$e&&(Zn.jsDocDiagnostics=UT($e,Zn)),ve&&Ue(Zn),Zn;function Ai(Ba,to,Da){Fe.push(PC(me,xe,Ba,to,Da))}}let _i=!1;function ln(G,ve){if(!ve)return G;E.assert(!G.jsDoc);const je=Ri(Az(G,xe),dt=>_m.parseJSDocComment(G,dt.pos,dt.end-dt.pos));return je.length&&(G.jsDoc=je),_i&&(_i=!1,G.flags|=536870912),G}function Ht(G){const ve=Pt,je=iU.createSyntaxCursor(G);Pt={currentNode:Ai};const dt=[],ht=Fe;Fe=[];let Ot=0,Tn=ui(G.statements,0);for(;Tn!==-1;){const Ba=G.statements[Ot],to=G.statements[Tn];Nn(dt,G.statements,Ot,Tn),Ot=Zn(G.statements,Tn);const Da=vc(ht,fm=>fm.start>=Ba.pos),ip=Da>=0?vc(ht,fm=>fm.start>=to.pos,Da):-1;Da>=0&&Nn(Fe,ht,Da,ip>=0?ip:void 0),Qi(()=>{const fm=Lr;for(Lr|=65536,t.resetTokenState(to.pos),Ce();V()!==1;){const Bg=t.getTokenFullStart(),kh=Cc(0,w_);if(dt.push(kh),Bg===t.getTokenFullStart()&&Ce(),Ot>=0){const Ch=G.statements[Ot];if(kh.end===Ch.pos)break;kh.end>Ch.pos&&(Ot=Zn(G.statements,Ot+1))}}Lr=fm},2),Tn=Ot>=0?ui(G.statements,Ot):-1}if(Ot>=0){const Ba=G.statements[Ot];Nn(dt,G.statements,Ot);const to=vc(ht,Da=>Da.start>=Ba.pos);to>=0&&Nn(Fe,ht,to)}return Pt=ve,d.updateSourceFile(G,Ke(y(dt),G.statements));function vi(Ba){return!(Ba.flags&65536)&&!!(Ba.transformFlags&67108864)}function ui(Ba,to){for(let Da=to;Da118}function is(){return V()===80?!0:V()===127&&mt()||V()===135&&ir()?!1:V()>118}function pr(G,ve,je=!0){return V()===G?(je&&Ce(),!0):(ve?Yt(ve):Yt(p._0_expected,Ws(G)),!1)}const _o=Object.keys(BD).filter(G=>G.length>2);function kc(G){if(o2(G)){W(ca(xe,G.template.pos),G.template.end,p.Module_declaration_names_may_only_use_or_quoted_strings);return}const ve=Ie(G)?on(G):void 0;if(!ve||!bf(ve,De)){Yt(p._0_expected,Ws(27));return}const je=ca(xe,G.pos);switch(ve){case"const":case"let":case"var":W(je,G.end,p.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":_s(p.Interface_name_cannot_be_0,p.Interface_must_be_given_a_name,19);return;case"is":W(je,t.getTokenStart(),p.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":_s(p.Namespace_name_cannot_be_0,p.Namespace_must_be_given_a_name,19);return;case"type":_s(p.Type_alias_name_cannot_be_0,p.Type_alias_must_be_given_a_name,64);return}const dt=U4(ve,_o,ht=>ht)??Ra(ve);if(dt){W(je,G.end,p.Unknown_keyword_or_identifier_Did_you_mean_0,dt);return}V()!==0&&W(je,G.end,p.Unexpected_keyword_or_identifier)}function _s(G,ve,je){V()===je?Yt(ve):Yt(G,t.getTokenValue())}function Ra(G){for(const ve of _o)if(G.length>ve.length+2&&Vi(G,ve))return`${ve} ${G.slice(ve.length)}`}function go(G,ve,je){if(V()===60&&!t.hasPrecedingLineBreak()){Yt(p.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(V()===21){Yt(p.Cannot_start_a_function_call_in_a_type_annotation),Ce();return}if(ve&&!Fc()){je?Yt(p._0_expected,Ws(27)):Yt(p.Expected_for_property_initializer);return}if(!rc()){if(je){Yt(p._0_expected,Ws(27));return}kc(G)}}function qo(G){return V()===G?(_t(),!0):(E.assert(M5(G)),Yt(p._0_expected,Ws(G)),!1)}function Ol(G,ve,je,dt){if(V()===ve){Ce();return}const ht=Yt(p._0_expected,Ws(ve));je&&ht&&la(ht,PC(me,xe,dt,1,p.The_parser_expected_to_find_a_1_to_match_the_0_token_here,Ws(G),Ws(ve)))}function $i(G){return V()===G?(Ce(),!0):!1}function zs(G){if(V()===G)return Wo()}function Ll(G){if(V()===G)return Zf()}function Ya(G,ve,je){return zs(G)||ho(G,!1,ve||p._0_expected,je||Ws(G))}function oa(G){const ve=Ll(G);return ve||(E.assert(M5(G)),ho(G,!1,p._0_expected,Ws(G)))}function Wo(){const G=A(),ve=V();return Ce(),Wt(F(ve),G)}function Zf(){const G=A(),ve=V();return _t(),Wt(F(ve),G)}function Fc(){return V()===27?!0:V()===20||V()===1||t.hasPrecedingLineBreak()}function rc(){return Fc()?(V()===27&&Ce(),!0):!1}function Ro(){return rc()||pr(27)}function fs(G,ve,je,dt){const ht=y(G,dt);return Fm(ht,ve,je??t.getTokenFullStart()),ht}function Wt(G,ve,je){return Fm(G,ve,je??t.getTokenFullStart()),Lr&&(G.flags|=Lr),jt&&(jt=!1,G.flags|=262144),G}function ho(G,ve,je,...dt){ve?Kt(t.getTokenFullStart(),0,je,...dt):je&&Yt(je,...dt);const ht=A(),Ot=G===80?w("",void 0):G0(G)?d.createTemplateLiteralLikeNode(G,"","",void 0):G===9?S("",void 0):G===11?T("",void 0):G===282?d.createMissingDeclaration():F(G);return Wt(Ot,ht)}function Pl(G){let ve=pt.get(G);return ve===void 0&&pt.set(G,ve=G),ve}function Ml(G,ve,je){if(G){zt++;const vi=A(),ui=V(),Zn=Pl(t.getTokenValue()),Ai=t.hasExtendedUnicodeEscape();return ce(),Wt(w(Zn,ui,Ai),vi)}if(V()===81)return Yt(je||p.Private_identifiers_are_not_allowed_outside_class_bodies),Ml(!0);if(V()===0&&t.tryScan(()=>t.reScanInvalidIdentifier()===80))return Ml(!0);zt++;const dt=V()===1,ht=t.isReservedWord(),Ot=t.getTokenText(),Tn=ht?p.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:p.Identifier_expected;return ho(80,dt,ve||Tn,Ot)}function q_(G){return Ml(In(),void 0,G)}function so(G,ve){return Ml(is(),G,ve)}function Zc(G){return Ml(Au(V()),G)}function se(){return(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&Yt(p.Unicode_escape_sequence_cannot_appear_here),Ml(Au(V()))}function X(){return Au(V())||V()===11||V()===9}function Ee(){return Au(V())||V()===11}function lt(G){if(V()===11||V()===9){const ve=Ln();return ve.text=Pl(ve.text),ve}return V()===23?an():V()===81?rn():Zc()}function Xt(){return lt()}function an(){const G=A();pr(23);const ve=cr(Me);return pr(24),Wt(d.createComputedPropertyName(ve),G)}function rn(){const G=A(),ve=P(Pl(t.getTokenValue()));return Ce(),Wt(ve,G)}function En(G){return V()===G&&ci(gn)}function li(){return Ce(),t.hasPrecedingLineBreak()?!1:yo()}function gn(){switch(V()){case 87:return Ce()===94;case 95:return Ce(),V()===90?pi(Vc):V()===156?pi(Qo):Ps();case 90:return Vc();case 126:case 139:case 153:return Ce(),yo();default:return li()}}function Ps(){return V()===60||V()!==42&&V()!==130&&V()!==19&&yo()}function Qo(){return Ce(),Ps()}function gl(){return $h(V())&&ci(gn)}function yo(){return V()===23||V()===19||V()===42||V()===26||X()}function Vc(){return Ce(),V()===86||V()===100||V()===120||V()===60||V()===128&&pi(OS)||V()===134&&pi(LS)}function $a(G,ve){if(Uc(G))return!0;switch(G){case 0:case 1:case 3:return!(V()===27&&ve)&&J2();case 2:return V()===84||V()===90;case 4:return pi(Ta);case 5:return pi(Rg)||V()===27&&!ve;case 6:return V()===23||X();case 12:switch(V()){case 23:case 42:case 26:case 25:return!0;default:return X()}case 18:return X();case 9:return V()===23||V()===26||X();case 24:return Ee();case 7:return V()===19?pi(hl):ve?is()&&!Ju():Kx()&&!Ju();case 8:return Na();case 10:return V()===28||V()===26||Na();case 19:return V()===103||V()===87||is();case 15:switch(V()){case 28:case 25:return!0}case 11:return V()===26||Td();case 16:return am(!1);case 17:return am(!0);case 20:case 21:return V()===28||Ng();case 22:return C();case 23:return V()===161&&pi(n4)?!1:Au(V());case 13:return Au(V())||V()===19;case 14:return!0;case 25:return!0;case 26:return E.fail("ParsingContext.Count used as a context");default:E.assertNever(G,"Non-exhaustive case in 'isListElement'.")}}function hl(){if(E.assert(V()===19),Ce()===20){const G=Ce();return G===28||G===19||G===96||G===119}return!0}function E_(){return Ce(),is()}function cl(){return Ce(),Au(V())}function Ep(){return Ce(),See(V())}function Ju(){return V()===119||V()===96?pi(Te):!1}function Te(){return Ce(),Td()}function kt(){return Ce(),Ng()}function Fr(G){if(V()===1)return!0;switch(G){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return V()===20;case 3:return V()===20||V()===84||V()===90;case 7:return V()===19||V()===96||V()===119;case 8:return Yi();case 19:return V()===32||V()===21||V()===19||V()===96||V()===119;case 11:return V()===22||V()===27;case 15:case 21:case 10:return V()===24;case 17:case 16:case 18:return V()===22||V()===24;case 20:return V()!==28;case 22:return V()===19||V()===20;case 13:return V()===32||V()===44;case 14:return V()===30&&pi(ni);default:return!1}}function Yi(){return!!(Fc()||hh(V())||V()===39)}function Ds(){E.assert(Vt,"Missing parsing context");for(let G=0;G<26;G++)if(Vt&1<=0)}function fh(G){return G===6?p.An_enum_member_name_must_be_followed_by_a_or:void 0}function H_(){const G=fs([],A());return G.isMissingList=!0,G}function Ag(G){return!!G.isMissingList}function f_(G,ve,je,dt){if(pr(je)){const ht=_u(G,ve);return pr(dt),ht}return H_()}function Q(G,ve){const je=A();let dt=G?Zc(ve):so(ve);for(;$i(25)&&V()!==30;)dt=Wt(d.createQualifiedName(dt,Ct(G,!1,!0)),je);return dt}function Ye(G,ve){return Wt(d.createQualifiedName(G,ve),G.pos)}function Ct(G,ve,je){if(t.hasPrecedingLineBreak()&&Au(V())&&pi(pf))return ho(80,!0,p.Identifier_expected);if(V()===81){const dt=rn();return ve?dt:ho(80,!0,p.Identifier_expected)}return G?je?Zc():se():so()}function At(G){const ve=A(),je=[];let dt;do dt=Vn(G),je.push(dt);while(dt.literal.kind===17);return fs(je,ve)}function O(G){const ve=A();return Wt(d.createTemplateExpression(ji(G),At(G)),ve)}function he(){const G=A();return Wt(d.createTemplateLiteralType(ji(!1),Xe()),G)}function Xe(){const G=A(),ve=[];let je;do je=Ft(),ve.push(je);while(je.literal.kind===17);return fs(ve,G)}function Ft(){const G=A();return Wt(d.createTemplateLiteralTypeSpan(qc(),zr(!1)),G)}function zr(G){return V()===20?(Er(G),fa()):Ya(18,p._0_expected,Ws(20))}function Vn(G){const ve=A();return Wt(d.createTemplateSpan(cr(Me),zr(G)),ve)}function Ln(){return lc(V())}function ji(G){!G&&t.getTokenFlags()&26656&&Er(!1);const ve=lc(V());return E.assert(ve.kind===16,"Template head has wrong token kind"),ve}function fa(){const G=lc(V());return E.assert(G.kind===17||G.kind===18,"Template fragment has wrong token kind"),G}function pa(G){const ve=G===15||G===18,je=t.getTokenText();return je.substring(1,je.length-(t.isUnterminated()?0:ve?1:2))}function lc(G){const ve=A(),je=G0(G)?d.createTemplateLiteralLikeNode(G,t.getTokenValue(),pa(G),t.getTokenFlags()&7176):G===9?S(t.getTokenValue(),t.getNumericLiteralFlags()):G===11?T(t.getTokenValue(),void 0,t.hasExtendedUnicodeEscape()):oE(G)?k(G,t.getTokenValue()):E.fail();return t.hasExtendedUnicodeEscape()&&(je.hasExtendedUnicodeEscape=!0),t.isUnterminated()&&(je.isUnterminated=!0),Ce(),Wt(je,ve)}function Rl(){return Q(!0,p.Type_expected)}function Kc(){if(!t.hasPrecedingLineBreak()&&Nr()===30)return f_(20,qc,30,32)}function G_(){const G=A();return Wt(d.createTypeReferenceNode(Rl(),Kc()),G)}function p_(G){switch(G.kind){case 183:return _c(G.typeName);case 184:case 185:{const{parameters:ve,type:je}=G;return Ag(ve)||p_(je)}case 196:return p_(G.type);default:return!1}}function ky(G){return Ce(),Wt(d.createTypePredicateNode(void 0,G,qc()),G.pos)}function ja(){const G=A();return Ce(),Wt(d.createThisTypeNode(),G)}function Qp(){const G=A();return Ce(),Wt(d.createJSDocAllType(),G)}function Yp(){const G=A();return Ce(),Wt(d.createJSDocNonNullableType(Ey(),!1),G)}function Ci(){const G=A();return Ce(),V()===28||V()===20||V()===22||V()===32||V()===64||V()===52?Wt(d.createJSDocUnknownType(),G):Wt(d.createJSDocNullableType(qc(),!1),G)}function ph(){const G=A(),ve=le();if(ci(np)){const je=tr(36),dt=Nt(59,!1);return ln(Wt(d.createJSDocFunctionType(je,dt),G),ve)}return Wt(d.createTypeReferenceNode(Zc(),void 0),G)}function h0(){const G=A();let ve;return(V()===110||V()===105)&&(ve=Zc(),pr(59)),Wt(d.createParameterDeclaration(void 0,void 0,ve,void 0,Zp(),void 0),G)}function Zp(){t.setInJSDocType(!0);const G=A();if($i(144)){const dt=d.createJSDocNamepathType(void 0);e:for(;;)switch(V()){case 20:case 1:case 28:case 5:break e;default:_t()}return t.setInJSDocType(!1),Wt(dt,G)}const ve=$i(26);let je=Py();return t.setInJSDocType(!1),ve&&(je=Wt(d.createJSDocVariadicType(je),G)),V()===64?(Ce(),Wt(d.createJSDocOptionalType(je),G)):je}function w2(){const G=A();pr(114);const ve=Q(!0),je=t.hasPrecedingLineBreak()?void 0:fv();return Wt(d.createTypeQueryNode(ve,je),G)}function A2(){const G=A(),ve=Qm(!1,!0),je=so();let dt,ht;$i(96)&&(Ng()||!Td()?dt=qc():ht=wy());const Ot=$i(64)?qc():void 0,Tn=d.createTypeParameterDeclaration(ve,je,dt,Ot);return Tn.expression=ht,Wt(Tn,G)}function If(){if(V()===30)return f_(19,A2,30,32)}function am(G){return V()===26||Na()||$h(V())||V()===60||Ng(!G)}function Ff(G){const ve=un(p.Private_identifiers_cannot_be_used_as_parameters);return a8(ve)===0&&!ct(G)&&$h(V())&&Ce(),ve}function dh(){return In()||V()===23||V()===19}function Ae(G){return bt(G)}function We(G){return bt(G,!1)}function bt(G,ve=!0){const je=A(),dt=le(),ht=G?ne(()=>Qm(!0)):we(()=>Qm(!0));if(V()===110){const ui=d.createParameterDeclaration(ht,void 0,Ml(!0),void 0,v0(),void 0),Zn=bl(ht);return Zn&&Pe(Zn,p.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),ln(Wt(ui,je),dt)}const Ot=er;er=!1;const Tn=zs(26);if(!ve&&!dh())return;const vi=ln(Wt(d.createParameterDeclaration(ht,Tn,Ff(ht),zs(58),v0(),xd()),je),dt);return er=Ot,vi}function Nt(G,ve){if(sr(G,ve))return Le(Py)}function sr(G,ve){return G===39?(pr(G),!0):$i(59)?!0:ve&&V()===39?(Yt(p._0_expected,Ws(59)),Ce(),!0):!1}function Mr(G,ve){const je=mt(),dt=ir();ei(!!(G&1)),ns(!!(G&2));const ht=G&32?_u(17,h0):_u(16,()=>ve?Ae(dt):We(dt));return ei(je),ns(dt),ht}function tr(G){if(!pr(21))return H_();const ve=Mr(G,!0);return pr(22),ve}function Rr(){$i(28)||Ro()}function Yn(G){const ve=A(),je=le();G===180&&pr(105);const dt=If(),ht=tr(4),Ot=Nt(59,!0);Rr();const Tn=G===179?d.createCallSignature(dt,ht,Ot):d.createConstructSignature(dt,ht,Ot);return ln(Wt(Tn,ve),je)}function Gr(){return V()===23&&pi(zn)}function zn(){if(Ce(),V()===26||V()===24)return!0;if($h(V())){if(Ce(),is())return!0}else if(is())Ce();else return!1;return V()===59||V()===28?!0:V()!==58?!1:(Ce(),V()===59||V()===28||V()===24)}function Yr(G,ve,je){const dt=f_(16,()=>Ae(!1),23,24),ht=v0();Rr();const Ot=d.createIndexSignature(je,dt,ht);return ln(Wt(Ot,G),ve)}function ws(G,ve,je){const dt=Xt(),ht=zs(58);let Ot;if(V()===21||V()===30){const Tn=If(),vi=tr(4),ui=Nt(59,!0);Ot=d.createMethodSignature(je,dt,ht,Tn,vi,ui)}else{const Tn=v0();Ot=d.createPropertySignature(je,dt,ht,Tn),V()===64&&(Ot.initializer=xd())}return Rr(),ln(Wt(Ot,G),ve)}function Ta(){if(V()===21||V()===30||V()===139||V()===153)return!0;let G=!1;for(;$h(V());)G=!0,Ce();return V()===23?!0:(X()&&(G=!0,Ce()),G?V()===21||V()===30||V()===58||V()===59||V()===28||Fc():!1)}function ku(){if(V()===21||V()===30)return Yn(179);if(V()===105&&pi(jl))return Yn(180);const G=A(),ve=le(),je=Qm(!1);return En(139)?Th(G,ve,je,177,4):En(153)?Th(G,ve,je,178,4):Gr()?Yr(G,ve,je):ws(G,ve,je)}function jl(){return Ce(),V()===21||V()===30}function mh(){return Ce()===25}function Z1(){switch(Ce()){case 21:case 30:case 25:return!0}return!1}function Ux(){const G=A();return Wt(d.createTypeLiteralNode(K1()),G)}function K1(){let G;return pr(19)?(G=Is(4,ku),pr(20)):G=H_(),G}function V6(){return Ce(),V()===40||V()===41?Ce()===148:(V()===148&&Ce(),V()===23&&E_()&&Ce()===103)}function U6(){const G=A(),ve=Zc();pr(103);const je=qc();return Wt(d.createTypeParameterDeclaration(void 0,ve,je,void 0),G)}function q6(){const G=A();pr(19);let ve;(V()===148||V()===40||V()===41)&&(ve=Wo(),ve.kind!==148&&pr(148)),pr(23);const je=U6(),dt=$i(130)?qc():void 0;pr(24);let ht;(V()===58||V()===40||V()===41)&&(ht=Wo(),ht.kind!==58&&pr(58));const Ot=v0();Ro();const Tn=Is(4,ku);return pr(20),Wt(d.createMappedTypeNode(ve,je,dt,ht,Ot,Tn),G)}function hS(){const G=A();if($i(26))return Wt(d.createRestTypeNode(qc()),G);const ve=qc();if(WC(ve)&&ve.pos===ve.type.pos){const je=d.createOptionalTypeNode(ve.type);return Ke(je,ve),je.flags=ve.flags,je}return ve}function N2(){return Ce()===59||V()===58&&Ce()===59}function qx(){return V()===26?Au(Ce())&&N2():Au(V())&&N2()}function H6(){if(pi(qx)){const G=A(),ve=le(),je=zs(26),dt=Zc(),ht=zs(58);pr(59);const Ot=hS(),Tn=d.createNamedTupleMember(je,dt,ht,Ot);return ln(Wt(Tn,G),ve)}return hS()}function Hx(){const G=A();return Wt(d.createTupleTypeNode(f_(21,H6,23,24)),G)}function Gx(){const G=A();pr(21);const ve=qc();return pr(22),Wt(d.createParenthesizedType(ve),G)}function $x(){let G;if(V()===128){const ve=A();Ce();const je=Wt(F(128),ve);G=fs([je],ve)}return G}function Xx(){const G=A(),ve=le(),je=$x(),dt=$i(105);E.assert(!je||dt,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");const ht=If(),Ot=tr(4),Tn=Nt(39,!1),vi=dt?d.createConstructorTypeNode(je,ht,Ot,Tn):d.createFunctionTypeNode(ht,Ot,Tn);return ln(Wt(vi,G),ve)}function yS(){const G=Wo();return V()===25?void 0:G}function Qx(G){const ve=A();G&&Ce();let je=V()===112||V()===97||V()===106?Wo():lc(V());return G&&(je=Wt(d.createPrefixUnaryExpression(41,je),ve)),Wt(d.createLiteralTypeNode(je),ve)}function I2(){return Ce(),V()===102}function F2(){be|=4194304;const G=A(),ve=$i(114);pr(102),pr(21);const je=qc();let dt;if($i(28)){const Tn=t.getTokenStart();pr(19);const vi=V();if(vi===118||vi===132?Ce():Yt(p._0_expected,Ws(118)),pr(59),dt=By(vi,!0),!pr(20)){const ui=Do(Fe);ui&&ui.code===p._0_expected.code&&la(ui,PC(me,xe,Tn,1,p.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}pr(22);const ht=$i(25)?Rl():void 0,Ot=Kc();return Wt(d.createImportTypeNode(je,dt,ht,Ot,ve),G)}function Cy(){return Ce(),V()===9||V()===10}function Ey(){switch(V()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return ci(yS)||G_();case 67:t.reScanAsteriskEqualsToken();case 42:return Qp();case 61:t.reScanQuestionToken();case 58:return Ci();case 100:return ph();case 54:return Yp();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return Qx();case 41:return pi(Cy)?Qx(!0):G_();case 116:return Wo();case 110:{const G=ja();return V()===142&&!t.hasPrecedingLineBreak()?ky(G):G}case 114:return pi(I2)?F2():w2();case 19:return pi(V6)?q6():Ux();case 23:return Hx();case 21:return Gx();case 102:return F2();case 131:return pi(pf)?Zx():G_();case 16:return he();default:return G_()}}function Ng(G){switch(V()){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!G;case 41:return!G&&pi(Cy);case 21:return!G&&pi(ev);default:return is()}}function ev(){return Ce(),V()===22||am(!1)||Ng()}function wa(){const G=A();let ve=Ey();for(;!t.hasPrecedingLineBreak();)switch(V()){case 54:Ce(),ve=Wt(d.createJSDocNonNullableType(ve,!0),G);break;case 58:if(pi(kt))return ve;Ce(),ve=Wt(d.createJSDocNullableType(ve,!0),G);break;case 23:if(pr(23),Ng()){const je=qc();pr(24),ve=Wt(d.createIndexedAccessTypeNode(ve,je),G)}else pr(24),ve=Wt(d.createArrayTypeNode(ve),G);break;default:return ve}return ve}function vS(G){const ve=A();return pr(G),Wt(d.createTypeOperatorNode(G,Hm()),ve)}function G6(){if($i(96)){const G=rt(qc);if(nt()||V()!==58)return G}}function tv(){const G=A(),ve=so(),je=ci(G6),dt=d.createTypeParameterDeclaration(void 0,ve,je);return Wt(dt,G)}function gh(){const G=A();return pr(140),Wt(d.createInferTypeNode(tv()),G)}function Hm(){const G=V();switch(G){case 143:case 158:case 148:return vS(G);case 140:return gh()}return Le(wa)}function ep(G){if(bS()){const ve=Xx();let je;return Mm(ve)?je=G?p.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:p.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:je=G?p.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:p.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,Pe(ve,je),ve}}function d_(G,ve,je){const dt=A(),ht=G===52,Ot=$i(G);let Tn=Ot&&ep(ht)||ve();if(V()===G||Ot){const vi=[Tn];for(;$i(G);)vi.push(ep(ht)||ve());Tn=Wt(je(fs(vi,dt)),dt)}return Tn}function $_(){return d_(51,Hm,d.createIntersectionTypeNode)}function P_(){return d_(52,$_,d.createUnionTypeNode)}function y0(){return Ce(),V()===105}function bS(){return V()===30||V()===21&&pi(Yx)?!0:V()===105||V()===128&&pi(y0)}function $6(){if($h(V())&&Qm(!1),is()||V()===110)return Ce(),!0;if(V()===23||V()===19){const G=Fe.length;return un(),G===Fe.length}return!1}function Yx(){return Ce(),!!(V()===22||V()===26||$6()&&(V()===59||V()===28||V()===58||V()===64||V()===22&&(Ce(),V()===39)))}function Py(){const G=A(),ve=is()&&ci(rv),je=qc();return ve?Wt(d.createTypePredicateNode(void 0,ve,je),G):je}function rv(){const G=so();if(V()===142&&!t.hasPrecedingLineBreak())return Ce(),G}function Zx(){const G=A(),ve=Ya(131),je=V()===110?ja():so(),dt=$i(142)?qc():void 0;return Wt(d.createTypePredicateNode(ve,je,dt),G)}function qc(){if(Lr&81920)return Vs(81920,qc);if(bS())return Xx();const G=A(),ve=P_();if(!nt()&&!t.hasPrecedingLineBreak()&&$i(96)){const je=rt(qc);pr(58);const dt=Le(qc);pr(59);const ht=Le(qc);return Wt(d.createConditionalTypeNode(ve,je,dt,ht),G)}return ve}function v0(){return $i(59)?qc():void 0}function Kx(){switch(V()){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(Z1);default:return is()}}function Td(){if(Kx())return!0;switch(V()){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 Cd()?!0:is()}}function SS(){return V()!==19&&V()!==100&&V()!==86&&V()!==60&&Td()}function Me(){const G=wt();G&&Ii(!1);const ve=A();let je=Bl(!0),dt;for(;dt=zs(28);)je=O2(je,dt,Bl(!0),ve);return G&&Ii(!0),je}function xd(){return $i(64)?Bl(!0):void 0}function Bl(G){if(nv())return Dy();const ve=S0(G)||TS(G);if(ve)return ve;const je=A(),dt=le(),ht=Dp(0);return ht.kind===80&&V()===39?b0(je,ht,G,dt,void 0):S_(ht)&&Kh(Jt())?O2(ht,Wo(),Bl(G),je):Pp(ht,je,G)}function nv(){return V()===127?mt()?!0:pi(vo):!1}function ek(){return Ce(),!t.hasPrecedingLineBreak()&&is()}function Dy(){const G=A();return Ce(),!t.hasPrecedingLineBreak()&&(V()===42||Td())?Wt(d.createYieldExpression(zs(42),Bl(!0)),G):Wt(d.createYieldExpression(void 0,void 0),G)}function b0(G,ve,je,dt,ht){E.assert(V()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");const Ot=d.createParameterDeclaration(void 0,void 0,ve,void 0,void 0,void 0);Wt(Ot,ve.pos);const Tn=fs([Ot],Ot.pos,Ot.end),vi=Ya(39),ui=kS(!!ht,je),Zn=d.createArrowFunction(ht,void 0,Tn,void 0,vi,ui);return ln(Wt(Zn,G),dt)}function S0(G){const ve=kP();if(ve!==0)return ve===1?iv(!0,!0):ci(()=>kd(G))}function kP(){return V()===21||V()===30||V()===134?pi(xa):V()===39?1:0}function xa(){if(V()===134&&(Ce(),t.hasPrecedingLineBreak()||V()!==21&&V()!==30))return 0;const G=V(),ve=Ce();if(G===21){if(ve===22)switch(Ce()){case 39:case 59:case 19:return 1;default:return 0}if(ve===23||ve===19)return 2;if(ve===26)return 1;if($h(ve)&&ve!==134&&pi(E_))return Ce()===130?0:1;if(!is()&&ve!==110)return 0;switch(Ce()){case 59:return 1;case 58:return Ce(),V()===59||V()===28||V()===64||V()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return E.assert(G===30),!is()&&V()!==87?0:ge===1?pi(()=>{$i(87);const dt=Ce();if(dt===96)switch(Ce()){case 64:case 32:case 44:return!1;default:return!0}else if(dt===28||dt===64)return!0;return!1})?1:0:2}function kd(G){const ve=t.getTokenStart();if(hr!=null&&hr.has(ve))return;const je=iv(!1,G);return je||(hr||(hr=new Set)).add(ve),je}function TS(G){if(V()===134&&pi(xS)===1){const ve=A(),je=le(),dt=Rf(),ht=Dp(0);return b0(ve,ht,G,je,dt)}}function xS(){if(V()===134){if(Ce(),t.hasPrecedingLineBreak()||V()===39)return 0;const G=Dp(0);if(!t.hasPrecedingLineBreak()&&G.kind===80&&V()===39)return 1}return 0}function iv(G,ve){const je=A(),dt=le(),ht=Rf(),Ot=ct(ht,c3)?2:0,Tn=If();let vi;if(pr(21)){if(G)vi=Mr(Ot,G);else{const Bg=Mr(Ot,G);if(!Bg)return;vi=Bg}if(!pr(22)&&!G)return}else{if(!G)return;vi=H_()}const ui=V()===59,Zn=Nt(59,!1);if(Zn&&!G&&p_(Zn))return;let Ai=Zn;for(;(Ai==null?void 0:Ai.kind)===196;)Ai=Ai.type;const Ba=Ai&&VC(Ai);if(!G&&V()!==39&&(Ba||V()!==19))return;const to=V(),Da=Ya(39),ip=to===39||to===19?kS(ct(ht,c3),ve):so();if(!ve&&ui&&V()!==59)return;const fm=d.createArrowFunction(ht,Tn,vi,Zn,Da,ip);return ln(Wt(fm,je),dt)}function kS(G,ve){if(V()===19)return Fy(G?2:0);if(V()!==27&&V()!==100&&V()!==86&&J2()&&!SS())return Fy(16|(G?2:0));const je=er;er=!1;const dt=G?ne(()=>Bl(ve)):we(()=>Bl(ve));return er=je,dt}function Pp(G,ve,je){const dt=zs(58);if(!dt)return G;let ht;return Wt(d.createConditionalExpression(G,dt,Vs(n,()=>Bl(!1)),ht=Ya(59),pp(ht)?Bl(je):ho(80,!1,p._0_expected,Ws(59))),ve)}function Dp(G){const ve=A(),je=wy();return tk(G,je,ve)}function hh(G){return G===103||G===165}function tk(G,ve,je){for(;;){Jt();const dt=U8(V());if(!(V()===43?dt>=G:dt>G)||V()===103&&Be())break;if(V()===130||V()===152){if(t.hasPrecedingLineBreak())break;{const Ot=V();Ce(),ve=Ot===152?X6(ve,qc()):wi(ve,qc())}}else ve=O2(ve,Wo(),Dp(dt),je)}return ve}function Cd(){return Be()&&V()===103?!1:U8(V())>0}function X6(G,ve){return Wt(d.createSatisfiesExpression(G,ve),G.pos)}function O2(G,ve,je,dt){return Wt(d.createBinaryExpression(G,ve,je),dt)}function wi(G,ve){return Wt(d.createAsExpression(G,ve),G.pos)}function jn(){const G=A();return Wt(d.createPrefixUnaryExpression(V(),Ne(Go)),G)}function Gm(){const G=A();return Wt(d.createDeleteExpression(Ne(Go)),G)}function m_(){const G=A();return Wt(d.createTypeOfExpression(Ne(Go)),G)}function CP(){const G=A();return Wt(d.createVoidExpression(Ne(Go)),G)}function yh(){return V()===135?ir()?!0:pi(vo):!1}function EP(){const G=A();return Wt(d.createAwaitExpression(Ne(Go)),G)}function wy(){if(_f()){const je=A(),dt=Ig();return V()===43?tk(U8(V()),dt,je):dt}const G=V(),ve=Go();if(V()===43){const je=ca(xe,ve.pos),{end:dt}=ve;ve.kind===216?W(je,dt,p.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(E.assert(M5(G)),W(je,dt,p.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,Ws(G)))}return ve}function Go(){switch(V()){case 40:case 41:case 55:case 54:return jn();case 91:return Gm();case 114:return m_();case 116:return CP();case 30:return ge===1?vh(!0,void 0,void 0,!0):ed();case 135:if(yh())return EP();default:return Ig()}}function _f(){switch(V()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(ge!==1)return!1;default:return!0}}function Ig(){if(V()===46||V()===47){const ve=A();return Wt(d.createPrefixUnaryExpression(V(),Ne(wp)),ve)}else if(ge===1&&V()===30&&pi(Ep))return vh(!0);const G=wp();if(E.assert(S_(G)),(V()===46||V()===47)&&!t.hasPrecedingLineBreak()){const ve=V();return Ce(),Wt(d.createPostfixUnaryExpression(G,ve),G.pos)}return G}function wp(){const G=A();let ve;return V()===102?pi(jl)?(be|=4194304,ve=Wo()):pi(mh)?(Ce(),Ce(),ve=Wt(d.createMetaProperty(102,Zc()),G),be|=8388608):ve=Ay():ve=V()===108?Kp():Ay(),x0(G,ve)}function Ay(){const G=A(),ve=sv();return Dl(G,ve,!0)}function Kp(){const G=A();let ve=Wo();if(V()===30){const je=A(),dt=ci($r);dt!==void 0&&(W(je,A(),p.super_may_not_use_type_arguments),Oi()||(ve=d.createExpressionWithTypeArguments(ve,dt)))}return V()===21||V()===25||V()===23?ve:(Ya(25,p.super_must_be_followed_by_an_argument_list_or_member_access),Wt($(ve,Ct(!0,!0,!0)),G))}function vh(G,ve,je,dt=!1){const ht=A(),Ot=Og(G);let Tn;if(Ot.kind===286){let vi=Fg(Ot),ui;const Zn=vi[vi.length-1];if((Zn==null?void 0:Zn.kind)===284&&!B1(Zn.openingElement.tagName,Zn.closingElement.tagName)&&B1(Ot.tagName,Zn.closingElement.tagName)){const Ai=Zn.children.end,Ba=Wt(d.createJsxElement(Zn.openingElement,Zn.children,Wt(d.createJsxClosingElement(Wt(w(""),Ai,Ai)),Ai,Ai)),Zn.openingElement.pos,Ai);vi=fs([...vi.slice(0,vi.length-1),Ba],vi.pos,Ai),ui=Zn.closingElement}else ui=M2(Ot,G),B1(Ot.tagName,ui.tagName)||(je&&Zd(je)&&B1(ui.tagName,je.tagName)?Pe(Ot.tagName,p.JSX_element_0_has_no_corresponding_closing_tag,pE(xe,Ot.tagName)):Pe(ui.tagName,p.Expected_corresponding_JSX_closing_tag_for_0,pE(xe,Ot.tagName)));Tn=Wt(d.createJsxElement(Ot,vi,ui),ht)}else Ot.kind===289?Tn=Wt(d.createJsxFragment(Ot,Fg(Ot),PS(G)),ht):(E.assert(Ot.kind===285),Tn=Ot);if(!dt&&G&&V()===30){const vi=typeof ve>"u"?Tn.pos:ve,ui=ci(()=>vh(!0,vi));if(ui){const Zn=ho(28,!1);return XE(Zn,ui.pos,0),W(ca(xe,vi),ui.end,p.JSX_expressions_must_have_one_parent_element),Wt(d.createBinaryExpression(Tn,Zn,ui),ht)}}return Tn}function L2(){const G=A(),ve=d.createJsxText(t.getTokenValue(),at===13);return at=t.scanJsxToken(),Wt(ve,G)}function CS(G,ve){switch(ve){case 1:if(px(G))Pe(G,p.JSX_fragment_has_no_corresponding_closing_tag);else{const je=G.tagName,dt=Math.min(ca(xe,je.pos),je.end);W(dt,je.end,p.JSX_element_0_has_no_corresponding_closing_tag,pE(xe,G.tagName))}return;case 31:case 7:return;case 12:case 13:return L2();case 19:return Q6(!1);case 30:return vh(!1,void 0,G);default:return E.assertNever(ve)}}function Fg(G){const ve=[],je=A(),dt=Vt;for(Vt|=16384;;){const ht=CS(G,at=t.reScanJsxToken());if(!ht||(ve.push(ht),Zd(G)&&(ht==null?void 0:ht.kind)===284&&!B1(ht.openingElement.tagName,ht.closingElement.tagName)&&B1(G.tagName,ht.closingElement.tagName)))break}return Vt=dt,fs(ve,je)}function rk(){const G=A();return Wt(d.createJsxAttributes(Is(13,Y6)),G)}function Og(G){const ve=A();if(pr(30),V()===32)return Wr(),Wt(d.createJsxOpeningFragment(),ve);const je=om(),dt=Lr&524288?void 0:fv(),ht=rk();let Ot;return V()===32?(Wr(),Ot=d.createJsxOpeningElement(je,dt,ht)):(pr(44),pr(32,void 0,!1)&&(G?Ce():Wr()),Ot=d.createJsxSelfClosingElement(je,dt,ht)),Wt(Ot,ve)}function om(){const G=A(),ve=T0();if(hd(ve))return ve;let je=ve;for(;$i(25);)je=Wt($(je,Ct(!0,!1,!1)),G);return je}function T0(){const G=A();oi();const ve=V()===110,je=se();return $i(59)?(oi(),Wt(d.createJsxNamespacedName(je,se()),G)):ve?Wt(d.createToken(110),G):je}function Q6(G){const ve=A();if(!pr(19))return;let je,dt;return V()!==20&&(G||(je=zs(26)),dt=Me()),G?pr(20):pr(20,void 0,!1)&&Wr(),Wt(d.createJsxExpression(je,dt),ve)}function Y6(){if(V()===19)return Eo();const G=A();return Wt(d.createJsxAttribute(ES(),Z6()),G)}function Z6(){if(V()===64){if(Cn()===11)return Ln();if(V()===19)return Q6(!0);if(V()===30)return vh(!0);Yt(p.or_JSX_element_expected)}}function ES(){const G=A();oi();const ve=se();return $i(59)?(oi(),Wt(d.createJsxNamespacedName(ve,se()),G)):ve}function Eo(){const G=A();pr(19),pr(26);const ve=Me();return pr(20),Wt(d.createJsxSpreadAttribute(ve),G)}function M2(G,ve){const je=A();pr(31);const dt=om();return pr(32,void 0,!1)&&(ve||!B1(G.tagName,dt)?Ce():Wr()),Wt(d.createJsxClosingElement(dt),je)}function PS(G){const ve=A();return pr(31),pr(32,p.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(G?Ce():Wr()),Wt(d.createJsxJsxClosingFragment(),ve)}function ed(){E.assert(ge!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");const G=A();pr(30);const ve=qc();pr(32);const je=Go();return Wt(d.createTypeAssertion(ve,je),G)}function Ny(){return Ce(),Au(V())||V()===23||Oi()}function K6(){return V()===29&&pi(Ny)}function DS(G){if(G.flags&64)return!0;if(ux(G)){let ve=G.expression;for(;ux(ve)&&!(ve.flags&64);)ve=ve.expression;if(ve.flags&64){for(;ux(G);)G.flags|=64,G=G.expression;return!0}}return!1}function PP(G,ve,je){const dt=Ct(!0,!0,!0),ht=je||DS(ve),Ot=ht?j(ve,je,dt):$(ve,dt);if(ht&&Pi(Ot.name)&&Pe(Ot.name,p.An_optional_chain_cannot_contain_private_identifiers),s0(ve)&&ve.typeArguments){const Tn=ve.typeArguments.pos-1,vi=ca(xe,ve.typeArguments.end)+1;W(Tn,vi,p.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return Wt(Ot,G)}function en(G,ve,je){let dt;if(V()===24)dt=ho(80,!0,p.An_element_access_expression_should_take_an_argument);else{const Ot=cr(Me);Sf(Ot)&&(Ot.text=Pl(Ot.text)),dt=Ot}pr(24);const ht=je||DS(ve)?R(ve,je,dt):re(ve,dt);return Wt(ht,G)}function Dl(G,ve,je){for(;;){let dt,ht=!1;if(je&&K6()?(dt=Ya(29),ht=Au(V())):ht=$i(25),ht){ve=PP(G,ve,dt);continue}if((dt||!wt())&&$i(23)){ve=en(G,ve,dt);continue}if(Oi()){ve=!dt&&ve.kind===233?Of(G,ve.expression,dt,ve.typeArguments):Of(G,ve,dt,void 0);continue}if(!dt){if(V()===54&&!t.hasPrecedingLineBreak()){Ce(),ve=Wt(d.createNonNullExpression(ve),G);continue}const Ot=ci($r);if(Ot){ve=Wt(d.createExpressionWithTypeArguments(ve,Ot),G);continue}}return ve}}function Oi(){return V()===15||V()===16}function Of(G,ve,je,dt){const ht=d.createTaggedTemplateExpression(ve,dt,V()===15?(Er(!0),Ln()):O(!0));return(je||ve.flags&64)&&(ht.flags|=64),ht.questionDotToken=je,Wt(ht,G)}function x0(G,ve){for(;;){ve=Dl(G,ve,!0);let je;const dt=zs(29);if(dt&&(je=ci($r),Oi())){ve=Of(G,ve,dt,je);continue}if(je||V()===21){!dt&&ve.kind===233&&(je=ve.typeArguments,ve=ve.expression);const ht=cm(),Ot=dt||DS(ve)?ue(ve,dt,je,ht):Y(ve,je,ht);ve=Wt(Ot,G);continue}if(dt){const ht=ho(80,!1,p.Identifier_expected);ve=Wt(j(ve,dt,ht),G)}break}return ve}function cm(){pr(21);const G=_u(11,R2);return pr(22),G}function $r(){if(Lr&524288||Nr()!==30)return;Ce();const G=_u(20,qc);if(Jt()===32)return Ce(),G&&wS()?G:void 0}function wS(){switch(V()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return t.hasPrecedingLineBreak()||Cd()||!Td()}function sv(){switch(V()){case 15:t.getTokenFlags()&26656&&Er(!1);case 9:case 10:case 11:return Ln();case 110:case 108:case 106:case 112:case 97:return Wo();case 21:return vl();case 23:return j2();case 19:return bh();case 134:if(!pi(LS))break;return AS();case 60:return _v();case 86:return lk();case 100:return AS();case 105:return av();case 44:case 69:if(ar()===14)return Ln();break;case 16:return O(!1);case 81:return rn()}return so(p.Expression_expected)}function vl(){const G=A(),ve=le();pr(21);const je=cr(Me);return pr(22),ln(Wt(H(je),G),ve)}function $m(){const G=A();pr(26);const ve=Bl(!0);return Wt(d.createSpreadElement(ve),G)}function td(){return V()===26?$m():V()===28?Wt(d.createOmittedExpression(),A()):Bl(!0)}function R2(){return Vs(n,td)}function j2(){const G=A(),ve=t.getTokenStart(),je=pr(23),dt=t.hasPrecedingLineBreak(),ht=_u(15,td);return Ol(23,24,je,ve),Wt(J(ht,dt),G)}function Iy(){const G=A(),ve=le();if(zs(26)){const Ai=Bl(!0);return ln(Wt(d.createSpreadAssignment(Ai),G),ve)}const je=Qm(!0);if(En(139))return Th(G,ve,je,177,0);if(En(153))return Th(G,ve,je,178,0);const dt=zs(42),ht=is(),Ot=Xt(),Tn=zs(58),vi=zs(54);if(dt||V()===21||V()===30)return Ed(G,ve,je,dt,Ot,Tn,vi);let ui;if(ht&&V()!==59){const Ai=zs(64),Ba=Ai?cr(()=>Bl(!0)):void 0;ui=d.createShorthandPropertyAssignment(Ot,Ba),ui.equalsToken=Ai}else{pr(59);const Ai=cr(()=>Bl(!0));ui=d.createPropertyAssignment(Ot,Ai)}return ui.modifiers=je,ui.questionToken=Tn,ui.exclamationToken=vi,ln(Wt(ui,G),ve)}function bh(){const G=A(),ve=t.getTokenStart(),je=pr(19),dt=t.hasPrecedingLineBreak(),ht=_u(12,Iy,!0);return Ol(19,20,je,ve),Wt(U(ht,dt),G)}function AS(){const G=wt();Ii(!1);const ve=A(),je=le(),dt=Qm(!1);pr(100);const ht=zs(42),Ot=ht?1:0,Tn=ct(dt,c3)?2:0,vi=Ot&&Tn?et(rd):Ot?tt(rd):Tn?ne(rd):rd(),ui=If(),Zn=tr(Ot|Tn),Ai=Nt(59,!1),Ba=Fy(Ot|Tn);Ii(G);const to=d.createFunctionExpression(dt,ht,vi,ui,Zn,Ai,Ba);return ln(Wt(to,ve),je)}function rd(){return In()?q_():void 0}function av(){const G=A();if(pr(105),$i(25)){const Ot=Zc();return Wt(d.createMetaProperty(105,Ot),G)}const ve=A();let je=Dl(ve,sv(),!1),dt;je.kind===233&&(dt=je.typeArguments,je=je.expression),V()===29&&Yt(p.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,pE(xe,je));const ht=V()===21?cm():void 0;return Wt(pe(je,dt,ht),G)}function Lg(G,ve){const je=A(),dt=le(),ht=t.getTokenStart(),Ot=pr(19,ve);if(Ot||G){const Tn=t.hasPrecedingLineBreak(),vi=Is(1,w_);Ol(19,20,Ot,ht);const ui=ln(Wt(q(vi,Tn),je),dt);return V()===64&&(Yt(p.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),Ce()),ui}else{const Tn=H_();return ln(Wt(q(Tn,void 0),je),dt)}}function Fy(G,ve){const je=mt();ei(!!(G&1));const dt=ir();ns(!!(G&2));const ht=er;er=!1;const Ot=wt();Ot&&Ii(!1);const Tn=Lg(!!(G&16),ve);return Ot&&Ii(!0),er=ht,ei(je),ns(dt),Tn}function nk(){const G=A(),ve=le();return pr(27),ln(Wt(d.createEmptyStatement(),G),ve)}function ov(){const G=A(),ve=le();pr(101);const je=t.getTokenStart(),dt=pr(21),ht=cr(Me);Ol(21,22,dt,je);const Ot=w_(),Tn=$i(93)?w_():void 0;return ln(Wt(Se(ht,Ot,Tn),G),ve)}function e4(){const G=A(),ve=le();pr(92);const je=w_();pr(117);const dt=t.getTokenStart(),ht=pr(21),Ot=cr(Me);return Ol(21,22,ht,dt),$i(27),ln(Wt(d.createDoStatement(je,Ot),G),ve)}function B2(){const G=A(),ve=le();pr(117);const je=t.getTokenStart(),dt=pr(21),ht=cr(Me);Ol(21,22,dt,je);const Ot=w_();return ln(Wt(ae(ht,Ot),G),ve)}function NS(){const G=A(),ve=le();pr(99);const je=zs(135);pr(21);let dt;V()!==27&&(V()===115||V()===121||V()===87||V()===160&&pi(Sh)||V()===135&&pi(X_)?dt=z2(!0):dt=br(Me));let ht;if(je?pr(165):$i(165)){const Ot=cr(()=>Bl(!0));pr(22),ht=fe(je,dt,Ot,w_())}else if($i(103)){const Ot=cr(Me);pr(22),ht=d.createForInStatement(dt,Ot,w_())}else{pr(27);const Ot=V()!==27&&V()!==22?cr(Me):void 0;pr(27);const Tn=V()!==22?cr(Me):void 0;pr(22),ht=K(dt,Ot,Tn,w_())}return ln(Wt(ht,G),ve)}function ff(G){const ve=A(),je=le();pr(G===252?83:88);const dt=Fc()?void 0:so();Ro();const ht=G===252?d.createBreakStatement(dt):d.createContinueStatement(dt);return ln(Wt(ht,ve),je)}function IS(){const G=A(),ve=le();pr(107);const je=Fc()?void 0:cr(Me);return Ro(),ln(Wt(d.createReturnStatement(je),G),ve)}function mc(){const G=A(),ve=le();pr(118);const je=t.getTokenStart(),dt=pr(21),ht=cr(Me);Ol(21,22,dt,je);const Ot=_a(67108864,w_);return ln(Wt(d.createWithStatement(ht,Ot),G),ve)}function ll(){const G=A(),ve=le();pr(84);const je=cr(Me);pr(59);const dt=Is(3,w_);return ln(Wt(d.createCaseClause(je,dt),G),ve)}function FS(){const G=A();pr(90),pr(59);const ve=Is(3,w_);return Wt(d.createDefaultClause(ve),G)}function $l(){return V()===84?ll():FS()}function D_(){const G=A();pr(19);const ve=Is(2,$l);return pr(20),Wt(d.createCaseBlock(ve),G)}function cv(){const G=A(),ve=le();pr(109),pr(21);const je=cr(Me);pr(22);const dt=D_();return ln(Wt(d.createSwitchStatement(je,dt),G),ve)}function tp(){const G=A(),ve=le();pr(111);let je=t.hasPrecedingLineBreak()?void 0:cr(Me);return je===void 0&&(zt++,je=Wt(w(""),A())),rc()||kc(je),ln(Wt(d.createThrowStatement(je),G),ve)}function Oy(){const G=A(),ve=le();pr(113);const je=Lg(!1),dt=V()===85?Ly():void 0;let ht;return(!dt||V()===98)&&(pr(98,p.catch_or_finally_expected),ht=Lg(!1)),ln(Wt(d.createTryStatement(je,dt,ht),G),ve)}function Ly(){const G=A();pr(85);let ve;$i(21)?(ve=e_(),pr(22)):ve=void 0;const je=Lg(!1);return Wt(d.createCatchClause(ve,je),G)}function wl(){const G=A(),ve=le();return pr(89),Ro(),ln(Wt(d.createDebuggerStatement(),G),ve)}function ik(){const G=A();let ve=le(),je;const dt=V()===21,ht=cr(Me);return Ie(ht)&&$i(59)?je=d.createLabeledStatement(ht,w_()):(rc()||kc(ht),je=oe(ht),dt&&(ve=!1)),ln(Wt(je,G),ve)}function pf(){return Ce(),Au(V())&&!t.hasPrecedingLineBreak()}function OS(){return Ce(),V()===86&&!t.hasPrecedingLineBreak()}function LS(){return Ce(),V()===100&&!t.hasPrecedingLineBreak()}function vo(){return Ce(),(Au(V())||V()===9||V()===10||V()===11)&&!t.hasPrecedingLineBreak()}function t4(){for(;;)switch(V()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return sk();case 135:return ak();case 120:case 156:return ek();case 144:case 145:return i4();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:const G=V();if(Ce(),t.hasPrecedingLineBreak())return!1;if(G===138&&V()===156)return!0;continue;case 162:return Ce(),V()===19||V()===80||V()===95;case 102:return Ce(),V()===11||V()===42||V()===19||Au(V());case 95:let ve=Ce();if(ve===156&&(ve=pi(Ce)),ve===64||ve===42||ve===19||ve===90||ve===130||ve===60)return!0;continue;case 126:Ce();continue;default:return!1}}function lv(){return pi(t4)}function J2(){switch(V()){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 lv()||pi(Z1);case 87:case 95:return lv();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 lv()||!pi(pf);default:return Td()}}function DP(){return Ce(),In()||V()===19||V()===23}function zu(){return pi(DP)}function Sh(){return lm(!0)}function lm(G){return Ce(),G&&V()===165?!1:(In()||V()===19)&&!t.hasPrecedingLineBreak()}function sk(){return pi(lm)}function X_(G){return Ce()===160?lm(G):!1}function ak(){return pi(X_)}function w_(){switch(V()){case 27:return nk();case 19:return Lg(!1);case 115:return uv(A(),le(),void 0);case 121:if(zu())return uv(A(),le(),void 0);break;case 135:if(ak())return uv(A(),le(),void 0);break;case 160:if(sk())return uv(A(),le(),void 0);break;case 100:return W2(A(),le(),void 0);case 86:return JS(A(),le(),void 0);case 101:return ov();case 92:return e4();case 117:return B2();case 99:return NS();case 88:return ff(251);case 83:return ff(252);case 107:return IS();case 118:return mc();case 109:return cv();case 111:return tp();case 113:case 85:case 98:return Oy();case 89:return wl();case 60:return k0();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(lv())return k0();break}return ik()}function ok(G){return G.kind===138}function k0(){const G=A(),ve=le(),je=Qm(!0);if(ct(je,ok)){const ht=MS(G);if(ht)return ht;for(const Ot of je)Ot.flags|=33554432;return _a(33554432,()=>r4(G,ve,je))}else return r4(G,ve,je)}function MS(G){return _a(33554432,()=>{const ve=Uc(Vt,G);if(ve)return jo(ve)})}function r4(G,ve,je){switch(V()){case 115:case 121:case 87:case 160:case 135:return uv(G,ve,je);case 100:return W2(G,ve,je);case 86:return JS(G,ve,je);case 120:return it(G,ve,je);case 156:return Ut(G,ve,je);case 94:return gi(G,ve,je);case 162:case 144:case 145:return Cu(G,ve,je);case 102:return Ar(G,ve,je);case 95:switch(Ce(),V()){case 90:case 64:return Km(G,ve,je);case 130:return Ym(G,ve,je);default:return wP(G,ve,je)}default:if(je){const dt=ho(282,!0,p.Declaration_expected);return $E(dt,G),dt.modifiers=je,dt}return}}function n4(){return Ce()===11}function RS(){return Ce(),V()===161||V()===64}function i4(){return Ce(),!t.hasPrecedingLineBreak()&&(is()||V()===11)}function My(G,ve){if(V()!==19){if(G&4){Rr();return}if(Fc()){Ro();return}}return Fy(G,ve)}function Q_(){const G=A();if(V()===28)return Wt(d.createOmittedExpression(),G);const ve=zs(26),je=un(),dt=xd();return Wt(d.createBindingElement(ve,void 0,je,dt),G)}function Xm(){const G=A(),ve=zs(26),je=In();let dt=Xt(),ht;je&&V()!==59?(ht=dt,dt=void 0):(pr(59),ht=un());const Ot=xd();return Wt(d.createBindingElement(ve,dt,ht,Ot),G)}function s4(){const G=A();pr(19);const ve=cr(()=>_u(9,Xm));return pr(20),Wt(d.createObjectBindingPattern(ve),G)}function jS(){const G=A();pr(23);const ve=cr(()=>_u(10,Q_));return pr(24),Wt(d.createArrayBindingPattern(ve),G)}function Na(){return V()===19||V()===23||V()===81||In()}function un(G){return V()===23?jS():V()===19?s4():q_(G)}function Lf(){return e_(!0)}function e_(G){const ve=A(),je=le(),dt=un(p.Private_identifiers_are_not_allowed_in_variable_declarations);let ht;G&&dt.kind===80&&V()===54&&!t.hasPrecedingLineBreak()&&(ht=Wo());const Ot=v0(),Tn=hh(V())?void 0:xd(),vi=ke(dt,ht,Ot,Tn);return ln(Wt(vi,ve),je)}function z2(G){const ve=A();let je=0;switch(V()){case 115:break;case 121:je|=1;break;case 87:je|=2;break;case 160:je|=4;break;case 135:E.assert(ak()),je|=6,Ce();break;default:E.fail()}Ce();let dt;if(V()===165&&pi(a4))dt=H_();else{const ht=Be();Hn(G),dt=_u(8,G?e_:Lf),Hn(ht)}return Wt(Oe(dt,je),ve)}function a4(){return E_()&&Ce()===22}function uv(G,ve,je){const dt=z2(!1);Ro();const ht=ee(je,dt);return ln(Wt(ht,G),ve)}function W2(G,ve,je){const dt=ir(),ht=Gd(je);pr(100);const Ot=zs(42),Tn=ht&2048?rd():q_(),vi=Ot?1:0,ui=ht&1024?2:0,Zn=If();ht&32&&ns(!0);const Ai=tr(vi|ui),Ba=Nt(59,!1),to=My(vi|ui,p.or_expected);ns(dt);const Da=d.createFunctionDeclaration(je,Ot,Tn,Zn,Ai,Ba,to);return ln(Wt(Da,G),ve)}function BS(){if(V()===137)return pr(137);if(V()===11&&pi(Ce)===21)return ci(()=>{const G=Ln();return G.text==="constructor"?G:void 0})}function Mg(G,ve,je){return ci(()=>{if(BS()){const dt=If(),ht=tr(0),Ot=Nt(59,!1),Tn=My(0,p.or_expected),vi=d.createConstructorDeclaration(je,ht,Tn);return vi.typeParameters=dt,vi.type=Ot,ln(Wt(vi,G),ve)}})}function Ed(G,ve,je,dt,ht,Ot,Tn,vi){const ui=dt?1:0,Zn=ct(je,c3)?2:0,Ai=If(),Ba=tr(ui|Zn),to=Nt(59,!1),Da=My(ui|Zn,vi),ip=d.createMethodDeclaration(je,dt,ht,Ot,Ai,Ba,to,Da);return ip.exclamationToken=Tn,ln(Wt(ip,G),ve)}function Mf(G,ve,je,dt,ht){const Ot=!ht&&!t.hasPrecedingLineBreak()?zs(54):void 0,Tn=v0(),vi=Vs(90112,xd);go(dt,Tn,vi);const ui=d.createPropertyDeclaration(je,dt,ht||Ot,Tn,vi);return ln(Wt(ui,G),ve)}function nd(G,ve,je){const dt=zs(42),ht=Xt(),Ot=zs(58);return dt||V()===21||V()===30?Ed(G,ve,je,dt,ht,Ot,void 0,p.or_expected):Mf(G,ve,je,ht,Ot)}function Th(G,ve,je,dt,ht){const Ot=Xt(),Tn=If(),vi=tr(0),ui=Nt(59,!1),Zn=My(ht),Ai=dt===177?d.createGetAccessorDeclaration(je,Ot,vi,ui,Zn):d.createSetAccessorDeclaration(je,Ot,vi,Zn);return Ai.typeParameters=Tn,J_(Ai)&&(Ai.type=ui),ln(Wt(Ai,G),ve)}function Rg(){let G;if(V()===60)return!0;for(;$h(V());){if(G=V(),ez(G))return!0;Ce()}if(V()===42||(X()&&(G=V(),Ce()),V()===23))return!0;if(G!==void 0){if(!c_(G)||G===153||G===139)return!0;switch(V()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return Fc()}}return!1}function jg(G,ve,je){Ya(126);const dt=ck(),ht=ln(Wt(d.createClassStaticBlockDeclaration(dt),G),ve);return ht.modifiers=je,ht}function ck(){const G=mt(),ve=ir();ei(!1),ns(!0);const je=Lg(!1);return ei(G),ns(ve),je}function Oc(){if(ir()&&V()===135){const G=A(),ve=so(p.Expression_expected);Ce();const je=Dl(G,ve,!0);return x0(G,je)}return wp()}function o4(){const G=A();if(!$i(60))return;const ve=yt(Oc);return Wt(d.createDecorator(ve),G)}function rp(G,ve,je){const dt=A(),ht=V();if(V()===87&&ve){if(!ci(li))return}else{if(je&&V()===126&&pi(jy))return;if(G&&V()===126)return;if(!gl())return}return Wt(F(ht),dt)}function Qm(G,ve,je){const dt=A();let ht,Ot,Tn,vi=!1,ui=!1,Zn=!1;if(G&&V()===60)for(;Ot=o4();)ht=_r(ht,Ot);for(;Tn=rp(vi,ve,je);)Tn.kind===126&&(vi=!0),ht=_r(ht,Tn),ui=!0;if(ui&&G&&V()===60)for(;Ot=o4();)ht=_r(ht,Ot),Zn=!0;if(Zn)for(;Tn=rp(vi,ve,je);)Tn.kind===126&&(vi=!0),ht=_r(ht,Tn);return ht&&fs(ht,dt)}function Rf(){let G;if(V()===134){const ve=A();Ce();const je=Wt(F(134),ve);G=fs([je],ve)}return G}function V2(){const G=A(),ve=le();if(V()===27)return Ce(),ln(Wt(d.createSemicolonClassElement(),G),ve);const je=Qm(!0,!0,!0);if(V()===126&&pi(jy))return jg(G,ve,je);if(En(139))return Th(G,ve,je,177,0);if(En(153))return Th(G,ve,je,178,0);if(V()===137||V()===11){const dt=Mg(G,ve,je);if(dt)return dt}if(Gr())return Yr(G,ve,je);if(Au(V())||V()===11||V()===9||V()===42||V()===23)if(ct(je,ok)){for(const ht of je)ht.flags|=33554432;return _a(33554432,()=>nd(G,ve,je))}else return nd(G,ve,je);if(je){const dt=ho(80,!0,p.Declaration_expected);return Mf(G,ve,je,dt,void 0)}return E.fail("Should not have attempted to parse class member declaration.")}function _v(){const G=A(),ve=le(),je=Qm(!0);if(V()===86)return jf(G,ve,je,231);const dt=ho(282,!0,p.Expression_expected);return $E(dt,G),dt.modifiers=je,dt}function lk(){return jf(A(),le(),void 0,231)}function JS(G,ve,je){return jf(G,ve,je,263)}function jf(G,ve,je,dt){const ht=ir();pr(86);const Ot=ao(),Tn=If();ct(je,rx)&&ns(!0);const vi=q2();let ui;pr(19)?(ui=te(),pr(20)):ui=H_(),ns(ht);const Zn=dt===263?d.createClassDeclaration(je,Ot,Tn,vi,ui):d.createClassExpression(je,Ot,Tn,vi,ui);return ln(Wt(Zn,G),ve)}function ao(){return In()&&!U2()?Ml(In()):void 0}function U2(){return V()===119&&pi(cl)}function q2(){if(C())return Is(22,xh)}function xh(){const G=A(),ve=V();E.assert(ve===96||ve===119),Ce();const je=_u(7,Ry);return Wt(d.createHeritageClause(ve,je),G)}function Ry(){const G=A(),ve=wp();if(ve.kind===233)return ve;const je=fv();return Wt(d.createExpressionWithTypeArguments(ve,je),G)}function fv(){return V()===30?f_(20,qc,30,32):void 0}function C(){return V()===96||V()===119}function te(){return Is(5,V2)}function it(G,ve,je){pr(120);const dt=so(),ht=If(),Ot=q2(),Tn=K1(),vi=d.createInterfaceDeclaration(je,dt,ht,Ot,Tn);return ln(Wt(vi,G),ve)}function Ut(G,ve,je){pr(156),t.hasPrecedingLineBreak()&&Yt(p.Line_break_not_permitted_here);const dt=so(),ht=If();pr(64);const Ot=V()===141&&ci(yS)||qc();Ro();const Tn=d.createTypeAliasDeclaration(je,dt,ht,Ot);return ln(Wt(Tn,G),ve)}function vn(){const G=A(),ve=le(),je=Xt(),dt=cr(xd);return ln(Wt(d.createEnumMember(je,dt),G),ve)}function gi(G,ve,je){pr(94);const dt=so();let ht;pr(19)?(ht=B(()=>_u(6,vn)),pr(20)):ht=H_();const Ot=d.createEnumDeclaration(je,dt,ht);return ln(Wt(Ot,G),ve)}function ti(){const G=A();let ve;return pr(19)?(ve=Is(1,w_),pr(20)):ve=H_(),Wt(d.createModuleBlock(ve),G)}function Li(G,ve,je,dt){const ht=dt&32,Ot=dt&8?Zc():so(),Tn=$i(25)?Li(A(),!1,void 0,8|ht):ti(),vi=d.createModuleDeclaration(je,Ot,Tn,dt);return ln(Wt(vi,G),ve)}function Gs(G,ve,je){let dt=0,ht;V()===162?(ht=so(),dt|=2048):(ht=Ln(),ht.text=Pl(ht.text));let Ot;V()===19?Ot=ti():Ro();const Tn=d.createModuleDeclaration(je,ht,Ot,dt);return ln(Wt(Tn,G),ve)}function Cu(G,ve,je){let dt=0;if(V()===162)return Gs(G,ve,je);if($i(145))dt|=32;else if(pr(144),V()===11)return Gs(G,ve,je);return Li(G,ve,je,dt)}function t_(){return V()===149&&pi(np)}function np(){return Ce()===21}function jy(){return Ce()===19}function ni(){return Ce()===44}function Ym(G,ve,je){pr(130),pr(145);const dt=so();Ro();const ht=d.createNamespaceExportDeclaration(dt);return ht.modifiers=je,ln(Wt(ht,G),ve)}function Ar(G,ve,je){pr(102);const dt=t.getTokenFullStart();let ht;is()&&(ht=so());let Ot=!1;if((ht==null?void 0:ht.escapedText)==="type"&&(V()!==161||is()&&pi(RS))&&(is()||Jy())&&(Ot=!0,ht=is()?so():void 0),ht&&!zS())return H2(G,ve,je,ht,Ot);let Tn;(ht||V()===42||V()===19)&&(Tn=um(ht,dt,Ot),pr(161));const vi=WS(),ui=V();let Zn;(ui===118||ui===132)&&!t.hasPrecedingLineBreak()&&(Zn=By(ui)),Ro();const Ai=d.createImportDeclaration(je,Tn,vi,Zn);return ln(Wt(Ai,G),ve)}function uk(){const G=A(),ve=Au(V())?Zc():lc(11);pr(59);const je=Bl(!0);return Wt(d.createImportAttribute(ve,je),G)}function By(G,ve){const je=A();ve||pr(G);const dt=t.getTokenStart();if(pr(19)){const ht=t.hasPrecedingLineBreak(),Ot=_u(24,uk,!0);if(!pr(20)){const Tn=Do(Fe);Tn&&Tn.code===p._0_expected.code&&la(Tn,PC(me,xe,dt,1,p.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return Wt(d.createImportAttributes(Ot,ht,G),je)}else{const ht=fs([],A(),void 0,!1);return Wt(d.createImportAttributes(ht,!1,G),je)}}function Jy(){return V()===42||V()===19}function zS(){return V()===28||V()===161}function H2(G,ve,je,dt,ht){pr(64);const Ot=Zm();Ro();const Tn=d.createImportEqualsDeclaration(je,ht,dt,Ot);return ln(Wt(Tn,G),ve)}function um(G,ve,je){let dt;return(!G||$i(28))&&(dt=V()===42?DR():zy(275)),Wt(d.createImportClause(je,G,dt),ve)}function Zm(){return t_()?c4():Q(!1)}function c4(){const G=A();pr(149),pr(21);const ve=WS();return pr(22),Wt(d.createExternalModuleReference(ve),G)}function WS(){if(V()===11){const G=Ln();return G.text=Pl(G.text),G}else return Me()}function DR(){const G=A();pr(42),pr(130);const ve=so();return Wt(d.createNamespaceImport(ve),G)}function zy(G){const ve=A(),je=G===275?d.createNamedImports(f_(23,nI,19,20)):d.createNamedExports(f_(23,rI,19,20));return Wt(je,ve)}function rI(){const G=le();return ln(pv(281),G)}function nI(){return pv(276)}function pv(G){const ve=A();let je=c_(V())&&!is(),dt=t.getTokenStart(),ht=t.getTokenEnd(),Ot=!1,Tn,vi=!0,ui=Zc();if(ui.escapedText==="type")if(V()===130){const Ba=Zc();if(V()===130){const to=Zc();Au(V())?(Ot=!0,Tn=Ba,ui=Ai(),vi=!1):(Tn=ui,ui=to,vi=!1)}else Au(V())?(Tn=ui,vi=!1,ui=Ai()):(Ot=!0,ui=Ba)}else Au(V())&&(Ot=!0,ui=Ai());vi&&V()===130&&(Tn=ui,pr(130),ui=Ai()),G===276&&je&&W(dt,ht,p.Identifier_expected);const Zn=G===276?d.createImportSpecifier(Ot,Tn,ui):d.createExportSpecifier(Ot,Tn,ui);return Wt(Zn,ve);function Ai(){return je=c_(V())&&!is(),dt=t.getTokenStart(),ht=t.getTokenEnd(),Zc()}}function Pd(G){return Wt(d.createNamespaceExport(Zc()),G)}function wP(G,ve,je){const dt=ir();ns(!0);let ht,Ot,Tn;const vi=$i(156),ui=A();$i(42)?($i(130)&&(ht=Pd(ui)),pr(161),Ot=WS()):(ht=zy(279),(V()===161||V()===11&&!t.hasPrecedingLineBreak())&&(pr(161),Ot=WS()));const Zn=V();Ot&&(Zn===118||Zn===132)&&!t.hasPrecedingLineBreak()&&(Tn=By(Zn)),Ro(),ns(dt);const Ai=d.createExportDeclaration(je,vi,ht,Ot,Tn);return ln(Wt(Ai,G),ve)}function Km(G,ve,je){const dt=ir();ns(!0);let ht;$i(64)?ht=!0:pr(90);const Ot=Bl(!0);Ro(),ns(dt);const Tn=d.createExportAssignment(je,ht,Ot);return ln(Wt(Tn,G),ve)}let _k;(G=>{G[G.SourceElements=0]="SourceElements",G[G.BlockStatements=1]="BlockStatements",G[G.SwitchClauses=2]="SwitchClauses",G[G.SwitchClauseStatements=3]="SwitchClauseStatements",G[G.TypeMembers=4]="TypeMembers",G[G.ClassMembers=5]="ClassMembers",G[G.EnumMembers=6]="EnumMembers",G[G.HeritageClauseElement=7]="HeritageClauseElement",G[G.VariableDeclarations=8]="VariableDeclarations",G[G.ObjectBindingElements=9]="ObjectBindingElements",G[G.ArrayBindingElements=10]="ArrayBindingElements",G[G.ArgumentExpressions=11]="ArgumentExpressions",G[G.ObjectLiteralMembers=12]="ObjectLiteralMembers",G[G.JsxAttributes=13]="JsxAttributes",G[G.JsxChildren=14]="JsxChildren",G[G.ArrayLiteralMembers=15]="ArrayLiteralMembers",G[G.Parameters=16]="Parameters",G[G.JSDocParameters=17]="JSDocParameters",G[G.RestProperties=18]="RestProperties",G[G.TypeParameters=19]="TypeParameters",G[G.TypeArguments=20]="TypeArguments",G[G.TupleElementTypes=21]="TupleElementTypes",G[G.HeritageClauses=22]="HeritageClauses",G[G.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",G[G.ImportAttributes=24]="ImportAttributes",G[G.JSDocComment=25]="JSDocComment",G[G.Count=26]="Count"})(_k||(_k={}));let iI;(G=>{G[G.False=0]="False",G[G.True=1]="True",G[G.Unknown=2]="Unknown"})(iI||(iI={}));let _m;(G=>{function ve(Zn,Ai,Ba){yi("file.js",Zn,99,void 0,1,0),t.setText(Zn,Ai,Ba),at=t.scan();const to=je(),Da=Et("file.js",99,1,!1,[],F(1),0,Ca),ip=UT(Fe,Da);return $e&&(Da.jsDocDiagnostics=UT($e,Da)),os(),to?{jsDocTypeExpression:to,diagnostics:ip}:void 0}G.parseJSDocTypeExpressionForTests=ve;function je(Zn){const Ai=A(),Ba=(Zn?$i:pr)(19),to=_a(16777216,Zp);(!Zn||Ba)&&qo(20);const Da=d.createJSDocTypeExpression(to);return Ue(Da),Wt(Da,Ai)}G.parseJSDocTypeExpression=je;function dt(){const Zn=A(),Ai=$i(19),Ba=A();let to=Q(!1);for(;V()===81;)fi(),_t(),to=Wt(d.createJSDocMemberName(to,so()),Ba);Ai&&qo(20);const Da=d.createJSDocNameReference(to);return Ue(Da),Wt(Da,Zn)}G.parseJSDocNameReference=dt;function ht(Zn,Ai,Ba){yi("",Zn,99,void 0,1,0);const to=_a(16777216,()=>ui(Ai,Ba)),ip=UT(Fe,{languageVariant:0,text:Zn});return os(),to?{jsDoc:to,diagnostics:ip}:void 0}G.parseIsolatedJSDocComment=ht;function Ot(Zn,Ai,Ba){const to=at,Da=Fe.length,ip=jt,fm=_a(16777216,()=>ui(Ai,Ba));return ba(fm,Zn),Lr&524288&&($e||($e=[]),Nn($e,Fe,Da)),at=to,Fe.length=Da,jt=ip,fm}G.parseJSDocComment=Ot;let Tn;(Zn=>{Zn[Zn.BeginningOfLine=0]="BeginningOfLine",Zn[Zn.SawAsterisk=1]="SawAsterisk",Zn[Zn.SavingComments=2]="SavingComments",Zn[Zn.SavingBackticks=3]="SavingBackticks"})(Tn||(Tn={}));let vi;(Zn=>{Zn[Zn.Property=1]="Property",Zn[Zn.Parameter=2]="Parameter",Zn[Zn.CallbackParameter=4]="CallbackParameter"})(vi||(vi={}));function ui(Zn=0,Ai){const Ba=xe,to=Ai===void 0?Ba.length:Zn+Ai;if(Ai=to-Zn,E.assert(Zn>=0),E.assert(Zn<=to),E.assert(to<=Ba.length),!ZV(Ba,Zn))return;let Da,ip,fm,Bg,kh,Ch=[];const Wy=[],A_=Vt;Vt|=1<<25;const VS=t.scanRange(Zn+3,Ai-5,l4);return Vt=A_,VS;function l4(){let gr=1,kn,hn=Zn-(Ba.lastIndexOf(` +`,Zn)+1)+4;function bi(Za){kn||(kn=hn),Ch.push(Za),hn+=Za.length}for(_t();C0(5););C0(4)&&(gr=0,hn=0);e:for(;;){switch(V()){case 60:NP(Ch),kh||(kh=A()),FP(u4(hn)),gr=0,kn=void 0;break;case 4:Ch.push(t.getTokenText()),gr=0,hn=0;break;case 42:const Za=t.getTokenText();gr===1?(gr=2,bi(Za)):(E.assert(gr===0),gr=1,hn+=Za.length);break;case 5:E.assert(gr!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");const Eu=t.getTokenText();kn!==void 0&&hn+Eu.length>kn&&Ch.push(Eu.slice(kn-hn)),hn+=Eu.length;break;case 1:break e;case 82:gr=2,bi(t.getTokenValue());break;case 19:gr=2;const eg=t.getTokenFullStart(),Y_=t.getTokenEnd()-1,wd=Lc(Y_);if(wd){Bg||AP(Ch),Wy.push(Wt(d.createJSDocText(Ch.join("")),Bg??Zn,eg)),Wy.push(wd),Ch=[],Bg=t.getTokenEnd();break}default:gr=2,bi(t.getTokenText());break}gr===2?Tt(!1):_t()}const di=Ch.join("").trimEnd();Wy.length&&di.length&&Wy.push(Wt(d.createJSDocText(di),Bg??Zn,kh)),Wy.length&&Da&&E.assertIsDefined(kh,"having parsed tags implies that the end of the comment span should be set");const Ia=Da&&fs(Da,ip,fm);return Wt(d.createJSDocComment(Wy.length?fs(Wy,Zn,kh):di.length?di:void 0,Ia),Zn,to)}function AP(gr){for(;gr.length&&(gr[0]===` +`||gr[0]==="\r");)gr.shift()}function NP(gr){for(;gr.length;){const kn=gr[gr.length-1].trimEnd();if(kn==="")gr.pop();else if(kn.lengthEu&&(bi.push(Ph.slice(Eu-gr)),Za=2),gr+=Ph.length;break;case 19:Za=2;const Z_=t.getTokenFullStart(),p4=t.getTokenEnd()-1,sI=Lc(p4);sI?(di.push(Wt(d.createJSDocText(bi.join("")),Ia??hn,Z_)),di.push(sI),bi=[],Ia=t.getTokenEnd()):eg(t.getTokenText());break;case 62:Za===3?Za=2:Za=3,eg(t.getTokenText());break;case 82:Za!==3&&(Za=2),eg(t.getTokenValue());break;case 42:if(Za===0){Za=1,gr+=1;break}default:Za!==3&&(Za=2),eg(t.getTokenText());break}Za===2||Za===3?Y_=Tt(Za===3):Y_=_t()}AP(bi);const wd=bi.join("").trimEnd();if(di.length)return wd.length&&di.push(Wt(d.createJSDocText(wd),Ia??hn)),fs(di,hn,t.getTokenEnd());if(wd.length)return wd}function Lc(gr){const kn=ci(fk);if(!kn)return;_t(),Eh();const hn=mv(),bi=[];for(;V()!==20&&V()!==4&&V()!==1;)bi.push(t.getTokenText()),_t();const di=kn==="link"?d.createJSDocLink:kn==="linkcode"?d.createJSDocLinkCode:d.createJSDocLinkPlain;return Wt(di(hn,bi.join("")),gr,t.getTokenEnd())}function mv(){if(Au(V())){const gr=A();let kn=Zc();for(;$i(25);)kn=Wt(d.createQualifiedName(kn,V()===81?ho(80,!1):so()),gr);for(;V()===81;)fi(),_t(),kn=Wt(d.createJSDocMemberName(kn,so()),gr);return kn}}function fk(){if(Vy(),V()===19&&_t()===60&&Au(_t())){const gr=t.getTokenValue();if(IP(gr))return gr}}function IP(gr){return gr==="link"||gr==="linkcode"||gr==="linkplain"}function Uy(gr,kn,hn,bi){return Wt(d.createJSDocUnknownTag(kn,df(gr,A(),hn,bi)),gr)}function FP(gr){gr&&(Da?Da.push(gr):(Da=[gr],ip=gr.pos),fm=gr.end)}function Vr(){return Vy(),V()===19?je():void 0}function v(){const gr=C0(23);gr&&Eh();const kn=C0(62),hn=f4();return kn&&oa(62),gr&&(Eh(),zs(64)&&Me(),pr(24)),{name:hn,isBracketed:gr}}function D(gr){switch(gr.kind){case 151:return!0;case 188:return D(gr.elementType);default:return Gf(gr)&&Ie(gr.typeName)&&gr.typeName.escapedText==="Object"&&!gr.typeArguments}}function M(gr,kn,hn,bi){let di=Vr(),Ia=!di;Vy();const{name:Za,isBracketed:Eu}=v(),eg=Vy();Ia&&!pi(fk)&&(di=Vr());const Y_=df(gr,A(),bi,eg),wd=ie(di,Za,hn,bi);wd&&(di=wd,Ia=!0);const Ph=hn===1?d.createJSDocPropertyTag(kn,Za,Eu,di,Ia,Y_):d.createJSDocParameterTag(kn,Za,Eu,di,Ia,Y_);return Wt(Ph,gr)}function ie(gr,kn,hn,bi){if(gr&&D(gr.type)){const di=A();let Ia,Za;for(;Ia=ci(()=>NR(hn,bi,kn));)Ia.kind===348||Ia.kind===355?Za=_r(Za,Ia):Ia.kind===352&&Pe(Ia.tagName,p.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(Za){const Eu=Wt(d.createJSDocTypeLiteral(Za,gr.type.kind===188),di);return Wt(d.createJSDocTypeExpression(Eu),di)}}}function ze(gr,kn,hn,bi){ct(Da,DO)&&W(kn.pos,t.getTokenStart(),p._0_tag_already_specified,xi(kn.escapedText));const di=Vr();return Wt(d.createJSDocReturnTag(kn,di,df(gr,A(),hn,bi)),gr)}function Lt(gr,kn,hn,bi){ct(Da,v3)&&W(kn.pos,t.getTokenStart(),p._0_tag_already_specified,xi(kn.escapedText));const di=je(!0),Ia=hn!==void 0&&bi!==void 0?df(gr,A(),hn,bi):void 0;return Wt(d.createJSDocTypeTag(kn,di,Ia),gr)}function nn(gr,kn,hn,bi){const Ia=V()===23||pi(()=>_t()===60&&Au(_t())&&IP(t.getTokenValue()))?void 0:dt(),Za=hn!==void 0&&bi!==void 0?df(gr,A(),hn,bi):void 0;return Wt(d.createJSDocSeeTag(kn,Ia,Za),gr)}function Mi(gr,kn,hn,bi){const di=Vr(),Ia=df(gr,A(),hn,bi);return Wt(d.createJSDocThrowsTag(kn,di,Ia),gr)}function bo(gr,kn,hn,bi){const di=A(),Ia=Dd();let Za=t.getTokenFullStart();const Eu=df(gr,Za,hn,bi);Eu||(Za=t.getTokenFullStart());const eg=typeof Eu!="string"?fs(es([Wt(Ia,di,Za)],Eu),di):Ia.text+Eu;return Wt(d.createJSDocAuthorTag(kn,eg),gr)}function Dd(){const gr=[];let kn=!1,hn=t.getToken();for(;hn!==1&&hn!==4;){if(hn===30)kn=!0;else{if(hn===60&&!kn)break;if(hn===32&&kn){gr.push(t.getTokenText()),t.resetTokenState(t.getTokenEnd());break}}gr.push(t.getTokenText()),hn=_t()}return d.createJSDocText(gr.join(""))}function qy(gr,kn,hn,bi){const di=IY();return Wt(d.createJSDocImplementsTag(kn,di,df(gr,A(),hn,bi)),gr)}function id(gr,kn,hn,bi){const di=IY();return Wt(d.createJSDocAugmentsTag(kn,di,df(gr,A(),hn,bi)),gr)}function gv(gr,kn,hn,bi){const di=je(!1),Ia=hn!==void 0&&bi!==void 0?df(gr,A(),hn,bi):void 0;return Wt(d.createJSDocSatisfiesTag(kn,di,Ia),gr)}function IY(){const gr=$i(19),kn=A(),hn=wde();t.setInJSDocType(!0);const bi=fv();t.setInJSDocType(!1);const di=d.createExpressionWithTypeArguments(hn,bi),Ia=Wt(di,kn);return gr&&pr(20),Ia}function wde(){const gr=A();let kn=yv();for(;$i(25);){const hn=yv();kn=Wt($(kn,hn),gr)}return kn}function hv(gr,kn,hn,bi,di){return Wt(kn(hn,df(gr,A(),bi,di)),gr)}function wR(gr,kn,hn,bi){const di=je(!0);return Eh(),Wt(d.createJSDocThisTag(kn,di,df(gr,A(),hn,bi)),gr)}function FY(gr,kn,hn,bi){const di=je(!0);return Eh(),Wt(d.createJSDocEnumTag(kn,di,df(gr,A(),hn,bi)),gr)}function OP(gr,kn,hn,bi){let di=Vr();Vy();const Ia=AR();Eh();let Za=ya(hn),Eu;if(!di||D(di.type)){let Y_,wd,Ph,Z_=!1;for(;(Y_=ci(()=>MY(hn)))&&Y_.kind!==352;)if(Z_=!0,Y_.kind===351)if(wd){const p4=Yt(p.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);p4&&la(p4,PC(me,xe,0,0,p.The_tag_was_first_specified_here));break}else wd=Y_;else Ph=_r(Ph,Y_);if(Z_){const p4=di&&di.type.kind===188,sI=d.createJSDocTypeLiteral(Ph,p4);di=wd&&wd.typeExpression&&!D(wd.typeExpression.type)?wd.typeExpression:Wt(sI,gr),Eu=di.end}}Eu=Eu||Za!==void 0?A():(Ia??di??kn).end,Za||(Za=df(gr,Eu,hn,bi));const eg=d.createJSDocTypedefTag(kn,di,Ia,Za);return Wt(eg,gr,Eu)}function AR(gr){const kn=t.getTokenStart();if(!Au(V()))return;const hn=yv();if($i(25)){const bi=AR(!0),di=d.createModuleDeclaration(void 0,hn,bi,gr?8:void 0);return Wt(di,kn)}return gr&&(hn.flags|=4096),hn}function OY(gr){const kn=A();let hn,bi;for(;hn=ci(()=>NR(4,gr));){if(hn.kind===352){Pe(hn.tagName,p.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}bi=_r(bi,hn)}return fs(bi||[],kn)}function LY(gr,kn){const hn=OY(kn),bi=ci(()=>{if(C0(60)){const di=u4(kn);if(di&&di.kind===349)return di}});return Wt(d.createJSDocSignature(void 0,hn,bi),gr)}function Ade(gr,kn,hn,bi){const di=AR();Eh();let Ia=ya(hn);const Za=LY(gr,hn);Ia||(Ia=df(gr,A(),hn,bi));const Eu=Ia!==void 0?A():Za.end;return Wt(d.createJSDocCallbackTag(kn,Za,di,Ia),gr,Eu)}function Nde(gr,kn,hn,bi){Eh();let di=ya(hn);const Ia=LY(gr,hn);di||(di=df(gr,A(),hn,bi));const Za=di!==void 0?A():Ia.end;return Wt(d.createJSDocOverloadTag(kn,Ia,di),gr,Za)}function _4(gr,kn){for(;!Ie(gr)||!Ie(kn);)if(!Ie(gr)&&!Ie(kn)&&gr.right.escapedText===kn.right.escapedText)gr=gr.left,kn=kn.left;else return!1;return gr.escapedText===kn.escapedText}function MY(gr){return NR(1,gr)}function NR(gr,kn,hn){let bi=!0,di=!1;for(;;)switch(_t()){case 60:if(bi){const Ia=G2(gr,kn);return Ia&&(Ia.kind===348||Ia.kind===355)&&hn&&(Ie(Ia.name)||!_4(hn,Ia.name.left))?!1:Ia}di=!1;break;case 4:bi=!0,di=!1;break;case 42:di&&(bi=!1),di=!0;break;case 80:bi=!1;break;case 1:return!1}}function G2(gr,kn){E.assert(V()===60);const hn=t.getTokenFullStart();_t();const bi=yv(),di=Vy();let Ia;switch(bi.escapedText){case"type":return gr===1&&Lt(hn,bi);case"prop":case"property":Ia=1;break;case"arg":case"argument":case"param":Ia=6;break;case"template":return Gy(hn,bi,kn,di);case"this":return wR(hn,bi,kn,di);default:return!1}return gr&Ia?M(hn,bi,gr,kn):!1}function Xr(){const gr=A(),kn=C0(23);kn&&Eh();const hn=Qm(!1,!0),bi=yv(p.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);let di;if(kn&&(Eh(),pr(64),di=_a(16777216,Zp),pr(24)),!_c(bi))return Wt(d.createTypeParameterDeclaration(hn,bi,void 0,di),gr)}function Hy(){const gr=A(),kn=[];do{Eh();const hn=Xr();hn!==void 0&&kn.push(hn),Vy()}while(C0(28));return fs(kn,gr)}function Gy(gr,kn,hn,bi){const di=V()===19?je():void 0,Ia=Hy();return Wt(d.createJSDocTemplateTag(kn,di,Ia,df(gr,A(),hn,bi)),gr)}function C0(gr){return V()===gr?(_t(),!0):!1}function f4(){let gr=yv();for($i(23)&&pr(24);$i(25);){const kn=yv();$i(23)&&pr(24),gr=Ye(gr,kn)}return gr}function yv(gr){if(!Au(V()))return ho(80,!gr,gr||p.Identifier_expected);zt++;const kn=t.getTokenStart(),hn=t.getTokenEnd(),bi=V(),di=Pl(t.getTokenValue()),Ia=Wt(w(di,bi),kn,hn);return _t(),Ia}}})(_m=e.JSDocParser||(e.JSDocParser={}))})(J1||(J1={})),(e=>{function t(T,k,w,P){if(P=P||E.shouldAssert(2),d(T,k,w,P),Nee(w))return T;if(T.statements.length===0)return J1.parseSourceFile(T.fileName,k,T.languageVersion,void 0,!0,T.scriptKind,T.setExternalModuleIndicator,T.jsDocParsingMode);const F=T;E.assert(!F.hasBeenIncrementallyParsed),F.hasBeenIncrementallyParsed=!0,J1.fixupParentReferences(F);const J=T.text,U=y(T),$=f(T,w);d(T,k,$,P),E.assert($.span.start<=w.span.start),E.assert(bc($.span)===bc(w.span)),E.assert(bc(tE($))===bc(tE(w)));const j=tE($).length-$.span.length;u(F,$.span.start,bc($.span),bc(tE($)),j,J,k,P);const re=J1.parseSourceFile(T.fileName,k,T.languageVersion,U,!0,T.scriptKind,T.setExternalModuleIndicator,T.jsDocParsingMode);return re.commentDirectives=n(T.commentDirectives,re.commentDirectives,$.span.start,bc($.span),j,J,k,P),re.impliedNodeFormat=T.impliedNodeFormat,re}e.updateSourceFile=t;function n(T,k,w,P,F,J,U,$){if(!T)return k;let j,re=!1;for(const Y of T){const{range:ue,type:pe}=Y;if(ue.endP){R();const H={range:{pos:ue.pos+F,end:ue.end+F},type:pe};j=_r(j,H),$&&E.assert(J.substring(ue.pos,ue.end)===U.substring(H.range.pos,H.range.end))}}return R(),j;function R(){re||(re=!0,j?k&&j.push(...k):j=k)}}function i(T,k,w,P,F,J){k?$(T):U(T);return;function U(j){let re="";if(J&&s(j)&&(re=P.substring(j.pos,j.end)),j._children&&(j._children=void 0),Fm(j,j.pos+w,j.end+w),J&&s(j)&&E.assert(re===F.substring(j.pos,j.end)),Ss(j,U,$),sf(j))for(const R of j.jsDoc)U(R);c(j,J)}function $(j){j._children=void 0,Fm(j,j.pos+w,j.end+w);for(const re of j)U(re)}}function s(T){switch(T.kind){case 11:case 9:case 80:return!0}return!1}function o(T,k,w,P,F){E.assert(T.end>=k,"Adjusting an element that was entirely before the change range"),E.assert(T.pos<=w,"Adjusting an element that was entirely after the change range"),E.assert(T.pos<=T.end);const J=Math.min(T.pos,P),U=T.end>=w?T.end+F:Math.min(T.end,P);E.assert(J<=U),T.parent&&(E.assertGreaterThanOrEqual(J,T.parent.pos),E.assertLessThanOrEqual(U,T.parent.end)),Fm(T,J,U)}function c(T,k){if(k){let w=T.pos;const P=F=>{E.assert(F.pos>=w),w=F.end};if(sf(T))for(const F of T.jsDoc)P(F);Ss(T,P),E.assert(w<=T.end)}}function u(T,k,w,P,F,J,U,$){j(T);return;function j(R){if(E.assert(R.pos<=R.end),R.pos>w){i(R,!1,F,J,U,$);return}const Y=R.end;if(Y>=k){if(R.intersectsChange=!0,R._children=void 0,o(R,k,w,P,F),Ss(R,j,re),sf(R))for(const ue of R.jsDoc)j(ue);c(R,$);return}E.assert(Yw){i(R,!0,F,J,U,$);return}const Y=R.end;if(Y>=k){R.intersectsChange=!0,R._children=void 0,o(R,k,w,P,F);for(const ue of R)j(ue);return}E.assert(Y0&&U<=1;U++){const $=g(T,P);E.assert($.pos<=P);const j=$.pos;P=Math.max(0,j-1)}const F=Rc(P,bc(k.span)),J=k.newLength+(k.span.start-P);return VD(F,J)}function g(T,k){let w=T,P;if(Ss(T,J),P){const U=F(P);U.pos>w.pos&&(w=U)}return w;function F(U){for(;;){const $=kW(U);if($)U=$;else return U}}function J(U){if(!_c(U))if(U.pos<=k){if(U.pos>=w.pos&&(w=U),kk),!0}}function d(T,k,w,P){const F=T.text;if(w&&(E.assert(F.length-w.span.length+w.newLength===k.length),P||E.shouldAssert(3))){const J=F.substr(0,w.span.start),U=k.substr(0,w.span.start);E.assert(J===U);const $=F.substring(bc(w.span),F.length),j=k.substring(bc(tE(w)),k.length);E.assert($===j)}}function y(T){let k=T.statements,w=0;E.assert(w=re.pos&&U=re.pos&&U{T[T.Value=-1]="Value"})(S||(S={}))})(iU||(iU={})),sU=new Map,Bve=/^\/\/\/\s*<(\S+)\s.*?\/>/im,Jve=/^\/\/\/?\s*@([^\s:]+)(.*)\s*$/im}});function JO(e){const t=new Map,n=new Map;return rr(e,i=>{t.set(i.name.toLowerCase(),i),i.shortName&&n.set(i.shortName,i.name)}),{optionsNameMap:t,shortOptionNames:n}}function YC(){return k2e||(k2e=JO(Pg))}function jie(e){return zve(e,gc)}function zve(e,t){const n=gs(e.type.keys()),i=(e.deprecatedKeys?n.filter(s=>!e.deprecatedKeys.has(s)):n).map(s=>`'${s}'`).join(", ");return t(p.Argument_for_0_option_must_be_Colon_1,`--${e.name}`,i)}function zO(e,t,n){return v2e(e,(t??"").trim(),n)}function Bie(e,t="",n){if(t=t.trim(),Vi(t,"-"))return;if(e.type==="listOrElement"&&!t.includes(","))return yx(e,t,n);if(t==="")return[];const i=t.split(",");switch(e.element.type){case"number":return Ri(i,s=>yx(e.element,parseInt(s),n));case"string":return Ri(i,s=>yx(e.element,s||"",n));case"boolean":case"object":return E.fail(`List of ${e.element.type} is not yet supported.`);default:return Ri(i,s=>zO(e.element,s,n))}}function Wve(e){return e.name}function Jie(e,t,n,i,s){var o;if((o=t.alternateMode)!=null&&o.getOptionsNameMap().optionsNameMap.has(e.toLowerCase()))return z1(s,i,t.alternateMode.diagnostic,e);const c=U4(e,t.optionDeclarations,Wve);return c?z1(s,i,t.unknownDidYouMeanDiagnostic,n||e,c.name):z1(s,i,t.unknownOptionDiagnostic,n||e)}function aU(e,t,n){const i={};let s;const o=[],c=[];return u(t),{options:i,watchOptions:s,fileNames:o,errors:c};function u(g){let d=0;for(;dzl.readFile(T)));if(!ls(d)){c.push(d);return}const y=[];let S=0;for(;;){for(;S=d.length)break;const T=S;if(d.charCodeAt(T)===34){for(S++;S32;)S++;y.push(d.substring(T,S))}}u(y)}}function Vve(e,t,n,i,s,o){if(i.isTSConfigOnly){const c=e[t];c==="null"?(s[i.name]=void 0,t++):i.type==="boolean"?c==="false"?(s[i.name]=yx(i,!1,o),t++):(c==="true"&&t++,o.push(gc(p.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(o.push(gc(p.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,i.name)),c&&!Vi(c,"-")&&t++)}else if(!e[t]&&i.type!=="boolean"&&o.push(gc(n.optionTypeMismatchDiagnostic,i.name,uU(i))),e[t]!=="null")switch(i.type){case"number":s[i.name]=yx(i,parseInt(e[t]),o),t++;break;case"boolean":const c=e[t];s[i.name]=yx(i,c!=="false",o),(c==="false"||c==="true")&&t++;break;case"string":s[i.name]=yx(i,e[t]||"",o),t++;break;case"list":const u=Bie(i,e[t],o);s[i.name]=u||[],u&&t++;break;case"listOrElement":E.fail("listOrElement not supported here");break;default:s[i.name]=zO(i,e[t],o),t++;break}else s[i.name]=void 0,t++;return t}function Uve(e,t){return aU(nA,e,t)}function oU(e,t){return zie(YC,e,t)}function zie(e,t,n=!1){t=t.toLowerCase();const{optionsNameMap:i,shortOptionNames:s}=e();if(n){const o=s.get(t);o!==void 0&&(t=o)}return i.get(t)}function qve(){return E2e||(E2e=JO(XO))}function Hve(e){const{options:t,watchOptions:n,fileNames:i,errors:s}=aU(D2e,e),o=t;return i.length===0&&i.push("."),o.clean&&o.force&&s.push(gc(p.Options_0_and_1_cannot_be_combined,"clean","force")),o.clean&&o.verbose&&s.push(gc(p.Options_0_and_1_cannot_be_combined,"clean","verbose")),o.clean&&o.watch&&s.push(gc(p.Options_0_and_1_cannot_be_combined,"clean","watch")),o.watch&&o.dry&&s.push(gc(p.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:o,watchOptions:n,projects:i,errors:s}}function Gve(e,...t){return Ls(gc(e,...t).messageText,ls)}function Gw(e,t,n,i,s,o){const c=k3(e,g=>n.readFile(g));if(!ls(c)){n.onUnRecoverableConfigFileDiagnostic(c);return}const u=Hw(e,c),f=n.getCurrentDirectory();return u.path=Io(e,f,nu(n.useCaseSensitiveFileNames)),u.resolvedPath=u.path,u.originalFileName=u.fileName,Qw(u,n,Xi(Un(e),f),t,Xi(e,f),void 0,o,i,s)}function $w(e,t){const n=k3(e,t);return ls(n)?cU(e,n):{config:{},error:n}}function cU(e,t){const n=Hw(e,t);return{config:Zve(n,n.parseDiagnostics,void 0),error:n.parseDiagnostics.length?n.parseDiagnostics[0]:void 0}}function Wie(e,t){const n=k3(e,t);return ls(n)?Hw(e,n):{fileName:e,parseDiagnostics:[n]}}function k3(e,t){let n;try{n=t(e)}catch(i){return gc(p.Cannot_read_file_0_Colon_1,e,i.message)}return n===void 0?gc(p.Cannot_read_file_0,e):n}function lU(e){return Iv(e,Wve)}function $ve(){return w2e||(w2e=JO(ZC))}function Xve(){return A2e||(A2e=lU(Pg))}function Qve(){return N2e||(N2e=lU(ZC))}function Yve(){return I2e||(I2e=lU(rA))}function I9e(){return nse===void 0&&(nse={name:void 0,type:"object",elementOptions:lU([ese,tse,rse,iA,{name:"references",type:"list",element:{name:"references",type:"object"},category:p.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:p.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:p.File_Management,defaultValueDescription:p.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:p.File_Management,defaultValueDescription:p.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},Zw])}),nse}function Zve(e,t,n){var i;const s=(i=e.statements[0])==null?void 0:i.expression;if(s&&s.kind!==210){if(t.push(dp(e,s,p.The_root_value_of_a_0_file_must_be_an_object,wc(e.fileName)==="jsconfig.json"?"jsconfig.json":"tsconfig.json")),ju(s)){const o=wn(s.elements,ua);if(o)return Xw(e,o,t,!0,n)}return{}}return Xw(e,s,t,!0,n)}function Vie(e,t){var n;return Xw(e,(n=e.statements[0])==null?void 0:n.expression,t,!0,void 0)}function Xw(e,t,n,i,s){if(!t)return i?{}:void 0;return u(t,s==null?void 0:s.rootOptions);function o(g,d){var y;const S=i?{}:void 0;for(const T of g.properties){if(T.kind!==303){n.push(dp(e,T,p.Property_assignment_expected));continue}T.questionToken&&n.push(dp(e,T.questionToken,p.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),f(T.name)||n.push(dp(e,T.name,p.String_literal_with_double_quotes_expected));const k=_8(T.name)?void 0:Kk(T.name),w=k&&xi(k),P=w?(y=d==null?void 0:d.elementOptions)==null?void 0:y.get(w):void 0,F=u(T.initializer,P);typeof w<"u"&&(i&&(S[w]=F),s==null||s.onPropertySet(w,F,T,d,P))}return S}function c(g,d){if(!i){g.forEach(y=>u(y,d));return}return An(g.map(y=>u(y,d)),y=>y!==void 0)}function u(g,d){switch(g.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return f(g)||n.push(dp(e,g,p.String_literal_with_double_quotes_expected)),g.text;case 9:return Number(g.text);case 224:if(g.operator!==41||g.operand.kind!==9)break;return-Number(g.operand.text);case 210:return o(g,d);case 209:return c(g.elements,d&&d.element)}d?n.push(dp(e,g,p.Compiler_option_0_requires_a_value_of_type_1,d.name,uU(d))):n.push(dp(e,g,p.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function f(g){return aa(g)&&A5(g,e)}}function uU(e){return e.type==="listOrElement"?`${uU(e.element)} or Array`:e.type==="list"?"Array":ls(e.type)?e.type:"string"}function Kve(e,t){if(e){if(Yw(t))return!e.disallowNullOrUndefined;if(e.type==="list")return ts(t);if(e.type==="listOrElement")return ts(t)||Kve(e.element,t);const n=ls(e.type)?e.type:"string";return typeof t===n}return!1}function e2e(e,t,n){var i,s,o;const c=nu(n.useCaseSensitiveFileNames),u=nr(An(e.fileNames,(s=(i=e.options.configFile)==null?void 0:i.configFileSpecs)!=null&&s.validatedIncludeSpecs?O9e(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,n):Wh),k=>ID(Xi(t,n.getCurrentDirectory()),Xi(k,n.getCurrentDirectory()),c)),f={configFilePath:Xi(t,n.getCurrentDirectory()),useCaseSensitiveFileNames:n.useCaseSensitiveFileNames},g=VO(e.options,f),d=e.watchOptions&&L9e(e.watchOptions),y={compilerOptions:{...WO(g),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:d&&WO(d),references:nr(e.projectReferences,k=>({...k,path:k.originalPath?k.originalPath:"",originalPath:void 0})),files:mr(u)?u:void 0,...(o=e.options.configFile)!=null&&o.configFileSpecs?{include:F9e(e.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:e.compileOnSave?!0:void 0},S=new Set(g.keys()),T={};for(const k in Jc)if(!S.has(k)&&ct(Jc[k].dependencies,w=>S.has(w))){const w=Jc[k].computeValue(e.options),P=Jc[k].computeValue({});w!==P&&(T[k]=Jc[k].computeValue(e.options))}return wk(y.compilerOptions,WO(VO(T,f))),y}function WO(e){return{...gs(e.entries()).reduce((t,n)=>({...t,[n[0]]:n[1]}),{})}}function F9e(e){if(mr(e)){if(mr(e)!==1)return e;if(e[0]!==ZO)return e}}function O9e(e,t,n,i){if(!t)return Wh;const s=mF(e,n,t,i.useCaseSensitiveFileNames,i.getCurrentDirectory()),o=s.excludePattern&&iy(s.excludePattern,i.useCaseSensitiveFileNames),c=s.includeFilePattern&&iy(s.includeFilePattern,i.useCaseSensitiveFileNames);return c?o?u=>!(c.test(u)&&!o.test(u)):u=>!c.test(u):o?u=>o.test(u):Wh}function t2e(e){switch(e.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return t2e(e.element);default:return e.type}}function _U(e,t){return fl(t,(n,i)=>{if(n===e)return i})}function VO(e,t){return r2e(e,YC(),t)}function L9e(e){return r2e(e,$ve())}function r2e(e,{optionsNameMap:t},n){const i=new Map,s=n&&nu(n.useCaseSensitiveFileNames);for(const o in e)if(Ka(e,o)){if(t.has(o)&&(t.get(o).category===p.Command_line_Options||t.get(o).category===p.Output_Formatting))continue;const c=e[o],u=t.get(o.toLowerCase());if(u){E.assert(u.type!=="listOrElement");const f=t2e(u);f?u.type==="list"?i.set(o,c.map(g=>_U(g,f))):i.set(o,_U(c,f)):n&&u.isFilePath?i.set(o,ID(n.configFilePath,Xi(c,Un(n.configFilePath)),s)):i.set(o,c)}}return i}function n2e(e,t){const n=i2e(e);return s();function i(o){return Array(o+1).join(" ")}function s(){const o=[],c=i(2);return gU.forEach(u=>{if(!n.has(u.name))return;const f=n.get(u.name),g=Qie(u);f!==g?o.push(`${c}${u.name}: ${f}`):Ka(QO,u.name)&&o.push(`${c}${u.name}: ${g}`)}),o.join(t)+t}}function i2e(e){const t=e7(e,QO);return VO(t)}function s2e(e,t,n){const i=i2e(e);return c();function s(u){return Array(u+1).join(" ")}function o({category:u,name:f,isCommandLineOnly:g}){const d=[p.Command_line_Options,p.Editor_Support,p.Compiler_Diagnostics,p.Backwards_Compatibility,p.Watch_and_Build_Modes,p.Output_Formatting];return!g&&u!==void 0&&(!d.includes(u)||i.has(f))}function c(){const u=new Map;u.set(p.Projects,[]),u.set(p.Language_and_Environment,[]),u.set(p.Modules,[]),u.set(p.JavaScript_Support,[]),u.set(p.Emit,[]),u.set(p.Interop_Constraints,[]),u.set(p.Type_Checking,[]),u.set(p.Completeness,[]);for(const T of Pg)if(o(T)){let k=u.get(T.category);k||u.set(T.category,k=[]),k.push(T)}let f=0,g=0;const d=[];u.forEach((T,k)=>{d.length!==0&&d.push({value:""}),d.push({value:`/* ${ds(k)} */`});for(const w of T){let P;i.has(w.name)?P=`"${w.name}": ${JSON.stringify(i.get(w.name))}${(g+=1)===i.size?"":","}`:P=`// "${w.name}": ${JSON.stringify(Qie(w))},`,d.push({value:P,description:`/* ${w.description&&ds(w.description)||w.name} */`}),f=Math.max(P.length,f)}});const y=s(2),S=[];S.push("{"),S.push(`${y}"compilerOptions": {`),S.push(`${y}${y}/* ${ds(p.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`),S.push("");for(const T of d){const{value:k,description:w=""}=T;S.push(k&&`${y}${y}${k}${w&&s(f-k.length+2)+w}`)}if(t.length){S.push(`${y}},`),S.push(`${y}"files": [`);for(let T=0;Ttypeof ae=="object","object"),ue=$(j("files"));if(ue){const ae=Y==="no-prop"||ts(Y)&&Y.length===0,K=Ka(S,"extends");if(ue.length===0&&ae&&!K)if(t){const fe=c||"tsconfig.json",ke=p.The_files_list_in_config_file_0_is_empty,Oe=g8(t,"files",be=>be.initializer),me=z1(t,Oe,ke,fe);d.push(me)}else R(p.The_files_list_in_config_file_0_is_empty,c||"tsconfig.json")}let pe=$(j("include"));const H=j("exclude");let q=!1,ee=$(H);if(H==="no-prop"&&S.compilerOptions){const ae=S.compilerOptions.outDir,K=S.compilerOptions.declarationDir;(ae||K)&&(ee=[ae,K].filter(fe=>!!fe))}ue===void 0&&pe===void 0&&(pe=[ZO],q=!0);let oe,Se;return pe&&(oe=x2e(pe,d,!0,t,"include")),ee&&(Se=x2e(ee,d,!1,t,"exclude")),{filesSpecs:ue,includeSpecs:pe,excludeSpecs:ee,validatedFilesSpec:An(ue,ls),validatedIncludeSpecs:oe,validatedExcludeSpecs:Se,pathPatterns:void 0,isDefaultIncludeSpec:q}}function J(Y){const ue=E3(w,Y,T,n,f);return u2e(ue,C3(S),u)&&d.push(l2e(w,c)),ue}function U(Y){let ue;const pe=re("references",H=>typeof H=="object","object");if(ts(pe))for(const H of pe)typeof H.path!="string"?R(p.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(ue||(ue=[])).push({path:Xi(H.path,Y),originalPath:H.path,prepend:H.prepend,circular:H.circular});return ue}function $(Y){return ts(Y)?Y:void 0}function j(Y){return re(Y,ls,"string")}function re(Y,ue,pe){if(Ka(S,Y)&&!Yw(S[Y]))if(ts(S[Y])){const H=S[Y];return!t&&!Wi(H,ue)&&d.push(gc(p.Compiler_option_0_requires_a_value_of_type_1,Y,pe)),H}else return R(p.Compiler_option_0_requires_a_value_of_type_1,Y,"Array"),"not-array";return"no-prop"}function R(Y,...ue){t||d.push(gc(Y,...ue))}}function R9e(e){return e.code===p.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function l2e({includeSpecs:e,excludeSpecs:t},n){return gc(p.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,n||"tsconfig.json",JSON.stringify(e||[]),JSON.stringify(t||[]))}function u2e(e,t,n){return e.length===0&&t&&(!n||n.length===0)}function C3(e){return!Ka(e,"files")&&!Ka(e,"references")}function UO(e,t,n,i,s){const o=i.length;return u2e(e,s)?i.push(l2e(n,t)):eB(i,c=>!R9e(c)),o!==i.length}function j9e(e){return!!e.options}function _2e(e,t,n,i,s,o,c,u){var f;i=iu(i);const g=Xi(s||"",i);if(o.includes(g))return c.push(gc(p.Circularity_detected_while_resolving_configuration_Colon_0,[...o,g].join(" -> "))),{raw:e||Vie(t,c)};const d=e?B9e(e,n,i,s,c):J9e(t,n,i,s,c);if((f=d.options)!=null&&f.paths&&(d.options.pathsBasePath=i),d.extendedConfigPath){o=o.concat([g]);const S={options:{}};ls(d.extendedConfigPath)?y(S,d.extendedConfigPath):d.extendedConfigPath.forEach(T=>y(S,T)),!d.raw.include&&S.include&&(d.raw.include=S.include),!d.raw.exclude&&S.exclude&&(d.raw.exclude=S.exclude),!d.raw.files&&S.files&&(d.raw.files=S.files),d.raw.compileOnSave===void 0&&S.compileOnSave&&(d.raw.compileOnSave=S.compileOnSave),t&&S.extendedSourceFiles&&(t.extendedSourceFiles=gs(S.extendedSourceFiles.keys())),d.options=wk(S.options,d.options),d.watchOptions=d.watchOptions&&S.watchOptions?wk(S.watchOptions,d.watchOptions):d.watchOptions||S.watchOptions}return d;function y(S,T){const k=z9e(t,T,n,o,c,u,S);if(k&&j9e(k)){const w=k.raw;let P;const F=J=>{w[J]&&(S[J]=nr(w[J],U=>F_(U)?U:Mn(P||(P=Q4(Un(T),i,nu(n.useCaseSensitiveFileNames))),U)))};F("include"),F("exclude"),F("files"),w.compileOnSave!==void 0&&(S.compileOnSave=w.compileOnSave),wk(S.options,k.options),S.watchOptions=S.watchOptions&&k.watchOptions?wk({},S.watchOptions,k.watchOptions):S.watchOptions||k.watchOptions}}}function B9e(e,t,n,i,s){Ka(e,"excludes")&&s.push(gc(p.Unknown_option_excludes_Did_you_mean_exclude));const o=h2e(e.compilerOptions,n,s,i),c=y2e(e.typeAcquisition,n,s,i),u=V9e(e.watchOptions,n,s);e.compileOnSave=W9e(e,n,s);const f=e.extends||e.extends===""?f2e(e.extends,t,n,i,s):void 0;return{raw:e,options:o,watchOptions:u,typeAcquisition:c,extendedConfigPath:f}}function f2e(e,t,n,i,s,o,c,u){let f;const g=i?o2e(i,n):n;if(ls(e))f=p2e(e,t,g,s,c,u);else if(ts(e)){f=[];for(let d=0;dJ.name===T)&&(g=_r(g,w.name))))}}function p2e(e,t,n,i,s,o){if(e=iu(e),F_(e)||Vi(e,"./")||Vi(e,"../")){let u=Xi(e,n);if(!t.fileExists(u)&&!Yo(u,".json")&&(u=`${u}.json`,!t.fileExists(u))){i.push(z1(o,s,p.File_0_not_found,e));return}return u}const c=pse(e,Mn(n,"tsconfig.json"),t);if(c.resolvedModule)return c.resolvedModule.resolvedFileName;e===""?i.push(z1(o,s,p.Compiler_option_0_cannot_be_given_an_empty_string,"extends")):i.push(z1(o,s,p.File_0_not_found,e))}function z9e(e,t,n,i,s,o,c){const u=n.useCaseSensitiveFileNames?t:km(t);let f,g,d;if(o&&(f=o.get(u))?{extendedResult:g,extendedConfig:d}=f:(g=Wie(t,y=>n.readFile(y)),g.parseDiagnostics.length||(d=_2e(void 0,g,n,Un(t),wc(t),i,s,o)),o&&o.set(u,{extendedResult:g,extendedConfig:d})),e&&((c.extendedSourceFiles??(c.extendedSourceFiles=new Set)).add(g.fileName),g.extendedSourceFiles))for(const y of g.extendedSourceFiles)c.extendedSourceFiles.add(y);if(g.parseDiagnostics.length){s.push(...g.parseDiagnostics);return}return d}function W9e(e,t,n){if(!Ka(e,Zw.name))return!1;const i=eS(Zw,e.compileOnSave,t,n);return typeof i=="boolean"&&i}function d2e(e,t,n){const i=[];return{options:h2e(e,t,i,n),errors:i}}function m2e(e,t,n){const i=[];return{options:y2e(e,t,i,n),errors:i}}function g2e(e){return e&&wc(e)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function h2e(e,t,n,i){const s=g2e(i);return Uie(Xve(),e,t,s,nA,n),i&&(s.configFilePath=iu(i)),s}function dU(e){return{enable:!!e&&wc(e)==="jsconfig.json",include:[],exclude:[]}}function y2e(e,t,n,i){const s=dU(i);return Uie(Yve(),e,t,s,Kie,n),s}function V9e(e,t,n){return Uie(Qve(),e,t,void 0,YO,n)}function Uie(e,t,n,i,s,o){if(t){for(const c in t){const u=e.get(c);u?(i||(i={}))[u.name]=eS(u,t[c],n,o):o.push(Jie(c,s))}return i}}function z1(e,t,n,...i){return e&&t?dp(e,t,n,...i):gc(n,...i)}function eS(e,t,n,i,s,o,c){if(e.isCommandLineOnly){i.push(z1(c,s==null?void 0:s.name,p.Option_0_can_only_be_specified_on_command_line,e.name));return}if(Kve(e,t)){const u=e.type;if(u==="list"&&ts(t))return b2e(e,t,n,i,s,o,c);if(u==="listOrElement")return ts(t)?b2e(e,t,n,i,s,o,c):eS(e.element,t,n,i,s,o,c);if(!ls(e.type))return v2e(e,t,i,o,c);const f=yx(e,t,i,o,c);return Yw(f)?f:U9e(e,n,f)}else i.push(z1(c,o,p.Compiler_option_0_requires_a_value_of_type_1,e.name,uU(e)))}function U9e(e,t,n){return e.isFilePath&&(n=Xi(n,t),n===""&&(n=".")),n}function yx(e,t,n,i,s){var o;if(Yw(t))return;const c=(o=e.extraValidation)==null?void 0:o.call(e,t);if(!c)return t;n.push(z1(s,i,...c))}function v2e(e,t,n,i,s){if(Yw(t))return;const o=t.toLowerCase(),c=e.type.get(o);if(c!==void 0)return yx(e,c,n,i,s);n.push(zve(e,(u,...f)=>z1(s,i,u,...f)))}function b2e(e,t,n,i,s,o,c){return An(nr(t,(u,f)=>eS(e.element,u,n,i,s,o==null?void 0:o.elements[f],c)),u=>e.listPreserveFalsyValues?!0:!!u)}function E3(e,t,n,i,s=Ve){t=Hs(t);const o=nu(i.useCaseSensitiveFileNames),c=new Map,u=new Map,f=new Map,{validatedFilesSpec:g,validatedIncludeSpecs:d,validatedExcludeSpecs:y}=e,S=VE(n,s),T=tw(n,S);if(g)for(const F of g){const J=Xi(F,t);c.set(o(J),J)}let k;if(d&&d.length>0)for(const F of i.readDirectory(t,Op(T),y,d,void 0)){if(Zo(F,".json")){if(!k){const $=d.filter(re=>Yo(re,".json")),j=nr(pF($,t,"files"),re=>`^${re}$`);k=j?j.map(re=>iy(re,i.useCaseSensitiveFileNames)):Ve}if(vc(k,$=>$.test(F))!==-1){const $=o(F);!c.has($)&&!f.has($)&&f.set($,F)}continue}if(G9e(F,c,u,S,o))continue;$9e(F,u,S,o);const J=o(F);!c.has(J)&&!u.has(J)&&u.set(J,F)}const w=gs(c.values()),P=gs(u.values());return w.concat(P,gs(f.values()))}function qie(e,t,n,i,s){const{validatedFilesSpec:o,validatedIncludeSpecs:c,validatedExcludeSpecs:u}=t;if(!mr(c)||!mr(u))return!1;n=Hs(n);const f=nu(i);if(o){for(const g of o)if(f(Xi(g,n))===e)return!1}return T2e(e,u,i,s,n)}function S2e(e){const t=Vi(e,"**/")?0:e.indexOf("/**/");return t===-1?!1:(Yo(e,"/..")?e.length:e.lastIndexOf("/../"))>t}function qO(e,t,n,i){return T2e(e,An(t,s=>!S2e(s)),n,i)}function T2e(e,t,n,i,s){const o=WE(t,Mn(Hs(i),s),"exclude"),c=o&&iy(o,n);return c?c.test(e)?!0:!xT(e)&&c.test(_l(e)):!1}function x2e(e,t,n,i,s){return e.filter(c=>{if(!ls(c))return!1;const u=Hie(c,n);return u!==void 0&&t.push(o(...u)),u===void 0});function o(c,u){const f=y5(i,s,u);return z1(i,f,c,u)}}function Hie(e,t){if(E.assert(typeof e=="string"),t&&F2e.test(e))return[p.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e];if(S2e(e))return[p.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]}function q9e({validatedIncludeSpecs:e,validatedExcludeSpecs:t},n,i){const s=WE(t,n,"exclude"),o=s&&new RegExp(s,i?"":"i"),c={},u=new Map;if(e!==void 0){const f=[];for(const g of e){const d=Hs(Mn(n,g));if(o&&o.test(d))continue;const y=H9e(d,i);if(y){const{key:S,path:T,flags:k}=y,w=u.get(S),P=w!==void 0?c[w]:void 0;(P===void 0||P$c(e,c)?c:void 0);if(!o)return!1;for(const c of o){if(Zo(e,c)&&(c!==".ts"||!Zo(e,".d.ts")))return!1;const u=s(N1(e,c));if(t.has(u)||n.has(u)){if(c===".d.ts"&&(Zo(e,".js")||Zo(e,".jsx")))continue;return!0}}return!1}function $9e(e,t,n,i){const s=rr(n,o=>$c(e,o)?o:void 0);if(s)for(let o=s.length-1;o>=0;o--){const c=s[o];if(Zo(e,c))return;const u=i(N1(e,c));t.delete(u)}}function $ie(e){const t={};for(const n in e)if(Ka(e,n)){const i=oU(n);i!==void 0&&(t[n]=Xie(e[n],i))}return t}function Xie(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(!ts(e))return Xie(e,t.element);case"list":const n=t.element;return ts(e)?Ri(e,i=>Xie(i,n)):"";default:return fl(t.type,(i,s)=>{if(i===e)return s})}}function Qie(e){switch(e.type){case"number":return 1;case"boolean":return!0;case"string":const t=e.defaultValueDescription;return e.isFilePath?`./${t&&typeof t=="string"?t:""}`:"";case"list":return[];case"listOrElement":return Qie(e.element);case"object":return{};default:const n=YI(e.type.keys());return n!==void 0?n:E.fail("Expected 'option.type' to have entries.")}}var Zw,Yie,P3,Zie,Kw,HO,ZC,eA,tA,mU,gU,Pg,hU,yU,vU,GO,$O,bU,SU,TU,XO,rA,k2e,C2e,QO,nA,E2e,P2e,D2e,Kie,w2e,YO,A2e,N2e,I2e,iA,ese,tse,rse,nse,ZO,F2e,O2e,X9e=Dt({"src/compiler/commandLineParser.ts"(){Fs(),Zw={name:"compileOnSave",type:"boolean",defaultValueDescription:!1},Yie=new Map(Object.entries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5})),P3=new Map(R4(Yie.entries(),([e,t])=>[""+t,e])),Zie=[["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"]],Kw=Zie.map(e=>e[0]),HO=new Map(Zie),ZC=[{name:"watchFile",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:p.Watch_and_Build_Modes,description:p.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:p.Watch_and_Build_Modes,description:p.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:p.Watch_and_Build_Modes,description:p.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:"synchronousWatchDirectory",type:"boolean",category:p.Watch_and_Build_Modes,description:p.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:Hie},category:p.Watch_and_Build_Modes,description:p.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:Hie},category:p.Watch_and_Build_Modes,description:p.Remove_a_list_of_files_from_the_watch_mode_s_processing}],eA=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:p.Command_line_Options,description:p.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",isCommandLineOnly:!0,category:p.Command_line_Options,defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:p.Command_line_Options,description:p.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:p.Output_Formatting,description:p.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:p.Compiler_Diagnostics,description:p.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:p.Compiler_Diagnostics,description:p.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:p.Compiler_Diagnostics,description:p.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:p.Output_Formatting,description:p.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:p.Compiler_Diagnostics,description:p.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:p.Compiler_Diagnostics,description:p.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:p.Compiler_Diagnostics,description:p.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:p.FILE_OR_DIRECTORY,category:p.Compiler_Diagnostics,description:p.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,isCommandLineOnly:!0,paramType:p.DIRECTORY,category:p.Compiler_Diagnostics,description:p.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:p.Projects,description:p.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:p.false_unless_composite_is_set},{name:"declaration",shortName:"d",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:p.Emit,transpileOptionValue:void 0,description:p.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:p.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:p.Emit,transpileOptionValue:void 0,defaultValueDescription:!1,description:p.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:p.Emit,description:p.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:p.Emit,defaultValueDescription:!1,description:p.Create_source_map_files_for_emitted_JavaScript_files},{name:"inlineSourceMap",type:"boolean",affectsBuildInfo:!0,category:p.Emit,description:p.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:p.Watch_and_Build_Modes,description:p.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:p.Command_line_Options,isCommandLineOnly:!0,description:p.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:p.Platform_specific}],tA={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:p.VERSION,showInSimplifiedHelpView:!0,category:p.Language_and_Environment,description:p.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},mU={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:p.KIND,showInSimplifiedHelpView:!0,category:p.Modules,description:p.Specify_what_module_code_is_generated,defaultValueDescription:void 0},gU=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:p.Command_line_Options,description:p.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:p.Command_line_Options,description:p.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:p.Command_line_Options,description:p.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:p.Command_line_Options,paramType:p.FILE_OR_DIRECTORY,description:p.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:p.Command_line_Options,description:p.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:p.Command_line_Options,isCommandLineOnly:!0,description:p.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:p.Command_line_Options,isCommandLineOnly:!0,description:p.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},tA,mU,{name:"lib",type:"list",element:{name:"lib",type:HO,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:p.Language_and_Environment,description:p.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:p.JavaScript_Support,description:p.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:p.JavaScript_Support,description:p.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:Yie,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,paramType:p.KIND,showInSimplifiedHelpView:!0,category:p.Language_and_Environment,description:p.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"outFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:p.FILE,showInSimplifiedHelpView:!0,category:p.Emit,description:p.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:p.DIRECTORY,showInSimplifiedHelpView:!0,category:p.Emit,description:p.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:p.LOCATION,category:p.Modules,description:p.Specify_the_root_folder_within_your_source_files,defaultValueDescription:p.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsBuildInfo:!0,isTSConfigOnly:!0,category:p.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:p.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:p.FILE,category:p.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:p.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:p.Emit,defaultValueDescription:!1,description:p.Disable_emitting_comments},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:p.Emit,description:p.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"importHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:p.Emit,description:p.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:p.Emit,description:p.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:p.Emit,description:p.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:p.Interop_Constraints,description:p.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"verbatimModuleSyntax",type:"boolean",category:p.Interop_Constraints,description:p.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:p.Type_Checking,description:p.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:p.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:p.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:p.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:p.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:p.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:p.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:p.false_unless_strict_is_set},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:p.Type_Checking,description:p.Ensure_use_strict_is_always_emitted,defaultValueDescription:p.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.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:p.Type_Checking,description:p.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.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:p.Type_Checking,description:p.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:p.STRATEGY,category:p.Modules,description:p.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:p.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:p.Modules,description:p.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:p.Modules,description:p.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:p.Modules,description:p.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:p.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:p.Modules,description:p.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:p.Modules,description:p.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:p.Interop_Constraints,description:p.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:p.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:p.Interop_Constraints,description:p.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:p.Interop_Constraints,description:p.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:p.Modules,description:p.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:p.Modules,description:p.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"allowImportingTsExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Modules,description:p.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:p.Modules,description:p.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:p.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"resolvePackageJsonImports",type:"boolean",affectsModuleResolution:!0,category:p.Modules,description:p.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:p.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"customConditions",type:"list",element:{name:"condition",type:"string"},affectsModuleResolution:!0,category:p.Modules,description:p.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:"sourceRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:p.LOCATION,category:p.Emit,description:p.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:p.LOCATION,category:p.Emit,description:p.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSources",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:p.Emit,description:p.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Language_and_Environment,description:p.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:p.Language_and_Environment,description:p.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:p.Language_and_Environment,description:p.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:p.Language_and_Environment,description:p.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:p.Language_and_Environment,description:p.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:p.Modules,description:p.Enable_importing_json_files,defaultValueDescription:!1},{name:"allowArbitraryExtensions",type:"boolean",affectsProgramStructure:!0,category:p.Modules,description:p.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:p.Backwards_Compatibility,paramType:p.FILE,transpileOptionValue:void 0,description:p.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,affectsBuildInfo:!0,category:p.Language_and_Environment,description:p.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",affectsBuildInfo:!0,category:p.Completeness,description:p.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:p.Backwards_Compatibility,description:p.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:p.Emit,description:p.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:p.NEWLINE,category:p.Emit,description:p.Set_the_newline_character_for_emitting_files,defaultValueDescription:"lf"},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Output_Formatting,description:p.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:p.Language_and_Environment,affectsProgramStructure:!0,description:p.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:p.Modules,description:p.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:p.Emit,description:p.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:p.Editor_Support,description:p.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:p.Projects,description:p.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:p.Projects,description:p.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:p.Projects,description:p.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Backwards_Compatibility,description:p.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:p.Emit,description:p.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:p.Emit,transpileOptionValue:void 0,description:p.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:p.Emit,description:p.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:p.DIRECTORY,category:p.Emit,transpileOptionValue:void 0,description:p.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",affectsBuildInfo:!0,category:p.Completeness,description:p.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Type_Checking,description:p.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Backwards_Compatibility,description:p.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:p.Backwards_Compatibility,description:p.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:p.Interop_Constraints,description:p.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:p.JavaScript_Support,description:p.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:p.Backwards_Compatibility,description:p.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:p.Language_and_Environment,description:p.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:p.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:p.Emit,description:p.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:p.Backwards_Compatibility,description:p.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:p.Specify_a_list_of_language_service_plugins_to_include,category:p.Editor_Support},{name:"moduleDetection",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsSourceFile:!0,affectsModuleResolution:!0,description:p.Control_what_method_is_used_to_detect_module_format_JS_files,category:p.Language_and_Environment,defaultValueDescription:p.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}],Pg=[...eA,...gU],hU=Pg.filter(e=>!!e.affectsSemanticDiagnostics),yU=Pg.filter(e=>!!e.affectsEmit),vU=Pg.filter(e=>!!e.affectsDeclarationPath),GO=Pg.filter(e=>!!e.affectsModuleResolution),$O=Pg.filter(e=>!!e.affectsSourceFile||!!e.affectsBindDiagnostics),bU=Pg.filter(e=>!!e.affectsProgramStructure),SU=Pg.filter(e=>Ka(e,"transpileOptionValue")),TU=[{name:"verbose",shortName:"v",category:p.Command_line_Options,description:p.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:p.Command_line_Options,description:p.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:p.Command_line_Options,description:p.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:p.Command_line_Options,description:p.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1}],XO=[...eA,...TU],rA=[{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}],C2e={diagnostic:p.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:qve},QO={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},nA={alternateMode:C2e,getOptionsNameMap:YC,optionDeclarations:Pg,unknownOptionDiagnostic:p.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:p.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:p.Compiler_option_0_expects_an_argument},P2e={diagnostic:p.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:YC},D2e={alternateMode:P2e,getOptionsNameMap:qve,optionDeclarations:XO,unknownOptionDiagnostic:p.Unknown_build_option_0,unknownDidYouMeanDiagnostic:p.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:p.Build_option_0_requires_a_value_of_type_1},Kie={optionDeclarations:rA,unknownOptionDiagnostic:p.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:p.Unknown_type_acquisition_option_0_Did_you_mean_1},YO={getOptionsNameMap:$ve,optionDeclarations:ZC,unknownOptionDiagnostic:p.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:p.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:p.Watch_option_0_requires_a_value_of_type_1},iA={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:p.File_Management,disallowNullOrUndefined:!0},ese={name:"compilerOptions",type:"object",elementOptions:Xve(),extraKeyDiagnostics:nA},tse={name:"watchOptions",type:"object",elementOptions:Qve(),extraKeyDiagnostics:YO},rse={name:"typeAcquisition",type:"object",elementOptions:Yve(),extraKeyDiagnostics:Kie},ZO="**/*",F2e=/(^|\/)\*\*\/?$/,O2e=/^[^*?]*(?=\/[^/]*[*?])/}});function Zi(e,t,...n){e.trace(PW(t,...n))}function oh(e,t){return!!e.traceResolution&&t.trace!==void 0}function vx(e,t){let n;if(t&&e){const i=e.contents.packageJsonContent;typeof i.name=="string"&&typeof i.version=="string"&&(n={name:i.name,subModuleName:t.path.slice(e.packageDirectory.length+Fo.length),version:i.version})}return t&&{path:t.path,extension:t.ext,packageId:n,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function xU(e){return vx(void 0,e)}function L2e(e){if(e)return E.assert(e.packageId===void 0),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function KO(e){const 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 Q9e(e){const t=[];return e&1&&t.push(...pw),e&2&&t.push(...FC),e&4&&t.push(...fw),e&8&&t.push(".json"),t}function ise(e){if(e)return E.assert(vF(e.extension)),{fileName:e.path,packageId:e.packageId}}function M2e(e,t,n,i,s,o,c,u,f){if(!c.resultFromCache&&!c.compilerOptions.preserveSymlinks&&t&&n&&!t.originalPath&&!Sl(e)){const{resolvedFileName:g,originalPath:d}=B2e(t.path,c.host,c.traceEnabled);d&&(t={...t,path:g,originalPath:d})}return R2e(t,n,i,s,o,c.resultFromCache,u,f)}function R2e(e,t,n,i,s,o,c,u){return o?c!=null&&c.isReadonly?{...o,failedLookupLocations:sse(o.failedLookupLocations,n),affectingLocations:sse(o.affectingLocations,i),resolutionDiagnostics:sse(o.resolutionDiagnostics,s)}:(o.failedLookupLocations=KC(o.failedLookupLocations,n),o.affectingLocations=KC(o.affectingLocations,i),o.resolutionDiagnostics=KC(o.resolutionDiagnostics,s),o):{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:D3(n),affectingLocations:D3(i),resolutionDiagnostics:D3(s),alternateResult:u}}function D3(e){return e.length?e:void 0}function KC(e,t){return t!=null&&t.length?e!=null&&e.length?(e.push(...t),e):t:e}function sse(e,t){return e!=null&&e.length?t.length?[...e,...t]:e.slice():D3(t)}function j2e(e,t,n,i){if(!Ka(e,t)){i.traceEnabled&&Zi(i.host,p.package_json_does_not_have_a_0_field,t);return}const s=e[t];if(typeof s!==n||s===null){i.traceEnabled&&Zi(i.host,p.Expected_type_of_0_field_in_package_json_to_be_1_got_2,t,n,s===null?"null":typeof s);return}return s}function kU(e,t,n,i){const s=j2e(e,t,"string",i);if(s===void 0)return;if(!s){i.traceEnabled&&Zi(i.host,p.package_json_had_a_falsy_0_field,t);return}const o=Hs(Mn(n,s));return i.traceEnabled&&Zi(i.host,p.package_json_has_0_field_1_that_references_2,t,s,o),o}function Y9e(e,t,n){return kU(e,"typings",t,n)||kU(e,"types",t,n)}function Z9e(e,t,n){return kU(e,"tsconfig",t,n)}function K9e(e,t,n){return kU(e,"main",t,n)}function eLe(e,t){const n=j2e(e,"typesVersions","object",t);if(n!==void 0)return t.traceEnabled&&Zi(t.host,p.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),n}function tLe(e,t){const n=eLe(e,t);if(n===void 0)return;if(t.traceEnabled)for(const c in n)Ka(n,c)&&!SD.tryParse(c)&&Zi(t.host,p.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,c);const i=e9(n);if(!i){t.traceEnabled&&Zi(t.host,p.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,qg);return}const{version:s,paths:o}=i;if(typeof o!="object"){t.traceEnabled&&Zi(t.host,p.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${s}']`,"object",typeof o);return}return i}function e9(e){vse||(vse=new Lp(ld));for(const t in e){if(!Ka(e,t))continue;const n=SD.tryParse(t);if(n!==void 0&&n.test(vse))return{version:t,paths:e[t]}}}function w3(e,t){if(e.typeRoots)return e.typeRoots;let n;if(e.configFilePath?n=Un(e.configFilePath):t.getCurrentDirectory&&(n=t.getCurrentDirectory()),n!==void 0)return rLe(n)}function rLe(e){let t;return jp(Hs(e),n=>{const i=Mn(n,obe);(t??(t=[])).push(i)}),t}function nLe(e,t,n){const i=typeof n.useCaseSensitiveFileNames=="function"?n.useCaseSensitiveFileNames():n.useCaseSensitiveFileNames;return Gg(e,t,!i)===0}function B2e(e,t,n){const i=mLe(e,t,n),s=nLe(e,i,t);return{resolvedFileName:s?e:i,originalPath:s?void 0:e}}function J2e(e,t,n){const i=Yo(e,"/node_modules/@types")||Yo(e,"/node_modules/@types/")?ibe(t,n):t;return Mn(e,i)}function ase(e,t,n,i,s,o,c){E.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.");const u=oh(n,i);s&&(n=s.commandLine.options);const f=t?Un(t):void 0;let g=f?o==null?void 0:o.getFromDirectoryCache(e,c,f,s):void 0;if(!g&&f&&!Sl(e)&&(g=o==null?void 0:o.getFromNonRelativeNameCache(e,c,f,s)),g)return u&&(Zi(i,p.Resolving_type_reference_directive_0_containing_file_1,e,t),s&&Zi(i,p.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName),Zi(i,p.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,f),j(g)),g;const d=w3(n,i);u&&(t===void 0?d===void 0?Zi(i,p.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):Zi(i,p.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,d):d===void 0?Zi(i,p.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,t):Zi(i,p.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,t,d),s&&Zi(i,p.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName));const y=[],S=[];let T=ose(n);c!==void 0&&(T|=30);const k=Ru(n);c===99&&3<=k&&k<=99&&(T|=32);const w=T&8?gy(n,c):[],P=[],F={compilerOptions:n,host:i,traceEnabled:u,failedLookupLocations:y,affectingLocations:S,packageJsonInfoCache:o,features:T,conditions:w,requestContainingDirectory:f,reportDiagnostic:Y=>void P.push(Y),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};let J=re(),U=!0;J||(J=R(),U=!1);let $;if(J){const{fileName:Y,packageId:ue}=J;let pe=Y,H;n.preserveSymlinks||({resolvedFileName:pe,originalPath:H}=B2e(Y,i,u)),$={primary:U,resolvedFileName:pe,originalPath:H,packageId:ue,isExternalLibraryImport:W1(Y)}}return g={resolvedTypeReferenceDirective:$,failedLookupLocations:D3(y),affectingLocations:D3(S),resolutionDiagnostics:D3(P)},f&&o&&!o.isReadonly&&(o.getOrCreateCacheForDirectory(f,s).set(e,c,g),Sl(e)||o.getOrCreateCacheForNonRelativeName(e,c,s).set(f,g)),u&&j(g),g;function j(Y){var ue;(ue=Y.resolvedTypeReferenceDirective)!=null&&ue.resolvedFileName?Y.resolvedTypeReferenceDirective.packageId?Zi(i,p.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,Y.resolvedTypeReferenceDirective.resolvedFileName,Z0(Y.resolvedTypeReferenceDirective.packageId),Y.resolvedTypeReferenceDirective.primary):Zi(i,p.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,Y.resolvedTypeReferenceDirective.resolvedFileName,Y.resolvedTypeReferenceDirective.primary):Zi(i,p.Type_reference_directive_0_was_not_resolved,e)}function re(){if(d&&d.length)return u&&Zi(i,p.Resolving_with_primary_search_path_0,d.join(", ")),Qa(d,Y=>{const ue=J2e(Y,e,F),pe=pd(Y,i);if(!pe&&u&&Zi(i,p.Directory_0_does_not_exist_skipping_all_lookups_in_it,Y),n.typeRoots){const H=r6(4,ue,!pe,F);if(H){const q=aA(H.path),ee=q?m2(q,!1,F):void 0;return ise(vx(ee,H))}}return ise(mse(4,ue,!pe,F))});u&&Zi(i,p.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function R(){const Y=t&&Un(t);if(Y!==void 0){let ue;if(!n.typeRoots||!Yo(t,u6))if(u&&Zi(i,p.Looking_up_in_node_modules_folder_initial_location_0,Y),Sl(e)){const{path:pe}=H2e(Y,e);ue=wU(4,pe,!1,F,!0)}else{const pe=ebe(4,e,Y,F,void 0,void 0);ue=pe&&pe.value}else u&&Zi(i,p.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);return ise(ue)}else u&&Zi(i,p.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}function ose(e){let t=0;switch(Ru(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 gy(e,t){const n=Ru(e);if(t===void 0){if(n===100)t=99;else if(n===2)return[]}const i=t===99?["import"]:["require"];return e.noDtsResolution||i.push("types"),n!==100&&i.push("node"),es(i,e.customConditions)}function CU(e,t,n,i,s){const o=oA(s==null?void 0:s.getPackageJsonInfoCache(),i,n);return jp(t,c=>{if(wc(c)!=="node_modules"){const u=Mn(c,"node_modules"),f=Mn(u,e);return m2(f,!1,o)}})}function t9(e,t){if(e.types)return e.types;const n=[];if(t.directoryExists&&t.getDirectories){const i=w3(e,t);if(i){for(const s of i)if(t.directoryExists(s))for(const o of t.getDirectories(s)){const c=Hs(o),u=Mn(s,c,"package.json");if(!(t.fileExists(u)&&ME(u,t).typings===null)){const g=wc(c);g.charCodeAt(0)!==46&&n.push(g)}}}}return n}function r9(e){return!!(e!=null&&e.contents)}function cse(e){return!!e&&!e.contents}function lse(e){var t;if(e===null||typeof e!="object")return""+e;if(ts(e))return`[${(t=e.map(i=>lse(i)))==null?void 0:t.join(",")}]`;let n="{";for(const i in e)Ka(e,i)&&(n+=`${i}: ${lse(e[i])}`);return n+"}"}function EU(e,t){return t.map(n=>lse(lF(e,n))).join("|")+`|${e.pathsBasePath}`}function PU(e,t){const n=new Map,i=new Map;let s=new Map;return e&&n.set(e,s),{getMapOfCacheRedirects:o,getOrCreateMapOfCacheRedirects:c,update:u,clear:g,getOwnMap:()=>s};function o(y){return y?f(y.commandLine.options,!1):s}function c(y){return y?f(y.commandLine.options,!0):s}function u(y){e!==y&&(e?s=f(y,!0):n.set(y,s),e=y)}function f(y,S){let T=n.get(y);if(T)return T;const k=d(y);if(T=i.get(k),!T){if(e){const w=d(e);w===k?T=s:i.has(w)||i.set(w,s)}S&&(T??(T=new Map)),T&&i.set(k,T)}return T&&n.set(y,T),T}function g(){const y=e&&t.get(e);s.clear(),n.clear(),t.clear(),i.clear(),e&&(y&&t.set(e,y),n.set(e,s))}function d(y){let S=t.get(y);return S||t.set(y,S=EU(y,GO)),S}}function iLe(e,t){let n;return{getPackageJsonInfo:i,setPackageJsonInfo:s,clear:o,getInternalMap:c};function i(u){return n==null?void 0:n.get(Io(u,e,t))}function s(u,f){(n||(n=new Map)).set(Io(u,e,t),f)}function o(){n=void 0}function c(){return n}}function z2e(e,t,n,i){const s=e.getOrCreateMapOfCacheRedirects(t);let o=s.get(n);return o||(o=i(),s.set(n,o)),o}function sLe(e,t,n,i){const s=PU(n,i);return{getFromDirectoryCache:f,getOrCreateCacheForDirectory:u,clear:o,update:c,directoryToModuleNameMap:s};function o(){s.clear()}function c(g){s.update(g)}function u(g,d){const y=Io(g,e,t);return z2e(s,d,y,()=>bx())}function f(g,d,y,S){var T,k;const w=Io(y,e,t);return(k=(T=s.getMapOfCacheRedirects(S))==null?void 0:T.get(w))==null?void 0:k.get(g,d)}}function A3(e,t){return t===void 0?e:`${t}|${e}`}function bx(){const e=new Map,t=new Map,n={get(s,o){return e.get(i(s,o))},set(s,o,c){return e.set(i(s,o),c),n},delete(s,o){return e.delete(i(s,o)),n},has(s,o){return e.has(i(s,o))},forEach(s){return e.forEach((o,c)=>{const[u,f]=t.get(c);return s(o,u,f)})},size(){return e.size}};return n;function i(s,o){const c=A3(s,o);return t.set(c,[s,o]),c}}function aLe(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function oLe(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function cLe(e,t,n,i,s){const o=PU(n,s);return{getFromNonRelativeNameCache:f,getOrCreateCacheForNonRelativeName:g,clear:c,update:u};function c(){o.clear()}function u(y){o.update(y)}function f(y,S,T,k){var w,P;return E.assert(!Sl(y)),(P=(w=o.getMapOfCacheRedirects(k))==null?void 0:w.get(A3(y,S)))==null?void 0:P.get(T)}function g(y,S,T){return E.assert(!Sl(y)),z2e(o,T,A3(y,S),d)}function d(){const y=new Map;return{get:S,set:T};function S(w){return y.get(Io(w,e,t))}function T(w,P){const F=Io(w,e,t);if(y.has(F))return;y.set(F,P);const J=i(P),U=J&&k(F,J);let $=F;for(;$!==U;){const j=Un($);if(j===$||y.has(j))break;y.set(j,P),$=j}}function k(w,P){const F=Io(Un(P),e,t);let J=0;const U=Math.min(w.length,F.length);for(;Ji,clearAllExceptPackageJsonInfoCache:g,optionsToRedirectsKey:o};function f(){g(),i.clear()}function g(){c.clear(),u.clear()}function d(y){c.update(y),u.update(y)}}function e6(e,t,n,i,s){const o=W2e(e,t,n,i,aLe,s);return o.getOrCreateCacheForModuleName=(c,u,f)=>o.getOrCreateCacheForNonRelativeName(c,u,f),o}function n9(e,t,n,i,s){return W2e(e,t,n,i,oLe,s)}function DU(e){return{moduleResolution:2,traceResolution:e.traceResolution}}function i9(e,t,n,i,s){return t6(e,t,DU(n),i,s)}function V2e(e,t,n,i){const s=Un(t);return n.getFromDirectoryCache(e,i,s,void 0)}function t6(e,t,n,i,s,o,c){var u,f,g;const d=oh(n,i);o&&(n=o.commandLine.options),d&&(Zi(i,p.Resolving_module_0_from_1,e,t),o&&Zi(i,p.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName));const y=Un(t);let S=s==null?void 0:s.getFromDirectoryCache(e,c,y,o);if(S)d&&Zi(i,p.Resolution_for_module_0_was_found_in_cache_from_location_1,e,y);else{let T=n.moduleResolution;switch(T===void 0?(T=Ru(n),d&&Zi(i,p.Module_resolution_kind_is_not_specified_using_0,Rk[T])):d&&Zi(i,p.Explicitly_specified_module_resolution_kind_Colon_0,Rk[T]),(u=wu)==null||u.logStartResolveModule(e),T){case 3:S=fLe(e,t,n,i,s,o,c);break;case 99:S=pLe(e,t,n,i,s,o,c);break;case 2:S=fse(e,t,n,i,s,o,c?gy(n,c):void 0);break;case 1:S=hse(e,t,n,i,s,o);break;case 100:S=_se(e,t,n,i,s,o,c?gy(n,c):void 0);break;default:return E.fail(`Unexpected moduleResolution: ${T}`)}S&&S.resolvedModule&&((f=wu)==null||f.logInfoEvent(`Module "${e}" resolved to "${S.resolvedModule.resolvedFileName}"`)),(g=wu)==null||g.logStopResolveModule(S&&S.resolvedModule?""+S.resolvedModule.resolvedFileName:"null"),s&&!s.isReadonly&&(s.getOrCreateCacheForDirectory(y,o).set(e,c,S),Sl(e)||s.getOrCreateCacheForNonRelativeName(e,c,o).set(y,S))}return d&&(S.resolvedModule?S.resolvedModule.packageId?Zi(i,p.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,S.resolvedModule.resolvedFileName,Z0(S.resolvedModule.packageId)):Zi(i,p.Module_name_0_was_successfully_resolved_to_1,e,S.resolvedModule.resolvedFileName):Zi(i,p.Module_name_0_was_not_resolved,e)),S}function U2e(e,t,n,i,s){const o=lLe(e,t,i,s);return o?o.value:Sl(t)?uLe(e,t,n,i,s):_Le(e,t,i,s)}function lLe(e,t,n,i){var s;const{baseUrl:o,paths:c,configFile:u}=i.compilerOptions;if(c&&!nf(t)){i.traceEnabled&&(o&&Zi(i.host,p.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,o,t),Zi(i.host,p.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t));const f=U5(i.compilerOptions,i.host),g=u!=null&&u.configFileSpecs?(s=u.configFileSpecs).pathPatterns||(s.pathPatterns=yF(c)):void 0;return gse(e,t,f,c,g,n,!1,i)}}function uLe(e,t,n,i,s){if(!s.compilerOptions.rootDirs)return;s.traceEnabled&&Zi(s.host,p.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);const o=Hs(Mn(n,t));let c,u;for(const f of s.compilerOptions.rootDirs){let g=Hs(f);Yo(g,Fo)||(g+=Fo);const d=Vi(o,g)&&(u===void 0||u.lengthvoid U.push(Y),isConfigLookup:u,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};w&&qT(J)&&Zi(s,p.Resolving_in_0_mode_with_conditions_1,e&32?"ESM":"CJS",$.conditions.map(Y=>`'${Y}'`).join(", "));let j;if(J===2){const Y=c&5,ue=c&-6;j=Y&&R(Y,$)||ue&&R(ue,$)||void 0}else j=R(c,$);let re;if($.resolvedPackageDirectory&&!u&&!Sl(t)){const Y=(j==null?void 0:j.value)&&c&5&&!Y2e(5,j.value.resolved.extension);if((d=j==null?void 0:j.value)!=null&&d.isExternalLibraryImport&&Y&&e&8&&(g!=null&&g.includes("import"))){hy($,p.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);const ue={...$,features:$.features&-9,reportDiagnostic:Ca},pe=R(c&5,ue);(y=pe==null?void 0:pe.value)!=null&&y.isExternalLibraryImport&&(re=pe.value.resolved.path)}else if((!(j!=null&&j.value)||Y)&&J===2){hy($,p.Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update);const ue={...$.compilerOptions,moduleResolution:100},pe={...$,compilerOptions:ue,features:30,conditions:gy(ue),reportDiagnostic:Ca},H=R(c&5,pe);(S=H==null?void 0:H.value)!=null&&S.isExternalLibraryImport&&(re=H.value.resolved.path)}}return M2e(t,(T=j==null?void 0:j.value)==null?void 0:T.resolved,(k=j==null?void 0:j.value)==null?void 0:k.isExternalLibraryImport,P,F,U,$,o,re);function R(Y,ue){const H=U2e(Y,t,n,(q,ee,oe,Se)=>wU(q,ee,oe,Se,!0),ue);if(H)return kf({resolved:H,isExternalLibraryImport:W1(H.path)});if(Sl(t)){const{path:q,parts:ee}=H2e(n,t),oe=wU(Y,q,!1,ue,!0);return oe&&kf({resolved:oe,isExternalLibraryImport:bs(ee,"node_modules")})}else{let q;if(e&2&&Vi(t,"#")&&(q=vLe(Y,t,n,ue,o,f)),!q&&e&4&&(q=yLe(Y,t,n,ue,o,f)),!q){if(t.includes(":")){w&&Zi(s,p.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,t,KO(Y));return}w&&Zi(s,p.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,t,KO(Y)),q=ebe(Y,t,n,ue,o,f)}return Y&4&&(q??(q=abe(t,ue))),q&&{value:q.value&&{resolved:q.value,isExternalLibraryImport:!0}}}}}function H2e(e,t){const n=Mn(e,t),i=ul(n),s=Do(i);return{path:s==="."||s===".."?_l(Hs(n)):Hs(n),parts:i}}function mLe(e,t,n){if(!t.realpath)return e;const i=Hs(t.realpath(e));return n&&Zi(t,p.Resolving_real_path_for_0_result_1,e,i),i}function wU(e,t,n,i,s){if(i.traceEnabled&&Zi(i.host,p.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,KO(e)),!qh(t)){if(!n){const c=Un(t);pd(c,i.host)||(i.traceEnabled&&Zi(i.host,p.Directory_0_does_not_exist_skipping_all_lookups_in_it,c),n=!0)}const o=r6(e,t,n,i);if(o){const c=s?aA(o.path):void 0,u=c?m2(c,!1,i):void 0;return vx(u,o)}}if(n||pd(t,i.host)||(i.traceEnabled&&Zi(i.host,p.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),n=!0),!(i.features&32))return mse(e,t,n,i,s)}function W1(e){return e.includes(zm)}function aA(e,t){const n=Hs(e),i=n.lastIndexOf(zm);if(i===-1)return;const s=i+zm.length;let o=G2e(n,s,t);return n.charCodeAt(s)===64&&(o=G2e(n,o,t)),n.slice(0,o)}function G2e(e,t,n){const i=e.indexOf(Fo,t+1);return i===-1?n?e.length:t:i}function dse(e,t,n,i){return xU(r6(e,t,n,i))}function r6(e,t,n,i){const s=$2e(e,t,n,i);if(s)return s;if(!(i.features&32)){const o=X2e(t,e,"",n,i);if(o)return o}}function $2e(e,t,n,i){if(!wc(t).includes("."))return;let o=$u(t);o===t&&(o=t.substring(0,t.lastIndexOf(".")));const c=t.substring(o.length);return i.traceEnabled&&Zi(i.host,p.File_name_0_has_a_1_extension_stripping_it,t,c),X2e(o,e,c,n,i)}function AU(e,t,n,i){return e&1&&$c(t,pw)||e&4&&$c(t,fw)?NU(t,n,i)!==void 0?{path:t,ext:Z5(t),resolvedUsingTsExtension:void 0}:void 0:i.isConfigLookup&&e===8&&Zo(t,".json")?NU(t,n,i)!==void 0?{path:t,ext:".json",resolvedUsingTsExtension:void 0}:void 0:$2e(e,t,n,i)}function X2e(e,t,n,i,s){if(!i){const c=Un(e);c&&(i=!pd(c,s.host))}switch(n){case".mjs":case".mts":case".d.mts":return t&1&&o(".mts",n===".mts"||n===".d.mts")||t&4&&o(".d.mts",n===".mts"||n===".d.mts")||t&2&&o(".mjs")||void 0;case".cjs":case".cts":case".d.cts":return t&1&&o(".cts",n===".cts"||n===".d.cts")||t&4&&o(".d.cts",n===".cts"||n===".d.cts")||t&2&&o(".cjs")||void 0;case".json":return t&4&&o(".d.json.ts")||t&8&&o(".json")||void 0;case".tsx":case".jsx":return t&1&&(o(".tsx",n===".tsx")||o(".ts",n===".tsx"))||t&4&&o(".d.ts",n===".tsx")||t&2&&(o(".jsx")||o(".js"))||void 0;case".ts":case".d.ts":case".js":case"":return t&1&&(o(".ts",n===".ts"||n===".d.ts")||o(".tsx",n===".ts"||n===".d.ts"))||t&4&&o(".d.ts",n===".ts"||n===".d.ts")||t&2&&(o(".js")||o(".jsx"))||s.isConfigLookup&&o(".json")||void 0;default:return t&4&&!Hl(e+n)&&o(`.d${n}.ts`)||void 0}function o(c,u){const f=NU(e+c,i,s);return f===void 0?void 0:{path:f,ext:c,resolvedUsingTsExtension:!s.candidateIsFromPackageJsonField&&u}}}function NU(e,t,n){var i;if(!((i=n.compilerOptions.moduleSuffixes)!=null&&i.length))return Q2e(e,t,n);const s=nh(e)??"",o=s?nw(e,s):e;return rr(n.compilerOptions.moduleSuffixes,c=>Q2e(o+c+s,t,n))}function Q2e(e,t,n){var i;if(!t){if(n.host.fileExists(e))return n.traceEnabled&&Zi(n.host,p.File_0_exists_use_it_as_a_name_resolution_result,e),e;n.traceEnabled&&Zi(n.host,p.File_0_does_not_exist,e)}(i=n.failedLookupLocations)==null||i.push(e)}function mse(e,t,n,i,s=!0){const o=s?m2(t,n,i):void 0,c=o&&o.contents.packageJsonContent,u=o&&s9(o,i);return vx(o,FU(e,t,n,i,c,u))}function IU(e,t,n,i,s){if(!s&&e.contents.resolvedEntrypoints!==void 0)return e.contents.resolvedEntrypoints;let o;const c=5|(s?2:0),u=ose(t),f=oA(i==null?void 0:i.getPackageJsonInfoCache(),n,t);f.conditions=gy(t),f.requestContainingDirectory=e.packageDirectory;const g=FU(c,e.packageDirectory,!1,f,e.contents.packageJsonContent,s9(e,f));if(o=_r(o,g==null?void 0:g.path),u&8&&e.contents.packageJsonContent.exports){const d=Nv([gy(t,99),gy(t,1)],ud);for(const y of d){const S={...f,failedLookupLocations:[],conditions:y,host:n},T=gLe(e,e.contents.packageJsonContent.exports,S,c);if(T)for(const k of T)o=Hg(o,k.path)}}return e.contents.resolvedEntrypoints=o||!1}function gLe(e,t,n,i){let s;if(ts(t))for(const c of t)o(c);else if(typeof t=="object"&&t!==null&&a9(t))for(const c in t)o(t[c]);else o(t);return s;function o(c){var u,f;if(typeof c=="string"&&Vi(c,"./"))if(c.includes("*")&&n.host.readDirectory){if(c.indexOf("*")!==c.lastIndexOf("*"))return!1;n.host.readDirectory(e.packageDirectory,Q9e(i),void 0,[yee($T(c,"**/*"),".*")]).forEach(g=>{s=Hg(s,{path:g,ext:jk(g),resolvedUsingTsExtension:void 0})})}else{const g=ul(c).slice(2);if(g.includes("..")||g.includes(".")||g.includes("node_modules"))return!1;const d=Mn(e.packageDirectory,c),y=Xi(d,(f=(u=n.host).getCurrentDirectory)==null?void 0:f.call(u)),S=AU(i,y,!1,n);if(S)return s=Hg(s,S,(T,k)=>T.path===k.path),!0}else if(Array.isArray(c)){for(const g of c)if(o(g))return!0}else if(typeof c=="object"&&c!==null)return rr(ug(c),g=>{if(g==="default"||bs(n.conditions,g)||uA(n.conditions,g))return o(c[g]),!0})}}function oA(e,t,n){return{host:t,compilerOptions:n,traceEnabled:oh(n,t),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:e,features:0,conditions:Ve,requestContainingDirectory:void 0,reportDiagnostic:Ca,isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1}}function cA(e,t){const n=ul(e);for(n.pop();n.length>0;){const i=m2(W0(n),!1,t);if(i)return i;n.pop()}}function s9(e,t){return e.contents.versionPaths===void 0&&(e.contents.versionPaths=tLe(e.contents.packageJsonContent,t)||!1),e.contents.versionPaths||void 0}function m2(e,t,n){var i,s,o,c,u,f;const{host:g,traceEnabled:d}=n,y=Mn(e,"package.json");if(t){(i=n.failedLookupLocations)==null||i.push(y);return}const S=(s=n.packageJsonInfoCache)==null?void 0:s.getPackageJsonInfo(y);if(S!==void 0){if(r9(S))return d&&Zi(g,p.File_0_exists_according_to_earlier_cached_lookups,y),(o=n.affectingLocations)==null||o.push(y),S.packageDirectory===e?S:{packageDirectory:e,contents:S.contents};S.directoryExists&&d&&Zi(g,p.File_0_does_not_exist_according_to_earlier_cached_lookups,y),(c=n.failedLookupLocations)==null||c.push(y);return}const T=pd(e,g);if(T&&g.fileExists(y)){const k=ME(y,g);d&&Zi(g,p.Found_package_json_at_0,y);const w={packageDirectory:e,contents:{packageJsonContent:k,versionPaths:void 0,resolvedEntrypoints:void 0}};return n.packageJsonInfoCache&&!n.packageJsonInfoCache.isReadonly&&n.packageJsonInfoCache.setPackageJsonInfo(y,w),(u=n.affectingLocations)==null||u.push(y),w}else T&&d&&Zi(g,p.File_0_does_not_exist,y),n.packageJsonInfoCache&&!n.packageJsonInfoCache.isReadonly&&n.packageJsonInfoCache.setPackageJsonInfo(y,{packageDirectory:e,directoryExists:T}),(f=n.failedLookupLocations)==null||f.push(y)}function FU(e,t,n,i,s,o){let c;s&&(i.isConfigLookup?c=Z9e(s,t,i):c=e&4&&Y9e(s,t,i)||e&7&&K9e(s,t,i)||void 0);const u=(S,T,k,w)=>{const P=AU(S,T,k,w);if(P)return xU(P);const F=S===4?5:S,J=w.features,U=w.candidateIsFromPackageJsonField;w.candidateIsFromPackageJsonField=!0,(s==null?void 0:s.type)!=="module"&&(w.features&=-33);const $=wU(F,T,k,w,!1);return w.features=J,w.candidateIsFromPackageJsonField=U,$},f=c?!pd(Un(c),i.host):void 0,g=n||!pd(t,i.host),d=Mn(t,i.isConfigLookup?"tsconfig":"index");if(o&&(!c||Mp(t,c))){const S=Rp(t,c||d,!1);i.traceEnabled&&Zi(i.host,p.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,o.version,ld,S);const T=gse(e,S,t,o.paths,void 0,u,f||g,i);if(T)return L2e(T.value)}const y=c&&L2e(u(e,c,f,i));if(y)return y;if(!(i.features&32))return r6(e,d,g,i)}function Y2e(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 lA(e){let t=e.indexOf(Fo);return e[0]==="@"&&(t=e.indexOf(Fo,t+1)),t===-1?{packageName:e,rest:""}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function a9(e){return Wi(ug(e),t=>Vi(t,"."))}function hLe(e){return!ct(ug(e),t=>Vi(t,"."))}function yLe(e,t,n,i,s,o){var c,u;const f=Xi(Mn(n,"dummy"),(u=(c=i.host).getCurrentDirectory)==null?void 0:u.call(c)),g=cA(f,i);if(!g||!g.contents.packageJsonContent.exports||typeof g.contents.packageJsonContent.name!="string")return;const d=ul(t),y=ul(g.contents.packageJsonContent.name);if(!Wi(y,(P,F)=>d[F]===P))return;const S=d.slice(y.length),T=mr(S)?`.${Fo}${S.join(Fo)}`:".";if(oy(i.compilerOptions)&&!W1(n))return OU(g,e,T,i,s,o);const k=e&5,w=e&-6;return OU(g,k,T,i,s,o)||OU(g,w,T,i,s,o)}function OU(e,t,n,i,s,o){if(e.contents.packageJsonContent.exports){if(n==="."){let c;if(typeof e.contents.packageJsonContent.exports=="string"||Array.isArray(e.contents.packageJsonContent.exports)||typeof e.contents.packageJsonContent.exports=="object"&&hLe(e.contents.packageJsonContent.exports)?c=e.contents.packageJsonContent.exports:Ka(e.contents.packageJsonContent.exports,".")&&(c=e.contents.packageJsonContent.exports["."]),c)return K2e(t,i,s,o,n,e,!1)(c,"",!1,".")}else if(a9(e.contents.packageJsonContent.exports)){if(typeof e.contents.packageJsonContent.exports!="object")return i.traceEnabled&&Zi(i.host,p.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,e.packageDirectory),kf(void 0);const c=Z2e(t,i,s,o,n,e.contents.packageJsonContent.exports,e,!1);if(c)return c}return i.traceEnabled&&Zi(i.host,p.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,e.packageDirectory),kf(void 0)}}function vLe(e,t,n,i,s,o){var c,u;if(t==="#"||Vi(t,"#/"))return i.traceEnabled&&Zi(i.host,p.Invalid_import_specifier_0_has_no_possible_resolutions,t),kf(void 0);const f=Xi(Mn(n,"dummy"),(u=(c=i.host).getCurrentDirectory)==null?void 0:u.call(c)),g=cA(f,i);if(!g)return i.traceEnabled&&Zi(i.host,p.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,f),kf(void 0);if(!g.contents.packageJsonContent.imports)return i.traceEnabled&&Zi(i.host,p.package_json_scope_0_has_no_imports_defined,g.packageDirectory),kf(void 0);const d=Z2e(e,i,s,o,t,g.contents.packageJsonContent.imports,g,!0);return d||(i.traceEnabled&&Zi(i.host,p.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,g.packageDirectory),kf(void 0))}function LU(e,t){const n=e.indexOf("*"),i=t.indexOf("*"),s=n===-1?e.length:n+1,o=i===-1?t.length:i+1;return s>o?-1:o>s||n===-1?1:i===-1||e.length>t.length?-1:t.length>e.length?1:0}function Z2e(e,t,n,i,s,o,c,u){const f=K2e(e,t,n,i,s,c,u);if(!Yo(s,Fo)&&!s.includes("*")&&Ka(o,s)){const y=o[s];return f(y,"",!1,s)}const g=_b(An(ug(o),y=>y.includes("*")||Yo(y,"/")),LU);for(const y of g)if(t.features&16&&d(y,s)){const S=o[y],T=y.indexOf("*"),k=s.substring(y.substring(0,T).length,s.length-(y.length-1-T));return f(S,k,!0,y)}else if(Yo(y,"*")&&Vi(s,y.substring(0,y.length-1))){const S=o[y],T=s.substring(y.length-1);return f(S,T,!0,y)}else if(Vi(s,y)){const S=o[y],T=s.substring(y.length);return f(S,T,!1,y)}function d(y,S){if(Yo(y,"*"))return!1;const T=y.indexOf("*");return T===-1?!1:Vi(S,y.substring(0,T))&&Yo(S,y.substring(T+1))}}function K2e(e,t,n,i,s,o,c){return u;function u(f,g,d,y){if(typeof f=="string"){if(!d&&g.length>0&&!Yo(f,"/"))return t.traceEnabled&&Zi(t.host,p.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,s),kf(void 0);if(!Vi(f,"./")){if(c&&!Vi(f,"../")&&!Vi(f,"/")&&!F_(f)){const j=d?f.replace(/\*/g,g):f+g;hy(t,p.Using_0_subpath_1_with_target_2,"imports",y,j),hy(t,p.Resolving_module_0_from_1,j,o.packageDirectory+"/");const re=sA(t.features,j,o.packageDirectory+"/",t.compilerOptions,t.host,n,e,!1,i,t.conditions);return kf(re.resolvedModule?{path:re.resolvedModule.resolvedFileName,extension:re.resolvedModule.extension,packageId:re.resolvedModule.packageId,originalPath:re.resolvedModule.originalPath,resolvedUsingTsExtension:re.resolvedModule.resolvedUsingTsExtension}:void 0)}return t.traceEnabled&&Zi(t.host,p.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,s),kf(void 0)}const P=(nf(f)?ul(f).slice(1):ul(f)).slice(1);if(P.includes("..")||P.includes(".")||P.includes("node_modules"))return t.traceEnabled&&Zi(t.host,p.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,s),kf(void 0);const F=Mn(o.packageDirectory,f),J=ul(g);if(J.includes("..")||J.includes(".")||J.includes("node_modules"))return t.traceEnabled&&Zi(t.host,p.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,s),kf(void 0);t.traceEnabled&&Zi(t.host,p.Using_0_subpath_1_with_target_2,c?"imports":"exports",y,d?f.replace(/\*/g,g):f+g);const U=S(d?F.replace(/\*/g,g):F+g),$=k(U,g,Mn(o.packageDirectory,"package.json"),c);return $||kf(vx(o,AU(e,U,!1,t)))}else if(typeof f=="object"&&f!==null)if(Array.isArray(f)){if(!mr(f))return t.traceEnabled&&Zi(t.host,p.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,s),kf(void 0);for(const w of f){const P=u(w,g,d,y);if(P)return P}}else{hy(t,p.Entering_conditional_exports);for(const w of ug(f))if(w==="default"||t.conditions.includes(w)||uA(t.conditions,w)){hy(t,p.Matched_0_condition_1,c?"imports":"exports",w);const P=f[w],F=u(P,g,d,y);if(F)return hy(t,p.Resolved_under_condition_0,w),hy(t,p.Exiting_conditional_exports),F;hy(t,p.Failed_to_resolve_under_condition_0,w)}else hy(t,p.Saw_non_matching_condition_0,w);hy(t,p.Exiting_conditional_exports);return}else if(f===null)return t.traceEnabled&&Zi(t.host,p.package_json_scope_0_explicitly_maps_specifier_1_to_null,o.packageDirectory,s),kf(void 0);return t.traceEnabled&&Zi(t.host,p.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,s),kf(void 0);function S(w){var P,F;return w===void 0?w:Xi(w,(F=(P=t.host).getCurrentDirectory)==null?void 0:F.call(P))}function T(w,P){return _l(Mn(w,P))}function k(w,P,F,J){var U,$,j,re;if(!t.isConfigLookup&&(t.compilerOptions.declarationDir||t.compilerOptions.outDir)&&!w.includes("/node_modules/")&&(!t.compilerOptions.configFile||Mp(o.packageDirectory,S(t.compilerOptions.configFile.fileName),!MU(t)))){const Y=Zh({useCaseSensitiveFileNames:()=>MU(t)}),ue=[];if(t.compilerOptions.rootDir||t.compilerOptions.composite&&t.compilerOptions.configFilePath){const pe=S(U3(t.compilerOptions,()=>[],(($=(U=t.host).getCurrentDirectory)==null?void 0:$.call(U))||"",Y));ue.push(pe)}else if(t.requestContainingDirectory){const pe=S(Mn(t.requestContainingDirectory,"index.ts")),H=S(U3(t.compilerOptions,()=>[pe,S(F)],((re=(j=t.host).getCurrentDirectory)==null?void 0:re.call(j))||"",Y));ue.push(H);let q=_l(H);for(;q&&q.length>1;){const ee=ul(q);ee.pop();const oe=W0(ee);ue.unshift(oe),q=_l(oe)}}ue.length>1&&t.reportDiagnostic(gc(J?p.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:p.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,P===""?".":P,F));for(const pe of ue){const H=R(pe);for(const q of H)if(Mp(q,w,!MU(t))){const ee=w.slice(q.length+1),oe=Mn(pe,ee),Se=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(const ae of Se)if(Zo(oe,ae)){const K=hre(oe);for(const fe of K){if(!Y2e(e,fe))continue;const ke=ND(oe,fe,ae,!MU(t));if(t.host.fileExists(ke))return kf(vx(o,AU(e,ke,!1,t)))}}}}}return;function R(Y){var ue,pe;const H=t.compilerOptions.configFile?((pe=(ue=t.host).getCurrentDirectory)==null?void 0:pe.call(ue))||"":Y,q=[];return t.compilerOptions.declarationDir&&q.push(S(T(H,t.compilerOptions.declarationDir))),t.compilerOptions.outDir&&t.compilerOptions.outDir!==t.compilerOptions.declarationDir&&q.push(S(T(H,t.compilerOptions.outDir))),q}}}}function uA(e,t){if(!e.includes("types")||!Vi(t,"types@"))return!1;const n=SD.tryParse(t.substring(6));return n?n.test(ld):!1}function ebe(e,t,n,i,s,o){return tbe(e,t,n,i,!1,s,o)}function bLe(e,t,n){return tbe(4,e,t,n,!0,void 0,void 0)}function tbe(e,t,n,i,s,o,c){const u=i.features===0?void 0:i.features&32?99:1,f=e&5,g=e&-6;if(f){hy(i,p.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,KO(f));const y=d(f);if(y)return y}if(g&&!s)return hy(i,p.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,KO(g)),d(g);function d(y){return jp(iu(n),S=>{if(wc(S)!=="node_modules"){const T=sbe(o,t,u,S,c,i);return T||kf(rbe(y,t,S,i,s,o,c))}})}}function rbe(e,t,n,i,s,o,c){const u=Mn(n,"node_modules"),f=pd(u,i.host);if(!f&&i.traceEnabled&&Zi(i.host,p.Directory_0_does_not_exist_skipping_all_lookups_in_it,u),!s){const g=nbe(e,t,u,f,i,o,c);if(g)return g}if(e&4){const g=Mn(u,"@types");let d=f;return f&&!pd(g,i.host)&&(i.traceEnabled&&Zi(i.host,p.Directory_0_does_not_exist_skipping_all_lookups_in_it,g),d=!1),nbe(4,ibe(t,i),g,d,i,o,c)}}function nbe(e,t,n,i,s,o,c){var u,f;const g=Hs(Mn(n,t)),{packageName:d,rest:y}=lA(t),S=Mn(n,d);let T,k=m2(g,!i,s);if(y!==""&&k&&(!(s.features&8)||!Ka(((u=T=m2(S,!i,s))==null?void 0:u.contents.packageJsonContent)??Ve,"exports"))){const F=r6(e,g,!i,s);if(F)return xU(F);const J=FU(e,g,!i,s,k.contents.packageJsonContent,s9(k,s));return vx(k,J)}const w=(F,J,U,$)=>{let j=(y||!($.features&32))&&r6(F,J,U,$)||FU(F,J,U,$,k&&k.contents.packageJsonContent,k&&s9(k,$));return!j&&k&&(k.contents.packageJsonContent.exports===void 0||k.contents.packageJsonContent.exports===null)&&$.features&32&&(j=r6(F,Mn(J,"index.js"),U,$)),vx(k,j)};if(y!==""&&(k=T??m2(S,!i,s)),k&&(s.resolvedPackageDirectory=!0),k&&k.contents.packageJsonContent.exports&&s.features&8)return(f=OU(k,e,Mn(".",y),s,o,c))==null?void 0:f.value;const P=y!==""&&k?s9(k,s):void 0;if(P){s.traceEnabled&&Zi(s.host,p.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,P.version,ld,y);const F=i&&pd(S,s.host),J=gse(e,y,S,P.paths,void 0,w,!F,s);if(J)return J.value}return w(e,g,!i,s)}function gse(e,t,n,i,s,o,c,u){s||(s=yF(i));const f=OW(s,t);if(f){const g=ls(f)?void 0:ZK(f,t),d=ls(f)?f:YK(f);return u.traceEnabled&&Zi(u.host,p.Module_name_0_matched_pattern_1,t,d),{value:rr(i[d],S=>{const T=g?$T(S,g):S,k=Hs(Mn(n,T));u.traceEnabled&&Zi(u.host,p.Trying_substitution_0_candidate_module_location_Colon_1,S,T);const w=nh(S);if(w!==void 0){const P=NU(k,c,u);if(P!==void 0)return xU({path:P,ext:w,resolvedUsingTsExtension:void 0})}return o(e,k,c||!pd(Un(k),u.host),u)})}}}function ibe(e,t){const n=n6(e);return t.traceEnabled&&n!==e&&Zi(t.host,p.Scoped_package_detected_looking_in_0,n),n}function o9(e){return`@types/${n6(e)}`}function n6(e){if(Vi(e,"@")){const t=e.replace(Fo,jU);if(t!==e)return t.slice(1)}return e}function N3(e){const t=q4(e,"@types/");return t!==e?_A(t):e}function _A(e){return e.includes(jU)?"@"+e.replace(jU,Fo):e}function sbe(e,t,n,i,s,o){const c=e&&e.getFromNonRelativeNameCache(t,n,i,s);if(c)return o.traceEnabled&&Zi(o.host,p.Resolution_for_module_0_was_found_in_cache_from_location_1,t,i),o.resultFromCache=c,{value:c.resolvedModule&&{path:c.resolvedModule.resolvedFileName,originalPath:c.resolvedModule.originalPath||!0,extension:c.resolvedModule.extension,packageId:c.resolvedModule.packageId,resolvedUsingTsExtension:c.resolvedModule.resolvedUsingTsExtension}}}function hse(e,t,n,i,s,o){const c=oh(n,i),u=[],f=[],g=Un(t),d=[],y={compilerOptions:n,host:i,traceEnabled:c,failedLookupLocations:u,affectingLocations:f,packageJsonInfoCache:s,features:0,conditions:[],requestContainingDirectory:g,reportDiagnostic:k=>void d.push(k),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},S=T(5)||T(2|(n.resolveJsonModule?8:0));return M2e(e,S&&S.value,(S==null?void 0:S.value)&&W1(S.value.path),u,f,d,y,s);function T(k){const w=U2e(k,e,g,dse,y);if(w)return{value:w};if(Sl(e)){const P=Hs(Mn(g,e));return kf(dse(k,P,!1,y))}else{const P=jp(g,F=>{const J=sbe(s,e,void 0,F,o,y);if(J)return J;const U=Hs(Mn(F,e));return kf(dse(k,U,!1,y))});if(P)return P;if(k&5){let F=bLe(e,g,y);return k&4&&(F??(F=abe(e,y))),F}}}}function abe(e,t){if(t.compilerOptions.typeRoots)for(const n of t.compilerOptions.typeRoots){const i=J2e(n,e,t),s=pd(n,t.host);!s&&t.traceEnabled&&Zi(t.host,p.Directory_0_does_not_exist_skipping_all_lookups_in_it,n);const o=r6(4,i,!s,t);if(o){const u=aA(o.path),f=u?m2(u,!1,t):void 0;return kf(vx(f,o))}const c=mse(4,i,!s,t);if(c)return kf(c)}}function i6(e,t){return!!e.allowImportingTsExtensions||t&&Hl(t)}function yse(e,t,n,i,s,o){const c=oh(n,i);c&&Zi(i,p.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,t,e,s);const u=[],f=[],g=[],d={compilerOptions:n,host:i,traceEnabled:c,failedLookupLocations:u,affectingLocations:f,packageJsonInfoCache:o,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:S=>void g.push(S),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},y=rbe(4,e,s,d,!1,void 0,void 0);return R2e(y,!0,u,f,g,d.resultFromCache,void 0)}function kf(e){return e!==void 0?{value:e}:void 0}function hy(e,t,...n){e.traceEnabled&&Zi(e.host,t,...n)}function MU(e){return e.host.useCaseSensitiveFileNames?typeof e.host.useCaseSensitiveFileNames=="boolean"?e.host.useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames():!0}var vse,obe,RU,zm,jU,SLe=Dt({"src/compiler/moduleNameResolver.ts"(){Fs(),obe=Mn("node_modules","@types"),RU=(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))(RU||{}),zm="/node_modules/",jU="__"}});function ch(e,t){return e.body&&!e.body.parent&&(ba(e.body,e),sy(e.body,!1)),e.body?bse(e.body,t):1}function bse(e,t=new Map){const n=Oa(e);if(t.has(n))return t.get(n)||0;t.set(n,void 0);const i=TLe(e,t);return t.set(n,i),i}function TLe(e,t){switch(e.kind){case 264:case 265:return 0;case 266:if(zv(e))return 2;break;case 272:case 271:if(!Rn(e,32))return 0;break;case 278:const n=e;if(!n.moduleSpecifier&&n.exportClause&&n.exportClause.kind===279){let i=0;for(const s of n.exportClause.elements){const o=xLe(s,t);if(o>i&&(i=o),i===1)return i}return i}break;case 268:{let i=0;return Ss(e,s=>{const o=bse(s,t);switch(o){case 0:return;case 2:i=2;return;case 1:return i=1,!0;default:E.assertNever(o)}}),i}case 267:return ch(e,t);case 80:if(e.flags&4096)return 0}return 1}function xLe(e,t){const n=e.propertyName||e.name;let i=e.parent;for(;i;){if(Cs(i)||Yd(i)||Ni(i)){const s=i.statements;let o;for(const c of s)if(UD(c,n)){c.parent||(ba(c,i),sy(c,!1));const u=bse(c,t);if((o===void 0||u>o)&&(o=u),o===1)return o;c.kind===271&&(o=1)}if(o!==void 0)return o}i=i.parent}return 1}function Sx(e){return E.attachFlowNodeDebugInfo(e),e}function Sse(e,t){var n,i;No("beforeBind"),(n=wu)==null||n.logStartBindFile(""+e.fileName),lbe(e,t),(i=wu)==null||i.logStopBindFile(),No("afterBind"),vf("Bind","beforeBind","afterBind")}function kLe(){var e,t,n,i,s,o,c,u,f,g,d,y,S,T,k,w,P,F,J,U,$,j,re=!1,R=0,Y,ue,pe={flags:1},H={flags:1},q=W();return oe;function ee(O,he,...Xe){return dp(wr(O)||e,O,he,...Xe)}function oe(O,he){var Xe,Ft;e=O,t=he,n=Fa(t),j=Se(e,he),ue=new Set,R=0,Y=Il.getSymbolConstructor(),E.attachFlowNodeDebugInfo(pe),E.attachFlowNodeDebugInfo(H),e.locals||((Xe=qr)==null||Xe.push(qr.Phase.Bind,"bindSourceFile",{path:e.path},!0),Ee(e),(Ft=qr)==null||Ft.pop(),e.symbolCount=R,e.classifiableNames=ue,Ol()),e=void 0,t=void 0,n=void 0,i=void 0,s=void 0,o=void 0,c=void 0,u=void 0,f=void 0,g=!1,d=void 0,y=void 0,S=void 0,T=void 0,k=void 0,w=void 0,P=void 0,J=void 0,U=!1,re=!1,$=0}function Se(O,he){return Mu(he,"alwaysStrict")&&!O.isDeclarationFile?!0:!!O.externalModuleIndicator}function ae(O,he){return R++,new Y(O,he)}function K(O,he,Xe){O.flags|=Xe,he.symbol=O,O.declarations=Hg(O.declarations,he),Xe&1955&&!O.exports&&(O.exports=Bs()),Xe&6240&&!O.members&&(O.members=Bs()),O.constEnumOnlyModule&&O.flags&304&&(O.constEnumOnlyModule=!1),Xe&111551&&A8(O,he)}function fe(O){if(O.kind===277)return O.isExportEquals?"export=":"default";const he=us(O);if(he){if(su(O)){const Xe=hp(he);return Wd(O)?"__global":`"${Xe}"`}if(he.kind===167){const Xe=he.expression;if(Sf(Xe))return Vo(Xe.text);if(j5(Xe))return Ws(Xe.operator)+Xe.operand.text;E.fail("Only computed properties with literal names have declaration names")}if(Pi(he)){const Xe=Nl(O);if(!Xe)return;const Ft=Xe.symbol;return z8(Ft,he.escapedText)}return hd(he)?GT(he):Ud(he)?EE(he):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(fc(O)===2)return"export=";E.fail("Unknown binary declaration kind");break;case 324:return fC(O)?"__new":"__call";case 169:return E.assert(O.parent.kind===324,"Impossible parameter parent kind",()=>`parent is: ${E.formatSyntaxKind(O.parent.kind)}, expected JSDocFunctionType`),"arg"+O.parent.parameters.indexOf(O)}}function ke(O){return Nu(O)?eo(O.name):xi(E.checkDefined(fe(O)))}function Oe(O,he,Xe,Ft,zr,Vn,Ln){E.assert(Ln||!ty(Xe));const ji=Rn(Xe,2048)||vu(Xe)&&Xe.name.escapedText==="default",fa=Ln?"__computed":ji&&he?"default":fe(Xe);let pa;if(fa===void 0)pa=ae(0,"__missing");else if(pa=O.get(fa),Ft&2885600&&ue.add(fa),!pa)O.set(fa,pa=ae(0,fa)),Vn&&(pa.isReplaceableByMethod=!0);else{if(Vn&&!pa.isReplaceableByMethod)return pa;if(pa.flags&zr){if(pa.isReplaceableByMethod)O.set(fa,pa=ae(0,fa));else if(!(Ft&3&&pa.flags&67108864)){Nu(Xe)&&ba(Xe.name,Xe);let lc=pa.flags&2?p.Cannot_redeclare_block_scoped_variable_0:p.Duplicate_identifier_0,Rl=!0;(pa.flags&384||Ft&384)&&(lc=p.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,Rl=!1);let Kc=!1;mr(pa.declarations)&&(ji||pa.declarations&&pa.declarations.length&&Xe.kind===277&&!Xe.isExportEquals)&&(lc=p.A_module_cannot_have_multiple_default_exports,Rl=!1,Kc=!0);const G_=[];qp(Xe)&&_c(Xe.type)&&Rn(Xe,32)&&pa.flags&2887656&&G_.push(ee(Xe,p.Did_you_mean_0,`export type { ${xi(Xe.name.escapedText)} }`));const p_=us(Xe)||Xe;rr(pa.declarations,(ja,Qp)=>{const Yp=us(ja)||ja,Ci=Rl?ee(Yp,lc,ke(ja)):ee(Yp,lc);e.bindDiagnostics.push(Kc?la(Ci,ee(p_,Qp===0?p.Another_export_default_is_here:p.and_here)):Ci),Kc&&G_.push(ee(Yp,p.The_first_export_default_is_here))});const ky=Rl?ee(p_,lc,ke(Xe)):ee(p_,lc);e.bindDiagnostics.push(la(ky,...G_)),pa=ae(0,fa)}}}return K(pa,Xe,Ft),pa.parent?E.assert(pa.parent===he,"Existing symbol parent should match new one"):pa.parent=he,pa}function me(O,he,Xe){const Ft=!!(y1(O)&32)||be(O);if(he&2097152)return O.kind===281||O.kind===271&&Ft?Oe(s.symbol.exports,s.symbol,O,he,Xe):(E.assertNode(s,Dm),Oe(s.locals,void 0,O,he,Xe));if(gp(O)&&E.assert(Hr(O)),!su(O)&&(Ft||s.flags&128)){if(!Dm(s)||!s.locals||Rn(O,2048)&&!fe(O))return Oe(s.symbol.exports,s.symbol,O,he,Xe);const zr=he&111551?1048576:0,Vn=Oe(s.locals,void 0,O,zr,Xe);return Vn.exportSymbol=Oe(s.symbol.exports,s.symbol,O,he,Xe),O.localSymbol=Vn,Vn}else return E.assertNode(s,Dm),Oe(s.locals,void 0,O,he,Xe)}function be(O){if(O.parent&&Sc(O)&&(O=O.parent),!gp(O))return!1;if(!Ow(O)&&O.fullName)return!0;const he=us(O);return he?!!(X8(he.parent)&&Ec(he.parent)||yu(he.parent)&&y1(he.parent)&32):!1}function xe(O,he){const Xe=s,Ft=o,zr=c;if(he&1?(O.kind!==219&&(o=s),s=c=O,he&32&&(s.locals=Bs(),Wr(s))):he&2&&(c=O,he&32&&(c.locals=void 0)),he&4){const Vn=d,Ln=y,ji=S,fa=T,pa=P,lc=J,Rl=U,Kc=he&16&&!Rn(O,1024)&&!O.asteriskToken&&!!Pb(O)||O.kind===175;Kc||(d=Sx({flags:2}),he&144&&(d.node=O)),T=Kc||O.kind===176||Hr(O)&&(O.kind===262||O.kind===218)?hr():void 0,P=void 0,y=void 0,S=void 0,J=void 0,U=!1,Fe(O),O.flags&=-5633,!(d.flags&1)&&he&8&&pp(O.body)&&(O.flags|=512,U&&(O.flags|=1024),O.endFlowNode=d),O.kind===312&&(O.flags|=$,O.endFlowNode=d),T&&(Rt(T,d),d=yr(T),(O.kind===176||O.kind===175||Hr(O)&&(O.kind===262||O.kind===218))&&(O.returnFlowNode=d)),Kc||(d=Vn),y=Ln,S=ji,T=fa,P=pa,J=lc,U=Rl}else he&64?(g=!1,Fe(O),E.assertNotNode(O,Ie),O.flags=g?O.flags|256:O.flags&-257):Fe(O);s=Xe,o=Ft,c=zr}function De(O){ft(O,he=>he.kind===262?Ee(he):void 0),ft(O,he=>he.kind!==262?Ee(he):void 0)}function ft(O,he=Ee){O!==void 0&&rr(O,he)}function ge(O){Ss(O,Ee,ft)}function Fe(O){const he=re;if(re=!1,At(O)){ge(O),lt(O),re=he;return}switch(O.kind>=243&&O.kind<=259&&!t.allowUnreachableCode&&(O.flowNode=d),O.kind){case 247:Ii(O);break;case 246:ns(O);break;case 248:Vs(O);break;case 249:case 250:_a(O);break;case 245:cr(O);break;case 253:case 257:br(O);break;case 252:case 251:tt(O);break;case 258:yt(O);break;case 255:ne(O);break;case 269:we(O);break;case 296:et(O);break;case 244:B(O);break;case 256:mt(O);break;case 224:ir(O);break;case 225:Yt(O);break;case 226:if(e0(O)){re=he,Kt(O);return}q(O);break;case 220:Pe(O);break;case 227:St(O);break;case 260:le(O);break;case 211:case 212:fi(O);break;case 213:oi(O);break;case 235:Nr(O);break;case 353:case 345:case 347:Ce(O);break;case 312:{De(O.statements),Ee(O.endOfFileToken);break}case 241:case 268:De(O.statements);break;case 208:V(O);break;case 169:ce(O);break;case 210:case 209:case 303:case 230:re=he;default:ge(O);break}lt(O),re=he}function $e(O){switch(O.kind){case 80:case 81:case 110:case 211:case 212:return at(O);case 213:return Je(O);case 217:if(HC(O))return!1;case 235:return $e(O.expression);case 226:return zt(O);case 224:return O.operator===54&&$e(O.operand);case 221:return $e(O.expression)}return!1}function Pt(O){return OE(O)||(Sn(O)||ux(O)||l_(O))&&Pt(O.expression)||Zr(O)&&O.operatorToken.kind===28&&Pt(O.right)||Co(O)&&(Sf(O.argumentExpression)||pc(O.argumentExpression))&&Pt(O.expression)||il(O)&&Pt(O.left)}function at(O){return Pt(O)||hu(O)&&at(O.expression)}function Je(O){if(O.arguments){for(const he of O.arguments)if(at(he))return!0}return!!(O.expression.kind===211&&at(O.expression.expression))}function pt(O,he){return BC(O)&&Vt(O.expression)&&Ma(he)}function zt(O){switch(O.operatorToken.kind){case 64:case 76:case 77:case 78:return at(O.left);case 35:case 36:case 37:case 38:return Vt(O.left)||Vt(O.right)||pt(O.right,O.left)||pt(O.left,O.right)||lE(O.right)&&$e(O.left)||lE(O.left)&&$e(O.right);case 104:return Vt(O.left);case 103:return $e(O.right);case 28:return $e(O.right)}return!1}function Vt(O){switch(O.kind){case 217:return Vt(O.expression);case 226:switch(O.operatorToken.kind){case 64:return Vt(O.left);case 28:return Vt(O.right)}}return at(O)}function hr(){return Sx({flags:4,antecedents:void 0})}function Lr(){return Sx({flags:8,antecedents:void 0})}function er(O,he,Xe){return Sx({flags:1024,target:O,antecedents:he,antecedent:Xe})}function jt(O){O.flags|=O.flags&2048?4096:2048}function Rt(O,he){!(he.flags&1)&&!bs(O.antecedents,he)&&((O.antecedents||(O.antecedents=[])).push(he),jt(he))}function Kn(O,he,Xe){return he.flags&1?he:Xe?(Xe.kind===112&&O&64||Xe.kind===97&&O&32)&&!V7(Xe)&&!$J(Xe.parent)?pe:$e(Xe)?(jt(he),Sx({flags:O,antecedent:he,node:Xe})):he:O&32?he:pe}function Ji(O,he,Xe,Ft){return jt(O),Sx({flags:128,antecedent:O,switchStatement:he,clauseStart:Xe,clauseEnd:Ft})}function yi(O,he,Xe){jt(he);const Ft=Sx({flags:O,antecedent:he,node:Xe});return P&&Rt(P,Ft),Ft}function os(O,he){return jt(O),Sx({flags:512,antecedent:O,node:he})}function yr(O){const he=O.antecedents;return he?he.length===1?he[0]:O:pe}function _i(O){const he=O.parent;switch(he.kind){case 245:case 247:case 246:return he.expression===O;case 248:case 227:return he.condition===O}return!1}function ln(O){for(;;)if(O.kind===217)O=O.expression;else if(O.kind===224&&O.operator===54)O=O.operand;else return $8(O)}function Ht(O){return dW(Va(O))}function Ue(O){for(;l_(O.parent)||py(O.parent)&&O.parent.operator===54;)O=O.parent;return!_i(O)&&!ln(O.parent)&&!(hu(O.parent)&&O.parent.expression===O)}function Et(O,he,Xe,Ft){const zr=k,Vn=w;k=Xe,w=Ft,O(he),k=zr,w=Vn}function fr(O,he,Xe){Et(Ee,O,he,Xe),(!O||!Ht(O)&&!ln(O)&&!(hu(O)&&iE(O)))&&(Rt(he,Kn(32,d,O)),Rt(Xe,Kn(64,d,O)))}function Hn(O,he,Xe){const Ft=y,zr=S;y=he,S=Xe,Ee(O),y=Ft,S=zr}function ei(O,he){let Xe=J;for(;Xe&&O.parent.kind===256;)Xe.continueTarget=he,Xe=Xe.next,O=O.parent;return he}function Ii(O){const he=ei(O,Lr()),Xe=hr(),Ft=hr();Rt(he,d),d=he,fr(O.expression,Xe,Ft),d=yr(Xe),Hn(O.statement,Ft,he),Rt(he,d),d=yr(Ft)}function ns(O){const he=Lr(),Xe=ei(O,hr()),Ft=hr();Rt(he,d),d=he,Hn(O.statement,Ft,Xe),Rt(Xe,d),d=yr(Xe),fr(O.expression,he,Ft),d=yr(Ft)}function Vs(O){const he=ei(O,Lr()),Xe=hr(),Ft=hr();Ee(O.initializer),Rt(he,d),d=he,fr(O.condition,Xe,Ft),d=yr(Xe),Hn(O.statement,Ft,he),Ee(O.incrementor),Rt(he,d),d=yr(Ft)}function _a(O){const he=ei(O,Lr()),Xe=hr();Ee(O.expression),Rt(he,d),d=he,O.kind===250&&Ee(O.awaitModifier),Rt(Xe,d),Ee(O.initializer),O.initializer.kind!==261&&nt(O.initializer),Hn(O.statement,Xe,he),Rt(he,d),d=yr(Xe)}function cr(O){const he=hr(),Xe=hr(),Ft=hr();fr(O.expression,he,Xe),d=yr(he),Ee(O.thenStatement),Rt(Ft,d),d=yr(Xe),Ee(O.elseStatement),Rt(Ft,d),d=yr(Ft)}function br(O){Ee(O.expression),O.kind===253&&(U=!0,T&&Rt(T,d)),d=pe}function Le(O){for(let he=J;he;he=he.next)if(he.name===O)return he}function rt(O,he,Xe){const Ft=O.kind===252?he:Xe;Ft&&(Rt(Ft,d),d=pe)}function tt(O){if(Ee(O.label),O.label){const he=Le(O.label.escapedText);he&&(he.referenced=!0,rt(O,he.breakTarget,he.continueTarget))}else rt(O,y,S)}function yt(O){const he=T,Xe=P,Ft=hr(),zr=hr();let Vn=hr();if(O.finallyBlock&&(T=zr),Rt(Vn,d),P=Vn,Ee(O.tryBlock),Rt(Ft,d),O.catchClause&&(d=yr(Vn),Vn=hr(),Rt(Vn,d),P=Vn,Ee(O.catchClause),Rt(Ft,d)),T=he,P=Xe,O.finallyBlock){const Ln=hr();Ln.antecedents=es(es(Ft.antecedents,Vn.antecedents),zr.antecedents),d=Ln,Ee(O.finallyBlock),d.flags&1?d=pe:(T&&zr.antecedents&&Rt(T,er(Ln,zr.antecedents,d)),P&&Vn.antecedents&&Rt(P,er(Ln,Vn.antecedents,d)),d=Ft.antecedents?er(Ln,Ft.antecedents,d):pe)}else d=yr(Ft)}function ne(O){const he=hr();Ee(O.expression);const Xe=y,Ft=F;y=he,F=d,Ee(O.caseBlock),Rt(he,d);const zr=rr(O.caseBlock.clauses,Vn=>Vn.kind===297);O.possiblyExhaustive=!zr&&!he.antecedents,zr||Rt(he,Ji(F,O,0,0)),y=Xe,F=Ft,d=yr(he)}function we(O){const he=O.clauses,Xe=O.parent.expression.kind===112||$e(O.parent.expression);let Ft=pe;for(let zr=0;zrTc(Xe)||oc(Xe))}function In(O){O.flags&33554432&&!ci(O)?O.flags|=128:O.flags&=-129}function is(O){if(In(O),su(O))if(Rn(O,32)&&so(O,p.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),bz(O))pr(O);else{let he;if(O.name.kind===11){const{text:Ft}=O.name;he=DC(Ft),he===void 0&&so(O.name,p.Pattern_0_can_have_at_most_one_Asterisk_character,Ft)}const Xe=Cn(O,512,110735);e.patternAmbientModules=_r(e.patternAmbientModules,he&&!ls(he)?{pattern:he,symbol:Xe}:void 0)}else{const he=pr(O);if(he!==0){const{symbol:Xe}=O;Xe.constEnumOnlyModule=!(Xe.flags&304)&&he===2&&Xe.constEnumOnlyModule!==!1}}}function pr(O){const he=ch(O),Xe=he!==0;return Cn(O,Xe?512:1024,Xe?110735:0),he}function _o(O){const he=ae(131072,fe(O));K(he,O,131072);const Xe=ae(2048,"__type");K(Xe,O,2048),Xe.members=Bs(),Xe.members.set(he.escapedName,he)}function kc(O){return go(O,4096,"__object")}function _s(O){return go(O,4096,"__jsxAttributes")}function Ra(O,he,Xe){return Cn(O,he,Xe)}function go(O,he,Xe){const Ft=ae(he,Xe);return he&106508&&(Ft.parent=s.symbol),K(Ft,O,he),Ft}function qo(O,he,Xe){switch(c.kind){case 267:me(O,he,Xe);break;case 312:if(af(s)){me(O,he,Xe);break}default:E.assertNode(c,Dm),c.locals||(c.locals=Bs(),Wr(c)),Oe(c.locals,void 0,O,he,Xe)}}function Ol(){if(!f)return;const O=s,he=u,Xe=c,Ft=i,zr=d;for(const Vn of f){const Ln=Vn.parent.parent;s=Pz(Ln)||e,c=Nm(Ln)||e,d=Sx({flags:2}),i=Vn,Ee(Vn.typeExpression);const ji=us(Vn);if((Ow(Vn)||!Vn.fullName)&&ji&&X8(ji.parent)){const fa=Ec(ji.parent);if(fa){Ho(e.symbol,ji.parent,fa,!!Pr(ji,lc=>Sn(lc)&&lc.name.escapedText==="prototype"),!1);const pa=s;switch(D8(ji.parent)){case 1:case 2:af(e)?s=e:s=void 0;break;case 4:s=ji.parent.expression;break;case 3:s=ji.parent.expression.name;break;case 5:s=g2(e,ji.parent.expression)?e:Sn(ji.parent.expression)?ji.parent.expression.name:ji.parent.expression;break;case 0:return E.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}s&&me(Vn,524288,788968),s=pa}}else Ow(Vn)||!Vn.fullName||Vn.fullName.kind===80?(i=Vn.parent,qo(Vn,524288,788968)):Ee(Vn.fullName)}s=O,u=he,c=Xe,i=Ft,d=zr}function $i(O){if(!e.parseDiagnostics.length&&!(O.flags&33554432)&&!(O.flags&16777216)&&!lre(O)){const he=v1(O);if(he===void 0)return;j&&he>=119&&he<=127?e.bindDiagnostics.push(ee(O,zs(O),eo(O))):he===135?Ic(e)&&S5(O)?e.bindDiagnostics.push(ee(O,p.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,eo(O))):O.flags&65536&&e.bindDiagnostics.push(ee(O,p.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,eo(O))):he===127&&O.flags&16384&&e.bindDiagnostics.push(ee(O,p.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,eo(O)))}}function zs(O){return Nl(O)?p.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?p.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:p.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function Ll(O){O.escapedText==="#constructor"&&(e.parseDiagnostics.length||e.bindDiagnostics.push(ee(O,p.constructor_is_a_reserved_word,eo(O))))}function Ya(O){j&&S_(O.left)&&Kh(O.operatorToken.kind)&&Fc(O,O.left)}function oa(O){j&&O.variableDeclaration&&Fc(O,O.variableDeclaration.name)}function Wo(O){if(j&&O.expression.kind===80){const he=Cb(e,O.expression);e.bindDiagnostics.push(xl(e,he.start,he.length,p.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function Zf(O){return Ie(O)&&(O.escapedText==="eval"||O.escapedText==="arguments")}function Fc(O,he){if(he&&he.kind===80){const Xe=he;if(Zf(Xe)){const Ft=Cb(e,he);e.bindDiagnostics.push(xl(e,Ft.start,Ft.length,rc(O),on(Xe)))}}}function rc(O){return Nl(O)?p.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?p.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:p.Invalid_use_of_0_in_strict_mode}function Ro(O){j&&Fc(O,O.name)}function fs(O){return Nl(O)?p.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?p.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:p.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}function Wt(O){if(n<2&&c.kind!==312&&c.kind!==267&&!Hk(c)){const he=Cb(e,O);e.bindDiagnostics.push(xl(e,he.start,he.length,fs(O)))}}function ho(O){j&&Fc(O,O.operand)}function Pl(O){j&&(O.operator===46||O.operator===47)&&Fc(O,O.operand)}function Ml(O){j&&so(O,p.with_statements_are_not_allowed_in_strict_mode)}function q_(O){j&&Fa(t)>=2&&(fte(O.statement)||ac(O.statement))&&so(O.label,p.A_label_is_not_allowed_here)}function so(O,he,...Xe){const Ft=Im(e,O.pos);e.bindDiagnostics.push(xl(e,Ft.start,Ft.length,he,...Xe))}function Zc(O,he,Xe){se(O,he,he,Xe)}function se(O,he,Xe,Ft){X(O,{pos:k1(he,e),end:Xe.end},Ft)}function X(O,he,Xe){const Ft=xl(e,he.pos,he.end-he.pos,Xe);O?e.bindDiagnostics.push(Ft):e.bindSuggestionDiagnostics=_r(e.bindSuggestionDiagnostics,{...Ft,category:2})}function Ee(O){if(!O)return;ba(O,i),qr&&(O.tracingPath=e.path);const he=j;if(rn(O),O.kind>165){const Xe=i;i=O;const Ft=BU(O);Ft===0?Fe(O):xe(O,Ft),i=Xe}else{const Xe=i;O.kind===1&&(i=O),lt(O),i=Xe}j=he}function lt(O){if(sf(O))if(Hr(O))for(const he of O.jsDoc)Ee(he);else for(const he of O.jsDoc)ba(he,O),sy(he,!1)}function Xt(O){if(!j)for(const he of O){if(!zp(he))return;if(an(he)){j=!0;return}}}function an(O){const he=Bv(e,O.expression);return he==='"use strict"'||he==="'use strict'"}function rn(O){switch(O.kind){case 80:if(O.flags&4096){let Ln=O.parent;for(;Ln&&!gp(Ln);)Ln=Ln.parent;qo(Ln,524288,788968);break}case 110:return d&&(ot(O)||i.kind===304)&&(O.flowNode=d),$i(O);case 166:d&&E5(O)&&(O.flowNode=d);break;case 236:case 108:O.flowNode=d;break;case 81:return Ll(O);case 211:case 212:const he=O;d&&Pt(he)&&(he.flowNode=d),rre(he)&&Fr(he),Hr(he)&&e.commonJsModuleIndicator&&yg(he)&&!c9(c,"module")&&Oe(e.locals,void 0,he.expression,134217729,111550);break;case 226:switch(fc(O)){case 1:E_(O);break;case 2:cl(O);break;case 3:Is(O.left,O);break;case 6:Yi(O);break;case 4:Ju(O);break;case 5:const Ln=O.left.expression;if(Hr(O)&&Ie(Ln)){const ji=c9(c,Ln.escapedText);if(T5(ji==null?void 0:ji.valueDeclaration)){Ju(O);break}}Uc(O);break;case 0:break;default:E.fail("Unknown binary expression special property assignment kind")}return Ya(O);case 299:return oa(O);case 220:return Wo(O);case 225:return ho(O);case 224:return Pl(O);case 254:return Ml(O);case 256:return q_(O);case 197:g=!0;return;case 182:break;case 168:return Ye(O);case 169:return fh(O);case 260:return _u(O);case 208:return O.flowNode=d,_u(O);case 172:case 171:return En(O);case 303:case 304:return f_(O,4,0);case 306:return f_(O,8,900095);case 179:case 180:case 181:return Cn(O,131072,0);case 174:case 173:return f_(O,8192|(O.questionToken?16777216:0),Wp(O)?0:103359);case 262:return H_(O);case 176:return Cn(O,16384,0);case 177:return f_(O,32768,46015);case 178:return f_(O,65536,78783);case 184:case 324:case 330:case 185:return _o(O);case 187:case 329:case 200:return li(O);case 339:return _t(O);case 210:return kc(O);case 218:case 219:return Ag(O);case 213:switch(fc(O)){case 7:return Cc(O);case 8:return hl(O);case 9:return Ds(O);case 0:break;default:return E.fail("Unknown call expression assignment declaration kind")}Hr(O)&&sm(O);break;case 231:case 263:return j=!0,qm(O);case 264:return qo(O,64,788872);case 265:return qo(O,524288,788968);case 266:return _h(O);case 267:return is(O);case 292:return _s(O);case 291:return Ra(O,4,0);case 271:case 274:case 276:case 281:return Cn(O,2097152,2097152);case 270:return gl(O);case 273:return Vc(O);case 278:return yo(O);case 277:return Qo(O);case 312:return Xt(O.statements),gn();case 241:if(!Hk(O.parent))return;case 268:return Xt(O.statements);case 348:if(O.parent.kind===330)return fh(O);if(O.parent.kind!==329)break;case 355:const zr=O,Vn=zr.isBracketed||zr.typeExpression&&zr.typeExpression.type.kind===323?16777220:4;return Cn(zr,Vn,0);case 353:case 345:case 347:return(f||(f=[])).push(O);case 346:return Ee(O.typeExpression)}}function En(O){const he=s_(O),Xe=he?98304:4,Ft=he?13247:0;return f_(O,Xe|(O.questionToken?16777216:0),Ft)}function li(O){return go(O,2048,"__type")}function gn(){if(In(e),Ic(e))Ps();else if(mp(e)){Ps();const O=e.symbol;Oe(e.symbol.exports,e.symbol,e,4,-1),e.symbol=O}}function Ps(){go(e,512,`"${$u(e.fileName)}"`)}function Qo(O){if(!s.symbol||!s.symbol.exports)go(O,111551,fe(O));else{const he=dC(O)?2097152:4,Xe=Oe(s.symbol.exports,s.symbol,O,he,-1);O.isExportEquals&&A8(Xe,O)}}function gl(O){ct(O.modifiers)&&e.bindDiagnostics.push(ee(O,p.Modifiers_cannot_appear_here));const he=Ni(O.parent)?Ic(O.parent)?O.parent.isDeclarationFile?void 0:p.Global_module_exports_may_only_appear_in_declaration_files:p.Global_module_exports_may_only_appear_in_module_files:p.Global_module_exports_may_only_appear_at_top_level;he?e.bindDiagnostics.push(ee(O,he)):(e.symbol.globalExports=e.symbol.globalExports||Bs(),Oe(e.symbol.globalExports,e.symbol,O,2097152,2097152))}function yo(O){!s.symbol||!s.symbol.exports?go(O,8388608,fe(O)):O.exportClause?jm(O.exportClause)&&(ba(O.exportClause,O),Oe(s.symbol.exports,s.symbol,O.exportClause,2097152,2097152)):Oe(s.symbol.exports,s.symbol,O,8388608,0)}function Vc(O){O.name&&Cn(O,2097152,2097152)}function $a(O){return e.externalModuleIndicator&&e.externalModuleIndicator!==!0?!1:(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=O,e.externalModuleIndicator||Ps()),!0)}function hl(O){if(!$a(O))return;const he=Kf(O.arguments[0],void 0,(Xe,Ft)=>(Ft&&K(Ft,Xe,67110400),Ft));he&&Oe(he.exports,he,O,1048580,0)}function E_(O){if(!$a(O))return;const he=Kf(O.left.expression,void 0,(Xe,Ft)=>(Ft&&K(Ft,Xe,67110400),Ft));if(he){const Ft=B8(O.right)&&(Db(O.left.expression)||yg(O.left.expression))?2097152:1048580;ba(O.left,O),Oe(he.exports,he,O.left,Ft,0)}}function cl(O){if(!$a(O))return;const he=C8(O.right);if(yW(he)||s===e&&g2(e,he))return;if(ua(he)&&Wi(he.properties,k_)){rr(he.properties,Ep);return}const Xe=dC(O)?2097152:1049092,Ft=Oe(e.symbol.exports,e.symbol,O,Xe|67108864,0);A8(Ft,O)}function Ep(O){Oe(e.symbol.exports,e.symbol,O,69206016,0)}function Ju(O){if(E.assert(Hr(O)),Zr(O)&&Sn(O.left)&&Pi(O.left.name)||Sn(O)&&Pi(O.name))return;const Xe=a_(O,!1,!1);switch(Xe.kind){case 262:case 218:let Ft=Xe.symbol;if(Zr(Xe.parent)&&Xe.parent.operatorToken.kind===64){const Ln=Xe.parent.left;qv(Ln)&&ny(Ln.expression)&&(Ft=Ku(Ln.expression.expression,o))}Ft&&Ft.valueDeclaration&&(Ft.members=Ft.members||Bs(),ty(O)?Te(O,Ft,Ft.members):Oe(Ft.members,Ft,O,67108868,0),K(Ft,Ft.valueDeclaration,32));break;case 176:case 172:case 174:case 177:case 178:case 175:const zr=Xe.parent,Vn=Ms(Xe)?zr.symbol.exports:zr.symbol.members;ty(O)?Te(O,zr.symbol,Vn):Oe(Vn,zr.symbol,O,67108868,0,!0);break;case 312:if(ty(O))break;Xe.commonJsModuleIndicator?Oe(Xe.symbol.exports,Xe.symbol,O,1048580,0):Cn(O,1,111550);break;case 267:break;default:E.failBadSyntaxKind(Xe)}}function Te(O,he,Xe){Oe(Xe,he,O,4,0,!0,!0),kt(O,he)}function kt(O,he){he&&(he.assignmentDeclarationMembers||(he.assignmentDeclarationMembers=new Map)).set(Oa(O),O)}function Fr(O){O.expression.kind===110?Ju(O):qv(O)&&O.parent.parent.kind===312&&(ny(O.expression)?Is(O,O.parent):jo(O))}function Yi(O){ba(O.left,O),ba(O.right,O),yl(O.left.expression,O.left,!1,!0)}function Ds(O){const he=Ku(O.arguments[0].expression);he&&he.valueDeclaration&&K(he,he.valueDeclaration,32),dc(O,he,!0)}function Is(O,he){const Xe=O.expression,Ft=Xe.expression;ba(Ft,Xe),ba(Xe,O),ba(O,he),yl(Ft,O,!0,!0)}function Cc(O){let he=Ku(O.arguments[0]);const Xe=O.parent.parent.kind===312;he=Ho(he,O.arguments[0],Xe,!1,!1),dc(O,he,!1)}function Uc(O){var he;const Xe=Ku(O.left.expression,c)||Ku(O.left.expression,s);if(!Hr(O)&&!nre(Xe))return;const Ft=CC(O.left);if(!(Ie(Ft)&&((he=c9(s,Ft.escapedText))==null?void 0:he.flags)&2097152))if(ba(O.left,O),ba(O.right,O),Ie(O.left.expression)&&s===e&&g2(e,O.left.expression))E_(O);else if(ty(O)){go(O,67108868,"__computed");const zr=Ho(Xe,O.left.expression,Ec(O.left),!1,!1);kt(O,zr)}else jo(Ls(O.left,Ab))}function jo(O){E.assert(!Ie(O)),ba(O.expression,O),yl(O.expression,O,!1,!1)}function Ho(O,he,Xe,Ft,zr){return(O==null?void 0:O.flags)&2097152||(Xe&&!Ft&&(O=Kf(he,O,(ji,fa,pa)=>{if(fa)return K(fa,ji,67110400),fa;{const lc=pa?pa.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=Bs());return Oe(lc,pa,ji,67110400,110735)}})),zr&&O&&O.valueDeclaration&&K(O,O.valueDeclaration,32)),O}function dc(O,he,Xe){if(!he||!Nf(he))return;const Ft=Xe?he.members||(he.members=Bs()):he.exports||(he.exports=Bs());let zr=0,Vn=0;po(FT(O))?(zr=8192,Vn=103359):Rs(O)&&wb(O)&&(ct(O.arguments[2].properties,Ln=>{const ji=us(Ln);return!!ji&&Ie(ji)&&on(ji)==="set"})&&(zr|=65540,Vn|=78783),ct(O.arguments[2].properties,Ln=>{const ji=us(Ln);return!!ji&&Ie(ji)&&on(ji)==="get"})&&(zr|=32772,Vn|=46015)),zr===0&&(zr=4,Vn=0),Oe(Ft,he,O,zr|67108864,Vn&-67108865)}function Ec(O){return Zr(O.parent)?__(O.parent).parent.kind===312:O.parent.parent.kind===312}function yl(O,he,Xe,Ft){let zr=Ku(O,c)||Ku(O,s);const Vn=Ec(he);zr=Ho(zr,he.expression,Vn,Xe,Ft),dc(he,zr,Xe)}function Nf(O){if(O.flags&1072)return!0;const he=O.valueDeclaration;if(he&&Rs(he))return!!FT(he);let Xe=he?hi(he)?he.initializer:Zr(he)?he.right:Sn(he)&&Zr(he.parent)?he.parent.right:void 0:void 0;if(Xe=Xe&&C8(Xe),Xe){const Ft=ny(hi(he)?he.name:Zr(he)?he.left:he);return!!E1(Zr(Xe)&&(Xe.operatorToken.kind===57||Xe.operatorToken.kind===61)?Xe.right:Xe,Ft)}return!1}function __(O){for(;Zr(O.parent);)O=O.parent;return O.parent}function Ku(O,he=s){if(Ie(O))return c9(he,O.escapedText);{const Xe=Ku(O.expression);return Xe&&Xe.exports&&Xe.exports.get(Kg(O))}}function Kf(O,he,Xe){if(g2(e,O))return e.symbol;if(Ie(O))return Xe(O,Ku(O),he);{const Ft=Kf(O.expression,he,Xe),zr=P8(O);return Pi(zr)&&E.fail("unexpected PrivateIdentifier"),Xe(zr,Ft&&Ft.exports&&Ft.exports.get(Kg(O)),Ft)}}function sm(O){!e.commonJsModuleIndicator&&Gu(O,!1)&&$a(O)}function qm(O){if(O.kind===263)qo(O,32,899503);else{const zr=O.name?O.name.escapedText:"__class";go(O,32,zr),O.name&&ue.add(O.name.escapedText)}const{symbol:he}=O,Xe=ae(4194308,"prototype"),Ft=he.exports.get(Xe.escapedName);Ft&&(O.name&&ba(O.name,O),e.bindDiagnostics.push(ee(Ft.declarations[0],p.Duplicate_identifier_0,Xo(Xe)))),he.exports.set(Xe.escapedName,Xe),Xe.parent=he}function _h(O){return zv(O)?qo(O,128,899967):qo(O,256,899327)}function _u(O){if(j&&Fc(O,O.name),!Ns(O.name)){const he=O.kind===260?O:O.parent.parent;Hr(O)&&Uv(he)&&!b1(O)&&!(y1(O)&32)?Cn(O,2097152,2097152):hz(O)?qo(O,2,111551):$v(O)?Cn(O,1,111551):Cn(O,1,111550)}}function fh(O){if(!(O.kind===348&&s.kind!==330)&&(j&&!(O.flags&33554432)&&Fc(O,O.name),Ns(O.name)?go(O,1,"__"+O.parent.parameters.indexOf(O)):Cn(O,1,111551),O_(O,O.parent))){const he=O.parent.parent;Oe(he.symbol.members,he.symbol,O,4|(O.questionToken?16777216:0),0)}}function H_(O){!e.isDeclarationFile&&!(O.flags&33554432)&&CE(O)&&($|=4096),Ro(O),j?(Wt(O),qo(O,16,110991)):Cn(O,16,110991)}function Ag(O){!e.isDeclarationFile&&!(O.flags&33554432)&&CE(O)&&($|=4096),d&&(O.flowNode=d),Ro(O);const he=O.name?O.name.escapedText:"__function";return go(O,16,he)}function f_(O,he,Xe){return!e.isDeclarationFile&&!(O.flags&33554432)&&CE(O)&&($|=4096),d&&h5(O)&&(O.flowNode=d),ty(O)?go(O,he,"__computed"):Cn(O,he,Xe)}function Q(O){const he=Pr(O,Xe=>Xe.parent&&cx(Xe.parent)&&Xe.parent.extendsType===Xe);return he&&he.parent}function Ye(O){if(kp(O.parent)){const he=L5(O.parent);he?(E.assertNode(he,Dm),he.locals??(he.locals=Bs()),Oe(he.locals,void 0,O,262144,526824)):Cn(O,262144,526824)}else if(O.parent.kind===195){const he=Q(O.parent);he?(E.assertNode(he,Dm),he.locals??(he.locals=Bs()),Oe(he.locals,void 0,O,262144,526824)):go(O,262144,fe(O))}else Cn(O,262144,526824)}function Ct(O){const he=ch(O);return he===1||he===2&&n2(t)}function At(O){if(!(d.flags&1))return!1;if(d===pe&&(n8(O)&&O.kind!==242||O.kind===263||O.kind===267&&Ct(O))&&(d=H,!t.allowUnreachableCode)){const Xe=Kre(t)&&!(O.flags&33554432)&&(!ac(O)||!!(Gh(O.declarationList)&7)||O.declarationList.declarations.some(Ft=>!!Ft.initializer));CLe(O,(Ft,zr)=>se(Xe,Ft,zr,p.Unreachable_code_detected))}return!0}}function CLe(e,t){if(Ei(e)&&cbe(e)&&Cs(e.parent)){const{statements:n}=e.parent,i=LW(n,e);iB(i,cbe,(s,o)=>t(i[s],i[o-1]))}else t(e,e)}function cbe(e){return!Xc(e)&&!ELe(e)&&!L1(e)&&!(ac(e)&&!(Gh(e)&7)&&e.declarationList.declarations.some(t=>!t.initializer))}function ELe(e){switch(e.kind){case 264:case 265:return!0;case 267:return ch(e)!==1;case 266:return Rn(e,4096);default:return!1}}function g2(e,t){let n=0;const i=vD();for(i.enqueue(t);!i.isEmpty()&&n<100;){if(n++,t=i.dequeue(),Db(t)||yg(t))return!0;if(Ie(t)){const s=c9(e,t.escapedText);if(s&&s.valueDeclaration&&hi(s.valueDeclaration)&&s.valueDeclaration.initializer){const o=s.valueDeclaration.initializer;i.enqueue(o),il(o,!0)&&(i.enqueue(o.left),i.enqueue(o.right))}}}return!1}function BU(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(h5(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 As(e.parent)||ec(e.parent)?0:34}return 0}function c9(e,t){var n,i,s,o;const c=(i=(n=Wn(e,Dm))==null?void 0:n.locals)==null?void 0:i.get(t);if(c)return c.exportSymbol??c;if(Ni(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t))return e.jsGlobalAugmentations.get(t);if(zd(e))return(o=(s=e.symbol)==null?void 0:s.exports)==null?void 0:o.get(t)}var JU,zU,lbe,PLe=Dt({"src/compiler/binder.ts"(){Fs(),db(),JU=(e=>(e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly",e))(JU||{}),zU=(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))(zU||{}),lbe=kLe()}});function Tse(e,t,n,i,s,o,c,u,f,g){return d;function d(y=()=>!0){const S=[],T=[];return{walkType:ue=>{try{return k(ue),{visitedTypes:yT(S),visitedSymbols:yT(T)}}finally{lg(S),lg(T)}},walkSymbol:ue=>{try{return Y(ue),{visitedTypes:yT(S),visitedSymbols:yT(T)}}finally{lg(S),lg(T)}}};function k(ue){if(!(!ue||S[ue.id]||(S[ue.id]=ue,Y(ue.symbol)))){if(ue.flags&524288){const H=ue,q=H.objectFlags;q&4&&w(ue),q&32&&$(ue),q&3&&re(ue),q&24&&R(H)}ue.flags&262144&&P(ue),ue.flags&3145728&&F(ue),ue.flags&4194304&&J(ue),ue.flags&8388608&&U(ue)}}function w(ue){k(ue.target),rr(g(ue),k)}function P(ue){k(u(ue))}function F(ue){rr(ue.types,k)}function J(ue){k(ue.type)}function U(ue){k(ue.objectType),k(ue.indexType),k(ue.constraint)}function $(ue){k(ue.typeParameter),k(ue.constraintType),k(ue.templateType),k(ue.modifiersType)}function j(ue){const pe=t(ue);pe&&k(pe.type),rr(ue.typeParameters,k);for(const H of ue.parameters)Y(H);k(e(ue)),k(n(ue))}function re(ue){R(ue),rr(ue.typeParameters,k),rr(i(ue),k),k(ue.thisType)}function R(ue){const pe=s(ue);for(const H of pe.indexInfos)k(H.keyType),k(H.type);for(const H of pe.callSignatures)j(H);for(const H of pe.constructSignatures)j(H);for(const H of pe.properties)Y(H)}function Y(ue){if(!ue)return!1;const pe=Ks(ue);if(T[pe])return!1;if(T[pe]=ue,!y(ue))return!0;const H=o(ue);return k(H),ue.exports&&ue.exports.forEach(Y),rr(ue.declarations,q=>{if(q.type&&q.type.kind===186){const ee=q.type,oe=c(f(ee.exprName));Y(oe)}}),!1}}}var DLe=Dt({"src/compiler/symbolWalker.ts"(){Fs()}});function fA({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t},n,i,s){const o=c();return{relativePreference:s!==void 0?Sl(s)?0:1:e==="relative"?0:e==="non-relative"?1:e==="project-relative"?3:2,getAllowedEndingsInPreferredOrder:u=>{const f=u!==i.impliedNodeFormat?c(u):o;if((u??i.impliedNodeFormat)===99)return i6(n,i.fileName)?[3,2]:[2];if(Ru(n)===1)return f===2?[2,1]:[1,2];const g=i6(n,i.fileName);switch(f){case 2:return g?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return g?[1,0,3,2]:[1,0,2];case 0:return g?[0,1,3,2]:[0,1,2];default:E.assertNever(f)}}};function c(u){if(s!==void 0){if(Kv(s))return 2;if(Yo(s,"/index"))return 1}return cne(t,u??i.impliedNodeFormat,n,i)}}function wLe(e,t,n,i,s,o,c={}){const u=ube(e,t,n,i,s,fA({},e,t,o),{},c);if(u!==o)return u}function l9(e,t,n,i,s,o={}){return ube(e,t,n,i,s,fA({},e,t),{},o)}function ALe(e,t,n,i,s,o={}){const c=WU(t.fileName,i),u=hbe(c,n,i,s,o);return Qa(u,f=>kse(f,c,t,i,e,s,!0,o.overrideImportMode))}function ube(e,t,n,i,s,o,c,u={}){const f=WU(n,s),g=hbe(f,i,s,c,u);return Qa(g,d=>kse(d,f,t,s,e,c,void 0,u.overrideImportMode))||dbe(i,f,e,s,u.overrideImportMode||t.impliedNodeFormat,o)}function NLe(e,t,n,i,s={}){return _be(e,t,n,i,s)[0]}function _be(e,t,n,i,s={}){var o;const c=s5(e);if(!c)return Ve;const u=(o=n.getModuleSpecifierCache)==null?void 0:o.call(n),f=u==null?void 0:u.get(t.path,c.path,i,s);return[f==null?void 0:f.moduleSpecifiers,c,f==null?void 0:f.modulePaths,u]}function fbe(e,t,n,i,s,o,c={}){return pbe(e,t,n,i,s,o,c,!1).moduleSpecifiers}function pbe(e,t,n,i,s,o,c={},u){let f=!1;const g=OLe(e,t);if(g)return{moduleSpecifiers:[g],computedWithoutCache:f};let[d,y,S,T]=_be(e,i,s,o,c);if(d)return{moduleSpecifiers:d,computedWithoutCache:f};if(!y)return{moduleSpecifiers:Ve,computedWithoutCache:f};f=!0,S||(S=ybe(WU(i.fileName,s),y.originalFileName,s));const k=ILe(S,n,i,s,o,c,u);return T==null||T.set(i.path,y.path,o,c,S,k),{moduleSpecifiers:k,computedWithoutCache:f}}function ILe(e,t,n,i,s,o={},c){const u=WU(n.fileName,i),f=fA(s,t,n),g=rr(e,w=>rr(i.getFileIncludeReasons().get(Io(w.path,i.getCurrentDirectory(),u.getCanonicalFileName)),P=>{if(P.kind!==3||P.file!==n.path||n.impliedNodeFormat&&n.impliedNodeFormat!==Oae(n,P.index,t))return;const F=DA(n,P.index).text;return f.relativePreference!==1||!nf(F)?F:void 0}));if(g)return[g];const d=ct(e,w=>w.isInNodeModules);let y,S,T,k;for(const w of e){const P=w.isInNodeModules?kse(w,u,n,i,t,s,void 0,o.overrideImportMode):void 0;if(y=_r(y,P),P&&w.isRedirect)return y;if(!P){const F=dbe(w.path,u,t,i,o.overrideImportMode||n.impliedNodeFormat,f,w.isRedirect);if(!F)continue;w.isRedirect?T=_r(T,F):IJ(F)?W1(F)?k=_r(k,F):S=_r(S,F):(c||!d||w.isInNodeModules)&&(k=_r(k,F))}}return S!=null&&S.length?S:T!=null&&T.length?T:y!=null&&y.length?y:E.checkDefined(k)}function WU(e,t){e=Xi(e,t.getCurrentDirectory());const n=nu(t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames():!0),i=Un(e);return{getCanonicalFileName:n,importingSourceFileName:e,sourceDirectory:i,canonicalSourceDirectory:n(i)}}function dbe(e,t,n,i,s,{getAllowedEndingsInPreferredOrder:o,relativePreference:c},u){const{baseUrl:f,paths:g,rootDirs:d}=n;if(u&&!g)return;const{sourceDirectory:y,canonicalSourceDirectory:S,getCanonicalFileName:T}=t,k=o(s),w=d&&RLe(d,e,y,T,k,n)||pA(Fv(Rp(y,e,T)),k,n);if(!f&&!g&&!FF(n)||c===0)return u?void 0:w;const P=Xi(U5(n,i)||f,i.getCurrentDirectory()),F=Tbe(e,P,T);if(!F)return u?void 0:w;const J=u?void 0:MLe(e,y,n,i,s),U=u||J===void 0?g&&vbe(F,g,k,i,n):void 0;if(u)return U;const $=J??(U===void 0&&f!==void 0?pA(F,k,n):U);if(!$)return w;if(c===1&&!nf($))return $;if(c===3&&!nf($)){const j=n.configFilePath?Io(Un(n.configFilePath),i.getCurrentDirectory(),t.getCanonicalFileName):t.getCanonicalFileName(i.getCurrentDirectory()),re=Io(e,j,T),R=Vi(S,j),Y=Vi(re,j);if(R&&!Y||!R&&Y)return $;const ue=xse(i,Un(re)),pe=xse(i,y),H=!SC(i);return FLe(ue,pe,H)?w:$}return xbe($)||u9(w)e.fileExists(Mn(n,"package.json"))?n:void 0)}function gbe(e,t,n,i,s){var o;const c=Zh(n),u=n.getCurrentDirectory(),f=n.isSourceOfProjectReferenceRedirect(t)?n.getProjectReferenceRedirect(t):void 0,g=Io(t,u,c),d=n.redirectTargetsMap.get(g)||Ve,S=[...f?[f]:Ve,t,...d].map(F=>Xi(F,u));let T=!Wi(S,QE);if(!i){const F=rr(S,J=>!(T&&QE(J))&&s(J,f===J));if(F)return F}const k=(o=n.getSymlinkCache)==null?void 0:o.call(n).getSymlinkedDirectoriesByRealpath(),w=Xi(t,u);return k&&jp(Un(w),F=>{const J=k.get(_l(Io(F,u,c)));if(J)return OJ(e,F,c)?!1:rr(S,U=>{if(!OJ(U,F,c))return;const $=Rp(F,U,c);for(const j of J){const re=V0(j,$),R=s(re,U===f);if(T=!0,R)return R}})})||(i?rr(S,F=>T&&QE(F)?void 0:s(F,F===f)):void 0)}function hbe(e,t,n,i,s={}){var o;const c=Io(e.importingSourceFileName,n.getCurrentDirectory(),Zh(n)),u=Io(t,n.getCurrentDirectory(),Zh(n)),f=(o=n.getModuleSpecifierCache)==null?void 0:o.call(n);if(f){const d=f.get(c,u,i,s);if(d!=null&&d.modulePaths)return d.modulePaths}const g=ybe(e,t,n);return f&&f.setModulePaths(c,u,i,s,g),g}function ybe(e,t,n){const i=new Map;gbe(e.importingSourceFileName,t,n,!0,(o,c)=>{const u=W1(o);i.set(o,{path:e.getCanonicalFileName(o),isRedirect:c,isInNodeModules:u})});const s=[];for(let o=e.canonicalSourceDirectory;i.size!==0;){const c=_l(o);let u;i.forEach(({path:g,isRedirect:d,isInNodeModules:y},S)=>{Vi(g,c)&&((u||(u=[])).push({path:S,isRedirect:d,isInNodeModules:y}),i.delete(S))}),u&&(u.length>1&&u.sort(mbe),s.push(...u));const f=Un(o);if(f===o)break;o=f}if(i.size){const o=gs(i.entries(),([c,{isRedirect:u,isInNodeModules:f}])=>({path:c,isRedirect:u,isInNodeModules:f}));o.length>1&&o.sort(mbe),s.push(...o)}return s}function OLe(e,t){var n;const i=(n=e.declarations)==null?void 0:n.find(c=>vz(c)&&(!Jv(c)||!Sl(hp(c.name))));if(i)return i.name.text;const o=Ri(e.declarations,c=>{var u,f,g,d;if(!Sc(c))return;const y=w(c);if(!((u=y==null?void 0:y.parent)!=null&&u.parent&&Yd(y.parent)&&su(y.parent.parent)&&Ni(y.parent.parent.parent)))return;const S=(d=(g=(f=y.parent.parent.symbol.exports)==null?void 0:f.get("export="))==null?void 0:g.valueDeclaration)==null?void 0:d.expression;if(!S)return;const T=t.getSymbolAtLocation(S);if(!T)return;if(((T==null?void 0:T.flags)&2097152?t.getAliasedSymbol(T):T)===c.symbol)return y.parent.parent;function w(P){for(;P.flags&8;)P=P.parent;return P}})[0];if(o)return o.name.text}function vbe(e,t,n,i,s){for(const c in t)for(const u of t[c]){const f=Hs(u),g=f.indexOf("*"),d=n.map(y=>({ending:y,value:pA(e,[y],s)}));if(nh(f)&&d.push({ending:void 0,value:e}),g!==-1){const y=f.substring(0,g),S=f.substring(g+1);for(const{ending:T,value:k}of d)if(k.length>=y.length+S.length&&Vi(k,y)&&Yo(k,S)&&o({ending:T,value:k})){const w=k.substring(y.length,k.length-S.length);if(!nf(w))return $T(c,w)}}else if(ct(d,y=>y.ending!==0&&f===y.value)||ct(d,y=>y.ending===0&&f===y.value&&o(y)))return c}function o({ending:c,value:u}){return c!==0||u===pA(e,[c],s,i)}}function _9(e,t,n,i,s,o,c,u,f){if(typeof o=="string"){const g=!SC(t),d=()=>t.getCommonSourceDirectory(),y=f&&yq(n,e,g,d),S=f&&hq(n,e,g,d),T=Xi(Mn(i,o),void 0),k=HT(n)?$u(n)+Ese(n,e):void 0;switch(u){case 0:if(k&&Gg(k,T,g)===0||Gg(n,T,g)===0||y&&Gg(y,T,g)===0||S&&Gg(S,T,g)===0)return{moduleFileToTry:s};break;case 1:if(k&&Mp(T,k,g)){const J=Rp(T,k,!1);return{moduleFileToTry:Xi(Mn(Mn(s,o),J),void 0)}}if(Mp(T,n,g)){const J=Rp(T,n,!1);return{moduleFileToTry:Xi(Mn(Mn(s,o),J),void 0)}}if(y&&Mp(T,y,g)){const J=Rp(T,y,!1);return{moduleFileToTry:Mn(s,J)}}if(S&&Mp(T,S,g)){const J=Rp(T,S,!1);return{moduleFileToTry:Mn(s,J)}}break;case 2:const w=T.indexOf("*"),P=T.slice(0,w),F=T.slice(w+1);if(k&&Vi(k,P,g)&&Yo(k,F,g)){const J=k.slice(P.length,k.length-F.length);return{moduleFileToTry:$T(s,J)}}if(Vi(n,P,g)&&Yo(n,F,g)){const J=n.slice(P.length,n.length-F.length);return{moduleFileToTry:$T(s,J)}}if(y&&Vi(y,P,g)&&Yo(y,F,g)){const J=y.slice(P.length,y.length-F.length);return{moduleFileToTry:$T(s,J)}}if(S&&Vi(S,P,g)&&Yo(S,F,g)){const J=S.slice(P.length,S.length-F.length);return{moduleFileToTry:$T(s,J)}}break}}else{if(Array.isArray(o))return rr(o,g=>_9(e,t,n,i,s,g,c,u,f));if(typeof o=="object"&&o!==null){for(const g of ug(o))if(g==="default"||c.indexOf(g)>=0||uA(c,g)){const d=o[g],y=_9(e,t,n,i,s,d,c,u,f);if(y)return y}}}}function LLe(e,t,n,i,s,o,c){return typeof o=="object"&&o!==null&&!Array.isArray(o)&&a9(o)?rr(ug(o),u=>{const f=Xi(Mn(s,u),void 0),g=Yo(u,"/")?1:u.includes("*")?2:0;return _9(e,t,n,i,f,o[u],c,g,!1)}):_9(e,t,n,i,s,o,c,0,!1)}function MLe(e,t,n,i,s){var o,c,u;if(!i.readFile||!FF(n))return;const f=xse(i,t);if(!f)return;const g=Mn(f,"package.json"),d=(c=(o=i.getPackageJsonInfoCache)==null?void 0:o.call(i))==null?void 0:c.getPackageJsonInfo(g);if(cse(d)||!i.fileExists(g))return;const y=(d==null?void 0:d.contents.packageJsonContent)||K5(i.readFile(g)),S=y==null?void 0:y.imports;if(!S)return;const T=gy(n,s);return(u=rr(ug(S),k=>{if(!Vi(k,"#")||k==="#"||Vi(k,"#/"))return;const w=Yo(k,"/")?1:k.includes("*")?2:0;return _9(n,i,e,f,k,S[k],T,w,!0)}))==null?void 0:u.moduleFileToTry}function RLe(e,t,n,i,s,o){const c=bbe(t,e,i);if(c===void 0)return;const u=bbe(n,e,i),f=Zs(u,d=>nr(c,y=>Fv(Rp(d,y,i)))),g=dB(f,rw);if(g)return pA(g,s,o)}function kse({path:e,isRedirect:t},{getCanonicalFileName:n,canonicalSourceDirectory:i},s,o,c,u,f,g){if(!o.fileExists||!o.readFile)return;const d=kF(e);if(!d)return;const S=fA(u,c,s).getAllowedEndingsInPreferredOrder();let T=e,k=!1;if(!f){let $=d.packageRootIndex,j;for(;;){const{moduleFileToTry:re,packageRootPath:R,blockedByExports:Y,verbatimFromExports:ue}=U($);if(Ru(c)!==1){if(Y)return;if(ue)return re}if(R){T=R,k=!0;break}if(j||(j=re),$=e.indexOf(Fo,$+1),$===-1){T=pA(j,S,c,o);break}}}if(t&&!k)return;const w=o.getGlobalTypingsCacheLocation&&o.getGlobalTypingsCacheLocation(),P=n(T.substring(0,d.topLevelNodeModulesIndex));if(!(Vi(i,P)||w&&Vi(n(w),P)))return;const F=T.substring(d.topLevelPackageNameIndex+1),J=N3(F);return Ru(c)===1&&J===F?void 0:J;function U($){var j,re;const R=e.substring(0,$),Y=Mn(R,"package.json");let ue=e,pe=!1;const H=(re=(j=o.getPackageJsonInfoCache)==null?void 0:j.call(o))==null?void 0:re.getPackageJsonInfo(Y);if(r9(H)||H===void 0&&o.fileExists(Y)){const q=(H==null?void 0:H.contents.packageJsonContent)||K5(o.readFile(Y)),ee=g||s.impliedNodeFormat;if(IF(c)){const ae=R.substring(d.topLevelPackageNameIndex+1),K=N3(ae),fe=gy(c,ee),ke=q!=null&&q.exports?LLe(c,o,e,R,K,q.exports,fe):void 0;if(ke)return{...ke,verbatimFromExports:!0};if(q!=null&&q.exports)return{moduleFileToTry:e,blockedByExports:!0}}const oe=q!=null&&q.typesVersions?e9(q.typesVersions):void 0;if(oe){const ae=e.slice(R.length+1),K=vbe(ae,oe.paths,S,o,c);K===void 0?pe=!0:ue=Mn(R,K)}const Se=(q==null?void 0:q.typings)||(q==null?void 0:q.types)||(q==null?void 0:q.main)||"index.js";if(ls(Se)&&!(pe&&OW(yF(oe.paths),Se))){const ae=Io(Se,R,n),K=n(ue);if($u(ae)===$u(K))return{packageRootPath:R,moduleFileToTry:ue};if((q==null?void 0:q.type)!=="module"&&!$c(K,dw)&&Vi(K,ae)&&Un(K)===d1(ae)&&$u(wc(K))==="index")return{packageRootPath:R,moduleFileToTry:ue}}}else{const q=n(ue.substring(d.packageRootIndex+1));if(q==="index.d.ts"||q==="index.js"||q==="index.ts"||q==="index.tsx")return{moduleFileToTry:ue,packageRootPath:R}}return{moduleFileToTry:ue}}}function jLe(e,t){if(!e.fileExists)return;const n=Op(VE({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]));for(const i of n){const s=t+i;if(e.fileExists(s))return s}}function bbe(e,t,n){return Ri(t,i=>{const s=Tbe(e,i,n);return s!==void 0&&xbe(s)?void 0:s})}function pA(e,t,n,i){if($c(e,[".json",".mjs",".cjs"]))return e;const s=$u(e);if(e===s)return e;const o=t.indexOf(2),c=t.indexOf(3);if($c(e,[".mts",".cts"])&&c!==-1&&cg===0||g===1);return f!==-1&&f(e[e.Relative=0]="Relative",e[e.NonRelative=1]="NonRelative",e[e.Shortest=2]="Shortest",e[e.ExternalNonRelative=3]="ExternalNonRelative",e))(Pse||{})}}),h2={};Gc(h2,{RelativePreference:()=>Pse,countPathComponents:()=>u9,forEachFileNameOfModule:()=>gbe,getModuleSpecifier:()=>l9,getModuleSpecifierPreferences:()=>fA,getModuleSpecifiers:()=>fbe,getModuleSpecifiersWithCacheInfo:()=>pbe,getNodeModulesPackageName:()=>ALe,tryGetJSExtensionForFile:()=>Ese,tryGetModuleSpecifiersFromCache:()=>NLe,tryGetRealFileNameForNonJsDeclarationFileName:()=>Sbe,updateModuleSpecifier:()=>wLe});var wse=Dt({"src/compiler/_namespaces/ts.moduleSpecifiers.ts"(){Dse()}});function BLe(){this.flags=0}function Oa(e){return e.id||(e.id=Ise,Ise++),e.id}function Ks(e){return e.id||(e.id=Nse,Nse++),e.id}function VU(e,t){const n=ch(e);return n===1||t&&n===2}function Ase(e){var t=[],n=r=>{t.push(r)},i,s=new Set,o,c,u=Il.getSymbolConstructor(),f=Il.getTypeConstructor(),g=Il.getSignatureConstructor(),d=0,y=0,S=0,T=0,k=0,w=0,P,F,J=!1,U=Bs(),$=[1],j=e.getCompilerOptions(),re=Fa(j),R=au(j),Y=!!j.experimentalDecorators,ue=i3(j),pe=tne(j),H=Bb(j),q=Mu(j,"strictNullChecks"),ee=Mu(j,"strictFunctionTypes"),oe=Mu(j,"strictBindCallApply"),Se=Mu(j,"strictPropertyInitialization"),ae=Mu(j,"noImplicitAny"),K=Mu(j,"noImplicitThis"),fe=Mu(j,"useUnknownInCatchVariables"),ke=!!j.keyofStringsOnly,Oe=ke?1:0,me=j.suppressExcessPropertyErrors?0:8192,be=j.exactOptionalPropertyTypes,xe=hct(),De=Q_t(),ft=um(),ge=Bs(),Fe=xa(4,"undefined");Fe.declarations=[];var $e=xa(1536,"globalThis",8);$e.exports=ge,$e.declarations=[],ge.set($e.escapedName,$e);var Pt=xa(4,"arguments"),at=xa(4,"require"),Je=j.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",pt=!j.verbatimModuleSyntax||!!j.importsNotUsedAsValues,zt,Vt,hr=0,Lr,er=0;const jt={getNodeCount:()=>Du(e.getSourceFiles(),(r,a)=>r+a.nodeCount,0),getIdentifierCount:()=>Du(e.getSourceFiles(),(r,a)=>r+a.identifierCount,0),getSymbolCount:()=>Du(e.getSourceFiles(),(r,a)=>r+a.symbolCount,y),getTypeCount:()=>d,getInstantiationCount:()=>S,getRelationCacheSizes:()=>({assignable:d_.size,identity:P_.size,subtype:Hm.size,strictSubtype:ep.size}),isUndefinedSymbol:r=>r===Fe,isArgumentsSymbol:r=>r===Pt,isUnknownSymbol:r=>r===tt,getMergedSymbol:Na,getDiagnostics:q7e,getGlobalDiagnostics:f_t,getRecursionIdentity:mZ,getUnmatchedProperties:age,getTypeOfSymbolAtLocation:(r,a)=>{const l=as(a);return l?sst(r,l):nt},getTypeOfSymbol:Xr,getSymbolsOfParameterPropertyDeclaration:(r,a)=>{const l=as(r,rs);return l===void 0?E.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(E.assert(O_(l,l.parent)),CP(l,Vo(a)))},getDeclaredTypeOfSymbol:Po,getPropertiesOfType:Ua,getPropertyOfType:(r,a)=>$s(r,Vo(a)),getPrivateIdentifierPropertyOfType:(r,a,l)=>{const _=as(l);if(!_)return;const m=Vo(a),h=HZ(m,_);return h?qge(r,h):void 0},getTypeOfPropertyOfType:(r,a)=>je(r,Vo(a)),getIndexInfoOfType:(r,a)=>zg(r,a===0?Ce:_t),getIndexInfosOfType:Wu,getIndexInfosOfIndexSymbol:eme,getSignaturesOfType:Es,getIndexTypeOfType:(r,a)=>bv(r,a===0?Ce:_t),getIndexType:r=>pm(r),getBaseTypes:Z_,getBaseTypeOfLiteralType:Oh,getWidenedType:gf,getTypeFromTypeNode:r=>{const a=as(r,ki);return a?ii(a):nt},getParameterType:Ld,getParameterIdentifierInfoAtPosition:Lot,getPromisedTypeOfPromise:jI,getAwaitedType:r=>fT(r),getReturnTypeOfSignature:Ja,isNullableType:Tj,getNullableType:aj,getNonNullableType:Lh,getNonOptionalType:vZ,getTypeArguments:So,typeToTypeNode:ft.typeToTypeNode,indexInfoToIndexSignatureDeclaration:ft.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:ft.signatureToSignatureDeclaration,symbolToEntityName:ft.symbolToEntityName,symbolToExpression:ft.symbolToExpression,symbolToNode:ft.symbolToNode,symbolToTypeParameterDeclarations:ft.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:ft.symbolToParameterDeclaration,typeParameterToDeclaration:ft.typeParameterToDeclaration,getSymbolsInScope:(r,a)=>{const l=as(r);return l?p_t(l,a):[]},getSymbolAtLocation:r=>{const a=as(r);return a?od(a,!0):void 0},getIndexInfosAtLocation:r=>{const a=as(r);return a?S_t(a):void 0},getShorthandAssignmentValueSymbol:r=>{const a=as(r);return a?T_t(a):void 0},getExportSpecifierLocalTargetSymbol:r=>{const a=as(r,vu);return a?x_t(a):void 0},getExportSymbolOfSymbol(r){return Na(r.exportSymbol||r)},getTypeAtLocation:r=>{const a=as(r);return a?Tk(a):nt},getTypeOfAssignmentPattern:r=>{const a=as(r,uE);return a&&TK(a)||nt},getPropertySymbolOfDestructuringAssignment:r=>{const a=as(r,Ie);return a?k_t(a):void 0},signatureToString:(r,a,l,_)=>Ym(r,as(a),l,_),typeToString:(r,a,l)=>Ar(r,as(a),l),symbolToString:(r,a,l,_)=>ni(r,as(a),l,_),typePredicateToString:(r,a,l)=>Zm(r,as(a),l),writeSignature:(r,a,l,_,m)=>Ym(r,as(a),l,_,m),writeType:(r,a,l,_)=>Ar(r,as(a),l,_),writeSymbol:(r,a,l,_,m)=>ni(r,as(a),l,_,m),writeTypePredicate:(r,a,l,_)=>Zm(r,as(a),l,_),getAugmentedPropertiesOfType:Hhe,getRootSymbols:K7e,getSymbolOfExpando:tK,getContextualType:(r,a)=>{const l=as(r,ot);if(l)return a&4?Ji(l,()=>y_(l,a)):y_(l,a)},getContextualTypeForObjectLiteralElement:r=>{const a=as(r,Yg);return a?Nge(a,void 0):void 0},getContextualTypeForArgumentAtIndex:(r,a)=>{const l=as(r,jv);return l&&Age(l,a)},getContextualTypeForJsxAttribute:r=>{const a=as(r,Q7);return a&&pNe(a,void 0)},isContextSensitive:op,getTypeOfPropertyOfContextualType:wv,getFullyQualifiedName:pf,getResolvedSignature:(r,a,l)=>yi(r,a,l,0),getCandidateSignaturesForStringLiteralCompletions:Rt,getResolvedSignatureForSignatureHelp:(r,a,l)=>Kn(r,()=>yi(r,a,l,16)),getExpandedParameters:d8e,hasEffectiveRestParameter:ag,containsArgumentsReference:Yde,getConstantValue:r=>{const a=as(r,i5e);return a?Ghe(a):void 0},isValidPropertyAccess:(r,a)=>{const l=as(r,nte);return!!l&&Uat(l,Vo(a))},isValidPropertyAccessForCompletions:(r,a,l)=>{const _=as(r,Sn);return!!_&&VNe(_,a,l)},getSignatureFromDeclaration:r=>{const a=as(r,As);return a?Ap(a):void 0},isImplementationOfOverload:r=>{const a=as(r,As);return a?r5e(a):void 0},getImmediateAliasedSymbol:Mge,getAliasedSymbol:ll,getEmitResolver:v0,getExportsOfModule:MS,getExportsAndPropertiesOfModule:r4,forEachExportAndPropertyOfModule:n4,getSymbolWalker:Tse(Ptt,ap,Ja,Z_,Nd,Xr,sd,r_,lf,So),getAmbientModules:Bft,getJsxIntrinsicTagNamesAt:xat,isOptionalParameter:r=>{const a=as(r,rs);return a?lI(a):!1},tryGetMemberInModuleExports:(r,a)=>RS(Vo(r),a),tryGetMemberInModuleExportsAndProperties:(r,a)=>i4(Vo(r),a),tryFindAmbientModule:r=>zY(r,!0),tryFindAmbientModuleWithoutAugmentations:r=>zY(r,!1),getApparentType:n_,getUnionType:Bn,isTypeAssignableTo:Qs,createAnonymousType:ao,createSignature:Jg,createSymbol:xa,createIndexInfo:ng,getAnyType:()=>B,getStringType:()=>Ce,getStringLiteralType:h_,getNumberType:()=>_t,getNumberLiteralType:Fd,getBigIntType:()=>Tt,createPromiseType:Fj,createArrayType:pu,getElementTypeOfArrayType:sj,getBooleanType:()=>fi,getFalseType:r=>r?Jt:ar,getTrueType:r=>r?Er:Nr,getVoidType:()=>Wr,getUndefinedType:()=>Pe,getNullType:()=>ce,getESSymbolType:()=>oi,getNeverType:()=>Cn,getOptionalType:()=>V,getPromiseType:()=>VR(!1),getPromiseLikeType:()=>twe(!1),getAsyncIterableType:()=>{const r=YY(!1);if(r!==fs)return r},isSymbolAccessible:gi,isArrayType:lp,isTupleType:da,isArrayLikeType:N0,isEmptyAnonymousObjectType:sg,isTypeInvalidDueToUnionDiscriminant:ctt,getExactOptionalProperties:Lnt,getAllPossiblePropertiesOfTypes:ltt,getSuggestedSymbolForNonexistentProperty:$ge,getSuggestionForNonexistentProperty:Xge,getSuggestedSymbolForNonexistentJSXAttribute:zNe,getSuggestedSymbolForNonexistentSymbol:(r,a,l)=>Qge(r,Vo(a),l),getSuggestionForNonexistentSymbol:(r,a,l)=>Jat(r,Vo(a),l),getSuggestedSymbolForNonexistentModule:$Z,getSuggestionForNonexistentExport:zat,getSuggestedSymbolForNonexistentClassMember:JNe,getBaseConstraintOfType:fu,getDefaultFromTypeParameter:r=>r&&r.flags&262144?$S(r):void 0,resolveName(r,a,l,_){return Go(a,Vo(r),l,void 0,void 0,!1,_)},getJsxNamespace:r=>xi(rv(r)),getJsxFragmentFactory:r=>{const a=Xhe(r);return a&&xi(lf(a).escapedText)},getAccessibleSymbolChain:Ry,getTypePredicateOfSignature:ap,resolveExternalModuleName:r=>{const a=as(r,ot);return a&&zu(a,a,!0)},resolveExternalModuleSymbol:X_,tryGetThisTypeAt:(r,a,l)=>{const _=as(r);return _&&Ege(_,a,l)},getTypeArgumentConstraint:r=>{const a=as(r,ki);return a&&Xct(a)},getSuggestionDiagnostics:(r,a)=>{const l=as(r,Ni)||E.fail("Could not determine parsed source file.");if(HE(l,j,e))return Ve;let _;try{return i=a,Uhe(l),E.assert(!!(jn(l).flags&1)),_=Nn(_,vS.getDiagnostics(l.fileName)),o7e(U7e(l),(m,h,x)=>{!Yk(m)&&!V7e(h,!!(m.flags&33554432))&&(_||(_=[])).push({...x,category:2})}),_||Ve}finally{i=void 0}},runWithCancellationToken:(r,a)=>{try{return i=r,a(jt)}finally{i=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:hn,isDeclarationVisible:Pd,isPropertyAccessible:Zge,getTypeOnlyAliasDeclaration:tp,getMemberOverrideModifierStatus:Put,isTypeParameterPossiblyReferenced:QR,typeHasCallOrConstructSignatures:xK};function Rt(r,a){const l=new Set,_=[];Ji(a,()=>yi(r,_,void 0,0));for(const m of _)l.add(m);_.length=0,Kn(a,()=>yi(r,_,void 0,0));for(const m of _)l.add(m);return gs(l)}function Kn(r,a){if(r=Pr(r,iz),r){const l=[],_=[];for(;r;){const h=jn(r);if(l.push([h,h.resolvedSignature]),h.resolvedSignature=void 0,t2(r)){const x=wi(un(r)),N=x.type;_.push([x,N]),x.type=void 0}r=Pr(r.parent,iz)}const m=a();for(const[h,x]of l)h.resolvedSignature=x;for(const[h,x]of _)h.type=x;return m}return a()}function Ji(r,a){const l=Pr(r,jv);if(l){let m=r;do jn(m).skipDirectInference=!0,m=m.parent;while(m&&m!==l)}J=!0;const _=Kn(r,a);if(J=!1,l){let m=r;do jn(m).skipDirectInference=void 0,m=m.parent;while(m&&m!==l)}return _}function yi(r,a,l,_){const m=as(r,jv);zt=l;const h=m?D4(m,a,_):void 0;return zt=void 0,h}var os=new Map,yr=new Map,_i=new Map,ln=new Map,Ht=new Map,Ue=new Map,Et=new Map,fr=new Map,Hn=new Map,ei=new Map,Ii=new Map,ns=new Map,Vs=new Map,_a=new Map,cr=new Map,br=[],Le=new Map,rt=new Set,tt=xa(4,"unknown"),yt=xa(0,"__resolving__"),ne=new Map,we=new Map,et=new Set,B=Oc(1,"any"),Ge=Oc(1,"any",262144,"auto"),mt=Oc(1,"any",void 0,"wildcard"),Be=Oc(1,"any",void 0,"blocked string"),nt=Oc(1,"error"),wt=Oc(1,"unresolved"),ir=Oc(1,"any",65536,"non-inferrable"),Yt=Oc(1,"intrinsic"),Kt=Oc(2,"unknown"),W=Oc(2,"unknown",void 0,"non-null"),Pe=Oc(32768,"undefined"),St=q?Pe:Oc(32768,"undefined",65536,"widening"),A=Oc(32768,"undefined",void 0,"missing"),le=be?A:Pe,V=Oc(32768,"undefined",void 0,"optional"),ce=Oc(65536,"null"),Ne=q?ce:Oc(65536,"null",65536,"widening"),Ce=Oc(4,"string"),_t=Oc(8,"number"),Tt=Oc(64,"bigint"),Jt=Oc(512,"false",void 0,"fresh"),ar=Oc(512,"false"),Er=Oc(512,"true",void 0,"fresh"),Nr=Oc(512,"true");Er.regularType=Nr,Er.freshType=Er,Nr.regularType=Nr,Nr.freshType=Er,Jt.regularType=ar,Jt.freshType=Jt,ar.regularType=ar,ar.freshType=Jt;var fi=Bn([ar,Nr]),oi=Oc(4096,"symbol"),Wr=Oc(16384,"void"),Cn=Oc(131072,"never"),Qi=Oc(131072,"never",262144,"silent"),pi=Oc(131072,"never",void 0,"implicit"),ci=Oc(131072,"never",void 0,"unreachable"),In=Oc(67108864,"object"),is=Bn([Ce,_t]),pr=Bn([Ce,_t,oi]),_o=ke?Ce:pr,kc=Bn([_t,Tt]),_s=Bn([Ce,_t,fi,Tt,ce,Pe]),Ra=QS(["",""],[_t]),go=XR(r=>r.flags&262144?cnt(r):r,()=>"(restrictive mapper)"),qo=XR(r=>r.flags&262144?mt:r,()=>"(permissive mapper)"),Ol=Oc(131072,"never",void 0,"unique literal"),$i=XR(r=>r.flags&262144?Ol:r,()=>"(unique literal mapper)"),zs,Ll=XR(r=>(zs&&(r===q_||r===so||r===Zc)&&zs(!0),r),()=>"(unmeasurable reporter)"),Ya=XR(r=>(zs&&(r===q_||r===so||r===Zc)&&zs(!1),r),()=>"(unreliable reporter)"),oa=ao(void 0,U,Ve,Ve,Ve),Wo=ao(void 0,U,Ve,Ve,Ve);Wo.objectFlags|=2048;var Zf=xa(2048,"__type");Zf.members=Bs();var Fc=ao(Zf,U,Ve,Ve,Ve),rc=ao(void 0,U,Ve,Ve,Ve),Ro=q?Bn([Pe,ce,rc]):Kt,fs=ao(void 0,U,Ve,Ve,Ve);fs.instantiations=new Map;var Wt=ao(void 0,U,Ve,Ve,Ve);Wt.objectFlags|=262144;var ho=ao(void 0,U,Ve,Ve,Ve),Pl=ao(void 0,U,Ve,Ve,Ve),Ml=ao(void 0,U,Ve,Ve,Ve),q_=Rf(),so=Rf();so.constraint=q_;var Zc=Rf(),se=Rf(),X=Rf();X.constraint=se;var Ee=zR(1,"<>",0,B),lt=Jg(void 0,void 0,void 0,Ve,B,void 0,0,0),Xt=Jg(void 0,void 0,void 0,Ve,nt,void 0,0,0),an=Jg(void 0,void 0,void 0,Ve,B,void 0,0,0),rn=Jg(void 0,void 0,void 0,Ve,Qi,void 0,0,0),En=ng(_t,Ce,!0),li=new Map,gn={get yieldType(){return E.fail("Not supported")},get returnType(){return E.fail("Not supported")},get nextType(){return E.fail("Not supported")}},Ps=O0(B,B,B),Qo=O0(B,B,Kt),gl=O0(Cn,B,Pe),yo={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:Wtt,getGlobalIterableType:YY,getGlobalIterableIteratorType:Vtt,getGlobalGeneratorType:Utt,resolveIterationType:(r,a)=>fT(r,a,p.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),mustHaveANextMethodDiagnostic:p.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:p.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:p.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},Vc={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:qtt,getGlobalIterableType:fme,getGlobalIterableIteratorType:Htt,getGlobalGeneratorType:Gtt,resolveIterationType:(r,a)=>r,mustHaveANextMethodDiagnostic:p.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:p.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:p.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},$a,hl=new Map,E_=[],cl,Ep,Ju,Te,kt,Fr,Yi,Ds,Is,Cc,Uc,jo,Ho,dc,Ec,yl,Nf,__,Ku,Kf,sm,qm,_h,_u,fh,H_,Ag,f_,Q,Ye,Ct,At,O,he,Xe,Ft,zr,Vn,Ln,ji,fa,pa,lc,Rl,Kc,G_,p_,ky,ja,Qp,Yp,Ci,ph,h0,Zp,w2,A2,If=new Map,am=0,Ff=0,dh=0,Ae=!1,We=0,bt,Nt,sr,Mr=[],tr=[],Rr=[],Yn=0,Gr=[],zn=[],Yr=0,ws=h_(""),Ta=Fd(0),ku=rZ({negative:!1,base10Value:"0"}),jl=[],mh=[],Z1=[],Ux=0,K1=!1,V6=0,U6=10,q6=[],hS=[],N2=[],qx=[],H6=[],Hx=[],Gx=[],$x=[],Xx=[],yS=[],Qx=[],I2=[],F2=[],Cy=[],Ey=[],Ng=[],ev=[],wa=yC(),vS=yC(),G6=Qm(),tv,gh,Hm=new Map,ep=new Map,d_=new Map,$_=new Map,P_=new Map,y0=new Map,bS=Bs();bS.set(Fe.escapedName,Fe);var $6=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",j.jsx===1?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return Y_t(),jt;function Yx(r){return r?cr.get(r):void 0}function Py(r,a){return r&&cr.set(r,a),a}function rv(r){if(r){const a=wr(r);if(a)if(px(r)){if(a.localJsxFragmentNamespace)return a.localJsxFragmentNamespace;const l=a.pragmas.get("jsxfrag");if(l){const m=ts(l)?l[0]:l;if(a.localJsxFragmentFactory=hx(m.arguments.factory,re),qe(a.localJsxFragmentFactory,qc,b_),a.localJsxFragmentFactory)return a.localJsxFragmentNamespace=lf(a.localJsxFragmentFactory).escapedText}const _=Xhe(r);if(_)return a.localJsxFragmentFactory=_,a.localJsxFragmentNamespace=lf(_).escapedText}else{const l=Zx(a);if(l)return a.localJsxNamespace=l}}return tv||(tv="React",j.jsxFactory?(gh=hx(j.jsxFactory,re),qe(gh,qc),gh&&(tv=lf(gh).escapedText)):j.reactNamespace&&(tv=Vo(j.reactNamespace))),gh||(gh=I.createQualifiedName(I.createIdentifier(xi(tv)),"createElement")),tv}function Zx(r){if(r.localJsxNamespace)return r.localJsxNamespace;const a=r.pragmas.get("jsx");if(a){const l=ts(a)?a[0]:a;if(r.localJsxFactory=hx(l.arguments.factory,re),qe(r.localJsxFactory,qc,b_),r.localJsxFactory)return r.localJsxNamespace=lf(r.localJsxFactory).escapedText}}function qc(r){return Fm(r,-1,-1),ur(r,qc,void 0)}function v0(r,a){return q7e(r,a),De}function Kx(r,a,...l){const _=r?yn(r,a,...l):gc(a,...l),m=wa.lookup(_);return m||(wa.add(_),_)}function Td(r,a,l,..._){const m=Me(a,l,..._);return m.skippedOn=r,m}function SS(r,a,...l){return r?yn(r,a,...l):gc(a,...l)}function Me(r,a,...l){const _=SS(r,a,...l);return wa.add(_),_}function xd(r,a){r?wa.add(a):vS.add({...a,category:2})}function Bl(r,a,l,..._){if(a.pos<0||a.end<0){if(!r)return;const m=wr(a);xd(r,"message"in l?xl(m,0,0,l,..._):Dz(m,l));return}xd(r,"message"in l?yn(a,l,..._):Zg(wr(a),a,l))}function nv(r,a,l,..._){const m=Me(r,l,..._);if(a){const h=yn(r,p.Did_you_forget_to_use_await);la(m,h)}return m}function ek(r,a){const l=Array.isArray(r)?rr(r,UJ):UJ(r);return l&&la(a,yn(l,p.The_declaration_was_marked_as_deprecated_here)),vS.add(a),a}function Dy(r){const a=e_(r);return a&&mr(r.declarations)>1?a.flags&64?ct(r.declarations,b0):Wi(r.declarations,b0):!!r.valueDeclaration&&b0(r.valueDeclaration)||mr(r.declarations)&&Wi(r.declarations,b0)}function b0(r){return!!(lb(r)&536870912)}function S0(r,a,l){const _=yn(r,p._0_is_deprecated,l);return ek(a,_)}function kP(r,a,l,_){const m=l?yn(r,p.The_signature_0_of_1_is_deprecated,_,l):yn(r,p._0_is_deprecated,_);return ek(a,m)}function xa(r,a,l){y++;const _=new u(r|33554432,a);return _.links=new Lse,_.links.checkFlags=l||0,_}function kd(r,a){const l=xa(1,r);return l.links.type=a,l}function TS(r,a){const l=xa(4,r);return l.links.type=a,l}function xS(r){let a=0;return r&2&&(a|=111551),r&1&&(a|=111550),r&4&&(a|=0),r&8&&(a|=900095),r&16&&(a|=110991),r&32&&(a|=899503),r&64&&(a|=788872),r&256&&(a|=899327),r&128&&(a|=899967),r&512&&(a|=110735),r&8192&&(a|=103359),r&32768&&(a|=46015),r&65536&&(a|=78783),r&262144&&(a|=526824),r&524288&&(a|=788968),r&2097152&&(a|=2097152),a}function iv(r,a){a.mergeId||(a.mergeId=Fse,Fse++),q6[a.mergeId]=r}function kS(r){const a=xa(r.flags,r.escapedName);return a.declarations=r.declarations?r.declarations.slice():[],a.parent=r.parent,r.valueDeclaration&&(a.valueDeclaration=r.valueDeclaration),r.constEnumOnlyModule&&(a.constEnumOnlyModule=!0),r.members&&(a.members=new Map(r.members)),r.exports&&(a.exports=new Map(r.exports)),iv(a,r),a}function Pp(r,a,l=!1){if(!(r.flags&xS(a.flags))||(a.flags|r.flags)&67108864){if(a===r)return r;if(!(r.flags&33554432)){const m=mc(r);if(m===tt)return a;r=kS(m)}a.flags&512&&r.flags&512&&r.constEnumOnlyModule&&!a.constEnumOnlyModule&&(r.constEnumOnlyModule=!1),r.flags|=a.flags,a.valueDeclaration&&A8(r,a.valueDeclaration),Nn(r.declarations,a.declarations),a.members&&(r.members||(r.members=Bs()),Cd(r.members,a.members,l)),a.exports&&(r.exports||(r.exports=Bs()),Cd(r.exports,a.exports,l)),l||iv(r,a)}else if(r.flags&1024)r!==$e&&Me(a.declarations&&us(a.declarations[0]),p.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,ni(r));else{const m=!!(r.flags&384||a.flags&384),h=!!(r.flags&2||a.flags&2),x=m?p.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:h?p.Cannot_redeclare_block_scoped_variable_0:p.Duplicate_identifier_0,N=a.declarations&&wr(a.declarations[0]),L=r.declarations&&wr(r.declarations[0]),z=o8(N,j.checkJs),Z=o8(L,j.checkJs),de=ni(a);if(N&&L&&$a&&!m&&N!==L){const _e=Gg(N.path,L.path)===-1?N:L,Re=_e===N?L:N,st=J4($a,`${_e.path}|${Re.path}`,()=>({firstFile:_e,secondFile:Re,conflictingSymbols:new Map})),gt=J4(st.conflictingSymbols,de,()=>({isBlockScoped:h,firstFileLocations:[],secondFileLocations:[]}));z||_(gt.firstFileLocations,a),Z||_(gt.secondFileLocations,r)}else z||Dp(a,x,de,r),Z||Dp(r,x,de,a)}return r;function _(m,h){if(h.declarations)for(const x of h.declarations)Jf(m,x)}}function Dp(r,a,l,_){rr(r.declarations,m=>{hh(m,a,l,_.declarations)})}function hh(r,a,l,_){const m=(E1(r,!1)?jz(r):us(r))||r,h=Kx(m,a,l);for(const x of _||Ve){const N=(E1(x,!1)?jz(x):us(x))||x;if(N===m)continue;h.relatedInformation=h.relatedInformation||[];const L=yn(N,p._0_was_also_declared_here,l),z=yn(N,p.and_here);mr(h.relatedInformation)>=5||ct(h.relatedInformation,Z=>zE(Z,z)===0||zE(Z,L)===0)||la(h,mr(h.relatedInformation)?z:L)}}function tk(r,a){if(!(r!=null&&r.size))return a;if(!(a!=null&&a.size))return r;const l=Bs();return Cd(l,r),Cd(l,a),l}function Cd(r,a,l=!1){a.forEach((_,m)=>{const h=r.get(m);r.set(m,h?Pp(h,_,l):Na(_))})}function X6(r){var a,l,_;const m=r.parent;if(((a=m.symbol.declarations)==null?void 0:a[0])!==m){E.assert(m.symbol.declarations.length>1);return}if(Wd(m))Cd(ge,m.symbol.exports);else{const h=r.parent.parent.flags&33554432?void 0:p.Invalid_module_name_in_augmentation_module_0_cannot_be_found;let x=Sh(r,r,h,!0);if(!x)return;if(x=X_(x),x.flags&1920)if(ct(Ep,N=>x===N.symbol)){const N=Pp(m.symbol,x,!0);Ju||(Ju=new Map),Ju.set(r.text,N)}else{if((l=x.exports)!=null&&l.get("__export")&&((_=m.symbol.exports)!=null&&_.size)){const N=Ode(x,"resolvedExports");for(const[L,z]of gs(m.symbol.exports.entries()))N.has(L)&&!x.exports.has(L)&&Pp(N.get(L),z)}Pp(x,m.symbol)}else Me(r,p.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,r.text)}}function O2(r,a,l){a.forEach((m,h)=>{const x=r.get(h);x?rr(x.declarations,_(xi(h),l)):r.set(h,m)});function _(m,h){return x=>wa.add(yn(x,h,m))}}function wi(r){if(r.flags&33554432)return r.links;const a=Ks(r);return hS[a]??(hS[a]=new Lse)}function jn(r){const a=Oa(r);return N2[a]||(N2[a]=new BLe)}function Gm(r){return r.kind===312&&!af(r)}function m_(r,a,l){if(l){const _=Na(r.get(a));if(_&&(E.assert((Ko(_)&1)===0,"Should never get an instantiated symbol here."),_.flags&l||_.flags&2097152&&$l(_)&l))return _}}function CP(r,a){const l=r.parent,_=r.parent.parent,m=m_(l.locals,a,111551),h=m_($y(_.symbol),a,111551);return m&&h?[m,h]:E.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function yh(r,a){const l=wr(r),_=wr(a),m=Nm(r);if(l!==_){if(R&&(l.externalModuleIndicator||_.externalModuleIndicator)||!io(j)||Lb(a)||r.flags&33554432||x(a,r))return!0;const L=e.getSourceFiles();return L.indexOf(l)<=L.indexOf(_)}if(a.flags&16777216||Lb(a)||pge(a))return!0;if(r.pos<=a.pos&&!(xs(r)&&y8(a.parent)&&!r.initializer&&!r.exclamationToken)){if(r.kind===208){const L=w1(a,208);return L?Pr(L,Ea)!==Pr(r,Ea)||r.posPa(L)&&L.parent.parent===r);if(xs(r))return!N(r,a,!1);if(O_(r,r.parent))return!(pe&&Nl(r)===Nl(a)&&x(a,r))}return!0}if(a.parent.kind===281||a.parent.kind===277&&a.parent.isExportEquals||a.kind===277&&a.isExportEquals)return!0;if(x(a,r))return pe&&Nl(r)&&(xs(r)||O_(r,r.parent))?!N(r,a,!0):!0;return!1;function h(L,z){switch(L.parent.parent.kind){case 243:case 248:case 250:if(M2(z,L,m))return!0;break}const Z=L.parent.parent;return Gk(Z)&&M2(z,Z.expression,m)}function x(L,z){return!!Pr(L,Z=>{if(Z===m)return"quit";if(As(Z))return!0;if(ec(Z))return z.posL.end?!1:Pr(z,_e=>{if(_e===L)return"quit";switch(_e.kind){case 219:return!0;case 172:return Z&&(xs(L)&&_e.parent===L.parent||O_(L,L.parent)&&_e.parent===L.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 EP(r,a,l){const _=Fa(j),m=a;if(rs(l)&&m.body&&r.valueDeclaration&&r.valueDeclaration.pos>=m.body.pos&&r.valueDeclaration.end<=m.body.end&&_>=2){const N=jn(m);return N.declarationRequiresScopeChange===void 0&&(N.declarationRequiresScopeChange=rr(m.parameters,h)||!1),!N.declarationRequiresScopeChange}return!1;function h(N){return x(N.name)||!!N.initializer&&x(N.initializer)}function x(N){switch(N.kind){case 219:case 218:case 262:case 176:return!1;case 174:case 177:case 178:case 303:return x(N.name);case 172:return Bc(N)?!pe:x(N.name);default:return $J(N)||hu(N)?_<7:Ea(N)&&N.dotDotDotToken&&xp(N.parent)?_<4:ki(N)?!1:Ss(N,x)||!1}}}function wy(r){return Sb(r)&&Qg(r.type)||v3(r)&&Qg(r.typeExpression)}function Go(r,a,l,_,m,h,x=!1,N=!0){return _f(r,a,l,_,m,h,x,N,m_)}function _f(r,a,l,_,m,h,x,N,L){var z,Z,de;const _e=r;let Re,st,gt,qt,$t,Ur=!1;const Tr=r;let Gt,Cr=!1;e:for(;r;){if(a==="const"&&wy(r))return;if(r8(r)&&st&&r.name===st&&(st=r,r=r.parent),Dm(r)&&r.locals&&!Gm(r)&&(Re=L(r.locals,a,l))){let Br=!0;if(As(r)&&st&&st!==r.body?(l&Re.flags&788968&&st.kind!==327&&(Br=Re.flags&262144?st===r.type||st.kind===169||st.kind===348||st.kind===349||st.kind===168:!1),l&Re.flags&3&&(EP(Re,r,st)?Br=!1:Re.flags&1&&(Br=st.kind===169||st===r.type&&!!Pr(Re.valueDeclaration,rs)))):r.kind===194&&(Br=st===r.trueType),Br)break e;Re=void 0}switch(Ur=Ur||wp(r,st),r.kind){case 312:if(!af(r))break;Cr=!0;case 267:const Br=((z=un(r))==null?void 0:z.exports)||U;if(r.kind===312||Sc(r)&&r.flags&33554432&&!Wd(r)){if(Re=Br.get("default")){const ss=xC(Re);if(ss&&Re.flags&l&&ss.escapedName===a)break e;Re=void 0}const Jr=Br.get(a);if(Jr&&Jr.flags===2097152&&(Jo(Jr,281)||Jo(Jr,280)))break}if(a!=="default"&&(Re=L(Br,a,l&2623475)))if(Ni(r)&&r.commonJsModuleIndicator&&!((Z=Re.declarations)!=null&&Z.some(gp)))Re=void 0;else break e;break;case 266:if(Re=L(((de=un(r))==null?void 0:de.exports)||U,a,l&8)){_&&Tp(j)&&!(r.flags&33554432)&&wr(r)!==wr(Re.valueDeclaration)&&Me(Tr,p.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead,xi(a),Je,`${xi(Lf(r).escapedName)}.${xi(a)}`);break e}break;case 172:if(!Ms(r)){const Jr=Th(r.parent);Jr&&Jr.locals&&L(Jr.locals,a,l&111551)&&(E.assertNode(r,xs),qt=r)}break;case 263:case 231:case 264:if(Re=L(un(r).members||U,a,l&788968)){if(!vh(Re,r)){Re=void 0;break}if(st&&Ms(st)){_&&Me(Tr,p.Static_members_cannot_reference_class_type_parameters);return}break e}if(kl(r)&&l&32){const Jr=r.name;if(Jr&&a===Jr.escapedText){Re=r.symbol;break e}}break;case 233:if(st===r.expression&&r.parent.token===96){const Jr=r.parent.parent;if($n(Jr)&&(Re=L(un(Jr).members,a,l&788968))){_&&Me(Tr,p.Base_class_expressions_cannot_reference_class_type_parameters);return}}break;case 167:if(Gt=r.parent.parent,($n(Gt)||Gt.kind===264)&&(Re=L(un(Gt).members,a,l&788968))){_&&Me(Tr,p.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return}break;case 219:if(Fa(j)>=2)break;case 174:case 176:case 177:case 178:case 262:if(l&3&&a==="arguments"){Re=Pt;break e}break;case 218:if(l&3&&a==="arguments"){Re=Pt;break e}if(l&16){const Jr=r.name;if(Jr&&a===Jr.escapedText){Re=r.symbol;break e}}break;case 170:r.parent&&r.parent.kind===169&&(r=r.parent),r.parent&&(Tl(r.parent)||r.parent.kind===263)&&(r=r.parent);break;case 353:case 345:case 347:const Ir=pC(r);Ir&&(r=Ir.parent);break;case 169:st&&(st===r.initializer||st===r.name&&Ns(st))&&($t||($t=r));break;case 208:st&&(st===r.initializer||st===r.name&&Ns(st))&&$v(r)&&!$t&&($t=r);break;case 195:if(l&262144){const Jr=r.typeParameter.name;if(Jr&&a===Jr.escapedText){Re=r.typeParameter.symbol;break e}}break;case 281:st&&st===r.propertyName&&r.parent.parent.moduleSpecifier&&(r=r.parent.parent.parent);break}Ay(r)&&(gt=r),st=r,r=kp(r)?L5(r)||r.parent:(vd(r)||DO(r))&&P1(r)||r.parent}if(h&&Re&&(!gt||Re!==gt.symbol)&&(Re.isReferenced|=l),!Re){if(st&&(E.assertNode(st,Ni),st.commonJsModuleIndicator&&a==="exports"&&l&st.symbol.flags))return st.symbol;x||(Re=L(ge,a,l))}if(!Re&&_e&&Hr(_e)&&_e.parent&&Gu(_e.parent,!1))return at;function kr(){return qt&&!pe?(Me(Tr,Tr&&qt.type&&zD(qt.type,Tr.pos)?p.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:p.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,eo(qt.name),Kp(m)),!0):!1}if(Re){if(_&&kr())return}else{_&&n(()=>{if(!Tr||Tr.parent.kind!==331&&!L2(Tr,a,m)&&!kr()&&!CS(Tr)&&!rk(Tr,a,l)&&!T0(Tr,a)&&!ES(Tr,a,l)&&!Q6(Tr,a,l)&&!Og(Tr,a,l)){let Br,Ir;if(m&&(Ir=jat(m),Ir&&Me(Tr,_,Kp(m),Ir)),!Ir&&N&&V6{var Br;if(Tr&&(l&2||(l&32||l&384)&&(l&111551)===111551)){const Ir=Mf(Re);(Ir.flags&2||Ir.flags&32||Ir.flags&384)&&Eo(Ir,Tr)}if(Re&&Cr&&(l&111551)===111551&&!(_e.flags&16777216)){const Ir=Na(Re);mr(Ir.declarations)&&Wi(Ir.declarations,Jr=>Fw(Jr)||Ni(Jr)&&!!Jr.symbol.globalExports)&&Bl(!j.allowUmdGlobalAccess,Tr,p._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,xi(a))}if(Re&&$t&&!Ur&&(l&111551)===111551){const Ir=Na(jY(Re)),Jr=qd($t);Ir===un($t)?Me(Tr,p.Parameter_0_cannot_reference_itself,eo($t.name)):Ir.valueDeclaration&&Ir.valueDeclaration.pos>$t.pos&&Jr.parent.locals&&L(Jr.parent.locals,Ir.escapedName,l)===Ir&&Me(Tr,p.Parameter_0_cannot_reference_identifier_1_declared_after_it,eo($t.name),eo(Tr))}if(Re&&Tr&&l&111551&&Re.flags&2097152&&!(Re.flags&111551)&&!I1(Tr)){const Ir=tp(Re,111551);if(Ir){const Jr=Ir.kind===281||Ir.kind===278||Ir.kind===280?p._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:p._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,ss=xi(a);Ig(Me(Tr,Jr,ss),Ir,ss)}}if(j.isolatedModules&&Re&&Cr&&(l&111551)===111551){const Jr=L(ge,a,l)===Re&&Ni(st)&&st.locals&&L(st.locals,a,-111552);if(Jr){const ss=(Br=Jr.declarations)==null?void 0:Br.find(Ki=>Ki.kind===276||Ki.kind===273||Ki.kind===274||Ki.kind===271);ss&&!XD(ss)&&Me(ss,p.Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,xi(a))}}}),Re}function Ig(r,a,l){return a?la(r,yn(a,a.kind===281||a.kind===278||a.kind===280?p._0_was_exported_here:p._0_was_imported_here,l)):r}function wp(r,a){return r.kind!==219&&r.kind!==218?sx(r)||(po(r)||r.kind===172&&!Ms(r))&&(!a||a!==r.name):a&&a===r.name?!1:r.asteriskToken||Rn(r,1024)?!0:!Pb(r)}function Ay(r){switch(r.kind){case 262:case 263:case 264:case 266:case 265:case 267:return!0;default:return!1}}function Kp(r){return ls(r)?xi(r):eo(r)}function vh(r,a){if(r.declarations){for(const l of r.declarations)if(l.kind===168&&(kp(l.parent)?Nb(l.parent):l.parent)===a)return!(kp(l.parent)&&wn(l.parent.parent.tags,gp))}return!1}function L2(r,a,l){if(!Ie(r)||r.escapedText!==a||H7e(r)||Lb(r))return!1;const _=a_(r,!1,!1);let m=_;for(;m;){if($n(m.parent)){const h=un(m.parent);if(!h)break;const x=Xr(h);if($s(x,a))return Me(r,p.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,Kp(l),ni(h)),!0;if(m===_&&!Ms(m)){const N=Po(h).thisType;if($s(N,a))return Me(r,p.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,Kp(l)),!0}}m=m.parent}return!1}function CS(r){const a=Fg(r);return a&&vo(a,64,!0)?(Me(r,p.Cannot_extend_an_interface_0_Did_you_mean_implements,jc(a)),!0):!1}function Fg(r){switch(r.kind){case 80:case 211:return r.parent?Fg(r.parent):void 0;case 233:if(pc(r.expression))return r.expression;default:return}}function rk(r,a,l){const _=1920|(Hr(r)?111551:0);if(l===_){const m=mc(Go(r,a,788968&~_,void 0,void 0,!1)),h=r.parent;if(m){if(Xu(h)){E.assert(h.left===r,"Should only be resolving left side of qualified name as a namespace");const x=h.right.escapedText;if($s(Po(m),x))return Me(h,p.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,xi(a),xi(x)),!0}return Me(r,p._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,xi(a)),!0}}return!1}function Og(r,a,l){if(l&788584){const _=mc(Go(r,a,111127,void 0,void 0,!1));if(_&&!(_.flags&1920))return Me(r,p._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,xi(a)),!0}return!1}function om(r){return r==="any"||r==="string"||r==="number"||r==="boolean"||r==="never"||r==="unknown"}function T0(r,a){return om(a)&&r.parent.kind===281?(Me(r,p.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,a),!0):!1}function Q6(r,a,l){if(l&111551){if(om(a)){const h=r.parent.parent;if(h&&h.parent&&xf(h)){const x=h.token,N=h.parent.kind;N===264&&x===96?Me(r,p.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types,xi(a)):N===263&&x===96?Me(r,p.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,xi(a)):N===263&&x===119&&Me(r,p.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types,xi(a))}else Me(r,p._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,xi(a));return!0}const _=mc(Go(r,a,788544,void 0,void 0,!1)),m=_&&$l(_);if(_&&m!==void 0&&!(m&111551)){const h=xi(a);return Z6(a)?Me(r,p._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,h):Y6(r,_)?Me(r,p._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,h,h==="K"?"P":"K"):Me(r,p._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,h),!0}}return!1}function Y6(r,a){const l=Pr(r.parent,_=>Pa(_)||B_(_)?!1:z_(_)||"quit");if(l&&l.members.length===1){const _=Po(a);return!!(_.flags&1048576)&&Mj(_,384,!0)}return!1}function Z6(r){switch(r){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}function ES(r,a,l){if(l&111127){if(mc(Go(r,a,1024,void 0,void 0,!1)))return Me(r,p.Cannot_use_namespace_0_as_a_value,xi(a)),!0}else if(l&788544&&mc(Go(r,a,1536,void 0,void 0,!1)))return Me(r,p.Cannot_use_namespace_0_as_a_type,xi(a)),!0;return!1}function Eo(r,a){var l;if(E.assert(!!(r.flags&2||r.flags&32||r.flags&384)),r.flags&67108881&&r.flags&32)return;const _=(l=r.declarations)==null?void 0:l.find(m=>hz(m)||$n(m)||m.kind===266);if(_===void 0)return E.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(_.flags&33554432)&&!yh(_,a)){let m;const h=eo(us(_));r.flags&2?m=Me(a,p.Block_scoped_variable_0_used_before_its_declaration,h):r.flags&32?m=Me(a,p.Class_0_used_before_its_declaration,h):r.flags&256?m=Me(a,p.Enum_0_used_before_its_declaration,h):(E.assert(!!(r.flags&128)),Tp(j)&&(m=Me(a,p.Enum_0_used_before_its_declaration,h))),m&&la(m,yn(_,p._0_is_declared_here,h))}}function M2(r,a,l){return!!a&&!!Pr(r,_=>_===a||(_===l||As(_)&&(!Pb(_)||pl(_)&3)?"quit":!1))}function PS(r){switch(r.kind){case 271:return r;case 273:return r.parent;case 274:return r.parent.parent;case 276:return r.parent.parent.parent;default:return}}function ed(r){return r.declarations&&gT(r.declarations,Ny)}function Ny(r){return r.kind===271||r.kind===270||r.kind===273&&!!r.name||r.kind===274||r.kind===280||r.kind===276||r.kind===281||r.kind===277&&dC(r)||Zr(r)&&fc(r)===2&&dC(r)||co(r)&&Zr(r.parent)&&r.parent.left===r&&r.parent.operatorToken.kind===64&&K6(r.parent.right)||r.kind===304||r.kind===303&&K6(r.initializer)||r.kind===260&&Uv(r)||r.kind===208&&Uv(r.parent.parent)}function K6(r){return B8(r)||lo(r)&&hm(r)}function DS(r,a){const l=Fy(r);if(l){const m=CC(l.expression).arguments[0];return Ie(l.name)?mc($s(O8e(m),l.name.escapedText)):void 0}if(hi(r)||r.moduleReference.kind===283){const m=zu(r,Lz(r)||vE(r)),h=X_(m);return D_(r,m,h,!1),h}const _=ik(r.moduleReference,a);return PP(r,_),_}function PP(r,a){if(D_(r,void 0,a,!1)&&!r.isTypeOnly){const l=tp(un(r)),_=l.kind===281||l.kind===278,m=_?p.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:p.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,h=_?p._0_was_exported_here:p._0_was_imported_here,x=l.kind===278?"*":xi(l.name.escapedText);la(Me(r.moduleReference,m),yn(l,h,x))}}function en(r,a,l,_){const m=r.exports.get("export="),h=m?$s(Xr(m),a,!0):r.exports.get(a),x=mc(h,_);return D_(l,h,x,!1),x}function Dl(r){return oc(r)&&!r.isExportEquals||Rn(r,2048)||vu(r)||jm(r)}function Oi(r){return Ma(r)?e.getModeForUsageLocation(wr(r),r):void 0}function Of(r,a){return r===99&&a===1}function x0(r){return Oi(r)===99&&Yo(r.text,".json")}function cm(r,a,l,_){const m=r&&Oi(_);if(r&&m!==void 0&&100<=R&&R<=199){const h=Of(m,r.impliedNodeFormat);if(m===99||h)return h}if(!H)return!1;if(!r||r.isDeclarationFile){const h=en(a,"default",void 0,!0);return!(h&&ct(h.declarations,Dl)||en(a,Vo("__esModule"),void 0,l))}return Ou(r)?typeof r.externalModuleIndicator!="object"&&!en(a,Vo("__esModule"),void 0,l):k0(a)}function $r(r,a){const l=zu(r,r.parent.moduleSpecifier);if(l)return wS(l,r,a)}function wS(r,a,l){var _;let m;dE(r)?m=r:m=en(r,"default",a,l);const h=(_=r.declarations)==null?void 0:_.find(Ni),x=sv(a);if(!x)return m;const N=x0(x),L=cm(h,r,l,x);if(!m&&!L&&!N)if(k0(r)&&!H){const z=R>=5?"allowSyntheticDefaultImports":"esModuleInterop",de=r.exports.get("export=").valueDeclaration,_e=Me(a.name,p.Module_0_can_only_be_default_imported_using_the_1_flag,ni(r),z);de&&la(_e,yn(de,p.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,z))}else Rm(a)?vl(r,a):AS(r,r,a,PT(a)&&a.propertyName||a.name);else if(L||N){const z=X_(r,l)||mc(r,l);return D_(a,r,z,!1),z}return D_(a,m,void 0,!1),m}function sv(r){switch(r.kind){case 273:return r.parent.moduleSpecifier;case 271:return Bm(r.moduleReference)?r.moduleReference.expression:void 0;case 274:return r.parent.parent.moduleSpecifier;case 276:return r.parent.parent.parent.moduleSpecifier;case 281:return r.parent.parent.moduleSpecifier;default:return E.assertNever(r)}}function vl(r,a){var l,_,m;if((l=r.exports)!=null&&l.has(a.symbol.escapedName))Me(a.name,p.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,ni(r),ni(a.symbol));else{const h=Me(a.name,p.Module_0_has_no_default_export,ni(r)),x=(_=r.exports)==null?void 0:_.get("__export");if(x){const N=(m=x.declarations)==null?void 0:m.find(L=>{var z,Z;return!!(Tc(L)&&L.moduleSpecifier&&((Z=(z=zu(L,L.moduleSpecifier))==null?void 0:z.exports)!=null&&Z.has("default")))});N&&la(h,yn(N,p.export_Asterisk_does_not_re_export_a_default))}}}function $m(r,a){const l=r.parent.parent.moduleSpecifier,_=zu(r,l),m=w_(_,l,a,!1);return D_(r,_,m,!1),m}function td(r,a){const l=r.parent.moduleSpecifier,_=l&&zu(r,l),m=l&&w_(_,l,a,!1);return D_(r,_,m,!1),m}function R2(r,a){if(r===tt&&a===tt)return tt;if(r.flags&790504)return r;const l=xa(r.flags|a.flags,r.escapedName);return E.assert(r.declarations||a.declarations),l.declarations=Nv(es(r.declarations,a.declarations),Vh),l.parent=r.parent||a.parent,r.valueDeclaration&&(l.valueDeclaration=r.valueDeclaration),a.members&&(l.members=new Map(a.members)),r.exports&&(l.exports=new Map(r.exports)),l}function j2(r,a,l,_){var m;if(r.flags&1536){const h=Q_(r).get(a.escapedText),x=mc(h,_),N=(m=wi(r).typeOnlyExportStarMap)==null?void 0:m.get(a.escapedText);return D_(l,h,x,!1,N,a.escapedText),x}}function Iy(r,a){if(r.flags&3){const l=r.valueDeclaration.type;if(l)return mc($s(ii(l),a))}}function bh(r,a,l=!1){var _;const m=Lz(r)||r.moduleSpecifier,h=zu(r,m),x=!Sn(a)&&a.propertyName||a.name;if(!Ie(x))return;const N=x.escapedText==="default"&&H,L=w_(h,m,!1,N);if(L&&x.escapedText){if(dE(h))return h;let z;h&&h.exports&&h.exports.get("export=")?z=$s(Xr(L),x.escapedText,!0):z=Iy(L,x.escapedText),z=mc(z,l);let Z=j2(L,x,a,l);if(Z===void 0&&x.escapedText==="default"){const _e=(_=h.declarations)==null?void 0:_.find(Ni);(x0(m)||cm(_e,h,l,m))&&(Z=X_(h,l)||mc(h,l))}const de=Z&&z&&Z!==z?R2(z,Z):Z||z;return de||AS(h,L,r,x),de}}function AS(r,a,l,_){var m;const h=pf(r,l),x=eo(_),N=$Z(_,a);if(N!==void 0){const L=ni(N),z=Me(_,p._0_has_no_exported_member_named_1_Did_you_mean_2,h,x,L);N.valueDeclaration&&la(z,yn(N.valueDeclaration,p._0_is_declared_here,L))}else(m=r.exports)!=null&&m.has("default")?Me(_,p.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,h,x):rd(l,_,x,r,h)}function rd(r,a,l,_,m){var h,x;const N=(x=(h=Wn(_.valueDeclaration,Dm))==null?void 0:h.locals)==null?void 0:x.get(a.escapedText),L=_.exports;if(N){const z=L==null?void 0:L.get("export=");if(z)Ed(z,N)?av(r,a,l,m):Me(a,p.Module_0_has_no_exported_member_1,m,l);else{const Z=L?wn(Qde(L),_e=>!!Ed(_e,N)):void 0,de=Z?Me(a,p.Module_0_declares_1_locally_but_it_is_exported_as_2,m,l,ni(Z)):Me(a,p.Module_0_declares_1_locally_but_it_is_not_exported,m,l);N.declarations&&la(de,...nr(N.declarations,(_e,Re)=>yn(_e,Re===0?p._0_is_declared_here:p.and_here,l)))}}else Me(a,p.Module_0_has_no_exported_member_1,m,l)}function av(r,a,l,_){if(R>=5){const m=Om(j)?p._0_can_only_be_imported_by_using_a_default_import:p._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Me(a,m,l)}else if(Hr(r)){const m=Om(j)?p._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:p._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Me(a,m,l)}else{const m=Om(j)?p._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:p._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Me(a,m,l,l,_)}}function Lg(r,a){if(x_(r)&&on(r.propertyName||r.name)==="default"){const x=sv(r),N=x&&zu(r,x);if(N)return wS(N,r,a)}const l=Ea(r)?qd(r):r.parent.parent.parent,_=Fy(l),m=bh(l,_||r,a),h=r.propertyName||r.name;return _&&m&&Ie(h)?mc($s(Xr(m),h.escapedText),a):(D_(r,void 0,m,!1),m)}function Fy(r){if(hi(r)&&r.initializer&&Sn(r.initializer))return r.initializer}function nk(r,a){if(zd(r.parent)){const l=X_(r.parent.symbol,a);return D_(r,void 0,l,!1),l}}function ov(r,a,l){if(on(r.propertyName||r.name)==="default"){const m=sv(r),h=m&&zu(r,m);if(h)return wS(h,r,!!l)}const _=r.parent.parent.moduleSpecifier?bh(r.parent.parent,r,l):vo(r.propertyName||r.name,a,!1,l);return D_(r,void 0,_,!1),_}function e4(r,a){const l=oc(r)?r.expression:r.right,_=B2(l,a);return D_(r,void 0,_,!1),_}function B2(r,a){if(kl(r))return Dc(r).symbol;if(!b_(r)&&!pc(r))return;const l=vo(r,901119,!0,a);return l||(Dc(r),jn(r).resolvedSymbol)}function NS(r,a){if(Zr(r.parent)&&r.parent.left===r&&r.parent.operatorToken.kind===64)return B2(r.parent.right,a)}function ff(r,a=!1){switch(r.kind){case 271:case 260:return DS(r,a);case 273:return $r(r,a);case 274:return $m(r,a);case 280:return td(r,a);case 276:case 208:return Lg(r,a);case 281:return ov(r,901119,a);case 277:case 226:return e4(r,a);case 270:return nk(r,a);case 304:return vo(r.name,901119,!0,a);case 303:return B2(r.initializer,a);case 212:case 211:return NS(r,a);default:return E.fail()}}function IS(r,a=901119){return r?(r.flags&(2097152|a))===2097152||!!(r.flags&2097152&&r.flags&67108864):!1}function mc(r,a){return!a&&IS(r)?ll(r):r}function ll(r){E.assert((r.flags&2097152)!==0,"Should only get Alias here.");const a=wi(r);if(a.aliasTarget)a.aliasTarget===yt&&(a.aliasTarget=tt);else{a.aliasTarget=yt;const l=ed(r);if(!l)return E.fail();const _=ff(l);a.aliasTarget===yt?a.aliasTarget=_||tt:Me(l,p.Circular_definition_of_import_alias_0,ni(r))}return a.aliasTarget}function FS(r){if(wi(r).aliasTarget!==yt)return ll(r)}function $l(r,a,l){const _=a&&tp(r),m=_&&Tc(_),h=_&&(m?zu(_.moduleSpecifier,_.moduleSpecifier,!0):ll(_.symbol)),x=m&&h?Xm(h):void 0;let N=l?0:r.flags,L;for(;r.flags&2097152;){const z=Mf(ll(r));if(!m&&z===h||(x==null?void 0:x.get(z.escapedName))===z)break;if(z===tt)return-1;if(z===r||L!=null&&L.has(z))break;z.flags&2097152&&(L?L.add(z):L=new Set([r,z])),N|=z.flags,r=z}return N}function D_(r,a,l,_,m,h){if(!r||Sn(r))return!1;const x=un(r);if(x1(r)){const L=wi(x);return L.typeOnlyDeclaration=r,!0}if(m){const L=wi(x);return L.typeOnlyDeclaration=m,x.escapedName!==h&&(L.typeOnlyExportStarName=h),!0}const N=wi(x);return cv(N,a,_)||cv(N,l,_)}function cv(r,a,l){var _;if(a&&(r.typeOnlyDeclaration===void 0||l&&r.typeOnlyDeclaration===!1)){const m=((_=a.exports)==null?void 0:_.get("export="))??a,h=m.declarations&&wn(m.declarations,x1);r.typeOnlyDeclaration=h??wi(m).typeOnlyDeclaration??!1}return!!r.typeOnlyDeclaration}function tp(r,a){if(!(r.flags&2097152))return;const l=wi(r);if(a===void 0)return l.typeOnlyDeclaration||void 0;if(l.typeOnlyDeclaration){const _=l.typeOnlyDeclaration.kind===278?mc(Xm(l.typeOnlyDeclaration.symbol.parent).get(l.typeOnlyExportStarName||r.escapedName)):ll(l.typeOnlyDeclaration.symbol);return $l(_)&a?l.typeOnlyDeclaration:void 0}}function Oy(r){if(!pt)return;const a=un(r),l=ll(a);l&&(l===tt||$l(a,!0)&111551&&!UI(l))&&Ly(a)}function Ly(r){E.assert(pt);const a=wi(r);if(!a.referenced){a.referenced=!0;const l=ed(r);if(!l)return E.fail();oC(l)&&$l(mc(r))&111551&&Dc(l.moduleReference)}}function wl(r){const a=wi(r);a.constEnumReferenced||(a.constEnumReferenced=!0)}function ik(r,a){return r.kind===80&&LE(r)&&(r=r.parent),r.kind===80||r.parent.kind===166?vo(r,1920,!1,a):(E.assert(r.parent.kind===271),vo(r,901119,!1,a))}function pf(r,a){return r.parent?pf(r.parent,a)+"."+ni(r):ni(r,a,void 0,36)}function OS(r){for(;Xu(r.parent);)r=r.parent;return r}function LS(r){let a=lf(r),l=Go(a,a.escapedText,111551,void 0,a,!0);if(l){for(;Xu(a.parent);){const _=Xr(l);if(l=$s(_,a.parent.right.escapedText),!l)return;a=a.parent}return l}}function vo(r,a,l,_,m){if(_c(r))return;const h=1920|(Hr(r)?a&111551:0);let x;if(r.kind===80){const N=a===h||ko(r)?p.Cannot_find_namespace_0:PAe(lf(r)),L=Hr(r)&&!ko(r)?t4(r,a):void 0;if(x=Na(Go(m||r,r.escapedText,a,l||L?void 0:N,r,!0,!1)),!x)return Na(L)}else if(r.kind===166||r.kind===211){const N=r.kind===166?r.left:r.expression,L=r.kind===166?r.right:r.name;let z=vo(N,h,l,!1,m);if(!z||_c(L))return;if(z===tt)return z;if(z.valueDeclaration&&Hr(z.valueDeclaration)&&Ru(j)!==100&&hi(z.valueDeclaration)&&z.valueDeclaration.initializer&&_Ie(z.valueDeclaration.initializer)){const Z=z.valueDeclaration.initializer.arguments[0],de=zu(Z,Z);if(de){const _e=X_(de);_e&&(z=_e)}}if(x=Na(m_(Q_(z),L.escapedText,a)),!x&&z.flags&2097152&&(x=Na(m_(Q_(ll(z)),L.escapedText,a))),!x){if(!l){const Z=pf(z),de=eo(L),_e=$Z(L,z);if(_e){Me(L,p._0_has_no_exported_member_named_1_Did_you_mean_2,Z,de,ni(_e));return}const Re=Xu(r)&&OS(r);if(Te&&a&788968&&Re&&!BC(Re.parent)&&LS(Re)){Me(Re,p._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,L_(Re));return}if(a&1920&&Xu(r.parent)){const gt=Na(m_(Q_(z),L.escapedText,788968));if(gt){Me(r.parent.right,p.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,ni(gt),xi(r.parent.right.escapedText));return}}Me(L,p.Namespace_0_has_no_exported_member_1,Z,de)}return}}else E.assertNever(r,"Unknown entity name kind.");return E.assert((Ko(x)&1)===0,"Should never get an instantiated symbol here."),!ko(r)&&b_(r)&&(x.flags&2097152||r.parent.kind===277)&&D_(Gz(r),x,void 0,!0),x.flags&a||_?x:ll(x)}function t4(r,a){if(XY(r.parent)){const l=lv(r.parent);if(l)return Go(l,r.escapedText,a,void 0,r,!0)}}function lv(r){if(Pr(r,m=>$k(m)||m.flags&16777216?gp(m):"quit"))return;const l=Nb(r);if(l&&Cl(l)&&w8(l.expression)){const m=un(l.expression.left);if(m)return J2(m)}if(l&&lo(l)&&w8(l.parent)&&Cl(l.parent.parent)){const m=un(l.parent.left);if(m)return J2(m)}if(l&&(Wp(l)||zc(l))&&Zr(l.parent.parent)&&fc(l.parent.parent)===6){const m=un(l.parent.parent.left);if(m)return J2(m)}const _=D1(r);if(_&&As(_)){const m=un(_);return m&&m.valueDeclaration}}function J2(r){const a=r.parent.valueDeclaration;return a?(bE(a)?FT(a):Tb(a)?k8(a):void 0)||a:void 0}function DP(r){const a=r.valueDeclaration;if(!a||!Hr(a)||r.flags&524288||E1(a,!1))return;const l=hi(a)?k8(a):FT(a);if(l){const _=Lf(l);if(_)return she(_,r)}}function zu(r,a,l){const m=Ru(j)===1?p.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:p.Cannot_find_module_0_or_its_corresponding_type_declarations;return Sh(r,a,l?void 0:m)}function Sh(r,a,l,_=!1){return Ma(a)?lm(r,a.text,l,a,_):void 0}function lm(r,a,l,_,m=!1){var h,x,N,L,z,Z,de,_e,Re,st,gt;if(Vi(a,"@types/")){const Jr=p.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,ss=q4(a,"@types/");Me(_,Jr,ss,a)}const qt=zY(a,!0);if(qt)return qt;const $t=wr(r),Ur=Ma(r)?r:((h=Sc(r)?r:r.parent&&Sc(r.parent)&&r.parent.name===r?r.parent:void 0)==null?void 0:h.name)||((x=ey(r)?r:void 0)==null?void 0:x.argument.literal)||(hi(r)&&r.initializer&&Gu(r.initializer,!0)?r.initializer.arguments[0]:void 0)||((N=Pr(r,of))==null?void 0:N.arguments[0])||((L=Pr(r,sl))==null?void 0:L.moduleSpecifier)||((z=Pr(r,C1))==null?void 0:z.moduleReference.expression)||((Z=Pr(r,Tc))==null?void 0:Z.moduleSpecifier),Tr=Ur&&Ma(Ur)?e.getModeForUsageLocation($t,Ur):$t.impliedNodeFormat,Gt=Ru(j),Cr=(de=e.getResolvedModule($t,a,Tr))==null?void 0:de.resolvedModule,kr=Cr&&Vq(j,Cr,$t),Br=Cr&&(!kr||kr===p.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(Cr.resolvedFileName);if(Br){if(kr&&Me(_,kr,a,Cr.resolvedFileName),Cr.resolvedUsingTsExtension&&Hl(a)){const Jr=((_e=Pr(r,sl))==null?void 0:_e.importClause)||Pr(r,fd(El,Tc));(Jr&&!Jr.isTypeOnly||Pr(r,of))&&Me(_,p.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,Ir(E.checkDefined(Z5(a))))}else if(Cr.resolvedUsingTsExtension&&!i6(j,$t.fileName)){const Jr=((Re=Pr(r,sl))==null?void 0:Re.importClause)||Pr(r,fd(El,Tc));if(!(Jr!=null&&Jr.isTypeOnly||Pr(r,Cg))){const ss=E.checkDefined(Z5(a));Me(_,p.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,ss)}}if(Br.symbol){if(Cr.isExternalLibraryImport&&!UE(Cr.extension)&&sk(!1,_,$t,Tr,Cr,a),Gt===3||Gt===99){const Jr=$t.impliedNodeFormat===1&&!Pr(r,of)||!!Pr(r,El),ss=Pr(r,Ki=>Cg(Ki)||Tc(Ki)||sl(Ki));if(Jr&&Br.impliedNodeFormat===99&&!Tne(ss))if(Pr(r,El))Me(_,p.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 Ki;const hs=nh($t.fileName);if(hs===".ts"||hs===".js"||hs===".tsx"||hs===".jsx"){const Gi=$t.packageJsonScope,tl=hs===".ts"?".mts":hs===".js"?".mjs":void 0;Gi&&!Gi.contents.packageJsonContent.type?tl?Ki=vs(void 0,p.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,tl,Mn(Gi.packageDirectory,"package.json")):Ki=vs(void 0,p.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,Mn(Gi.packageDirectory,"package.json")):tl?Ki=vs(void 0,p.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,tl):Ki=vs(void 0,p.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)}wa.add(Zg(wr(_),_,vs(Ki,p.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 Na(Br.symbol)}l&&Me(_,p.File_0_is_not_a_module,Br.fileName);return}if(Ep){const Jr=hB(Ep,ss=>ss.pattern,a);if(Jr){const ss=Ju&&Ju.get(a);return Na(ss||Jr.symbol)}}if(Cr&&!UE(Cr.extension)&&kr===void 0||kr===p.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(m){const Jr=p.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;Me(_,Jr,a,Cr.resolvedFileName)}else sk(ae&&!!l,_,$t,Tr,Cr,a);return}if(l){if(Cr){const Jr=e.getProjectReferenceRedirect(Cr.resolvedFileName);if(Jr){Me(_,p.Output_file_0_has_not_been_built_from_source_file_1,Jr,Cr.resolvedFileName);return}}if(kr)Me(_,kr,a,Cr.resolvedFileName);else{const Jr=nf(a)&&!xT(a),ss=Gt===3||Gt===99;if(!F1(j)&&Zo(a,".json")&&Gt!==1&&cF(j))Me(_,p.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,a);else if(Tr===99&&ss&&Jr){const Ki=Xi(a,Un($t.path)),hs=(st=$6.find(([Gi,tl])=>e.fileExists(Ki+Gi)))==null?void 0:st[1];hs?Me(_,p.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,a+hs):Me(_,p.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((gt=e.getResolvedModule($t,a,Tr))!=null&>.alternateResult){const Ki=n5($t,e,a,Tr,a);Bl(!0,_,vs(Ki,l,a))}else Me(_,l,a)}}return;function Ir(Jr){const ss=nw(a,Jr);if(oF(R)||Tr===99){const Ki=Hl(a)&&i6(j);return ss+(Jr===".mts"||Jr===".d.mts"?Ki?".mts":".mjs":Jr===".cts"||Jr===".d.mts"?Ki?".cts":".cjs":Ki?".ts":".js")}return ss}}function sk(r,a,l,_,{packageId:m,resolvedFileName:h},x){let N;!Sl(x)&&m&&(N=n5(l,e,x,_,m.name)),Bl(r,a,vs(N,p.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,x,h))}function X_(r,a){if(r!=null&&r.exports){const l=mc(r.exports.get("export="),a),_=ak(Na(l),Na(r));return Na(_)||r}}function ak(r,a){if(!r||r===tt||r===a||a.exports.size===1||r.flags&2097152)return r;const l=wi(r);if(l.cjsExportMerged)return l.cjsExportMerged;const _=r.flags&33554432?r:kS(r);return _.flags=_.flags|512,_.exports===void 0&&(_.exports=Bs()),a.exports.forEach((m,h)=>{h!=="export="&&_.exports.set(h,_.exports.has(h)?Pp(_.exports.get(h),m):m)}),_===r&&(wi(_).resolvedExports=void 0,wi(_).resolvedMembers=void 0),wi(_).cjsExportMerged=_,l.cjsExportMerged=_}function w_(r,a,l,_){var m;const h=X_(r,l);if(!l&&h){if(!_&&!(h.flags&1539)&&!Jo(h,312)){const N=R>=5?"allowSyntheticDefaultImports":"esModuleInterop";return Me(a,p.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,N),h}const x=a.parent;if(sl(x)&&_C(x)||of(x)){const N=of(x)?x.arguments[0]:x.moduleSpecifier,L=Xr(h),z=lIe(L,h,r,N);if(z)return ok(h,z,x);const Z=(m=r==null?void 0:r.declarations)==null?void 0:m.find(Ni),de=Z&&Of(Oi(N),Z.impliedNodeFormat);if(Om(j)||de){let _e=JR(L,0);if((!_e||!_e.length)&&(_e=JR(L,1)),_e&&_e.length||$s(L,"default",!0)||de){const Re=L.flags&3670016?uIe(L,h,r,N):ahe(h,h.parent);return ok(h,Re,x)}}}}return h}function ok(r,a,l){const _=xa(r.flags,r.escapedName);_.declarations=r.declarations?r.declarations.slice():[],_.parent=r.parent,_.links.target=r,_.links.originatingImport=l,r.valueDeclaration&&(_.valueDeclaration=r.valueDeclaration),r.constEnumOnlyModule&&(_.constEnumOnlyModule=!0),r.members&&(_.members=new Map(r.members)),r.exports&&(_.exports=new Map(r.exports));const m=Nd(a);return _.links.type=ao(_,m.members,Ve,Ve,m.indexInfos),_}function k0(r){return r.exports.get("export=")!==void 0}function MS(r){return Qde(Xm(r))}function r4(r){const a=MS(r),l=X_(r);if(l!==r){const _=Xr(l);My(_)&&Nn(a,Ua(_))}return a}function n4(r,a){Xm(r).forEach((m,h)=>{V2(h)||a(m,h)});const _=X_(r);if(_!==r){const m=Xr(_);My(m)&&ott(m,(h,x)=>{a(h,x)})}}function RS(r,a){const l=Xm(a);if(l)return l.get(r)}function i4(r,a){const l=RS(r,a);if(l)return l;const _=X_(a);if(_===a)return;const m=Xr(_);return My(m)?$s(m,r):void 0}function My(r){return!(r.flags&402784252||bn(r)&1||lp(r)||da(r))}function Q_(r){return r.flags&6256?Ode(r,"resolvedExports"):r.flags&1536?Xm(r):r.exports||U}function Xm(r){const a=wi(r);if(!a.resolvedExports){const{exports:l,typeOnlyExportStarMap:_}=jS(r);a.resolvedExports=l,a.typeOnlyExportStarMap=_}return a.resolvedExports}function s4(r,a,l,_){a&&a.forEach((m,h)=>{if(h==="default")return;const x=r.get(h);if(!x)r.set(h,m),l&&_&&l.set(h,{specifierText:jc(_.moduleSpecifier)});else if(l&&_&&x&&mc(x)!==mc(m)){const N=l.get(h);N.exportsWithDuplicate?N.exportsWithDuplicate.push(_):N.exportsWithDuplicate=[_]}})}function jS(r){const a=[];let l;const _=new Set;r=X_(r);const m=h(r)||U;return l&&_.forEach(x=>l.delete(x)),{exports:m,typeOnlyExportStarMap:l};function h(x,N,L){if(!L&&(x!=null&&x.exports)&&x.exports.forEach((de,_e)=>_.add(_e)),!(x&&x.exports&&Jf(a,x)))return;const z=new Map(x.exports),Z=x.exports.get("__export");if(Z){const de=Bs(),_e=new Map;if(Z.declarations)for(const Re of Z.declarations){const st=zu(Re,Re.moduleSpecifier),gt=h(st,Re,L||Re.isTypeOnly);s4(de,gt,_e,Re)}_e.forEach(({exportsWithDuplicate:Re},st)=>{if(!(st==="export="||!(Re&&Re.length)||z.has(st)))for(const gt of Re)wa.add(yn(gt,p.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,_e.get(st).specifierText,xi(st)))}),s4(z,de)}return N!=null&&N.isTypeOnly&&(l??(l=new Map),z.forEach((de,_e)=>l.set(_e,N))),z}}function Na(r){let a;return r&&r.mergeId&&(a=q6[r.mergeId])?a:r}function un(r){return Na(r.symbol&&jY(r.symbol))}function Lf(r){return zd(r)?un(r):void 0}function e_(r){return Na(r.parent&&jY(r.parent))}function z2(r){var a,l;return(((a=r.valueDeclaration)==null?void 0:a.kind)===219||((l=r.valueDeclaration)==null?void 0:l.kind)===218)&&Lf(r.valueDeclaration.parent)||r}function a4(r,a){const l=wr(a),_=Oa(l),m=wi(r);let h;if(m.extendedContainersByFile&&(h=m.extendedContainersByFile.get(_)))return h;if(l&&l.imports){for(const N of l.imports){if(ko(N))continue;const L=zu(a,N,!0);!L||!Mg(L,r)||(h=_r(h,L))}if(mr(h))return(m.extendedContainersByFile||(m.extendedContainersByFile=new Map)).set(_,h),h}if(m.extendedContainers)return m.extendedContainers;const x=e.getSourceFiles();for(const N of x){if(!Ic(N))continue;const L=un(N);Mg(L,r)&&(h=_r(h,L))}return m.extendedContainers=h||Ve}function uv(r,a,l){const _=e_(r);if(_&&!(r.flags&262144))return L(_);const m=Ri(r.declarations,Z=>{if(!su(Z)&&Z.parent){if(Cu(Z.parent))return un(Z.parent);if(Yd(Z.parent)&&Z.parent.parent&&X_(un(Z.parent.parent))===r)return un(Z.parent.parent)}if(kl(Z)&&Zr(Z.parent)&&Z.parent.operatorToken.kind===64&&co(Z.parent.left)&&pc(Z.parent.left.expression))return yg(Z.parent.left)||Db(Z.parent.left.expression)?un(wr(Z)):(Dc(Z.parent.left.expression),jn(Z.parent.left.expression).resolvedSymbol)});if(!mr(m))return;const h=Ri(m,Z=>Mg(Z,r)?Z:void 0);let x=[],N=[];for(const Z of h){const[de,..._e]=L(Z);x=_r(x,de),N=Nn(N,_e)}return es(x,N);function L(Z){const de=Ri(Z.declarations,z),_e=a&&a4(r,a),Re=W2(Z,l);if(a&&Z.flags&xh(l)&&Ry(Z,a,1920,!1))return _r(es(es([Z],de),_e),Re);const st=!(Z.flags&xh(l))&&Z.flags&788968&&Po(Z).flags&524288&&l===111551?q2(a,qt=>fl(qt,$t=>{if($t.flags&xh(l)&&Xr($t)===Po(Z))return $t})):void 0;let gt=st?[st,...de,Z]:[...de,Z];return gt=_r(gt,Re),gt=Nn(gt,_e),gt}function z(Z){return _&&BS(Z,_)}}function W2(r,a){const l=!!mr(r.declarations)&&va(r.declarations);if(a&111551&&l&&l.parent&&hi(l.parent)&&(ua(l)&&l===l.parent.initializer||z_(l)&&l===l.parent.type))return un(l.parent)}function BS(r,a){const l=Li(r),_=l&&l.exports&&l.exports.get("export=");return _&&Ed(_,a)?l:void 0}function Mg(r,a){if(r===e_(a))return a;const l=r.exports&&r.exports.get("export=");if(l&&Ed(l,a))return r;const _=Q_(r),m=_.get(a.escapedName);return m&&Ed(m,a)?m:fl(_,h=>{if(Ed(h,a))return h})}function Ed(r,a){if(Na(mc(Na(r)))===Na(mc(Na(a))))return r}function Mf(r){return Na(r&&(r.flags&1048576)!==0&&r.exportSymbol||r)}function nd(r,a){return!!(r.flags&111551||r.flags&2097152&&$l(r,!a)&111551)}function Th(r){const a=r.members;for(const l of a)if(l.kind===176&&pp(l.body))return l}function Rg(r){var a;const l=new f(jt,r);return d++,l.id=d,(a=qr)==null||a.recordType(l),l}function jg(r,a){const l=Rg(r);return l.symbol=a,l}function ck(r){return new f(jt,r)}function Oc(r,a,l=0,_){o4(a,_);const m=Rg(r);return m.intrinsicName=a,m.debugIntrinsicName=_,m.objectFlags=l|524288|2097152|33554432|16777216,m}function o4(r,a){const l=`${r},${a??""}`;et.has(l)&&E.fail(`Duplicate intrinsic type name ${r}${a?` (${a})`:""}; you may need to pass a name to createIntrinsicType.`),et.add(l)}function rp(r,a){const l=jg(524288,a);return l.objectFlags=r,l.members=void 0,l.properties=void 0,l.callSignatures=void 0,l.constructSignatures=void 0,l.indexInfos=void 0,l}function Qm(){return Bn(gs(HU.keys(),h_))}function Rf(r){return jg(262144,r)}function V2(r){return r.charCodeAt(0)===95&&r.charCodeAt(1)===95&&r.charCodeAt(2)!==95&&r.charCodeAt(2)!==64&&r.charCodeAt(2)!==35}function _v(r){let a;return r.forEach((l,_)=>{lk(l,_)&&(a||(a=[])).push(l)}),a||Ve}function lk(r,a){return!V2(a)&&nd(r)}function JS(r){const a=_v(r),l=UY(r);return l?es(a,[l]):a}function jf(r,a,l,_,m){const h=r;return h.members=a,h.properties=Ve,h.callSignatures=l,h.constructSignatures=_,h.indexInfos=m,a!==U&&(h.properties=_v(a)),h}function ao(r,a,l,_,m){return jf(rp(16,r),a,l,_,m)}function U2(r){if(r.constructSignatures.length===0)return r;if(r.objectTypeWithoutAbstractConstructSignatures)return r.objectTypeWithoutAbstractConstructSignatures;const a=An(r.constructSignatures,_=>!(_.flags&4));if(r.constructSignatures===a)return r;const l=ao(r.symbol,r.members,r.callSignatures,ct(a)?a:Ve,r.indexInfos);return r.objectTypeWithoutAbstractConstructSignatures=l,l.objectTypeWithoutAbstractConstructSignatures=l,l}function q2(r,a){let l;for(let _=r;_;_=_.parent){if(Dm(_)&&_.locals&&!Gm(_)&&(l=a(_.locals,void 0,!0,_)))return l;switch(_.kind){case 312:if(!af(_))break;case 267:const m=un(_);if(l=a((m==null?void 0:m.exports)||U,void 0,!0,_))return l;break;case 263:case 231:case 264:let h;if((un(_).members||U).forEach((x,N)=>{x.flags&788968&&(h||(h=Bs())).set(N,x)}),h&&(l=a(h,void 0,!1,_)))return l;break}}return a(ge,void 0,!0)}function xh(r){return r===111551?111551:1920}function Ry(r,a,l,_,m=new Map){if(!(r&&!C(r)))return;const h=wi(r),x=h.accessibleChainCache||(h.accessibleChainCache=new Map),N=q2(a,($t,Ur,Tr,Gt)=>Gt),L=`${_?0:1}|${N&&Oa(N)}|${l}`;if(x.has(L))return x.get(L);const z=Ks(r);let Z=m.get(z);Z||m.set(z,Z=[]);const de=q2(a,_e);return x.set(L,de),de;function _e($t,Ur,Tr){if(!Jf(Z,$t))return;const Gt=gt($t,Ur,Tr);return Z.pop(),Gt}function Re($t,Ur){return!fv($t,a,Ur)||!!Ry($t.parent,a,xh(Ur),_,m)}function st($t,Ur,Tr){return(r===(Ur||$t)||Na(r)===Na(Ur||$t))&&!ct($t.declarations,Cu)&&(Tr||Re(Na($t),l))}function gt($t,Ur,Tr){return st($t.get(r.escapedName),void 0,Ur)?[r]:fl($t,Cr=>{if(Cr.flags&2097152&&Cr.escapedName!=="export="&&Cr.escapedName!=="default"&&!(nF(Cr)&&a&&Ic(wr(a)))&&(!_||ct(Cr.declarations,C1))&&(!Tr||!ct(Cr.declarations,Kte))&&(Ur||!Jo(Cr,281))){const kr=ll(Cr),Br=qt(Cr,kr,Ur);if(Br)return Br}if(Cr.escapedName===r.escapedName&&Cr.exportSymbol&&st(Na(Cr.exportSymbol),void 0,Ur))return[r]})||($t===ge?qt($e,$e,Ur):void 0)}function qt($t,Ur,Tr){if(st($t,Ur,Tr))return[$t];const Gt=Q_(Ur),Cr=Gt&&_e(Gt,!0);if(Cr&&Re($t,xh(l)))return[$t].concat(Cr)}}function fv(r,a,l){let _=!1;return q2(a,m=>{let h=Na(m.get(r.escapedName));if(!h)return!1;if(h===r)return!0;const x=h.flags&2097152&&!Jo(h,281);return h=x?ll(h):h,(x?$l(h):h.flags)&l?(_=!0,!0):!1}),_}function C(r){if(r.declarations&&r.declarations.length){for(const a of r.declarations)switch(a.kind){case 172:case 174:case 177:case 178:continue;default:return!1}return!0}return!1}function te(r,a){return ti(r,a,788968,!1,!0).accessibility===0}function it(r,a){return ti(r,a,111551,!1,!0).accessibility===0}function Ut(r,a,l){return ti(r,a,l,!1,!1).accessibility===0}function vn(r,a,l,_,m,h){if(!mr(r))return;let x,N=!1;for(const L of r){const z=Ry(L,a,_,!1);if(z){x=L;const _e=t_(z[0],m);if(_e)return _e}if(h&&ct(L.declarations,Cu)){if(m){N=!0;continue}return{accessibility:0}}const Z=uv(L,a,_),de=vn(Z,a,l,l===L?xh(_):_,m,h);if(de)return de}if(N)return{accessibility:0};if(x)return{accessibility:1,errorSymbolName:ni(l,a,_),errorModuleName:x!==l?ni(x,a,1920):void 0}}function gi(r,a,l,_){return ti(r,a,l,_,!0)}function ti(r,a,l,_,m){if(r&&a){const h=vn([r],a,r,l,_,m);if(h)return h;const x=rr(r.declarations,Li);if(x){const N=Li(a);if(x!==N)return{accessibility:2,errorSymbolName:ni(r,a,l),errorModuleName:ni(x),errorNode:Hr(a)?a:void 0}}return{accessibility:1,errorSymbolName:ni(r,a,l)}}return{accessibility:0}}function Li(r){const a=Pr(r,Gs);return a&&un(a)}function Gs(r){return su(r)||r.kind===312&&af(r)}function Cu(r){return l5(r)||r.kind===312&&af(r)}function t_(r,a){let l;if(!Wi(An(r.declarations,h=>h.kind!==80),_))return;return{accessibility:0,aliasesToMakeVisible:l};function _(h){var x,N;if(!Pd(h)){const L=PS(h);if(L&&!Rn(L,32)&&Pd(L.parent))return m(h,L);if(hi(h)&&ac(h.parent.parent)&&!Rn(h.parent.parent,32)&&Pd(h.parent.parent.parent))return m(h,h.parent.parent);if(u5(h)&&!Rn(h,32)&&Pd(h.parent))return m(h,h);if(Ea(h)){if(r.flags&2097152&&Hr(h)&&((x=h.parent)!=null&&x.parent)&&hi(h.parent.parent)&&((N=h.parent.parent.parent)!=null&&N.parent)&&ac(h.parent.parent.parent.parent)&&!Rn(h.parent.parent.parent.parent,32)&&h.parent.parent.parent.parent.parent&&Pd(h.parent.parent.parent.parent.parent))return m(h,h.parent.parent.parent.parent);if(r.flags&2){const z=Pr(h,ac);return Rn(z,32)?!0:Pd(z.parent)?m(h,z):!1}}return!1}return!0}function m(h,x){return a&&(jn(h).isVisible=!0,l=Hg(l,x)),!0}}function np(r){let a;return r.parent.kind===186||r.parent.kind===233&&!gg(r.parent)||r.parent.kind===167?a=1160127:r.kind===166||r.kind===211||r.parent.kind===271||r.parent.kind===166&&r.parent.left===r||r.parent.kind===211&&r.parent.expression===r||r.parent.kind===212&&r.parent.expression===r?a=1920:a=788968,a}function jy(r,a){const l=np(r),_=lf(r),m=Go(a,_.escapedText,l,void 0,void 0,!1);return m&&m.flags&262144&&l&788968?{accessibility:0}:!m&&Yv(_)&&gi(un(a_(_,!1,!1)),_,l,!1).accessibility===0?{accessibility:0}:m&&t_(m,!0)||{accessibility:1,errorSymbolName:jc(_),errorNode:_}}function ni(r,a,l,_=4,m){let h=70221824;_&2&&(h|=128),_&1&&(h|=512),_&8&&(h|=16384),_&32&&(h|=134217728),_&16&&(h|=1073741824);const x=_&4?ft.symbolToNode:ft.symbolToEntityName;return m?N(m).getText():fE(N);function N(L){const z=x(r,l,a,h),Z=(a==null?void 0:a.kind)===312?Sq():b2(),de=a&&wr(a);return Z.writeNode(4,z,de,L),L}}function Ym(r,a,l=0,_,m){return m?h(m).getText():fE(h);function h(x){let N;l&262144?N=_===1?185:184:N=_===1?180:179;const L=ft.signatureToSignatureDeclaration(r,N,a,zS(l)|70221824|512),z=bA(),Z=a&&wr(a);return z.writeNode(4,L,Z,oW(x)),x}}function Ar(r,a,l=1064960,_=H8("")){const m=j.noErrorTruncation||l&1,h=ft.typeToTypeNode(r,a,zS(l)|70221824|(m?1:0));if(h===void 0)return E.fail("should always get typenode");const x=r!==wt?b2():bq(),N=a&&wr(a);x.writeNode(4,h,N,_);const L=_.getText(),z=m?wF*2:lw*2;return z&&L&&L.length>=z?L.substr(0,z-3)+"...":L}function uk(r,a){let l=Jy(r.symbol)?Ar(r,r.symbol.valueDeclaration):Ar(r),_=Jy(a.symbol)?Ar(a,a.symbol.valueDeclaration):Ar(a);return l===_&&(l=By(r),_=By(a)),[l,_]}function By(r){return Ar(r,void 0,64)}function Jy(r){return r&&!!r.valueDeclaration&&ot(r.valueDeclaration)&&!op(r.valueDeclaration)}function zS(r=0){return r&848330095}function H2(r){return!!r.symbol&&!!(r.symbol.flags&32)&&(r===sp(r.symbol)||!!(r.flags&524288)&&!!(bn(r)&16777216))}function um(){return{typeToTypeNode:(Ze,ye,vr,mn)=>a(ye,vr,mn,Xn=>_(Ze,Xn)),indexInfoToIndexSignatureDeclaration:(Ze,ye,vr,mn)=>a(ye,vr,mn,Xn=>Z(Ze,Xn,void 0)),signatureToSignatureDeclaration:(Ze,ye,vr,mn,Xn)=>a(vr,mn,Xn,si=>de(Ze,ye,si)),symbolToEntityName:(Ze,ye,vr,mn,Xn)=>a(vr,mn,Xn,si=>Gi(Ze,si,ye,!1)),symbolToExpression:(Ze,ye,vr,mn,Xn)=>a(vr,mn,Xn,si=>tl(Ze,si,ye)),symbolToTypeParameterDeclarations:(Ze,ye,vr,mn)=>a(ye,vr,mn,Xn=>Cr(Ze,Xn)),symbolToParameterDeclaration:(Ze,ye,vr,mn)=>a(ye,vr,mn,Xn=>qt(Ze,Xn)),typeParameterToDeclaration:(Ze,ye,vr,mn)=>a(ye,vr,mn,Xn=>st(Ze,Xn)),symbolTableToDeclarationStatements:(Ze,ye,vr,mn,Xn)=>a(ye,vr,mn,si=>$o(Ze,si,Xn)),symbolToNode:(Ze,ye,vr,mn,Xn)=>a(vr,mn,Xn,si=>r(Ze,si,ye))};function r(Ze,ye,vr){if(ye.flags&1073741824){if(Ze.valueDeclaration){const Xn=us(Ze.valueDeclaration);if(Xn&&Pa(Xn))return Xn}const mn=wi(Ze).nameType;if(mn&&mn.flags&9216)return ye.enclosingDeclaration=mn.symbol.valueDeclaration,I.createComputedPropertyName(tl(mn.symbol,ye,vr))}return tl(Ze,ye,vr)}function a(Ze,ye,vr,mn){E.assert(Ze===void 0||(Ze.flags&16)===0);const Xn=vr!=null&&vr.trackSymbol?vr.moduleResolverHost:ye&134217728?zLe(e):void 0,si={enclosingDeclaration:Ze,flags:ye||0,tracker:void 0,encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0,trackedSymbols:void 0};si.tracker=new GU(si,vr,Xn);const ai=mn(si);return si.truncating&&si.flags&1&&si.tracker.reportTruncationError(),si.encounteredError?void 0:ai}function l(Ze){return Ze.truncating?Ze.truncating:Ze.truncating=Ze.approximateLength>(Ze.flags&1?wF:lw)}function _(Ze,ye){const vr=ye.flags,mn=m(Ze,ye);return ye.flags=vr,mn}function m(Ze,ye){var vr,mn;i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();const Xn=ye.flags&8388608;if(ye.flags&=-8388609,!Ze){if(!(ye.flags&262144)){ye.encounteredError=!0;return}return ye.approximateLength+=3,I.createKeywordTypeNode(133)}if(ye.flags&536870912||(Ze=Id(Ze)),Ze.flags&1)return Ze.aliasSymbol?I.createTypeReferenceNode(Jr(Ze.aliasSymbol),L(Ze.aliasTypeArguments,ye)):Ze===wt?a3(I.createKeywordTypeNode(133),3,"unresolved"):(ye.approximateLength+=3,I.createKeywordTypeNode(Ze===Yt?141:133));if(Ze.flags&2)return I.createKeywordTypeNode(159);if(Ze.flags&4)return ye.approximateLength+=6,I.createKeywordTypeNode(154);if(Ze.flags&8)return ye.approximateLength+=6,I.createKeywordTypeNode(150);if(Ze.flags&64)return ye.approximateLength+=6,I.createKeywordTypeNode(163);if(Ze.flags&16&&!Ze.aliasSymbol)return ye.approximateLength+=7,I.createKeywordTypeNode(136);if(Ze.flags&1056){if(Ze.symbol.flags&8){const dr=e_(Ze.symbol),Jn=ss(dr,ye,788968);if(Po(dr)===Ze)return Jn;const Fi=Xo(Ze.symbol);return bf(Fi,0)?mi(Jn,I.createTypeReferenceNode(Fi,void 0)):Cg(Jn)?(Jn.isTypeOf=!0,I.createIndexedAccessTypeNode(Jn,I.createLiteralTypeNode(I.createStringLiteral(Fi)))):Gf(Jn)?I.createIndexedAccessTypeNode(I.createTypeQueryNode(Jn.typeName),I.createLiteralTypeNode(I.createStringLiteral(Fi))):E.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}return ss(Ze.symbol,ye,788968)}if(Ze.flags&128)return ye.approximateLength+=Ze.value.length+2,I.createLiteralTypeNode(Qr(I.createStringLiteral(Ze.value,!!(ye.flags&268435456)),16777216));if(Ze.flags&256){const dr=Ze.value;return ye.approximateLength+=(""+dr).length,I.createLiteralTypeNode(dr<0?I.createPrefixUnaryExpression(41,I.createNumericLiteral(-dr)):I.createNumericLiteral(dr))}if(Ze.flags&2048)return ye.approximateLength+=e2(Ze.value).length+1,I.createLiteralTypeNode(I.createBigIntLiteral(Ze.value));if(Ze.flags&512)return ye.approximateLength+=Ze.intrinsicName.length,I.createLiteralTypeNode(Ze.intrinsicName==="true"?I.createTrue():I.createFalse());if(Ze.flags&8192){if(!(ye.flags&1048576)){if(it(Ze.symbol,ye.enclosingDeclaration))return ye.approximateLength+=6,ss(Ze.symbol,ye,111551);ye.tracker.reportInaccessibleUniqueSymbolError&&ye.tracker.reportInaccessibleUniqueSymbolError()}return ye.approximateLength+=13,I.createTypeOperatorNode(158,I.createKeywordTypeNode(155))}if(Ze.flags&16384)return ye.approximateLength+=4,I.createKeywordTypeNode(116);if(Ze.flags&32768)return ye.approximateLength+=9,I.createKeywordTypeNode(157);if(Ze.flags&65536)return ye.approximateLength+=4,I.createLiteralTypeNode(I.createNull());if(Ze.flags&131072)return ye.approximateLength+=5,I.createKeywordTypeNode(146);if(Ze.flags&4096)return ye.approximateLength+=6,I.createKeywordTypeNode(155);if(Ze.flags&67108864)return ye.approximateLength+=6,I.createKeywordTypeNode(151);if(ZE(Ze))return ye.flags&4194304&&(!ye.encounteredError&&!(ye.flags&32768)&&(ye.encounteredError=!0),(mn=(vr=ye.tracker).reportInaccessibleThisError)==null||mn.call(vr)),ye.approximateLength+=4,I.createThisTypeNode();if(!Xn&&Ze.aliasSymbol&&(ye.flags&16384||te(Ze.aliasSymbol,ye.enclosingDeclaration))){const dr=L(Ze.aliasTypeArguments,ye);return V2(Ze.aliasSymbol.escapedName)&&!(Ze.aliasSymbol.flags&32)?I.createTypeReferenceNode(I.createIdentifier(""),dr):mr(dr)===1&&Ze.aliasSymbol===Ds.symbol?I.createArrayTypeNode(dr[0]):ss(Ze.aliasSymbol,ye,788968,dr)}const si=bn(Ze);if(si&4)return E.assert(!!(Ze.flags&524288)),Ze.node?It(Ze,xr):xr(Ze);if(Ze.flags&262144||si&3){if(Ze.flags&262144&&bs(ye.inferTypeParameters,Ze)){ye.approximateLength+=Xo(Ze.symbol).length+6;let Jn;const Fi=r_(Ze);if(Fi){const qi=j8e(Ze,!0);qi&&Ih(Fi,qi)||(ye.approximateLength+=9,Jn=Fi&&_(Fi,ye))}return I.createInferTypeNode(Re(Ze,ye,Jn))}if(ye.flags&4&&Ze.flags&262144){const Jn=hs(Ze,ye);return ye.approximateLength+=on(Jn).length,I.createTypeReferenceNode(I.createIdentifier(on(Jn)),void 0)}if(Ze.symbol)return ss(Ze.symbol,ye,788968);const dr=(Ze===se||Ze===X)&&F&&F.symbol?(Ze===X?"sub-":"super-")+Xo(F.symbol):"?";return I.createTypeReferenceNode(I.createIdentifier(dr),void 0)}if(Ze.flags&1048576&&Ze.origin&&(Ze=Ze.origin),Ze.flags&3145728){const dr=Ze.flags&1048576?c4(Ze.types):Ze.types;if(mr(dr)===1)return _(dr[0],ye);const Jn=L(dr,ye,!0);if(Jn&&Jn.length>0)return Ze.flags&1048576?I.createUnionTypeNode(Jn):I.createIntersectionTypeNode(Jn);!ye.encounteredError&&!(ye.flags&262144)&&(ye.encounteredError=!0);return}if(si&48)return E.assert(!!(Ze.flags&524288)),Qt(Ze);if(Ze.flags&4194304){const dr=Ze.type;ye.approximateLength+=6;const Jn=_(dr,ye);return I.createTypeOperatorNode(143,Jn)}if(Ze.flags&134217728){const dr=Ze.texts,Jn=Ze.types,Fi=I.createTemplateHead(dr[0]),qi=I.createNodeArray(nr(Jn,(Ys,Hc)=>I.createTemplateLiteralTypeSpan(_(Ys,ye),(Hcai(dr));if(Ze.flags&33554432){const dr=_(Ze.baseType,ye),Jn=jP(Ze)&&lme("NoInfer",!1);return Jn?ss(Jn,ye,788968,[dr]):dr}return E.fail("Should be unreachable.");function ai(dr){const Jn=_(dr.checkType,ye);if(ye.approximateLength+=15,ye.flags&4&&dr.root.isDistributive&&!(dr.checkType.flags&262144)){const oo=Rf(xa(262144,"T")),ro=hs(oo,ye),Zl=I.createTypeReferenceNode(ro);ye.approximateLength+=37;const To=eT(dr.root.checkType,oo,dr.mapper),Rd=ye.inferTypeParameters;ye.inferTypeParameters=dr.root.inferTypeParameters;const He=_(zi(dr.root.extendsType,To),ye);ye.inferTypeParameters=Rd;const ut=Pn(zi(ii(dr.root.node.trueType),To)),Bt=Pn(zi(ii(dr.root.node.falseType),To));return I.createConditionalTypeNode(Jn,I.createInferTypeNode(I.createTypeParameterDeclaration(void 0,I.cloneNode(Zl.typeName))),I.createConditionalTypeNode(I.createTypeReferenceNode(I.cloneNode(ro)),_(dr.checkType,ye),I.createConditionalTypeNode(Zl,He,ut,Bt),I.createKeywordTypeNode(146)),I.createKeywordTypeNode(146))}const Fi=ye.inferTypeParameters;ye.inferTypeParameters=dr.root.inferTypeParameters;const qi=_(dr.extendsType,ye);ye.inferTypeParameters=Fi;const Ys=Pn(Tv(dr)),Hc=Pn(xv(dr));return I.createConditionalTypeNode(Jn,qi,Ys,Hc)}function Pn(dr){var Jn,Fi,qi;return dr.flags&1048576?(Jn=ye.visitedTypes)!=null&&Jn.has(Vu(dr))?(ye.flags&131072||(ye.encounteredError=!0,(qi=(Fi=ye.tracker)==null?void 0:Fi.reportCyclicStructureError)==null||qi.call(Fi)),h(ye)):It(dr,Ys=>_(Ys,ye)):_(dr,ye)}function _n(dr){return!!hI(dr)}function Qe(dr){return!!dr.target&&_n(dr.target)&&!_n(dr)}function xt(dr){var Jn;E.assert(!!(dr.flags&524288));const Fi=dr.declaration.readonlyToken?I.createToken(dr.declaration.readonlyToken.kind):void 0,qi=dr.declaration.questionToken?I.createToken(dr.declaration.questionToken.kind):void 0;let Ys,Hc;const oo=!m4(dr)&&!(qS(dr).flags&2)&&ye.flags&4&&!(Bf(dr).flags&262144&&((Jn=r_(Bf(dr)))==null?void 0:Jn.flags)&4194304);if(m4(dr)){if(Qe(dr)&&ye.flags&4){const ut=Rf(xa(262144,"T")),Bt=hs(ut,ye);Hc=I.createTypeReferenceNode(Bt)}Ys=I.createTypeOperatorNode(143,Hc||_(qS(dr),ye))}else if(oo){const ut=Rf(xa(262144,"T")),Bt=hs(ut,ye);Hc=I.createTypeReferenceNode(Bt),Ys=Hc}else Ys=_(Bf(dr),ye);const ro=Re(Ad(dr),ye,Ys),Zl=dr.declaration.nameType?_(E0(dr),ye):void 0,To=_(s1(Dh(dr),!!(tg(dr)&4)),ye),Rd=I.createMappedTypeNode(Fi,ro,Zl,qi,To,void 0);ye.approximateLength+=10;const He=Qr(Rd,1);if(Qe(dr)&&ye.flags&4){const ut=zi(r_(ii(dr.declaration.typeParameter.constraint.type))||Kt,dr.mapper);return I.createConditionalTypeNode(_(qS(dr),ye),I.createInferTypeNode(I.createTypeParameterDeclaration(void 0,I.cloneNode(Hc.typeName),ut.flags&2?void 0:_(ut,ye))),He,I.createKeywordTypeNode(146))}else if(oo)return I.createConditionalTypeNode(_(Bf(dr),ye),I.createInferTypeNode(I.createTypeParameterDeclaration(void 0,I.cloneNode(Hc.typeName),I.createTypeOperatorNode(143,_(qS(dr),ye)))),He,I.createKeywordTypeNode(146));return He}function Qt(dr){var Jn,Fi;const qi=dr.id,Ys=dr.symbol;if(Ys){if(!!(bn(dr)&8388608)){const To=dr.node;if(sx(To)&&ii(To)===dr){const Rd=uc(ye,To);if(Rd)return Rd}return(Jn=ye.visitedTypes)!=null&&Jn.has(qi)?h(ye):It(dr,Zt)}const ro=H2(dr)?788968:111551;if(hm(Ys.valueDeclaration))return ss(Ys,ye,ro);if(Ys.flags&32&&!FY(Ys)&&!(Ys.valueDeclaration&&$n(Ys.valueDeclaration)&&ye.flags&2048&&(!Qc(Ys.valueDeclaration)||gi(Ys,ye.enclosingDeclaration,ro,!1).accessibility!==0))||Ys.flags&896||Hc())return ss(Ys,ye,ro);if((Fi=ye.visitedTypes)!=null&&Fi.has(qi)){const Zl=DR(dr);return Zl?ss(Zl,ye,788968):h(ye)}else return It(dr,Zt)}else return Zt(dr);function Hc(){var oo;const ro=!!(Ys.flags&8192)&&ct(Ys.declarations,To=>Ms(To)),Zl=!!(Ys.flags&16)&&(Ys.parent||rr(Ys.declarations,To=>To.parent.kind===312||To.parent.kind===268));if(ro||Zl)return(!!(ye.flags&4096)||((oo=ye.visitedTypes)==null?void 0:oo.has(qi)))&&(!(ye.flags&8)||it(Ys,ye.enclosingDeclaration))}}function It(dr,Jn){var Fi,qi,Ys;const Hc=dr.id,oo=bn(dr)&16&&dr.symbol&&dr.symbol.flags&32,ro=bn(dr)&4&&dr.node?"N"+Oa(dr.node):dr.flags&16777216?"N"+Oa(dr.root.node):dr.symbol?(oo?"+":"")+Ks(dr.symbol):void 0;ye.visitedTypes||(ye.visitedTypes=new Set),ro&&!ye.symbolDepth&&(ye.symbolDepth=new Map);const Zl=ye.enclosingDeclaration&&jn(ye.enclosingDeclaration),To=`${Vu(dr)}|${ye.flags}`;Zl&&(Zl.serializedTypes||(Zl.serializedTypes=new Map));const Rd=(Fi=Zl==null?void 0:Zl.serializedTypes)==null?void 0:Fi.get(To);if(Rd)return(qi=Rd.trackedSymbols)==null||qi.forEach(([Dn,Si,ms])=>ye.tracker.trackSymbol(Dn,Si,ms)),Rd.truncating&&(ye.truncating=!0),ye.approximateLength+=Rd.addedLength,lr(Rd.node);let He;if(ro){if(He=ye.symbolDepth.get(ro)||0,He>10)return h(ye);ye.symbolDepth.set(ro,He+1)}ye.visitedTypes.add(Hc);const ut=ye.trackedSymbols;ye.trackedSymbols=void 0;const Bt=ye.approximateLength,Or=Jn(dr),fn=ye.approximateLength-Bt;return!ye.reportedDiagnostic&&!ye.encounteredError&&((Ys=Zl==null?void 0:Zl.serializedTypes)==null||Ys.set(To,{node:Or,truncating:ye.truncating,addedLength:fn,trackedSymbols:ye.trackedSymbols})),ye.visitedTypes.delete(Hc),ro&&ye.symbolDepth.set(ro,He),ye.trackedSymbols=ut,Or;function lr(Dn){return!ko(Dn)&&as(Dn)===Dn?Dn:Ke(I.cloneNode(ur(Dn,lr,void 0,tn)),Dn)}function tn(Dn,Si,ms,Us,qs){return Dn&&Dn.length===0?Ke(I.createNodeArray(void 0,Dn.hasTrailingComma),Dn):Dr(Dn,Si,ms,Us,qs)}}function Zt(dr){if(g_(dr)||dr.containsError)return xt(dr);const Jn=Nd(dr);if(!Jn.properties.length&&!Jn.indexInfos.length){if(!Jn.callSignatures.length&&!Jn.constructSignatures.length)return ye.approximateLength+=2,Qr(I.createTypeLiteralNode(void 0),1);if(Jn.callSignatures.length===1&&!Jn.constructSignatures.length){const oo=Jn.callSignatures[0];return de(oo,184,ye)}if(Jn.constructSignatures.length===1&&!Jn.callSignatures.length){const oo=Jn.constructSignatures[0];return de(oo,185,ye)}}const Fi=An(Jn.constructSignatures,oo=>!!(oo.flags&4));if(ct(Fi)){const oo=nr(Fi,XS);return Jn.callSignatures.length+(Jn.constructSignatures.length-Fi.length)+Jn.indexInfos.length+(ye.flags&2048?R0(Jn.properties,Zl=>!(Zl.flags&4194304)):mr(Jn.properties))&&oo.push(U2(Jn)),_(Xs(oo),ye)}const qi=ye.flags;ye.flags|=4194304;const Ys=ys(Jn);ye.flags=qi;const Hc=I.createTypeLiteralNode(Ys);return ye.approximateLength+=2,Qr(Hc,ye.flags&1024?0:1),Hc}function xr(dr){let Jn=So(dr);if(dr.target===Ds||dr.target===Is){if(ye.flags&2){const Ys=_(Jn[0],ye);return I.createTypeReferenceNode(dr.target===Ds?"Array":"ReadonlyArray",[Ys])}const Fi=_(Jn[0],ye),qi=I.createArrayTypeNode(Fi);return dr.target===Ds?qi:I.createTypeOperatorNode(148,qi)}else if(dr.target.objectFlags&8){if(Jn=nl(Jn,(Fi,qi)=>s1(Fi,!!(dr.target.elementFlags[qi]&2))),Jn.length>0){const Fi=D0(dr),qi=L(Jn.slice(0,Fi),ye);if(qi){const{labeledElementDeclarations:Ys}=dr.target;for(let oo=0;oo0){const Zl=(dr.target.typeParameters||Ve).length;Hc=L(Jn.slice(qi,Zl),ye)}const oo=ye.flags;ye.flags|=16;const ro=ss(dr.symbol,ye,788968,Hc);return ye.flags=oo,Ys?mi(Ys,ro):ro}}}function mi(dr,Jn){if(Cg(dr)){let Fi=dr.typeArguments,qi=dr.qualifier;qi&&(Ie(qi)?Fi!==Jb(qi)&&(qi=i0(I.cloneNode(qi),Fi)):Fi!==Jb(qi.right)&&(qi=I.updateQualifiedName(qi,qi.left,i0(I.cloneNode(qi.right),Fi)))),Fi=Jn.typeArguments;const Ys=xn(Jn);for(const Hc of Ys)qi=qi?I.createQualifiedName(qi,Hc):Hc;return I.updateImportTypeNode(dr,dr.argument,dr.attributes,qi,Fi,dr.isTypeOf)}else{let Fi=dr.typeArguments,qi=dr.typeName;Ie(qi)?Fi!==Jb(qi)&&(qi=i0(I.cloneNode(qi),Fi)):Fi!==Jb(qi.right)&&(qi=I.updateQualifiedName(qi,qi.left,i0(I.cloneNode(qi.right),Fi))),Fi=Jn.typeArguments;const Ys=xn(Jn);for(const Hc of Ys)qi=I.createQualifiedName(qi,Hc);return I.updateTypeReferenceNode(dr,qi,Fi)}}function xn(dr){let Jn=dr.typeName;const Fi=[];for(;!Ie(Jn);)Fi.unshift(Jn.right),Jn=Jn.left;return Fi.unshift(Jn),Fi}function ys(dr){if(l(ye))return[I.createPropertySignature(void 0,"...",void 0,void 0)];const Jn=[];for(const Ys of dr.callSignatures)Jn.push(de(Ys,179,ye));for(const Ys of dr.constructSignatures)Ys.flags&4||Jn.push(de(Ys,180,ye));for(const Ys of dr.indexInfos)Jn.push(Z(Ys,ye,dr.objectFlags&1024?h(ye):void 0));const Fi=dr.properties;if(!Fi)return Jn;let qi=0;for(const Ys of Fi){if(qi++,ye.flags&2048){if(Ys.flags&4194304)continue;qf(Ys)&6&&ye.tracker.reportPrivateInBaseOfClassExpression&&ye.tracker.reportPrivateInBaseOfClassExpression(xi(Ys.escapedName))}if(l(ye)&&qi+2!(xr.flags&32768)),0);for(const xr of Zt){const mi=de(xr,173,ye,{name:Pn,questionToken:_n});vr.push(It(mi))}if(Zt.length||!_n)return}let Qe;x(Ze,ye)?Qe=h(ye):(Xn&&(ye.reverseMappedStack||(ye.reverseMappedStack=[]),ye.reverseMappedStack.push(Ze)),Qe=si?Xa(ye,si,Ze,ai):I.createKeywordTypeNode(133),Xn&&ye.reverseMappedStack.pop());const xt=Md(Ze)?[I.createToken(148)]:void 0;xt&&(ye.approximateLength+=9);const Qt=I.createPropertySignature(xt,Pn,_n,Qe);vr.push(It(Qt));function It(Zt){var xr;const mi=(xr=Ze.declarations)==null?void 0:xr.find(xn=>xn.kind===355);if(mi){const xn=GD(mi.comment);xn&&O1(Zt,[{kind:3,text:`* * `+xn.replace(/\n/g,` * `)+` - `,pos:-1,end:-1,hasTrailingNewLine:!0}])}else Ze.valueDeclaration&&Nc(Zt,Ze.valueDeclaration);return Zt}}function L(Ze,ye,vr){if(ct(Ze)){if(l(ye))if(vr){if(Ze.length>2)return[_(Ze[0],ye),I.createTypeReferenceNode(`... ${Ze.length-2} more ...`,void 0),_(Ze[Ze.length-1],ye)]}else return[I.createTypeReferenceNode("...",void 0)];const Xn=!(ye.flags&64)?vf():void 0,si=[];let ai=0;for(const Pn of Ze){if(ai++,l(ye)&&ai+2{if(!mne(_n,([Qe],[xt])=>z(Qe,xt)))for(const[Qe,xt]of _n)si[xt]=_(Qe,ye)}),ye.flags=Pn}return si}}function z(Ze,ye){return Ze===ye||!!Ze.symbol&&Ze.symbol===ye.symbol||!!Ze.aliasSymbol&&Ze.aliasSymbol===ye.aliasSymbol}function Z(Ze,ye,vr){const mn=Mte(Ze)||"x",Xn=_(Ze.keyType,ye),si=I.createParameterDeclaration(void 0,void 0,mn,void 0,Xn,void 0);return vr||(vr=_(Ze.type||B,ye)),!Ze.type&&!(ye.flags&2097152)&&(ye.encounteredError=!0),ye.approximateLength+=mn.length+4,I.createIndexSignature(Ze.isReadonly?[I.createToken(148)]:void 0,[si],vr)}function de(Ze,ye,vr,mn){var Xn;const si=vr.flags&256;si&&(vr.flags&=-257),vr.approximateLength+=3;let ai,Pn;vr.flags&32&&Ze.target&&Ze.mapper&&Ze.target.typeParameters?Pn=Ze.target.typeParameters.map(xn=>_(zi(xn,Ze.mapper),vr)):ai=Ze.typeParameters&&Ze.typeParameters.map(xn=>st(xn,vr));const _n=d8e(Ze,!0)[0];let Qe;if(vr.enclosingDeclaration&&Ze.declaration&&Ze.declaration!==vr.enclosingDeclaration&&!Hr(Ze.declaration)&&(ct(_n)||ct(Ze.typeParameters))){let xn=function(ys,dr){E.assert(vr.enclosingDeclaration);let Jn;jn(vr.enclosingDeclaration).fakeScopeForSignatureDeclaration===ys?Jn=vr.enclosingDeclaration:vr.enclosingDeclaration.parent&&jn(vr.enclosingDeclaration.parent).fakeScopeForSignatureDeclaration===ys&&(Jn=vr.enclosingDeclaration.parent),E.assertOptionalNode(Jn,Cs);const Fi=(Jn==null?void 0:Jn.locals)??Bs();let qi;if(dr((ao,to)=>{Fi.has(ao)||(qi=_r(qi,ao),Fi.set(ao,to))}),!qi)return;const Ys=Qe;function Hc(){er(qi,ao=>Fi.delete(ao)),Ys==null||Ys()}if(Jn)Qe=Hc;else{const ao=Jm.createBlock(Ve);jn(ao).fakeScopeForSignatureDeclaration=ys,ao.locals=Fi;const to=vr.enclosingDeclaration;ba(ao,to),vr.enclosingDeclaration=ao,Qe=()=>{vr.enclosingDeclaration=to,Hc()}}};xn("params",ys=>{for(const dr of _n)ys(dr.escapedName,dr)}),vr.flags&4&&xn("typeParams",ys=>{for(const dr of Ze.typeParameters??Ve){const Jn=hs(dr,vr).escapedText;ys(Jn,dr.symbol)}})}const xt=(ct(_n,xn=>xn!==_n[_n.length-1]&&!!(Ko(xn)&32768))?Ze.parameters:_n).map(xn=>qt(xn,vr,ye===176,mn==null?void 0:mn.privateSymbolVisitor,mn==null?void 0:mn.bundledImports)),Qt=vr.flags&33554432?void 0:_e(Ze,vr);Qt&&xt.unshift(Qt);let It;const Zt=op(Ze);if(Zt){const xn=Zt.kind===2||Zt.kind===3?I.createToken(131):void 0,ys=Zt.kind===1||Zt.kind===3?Qr(I.createIdentifier(Zt.parameterName),16777216):I.createThisTypeNode(),dr=Zt.type&&_(Zt.type,vr);It=I.createTypePredicateNode(xn,ys,dr)}else{const xn=Ja(Ze);xn&&!(si&&ht(xn))?It=ma(vr,xn,Ze,mn==null?void 0:mn.privateSymbolVisitor,mn==null?void 0:mn.bundledImports):si||(It=I.createKeywordTypeNode(133))}let xr=mn==null?void 0:mn.modifiers;if(ye===185&&Ze.flags&4){const xn=$d(xr);xr=I.createModifiersFromModifierFlags(xn|64)}const mi=ye===179?I.createCallSignature(ai,xt,It):ye===180?I.createConstructSignature(ai,xt,It):ye===173?I.createMethodSignature(xr,(mn==null?void 0:mn.name)??I.createIdentifier(""),mn==null?void 0:mn.questionToken,ai,xt,It):ye===174?I.createMethodDeclaration(xr,void 0,(mn==null?void 0:mn.name)??I.createIdentifier(""),void 0,ai,xt,It,void 0):ye===176?I.createConstructorDeclaration(xr,xt,void 0):ye===177?I.createGetAccessorDeclaration(xr,(mn==null?void 0:mn.name)??I.createIdentifier(""),xt,It,void 0):ye===178?I.createSetAccessorDeclaration(xr,(mn==null?void 0:mn.name)??I.createIdentifier(""),xt,void 0):ye===181?I.createIndexSignature(xr,xt,It):ye===324?I.createJSDocFunctionType(xt,It):ye===184?I.createFunctionTypeNode(ai,xt,It??I.createTypeReferenceNode(I.createIdentifier(""))):ye===185?I.createConstructorTypeNode(xr,ai,xt,It??I.createTypeReferenceNode(I.createIdentifier(""))):ye===262?I.createFunctionDeclaration(xr,void 0,mn!=null&&mn.name?Ls(mn.name,Ie):I.createIdentifier(""),ai,xt,It,void 0):ye===218?I.createFunctionExpression(xr,void 0,mn!=null&&mn.name?Ls(mn.name,Ie):I.createIdentifier(""),ai,xt,It,I.createBlock([])):ye===219?I.createArrowFunction(xr,ai,xt,It,void 0,I.createBlock([])):E.assertNever(ye);if(Pn&&(mi.typeArguments=I.createNodeArray(Pn)),((Xn=Ze.declaration)==null?void 0:Xn.kind)===330&&Ze.declaration.parent.kind===346){const xn=jc(Ze.declaration.parent.parent,!0).slice(2,-2).split(/\r\n|\n|\r/).map(ys=>ys.replace(/^\s+/," ")).join(` -`);o3(mi,3,xn,!0)}return Qe==null||Qe(),mi}function _e(Ze,ye){if(Ze.thisParameter)return qt(Ze.thisParameter,ye);if(Ze.declaration&&Hr(Ze.declaration)){const vr=W7(Ze.declaration);if(vr&&vr.typeExpression)return I.createParameterDeclaration(void 0,void 0,"this",void 0,_(ii(vr.typeExpression),ye))}}function Re(Ze,ye,vr){const mn=ye.flags;ye.flags&=-513;const Xn=I.createModifiersFromModifierFlags(Hme(Ze)),si=hs(Ze,ye),ai=XS(Ze),Pn=ai&&_(ai,ye);return ye.flags=mn,I.createTypeParameterDeclaration(Xn,si,vr,Pn)}function st(Ze,ye,vr=r_(Ze)){const mn=vr&&_(vr,ye);return Re(Ze,ye,mn)}function gt(Ze){const ye=Bo(Ze,169);if(ye)return ye;if(!wm(Ze))return Bo(Ze,348)}function qt(Ze,ye,vr,mn,Xn){const si=gt(Ze);let ai=Xr(Ze);si&&n5e(si)&&(ai=s1(ai));const Pn=Xa(ye,ai,Ze,ye.enclosingDeclaration,mn,Xn),_n=!(ye.flags&8192)&&vr&&si&&$p(si)?nr(Lv(si),I.cloneNode):void 0,xt=si&&dg(si)||Ko(Ze)&32768?I.createToken(26):void 0,Qt=$t(Ze,si,ye),Zt=si&&uI(si)||Ko(Ze)&16384?I.createToken(58):void 0,xr=I.createParameterDeclaration(_n,xt,Qt,Zt,Pn,void 0);return ye.approximateLength+=Xo(Ze).length+3,xr}function $t(Ze,ye,vr){return ye&&ye.name?ye.name.kind===80?Qr(I.cloneNode(ye.name),16777216):ye.name.kind===166?Qr(I.cloneNode(ye.name.right),16777216):mn(ye.name):Xo(Ze);function mn(Xn){return si(Xn);function si(ai){vr.tracker.canTrackSymbol&&Pa(ai)&&Ode(ai)&&Ur(ai.expression,vr.enclosingDeclaration,vr);let Pn=ur(ai,si,void 0,void 0,si);return Ea(Pn)&&(Pn=I.updateBindingElement(Pn,Pn.dotDotDotToken,Pn.propertyName,Pn.name,void 0)),xo(Pn)||(Pn=I.cloneNode(Pn)),Qr(Pn,16777217)}}}function Ur(Ze,ye,vr){if(!vr.tracker.canTrackSymbol)return;const mn=lf(Ze),Xn=Ho(mn,mn.escapedText,1160127,void 0,void 0,!0);Xn&&vr.tracker.trackSymbol(Xn,ye,111551)}function Tr(Ze,ye,vr,mn){return ye.tracker.trackSymbol(Ze,ye.enclosingDeclaration,vr),Gt(Ze,ye,vr,mn)}function Gt(Ze,ye,vr,mn){let Xn;return!(Ze.flags&262144)&&(ye.enclosingDeclaration||ye.flags&64)&&!(ye.flags&134217728)?(Xn=E.checkDefined(ai(Ze,vr,!0)),E.assert(Xn&&Xn.length>0)):Xn=[Ze],Xn;function ai(Pn,_n,Qe){let xt=jy(Pn,ye.enclosingDeclaration,_n,!!(ye.flags&128)),Qt;if(!xt||fv(xt[0],ye.enclosingDeclaration,xt.length===1?_n:xh(_n))){const Zt=uv(xt?xt[0]:Pn,ye.enclosingDeclaration,_n);if(gr(Zt)){Qt=Zt.map(xn=>ct(xn.declarations,Cu)?Ir(xn,ye):void 0);const xr=Zt.map((xn,ys)=>ys);xr.sort(It);const mi=xr.map(xn=>Zt[xn]);for(const xn of mi){const ys=ai(xn,xh(_n),!1);if(ys){if(xn.exports&&xn.exports.get("export=")&&Pd(xn.exports.get("export="),Pn)){xt=ys;break}xt=ys.concat(xt||[Mg(xn,Pn)||Pn]);break}}}}if(xt)return xt;if(Qe||!(Pn.flags&6144))return!Qe&&!mn&&er(Pn.declarations,Cu)?void 0:[Pn];function It(Zt,xr){const mi=Qt[Zt],xn=Qt[xr];if(mi&&xn){const ys=nf(xn);return nf(mi)===ys?p9(mi)-p9(xn):ys?-1:1}return 0}}}function Cr(Ze,ye){let vr;return I4(Ze).flags&524384&&(vr=I.createNodeArray(nr(hn(Ze),Xn=>st(Xn,ye)))),vr}function kr(Ze,ye,vr){var mn;E.assert(Ze&&0<=ye&&yet1(xt,_n.links.mapper)),vr)}else ai=Cr(Xn,vr)}return ai}function Br(Ze){return qb(Ze.objectType)?Br(Ze.objectType):Ze}function Ir(Ze,ye,vr){let mn=Bo(Ze,312);if(!mn){const Qe=$o(Ze.declarations,xt=>JS(xt,Ze));Qe&&(mn=Bo(Qe,312))}if(mn&&mn.moduleName!==void 0)return mn.moduleName;if(!mn){if(ye.tracker.trackReferencedAmbientModule){const Qe=An(Ze.declarations,su);if(gr(Qe))for(const xt of Qe)ye.tracker.trackReferencedAmbientModule(xt,Ze)}if(GU.test(Ze.escapedName))return Ze.escapedName.substring(1,Ze.escapedName.length-1)}if(!ye.enclosingDeclaration||!ye.tracker.moduleResolverHost)return GU.test(Ze.escapedName)?Ze.escapedName.substring(1,Ze.escapedName.length-1):wr(xz(Ze)).fileName;const Xn=wr(ic(ye.enclosingDeclaration)),si=vr||(Xn==null?void 0:Xn.impliedNodeFormat),ai=N3(Xn.path,si),Pn=wi(Ze);let _n=Pn.specifierCache&&Pn.specifierCache.get(ai);if(!_n){const Qe=!!no(j),{moduleResolverHost:xt}=ye.tracker,Qt=Qe?{...j,baseUrl:xt.getCommonSourceDirectory()}:j;_n=va(fbe(Ze,jt,Qt,Xn,xt,{importModuleSpecifierPreference:Qe?"non-relative":"project-relative",importModuleSpecifierEnding:Qe?"minimal":si===99?"js":void 0},{overrideImportMode:vr})),Pn.specifierCache??(Pn.specifierCache=new Map),Pn.specifierCache.set(ai,_n)}return _n}function Jr(Ze){const ye=I.createIdentifier(xi(Ze.escapedName));return Ze.parent?I.createQualifiedName(Jr(Ze.parent),ye):ye}function ss(Ze,ye,vr,mn){const Xn=Tr(Ze,ye,vr,!(ye.flags&16384)),si=vr===111551;if(ct(Xn[0].declarations,Cu)){const _n=Xn.length>1?Pn(Xn,Xn.length-1,1):void 0,Qe=mn||kr(Xn,0,ye),xt=wr(ic(ye.enclosingDeclaration)),Qt=c5(Xn[0]);let It,Zt;if((Ru(j)===3||Ru(j)===99)&&(Qt==null?void 0:Qt.impliedNodeFormat)===99&&Qt.impliedNodeFormat!==(xt==null?void 0:xt.impliedNodeFormat)&&(It=Ir(Xn[0],ye,99),Zt=I.createImportAttributes(I.createNodeArray([I.createImportAttribute(I.createStringLiteral("resolution-mode"),I.createStringLiteral("import"))]))),It||(It=Ir(Xn[0],ye)),!(ye.flags&67108864)&&Ru(j)!==1&&It.includes("/node_modules/")){const mi=It;if(Ru(j)===3||Ru(j)===99){const xn=(xt==null?void 0:xt.impliedNodeFormat)===99?1:99;It=Ir(Xn[0],ye,xn),It.includes("/node_modules/")?It=mi:Zt=I.createImportAttributes(I.createNodeArray([I.createImportAttribute(I.createStringLiteral("resolution-mode"),I.createStringLiteral(xn===99?"import":"require"))]))}Zt||(ye.encounteredError=!0,ye.tracker.reportLikelyUnsafeImportRequiredError&&ye.tracker.reportLikelyUnsafeImportRequiredError(mi))}const xr=I.createLiteralTypeNode(I.createStringLiteral(It));if(ye.tracker.trackExternalModuleSymbolOfImportTypeNode&&ye.tracker.trackExternalModuleSymbolOfImportTypeNode(Xn[0]),ye.approximateLength+=It.length+10,!_n||b_(_n)){if(_n){const mi=Ie(_n)?_n:_n.right;i0(mi,void 0)}return I.createImportTypeNode(xr,Zt,_n,Qe,si)}else{const mi=Br(_n),xn=mi.objectType.typeName;return I.createIndexedAccessTypeNode(I.createImportTypeNode(xr,Zt,xn,Qe,si),mi.indexType)}}const ai=Pn(Xn,Xn.length-1,0);if(qb(ai))return ai;if(si)return I.createTypeQueryNode(ai);{const _n=Ie(ai)?ai:ai.right,Qe=zb(_n);return i0(_n,void 0),I.createTypeReferenceNode(ai,Qe)}function Pn(_n,Qe,xt){const Qt=Qe===_n.length-1?mn:kr(_n,Qe,ye),It=_n[Qe],Zt=_n[Qe-1];let xr;if(Qe===0)ye.flags|=16777216,xr=pv(It,ye),ye.approximateLength+=(xr?xr.length:0)+1,ye.flags^=16777216;else if(Zt&&Q_(Zt)){const xn=Q_(Zt);_l(xn,(ys,dr)=>{if(Pd(ys,It)&&!oI(dr)&&dr!=="export=")return xr=xi(dr),!0})}if(xr===void 0){const xn=$o(It.declarations,us);if(xn&&Pa(xn)&&b_(xn.expression)){const ys=Pn(_n,Qe-1,xt);return b_(ys)?I.createIndexedAccessTypeNode(I.createParenthesizedType(I.createTypeQueryNode(ys)),I.createTypeQueryNode(xn.expression)):ys}xr=pv(It,ye)}if(ye.approximateLength+=xr.length+1,!(ye.flags&16)&&Zt&&Xy(Zt)&&Xy(Zt).get(It.escapedName)&&Pd(Xy(Zt).get(It.escapedName),It)){const xn=Pn(_n,Qe-1,xt);return qb(xn)?I.createIndexedAccessTypeNode(xn,I.createLiteralTypeNode(I.createStringLiteral(xr))):I.createIndexedAccessTypeNode(I.createTypeReferenceNode(xn,Qt),I.createLiteralTypeNode(I.createStringLiteral(xr)))}const mi=Qr(I.createIdentifier(xr),16777216);if(Qt&&i0(mi,I.createNodeArray(Qt)),mi.symbol=It,Qe>xt){const xn=Pn(_n,Qe-1,xt);return b_(xn)?I.createQualifiedName(xn,mi):E.fail("Impossible construct - an export of an indexed access cannot be reachable")}return mi}}function Ki(Ze,ye,vr){const mn=Ho(ye.enclosingDeclaration,Ze,788968,void 0,Ze,!1);return mn&&mn.flags&262144?mn!==vr.symbol:!1}function hs(Ze,ye){var vr,mn;if(ye.flags&4&&ye.typeParameterNames){const si=ye.typeParameterNames.get(Vu(Ze));if(si)return si}let Xn=Gi(Ze.symbol,ye,788968,!0);if(!(Xn.kind&80))return I.createIdentifier("(Missing type parameter)");if(ye.flags&4){const si=Xn.escapedText;let ai=((vr=ye.typeParameterNamesByTextNextNameCount)==null?void 0:vr.get(si))||0,Pn=si;for(;(mn=ye.typeParameterNamesByText)!=null&&mn.has(Pn)||Ki(Pn,ye,Ze);)ai++,Pn=`${si}_${ai}`;if(Pn!==si){const _n=zb(Xn);Xn=I.createIdentifier(Pn),i0(Xn,_n)}(ye.typeParameterNamesByTextNextNameCount||(ye.typeParameterNamesByTextNextNameCount=new Map)).set(si,ai),(ye.typeParameterNames||(ye.typeParameterNames=new Map)).set(Vu(Ze),Xn),(ye.typeParameterNamesByText||(ye.typeParameterNamesByText=new Set)).add(Pn)}return Xn}function Gi(Ze,ye,vr,mn){const Xn=Tr(Ze,ye,vr);return mn&&Xn.length!==1&&!ye.encounteredError&&!(ye.flags&65536)&&(ye.encounteredError=!0),si(Xn,Xn.length-1);function si(ai,Pn){const _n=kr(ai,Pn,ye),Qe=ai[Pn];Pn===0&&(ye.flags|=16777216);const xt=pv(Qe,ye);Pn===0&&(ye.flags^=16777216);const Qt=Qr(I.createIdentifier(xt),16777216);return _n&&i0(Qt,I.createNodeArray(_n)),Qt.symbol=Qe,Pn>0?I.createQualifiedName(si(ai,Pn-1),Qt):Qt}}function el(Ze,ye,vr){const mn=Tr(Ze,ye,vr);return Xn(mn,mn.length-1);function Xn(si,ai){const Pn=kr(si,ai,ye),_n=si[ai];ai===0&&(ye.flags|=16777216);let Qe=pv(_n,ye);ai===0&&(ye.flags^=16777216);let xt=Qe.charCodeAt(0);if(x8(xt)&&ct(_n.declarations,Cu))return I.createStringLiteral(Ir(_n,ye));if(ai===0||WW(Qe,re)){const Qt=Qr(I.createIdentifier(Qe),16777216);return Pn&&i0(Qt,I.createNodeArray(Pn)),Qt.symbol=_n,ai>0?I.createPropertyAccessExpression(Xn(si,ai-1),Qt):Qt}else{xt===91&&(Qe=Qe.substring(1,Qe.length-1),xt=Qe.charCodeAt(0));let Qt;if(x8(xt)&&!(_n.flags&8)?Qt=I.createStringLiteral(vp(Qe).replace(/\\./g,It=>It.substring(1)),xt===39):""+ +Qe===Qe&&(Qt=I.createNumericLiteral(+Qe)),!Qt){const It=Qr(I.createIdentifier(Qe),16777216);Pn&&i0(It,I.createNodeArray(Pn)),It.symbol=_n,Qt=It}return I.createElementAccessExpression(Xn(si,ai-1),Qt)}}}function _p(Ze){const ye=us(Ze);return ye?Pa(ye)?!!(Hi(ye.expression).flags&402653316):ko(ye)?!!(Hi(ye.argumentExpression).flags&402653316):aa(ye):!1}function I_(Ze){const ye=us(Ze);return!!(ye&&aa(ye)&&(ye.singleQuote||!xo(ye)&&Vi(jc(ye,!1),"'")))}function Sr(Ze,ye){const vr=!!gr(Ze.declarations)&&Wi(Ze.declarations,_p),mn=!!gr(Ze.declarations)&&Wi(Ze.declarations,I_),Xn=!!(Ze.flags&8192),si=jr(Ze,ye,mn,vr,Xn);if(si)return si;const ai=xi(Ze.escapedName);return EF(ai,Fa(j),mn,vr,Xn)}function jr(Ze,ye,vr,mn,Xn){const si=wi(Ze).nameType;if(si){if(si.flags&384){const ai=""+si.value;return!Sf(ai,Fa(j))&&(mn||!kg(ai))?I.createStringLiteral(ai,!!vr):kg(ai)&&Vi(ai,"-")?I.createComputedPropertyName(I.createPrefixUnaryExpression(41,I.createNumericLiteral(-ai))):EF(ai,Fa(j),vr,mn,Xn)}if(si.flags&8192)return I.createComputedPropertyName(el(si.symbol,ye,111551))}}function Bi(Ze){const ye={...Ze};return ye.typeParameterNames&&(ye.typeParameterNames=new Map(ye.typeParameterNames)),ye.typeParameterNamesByText&&(ye.typeParameterNamesByText=new Set(ye.typeParameterNamesByText)),ye.typeParameterSymbolList&&(ye.typeParameterSymbolList=new Set(ye.typeParameterSymbolList)),ye.tracker=new XU(ye,ye.tracker.inner,ye.tracker.moduleResolverHost),ye}function sn(Ze,ye){return Ze.declarations&&wn(Ze.declarations,vr=>!!Vl(vr)&&(!ye||!!Pr(vr,mn=>mn===ye)))}function cs(Ze,ye){return!(bn(ye)&4)||!$f(Ze)||gr(Ze.typeArguments)>=rg(ye.target.typeParameters)}function La(Ze){for(;jn(Ze).fakeScopeForSignatureDeclaration;)Ze=Ze.parent;return Ze}function Xa(Ze,ye,vr,mn,Xn,si){if(!Ot(ye)&&mn){const _n=sn(vr,La(mn));if(_n&&!fo(_n)&&!xf(_n)){const Qe=Vl(_n);if(du(Qe,_n,ye)&&cs(Qe,ye)){const xt=uc(Ze,Qe,Xn,si);if(xt)return xt}}}const ai=Ze.flags;ye.flags&8192&&ye.symbol===vr&&(!Ze.enclosingDeclaration||ct(vr.declarations,_n=>wr(_n)===wr(Ze.enclosingDeclaration)))&&(Ze.flags|=1048576);const Pn=_(ye,Ze);return Ze.flags=ai,Pn}function du(Ze,ye,vr){const mn=ii(Ze);return mn===vr?!0:rs(ye)&&ye.questionToken?Op(vr,524288)===mn:!1}function ma(Ze,ye,vr,mn,Xn){if(!Ot(ye)&&Ze.enclosingDeclaration){const si=vr.declaration&&bp(vr.declaration),ai=La(Ze.enclosingDeclaration);if(Pr(si,Pn=>Pn===ai)&&si){const Pn=ii(si);if((Pn.flags&262144&&Pn.isThisType?zi(Pn,vr.mapper):Pn)===ye&&cs(si,ye)){const Qe=uc(Ze,si,mn,Xn);if(Qe)return Qe}}}return _(ye,Ze)}function i_(Ze,ye,vr){let mn=!1;const Xn=lf(Ze);if(Hr(Ze)&&(wb(Xn)||yg(Xn.parent)||Xu(Xn.parent)&&zz(Xn.parent.left)&&wb(Xn.parent.right)))return mn=!0,{introducesError:mn,node:Ze};const si=ip(Ze),ai=yo(Xn,si,!0,!0);if(ai&&(gi(ai,ye.enclosingDeclaration,si,!1).accessibility!==0?mn=!0:(ye.tracker.trackSymbol(ai,ye.enclosingDeclaration,si),vr==null||vr(ai)),Ie(Ze))){const Pn=Eo(ai),_n=ai.flags&262144?hs(Pn,ye):I.cloneNode(Ze);return _n.symbol=ai,{introducesError:mn,node:Qr(dn(_n,Ze),16777216)}}return{introducesError:mn,node:Ze}}function uc(Ze,ye,vr,mn){i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();let Xn=!1;const si=wr(ye),ai=qe(ye,Pn,ki);if(Xn)return;return ai===ye?Ke(I.cloneNode(ye),ye):ai;function Pn(_n){if(fie(_n)||_n.kind===326)return I.createKeywordTypeNode(133);if(pie(_n))return I.createKeywordTypeNode(159);if(WC(_n))return I.createUnionTypeNode([qe(_n.type,Pn,ki),I.createLiteralTypeNode(I.createNull())]);if(OV(_n))return I.createUnionTypeNode([qe(_n.type,Pn,ki),I.createKeywordTypeNode(157)]);if(DO(_n))return qe(_n.type,Pn);if(wO(_n))return I.createArrayTypeNode(qe(_n.type,Pn,ki));if(Yb(_n))return I.createTypeLiteralNode(nr(_n.jsDocPropertyTags,It=>{const Zt=Ie(It.name)?It.name:It.name.right,xr=je(ii(_n),Zt.escapedText),mi=xr&&It.typeExpression&&ii(It.typeExpression.type)!==xr?_(xr,Ze):void 0;return I.createPropertySignature(void 0,Zt,It.isBracketed||It.typeExpression&&OV(It.typeExpression.type)?I.createToken(58):void 0,mi||It.typeExpression&&qe(It.typeExpression.type,Pn,ki)||I.createKeywordTypeNode(133))}));if($f(_n)&&Ie(_n.typeName)&&_n.typeName.escapedText==="")return dn(I.createKeywordTypeNode(133),_n);if((s0(_n)||$f(_n))&&N5(_n))return I.createTypeLiteralNode([I.createIndexSignature(void 0,[I.createParameterDeclaration(void 0,void 0,"x",void 0,qe(_n.typeArguments[0],Pn,ki))],qe(_n.typeArguments[1],Pn,ki))]);if(VC(_n))if(fC(_n)){let It;return I.createConstructorTypeNode(void 0,Dr(_n.typeParameters,Pn,Vo),Ri(_n.parameters,(Zt,xr)=>Zt.name&&Ie(Zt.name)&&Zt.name.escapedText==="new"?(It=Zt.type,void 0):I.createParameterDeclaration(void 0,Qe(Zt),xt(Zt,xr),Zt.questionToken,qe(Zt.type,Pn,ki),void 0)),qe(It||_n.type,Pn,ki)||I.createKeywordTypeNode(133))}else return I.createFunctionTypeNode(Dr(_n.typeParameters,Pn,Vo),nr(_n.parameters,(It,Zt)=>I.createParameterDeclaration(void 0,Qe(It),xt(It,Zt),It.questionToken,qe(It.type,Pn,ki),void 0)),qe(_n.type,Pn,ki)||I.createKeywordTypeNode(133));if($f(_n)&&T8(_n)&&(!cs(_n,ii(_n))||G8e(_n)||tt===v4(_n,788968,!0)))return dn(_(ii(_n),Ze),_n);if(ty(_n)){const It=jn(_n).resolvedSymbol;return T8(_n)&&It&&(!_n.isTypeOf&&!(It.flags&788968)||!(gr(_n.typeArguments)>=rg(hn(It))))?dn(_(ii(_n),Ze),_n):I.updateImportTypeNode(_n,I.updateLiteralTypeNode(_n.argument,Qt(_n,_n.argument.literal)),_n.attributes,_n.qualifier,Dr(_n.typeArguments,Pn,ki),_n.isTypeOf)}if(b_(_n)||pc(_n)){const{introducesError:It,node:Zt}=i_(_n,Ze,vr);if(Xn=Xn||It,Zt!==_n)return Zt}return si&&ox(_n)&&Ha(si,_n.pos).line===Ha(si,_n.end).line&&Qr(_n,1),ur(_n,Pn,void 0);function Qe(It){return It.dotDotDotToken||(It.type&&wO(It.type)?I.createToken(26):void 0)}function xt(It,Zt){return It.name&&Ie(It.name)&&It.name.escapedText==="this"?"this":Qe(It)?"args":`arg${Zt}`}function Qt(It,Zt){if(mn){if(Ze.tracker&&Ze.tracker.moduleResolverHost){const xr=Yhe(It);if(xr){const xn={getCanonicalFileName:nu(!!e.useCaseSensitiveFileNames),getCurrentDirectory:()=>Ze.tracker.moduleResolverHost.getCurrentDirectory(),getCommonSourceDirectory:()=>Ze.tracker.moduleResolverHost.getCommonSourceDirectory()},ys=U5(xn,xr);return I.createStringLiteral(ys)}}}else if(Ze.tracker&&Ze.tracker.trackExternalModuleSymbolOfImportTypeNode){const xr=Sh(Zt,Zt,void 0);xr&&Ze.tracker.trackExternalModuleSymbolOfImportTypeNode(xr)}return Zt}}}function Go(Ze,ye,vr){var mn;const Xn=za(I.createPropertyDeclaration,174,!0),si=za((vt,pn,Qn,Fn)=>I.createPropertySignature(vt,pn,Qn,Fn),173,!1),ai=ye.enclosingDeclaration;let Pn=[];const _n=new Set,Qe=[],xt=ye;ye={...xt,usedSymbolNames:new Set(xt.usedSymbolNames),remappedSymbolNames:new Map,remappedSymbolReferences:new Map((mn=xt.remappedSymbolReferences)==null?void 0:mn.entries()),tracker:void 0};const Qt={...xt.tracker.inner,trackSymbol:(vt,pn,Qn)=>{var Fn,Gn;if((Fn=ye.remappedSymbolNames)!=null&&Fn.has(Ks(vt)))return!1;if(gi(vt,pn,Qn,!1).accessibility===0){const Js=Gt(vt,ye,Qn);if(!(vt.flags&4)){const Ts=Js[0],_o=wr(xt.enclosingDeclaration);ct(Ts.declarations,Wa=>wr(Wa)===_o)&&to(Ts)}}else if((Gn=xt.tracker.inner)!=null&&Gn.trackSymbol)return xt.tracker.inner.trackSymbol(vt,pn,Qn);return!1}};ye.tracker=new XU(ye,Qt,xt.tracker.moduleResolverHost),_l(Ze,(vt,pn)=>{const Qn=xi(pn);ud(vt,Qn)});let It=!vr;const Zt=Ze.get("export=");return Zt&&Ze.size>1&&Zt.flags&2098688&&(Ze=Bs(),Ze.set("export=",Zt)),Ys(Ze),Jn(Pn);function xr(vt){return!!vt&&vt.kind===80}function mi(vt){return ac(vt)?An(nr(vt.declarationList.declarations,us),xr):An([us(vt)],xr)}function xn(vt){const pn=wn(vt,oc),Qn=vc(vt,Sc);let Fn=Qn!==-1?vt[Qn]:void 0;if(Fn&&pn&&pn.isExportEquals&&Ie(pn.expression)&&Ie(Fn.name)&&on(Fn.name)===on(pn.expression)&&Fn.body&&Zd(Fn.body)){const Gn=An(vt,Ts=>!!(Lu(Ts)&32)),Aa=Fn.name;let Js=Fn.body;if(gr(Gn)&&(Fn=I.updateModuleDeclaration(Fn,Fn.modifiers,Fn.name,Js=I.updateModuleBlock(Js,I.createNodeArray([...Fn.body.statements,I.createExportDeclaration(void 0,!1,I.createNamedExports(nr(Zs(Gn,Ts=>mi(Ts)),Ts=>I.createExportSpecifier(!1,void 0,Ts))),void 0)]))),vt=[...vt.slice(0,Qn),Fn,...vt.slice(Qn+1)]),!wn(vt,Ts=>Ts!==Fn&&qD(Ts,Aa))){Pn=[];const Ts=!ct(Js.statements,_o=>Rn(_o,32)||oc(_o)||Tc(_o));er(Js.statements,_o=>{So(_o,Ts?32:0)}),vt=[...An(vt,_o=>_o!==Fn&&_o!==pn),...Pn]}}return vt}function ys(vt){const pn=An(vt,Fn=>Tc(Fn)&&!Fn.moduleSpecifier&&!!Fn.exportClause&&Xf(Fn.exportClause));gr(pn)>1&&(vt=[...An(vt,Gn=>!Tc(Gn)||!!Gn.moduleSpecifier||!Gn.exportClause),I.createExportDeclaration(void 0,!1,I.createNamedExports(Zs(pn,Gn=>Ls(Gn.exportClause,Xf).elements)),void 0)]);const Qn=An(vt,Fn=>Tc(Fn)&&!!Fn.moduleSpecifier&&!!Fn.exportClause&&Xf(Fn.exportClause));if(gr(Qn)>1){const Fn=U4(Qn,Gn=>aa(Gn.moduleSpecifier)?">"+Gn.moduleSpecifier.text:">");if(Fn.length!==Qn.length)for(const Gn of Fn)Gn.length>1&&(vt=[...An(vt,Aa=>!Gn.includes(Aa)),I.createExportDeclaration(void 0,!1,I.createNamedExports(Zs(Gn,Aa=>Ls(Aa.exportClause,Xf).elements)),Gn[0].moduleSpecifier)])}return vt}function dr(vt){const pn=vc(vt,Qn=>Tc(Qn)&&!Qn.moduleSpecifier&&!Qn.attributes&&!!Qn.exportClause&&Xf(Qn.exportClause));if(pn>=0){const Qn=vt[pn],Fn=Ri(Qn.exportClause.elements,Gn=>{if(!Gn.propertyName){const Aa=hD(vt),Js=An(Aa,Ts=>qD(vt[Ts],Gn.name));if(gr(Js)&&Wi(Js,Ts=>aw(vt[Ts]))){for(const Ts of Js)vt[Ts]=Fi(vt[Ts]);return}}return Gn});gr(Fn)?vt[pn]=I.updateExportDeclaration(Qn,Qn.modifiers,Qn.isTypeOnly,I.updateNamedExports(Qn.exportClause,Fn),Qn.moduleSpecifier,Qn.attributes):z0(vt,pn)}return vt}function Jn(vt){return vt=xn(vt),vt=ys(vt),vt=dr(vt),ai&&(Ni(ai)&&af(ai)||Sc(ai))&&(!ct(vt,r8)||!lte(vt)&&ct(vt,Y7))&&vt.push(Mw(I)),vt}function Fi(vt){const pn=(Lu(vt)|32)&-129;return I.replaceModifiers(vt,pn)}function qi(vt){const pn=Lu(vt)&-33;return I.replaceModifiers(vt,pn)}function Ys(vt,pn,Qn){pn||Qe.push(new Map),vt.forEach(Fn=>{Hc(Fn,!1,!!Qn)}),pn||(Qe[Qe.length-1].forEach(Fn=>{Hc(Fn,!0,!!Qn)}),Qe.pop())}function Hc(vt,pn,Qn){const Fn=Na(vt);if(_n.has(Ks(Fn)))return;if(_n.add(Ks(Fn)),!pn||gr(vt.declarations)&&ct(vt.declarations,Aa=>!!Pr(Aa,Js=>Js===ai))){const Aa=ye;ye=Bi(ye),ao(vt,pn,Qn),ye.reportedDiagnostic&&(xt.reportedDiagnostic=ye.reportedDiagnostic),ye.trackedSymbols&&(Aa.trackedSymbols?E.assert(ye.trackedSymbols===Aa.trackedSymbols):Aa.trackedSymbols=ye.trackedSymbols),ye=Aa}}function ao(vt,pn,Qn,Fn=vt.escapedName){var Gn,Aa,Js,Ts,_o,Wa;const ga=xi(Fn),Kl=Fn==="default";if(pn&&!(ye.flags&131072)&&BT(ga)&&!Kl){ye.encounteredError=!0;return}let eu=Kl&&!!(vt.flags&-113||vt.flags&16&&gr(Ua(Xr(vt))))&&!(vt.flags&2097152),qu=!eu&&!pn&&BT(ga)&&!Kl;(eu||qu)&&(pn=!0);const yc=(pn?0:32)|(Kl&&!eu?2048:0),tu=vt.flags&1536&&vt.flags&7&&Fn!=="export=",v_=tu&&ro(Xr(vt),vt);if((vt.flags&8208||v_)&&lr(Xr(vt),vt,ud(vt,ga),yc),vt.flags&524288&&jd(vt,ga,yc),vt.flags&98311&&Fn!=="export="&&!(vt.flags&4194304)&&!(vt.flags&32)&&!(vt.flags&8192)&&!v_)if(Qn)na(vt)&&(qu=!1,eu=!1);else{const Al=Xr(vt),tf=ud(vt,ga);if(Al.symbol&&Al.symbol!==vt&&Al.symbol.flags&16&&ct(Al.symbol.declarations,t2)&&((Gn=Al.symbol.members)!=null&&Gn.size||(Aa=Al.symbol.exports)!=null&&Aa.size))ye.remappedSymbolReferences||(ye.remappedSymbolReferences=new Map),ye.remappedSymbolReferences.set(Ks(Al.symbol),vt),ao(Al.symbol,pn,Qn,Fn),ye.remappedSymbolReferences.delete(Ks(Al.symbol));else if(!(vt.flags&16)&&ro(Al,vt))lr(Al,vt,tf,yc);else{const Ek=vt.flags&2?YP(vt)?2:1:(Js=vt.parent)!=null&&Js.valueDeclaration&&Ni((Ts=vt.parent)==null?void 0:Ts.valueDeclaration)?2:void 0,bm=eu||!(vt.flags&4)?tf:Bd(tf,vt);let l1=vt.declarations&&wn(vt.declarations,GI=>hi(GI));l1&&dl(l1.parent)&&l1.parent.declarations.length===1&&(l1=l1.parent.parent);const u1=(_o=vt.declarations)==null?void 0:_o.find(Sn);if(u1&&Zr(u1.parent)&&Ie(u1.parent.right)&&((Wa=Al.symbol)!=null&&Wa.valueDeclaration)&&Ni(Al.symbol.valueDeclaration)){const GI=tf===u1.parent.right.escapedText?void 0:u1.parent.right;So(I.createExportDeclaration(void 0,!1,I.createNamedExports([I.createExportSpecifier(!1,GI,tf)])),0),ye.tracker.trackSymbol(Al.symbol,ye.enclosingDeclaration,111551)}else{const GI=Ke(I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(bm,void 0,Xa(ye,Al,vt,ai,to,vr))],Ek)),l1);So(GI,bm!==tf?yc&-33:yc),bm!==tf&&!pn&&(So(I.createExportDeclaration(void 0,!1,I.createNamedExports([I.createExportSpecifier(!1,bm,tf)])),0),qu=!1,eu=!1)}}}if(vt.flags&384&&fn(vt,ga,yc),vt.flags&32&&(vt.flags&4&&vt.valueDeclaration&&Zr(vt.valueDeclaration.parent)&&kl(vt.valueDeclaration.parent.right)?ri(vt,ud(vt,ga),yc):Us(vt,ud(vt,ga),yc)),(vt.flags&1536&&(!tu||Bt(vt))||v_)&&Or(vt,ga,yc),vt.flags&64&&!(vt.flags&32)&&He(vt,ga,yc),vt.flags&2097152&&ri(vt,ud(vt,ga),yc),vt.flags&4&&vt.escapedName==="export="&&na(vt),vt.flags&8388608&&vt.declarations)for(const Al of vt.declarations){const tf=zu(Al,Al.moduleSpecifier);tf&&So(I.createExportDeclaration(void 0,Al.isTypeOnly,void 0,I.createStringLiteral(Ir(tf,ye))),0)}eu?So(I.createExportAssignment(void 0,!1,I.createIdentifier(ud(vt,ga))),0):qu&&So(I.createExportDeclaration(void 0,!1,I.createNamedExports([I.createExportSpecifier(!1,ud(vt,ga),ga)])),0)}function to(vt){if(ct(vt.declarations,$v))return;E.assertIsDefined(Qe[Qe.length-1]),Bd(xi(vt.escapedName),vt);const pn=!!(vt.flags&2097152)&&!ct(vt.declarations,Qn=>!!Pr(Qn,Tc)||jm(Qn)||El(Qn)&&!Bm(Qn.moduleReference));Qe[pn?0:Qe.length-1].set(Ks(vt),vt)}function Zl(vt){return Ni(vt)&&(af(vt)||gp(vt))||su(vt)&&!Vd(vt)}function So(vt,pn){if($p(vt)){let Qn=0;const Fn=ye.enclosingDeclaration&&(hp(ye.enclosingDeclaration)?wr(ye.enclosingDeclaration):ye.enclosingDeclaration);pn&32&&Fn&&(Zl(Fn)||Sc(Fn))&&aw(vt)&&(Qn|=32),It&&!(Qn&32)&&(!Fn||!(Fn.flags&33554432))&&(L1(vt)||ac(vt)||$c(vt)||Xc(vt)||Sc(vt))&&(Qn|=128),pn&2048&&(Xc(vt)||Bu(vt)||$c(vt))&&(Qn|=2048),Qn&&(vt=I.replaceModifiers(vt,Qn|Lu(vt)))}Pn.push(vt)}function jd(vt,pn,Qn){var Fn;const Gn=r8e(vt),Aa=wi(vt).typeParameters,Js=nr(Aa,eu=>st(eu,ye)),Ts=(Fn=vt.declarations)==null?void 0:Fn.find(hp),_o=$D(Ts?Ts.comment||Ts.parent.comment:void 0),Wa=ye.flags;ye.flags|=8388608;const ga=ye.enclosingDeclaration;ye.enclosingDeclaration=Ts;const Kl=Ts&&Ts.typeExpression&&d2(Ts.typeExpression)&&uc(ye,Ts.typeExpression.type,to,vr)||_(Gn,ye);So(O1(I.createTypeAliasDeclaration(void 0,ud(vt,pn),Js,Kl),_o?[{kind:3,text:`* - * `+_o.replace(/\n/g,` + `,pos:-1,end:-1,hasTrailingNewLine:!0}])}else Ze.valueDeclaration&&Nc(Zt,Ze.valueDeclaration);return Zt}}function L(Ze,ye,vr){if(ct(Ze)){if(l(ye))if(vr){if(Ze.length>2)return[_(Ze[0],ye),I.createTypeReferenceNode(`... ${Ze.length-2} more ...`,void 0),_(Ze[Ze.length-1],ye)]}else return[I.createTypeReferenceNode("...",void 0)];const Xn=!(ye.flags&64)?yf():void 0,si=[];let ai=0;for(const Pn of Ze){if(ai++,l(ye)&&ai+2{if(!dne(_n,([Qe],[xt])=>z(Qe,xt)))for(const[Qe,xt]of _n)si[xt]=_(Qe,ye)}),ye.flags=Pn}return si}}function z(Ze,ye){return Ze===ye||!!Ze.symbol&&Ze.symbol===ye.symbol||!!Ze.aliasSymbol&&Ze.aliasSymbol===ye.aliasSymbol}function Z(Ze,ye,vr){const mn=Lte(Ze)||"x",Xn=_(Ze.keyType,ye),si=I.createParameterDeclaration(void 0,void 0,mn,void 0,Xn,void 0);return vr||(vr=_(Ze.type||B,ye)),!Ze.type&&!(ye.flags&2097152)&&(ye.encounteredError=!0),ye.approximateLength+=mn.length+4,I.createIndexSignature(Ze.isReadonly?[I.createToken(148)]:void 0,[si],vr)}function de(Ze,ye,vr,mn){var Xn;const si=vr.flags&256;si&&(vr.flags&=-257),vr.approximateLength+=3;let ai,Pn;vr.flags&32&&Ze.target&&Ze.mapper&&Ze.target.typeParameters?Pn=Ze.target.typeParameters.map(xn=>_(zi(xn,Ze.mapper),vr)):ai=Ze.typeParameters&&Ze.typeParameters.map(xn=>st(xn,vr));const _n=d8e(Ze,!0)[0];let Qe;if(vr.enclosingDeclaration&&Ze.declaration&&Ze.declaration!==vr.enclosingDeclaration&&!Hr(Ze.declaration)&&(ct(_n)||ct(Ze.typeParameters))){let xn=function(ys,dr){E.assert(vr.enclosingDeclaration);let Jn;jn(vr.enclosingDeclaration).fakeScopeForSignatureDeclaration===ys?Jn=vr.enclosingDeclaration:vr.enclosingDeclaration.parent&&jn(vr.enclosingDeclaration.parent).fakeScopeForSignatureDeclaration===ys&&(Jn=vr.enclosingDeclaration.parent),E.assertOptionalNode(Jn,Cs);const Fi=(Jn==null?void 0:Jn.locals)??Bs();let qi;if(dr((oo,ro)=>{Fi.has(oo)||(qi=_r(qi,oo),Fi.set(oo,ro))}),!qi)return;const Ys=Qe;function Hc(){rr(qi,oo=>Fi.delete(oo)),Ys==null||Ys()}if(Jn)Qe=Hc;else{const oo=Jm.createBlock(Ve);jn(oo).fakeScopeForSignatureDeclaration=ys,oo.locals=Fi;const ro=vr.enclosingDeclaration;ba(oo,ro),vr.enclosingDeclaration=oo,Qe=()=>{vr.enclosingDeclaration=ro,Hc()}}};xn("params",ys=>{for(const dr of _n)ys(dr.escapedName,dr)}),vr.flags&4&&xn("typeParams",ys=>{for(const dr of Ze.typeParameters??Ve){const Jn=hs(dr,vr).escapedText;ys(Jn,dr.symbol)}})}const xt=(ct(_n,xn=>xn!==_n[_n.length-1]&&!!(Ko(xn)&32768))?Ze.parameters:_n).map(xn=>qt(xn,vr,ye===176,mn==null?void 0:mn.privateSymbolVisitor,mn==null?void 0:mn.bundledImports)),Qt=vr.flags&33554432?void 0:_e(Ze,vr);Qt&&xt.unshift(Qt);let It;const Zt=ap(Ze);if(Zt){const xn=Zt.kind===2||Zt.kind===3?I.createToken(131):void 0,ys=Zt.kind===1||Zt.kind===3?Qr(I.createIdentifier(Zt.parameterName),16777216):I.createThisTypeNode(),dr=Zt.type&&_(Zt.type,vr);It=I.createTypePredicateNode(xn,ys,dr)}else{const xn=Ja(Ze);xn&&!(si&&ht(xn))?It=ma(vr,xn,Ze,mn==null?void 0:mn.privateSymbolVisitor,mn==null?void 0:mn.bundledImports):si||(It=I.createKeywordTypeNode(133))}let xr=mn==null?void 0:mn.modifiers;if(ye===185&&Ze.flags&4){const xn=Gd(xr);xr=I.createModifiersFromModifierFlags(xn|64)}const mi=ye===179?I.createCallSignature(ai,xt,It):ye===180?I.createConstructSignature(ai,xt,It):ye===173?I.createMethodSignature(xr,(mn==null?void 0:mn.name)??I.createIdentifier(""),mn==null?void 0:mn.questionToken,ai,xt,It):ye===174?I.createMethodDeclaration(xr,void 0,(mn==null?void 0:mn.name)??I.createIdentifier(""),void 0,ai,xt,It,void 0):ye===176?I.createConstructorDeclaration(xr,xt,void 0):ye===177?I.createGetAccessorDeclaration(xr,(mn==null?void 0:mn.name)??I.createIdentifier(""),xt,It,void 0):ye===178?I.createSetAccessorDeclaration(xr,(mn==null?void 0:mn.name)??I.createIdentifier(""),xt,void 0):ye===181?I.createIndexSignature(xr,xt,It):ye===324?I.createJSDocFunctionType(xt,It):ye===184?I.createFunctionTypeNode(ai,xt,It??I.createTypeReferenceNode(I.createIdentifier(""))):ye===185?I.createConstructorTypeNode(xr,ai,xt,It??I.createTypeReferenceNode(I.createIdentifier(""))):ye===262?I.createFunctionDeclaration(xr,void 0,mn!=null&&mn.name?Ls(mn.name,Ie):I.createIdentifier(""),ai,xt,It,void 0):ye===218?I.createFunctionExpression(xr,void 0,mn!=null&&mn.name?Ls(mn.name,Ie):I.createIdentifier(""),ai,xt,It,I.createBlock([])):ye===219?I.createArrowFunction(xr,ai,xt,It,void 0,I.createBlock([])):E.assertNever(ye);if(Pn&&(mi.typeArguments=I.createNodeArray(Pn)),((Xn=Ze.declaration)==null?void 0:Xn.kind)===330&&Ze.declaration.parent.kind===346){const xn=jc(Ze.declaration.parent.parent,!0).slice(2,-2).split(/\r\n|\n|\r/).map(ys=>ys.replace(/^\s+/," ")).join(` +`);a3(mi,3,xn,!0)}return Qe==null||Qe(),mi}function _e(Ze,ye){if(Ze.thisParameter)return qt(Ze.thisParameter,ye);if(Ze.declaration&&Hr(Ze.declaration)){const vr=B7(Ze.declaration);if(vr&&vr.typeExpression)return I.createParameterDeclaration(void 0,void 0,"this",void 0,_(ii(vr.typeExpression),ye))}}function Re(Ze,ye,vr){const mn=ye.flags;ye.flags&=-513;const Xn=I.createModifiersFromModifierFlags(qme(Ze)),si=hs(Ze,ye),ai=$S(Ze),Pn=ai&&_(ai,ye);return ye.flags=mn,I.createTypeParameterDeclaration(Xn,si,vr,Pn)}function st(Ze,ye,vr=r_(Ze)){const mn=vr&&_(vr,ye);return Re(Ze,ye,mn)}function gt(Ze){const ye=Jo(Ze,169);if(ye)return ye;if(!wm(Ze))return Jo(Ze,348)}function qt(Ze,ye,vr,mn,Xn){const si=gt(Ze);let ai=Xr(Ze);si&&n5e(si)&&(ai=i1(ai));const Pn=Xa(ye,ai,Ze,ye.enclosingDeclaration,mn,Xn),_n=!(ye.flags&8192)&&vr&&si&&Hp(si)?nr(Lv(si),I.cloneNode):void 0,xt=si&&dg(si)||Ko(Ze)&32768?I.createToken(26):void 0,Qt=$t(Ze,si,ye),Zt=si&&lI(si)||Ko(Ze)&16384?I.createToken(58):void 0,xr=I.createParameterDeclaration(_n,xt,Qt,Zt,Pn,void 0);return ye.approximateLength+=Xo(Ze).length+3,xr}function $t(Ze,ye,vr){return ye&&ye.name?ye.name.kind===80?Qr(I.cloneNode(ye.name),16777216):ye.name.kind===166?Qr(I.cloneNode(ye.name.right),16777216):mn(ye.name):Xo(Ze);function mn(Xn){return si(Xn);function si(ai){vr.tracker.canTrackSymbol&&Pa(ai)&&Fde(ai)&&Ur(ai.expression,vr.enclosingDeclaration,vr);let Pn=ur(ai,si,void 0,void 0,si);return Ea(Pn)&&(Pn=I.updateBindingElement(Pn,Pn.dotDotDotToken,Pn.propertyName,Pn.name,void 0)),ko(Pn)||(Pn=I.cloneNode(Pn)),Qr(Pn,16777217)}}}function Ur(Ze,ye,vr){if(!vr.tracker.canTrackSymbol)return;const mn=lf(Ze),Xn=Go(mn,mn.escapedText,1160127,void 0,void 0,!0);Xn&&vr.tracker.trackSymbol(Xn,ye,111551)}function Tr(Ze,ye,vr,mn){return ye.tracker.trackSymbol(Ze,ye.enclosingDeclaration,vr),Gt(Ze,ye,vr,mn)}function Gt(Ze,ye,vr,mn){let Xn;return!(Ze.flags&262144)&&(ye.enclosingDeclaration||ye.flags&64)&&!(ye.flags&134217728)?(Xn=E.checkDefined(ai(Ze,vr,!0)),E.assert(Xn&&Xn.length>0)):Xn=[Ze],Xn;function ai(Pn,_n,Qe){let xt=Ry(Pn,ye.enclosingDeclaration,_n,!!(ye.flags&128)),Qt;if(!xt||fv(xt[0],ye.enclosingDeclaration,xt.length===1?_n:xh(_n))){const Zt=uv(xt?xt[0]:Pn,ye.enclosingDeclaration,_n);if(mr(Zt)){Qt=Zt.map(xn=>ct(xn.declarations,Cu)?Ir(xn,ye):void 0);const xr=Zt.map((xn,ys)=>ys);xr.sort(It);const mi=xr.map(xn=>Zt[xn]);for(const xn of mi){const ys=ai(xn,xh(_n),!1);if(ys){if(xn.exports&&xn.exports.get("export=")&&Ed(xn.exports.get("export="),Pn)){xt=ys;break}xt=ys.concat(xt||[Mg(xn,Pn)||Pn]);break}}}}if(xt)return xt;if(Qe||!(Pn.flags&6144))return!Qe&&!mn&&rr(Pn.declarations,Cu)?void 0:[Pn];function It(Zt,xr){const mi=Qt[Zt],xn=Qt[xr];if(mi&&xn){const ys=nf(xn);return nf(mi)===ys?u9(mi)-u9(xn):ys?-1:1}return 0}}}function Cr(Ze,ye){let vr;return I4(Ze).flags&524384&&(vr=I.createNodeArray(nr(hn(Ze),Xn=>st(Xn,ye)))),vr}function kr(Ze,ye,vr){var mn;E.assert(Ze&&0<=ye&&yee1(xt,_n.links.mapper)),vr)}else ai=Cr(Xn,vr)}return ai}function Br(Ze){return Ub(Ze.objectType)?Br(Ze.objectType):Ze}function Ir(Ze,ye,vr){let mn=Jo(Ze,312);if(!mn){const Qe=Qa(Ze.declarations,xt=>BS(xt,Ze));Qe&&(mn=Jo(Qe,312))}if(mn&&mn.moduleName!==void 0)return mn.moduleName;if(!mn){if(ye.tracker.trackReferencedAmbientModule){const Qe=An(Ze.declarations,su);if(mr(Qe))for(const xt of Qe)ye.tracker.trackReferencedAmbientModule(xt,Ze)}if(qU.test(Ze.escapedName))return Ze.escapedName.substring(1,Ze.escapedName.length-1)}if(!ye.enclosingDeclaration||!ye.tracker.moduleResolverHost)return qU.test(Ze.escapedName)?Ze.escapedName.substring(1,Ze.escapedName.length-1):wr(Sz(Ze)).fileName;const Xn=wr(ic(ye.enclosingDeclaration)),si=vr||(Xn==null?void 0:Xn.impliedNodeFormat),ai=A3(Xn.path,si),Pn=wi(Ze);let _n=Pn.specifierCache&&Pn.specifierCache.get(ai);if(!_n){const Qe=!!io(j),{moduleResolverHost:xt}=ye.tracker,Qt=Qe?{...j,baseUrl:xt.getCommonSourceDirectory()}:j;_n=va(fbe(Ze,jt,Qt,Xn,xt,{importModuleSpecifierPreference:Qe?"non-relative":"project-relative",importModuleSpecifierEnding:Qe?"minimal":si===99?"js":void 0},{overrideImportMode:vr})),Pn.specifierCache??(Pn.specifierCache=new Map),Pn.specifierCache.set(ai,_n)}return _n}function Jr(Ze){const ye=I.createIdentifier(xi(Ze.escapedName));return Ze.parent?I.createQualifiedName(Jr(Ze.parent),ye):ye}function ss(Ze,ye,vr,mn){const Xn=Tr(Ze,ye,vr,!(ye.flags&16384)),si=vr===111551;if(ct(Xn[0].declarations,Cu)){const _n=Xn.length>1?Pn(Xn,Xn.length-1,1):void 0,Qe=mn||kr(Xn,0,ye),xt=wr(ic(ye.enclosingDeclaration)),Qt=s5(Xn[0]);let It,Zt;if((Ru(j)===3||Ru(j)===99)&&(Qt==null?void 0:Qt.impliedNodeFormat)===99&&Qt.impliedNodeFormat!==(xt==null?void 0:xt.impliedNodeFormat)&&(It=Ir(Xn[0],ye,99),Zt=I.createImportAttributes(I.createNodeArray([I.createImportAttribute(I.createStringLiteral("resolution-mode"),I.createStringLiteral("import"))]))),It||(It=Ir(Xn[0],ye)),!(ye.flags&67108864)&&Ru(j)!==1&&It.includes("/node_modules/")){const mi=It;if(Ru(j)===3||Ru(j)===99){const xn=(xt==null?void 0:xt.impliedNodeFormat)===99?1:99;It=Ir(Xn[0],ye,xn),It.includes("/node_modules/")?It=mi:Zt=I.createImportAttributes(I.createNodeArray([I.createImportAttribute(I.createStringLiteral("resolution-mode"),I.createStringLiteral(xn===99?"import":"require"))]))}Zt||(ye.encounteredError=!0,ye.tracker.reportLikelyUnsafeImportRequiredError&&ye.tracker.reportLikelyUnsafeImportRequiredError(mi))}const xr=I.createLiteralTypeNode(I.createStringLiteral(It));if(ye.tracker.trackExternalModuleSymbolOfImportTypeNode&&ye.tracker.trackExternalModuleSymbolOfImportTypeNode(Xn[0]),ye.approximateLength+=It.length+10,!_n||b_(_n)){if(_n){const mi=Ie(_n)?_n:_n.right;i0(mi,void 0)}return I.createImportTypeNode(xr,Zt,_n,Qe,si)}else{const mi=Br(_n),xn=mi.objectType.typeName;return I.createIndexedAccessTypeNode(I.createImportTypeNode(xr,Zt,xn,Qe,si),mi.indexType)}}const ai=Pn(Xn,Xn.length-1,0);if(Ub(ai))return ai;if(si)return I.createTypeQueryNode(ai);{const _n=Ie(ai)?ai:ai.right,Qe=Jb(_n);return i0(_n,void 0),I.createTypeReferenceNode(ai,Qe)}function Pn(_n,Qe,xt){const Qt=Qe===_n.length-1?mn:kr(_n,Qe,ye),It=_n[Qe],Zt=_n[Qe-1];let xr;if(Qe===0)ye.flags|=16777216,xr=pv(It,ye),ye.approximateLength+=(xr?xr.length:0)+1,ye.flags^=16777216;else if(Zt&&Q_(Zt)){const xn=Q_(Zt);fl(xn,(ys,dr)=>{if(Ed(ys,It)&&!aI(dr)&&dr!=="export=")return xr=xi(dr),!0})}if(xr===void 0){const xn=Qa(It.declarations,us);if(xn&&Pa(xn)&&b_(xn.expression)){const ys=Pn(_n,Qe-1,xt);return b_(ys)?I.createIndexedAccessTypeNode(I.createParenthesizedType(I.createTypeQueryNode(ys)),I.createTypeQueryNode(xn.expression)):ys}xr=pv(It,ye)}if(ye.approximateLength+=xr.length+1,!(ye.flags&16)&&Zt&&$y(Zt)&&$y(Zt).get(It.escapedName)&&Ed($y(Zt).get(It.escapedName),It)){const xn=Pn(_n,Qe-1,xt);return Ub(xn)?I.createIndexedAccessTypeNode(xn,I.createLiteralTypeNode(I.createStringLiteral(xr))):I.createIndexedAccessTypeNode(I.createTypeReferenceNode(xn,Qt),I.createLiteralTypeNode(I.createStringLiteral(xr)))}const mi=Qr(I.createIdentifier(xr),16777216);if(Qt&&i0(mi,I.createNodeArray(Qt)),mi.symbol=It,Qe>xt){const xn=Pn(_n,Qe-1,xt);return b_(xn)?I.createQualifiedName(xn,mi):E.fail("Impossible construct - an export of an indexed access cannot be reachable")}return mi}}function Ki(Ze,ye,vr){const mn=Go(ye.enclosingDeclaration,Ze,788968,void 0,Ze,!1);return mn&&mn.flags&262144?mn!==vr.symbol:!1}function hs(Ze,ye){var vr,mn;if(ye.flags&4&&ye.typeParameterNames){const si=ye.typeParameterNames.get(Vu(Ze));if(si)return si}let Xn=Gi(Ze.symbol,ye,788968,!0);if(!(Xn.kind&80))return I.createIdentifier("(Missing type parameter)");if(ye.flags&4){const si=Xn.escapedText;let ai=((vr=ye.typeParameterNamesByTextNextNameCount)==null?void 0:vr.get(si))||0,Pn=si;for(;(mn=ye.typeParameterNamesByText)!=null&&mn.has(Pn)||Ki(Pn,ye,Ze);)ai++,Pn=`${si}_${ai}`;if(Pn!==si){const _n=Jb(Xn);Xn=I.createIdentifier(Pn),i0(Xn,_n)}(ye.typeParameterNamesByTextNextNameCount||(ye.typeParameterNamesByTextNextNameCount=new Map)).set(si,ai),(ye.typeParameterNames||(ye.typeParameterNames=new Map)).set(Vu(Ze),Xn),(ye.typeParameterNamesByText||(ye.typeParameterNamesByText=new Set)).add(Pn)}return Xn}function Gi(Ze,ye,vr,mn){const Xn=Tr(Ze,ye,vr);return mn&&Xn.length!==1&&!ye.encounteredError&&!(ye.flags&65536)&&(ye.encounteredError=!0),si(Xn,Xn.length-1);function si(ai,Pn){const _n=kr(ai,Pn,ye),Qe=ai[Pn];Pn===0&&(ye.flags|=16777216);const xt=pv(Qe,ye);Pn===0&&(ye.flags^=16777216);const Qt=Qr(I.createIdentifier(xt),16777216);return _n&&i0(Qt,I.createNodeArray(_n)),Qt.symbol=Qe,Pn>0?I.createQualifiedName(si(ai,Pn-1),Qt):Qt}}function tl(Ze,ye,vr){const mn=Tr(Ze,ye,vr);return Xn(mn,mn.length-1);function Xn(si,ai){const Pn=kr(si,ai,ye),_n=si[ai];ai===0&&(ye.flags|=16777216);let Qe=pv(_n,ye);ai===0&&(ye.flags^=16777216);let xt=Qe.charCodeAt(0);if(T8(xt)&&ct(_n.declarations,Cu))return I.createStringLiteral(Ir(_n,ye));if(ai===0||JW(Qe,re)){const Qt=Qr(I.createIdentifier(Qe),16777216);return Pn&&i0(Qt,I.createNodeArray(Pn)),Qt.symbol=_n,ai>0?I.createPropertyAccessExpression(Xn(si,ai-1),Qt):Qt}else{xt===91&&(Qe=Qe.substring(1,Qe.length-1),xt=Qe.charCodeAt(0));let Qt;if(T8(xt)&&!(_n.flags&8)?Qt=I.createStringLiteral(yp(Qe).replace(/\\./g,It=>It.substring(1)),xt===39):""+ +Qe===Qe&&(Qt=I.createNumericLiteral(+Qe)),!Qt){const It=Qr(I.createIdentifier(Qe),16777216);Pn&&i0(It,I.createNodeArray(Pn)),It.symbol=_n,Qt=It}return I.createElementAccessExpression(Xn(si,ai-1),Qt)}}}function up(Ze){const ye=us(Ze);return ye?Pa(ye)?!!(Hi(ye.expression).flags&402653316):Co(ye)?!!(Hi(ye.argumentExpression).flags&402653316):aa(ye):!1}function I_(Ze){const ye=us(Ze);return!!(ye&&aa(ye)&&(ye.singleQuote||!ko(ye)&&Vi(jc(ye,!1),"'")))}function Sr(Ze,ye){const vr=!!mr(Ze.declarations)&&Wi(Ze.declarations,up),mn=!!mr(Ze.declarations)&&Wi(Ze.declarations,I_),Xn=!!(Ze.flags&8192),si=jr(Ze,ye,mn,vr,Xn);if(si)return si;const ai=xi(Ze.escapedName);return xF(ai,Fa(j),mn,vr,Xn)}function jr(Ze,ye,vr,mn,Xn){const si=wi(Ze).nameType;if(si){if(si.flags&384){const ai=""+si.value;return!bf(ai,Fa(j))&&(mn||!kg(ai))?I.createStringLiteral(ai,!!vr):kg(ai)&&Vi(ai,"-")?I.createComputedPropertyName(I.createPrefixUnaryExpression(41,I.createNumericLiteral(-ai))):xF(ai,Fa(j),vr,mn,Xn)}if(si.flags&8192)return I.createComputedPropertyName(tl(si.symbol,ye,111551))}}function Bi(Ze){const ye={...Ze};return ye.typeParameterNames&&(ye.typeParameterNames=new Map(ye.typeParameterNames)),ye.typeParameterNamesByText&&(ye.typeParameterNamesByText=new Set(ye.typeParameterNamesByText)),ye.typeParameterSymbolList&&(ye.typeParameterSymbolList=new Set(ye.typeParameterSymbolList)),ye.tracker=new GU(ye,ye.tracker.inner,ye.tracker.moduleResolverHost),ye}function sn(Ze,ye){return Ze.declarations&&wn(Ze.declarations,vr=>!!Vl(vr)&&(!ye||!!Pr(vr,mn=>mn===ye)))}function cs(Ze,ye){return!(bn(ye)&4)||!Gf(Ze)||mr(Ze.typeArguments)>=rg(ye.target.typeParameters)}function La(Ze){for(;jn(Ze).fakeScopeForSignatureDeclaration;)Ze=Ze.parent;return Ze}function Xa(Ze,ye,vr,mn,Xn,si){if(!Ot(ye)&&mn){const _n=sn(vr,La(mn));if(_n&&!po(_n)&&!Tf(_n)){const Qe=Vl(_n);if(du(Qe,_n,ye)&&cs(Qe,ye)){const xt=uc(Ze,Qe,Xn,si);if(xt)return xt}}}const ai=Ze.flags;ye.flags&8192&&ye.symbol===vr&&(!Ze.enclosingDeclaration||ct(vr.declarations,_n=>wr(_n)===wr(Ze.enclosingDeclaration)))&&(Ze.flags|=1048576);const Pn=_(ye,Ze);return Ze.flags=ai,Pn}function du(Ze,ye,vr){const mn=ii(Ze);return mn===vr?!0:rs(ye)&&ye.questionToken?Fp(vr,524288)===mn:!1}function ma(Ze,ye,vr,mn,Xn){if(!Ot(ye)&&Ze.enclosingDeclaration){const si=vr.declaration&&vp(vr.declaration),ai=La(Ze.enclosingDeclaration);if(Pr(si,Pn=>Pn===ai)&&si){const Pn=ii(si);if((Pn.flags&262144&&Pn.isThisType?zi(Pn,vr.mapper):Pn)===ye&&cs(si,ye)){const Qe=uc(Ze,si,mn,Xn);if(Qe)return Qe}}}return _(ye,Ze)}function i_(Ze,ye,vr){let mn=!1;const Xn=lf(Ze);if(Hr(Ze)&&(Db(Xn)||yg(Xn.parent)||Xu(Xn.parent)&&Bz(Xn.parent.left)&&Db(Xn.parent.right)))return mn=!0,{introducesError:mn,node:Ze};const si=np(Ze),ai=vo(Xn,si,!0,!0);if(ai&&(gi(ai,ye.enclosingDeclaration,si,!1).accessibility!==0?mn=!0:(ye.tracker.trackSymbol(ai,ye.enclosingDeclaration,si),vr==null||vr(ai)),Ie(Ze))){const Pn=Po(ai),_n=ai.flags&262144?hs(Pn,ye):I.cloneNode(Ze);return _n.symbol=ai,{introducesError:mn,node:Qr(dn(_n,Ze),16777216)}}return{introducesError:mn,node:Ze}}function uc(Ze,ye,vr,mn){i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();let Xn=!1;const si=wr(ye),ai=qe(ye,Pn,ki);if(Xn)return;return ai===ye?Ke(I.cloneNode(ye),ye):ai;function Pn(_n){if(_ie(_n)||_n.kind===326)return I.createKeywordTypeNode(133);if(fie(_n))return I.createKeywordTypeNode(159);if(WC(_n))return I.createUnionTypeNode([qe(_n.type,Pn,ki),I.createLiteralTypeNode(I.createNull())]);if(IV(_n))return I.createUnionTypeNode([qe(_n.type,Pn,ki),I.createKeywordTypeNode(157)]);if(CO(_n))return qe(_n.type,Pn);if(EO(_n))return I.createArrayTypeNode(qe(_n.type,Pn,ki));if(Qb(_n))return I.createTypeLiteralNode(nr(_n.jsDocPropertyTags,It=>{const Zt=Ie(It.name)?It.name:It.name.right,xr=je(ii(_n),Zt.escapedText),mi=xr&&It.typeExpression&&ii(It.typeExpression.type)!==xr?_(xr,Ze):void 0;return I.createPropertySignature(void 0,Zt,It.isBracketed||It.typeExpression&&IV(It.typeExpression.type)?I.createToken(58):void 0,mi||It.typeExpression&&qe(It.typeExpression.type,Pn,ki)||I.createKeywordTypeNode(133))}));if(Gf(_n)&&Ie(_n.typeName)&&_n.typeName.escapedText==="")return dn(I.createKeywordTypeNode(133),_n);if((s0(_n)||Gf(_n))&&D5(_n))return I.createTypeLiteralNode([I.createIndexSignature(void 0,[I.createParameterDeclaration(void 0,void 0,"x",void 0,qe(_n.typeArguments[0],Pn,ki))],qe(_n.typeArguments[1],Pn,ki))]);if(VC(_n))if(fC(_n)){let It;return I.createConstructorTypeNode(void 0,Dr(_n.typeParameters,Pn,Uo),Ri(_n.parameters,(Zt,xr)=>Zt.name&&Ie(Zt.name)&&Zt.name.escapedText==="new"?(It=Zt.type,void 0):I.createParameterDeclaration(void 0,Qe(Zt),xt(Zt,xr),Zt.questionToken,qe(Zt.type,Pn,ki),void 0)),qe(It||_n.type,Pn,ki)||I.createKeywordTypeNode(133))}else return I.createFunctionTypeNode(Dr(_n.typeParameters,Pn,Uo),nr(_n.parameters,(It,Zt)=>I.createParameterDeclaration(void 0,Qe(It),xt(It,Zt),It.questionToken,qe(It.type,Pn,ki),void 0)),qe(_n.type,Pn,ki)||I.createKeywordTypeNode(133));if(Gf(_n)&&S8(_n)&&(!cs(_n,ii(_n))||G8e(_n)||tt===v4(_n,788968,!0)))return dn(_(ii(_n),Ze),_n);if(ey(_n)){const It=jn(_n).resolvedSymbol;return S8(_n)&&It&&(!_n.isTypeOf&&!(It.flags&788968)||!(mr(_n.typeArguments)>=rg(hn(It))))?dn(_(ii(_n),Ze),_n):I.updateImportTypeNode(_n,I.updateLiteralTypeNode(_n.argument,Qt(_n,_n.argument.literal)),_n.attributes,_n.qualifier,Dr(_n.typeArguments,Pn,ki),_n.isTypeOf)}if(b_(_n)||pc(_n)){const{introducesError:It,node:Zt}=i_(_n,Ze,vr);if(Xn=Xn||It,Zt!==_n)return Zt}return si&&ax(_n)&&Ha(si,_n.pos).line===Ha(si,_n.end).line&&Qr(_n,1),ur(_n,Pn,void 0);function Qe(It){return It.dotDotDotToken||(It.type&&EO(It.type)?I.createToken(26):void 0)}function xt(It,Zt){return It.name&&Ie(It.name)&&It.name.escapedText==="this"?"this":Qe(It)?"args":`arg${Zt}`}function Qt(It,Zt){if(mn){if(Ze.tracker&&Ze.tracker.moduleResolverHost){const xr=Qhe(It);if(xr){const xn={getCanonicalFileName:nu(!!e.useCaseSensitiveFileNames),getCurrentDirectory:()=>Ze.tracker.moduleResolverHost.getCurrentDirectory(),getCommonSourceDirectory:()=>Ze.tracker.moduleResolverHost.getCommonSourceDirectory()},ys=z5(xn,xr);return I.createStringLiteral(ys)}}}else if(Ze.tracker&&Ze.tracker.trackExternalModuleSymbolOfImportTypeNode){const xr=Sh(Zt,Zt,void 0);xr&&Ze.tracker.trackExternalModuleSymbolOfImportTypeNode(xr)}return Zt}}}function $o(Ze,ye,vr){var mn;const Xn=za(I.createPropertyDeclaration,174,!0),si=za((vt,pn,Qn,Fn)=>I.createPropertySignature(vt,pn,Qn,Fn),173,!1),ai=ye.enclosingDeclaration;let Pn=[];const _n=new Set,Qe=[],xt=ye;ye={...xt,usedSymbolNames:new Set(xt.usedSymbolNames),remappedSymbolNames:new Map,remappedSymbolReferences:new Map((mn=xt.remappedSymbolReferences)==null?void 0:mn.entries()),tracker:void 0};const Qt={...xt.tracker.inner,trackSymbol:(vt,pn,Qn)=>{var Fn,Gn;if((Fn=ye.remappedSymbolNames)!=null&&Fn.has(Ks(vt)))return!1;if(gi(vt,pn,Qn,!1).accessibility===0){const Js=Gt(vt,ye,Qn);if(!(vt.flags&4)){const Ts=Js[0],fo=wr(xt.enclosingDeclaration);ct(Ts.declarations,Wa=>wr(Wa)===fo)&&ro(Ts)}}else if((Gn=xt.tracker.inner)!=null&&Gn.trackSymbol)return xt.tracker.inner.trackSymbol(vt,pn,Qn);return!1}};ye.tracker=new GU(ye,Qt,xt.tracker.moduleResolverHost),fl(Ze,(vt,pn)=>{const Qn=xi(pn);cd(vt,Qn)});let It=!vr;const Zt=Ze.get("export=");return Zt&&Ze.size>1&&Zt.flags&2098688&&(Ze=Bs(),Ze.set("export=",Zt)),Ys(Ze),Jn(Pn);function xr(vt){return!!vt&&vt.kind===80}function mi(vt){return ac(vt)?An(nr(vt.declarationList.declarations,us),xr):An([us(vt)],xr)}function xn(vt){const pn=wn(vt,oc),Qn=vc(vt,Sc);let Fn=Qn!==-1?vt[Qn]:void 0;if(Fn&&pn&&pn.isExportEquals&&Ie(pn.expression)&&Ie(Fn.name)&&on(Fn.name)===on(pn.expression)&&Fn.body&&Yd(Fn.body)){const Gn=An(vt,Ts=>!!(Lu(Ts)&32)),Aa=Fn.name;let Js=Fn.body;if(mr(Gn)&&(Fn=I.updateModuleDeclaration(Fn,Fn.modifiers,Fn.name,Js=I.updateModuleBlock(Js,I.createNodeArray([...Fn.body.statements,I.createExportDeclaration(void 0,!1,I.createNamedExports(nr(Zs(Gn,Ts=>mi(Ts)),Ts=>I.createExportSpecifier(!1,void 0,Ts))),void 0)]))),vt=[...vt.slice(0,Qn),Fn,...vt.slice(Qn+1)]),!wn(vt,Ts=>Ts!==Fn&&UD(Ts,Aa))){Pn=[];const Ts=!ct(Js.statements,fo=>Rn(fo,32)||oc(fo)||Tc(fo));rr(Js.statements,fo=>{To(fo,Ts?32:0)}),vt=[...An(vt,fo=>fo!==Fn&&fo!==pn),...Pn]}}return vt}function ys(vt){const pn=An(vt,Fn=>Tc(Fn)&&!Fn.moduleSpecifier&&!!Fn.exportClause&&$f(Fn.exportClause));mr(pn)>1&&(vt=[...An(vt,Gn=>!Tc(Gn)||!!Gn.moduleSpecifier||!Gn.exportClause),I.createExportDeclaration(void 0,!1,I.createNamedExports(Zs(pn,Gn=>Ls(Gn.exportClause,$f).elements)),void 0)]);const Qn=An(vt,Fn=>Tc(Fn)&&!!Fn.moduleSpecifier&&!!Fn.exportClause&&$f(Fn.exportClause));if(mr(Qn)>1){const Fn=V4(Qn,Gn=>aa(Gn.moduleSpecifier)?">"+Gn.moduleSpecifier.text:">");if(Fn.length!==Qn.length)for(const Gn of Fn)Gn.length>1&&(vt=[...An(vt,Aa=>!Gn.includes(Aa)),I.createExportDeclaration(void 0,!1,I.createNamedExports(Zs(Gn,Aa=>Ls(Aa.exportClause,$f).elements)),Gn[0].moduleSpecifier)])}return vt}function dr(vt){const pn=vc(vt,Qn=>Tc(Qn)&&!Qn.moduleSpecifier&&!Qn.attributes&&!!Qn.exportClause&&$f(Qn.exportClause));if(pn>=0){const Qn=vt[pn],Fn=Ri(Qn.exportClause.elements,Gn=>{if(!Gn.propertyName){const Aa=gD(vt),Js=An(Aa,Ts=>UD(vt[Ts],Gn.name));if(mr(Js)&&Wi(Js,Ts=>sw(vt[Ts]))){for(const Ts of Js)vt[Ts]=Fi(vt[Ts]);return}}return Gn});mr(Fn)?vt[pn]=I.updateExportDeclaration(Qn,Qn.modifiers,Qn.isTypeOnly,I.updateNamedExports(Qn.exportClause,Fn),Qn.moduleSpecifier,Qn.attributes):J0(vt,pn)}return vt}function Jn(vt){return vt=xn(vt),vt=ys(vt),vt=dr(vt),ai&&(Ni(ai)&&af(ai)||Sc(ai))&&(!ct(vt,t8)||!cte(vt)&&ct(vt,$7))&&vt.push(Lw(I)),vt}function Fi(vt){const pn=(Lu(vt)|32)&-129;return I.replaceModifiers(vt,pn)}function qi(vt){const pn=Lu(vt)&-33;return I.replaceModifiers(vt,pn)}function Ys(vt,pn,Qn){pn||Qe.push(new Map),vt.forEach(Fn=>{Hc(Fn,!1,!!Qn)}),pn||(Qe[Qe.length-1].forEach(Fn=>{Hc(Fn,!0,!!Qn)}),Qe.pop())}function Hc(vt,pn,Qn){const Fn=Na(vt);if(_n.has(Ks(Fn)))return;if(_n.add(Ks(Fn)),!pn||mr(vt.declarations)&&ct(vt.declarations,Aa=>!!Pr(Aa,Js=>Js===ai))){const Aa=ye;ye=Bi(ye),oo(vt,pn,Qn),ye.reportedDiagnostic&&(xt.reportedDiagnostic=ye.reportedDiagnostic),ye.trackedSymbols&&(Aa.trackedSymbols?E.assert(ye.trackedSymbols===Aa.trackedSymbols):Aa.trackedSymbols=ye.trackedSymbols),ye=Aa}}function oo(vt,pn,Qn,Fn=vt.escapedName){var Gn,Aa,Js,Ts,fo,Wa;const ga=xi(Fn),Kl=Fn==="default";if(pn&&!(ye.flags&131072)&&jT(ga)&&!Kl){ye.encounteredError=!0;return}let eu=Kl&&!!(vt.flags&-113||vt.flags&16&&mr(Ua(Xr(vt))))&&!(vt.flags&2097152),qu=!eu&&!pn&&jT(ga)&&!Kl;(eu||qu)&&(pn=!0);const yc=(pn?0:32)|(Kl&&!eu?2048:0),tu=vt.flags&1536&&vt.flags&7&&Fn!=="export=",v_=tu&&no(Xr(vt),vt);if((vt.flags&8208||v_)&&lr(Xr(vt),vt,cd(vt,ga),yc),vt.flags&524288&&Rd(vt,ga,yc),vt.flags&98311&&Fn!=="export="&&!(vt.flags&4194304)&&!(vt.flags&32)&&!(vt.flags&8192)&&!v_)if(Qn)na(vt)&&(qu=!1,eu=!1);else{const Al=Xr(vt),tf=cd(vt,ga);if(Al.symbol&&Al.symbol!==vt&&Al.symbol.flags&16&&ct(Al.symbol.declarations,t2)&&((Gn=Al.symbol.members)!=null&&Gn.size||(Aa=Al.symbol.exports)!=null&&Aa.size))ye.remappedSymbolReferences||(ye.remappedSymbolReferences=new Map),ye.remappedSymbolReferences.set(Ks(Al.symbol),vt),oo(Al.symbol,pn,Qn,Fn),ye.remappedSymbolReferences.delete(Ks(Al.symbol));else if(!(vt.flags&16)&&no(Al,vt))lr(Al,vt,tf,yc);else{const Ck=vt.flags&2?QP(vt)?2:1:(Js=vt.parent)!=null&&Js.valueDeclaration&&Ni((Ts=vt.parent)==null?void 0:Ts.valueDeclaration)?2:void 0,vm=eu||!(vt.flags&4)?tf:jd(tf,vt);let c1=vt.declarations&&wn(vt.declarations,HI=>hi(HI));c1&&ml(c1.parent)&&c1.parent.declarations.length===1&&(c1=c1.parent.parent);const l1=(fo=vt.declarations)==null?void 0:fo.find(Sn);if(l1&&Zr(l1.parent)&&Ie(l1.parent.right)&&((Wa=Al.symbol)!=null&&Wa.valueDeclaration)&&Ni(Al.symbol.valueDeclaration)){const HI=tf===l1.parent.right.escapedText?void 0:l1.parent.right;To(I.createExportDeclaration(void 0,!1,I.createNamedExports([I.createExportSpecifier(!1,HI,tf)])),0),ye.tracker.trackSymbol(Al.symbol,ye.enclosingDeclaration,111551)}else{const HI=Ke(I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(vm,void 0,Xa(ye,Al,vt,ai,ro,vr))],Ck)),c1);To(HI,vm!==tf?yc&-33:yc),vm!==tf&&!pn&&(To(I.createExportDeclaration(void 0,!1,I.createNamedExports([I.createExportSpecifier(!1,vm,tf)])),0),qu=!1,eu=!1)}}}if(vt.flags&384&&fn(vt,ga,yc),vt.flags&32&&(vt.flags&4&&vt.valueDeclaration&&Zr(vt.valueDeclaration.parent)&&kl(vt.valueDeclaration.parent.right)?ri(vt,cd(vt,ga),yc):Us(vt,cd(vt,ga),yc)),(vt.flags&1536&&(!tu||Bt(vt))||v_)&&Or(vt,ga,yc),vt.flags&64&&!(vt.flags&32)&&He(vt,ga,yc),vt.flags&2097152&&ri(vt,cd(vt,ga),yc),vt.flags&4&&vt.escapedName==="export="&&na(vt),vt.flags&8388608&&vt.declarations)for(const Al of vt.declarations){const tf=zu(Al,Al.moduleSpecifier);tf&&To(I.createExportDeclaration(void 0,Al.isTypeOnly,void 0,I.createStringLiteral(Ir(tf,ye))),0)}eu?To(I.createExportAssignment(void 0,!1,I.createIdentifier(cd(vt,ga))),0):qu&&To(I.createExportDeclaration(void 0,!1,I.createNamedExports([I.createExportSpecifier(!1,cd(vt,ga),ga)])),0)}function ro(vt){if(ct(vt.declarations,$v))return;E.assertIsDefined(Qe[Qe.length-1]),jd(xi(vt.escapedName),vt);const pn=!!(vt.flags&2097152)&&!ct(vt.declarations,Qn=>!!Pr(Qn,Tc)||jm(Qn)||El(Qn)&&!Bm(Qn.moduleReference));Qe[pn?0:Qe.length-1].set(Ks(vt),vt)}function Zl(vt){return Ni(vt)&&(af(vt)||mp(vt))||su(vt)&&!Wd(vt)}function To(vt,pn){if(Hp(vt)){let Qn=0;const Fn=ye.enclosingDeclaration&&(gp(ye.enclosingDeclaration)?wr(ye.enclosingDeclaration):ye.enclosingDeclaration);pn&32&&Fn&&(Zl(Fn)||Sc(Fn))&&sw(vt)&&(Qn|=32),It&&!(Qn&32)&&(!Fn||!(Fn.flags&33554432))&&(L1(vt)||ac(vt)||Xc(vt)||Qc(vt)||Sc(vt))&&(Qn|=128),pn&2048&&(Qc(vt)||Bu(vt)||Xc(vt))&&(Qn|=2048),Qn&&(vt=I.replaceModifiers(vt,Qn|Lu(vt)))}Pn.push(vt)}function Rd(vt,pn,Qn){var Fn;const Gn=r8e(vt),Aa=wi(vt).typeParameters,Js=nr(Aa,eu=>st(eu,ye)),Ts=(Fn=vt.declarations)==null?void 0:Fn.find(gp),fo=GD(Ts?Ts.comment||Ts.parent.comment:void 0),Wa=ye.flags;ye.flags|=8388608;const ga=ye.enclosingDeclaration;ye.enclosingDeclaration=Ts;const Kl=Ts&&Ts.typeExpression&&d2(Ts.typeExpression)&&uc(ye,Ts.typeExpression.type,ro,vr)||_(Gn,ye);To(O1(I.createTypeAliasDeclaration(void 0,cd(vt,pn),Js,Kl),fo?[{kind:3,text:`* + * `+fo.replace(/\n/g,` * `)+` - `,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),Qn),ye.flags=Wa,ye.enclosingDeclaration=ga}function He(vt,pn,Qn){const Fn=ap(vt),Gn=hn(vt),Aa=nr(Gn,qu=>st(qu,ye)),Js=Z_(Fn),Ts=gr(Js)?Xs(Js):void 0,_o=Zs(Ua(Fn),qu=>tl(qu,Ts)),Wa=og(0,Fn,Ts,179),ga=og(1,Fn,Ts,180),Kl=jh(Fn,Ts),eu=gr(Js)?[I.createHeritageClause(96,Ri(Js,qu=>mT(qu,111551)))]:void 0;So(I.createInterfaceDeclaration(void 0,ud(vt,pn),Aa,eu,[...Kl,...ga,...Wa,..._o]),Qn)}function ut(vt){let pn=gs(Q_(vt).values());const Qn=Na(vt);if(Qn!==vt){const Fn=new Set(pn);for(const Gn of Q_(Qn).values())$l(mc(Gn))&111551||Fn.add(Gn);pn=gs(Fn)}return An(pn,Fn=>Si(Fn)&&Sf(Fn.escapedName,99))}function Bt(vt){return Wi(ut(vt),pn=>!($l(mc(pn))&111551))}function Or(vt,pn,Qn){const Fn=ut(vt),Gn=vD(Fn,Ts=>Ts.parent&&Ts.parent===vt?"real":"merged"),Aa=Gn.get("real")||Ve,Js=Gn.get("merged")||Ve;if(gr(Aa)){const Ts=ud(vt,pn);Dn(Aa,Ts,Qn,!!(vt.flags&67108880))}if(gr(Js)){const Ts=wr(ye.enclosingDeclaration),_o=ud(vt,pn),Wa=I.createModuleBlock([I.createExportDeclaration(void 0,!1,I.createNamedExports(Ri(An(Js,ga=>ga.escapedName!=="export="),ga=>{var Kl,eu;const qu=xi(ga.escapedName),yc=ud(ga,qu),tu=ga.declarations&&rd(ga);if(Ts&&(tu?Ts!==wr(tu):!ct(ga.declarations,tf=>wr(tf)===Ts))){(eu=(Kl=ye.tracker)==null?void 0:Kl.reportNonlocalAugmentation)==null||eu.call(Kl,Ts,vt,ga);return}const v_=tu&&ff(tu,!0);to(v_||ga);const Al=v_?ud(v_,xi(v_.escapedName)):yc;return I.createExportSpecifier(!1,qu===Al?void 0:Al,qu)})))]);So(I.createModuleDeclaration(void 0,I.createIdentifier(_o),Wa,32),0)}}function fn(vt,pn,Qn){So(I.createEnumDeclaration(I.createModifiersFromModifierFlags(yhe(vt)?4096:0),ud(vt,pn),nr(An(Ua(Xr(vt)),Fn=>!!(Fn.flags&8)),Fn=>{const Gn=Fn.declarations&&Fn.declarations[0]&&p2(Fn.declarations[0])?$he(Fn.declarations[0]):void 0;return I.createEnumMember(xi(Fn.escapedName),Gn===void 0?void 0:typeof Gn=="string"?I.createStringLiteral(Gn):I.createNumericLiteral(Gn))})),Qn)}function lr(vt,pn,Qn,Fn){const Gn=Es(vt,0);for(const Aa of Gn){const Js=de(Aa,262,ye,{name:I.createIdentifier(Qn),privateSymbolVisitor:to,bundledImports:vr});So(Ke(Js,tn(Aa)),Fn)}if(!(pn.flags&1536&&pn.exports&&pn.exports.size)){const Aa=An(Ua(vt),Si);Dn(Aa,Qn,Fn,!0)}}function tn(vt){if(vt.declaration&&vt.declaration.parent){if(Zr(vt.declaration.parent)&&fc(vt.declaration.parent)===5)return vt.declaration.parent;if(hi(vt.declaration.parent)&&vt.declaration.parent.parent)return vt.declaration.parent.parent}return vt.declaration}function Dn(vt,pn,Qn,Fn){if(gr(vt)){const Aa=vD(vt,yc=>!gr(yc.declarations)||ct(yc.declarations,tu=>wr(tu)===wr(ye.enclosingDeclaration))?"local":"remote").get("local")||Ve;let Js=Jm.createModuleDeclaration(void 0,I.createIdentifier(pn),I.createModuleBlock([]),32);ba(Js,ai),Js.locals=Bs(vt),Js.symbol=vt[0].parent;const Ts=Pn;Pn=[];const _o=It;It=!1;const Wa={...ye,enclosingDeclaration:Js},ga=ye;ye=Wa,Ys(Bs(Aa),Fn,!0),ye=ga,It=_o;const Kl=Pn;Pn=Ts;const eu=nr(Kl,yc=>oc(yc)&&!yc.isExportEquals&&Ie(yc.expression)?I.createExportDeclaration(void 0,!1,I.createNamedExports([I.createExportSpecifier(!1,yc.expression,I.createIdentifier("default"))])):yc),qu=Wi(eu,yc=>Rn(yc,32))?nr(eu,qi):eu;Js=I.updateModuleDeclaration(Js,Js.modifiers,Js.name,I.createModuleBlock(qu)),So(Js,Qn)}}function Si(vt){return!!(vt.flags&2887656)||!(vt.flags&4194304||vt.escapedName==="prototype"||vt.valueDeclaration&&Ms(vt.valueDeclaration)&&$n(vt.valueDeclaration.parent))}function ms(vt){const pn=Ri(vt,Qn=>{const Fn=ye.enclosingDeclaration;ye.enclosingDeclaration=Qn;let Gn=Qn.expression;if(pc(Gn)){if(Ie(Gn)&&on(Gn)==="")return Aa(void 0);let Js;if({introducesError:Js,node:Gn}=i_(Gn,ye,to),Js)return Aa(void 0)}return Aa(I.createExpressionWithTypeArguments(Gn,nr(Qn.typeArguments,Js=>uc(ye,Js,to,vr)||_(ii(Js),ye))));function Aa(Js){return ye.enclosingDeclaration=Fn,Js}});if(pn.length===vt.length)return pn}function Us(vt,pn,Qn){var Fn,Gn;const Aa=(Fn=vt.declarations)==null?void 0:Fn.find($n),Js=ye.enclosingDeclaration;ye.enclosingDeclaration=Aa||Js;const Ts=hn(vt),_o=nr(Ts,Sm=>st(Sm,ye)),Wa=mf(ap(vt)),ga=Z_(Wa),Kl=Aa&&mC(Aa),eu=Kl&&ms(Kl)||Ri(Ad(Wa),uD),qu=Xr(vt),yc=!!((Gn=qu.symbol)!=null&&Gn.valueDeclaration)&&$n(qu.symbol.valueDeclaration),tu=yc?Y_(qu):B,v_=[...gr(ga)?[I.createHeritageClause(96,nr(ga,Sm=>dT(Sm,tu,pn)))]:[],...gr(eu)?[I.createHeritageClause(119,eu)]:[]],Al=Aut(Wa,ga,Ua(Wa)),tf=An(Al,Sm=>{const _D=Sm.valueDeclaration;return!!_D&&!(Nu(_D)&&Pi(_D.name))}),bm=ct(Al,Sm=>{const _D=Sm.valueDeclaration;return!!_D&&Nu(_D)&&Pi(_D.name)})?[I.createPropertyDeclaration(void 0,I.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:Ve,l1=Zs(tf,Sm=>Xn(Sm,!1,ga[0])),u1=Zs(An(Ua(qu),Sm=>!(Sm.flags&4194304)&&Sm.escapedName!=="prototype"&&!Si(Sm)),Sm=>Xn(Sm,!0,tu)),Gft=!yc&&!!vt.valueDeclaration&&Hr(vt.valueDeclaration)&&!ct(Es(qu,1))?[I.createConstructorDeclaration(I.createModifiersFromModifierFlags(2),[],void 0)]:og(1,qu,tu,176),$ft=jh(Wa,ga[0]);ye.enclosingDeclaration=Js,So(Ke(I.createClassDeclaration(void 0,pn,_o,v_,[...$ft,...u1,...Gft,...l1,...bm]),vt.declarations&&An(vt.declarations,Sm=>Xc(Sm)||kl(Sm))[0]),Qn)}function qs(vt){return $o(vt,pn=>{if(x_(pn)||vu(pn))return on(pn.propertyName||pn.name);if(Zr(pn)||oc(pn)){const Qn=oc(pn)?pn.expression:pn.right;if(Sn(Qn))return on(Qn.name)}if(Iy(pn)){const Qn=us(pn);if(Qn&&Ie(Qn))return on(Qn)}})}function ri(vt,pn,Qn){var Fn,Gn,Aa,Js,Ts,_o;const Wa=rd(vt);if(!Wa)return E.fail();const ga=Na(ff(Wa,!0));if(!ga)return;let Kl=mE(ga)&&qs(vt.declarations)||xi(ga.escapedName);Kl==="export="&&H&&(Kl="default");const eu=ud(ga,Kl);switch(to(ga),Wa.kind){case 208:if(((Gn=(Fn=Wa.parent)==null?void 0:Fn.parent)==null?void 0:Gn.kind)===260){const tu=Ir(ga.parent||ga,ye),{propertyName:v_}=Wa;So(I.createImportDeclaration(void 0,I.createImportClause(!1,void 0,I.createNamedImports([I.createImportSpecifier(!1,v_&&Ie(v_)?I.createIdentifier(on(v_)):void 0,I.createIdentifier(pn))])),I.createStringLiteral(tu),void 0),0);break}E.failBadSyntaxKind(((Aa=Wa.parent)==null?void 0:Aa.parent)||Wa,"Unhandled binding element grandparent kind in declaration serialization");break;case 304:((Ts=(Js=Wa.parent)==null?void 0:Js.parent)==null?void 0:Ts.kind)===226&&ps(xi(vt.escapedName),eu);break;case 260:if(Sn(Wa.initializer)){const tu=Wa.initializer,v_=I.createUniqueName(pn),Al=Ir(ga.parent||ga,ye);So(I.createImportEqualsDeclaration(void 0,!1,v_,I.createExternalModuleReference(I.createStringLiteral(Al))),0),So(I.createImportEqualsDeclaration(void 0,!1,I.createIdentifier(pn),I.createQualifiedName(v_,tu.name)),Qn);break}case 271:if(ga.escapedName==="export="&&ct(ga.declarations,tu=>Ni(tu)&&gp(tu))){na(vt);break}const qu=!(ga.flags&512)&&!hi(Wa);So(I.createImportEqualsDeclaration(void 0,!1,I.createIdentifier(pn),qu?Gi(ga,ye,-1,!1):I.createExternalModuleReference(I.createStringLiteral(Ir(ga,ye)))),qu?Qn:0);break;case 270:So(I.createNamespaceExportDeclaration(on(Wa.name)),0);break;case 273:{const tu=Ir(ga.parent||ga,ye),v_=vr?I.createStringLiteral(tu):Wa.parent.moduleSpecifier;So(I.createImportDeclaration(void 0,I.createImportClause(!1,I.createIdentifier(pn),void 0),v_,Wa.parent.attributes),0);break}case 274:{const tu=Ir(ga.parent||ga,ye),v_=vr?I.createStringLiteral(tu):Wa.parent.parent.moduleSpecifier;So(I.createImportDeclaration(void 0,I.createImportClause(!1,void 0,I.createNamespaceImport(I.createIdentifier(pn))),v_,Wa.parent.attributes),0);break}case 280:So(I.createExportDeclaration(void 0,!1,I.createNamespaceExport(I.createIdentifier(pn)),I.createStringLiteral(Ir(ga,ye))),0);break;case 276:{const tu=Ir(ga.parent||ga,ye),v_=vr?I.createStringLiteral(tu):Wa.parent.parent.parent.moduleSpecifier;So(I.createImportDeclaration(void 0,I.createImportClause(!1,void 0,I.createNamedImports([I.createImportSpecifier(!1,pn!==Kl?I.createIdentifier(Kl):void 0,I.createIdentifier(pn))])),v_,Wa.parent.parent.parent.attributes),0);break}case 281:const yc=Wa.parent.parent.moduleSpecifier;yc&&((_o=Wa.propertyName)==null?void 0:_o.escapedText)==="default"&&(Kl="default"),ps(xi(vt.escapedName),yc?Kl:eu,yc&&Ma(yc)?I.createStringLiteral(yc.text):void 0);break;case 277:na(vt);break;case 226:case 211:case 212:vt.escapedName==="default"||vt.escapedName==="export="?na(vt):ps(pn,eu);break;default:return E.failBadSyntaxKind(Wa,"Unhandled alias declaration kind in symbol serializer!")}}function ps(vt,pn,Qn){So(I.createExportDeclaration(void 0,!1,I.createNamedExports([I.createExportSpecifier(!1,vt!==pn?pn:void 0,vt)]),Qn),0)}function na(vt){var pn;if(vt.flags&4194304)return!1;const Qn=xi(vt.escapedName),Fn=Qn==="export=",Aa=Fn||Qn==="default",Js=vt.declarations&&rd(vt),Ts=Js&&ff(Js,!0);if(Ts&&gr(Ts.declarations)&&ct(Ts.declarations,_o=>wr(_o)===wr(ai))){const _o=Js&&(oc(Js)||Zr(Js)?Qz(Js):_re(Js)),Wa=_o&&pc(_o)?Uut(_o):void 0,ga=Wa&&yo(Wa,-1,!0,!0,ai);(ga||Ts)&&to(ga||Ts);const Kl=ye.tracker.disableTrackSymbol;if(ye.tracker.disableTrackSymbol=!0,Aa)Pn.push(I.createExportAssignment(void 0,Fn,el(Ts,ye,-1)));else if(Wa===_o&&Wa)ps(Qn,on(Wa));else if(_o&&kl(_o))ps(Qn,ud(Ts,Xo(Ts)));else{const eu=Bd(Qn,vt);So(I.createImportEqualsDeclaration(void 0,!1,I.createIdentifier(eu),Gi(Ts,ye,-1,!1)),0),ps(Qn,eu)}return ye.tracker.disableTrackSymbol=Kl,!0}else{const _o=Bd(Qn,vt),Wa=gf(Xr(Na(vt)));if(ro(Wa,vt))lr(Wa,vt,_o,Aa?0:32);else{const ga=((pn=ye.enclosingDeclaration)==null?void 0:pn.kind)===267&&(!(vt.flags&98304)||vt.flags&65536)?1:2,Kl=I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(_o,void 0,Xa(ye,Wa,vt,ai,to,vr))],ga));So(Kl,Ts&&Ts.flags&4&&Ts.escapedName==="export="?128:Qn===_o?32:0)}return Aa?(Pn.push(I.createExportAssignment(void 0,Fn,I.createIdentifier(_o))),!0):Qn!==_o?(ps(Qn,_o),!0):!1}}function ro(vt,pn){const Qn=wr(ye.enclosingDeclaration);return bn(vt)&48&&!gr(Wu(vt))&&!H2(vt)&&!!(gr(An(Ua(vt),Si))||gr(Es(vt,0)))&&!gr(Es(vt,1))&&!sn(pn,ai)&&!(vt.symbol&&ct(vt.symbol.declarations,Fn=>wr(Fn)!==Qn))&&!ct(Ua(vt),Fn=>oI(Fn.escapedName))&&!ct(Ua(vt),Fn=>ct(Fn.declarations,Gn=>wr(Gn)!==Qn))&&Wi(Ua(vt),Fn=>Sf(Xo(Fn),re)?Fn.flags&98304?Gy(Fn)===G2(Fn):!0:!1)}function za(vt,pn,Qn){return function(Gn,Aa,Js){var Ts,_o,Wa,ga,Kl;const eu=Hf(Gn),qu=!!(eu&2);if(Aa&&Gn.flags&2887656)return[];if(Gn.flags&4194304||Gn.escapedName==="constructor"||Js&&$s(Js,Gn.escapedName)&&Rd($s(Js,Gn.escapedName))===Rd(Gn)&&(Gn.flags&16777216)===($s(Js,Gn.escapedName).flags&16777216)&&Ih(Xr(Gn),je(Js,Gn.escapedName)))return[];const yc=eu&-1025|(Aa?256:0),tu=Sr(Gn,ye),v_=(Ts=Gn.declarations)==null?void 0:Ts.find(pd(xs,X0,hi,B_,Zr,Sn));if(Gn.flags&98304&&Qn){const Al=[];if(Gn.flags&65536){const tf=Gn.declarations&&er(Gn.declarations,bm=>{if(bm.kind===178)return bm;if(Rs(bm)&&Ab(bm))return er(bm.arguments[2].properties,l1=>{const u1=us(l1);if(u1&&Ie(u1)&&on(u1)==="set")return l1})});E.assert(!!tf);const Ek=fo(tf)?Np(tf).parameters[0]:void 0;Al.push(Ke(I.createSetAccessorDeclaration(I.createModifiersFromModifierFlags(yc),tu,[I.createParameterDeclaration(void 0,void 0,Ek?$t(Ek,gt(Ek),ye):"value",void 0,qu?void 0:Xa(ye,Xr(Gn),Gn,ai,to,vr))],void 0),((_o=Gn.declarations)==null?void 0:_o.find(Xh))||v_))}if(Gn.flags&32768){const tf=eu&2;Al.push(Ke(I.createGetAccessorDeclaration(I.createModifiersFromModifierFlags(yc),tu,[],tf?void 0:Xa(ye,Xr(Gn),Gn,ai,to,vr),void 0),((Wa=Gn.declarations)==null?void 0:Wa.find(Y0))||v_))}return Al}else if(Gn.flags&98311)return Ke(vt(I.createModifiersFromModifierFlags((Rd(Gn)?8:0)|yc),tu,Gn.flags&16777216?I.createToken(58):void 0,qu?void 0:Xa(ye,G2(Gn),Gn,ai,to,vr),void 0),((ga=Gn.declarations)==null?void 0:ga.find(pd(xs,hi)))||v_);if(Gn.flags&8208){const Al=Xr(Gn),tf=Es(Al,0);if(yc&2)return Ke(vt(I.createModifiersFromModifierFlags((Rd(Gn)?8:0)|yc),tu,Gn.flags&16777216?I.createToken(58):void 0,void 0,void 0),((Kl=Gn.declarations)==null?void 0:Kl.find(fo))||tf[0]&&tf[0].declaration||Gn.declarations&&Gn.declarations[0]);const Ek=[];for(const bm of tf){const l1=de(bm,pn,ye,{name:tu,questionToken:Gn.flags&16777216?I.createToken(58):void 0,modifiers:yc?I.createModifiersFromModifierFlags(yc):void 0}),u1=bm.declaration&&A8(bm.declaration.parent)?bm.declaration.parent:bm.declaration;Ek.push(Ke(l1,u1))}return Ek}return E.fail(`Unhandled class member kind! ${Gn.__debugFlags||Gn.flags}`)}}function tl(vt,pn){return si(vt,!1,pn)}function og(vt,pn,Qn,Fn){const Gn=Es(pn,vt);if(vt===1){if(!Qn&&Wi(Gn,Ts=>gr(Ts.parameters)===0))return[];if(Qn){const Ts=Es(Qn,1);if(!gr(Ts)&&Wi(Gn,_o=>gr(_o.parameters)===0))return[];if(Ts.length===Gn.length){let _o=!1;for(let Wa=0;Wa_(Gn,ye)),Fn=el(vt.target.symbol,ye,788968)):vt.symbol&&Ut(vt.symbol,ai,pn)&&(Fn=el(vt.symbol,ye,788968)),Fn)return I.createExpressionWithTypeArguments(Fn,Qn)}function uD(vt){const pn=mT(vt,788968);if(pn)return pn;if(vt.symbol)return I.createExpressionWithTypeArguments(el(vt.symbol,ye,788968),void 0)}function Bd(vt,pn){var Qn,Fn;const Gn=pn?Ks(pn):void 0;if(Gn&&ye.remappedSymbolNames.has(Gn))return ye.remappedSymbolNames.get(Gn);pn&&(vt=Ck(pn,vt));let Aa=0;const Js=vt;for(;(Qn=ye.usedSymbolNames)!=null&&Qn.has(vt);)Aa++,vt=`${Js}_${Aa}`;return(Fn=ye.usedSymbolNames)==null||Fn.add(vt),Gn&&ye.remappedSymbolNames.set(Gn,vt),vt}function Ck(vt,pn){if(pn==="default"||pn==="__class"||pn==="__function"){const Qn=ye.flags;ye.flags|=16777216;const Fn=pv(vt,ye);ye.flags=Qn,pn=Fn.length>0&&x8(Fn.charCodeAt(0))?vp(Fn):Fn}return pn==="default"?pn="_default":pn==="export="&&(pn="_exports"),pn=Sf(pn,re)&&!BT(pn)?pn:"_"+pn.replace(/[^a-zA-Z0-9]/g,"_"),pn}function ud(vt,pn){const Qn=Ks(vt);return ye.remappedSymbolNames.has(Qn)?ye.remappedSymbolNames.get(Qn):(pn=Ck(vt,pn),ye.remappedSymbolNames.set(Qn,pn),pn)}}}function Zm(r,a,l=16384,_){return _?m(_).getText():pE(m);function m(h){const x=I.createTypePredicateNode(r.kind===2||r.kind===3?I.createToken(131):void 0,r.kind===1||r.kind===3?I.createIdentifier(r.parameterName):I.createThisTypeNode(),r.type&&ft.typeToTypeNode(r.type,a,WS(l)|70221824|512)),N=b2(),L=a&&wr(a);return N.writeNode(4,x,L,h),h}}function c4(r){const a=[];let l=0;for(let _=0;_us(x)?x:void 0);const h=m&&us(m);if(m&&h){if(Rs(m)&&Ab(m))return Xo(r);if(Pa(h)&&!(Ko(r)&4096)){const x=wi(r).nameType;if(x&&x.flags&384){const N=iI(r,a);if(N!==void 0)return N}}return Ka(h)}if(m||(m=r.declarations[0]),m.parent&&m.parent.kind===260)return Ka(m.parent.name);switch(m.kind){case 231:case 218:case 219:return a&&!a.encounteredError&&!(a.flags&131072)&&(a.encounteredError=!0),m.kind===231?"(Anonymous class)":"(Anonymous function)"}}const _=iI(r,a);return _!==void 0?_:Xo(r)}function Dd(r){if(r){const l=jn(r);return l.isVisible===void 0&&(l.isVisible=!!a()),l.isVisible}return!1;function a(){switch(r.kind){case 345:case 353:case 347:return!!(r.parent&&r.parent.parent&&r.parent.parent.parent&&Ni(r.parent.parent.parent));case 208:return Dd(r.parent.parent);case 260:if(Ns(r.name)&&!r.name.elements.length)return!1;case 267:case 263:case 264:case 265:case 262:case 266:case 271:if(Jv(r))return!0;const l=G(r);return!(NK(r)&32)&&!(r.kind!==271&&l.kind!==312&&l.flags&33554432)?Gm(l):Dd(l);case 172:case 171:case 177:case 178:case 174:case 173:if(R_(r,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 Dd(r.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 AP(r,a){let l;r.parent&&r.parent.kind===277?l=Ho(r,r.escapedText,2998271,void 0,r,!1):r.parent.kind===281&&(l=ov(r.parent,2998271));let _,m;return l&&(m=new Set,m.add(Ks(l)),h(l.declarations)),_;function h(x){er(x,N=>{const L=DS(N)||N;if(a?jn(N).isVisible=!0:(_=_||[],zf(_,L)),oC(N)){const z=N.moduleReference,Z=lf(z),de=Ho(N,Z.escapedText,901119,void 0,void 0,!1);de&&m&&_1(m,Ks(de))&&h(de.declarations)}})}}function Km(r,a){const l=fk(r,a);if(l>=0){const{length:_}=jl;for(let m=l;m<_;m++)mh[m]=!1;return!1}return jl.push(r),mh.push(!0),Z1.push(a),!0}function fk(r,a){for(let l=jl.length-1;l>=qx;l--){if(sI(jl[l],Z1[l]))return-1;if(jl[l]===r&&Z1[l]===a)return l}return-1}function sI(r,a){switch(a){case 0:return!!wi(r).type;case 5:return!!jn(r).resolvedEnumType;case 2:return!!wi(r).declaredType;case 1:return!!r.resolvedBaseConstructorType;case 3:return!!r.resolvedReturnType;case 4:return!!r.immediateBaseConstraint;case 6:return!!r.resolvedTypeArguments;case 7:return!!r.baseTypesResolved;case 8:return!!wi(r).writeType;case 9:return jn(r).parameterInitializerContainsUndefined!==void 0}return E.assertNever(a)}function fm(){return jl.pop(),Z1.pop(),mh.pop()}function G(r){return Pr(Hd(r),a=>{switch(a.kind){case 260:case 261:case 276:case 275:case 274:case 273:return!1;default:return!0}}).parent}function ve(r){const a=Eo(e_(r));return a.typeParameters?P0(a,nr(a.typeParameters,l=>B)):a}function je(r,a){const l=$s(r,a);return l?Xr(l):void 0}function dt(r,a){var l;let _;return je(r,a)||(_=(l=mk(r,a))==null?void 0:l.type)&&A_(_,!0,!0)}function ht(r){return r&&(r.flags&1)!==0}function Ot(r){return r===nt||!!(r.flags&1&&r.aliasSymbol)}function Tn(r,a){if(a!==0)return US(r,!1,a);const l=un(r);return l&&wi(l).type||US(r,!1,a)}function vi(r,a,l){if(r=Mc(r,L=>!(L.flags&98304)),r.flags&131072)return oa;if(r.flags&1048576)return jo(r,L=>vi(L,a,l));let _=Bn(nr(a,w0));const m=[],h=[];for(const L of Ua(r)){const z=b4(L,8576);!Qs(z,_)&&!(Hf(L)&6)&&nZ(L)?m.push(L):h.push(z)}if(KS(r)||eT(_)){if(h.length&&(_=Bn([_,...h])),_.flags&131072)return r;const L=Ztt();return L?y4(L,[r,_]):nt}const x=Bs();for(const L of m)x.set(L.escapedName,Nme(L,!1));const N=so(l,x,Ve,Ve,Wu(r));return N.objectFlags|=4194304,N}function ui(r){return!!(r.flags&465829888)&&nc(fu(r)||Kt,32768)}function Zn(r){const a=cd(r,ui)?jo(r,l=>l.flags&465829888?wh(l):l):r;return Op(a,524288)}function Ai(r,a){const l=Ba(r);return l?o1(l,a):a}function Ba(r){const a=eo(r);if(a&&O8(a)&&a.flowNode){const l=Da(r);if(l){const _=Ke(Jm.createStringLiteral(l),r),m=S_(a)?a:Jm.createParenthesizedExpression(a),h=Ke(Jm.createElementAccessExpression(m,_),r);return ba(_,h),ba(h,r),m!==a&&ba(m,h),h.flowNode=a.flowNode,h}}}function eo(r){const a=r.parent.parent;switch(a.kind){case 208:case 303:return Ba(a);case 209:return Ba(r.parent);case 260:return a.initializer;case 226:return a.right}}function Da(r){const a=r.parent;return r.kind===208&&a.kind===206?sp(r.propertyName||r.name):r.kind===303||r.kind===304?sp(r.name):""+a.elements.indexOf(r)}function sp(r){const a=w0(r);return a.flags&384?""+a.value:void 0}function pm(r){const a=r.dotDotDotToken?32:0,l=Tn(r.parent.parent,a);return l&&Bg(r,l,!1)}function Bg(r,a,l){if(ht(a))return a;const _=r.parent;q&&r.flags&33554432&&$v(r)?a=Lh(a):q&&_.parent.initializer&&!Fp(jAe(_.parent.initializer),65536)&&(a=Op(a,524288));let m;if(_.kind===206)if(r.dotDotDotToken){if(a=Fd(a),a.flags&2||!Sj(a))return Me(r,p.Rest_types_may_only_be_created_from_object_types),nt;const h=[];for(const x of _.elements)x.dotDotDotToken||h.push(x.propertyName||x.name);m=vi(a,h,r.symbol)}else{const h=r.propertyName||r.name,x=w0(h),N=K_(a,x,32,h);m=Ai(r,N)}else{const h=F0(65|(r.dotDotDotToken?0:128),a,Pe,_),x=_.elements.indexOf(r);if(r.dotDotDotToken){const N=jo(a,L=>L.flags&58982400?wh(L):L);m=N_(N,da)?jo(N,L=>zP(L,x)):pu(h)}else if(N0(a)){const N=Od(x),L=32|(l||ZP(r)?16:0),z=Ky(a,N,L,r.name)||nt;m=Ai(r,z)}else m=h}return r.initializer?Vl(Wk(r))?q&&!Fp(eD(r,0),16777216)?Zn(m):m:cK(r,Bn([Zn(m),eD(r,0)],2)):m}function kh(r){const a=S1(r);if(a)return ii(a)}function Ch(r){const a=Va(r,!0);return a.kind===106||a.kind===80&&od(a)===Fe}function Vy(r){const a=Va(r,!0);return a.kind===209&&a.elements.length===0}function A_(r,a=!1,l=!0){return q&&l?s1(r,a):r}function US(r,a,l){if(hi(r)&&r.parent.parent.kind===249){const x=dm(qge(Hi(r.parent.parent.expression,l)));return x.flags&4456448?Swe(x):Ce}if(hi(r)&&r.parent.parent.kind===250){const x=r.parent.parent;return Gj(x)||B}if(Ns(r.parent))return pm(r);const _=xs(r)&&!Gd(r)||B_(r)||mie(r),m=a&&e3(r),h=Mi(r);if(bz(r))return h?ht(h)||h===Kt?h:nt:fe?Kt:B;if(h)return A_(h,_,m);if((ae||Hr(r))&&hi(r)&&!Ns(r.name)&&!(NK(r)&32)&&!(r.flags&33554432)){if(!(lb(r)&6)&&(!r.initializer||Ch(r.initializer)))return Ge;if(r.initializer&&Vy(r.initializer))return hl}if(rs(r)){const x=r.parent;if(x.kind===178&&d4(x)){const z=Bo(un(r.parent),177);if(z){const Z=Np(z),de=e0e(x);return de&&r===de?(E.assert(!de.type),Xr(Z.thisParameter)):Ja(Z)}}const N=ktt(x,r);if(N)return N;const L=r.symbol.escapedName==="this"?oNe(x):cNe(r);if(L)return A_(L,!1,m)}if(xb(r)&&r.initializer){if(Hr(r)&&!rs(r)){const N=ya(r,un(r),C8(r));if(N)return N}const x=cK(r,eD(r,l));return A_(x,_,m)}if(xs(r)&&(ae||Hr(r)))if(Bc(r)){const x=An(r.parent.members,ec),N=x.length?Eh(r.symbol,x):Lu(r)&128?gZ(r.symbol):void 0;return N&&A_(N,!0,m)}else{const x=Th(r.parent),N=x?Uy(r.symbol,x):Lu(r)&128?gZ(r.symbol):void 0;return N&&A_(N,!0,m)}if(em(r))return Er;if(Ns(r.name))return D(r.name,!1,!0)}function l4(r){if(r.valueDeclaration&&Zr(r.valueDeclaration)){const a=wi(r);return a.isConstructorDeclaredProperty===void 0&&(a.isConstructorDeclaredProperty=!1,a.isConstructorDeclaredProperty=!!IP(r)&&Wi(r.declarations,l=>Zr(l)&&zZ(l)&&(l.left.kind!==212||Tf(l.left.argumentExpression))&&!Lc(void 0,l,r,l))),a.isConstructorDeclaredProperty}return!1}function NP(r){const a=r.valueDeclaration;return a&&xs(a)&&!Vl(a)&&!a.initializer&&(ae||Hr(a))}function IP(r){if(r.declarations)for(const a of r.declarations){const l=a_(a,!1,!1);if(l&&(l.kind===176||ym(l)))return l}}function dv(r){const a=wr(r.declarations[0]),l=xi(r.escapedName),_=r.declarations.every(h=>Hr(h)&&oo(h)&&yg(h.expression)),m=_?I.createPropertyAccessExpression(I.createPropertyAccessExpression(I.createIdentifier("module"),I.createIdentifier("exports")),l):I.createPropertyAccessExpression(I.createIdentifier("exports"),l);return _&&ba(m.expression.expression,m.expression),ba(m.expression,m),ba(m,a),m.flowNode=a.endFlowNode,o1(m,Ge,Pe)}function Eh(r,a){const l=Vi(r.escapedName,"__#")?I.createPrivateIdentifier(r.escapedName.split("@")[1]):xi(r.escapedName);for(const _ of a){const m=I.createPropertyAccessExpression(I.createThis(),l);ba(m.expression,m),ba(m,_),m.flowNode=_.returnFlowNode;const h=u4(m,r);if(ae&&(h===Ge||h===hl)&&Me(r.valueDeclaration,p.Member_0_implicitly_has_an_1_type,ni(r),Ar(h)),!N_(h,Cj))return UI(h)}}function Uy(r,a){const l=Vi(r.escapedName,"__#")?I.createPrivateIdentifier(r.escapedName.split("@")[1]):xi(r.escapedName),_=I.createPropertyAccessExpression(I.createThis(),l);ba(_.expression,_),ba(_,a),_.flowNode=a.returnFlowNode;const m=u4(_,r);return ae&&(m===Ge||m===hl)&&Me(r.valueDeclaration,p.Member_0_implicitly_has_an_1_type,ni(r),Ar(m)),N_(m,Cj)?void 0:UI(m)}function u4(r,a){const l=(a==null?void 0:a.valueDeclaration)&&(!NP(a)||Lu(a.valueDeclaration)&128)&&gZ(a)||Pe;return o1(r,Ge,l)}function df(r,a){const l=OT(r.valueDeclaration);if(l){const N=Hr(l)?b1(l):void 0;return N&&N.typeExpression?ii(N.typeExpression):r.valueDeclaration&&ya(r.valueDeclaration,r,l)||tb(Dc(l))}let _,m=!1,h=!1;if(l4(r)&&(_=Uy(r,IP(r))),!_){let N;if(r.declarations){let L;for(const z of r.declarations){const Z=Zr(z)||Rs(z)?z:oo(z)?Zr(z.parent)?z.parent:z:void 0;if(!Z)continue;const de=oo(Z)?w8(Z):fc(Z);(de===4||Zr(Z)&&zZ(Z,de))&&(FP(Z)?m=!0:h=!0),Rs(Z)||(L=Lc(L,Z,r,z)),L||(N||(N=[])).push(Zr(Z)||Rs(Z)?mv(r,a,Z,de):Cn)}_=L}if(!_){if(!gr(N))return nt;let L=m&&r.declarations?qy(N,r.declarations):void 0;if(h){const Z=gZ(r);Z&&((L||(L=[])).push(Z),m=!0)}const z=ct(L,Z=>!!(Z.flags&-98305))?L:N;_=Bn(z)}}const x=gf(A_(_,!1,h&&!m));return r.valueDeclaration&&Hr(r.valueDeclaration)&&Mc(x,N=>!!(N.flags&-98305))===Cn?(Ev(r.valueDeclaration,B),B):x}function ya(r,a,l){var _,m;if(!Hr(r)||!l||!ua(l)||l.properties.length)return;const h=Bs();for(;Zr(r)||Sn(r);){const L=Mf(r);(_=L==null?void 0:L.exports)!=null&&_.size&&Ed(h,L.exports),r=Zr(r)?r.parent:r.parent.parent}const x=Mf(r);(m=x==null?void 0:x.exports)!=null&&m.size&&Ed(h,x.exports);const N=so(a,h,Ve,Ve,Ve);return N.objectFlags|=4096,N}function Lc(r,a,l,_){var m;const h=Vl(a.parent);if(h){const x=gf(ii(h));if(r)!Ot(r)&&!Ot(x)&&!Ih(r,x)&&f7e(void 0,r,_,x);else return x}if((m=l.parent)!=null&&m.valueDeclaration){const x=z2(l.parent);if(x.valueDeclaration){const N=Vl(x.valueDeclaration);if(N){const L=$s(ii(N),l.escapedName);if(L)return Gy(L)}}}return r}function mv(r,a,l,_){if(Rs(l)){if(a)return Xr(a);const x=Dc(l.arguments[2]),N=je(x,"value");if(N)return N;const L=je(x,"get");if(L){const Z=_T(L);if(Z)return Ja(Z)}const z=je(x,"set");if(z){const Z=_T(z);if(Z)return fhe(Z)}return B}if(pk(l.left,l.right))return B;const m=_===1&&(Sn(l.left)||ko(l.left))&&(yg(l.left.expression)||Ie(l.left.expression)&&wb(l.left.expression)),h=a?Xr(a):m?Uu(Dc(l.right)):tb(Dc(l.right));if(h.flags&524288&&_===2&&r.escapedName==="export="){const x=Id(h),N=Bs();s5(x.members,N);const L=N.size;a&&!a.exports&&(a.exports=Bs()),(a||r).exports.forEach((Z,de)=>{var _e;const Re=N.get(de);if(Re&&Re!==Z&&!(Z.flags&2097152))if(Z.flags&111551&&Re.flags&111551){if(Z.valueDeclaration&&Re.valueDeclaration&&wr(Z.valueDeclaration)!==wr(Re.valueDeclaration)){const gt=xi(Z.escapedName),qt=((_e=Wn(Re.valueDeclaration,Nu))==null?void 0:_e.name)||Re.valueDeclaration;la(Me(Z.valueDeclaration,p.Duplicate_identifier_0,gt),yn(qt,p._0_was_also_declared_here,gt)),la(Me(qt,p.Duplicate_identifier_0,gt),yn(Z.valueDeclaration,p._0_was_also_declared_here,gt))}const st=xa(Z.flags|Re.flags,de);st.links.type=Bn([Xr(Z),Xr(Re)]),st.valueDeclaration=Re.valueDeclaration,st.declarations=es(Re.declarations,Z.declarations),N.set(de,st)}else N.set(de,Dp(Z,Re));else N.set(de,Z)});const z=so(L!==N.size?void 0:x.symbol,N,x.callSignatures,x.constructSignatures,x.indexInfos);if(L===N.size&&(h.aliasSymbol&&(z.aliasSymbol=h.aliasSymbol,z.aliasTypeArguments=h.aliasTypeArguments),bn(h)&4)){z.aliasSymbol=h.symbol;const Z=bo(h);z.aliasTypeArguments=gr(Z)?Z:void 0}return z.objectFlags|=bn(h)&4096,z.symbol&&z.symbol.flags&32&&h===ap(z.symbol)&&(z.objectFlags|=16777216),z}return yZ(h)?(Ev(l,Ec),Ec):h}function pk(r,a){return Sn(r)&&r.expression.kind===110&&k3(a,l=>Xl(r,l))}function FP(r){const a=a_(r,!1,!1);return a.kind===176||a.kind===262||a.kind===218&&!A8(a.parent)}function qy(r,a){return E.assert(r.length===a.length),r.filter((l,_)=>{const m=a[_],h=Zr(m)?m:Zr(m.parent)?m.parent:void 0;return h&&FP(h)})}function OP(r,a,l){if(r.initializer){const _=Ns(r.name)?D(r.name,!0,!1):Kt;return A_(cK(r,eD(r,l?0:1,_)))}return Ns(r.name)?D(r.name,a,l):(l&&!nn(r)&&Ev(r,B),a?ir:B)}function Vr(r,a,l){const _=Bs();let m,h=131200;er(r.elements,N=>{const L=N.propertyName||N.name;if(N.dotDotDotToken){m=ng(Ce,B,!1);return}const z=w0(L);if(!Sp(z)){h|=512;return}const Z=Tp(z),de=4|(N.initializer?16777216:0),_e=xa(de,Z);_e.links.type=OP(N,a,l),_e.links.bindingElement=N,_.set(_e.escapedName,_e)});const x=so(void 0,_,Ve,Ve,m?[m]:Ve);return x.objectFlags|=h,a&&(x.pattern=r,x.objectFlags|=131072),x}function v(r,a,l){const _=r.elements,m=Po(_),h=m&&m.kind===208&&m.dotDotDotToken?m:void 0;if(_.length===0||_.length===1&&h)return re>=2?swe(B):Ec;const x=nr(_,Z=>pl(Z)?B:OP(Z,a,l)),N=ZI(_,Z=>!(Z===h||pl(Z)||ZP(Z)),_.length-1)+1,L=nr(_,(Z,de)=>Z===h?4:de>=N?2:1);let z=ig(x,L);return a&&(z=J8e(z),z.pattern=r,z.objectFlags|=131072),z}function D(r,a=!1,l=!1){return r.kind===206?Vr(r,a,l):v(r,a,l)}function M(r,a){return Lt(US(r,!0,0),r,a)}function ie(r){const a=jn(r);if(!a.resolvedType){const l=xa(4096,"__importAttributes"),_=Bs();er(r.elements,h=>{const x=xa(4,AF(h));x.parent=l,x.links.type=qut(h),x.links.target=x,_.set(x.escapedName,x)});const m=so(l,_,Ve,Ve,Ve);m.objectFlags|=262272,a.resolvedType=m}return a.resolvedType}function ze(r){const a=Mf(r),l=Jtt(!1);return l&&a&&a===l}function Lt(r,a,l){return r?(r.flags&4096&&ze(a.parent)&&(r=Ime(a)),l&&EZ(a,r),r.flags&8192&&(Ea(a)||!a.type)&&r.symbol!==un(a)&&(r=oi),gf(r)):(r=rs(a)&&a.dotDotDotToken?Ec:B,l&&(nn(a)||Ev(a,r)),r)}function nn(r){const a=Hd(r),l=a.kind===169?a.parent:a;return Wj(l)}function Mi(r){const a=Vl(r);if(a)return ii(a)}function vo(r){let a=r.valueDeclaration;return a?(Ea(a)&&(a=Wk(a)),rs(a)?lZ(a.parent):!1):!1}function wd(r,a){const l=wi(r);if(!l.type){const _=Hy(r,a);return!l.type&&!vo(r)&&!a&&(l.type=_),_}return l.type}function Hy(r,a){if(r.flags&4194304)return ve(r);if(r===at)return B;if(r.flags&134217728&&r.valueDeclaration){const m=un(wr(r.valueDeclaration)),h=xa(m.flags,"exports");h.declarations=m.declarations?m.declarations.slice():[],h.parent=r,h.links.target=m,m.valueDeclaration&&(h.valueDeclaration=m.valueDeclaration),m.members&&(h.members=new Map(m.members)),m.exports&&(h.exports=new Map(m.exports));const x=Bs();return x.set("exports",h),so(r,x,Ve,Ve,Ve)}E.assertIsDefined(r.valueDeclaration);const l=r.valueDeclaration;if(Ni(l)&&gp(l))return l.statements.length?gf(tb(Hi(l.statements[0].expression))):oa;if(X0(l))return hv(r);if(!Km(r,0))return r.flags&512&&!(r.flags&67108864)?LP(r):Ea(l)&&a===1?nt:_4(r);let _;if(l.kind===277)_=Lt(Mi(l)||Dc(l.expression),l);else if(Zr(l)||Hr(l)&&(Rs(l)||(Sn(l)||L5(l))&&Zr(l.parent)))_=df(r);else if(Sn(l)||ko(l)||Ie(l)||Ma(l)||j_(l)||Xc(l)||$c(l)||hc(l)&&!Up(l)||Lm(l)||Ni(l)){if(r.flags&9136)return LP(r);_=Zr(l.parent)?df(r):Mi(l)||B}else if(zc(l))_=Mi(l)||jIe(l);else if(em(l))_=Mi(l)||bNe(l);else if(k_(l))_=Mi(l)||rD(l.name,0);else if(Up(l))_=Mi(l)||BIe(l,0);else if(rs(l)||xs(l)||B_(l)||hi(l)||Ea(l)||oE(l))_=M(l,!0);else if(L1(l))_=LP(r);else if(p2(l))_=MY(r);else return E.fail("Unhandled declaration kind! "+E.formatSyntaxKind(l.kind)+" for "+E.formatSymbol(r));return fm()?_:r.flags&512&&!(r.flags&67108864)?LP(r):Ea(l)&&a===1?_:_4(r)}function ad(r){if(r)switch(r.kind){case 177:return bp(r);case 178:return Sre(r);case 172:return E.assert(Gd(r)),Vl(r)}}function gv(r){const a=ad(r);return a&&ii(a)}function OY(r){const a=e0e(r);return a&&a.symbol}function Ade(r){return Sv(Np(r))}function hv(r){const a=wi(r);if(!a.type){if(!Km(r,0))return nt;const l=Bo(r,177),_=Bo(r,178),m=Wn(Bo(r,172),s_);let h=l&&Hr(l)&&kh(l)||gv(l)||gv(_)||gv(m)||l&&l.body&&sK(l)||m&&m.initializer&&M(m,!0);h||(_&&!Wj(_)?Bl(ae,_,p.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,ni(r)):l&&!Wj(l)?Bl(ae,l,p.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,ni(r)):m&&!Wj(m)&&Bl(ae,m,p.Member_0_implicitly_has_an_1_type,ni(r),"any"),h=B),fm()||(ad(l)?Me(l,p._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ni(r)):ad(_)||ad(m)?Me(_,p._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ni(r)):l&&ae&&Me(l,p._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,ni(r)),h=B),a.type=h}return a.type}function IR(r){const a=wi(r);if(!a.writeType){if(!Km(r,8))return nt;const l=Bo(r,178)??Wn(Bo(r,172),s_);let _=gv(l);fm()||(ad(l)&&Me(l,p._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ni(r)),_=B),a.writeType=_||hv(r)}return a.writeType}function LY(r){const a=Y_(ap(r));return a.flags&8650752?a:a.flags&2097152?wn(a.types,l=>!!(l.flags&8650752)):void 0}function LP(r){let a=wi(r);const l=a;if(!a.type){const _=r.valueDeclaration&&nK(r.valueDeclaration,!1);if(_){const m=ahe(r,_);m&&(r=m,a=m.links)}l.type=a.type=FR(r)}return a.type}function FR(r){const a=r.valueDeclaration;if(r.flags&1536&&mE(r))return B;if(a&&(a.kind===226||oo(a)&&a.parent.kind===226))return df(r);if(r.flags&512&&a&&Ni(a)&&a.commonJsModuleIndicator){const _=X_(r);if(_!==r){if(!Km(r,0))return nt;const m=Na(r.exports.get("export=")),h=df(m,m===_?void 0:_);return fm()?h:_4(r)}}const l=np(16,r);if(r.flags&32){const _=LY(r);return _?Xs([l,_]):l}else return q&&r.flags&16777216?s1(l,!0):l}function MY(r){const a=wi(r);return a.type||(a.type=s8e(r))}function RY(r){const a=wi(r);if(!a.type){if(!Km(r,0))return nt;const l=cl(r),_=r.declarations&&ff(rd(r),!0),m=$o(_==null?void 0:_.declarations,h=>oc(h)?Mi(h):void 0);if(a.type=_!=null&&_.declarations&&TK(_.declarations)&&r.declarations.length?dv(_):TK(r.declarations)?Ge:m||($l(l)&111551?Xr(l):nt),!fm())return _4(_??r),a.type=nt}return a.type}function Nde(r){const a=wi(r);return a.type||(a.type=zi(Xr(a.target),a.mapper))}function Ide(r){const a=wi(r);return a.writeType||(a.writeType=zi(G2(a.target),a.mapper))}function _4(r){const a=r.valueDeclaration;if(a){if(Vl(a))return Me(r.valueDeclaration,p._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ni(r)),nt;ae&&(a.kind!==169||a.initializer)&&Me(r.valueDeclaration,p._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,ni(r))}else if(r.flags&2097152){const l=rd(r);l&&Me(l,p.Circular_definition_of_import_alias_0,ni(r))}return B}function jY(r){const a=wi(r);return a.type||(E.assertIsDefined(a.deferralParent),E.assertIsDefined(a.deferralConstituents),a.type=a.deferralParent.flags&1048576?Bn(a.deferralConstituents):Xs(a.deferralConstituents)),a.type}function OR(r){const a=wi(r);return!a.writeType&&a.deferralWriteConstituents&&(E.assertIsDefined(a.deferralParent),E.assertIsDefined(a.deferralConstituents),a.writeType=a.deferralParent.flags&1048576?Bn(a.deferralWriteConstituents):Xs(a.deferralWriteConstituents)),a.writeType}function G2(r){const a=Ko(r);return r.flags&4?a&2?a&65536?OR(r)||jY(r):r.links.writeType||r.links.type:a1(Xr(r),!!(r.flags&16777216)):r.flags&98304?a&1?Ide(r):IR(r):Xr(r)}function Xr(r,a){const l=Ko(r);return l&65536?jY(r):l&1?Nde(r):l&262144?stt(r):l&8192?vit(r):r.flags&7?wd(r,a):r.flags&9136?LP(r):r.flags&8?MY(r):r.flags&98304?hv(r):r.flags&2097152?RY(r):nt}function Gy(r){return a1(Xr(r),!!(r.flags&16777216))}function $y(r,a){return r!==void 0&&a!==void 0&&(bn(r)&4)!==0&&r.target===a}function C0(r){return bn(r)&4?r.target:r}function f4(r,a){return l(r);function l(_){if(bn(_)&7){const m=C0(_);return m===a||ct(Z_(m),l)}else if(_.flags&2097152)return ct(_.types,l);return!1}}function yv(r,a){for(const l of a)r=Hg(r,qS(un(l)));return r}function mr(r,a){for(;;){if(r=r.parent,r&&Zr(r)){const l=fc(r);if(l===6||l===3){const _=un(r.left);_&&_.parent&&!Pr(_.parent.valueDeclaration,m=>r===m)&&(r=_.parent.valueDeclaration)}}if(!r)return;switch(r.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:{const _=mr(r,a);if(r.kind===200)return _r(_,qS(un(r.typeParameter)));if(r.kind===194)return es(_,Iwe(r));const m=yv(_,G0(r)),h=a&&(r.kind===263||r.kind===231||r.kind===264||ym(r))&&ap(un(r)).thisType;return h?_r(m,h):m}case 348:const l=M8(r);l&&(r=l.valueDeclaration);break;case 327:{const _=mr(r,a);return r.tags?yv(_,Zs(r.tags,m=>Cp(m)?m.typeParameters:void 0)):_}}}}function kn(r){var a;const l=r.flags&32||r.flags&16?r.valueDeclaration:(a=r.declarations)==null?void 0:a.find(_=>{if(_.kind===264)return!0;if(_.kind!==260)return!1;const m=_.initializer;return!!m&&(m.kind===218||m.kind===219)});return E.assert(!!l,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),mr(l)}function hn(r){if(!r.declarations)return;let a;for(const l of r.declarations)(l.kind===264||l.kind===263||l.kind===231||ym(l)||F8(l))&&(a=yv(a,G0(l)));return a}function bi(r){return es(kn(r),hn(r))}function di(r){const a=Es(r,1);if(a.length===1){const l=a[0];if(!l.typeParameters&&l.parameters.length===1&&Su(l)){const _=Fj(l.parameters[0]);return ht(_)||cj(_)===B}}return!1}function Ia(r){if(Es(r,1).length>0)return!0;if(r.flags&8650752){const a=fu(r);return!!a&&di(a)}return!1}function Ya(r){const a=rh(r.symbol);return a&&Ud(a)}function Eu(r,a,l){const _=gr(a),m=Hr(l);return An(Es(r,1),h=>(m||_>=rg(h.typeParameters))&&_<=gr(h.typeParameters))}function eg(r,a,l){const _=Eu(r,a,l),m=nr(a,ii);return rl(_,h=>ct(h.typeParameters)?_I(h,m,Hr(l)):h)}function Y_(r){if(!r.resolvedBaseConstructorType){const a=rh(r.symbol),l=a&&Ud(a),_=Ya(r);if(!_)return r.resolvedBaseConstructorType=Pe;if(!Km(r,1))return nt;const m=Hi(_.expression);if(l&&_!==l&&(E.assert(!l.typeArguments),Hi(l.expression)),m.flags&2621440&&Id(m),!fm())return Me(r.symbol.valueDeclaration,p._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,ni(r.symbol)),r.resolvedBaseConstructorType=nt;if(!(m.flags&1)&&m!==Ne&&!Ia(m)){const h=Me(_.expression,p.Type_0_is_not_a_constructor_function_type,Ar(m));if(m.flags&262144){const x=jP(m);let N=Kt;if(x){const L=Es(x,1);L[0]&&(N=Ja(L[0]))}m.symbol.declarations&&la(h,yn(m.symbol.declarations[0],p.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,ni(m.symbol),Ar(N)))}return r.resolvedBaseConstructorType=nt}r.resolvedBaseConstructorType=m}return r.resolvedBaseConstructorType}function Ad(r){let a=Ve;if(r.symbol.declarations)for(const l of r.symbol.declarations){const _=mC(l);if(_)for(const m of _){const h=ii(m);Ot(h)||(a===Ve?a=[h]:a.push(h))}}return a}function Ph(r,a){Me(r,p.Type_0_recursively_references_itself_as_a_base_type,Ar(a,void 0,2))}function Z_(r){if(!r.baseTypesResolved){if(Km(r,7)&&(r.objectFlags&8?r.resolvedBaseTypes=[p4(r)]:r.symbol.flags&96?(r.symbol.flags&32&&aI(r),r.symbol.flags&64&&Oet(r)):E.fail("type must be class or interface"),!fm()&&r.symbol.declarations))for(const a of r.symbol.declarations)(a.kind===263||a.kind===264)&&Ph(a,r);r.baseTypesResolved=!0}return r.resolvedBaseTypes}function p4(r){const a=rl(r.typeParameters,(l,_)=>r.elementFlags[_]&8?K_(l,_t):l);return pu(Bn(a||Ve),r.readonly)}function aI(r){r.resolvedBaseTypes=NF;const a=n_(Y_(r));if(!(a.flags&2621441))return r.resolvedBaseTypes=Ve;const l=Ya(r);let _;const m=a.symbol?Eo(a.symbol):void 0;if(a.symbol&&a.symbol.flags&32&&Fet(m))_=z8e(l,a.symbol);else if(a.flags&1)_=a;else{const x=eg(a,l.typeArguments,l);if(!x.length)return Me(l.expression,p.No_base_constructor_has_the_specified_number_of_type_arguments),r.resolvedBaseTypes=Ve;_=Ja(x[0])}if(Ot(_))return r.resolvedBaseTypes=Ve;const h=Fd(_);if(!LR(h)){const x=Hde(void 0,_),N=vs(x,p.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,Ar(h));return wa.add(Zg(wr(l.expression),l.expression,N)),r.resolvedBaseTypes=Ve}return r===h||f4(h,r)?(Me(r.symbol.valueDeclaration,p.Type_0_recursively_references_itself_as_a_base_type,Ar(r,void 0,2)),r.resolvedBaseTypes=Ve):(r.resolvedBaseTypes===NF&&(r.members=void 0),r.resolvedBaseTypes=[h])}function Fet(r){const a=r.outerTypeParameters;if(a){const l=a.length-1,_=bo(r);return a[l].symbol!==_[l].symbol}return!0}function LR(r){if(r.flags&262144){const a=fu(r);if(a)return LR(a)}return!!(r.flags&67633153&&!g_(r)||r.flags&2097152&&Wi(r.types,LR))}function Oet(r){if(r.resolvedBaseTypes=r.resolvedBaseTypes||Ve,r.symbol.declarations){for(const a of r.symbol.declarations)if(a.kind===264&&CE(a))for(const l of CE(a)){const _=Fd(ii(l));Ot(_)||(LR(_)?r!==_&&!f4(_,r)?r.resolvedBaseTypes===Ve?r.resolvedBaseTypes=[_]:r.resolvedBaseTypes.push(_):Ph(a,r):Me(l,p.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function Let(r){if(!r.declarations)return!0;for(const a of r.declarations)if(a.kind===264){if(a.flags&256)return!1;const l=CE(a);if(l){for(const _ of l)if(pc(_.expression)){const m=yo(_.expression,788968,!0);if(!m||!(m.flags&64)||ap(m).thisType)return!1}}}return!0}function ap(r){let a=wi(r);const l=a;if(!a.declaredType){const _=r.flags&32?1:2,m=ahe(r,r.valueDeclaration&&xot(r.valueDeclaration));m&&(r=m,a=m.links);const h=l.declaredType=a.declaredType=np(_,r),x=kn(r),N=hn(r);(x||N||_===1||!Let(r))&&(h.objectFlags|=4,h.typeParameters=es(x,N),h.outerTypeParameters=x,h.localTypeParameters=N,h.instantiations=new Map,h.instantiations.set(Ip(h.typeParameters),h),h.target=h,h.resolvedTypeArguments=h.typeParameters,h.thisType=jf(r),h.thisType.isThisType=!0,h.thisType.constraint=h)}return a.declaredType}function r8e(r){var a;const l=wi(r);if(!l.declaredType){if(!Km(r,2))return nt;const _=E.checkDefined((a=r.declarations)==null?void 0:a.find(F8),"Type alias symbol with no valid declaration found"),m=hp(_)?_.typeExpression:_.type;let h=m?ii(m):nt;if(fm()){const x=hn(r);x&&(l.typeParameters=x,l.instantiations=new Map,l.instantiations.set(Ip(x),h))}else h=nt,_.kind===347?Me(_.typeExpression.type,p.Type_alias_0_circularly_references_itself,ni(r)):Me(Nu(_)&&_.name||_,p.Type_alias_0_circularly_references_itself,ni(r));l.declaredType=h}return l.declaredType}function BY(r){return r.flags&1056&&r.symbol.flags&8?Eo(e_(r.symbol)):r}function n8e(r){const a=wi(r);if(!a.declaredType){const l=[];if(r.declarations){for(const m of r.declarations)if(m.kind===266){for(const h of m.members)if(d4(h)){const x=un(h),N=O4(h),L=vk(N!==void 0?ent(N,Ks(r),x):i8e(x));wi(x).declaredType=L,l.push(Uu(L))}}}const _=l.length?Bn(l,1,r,void 0):i8e(r);_.flags&1048576&&(_.flags|=1024,_.symbol=r),a.declaredType=_}return a.declaredType}function i8e(r){const a=jg(32,r),l=jg(32,r);return a.regularType=a,a.freshType=l,l.regularType=a,l.freshType=l,a}function s8e(r){const a=wi(r);if(!a.declaredType){const l=n8e(e_(r));a.declaredType||(a.declaredType=l)}return a.declaredType}function qS(r){const a=wi(r);return a.declaredType||(a.declaredType=jf(r))}function Met(r){const a=wi(r);return a.declaredType||(a.declaredType=Eo(cl(r)))}function Eo(r){return a8e(r)||nt}function a8e(r){if(r.flags&96)return ap(r);if(r.flags&524288)return r8e(r);if(r.flags&262144)return qS(r);if(r.flags&384)return n8e(r);if(r.flags&8)return s8e(r);if(r.flags&2097152)return Met(r)}function MR(r){switch(r.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 MR(r.elementType);case 183:return!r.typeArguments||r.typeArguments.every(MR)}return!1}function Ret(r){const a=Uk(r);return!a||MR(a)}function o8e(r){const a=Vl(r);return a?MR(a):!Z0(r)}function jet(r){const a=bp(r),l=G0(r);return(r.kind===176||!!a&&MR(a))&&r.parameters.every(o8e)&&l.every(Ret)}function Bet(r){if(r.declarations&&r.declarations.length===1){const a=r.declarations[0];if(a)switch(a.kind){case 172:case 171:return o8e(a);case 174:case 173:case 176:case 177:case 178:return jet(a)}}return!1}function c8e(r,a,l){const _=Bs();for(const m of r)_.set(m.escapedName,l&&Bet(m)?m:Lme(m,a));return _}function l8e(r,a){for(const l of a){if(u8e(l))continue;const _=r.get(l.escapedName);(!_||_.valueDeclaration&&Zr(_.valueDeclaration)&&!l4(_)&&!Qte(_.valueDeclaration))&&(r.set(l.escapedName,l),r.set(l.escapedName,l))}}function u8e(r){return!!r.valueDeclaration&&Iu(r.valueDeclaration)&&Ms(r.valueDeclaration)}function Fde(r){if(!r.declaredProperties){const a=r.symbol,l=Xy(a);r.declaredProperties=_v(l),r.declaredCallSignatures=Ve,r.declaredConstructSignatures=Ve,r.declaredIndexInfos=Ve,r.declaredCallSignatures=$2(l.get("__call")),r.declaredConstructSignatures=$2(l.get("__new")),r.declaredIndexInfos=R8e(a)}return r}function Ode(r){if(!Pa(r)&&!ko(r))return!1;const a=Pa(r)?r.expression:r.argumentExpression;return pc(a)&&Sp(Pa(r)?Wg(r):Dc(a))}function oI(r){return r.charCodeAt(0)===95&&r.charCodeAt(1)===95&&r.charCodeAt(2)===64}function RR(r){const a=us(r);return!!a&&Ode(a)}function d4(r){return!ry(r)||RR(r)}function Jet(r){return W5(r)&&!Ode(r)}function zet(r,a,l){E.assert(!!(Ko(r)&4096),"Expected a late-bound symbol."),r.flags|=l,wi(a.symbol).lateSymbol=r,r.declarations?a.symbol.isReplaceableByMethod||r.declarations.push(a):r.declarations=[a],l&111551&&(!r.valueDeclaration||r.valueDeclaration.kind!==a.kind)&&(r.valueDeclaration=a)}function _8e(r,a,l,_){E.assert(!!_.symbol,"The member is expected to have a symbol.");const m=jn(_);if(!m.resolvedSymbol){m.resolvedSymbol=_.symbol;const h=Zr(_)?_.left:_.name,x=ko(h)?Dc(h.argumentExpression):Wg(h);if(Sp(x)){const N=Tp(x),L=_.symbol.flags;let z=l.get(N);z||l.set(N,z=xa(0,N,4096));const Z=a&&a.get(N);if(!(r.flags&32)&&(z.flags&kS(L)||Z)){const de=Z?es(Z.declarations,z.declarations):z.declarations,_e=!(x.flags&8192)&&xi(N)||Ka(h);er(de,Re=>Me(us(Re)||Re,p.Property_0_was_also_declared_here,_e)),Me(h||_,p.Duplicate_property_0,_e),z=xa(0,N,4096)}return z.links.nameType=x,zet(z,_,L),z.parent?E.assert(z.parent===r,"Existing symbol parent should match new one"):z.parent=r,m.resolvedSymbol=z}}return m.resolvedSymbol}function Lde(r,a){const l=wi(r);if(!l[a]){const _=a==="resolvedExports",m=_?r.flags&1536?BS(r).exports:r.exports:r.members;l[a]=m||U;const h=Bs();for(const L of r.declarations||Ve){const z=Wte(L);if(z)for(const Z of z)_===Bc(Z)&&RR(Z)&&_8e(r,m,h,Z)}const x=z2(r).assignmentDeclarationMembers;if(x){const L=gs(x.values());for(const z of L){const Z=fc(z),de=Z===3||Zr(z)&&zZ(z,Z)||Z===9||Z===6;_===!de&&RR(z)&&_8e(r,m,h,z)}}let N=rk(m,h);if(r.flags&33554432&&l.cjsExportMerged&&r.declarations)for(const L of r.declarations){const z=wi(L.symbol)[a];if(!N){N=z;continue}z&&z.forEach((Z,de)=>{const _e=N.get(de);if(!_e)N.set(de,Z);else{if(_e===Z)return;N.set(de,Dp(_e,Z))}})}l[a]=N||U}return l[a]}function Xy(r){return r.flags&6256?Lde(r,"resolvedMembers"):r.members||U}function JY(r){if(r.flags&106500&&r.escapedName==="__computed"){const a=wi(r);if(!a.lateSymbol&&ct(r.declarations,RR)){const l=Na(r.parent);ct(r.declarations,Bc)?Q_(l):Xy(l)}return a.lateSymbol||(a.lateSymbol=r)}return r}function mf(r,a,l){if(bn(r)&4){const _=r.target,m=bo(r);return gr(_.typeParameters)===gr(m)?P0(_,es(m,[a||_.thisType])):r}else if(r.flags&2097152){const _=rl(r.types,m=>mf(m,a,l));return _!==r.types?Xs(_):r}return l?n_(r):r}function f8e(r,a,l,_){let m,h,x,N,L;lB(l,_,0,l.length)?(h=a.symbol?Xy(a.symbol):Bs(a.declaredProperties),x=a.declaredCallSignatures,N=a.declaredConstructSignatures,L=a.declaredIndexInfos):(m=ef(l,_),h=c8e(a.declaredProperties,m,l.length===1),x=oZ(a.declaredCallSignatures,m),N=oZ(a.declaredConstructSignatures,m),L=jwe(a.declaredIndexInfos,m));const z=Z_(a);if(z.length){if(a.symbol&&h===Xy(a.symbol)){const de=Bs(a.declaredProperties),_e=eme(a.symbol);_e&&de.set("__index",_e),h=de}Bf(r,h,x,N,L);const Z=Po(_);for(const de of z){const _e=Z?mf(zi(de,m),Z):de;l8e(h,Ua(_e)),x=es(x,Es(_e,0)),N=es(N,Es(_e,1));const Re=_e!==B?Wu(_e):[ng(Ce,B,!1)];L=es(L,An(Re,st=>!Gde(L,st.keyType)))}}Bf(r,h,x,N,L)}function Wet(r){f8e(r,Fde(r),Ve,Ve)}function Vet(r){const a=Fde(r.target),l=es(a.typeParameters,[a.thisType]),_=bo(r),m=_.length===l.length?_:es(_,[r]);f8e(r,a,l,m)}function Jg(r,a,l,_,m,h,x,N){const L=new g(jt,N);return L.declaration=r,L.typeParameters=a,L.parameters=_,L.thisParameter=l,L.resolvedReturnType=m,L.resolvedTypePredicate=h,L.minArgumentCount=x,L.resolvedMinArgumentCount=void 0,L.target=void 0,L.mapper=void 0,L.compositeSignatures=void 0,L.compositeKind=void 0,L}function cI(r){const a=Jg(r.declaration,r.typeParameters,r.thisParameter,r.parameters,void 0,void 0,r.minArgumentCount,r.flags&167);return a.target=r.target,a.mapper=r.mapper,a.compositeSignatures=r.compositeSignatures,a.compositeKind=r.compositeKind,a}function p8e(r,a){const l=cI(r);return l.compositeSignatures=a,l.compositeKind=1048576,l.target=void 0,l.mapper=void 0,l}function Uet(r,a){if((r.flags&24)===a)return r;r.optionalCallSignatureCache||(r.optionalCallSignatureCache={});const l=a===8?"inner":"outer";return r.optionalCallSignatureCache[l]||(r.optionalCallSignatureCache[l]=qet(r,a))}function qet(r,a){E.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.");const l=cI(r);return l.flags|=a,l}function d8e(r,a){if(Su(r)){const m=r.parameters.length-1,h=r.parameters[m].escapedName,x=Xr(r.parameters[m]);if(da(x))return[l(x,m,h)];if(!a&&x.flags&1048576&&Wi(x.types,da))return nr(x.types,N=>l(N,m,h))}return[r.parameters];function l(m,h,x){const N=bo(m),L=_(m,x),z=nr(N,(Z,de)=>{const _e=L&&L[de]?L[de]:KP(r,h+de,m),Re=m.target.elementFlags[de],st=Re&12?32768:Re&2?16384:0,gt=xa(1,_e,st);return gt.links.type=Re&4?pu(Z):Z,gt});return es(r.parameters.slice(0,h),z)}function _(m,h){const x=new Map;return nr(m.target.labeledElementDeclarations,(N,L)=>{const z=_he(N,L,h),Z=x.get(z);return Z===void 0?(x.set(z,1),z):(x.set(z,Z+1),`${z}_${Z}`)})}}function Het(r){const a=Y_(r),l=Es(a,1),_=rh(r.symbol),m=!!_&&Rn(_,64);if(l.length===0)return[Jg(void 0,r.localTypeParameters,void 0,Ve,r,void 0,0,m?4:0)];const h=Ya(r),x=Hr(h),N=qR(h),L=gr(N),z=[];for(const Z of l){const de=rg(Z.typeParameters),_e=gr(Z.typeParameters);if(x||L>=de&&L<=_e){const Re=_e?qY(Z,Yy(N,Z.typeParameters,de,x)):cI(Z);Re.typeParameters=r.localTypeParameters,Re.resolvedReturnType=r,Re.flags=m?Re.flags|4:Re.flags&-5,z.push(Re)}}return z}function zY(r,a,l,_,m){for(const h of r)if(aj(h,a,l,_,m,l?vnt:bI))return h}function Get(r,a,l){if(a.typeParameters){if(l>0)return;for(let m=1;m1&&(l=l===void 0?_:-1);for(const m of r[_])if(!a||!zY(a,m,!1,!1,!0)){const h=Get(r,m,_);if(h){let x=m;if(h.length>1){let N=m.thisParameter;const L=er(h,z=>z.thisParameter);if(L){const z=Xs(Ri(h,Z=>Z.thisParameter&&Xr(Z.thisParameter)));N=nT(L,z)}x=p8e(m,h),x.thisParameter=N}(a||(a=[])).push(x)}}}if(!gr(a)&&l!==-1){const _=r[l!==void 0?l:0];let m=_.slice();for(const h of r)if(h!==_){const x=h[0];if(E.assert(!!x,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),m=x.typeParameters&&ct(m,N=>!!N.typeParameters&&!m8e(x.typeParameters,N.typeParameters))?void 0:nr(m,N=>Qet(N,x)),!m)break}a=m}return a||Ve}function m8e(r,a){if(gr(r)!==gr(a))return!1;if(!r||!a)return!0;const l=ef(a,r);for(let _=0;_=m?r:a,x=h===r?a:r,N=h===r?_:m,L=ag(r)||ag(a),z=L&&!ag(h),Z=new Array(N+(z?1:0));for(let de=0;de=vm(h)&&de>=vm(x),$t=de>=_?void 0:KP(r,de),Ur=de>=m?void 0:KP(a,de),Tr=$t===Ur?$t:$t?Ur?void 0:$t:Ur,Gt=xa(1|(qt&&!gt?16777216:0),Tr||`arg${de}`,gt?32768:qt?16384:0);Gt.links.type=gt?pu(st):st,Z[de]=Gt}if(z){const de=xa(1,"args",32768);de.links.type=pu(Md(x,N)),x===a&&(de.links.type=zi(de.links.type,l)),Z[N]=de}return Z}function Qet(r,a){const l=r.typeParameters||a.typeParameters;let _;r.typeParameters&&a.typeParameters&&(_=ef(a.typeParameters,r.typeParameters));const m=r.declaration,h=Xet(r,a,_),x=$et(r.thisParameter,a.thisParameter,_),N=Math.max(r.minArgumentCount,a.minArgumentCount),L=Jg(m,l,x,h,void 0,void 0,N,(r.flags|a.flags)&167);return L.compositeKind=1048576,L.compositeSignatures=es(r.compositeKind!==2097152&&r.compositeSignatures||[r],[a]),_?L.mapper=r.compositeKind!==2097152&&r.mapper&&r.compositeSignatures?eb(r.mapper,_):_:r.compositeKind!==2097152&&r.mapper&&r.compositeSignatures&&(L.mapper=r.mapper),L}function g8e(r){const a=Wu(r[0]);if(a){const l=[];for(const _ of a){const m=_.keyType;Wi(r,h=>!!zg(h,m))&&l.push(ng(m,Bn(nr(r,h=>bv(h,m))),ct(r,h=>zg(h,m).isReadonly)))}return l}return Ve}function Yet(r){const a=Mde(nr(r.types,m=>m===kt?[Xt]:Es(m,0))),l=Mde(nr(r.types,m=>Es(m,1))),_=g8e(r.types);Bf(r,U,a,l,_)}function jR(r,a){return r?a?Xs([r,a]):r:a}function h8e(r){const a=j0(r,_=>Es(_,1).length>0),l=nr(r,di);if(a>0&&a===j0(l,_=>_)){const _=l.indexOf(!0);l[_]=!1}return l}function Zet(r,a,l,_){const m=[];for(let h=0;hN);for(let N=0;N0&&(z=nr(z,Z=>{const de=cI(Z);return de.resolvedReturnType=Zet(Ja(Z),m,h,N),de})),l=y8e(l,z)}a=y8e(a,Es(L,0)),_=Du(Wu(L),(z,Z)=>v8e(z,Z,!1),_)}Bf(r,U,a||Ve,l||Ve,_||Ve)}function y8e(r,a){for(const l of a)(!r||Wi(r,_=>!aj(_,l,!1,!1,!1,bI)))&&(r=_r(r,l));return r}function v8e(r,a,l){if(r)for(let _=0;_{var L;!(N.flags&418)&&!(N.flags&512&&((L=N.declarations)!=null&&L.length)&&Wi(N.declarations,su))&&x.set(N.escapedName,N)}),l=x}let m;if(Bf(r,l,Ve,Ve,Ve),a.flags&32){const x=ap(a),N=Y_(x);N.flags&11272192?(l=Bs(zS(l)),l8e(l,Ua(N))):N===B&&(m=ng(Ce,B,!1))}const h=HY(l);if(h?_=tme(h):(m&&(_=_r(_,m)),a.flags&384&&(Eo(a).flags&32||ct(r.properties,x=>!!(Xr(x).flags&296)))&&(_=_r(_,En))),Bf(r,l,Ve,Ve,_||Ve),a.flags&8208&&(r.callSignatures=$2(a)),a.flags&32){const x=ap(a);let N=a.members?$2(a.members.get("__constructor")):Ve;a.flags&16&&(N=Nn(N.slice(),Ri(r.callSignatures,L=>ym(L.declaration)?Jg(L.declaration,L.typeParameters,L.thisParameter,L.parameters,x,void 0,L.minArgumentCount,L.flags&167):void 0))),N.length||(N=Het(x)),r.constructSignatures=N}}function ttt(r,a,l){return zi(r,ef([a.indexType,a.objectType],[Od(0),ig([l])]))}function rtt(r){const a=Jf(r.mappedType);if(!(a.flags&1048576||a.flags&2097152))return;const l=a.flags&1048576?a.origin:a;if(!l||!(l.flags&2097152))return;const _=Xs(l.types.filter(m=>m!==r.constraintType));return _!==Cn?_:void 0}function ntt(r){const a=zg(r.source,Ce),l=tg(r.mappedType),_=!(l&1),m=l&4?0:16777216,h=a?[ng(Ce,DZ(a.type,r.mappedType,r.constraintType),_&&a.isReadonly)]:Ve,x=Bs(),N=rtt(r);for(const L of Ua(r.source)){if(N){const de=b4(L,8576);if(!Qs(de,N))continue}const z=8192|(_&&Rd(L)?8:0),Z=xa(4|L.flags&m,L.escapedName,z);if(Z.declarations=L.declarations,Z.links.nameType=wi(L).nameType,Z.links.propertyType=Xr(L),r.constraintType.type.flags&8388608&&r.constraintType.type.objectType.flags&262144&&r.constraintType.type.indexType.flags&262144){const de=r.constraintType.type.objectType,_e=ttt(r.mappedType,r.constraintType.type,de);Z.links.mappedType=_e,Z.links.constraintType=dm(de)}else Z.links.mappedType=r.mappedType,Z.links.constraintType=r.constraintType;x.set(L.escapedName,Z)}Bf(r,x,Ve,Ve,h)}function BR(r){if(r.flags&4194304){const a=n_(r.type);return i1(a)?lwe(a):dm(a)}if(r.flags&16777216){if(r.root.isDistributive){const a=r.checkType,l=BR(a);if(l!==a)return Rme(r,tT(r.root.checkType,l,r.mapper),!1)}return r}if(r.flags&1048576)return jo(r,BR,!0);if(r.flags&2097152){const a=r.types;return a.length===2&&a[0].flags&76&&a[1]===Fc?r:Xs(rl(r.types,BR))}return r}function Rde(r){return Ko(r)&4096}function jde(r,a,l,_){for(const m of Ua(r))_(b4(m,a));if(r.flags&1)_(Ce);else for(const m of Wu(r))(!l||m.keyType.flags&134217732)&&_(m.keyType)}function itt(r){const a=Bs();let l;Bf(r,U,Ve,Ve,Ve);const _=Nd(r),m=Jf(r),h=r.target||r,x=E0(h),N=WY(h)!==2,L=Dh(h),z=n_(HS(r)),Z=tg(r),de=ke?128:8576;m4(r)?jde(z,de,ke,_e):oT(BR(m),_e),Bf(r,a,Ve,Ve,l||Ve);function _e(st){const gt=x?zi(x,hI(r.mapper,_,st)):st;oT(gt,qt=>Re(st,qt))}function Re(st,gt){if(Sp(gt)){const qt=Tp(gt),$t=a.get(qt);if($t)$t.links.nameType=Bn([$t.links.nameType,gt]),$t.links.keyType=Bn([$t.links.keyType,st]);else{const Ur=Sp(st)?$s(z,Tp(st)):void 0,Tr=!!(Z&4||!(Z&8)&&Ur&&Ur.flags&16777216),Gt=!!(Z&1||!(Z&2)&&Ur&&Rd(Ur)),Cr=q&&!Tr&&Ur&&Ur.flags&16777216,kr=Ur?Rde(Ur):0,Br=xa(4|(Tr?16777216:0),qt,kr|262144|(Gt?8:0)|(Cr?524288:0));Br.links.mappedType=r,Br.links.nameType=gt,Br.links.keyType=st,Ur&&(Br.links.syntheticOrigin=Ur,Br.declarations=N?Ur.declarations:void 0),a.set(qt,Br)}}else if(GY(gt)||gt.flags&33){const qt=gt.flags&5?Ce:gt.flags&40?_t:gt,$t=zi(L,hI(r.mapper,_,st)),Ur=lI(z,gt),Tr=!!(Z&1||!(Z&2)&&(Ur!=null&&Ur.isReadonly)),Gt=ng(qt,$t,Tr);l=v8e(l,Gt,!0)}}}function stt(r){if(!r.links.type){const a=r.links.mappedType;if(!Km(r,0))return a.containsError=!0,nt;const l=Dh(a.target||a),_=hI(a.mapper,Nd(a),r.links.keyType),m=zi(l,_);let h=q&&r.flags&16777216&&!nc(m,49152)?s1(m,!0):r.links.checkFlags&524288?xZ(m):m;fm()||(Me(P,p.Type_of_property_0_circularly_references_itself_in_mapped_type_1,ni(r),Ar(a)),h=nt),r.links.type=h}return r.links.type}function Nd(r){return r.typeParameter||(r.typeParameter=qS(un(r.declaration.typeParameter)))}function Jf(r){return r.constraintType||(r.constraintType=r_(Nd(r))||nt)}function E0(r){return r.declaration.nameType?r.nameType||(r.nameType=zi(ii(r.declaration.nameType),r.mapper)):void 0}function Dh(r){return r.templateType||(r.templateType=r.declaration.type?zi(A_(ii(r.declaration.type),!0,!!(tg(r)&4)),r.mapper):nt)}function b8e(r){return Uk(r.declaration.typeParameter)}function m4(r){const a=b8e(r);return a.kind===198&&a.operator===143}function HS(r){if(!r.modifiersType)if(m4(r))r.modifiersType=zi(ii(b8e(r).type),r.mapper);else{const a=Pme(r.declaration),l=Jf(a),_=l&&l.flags&262144?r_(l):l;r.modifiersType=_&&_.flags&4194304?zi(_.type,r.mapper):Kt}return r.modifiersType}function tg(r){const a=r.declaration;return(a.readonlyToken?a.readonlyToken.kind===41?2:1:0)|(a.questionToken?a.questionToken.kind===41?8:4:0)}function S8e(r){const a=tg(r);return a&8?-1:a&4?1:0}function Bde(r){const a=S8e(r),l=HS(r);return a||(g_(l)?S8e(l):0)}function att(r){return!!(bn(r)&32&&tg(r)&4)}function g_(r){if(bn(r)&32){const a=Jf(r);if(eT(a))return!0;const l=E0(r);if(l&&eT(zi(l,K2(Nd(r),a))))return!0}return!1}function WY(r){const a=E0(r);return a?Qs(a,Nd(r))?1:2:0}function Id(r){return r.members||(r.flags&524288?r.objectFlags&4?Vet(r):r.objectFlags&3?Wet(r):r.objectFlags&1024?ntt(r):r.objectFlags&16?ett(r):r.objectFlags&32?itt(r):E.fail("Unhandled object type "+E.formatObjectFlags(r.objectFlags)):r.flags&1048576?Yet(r):r.flags&2097152?Ket(r):E.fail("Unhandled type "+E.formatTypeFlags(r.flags))),r}function Qy(r){return r.flags&524288?Id(r).properties:Ve}function vv(r,a){if(r.flags&524288){const _=Id(r).members.get(a);if(_&&sd(_))return _}}function JR(r){if(!r.resolvedProperties){const a=Bs();for(const l of r.types){for(const _ of Ua(l))if(!a.has(_.escapedName)){const m=WR(r,_.escapedName,!!(r.flags&2097152));m&&a.set(_.escapedName,m)}if(r.flags&1048576&&Wu(l).length===0)break}r.resolvedProperties=_v(a)}return r.resolvedProperties}function Ua(r){return r=MP(r),r.flags&3145728?JR(r):Qy(r)}function ott(r,a){r=MP(r),r.flags&3670016&&Id(r).members.forEach((l,_)=>{uk(l,_)&&a(l,_)})}function ctt(r,a){return a.properties.some(_=>{const m=_.name&&(yd(_.name)?h_(lw(_.name)):w0(_.name)),h=m&&Sp(m)?Tp(m):void 0,x=h===void 0?void 0:je(r,h);return!!x&&xI(x)&&!Qs(xk(_),x)})}function ltt(r){const a=Bn(r);if(!(a.flags&1048576))return Ghe(a);const l=Bs();for(const _ of r)for(const{escapedName:m}of Ghe(_))if(!l.has(m)){const h=D8e(a,m);h&&l.set(m,h)}return gs(l.values())}function GS(r){return r.flags&262144?r_(r):r.flags&8388608?_tt(r):r.flags&16777216?k8e(r):fu(r)}function r_(r){return zR(r)?jP(r):void 0}function utt(r,a){const l=yI(r);return!!l&&$S(l,a)}function $S(r,a=0){var l;return a<5&&!!(r&&(r.flags&262144&&ct((l=r.symbol)==null?void 0:l.declarations,_=>Rn(_,4096))||r.flags&3145728&&ct(r.types,_=>$S(_,a))||r.flags&8388608&&$S(r.objectType,a+1)||r.flags&16777216&&$S(k8e(r),a+1)||r.flags&33554432&&$S(r.baseType,a)||bn(r)&32&&utt(r,a)||i1(r)&&vc(Q2(r),(_,m)=>!!(r.target.elementFlags[m]&8)&&$S(_,a))>=0))}function _tt(r){return zR(r)?ftt(r):void 0}function Jde(r){const a=Nh(r,!1);return a!==r?a:GS(r)}function ftt(r){if(Ude(r))return tZ(r.objectType,r.indexType);const a=Jde(r.indexType);if(a&&a!==r.indexType){const _=Ky(r.objectType,a,r.accessFlags);if(_)return _}const l=Jde(r.objectType);if(l&&l!==r.objectType)return Ky(l,r.indexType,r.accessFlags)}function zde(r){if(!r.resolvedDefaultConstraint){const a=$rt(r),l=xv(r);r.resolvedDefaultConstraint=ht(a)?l:ht(l)?a:Bn([a,l])}return r.resolvedDefaultConstraint}function T8e(r){if(r.resolvedConstraintOfDistributive!==void 0)return r.resolvedConstraintOfDistributive||void 0;if(r.root.isDistributive&&r.restrictiveInstantiation!==r){const a=Nh(r.checkType,!1),l=a===r.checkType?GS(a):a;if(l&&l!==r.checkType){const _=Rme(r,tT(r.root.checkType,l,r.mapper),!0);if(!(_.flags&131072))return r.resolvedConstraintOfDistributive=_,_}}r.resolvedConstraintOfDistributive=!1}function x8e(r){return T8e(r)||zde(r)}function k8e(r){return zR(r)?x8e(r):void 0}function ptt(r,a){let l,_=!1;for(const m of r)if(m.flags&465829888){let h=GS(m);for(;h&&h.flags&21233664;)h=GS(h);h&&(l=_r(l,h),a&&(l=_r(l,m)))}else(m.flags&469892092||sg(m))&&(_=!0);if(l&&(a||_)){if(_)for(const m of r)(m.flags&469892092||sg(m))&&(l=_r(l,m));return nj(Xs(l),!1)}}function fu(r){if(r.flags&464781312||i1(r)){const a=Wde(r);return a!==go&&a!==Pl?a:void 0}return r.flags&4194304?uo:void 0}function wh(r){return fu(r)||r}function zR(r){return Wde(r)!==Pl}function Wde(r){if(r.resolvedBaseConstraint)return r.resolvedBaseConstraint;const a=[];return r.resolvedBaseConstraint=l(r);function l(h){if(!h.immediateBaseConstraint){if(!Km(h,4))return Pl;let x;const N=hZ(h);if((a.length<10||a.length<50&&!bs(a,N))&&(a.push(N),x=m(Nh(h,!1)),a.pop()),!fm()){if(h.flags&262144){const L=rme(h);if(L){const z=Me(L,p.Type_parameter_0_has_a_circular_constraint,Ar(h));P&&!Hv(L,P)&&!Hv(P,L)&&la(z,yn(P,p.Circularity_originates_in_type_at_this_location))}}x=Pl}h.immediateBaseConstraint=x||go}return h.immediateBaseConstraint}function _(h){const x=l(h);return x!==go&&x!==Pl?x:void 0}function m(h){if(h.flags&262144){const x=jP(h);return h.isThisType||!x?x:_(x)}if(h.flags&3145728){const x=h.types,N=[];let L=!1;for(const z of x){const Z=_(z);Z?(Z!==z&&(L=!0),N.push(Z)):L=!0}return L?h.flags&1048576&&N.length===x.length?Bn(N):h.flags&2097152&&N.length?Xs(N):void 0:h}if(h.flags&4194304)return uo;if(h.flags&134217728){const x=h.types,N=Ri(x,_);return N.length===x.length?YS(h.texts,N):Ce}if(h.flags&268435456){const x=_(h.type);return x&&x!==h.type?hk(h.symbol,x):Ce}if(h.flags&8388608){if(Ude(h))return _(tZ(h.objectType,h.indexType));const x=_(h.objectType),N=_(h.indexType),L=x&&N&&Ky(x,N,h.accessFlags);return L&&_(L)}if(h.flags&16777216){const x=x8e(h);return x&&_(x)}if(h.flags&33554432)return _(ome(h));if(i1(h)){const x=nr(Q2(h),(N,L)=>{const z=N.flags&262144&&h.target.elementFlags[L]&8&&_(N)||N;return z!==N&&N_(z,Z=>Cv(Z)&&!i1(Z))?z:N});return ig(x,h.target.elementFlags,h.target.readonly,h.target.labeledElementDeclarations)}return h}}function dtt(r,a){return r.resolvedApparentType||(r.resolvedApparentType=mf(r,a,!0))}function Vde(r){if(r.default)r.default===Ml&&(r.default=Pl);else if(r.target){const a=Vde(r.target);r.default=a?zi(a,r.mapper):go}else{r.default=Ml;const a=r.symbol&&er(r.symbol.declarations,_=>Vo(_)&&_.default),l=a?ii(a):go;r.default===Ml&&(r.default=l)}return r.default}function XS(r){const a=Vde(r);return a!==go&&a!==Pl?a:void 0}function mtt(r){return Vde(r)!==Pl}function C8e(r){return!!(r.symbol&&er(r.symbol.declarations,a=>Vo(a)&&a.default))}function E8e(r){return r.resolvedApparentType||(r.resolvedApparentType=gtt(r))}function gtt(r){const a=r.target??r,l=yI(a);if(l&&!a.declaration.nameType){const _=HS(r),m=g_(_)?E8e(_):fu(_);if(m&&N_(m,h=>Cv(h)||P8e(h)))return zi(a,tT(l,m,r.mapper))}return r}function P8e(r){return!!(r.flags&2097152)&&Wi(r.types,Cv)}function Ude(r){let a;return!!(r.flags&8388608&&bn(a=r.objectType)&32&&!g_(a)&&eT(r.indexType)&&!(tg(a)&8)&&!a.declaration.nameType)}function n_(r){const a=r.flags&465829888?fu(r)||Kt:r,l=bn(a);return l&32?E8e(a):l&4&&a!==r?mf(a,r):a.flags&2097152?dtt(a,r):a.flags&402653316?Cc:a.flags&296?Uc:a.flags&2112?Ktt():a.flags&528?Ro:a.flags&12288?ewe():a.flags&67108864?oa:a.flags&4194304?uo:a.flags&2&&!q?oa:a}function MP(r){return Fd(n_(Fd(r)))}function D8e(r,a,l){var _,m,h;let x,N,L;const z=r.flags&1048576;let Z,de=4,_e=z?0:8,Re=!1;for(const Br of r.types){const Ir=n_(Br);if(!(Ot(Ir)||Ir.flags&131072)){const Jr=$s(Ir,a,l),ss=Jr?Hf(Jr):0;if(Jr){if(Jr.flags&106500&&(Z??(Z=z?0:16777216),z?Z|=Jr.flags&16777216:Z&=Jr.flags),!x)x=Jr;else if(Jr!==x)if((I4(Jr)||Jr)===(I4(x)||x)&&Gme(x,Jr,(hs,Gi)=>hs===Gi?-1:0)===-1)Re=!!x.parent&&!!gr(hn(x.parent));else{N||(N=new Map,N.set(Ks(x),x));const hs=Ks(Jr);N.has(hs)||N.set(hs,Jr)}z&&Rd(Jr)?_e|=8:!z&&!Rd(Jr)&&(_e&=-9),_e|=(ss&6?0:256)|(ss&4?512:0)|(ss&2?1024:0)|(ss&256?2048:0),Vge(Jr)||(de=2)}else if(z){const Ki=!oI(a)&&mk(Ir,a);Ki?(_e|=32|(Ki.isReadonly?8:0),L=_r(L,da(Ir)?bZ(Ir)||Pe:Ki.type)):Dv(Ir)&&!(bn(Ir)&2097152)?(_e|=32,L=_r(L,Pe)):_e|=16}}}if(!x||z&&(N||_e&48)&&_e&1536&&!(N&&htt(N.values())))return;if(!N&&!(_e&16)&&!L)if(Re){const Br=(_=Wn(x,wm))==null?void 0:_.links,Ir=nT(x,Br==null?void 0:Br.type);return Ir.parent=(h=(m=x.valueDeclaration)==null?void 0:m.symbol)==null?void 0:h.parent,Ir.links.containingType=r,Ir.links.mapper=Br==null?void 0:Br.mapper,Ir.links.writeType=G2(x),Ir}else return x;const st=N?gs(N.values()):[x];let gt,qt,$t;const Ur=[];let Tr,Gt,Cr=!1;for(const Br of st){Gt?Br.valueDeclaration&&Br.valueDeclaration!==Gt&&(Cr=!0):Gt=Br.valueDeclaration,gt=Nn(gt,Br.declarations);const Ir=Xr(Br);qt||(qt=Ir,$t=wi(Br).nameType);const Jr=G2(Br);(Tr||Jr!==Ir)&&(Tr=_r(Tr||Ur.slice(),Jr)),Ir!==qt&&(_e|=64),(xI(Ir)||ZS(Ir))&&(_e|=128),Ir.flags&131072&&Ir!==Ol&&(_e|=131072),Ur.push(Ir)}Nn(Ur,L);const kr=xa(4|(Z??0),a,de|_e);return kr.links.containingType=r,!Cr&&Gt&&(kr.valueDeclaration=Gt,Gt.symbol.parent&&(kr.parent=Gt.symbol.parent)),kr.declarations=gt,kr.links.nameType=$t,Ur.length>2?(kr.links.checkFlags|=65536,kr.links.deferralParent=r,kr.links.deferralConstituents=Ur,kr.links.deferralWriteConstituents=Tr):(kr.links.type=z?Bn(Ur):Xs(Ur),Tr&&(kr.links.writeType=z?Bn(Tr):Xs(Tr))),kr}function w8e(r,a,l){var _,m,h;let x=l?(_=r.propertyCacheWithoutObjectFunctionPropertyAugment)==null?void 0:_.get(a):(m=r.propertyCache)==null?void 0:m.get(a);return x||(x=D8e(r,a,l),x&&((l?r.propertyCacheWithoutObjectFunctionPropertyAugment||(r.propertyCacheWithoutObjectFunctionPropertyAugment=Bs()):r.propertyCache||(r.propertyCache=Bs())).set(a,x),l&&!(Ko(x)&48)&&!((h=r.propertyCache)!=null&&h.get(a))&&(r.propertyCache||(r.propertyCache=Bs())).set(a,x))),x}function htt(r){let a;for(const l of r){if(!l.declarations)return;if(!a){a=new Set(l.declarations);continue}if(a.forEach(_=>{bs(l.declarations,_)||a.delete(_)}),a.size===0)return}return a}function WR(r,a,l){const _=w8e(r,a,l);return _&&!(Ko(_)&16)?_:void 0}function Fd(r){return r.flags&1048576&&r.objectFlags&16777216?r.resolvedReducedType||(r.resolvedReducedType=ytt(r)):r.flags&2097152?(r.objectFlags&16777216||(r.objectFlags|=16777216|(ct(JR(r),vtt)?33554432:0)),r.objectFlags&33554432?Cn:r):r}function ytt(r){const a=rl(r.types,Fd);if(a===r.types)return r;const l=Bn(a);return l.flags&1048576&&(l.resolvedReducedType=l),l}function vtt(r){return A8e(r)||N8e(r)}function A8e(r){return!(r.flags&16777216)&&(Ko(r)&131264)===192&&!!(Xr(r).flags&131072)}function N8e(r){return!r.valueDeclaration&&!!(Ko(r)&1024)}function qde(r){return!!(r.flags&1048576&&r.objectFlags&16777216&&ct(r.types,qde)||r.flags&2097152&&btt(r))}function btt(r){const a=r.uniqueLiteralFilledInstantiation||(r.uniqueLiteralFilledInstantiation=zi(r,$i));return Fd(a)!==a}function Hde(r,a){if(a.flags&2097152&&bn(a)&33554432){const l=wn(JR(a),A8e);if(l)return vs(r,p.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,Ar(a,void 0,536870912),ni(l));const _=wn(JR(a),N8e);if(_)return vs(r,p.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,Ar(a,void 0,536870912),ni(_))}return r}function $s(r,a,l,_){var m,h;if(r=MP(r),r.flags&524288){const x=Id(r),N=x.members.get(a);if(N&&!_&&((m=r.symbol)==null?void 0:m.flags)&512&&((h=wi(r.symbol).typeOnlyExportStarMap)!=null&&h.has(a)))return;if(N&&sd(N,_))return N;if(l)return;const L=x===Wt?kt:x.callSignatures.length?Fr:x.constructSignatures.length?Yi:void 0;if(L){const z=vv(L,a);if(z)return z}return vv(Te,a)}if(r.flags&2097152){const x=WR(r,a,!0);return x||(l?void 0:WR(r,a,l))}if(r.flags&1048576)return WR(r,a,l)}function VR(r,a){if(r.flags&3670016){const l=Id(r);return a===0?l.callSignatures:l.constructSignatures}return Ve}function Es(r,a){const l=VR(MP(r),a);if(a===0&&!gr(l)&&r.flags&1048576){if(r.arrayFallbackSignatures)return r.arrayFallbackSignatures;let _;if(N_(r,m=>{var h;return!!((h=m.symbol)!=null&&h.parent)&&Stt(m.symbol.parent)&&(_?_===m.symbol.escapedName:(_=m.symbol.escapedName,!0))})){const m=jo(r,x=>t1((I8e(x.symbol.parent)?Is:Ds).typeParameters[0],x.mapper)),h=pu(m,cd(r,x=>I8e(x.symbol.parent)));return r.arrayFallbackSignatures=Es(je(h,_),a)}r.arrayFallbackSignatures=l}return l}function Stt(r){return!r||!Ds.symbol||!Is.symbol?!1:!!Pd(r,Ds.symbol)||!!Pd(r,Is.symbol)}function I8e(r){return!r||!Is.symbol?!1:!!Pd(r,Is.symbol)}function Gde(r,a){return wn(r,l=>l.keyType===a)}function $de(r,a){let l,_,m;for(const h of r)h.keyType===Ce?l=h:dk(a,h.keyType)&&(_?(m||(m=[_])).push(h):_=h);return m?ng(Kt,Xs(nr(m,h=>h.type)),Du(m,(h,x)=>h&&x.isReadonly,!0)):_||(l&&dk(a,Ce)?l:void 0)}function dk(r,a){return Qs(r,a)||a===Ce&&Qs(r,_t)||a===_t&&(r===Ra||!!(r.flags&128)&&kg(r.value))}function Xde(r){return r.flags&3670016?Id(r).indexInfos:Ve}function Wu(r){return Xde(MP(r))}function zg(r,a){return Gde(Wu(r),a)}function bv(r,a){var l;return(l=zg(r,a))==null?void 0:l.type}function Qde(r,a){return Wu(r).filter(l=>dk(a,l.keyType))}function lI(r,a){return $de(Wu(r),a)}function mk(r,a){return lI(r,oI(a)?oi:h_(xi(a)))}function F8e(r){var a;let l;for(const _ of G0(r))l=Hg(l,qS(_.symbol));return l!=null&&l.length?l:$c(r)?(a=RP(r))==null?void 0:a.typeParameters:void 0}function Yde(r){const a=[];return r.forEach((l,_)=>{V2(_)||a.push(l)}),a}function VY(r,a){if(Sl(r))return;const l=m_(ge,'"'+r+'"',512);return l&&a?Na(l):l}function uI(r){if(MT(r)||ow(r)||cw(r))return!0;if(r.initializer){const l=Np(r.parent),_=r.parent.parameters.indexOf(r);return E.assert(_>=0),_>=vm(l,3)}const a=Db(r.parent);return a?!r.type&&!r.dotDotDotToken&&r.parent.parameters.indexOf(r)>=tK(a).length:!1}function Ttt(r){return xs(r)&&!Gd(r)&&r.questionToken}function UR(r,a,l,_){return{kind:r,parameterName:a,parameterIndex:l,type:_}}function rg(r){let a=0;if(r)for(let l=0;l=l&&h<=m){const x=r?r.slice():[];for(let L=h;LL.arguments.length&&!$t||cw(gt)||(m=l.length)}if((r.kind===177||r.kind===178)&&d4(r)&&(!N||!h)){const st=r.kind===177?178:177,gt=Bo(un(r),st);gt&&(h=OY(gt))}x&&x.typeExpression&&(h=nT(xa(1,"this"),ii(x.typeExpression)));const de=R1(r)?D1(r):r,_e=de&&sc(de)?ap(Na(de.parent.symbol)):void 0,Re=_e?_e.localTypeParameters:F8e(r);(_z(r)||Hr(r)&&xtt(r,l))&&(_|=1),(MC(r)&&Rn(r,64)||sc(r)&&Rn(r.parent,64))&&(_|=4),a.resolvedSignature=Jg(r,Re,h,l,void 0,void 0,m,_)}return a.resolvedSignature}function xtt(r,a){if(R1(r)||!Zde(r))return!1;const l=Po(r.parameters),_=l?Vk(l):T1(r).filter(bd),m=$o(_,x=>x.typeExpression&&wO(x.typeExpression.type)?x.typeExpression.type:void 0),h=xa(3,"args",32768);return m?h.links.type=pu(ii(m.type)):(h.links.checkFlags|=65536,h.links.deferralParent=Cn,h.links.deferralConstituents=[Ec],h.links.deferralWriteConstituents=[Ec]),m&&a.pop(),a.push(h),!0}function RP(r){if(!(Hr(r)&&fo(r)))return;const a=b1(r);return(a==null?void 0:a.typeExpression)&&_T(ii(a.typeExpression))}function ktt(r,a){const l=RP(r);if(!l)return;const _=r.parameters.indexOf(a);return a.dotDotDotToken?Oj(l,_):Md(l,_)}function Ctt(r){const a=RP(r);return a&&Ja(a)}function Zde(r){const a=jn(r);return a.containsArgumentsReference===void 0&&(a.flags&512?a.containsArgumentsReference=!0:a.containsArgumentsReference=l(r.body)),a.containsArgumentsReference;function l(_){if(!_)return!1;switch(_.kind){case 80:return _.escapedText===Pt.escapedName&&HI(_)===Pt;case 172:case 174:case 177:case 178:return _.name.kind===167&&l(_.name);case 211:case 212:return l(_.expression);case 303:return l(_.initializer);default:return!rW(_)&&!gg(_)&&!!Ss(_,l)}}}function $2(r){if(!r||!r.declarations)return Ve;const a=[];for(let l=0;l0&&_.body){const m=r.declarations[l-1];if(_.parent===m.parent&&_.kind===m.kind&&_.pos===m.end)continue}if(Hr(_)&&_.jsDoc){const m=Hz(_);if(gr(m)){for(const h of m){const x=h.typeExpression;x.type===void 0&&!sc(_)&&Ev(x,B),a.push(Np(x))}continue}}a.push(!t2(_)&&!Up(_)&&RP(_)||Np(_))}}return a}function O8e(r){const a=zu(r,r);if(a){const l=X_(a);if(l)return Xr(l)}return B}function Sv(r){if(r.thisParameter)return Xr(r.thisParameter)}function op(r){if(!r.resolvedTypePredicate){if(r.target){const a=op(r.target);r.resolvedTypePredicate=a?lnt(a,r.mapper):Ee}else if(r.compositeSignatures)r.resolvedTypePredicate=krt(r.compositeSignatures,r.compositeKind)||Ee;else{const a=r.declaration&&bp(r.declaration);let l;if(!a){const _=RP(r.declaration);_&&r!==_&&(l=op(_))}r.resolvedTypePredicate=a&&ww(a)?Ett(a,r):l||Ee}E.assert(!!r.resolvedTypePredicate)}return r.resolvedTypePredicate===Ee?void 0:r.resolvedTypePredicate}function Ett(r,a){const l=r.parameterName,_=r.type&&ii(r.type);return l.kind===197?UR(r.assertsModifier?2:0,void 0,void 0,_):UR(r.assertsModifier?3:1,l.escapedText,vc(a.parameters,m=>m.escapedName===l.escapedText),_)}function L8e(r,a,l){return a!==2097152?Bn(r,l):Xs(r)}function Ja(r){if(!r.resolvedReturnType){if(!Km(r,3))return nt;let a=r.target?zi(Ja(r.target),r.mapper):r.compositeSignatures?zi(L8e(nr(r.compositeSignatures,Ja),r.compositeKind,2),r.mapper):g4(r.declaration)||(_c(r.declaration.body)?B:sK(r.declaration));if(r.flags&8?a=mAe(a):r.flags&16&&(a=s1(a)),!fm()){if(r.declaration){const l=bp(r.declaration);if(l)Me(l,p.Return_type_annotation_circularly_references_itself);else if(ae){const _=r.declaration,m=us(_);m?Me(m,p._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,Ka(m)):Me(_,p.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=B}r.resolvedReturnType=a}return r.resolvedReturnType}function g4(r){if(r.kind===176)return ap(Na(r.parent.symbol));const a=bp(r);if(R1(r)){const l=pC(r);if(l&&sc(l.parent)&&!a)return ap(Na(l.parent.parent.symbol))}if(fC(r))return ii(r.parameters[0].type);if(a)return ii(a);if(r.kind===177&&d4(r)){const l=Hr(r)&&kh(r);if(l)return l;const _=Bo(un(r),178),m=gv(_);if(m)return m}return Ctt(r)}function UY(r){return r.compositeSignatures&&ct(r.compositeSignatures,UY)||!r.resolvedReturnType&&fk(r,3)>=0}function Ptt(r){return M8e(r)||B}function M8e(r){if(Su(r)){const a=Xr(r.parameters[r.parameters.length-1]),l=da(a)?bZ(a):a;return l&&bv(l,_t)}}function _I(r,a,l,_){const m=Kde(r,Yy(a,r.typeParameters,rg(r.typeParameters),l));if(_){const h=$Ne(Ja(m));if(h){const x=cI(h);x.typeParameters=_;const N=cI(m);return N.resolvedReturnType=QS(x),N}}return m}function Kde(r,a){const l=r.instantiations||(r.instantiations=new Map),_=Ip(a);let m=l.get(_);return m||l.set(_,m=qY(r,a)),m}function qY(r,a){return x4(r,Dtt(r,a),!0)}function Dtt(r,a){return ef(r.typeParameters,a)}function fI(r){return r.typeParameters?r.erasedSignatureCache||(r.erasedSignatureCache=wtt(r)):r}function wtt(r){return x4(r,Bwe(r.typeParameters),!0)}function Att(r){return r.typeParameters?r.canonicalSignatureCache||(r.canonicalSignatureCache=Ntt(r)):r}function Ntt(r){return _I(r,nr(r.typeParameters,a=>a.target&&!r_(a.target)?a.target:a),Hr(r.declaration))}function Itt(r){const a=r.typeParameters;if(a){if(r.baseSignatureCache)return r.baseSignatureCache;const l=Bwe(a),_=ef(a,nr(a,h=>r_(h)||Kt));let m=nr(a,h=>zi(h,_)||Kt);for(let h=0;h{GY(m)&&!Gde(a,m)&&a.push(ng(m,l.type?ii(l.type):B,R_(l,8),l))})}return a}return Ve}function GY(r){return!!(r.flags&4108)||ZS(r)||!!(r.flags&2097152)&&!S4(r)&&ct(r.types,GY)}function rme(r){return Ri(An(r.symbol&&r.symbol.declarations,Vo),Uk)[0]}function j8e(r,a){var l;let _;if((l=r.symbol)!=null&&l.declarations){for(const m of r.symbol.declarations)if(m.parent.kind===195){const[h=m.parent,x]=lre(m.parent.parent);if(x.kind===183&&!a){const N=x,L=Ehe(N);if(L){const z=N.typeArguments.indexOf(h);if(z()=>Gct(N,L,st))),_e=zi(Z,de);_e!==r&&(_=_r(_,_e))}}}}else if(x.kind===169&&x.dotDotDotToken||x.kind===191||x.kind===202&&x.dotDotDotToken)_=_r(_,pu(Kt));else if(x.kind===204)_=_r(_,Ce);else if(x.kind===168&&x.parent.kind===200)_=_r(_,uo);else if(x.kind===200&&x.type&&Va(x.type)===m.parent&&x.parent.kind===194&&x.parent.extendsType===x&&x.parent.checkType.kind===200&&x.parent.checkType.type){const N=x.parent.checkType,L=ii(N.type);_=_r(_,zi(L,K2(qS(un(N.typeParameter)),N.typeParameter.constraint?ii(N.typeParameter.constraint):uo)))}}}return _&&Xs(_)}function jP(r){if(!r.constraint)if(r.target){const a=r_(r.target);r.constraint=a?zi(a,r.mapper):go}else{const a=rme(r);if(!a)r.constraint=j8e(r)||go;else{let l=ii(a);l.flags&1&&!Ot(l)&&(l=a.parent.parent.kind===200?uo:Kt),r.constraint=l}}return r.constraint===go?void 0:r.constraint}function B8e(r){const a=Bo(r.symbol,168),l=Cp(a.parent)?j5(a.parent):a.parent;return l&&Mf(l)}function Ip(r){let a="";if(r){const l=r.length;let _=0;for(;_1&&(a+=":"+h),_+=h}}return a}function gk(r,a){return r?`@${Ks(r)}`+(a?`:${Ip(a)}`:""):""}function $Y(r,a){let l=0;for(const _ of r)(a===void 0||!(_.flags&a))&&(l|=bn(_));return l&458752}function h4(r,a){return ct(a)&&r===fs?Kt:P0(r,a)}function P0(r,a){const l=Ip(a);let _=r.instantiations.get(l);return _||(_=np(4,r.symbol),r.instantiations.set(l,_),_.objectFlags|=a?$Y(a):0,_.target=r,_.resolvedTypeArguments=a),_}function J8e(r){const a=jg(r.flags,r.symbol);return a.objectFlags=r.objectFlags,a.target=r.target,a.resolvedTypeArguments=r.resolvedTypeArguments,a}function nme(r,a,l,_,m){if(!_){_=yk(a);const x=T4(_);m=l?A0(x,l):x}const h=np(4,r.symbol);return h.target=r,h.node=a,h.mapper=l,h.aliasSymbol=_,h.aliasTypeArguments=m,h}function bo(r){var a,l;if(!r.resolvedTypeArguments){if(!Km(r,6))return((a=r.target.localTypeParameters)==null?void 0:a.map(()=>nt))||Ve;const _=r.node,m=_?_.kind===183?es(r.target.outerTypeParameters,uK(_,r.target.localTypeParameters)):_.kind===188?[ii(_.elementType)]:nr(_.elements,ii):Ve;fm()?r.resolvedTypeArguments=r.mapper?A0(m,r.mapper):m:(r.resolvedTypeArguments=((l=r.target.localTypeParameters)==null?void 0:l.map(()=>nt))||Ve,Me(r.node||P,r.target.symbol?p.Type_arguments_for_0_circularly_reference_themselves:p.Tuple_type_arguments_circularly_reference_themselves,r.target.symbol&&ni(r.target.symbol)))}return r.resolvedTypeArguments}function D0(r){return gr(r.target.typeParameters)}function z8e(r,a){const l=Eo(Na(a)),_=l.localTypeParameters;if(_){const m=gr(r.typeArguments),h=rg(_),x=Hr(r);if(!(!ae&&x)&&(m_.length)){const z=x&&s0(r)&&!gx(r.parent),Z=h===_.length?z?p.Expected_0_type_arguments_provide_these_with_an_extends_tag:p.Generic_type_0_requires_1_type_argument_s:z?p.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:p.Generic_type_0_requires_between_1_and_2_type_arguments,de=Ar(l,void 0,2);if(Me(r,Z,de,h,_.length),!x)return nt}if(r.kind===183&&owe(r,gr(r.typeArguments)!==_.length))return nme(l,r,void 0);const L=es(l.outerTypeParameters,Yy(qR(r),_,h,x));return P0(l,L)}return X2(r,a)?l:nt}function y4(r,a,l,_){const m=Eo(r);if(m===Yt){const z=v9.get(r.escapedName);if(z!==void 0&&a&&a.length===1)return z===4?ime(a[0]):hk(r,a[0])}const h=wi(r),x=h.typeParameters,N=Ip(a)+gk(l,_);let L=h.instantiations.get(N);return L||h.instantiations.set(N,L=Wwe(m,ef(x,Yy(a,x,rg(x),Hr(r.valueDeclaration))),l,_)),L}function Ftt(r,a){if(Ko(a)&1048576){const m=qR(r),h=gk(a,m);let x=we.get(h);return x||(x=Oc(1,"error",void 0,`alias ${h}`),x.aliasSymbol=a,x.aliasTypeArguments=m,we.set(h,x)),x}const l=Eo(a),_=wi(a).typeParameters;if(_){const m=gr(r.typeArguments),h=rg(_);if(m_.length)return Me(r,h===_.length?p.Generic_type_0_requires_1_type_argument_s:p.Generic_type_0_requires_between_1_and_2_type_arguments,ni(a),h,_.length),nt;const x=yk(r);let N=x&&(W8e(a)||!W8e(x))?x:void 0,L;if(N)L=T4(N);else if(n5(r)){const z=v4(r,2097152,!0);if(z&&z!==tt){const Z=cl(z);Z&&Z.flags&524288&&(N=Z,L=qR(r)||(_?[]:void 0))}}return y4(a,qR(r),N,L)}return X2(r,a)?l:nt}function W8e(r){var a;const l=(a=r.declarations)==null?void 0:a.find(F8);return!!(l&&cf(l))}function Ott(r){switch(r.kind){case 183:return r.typeName;case 233:const a=r.expression;if(pc(a))return a}}function V8e(r){return r.parent?`${V8e(r.parent)}.${r.escapedName}`:r.escapedName}function XY(r){const l=(r.kind===166?r.right:r.kind===211?r.name:r).escapedText;if(l){const _=r.kind===166?XY(r.left):r.kind===211?XY(r.expression):void 0,m=_?`${V8e(_)}.${l}`:l;let h=ne.get(m);return h||(ne.set(m,h=xa(524288,l,1048576)),h.parent=_,h.links.declaredType=Dt),h}return tt}function v4(r,a,l){const _=Ott(r);if(!_)return tt;const m=yo(_,a,l);return m&&m!==tt?m:l?tt:XY(_)}function QY(r,a){if(a===tt)return nt;if(a=wP(a)||a,a.flags&96)return z8e(r,a);if(a.flags&524288)return Ftt(r,a);const l=a8e(a);if(l)return X2(r,a)?Uu(l):nt;if(a.flags&111551&&YY(r)){const _=Ltt(r,a);return _||(v4(r,788968),Xr(a))}return nt}function Ltt(r,a){const l=jn(r);if(!l.resolvedJSDocType){const _=Xr(a);let m=_;if(a.valueDeclaration){const h=r.kind===205&&r.qualifier;_.symbol&&_.symbol!==a&&h&&(m=QY(r,_.symbol))}l.resolvedJSDocType=m}return l.resolvedJSDocType}function ime(r){return sme(r)?U8e(r,Kt):r}function sme(r){return!!(r.flags&3145728&&ct(r.types,sme)||r.flags&33554432&&!BP(r)&&sme(r.baseType)||r.flags&524288&&!sg(r)||r.flags&432275456&&!ZS(r))}function BP(r){return!!(r.flags&33554432&&r.constraint.flags&2)}function ame(r,a){return a.flags&3||a===r||r.flags&1?r:U8e(r,a)}function U8e(r,a){const l=`${Vu(r)}>${Vu(a)}`,_=ns.get(l);if(_)return _;const m=Rg(33554432);return m.baseType=r,m.constraint=a,ns.set(l,m),m}function ome(r){return BP(r)?r.baseType:Xs([r.constraint,r.baseType])}function q8e(r){return r.kind===189&&r.elements.length===1}function H8e(r,a,l){return q8e(a)&&q8e(l)?H8e(r,a.elements[0],l.elements[0]):e1(ii(a))===e1(r)?ii(l):void 0}function Mtt(r,a){let l,_=!0;for(;a&&!Ei(a)&&a.kind!==327;){const m=a.parent;if(m.kind===169&&(_=!_),(_||r.flags&8650752)&&m.kind===194&&a===m.trueType){const h=H8e(r,m.checkType,m.extendsType);h&&(l=_r(l,h))}else if(r.flags&262144&&m.kind===200&&!m.nameType&&a===m.type){const h=ii(m);if(Nd(h)===e1(r)){const x=yI(h);if(x){const N=r_(x);N&&N_(N,Cv)&&(l=_r(l,Bn([_t,Ra])))}}}a=m}return l?ame(r,Xs(l)):r}function YY(r){return!!(r.flags&16777216)&&(r.kind===183||r.kind===205)}function X2(r,a){return r.typeArguments?(Me(r,p.Type_0_is_not_generic,a?ni(a):r.typeName?Ka(r.typeName):m9),!1):!0}function G8e(r){if(Ie(r.typeName)){const a=r.typeArguments;switch(r.typeName.escapedText){case"String":return X2(r),Ce;case"Number":return X2(r),_t;case"Boolean":return X2(r),fi;case"Void":return X2(r),Wr;case"Undefined":return X2(r),Pe;case"Null":return X2(r),ce;case"Function":case"function":return X2(r),kt;case"array":return(!a||!a.length)&&!ae?Ec:void 0;case"promise":return(!a||!a.length)&&!ae?Mj(B):void 0;case"Object":if(a&&a.length===2){if(N5(r)){const l=ii(a[0]),_=ii(a[1]),m=l===Ce||l===_t?[ng(l,_,!1)]:Ve;return so(void 0,U,Ve,Ve,m)}return B}return X2(r),ae?void 0:B}}}function Rtt(r){const a=ii(r.type);return q?lj(a,65536):a}function cme(r){const a=jn(r);if(!a.resolvedType){if(Qg(r)&&Tb(r.parent))return a.resolvedSymbol=tt,a.resolvedType=Dc(r.parent.expression);let l,_;const m=788968;YY(r)&&(_=G8e(r),_||(l=v4(r,m,!0),l===tt?l=v4(r,m|111551):v4(r,m),_=QY(r,l))),_||(l=v4(r,m),_=QY(r,l)),a.resolvedSymbol=l,a.resolvedType=_}return a.resolvedType}function qR(r){return nr(r.typeArguments,ii)}function $8e(r){const a=jn(r);if(!a.resolvedType){const l=dIe(r);a.resolvedType=Uu(gf(l))}return a.resolvedType}function X8e(r,a){function l(m){const h=m.declarations;if(h)for(const x of h)switch(x.kind){case 263:case 264:case 266:return x}}if(!r)return a?fs:oa;const _=Eo(r);return _.flags&524288?gr(_.typeParameters)!==a?(Me(l(r),p.Global_type_0_must_have_1_type_parameter_s,Xo(r),a),a?fs:oa):_:(Me(l(r),p.Global_type_0_must_be_a_class_or_interface_type,Xo(r)),a?fs:oa)}function lme(r,a){return JP(r,111551,a?p.Cannot_find_global_value_0:void 0)}function ume(r,a){return JP(r,788968,a?p.Cannot_find_global_type_0:void 0)}function ZY(r,a,l){const _=JP(r,788968,l?p.Cannot_find_global_type_0:void 0);if(_&&(Eo(_),gr(wi(_).typeParameters)!==a)){const m=_.declarations&&wn(_.declarations,Gp);Me(m,p.Global_type_0_must_have_1_type_parameter_s,Xo(_),a);return}return _}function JP(r,a,l){return Ho(void 0,r,a,l,r,!1,!1,!1)}function Pc(r,a,l){const _=ume(r,l);return _||l?X8e(_,a):void 0}function jtt(){return qm||(qm=Pc("TypedPropertyDescriptor",1,!0)||fs)}function Btt(){return zr||(zr=Pc("TemplateStringsArray",0,!0)||oa)}function Q8e(){return Vn||(Vn=Pc("ImportMeta",0,!0)||oa)}function Y8e(){if(!Ln){const r=xa(0,"ImportMetaExpression"),a=Q8e(),l=xa(4,"meta",8);l.parent=r,l.links.type=a;const _=Bs([l]);r.members=_,Ln=so(r,_,Ve,Ve,Ve)}return Ln}function Z8e(r){return ji||(ji=Pc("ImportCallOptions",0,r))||oa}function _me(r){return fa||(fa=Pc("ImportAttributes",0,r))||oa}function K8e(r){return Ku||(Ku=lme("Symbol",r))}function Jtt(r){return ep||(ep=ume("SymbolConstructor",r))}function ewe(){return am||(am=Pc("Symbol",0,!1))||oa}function HR(r){return _h||(_h=Pc("Promise",1,r))||fs}function twe(r){return _u||(_u=Pc("PromiseLike",1,r))||fs}function fme(r){return fh||(fh=lme("Promise",r))}function ztt(r){return H_||(H_=Pc("PromiseConstructorLike",0,r))||oa}function KY(r){return O||(O=Pc("AsyncIterable",1,r))||fs}function Wtt(r){return he||(he=Pc("AsyncIterator",3,r))||fs}function Vtt(r){return Xe||(Xe=Pc("AsyncIterableIterator",1,r))||fs}function Utt(r){return Ft||(Ft=Pc("AsyncGenerator",3,r))||fs}function pme(r){return Ag||(Ag=Pc("Iterable",1,r))||fs}function qtt(r){return f_||(f_=Pc("Iterator",3,r))||fs}function Htt(r){return Q||(Q=Pc("IterableIterator",1,r))||fs}function Gtt(r){return Ye||(Ye=Pc("Generator",3,r))||fs}function $tt(r){return Ct||(Ct=Pc("IteratorYieldResult",1,r))||fs}function Xtt(r){return At||(At=Pc("IteratorReturnResult",1,r))||fs}function rwe(r){return pa||(pa=Pc("Disposable",0,r))||oa}function Qtt(r){return lc||(lc=Pc("AsyncDisposable",0,r))||oa}function nwe(r,a=0){const l=JP(r,788968,void 0);return l&&X8e(l,a)}function Ytt(){return Rl||(Rl=ZY("Extract",2,!0)||tt),Rl===tt?void 0:Rl}function Ztt(){return Zc||(Zc=ZY("Omit",2,!0)||tt),Zc===tt?void 0:Zc}function dme(r){return G_||(G_=ZY("Awaited",1,r)||(r?tt:void 0)),G_===tt?void 0:G_}function Ktt(){return p_||(p_=Pc("BigInt",0,!1))||oa}function ert(r){return Zp??(Zp=Pc("ClassDecoratorContext",1,r))??fs}function trt(r){return Kp??(Kp=Pc("ClassMethodDecoratorContext",2,r))??fs}function rrt(r){return Ci??(Ci=Pc("ClassGetterDecoratorContext",2,r))??fs}function nrt(r){return ph??(ph=Pc("ClassSetterDecoratorContext",2,r))??fs}function irt(r){return h0??(h0=Pc("ClassAccessorDecoratorContext",2,r))??fs}function srt(r){return ed??(ed=Pc("ClassAccessorDecoratorTarget",2,r))??fs}function art(r){return w2??(w2=Pc("ClassAccessorDecoratorResult",2,r))??fs}function ort(r){return A2??(A2=Pc("ClassFieldDecoratorContext",2,r))??fs}function crt(){return Cy||(Cy=lme("NaN",!1))}function lrt(){return ja||(ja=ZY("Record",2,!0)||tt),ja===tt?void 0:ja}function pI(r,a){return r!==fs?P0(r,a):oa}function iwe(r){return pI(jtt(),[r])}function swe(r){return pI(pme(!0),[r])}function pu(r,a){return pI(a?Is:Ds,[r])}function mme(r){switch(r.kind){case 190:return 2;case 191:return awe(r);case 202:return r.questionToken?2:r.dotDotDotToken?awe(r):1;default:return 1}}function awe(r){return YR(r.type)?4:8}function urt(r){const a=prt(r.parent);if(YR(r))return a?Is:Ds;const _=nr(r.elements,mme);return gme(_,a,nr(r.elements,_rt))}function _rt(r){return RC(r)||rs(r)?r:void 0}function owe(r,a){return!!yk(r)||cwe(r)&&(r.kind===188?Zy(r.elementType):r.kind===189?ct(r.elements,Zy):a||ct(r.typeArguments,Zy))}function cwe(r){const a=r.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 cwe(a);case 265:return!0}return!1}function Zy(r){switch(r.kind){case 183:return YY(r)||!!(v4(r,788968).flags&524288);case 186:return!0;case 198:return r.operator!==158&&Zy(r.type);case 196:case 190:case 202:case 323:case 321:case 322:case 316:return Zy(r.type);case 191:return r.type.kind!==188||Zy(r.type.elementType);case 192:case 193:return ct(r.types,Zy);case 199:return Zy(r.objectType)||Zy(r.indexType);case 194:return Zy(r.checkType)||Zy(r.extendsType)||Zy(r.trueType)||Zy(r.falseType)}return!1}function frt(r){const a=jn(r);if(!a.resolvedType){const l=urt(r);if(l===fs)a.resolvedType=oa;else if(!(r.kind===189&&ct(r.elements,_=>!!(mme(_)&8)))&&owe(r))a.resolvedType=r.kind===189&&r.elements.length===0?l:nme(l,r,void 0);else{const _=r.kind===188?[ii(r.elementType)]:nr(r.elements,ii);a.resolvedType=hme(l,_)}}return a.resolvedType}function prt(r){return Ub(r)&&r.operator===148}function ig(r,a,l=!1,_=[]){const m=gme(a||nr(r,h=>1),l,_);return m===fs?oa:r.length?hme(m,r):m}function gme(r,a,l){if(r.length===1&&r[0]&4)return a?Is:Ds;const _=nr(r,h=>h&1?"#":h&2?"?":h&4?".":"*").join()+(a?"R":"")+(ct(l,h=>!!h)?","+nr(l,h=>h?Oa(h):"_").join(","):"");let m=os.get(_);return m||os.set(_,m=drt(r,a,l)),m}function drt(r,a,l){const _=r.length,m=j0(r,de=>!!(de&9));let h;const x=[];let N=0;if(_){h=new Array(_);for(let de=0;de<_;de++){const _e=h[de]=jf(),Re=r[de];if(N|=Re,!(N&12)){const st=xa(4|(Re&2?16777216:0),""+de,a?8:0);st.links.tupleLabelDeclaration=l==null?void 0:l[de],st.links.type=_e,x.push(st)}}}const L=x.length,z=xa(4,"length",a?8:0);if(N&12)z.links.type=_t;else{const de=[];for(let _e=m;_e<=_;_e++)de.push(Od(_e));z.links.type=Bn(de)}x.push(z);const Z=np(12);return Z.typeParameters=h,Z.outerTypeParameters=void 0,Z.localTypeParameters=h,Z.instantiations=new Map,Z.instantiations.set(Ip(Z.typeParameters),Z),Z.target=Z,Z.resolvedTypeArguments=Z.typeParameters,Z.thisType=jf(),Z.thisType.isThisType=!0,Z.thisType.constraint=Z,Z.declaredProperties=x,Z.declaredCallSignatures=Ve,Z.declaredConstructSignatures=Ve,Z.declaredIndexInfos=Ve,Z.elementFlags=r,Z.minLength=m,Z.fixedLength=L,Z.hasRestElement=!!(N&12),Z.combinedFlags=N,Z.readonly=a,Z.labeledElementDeclarations=l,Z}function hme(r,a){return r.objectFlags&8?yme(r,a):P0(r,a)}function yme(r,a){var l,_,m,h;if(!(r.combinedFlags&14))return P0(r,a);if(r.combinedFlags&8){const st=vc(a,(gt,qt)=>!!(r.elementFlags[qt]&8&>.flags&1179648));if(st>=0)return $R(nr(a,(gt,qt)=>r.elementFlags[qt]&8?gt:Kt))?jo(a[st],gt=>yme(r,fB(a,st,gt))):nt}const x=[],N=[],L=[];let z=-1,Z=-1,de=-1;for(let st=0;st=1e4)return Me(P,gg(P)?p.Type_produces_a_tuple_type_that_is_too_large_to_represent:p.Expression_produces_a_tuple_type_that_is_too_large_to_represent),nt;er($t,(Ur,Tr)=>{var Gt;return Re(Ur,gt.target.elementFlags[Tr],(Gt=gt.target.labeledElementDeclarations)==null?void 0:Gt[Tr])})}else Re(N0(gt)&&bv(gt,_t)||nt,4,(m=r.labeledElementDeclarations)==null?void 0:m[st]);else Re(gt,qt,(h=r.labeledElementDeclarations)==null?void 0:h[st])}for(let st=0;st=0&&ZN[Z+gt]&8?K_(st,_t):st)),x.splice(Z+1,de-Z),N.splice(Z+1,de-Z),L.splice(Z+1,de-Z));const _e=gme(N,r.readonly,L);return _e===fs?oa:N.length?P0(_e,x):_e;function Re(st,gt,qt){gt&1&&(z=N.length),gt&4&&Z<0&&(Z=N.length),gt&6&&(de=N.length),x.push(gt&2?A_(st,!0):st),N.push(gt),L.push(qt)}}function zP(r,a,l=0){const _=r.target,m=D0(r)-l;return a>_.fixedLength?eit(r)||ig(Ve):ig(bo(r).slice(a,m),_.elementFlags.slice(a,m),!1,_.labeledElementDeclarations&&_.labeledElementDeclarations.slice(a,m))}function lwe(r){return Bn(_r(WK(r.target.fixedLength,a=>h_(""+a)),dm(r.target.readonly?Is:Ds)))}function mrt(r,a){const l=vc(r.elementFlags,_=>!(_&a));return l>=0?l:r.elementFlags.length}function dI(r,a){return r.elementFlags.length-ZI(r.elementFlags,l=>!(l&a))-1}function vme(r){return r.fixedLength+dI(r,3)}function Q2(r){const a=bo(r),l=D0(r);return a.length===l?a:a.slice(0,l)}function grt(r){return A_(ii(r.type),!0)}function Vu(r){return r.id}function Ah(r,a){return Jh(r,a,Vu,wo)>=0}function GR(r,a){const l=Jh(r,a,Vu,wo);return l<0?(r.splice(~l,0,a),!0):!1}function hrt(r,a,l){const _=l.flags;if(!(_&131072))if(a|=_&473694207,_&465829888&&(a|=33554432),_&2097152&&bn(l)&67108864&&(a|=536870912),l===mt&&(a|=8388608),!q&&_&98304)bn(l)&65536||(a|=4194304);else{const m=r.length,h=m&&l.id>r[m-1].id?~m:Jh(r,l,Vu,wo);h<0&&r.splice(~h,0,l)}return a}function uwe(r,a,l){let _;for(const m of l)m!==_&&(a=m.flags&1048576?uwe(r,a|(xrt(m)?1048576:0),m.types):hrt(r,a,m),_=m);return a}function yrt(r,a){var l;if(r.length<2)return r;const _=Ip(r),m=Vs.get(_);if(m)return m;const h=a&&ct(r,z=>!!(z.flags&524288)&&!g_(z)&&zme(Id(z))),x=r.length;let N=x,L=0;for(;N>0;){N--;const z=r[N];if(h||z.flags&469499904){if(z.flags&262144&&wh(z).flags&1048576){mm(z,Bn(nr(r,_e=>_e===z?Cn:_e)),tp)&&z0(r,N);continue}const Z=z.flags&61603840?wn(Ua(z),_e=>Ld(Xr(_e))):void 0,de=Z&&Uu(Xr(Z));for(const _e of r)if(z!==_e){if(L===1e5&&L/(x-N)*x>1e6){(l=qr)==null||l.instant(qr.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:r.map(st=>st.id)}),Me(P,p.Expression_produces_a_union_type_that_is_too_complex_to_represent);return}if(L++,Z&&_e.flags&61603840){const Re=je(_e,Z.escapedName);if(Re&&Ld(Re)&&Uu(Re)!==de)continue}if(mm(z,_e,tp)&&(!(bn(C0(z))&1)||!(bn(C0(_e))&1)||kv(z,_e))){z0(r,N);break}}}}return Vs.set(_,r),r}function vrt(r,a,l){let _=r.length;for(;_>0;){_--;const m=r[_],h=m.flags;(h&402653312&&a&4||h&256&&a&8||h&2048&&a&64||h&8192&&a&4096||l&&h&32768&&a&16384||Z2(m)&&Ah(r,m.regularType))&&z0(r,_)}}function brt(r){const a=An(r,ZS);if(a.length){let l=r.length;for(;l>0;){l--;const _=r[l];_.flags&128&&ct(a,m=>Srt(_,m))&&z0(r,l)}}}function Srt(r,a){return a.flags&134217728?AZ(r,a):wZ(r,a)}function Trt(r){const a=[];for(const l of r)if(l.flags&2097152&&bn(l)&67108864){const _=l.types[0].flags&8650752?0:1;zf(a,l.types[_])}for(const l of a){const _=[];for(const h of r)if(h.flags&2097152&&bn(h)&67108864){const x=h.types[0].flags&8650752?0:1;h.types[x]===l&&GR(_,h.types[1-x])}const m=fu(l);if(N_(m,h=>Ah(_,h))){let h=r.length;for(;h>0;){h--;const x=r[h];if(x.flags&2097152&&bn(x)&67108864){const N=x.types[0].flags&8650752?0:1;x.types[N]===l&&Ah(_,x.types[1-N])&&z0(r,h)}}GR(r,l)}}}function xrt(r){return!!(r.flags&1048576&&(r.aliasSymbol||r.origin))}function _we(r,a){for(const l of a)if(l.flags&1048576){const _=l.origin;l.aliasSymbol||_&&!(_.flags&1048576)?zf(r,l):_&&_.flags&1048576&&_we(r,_.types)}}function bme(r,a){const l=lk(r);return l.types=a,l}function Bn(r,a=1,l,_,m){if(r.length===0)return Cn;if(r.length===1)return r[0];if(r.length===2&&!m&&(r[0].flags&1048576||r[1].flags&1048576)){const h=a===0?"N":a===2?"S":"L",x=r[0].id=2&&h[0]===Pe&&h[1]===A&&z0(h,1),(x&402664352||x&16384&&x&32768)&&vrt(h,x,!!(a&2)),x&128&&x&402653184&&brt(h),x&536870912&&Trt(h),a===2&&(h=yrt(h,!!(x&524288)),!h))return nt;if(h.length===0)return x&65536?x&4194304?ce:Ne:x&32768?x&4194304?Pe:St:Cn}if(!m&&x&1048576){const L=[];_we(L,r);const z=[];for(const de of h)ct(L,_e=>Ah(_e.types,de))||z.push(de);if(!l&&L.length===1&&z.length===0)return L[0];if(Du(L,(de,_e)=>de+_e.types.length,0)+z.length===h.length){for(const de of L)GR(z,de);m=bme(1048576,z)}}const N=(x&36323331?0:32768)|(x&2097152?16777216:0);return Tme(h,N,l,_,m)}function krt(r,a){let l;const _=[];for(const h of r){const x=op(h);if(x){if(x.kind!==0&&x.kind!==1||l&&!Sme(l,x))return;l=x,_.push(x.type)}else{const N=a!==2097152?Ja(h):void 0;if(N!==Jt&&N!==ar)return}}if(!l)return;const m=L8e(_,a);return UR(l.kind,l.parameterName,l.parameterIndex,m)}function Sme(r,a){return r.kind===a.kind&&r.parameterIndex===a.parameterIndex}function Tme(r,a,l,_,m){if(r.length===0)return Cn;if(r.length===1)return r[0];const x=(m?m.flags&1048576?`|${Ip(m.types)}`:m.flags&2097152?`&${Ip(m.types)}`:`#${m.type.id}|${Ip(r)}`:Ip(r))+gk(l,_);let N=yr.get(x);return N||(N=Rg(1048576),N.objectFlags=a|$Y(r,98304),N.types=r,N.origin=m,N.aliasSymbol=l,N.aliasTypeArguments=_,r.length===2&&r[0].flags&512&&r[1].flags&512&&(N.flags|=16,N.intrinsicName="boolean"),yr.set(x,N)),N}function Crt(r){const a=jn(r);if(!a.resolvedType){const l=yk(r);a.resolvedType=Bn(nr(r.types,ii),1,l,T4(l))}return a.resolvedType}function Ert(r,a,l){const _=l.flags;return _&2097152?pwe(r,a,l.types):(sg(l)?a&16777216||(a|=16777216,r.set(l.id.toString(),l)):(_&3?l===mt&&(a|=8388608):(q||!(_&98304))&&(l===A&&(a|=262144,l=Pe),r.has(l.id.toString())||(l.flags&109472&&a&109472&&(a|=67108864),r.set(l.id.toString(),l))),a|=_&473694207),a)}function pwe(r,a,l){for(const _ of l)a=Ert(r,a,Uu(_));return a}function Prt(r,a){let l=r.length;for(;l>0;){l--;const _=r[l];(_.flags&4&&a&402653312||_.flags&8&&a&256||_.flags&64&&a&2048||_.flags&4096&&a&8192||_.flags&16384&&a&32768||sg(_)&&a&470302716)&&z0(r,l)}}function Drt(r,a){for(const l of r)if(!Ah(l.types,a)){const _=a.flags&128?Ce:a.flags&288?_t:a.flags&2048?Tt:a.flags&8192?oi:void 0;if(!_||!Ah(l.types,_))return!1}return!0}function wrt(r){let a=r.length;const l=An(r,_=>!!(_.flags&128));for(;a>0;){a--;const _=r[a];if(_.flags&402653184){for(const m of l)if(r1(m,_)){z0(r,a);break}else if(ZS(_))return!0}}return!1}function dwe(r,a){for(let l=0;l!(_.flags&a))}function Art(r){let a;const l=vc(r,x=>!!(bn(x)&32768));if(l<0)return!1;let _=l+1;for(;_!!(st.flags&469893116)||sg(st))){if(ej(Re,_e))return de;if(!(Re.flags&1048576&&cd(Re,st=>ej(st,_e)))&&!ej(_e,Re))return Cn;N=67108864}}}const L=Ip(x)+gk(a,l);let z=ln.get(L);if(!z){if(h&1048576)if(Art(x))z=Xs(x,a,l);else if(Wi(x,Z=>!!(Z.flags&1048576&&Z.types[0].flags&32768))){const Z=ct(x,CI)?A:Pe;dwe(x,32768),z=Bn([Xs(x),Z],1,a,l)}else if(Wi(x,Z=>!!(Z.flags&1048576&&(Z.types[0].flags&65536||Z.types[1].flags&65536))))dwe(x,65536),z=Bn([Xs(x),ce],1,a,l);else if(x.length>=4){const Z=Math.floor(x.length/2);z=Xs([Xs(x.slice(0,Z)),Xs(x.slice(Z))],a,l)}else{if(!$R(x))return nt;const Z=Irt(x),de=ct(Z,_e=>!!(_e.flags&2097152))&&xme(Z)>xme(x)?bme(2097152,x):void 0;z=Bn(Z,1,a,l,de)}else z=Nrt(x,N,a,l);ln.set(L,z)}return z}function mwe(r){return Du(r,(a,l)=>l.flags&1048576?a*l.types.length:l.flags&131072?0:a,1)}function $R(r){var a;const l=mwe(r);return l>=1e5?((a=qr)==null||a.instant(qr.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:r.map(_=>_.id),size:l}),Me(P,p.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1):!0}function Irt(r){const a=mwe(r),l=[];for(let _=0;_=0;N--)if(r[N].flags&1048576){const L=r[N].types,z=L.length;m[N]=L[h%z],h=Math.floor(h/z)}const x=Xs(m);x.flags&131072||l.push(x)}return l}function gwe(r){return!(r.flags&3145728)||r.aliasSymbol?1:r.flags&1048576&&r.origin?gwe(r.origin):xme(r.types)}function xme(r){return Du(r,(a,l)=>a+gwe(l),0)}function Frt(r){const a=jn(r);if(!a.resolvedType){const l=yk(r),_=nr(r.types,ii),m=_.length===2?_.indexOf(Fc):-1,h=m>=0?_[1-m]:Kt,x=!!(h.flags&76||h.flags&134217728&&ZS(h));a.resolvedType=Xs(_,l,T4(l),x)}return a.resolvedType}function hwe(r,a){const l=Rg(4194304);return l.type=r,l.indexFlags=a,l}function Ort(r){const a=lk(4194304);return a.type=r,a}function ywe(r,a){return a&1?r.resolvedStringIndexType||(r.resolvedStringIndexType=hwe(r,1)):r.resolvedIndexType||(r.resolvedIndexType=hwe(r,0))}function vwe(r,a){const l=Nd(r),_=Jf(r),m=E0(r.target||r);if(!m&&!(a&2))return _;const h=[];if(eT(_)){if(m4(r))return ywe(r,a);oT(_,N)}else if(m4(r)){const L=n_(HS(r));jde(L,8576,!!(a&1),N)}else oT(BR(_),N);const x=a&2?Mc(Bn(h),L=>!(L.flags&5)):Bn(h);if(x.flags&1048576&&_.flags&1048576&&Ip(x.types)===Ip(_.types))return _;return x;function N(L){const z=m?zi(m,hI(r.mapper,l,L)):L;h.push(z===Ce?is:z)}}function Lrt(r){const a=Nd(r);return l(E0(r)||a);function l(_){return _.flags&470810623?!0:_.flags&16777216?_.root.isDistributive&&_.checkType===a:_.flags&137363456?Wi(_.types,l):_.flags&8388608?l(_.objectType)&&l(_.indexType):_.flags&33554432?l(_.baseType)&&l(_.constraint):_.flags&268435456?l(_.type):!1}}function w0(r){if(Pi(r))return Cn;if(j_(r))return Uu(Hi(r));if(Pa(r))return Uu(Wg(r));const a=Fb(r);return a!==void 0?h_(xi(a)):ot(r)?Uu(Hi(r)):Cn}function b4(r,a,l){if(l||!(Hf(r)&6)){let _=wi(JY(r)).nameType;if(!_){const m=us(r.valueDeclaration);_=r.escapedName==="default"?h_("default"):m&&w0(m)||(V8(r)?void 0:h_(Xo(r)))}if(_&&_.flags&a)return _}return Cn}function bwe(r,a){return!!(r.flags&a||r.flags&2097152&&ct(r.types,l=>bwe(l,a)))}function Mrt(r,a,l){const _=l&&(bn(r)&7||r.aliasSymbol)?Ort(r):void 0,m=nr(Ua(r),x=>b4(x,a)),h=nr(Wu(r),x=>x!==En&&bwe(x.keyType,a)?x.keyType===Ce&&a&8?is:x.keyType:Cn);return Bn(es(m,h),1,void 0,void 0,_)}function kme(r,a=0){return!!(r.flags&58982400||i1(r)||g_(r)&&(!Lrt(r)||WY(r)===2)||r.flags&1048576&&!(a&4)&&qde(r)||r.flags&2097152&&nc(r,465829888)&&ct(r.types,sg))}function dm(r,a=Oe){return r=Fd(r),BP(r)?ime(dm(r.baseType,a)):kme(r,a)?ywe(r,a):r.flags&1048576?Xs(nr(r.types,l=>dm(l,a))):r.flags&2097152?Bn(nr(r.types,l=>dm(l,a))):bn(r)&32?vwe(r,a):r===mt?mt:r.flags&2?Cn:r.flags&131073?uo:Mrt(r,(a&2?128:402653316)|(a&1?0:12584),a===Oe)}function Swe(r){if(ke)return r;const a=Ytt();return a?y4(a,[r,Ce]):Ce}function Rrt(r){const a=Swe(dm(r));return a.flags&131072?Ce:a}function jrt(r){const a=jn(r);if(!a.resolvedType)switch(r.operator){case 143:a.resolvedType=dm(ii(r.type));break;case 158:a.resolvedType=r.type.kind===155?Ime(R8(r.parent)):nt;break;case 148:a.resolvedType=ii(r.type);break;default:E.assertNever(r.operator)}return a.resolvedType}function Brt(r){const a=jn(r);return a.resolvedType||(a.resolvedType=YS([r.head.text,...nr(r.templateSpans,l=>l.literal.text)],nr(r.templateSpans,l=>ii(l.type)))),a.resolvedType}function YS(r,a){const l=vc(a,z=>!!(z.flags&1179648));if(l>=0)return $R(a)?jo(a[l],z=>YS(r,fB(a,l,z))):nt;if(bs(a,mt))return mt;const _=[],m=[];let h=r[0];if(!L(r,a))return Ce;if(_.length===0)return h_(h);if(m.push(h),Wi(m,z=>z==="")){if(Wi(_,z=>!!(z.flags&4)))return Ce;if(_.length===1&&ZS(_[0]))return _[0]}const x=`${Ip(_)}|${nr(m,z=>z.length).join(",")}|${m.join("")}`;let N=ei.get(x);return N||ei.set(x,N=zrt(m,_)),N;function L(z,Z){for(let de=0;dehk(r,l)):a.flags&128?h_(Twe(r,a.value)):a.flags&134217728?YS(...Wrt(r,a.texts,a.types)):a.flags&268435456&&r===a.symbol?a:a.flags&268435461||eT(a)?xwe(r,a):XR(a)?xwe(r,YS(["",""],[a])):a}function Twe(r,a){switch(v9.get(r.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 Wrt(r,a,l){switch(v9.get(r.escapedName)){case 0:return[a.map(_=>_.toUpperCase()),l.map(_=>hk(r,_))];case 1:return[a.map(_=>_.toLowerCase()),l.map(_=>hk(r,_))];case 2:return[a[0]===""?a:[a[0].charAt(0).toUpperCase()+a[0].slice(1),...a.slice(1)],a[0]===""?[hk(r,l[0]),...l.slice(1)]:l];case 3:return[a[0]===""?a:[a[0].charAt(0).toLowerCase()+a[0].slice(1),...a.slice(1)],a[0]===""?[hk(r,l[0]),...l.slice(1)]:l]}return[a,l]}function xwe(r,a){const l=`${Ks(r)},${Vu(a)}`;let _=Ii.get(l);return _||Ii.set(l,_=Vrt(r,a)),_}function Vrt(r,a){const l=jg(268435456,r);return l.type=a,l}function Urt(r,a,l,_,m){const h=Rg(8388608);return h.objectType=r,h.indexType=a,h.accessFlags=l,h.aliasSymbol=_,h.aliasTypeArguments=m,h}function mI(r){if(ae)return!1;if(bn(r)&4096)return!0;if(r.flags&1048576)return Wi(r.types,mI);if(r.flags&2097152)return ct(r.types,mI);if(r.flags&465829888){const a=Wde(r);return a!==r&&mI(a)}return!1}function eZ(r,a){return Sp(r)?Tp(r):a&&Ac(a)?Fb(a):void 0}function Cme(r,a){if(a.flags&8208){const l=Pr(r.parent,_=>!oo(_))||r.parent;return jv(l)?zd(l)&&Ie(r)&&IAe(l,r):Wi(a.declarations,_=>!As(_)||b0(_))}return!0}function kwe(r,a,l,_,m,h){const x=m&&m.kind===212?m:void 0,N=m&&Pi(m)?void 0:eZ(l,m);if(N!==void 0){if(h&256)return wv(a,N)||B;const z=$s(a,N);if(z){if(h&64&&m&&z.declarations&&wy(z)&&Cme(m,z)){const de=(x==null?void 0:x.argumentExpression)??(qb(m)?m.indexType:m);S0(de,z.declarations,N)}if(x){if(Pj(z,x,WNe(x.expression,a.symbol)),NIe(x,z,jT(x))){Me(x.argumentExpression,p.Cannot_assign_to_0_because_it_is_a_read_only_property,ni(z));return}if(h&8&&(jn(m).resolvedSymbol=z),LNe(x,z))return Ge}const Z=h&4?G2(z):Xr(z);return x&&jT(x)!==1?o1(x,Z):m&&qb(m)&&CI(Z)?Bn([Z,Pe]):Z}if(N_(a,da)&&kg(N)){const Z=+N;if(m&&N_(a,de=>!de.target.hasRestElement)&&!(h&16)){const de=Eme(m);if(da(a)){if(Z<0)return Me(de,p.A_tuple_type_cannot_be_indexed_with_a_negative_value),Pe;Me(de,p.Tuple_type_0_of_length_1_has_no_element_at_index_2,Ar(a),D0(a),xi(N))}else Me(de,p.Property_0_does_not_exist_on_type_1,xi(N),Ar(a))}if(Z>=0)return L(zg(a,_t)),fAe(a,Z,h&1?A:void 0)}}if(!(l.flags&98304)&&Ql(l,402665900)){if(a.flags&131073)return a;const z=lI(a,l)||zg(a,Ce);if(z){if(h&2&&z.keyType!==_t){x&&(h&4?Me(x,p.Type_0_is_generic_and_can_only_be_indexed_for_reading,Ar(r)):Me(x,p.Type_0_cannot_be_used_to_index_type_1,Ar(l),Ar(r)));return}if(m&&z.keyType===Ce&&!Ql(l,12)){const Z=Eme(m);return Me(Z,p.Type_0_cannot_be_used_as_an_index_type,Ar(l)),h&1?Bn([z.type,A]):z.type}return L(z),h&1&&!(a.symbol&&a.symbol.flags&384&&l.symbol&&l.flags&1024&&e_(l.symbol)===a.symbol)?Bn([z.type,A]):z.type}if(l.flags&131072)return Cn;if(mI(a))return B;if(x&&!oK(a)){if(Dv(a)){if(ae&&l.flags&384)return wa.add(yn(x,p.Property_0_does_not_exist_on_type_1,l.value,Ar(a))),Pe;if(l.flags&12){const Z=nr(a.properties,de=>Xr(de));return Bn(_r(Z,Pe))}}if(a.symbol===$e&&N!==void 0&&$e.exports.has(N)&&$e.exports.get(N).flags&418)Me(x,p.Property_0_does_not_exist_on_type_1,xi(N),Ar(a));else if(ae&&!j.suppressImplicitAnyIndexErrors&&!(h&128))if(N!==void 0&&BNe(N,a)){const Z=Ar(a);Me(x,p.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,N,Z,Z+"["+jc(x.argumentExpression)+"]")}else if(bv(a,_t))Me(x.argumentExpression,p.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let Z;if(N!==void 0&&(Z=Qge(N,a)))Z!==void 0&&Me(x.argumentExpression,p.Property_0_does_not_exist_on_type_1_Did_you_mean_2,N,Ar(a),Z);else{const de=Wat(a,x,l);if(de!==void 0)Me(x,p.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,Ar(a),de);else{let _e;if(l.flags&1024)_e=vs(void 0,p.Property_0_does_not_exist_on_type_1,"["+Ar(l)+"]",Ar(a));else if(l.flags&8192){const Re=pf(l.symbol,x);_e=vs(void 0,p.Property_0_does_not_exist_on_type_1,"["+Re+"]",Ar(a))}else l.flags&128||l.flags&256?_e=vs(void 0,p.Property_0_does_not_exist_on_type_1,l.value,Ar(a)):l.flags&12&&(_e=vs(void 0,p.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,Ar(l),Ar(a)));_e=vs(_e,p.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,Ar(_),Ar(a)),wa.add(Zg(wr(x),x,_e))}}}return}}if(mI(a))return B;if(m){const z=Eme(m);l.flags&384?Me(z,p.Property_0_does_not_exist_on_type_1,""+l.value,Ar(a)):l.flags&12?Me(z,p.Type_0_has_no_matching_index_signature_for_type_1,Ar(a),Ar(l)):Me(z,p.Type_0_cannot_be_used_as_an_index_type,Ar(l))}if(ht(l))return l;return;function L(z){z&&z.isReadonly&&x&&(vg(x)||$z(x))&&Me(x,p.Index_signature_in_type_0_only_permits_reading,Ar(a))}}function Eme(r){return r.kind===212?r.argumentExpression:r.kind===199?r.indexType:r.kind===167?r.expression:r}function XR(r){if(r.flags&2097152){let a=!1;for(const l of r.types)if(l.flags&101248||XR(l))a=!0;else if(!(l.flags&524288))return!1;return a}return!!(r.flags&77)||ZS(r)}function ZS(r){return!!(r.flags&134217728)&&Wi(r.types,XR)||!!(r.flags&268435456)&&XR(r.type)}function Cwe(r){return!!(r.flags&402653184)&&!ZS(r)}function S4(r){return!!gI(r)}function KS(r){return!!(gI(r)&4194304)}function eT(r){return!!(gI(r)&8388608)}function gI(r){return r.flags&3145728?(r.objectFlags&2097152||(r.objectFlags|=2097152|Du(r.types,(a,l)=>a|gI(l),0)),r.objectFlags&12582912):r.flags&33554432?(r.objectFlags&2097152||(r.objectFlags|=2097152|gI(r.baseType)|gI(r.constraint)),r.objectFlags&12582912):(r.flags&58982400||g_(r)||i1(r)?4194304:0)|(r.flags&63176704||Cwe(r)?8388608:0)}function Nh(r,a){return r.flags&8388608?Hrt(r,a):r.flags&16777216?Grt(r,a):r}function Ewe(r,a,l){if(r.flags&1048576||r.flags&2097152&&!kme(r)){const _=nr(r.types,m=>Nh(K_(m,a),l));return r.flags&2097152||l?Xs(_):Bn(_)}}function qrt(r,a,l){if(a.flags&1048576){const _=nr(a.types,m=>Nh(K_(r,m),l));return l?Xs(_):Bn(_)}}function Hrt(r,a){const l=a?"simplifiedForWriting":"simplifiedForReading";if(r[l])return r[l]===Pl?r:r[l];r[l]=Pl;const _=Nh(r.objectType,a),m=Nh(r.indexType,a),h=qrt(_,m,a);if(h)return r[l]=h;if(!(m.flags&465829888)){const x=Ewe(_,m,a);if(x)return r[l]=x}if(i1(_)&&m.flags&296){const x=HP(_,m.flags&8?0:_.target.fixedLength,0,a);if(x)return r[l]=x}return g_(_)&&WY(_)!==2?r[l]=jo(tZ(_,r.indexType),x=>Nh(x,a)):r[l]=r}function Grt(r,a){const l=r.checkType,_=r.extendsType,m=Tv(r),h=xv(r);if(h.flags&131072&&e1(m)===e1(l)){if(l.flags&1||Qs(rT(l),rT(_)))return Nh(m,a);if(Pwe(l,_))return Cn}else if(m.flags&131072&&e1(h)===e1(l)){if(!(l.flags&1)&&Qs(rT(l),rT(_)))return Cn;if(l.flags&1||Pwe(l,_))return Nh(h,a)}return r}function Pwe(r,a){return!!(Bn([jR(r,a),Cn]).flags&131072)}function tZ(r,a){const l=ef([Nd(r)],[a]),_=eb(r.mapper,l);return zi(Dh(r.target||r),_)}function K_(r,a,l=0,_,m,h){return Ky(r,a,l,_,m,h)||(_?nt:Kt)}function Dwe(r,a){return N_(r,l=>{if(l.flags&384){const _=Tp(l);if(kg(_)){const m=+_;return m>=0&&m0&&!ct(r.elements,a=>TO(a)||xO(a)||RC(a)&&!!(a.questionToken||a.dotDotDotToken))}function Nwe(r,a){return S4(r)||a&&da(r)&&ct(Q2(r),S4)}function Dme(r,a,l,_,m){let h,x,N=0;for(;;){if(N===1e3)return Me(P,p.Type_instantiation_is_excessively_deep_and_possibly_infinite),nt;const z=zi(e1(r.checkType),a),Z=zi(r.extendsType,a);if(z===nt||Z===nt)return nt;if(z===mt||Z===mt)return mt;const de=j8(r.node.checkType),_e=j8(r.node.extendsType),Re=Awe(de)&&Awe(_e)&&gr(de.elements)===gr(_e.elements),st=Nwe(z,Re);let gt;if(r.inferTypeParameters){const $t=PI(r.inferTypeParameters,void 0,0);a&&($t.nonFixingMapper=eb($t.nonFixingMapper,a)),st||Mh($t.inferences,z,Z,1536),gt=a?eb($t.mapper,a):$t.mapper}const qt=gt?zi(r.extendsType,gt):Z;if(!st&&!Nwe(qt,Re)){if(!(qt.flags&3)&&(z.flags&1||!Qs(vI(z),vI(qt)))){(z.flags&1||l&&!(qt.flags&131072)&&cd(vI(qt),Ur=>Qs(Ur,vI(z))))&&(x||(x=[])).push(zi(ii(r.node.trueType),gt||a));const $t=ii(r.node.falseType);if($t.flags&16777216){const Ur=$t.root;if(Ur.node.parent===r.node&&(!Ur.isDistributive||Ur.checkType===r.checkType)){r=Ur;continue}if(L($t,a))continue}h=zi($t,a);break}if(qt.flags&3||Qs(rT(z),rT(qt))){const $t=ii(r.node.trueType),Ur=gt||a;if(L($t,Ur))continue;h=zi($t,Ur);break}}h=Rg(16777216),h.root=r,h.checkType=zi(r.checkType,a),h.extendsType=zi(r.extendsType,a),h.mapper=a,h.combinedMapper=gt,h.aliasSymbol=_||r.aliasSymbol,h.aliasTypeArguments=_?m:A0(r.aliasTypeArguments,a);break}return x?Bn(_r(x,h)):h;function L(z,Z){if(z.flags&16777216&&Z){const de=z.root;if(de.outerTypeParameters){const _e=eb(z.mapper,Z),Re=nr(de.outerTypeParameters,qt=>t1(qt,_e)),st=ef(de.outerTypeParameters,Re),gt=de.isDistributive?t1(de.checkType,st):void 0;if(!gt||gt===de.checkType||!(gt.flags&1179648))return r=de,a=st,_=void 0,m=void 0,de.aliasSymbol&&N++,!0}}return!1}}function Tv(r){return r.resolvedTrueType||(r.resolvedTrueType=zi(ii(r.root.node.trueType),r.mapper))}function xv(r){return r.resolvedFalseType||(r.resolvedFalseType=zi(ii(r.root.node.falseType),r.mapper))}function $rt(r){return r.resolvedInferredTrueType||(r.resolvedInferredTrueType=r.combinedMapper?zi(ii(r.root.node.trueType),r.combinedMapper):Tv(r))}function Iwe(r){let a;return r.locals&&r.locals.forEach(l=>{l.flags&262144&&(a=_r(a,Eo(l)))}),a}function Xrt(r){return r.isDistributive&&(KR(r.checkType,r.node.trueType)||KR(r.checkType,r.node.falseType))}function Qrt(r){const a=jn(r);if(!a.resolvedType){const l=ii(r.checkType),_=yk(r),m=T4(_),h=mr(r,!0),x=m?h:An(h,L=>KR(L,r)),N={node:r,checkType:l,extendsType:ii(r.extendsType),isDistributive:!!(l.flags&262144),inferTypeParameters:Iwe(r),outerTypeParameters:x,instantiations:void 0,aliasSymbol:_,aliasTypeArguments:m};a.resolvedType=Dme(N,void 0,!1),x&&(N.instantiations=new Map,N.instantiations.set(Ip(x),a.resolvedType))}return a.resolvedType}function Yrt(r){const a=jn(r);return a.resolvedType||(a.resolvedType=qS(un(r.typeParameter))),a.resolvedType}function Fwe(r){return Ie(r)?[r]:_r(Fwe(r.left),r.right)}function Zrt(r){var a;const l=jn(r);if(!l.resolvedType){if(!ty(r))return Me(r.argument,p.String_literal_expected),l.resolvedSymbol=tt,l.resolvedType=nt;const _=r.isTypeOf?111551:r.flags&16777216?900095:788968,m=zu(r,r.argument.literal);if(!m)return l.resolvedSymbol=tt,l.resolvedType=nt;const h=!!((a=m.exports)!=null&&a.get("export=")),x=X_(m,!1);if(_c(r.qualifier))if(x.flags&_)l.resolvedType=Owe(r,l,x,_);else{const N=_===111551?p.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:p.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0;Me(r,N,r.argument.literal.text),l.resolvedSymbol=tt,l.resolvedType=nt}else{const N=Fwe(r.qualifier);let L=x,z;for(;z=N.shift();){const Z=N.length?1920:_,de=Na(mc(L)),_e=r.isTypeOf||Hr(r)&&h?$s(Xr(de),z.escapedText,!1,!0):void 0,st=(r.isTypeOf?void 0:m_(Q_(de),z.escapedText,Z))??_e;if(!st)return Me(z,p.Namespace_0_has_no_exported_member_1,pf(L),Ka(z)),l.resolvedType=nt;jn(z).resolvedSymbol=st,jn(z.parent).resolvedSymbol=st,L=st}l.resolvedType=Owe(r,l,L,_)}}return l.resolvedType}function Owe(r,a,l,_){const m=mc(l);return a.resolvedSymbol=m,_===111551?mIe(Xr(l),r):QY(r,m)}function Lwe(r){const a=jn(r);if(!a.resolvedType){const l=yk(r);if(Xy(r.symbol).size===0&&!l)a.resolvedType=Fc;else{let _=np(16,r.symbol);_.aliasSymbol=l,_.aliasTypeArguments=T4(l),Yb(r)&&r.isArrayType&&(_=pu(_)),a.resolvedType=_}}return a.resolvedType}function yk(r){let a=r.parent;for(;Vb(a)||d2(a)||Ub(a)&&a.operator===148;)a=a.parent;return F8(a)?un(a):void 0}function T4(r){return r?hn(r):void 0}function rZ(r){return!!(r.flags&524288)&&!g_(r)}function wme(r){return Fh(r)||!!(r.flags&474058748)}function Ame(r,a){if(!(r.flags&1048576))return r;if(Wi(r.types,wme))return wn(r.types,Fh)||oa;const l=wn(r.types,h=>!wme(h));if(!l||wn(r.types,h=>h!==l&&!wme(h)))return r;return m(l);function m(h){const x=Bs();for(const L of Ua(h))if(!(Hf(L)&6)){if(nZ(L)){const z=L.flags&65536&&!(L.flags&32768),de=xa(16777220,L.escapedName,Rde(L)|(a?8:0));de.links.type=z?Pe:A_(Xr(L),!0),de.declarations=L.declarations,de.links.nameType=wi(L).nameType,de.links.syntheticOrigin=L,x.set(L.escapedName,de)}}const N=so(h.symbol,x,Ve,Ve,Wu(h));return N.objectFlags|=131200,N}}function Y2(r,a,l,_,m){if(r.flags&1||a.flags&1)return B;if(r.flags&2||a.flags&2)return Kt;if(r.flags&131072)return a;if(a.flags&131072)return r;if(r=Ame(r,m),r.flags&1048576)return $R([r,a])?jo(r,z=>Y2(z,a,l,_,m)):nt;if(a=Ame(a,m),a.flags&1048576)return $R([r,a])?jo(a,z=>Y2(r,z,l,_,m)):nt;if(a.flags&473960444)return r;if(KS(r)||KS(a)){if(Fh(r))return a;if(r.flags&2097152){const z=r.types,Z=z[z.length-1];if(rZ(Z)&&rZ(a))return Xs(es(z.slice(0,z.length-1),[Y2(Z,a,l,_,m)]))}return Xs([r,a])}const h=Bs(),x=new Set,N=r===oa?Wu(a):g8e([r,a]);for(const z of Ua(a))Hf(z)&6?x.add(z.escapedName):nZ(z)&&h.set(z.escapedName,Nme(z,m));for(const z of Ua(r))if(!(x.has(z.escapedName)||!nZ(z)))if(h.has(z.escapedName)){const Z=h.get(z.escapedName),de=Xr(Z);if(Z.flags&16777216){const _e=es(z.declarations,Z.declarations),Re=4|z.flags&16777216,st=xa(Re,z.escapedName),gt=Xr(z),qt=xZ(gt),$t=xZ(de);st.links.type=qt===$t?gt:Bn([gt,$t],2),st.links.leftSpread=z,st.links.rightSpread=Z,st.declarations=_e,st.links.nameType=wi(z).nameType,h.set(z.escapedName,st)}}else h.set(z.escapedName,Nme(z,m));const L=so(l,h,Ve,Ve,rl(N,z=>Krt(z,m)));return L.objectFlags|=2228352|_,L}function nZ(r){var a;return!ct(r.declarations,Iu)&&(!(r.flags&106496)||!((a=r.declarations)!=null&&a.some(l=>$n(l.parent))))}function Nme(r,a){const l=r.flags&65536&&!(r.flags&32768);if(!l&&a===Rd(r))return r;const _=4|r.flags&16777216,m=xa(_,r.escapedName,Rde(r)|(a?8:0));return m.links.type=l?Pe:Xr(r),m.declarations=r.declarations,m.links.nameType=wi(r).nameType,m.links.syntheticOrigin=r,m}function Krt(r,a){return r.isReadonly!==a?ng(r.keyType,r.type,a,r.declaration):r}function QR(r,a,l,_){const m=jg(r,l);return m.value=a,m.regularType=_||m,m}function vk(r){if(r.flags&2976){if(!r.freshType){const a=QR(r.flags,r.value,r.symbol,r);a.freshType=a,r.freshType=a}return r.freshType}return r}function Uu(r){return r.flags&2976?r.regularType:r.flags&1048576?r.regularType||(r.regularType=jo(r,Uu)):r}function Z2(r){return!!(r.flags&2976)&&r.freshType===r}function h_(r){let a;return Ht.get(r)||(Ht.set(r,a=QR(128,r)),a)}function Od(r){let a;return Ue.get(r)||(Ue.set(r,a=QR(256,r)),a)}function iZ(r){let a;const l=e2(r);return Et.get(l)||(Et.set(l,a=QR(2048,r)),a)}function ent(r,a,l){let _;const m=`${a}${typeof r=="string"?"@":"#"}${r}`,h=1024|(typeof r=="string"?128:256);return fr.get(m)||(fr.set(m,_=QR(h,r,l)),_)}function tnt(r){if(r.literal.kind===106)return ce;const a=jn(r);return a.resolvedType||(a.resolvedType=Uu(Hi(r.literal))),a.resolvedType}function rnt(r){const a=jg(8192,r);return a.escapedName=`__@${a.symbol.escapedName}@${Ks(a.symbol)}`,a}function Ime(r){if(Hr(r)&&d2(r)){const a=Ib(r);a&&(r=RT(a)||a)}if(qte(r)){const a=v5(r)?Mf(r.left):Mf(r);if(a){const l=wi(a);return l.uniqueESSymbolType||(l.uniqueESSymbolType=rnt(a))}}return oi}function nnt(r){const a=a_(r,!1,!1),l=a&&a.parent;if(l&&($n(l)||l.kind===264)&&!Ms(a)&&(!sc(a)||Hv(r,a.body)))return ap(un(l)).thisType;if(l&&ua(l)&&Zr(l.parent)&&fc(l.parent)===6)return ap(Mf(l.parent.left).parent).thisType;const _=r.flags&16777216?P1(r):void 0;return _&&co(_)&&Zr(_.parent)&&fc(_.parent)===3?ap(Mf(_.parent.left).parent).thisType:ym(a)&&Hv(r,a.body)?ap(un(a)).thisType:(Me(r,p.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),nt)}function sZ(r){const a=jn(r);return a.resolvedType||(a.resolvedType=nnt(r)),a.resolvedType}function Mwe(r){return ii(YR(r.type)||r.type)}function YR(r){switch(r.kind){case 196:return YR(r.type);case 189:if(r.elements.length===1&&(r=r.elements[0],r.kind===191||r.kind===202&&r.dotDotDotToken))return YR(r.type);break;case 188:return r.elementType}}function int(r){const a=jn(r);return a.resolvedType||(a.resolvedType=r.dotDotDotToken?Mwe(r):A_(ii(r.type),!0,!!r.questionToken))}function ii(r){return Mtt(Rwe(r),r)}function Rwe(r){switch(r.kind){case 133:case 319:case 320:return B;case 159:return Kt;case 154:return Ce;case 150:return _t;case 163:return Tt;case 136:return fi;case 155:return oi;case 116:return Wr;case 157:return Pe;case 106:return ce;case 146:return Cn;case 151:return r.flags&524288&&!ae?B:In;case 141:return Yt;case 197:case 110:return sZ(r);case 201:return tnt(r);case 183:return cme(r);case 182:return r.assertsModifier?Wr:fi;case 233:return cme(r);case 186:return $8e(r);case 188:case 189:return frt(r);case 190:return grt(r);case 192:return Crt(r);case 193:return Frt(r);case 321:return Rtt(r);case 323:return A_(ii(r.type));case 202:return int(r);case 196:case 322:case 316:return ii(r.type);case 191:return Mwe(r);case 325:return a_t(r);case 184:case 185:case 187:case 329:case 324:case 330:return Lwe(r);case 198:return jrt(r);case 199:return wwe(r);case 200:return Pme(r);case 194:return Qrt(r);case 195:return Yrt(r);case 203:return Brt(r);case 205:return Zrt(r);case 80:case 166:case 211:const a=ld(r);return a?Eo(a):nt;default:return nt}}function aZ(r,a,l){if(r&&r.length)for(let _=0;__.typeParameter),nr(l,()=>Kt))}function eb(r,a){return r?cZ(4,r,a):a}function ont(r,a){return r?cZ(5,r,a):a}function tT(r,a,l){return l?cZ(5,K2(r,a),l):K2(r,a)}function hI(r,a,l){return r?cZ(5,r,K2(a,l)):K2(a,l)}function cnt(r){return!r.constraint&&!rme(r)||r.constraint===go?r:r.restrictiveInstantiation||(r.restrictiveInstantiation=jf(r.symbol),r.restrictiveInstantiation.constraint=go,r.restrictiveInstantiation)}function Ome(r){const a=jf(r.symbol);return a.target=r,a}function lnt(r,a){return UR(r.kind,r.parameterName,r.parameterIndex,zi(r.type,a))}function x4(r,a,l){let _;if(r.typeParameters&&!l){_=nr(r.typeParameters,Ome),a=eb(ef(r.typeParameters,_),a);for(const h of _)h.mapper=a}const m=Jg(r.declaration,_,r.thisParameter&&Lme(r.thisParameter,a),aZ(r.parameters,a,Lme),void 0,void 0,r.minArgumentCount,r.flags&167);return m.target=r,m.mapper=a,m}function Lme(r,a){const l=wi(r);if(l.type&&!Pv(l.type)&&(!(r.flags&65536)||l.writeType&&!Pv(l.writeType)))return r;Ko(r)&1&&(r=l.target,a=eb(l.mapper,a));const _=xa(r.flags,r.escapedName,1|Ko(r)&53256);return _.declarations=r.declarations,_.parent=r.parent,_.links.target=r,_.links.mapper=a,r.valueDeclaration&&(_.valueDeclaration=r.valueDeclaration),l.nameType&&(_.links.nameType=l.nameType),_}function unt(r,a,l,_){const m=r.objectFlags&4||r.objectFlags&8388608?r.node:r.symbol.declarations[0],h=jn(m),x=r.objectFlags&4?h.resolvedType:r.objectFlags&64?r.target:r;let N=h.outerTypeParameters;if(!N){let L=mr(m,!0);if(ym(m)){const Z=F8e(m);L=Nn(L,Z)}N=L||Ve;const z=r.objectFlags&8388612?[m]:r.symbol.declarations;N=(x.objectFlags&8388612||x.symbol.flags&8192||x.symbol.flags&2048)&&!x.aliasTypeArguments?An(N,Z=>ct(z,de=>KR(Z,de))):N,h.outerTypeParameters=N}if(N.length){const L=eb(r.mapper,a),z=nr(N,st=>t1(st,L)),Z=l||r.aliasSymbol,de=l?_:A0(r.aliasTypeArguments,a),_e=Ip(z)+gk(Z,de);x.instantiations||(x.instantiations=new Map,x.instantiations.set(Ip(N)+gk(x.aliasSymbol,x.aliasTypeArguments),x));let Re=x.instantiations.get(_e);if(!Re){const st=ef(N,z);Re=x.objectFlags&4?nme(r.target,r.node,st,Z,de):x.objectFlags&32?fnt(x,st,Z,de):Mme(x,st,Z,de),x.instantiations.set(_e,Re);const gt=bn(Re);if(Re.flags&3899393&&!(gt&524288)){const qt=ct(z,Pv);bn(Re)&524288||(gt&52?Re.objectFlags|=524288|(qt?1048576:0):Re.objectFlags|=qt?0:524288)}}return Re}return r}function _nt(r){return!(r.parent.kind===183&&r.parent.typeArguments&&r===r.parent.typeName||r.parent.kind===205&&r.parent.typeArguments&&r===r.parent.qualifier)}function KR(r,a){if(r.symbol&&r.symbol.declarations&&r.symbol.declarations.length===1){const _=r.symbol.declarations[0].parent;for(let m=a;m!==_;m=m.parent)if(!m||m.kind===241||m.kind===194&&Ss(m.extendsType,l))return!0;return l(a)}return!0;function l(_){switch(_.kind){case 197:return!!r.isThisType;case 80:return!r.isThisType&&gg(_)&&_nt(_)&&Rwe(_)===r;case 186:const m=_.exprName,h=lf(m);if(!Yv(h)){const x=od(h),N=r.symbol.declarations[0],L=N.kind===168?N.parent:r.isThisType?N:void 0;if(x.declarations&&L)return ct(x.declarations,z=>Hv(z,L))||ct(_.typeArguments,l)}return!0;case 174:case 173:return!_.type&&!!_.body||ct(_.typeParameters,l)||ct(_.parameters,l)||!!_.type&&l(_.type)}return!!Ss(_,l)}}function yI(r){const a=Jf(r);if(a.flags&4194304){const l=e1(a.type);if(l.flags&262144)return l}}function fnt(r,a,l,_){const m=yI(r);if(m){const x=zi(m,a);if(m!==x)return WAe(Fd(x),h,l,_)}return zi(Jf(r),a)===mt?mt:Mme(r,a,l,_);function h(x){if(x.flags&61603843&&x!==mt&&!Ot(x)){if(!r.declaration.nameType){let N;if(up(x)||x.flags&1&&fk(m,4)<0&&(N=r_(m))&&N_(N,Cv))return dnt(x,r,tT(m,x,a));if(da(x))return pnt(x,r,m,a);if(P8e(x))return Xs(nr(x.types,h))}return Mme(r,tT(m,x,a))}return x}}function Jwe(r,a){return a&1?!0:a&2?!1:r}function pnt(r,a,l,_){const m=r.target.elementFlags,h=r.target.fixedLength,x=h?tT(l,r,_):_,N=nr(Q2(r),(de,_e)=>{const Re=m[_e];return _ede&1?2:de):L&8?nr(m,de=>de&2?1:de):m,Z=Jwe(r.target.readonly,tg(a));return bs(N,nt)?nt:ig(N,z,Z,r.target.labeledElementDeclarations)}function dnt(r,a,l){const _=zwe(a,_t,!0,l);return Ot(_)?nt:pu(_,Jwe(UP(r),tg(a)))}function zwe(r,a,l,_){const m=hI(_,Nd(r),a),h=zi(Dh(r.target||r),m),x=tg(r);return q&&x&4&&!nc(h,49152)?s1(h,!0):q&&x&8&&l?Op(h,524288):h}function Mme(r,a,l,_){E.assert(r.symbol,"anonymous type must have symbol to be instantiated");const m=np(r.objectFlags&-1572865|64,r.symbol);if(r.objectFlags&32){m.declaration=r.declaration;const h=Nd(r),x=Ome(h);m.typeParameter=x,a=eb(K2(h,x),a),x.mapper=a}return r.objectFlags&8388608&&(m.node=r.node),m.target=r,m.mapper=a,m.aliasSymbol=l||r.aliasSymbol,m.aliasTypeArguments=l?_:A0(r.aliasTypeArguments,a),m.objectFlags|=m.aliasTypeArguments?$Y(m.aliasTypeArguments):0,m}function Rme(r,a,l,_,m){const h=r.root;if(h.outerTypeParameters){const x=nr(h.outerTypeParameters,z=>t1(z,a)),N=(l?"C":"")+Ip(x)+gk(_,m);let L=h.instantiations.get(N);if(!L){const z=ef(h.outerTypeParameters,x),Z=h.checkType,de=h.isDistributive?Fd(t1(Z,z)):void 0;L=de&&Z!==de&&de.flags&1179648?WAe(de,_e=>Dme(h,tT(Z,_e,z),l),_,m):Dme(h,z,l,_,m),h.instantiations.set(N,L)}return L}return r}function zi(r,a){return r&&a?Wwe(r,a,void 0,void 0):r}function Wwe(r,a,l,_){var m;if(!Pv(r))return r;if(k===100||T>=5e6)return(m=qr)==null||m.instant(qr.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:r.id,instantiationDepth:k,instantiationCount:T}),Me(P,p.Type_instantiation_is_excessively_deep_and_possibly_infinite),nt;S++,T++,k++;const h=mnt(r,a,l,_);return k--,h}function mnt(r,a,l,_){const m=r.flags;if(m&262144)return t1(r,a);if(m&524288){const h=r.objectFlags;if(h&52){if(h&4&&!r.node){const x=r.resolvedTypeArguments,N=A0(x,a);return N!==x?hme(r.target,N):r}return h&1024?gnt(r,a):unt(r,a,l,_)}return r}if(m&3145728){const h=r.flags&1048576?r.origin:void 0,x=h&&h.flags&3145728?h.types:r.types,N=A0(x,a);if(N===x&&l===r.aliasSymbol)return r;const L=l||r.aliasSymbol,z=l?_:A0(r.aliasTypeArguments,a);return m&2097152||h&&h.flags&2097152?Xs(N,L,z):Bn(N,1,L,z)}if(m&4194304)return dm(zi(r.type,a));if(m&134217728)return YS(r.texts,A0(r.types,a));if(m&268435456)return hk(r.symbol,zi(r.type,a));if(m&8388608){const h=l||r.aliasSymbol,x=l?_:A0(r.aliasTypeArguments,a);return K_(zi(r.objectType,a),zi(r.indexType,a),r.accessFlags,void 0,h,x)}if(m&16777216)return Rme(r,eb(r.mapper,a),!1,l,_);if(m&33554432){const h=zi(r.baseType,a);if(BP(r))return ime(h);const x=zi(r.constraint,a);return h.flags&8650752&&S4(x)?ame(h,x):x.flags&3||Qs(rT(h),rT(x))?h:h.flags&8650752?ame(h,x):Xs([x,h])}return r}function gnt(r,a){const l=zi(r.mappedType,a);if(!(bn(l)&32))return r;const _=zi(r.constraintType,a);if(!(_.flags&4194304))return r;const m=bAe(zi(r.source,a),l,_);return m||r}function vI(r){return r.flags&402915327?r:r.permissiveInstantiation||(r.permissiveInstantiation=zi(r,Uo))}function rT(r){return r.flags&402915327?r:(r.restrictiveInstantiation||(r.restrictiveInstantiation=zi(r,mo),r.restrictiveInstantiation.restrictiveInstantiation=r.restrictiveInstantiation),r.restrictiveInstantiation)}function hnt(r,a){return ng(r.keyType,zi(r.type,a),r.isReadonly,r.declaration)}function cp(r){switch(E.assert(r.kind!==174||Up(r)),r.kind){case 218:case 219:case 174:case 262:return Vwe(r);case 210:return ct(r.properties,cp);case 209:return ct(r.elements,cp);case 227:return cp(r.whenTrue)||cp(r.whenFalse);case 226:return(r.operatorToken.kind===57||r.operatorToken.kind===61)&&(cp(r.left)||cp(r.right));case 303:return cp(r.initializer);case 217:return cp(r.expression);case 292:return ct(r.properties,cp)||Kd(r.parent)&&ct(r.parent.parent.children,cp);case 291:{const{initializer:a}=r;return!!a&&cp(a)}case 294:{const{expression:a}=r;return!!a&&cp(a)}}return!1}function Vwe(r){return CF(r)||ynt(r)}function ynt(r){return r.typeParameters||bp(r)||!r.body?!1:r.body.kind!==241?cp(r.body):!!Wv(r.body,a=>!!a.expression&&cp(a.expression))}function lZ(r){return(t2(r)||Up(r))&&Vwe(r)}function Uwe(r){if(r.flags&524288){const a=Id(r);if(a.constructSignatures.length||a.callSignatures.length){const l=np(16,r.symbol);return l.members=a.members,l.properties=a.properties,l.callSignatures=Ve,l.constructSignatures=Ve,l.indexInfos=Ve,l}}else if(r.flags&2097152)return Xs(nr(r.types,Uwe));return r}function Ih(r,a){return mm(r,a,P_)}function bI(r,a){return mm(r,a,P_)?-1:0}function jme(r,a){return mm(r,a,d_)?-1:0}function vnt(r,a){return mm(r,a,Hm)?-1:0}function r1(r,a){return mm(r,a,Hm)}function ej(r,a){return mm(r,a,tp)}function Qs(r,a){return mm(r,a,d_)}function kv(r,a){return r.flags&1048576?Wi(r.types,l=>kv(l,a)):a.flags&1048576?ct(a.types,l=>kv(r,l)):r.flags&2097152?ct(r.types,l=>kv(l,a)):r.flags&58982400?kv(fu(r)||Kt,a):sg(a)?!!(r.flags&67633152):a===Te?!!(r.flags&67633152)&&!sg(r):a===kt?!!(r.flags&524288)&&hge(r):f4(r,C0(a))||up(a)&&!UP(a)&&kv(r,Is)}function uZ(r,a){return mm(r,a,$_)}function tj(r,a){return uZ(r,a)||uZ(a,r)}function Pu(r,a,l,_,m,h){return lp(r,a,d_,l,_,m,h)}function n1(r,a,l,_,m,h){return Bme(r,a,d_,l,_,m,h,void 0)}function Bme(r,a,l,_,m,h,x,N){return mm(r,a,l)?!0:!_||!SI(m,r,a,l,h,x,N)?lp(r,a,l,_,h,x,N):!1}function qwe(r){return!!(r.flags&16777216||r.flags&2097152&&ct(r.types,qwe))}function SI(r,a,l,_,m,h,x){if(!r||qwe(l))return!1;if(!lp(a,l,_,void 0)&&bnt(r,a,l,_,m,h,x))return!0;switch(r.kind){case 234:if(!Ay(r))break;case 294:case 217:return SI(r.expression,a,l,_,m,h,x);case 226:switch(r.operatorToken.kind){case 64:case 28:return SI(r.right,a,l,_,m,h,x)}break;case 210:return Dnt(r,a,l,_,h,x);case 209:return Ent(r,a,l,_,h,x);case 292:return Cnt(r,a,l,_,h,x);case 219:return Snt(r,a,l,_,h,x)}return!1}function bnt(r,a,l,_,m,h,x){const N=Es(a,0),L=Es(a,1);for(const z of[L,N])if(ct(z,Z=>{const de=Ja(Z);return!(de.flags&131073)&&lp(de,l,_,void 0)})){const Z=x||{};Pu(a,l,r,m,h,Z);const de=Z.errors[Z.errors.length-1];return la(de,yn(r,z===L?p.Did_you_mean_to_use_new_with_this_expression:p.Did_you_mean_to_call_this_expression)),!0}return!1}function Snt(r,a,l,_,m,h){if(Cs(r.body)||ct(r.parameters,r5))return!1;const x=_T(a);if(!x)return!1;const N=Es(l,0);if(!gr(N))return!1;const L=r.body,z=Ja(x),Z=Bn(nr(N,Ja));if(!lp(z,Z,_,void 0)){const de=L&&SI(L,z,Z,_,void 0,m,h);if(de)return de;const _e=h||{};if(lp(z,Z,_,L,void 0,m,_e),_e.errors)return l.symbol&&gr(l.symbol.declarations)&&la(_e.errors[_e.errors.length-1],yn(l.symbol.declarations[0],p.The_expected_type_comes_from_the_return_type_of_this_signature)),!(fl(r)&2)&&!je(z,"then")&&lp(Mj(z),Z,_,void 0)&&la(_e.errors[_e.errors.length-1],yn(r,p.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}function Hwe(r,a,l){const _=Ky(a,l);if(_)return _;if(a.flags&1048576){const m=eAe(r,a);if(m)return Ky(m,l)}}function Gwe(r,a){bj(r,a,!1);const l=rD(r,1);return NI(),l}function rj(r,a,l,_,m,h){let x=!1;for(const N of r){const{errorNode:L,innerExpression:z,nameType:Z,errorMessage:de}=N;let _e=Hwe(a,l,Z);if(!_e||_e.flags&8388608)continue;let Re=Ky(a,Z);if(!Re)continue;const st=eZ(Z,void 0);if(!lp(Re,_e,_,void 0)){const gt=z&&SI(z,Re,_e,_,void 0,m,h);if(x=!0,!gt){const qt=h||{},$t=z?Gwe(z,Re):Re;if(be&&fZ($t,_e)){const Ur=yn(L,p.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Ar($t),Ar(_e));wa.add(Ur),qt.errors=[Ur]}else{const Ur=!!(st&&($s(l,st)||tt).flags&16777216),Tr=!!(st&&($s(a,st)||tt).flags&16777216);_e=a1(_e,Ur),Re=a1(Re,Ur&&Tr),lp($t,_e,_,L,de,m,qt)&&$t!==Re&&lp(Re,_e,_,L,de,m,qt)}if(qt.errors){const Ur=qt.errors[qt.errors.length-1],Tr=Sp(Z)?Tp(Z):void 0,Gt=Tr!==void 0?$s(l,Tr):void 0;let Cr=!1;if(!Gt){const kr=lI(l,Z);kr&&kr.declaration&&!wr(kr.declaration).hasNoDefaultLib&&(Cr=!0,la(Ur,yn(kr.declaration,p.The_expected_type_comes_from_this_index_signature)))}if(!Cr&&(Gt&&gr(Gt.declarations)||l.symbol&&gr(l.symbol.declarations))){const kr=Gt&&gr(Gt.declarations)?Gt.declarations[0]:l.symbol.declarations[0];wr(kr).hasNoDefaultLib||la(Ur,yn(kr,p.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,Tr&&!(Z.flags&8192)?xi(Tr):Ar(Z),Ar(l)))}}}}}return x}function Tnt(r,a,l,_,m,h){const x=Mc(l,vZ),N=Mc(l,Z=>!vZ(Z)),L=N!==Cn?Lhe(13,0,N,void 0):void 0;let z=!1;for(let Z=r.next();!Z.done;Z=r.next()){const{errorNode:de,innerExpression:_e,nameType:Re,errorMessage:st}=Z.value;let gt=L;const qt=x!==Cn?Hwe(a,x,Re):void 0;if(qt&&!(qt.flags&8388608)&&(gt=L?Bn([L,qt]):qt),!gt)continue;let $t=Ky(a,Re);if(!$t)continue;const Ur=eZ(Re,void 0);if(!lp($t,gt,_,void 0)){const Tr=_e&&SI(_e,$t,gt,_,void 0,m,h);if(z=!0,!Tr){const Gt=h||{},Cr=_e?Gwe(_e,$t):$t;if(be&&fZ(Cr,gt)){const kr=yn(de,p.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Ar(Cr),Ar(gt));wa.add(kr),Gt.errors=[kr]}else{const kr=!!(Ur&&($s(x,Ur)||tt).flags&16777216),Br=!!(Ur&&($s(a,Ur)||tt).flags&16777216);gt=a1(gt,kr),$t=a1($t,kr&&Br),lp(Cr,gt,_,de,st,m,Gt)&&Cr!==$t&&lp($t,gt,_,de,st,m,Gt)}}}}return z}function*xnt(r){if(gr(r.properties))for(const a of r.properties)mx(a)||jge(lw(a.name))||(yield{errorNode:a.name,innerExpression:a.initializer,nameType:h_(lw(a.name))})}function*knt(r,a){if(!gr(r.children))return;let l=0;for(let _=0;_1;let qt,$t;if(pme(!1)!==fs){const Tr=swe(B);qt=Mc(Re,Gt=>Qs(Gt,Tr)),$t=Mc(Re,Gt=>!Qs(Gt,Tr))}else qt=Mc(Re,vZ),$t=Mc(Re,Tr=>!vZ(Tr));if(gt){if(qt!==Cn){const Tr=ig(qZ(z,0)),Gt=knt(z,L);x=Tnt(Gt,Tr,qt,_,m,h)||x}else if(!mm(K_(a,_e),Re,_)){x=!0;const Tr=Me(z.openingElement.tagName,p.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,de,Ar(Re));h&&h.skipLogging&&(h.errors||(h.errors=[])).push(Tr)}}else if($t!==Cn){const Tr=st[0],Gt=$we(Tr,_e,L);Gt&&(x=rj(function*(){yield Gt}(),a,l,_,m,h)||x)}else if(!mm(K_(a,_e),Re,_)){x=!0;const Tr=Me(z.openingElement.tagName,p.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,de,Ar(Re));h&&h.skipLogging&&(h.errors||(h.errors=[])).push(Tr)}}return x;function L(){if(!N){const z=jc(r.parent.tagName),Z=Tj(lT(r)),de=Z===void 0?"children":xi(Z),_e=K_(l,h_(de)),Re=p._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;N={...Re,key:"!!ALREADY FORMATTED!!",message:wW(Re,z,de,Ar(_e))}}return N}}function*Xwe(r,a){const l=gr(r.elements);if(l)for(let _=0;_L:vm(r)>L))return _&&!(l&8)&&m(p.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1,vm(r),L),0;r.typeParameters&&r.typeParameters!==a.typeParameters&&(a=Att(a),r=XNe(r,a,void 0,x));const Z=hf(r),de=LI(r),_e=LI(a);(de||_e)&&zi(de||_e,N);const Re=a.declaration?a.declaration.kind:0,st=!(l&3)&&ee&&Re!==174&&Re!==173&&Re!==176;let gt=-1;const qt=Sv(r);if(qt&&qt!==Wr){const Tr=Sv(a);if(Tr){const Gt=!st&&x(qt,Tr,!1)||x(Tr,qt,_);if(!Gt)return _&&m(p.The_this_types_of_each_signature_are_incompatible),0;gt&=Gt}}const $t=de||_e?Math.min(Z,L):Math.max(Z,L),Ur=de||_e?$t-1:-1;for(let Tr=0;Tr<$t;Tr++){const Gt=Tr===Ur?vIe(r,Tr):sb(r,Tr),Cr=Tr===Ur?vIe(a,Tr):sb(a,Tr);if(Gt&&Cr){const kr=l&3||GNe(r,Tr)?void 0:_T(Lh(Gt)),Br=l&3||GNe(a,Tr)?void 0:_T(Lh(Cr));let Jr=kr&&Br&&!op(kr)&&!op(Br)&&$P(Gt,50331648)===$P(Cr,50331648)?Jme(Br,kr,l&8|(st?2:1),_,m,h,x,N):!(l&3)&&!st&&x(Gt,Cr,!1)||x(Cr,Gt,_);if(Jr&&l&8&&Tr>=vm(r)&&Tr=3&&a[0].flags&32768&&a[1].flags&65536&&ct(a,sg)?67108864:0)}return!!(r.objectFlags&67108864)}return!1}function WP(r){return!!((r.flags&1048576?r.types[0]:r).flags&32768)}function Ywe(r){return r.flags&524288&&!g_(r)&&Ua(r).length===0&&Wu(r).length===1&&!!zg(r,Ce)||r.flags&3145728&&Wi(r.types,Ywe)||!1}function Wme(r,a,l){const _=r.flags&8?e_(r):r,m=a.flags&8?e_(a):a;if(_===m)return!0;if(_.escapedName!==m.escapedName||!(_.flags&256)||!(m.flags&256))return!1;const h=Ks(_)+","+Ks(m),x=y0.get(h);if(x!==void 0&&!(!(x&4)&&x&2&&l))return!!(x&1);const N=Xr(m);for(const L of Ua(Xr(_)))if(L.flags&8){const z=$s(N,L.escapedName);if(!z||!(z.flags&8))return l?(l(p.Property_0_is_missing_in_type_1,Xo(L),Ar(Eo(m),void 0,64)),y0.set(h,6)):y0.set(h,2),!1;const Z=O4(Bo(L,306)),de=O4(Bo(z,306));if(Z!==de){const _e=typeof Z=="string",Re=typeof de=="string";if(Z!==void 0&&de!==void 0){if(!l)y0.set(h,2);else{const st=_e?`"${bg(Z)}"`:Z,gt=Re?`"${bg(de)}"`:de;l(p.Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given,Xo(m),Xo(z),gt,st),y0.set(h,6)}return!1}if(_e||Re){if(!l)y0.set(h,2);else{const st=Z??de;E.assert(typeof st=="string");const gt=`"${bg(st)}"`;l(p.One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value,Xo(m),Xo(z),gt),y0.set(h,6)}return!1}}}return y0.set(h,1),!0}function TI(r,a,l,_){const m=r.flags,h=a.flags;return h&1||m&131072||r===mt||h&2&&!(l===tp&&m&1)?!0:h&131072?!1:!!(m&402653316&&h&4||m&128&&m&1024&&h&128&&!(h&1024)&&r.value===a.value||m&296&&h&8||m&256&&m&1024&&h&256&&!(h&1024)&&r.value===a.value||m&2112&&h&64||m&528&&h&16||m&12288&&h&4096||m&32&&h&32&&r.symbol.escapedName===a.symbol.escapedName&&Wme(r.symbol,a.symbol,_)||m&1024&&h&1024&&(m&1048576&&h&1048576&&Wme(r.symbol,a.symbol,_)||m&2944&&h&2944&&r.value===a.value&&Wme(r.symbol,a.symbol,_))||m&32768&&(!q&&!(h&3145728)||h&49152)||m&65536&&(!q&&!(h&3145728)||h&65536)||m&524288&&h&67108864&&!(l===tp&&sg(r)&&!(bn(r)&8192))||(l===d_||l===$_)&&(m&1||m&8&&(h&32||h&256&&h&1024)||m&256&&!(m&1024)&&(h&32||h&256&&h&1024&&r.value===a.value)||Int(a)))}function mm(r,a,l){if(Z2(r)&&(r=r.regularType),Z2(a)&&(a=a.regularType),r===a)return!0;if(l!==P_){if(l===$_&&!(a.flags&131072)&&TI(a,r,l)||TI(r,a,l))return!0}else if(!((r.flags|a.flags)&61865984)){if(r.flags!==a.flags)return!1;if(r.flags&67358815)return!0}if(r.flags&524288&&a.flags&524288){const _=l.get(mZ(r,a,0,l,!1));if(_!==void 0)return!!(_&1)}return r.flags&469499904||a.flags&469499904?lp(r,a,l,void 0):!1}function Zwe(r,a){return bn(r)&2048&&jge(a.escapedName)}function nj(r,a){for(;;){const l=Z2(r)?r.regularType:i1(r)?Ont(r,a):bn(r)&4?r.node?P0(r.target,bo(r)):Xme(r)||r:r.flags&3145728?Fnt(r,a):r.flags&33554432?a?r.baseType:ome(r):r.flags&25165824?Nh(r,a):r;if(l===r)return l;r=l}}function Fnt(r,a){const l=Fd(r);if(l!==r)return l;if(r.flags&2097152&&ct(r.types,sg)){const _=rl(r.types,m=>nj(m,a));if(_!==r.types)return Xs(_)}return r}function Ont(r,a){const l=Q2(r),_=rl(l,m=>m.flags&25165824?Nh(m,a):m);return l!==_?yme(r.target,_):r}function lp(r,a,l,_,m,h,x){var N;let L,z,Z,de,_e,Re,st=0,gt=0,qt=0,$t=0,Ur=!1,Tr=0,Gt=0,Cr,kr,Br=16e6-l.size>>3;E.assert(l!==P_||!_,"no error reporting in identity checking");const Ir=sn(r,a,3,!!_,m);if(kr&&hs(),Ur){const He=mZ(r,a,0,l,!1);l.set(He,6),(N=qr)==null||N.instant(qr.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:r.id,targetId:a.id,depth:gt,targetDepth:qt});const ut=Br<=0?p.Excessive_complexity_comparing_types_0_and_1:p.Excessive_stack_depth_comparing_types_0_and_1,Bt=Me(_||P,ut,Ar(r),Ar(a));x&&(x.errors||(x.errors=[])).push(Bt)}else if(L){if(h){const Bt=h();Bt&&(Kre(Bt,L),L=Bt)}let He;if(m&&_&&!Ir&&r.symbol){const Bt=wi(r.symbol);if(Bt.originatingImport&&!of(Bt.originatingImport)&&lp(Xr(Bt.target),a,l,void 0)){const fn=yn(Bt.originatingImport,p.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);He=_r(He,fn)}}const ut=Zg(wr(_),_,L,He);z&&la(ut,...z),x&&(x.errors||(x.errors=[])).push(ut),(!x||!x.skipLogging)&&wa.add(ut)}return _&&x&&x.skipLogging&&Ir===0&&E.assert(!!x.errors,"missed opportunity to interact with error."),Ir!==0;function Jr(He){L=He.errorInfo,Cr=He.lastSkippedInfo,kr=He.incompatibleStack,Tr=He.overrideNextErrorInfo,Gt=He.skipParentCounter,z=He.relatedInfo}function ss(){return{errorInfo:L,lastSkippedInfo:Cr,incompatibleStack:kr==null?void 0:kr.slice(),overrideNextErrorInfo:Tr,skipParentCounter:Gt,relatedInfo:z==null?void 0:z.slice()}}function Ki(He,...ut){Tr++,Cr=void 0,(kr||(kr=[])).push([He,...ut])}function hs(){const He=kr||[];kr=void 0;const ut=Cr;if(Cr=void 0,He.length===1){Gi(...He[0]),ut&&I_(void 0,...ut);return}let Bt="";const Or=[];for(;He.length;){const[fn,...lr]=He.pop();switch(fn.code){case p.Types_of_property_0_are_incompatible.code:{Bt.indexOf("new ")===0&&(Bt=`(${Bt})`);const tn=""+lr[0];Bt.length===0?Bt=`${tn}`:Sf(tn,Fa(j))?Bt=`${Bt}.${tn}`:tn[0]==="["&&tn[tn.length-1]==="]"?Bt=`${Bt}${tn}`:Bt=`${Bt}[${tn}]`;break}case p.Call_signature_return_types_0_and_1_are_incompatible.code:case p.Construct_signature_return_types_0_and_1_are_incompatible.code:case p.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case p.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:{if(Bt.length===0){let tn=fn;fn.code===p.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?tn=p.Call_signature_return_types_0_and_1_are_incompatible:fn.code===p.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(tn=p.Construct_signature_return_types_0_and_1_are_incompatible),Or.unshift([tn,lr[0],lr[1]])}else{const tn=fn.code===p.Construct_signature_return_types_0_and_1_are_incompatible.code||fn.code===p.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",Dn=fn.code===p.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||fn.code===p.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";Bt=`${tn}${Bt}(${Dn})`}break}case p.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:{Or.unshift([p.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,lr[0],lr[1]]);break}case p.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:{Or.unshift([p.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,lr[0],lr[1],lr[2]]);break}default:return E.fail(`Unhandled Diagnostic: ${fn.code}`)}}Bt?Gi(Bt[Bt.length-1]===")"?p.The_types_returned_by_0_are_incompatible_between_these_types:p.The_types_of_0_are_incompatible_between_these_types,Bt):Or.shift();for(const[fn,...lr]of Or){const tn=fn.elidedInCompatabilityPyramid;fn.elidedInCompatabilityPyramid=!1,Gi(fn,...lr),fn.elidedInCompatabilityPyramid=tn}ut&&I_(void 0,...ut)}function Gi(He,...ut){E.assert(!!_),kr&&hs(),!He.elidedInCompatabilityPyramid&&(Gt===0?L=vs(L,He,...ut):Gt--)}function el(He,...ut){Gi(He,...ut),Gt++}function _p(He){E.assert(!!L),z?z.push(He):z=[He]}function I_(He,ut,Bt){kr&&hs();const[Or,fn]=_k(ut,Bt);let lr=ut,tn=Or;if(xI(ut)&&!Vme(Bt)&&(lr=Oh(ut),E.assert(!Qs(lr,Bt),"generalized source shouldn't be assignable"),tn=Jy(lr)),(Bt.flags&8388608&&!(ut.flags&8388608)?Bt.objectType.flags:Bt.flags)&262144&&Bt!==se&&Bt!==X){const Si=fu(Bt);let ms;Si&&(Qs(lr,Si)||(ms=Qs(ut,Si)))?Gi(p._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,ms?Or:tn,fn,Ar(Si)):(L=void 0,Gi(p._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,fn,tn))}if(He)He===p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&be&&Kwe(ut,Bt).length&&(He=p.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(l===$_)He=p.Type_0_is_not_comparable_to_type_1;else if(Or===fn)He=p.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(be&&Kwe(ut,Bt).length)He=p.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(ut.flags&128&&Bt.flags&1048576){const Si=Vat(ut,Bt);if(Si){Gi(p.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,tn,fn,Ar(Si));return}}He=p.Type_0_is_not_assignable_to_type_1}Gi(He,tn,fn)}function Sr(He,ut){const Bt=zy(He.symbol)?Ar(He,He.symbol.valueDeclaration):Ar(He),Or=zy(ut.symbol)?Ar(ut,ut.symbol.valueDeclaration):Ar(ut);(Cc===He&&Ce===ut||Uc===He&&_t===ut||Ro===He&&fi===ut||ewe()===He&&oi===ut)&&Gi(p._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,Or,Bt)}function jr(He,ut,Bt){return da(He)?He.target.readonly&&oj(ut)?(Bt&&Gi(p.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Ar(He),Ar(ut)),!1):Cv(ut):UP(He)&&oj(ut)?(Bt&&Gi(p.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Ar(He),Ar(ut)),!1):da(ut)?up(He):!0}function Bi(He,ut,Bt){return sn(He,ut,3,Bt)}function sn(He,ut,Bt=3,Or=!1,fn,lr=0){if(He===ut)return-1;if(He.flags&524288&&ut.flags&402784252)return l===$_&&!(ut.flags&131072)&&TI(ut,He,l)||TI(He,ut,l,Or?Gi:void 0)?-1:(Or&&cs(He,ut,He,ut,fn),0);const tn=nj(He,!1);let Dn=nj(ut,!0);if(tn===Dn)return-1;if(l===P_)return tn.flags!==Dn.flags?0:tn.flags&67358815?-1:(La(tn,Dn),si(tn,Dn,!1,0,Bt));if(tn.flags&262144&&GS(tn)===Dn)return-1;if(tn.flags&470302716&&Dn.flags&1048576){const Si=Dn.types,ms=Si.length===2&&Si[0].flags&98304?Si[1]:Si.length===3&&Si[0].flags&98304&&Si[1].flags&98304?Si[2]:void 0;if(ms&&!(ms.flags&98304)&&(Dn=nj(ms,!0),tn===Dn))return-1}if(l===$_&&!(Dn.flags&131072)&&TI(Dn,tn,l)||TI(tn,Dn,l,Or?Gi:void 0))return-1;if(tn.flags&469499904||Dn.flags&469499904){if(!(lr&2)&&Dv(tn)&&bn(tn)&8192&&du(tn,Dn,Or))return Or&&I_(fn,tn,ut.aliasSymbol?ut:Dn),0;const ms=(l!==$_||Ld(tn))&&!(lr&2)&&tn.flags&405405692&&tn!==Te&&Dn.flags&2621440&&tAe(Dn)&&(Ua(tn).length>0||CK(tn)),Us=!!(bn(tn)&2048);if(ms&&!Mnt(tn,Dn,Us)){if(Or){const ps=Ar(He.aliasSymbol?He:tn),na=Ar(ut.aliasSymbol?ut:Dn),ro=Es(tn,0),za=Es(tn,1);ro.length>0&&sn(Ja(ro[0]),Dn,1,!1)||za.length>0&&sn(Ja(za[0]),Dn,1,!1)?Gi(p.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,ps,na):Gi(p.Type_0_has_no_properties_in_common_with_type_1,ps,na)}return 0}La(tn,Dn);const ri=tn.flags&1048576&&tn.types.length<4&&!(Dn.flags&1048576)||Dn.flags&1048576&&Dn.types.length<4&&!(tn.flags&469499904)?i_(tn,Dn,Or,lr):si(tn,Dn,Or,lr,Bt);if(ri)return ri}return Or&&cs(He,ut,tn,Dn,fn),0}function cs(He,ut,Bt,Or,fn){var lr,tn;const Dn=!!Xme(He),Si=!!Xme(ut);Bt=He.aliasSymbol||Dn?He:Bt,Or=ut.aliasSymbol||Si?ut:Or;let ms=Tr>0;if(ms&&Tr--,Bt.flags&524288&&Or.flags&524288){const Us=L;jr(Bt,Or,!0),L!==Us&&(ms=!!L)}if(Bt.flags&524288&&Or.flags&402784252)Sr(Bt,Or);else if(Bt.symbol&&Bt.flags&524288&&Te===Bt)Gi(p.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(bn(Bt)&2048&&Or.flags&2097152){const Us=Or.types,qs=ib(Ef.IntrinsicAttributes,_),ri=ib(Ef.IntrinsicClassAttributes,_);if(!Ot(qs)&&!Ot(ri)&&(bs(Us,qs)||bs(Us,ri)))return}else L=Hde(L,ut);if(!fn&&ms){Cr=[Bt,Or];return}if(I_(fn,Bt,Or),Bt.flags&262144&&((tn=(lr=Bt.symbol)==null?void 0:lr.declarations)!=null&&tn[0])&&!GS(Bt)){const Us=Ome(Bt);if(Us.constraint=zi(Or,K2(Bt,Us)),zR(Us)){const qs=Ar(Or,Bt.symbol.declarations[0]);_p(yn(Bt.symbol.declarations[0],p.This_type_parameter_might_need_an_extends_0_constraint,qs))}}}function La(He,ut){if(qr&&He.flags&3145728&&ut.flags&3145728){const Bt=He,Or=ut;if(Bt.objectFlags&Or.objectFlags&32768)return;const fn=Bt.types.length,lr=Or.types.length;fn*lr>1e6&&qr.instant(qr.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:He.id,sourceSize:fn,targetId:ut.id,targetSize:lr,pos:_==null?void 0:_.pos,end:_==null?void 0:_.end})}}function Xa(He,ut){return Bn(Du(He,(Or,fn)=>{var lr;fn=n_(fn);const tn=fn.flags&3145728?WR(fn,ut):vv(fn,ut),Dn=tn&&Xr(tn)||((lr=mk(fn,ut))==null?void 0:lr.type)||Pe;return _r(Or,Dn)},void 0)||Ve)}function du(He,ut,Bt){var Or;if(!kj(ut)||!ae&&bn(ut)&4096)return!1;const fn=!!(bn(He)&2048);if((l===d_||l===$_)&&(XP(Te,ut)||!fn&&Fh(ut)))return!1;let lr=ut,tn;ut.flags&1048576&&(lr=y5e(He,ut,sn)||Hft(ut),tn=lr.flags&1048576?lr.types:[lr]);for(const Dn of Ua(He))if(ma(Dn,He.symbol)&&!Zwe(He,Dn)){if(!zge(lr,Dn.escapedName,fn)){if(Bt){const Si=Mc(lr,kj);if(!_)return E.fail();if(_2(_)||Fu(_)||Fu(_.parent)){Dn.valueDeclaration&&em(Dn.valueDeclaration)&&wr(_)===wr(Dn.valueDeclaration.name)&&(_=Dn.valueDeclaration.name);const ms=ni(Dn),Us=zNe(ms,Si),qs=Us?ni(Us):void 0;qs?Gi(p.Property_0_does_not_exist_on_type_1_Did_you_mean_2,ms,Ar(Si),qs):Gi(p.Property_0_does_not_exist_on_type_1,ms,Ar(Si))}else{const ms=((Or=He.symbol)==null?void 0:Or.declarations)&&bl(He.symbol.declarations);let Us;if(Dn.valueDeclaration&&Pr(Dn.valueDeclaration,qs=>qs===ms)&&wr(ms)===wr(_)){const qs=Dn.valueDeclaration;E.assertNode(qs,Yg);const ri=qs.name;_=ri,Ie(ri)&&(Us=Qge(ri,Si))}Us!==void 0?el(p.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,ni(Dn),Ar(Si),Us):el(p.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,ni(Dn),Ar(Si))}}return!0}if(tn&&!sn(Xr(Dn),Xa(tn,Dn.escapedName),3,Bt))return Bt&&Ki(p.Types_of_property_0_are_incompatible,ni(Dn)),!0}return!1}function ma(He,ut){return He.valueDeclaration&&ut.valueDeclaration&&He.valueDeclaration.parent===ut.valueDeclaration}function i_(He,ut,Bt,Or){if(He.flags&1048576){if(ut.flags&1048576){const fn=He.origin;if(fn&&fn.flags&2097152&&ut.aliasSymbol&&bs(fn.types,ut))return-1;const lr=ut.origin;if(lr&&lr.flags&1048576&&He.aliasSymbol&&bs(lr.types,He))return-1}return l===$_?ye(He,ut,Bt&&!(He.flags&402784252),Or):mn(He,ut,Bt&&!(He.flags&402784252),Or)}if(ut.flags&1048576)return Go(EI(He),ut,Bt&&!(He.flags&402784252)&&!(ut.flags&402784252),Or);if(ut.flags&2097152)return Ze(He,ut,Bt,2);if(l===$_&&ut.flags&402784252){const fn=rl(He.types,lr=>lr.flags&465829888?fu(lr)||Kt:lr);if(fn!==He.types){if(He=Xs(fn),He.flags&131072)return 0;if(!(He.flags&2097152))return sn(He,ut,1,!1)||sn(ut,He,1,!1)}}return ye(He,ut,!1,1)}function uc(He,ut){let Bt=-1;const Or=He.types;for(const fn of Or){const lr=Go(fn,ut,!1,0);if(!lr)return 0;Bt&=lr}return Bt}function Go(He,ut,Bt,Or){const fn=ut.types;if(ut.flags&1048576){if(Ah(fn,He))return-1;if(l!==$_&&bn(ut)&32768&&!(He.flags&1024)&&(He.flags&2688||(l===Hm||l===tp)&&He.flags&256)){const tn=He===He.regularType?He.freshType:He.regularType,Dn=He.flags&128?Ce:He.flags&256?_t:He.flags&2048?Tt:void 0;return Dn&&Ah(fn,Dn)||tn&&Ah(fn,tn)?-1:0}const lr=AAe(ut,He);if(lr){const tn=sn(He,lr,2,!1,void 0,Or);if(tn)return tn}}for(const lr of fn){const tn=sn(He,lr,2,!1,void 0,Or);if(tn)return tn}if(Bt){const lr=eAe(He,ut,sn);lr&&sn(He,lr,2,!0,void 0,Or)}return 0}function Ze(He,ut,Bt,Or){let fn=-1;const lr=ut.types;for(const tn of lr){const Dn=sn(He,tn,2,Bt,void 0,Or);if(!Dn)return 0;fn&=Dn}return fn}function ye(He,ut,Bt,Or){const fn=He.types;if(He.flags&1048576&&Ah(fn,ut))return-1;const lr=fn.length;for(let tn=0;tn=tn.types.length&&lr.length%tn.types.length===0){const Us=sn(Si,tn.types[Dn%tn.types.length],3,!1,void 0,Or);if(Us){fn&=Us;continue}}const ms=sn(Si,ut,1,Bt,void 0,Or);if(!ms)return 0;fn&=ms}return fn}function Xn(He=Ve,ut=Ve,Bt=Ve,Or,fn){if(He.length!==ut.length&&l===P_)return 0;const lr=He.length<=ut.length?He.length:ut.length;let tn=-1;for(let Dn=0;Dn(ps|=za?16:8,ri(za)));let na;return $t===3?((lr=qr)==null||lr.instant(qr.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:He.id,sourceIdStack:_e.map(za=>za.id),targetId:ut.id,targetIdStack:Re.map(za=>za.id),depth:gt,targetDepth:qt}),na=3):((tn=qr)==null||tn.push(qr.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:He.id,targetId:ut.id}),na=ai(He,ut,Bt,Or),(Dn=qr)==null||Dn.pop()),zs&&(zs=ri),fn&1&>--,fn&2&&qt--,$t=qs,na?(na===-1||gt===0&&qt===0)&&ro(na===-1||na===3):(l.set(Si,(Bt?4:0)|2|ps),Br--,ro(!1)),na;function ro(za){for(let tl=Us;tlDn!==He)&&(lr=sn(tn,ut,1,!1,void 0,Or))}lr&&!(Or&2)&&ut.flags&2097152&&!KS(ut)&&He.flags&2621440?(lr&=mi(He,ut,Bt,void 0,!1,0),lr&&Dv(He)&&bn(He)&8192&&(lr&=to(He,ut,!1,Bt,0))):lr&&rZ(ut)&&!Cv(ut)&&He.flags&2097152&&n_(He).flags&3670016&&!ct(He.types,tn=>tn===ut||!!(bn(tn)&262144))&&(lr&=mi(He,ut,Bt,void 0,!0,Or))}return lr&&Jr(fn),lr}function Pn(He,ut){const Bt=n_(HS(ut)),Or=[];return jde(Bt,8576,!1,fn=>void Or.push(zi(He,hI(ut.mapper,Nd(ut),fn)))),Bn(Or)}function _n(He,ut,Bt,Or,fn){let lr,tn,Dn=!1,Si=He.flags;const ms=ut.flags;if(l===P_){if(Si&3145728){let ri=uc(He,ut);return ri&&(ri&=uc(ut,He)),ri}if(Si&4194304)return sn(He.type,ut.type,3,!1);if(Si&8388608&&(lr=sn(He.objectType,ut.objectType,3,!1))&&(lr&=sn(He.indexType,ut.indexType,3,!1))||Si&16777216&&He.root.isDistributive===ut.root.isDistributive&&(lr=sn(He.checkType,ut.checkType,3,!1))&&(lr&=sn(He.extendsType,ut.extendsType,3,!1))&&(lr&=sn(Tv(He),Tv(ut),3,!1))&&(lr&=sn(xv(He),xv(ut),3,!1))||Si&33554432&&(lr=sn(He.baseType,ut.baseType,3,!1))&&(lr&=sn(He.constraint,ut.constraint,3,!1)))return lr;if(!(Si&524288))return 0}else if(Si&3145728||ms&3145728){if(lr=i_(He,ut,Bt,Or))return lr;if(!(Si&465829888||Si&524288&&ms&1048576||Si&2097152&&ms&467402752))return 0}if(Si&17301504&&He.aliasSymbol&&He.aliasTypeArguments&&He.aliasSymbol===ut.aliasSymbol&&!(pZ(He)||pZ(ut))){const ri=rAe(He.aliasSymbol);if(ri===Ve)return 1;const ps=wi(He.aliasSymbol).typeParameters,na=rg(ps),ro=Yy(He.aliasTypeArguments,ps,na,Hr(He.aliasSymbol.valueDeclaration)),za=Yy(ut.aliasTypeArguments,ps,na,Hr(He.aliasSymbol.valueDeclaration)),tl=qs(ro,za,ri,Or);if(tl!==void 0)return tl}if(_Ae(He)&&!He.target.readonly&&(lr=sn(bo(He)[0],ut,1))||_Ae(ut)&&(ut.target.readonly||oj(fu(He)||He))&&(lr=sn(He,bo(ut)[0],2)))return lr;if(ms&262144){if(bn(He)&32&&!He.declaration.nameType&&sn(dm(ut),Jf(He),3)&&!(tg(He)&4)){const ri=Dh(He),ps=K_(ut,Nd(He));if(lr=sn(ri,ps,3,Bt))return lr}if(l===$_&&Si&262144){let ri=r_(He);if(ri)for(;ri&&cd(ri,ps=>!!(ps.flags&262144));){if(lr=sn(ri,ut,1,!1))return lr;ri=r_(ri)}return 0}}else if(ms&4194304){const ri=ut.type;if(Si&4194304&&(lr=sn(ri,He.type,3,!1)))return lr;if(da(ri)){if(lr=sn(He,lwe(ri),2,Bt))return lr}else{const ps=Jde(ri);if(ps){if(sn(He,dm(ps,ut.indexFlags|4),2,Bt)===-1)return-1}else if(g_(ri)){const na=E0(ri),ro=Jf(ri);let za;if(na&&m4(ri)){const tl=Pn(na,ri);za=Bn([tl,na])}else za=na||ro;if(sn(He,za,2,Bt)===-1)return-1}}}else if(ms&8388608){if(Si&8388608){if((lr=sn(He.objectType,ut.objectType,3,Bt))&&(lr&=sn(He.indexType,ut.indexType,3,Bt)),lr)return lr;Bt&&(tn=L)}if(l===d_||l===$_){const ri=ut.objectType,ps=ut.indexType,na=fu(ri)||ri,ro=fu(ps)||ps;if(!KS(na)&&!eT(ro)){const za=4|(na!==ri?2:0),tl=Ky(na,ro,za);if(tl){if(Bt&&tn&&Jr(fn),lr=sn(He,tl,2,Bt,void 0,Or))return lr;Bt&&tn&&L&&(L=Us([tn])<=Us([L])?tn:L)}}}Bt&&(tn=void 0)}else if(g_(ut)&&l!==P_){const ri=!!ut.declaration.nameType,ps=Dh(ut),na=tg(ut);if(!(na&8)){if(!ri&&ps.flags&8388608&&ps.objectType===He&&ps.indexType===Nd(ut))return-1;if(!g_(He)){const ro=ri?E0(ut):Jf(ut),za=dm(He,2),tl=na&4,og=tl?jR(ro,za):void 0;if(tl?!(og.flags&131072):sn(ro,za,3)){const jh=Dh(ut),dT=Nd(ut),mT=QP(jh,-98305);if(!ri&&mT.flags&8388608&&mT.indexType===dT){if(lr=sn(He,mT.objectType,2,Bt))return lr}else{const uD=ri?og||ro:og?Xs([og,dT]):dT,Bd=K_(He,uD);if(lr=sn(Bd,jh,3,Bt))return lr}}tn=L,Jr(fn)}}}else if(ms&16777216){if(VP(ut,Re,qt,10))return 3;const ri=ut;if(!ri.root.inferTypeParameters&&!Xrt(ri.root)&&!(He.flags&16777216&&He.root===ri.root)){const ps=!Qs(vI(ri.checkType),vI(ri.extendsType)),na=!ps&&Qs(rT(ri.checkType),rT(ri.extendsType));if((lr=ps?-1:sn(He,Tv(ri),2,!1,void 0,Or))&&(lr&=na?-1:sn(He,xv(ri),2,!1,void 0,Or),lr))return lr}}else if(ms&134217728){if(Si&134217728){if(l===$_)return Tit(He,ut)?0:-1;zi(He,Ll)}if(AZ(He,ut))return-1}else if(ut.flags&268435456&&!(He.flags&268435456)&&wZ(He,ut))return-1;if(Si&8650752){if(!(Si&8388608&&ms&8388608)){const ri=GS(He)||Kt;if(lr=sn(ri,ut,1,!1,void 0,Or))return lr;if(lr=sn(mf(ri,He),ut,1,Bt&&ri!==Kt&&!(ms&Si&262144),void 0,Or))return lr;if(Ude(He)){const ps=GS(He.indexType);if(ps&&(lr=sn(K_(He.objectType,ps),ut,1,Bt)))return lr}}}else if(Si&4194304){const ri=kme(He.type,He.indexFlags)&&bn(He.type)&32;if(lr=sn(uo,ut,1,Bt&&!ri))return lr;if(ri){const ps=He.type,na=E0(ps),ro=na&&m4(ps)?Pn(na,ps):na||Jf(ps);if(lr=sn(ro,ut,1,Bt))return lr}}else if(Si&134217728&&!(ms&524288)){if(!(ms&134217728)){const ri=fu(He);if(ri&&ri!==He&&(lr=sn(ri,ut,1,Bt)))return lr}}else if(Si&268435456)if(ms&268435456){if(He.symbol!==ut.symbol)return 0;if(lr=sn(He.type,ut.type,3,Bt))return lr}else{const ri=fu(He);if(ri&&(lr=sn(ri,ut,1,Bt)))return lr}else if(Si&16777216){if(VP(He,_e,gt,10))return 3;if(ms&16777216){const na=He.root.inferTypeParameters;let ro=He.extendsType,za;if(na){const tl=PI(na,void 0,0,Bi);Mh(tl.inferences,ut.extendsType,ro,1536),ro=zi(ro,tl.mapper),za=tl.mapper}if(Ih(ro,ut.extendsType)&&(sn(He.checkType,ut.checkType,3)||sn(ut.checkType,He.checkType,3))&&((lr=sn(zi(Tv(He),za),Tv(ut),3,Bt))&&(lr&=sn(xv(He),xv(ut),3,Bt)),lr))return lr}const ri=zde(He);if(ri&&(lr=sn(ri,ut,1,Bt)))return lr;const ps=!(ms&16777216)&&zR(He)?T8e(He):void 0;if(ps&&(Jr(fn),lr=sn(ps,ut,1,Bt)))return lr}else{if(l!==Hm&&l!==tp&&att(ut)&&Fh(He))return-1;if(g_(ut))return g_(He)&&(lr=Qe(He,ut,Bt))?lr:0;const ri=!!(Si&402784252);if(l!==P_)He=n_(He),Si=He.flags;else if(g_(He))return 0;if(bn(He)&4&&bn(ut)&4&&He.target===ut.target&&!da(He)&&!(pZ(He)||pZ(ut))){if(yZ(He))return-1;const ps=qme(He.target);if(ps===Ve)return 1;const na=qs(bo(He),bo(ut),ps,Or);if(na!==void 0)return na}else{if(UP(ut)?N_(He,Cv):up(ut)&&N_(He,ps=>da(ps)&&!ps.target.readonly))return l!==P_?sn(bv(He,_t)||B,bv(ut,_t)||B,3,Bt):0;if(i1(He)&&da(ut)&&!i1(ut)){const ps=wh(He);if(ps!==He)return sn(ps,ut,1,Bt)}else if((l===Hm||l===tp)&&Fh(ut)&&bn(ut)&8192&&!Fh(He))return 0}if(Si&2621440&&ms&524288){const ps=Bt&&L===fn.errorInfo&&!ri;if(lr=mi(He,ut,ps,void 0,!1,Or),lr&&(lr&=ys(He,ut,0,ps,Or),lr&&(lr&=ys(He,ut,1,ps,Or),lr&&(lr&=to(He,ut,ri,ps,Or)))),Dn&&lr)L=tn||L||fn.errorInfo;else if(lr)return lr}if(Si&2621440&&ms&1048576){const ps=QP(ut,36175872);if(ps.flags&1048576){const na=xt(He,ps);if(na)return na}}}return 0;function Us(ri){return ri?Du(ri,(ps,na)=>ps+1+Us(na.next),0):0}function qs(ri,ps,na,ro){if(lr=Xn(ri,ps,na,Bt,ro))return lr;if(ct(na,tl=>!!(tl&24))){tn=void 0,Jr(fn);return}const za=ps&&Rnt(ps,na);if(Dn=!za,na!==Ve&&!za){if(Dn&&!(Bt&&ct(na,tl=>(tl&7)===0)))return 0;tn=L,Jr(fn)}}}function Qe(He,ut,Bt){if(l===$_||(l===P_?tg(He)===tg(ut):Bde(He)<=Bde(ut))){let fn;const lr=Jf(ut),tn=zi(Jf(He),Bde(He)<0?Qa:Ll);if(fn=sn(lr,tn,3,Bt)){const Dn=ef([Nd(He)],[Nd(ut)]);if(zi(E0(He),Dn)===zi(E0(ut),Dn))return fn&sn(zi(Dh(He),Dn),Dh(ut),3,Bt)}}return 0}function xt(He,ut){var Bt;const Or=Ua(He),fn=wAe(Or,ut);if(!fn)return 0;let lr=1;for(const qs of fn)if(lr*=Qit(Gy(qs)),lr>25)return(Bt=qr)==null||Bt.instant(qr.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:He.id,targetId:ut.id,numCombinations:lr}),0;const tn=new Array(fn.length),Dn=new Set;for(let qs=0;qsqs[na],!1,0,q||l===$_))continue e}zf(ms,ps,Vh),ri=!0}if(!ri)return 0}let Us=-1;for(const qs of ms)if(Us&=mi(He,qs,!1,Dn,!1,0),Us&&(Us&=ys(He,qs,0,!1,0),Us&&(Us&=ys(He,qs,1,!1,0),Us&&!(da(He)&&da(qs))&&(Us&=to(He,qs,!1,!1,0)))),!Us)return Us;return Us}function Qt(He,ut){if(!ut||He.length===0)return He;let Bt;for(let Or=0;Or5?Gi(p.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,Ar(He),Ar(ut),nr(lr.slice(0,4),tn=>ni(tn)).join(", "),lr.length-4):Gi(p.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,Ar(He),Ar(ut),nr(lr,tn=>ni(tn)).join(", ")),fn&&L&&Tr++)}function mi(He,ut,Bt,Or,fn,lr){if(l===P_)return xn(He,ut,Or);let tn=-1;if(da(ut)){if(Cv(He)){if(!ut.target.readonly&&(UP(He)||da(He)&&He.target.readonly))return 0;const qs=D0(He),ri=D0(ut),ps=da(He)?He.target.combinedFlags&4:4,na=ut.target.combinedFlags&4,ro=da(He)?He.target.minLength:0,za=ut.target.minLength;if(!ps&&qs=jh?ri-1-Math.min(ud,dT):Bd,pn=ut.target.elementFlags[vt];if(pn&8&&!(Ck&8))return Bt&&Gi(p.Source_provides_no_match_for_variadic_element_at_position_0_in_target,vt),0;if(Ck&8&&!(pn&12))return Bt&&Gi(p.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,Bd,vt),0;if(pn&1&&!(Ck&1))return Bt&&Gi(p.Source_provides_no_match_for_required_element_at_position_0_in_target,vt),0;if(uD&&((Ck&12||pn&12)&&(uD=!1),uD&&(Or!=null&&Or.has(""+Bd))))continue;const Qn=a1(tl[Bd],!!(Ck&pn&2)),Fn=og[vt],Gn=Ck&8&&pn&4?pu(Fn):a1(Fn,!!(pn&2)),Aa=sn(Qn,Gn,3,Bt,void 0,lr);if(!Aa)return Bt&&(ri>1||qs>1)&&(mT&&Bd>=jh&&ud>=dT&&jh!==qs-dT-1?Ki(p.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,jh,qs-dT-1,vt):Ki(p.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,Bd,vt)),0;tn&=Aa}return tn}if(ut.target.combinedFlags&12)return 0}const Dn=(l===Hm||l===tp)&&!Dv(He)&&!yZ(He)&&!da(He),Si=cge(He,ut,Dn,!1);if(Si)return Bt&&dr(He,ut)&&xr(He,ut,Si,Dn),0;if(Dv(ut)){for(const qs of Qt(Ua(He),Or))if(!vv(ut,qs.escapedName)&&!(Xr(qs).flags&32768))return Bt&&Gi(p.Property_0_does_not_exist_on_type_1,ni(qs),Ar(ut)),0}const ms=Ua(ut),Us=da(He)&&da(ut);for(const qs of Qt(ms,Or)){const ri=qs.escapedName;if(!(qs.flags&4194304)&&(!Us||kg(ri)||ri==="length")&&(!fn||qs.flags&16777216)){const ps=$s(He,ri);if(ps&&ps!==qs){const na=Zt(He,ut,ps,qs,Gy,Bt,lr,l===$_);if(!na)return 0;tn&=na}}}return tn}function xn(He,ut,Bt){if(!(He.flags&524288&&ut.flags&524288))return 0;const Or=Qt(Qy(He),Bt),fn=Qt(Qy(ut),Bt);if(Or.length!==fn.length)return 0;let lr=-1;for(const tn of Or){const Dn=vv(ut,tn.escapedName);if(!Dn)return 0;const Si=Gme(tn,Dn,sn);if(!Si)return 0;lr&=Si}return lr}function ys(He,ut,Bt,Or,fn){var lr,tn;if(l===P_)return Ys(He,ut,Bt);if(ut===Wt||He===Wt)return-1;const Dn=He.symbol&&ym(He.symbol.valueDeclaration),Si=ut.symbol&&ym(ut.symbol.valueDeclaration),ms=Es(He,Dn&&Bt===1?0:Bt),Us=Es(ut,Si&&Bt===1?0:Bt);if(Bt===1&&ms.length&&Us.length){const ro=!!(ms[0].flags&4),za=!!(Us[0].flags&4);if(ro&&!za)return Or&&Gi(p.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!jd(ms[0],Us[0],Or))return 0}let qs=-1;const ri=Bt===1?Fi:Jn,ps=bn(He),na=bn(ut);if(ps&64&&na&64&&He.symbol===ut.symbol||ps&4&&na&4&&He.target===ut.target){E.assertEqual(ms.length,Us.length);for(let ro=0;roYm(jh,void 0,262144,Bt);return Gi(p.Type_0_is_not_assignable_to_type_1,og(za),og(tl)),Gi(p.Types_of_construct_signatures_are_incompatible),qs}}else e:for(const ro of Us){const za=ss();let tl=Or;for(const og of ms){const jh=qi(og,ro,!0,tl,fn,ri(og,ro));if(jh){qs&=jh,Jr(za);continue e}tl=!1}return tl&&Gi(p.Type_0_provides_no_match_for_the_signature_1,Ar(He),Ym(ro,void 0,void 0,Bt)),0}return qs}function dr(He,ut){const Bt=VR(He,0),Or=VR(He,1),fn=Qy(He);return(Bt.length||Or.length)&&!fn.length?!!(Es(ut,0).length&&Bt.length||Es(ut,1).length&&Or.length):!0}function Jn(He,ut){return He.parameters.length===0&&ut.parameters.length===0?(Bt,Or)=>Ki(p.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Ar(Bt),Ar(Or)):(Bt,Or)=>Ki(p.Call_signature_return_types_0_and_1_are_incompatible,Ar(Bt),Ar(Or))}function Fi(He,ut){return He.parameters.length===0&&ut.parameters.length===0?(Bt,Or)=>Ki(p.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Ar(Bt),Ar(Or)):(Bt,Or)=>Ki(p.Construct_signature_return_types_0_and_1_are_incompatible,Ar(Bt),Ar(Or))}function qi(He,ut,Bt,Or,fn,lr){const tn=l===Hm?16:l===tp?24:0;return Jme(Bt?fI(He):He,Bt?fI(ut):ut,tn,Or,Gi,lr,Dn,Ll);function Dn(Si,ms,Us){return sn(Si,ms,3,Us,void 0,fn)}}function Ys(He,ut,Bt){const Or=Es(He,Bt),fn=Es(ut,Bt);if(Or.length!==fn.length)return 0;let lr=-1;for(let tn=0;tnSi.keyType===Ce);let Dn=-1;for(const Si of lr){const ms=l!==tp&&!Bt&&tn&&Si.type.flags&1?-1:g_(He)&&tn?sn(Dh(He),Si.type,3,Or):Zl(He,Si,Or,fn);if(!ms)return 0;Dn&=ms}return Dn}function Zl(He,ut,Bt,Or){const fn=lI(He,ut.keyType);return fn?ao(fn,ut,Bt,Or):!(Or&1)&&(l!==tp||bn(He)&8192)&&kZ(He)?Hc(He,ut,Bt,Or):(Bt&&Gi(p.Index_signature_for_type_0_is_missing_in_type_1,Ar(ut.keyType),Ar(He)),0)}function So(He,ut){const Bt=Wu(He),Or=Wu(ut);if(Bt.length!==Or.length)return 0;for(const fn of Or){const lr=zg(He,fn.keyType);if(!(lr&&sn(lr.type,fn.type,3)&&lr.isReadonly===fn.isReadonly))return 0}return-1}function jd(He,ut,Bt){if(!He.declaration||!ut.declaration)return!0;const Or=zT(He.declaration,6),fn=zT(ut.declaration,6);return fn===2||fn===4&&Or!==2||fn!==4&&!Or?!0:(Bt&&Gi(p.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,VS(Or),VS(fn)),!1)}}function Vme(r){if(r.flags&16)return!1;if(r.flags&3145728)return!!er(r.types,Vme);if(r.flags&465829888){const a=GS(r);if(a&&a!==r)return Vme(a)}return Ld(r)||!!(r.flags&134217728)||!!(r.flags&268435456)}function Kwe(r,a){return da(r)&&da(a)?Ve:Ua(a).filter(l=>fZ(je(r,l.escapedName),Xr(l)))}function fZ(r,a){return!!r&&!!a&&nc(r,32768)&&!!CI(a)}function Lnt(r){return Ua(r).filter(a=>CI(Xr(a)))}function eAe(r,a,l=jme){return y5e(r,a,l)||Wft(r,a)||Vft(r,a)||Uft(r,a)||qft(r,a)}function Ume(r,a,l){const _=r.types,m=_.map(x=>x.flags&402784252?0:-1);for(const[x,N]of a){let L=!1;for(let z=0;z<_.length;z++)if(m[z]){const Z=dt(_[z],N);Z&&l(x(),Z)?L=!0:m[z]=3}for(let z=0;z<_.length;z++)m[z]===3&&(m[z]=L?0:-1)}const h=bs(m,0)?Bn(_.filter((x,N)=>m[N]),0):r;return h.flags&131072?r:h}function tAe(r){if(r.flags&524288){const a=Id(r);return a.callSignatures.length===0&&a.constructSignatures.length===0&&a.indexInfos.length===0&&a.properties.length>0&&Wi(a.properties,l=>!!(l.flags&16777216))}return r.flags&2097152?Wi(r.types,tAe):!1}function Mnt(r,a,l){for(const _ of Ua(r))if(zge(a,_.escapedName,l))return!0;return!1}function qme(r){return r===Ds||r===Is||r.objectFlags&8?$:nAe(r.symbol,r.typeParameters)}function rAe(r){return nAe(r,wi(r).typeParameters)}function nAe(r,a=Ve){var l,_;const m=wi(r);if(!m.variances){(l=qr)==null||l.push(qr.Phase.CheckTypes,"getVariancesWorker",{arity:a.length,id:Vu(Eo(r))});const h=K1;K1||(K1=!0,qx=jl.length),m.variances=Ve;const x=[];for(const N of a){const L=Hme(N);let z=L&16384?L&8192?0:1:L&8192?2:void 0;if(z===void 0){let Z=!1,de=!1;const _e=zs;zs=gt=>gt?de=!0:Z=!0;const Re=ij(r,N,q_),st=ij(r,N,io);z=(Qs(st,Re)?1:0)|(Qs(Re,st)?2:0),z===3&&Qs(ij(r,N,Yc),Re)&&(z=4),zs=_e,(Z||de)&&(Z&&(z|=8),de&&(z|=16))}x.push(z)}h||(K1=!1,qx=0),m.variances=x,(_=qr)==null||_.pop({variances:x.map(E.formatVariance)})}return m.variances}function ij(r,a,l){const _=K2(a,l),m=Eo(r);if(Ot(m))return m;const h=r.flags&524288?y4(r,A0(wi(r).typeParameters,_)):P0(m,A0(m.typeParameters,_));return rt.add(Vu(h)),h}function pZ(r){return rt.has(Vu(r))}function Hme(r){var a;return Du((a=r.symbol)==null?void 0:a.declarations,(l,_)=>l|Lu(_),0)&28672}function Rnt(r,a){for(let l=0;l!!(a.flags&262144)||dZ(a))}function Jnt(r,a,l,_){const m=[];let h="";const x=L(r,0),N=L(a,0);return`${h}${x},${N}${l}`;function L(z,Z=0){let de=""+z.target.id;for(const _e of bo(z)){if(_e.flags&262144){if(_||jnt(_e)){let Re=m.indexOf(_e);Re<0&&(Re=m.length,m.push(_e)),de+="="+Re;continue}h="*"}else if(Z<4&&dZ(_e)){de+="<"+L(_e,Z+1)+">";continue}de+="-"+_e.id}return de}}function mZ(r,a,l,_,m){if(_===P_&&r.id>a.id){const x=r;r=a,a=x}const h=l?":"+l:"";return dZ(r)&&dZ(a)?Jnt(r,a,h,m):`${r.id},${a.id}${h}`}function sj(r,a){if(Ko(r)&6){for(const l of r.links.containingType.types){const _=$s(l,r.escapedName),m=_&&sj(_,a);if(m)return m}return}return a(r)}function bk(r){return r.parent&&r.parent.flags&32?Eo(e_(r)):void 0}function gZ(r){const a=bk(r),l=a&&Z_(a)[0];return l&&je(l,r.escapedName)}function znt(r,a){return sj(r,l=>{const _=bk(l);return _?f4(_,a):!1})}function Wnt(r,a){return!sj(a,l=>Hf(l)&4?!znt(r,bk(l)):!1)}function iAe(r,a,l){return sj(a,_=>Hf(_,l)&4?!f4(r,bk(_)):!1)?void 0:r}function VP(r,a,l,_=3){if(l>=_){if((bn(r)&96)===96&&(r=sAe(r)),r.flags&2097152)return ct(r.types,N=>VP(N,a,l,_));const m=hZ(r);let h=0,x=0;for(let N=0;N=x&&(h++,h>=_))return!0;x=L.id}}}return!1}function sAe(r){let a;for(;(bn(r)&96)===96&&(a=HS(r))&&(a.symbol||a.flags&2097152&&ct(a.types,l=>!!l.symbol));)r=a;return r}function aAe(r,a){return(bn(r)&96)===96&&(r=sAe(r)),r.flags&2097152?ct(r.types,l=>aAe(l,a)):hZ(r)===a}function hZ(r){if(r.flags&524288&&!uge(r)){if(bn(r)&4&&r.node)return r.node;if(r.symbol&&!(bn(r)&16&&r.symbol.flags&32))return r.symbol;if(da(r))return r.target}if(r.flags&262144)return r.symbol;if(r.flags&8388608){do r=r.objectType;while(r.flags&8388608);return r}return r.flags&16777216?r.root:r}function Vnt(r,a){return Gme(r,a,bI)!==0}function Gme(r,a,l){if(r===a)return-1;const _=Hf(r)&6,m=Hf(a)&6;if(_!==m)return 0;if(_){if(I4(r)!==I4(a))return 0}else if((r.flags&16777216)!==(a.flags&16777216))return 0;return Rd(r)!==Rd(a)?0:l(Xr(r),Xr(a))}function Unt(r,a,l){const _=hf(r),m=hf(a),h=vm(r),x=vm(a),N=ag(r),L=ag(a);return!!(_===m&&h===x&&N===L||l&&h<=x)}function aj(r,a,l,_,m,h){if(r===a)return-1;if(!Unt(r,a,l)||gr(r.typeParameters)!==gr(a.typeParameters))return 0;if(a.typeParameters){const L=ef(r.typeParameters,a.typeParameters);for(let z=0;za|(l.flags&1048576?oAe(l.types):l.flags),0)}function Gnt(r){if(r.length===1)return r[0];const a=q?rl(r,_=>Mc(_,m=>!(m.flags&98304))):r,l=Hnt(a)?Bn(a):Du(a,(_,m)=>r1(_,m)?m:_);return a===r?l:lj(l,oAe(r)&98304)}function $nt(r){return Du(r,(a,l)=>r1(l,a)?l:a)}function up(r){return!!(bn(r)&4)&&(r.target===Ds||r.target===Is)}function UP(r){return!!(bn(r)&4)&&r.target===Is}function Cv(r){return up(r)||da(r)}function oj(r){return up(r)&&!UP(r)||da(r)&&!r.target.readonly}function cj(r){return up(r)?bo(r)[0]:void 0}function N0(r){return up(r)||!(r.flags&98304)&&Qs(r,If)}function $me(r){return oj(r)||!(r.flags&98305)&&Qs(r,Ec)}function Xme(r){if(!(bn(r)&4)||!(bn(r.target)&3))return;if(bn(r)&33554432)return bn(r)&67108864?r.cachedEquivalentBaseType:void 0;r.objectFlags|=33554432;const a=r.target;if(bn(a)&1){const m=Ya(a);if(m&&m.expression.kind!==80&&m.expression.kind!==211)return}const l=Z_(a);if(l.length!==1||Xy(r.symbol).size)return;let _=gr(a.typeParameters)?zi(l[0],ef(a.typeParameters,bo(r).slice(0,a.typeParameters.length))):l[0];return gr(bo(r))>gr(a.typeParameters)&&(_=mf(_,ka(bo(r)))),r.objectFlags|=67108864,r.cachedEquivalentBaseType=_}function cAe(r){return q?r===pi:r===St}function yZ(r){const a=cj(r);return!!a&&cAe(a)}function qP(r){let a;return da(r)||!!$s(r,"0")||N0(r)&&!!(a=je(r,"length"))&&N_(a,l=>!!(l.flags&256))}function vZ(r){return N0(r)||qP(r)}function Xnt(r,a){const l=je(r,""+a);if(l)return l;if(N_(r,da))return fAe(r,a,j.noUncheckedIndexedAccess?Pe:void 0)}function Qnt(r){return!(r.flags&240544)}function Ld(r){return!!(r.flags&109472)}function lAe(r){const a=wh(r);return a.flags&2097152?ct(a.types,Ld):Ld(a)}function Ynt(r){return r.flags&2097152&&wn(r.types,Ld)||r}function xI(r){return r.flags&16?!0:r.flags&1048576?r.flags&1024?!0:Wi(r.types,Ld):Ld(r)}function Oh(r){return r.flags&1056?BY(r):r.flags&402653312?Ce:r.flags&256?_t:r.flags&2048?Tt:r.flags&512?fi:r.flags&1048576?Znt(r):r}function Znt(r){const a=`B${Vu(r)}`;return Zx(a)??Dy(a,jo(r,Oh))}function Qme(r){return r.flags&402653312?Ce:r.flags&288?_t:r.flags&2048?Tt:r.flags&512?fi:r.flags&1048576?jo(r,Qme):r}function tb(r){return r.flags&1056&&Z2(r)?BY(r):r.flags&128&&Z2(r)?Ce:r.flags&256&&Z2(r)?_t:r.flags&2048&&Z2(r)?Tt:r.flags&512&&Z2(r)?fi:r.flags&1048576?jo(r,tb):r}function uAe(r){return r.flags&8192?oi:r.flags&1048576?jo(r,uAe):r}function Yme(r,a){return lK(r,a)||(r=uAe(tb(r))),Uu(r)}function Knt(r,a,l){if(r&&Ld(r)){const _=a?l?BI(a):a:void 0;r=Yme(r,_)}return r}function Zme(r,a,l,_){if(r&&Ld(r)){const m=a?ab(l,a,_):void 0;r=Yme(r,m)}return r}function da(r){return!!(bn(r)&4&&r.target.objectFlags&8)}function i1(r){return da(r)&&!!(r.target.combinedFlags&8)}function _Ae(r){return i1(r)&&r.target.elementFlags.length===1}function bZ(r){return HP(r,r.target.fixedLength)}function fAe(r,a,l){return jo(r,_=>{const m=_,h=bZ(m);return h?l&&a>=vme(m.target)?Bn([h,l]):h:Pe})}function eit(r){const a=bZ(r);return a&&pu(a)}function HP(r,a,l=0,_=!1,m=!1){const h=D0(r)-l;if(a(l&12)===(a.target.elementFlags[_]&12))}function pAe({value:r}){return r.base10Value==="0"}function dAe(r){return Mc(r,a=>Fp(a,4194304))}function rit(r){return jo(r,nit)}function nit(r){return r.flags&4?ws:r.flags&8?Ta:r.flags&64?ku:r===ar||r===Jt||r.flags&114691||r.flags&128&&r.value===""||r.flags&256&&r.value===0||r.flags&2048&&pAe(r)?r:Cn}function lj(r,a){const l=a&~r.flags&98304;return l===0?r:Bn(l===32768?[r,Pe]:l===65536?[r,ce]:[r,Pe,ce])}function s1(r,a=!1){E.assert(q);const l=a?le:Pe;return r===l||r.flags&1048576&&r.types[0]===l?r:Bn([r,l])}function iit(r){return __||(__=JP("NonNullable",524288,void 0)||tt),__!==tt?y4(__,[r]):Xs([r,oa])}function Lh(r){return q?aT(r,2097152):r}function mAe(r){return q?Bn([r,V]):r}function SZ(r){return q?FZ(r,V):r}function TZ(r,a,l){return l?sE(a)?s1(r):mAe(r):r}function kI(r,a){return H7(a)?Lh(r):hu(a)?SZ(r):r}function a1(r,a){return be&&a?FZ(r,A):r}function CI(r){return r===A||!!(r.flags&1048576)&&r.types[0]===A}function xZ(r){return be?FZ(r,A):Op(r,524288)}function sit(r,a){return(r.flags&524)!==0&&(a.flags&28)!==0}function kZ(r){const a=bn(r);return r.flags&2097152?Wi(r.types,kZ):!!(r.symbol&&r.symbol.flags&7040&&!(r.symbol.flags&32)&&!CK(r))||!!(a&4194304)||!!(a&1024&&kZ(r.source))}function nT(r,a){const l=xa(r.flags,r.escapedName,Ko(r)&8);l.declarations=r.declarations,l.parent=r.parent,l.links.type=a,l.links.target=r,r.valueDeclaration&&(l.valueDeclaration=r.valueDeclaration);const _=wi(r).nameType;return _&&(l.links.nameType=_),l}function ait(r,a){const l=Bs();for(const _ of Qy(r)){const m=Xr(_),h=a(m);l.set(_.escapedName,h===m?_:nT(_,h))}return l}function EI(r){if(!(Dv(r)&&bn(r)&8192))return r;const a=r.regularType;if(a)return a;const l=r,_=ait(r,EI),m=so(l.symbol,_,l.callSignatures,l.constructSignatures,l.indexInfos);return m.flags=l.flags,m.objectFlags|=l.objectFlags&-8193,r.regularType=m,m}function gAe(r,a,l){return{parent:r,propertyName:a,siblings:l,resolvedProperties:void 0}}function hAe(r){if(!r.siblings){const a=[];for(const l of hAe(r.parent))if(Dv(l)){const _=vv(l,r.propertyName);_&&oT(Xr(_),m=>{a.push(m)})}r.siblings=a}return r.siblings}function oit(r){if(!r.resolvedProperties){const a=new Map;for(const l of hAe(r))if(Dv(l)&&!(bn(l)&2097152))for(const _ of Ua(l))a.set(_.escapedName,_);r.resolvedProperties=gs(a.values())}return r.resolvedProperties}function cit(r,a){if(!(r.flags&4))return r;const l=Xr(r),_=a&&gAe(a,r.escapedName,void 0),m=Kme(l,_);return m===l?r:nT(r,m)}function lit(r){const a=Le.get(r.escapedName);if(a)return a;const l=nT(r,le);return l.flags|=16777216,Le.set(r.escapedName,l),l}function uit(r,a){const l=Bs();for(const m of Qy(r))l.set(m.escapedName,cit(m,a));if(a)for(const m of oit(a))l.has(m.escapedName)||l.set(m.escapedName,lit(m));const _=so(r.symbol,l,Ve,Ve,rl(Wu(r),m=>ng(m.keyType,gf(m.type),m.isReadonly)));return _.objectFlags|=bn(r)&266240,_}function gf(r){return Kme(r,void 0)}function Kme(r,a){if(bn(r)&196608){if(a===void 0&&r.widened)return r.widened;let l;if(r.flags&98305)l=B;else if(Dv(r))l=uit(r,a);else if(r.flags&1048576){const _=a||gAe(void 0,void 0,r.types),m=rl(r.types,h=>h.flags&98304?h:Kme(h,_));l=Bn(m,ct(m,Fh)?2:1)}else r.flags&2097152?l=Xs(rl(r.types,gf)):Cv(r)&&(l=P0(r.target,rl(bo(r),gf)));return l&&a===void 0&&(r.widened=l),l||r}return r}function CZ(r){let a=!1;if(bn(r)&65536){if(r.flags&1048576)if(ct(r.types,Fh))a=!0;else for(const l of r.types)CZ(l)&&(a=!0);if(Cv(r))for(const l of bo(r))CZ(l)&&(a=!0);if(Dv(r))for(const l of Qy(r)){const _=Xr(l);bn(_)&65536&&(CZ(_)||Me(l.valueDeclaration,p.Object_literal_s_property_0_implicitly_has_an_1_type,ni(l),Ar(gf(_))),a=!0)}}return a}function Ev(r,a,l){const _=Ar(gf(a));if(Hr(r)&&!sw(wr(r),j))return;let m;switch(r.kind){case 226:case 172:case 171:m=ae?p.Member_0_implicitly_has_an_1_type:p.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 169:const h=r;if(Ie(h.name)){const x=v1(h.name);if((sx(h.parent)||Lm(h.parent)||Mm(h.parent))&&h.parent.parameters.includes(h)&&(Ho(h,h.name.escapedText,788968,void 0,h.name.escapedText,!0)||x&&PW(x))){const N="arg"+h.parent.parameters.indexOf(h),L=Ka(h.name)+(h.dotDotDotToken?"[]":"");Bl(ae,r,p.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,N,L);return}}m=r.dotDotDotToken?ae?p.Rest_parameter_0_implicitly_has_an_any_type:p.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:ae?p.Parameter_0_implicitly_has_an_1_type:p.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 208:if(m=p.Binding_element_0_implicitly_has_an_1_type,!ae)return;break;case 324:Me(r,p.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,_);return;case 330:ae&&UC(r.parent)&&Me(r.parent.tagName,p.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,_);return;case 262:case 174:case 173:case 177:case 178:case 218:case 219:if(ae&&!r.name){l===3?Me(r,p.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation,_):Me(r,p.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,_);return}m=ae?l===3?p._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:p._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:p._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 200:ae&&Me(r,p.Mapped_object_type_implicitly_has_an_any_template_type);return;default:m=ae?p.Variable_0_implicitly_has_an_1_type:p.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}Bl(ae,r,m,Ka(us(r)),_)}function EZ(r,a,l){n(()=>{ae&&bn(a)&65536&&(!l||!Lge(r))&&(CZ(a)||Ev(r,a,l))})}function ege(r,a,l){const _=hf(r),m=hf(a),h=OI(r),x=OI(a),N=x?m-1:m,L=h?N:Math.min(_,N),z=Sv(r);if(z){const Z=Sv(a);Z&&l(z,Z)}for(let Z=0;Za.typeParameter),nr(r.inferences,(a,l)=>()=>(a.isFixed||(dit(r),PZ(r.inferences),a.isFixed=!0),_ge(r,l))))}function pit(r){return Fme(nr(r.inferences,a=>a.typeParameter),nr(r.inferences,(a,l)=>()=>_ge(r,l)))}function PZ(r){for(const a of r)a.isFixed||(a.inferredType=void 0)}function nge(r,a,l){(r.intraExpressionInferenceSites??(r.intraExpressionInferenceSites=[])).push({node:a,type:l})}function dit(r){if(r.intraExpressionInferenceSites){for(const{node:a,type:l}of r.intraExpressionInferenceSites){const _=a.kind===174?fNe(a,2):y_(a,2);_&&Mh(r.inferences,l,_)}r.intraExpressionInferenceSites=void 0}}function ige(r){return{typeParameter:r,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function yAe(r){return{typeParameter:r.typeParameter,candidates:r.candidates&&r.candidates.slice(),contraCandidates:r.contraCandidates&&r.contraCandidates.slice(),inferredType:r.inferredType,priority:r.priority,topLevel:r.topLevel,isFixed:r.isFixed,impliedArity:r.impliedArity}}function mit(r){const a=An(r.inferences,A4);return a.length?rge(nr(a,yAe),r.signature,r.flags,r.compareTypes):void 0}function sge(r){return r&&r.mapper}function Pv(r){const a=bn(r);if(a&524288)return!!(a&1048576);const l=!!(r.flags&465829888||r.flags&524288&&!vAe(r)&&(a&4&&(r.node||ct(bo(r),Pv))||a&16&&r.symbol&&r.symbol.flags&14384&&r.symbol.declarations||a&12583968)||r.flags&3145728&&!(r.flags&1024)&&!vAe(r)&&ct(r.types,Pv));return r.flags&3899393&&(r.objectFlags|=524288|(l?1048576:0)),l}function vAe(r){if(r.aliasSymbol&&!r.aliasTypeArguments){const a=Bo(r.aliasSymbol,265);return!!(a&&Pr(a.parent,l=>l.kind===312?!0:l.kind===267?!1:"quit"))}return!1}function DI(r,a,l=0){return!!(r===a||r.flags&3145728&&ct(r.types,_=>DI(_,a,l))||l<3&&r.flags&16777216&&(DI(Tv(r),a,l+1)||DI(xv(r),a,l+1)))}function git(r,a){const l=op(r);return l?!!l.type&&DI(l.type,a):DI(Ja(r),a)}function hit(r){const a=Bs();oT(r,_=>{if(!(_.flags&128))return;const m=Wo(_.value),h=xa(4,m);h.links.type=B,_.symbol&&(h.declarations=_.symbol.declarations,h.valueDeclaration=_.symbol.valueDeclaration),a.set(m,h)});const l=r.flags&4?[ng(Ce,oa,!1)]:Ve;return so(void 0,a,Ve,Ve,l)}function bAe(r,a,l){const _=r.id+","+a.id+","+l.id;if(gl.has(_))return gl.get(_);const m=r.id+","+(a.target||a).id;if(bs(E_,m))return;E_.push(m);const h=yit(r,a,l);return E_.pop(),gl.set(_,h),h}function age(r){return!(bn(r)&262144)||Dv(r)&&ct(Ua(r),a=>age(Xr(a)))||da(r)&&ct(Q2(r),age)}function yit(r,a,l){if(!(zg(r,Ce)||Ua(r).length!==0&&age(r)))return;if(up(r))return pu(DZ(bo(r)[0],a,l),UP(r));if(da(r)){const m=nr(Q2(r),x=>DZ(x,a,l)),h=tg(a)&4?rl(r.target.elementFlags,x=>x&2?1:x):r.target.elementFlags;return ig(m,h,r.target.readonly,r.target.labeledElementDeclarations)}const _=np(1040,void 0);return _.source=r,_.mappedType=a,_.constraintType=l,_}function vit(r){const a=wi(r);return a.type||(a.type=DZ(r.links.propertyType,r.links.mappedType,r.links.constraintType)),a.type}function DZ(r,a,l){const _=K_(l.type,Nd(a)),m=Dh(a),h=ige(_);return Mh([h],r,m),SAe(h)||Kt}function*oge(r,a,l,_){const m=Ua(a);for(const h of m)if(!u8e(h)&&(l||!(h.flags&16777216||Ko(h)&48))){const x=$s(r,h.escapedName);if(!x)yield h;else if(_){const N=Xr(h);if(N.flags&109472){const L=Xr(x);L.flags&1||Uu(L)===Uu(N)||(yield h)}}}}function cge(r,a,l,_){return e7(oge(r,a,l,_))}function bit(r,a){return!(a.target.combinedFlags&8)&&a.target.minLength>r.target.minLength||!a.target.hasRestElement&&(r.target.hasRestElement||a.target.fixedLengthhk(h,m),r)===r&&wZ(r,a)}return!1}function kAe(r,a){if(a.flags&2097152)return Wi(a.types,l=>l===Fc||kAe(r,l));if(a.flags&4||Qs(r,a))return!0;if(r.flags&128){const l=r.value;return!!(a.flags&8&&xAe(l,!1)||a.flags&64&&kF(l,!1)||a.flags&98816&&l===a.intrinsicName||a.flags&268435456&&wZ(h_(l),a)||a.flags&134217728&&AZ(r,a))}if(r.flags&134217728){const l=r.texts;return l.length===2&&l[0]===""&&l[1]===""&&Qs(r.types[0],a)}return!1}function CAe(r,a){return r.flags&128?EAe([r.value],Ve,a):r.flags&134217728?gD(r.texts,a.texts)?nr(r.types,kit):EAe(r.texts,r.types,a):void 0}function AZ(r,a){const l=CAe(r,a);return!!l&&Wi(l,(_,m)=>kAe(_,a.types[m]))}function kit(r){return r.flags&402653317?r:YS(["",""],[r])}function EAe(r,a,l){const _=r.length-1,m=r[0],h=r[_],x=l.texts,N=x.length-1,L=x[0],z=x[N];if(_===0&&m.length0){let Ur=_e,Tr=Re;for(;Tr=st(Ur).indexOf($t,Tr),!(Tr>=0);){if(Ur++,Ur===r.length)return;Tr=0}gt(Ur,Tr),Re+=$t.length}else if(Re!bs(sn,La)):Sr,cs?An(jr,La=>!bs(cs,La)):jr]}function Ur(Sr,jr,Bi){const sn=Sr.length!!Cr(cs));if(!sn||jr&&sn!==jr)return;jr=sn}return jr}function Br(Sr,jr,Bi){let sn=0;if(Bi&1048576){let cs;const La=Sr.flags&1048576?Sr.types:[Sr],Xa=new Array(La.length);let du=!1;for(const ma of jr)if(Cr(ma))cs=ma,sn++;else for(let i_=0;i_Xa[uc]?void 0:i_);if(ma.length){_e(Bn(ma),cs);return}}}else for(const cs of jr)Cr(cs)?sn++:_e(Sr,cs);if(Bi&2097152?sn===1:sn>0)for(const cs of jr)Cr(cs)&&Re(Sr,cs,1)}function Ir(Sr,jr,Bi){if(Bi.flags&1048576||Bi.flags&2097152){let sn=!1;for(const cs of Bi.types)sn=Ir(Sr,jr,cs)||sn;return sn}if(Bi.flags&4194304){const sn=Cr(Bi.type);if(sn&&!sn.isFixed&&!TAe(Sr)){const cs=bAe(Sr,jr,Bi);cs&&Re(cs,sn.typeParameter,bn(Sr)&262144?16:8)}return!0}if(Bi.flags&262144){Re(dm(Sr,Sr.pattern?2:0),Bi,32);const sn=GS(Bi);if(sn&&Ir(Sr,jr,sn))return!0;const cs=nr(Ua(Sr),Xr),La=nr(Wu(Sr),Xa=>Xa!==En?Xa.type:Cn);return _e(Bn(es(cs,La)),Dh(jr)),!0}return!1}function Jr(Sr,jr){if(Sr.flags&16777216)_e(Sr.checkType,jr.checkType),_e(Sr.extendsType,jr.extendsType),_e(Tv(Sr),Tv(jr)),_e(xv(Sr),xv(jr));else{const Bi=[Tv(jr),xv(jr)];gt(Sr,Bi,jr.flags,m?64:0)}}function ss(Sr,jr){const Bi=CAe(Sr,jr),sn=jr.types;if(Bi||Wi(jr.texts,cs=>cs.length===0))for(let cs=0;csGo|Ze.flags,0);if(!(uc&4)){const Go=La.value;uc&296&&!xAe(Go,!0)&&(uc&=-297),uc&2112&&!kF(Go,!0)&&(uc&=-2113);const Ze=Du(i_,(ye,vr)=>vr.flags&uc?ye.flags&4?ye:vr.flags&4?La:ye.flags&134217728?ye:vr.flags&134217728&&AZ(La,vr)?La:ye.flags&268435456?ye:vr.flags&268435456&&Go===Twe(vr.symbol,Go)?La:ye.flags&128?ye:vr.flags&128&&vr.value===Go?vr:ye.flags&8?ye:vr.flags&8?Od(+Go):ye.flags&32?ye:vr.flags&32?Od(+Go):ye.flags&256?ye:vr.flags&256&&vr.value===+Go?vr:ye.flags&64?ye:vr.flags&64?xit(Go):ye.flags&2048?ye:vr.flags&2048&&e2(vr.value)===Go?vr:ye.flags&16?ye:vr.flags&16?Go==="true"?Er:Go==="false"?Jt:fi:ye.flags&512?ye:vr.flags&512&&vr.intrinsicName===Go?vr:ye.flags&32768?ye:vr.flags&32768&&vr.intrinsicName===Go?vr:ye.flags&65536?ye:vr.flags&65536&&vr.intrinsicName===Go?vr:ye:ye,Cn);if(!(Ze.flags&131072)){_e(Ze,Xa);continue}}}}_e(La,Xa)}}function Ki(Sr,jr){_e(Jf(Sr),Jf(jr)),_e(Dh(Sr),Dh(jr));const Bi=E0(Sr),sn=E0(jr);Bi&&sn&&_e(Bi,sn)}function hs(Sr,jr){var Bi,sn;if(bn(Sr)&4&&bn(jr)&4&&(Sr.target===jr.target||up(Sr)&&up(jr))){Ur(bo(Sr),bo(jr),qme(Sr.target));return}if(g_(Sr)&&g_(jr)&&Ki(Sr,jr),bn(jr)&32&&!jr.declaration.nameType){const cs=Jf(jr);if(Ir(Sr,jr,cs))return}if(!Sit(Sr,jr)){if(Cv(Sr)){if(da(jr)){const cs=D0(Sr),La=D0(jr),Xa=bo(jr),du=jr.target.elementFlags;if(da(Sr)&&tit(Sr,jr)){for(let uc=0;uc0){const La=Es(jr,Bi),Xa=La.length;for(let du=0;du1){const a=An(r,uge);if(a.length){const l=Bn(a,2);return es(An(r,_=>!uge(_)),[l])}}return r}function wit(r){return r.priority&416?Xs(r.contraCandidates):$nt(r.contraCandidates)}function Ait(r,a){const l=Dit(r.candidates),_=Pit(r.typeParameter)||$S(r.typeParameter),m=!_&&r.topLevel&&(r.isFixed||!git(a,r.typeParameter)),h=_?rl(l,Uu):m?rl(l,tb):l,x=r.priority&416?Bn(h,2):Gnt(h);return gf(x)}function _ge(r,a){const l=r.inferences[a];if(!l.inferredType){let _,m;if(r.signature){const x=l.candidates?Ait(l,r.signature):void 0,N=l.contraCandidates?wit(l):void 0;if(x||N){const L=x&&(!N||!(x.flags&131072)&&ct(l.contraCandidates,z=>r1(x,z))&&Wi(r.inferences,z=>z!==l&&r_(z.typeParameter)!==l.typeParameter||Wi(z.candidates,Z=>r1(Z,x))));_=L?x:N,m=L?N:x}else if(r.flags&1)_=Qi;else{const L=XS(l.typeParameter);L&&(_=zi(L,ont(ant(r,a),r.nonFixingMapper)))}}else _=SAe(l);l.inferredType=_||fge(!!(r.flags&2));const h=r_(l.typeParameter);if(h){const x=zi(h,r.nonFixingMapper);(!_||!r.compareTypes(_,mf(x,_)))&&(l.inferredType=m&&r.compareTypes(m,mf(x,m))?m:x)}}return l.inferredType}function fge(r){return r?B:Kt}function pge(r){const a=[];for(let l=0;lBu(a)||Gp(a)||z_(a)))}function NZ(r,a,l,_){switch(r.kind){case 80:if(!JT(r)){const x=od(r);return x!==tt?`${_?Oa(_):"-1"}|${Vu(a)}|${Vu(l)}|${Ks(x)}`:void 0}case 110:return`0|${_?Oa(_):"-1"}|${Vu(a)}|${Vu(l)}`;case 235:case 217:return NZ(r.expression,a,l,_);case 166:const m=NZ(r.left,a,l,_);return m&&m+"."+r.right.escapedText;case 211:case 212:const h=iT(r);if(h!==void 0){const x=NZ(r.expression,a,l,_);return x&&x+"."+h}break;case 206:case 207:case 262:case 218:case 219:case 174:return`${Oa(r)}#${Vu(a)}`}}function Xl(r,a){switch(a.kind){case 217:case 235:return Xl(r,a.expression);case 226:return nl(a)&&Xl(r,a.left)||Zr(a)&&a.operatorToken.kind===28&&Xl(r,a.right)}switch(r.kind){case 236:return a.kind===236&&r.keywordToken===a.keywordToken&&r.name.escapedText===a.name.escapedText;case 80:case 81:return JT(r)?a.kind===110:a.kind===80&&od(r)===od(a)||(hi(a)||Ea(a))&&Rf(od(r))===un(a);case 110:return a.kind===110;case 108:return a.kind===108;case 235:case 217:return Xl(r.expression,a);case 211:case 212:const l=iT(r),_=oo(a)?iT(a):void 0;return l!==void 0&&_!==void 0&&_===l&&Xl(r.expression,a.expression);case 166:return oo(a)&&r.right.escapedText===iT(a)&&Xl(r.left,a.expression);case 226:return Zr(r)&&r.operatorToken.kind===28&&Xl(r.right,a)}return!1}function iT(r){if(Sn(r))return r.name.escapedText;if(ko(r))return Nit(r);if(Ea(r)){const a=Da(r);return a?Wo(a):void 0}if(rs(r))return""+r.parent.parameters.indexOf(r)}function mge(r){return r.flags&8192?r.escapedName:r.flags&384?Wo(""+r.value):void 0}function Nit(r){return Tf(r.argumentExpression)?Wo(r.argumentExpression.text):pc(r.argumentExpression)?Iit(r.argumentExpression):void 0}function Iit(r){const a=yo(r,111551,!0);if(!a||!(YP(a)||a.flags&8))return;const l=a.valueDeclaration;if(l===void 0)return;const _=Mi(l);if(_){const m=mge(_);if(m!==void 0)return m}if(xb(l)&&yh(l,r)){const m=k8(l);if(m){const h=Ns(l.parent)?pm(l):Yl(m);return h&&mge(h)}if(p2(l))return Kk(l.name)}}function DAe(r,a){for(;oo(r);)if(r=r.expression,Xl(r,a))return!0;return!1}function sT(r,a){for(;hu(r);)if(r=r.expression,Xl(r,a))return!0;return!1}function GP(r,a){if(r&&r.flags&1048576){const l=w8e(r,a);if(l&&Ko(l)&2)return l.links.isDiscriminantProperty===void 0&&(l.links.isDiscriminantProperty=(l.links.checkFlags&192)===192&&!S4(Xr(l))),!!l.links.isDiscriminantProperty}return!1}function wAe(r,a){let l;for(const _ of r)if(GP(a,_.escapedName)){if(l){l.push(_);continue}l=[_]}return l}function Fit(r,a){const l=new Map;let _=0;for(const m of r)if(m.flags&61603840){const h=je(m,a);if(h){if(!xI(h))return;let x=!1;oT(h,N=>{const L=Vu(Uu(N)),z=l.get(L);z?z!==Kt&&(l.set(L,Kt),x=!0):l.set(L,m)}),x||_++}}return _>=10&&_*2>=r.length?l:void 0}function uj(r){const a=r.types;if(!(a.length<10||bn(r)&32768||j0(a,l=>!!(l.flags&59506688))<10)){if(r.keyPropertyName===void 0){const l=er(a,m=>m.flags&59506688?er(Ua(m),h=>Ld(Xr(h))?h.escapedName:void 0):void 0),_=l&&Fit(a,l);r.keyPropertyName=_?l:"",r.constituentMap=_}return r.keyPropertyName.length?r.keyPropertyName:void 0}}function _j(r,a){var l;const _=(l=r.constituentMap)==null?void 0:l.get(Vu(Uu(a)));return _!==Kt?_:void 0}function AAe(r,a){const l=uj(r),_=l&&je(a,l);return _&&_j(r,_)}function Oit(r,a){const l=uj(r),_=l&&wn(a.properties,h=>h.symbol&&h.kind===303&&h.symbol.escapedName===l&&vj(h.initializer)),m=_&&zj(_.initializer);return m&&_j(r,m)}function NAe(r,a){return Xl(r,a)||DAe(r,a)}function IAe(r,a){if(r.arguments){for(const l of r.arguments)if(NAe(a,l)||sT(l,a))return!0}return!!(r.expression.kind===211&&NAe(a,r.expression.expression))}function gge(r){return(!r.id||r.id<0)&&(r.id=Lse,Lse++),r.id}function Lit(r,a){if(!(r.flags&1048576))return Qs(r,a);for(const l of r.types)if(Qs(l,a))return!0;return!1}function Mit(r,a){if(r===a)return r;if(a.flags&131072)return a;const l=`A${Vu(r)},${Vu(a)}`;return Zx(l)??Dy(l,Rit(r,a))}function Rit(r,a){const l=Mc(r,m=>Lit(a,m)),_=a.flags&512&&Z2(a)?jo(l,vk):l;return Qs(a,_)?_:r}function hge(r){const a=Id(r);return!!(a.callSignatures.length||a.constructSignatures.length||a.members.get("bind")&&r1(r,kt))}function $P(r,a){return yge(r,a)&a}function Fp(r,a){return $P(r,a)!==0}function yge(r,a){r.flags&467927040&&(r=fu(r)||Kt);const l=r.flags;if(l&268435460)return q?16317953:16776705;if(l&134217856){const _=l&128&&r.value==="";return q?_?12123649:7929345:_?12582401:16776705}if(l&40)return q?16317698:16776450;if(l&256){const _=r.value===0;return q?_?12123394:7929090:_?12582146:16776450}if(l&64)return q?16317188:16775940;if(l&2048){const _=pAe(r);return q?_?12122884:7928580:_?12581636:16775940}return l&16?q?16316168:16774920:l&528?q?r===Jt||r===ar?12121864:7927560:r===Jt||r===ar?12580616:16774920:l&524288?a&(q?83427327:83886079)?bn(r)&16&&Fh(r)?q?83427327:83886079:hge(r)?q?7880640:16728e3:q?7888800:16736160:0:l&16384?9830144:l&32768?26607360:l&65536?42917664:l&12288?q?7925520:16772880:l&67108864?q?7888800:16736160:l&131072?0:l&1048576?Du(r.types,(_,m)=>_|yge(m,a),0):l&2097152?jit(r,a):83886079}function jit(r,a){const l=nc(r,402784252);let _=0,m=134217727;for(const h of r.types)if(!(l&&h.flags&524288)){const x=yge(h,a);_|=x,m&=x}return _&8256|m&134209471}function Op(r,a){return Mc(r,l=>Fp(l,a))}function aT(r,a){const l=FAe(Op(q&&r.flags&2?Mo:r,a));if(q)switch(a){case 524288:return jo(l,_=>Fp(_,65536)?Xs([_,Fp(_,131072)&&!nc(l,65536)?Bn([oa,ce]):oa]):_);case 1048576:return jo(l,_=>Fp(_,131072)?Xs([_,Fp(_,65536)&&!nc(l,32768)?Bn([oa,Pe]):oa]):_);case 2097152:case 4194304:return jo(l,_=>Fp(_,262144)?iit(_):_)}return l}function FAe(r){return r===Mo?Kt:r}function vge(r,a){return a?Bn([Zn(r),Yl(a)]):r}function OAe(r,a){var l;const _=w0(a);if(!Sp(_))return nt;const m=Tp(_);return je(r,m)||wI((l=mk(r,m))==null?void 0:l.type)||nt}function LAe(r,a){return N_(r,qP)&&Xnt(r,a)||wI(F0(65,r,Pe,void 0))||nt}function wI(r){return r&&(j.noUncheckedIndexedAccess?Bn([r,A]):r)}function MAe(r){return pu(F0(65,r,Pe,void 0)||nt)}function Bit(r){return r.parent.kind===209&&bge(r.parent)||r.parent.kind===303&&bge(r.parent.parent)?vge(fj(r),r.right):Yl(r.right)}function bge(r){return r.parent.kind===226&&r.parent.left===r||r.parent.kind===250&&r.parent.initializer===r}function Jit(r,a){return LAe(fj(r),r.elements.indexOf(a))}function zit(r){return MAe(fj(r.parent))}function RAe(r){return OAe(fj(r.parent),r.name)}function Wit(r){return vge(RAe(r),r.objectAssignmentInitializer)}function fj(r){const{parent:a}=r;switch(a.kind){case 249:return Ce;case 250:return Gj(a)||nt;case 226:return Bit(a);case 220:return Pe;case 209:return Jit(a,r);case 230:return zit(a);case 303:return RAe(a);case 304:return Wit(a)}return nt}function Vit(r){const a=r.parent,l=BAe(a.parent),_=a.kind===206?OAe(l,r.propertyName||r.name):r.dotDotDotToken?MAe(l):LAe(l,a.elements.indexOf(r));return vge(_,r.initializer)}function jAe(r){return jn(r).resolvedType||Yl(r)}function Uit(r){return r.initializer?jAe(r.initializer):r.parent.parent.kind===249?Ce:r.parent.parent.kind===250&&Gj(r.parent.parent)||nt}function BAe(r){return r.kind===260?Uit(r):Vit(r)}function qit(r){return r.kind===260&&r.initializer&&Vy(r.initializer)||r.kind!==208&&r.parent.kind===226&&Vy(r.parent.right)}function rb(r){switch(r.kind){case 217:return rb(r.expression);case 226:switch(r.operatorToken.kind){case 64:case 76:case 77:case 78:return rb(r.left);case 28:return rb(r.right)}}return r}function JAe(r){const{parent:a}=r;return a.kind===217||a.kind===226&&a.operatorToken.kind===64&&a.left===r||a.kind===226&&a.operatorToken.kind===28&&a.right===r?JAe(a):r}function Hit(r){return r.kind===296?Uu(Yl(r.expression)):Cn}function IZ(r){const a=jn(r);if(!a.switchTypes){a.switchTypes=[];for(const l of r.caseBlock.clauses)a.switchTypes.push(Hit(l))}return a.switchTypes}function zAe(r){if(ct(r.caseBlock.clauses,l=>l.kind===296&&!Ma(l.expression)))return;const a=[];for(const l of r.caseBlock.clauses){const _=l.kind===296?l.expression.text:void 0;a.push(_&&!bs(a,_)?_:void 0)}return a}function Git(r,a){return r.flags&1048576?!er(r.types,l=>!bs(a,l)):bs(a,r)}function XP(r,a){return!!(r===a||r.flags&131072||a.flags&1048576&&$it(r,a))}function $it(r,a){if(r.flags&1048576){for(const l of r.types)if(!Ah(a.types,l))return!1;return!0}return r.flags&1056&&BY(r)===a?!0:Ah(a.types,r)}function oT(r,a){return r.flags&1048576?er(r.types,a):a(r)}function cd(r,a){return r.flags&1048576?ct(r.types,a):a(r)}function N_(r,a){return r.flags&1048576?Wi(r.types,a):a(r)}function Xit(r,a){return r.flags&3145728?Wi(r.types,a):a(r)}function Mc(r,a){if(r.flags&1048576){const l=r.types,_=An(l,a);if(_===l)return r;const m=r.origin;let h;if(m&&m.flags&1048576){const x=m.types,N=An(x,L=>!!(L.flags&1048576)||a(L));if(x.length-N.length===l.length-_.length){if(N.length===1)return N[0];h=bme(1048576,N)}}return Tme(_,r.objectFlags&16809984,void 0,void 0,h)}return r.flags&131072||a(r)?r:Cn}function FZ(r,a){return Mc(r,l=>l!==a)}function Qit(r){return r.flags&1048576?r.types.length:1}function jo(r,a,l){if(r.flags&131072)return r;if(!(r.flags&1048576))return a(r);const _=r.origin,m=_&&_.flags&1048576?_.types:r.types;let h,x=!1;for(const N of m){const L=N.flags&1048576?jo(N,a,l):a(N);x||(x=N!==L),L&&(h?h.push(L):h=[L])}return x?h&&Bn(h,l?0:1):r}function WAe(r,a,l,_){return r.flags&1048576&&l?Bn(nr(r.types,a),1,l,_):jo(r,a)}function QP(r,a){return Mc(r,l=>(l.flags&a)!==0)}function VAe(r,a){return nc(r,134217804)&&nc(a,402655616)?jo(r,l=>l.flags&4?QP(a,402653316):ZS(l)&&!nc(a,402653188)?QP(a,128):l.flags&8?QP(a,264):l.flags&64?QP(a,2112):l):r}function k4(r){return r.flags===0}function cT(r){return r.flags===0?r.type:r}function C4(r,a){return a?{flags:0,type:r.flags&131072?Qi:r}:r}function Yit(r){const a=np(256);return a.elementType=r,a}function Sge(r){return br[r.id]||(br[r.id]=Yit(r))}function UAe(r,a){const l=EI(Oh(zj(a)));return XP(l,r.elementType)?r:Sge(Bn([r.elementType,l]))}function Zit(r){return r.flags&131072?hl:pu(r.flags&1048576?Bn(r.types,2):r)}function Kit(r){return r.finalArrayType||(r.finalArrayType=Zit(r.elementType))}function pj(r){return bn(r)&256?Kit(r):r}function est(r){return bn(r)&256?r.elementType:Cn}function tst(r){let a=!1;for(const l of r)if(!(l.flags&131072)){if(!(bn(l)&256))return!1;a=!0}return a}function qAe(r){const a=JAe(r),l=a.parent,_=Sn(l)&&(l.name.escapedText==="length"||l.parent.kind===213&&Ie(l.name)&&tW(l.name)),m=l.kind===212&&l.expression===a&&l.parent.kind===226&&l.parent.operatorToken.kind===64&&l.parent.left===l&&!vg(l.parent)&&Ql(Yl(l.argumentExpression),296);return _||m}function rst(r){return(hi(r)||xs(r)||B_(r)||rs(r))&&!!(Vl(r)||Hr(r)&&Z0(r)&&r.initializer&&t2(r.initializer)&&bp(r.initializer))}function OZ(r,a){if(r=mc(r),r.flags&8752)return Xr(r);if(r.flags&7){if(Ko(r)&262144){const _=r.links.syntheticOrigin;if(_&&OZ(_))return Xr(r)}const l=r.valueDeclaration;if(l){if(rst(l))return Xr(r);if(hi(l)&&l.parent.parent.kind===250){const _=l.parent.parent,m=dj(_.expression,void 0);if(m){const h=_.awaitModifier?15:13;return F0(h,m,Pe,void 0)}}a&&la(a,yn(l,p._0_needs_an_explicit_type_annotation,ni(r)))}}}function dj(r,a){if(!(r.flags&67108864))switch(r.kind){case 80:const l=Rf(od(r));return OZ(l,a);case 110:return xst(r);case 108:return Dge(r);case 211:{const _=dj(r.expression,a);if(_){const m=r.name;let h;if(Pi(m)){if(!_.symbol)return;h=$s(_,W8(_.symbol,m.escapedText))}else h=$s(_,m.escapedText);return h&&OZ(h,a)}return}case 217:return dj(r.expression,a)}}function mj(r){const a=jn(r);let l=a.effectsSignature;if(l===void 0){let _;if(Zr(r)){const x=E4(r.right);_=vhe(x)}else r.parent.kind===244?_=dj(r.expression,void 0):r.expression.kind!==108&&(hu(r)?_=gm(kI(Hi(r.expression),r.expression),r.expression):_=E4(r.expression));const m=Es(_&&n_(_)||Kt,0),h=m.length===1&&!m[0].typeParameters?m[0]:ct(m,HAe)?D4(r):void 0;l=a.effectsSignature=h&&HAe(h)?h:Xt}return l===Xt?void 0:l}function HAe(r){return!!(op(r)||r.declaration&&(g4(r.declaration)||Kt).flags&131072)}function nst(r,a){if(r.kind===1||r.kind===3)return a.arguments[r.parameterIndex];const l=Va(a.expression);return oo(l)?Va(l.expression):void 0}function ist(r){const a=Pr(r,nz),l=wr(r),_=Im(l,a.statements.pos);wa.add(xl(l,_.start,_.length,p.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function gj(r){const a=LZ(r,!1);return bt=r,Nt=a,a}function hj(r){const a=Va(r,!0);return a.kind===97||a.kind===226&&(a.operatorToken.kind===56&&(hj(a.left)||hj(a.right))||a.operatorToken.kind===57&&hj(a.left)&&hj(a.right))}function LZ(r,a){for(;;){if(r===bt)return Nt;const l=r.flags;if(l&4096){if(!a){const _=gge(r),m=vS[_];return m!==void 0?m:vS[_]=LZ(r,!0)}a=!1}if(l&368)r=r.antecedent;else if(l&512){const _=mj(r.node);if(_){const m=op(_);if(m&&m.kind===3&&!m.type){const h=r.node.arguments[m.parameterIndex];if(h&&hj(h))return!1}if(Ja(_).flags&131072)return!1}r=r.antecedent}else{if(l&4)return ct(r.antecedents,_=>LZ(_,!1));if(l&8){const _=r.antecedents;if(_===void 0||_.length===0)return!1;r=_[0]}else if(l&128){if(r.clauseStart===r.clauseEnd&&PIe(r.switchStatement))return!1;r=r.antecedent}else if(l&1024){bt=void 0;const _=r.target,m=_.antecedents;_.antecedents=r.antecedents;const h=LZ(r.antecedent,!1);return _.antecedents=m,h}else return!(l&1)}}}function MZ(r,a){for(;;){const l=r.flags;if(l&4096){if(!a){const _=gge(r),m=Yx[_];return m!==void 0?m:Yx[_]=MZ(r,!0)}a=!1}if(l&496)r=r.antecedent;else if(l&512){if(r.node.expression.kind===108)return!0;r=r.antecedent}else{if(l&4)return Wi(r.antecedents,_=>MZ(_,!1));if(l&8)r=r.antecedents[0];else if(l&1024){const _=r.target,m=_.antecedents;_.antecedents=r.antecedents;const h=MZ(r.antecedent,!1);return _.antecedents=m,h}else return!!(l&1)}}}function GAe(r){switch(r.kind){case 110:return!0;case 80:if(!JT(r)){const l=od(r);return YP(l)||jZ(l)&&!$Ae(l)}break;case 211:case 212:return GAe(r.expression)&&Rd(jn(r).resolvedSymbol||tt);case 206:case 207:const a=Hd(r.parent);return rs(a)||vne(a)?!Tge(a):hi(a)&&Kj(a)}return!1}function o1(r,a,l=a,_,m=(h=>(h=Wn(r,O8))==null?void 0:h.flowNode)()){let h,x=!1,N=0;if(Ae)return nt;if(!m)return a;We++;const L=dh,z=cT(_e(m));dh=L;const Z=bn(z)&256&&qAe(r)?hl:pj(z);if(Z===ci||r.parent&&r.parent.kind===235&&!(Z.flags&131072)&&Op(Z,2097152).flags&131072)return a;return Z===W?Kt:Z;function de(){return x?h:(x=!0,h=NZ(r,a,l,_))}function _e(Qe){var xt;if(N===2e3)return(xt=qr)==null||xt.instant(qr.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:Qe.id}),Ae=!0,ist(r),nt;N++;let Qt;for(;;){const It=Qe.flags;if(It&4096){for(let xr=L;xr=0&&Qt.parameterIndex!(xr.flags&163840)):xt.kind===221&&sT(xt.expression,r)&&(It=La(It,Qe.switchStatement,Qe.clauseStart,Qe.clauseEnd,xr=>!(xr.flags&131072||xr.flags&128&&xr.value==="undefined"))));const Zt=Ir(xt,It);Zt&&(It=Ki(It,Zt,Qe.switchStatement,Qe.clauseStart,Qe.clauseEnd))}return C4(It,k4(Qt))}function Gt(Qe){const xt=[];let Qt=!1,It=!1,Zt;for(const xr of Qe.antecedents){if(!Zt&&xr.flags&128&&xr.clauseStart===xr.clauseEnd){Zt=xr;continue}const mi=_e(xr),xn=cT(mi);if(xn===a&&a===l)return xn;zf(xt,xn),XP(xn,l)||(Qt=!0),k4(mi)&&(It=!0)}if(Zt){const xr=_e(Zt),mi=cT(xr);if(!(mi.flags&131072)&&!bs(xt,mi)&&!PIe(Zt.switchStatement)){if(mi===a&&a===l)return mi;xt.push(mi),XP(mi,l)||(Qt=!0),k4(xr)&&(It=!0)}}return C4(kr(xt,Qt?2:1),It)}function Cr(Qe){const xt=gge(Qe),Qt=Hx[xt]||(Hx[xt]=new Map),It=de();if(!It)return a;const Zt=Qt.get(It);if(Zt)return Zt;for(let dr=om;dr{const dr=dt(ys,It)||Kt;return!(dr.flags&131072)&&!(xn.flags&131072)&&tj(xn,dr)})}function ss(Qe,xt,Qt,It,Zt){if((Qt===37||Qt===38)&&Qe.flags&1048576){const xr=uj(Qe);if(xr&&xr===iT(xt)){const mi=_j(Qe,Yl(It));if(mi)return Qt===(Zt?37:38)?mi:Ld(je(mi,xr)||Kt)?FZ(Qe,mi):Qe}}return Jr(Qe,xt,xr=>Bi(xr,Qt,It,Zt))}function Ki(Qe,xt,Qt,It,Zt){if(It_j(Qe,xn)||Kt));if(mi!==Kt)return mi}return Jr(Qe,xt,xr=>Xa(xr,Qt,It,Zt))}function hs(Qe,xt,Qt){if(Xl(r,xt))return aT(Qe,Qt?4194304:8388608);q&&Qt&&sT(xt,r)&&(Qe=aT(Qe,2097152));const It=Ir(xt,Qe);return It?Jr(Qe,It,Zt=>Op(Zt,Qt?4194304:8388608)):Qe}function Gi(Qe,xt,Qt){const It=$s(Qe,xt);return It?!!(It.flags&16777216||Ko(It)&48)||Qt:!!mk(Qe,xt)||!Qt}function el(Qe,xt,Qt){const It=Tp(xt);if(cd(Qe,xr=>Gi(xr,It,!0)))return Mc(Qe,xr=>Gi(xr,It,Qt));if(Qt){const xr=lrt();if(xr)return Xs([Qe,y4(xr,[xt,Kt])])}return Qe}function _p(Qe,xt,Qt,It,Zt){return Zt=Zt!==(Qt.kind===112)!=(It!==38&&It!==36),Pn(Qe,xt,Zt)}function I_(Qe,xt,Qt){switch(xt.operatorToken.kind){case 64:case 76:case 77:case 78:return hs(Pn(Qe,xt.right,Qt),xt.left,Qt);case 35:case 36:case 37:case 38:const It=xt.operatorToken.kind,Zt=rb(xt.left),xr=rb(xt.right);if(Zt.kind===221&&Ma(xr))return sn(Qe,Zt,It,xr,Qt);if(xr.kind===221&&Ma(Zt))return sn(Qe,xr,It,Zt,Qt);if(Xl(r,Zt))return Bi(Qe,It,xr,Qt);if(Xl(r,xr))return Bi(Qe,It,Zt,Qt);q&&(sT(Zt,r)?Qe=jr(Qe,It,xr,Qt):sT(xr,r)&&(Qe=jr(Qe,It,Zt,Qt)));const mi=Ir(Zt,Qe);if(mi)return ss(Qe,mi,It,xr,Qt);const xn=Ir(xr,Qe);if(xn)return ss(Qe,xn,It,Zt,Qt);if(Go(Zt))return Ze(Qe,It,xr,Qt);if(Go(xr))return Ze(Qe,It,Zt,Qt);if(uE(xr)&&!oo(Zt))return _p(Qe,Zt,xr,It,Qt);if(uE(Zt)&&!oo(xr))return _p(Qe,xr,Zt,It,Qt);break;case 104:return ye(Qe,xt,Qt);case 103:if(Pi(xt.left))return Sr(Qe,xt,Qt);const ys=rb(xt.right);if(CI(Qe)&&oo(r)&&Xl(r.expression,ys)){const dr=Yl(xt.left);if(Sp(dr)&&iT(r)===Tp(dr))return Op(Qe,Qt?524288:65536)}if(Xl(r,ys)){const dr=Yl(xt.left);if(Sp(dr))return el(Qe,dr,Qt)}break;case 28:return Pn(Qe,xt.right,Qt);case 56:return Qt?Pn(Pn(Qe,xt.left,!0),xt.right,!0):Bn([Pn(Qe,xt.left,!1),Pn(Qe,xt.right,!1)]);case 57:return Qt?Bn([Pn(Qe,xt.left,!0),Pn(Qe,xt.right,!0)]):Pn(Pn(Qe,xt.left,!1),xt.right,!1)}return Qe}function Sr(Qe,xt,Qt){const It=rb(xt.right);if(!Xl(r,It))return Qe;E.assertNode(xt.left,Pi);const Zt=XZ(xt.left);if(Zt===void 0)return Qe;const xr=Zt.parent,mi=Bc(E.checkDefined(Zt.valueDeclaration,"should always have a declaration"))?Xr(xr):Eo(xr);return mn(Qe,mi,Qt,!0)}function jr(Qe,xt,Qt,It){const Zt=xt===35||xt===37,xr=xt===35||xt===36?98304:32768,mi=Yl(Qt);return Zt!==It&&N_(mi,ys=>!!(ys.flags&xr))||Zt===It&&N_(mi,ys=>!(ys.flags&(3|xr)))?aT(Qe,2097152):Qe}function Bi(Qe,xt,Qt,It){if(Qe.flags&1)return Qe;(xt===36||xt===38)&&(It=!It);const Zt=Yl(Qt),xr=xt===35||xt===36;if(Zt.flags&98304){if(!q)return Qe;const mi=xr?It?262144:2097152:Zt.flags&65536?It?131072:1048576:It?65536:524288;return aT(Qe,mi)}if(It){if(!xr&&(Qe.flags&2||cd(Qe,sg))){if(Zt.flags&469893116||sg(Zt))return Zt;if(Zt.flags&524288)return In}const mi=Mc(Qe,xn=>tj(xn,Zt)||xr&&sit(xn,Zt));return VAe(mi,Zt)}return Ld(Zt)?Mc(Qe,mi=>!(lAe(mi)&&tj(mi,Zt))):Qe}function sn(Qe,xt,Qt,It,Zt){(Qt===36||Qt===38)&&(Zt=!Zt);const xr=rb(xt.expression);if(!Xl(r,xr)){q&&sT(xr,r)&&Zt===(It.text!=="undefined")&&(Qe=aT(Qe,2097152));const mi=Ir(xr,Qe);return mi?Jr(Qe,mi,xn=>cs(xn,It,Zt)):Qe}return cs(Qe,It,Zt)}function cs(Qe,xt,Qt){return Qt?du(Qe,xt.text):aT(Qe,$U.get(xt.text)||32768)}function La(Qe,xt,Qt,It,Zt){return Qt!==It&&Wi(IZ(xt).slice(Qt,It),Zt)?Op(Qe,2097152):Qe}function Xa(Qe,xt,Qt,It){const Zt=IZ(xt);if(!Zt.length)return Qe;const xr=Zt.slice(Qt,It),mi=Qt===It||bs(xr,Cn);if(Qe.flags&2&&!mi){let Jn;for(let Fi=0;Fitj(xn,Jn)),xn);if(!mi)return ys;const dr=Mc(Qe,Jn=>!(lAe(Jn)&&bs(Zt,Uu(Ynt(Jn)))));return ys.flags&131072?dr:Bn([ys,dr])}function du(Qe,xt){switch(xt){case"string":return ma(Qe,Ce,1);case"number":return ma(Qe,_t,2);case"bigint":return ma(Qe,Tt,4);case"boolean":return ma(Qe,fi,8);case"symbol":return ma(Qe,oi,16);case"object":return Qe.flags&1?Qe:Bn([ma(Qe,In,32),ma(Qe,ce,131072)]);case"function":return Qe.flags&1?Qe:ma(Qe,kt,64);case"undefined":return ma(Qe,Pe,65536)}return ma(Qe,In,128)}function ma(Qe,xt,Qt){return jo(Qe,It=>mm(It,xt,tp)?Fp(It,Qt)?It:Cn:r1(xt,It)?xt:Fp(It,Qt)?Xs([It,xt]):Cn)}function i_(Qe,xt,Qt,It){const Zt=zAe(xt);if(!Zt)return Qe;const xr=vc(xt.caseBlock.clauses,ys=>ys.kind===297);if(Qt===It||xr>=Qt&&xr$P(dr,ys)===ys)}const xn=Zt.slice(Qt,It);return Bn(nr(xn,ys=>ys?du(Qe,ys):Cn))}function uc(Qe,xt,Qt,It){const Zt=vc(xt.caseBlock.clauses,xn=>xn.kind===297),xr=Qt===It||Zt>=Qt&&Ztxn.kind===296?Pn(Qe,xn.expression,!0):Cn))}function Go(Qe){return(Sn(Qe)&&on(Qe.name)==="constructor"||ko(Qe)&&Ma(Qe.argumentExpression)&&Qe.argumentExpression.text==="constructor")&&Xl(r,Qe.expression)}function Ze(Qe,xt,Qt,It){if(It?xt!==35&&xt!==37:xt!==36&&xt!==38)return Qe;const Zt=Yl(Qt);if(!Xhe(Zt)&&!Ia(Zt))return Qe;const xr=$s(Zt,"prototype");if(!xr)return Qe;const mi=Xr(xr),xn=ht(mi)?void 0:mi;if(!xn||xn===Te||xn===kt)return Qe;if(ht(Qe))return xn;return Mc(Qe,dr=>ys(dr,xn));function ys(dr,Jn){return dr.flags&524288&&bn(dr)&1||Jn.flags&524288&&bn(Jn)&1?dr.symbol===Jn.symbol:r1(dr,Jn)}}function ye(Qe,xt,Qt){const It=rb(xt.left);if(!Xl(r,It))return Qt&&q&&sT(It,r)?aT(Qe,2097152):Qe;const Zt=xt.right,xr=Yl(Zt);if(!kv(xr,Te))return Qe;const mi=mj(xt),xn=mi&&op(mi);if(xn&&xn.kind===1&&xn.parameterIndex===0)return mn(Qe,xn.type,Qt,!0);if(!kv(xr,kt))return Qe;const ys=jo(xr,vr);return ht(Qe)&&(ys===Te||ys===kt)||!Qt&&!(ys.flags&524288&&!sg(ys))?Qe:mn(Qe,ys,Qt,!0)}function vr(Qe){const xt=je(Qe,"prototype");if(xt&&!ht(xt))return xt;const Qt=Es(Qe,1);return Qt.length?Bn(nr(Qt,It=>Ja(fI(It)))):oa}function mn(Qe,xt,Qt,It){const Zt=Qe.flags&1048576?`N${Vu(Qe)},${Vu(xt)},${(Qt?1:0)|(It?2:0)}`:void 0;return Zx(Zt)??Dy(Zt,Xn(Qe,xt,Qt,It))}function Xn(Qe,xt,Qt,It){if(!Qt){if(Qe===xt)return Cn;if(It)return Mc(Qe,ys=>!kv(ys,xt));const xn=mn(Qe,xt,!0,!1);return Mc(Qe,ys=>!XP(ys,xn))}if(Qe.flags&3||Qe===xt)return xt;const Zt=It?kv:r1,xr=Qe.flags&1048576?uj(Qe):void 0,mi=jo(xt,xn=>{const ys=xr&&je(xn,xr),dr=ys&&_j(Qe,ys),Jn=jo(dr||Qe,It?Fi=>kv(Fi,xn)?Fi:kv(xn,Fi)?xn:Cn:Fi=>ej(Fi,xn)?Fi:ej(xn,Fi)?xn:r1(Fi,xn)?Fi:r1(xn,Fi)?xn:Cn);return Jn.flags&131072?jo(Qe,Fi=>nc(Fi,465829888)&&Zt(xn,fu(Fi)||Kt)?Xs([Fi,xn]):Cn):Jn});return mi.flags&131072?r1(xt,Qe)?xt:Qs(Qe,xt)?Qe:Qs(xt,Qe)?xt:Xs([Qe,xt]):mi}function si(Qe,xt,Qt){if(IAe(xt,r)){const It=Qt||!yb(xt)?mj(xt):void 0,Zt=It&&op(It);if(Zt&&(Zt.kind===0||Zt.kind===1))return ai(Qe,Zt,xt,Qt)}if(CI(Qe)&&oo(r)&&Sn(xt.expression)){const It=xt.expression;if(Xl(r.expression,rb(It.expression))&&Ie(It.name)&&It.name.escapedText==="hasOwnProperty"&&xt.arguments.length===1){const Zt=xt.arguments[0];if(Ma(Zt)&&iT(r)===Wo(Zt.text))return Op(Qe,Qt?524288:65536)}}return Qe}function ai(Qe,xt,Qt,It){if(xt.type&&!(ht(Qe)&&(xt.type===Te||xt.type===kt))){const Zt=nst(xt,Qt);if(Zt){if(Xl(r,Zt))return mn(Qe,xt.type,It,!1);q&&sT(Zt,r)&&(It&&!Fp(xt.type,65536)||!It&&N_(xt.type,Cj))&&(Qe=aT(Qe,2097152));const xr=Ir(Zt,Qe);if(xr)return Jr(Qe,xr,mi=>mn(mi,xt.type,It,!1))}}return Qe}function Pn(Qe,xt,Qt){if(H7(xt)||Zr(xt.parent)&&(xt.parent.operatorToken.kind===61||xt.parent.operatorToken.kind===78)&&xt.parent.left===xt)return _n(Qe,xt,Qt);switch(xt.kind){case 80:if(!Xl(r,xt)&&w<5){const It=od(xt);if(YP(It)){const Zt=It.valueDeclaration;if(Zt&&hi(Zt)&&!Zt.type&&Zt.initializer&&GAe(r)){w++;const xr=Pn(Qe,Zt.initializer,Qt);return w--,xr}}}case 110:case 108:case 211:case 212:return hs(Qe,xt,Qt);case 213:return si(Qe,xt,Qt);case 217:case 235:return Pn(Qe,xt.expression,Qt);case 226:return I_(Qe,xt,Qt);case 224:if(xt.operator===54)return Pn(Qe,xt.operand,!Qt);break}return Qe}function _n(Qe,xt,Qt){if(Xl(r,xt))return aT(Qe,Qt?2097152:262144);const It=Ir(xt,Qe);return It?Jr(Qe,It,Zt=>Op(Zt,Qt?2097152:262144)):Qe}}function sst(r,a){if(r=Rf(r),(a.kind===80||a.kind===81)&&(ME(a)&&(a=a.parent),hg(a)&&(!vg(a)||VT(a)))){const l=SZ(VT(a)&&a.kind===211?GZ(a,void 0,!0):Yl(a));if(Rf(jn(a).resolvedSymbol)===r)return l}return eh(a)&&Xh(a.parent)&&ad(a.parent)?IR(a.parent.symbol):vW(a)&&VT(a.parent)?G2(r):Gy(r)}function AI(r){return Pr(r.parent,a=>As(a)&&!Db(a)||a.kind===268||a.kind===312||a.kind===172)}function $Ae(r){return!XAe(r,void 0)}function XAe(r,a){const l=Pr(r.valueDeclaration,RZ);if(!l)return!1;const _=jn(l);return _.flags&131072||(_.flags|=131072,ast(l)||YAe(l)),!r.lastAssignmentPos||a&&r.lastAssignmentPosa.kind!==232&&QAe(a.name))}function ast(r){return!!Pr(r.parent,a=>RZ(a)&&!!(jn(a).flags&131072))}function RZ(r){return fo(r)||Ni(r)}function YAe(r){switch(r.kind){case 80:if(vg(r)){const l=od(r);if(jZ(l)&&l.lastAssignmentPos!==Number.MAX_VALUE){const _=Pr(r,RZ),m=Pr(l.valueDeclaration,RZ);l.lastAssignmentPos=_===m?ost(r,l.valueDeclaration):Number.MAX_VALUE}}return;case 281:const a=r.parent.parent;if(!r.isTypeOnly&&!a.isTypeOnly&&!a.moduleSpecifier){const l=yo(r.propertyName||r.name,111551,!0,!0);l&&jZ(l)&&(l.lastAssignmentPos=Number.MAX_VALUE)}return;case 264:case 265:case 266:return}ki(r)||Ss(r,YAe)}function ost(r,a){let l=r.pos;for(;r&&r.pos>a.pos;){switch(r.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:l=r.end}r=r.parent}return l}function YP(r){return r.flags&3&&(Wge(r)&6)!==0}function jZ(r){const a=r.valueDeclaration&&Hd(r.valueDeclaration);return!!a&&(rs(a)||hi(a)&&(f2(a.parent)||cst(a)))}function cst(r){return!!(r.parent.flags&1)&&!(y1(r)&32||r.parent.parent.kind===243&&Gm(r.parent.parent.parent))}function lst(r){const a=jn(r);if(a.parameterInitializerContainsUndefined===void 0){if(!Km(r,9))return _4(r.symbol),!0;const l=!!Fp(eD(r,0),16777216);if(!fm())return _4(r.symbol),!0;a.parameterInitializerContainsUndefined=l}return a.parameterInitializerContainsUndefined}function ust(r,a){return q&&a.kind===169&&a.initializer&&Fp(r,16777216)&&!lst(a)?Op(r,524288):r}function _st(r,a){const l=a.parent;return l.kind===211||l.kind===166||l.kind===213&&l.expression===a||l.kind===212&&l.expression===a&&!(cd(r,KAe)&&eT(Yl(l.argumentExpression)))}function ZAe(r){return r.flags&2097152?ct(r.types,ZAe):!!(r.flags&465829888&&wh(r).flags&1146880)}function KAe(r){return r.flags&2097152?ct(r.types,KAe):!!(r.flags&465829888&&!nc(wh(r),98304))}function fst(r,a){const l=(Ie(r)||Sn(r)||ko(r))&&!((Kd(r.parent)||Xb(r.parent))&&r.parent.tagName===r)&&(a&&a&32?y_(r,8):y_(r,void 0));return l&&!S4(l)}function xge(r,a,l){return!(l&&l&2)&&cd(r,ZAe)&&(_st(r,a)||fst(a,l))?jo(r,wh):r}function eNe(r){return!!Pr(r,a=>{const l=a.parent;return l===void 0?"quit":oc(l)?l.expression===a&&pc(a):vu(l)?l.name===a||l.propertyName===a:!1})}function BZ(r,a){if(pt&&FS(r,111551)&&!Mb(a)){const l=cl(r);$l(r,!0)&1160127&&(xp(j)||n2(j)&&eNe(a)||!qI(Rf(l))?My(r):wl(r))}}function pst(r,a,l){var _;const m=Xr(r,l),h=r.valueDeclaration;if(h){if(Ea(h)&&!h.initializer&&!h.dotDotDotToken&&h.parent.elements.length>=2){const x=h.parent.parent,N=Hd(x);if(N.kind===260&&lb(N)&6||N.kind===169){const L=jn(x);if(!(L.flags&4194304)){L.flags|=4194304;const z=Tn(x,0),Z=z&&jo(z,wh);if(L.flags&=-4194305,Z&&Z.flags&1048576&&!(N.kind===169&&Tge(N))){const de=h.parent,_e=o1(de,Z,Z,void 0,a.flowNode);return _e.flags&131072?Cn:Bg(h,_e,!0)}}}}if(rs(h)&&!h.type&&!h.initializer&&!h.dotDotDotToken){const x=h.parent;if(x.parameters.length>=2&&lZ(x)){const N=II(x);if(N&&N.parameters.length===1&&Su(N)){const L=MP(zi(Xr(N.parameters[0]),(_=nb(x))==null?void 0:_.nonFixingMapper));if(L.flags&1048576&&N_(L,da)&&!ct(x.parameters,Tge)){const z=o1(x,L,L,void 0,a.flowNode),Z=x.parameters.indexOf(h)-(Xv(x)?1:0);return K_(z,Od(Z))}}}}}return m}function dst(r,a){if(JT(r))return yj(r);const l=od(r);if(l===tt)return nt;if(l===Pt){if(RNe(r))return Me(r,p.arguments_cannot_be_referenced_in_property_initializers),nt;let Gt=cf(r);if(Gt)for(re<2&&(Gt.kind===219?Me(r,p.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):Rn(Gt,1024)&&Me(r,p.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),jn(Gt).flags|=512;Gt&&po(Gt);)Gt=cf(Gt),Gt&&(jn(Gt).flags|=512);return Xr(l)}gst(r)&&BZ(l,r);const _=Rf(l),m=Vhe(_,r);wy(m)&&Cme(r,m)&&m.declarations&&S0(r,m.declarations,r.escapedText);let h=_.valueDeclaration;if(h&&_.flags&32&&$n(h)&&h.name!==r){let Gt=a_(r,!1,!1);for(;Gt.kind!==312&&Gt.parent!==h;)Gt=a_(Gt,!1,!1);Gt.kind!==312&&(jn(h).flags|=262144,jn(Gt).flags|=262144,jn(r).flags|=536870912)}vst(r,l);let x=pst(_,r,a);const N=jT(r);if(N){if(!(_.flags&3)&&!(Hr(r)&&_.flags&512)){const Gt=_.flags&384?p.Cannot_assign_to_0_because_it_is_an_enum:_.flags&32?p.Cannot_assign_to_0_because_it_is_a_class:_.flags&1536?p.Cannot_assign_to_0_because_it_is_a_namespace:_.flags&16?p.Cannot_assign_to_0_because_it_is_a_function:_.flags&2097152?p.Cannot_assign_to_0_because_it_is_an_import:p.Cannot_assign_to_0_because_it_is_not_a_variable;return Me(r,Gt,ni(l)),nt}if(Rd(_))return _.flags&3?Me(r,p.Cannot_assign_to_0_because_it_is_a_constant,ni(l)):Me(r,p.Cannot_assign_to_0_because_it_is_a_read_only_property,ni(l)),nt}const L=_.flags&2097152;if(_.flags&3){if(N===1)return Gz(r)?Oh(x):x}else if(L)h=rd(l);else return x;if(!h)return x;x=xge(x,r,a);const z=Hd(h).kind===169,Z=AI(h);let de=AI(r);const _e=de!==Z,Re=r.parent&&r.parent.parent&&a0(r.parent)&&bge(r.parent.parent),st=l.flags&134217728,gt=x===Ge||x===hl,qt=gt&&r.parent.kind===235;for(;de!==Z&&(de.kind===218||de.kind===219||b5(de))&&(YP(_)&&x!==hl||jZ(_)&&XAe(_,r));)de=AI(de);const $t=z||L||_e||Re||st||mst(r,h)||x!==Ge&&x!==hl&&(!q||(x.flags&16387)!==0||Mb(r)||dge(r)||r.parent.kind===281)||r.parent.kind===235||h.kind===260&&h.exclamationToken||h.flags&33554432,Ur=qt?Pe:$t?z?ust(x,h):x:gt?Pe:s1(x),Tr=qt?Lh(o1(r,x,Ur,de)):o1(r,x,Ur,de);if(!qAe(r)&&(x===Ge||x===hl)){if(Tr===Ge||Tr===hl)return ae&&(Me(us(h),p.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,ni(l),Ar(Tr)),Me(r,p.Variable_0_implicitly_has_an_1_type,ni(l),Ar(Tr))),UI(Tr)}else if(!$t&&!WP(x)&&WP(Tr))return Me(r,p.Variable_0_is_used_before_being_assigned,ni(l)),x;return N?Oh(Tr):Tr}function mst(r,a){if(Ea(a)){const l=Pr(r,Ea);return l&&Hd(l)===Hd(a)}}function gst(r){var a;const l=r.parent;if(l){if(Sn(l)&&l.expression===r||vu(l)&&l.isTypeOnly)return!1;const _=(a=l.parent)==null?void 0:a.parent;if(_&&Tc(_)&&_.isTypeOnly)return!1}return!0}function hst(r,a){return!!Pr(r,l=>l===a?"quit":As(l)||l.parent&&xs(l.parent)&&!Bc(l.parent)&&l.parent.initializer===l)}function yst(r,a){return Pr(r,l=>l===a?"quit":l===a.initializer||l===a.condition||l===a.incrementor||l===a.statement)}function kge(r){return Pr(r,a=>!a||rW(a)?"quit":Q0(a,!1))}function vst(r,a){if(re>=2||!(a.flags&34)||!a.valueDeclaration||Ni(a.valueDeclaration)||a.valueDeclaration.parent.kind===299)return;const l=Nm(a.valueDeclaration),_=hst(r,l),m=kge(l);if(m){if(_){let h=!0;if(Gb(l)){const x=w1(a.valueDeclaration,261);if(x&&x.parent===l){const N=yst(r.parent,l);if(N){const L=jn(N);L.flags|=8192;const z=L.capturedBlockScopeBindings||(L.capturedBlockScopeBindings=[]);zf(z,a),N===l.initializer&&(h=!1)}}}h&&(jn(m).flags|=4096)}if(Gb(l)){const h=w1(a.valueDeclaration,261);h&&h.parent===l&&Sst(r,l)&&(jn(a.valueDeclaration).flags|=65536)}jn(a.valueDeclaration).flags|=32768}_&&(jn(a.valueDeclaration).flags|=16384)}function bst(r,a){const l=jn(r);return!!l&&bs(l.capturedBlockScopeBindings,un(a))}function Sst(r,a){let l=r;for(;l.parent.kind===217;)l=l.parent;let _=!1;if(vg(l))_=!0;else if(l.parent.kind===224||l.parent.kind===225){const m=l.parent;_=m.operator===46||m.operator===47}return _?!!Pr(l,m=>m===a?"quit":m===a.statement):!1}function Cge(r,a){if(jn(r).flags|=2,a.kind===172||a.kind===176){const l=a.parent;jn(l).flags|=4}else jn(a).flags|=4}function tNe(r){return Pb(r)?r:As(r)?void 0:Ss(r,tNe)}function Ege(r){const a=un(r),l=Eo(a);return Y_(l)===Ne}function rNe(r,a,l){const _=a.parent;Gv(_)&&!Ege(_)&&O8(r)&&r.flowNode&&!MZ(r.flowNode,!1)&&Me(r,l)}function Tst(r,a){xs(a)&&Bc(a)&&Y&&a.initializer&&WD(a.initializer,r.pos)&&Vf(a.parent)&&Me(r,p.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}function yj(r){const a=Mb(r);let l=a_(r,!0,!0),_=!1,m=!1;for(l.kind===176&&rNe(r,l,p.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);;){if(l.kind===219&&(l=a_(l,!1,!m),_=!0),l.kind===167){l=a_(l,!_,!1),m=!0;continue}break}if(Tst(r,l),m)Me(r,p.this_cannot_be_referenced_in_a_computed_property_name);else switch(l.kind){case 267:Me(r,p.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 266:Me(r,p.this_cannot_be_referenced_in_current_location);break;case 176:nNe(r,l)&&Me(r,p.this_cannot_be_referenced_in_constructor_arguments);break}!a&&_&&re<2&&Cge(r,l);const h=Pge(r,!0,l);if(K){const x=Xr($e);if(h===x&&_)Me(r,p.The_containing_arrow_function_captures_the_global_value_of_this);else if(!h){const N=Me(r,p.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!Ni(l)){const L=Pge(l);L&&L!==x&&la(N,yn(l,p.An_outer_value_of_this_is_shadowed_by_this_container))}}}return h||B}function Pge(r,a=!0,l=a_(r,!1,!1)){const _=Hr(r);if(As(l)&&(!Age(r)||Xv(l))){let m=Ade(l)||_&&Cst(l);if(!m){const h=kst(l);if(_&&h){const x=Hi(h).symbol;x&&x.members&&x.flags&16&&(m=Eo(x).thisType)}else ym(l)&&(m=Eo(Na(l.symbol)).thisType);m||(m=oNe(l))}if(m)return o1(r,m)}if($n(l.parent)){const m=un(l.parent),h=Ms(l)?Xr(m):Eo(m).thisType;return o1(r,h)}if(Ni(l))if(l.commonJsModuleIndicator){const m=un(l);return m&&Xr(m)}else{if(l.externalModuleIndicator)return Pe;if(a)return Xr($e)}}function xst(r){const a=a_(r,!1,!1);if(As(a)){const l=Np(a);if(l.thisParameter)return OZ(l.thisParameter)}if($n(a.parent)){const l=un(a.parent);return Ms(a)?Xr(l):Eo(l).thisType}}function kst(r){if(r.kind===218&&Zr(r.parent)&&fc(r.parent)===3)return r.parent.left.expression.expression;if(r.kind===174&&r.parent.kind===210&&Zr(r.parent.parent)&&fc(r.parent.parent)===6)return r.parent.parent.left.expression;if(r.kind===218&&r.parent.kind===303&&r.parent.parent.kind===210&&Zr(r.parent.parent.parent)&&fc(r.parent.parent.parent)===6)return r.parent.parent.parent.left.expression;if(r.kind===218&&zc(r.parent)&&Ie(r.parent.name)&&(r.parent.name.escapedText==="value"||r.parent.name.escapedText==="get"||r.parent.name.escapedText==="set")&&ua(r.parent.parent)&&Rs(r.parent.parent.parent)&&r.parent.parent.parent.arguments[2]===r.parent.parent&&fc(r.parent.parent.parent)===9)return r.parent.parent.parent.arguments[0].expression;if(hc(r)&&Ie(r.name)&&(r.name.escapedText==="value"||r.name.escapedText==="get"||r.name.escapedText==="set")&&ua(r.parent)&&Rs(r.parent.parent)&&r.parent.parent.arguments[2]===r.parent&&fc(r.parent.parent)===9)return r.parent.parent.arguments[0].expression}function Cst(r){const a=W7(r);if(a&&a.typeExpression)return ii(a.typeExpression);const l=RP(r);if(l)return Sv(l)}function nNe(r,a){return!!Pr(r,l=>fo(l)?"quit":l.kind===169&&l.parent===a)}function Dge(r){const a=r.parent.kind===213&&r.parent.expression===r,l=y8(r,!0);let _=l,m=!1,h=!1;if(!a){for(;_&&_.kind===219;)Rn(_,1024)&&(h=!0),_=y8(_,!0),m=re<2;_&&Rn(_,1024)&&(h=!0)}let x=0;if(!_||!Z(_)){const de=Pr(r,_e=>_e===_?"quit":_e.kind===167);return de&&de.kind===167?Me(r,p.super_cannot_be_referenced_in_a_computed_property_name):a?Me(r,p.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):!_||!_.parent||!($n(_.parent)||_.parent.kind===210)?Me(r,p.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions):Me(r,p.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class),nt}if(!a&&l.kind===176&&rNe(r,_,p.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),Ms(_)||a?(x=32,!a&&re>=2&&re<=8&&(xs(_)||ec(_))&&Lte(r.parent,de=>{(!Ni(de)||af(de))&&(jn(de).flags|=2097152)})):x=16,jn(r).flags|=x,_.kind===174&&h&&(o_(r.parent)&&vg(r.parent)?jn(_).flags|=256:jn(_).flags|=128),m&&Cge(r.parent,_),_.parent.kind===210)return re<2?(Me(r,p.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),nt):B;const N=_.parent;if(!Gv(N))return Me(r,p.super_can_only_be_referenced_in_a_derived_class),nt;if(Ege(N))return a?nt:Ne;const L=Eo(un(N)),z=L&&Z_(L)[0];if(!z)return nt;if(_.kind===176&&nNe(r,_))return Me(r,p.super_cannot_be_referenced_in_constructor_arguments),nt;return x===32?Y_(L):mf(z,L.thisType);function Z(de){return a?de.kind===176:$n(de.parent)||de.parent.kind===210?Ms(de)?de.kind===174||de.kind===173||de.kind===177||de.kind===178||de.kind===172||de.kind===175:de.kind===174||de.kind===173||de.kind===177||de.kind===178||de.kind===172||de.kind===171||de.kind===176:!1}}function iNe(r){return(r.kind===174||r.kind===177||r.kind===178)&&r.parent.kind===210?r.parent:r.kind===218&&r.parent.kind===303?r.parent.parent:void 0}function sNe(r){return bn(r)&4&&r.target===dc?bo(r)[0]:void 0}function Est(r){return jo(r,a=>a.flags&2097152?er(a.types,sNe):sNe(a))}function aNe(r,a){let l=r,_=a;for(;_;){const m=Est(_);if(m)return m;if(l.parent.kind!==303)break;l=l.parent.parent,_=Av(l,void 0)}}function oNe(r){if(r.kind===219)return;if(lZ(r)){const l=II(r);if(l){const _=l.thisParameter;if(_)return Xr(_)}}const a=Hr(r);if(K||a){const l=iNe(r);if(l){const m=Av(l,void 0),h=aNe(l,m);return h?zi(h,sge(nb(l))):gf(m?Lh(m):Dc(l))}const _=Yh(r.parent);if(nl(_)){const m=_.left;if(oo(m)){const{expression:h}=m;if(a&&Ie(h)){const x=wr(_);if(x.commonJsModuleIndicator&&od(h)===x.symbol)return}return gf(Dc(h))}}}}function cNe(r){const a=r.parent;if(!lZ(a))return;const l=Db(a);if(l&&l.arguments){const m=tK(l),h=a.parameters.indexOf(r);if(r.dotDotDotToken)return rhe(m,h,m.length,B,void 0,0);const x=jn(l),N=x.resolvedSignature;x.resolvedSignature=lt;const L=h0)return D(l.name,!0,!1)}}function Ast(r,a){const l=cf(r);if(l){let _=JZ(l,a);if(_){const m=fl(l);if(m&1){const h=(m&2)!==0;_.flags&1048576&&(_=Mc(_,N=>!!ab(1,N,h)));const x=ab(1,_,(m&2)!==0);if(!x)return;_=x}if(m&2){const h=jo(_,I0);return h&&Bn([h,xIe(h)])}return _}}}function Nst(r,a){const l=y_(r,a);if(l){const _=I0(l);return _&&Bn([_,xIe(_)])}}function Ist(r,a){const l=cf(r);if(l){const _=fl(l);let m=JZ(l,a);if(m){const h=(_&2)!==0;return!r.asteriskToken&&m.flags&1048576&&(m=Mc(m,x=>!!ab(1,x,h))),r.asteriskToken?m:ab(0,m,h)}}}function Age(r){let a=!1;for(;r.parent&&!As(r.parent);){if(rs(r.parent)&&(a||r.parent.initializer===r))return!0;Ea(r.parent)&&r.parent.initializer===r&&(a=!0),r=r.parent}return!1}function lNe(r,a){const l=!!(fl(a)&2),_=JZ(a,void 0);if(_)return ab(r,_,l)||void 0}function JZ(r,a){const l=g4(r);if(l)return l;const _=Lge(r);if(_&&!UY(_)){const h=Ja(_),x=fl(r);return x&1?Mc(h,N=>!!(N.flags&58998787)||xhe(N,x,void 0)):x&2?Mc(h,N=>!!(N.flags&58998787)||!!nD(N)):h}const m=Db(r);if(m)return y_(m,a)}function uNe(r,a){const _=tK(r).indexOf(a);return _===-1?void 0:Nge(r,_)}function Nge(r,a){if(of(r))return a===0?Ce:a===1?Z8e(!1):B;const l=jn(r).resolvedSignature===an?an:D4(r);if(Fu(r)&&a===0)return UZ(l,r);const _=l.parameters.length-1;return Su(l)&&a>=_?K_(Xr(l.parameters[_]),Od(a-_),256):Md(l,a)}function Fst(r){const a=mhe(r);return a?QS(a):void 0}function Ost(r,a){if(r.parent.kind===215)return uNe(r.parent,a)}function Lst(r,a){const l=r.parent,{left:_,operatorToken:m,right:h}=l;switch(m.kind){case 64:case 77:case 76:case 78:return r===h?Rst(l):void 0;case 57:case 61:const x=y_(l,a);return r===h&&(x&&x.pattern||!x&&!rre(l))?Yl(_):x;case 56:case 28:return r===h?y_(l,a):void 0;default:return}}function Mst(r){if(Wd(r)&&r.symbol)return r.symbol;if(Ie(r))return od(r);if(Sn(r)){const l=Yl(r.expression);return Pi(r.name)?a(l,r.name):$s(l,r.name.escapedText)}if(ko(r)){const l=Dc(r.argumentExpression);if(!Sp(l))return;const _=Yl(r.expression);return $s(_,Tp(l))}return;function a(l,_){const m=$Z(_.escapedText,_);return m&&Hge(l,m)}}function Rst(r){var a,l;const _=fc(r);switch(_){case 0:case 4:const m=Mst(r.left),h=m&&m.valueDeclaration;if(h&&(xs(h)||B_(h))){const L=Vl(h);return L&&zi(ii(L),wi(m).mapper)||(xs(h)?h.initializer&&Yl(r.left):void 0)}return _===0?Yl(r.left):_Ne(r);case 5:if(zZ(r,_))return _Ne(r);if(!Wd(r.left)||!r.left.symbol)return Yl(r.left);{const L=r.left.symbol.valueDeclaration;if(!L)return;const z=Ls(r.left,oo),Z=Vl(L);if(Z)return ii(Z);if(Ie(z.expression)){const de=z.expression,_e=Ho(de,de.escapedText,111551,void 0,de.escapedText,!0);if(_e){const Re=_e.valueDeclaration&&Vl(_e.valueDeclaration);if(Re){const st=Kg(z);if(st!==void 0)return wv(ii(Re),st)}return}}return Hr(L)||L===r.left?void 0:Yl(r.left)}case 1:case 6:case 3:case 2:let x;_!==2&&(x=Wd(r.left)?(a=r.left.symbol)==null?void 0:a.valueDeclaration:void 0),x||(x=(l=r.symbol)==null?void 0:l.valueDeclaration);const N=x&&Vl(x);return N?ii(N):void 0;case 7:case 8:case 9:return E.fail("Does not apply");default:return E.assertNever(_)}}function zZ(r,a=fc(r)){if(a===4)return!0;if(!Hr(r)||a!==5||!Ie(r.left.expression))return!1;const l=r.left.expression.escapedText,_=Ho(r.left,l,111551,void 0,void 0,!0,!0);return C5(_==null?void 0:_.valueDeclaration)}function _Ne(r){if(!r.symbol)return Yl(r.left);if(r.symbol.valueDeclaration){const m=Vl(r.symbol.valueDeclaration);if(m){const h=ii(m);if(h)return h}}const a=Ls(r.left,oo);if(!Up(a_(a.expression,!1,!1)))return;const l=yj(a.expression),_=Kg(a);return _!==void 0&&wv(l,_)||void 0}function jst(r){return!!(Ko(r)&262144&&!r.links.type&&fk(r,0)>=0)}function wv(r,a,l){return jo(r,_=>{var m;if(g_(_)&&!_.declaration.nameType){const h=Jf(_),x=fu(h)||h,N=l||h_(xi(a));if(Qs(N,x))return tZ(_,N)}else if(_.flags&3670016){const h=$s(_,a);if(h)return jst(h)?void 0:a1(Xr(h),!!(h&&h.flags&16777216));if(da(_)&&kg(a)&&+a>=0){const x=HP(_,_.target.fixedLength,0,!1,!0);if(x)return x}return(m=$de(Xde(_),l||h_(xi(a))))==null?void 0:m.type}},!0)}function fNe(r,a){if(E.assert(Up(r)),!(r.flags&67108864))return Ige(r,a)}function Ige(r,a){const l=r.parent,_=zc(r)&&wge(r,a);if(_)return _;const m=Av(l,a);if(m){if(d4(r)){const h=un(r);return wv(m,h.escapedName,wi(h).nameType)}if(ry(r)){const h=us(r);if(h&&Pa(h)){const x=Hi(h.expression),N=Sp(x)&&wv(m,Tp(x));if(N)return N}}if(r.name){const h=w0(r.name);return jo(m,x=>{var N;return(N=$de(Xde(x),h))==null?void 0:N.type},!0)}}}function Bst(r){let a,l;for(let _=0;_{if(da(h)){if((_===void 0||a<_)&&am)?l-a:0,N=x>0&&h.target.hasRestElement?dI(h.target,3):0;return x>0&&x<=N?bo(h)[D0(h)-x]:HP(h,_===void 0?h.target.fixedLength:Math.min(h.target.fixedLength,_),l===void 0||m===void 0?N:Math.min(N,l-m),!1,!0)}return(!_||a<_)&&wv(h,""+a)||Ohe(1,h,Pe,void 0,!1)},!0)}function Jst(r,a){const l=r.parent;return r===l.whenTrue||r===l.whenFalse?y_(l,a):void 0}function zst(r,a,l){const _=Av(r.openingElement.attributes,l),m=Tj(lT(r));if(!(_&&!ht(_)&&m&&m!==""))return;const h=hC(r.children),x=h.indexOf(a),N=wv(_,m);return N&&(h.length===1?N:jo(N,L=>N0(L)?K_(L,Od(x)):L,!0))}function Wst(r,a){const l=r.parent;return K7(l)?y_(r,a):Eg(l)?zst(l,r,a):void 0}function pNe(r,a){if(em(r)){const l=Av(r.parent,a);return!l||ht(l)?void 0:wv(l,t3(r.name))}else return y_(r.parent,a)}function vj(r){switch(r.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 vj(r.expression);case 294:return!r.expression||vj(r.expression)}return!1}function Vst(r,a){return Oit(a,r)||Ume(a,es(nr(An(r.properties,l=>l.symbol?l.kind===303?vj(l.initializer)&&GP(a,l.symbol.escapedName):l.kind===304?GP(a,l.symbol.escapedName):!1:!1),l=>[()=>zj(l.kind===303?l.initializer:l.name),l.symbol.escapedName]),nr(An(Ua(a),l=>{var _;return!!(l.flags&16777216)&&!!((_=r==null?void 0:r.symbol)!=null&&_.members)&&!r.symbol.members.has(l.escapedName)&&GP(a,l.escapedName)}),l=>[()=>Pe,l.escapedName])),Qs)}function Ust(r,a){const l=Tj(lT(r));return Ume(a,es(nr(An(r.properties,_=>!!_.symbol&&_.kind===291&&GP(a,_.symbol.escapedName)&&(!_.initializer||vj(_.initializer))),_=>[_.initializer?()=>zj(_.initializer):()=>Er,_.symbol.escapedName]),nr(An(Ua(a),_=>{var m;if(!(_.flags&16777216)||!((m=r==null?void 0:r.symbol)!=null&&m.members))return!1;const h=r.parent.parent;return _.escapedName===l&&Eg(h)&&hC(h.children).length?!1:!r.symbol.members.has(_.escapedName)&&GP(a,_.escapedName)}),_=>[()=>Pe,_.escapedName])),Qs)}function Av(r,a){const l=Up(r)?fNe(r,a):y_(r,a),_=WZ(l,r,a);if(_&&!(a&&a&2&&_.flags&8650752)){const m=jo(_,h=>bn(h)&32?h:n_(h),!0);return m.flags&1048576&&ua(r)?Vst(r,m):m.flags&1048576&&_2(r)?Ust(r,m):m}}function WZ(r,a,l){if(r&&nc(r,465829888)){const _=nb(a);if(_&&l&1&&ct(_.inferences,Pct))return VZ(r,_.nonFixingMapper);if(_!=null&&_.returnMapper){const m=VZ(r,_.returnMapper);return m.flags&1048576&&Ah(m.types,ar)&&Ah(m.types,Nr)?Mc(m,h=>h!==ar&&h!==Nr):m}}return r}function VZ(r,a){return r.flags&465829888?zi(r,a):r.flags&1048576?Bn(nr(r.types,l=>VZ(l,a)),0):r.flags&2097152?Xs(nr(r.types,l=>VZ(l,a))):r}function y_(r,a){var l;if(r.flags&67108864)return;const _=mNe(r,!a);if(_>=0)return rr[_];const{parent:m}=r;switch(m.kind){case 260:case 169:case 172:case 171:case 208:return wst(r,a);case 219:case 253:return Ast(r,a);case 229:return Ist(m,a);case 223:return Nst(m,a);case 213:case 214:return uNe(m,r);case 170:return Fst(m);case 216:case 234:return Qg(m.type)?y_(m,a):ii(m.type);case 226:return Lst(r,a);case 303:case 304:return Ige(m,a);case 305:return y_(m.parent,a);case 209:{const h=m,x=Av(h,a),N=Zk(h.elements,r),L=(l=jn(h)).spreadIndices??(l.spreadIndices=Bst(h.elements));return Fge(x,N,h.elements.length,L.first,L.last)}case 227:return Jst(r,a);case 239:return E.assert(m.parent.kind===228),Ost(m.parent,r);case 217:{if(Hr(m)){if(VW(m))return ii(UW(m));const h=b1(m);if(h&&!Qg(h.typeExpression.type))return ii(h.typeExpression.type)}return y_(m,a)}case 235:return y_(m,a);case 238:return ii(m.type);case 277:return Mi(m);case 294:return Wst(m,a);case 291:case 293:return pNe(m,a);case 286:case 285:return $st(m,a);case 301:return Gst(m)}}function dNe(r){bj(r,y_(r,void 0),!0)}function bj(r,a,l){Mr[Yn]=r,rr[Yn]=a,Rr[Yn]=l,Yn++}function NI(){Yn--}function mNe(r,a){for(let l=Yn-1;l>=0;l--)if(r===Mr[l]&&(a||!Rr[l]))return l;return-1}function qst(r,a){Gr[Yr]=r,zn[Yr]=a,Yr++}function Hst(){Yr--}function nb(r){for(let a=Yr-1;a>=0;a--)if(Hv(r,Gr[a]))return zn[a]}function Gst(r){return wv(_me(!1),AF(r))}function $st(r,a){if(Kd(r)&&a!==4){const l=mNe(r.parent,!a);if(l>=0)return rr[l]}return Nge(r,0)}function UZ(r,a){return ZNe(a)!==0?Xst(r,a):Zst(r,a)}function Xst(r,a){let l=phe(r,Kt);l=gNe(a,lT(a),l);const _=ib(Ef.IntrinsicAttributes,a);return Ot(_)||(l=jR(_,l)),l}function Qst(r,a){if(r.compositeSignatures){const _=[];for(const m of r.compositeSignatures){const h=Ja(m);if(ht(h))return h;const x=je(h,a);if(!x)return;_.push(x)}return Xs(_)}const l=Ja(r);return ht(l)?l:je(l,a)}function Yst(r){if(Sk(r.tagName)){const l=CNe(r),_=rK(r,l);return QS(_)}const a=Dc(r.tagName);if(a.flags&128){const l=kNe(a,r);if(!l)return nt;const _=rK(r,l);return QS(_)}return a}function gNe(r,a,l){const _=yat(a);if(_){const m=Yst(r),h=DNe(_,Hr(r),m,l);if(h)return h}return l}function Zst(r,a){const l=lT(a),_=bat(l);let m=_===void 0?phe(r,Kt):_===""?Ja(r):Qst(r,_);if(!m)return _&&gr(a.attributes.properties)&&Me(a,p.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,xi(_)),Kt;if(m=gNe(a,l,m),ht(m))return m;{let h=m;const x=ib(Ef.IntrinsicClassAttributes,a);if(!Ot(x)){const L=hn(x.symbol),z=Ja(r);let Z;if(L){const de=Yy([z],L,rg(L),Hr(a));Z=zi(x,ef(L,de))}else Z=x;h=jR(Z,h)}const N=ib(Ef.IntrinsicAttributes,a);return Ot(N)||(h=jR(N,h)),h}}function Kst(r){return Mu(j,"noImplicitAny")?Du(r,(a,l)=>a===l||!a?a:m8e(a.typeParameters,l.typeParameters)?rat(a,l):void 0):void 0}function eat(r,a,l){if(!r||!a)return r||a;const _=Bn([Xr(r),zi(Xr(a),l)]);return nT(r,_)}function tat(r,a,l){const _=hf(r),m=hf(a),h=_>=m?r:a,x=h===r?a:r,N=h===r?_:m,L=ag(r)||ag(a),z=L&&!ag(h),Z=new Array(N+(z?1:0));for(let de=0;de=vm(h)&&de>=vm(x),$t=de>=_?void 0:KP(r,de),Ur=de>=m?void 0:KP(a,de),Tr=$t===Ur?$t:$t?Ur?void 0:$t:Ur,Gt=xa(1|(qt&&!gt?16777216:0),Tr||`arg${de}`);Gt.links.type=gt?pu(st):st,Z[de]=Gt}if(z){const de=xa(1,"args");de.links.type=pu(Md(x,N)),x===a&&(de.links.type=zi(de.links.type,l)),Z[N]=de}return Z}function rat(r,a){const l=r.typeParameters||a.typeParameters;let _;r.typeParameters&&a.typeParameters&&(_=ef(a.typeParameters,r.typeParameters));const m=r.declaration,h=tat(r,a,_),x=eat(r.thisParameter,a.thisParameter,_),N=Math.max(r.minArgumentCount,a.minArgumentCount),L=Jg(m,l,x,h,void 0,void 0,N,(r.flags|a.flags)&167);return L.compositeKind=2097152,L.compositeSignatures=es(r.compositeKind===2097152&&r.compositeSignatures||[r],[a]),_&&(L.mapper=r.compositeKind===2097152&&r.mapper&&r.compositeSignatures?eb(r.mapper,_):_),L}function Oge(r,a){const l=Es(r,0),_=An(l,m=>!nat(m,a));return _.length===1?_[0]:Kst(_)}function nat(r,a){let l=0;for(;lqP(_e)||g_(_e)&&!_e.nameType&&!!yI(_e.target||_e));let de=!1;for(let _e=0;_ex[Re]&8?Ky(_e,_t)||B:_e),2):q?pi:St,L))}function yNe(r){if(!(bn(r)&4))return r;let a=r.literalType;return a||(a=r.literalType=J8e(r),a.objectFlags|=147456),a}function oat(r){switch(r.kind){case 167:return cat(r);case 80:return kg(r.escapedText);case 9:case 11:return kg(r.text);default:return!1}}function cat(r){return Ql(Wg(r),296)}function Wg(r){const a=jn(r.expression);if(!a.resolvedType){if((z_(r.parent.parent)||$n(r.parent.parent)||Bu(r.parent.parent))&&Zr(r.expression)&&r.expression.operatorToken.kind===103&&r.parent.kind!==177&&r.parent.kind!==178)return a.resolvedType=nt;if(a.resolvedType=Hi(r.expression),xs(r.parent)&&!Bc(r.parent)&&kl(r.parent.parent)){const l=Nm(r.parent.parent),_=kge(l);_&&(jn(_).flags|=4096,jn(r).flags|=32768,jn(r.parent.parent).flags|=32768)}(a.resolvedType.flags&98304||!Ql(a.resolvedType,402665900)&&!Qs(a.resolvedType,pr))&&Me(r,p.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return a.resolvedType}function lat(r){var a;const l=(a=r.declarations)==null?void 0:a[0];return kg(r.escapedName)||l&&Nu(l)&&oat(l.name)}function vNe(r){var a;const l=(a=r.declarations)==null?void 0:a[0];return V8(r)||l&&Nu(l)&&Pa(l.name)&&Ql(Wg(l.name),4096)}function Mge(r,a,l,_){const m=[];for(let x=a;x0&&(N=Y2(N,Cr(),r.symbol,gt,Z),x=[],h=Bs(),$t=!1,Ur=!1,Tr=!1);const Jr=Fd(Hi(kr.expression,a&2));if(Sj(Jr)){const ss=Ame(Jr,Z);if(m&&SNe(ss,m,kr),Gt=x.length,Ot(N))continue;N=Y2(N,ss,r.symbol,gt,Z)}else Me(kr,p.Spread_types_may_only_be_created_from_object_types),N=nt;continue}else E.assert(kr.kind===177||kr.kind===178),Tk(kr);Ir&&!(Ir.flags&8576)?Qs(Ir,pr)&&(Qs(Ir,_t)?Ur=!0:Qs(Ir,oi)?Tr=!0:$t=!0,_&&(qt=!0)):h.set(Br.escapedName,Br),x.push(Br)}if(NI(),z){const kr=Pr(L.pattern.parent,Ir=>Ir.kind===260||Ir.kind===226||Ir.kind===169);if(Pr(r,Ir=>Ir===kr||Ir.kind===305).kind!==305)for(const Ir of Ua(L))!h.get(Ir.escapedName)&&!$s(N,Ir.escapedName)&&(Ir.flags&16777216||Me(Ir.valueDeclaration||((l=Wn(Ir,wm))==null?void 0:l.links.bindingElement),p.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),h.set(Ir.escapedName,Ir),x.push(Ir))}if(Ot(N))return nt;if(N!==oa)return x.length>0&&(N=Y2(N,Cr(),r.symbol,gt,Z),x=[],h=Bs(),$t=!1,Ur=!1),jo(N,kr=>kr===oa?Cr():kr);return Cr();function Cr(){const kr=[];$t&&kr.push(Mge(r,Gt,x,Ce)),Ur&&kr.push(Mge(r,Gt,x,_t)),Tr&&kr.push(Mge(r,Gt,x,oi));const Br=so(r.symbol,h,Ve,Ve,kr);return Br.objectFlags|=gt|128|131072,st&&(Br.objectFlags|=4096),qt&&(Br.objectFlags|=512),_&&(Br.pattern=r),Br}}function Sj(r){const a=dAe(jo(r,wh));return!!(a.flags&126615553||a.flags&3145728&&Wi(a.types,Sj))}function _at(r){Jge(r)}function fat(r,a){return Tk(r),xj(r)||B}function pat(r){Jge(r.openingElement),Sk(r.closingElement.tagName)?HZ(r.closingElement):Hi(r.closingElement.tagName),qZ(r)}function dat(r,a){return Tk(r),xj(r)||B}function mat(r){Jge(r.openingFragment);const a=wr(r);return pF(j)&&(j.jsxFactory||a.pragmas.has("jsx"))&&!j.jsxFragmentFactory&&!a.pragmas.has("jsxfrag")&&Me(r,j.jsxFactory?p.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:p.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),qZ(r),xj(r)||B}function jge(r){return r.includes("-")}function Sk(r){return Ie(r)&&vC(r.escapedText)||yd(r)}function bNe(r,a){return r.initializer?rD(r.initializer,a):Er}function gat(r,a=0){const l=r.attributes,_=y_(l,0),m=q?Bs():void 0;let h=Bs(),x=zo,N=!1,L,z=!1,Z=2048;const de=Tj(lT(r));for(const st of l.properties){const gt=st.symbol;if(em(st)){const qt=bNe(st,a);Z|=bn(qt)&458752;const $t=xa(4|gt.flags,gt.escapedName);if($t.declarations=gt.declarations,$t.parent=gt.parent,gt.valueDeclaration&&($t.valueDeclaration=gt.valueDeclaration),$t.links.type=qt,$t.links.target=gt,h.set($t.escapedName,$t),m==null||m.set($t.escapedName,$t),t3(st.name)===de&&(z=!0),_){const Ur=$s(_,gt.escapedName);Ur&&Ur.declarations&&wy(Ur)&&Ie(st.name)&&S0(st.name,Ur.declarations,st.name.escapedText)}if(_&&a&2&&!(a&4)&&cp(st)){const Ur=nb(l);E.assert(Ur);const Tr=st.initializer.expression;nge(Ur,Tr,qt)}}else{E.assert(st.kind===293),h.size>0&&(x=Y2(x,Re(),l.symbol,Z,!1),h=Bs());const qt=Fd(Hi(st.expression,a&2));ht(qt)&&(N=!0),Sj(qt)?(x=Y2(x,qt,l.symbol,Z,!1),m&&SNe(qt,m,st)):(Me(st.expression,p.Spread_types_may_only_be_created_from_object_types),L=L?Xs([L,qt]):qt)}}N||h.size>0&&(x=Y2(x,Re(),l.symbol,Z,!1));const _e=r.parent.kind===284?r.parent:void 0;if(_e&&_e.openingElement===r&&hC(_e.children).length>0){const st=qZ(_e,a);if(!N&&de&&de!==""){z&&Me(l,p._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,xi(de));const gt=Av(r.attributes,void 0),qt=gt&&wv(gt,de),$t=xa(4,de);$t.links.type=st.length===1?st[0]:qt&&cd(qt,qP)?ig(st):pu(Bn(st)),$t.valueDeclaration=I.createPropertySignature(void 0,xi(de),void 0,void 0),ba($t.valueDeclaration,l),$t.valueDeclaration.symbol=$t;const Ur=Bs();Ur.set(de,$t),x=Y2(x,so(l.symbol,Ur,Ve,Ve,Ve),l.symbol,Z,!1)}}if(N)return B;if(L&&x!==zo)return Xs([L,x]);return L||(x===zo?Re():x);function Re(){Z|=me;const st=so(l.symbol,h,Ve,Ve,Ve);return st.objectFlags|=Z|128|131072,st}}function qZ(r,a){const l=[];for(const _ of r.children)if(_.kind===12)_.containsOnlyTriviaWhiteSpaces||l.push(Ce);else{if(_.kind===294&&!_.expression)continue;l.push(rD(_,a))}return l}function SNe(r,a,l){for(const _ of Ua(r))if(!(_.flags&16777216)){const m=a.get(_.escapedName);if(m){const h=Me(m.valueDeclaration,p._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,xi(m.escapedName));la(h,yn(l,p.This_spread_always_overwrites_this_property))}}}function hat(r,a){return gat(r.parent,a)}function ib(r,a){const l=lT(a),_=l&&Q_(l),m=_&&m_(_,r,788968);return m?Eo(m):nt}function HZ(r){const a=jn(r);if(!a.resolvedSymbol){const l=ib(Ef.IntrinsicElements,r);if(Ot(l))return ae&&Me(r,p.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,xi(Ef.IntrinsicElements)),a.resolvedSymbol=tt;{if(!Ie(r.tagName)&&!yd(r.tagName))return E.fail();const _=yd(r.tagName)?$T(r.tagName):r.tagName.escapedText,m=$s(l,_);if(m)return a.jsxFlags|=1,a.resolvedSymbol=m;const h=X7e(l,h_(xi(_)));return h?(a.jsxFlags|=2,a.resolvedSymbol=h):dt(l,_)?(a.jsxFlags|=2,a.resolvedSymbol=l.symbol):(Me(r,p.Property_0_does_not_exist_on_type_1,qW(r.tagName),"JSX."+Ef.IntrinsicElements),a.resolvedSymbol=tt)}}return a.resolvedSymbol}function Bge(r){const a=r&&wr(r),l=a&&jn(a);if(l&&l.jsxImplicitImportContainer===!1)return;if(l&&l.jsxImplicitImportContainer)return l.jsxImplicitImportContainer;const _=mF(dF(j,a),j);if(!_)return;const h=Ru(j)===1?p.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:p.Cannot_find_module_0_or_its_corresponding_type_declarations,x=j.importHelpers?1:0,N=a==null?void 0:a.imports[x];N&&E.assert(xo(N)&&N.text===_,`Expected sourceFile.imports[${x}] to be the synthesized JSX runtime import`);const L=um(N||r,_,h,r),z=L&&L!==tt?Na(mc(L)):void 0;return l&&(l.jsxImplicitImportContainer=z||!1),z}function lT(r){const a=r&&jn(r);if(a&&a.jsxNamespace)return a.jsxNamespace;if(!a||a.jsxNamespace!==!1){let _=Bge(r);if(!_||_===tt){const m=rv(r);_=Ho(r,m,1920,void 0,m,!1)}if(_){const m=mc(m_(Q_(mc(_)),Ef.JSX,1920));if(m&&m!==tt)return a&&(a.jsxNamespace=m),m}a&&(a.jsxNamespace=!1)}const l=mc(JP(Ef.JSX,1920,void 0));if(l!==tt)return l}function TNe(r,a){const l=a&&m_(a.exports,r,788968),_=l&&Eo(l),m=_&&Ua(_);if(m){if(m.length===0)return"";if(m.length===1)return m[0].escapedName;m.length>1&&l.declarations&&Me(l.declarations[0],p.The_global_type_JSX_0_may_not_have_more_than_one_property,xi(r))}}function yat(r){return r&&m_(r.exports,Ef.LibraryManagedAttributes,788968)}function vat(r){return r&&m_(r.exports,Ef.ElementType,788968)}function bat(r){return TNe(Ef.ElementAttributesPropertyNameContainer,r)}function Tj(r){return TNe(Ef.ElementChildrenAttributeNameContainer,r)}function xNe(r,a){if(r.flags&4)return[lt];if(r.flags&128){const m=kNe(r,a);return m?[rK(a,m)]:(Me(a,p.Property_0_does_not_exist_on_type_1,r.value,"JSX."+Ef.IntrinsicElements),Ve)}const l=n_(r);let _=Es(l,1);return _.length===0&&(_=Es(l,0)),_.length===0&&l.flags&1048576&&(_=Mde(nr(l.types,m=>xNe(m,a)))),_}function kNe(r,a){const l=ib(Ef.IntrinsicElements,a);if(!Ot(l)){const _=r.value,m=$s(l,Wo(_));if(m)return Xr(m);const h=bv(l,Ce);return h||void 0}return B}function Sat(r,a,l){if(r===1){const m=PNe(l);m&&lp(a,m,d_,l.tagName,p.Its_return_type_0_is_not_a_valid_JSX_element,_)}else if(r===0){const m=ENe(l);m&&lp(a,m,d_,l.tagName,p.Its_instance_type_0_is_not_a_valid_JSX_element,_)}else{const m=PNe(l),h=ENe(l);if(!m||!h)return;const x=Bn([m,h]);lp(a,x,d_,l.tagName,p.Its_element_type_0_is_not_a_valid_JSX_element,_)}function _(){const m=jc(l.tagName);return vs(void 0,p._0_cannot_be_used_as_a_JSX_component,m)}}function CNe(r){var a;E.assert(Sk(r.tagName));const l=jn(r);if(!l.resolvedJsxElementAttributesType){const _=HZ(r);if(l.jsxFlags&1)return l.resolvedJsxElementAttributesType=Xr(_)||nt;if(l.jsxFlags&2){const m=yd(r.tagName)?$T(r.tagName):r.tagName.escapedText;return l.resolvedJsxElementAttributesType=((a=mk(ib(Ef.IntrinsicElements,r),m))==null?void 0:a.type)||nt}else return l.resolvedJsxElementAttributesType=nt}return l.resolvedJsxElementAttributesType}function ENe(r){const a=ib(Ef.ElementClass,r);if(!Ot(a))return a}function xj(r){return ib(Ef.Element,r)}function PNe(r){const a=xj(r);if(a)return Bn([a,ce])}function Tat(r){const a=lT(r);if(!a)return;const l=vat(a);if(!l)return;const _=DNe(l,Hr(r));if(!(!_||Ot(_)))return _}function DNe(r,a,...l){const _=Eo(r);if(r.flags&524288){const m=wi(r).typeParameters;if(gr(m)>=l.length){const h=Yy(l,m,l.length,a);return gr(h)===0?_:y4(r,h)}}if(gr(_.typeParameters)>=l.length){const m=Yy(l,_.typeParameters,l.length,a);return P0(_,m)}}function xat(r){const a=ib(Ef.IntrinsicElements,r);return a?Ua(a):Ve}function kat(r){(j.jsx||0)===0&&Me(r,p.Cannot_use_JSX_unless_the_jsx_flag_is_provided),xj(r)===void 0&&ae&&Me(r,p.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function Jge(r){const a=Fu(r);if(a&&hft(r),kat(r),!Bge(r)){const l=wa&&j.jsx===2?p.Cannot_find_name_0:void 0,_=rv(r),m=a?r.tagName:r;let h;if(dx(r)&&_==="null"||(h=Ho(m,_,111551,l,_,!0)),h&&(h.isReferenced=-1,pt&&h.flags&2097152&&!rp(h)&&My(h)),dx(r)){const x=wr(r),N=Kx(x);N&&Ho(m,N,111551,l,N,!0)}}if(a){const l=r,_=D4(l);iK(_,r);const m=Tat(l);if(m!==void 0){const h=l.tagName,x=Sk(h)?h_(qW(h)):Hi(h);lp(x,m,d_,h,p.Its_type_0_is_not_a_valid_JSX_element_type,()=>{const N=jc(h);return vs(void 0,p._0_cannot_be_used_as_a_JSX_component,N)})}else Sat(ZNe(l),Ja(_),l)}}function zge(r,a,l){if(r.flags&524288){if(vv(r,a)||mk(r,a)||oI(a)&&zg(r,Ce)||l&&jge(a))return!0}else if(r.flags&3145728&&kj(r)){for(const _ of r.types)if(zge(_,a,l))return!0}return!1}function kj(r){return!!(r.flags&524288&&!(bn(r)&512)||r.flags&67108864||r.flags&1048576&&ct(r.types,kj)||r.flags&2097152&&Wi(r.types,kj))}function Cat(r,a){if(vft(r),r.expression){const l=Hi(r.expression,a);return r.dotDotDotToken&&l!==B&&!up(l)&&Me(r,p.JSX_spread_child_must_be_an_array_type),l}else return nt}function Wge(r){return r.valueDeclaration?lb(r.valueDeclaration):0}function Vge(r){if(r.flags&8192||Ko(r)&4)return!0;if(Hr(r.valueDeclaration)){const a=r.valueDeclaration.parent;return a&&Zr(a)&&fc(a)===3}}function Uge(r,a,l,_,m,h=!0){const x=h?r.kind===166?r.right:r.kind===205?r:r.kind===208&&r.propertyName?r.propertyName:r.name:void 0;return wNe(r,a,l,_,m,x)}function wNe(r,a,l,_,m,h){var x;const N=Hf(m,l);if(a){if(re<2&&ANe(m))return h&&Me(h,p.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(N&64)return h&&Me(h,p.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,ni(m),Ar(bk(m))),!1;if(!(N&256)&&((x=m.declarations)!=null&&x.some(tte)))return h&&Me(h,p.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super,ni(m)),!1}if(N&64&&ANe(m)&&(v8(r)||Kte(r)||kp(r.parent)&&C5(r.parent.parent))){const z=rh(e_(m));if(z&&g_t(r))return h&&Me(h,p.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,ni(m),yp(z.name)),!1}if(!(N&6))return!0;if(N&2){const z=rh(e_(m));return Hhe(r,z)?!0:(h&&Me(h,p.Property_0_is_private_and_only_accessible_within_class_1,ni(m),Ar(bk(m))),!1)}if(a)return!0;let L=G7e(r,z=>{const Z=Eo(un(z));return iAe(Z,m,l)});return!L&&(L=Eat(r),L=L&&iAe(L,m,l),N&256||!L)?(h&&Me(h,p.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,ni(m),Ar(bk(m)||_)),!1):N&256?!0:(_.flags&262144&&(_=_.isThisType?r_(_):fu(_)),!_||!f4(_,L)?(h&&Me(h,p.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,ni(m),Ar(L),Ar(_)),!1):!0)}function Eat(r){const a=Pat(r);let l=(a==null?void 0:a.type)&&ii(a.type);if(l&&l.flags&262144&&(l=r_(l)),l&&bn(l)&7)return C0(l)}function Pat(r){const a=a_(r,!1,!1);return a&&As(a)?Xv(a):void 0}function ANe(r){return!!sj(r,a=>!(a.flags&8192))}function E4(r){return gm(Hi(r),r)}function Cj(r){return Fp(r,50331648)}function qge(r){return Cj(r)?Lh(r):r}function Dat(r,a){const l=pc(r)?L_(r):void 0;if(r.kind===106){Me(r,p.The_value_0_cannot_be_used_here,"null");return}if(l!==void 0&&l.length<100){if(Ie(r)&&l==="undefined"){Me(r,p.The_value_0_cannot_be_used_here,"undefined");return}Me(r,a&16777216?a&33554432?p._0_is_possibly_null_or_undefined:p._0_is_possibly_undefined:p._0_is_possibly_null,l)}else Me(r,a&16777216?a&33554432?p.Object_is_possibly_null_or_undefined:p.Object_is_possibly_undefined:p.Object_is_possibly_null)}function wat(r,a){Me(r,a&16777216?a&33554432?p.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:p.Cannot_invoke_an_object_which_is_possibly_undefined:p.Cannot_invoke_an_object_which_is_possibly_null)}function NNe(r,a,l){if(q&&r.flags&2){if(pc(a)){const m=L_(a);if(m.length<100)return Me(a,p._0_is_of_type_unknown,m),nt}return Me(a,p.Object_is_of_type_unknown),nt}const _=$P(r,50331648);if(_&50331648){l(a,_);const m=Lh(r);return m.flags&229376?nt:m}return r}function gm(r,a){return NNe(r,a,Dat)}function INe(r,a){const l=gm(r,a);if(l.flags&16384){if(pc(a)){const _=L_(a);if(Ie(a)&&_==="undefined")return Me(a,p.The_value_0_cannot_be_used_here,_),l;if(_.length<100)return Me(a,p._0_is_possibly_undefined,_),l}Me(a,p.Object_is_possibly_undefined)}return l}function GZ(r,a,l){return r.flags&64?Aat(r,a):Gge(r,r.expression,E4(r.expression),r.name,a,l)}function Aat(r,a){const l=Hi(r.expression),_=kI(l,r.expression);return TZ(Gge(r,r.expression,gm(_,r.expression),r.name,a),r,_!==l)}function FNe(r,a){const l=w5(r)&&Yv(r.left)?gm(yj(r.left),r.left):E4(r.left);return Gge(r,r.left,l,r.right,a)}function ONe(r){for(;r.parent.kind===217;)r=r.parent;return zd(r.parent)&&r.parent.expression===r}function $Z(r,a){for(let l=x5(a);l;l=Nl(l)){const{symbol:_}=l,m=W8(_,r),h=_.members&&_.members.get(m)||_.exports&&_.exports.get(m);if(h)return h}}function Nat(r){if(!Nl(r))return or(r,p.Private_identifiers_are_not_allowed_outside_class_bodies);if(!PO(r.parent)){if(!hg(r))return or(r,p.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);const a=Zr(r.parent)&&r.parent.operatorToken.kind===103;if(!XZ(r)&&!a)return or(r,p.Cannot_find_name_0,on(r))}return!1}function Iat(r){Nat(r);const a=XZ(r);return a&&Pj(a,void 0,!1),B}function XZ(r){if(!hg(r))return;const a=jn(r);return a.resolvedSymbol===void 0&&(a.resolvedSymbol=$Z(r.escapedText,r)),a.resolvedSymbol}function Hge(r,a){return $s(r,a.escapedName)}function Fat(r,a,l){let _;const m=Ua(r);m&&er(m,x=>{const N=x.valueDeclaration;if(N&&Nu(N)&&Pi(N.name)&&N.name.escapedText===a.escapedText)return _=x,!0});const h=td(a);if(_){const x=E.checkDefined(_.valueDeclaration),N=E.checkDefined(Nl(x));if(l!=null&&l.valueDeclaration){const L=l.valueDeclaration,z=Nl(L);if(E.assert(!!z),Pr(z,Z=>N===Z)){const Z=Me(a,p.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,h,Ar(r));return la(Z,yn(L,p.The_shadowing_declaration_of_0_is_defined_here,h),yn(x,p.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,h)),!0}}return Me(a,p.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,h,td(N.name||m9)),!0}return!1}function LNe(r,a){return(l4(a)||v8(r)&&NP(a))&&a_(r,!0,!1)===IP(a)}function Gge(r,a,l,_,m,h){const x=jn(a).resolvedSymbol,N=jT(r),L=n_(N!==0||ONe(r)?gf(l):l),z=ht(L)||L===Qi;let Z;if(Pi(_)){re<99&&(N!==0&&Kc(r,1048576),N!==1&&Kc(r,524288));const _e=$Z(_.escapedText,_);if(N&&_e&&_e.valueDeclaration&&hc(_e.valueDeclaration)&&or(_,p.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,on(_)),z){if(_e)return Ot(L)?nt:L;if(x5(_)===void 0)return or(_,p.Private_identifiers_are_not_allowed_outside_class_bodies),B}if(Z=_e&&Hge(l,_e),Z===void 0){if(Fat(l,_,_e))return nt;const Re=x5(_);Re&&c8(wr(Re),j.checkJs)&&or(_,p.Private_field_0_must_be_declared_in_an_enclosing_class,on(_))}else Z.flags&65536&&!(Z.flags&32768)&&N!==1&&Me(r,p.Private_accessor_was_defined_without_a_getter)}else{if(z)return Ie(a)&&x&&BZ(x,r),Ot(L)?nt:L;Z=$s(L,_.escapedText,oK(L),r.kind===166)}Ie(a)&&x&&(xp(j)||!(Z&&(qI(Z)||Z.flags&8&&r.parent.kind===306))||n2(j)&&eNe(r))&&BZ(x,r);let de;if(Z){const _e=Vhe(Z,_);if(wy(_e)&&Cme(r,_e)&&_e.declarations&&S0(_,_e.declarations,_.escapedText),Oat(Z,r,_),Pj(Z,r,WNe(a,x)),jn(r).resolvedSymbol=Z,Uge(r,a.kind===108,VT(r),L,Z),NIe(r,Z,N))return Me(_,p.Cannot_assign_to_0_because_it_is_a_read_only_property,on(_)),nt;de=LNe(r,Z)?Ge:h||sF(r)?G2(Z):Xr(Z)}else{const _e=!Pi(_)&&(N===0||!KS(l)||KE(l))?mk(L,_.escapedText):void 0;if(!(_e&&_e.type)){const Re=$ge(r,l.symbol,!0);return!Re&&mI(l)?B:l.symbol===$e?($e.exports.has(_.escapedText)&&$e.exports.get(_.escapedText).flags&418?Me(_,p.Property_0_does_not_exist_on_type_1,xi(_.escapedText),Ar(l)):ae&&Me(_,p.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,Ar(l)),B):(_.escapedText&&!ES(r)&&jNe(_,KE(l)?L:l,Re),nt)}_e.isReadonly&&(vg(r)||$z(r))&&Me(r,p.Index_signature_in_type_0_only_permits_reading,Ar(L)),de=j.noUncheckedIndexedAccess&&!vg(r)?Bn([_e.type,A]):_e.type,j.noPropertyAccessFromIndexSignature&&Sn(r)&&Me(_,p.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,xi(_.escapedText)),_e.declaration&&b0(_e.declaration)&&S0(_,[_e.declaration],_.escapedText)}return MNe(r,Z,de,_,m)}function $ge(r,a,l){var _;const m=wr(r);if(m&&j.checkJs===void 0&&m.checkJsDirective===void 0&&(m.scriptKind===1||m.scriptKind===2)){const h=er(a==null?void 0:a.declarations,wr),x=!(a!=null&&a.valueDeclaration)||!$n(a.valueDeclaration)||((_=a.valueDeclaration.heritageClauses)==null?void 0:_.length)||Qh(!1,a.valueDeclaration);return!(m!==h&&h&&Gm(h))&&!(l&&a&&a.flags&32&&x)&&!(r&&l&&Sn(r)&&r.expression.kind===110&&x)}return!1}function MNe(r,a,l,_,m){const h=jT(r);if(h===1)return a1(l,!!(a&&a.flags&16777216));if(a&&!(a.flags&98311)&&!(a.flags&8192&&l.flags&1048576)&&!TK(a.declarations))return l;if(l===Ge)return u4(r,a);l=xge(l,r,m);let x=!1;if(q&&Se&&oo(r)&&r.expression.kind===110){const L=a&&a.valueDeclaration;if(L&&O7e(L)&&!Ms(L)){const z=AI(r);z.kind===176&&z.parent===L.parent&&!(L.flags&33554432)&&(x=!0)}}else q&&a&&a.valueDeclaration&&Sn(a.valueDeclaration)&&w8(a.valueDeclaration)&&AI(r)===AI(a.valueDeclaration)&&(x=!0);const N=o1(r,l,x?s1(l):l);return x&&!WP(l)&&WP(N)?(Me(_,p.Property_0_is_used_before_being_assigned,ni(a)),l):h?Oh(N):N}function Oat(r,a,l){const{valueDeclaration:_}=r;if(!_||wr(a).isDeclarationFile)return;let m;const h=on(l);RNe(a)&&!Ttt(_)&&!(oo(a)&&oo(a.expression))&&!yh(_,l)&&!(hc(_)&&NK(_)&256)&&(ue||!Lat(r))?m=Me(l,p.Property_0_is_used_before_its_initialization,h):_.kind===263&&a.parent.kind!==183&&!(_.flags&33554432)&&!yh(_,l)&&(m=Me(l,p.Class_0_used_before_its_declaration,h)),m&&la(m,yn(_,p._0_is_declared_here,h))}function RNe(r){return!!Pr(r,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 Cs(a.parent)&&ec(a.parent.parent)?!0:"quit";default:return hg(a)?!1:"quit"}})}function Lat(r){if(!(r.parent.flags&32))return!1;let a=Xr(r.parent);for(;;){if(a=a.symbol&&Mat(a),!a)return!1;const l=$s(a,r.escapedName);if(l&&l.valueDeclaration)return!0}}function Mat(r){const a=Z_(r);if(a.length!==0)return Xs(a)}function jNe(r,a,l){let _,m;if(!Pi(r)&&a.flags&1048576&&!(a.flags&402784252)){for(const x of a.types)if(!$s(x,r.escapedText)&&!mk(x,r.escapedText)){_=vs(_,p.Property_0_does_not_exist_on_type_1,Ka(r),Ar(x));break}}if(BNe(r.escapedText,a)){const x=Ka(r),N=Ar(a);_=vs(_,p.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,x,N,N+"."+x)}else{const x=BI(a);if(x&&$s(x,r.escapedText))_=vs(_,p.Property_0_does_not_exist_on_type_1,Ka(r),Ar(a)),m=yn(r,p.Did_you_forget_to_use_await);else{const N=Ka(r),L=Ar(a),z=Bat(N,a);if(z!==void 0)_=vs(_,p.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,N,L,z);else{const Z=Xge(r,a);if(Z!==void 0){const de=Xo(Z),_e=l?p.Property_0_may_not_exist_on_type_1_Did_you_mean_2:p.Property_0_does_not_exist_on_type_1_Did_you_mean_2;_=vs(_,_e,N,L,de),m=Z.valueDeclaration&&yn(Z.valueDeclaration,p._0_is_declared_here,de)}else{const de=Rat(a)?p.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:p.Property_0_does_not_exist_on_type_1;_=vs(Hde(_,a),de,N,L)}}}}const h=Zg(wr(r),r,_);m&&la(h,m),kd(!l||_.code!==p.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,h)}function Rat(r){return j.lib&&!j.lib.includes("dom")&&Xit(r,a=>a.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(xi(a.symbol.escapedName)))&&Fh(r)}function BNe(r,a){const l=a.symbol&&$s(Xr(a.symbol),r);return l!==void 0&&!!l.valueDeclaration&&Ms(l.valueDeclaration)}function jat(r){const a=td(r),_=FF().get(a);return _&&uB(_.keys())}function Bat(r,a){const l=n_(a).symbol;if(!l)return;const _=Xo(l),h=FF().get(_);if(h){for(const[x,N]of h)if(bs(N,r))return x}}function JNe(r,a){return Ej(r,Ua(a),106500)}function Xge(r,a){let l=Ua(a);if(typeof r!="string"){const _=r.parent;Sn(_)&&(l=An(l,m=>VNe(_,a,m))),r=on(r)}return Ej(r,l,111551)}function zNe(r,a){const l=ls(r)?r:on(r),_=Ua(a);return(l==="for"?wn(_,h=>Xo(h)==="htmlFor"):l==="class"?wn(_,h=>Xo(h)==="className"):void 0)??Ej(l,_,111551)}function Qge(r,a){const l=Xge(r,a);return l&&Xo(l)}function Yge(r,a,l){return E.assert(a!==void 0,"outername should always be defined"),_f(r,a,l,void 0,a,!1,!1,!0,(m,h,x)=>{E.assertEqual(a,h,"name should equal outerName");const N=m_(m,h,x);if(N)return N;let L;return m===ge?L=Ri(["string","number","boolean","object","bigint","symbol"],Z=>m.has(Z.charAt(0).toUpperCase()+Z.slice(1))?xa(524288,Z):void 0).concat(gs(m.values())):L=gs(m.values()),Ej(xi(h),L,x)})}function Jat(r,a,l){const _=Yge(r,a,l);return _&&Xo(_)}function QZ(r,a){return a.exports&&Ej(on(r),RS(a),2623475)}function zat(r,a){const l=QZ(r,a);return l&&Xo(l)}function Wat(r,a,l){function _(x){const N=vv(r,x);if(N){const L=_T(Xr(N));return!!L&&vm(L)>=1&&Qs(l,Md(L,0))}return!1}const m=vg(a)?"set":"get";if(!_(m))return;let h=Y8(a.expression);return h===void 0?h=m:h+="."+m,h}function Vat(r,a){const l=a.types.filter(_=>!!(_.flags&128));return q4(r.value,l,_=>_.value)}function Ej(r,a,l){return q4(r,a,_);function _(m){const h=Xo(m);if(!Vi(h,'"')){if(m.flags&l)return h;if(m.flags&2097152){const x=OS(m);if(x&&x.flags&l)return h}}}}function Pj(r,a,l){const _=r&&r.flags&106500&&r.valueDeclaration;if(!_)return;const m=R_(_,2),h=r.valueDeclaration&&Nu(r.valueDeclaration)&&Pi(r.valueDeclaration.name);if(!(!m&&!h)&&!(a&&sF(a)&&!(r.flags&65536))){if(l){const x=Pr(a,fo);if(x&&x.symbol===r)return}(Ko(r)&1?wi(r).target:r).isReferenced=-1}}function WNe(r,a){return r.kind===110||!!a&&pc(r)&&a===od(lf(r))}function Uat(r,a){switch(r.kind){case 211:return Zge(r,r.expression.kind===108,a,gf(Hi(r.expression)));case 166:return Zge(r,!1,a,gf(Hi(r.left)));case 205:return Zge(r,!1,a,ii(r))}}function VNe(r,a,l){return Kge(r,r.kind===211&&r.expression.kind===108,!1,a,l)}function Zge(r,a,l,_){if(ht(_))return!0;const m=$s(_,l);return!!m&&Kge(r,a,!1,_,m)}function Kge(r,a,l,_,m){if(ht(_))return!0;if(m.valueDeclaration&&Iu(m.valueDeclaration)){const h=Nl(m.valueDeclaration);return!hu(r)&&!!Pr(r,x=>x===h)}return wNe(r,a,l,_,m)}function qat(r){const a=r.initializer;if(a.kind===261){const l=a.declarations[0];if(l&&!Ns(l.name))return un(l)}else if(a.kind===80)return od(a)}function Hat(r){return Wu(r).length===1&&!!zg(r,_t)}function Gat(r){const a=Va(r);if(a.kind===80){const l=od(a);if(l.flags&3){let _=r,m=r.parent;for(;m;){if(m.kind===249&&_===m.statement&&qat(m)===l&&Hat(Yl(m.expression)))return!0;_=m,m=m.parent}}}return!1}function $at(r,a){return r.flags&64?Xat(r,a):UNe(r,E4(r.expression),a)}function Xat(r,a){const l=Hi(r.expression),_=kI(l,r.expression);return TZ(UNe(r,gm(_,r.expression),a),r,_!==l)}function UNe(r,a,l){const _=jT(r)!==0||ONe(r)?gf(a):a,m=r.argumentExpression,h=Hi(m);if(Ot(_)||_===Qi)return _;if(oK(_)&&!Ma(m))return Me(m,p.A_const_enum_member_can_only_be_accessed_using_a_string_literal),nt;const x=Gat(m)?_t:h,N=vg(r)?4|(KS(_)&&!KE(_)?2:0):32,L=Ky(_,x,N,r)||nt;return ZIe(MNe(r,jn(r).resolvedSymbol,L,m,l),r)}function qNe(r){return zd(r)||o2(r)||Fu(r)}function uT(r){return qNe(r)&&er(r.typeArguments,ia),r.kind===215?Hi(r.template):Fu(r)?Hi(r.attributes):Zr(r)?Hi(r.left):zd(r)&&er(r.arguments,a=>{Hi(a)}),lt}function hm(r){return uT(r),Xt}function Qat(r,a,l){let _,m,h=0,x,N=-1,L;E.assert(!a.length);for(const z of r){const Z=z.declaration&&un(z.declaration),de=z.declaration&&z.declaration.parent;!m||Z===m?_&&de===_?x=x+1:(_=de,x=h):(x=h=a.length,_=de),m=Z,HU(z)?(N++,L=N,h++):L=x,a.splice(L,0,l?Uet(z,l):z)}}function YZ(r){return!!r&&(r.kind===230||r.kind===237&&r.isSpread)}function ZZ(r){return vc(r,YZ)}function HNe(r){return!!(r.flags&16384)}function Yat(r){return!!(r.flags&49155)}function KZ(r,a,l,_=!1){let m,h=!1,x=hf(l),N=vm(l);if(r.kind===215)if(m=a.length,r.template.kind===228){const L=ka(r.template.templateSpans);h=_c(L.literal)||!!L.literal.isUnterminated}else{const L=r.template;E.assert(L.kind===15),h=!!L.isUnterminated}else if(r.kind===170)m=eIe(r,l);else if(r.kind===226)m=1;else if(Fu(r)){if(h=r.attributes.end===r.end,h)return!0;m=N===0?a.length:1,x=a.length===0?x:1,N=Math.min(N,1)}else if(r.arguments){m=_?a.length+1:a.length,h=r.arguments.end===r.end;const L=ZZ(a);if(L>=0)return L>=vm(l)&&(ag(l)||Lx)return!1;if(h||m>=N)return!0;for(let L=m;L=_&&a.length<=l}function GNe(r,a){let l;return!!(r.target&&(l=sb(r.target,a))&&S4(l))}function _T(r){return FI(r,0,!1)}function $Ne(r){return FI(r,0,!1)||FI(r,1,!1)}function FI(r,a,l){if(r.flags&524288){const _=Id(r);if(l||_.properties.length===0&&_.indexInfos.length===0){if(a===0&&_.callSignatures.length===1&&_.constructSignatures.length===0)return _.callSignatures[0];if(a===1&&_.constructSignatures.length===1&&_.callSignatures.length===0)return _.constructSignatures[0]}}}function XNe(r,a,l,_){const m=PI(r.typeParameters,r,0,_),h=OI(a),x=l&&(h&&h.flags&262144?l.nonFixingMapper:l.mapper),N=x?x4(a,x):a;return ege(N,r,(L,z)=>{Mh(m.inferences,L,z)}),l||tge(a,r,(L,z)=>{Mh(m.inferences,L,z,128)}),_I(r,pge(m),Hr(a.declaration))}function Zat(r,a,l,_){const m=UZ(a,r),h=w4(r.attributes,m,_,l);return Mh(_.inferences,h,m),pge(_)}function QNe(r){if(!r)return Wr;const a=Hi(r);return Ore(r)?a:iE(r.parent)?Lh(a):hu(r.parent)?SZ(a):a}function the(r,a,l,_,m){if(Fu(r))return Zat(r,a,_,m);if(r.kind!==170&&r.kind!==226){const L=Wi(a.typeParameters,Z=>!!XS(Z)),z=y_(r,L?8:0);if(z){const Z=Ja(a);if(Pv(Z)){const de=nb(r);if(!(!L&&y_(r,8)!==z)){const gt=sge(_it(de,1)),qt=zi(z,gt),$t=_T(qt),Ur=$t&&$t.typeParameters?QS(Kde($t,$t.typeParameters)):qt;Mh(m.inferences,Ur,Z,128)}const Re=PI(a.typeParameters,a,m.flags),st=zi(z,de&&de.returnMapper);Mh(Re.inferences,st,Z),m.returnMapper=ct(Re.inferences,A4)?sge(mit(Re)):void 0}}}const h=LI(a),x=h?Math.min(hf(a)-1,l.length):l.length;if(h&&h.flags&262144){const L=wn(m.inferences,z=>z.typeParameter===h);L&&(L.impliedArity=vc(l,YZ,x)<0?l.length-x:void 0)}const N=Sv(a);if(N&&Pv(N)){const L=KNe(r);Mh(m.inferences,QNe(L),N)}for(let L=0;L=l-1){const Z=r[l-1];if(YZ(Z)){const de=Z.kind===237?Z.type:w4(Z.expression,_,m,h);return N0(de)?YNe(de):pu(F0(33,de,Pe,Z.kind===230?Z.expression:Z),x)}}const N=[],L=[],z=[];for(let Z=a;Zvs(void 0,p.Type_0_does_not_satisfy_the_constraint_1):void 0,de=_||p.Type_0_does_not_satisfy_the_constraint_1;N||(N=ef(h,x));const _e=x[L];if(!Pu(_e,mf(zi(z,N),_e),l?a[L]:void 0,de,Z))return}}return x}function ZNe(r){if(Sk(r.tagName))return 2;const a=n_(Hi(r.tagName));return gr(Es(a,1))?0:gr(Es(a,0))?1:2}function Kat(r,a,l,_,m,h,x){const N=UZ(a,r),L=w4(r.attributes,N,void 0,_),z=_&4?EI(L):L;return Z()&&Bme(z,N,l,m?r.tagName:void 0,r.attributes,void 0,h,x);function Z(){var de;if(Bge(r))return!0;const _e=(Kd(r)||Xb(r))&&!(Sk(r.tagName)||yd(r.tagName))?Hi(r.tagName):void 0;if(!_e)return!0;const Re=Es(_e,0);if(!gr(Re))return!0;const st=s5e(r);if(!st)return!0;const gt=yo(st,111551,!0,!1,r);if(!gt)return!0;const qt=Xr(gt),$t=Es(qt,0);if(!gr($t))return!0;let Ur=!1,Tr=0;for(const Cr of $t){const kr=Md(Cr,0),Br=Es(kr,0);if(gr(Br))for(const Ir of Br){if(Ur=!0,ag(Ir))return!0;const Jr=hf(Ir);Jr>Tr&&(Tr=Jr)}}if(!Ur)return!0;let Gt=1/0;for(const Cr of Re){const kr=vm(Cr);kr{m.push(h.expression)}),m}if(r.kind===170)return eot(r);if(r.kind===226)return[r.left];if(Fu(r))return r.attributes.properties.length>0||Kd(r)&&r.parent.children.length>0?[r.attributes]:Ve;const a=r.arguments||Ve,l=ZZ(a);if(l>=0){const _=a.slice(0,l);for(let m=l;m{var z;const Z=x.target.elementFlags[L],de=wj(h,Z&4?pu(N):N,!!(Z&12),(z=x.target.labeledElementDeclarations)==null?void 0:z[L]);_.push(de)}):_.push(h)}return _}return a}function eot(r){const a=r.expression,l=mhe(r);if(l){const _=[];for(const m of l.parameters){const h=Xr(m);_.push(wj(a,h))}return _}return E.fail()}function eIe(r,a){return j.experimentalDecorators?tot(r,a):2}function tot(r,a){switch(r.parent.kind){case 263:case 231:return 1;case 172:return Gd(r.parent)?3:2;case 174:case 177:case 178:return re===0||a.parameters.length<=2?2:3;case 169:return 3;default:return E.fail()}}function tIe(r){const a=wr(r),{start:l,length:_}=Eb(a,Sn(r.expression)?r.expression.name:r.expression);return{start:l,length:_,sourceFile:a}}function Aj(r,a,...l){if(Rs(r)){const{sourceFile:_,start:m,length:h}=tIe(r);return"message"in a?xl(_,m,h,a,...l):Az(_,a)}else return"message"in a?yn(r,a,...l):Zg(wr(r),r,a)}function rot(r){return zd(r)?Sn(r.expression)?r.expression.name:r.expression:o2(r)?Sn(r.tag)?r.tag.name:r.tag:Fu(r)?r.tagName:r}function not(r){if(!Rs(r)||!Ie(r.expression))return!1;const a=Ho(r.expression,r.expression.escapedText,111551,void 0,void 0,!1),l=a==null?void 0:a.valueDeclaration;if(!l||!rs(l)||!t2(l.parent)||!a2(l.parent.parent)||!Ie(l.parent.parent.expression))return!1;const _=fme(!1);return _?ld(l.parent.parent.expression,!0)===_:!1}function rIe(r,a,l,_){var m;const h=ZZ(l);if(h>-1)return yn(l[h],p.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);let x=Number.POSITIVE_INFINITY,N=Number.NEGATIVE_INFINITY,L=Number.NEGATIVE_INFINITY,z=Number.POSITIVE_INFINITY,Z;for(const gt of a){const qt=vm(gt),$t=hf(gt);qtL&&(L=qt),l.length<$t&&$tm?x=Math.min(x,L):z1&&(Tr=kr(_e,Hm,st,Gt)),Tr||(Tr=kr(_e,d_,st,Gt)),Tr)return Tr;if(Tr=sot(r,_e,Re,!!l,_),jn(r).resolvedSignature=Tr,Z)if(!h&&z&&(h=p.The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method),qt)if(qt.length===1||qt.length>3){const Br=qt[qt.length-1];let Ir;qt.length>3&&(Ir=vs(Ir,p.The_last_overload_gave_the_following_error),Ir=vs(Ir,p.No_overload_matches_this_call)),h&&(Ir=vs(Ir,h));const Jr=Dj(r,Re,Br,d_,0,!0,()=>Ir);if(Jr)for(const ss of Jr)Br.declaration&&qt.length>3&&la(ss,yn(Br.declaration,p.The_last_overload_is_declared_here)),Cr(Br,ss),wa.add(ss);else E.fail("No error for last overload signature")}else{const Br=[];let Ir=0,Jr=Number.MAX_VALUE,ss=0,Ki=0;for(const I_ of qt){const jr=Dj(r,Re,I_,d_,0,!0,()=>vs(void 0,p.Overload_0_of_1_2_gave_the_following_error,Ki+1,_e.length,Ym(I_)));jr?(jr.length<=Jr&&(Jr=jr.length,ss=Ki),Ir=Math.max(Ir,jr.length),Br.push(jr)):E.fail("No error for 3 or fewer overload signatures"),Ki++}const hs=Ir>1?Br[ss]:Mp(Br);E.assert(hs.length>0,"No errors reported for 3 or fewer overload signatures");let Gi=vs(nr(hs,jte),p.No_overload_matches_this_call);h&&(Gi=vs(Gi,h));const el=[...Zs(hs,I_=>I_.relatedInformation)];let _p;if(Wi(hs,I_=>I_.start===hs[0].start&&I_.length===hs[0].length&&I_.file===hs[0].file)){const{file:I_,start:Sr,length:jr}=hs[0];_p={file:I_,start:Sr,length:jr,code:Gi.code,category:Gi.category,messageText:Gi,relatedInformation:el}}else _p=Zg(wr(r),rot(r),Gi,el);Cr(qt[0],_p),wa.add(_p)}else if($t)wa.add(rIe(r,[$t],Re,h));else if(Ur)nhe(Ur,r.typeArguments,!0,h);else{const Br=An(a,Ir=>ehe(Ir,de));Br.length===0?wa.add(iot(r,a,de,h)):wa.add(rIe(r,Br,Re,h))}return Tr;function Cr(Br,Ir){var Jr,ss;const Ki=qt,hs=$t,Gi=Ur,el=((ss=(Jr=Br.declaration)==null?void 0:Jr.symbol)==null?void 0:ss.declarations)||Ve,I_=el.length>1?wn(el,Sr=>fo(Sr)&&dp(Sr.body)):void 0;if(I_){const Sr=Np(I_),jr=!Sr.typeParameters;kr([Sr],d_,jr)&&la(Ir,yn(I_,p.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}qt=Ki,$t=hs,Ur=Gi}function kr(Br,Ir,Jr,ss=!1){if(qt=void 0,$t=void 0,Ur=void 0,Jr){const Ki=Br[0];if(ct(de)||!KZ(r,Re,Ki,ss))return;if(Dj(r,Re,Ki,Ir,0,!1,void 0)){qt=[Ki];return}return Ki}for(let Ki=0;Ki0),Tk(r),_||a.length===1||a.some(h=>!!h.typeParameters)?cot(r,a,l,m):aot(a)}function aot(r){const a=Ri(r,L=>L.thisParameter);let l;a.length&&(l=nIe(a,a.map(Fj)));const{min:_,max:m}=fne(r,oot),h=[];for(let L=0;LSu(Z)?Lsb(Z,L))))}const x=Ri(r,L=>Su(L)?ka(L.parameters):void 0);let N=128;if(x.length!==0){const L=pu(Bn(Ri(r,M8e),2));h.push(iIe(x,L)),N|=1}return r.some(HU)&&(N|=2),Jg(r[0].declaration,void 0,l,h,Xs(r.map(Ja)),void 0,_,N)}function oot(r){const a=r.parameters.length;return Su(r)?a-1:a}function nIe(r,a){return iIe(r,Bn(a,2))}function iIe(r,a){return nT(va(r),a)}function cot(r,a,l,_){const m=_ot(a,zt===void 0?l.length:zt),h=a[m],{typeParameters:x}=h;if(!x)return h;const N=qNe(r)?r.typeArguments:void 0,L=N?qY(h,lot(N,x,Hr(r))):uot(r,x,h,l,_);return a[m]=L,L}function lot(r,a,l){const _=r.map(xk);for(;_.length>a.length;)_.pop();for(;_.length=a)return m;x>_&&(_=x,l=m)}return l}function fot(r,a,l){if(r.expression.kind===108){const L=Dge(r.expression);if(ht(L)){for(const z of r.arguments)Hi(z);return lt}if(!Ot(L)){const z=Ud(Nl(r));if(z){const Z=eg(L,z.typeArguments,z);return P4(r,Z,a,l,0)}}return uT(r)}let _,m=Hi(r.expression);if(yb(r)){const L=kI(m,r.expression);_=L===m?0:sE(r)?16:8,m=L}else _=0;if(m=NNe(m,r.expression,wat),m===Qi)return rn;const h=n_(m);if(Ot(h))return hm(r);const x=Es(h,0),N=Es(h,1).length;if(Nj(m,h,x.length,N))return!Ot(m)&&r.typeArguments&&Me(r,p.Untyped_function_calls_may_not_accept_type_arguments),uT(r);if(!x.length){if(N)Me(r,p.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Ar(m));else{let L;if(r.arguments.length===1){const z=wr(r).text;gu(z.charCodeAt(ca(z,r.expression.end,!0)-1))&&(L=yn(r.expression,p.Are_you_missing_a_semicolon))}she(r.expression,h,0,L)}return hm(r)}return l&8&&!r.typeArguments&&x.some(pot)?(zIe(r,l),an):x.some(L=>Hr(L.declaration)&&!!qJ(L.declaration))?(Me(r,p.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Ar(m)),hm(r)):P4(r,x,a,l,_)}function pot(r){return!!(r.typeParameters&&Xhe(Ja(r)))}function Nj(r,a,l,_){return ht(r)||ht(a)&&!!(r.flags&262144)||!l&&!_&&!(a.flags&1048576)&&!(Fd(a).flags&131072)&&Qs(r,kt)}function dot(r,a,l){if(r.arguments&&re<1){const x=ZZ(r.arguments);x>=0&&Me(r.arguments[x],p.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}let _=E4(r.expression);if(_===Qi)return rn;if(_=n_(_),Ot(_))return hm(r);if(ht(_))return r.typeArguments&&Me(r,p.Untyped_function_calls_may_not_accept_type_arguments),uT(r);const m=Es(_,1);if(m.length){if(!mot(r,m[0]))return hm(r);if(sIe(m,N=>!!(N.flags&4)))return Me(r,p.Cannot_create_an_instance_of_an_abstract_class),hm(r);const x=_.symbol&&rh(_.symbol);return x&&Rn(x,64)?(Me(r,p.Cannot_create_an_instance_of_an_abstract_class),hm(r)):P4(r,m,a,l,0)}const h=Es(_,0);if(h.length){const x=P4(r,h,a,l,0);return ae||(x.declaration&&!ym(x.declaration)&&Ja(x)!==Wr&&Me(r,p.Only_a_void_function_can_be_called_with_the_new_keyword),Sv(x)===Wr&&Me(r,p.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),x}return she(r.expression,_,1),hm(r)}function sIe(r,a){return ts(r)?ct(r,l=>sIe(l,a)):r.compositeKind===1048576?ct(r.compositeSignatures,a):a(r)}function ihe(r,a){const l=Z_(a);if(!gr(l))return!1;const _=l[0];if(_.flags&2097152){const m=_.types,h=h8e(m);let x=0;for(const N of _.types){if(!h[x]&&bn(N)&3&&(N.symbol===r||ihe(r,N)))return!0;x++}return!1}return _.symbol===r?!0:ihe(r,_)}function mot(r,a){if(!a||!a.declaration)return!0;const l=a.declaration,_=zT(l,6);if(!_||l.kind!==176)return!0;const m=rh(l.parent.symbol),h=Eo(l.parent.symbol);if(!Hhe(r,m)){const x=Nl(r);if(x&&_&4){const N=xk(x);if(ihe(l.parent.symbol,N))return!0}return _&2&&Me(r,p.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Ar(h)),_&4&&Me(r,p.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Ar(h)),!1}return!0}function aIe(r,a,l){let _;const m=l===0,h=pT(a),x=h&&Es(h,l).length>0;if(a.flags&1048576){const L=a.types;let z=!1;for(const Z of L)if(Es(Z,l).length!==0){if(z=!0,_)break}else if(_||(_=vs(_,m?p.Type_0_has_no_call_signatures:p.Type_0_has_no_construct_signatures,Ar(Z)),_=vs(_,m?p.Not_all_constituents_of_type_0_are_callable:p.Not_all_constituents_of_type_0_are_constructable,Ar(a))),z)break;z||(_=vs(void 0,m?p.No_constituent_of_type_0_is_callable:p.No_constituent_of_type_0_is_constructable,Ar(a))),_||(_=vs(_,m?p.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:p.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,Ar(a)))}else _=vs(_,m?p.Type_0_has_no_call_signatures:p.Type_0_has_no_construct_signatures,Ar(a));let N=m?p.This_expression_is_not_callable:p.This_expression_is_not_constructable;if(Rs(r.parent)&&r.parent.arguments.length===0){const{resolvedSymbol:L}=jn(r);L&&L.flags&32768&&(N=p.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:vs(_,N),relatedMessage:x?p.Did_you_forget_to_use_await:void 0}}function she(r,a,l,_){const{messageChain:m,relatedMessage:h}=aIe(r,a,l),x=Zg(wr(r),r,m);if(h&&la(x,yn(r,h)),Rs(r.parent)){const{start:N,length:L}=tIe(r.parent);x.start=N,x.length=L}wa.add(x),oIe(a,l,_?la(x,_):x)}function oIe(r,a,l){if(!r.symbol)return;const _=wi(r.symbol).originatingImport;if(_&&!of(_)){const m=Es(Xr(wi(r.symbol).target),a);if(!m||!m.length)return;la(l,yn(_,p.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 got(r,a,l){const _=Hi(r.tag),m=n_(_);if(Ot(m))return hm(r);const h=Es(m,0),x=Es(m,1).length;if(Nj(_,m,h.length,x))return uT(r);if(!h.length){if(ju(r.parent)){const N=yn(r.tag,p.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 wa.add(N),hm(r)}return she(r.tag,m,0),hm(r)}return P4(r,h,a,l,0)}function hot(r){switch(r.parent.kind){case 263:case 231:return p.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 169:return p.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 172:return p.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 174:case 177:case 178:return p.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return E.fail()}}function yot(r,a,l){const _=Hi(r.expression),m=n_(_);if(Ot(m))return hm(r);const h=Es(m,0),x=Es(m,1).length;if(Nj(_,m,h.length,x))return uT(r);if(Sot(r,h)&&!l_(r.expression)){const L=jc(r.expression,!1);return Me(r,p._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,L),hm(r)}const N=hot(r);if(!h.length){const L=aIe(r.expression,m,0),z=vs(L.messageChain,N),Z=Zg(wr(r.expression),r.expression,z);return L.relatedMessage&&la(Z,yn(r.expression,L.relatedMessage)),wa.add(Z),oIe(m,0,Z),hm(r)}return P4(r,h,a,l,0,N)}function rK(r,a){const l=lT(r),_=l&&Q_(l),m=_&&m_(_,Ef.Element,788968),h=m&&ft.symbolToEntityName(m,788968,r),x=I.createFunctionTypeNode(void 0,[I.createParameterDeclaration(void 0,void 0,"props",void 0,ft.typeToTypeNode(a,r))],h?I.createTypeReferenceNode(h,void 0):I.createKeywordTypeNode(133)),N=xa(1,"props");return N.links.type=a,Jg(x,void 0,void 0,[N],m?Eo(m):nt,void 0,1,0)}function vot(r,a,l){if(Sk(r.tagName)){const x=CNe(r),N=rK(r,x);return n1(w4(r.attributes,UZ(N,r),void 0,0),x,r.tagName,r.attributes),gr(r.typeArguments)&&(er(r.typeArguments,ia),wa.add(eC(wr(r),r.typeArguments,p.Expected_0_type_arguments_but_got_1,0,gr(r.typeArguments)))),N}const _=Hi(r.tagName),m=n_(_);if(Ot(m))return hm(r);const h=xNe(_,r);return Nj(_,m,h.length,0)?uT(r):h.length===0?(Me(r.tagName,p.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,jc(r.tagName)),hm(r)):P4(r,h,a,l,0)}function bot(r,a,l){const _=Hi(r.right);if(!ht(_)){const m=vhe(_);if(m){const h=n_(m);if(Ot(h))return hm(r);const x=Es(h,0),N=Es(h,1);if(Nj(m,h,x.length,N.length))return uT(r);if(x.length)return P4(r,x,a,l,0)}else if(!(CK(_)||r1(_,kt)))return Me(r.right,p.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),hm(r)}return lt}function Sot(r,a){return a.length&&Wi(a,l=>l.minArgumentCount===0&&!Su(l)&&l.parameters.length1?Dc(r.arguments[1]):void 0;for(let h=2;h{const x=gf(m);uZ(h,x)||Qwe(m,h,l,p.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 Aot(r){const a=Hi(r.expression),l=kI(a,r.expression);return TZ(Lh(l),r,l!==a)}function Not(r){return r.flags&64?Aot(r):Lh(Hi(r.expression))}function dIe(r){if(c5e(r),er(r.typeArguments,ia),r.kind===233){const l=Yh(r.parent);l.kind===226&&l.operatorToken.kind===104&&Hv(r,l.right)&&Me(r,p.The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression)}const a=r.kind===233?Hi(r.expression):Yv(r.exprName)?yj(r.exprName):Hi(r.exprName);return mIe(a,r)}function mIe(r,a){const l=a.typeArguments;if(r===Qi||Ot(r)||!ct(l))return r;let _=!1,m;const h=N(r),x=_?m:r;return x&&wa.add(eC(wr(a),l,p.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,Ar(x))),h;function N(z){let Z=!1,de=!1;const _e=Re(z);return _||(_=de),Z&&!de&&(m??(m=z)),_e;function Re(st){if(st.flags&524288){const gt=Id(st),qt=L(gt.callSignatures),$t=L(gt.constructSignatures);if(Z||(Z=gt.callSignatures.length!==0||gt.constructSignatures.length!==0),de||(de=qt.length!==0||$t.length!==0),qt!==gt.callSignatures||$t!==gt.constructSignatures){const Ur=so(xa(0,"__instantiationExpression"),gt.members,qt,$t,gt.indexInfos);return Ur.objectFlags|=8388608,Ur.node=a,Ur}}else if(st.flags&58982400){const gt=fu(st);if(gt){const qt=Re(gt);if(qt!==gt)return qt}}else{if(st.flags&1048576)return jo(st,N);if(st.flags&2097152)return Xs(rl(st.types,Re))}return st}}function L(z){const Z=An(z,de=>!!de.typeParameters&&ehe(de,l));return rl(Z,de=>{const _e=nhe(de,l,!0);return _e?_I(de,_e,Hr(de.declaration)):de})}}function Iot(r){return ia(r.type),lhe(r.expression,r.type)}function lhe(r,a,l){const _=Hi(r,l),m=ii(a);if(Ot(m))return m;const h=Pr(a.parent,x=>x.kind===238||x.kind===357);return n1(_,m,h,r,p.Type_0_does_not_satisfy_the_expected_type_1),_}function Fot(r){return wft(r),r.keywordToken===105?uhe(r):r.keywordToken===102?Oot(r):E.assertNever(r.keywordToken)}function gIe(r){switch(r.keywordToken){case 102:return Y8e();case 105:const a=uhe(r);return Ot(a)?nt:Yot(a);default:E.assertNever(r.keywordToken)}}function uhe(r){const a=Zte(r);if(a)if(a.kind===176){const l=un(a.parent);return Xr(l)}else{const l=un(a);return Xr(l)}else return Me(r,p.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),nt}function Oot(r){R===100||R===199?wr(r).impliedNodeFormat!==99&&Me(r,p.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):R<6&&R!==4&&Me(r,p.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext);const a=wr(r);return E.assert(!!(a.flags&8388608),"Containing file is missing import meta node flag."),r.name.escapedText==="meta"?Q8e():nt}function Fj(r){const a=r.valueDeclaration;return A_(Xr(r),!1,!!a&&(Z0(a)||e3(a)))}function _he(r,a,l="arg"){return r?(E.assert(Ie(r.name)),r.name.escapedText):`${l}_${a}`}function KP(r,a,l){const _=r.parameters.length-(Su(r)?1:0);if(a<_)return r.parameters[a].escapedName;const m=r.parameters[_]||tt,h=l||Xr(m);if(da(h)){const x=h.target.labeledElementDeclarations,N=a-_;return _he(x==null?void 0:x[N],N,m.escapedName)}return m.escapedName}function Lot(r,a){var l;if(((l=r.declaration)==null?void 0:l.kind)===324)return;const _=r.parameters.length-(Su(r)?1:0);if(a<_){const N=r.parameters[a],L=hIe(N);return L?{parameter:L,parameterName:N.escapedName,isRestParameter:!1}:void 0}const m=r.parameters[_]||tt,h=hIe(m);if(!h)return;const x=Xr(m);if(da(x)){const N=x.target.labeledElementDeclarations,L=a-_,z=N==null?void 0:N[L],Z=!!(z!=null&&z.dotDotDotToken);return z?(E.assert(Ie(z.name)),{parameter:z.name,parameterName:z.name.escapedText,isRestParameter:Z}):void 0}if(a===_)return{parameter:h,parameterName:m.escapedName,isRestParameter:!0}}function hIe(r){return r.valueDeclaration&&rs(r.valueDeclaration)&&Ie(r.valueDeclaration.name)&&r.valueDeclaration.name}function yIe(r){return r.kind===202||rs(r)&&r.name&&Ie(r.name)}function Mot(r,a){const l=r.parameters.length-(Su(r)?1:0);if(a=_-1)return a===_-1?h:pu(K_(h,_t));const x=[],N=[],L=[];for(let z=a;z<_;z++)!h||z<_-1?(x.push(Md(r,z)),N.push(z!(L&1)),N=x<0?h.target.fixedLength:x;N>0&&(m=r.parameters.length-1+N)}}if(m===void 0){if(!l&&r.flags&32)return 0;m=r.minArgumentCount}if(_)return m;for(let h=m-1;h>=0;h--){const x=Md(r,h);if(Mc(x,HNe).flags&131072)break;m=h}r.resolvedMinArgumentCount=m}return r.resolvedMinArgumentCount}function ag(r){if(Su(r)){const a=Xr(r.parameters[r.parameters.length-1]);return!da(a)||a.target.hasRestElement}return!1}function OI(r){if(Su(r)){const a=Xr(r.parameters[r.parameters.length-1]);if(!da(a))return ht(a)?Ec:a;if(a.target.hasRestElement)return zP(a,a.target.fixedLength)}}function LI(r){const a=OI(r);return a&&!up(a)&&!ht(a)?a:void 0}function fhe(r){return phe(r,Cn)}function phe(r,a){return r.parameters.length>0?Md(r,0):a}function bIe(r,a,l){const _=r.parameters.length-(Su(r)?1:0);for(let m=0;m<_;m++){const h=r.parameters[m].valueDeclaration,x=Vl(h);if(x){const N=A_(ii(x),!1,e3(h)),L=Md(a,m);Mh(l.inferences,N,L)}}}function Rot(r,a){if(a.typeParameters)if(!r.typeParameters)r.typeParameters=a.typeParameters;else return;if(a.thisParameter){const _=r.thisParameter;(!_||_.valueDeclaration&&!_.valueDeclaration.type)&&(_||(r.thisParameter=nT(a.thisParameter,void 0)),Lj(r.thisParameter,Xr(a.thisParameter)))}const l=r.parameters.length-(Su(r)?1:0);for(let _=0;_=0);const h=sc(_.parent)?Xr(un(_.parent.parent)):Y7e(_.parent),x=sc(_.parent)?Pe:Z7e(_.parent),N=Od(m),L=Cd("target",h),z=Cd("propertyKey",x),Z=Cd("parameterIndex",N);l.decoratorSignature=zI(void 0,void 0,[L,z,Z],Wr);break}case 174:case 177:case 178:case 172:{const _=a;if(!$n(_.parent))break;const m=Y7e(_),h=Cd("target",m),x=Z7e(_),N=Cd("propertyKey",x),L=xs(_)?Wr:iwe(xk(_));if(re!==0&&(!xs(a)||Gd(a))){const Z=iwe(xk(_)),de=Cd("descriptor",Z);l.decoratorSignature=zI(void 0,void 0,[h,N,de],Bn([L,Wr]))}else l.decoratorSignature=zI(void 0,void 0,[h,N],Bn([L,Wr]));break}}return l.decoratorSignature===lt?void 0:l.decoratorSignature}function mhe(r){return Y?Qot(r):Xot(r)}function Mj(r){const a=HR(!0);return a!==fs?(r=I0(iD(r))||Kt,P0(a,[r])):Kt}function xIe(r){const a=twe(!0);return a!==fs?(r=I0(iD(r))||Kt,P0(a,[r])):Kt}function Rj(r,a){const l=Mj(a);return l===Kt?(Me(r,of(r)?p.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:p.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),nt):(fme(!0)||Me(r,of(r)?p.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:p.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),l)}function Yot(r){const a=xa(0,"NewTargetExpression"),l=xa(4,"target",8);l.parent=a,l.links.type=r;const _=Bs([l]);return a.members=_,so(a,_,Ve,Ve,Ve)}function sK(r,a){if(!r.body)return nt;const l=fl(r),_=(l&2)!==0,m=(l&1)!==0;let h,x,N,L=Wr;if(r.body.kind!==241)h=Dc(r.body,a&&a&-9),_&&(h=iD(JI(h,!1,r,p.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(m){const z=wIe(r,a);z?z.length>0&&(h=Bn(z,2)):L=Cn;const{yieldTypes:Z,nextTypes:de}=Zot(r,a);x=ct(Z)?Bn(Z,2):void 0,N=ct(de)?Xs(de):void 0}else{const z=wIe(r,a);if(!z)return l&2?Rj(r,Cn):Cn;if(z.length===0){const Z=JZ(r,void 0),de=Z&&($j(Z,l)||Wr).flags&32768?Pe:Wr;return l&2?Rj(r,de):de}h=Bn(z,2)}if(h||x||N){if(x&&EZ(r,x,3),h&&EZ(r,h,1),N&&EZ(r,N,2),h&&Ld(h)||x&&Ld(x)||N&&Ld(N)){const z=Lge(r),Z=z?z===Np(r)?m?void 0:h:WZ(Ja(z),r,void 0):void 0;m?(x=Zme(x,Z,0,_),h=Zme(h,Z,1,_),N=Zme(N,Z,2,_)):h=Knt(h,Z,_)}x&&(x=gf(x)),h&&(h=gf(h)),N&&(N=gf(N))}return m?kIe(x||Cn,h||L,N||lNe(2,r)||Kt,_):_?Mj(h||L):h||L}function kIe(r,a,l,_){const m=_?ho:Vc,h=m.getGlobalGeneratorType(!1);if(r=m.resolveIterationType(r,void 0)||Kt,a=m.resolveIterationType(a,void 0)||Kt,l=m.resolveIterationType(l,void 0)||Kt,h===fs){const x=m.getGlobalIterableIteratorType(!1),N=x!==fs?g7e(x,m):void 0,L=N?N.returnType:B,z=N?N.nextType:Pe;return Qs(a,L)&&Qs(z,l)?x!==fs?pI(x,[r]):(m.getGlobalIterableIteratorType(!0),oa):(m.getGlobalGeneratorType(!0),oa)}return pI(h,[r,a,l])}function Zot(r,a){const l=[],_=[],m=(fl(r)&2)!==0;return zte(r.body,h=>{const x=h.expression?Hi(h.expression,a):St;zf(l,CIe(h,x,B,m));let N;if(h.asteriskToken){const L=yK(x,m?19:17,h.expression);N=L&&L.nextType}else N=y_(h,void 0);N&&zf(_,N)}),{yieldTypes:l,nextTypes:_}}function CIe(r,a,l,_){const m=r.expression||r,h=r.asteriskToken?F0(_?19:17,a,l,m):a;return _?pT(h,m,r.asteriskToken?p.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:p.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):h}function EIe(r,a,l){let _=0;for(let m=0;m=a?l[m]:void 0;_|=h!==void 0?$U.get(h)||32768:0}return _}function PIe(r){const a=jn(r);if(a.isExhaustive===void 0){a.isExhaustive=0;const l=Kot(r);a.isExhaustive===0&&(a.isExhaustive=l)}else a.isExhaustive===0&&(a.isExhaustive=!1);return a.isExhaustive}function Kot(r){if(r.expression.kind===221){const _=zAe(r);if(!_)return!1;const m=wh(Dc(r.expression.expression)),h=EIe(0,0,_);return m.flags&3?(556800&h)===556800:!cd(m,x=>$P(x,h)===h)}const a=Dc(r.expression);if(!xI(a))return!1;const l=IZ(r);return!l.length||ct(l,Qnt)?!1:Git(jo(a,Uu),l)}function DIe(r){return r.endFlowNode&&gj(r.endFlowNode)}function wIe(r,a){const l=fl(r),_=[];let m=DIe(r),h=!1;if(Wv(r.body,x=>{let N=x.expression;if(N){if(N=Va(N,!0),l&2&&N.kind===223&&(N=Va(N.expression,!0)),N.kind===213&&N.expression.kind===80&&Dc(N.expression).symbol===r.symbol){h=!0;return}let L=Dc(N,a&&a&-9);l&2&&(L=iD(JI(L,!1,r,p.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),L.flags&131072&&(h=!0),zf(_,L)}else m=!0}),!(_.length===0&&!m&&(h||ect(r))))return q&&_.length&&m&&!(ym(r)&&_.some(x=>x.symbol===r.symbol))&&zf(_,Pe),_}function ect(r){switch(r.kind){case 218:case 219:return!0;case 174:return r.parent.kind===210;default:return!1}}function ghe(r,a){n(l);return;function l(){const _=fl(r),m=a&&$j(a,_);if(m&&(nc(m,16384)||m.flags&32769)||r.kind===173||_c(r.body)||r.body.kind!==241||!DIe(r))return;const h=r.flags&1024,x=bp(r)||r;if(m&&m.flags&131072)Me(x,p.A_function_returning_never_cannot_have_a_reachable_end_point);else if(m&&!h)Me(x,p.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);else if(m&&q&&!Qs(Pe,m))Me(x,p.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(j.noImplicitReturns){if(!m){if(!h)return;const N=Ja(Np(r));if(k7e(r,N))return}Me(x,p.Not_all_code_paths_return_a_value)}}}function AIe(r,a){if(E.assert(r.kind!==174||Up(r)),Tk(r),co(r)&&sD(r,r.name),a&&a&4&&cp(r)){if(!bp(r)&&!CF(r)){const _=II(r);if(_&&Pv(Ja(_))){const m=jn(r);if(m.contextFreeType)return m.contextFreeType;const h=sK(r,a),x=Jg(void 0,void 0,void 0,Ve,h,void 0,0,64),N=so(r.symbol,U,[x],Ve,Ve);return N.objectFlags|=262144,m.contextFreeType=N}}return Wt}return!wK(r)&&r.kind===218&&Zhe(r),tct(r,a),Xr(un(r))}function tct(r,a){const l=jn(r);if(!(l.flags&64)){const _=II(r);if(!(l.flags&64)){l.flags|=64;const m=bl(Es(Xr(un(r)),0));if(!m)return;if(cp(r))if(_){const h=nb(r);let x;if(a&&a&2){bIe(m,_,h);const N=OI(_);N&&N.flags&262144&&(x=x4(_,h.nonFixingMapper))}x||(x=h?x4(_,h.mapper):_),Rot(m,x)}else jot(m);else if(_&&!r.typeParameters&&_.parameters.length>r.parameters.length){const h=nb(r);a&&a&2&&bIe(m,_,h)}if(_&&!g4(r)&&!m.resolvedReturnType){const h=sK(r,a);m.resolvedReturnType||(m.resolvedReturnType=h)}RI(r)}}}function rct(r){E.assert(r.kind!==174||Up(r));const a=fl(r),l=g4(r);if(ghe(r,l),r.body)if(bp(r)||Ja(Np(r)),r.body.kind===241)ia(r.body);else{const _=Hi(r.body),m=l&&$j(l,a);if(m){const h=eK(r.body);if((a&3)===2){const x=JI(_,!1,h,p.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);n1(x,m,h,h)}else n1(_,m,h,h)}}}function aK(r,a,l,_=!1){if(!Qs(a,kc)){const m=_&&nD(a);return nv(r,!!m&&Qs(m,kc),l),!1}return!0}function nct(r){if(!Rs(r)||!Ab(r))return!1;const a=Dc(r.arguments[2]);if(je(a,"value")){const m=$s(a,"writable"),h=m&&Xr(m);if(!h||h===Jt||h===ar)return!0;if(m&&m.valueDeclaration&&zc(m.valueDeclaration)){const x=m.valueDeclaration.initializer,N=Hi(x);if(N===Jt||N===ar)return!0}return!1}return!$s(a,"set")}function Rd(r){return!!(Ko(r)&8||r.flags&4&&Hf(r)&8||r.flags&3&&Wge(r)&6||r.flags&98304&&!(r.flags&65536)||r.flags&8||ct(r.declarations,nct))}function NIe(r,a,l){var _,m;if(l===0)return!1;if(Rd(a)){if(a.flags&4&&oo(r)&&r.expression.kind===110){const h=cf(r);if(!(h&&(h.kind===176||ym(h))))return!0;if(a.valueDeclaration){const x=Zr(a.valueDeclaration),N=h.parent===a.valueDeclaration.parent,L=h===a.valueDeclaration.parent,z=x&&((_=a.parent)==null?void 0:_.valueDeclaration)===h.parent,Z=x&&((m=a.parent)==null?void 0:m.valueDeclaration)===h;return!(N||L||z||Z)}}return!0}if(oo(r)){const h=Va(r.expression);if(h.kind===80){const x=jn(h).resolvedSymbol;if(x.flags&2097152){const N=rd(x);return!!N&&N.kind===274}}}return!1}function MI(r,a,l){const _=xc(r,7);return _.kind!==80&&!oo(_)?(Me(r,a),!1):_.flags&64?(Me(r,l),!1):!0}function ict(r){Hi(r.expression);const a=Va(r.expression);if(!oo(a))return Me(a,p.The_operand_of_a_delete_operator_must_be_a_property_reference),fi;Sn(a)&&Pi(a.name)&&Me(a,p.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);const l=jn(a),_=Rf(l.resolvedSymbol);return _&&(Rd(_)?Me(a,p.The_operand_of_a_delete_operator_cannot_be_a_read_only_property):sct(a,_)),fi}function sct(r,a){const l=Xr(a);q&&!(l.flags&131075)&&!(be?a.flags&16777216:Fp(l,16777216))&&Me(r,p.The_operand_of_a_delete_operator_must_be_optional)}function act(r){return Hi(r.expression),G6}function oct(r){return Tk(r),St}function IIe(r){let a=!1;const l=T5(r);if(l&&ec(l)){const _=py(r)?p.await_expression_cannot_be_used_inside_a_class_static_block:p.await_using_statements_cannot_be_used_inside_a_class_static_block;Me(r,_),a=!0}else if(!(r.flags&65536))if(k5(r)){const _=wr(r);if(!ob(_)){let m;if(!FT(_,j)){m??(m=Im(_,r.pos));const h=py(r)?p.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:p.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,x=xl(_,m.start,m.length,h);wa.add(x),a=!0}switch(R){case 100:case 199:if(_.impliedNodeFormat===1){m??(m=Im(_,r.pos)),wa.add(xl(_,m.start,m.length,p.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(re>=4)break;default:m??(m=Im(_,r.pos));const h=py(r)?p.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:p.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;wa.add(xl(_,m.start,m.length,h)),a=!0;break}}}else{const _=wr(r);if(!ob(_)){const m=Im(_,r.pos),h=py(r)?p.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:p.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules,x=xl(_,m.start,m.length,h);if(l&&l.kind!==176&&!(fl(l)&2)){const N=yn(l,p.Did_you_mean_to_mark_this_function_as_async);la(x,N)}wa.add(x),a=!0}}return py(r)&&Age(r)&&(Me(r,p.await_expressions_cannot_be_used_in_a_parameter_initializer),a=!0),a}function cct(r){n(()=>IIe(r));const a=Hi(r.expression),l=JI(a,!0,r,p.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return l===a&&!Ot(l)&&!(a.flags&3)&&kd(!1,yn(r,p.await_has_no_effect_on_the_type_of_this_expression)),l}function lct(r){const a=Hi(r.operand);if(a===Qi)return Qi;switch(r.operand.kind){case 9:switch(r.operator){case 41:return vk(Od(-r.operand.text));case 40:return vk(Od(+r.operand.text))}break;case 10:if(r.operator===41)return vk(iZ({negative:!0,base10Value:$E(r.operand.text)}))}switch(r.operator){case 40:case 41:case 55:return gm(a,r.operand),jj(a,12288)&&Me(r.operand,p.The_0_operator_cannot_be_applied_to_type_symbol,Ws(r.operator)),r.operator===40?(jj(a,2112)&&Me(r.operand,p.Operator_0_cannot_be_applied_to_type_1,Ws(r.operator),Ar(Oh(a))),_t):hhe(a);case 54:Fhe(a,r.operand);const l=$P(a,12582912);return l===4194304?Jt:l===8388608?Er:fi;case 46:case 47:return aK(r.operand,gm(a,r.operand),p.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&MI(r.operand,p.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,p.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),hhe(a)}return nt}function uct(r){const a=Hi(r.operand);return a===Qi?Qi:(aK(r.operand,gm(a,r.operand),p.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&MI(r.operand,p.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,p.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),hhe(a))}function hhe(r){return nc(r,2112)?Ql(r,3)||nc(r,296)?kc:Tt:_t}function jj(r,a){if(nc(r,a))return!0;const l=wh(r);return!!l&&nc(l,a)}function nc(r,a){if(r.flags&a)return!0;if(r.flags&3145728){const l=r.types;for(const _ of l)if(nc(_,a))return!0}return!1}function Ql(r,a,l){return r.flags&a?!0:l&&r.flags&114691?!1:!!(a&296)&&Qs(r,_t)||!!(a&2112)&&Qs(r,Tt)||!!(a&402653316)&&Qs(r,Ce)||!!(a&528)&&Qs(r,fi)||!!(a&16384)&&Qs(r,Wr)||!!(a&131072)&&Qs(r,Cn)||!!(a&65536)&&Qs(r,ce)||!!(a&32768)&&Qs(r,Pe)||!!(a&4096)&&Qs(r,oi)||!!(a&67108864)&&Qs(r,In)}function Bj(r,a,l){return r.flags&1048576?Wi(r.types,_=>Bj(_,a,l)):Ql(r,a,l)}function oK(r){return!!(bn(r)&16)&&!!r.symbol&&yhe(r.symbol)}function yhe(r){return(r.flags&128)!==0}function vhe(r){const a=y7e("hasInstance"),l=vv(r,a);if(l){const _=Xr(l);if(_&&Es(_,0).length!==0)return _}}function _ct(r,a,l,_,m){if(l===Qi||_===Qi)return Qi;!ht(l)&&Bj(l,402784252)&&Me(r,p.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),E.assert(eF(r.parent));const h=D4(r.parent,void 0,m);if(h===an)return Qi;const x=Ja(h);return Pu(x,fi,a,p.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),fi}function fct(r){return cd(r,a=>a===rc||!!(a.flags&2097152)&&sg(wh(a)))}function pct(r,a,l,_){if(l===Qi||_===Qi)return Qi;if(Pi(r)){if(re<99&&Kc(r,2097152),!jn(r).resolvedSymbol&&Nl(r)){const m=$ge(r,_.symbol,!0);jNe(r,_,m)}}else Pu(gm(l,r),pr,r);return Pu(gm(_,a),In,a)&&fct(_)&&Me(a,p.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,Ar(_)),fi}function dct(r,a,l){const _=r.properties;if(q&&_.length===0)return gm(a,r);for(let m=0;m<_.length;m++)FIe(r,a,m,_,l);return a}function FIe(r,a,l,_,m=!1){const h=r.properties,x=h[l];if(x.kind===303||x.kind===304){const N=x.name,L=w0(N);if(Sp(L)){const de=Tp(L),_e=$s(a,de);_e&&(Pj(_e,x,m),Uge(x,!1,!0,a,_e))}const z=K_(a,L,32,N),Z=Ai(x,z);return fT(x.kind===304?x:x.initializer,Z)}else if(x.kind===305)if(lzP(z,l)):pu(_);return fT(N,L,m)}}}}function fT(r,a,l,_){let m;if(r.kind===304){const h=r;h.objectAssignmentInitializer&&(q&&!Fp(Hi(h.objectAssignmentInitializer),16777216)&&(a=Op(a,524288)),vct(h.name,h.equalsToken,h.objectAssignmentInitializer,l)),m=r.name}else m=r;return m.kind===226&&m.operatorToken.kind===64&&(xe(m,l),m=m.left,q&&(a=Op(a,524288))),m.kind===210?dct(m,a,_):m.kind===209?mct(m,a,l):gct(m,a,l)}function gct(r,a,l){const _=Hi(r,l),m=r.parent.kind===305?p.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:p.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,h=r.parent.kind===305?p.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:p.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;return MI(r,m,h)&&n1(a,_,r,r),qk(r)&&Kc(r.parent,1048576),a}function Jj(r){switch(r=Va(r),r.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 Jj(r.whenTrue)&&Jj(r.whenFalse);case 226:return Kh(r.operatorToken.kind)?!1:Jj(r.left)&&Jj(r.right);case 224:case 225:switch(r.operator){case 54:case 40:case 41:case 55:return!0}return!1;case 222:case 216:case 234:default:return!1}}function bhe(r,a){return(a.flags&98304)!==0||uZ(r,a)}function hct(){const r=JO(a,l,_,m,h,x);return(_e,Re)=>{const st=r(_e,Re);return E.assertIsDefined(st),st};function a(_e,Re,st){return Re?(Re.stackIndex++,Re.skip=!1,z(Re,void 0),de(Re,void 0)):Re={checkMode:st,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},Hr(_e)&&OT(_e)?(Re.skip=!0,de(Re,Hi(_e.right,st)),Re):(yct(_e),_e.operatorToken.kind===64&&(_e.left.kind===210||_e.left.kind===209)&&(Re.skip=!0,de(Re,fT(_e.left,Hi(_e.right,st),st,_e.right.kind===110))),Re)}function l(_e,Re,st){if(!Re.skip)return N(Re,_e)}function _(_e,Re,st){if(!Re.skip){const gt=Z(Re);E.assertIsDefined(gt),z(Re,gt),de(Re,void 0);const qt=_e.kind;if($8(qt)){let $t=st.parent;for(;$t.kind===217||X8($t);)$t=$t.parent;(qt===56||Hb($t))&&Ihe(st.left,gt,Hb($t)?$t.thenStatement:void 0),Fhe(gt,st.left)}}}function m(_e,Re,st){if(!Re.skip)return N(Re,_e)}function h(_e,Re){let st;if(Re.skip)st=Z(Re);else{const gt=L(Re);E.assertIsDefined(gt);const qt=Z(Re);E.assertIsDefined(qt),st=LIe(_e.left,_e.operatorToken,_e.right,gt,qt,Re.checkMode,_e)}return Re.skip=!1,z(Re,void 0),de(Re,void 0),Re.stackIndex--,st}function x(_e,Re,st){return de(_e,Re),_e}function N(_e,Re){if(Zr(Re))return Re;de(_e,Hi(Re,_e.checkMode))}function L(_e){return _e.typeStack[_e.stackIndex]}function z(_e,Re){_e.typeStack[_e.stackIndex]=Re}function Z(_e){return _e.typeStack[_e.stackIndex+1]}function de(_e,Re){_e.typeStack[_e.stackIndex+1]=Re}}function yct(r){const{left:a,operatorToken:l,right:_}=r;l.kind===61&&(Zr(a)&&(a.operatorToken.kind===57||a.operatorToken.kind===56)&&or(a,p._0_and_1_operations_cannot_be_mixed_without_parentheses,Ws(a.operatorToken.kind),Ws(l.kind)),Zr(_)&&(_.operatorToken.kind===57||_.operatorToken.kind===56)&&or(_,p._0_and_1_operations_cannot_be_mixed_without_parentheses,Ws(_.operatorToken.kind),Ws(l.kind)))}function vct(r,a,l,_,m){const h=a.kind;if(h===64&&(r.kind===210||r.kind===209))return fT(r,Hi(l,_),_,l.kind===110);let x;$8(h)?x=aD(r,_):x=Hi(r,_);const N=Hi(l,_);return LIe(r,a,l,x,N,_,m)}function LIe(r,a,l,_,m,h,x){const N=a.kind;switch(N){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(_===Qi||m===Qi)return Qi;_=gm(_,r),m=gm(m,l);let Gt;if(_.flags&528&&m.flags&528&&(Gt=_e(a.kind))!==void 0)return Me(x||a,p.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,Ws(a.kind),Ws(Gt)),_t;{const Br=aK(r,_,p.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),Ir=aK(l,m,p.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0);let Jr;if(Ql(_,3)&&Ql(m,3)||!(nc(_,2112)||nc(m,2112)))Jr=_t;else if(L(_,m)){switch(N){case 50:case 73:qt();break;case 43:case 68:re<3&&Me(x,p.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}Jr=Tt}else qt(L),Jr=nt;return Br&&Ir&&Re(Jr),Jr}case 40:case 65:if(_===Qi||m===Qi)return Qi;!Ql(_,402653316)&&!Ql(m,402653316)&&(_=gm(_,r),m=gm(m,l));let Cr;return Ql(_,296,!0)&&Ql(m,296,!0)?Cr=_t:Ql(_,2112,!0)&&Ql(m,2112,!0)?Cr=Tt:Ql(_,402653316,!0)||Ql(m,402653316,!0)?Cr=Ce:(ht(_)||ht(m))&&(Cr=Ot(_)||Ot(m)?nt:B),Cr&&!de(N)?Cr:Cr?(N===65&&Re(Cr),Cr):(qt((Ir,Jr)=>Ql(Ir,402655727)&&Ql(Jr,402655727)),B);case 30:case 32:case 33:case 34:return de(N)&&(_=Qme(gm(_,r)),m=Qme(gm(m,l)),gt((Br,Ir)=>{if(ht(Br)||ht(Ir))return!0;const Jr=Qs(Br,kc),ss=Qs(Ir,kc);return Jr&&ss||!Jr&&!ss&&tj(Br,Ir)})),fi;case 35:case 36:case 37:case 38:if(!(h&&h&64)){if((ez(r)||ez(l))&&(!Hr(r)||N===37||N===38)){const Br=N===35||N===37;Me(x,p.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,Br?"false":"true")}Ur(x,N,r,l),gt((Br,Ir)=>bhe(Br,Ir)||bhe(Ir,Br))}return fi;case 104:return _ct(r,l,_,m,h);case 103:return pct(r,l,_,m);case 56:case 77:{const Br=Fp(_,4194304)?Bn([rit(q?_:Oh(m)),m]):_;return N===77&&Re(m),Br}case 57:case 76:{const Br=Fp(_,8388608)?Bn([Lh(dAe(_)),m],2):_;return N===76&&Re(m),Br}case 61:case 78:{const Br=Fp(_,262144)?Bn([Lh(_),m],2):_;return N===78&&Re(m),Br}case 64:const kr=Zr(r.parent)?fc(r.parent):0;return z(kr,m),st(kr)?((!(m.flags&524288)||kr!==2&&kr!==6&&!Fh(m)&&!hge(m)&&!(bn(m)&1))&&Re(m),_):(Re(m),m);case 28:if(!j.allowUnreachableCode&&Jj(r)&&!Z(r.parent)){const Br=wr(r),Ir=Br.text,Jr=ca(Ir,r.pos);Br.parseDiagnostics.some(Ki=>Ki.code!==p.JSX_expressions_must_have_one_parent_element.code?!1:WJ(Ki,Jr))||Me(r,p.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return m;default:return E.fail()}function L(Gt,Cr){return Ql(Gt,2112)&&Ql(Cr,2112)}function z(Gt,Cr){if(Gt===2)for(const kr of Qy(Cr)){const Br=Xr(kr);if(Br.symbol&&Br.symbol.flags&32){const Ir=kr.escapedName,Jr=Ho(kr.valueDeclaration,Ir,788968,void 0,Ir,!1);Jr!=null&&Jr.declarations&&Jr.declarations.some(Zb)&&(wp(Jr,p.Duplicate_identifier_0,xi(Ir),kr),wp(kr,p.Duplicate_identifier_0,xi(Ir),Jr))}}}function Z(Gt){return Gt.parent.kind===217&&j_(Gt.left)&&Gt.left.text==="0"&&(Rs(Gt.parent.parent)&&Gt.parent.parent.expression===Gt.parent||Gt.parent.parent.kind===215)&&(oo(Gt.right)||Ie(Gt.right)&&Gt.right.escapedText==="eval")}function de(Gt){const Cr=jj(_,12288)?r:jj(m,12288)?l:void 0;return Cr?(Me(Cr,p.The_0_operator_cannot_be_applied_to_type_symbol,Ws(Gt)),!1):!0}function _e(Gt){switch(Gt){case 52:case 75:return 57;case 53:case 79:return 38;case 51:case 74:return 56;default:return}}function Re(Gt){Kh(N)&&n(Cr);function Cr(){let kr=_;if(O3(a.kind)&&r.kind===211&&(kr=GZ(r,void 0,!0)),MI(r,p.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,p.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)){let Br;if(be&&Sn(r)&&nc(Gt,32768)){const Ir=je(Yl(r.expression),r.name.escapedText);fZ(Gt,Ir)&&(Br=p.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}n1(Gt,kr,r,l,Br)}}}function st(Gt){var Cr;switch(Gt){case 2:return!0;case 1:case 5:case 6:case 3:case 4:const kr=Mf(r),Br=OT(l);return!!Br&&ua(Br)&&!!((Cr=kr==null?void 0:kr.exports)!=null&&Cr.size);default:return!1}}function gt(Gt){return Gt(_,m)?!1:(qt(Gt),!0)}function qt(Gt){let Cr=!1;const kr=x||a;if(Gt){const Ki=I0(_),hs=I0(m);Cr=!(Ki===_&&hs===m)&&!!(Ki&&hs)&&Gt(Ki,hs)}let Br=_,Ir=m;!Cr&&Gt&&([Br,Ir]=bct(_,m,Gt));const[Jr,ss]=_k(Br,Ir);$t(kr,Cr,Jr,ss)||nv(kr,Cr,p.Operator_0_cannot_be_applied_to_types_1_and_2,Ws(a.kind),Jr,ss)}function $t(Gt,Cr,kr,Br){switch(a.kind){case 37:case 35:case 38:case 36:return nv(Gt,Cr,p.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,kr,Br);default:return}}function Ur(Gt,Cr,kr,Br){const Ir=Tr(Va(kr)),Jr=Tr(Va(Br));if(Ir||Jr){const ss=Me(Gt,p.This_condition_will_always_return_0,Ws(Cr===37||Cr===35?97:112));if(Ir&&Jr)return;const Ki=Cr===38||Cr===36?Ws(54):"",hs=Ir?Br:kr,Gi=Va(hs);la(ss,yn(hs,p.Did_you_mean_0,`${Ki}Number.isNaN(${pc(Gi)?L_(Gi):"..."})`))}}function Tr(Gt){if(Ie(Gt)&&Gt.escapedText==="NaN"){const Cr=crt();return!!Cr&&Cr===od(Gt)}return!1}}function bct(r,a,l){let _=r,m=a;const h=Oh(r),x=Oh(a);return l(h,x)||(_=h,m=x),[_,m]}function Sct(r){n(_e);const a=cf(r);if(!a)return B;const l=fl(a);if(!(l&1))return B;const _=(l&2)!==0;r.asteriskToken&&(_&&re<99&&Kc(r,26624),!_&&re<2&&j.downlevelIteration&&Kc(r,256));let m=g4(a);m&&m.flags&1048576&&(m=Mc(m,Re=>xhe(Re,l,void 0)));const h=m&&x7e(m,_),x=h&&h.yieldType||B,N=h&&h.nextType||B,L=_?pT(N)||B:N,z=r.expression?Hi(r.expression):St,Z=CIe(r,z,L,_);if(m&&Z&&n1(Z,x,r.expression||r,r.expression),r.asteriskToken)return Lhe(_?19:17,1,z,r.expression)||B;if(m)return ab(2,m,_)||B;let de=lNe(2,a);return de||(de=B,n(()=>{if(ae&&!hne(r)){const Re=y_(r,void 0);(!Re||ht(Re))&&Me(r,p.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}})),de;function _e(){r.flags&16384||Jl(r,p.A_yield_expression_is_only_allowed_in_a_generator_body),Age(r)&&Me(r,p.yield_expressions_cannot_be_used_in_a_parameter_initializer)}}function Tct(r,a){const l=aD(r.condition,a);Ihe(r.condition,l,r.whenTrue);const _=Hi(r.whenTrue,a),m=Hi(r.whenFalse,a);return Bn([_,m],2)}function MIe(r){const a=r.parent;return l_(a)&&MIe(a)||ko(a)&&a.argumentExpression===r}function xct(r){const a=[r.head.text],l=[];for(const m of r.templateSpans){const h=Hi(m.expression);jj(h,12288)&&Me(m.expression,p.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),a.push(m.literal.text),l.push(Qs(h,_s)?h:Ce)}if(tD(r)||MIe(r)||cd(y_(r,void 0)||Kt,kct))return YS(a,l);const _=r.parent.kind!==215&&j7e(r);return _?vk(h_(_)):Ce}function kct(r){return!!(r.flags&134217856||r.flags&58982400&&nc(fu(r)||Kt,402653316))}function Cct(r){return _2(r)&&!Xb(r.parent)?r.parent.parent:r}function w4(r,a,l,_){const m=Cct(r);bj(m,a,!1),qst(m,l);const h=Hi(r,_|1|(l?2:0));l&&l.intraExpressionInferenceSites&&(l.intraExpressionInferenceSites=void 0);const x=nc(h,2944)&&lK(h,WZ(a,r,void 0))?Uu(h):h;return Hst(),NI(),x}function Dc(r,a){if(a)return Hi(r,a);const l=jn(r);if(!l.resolvedType){const _=om,m=sr;om=Of,sr=void 0,l.resolvedType=Hi(r,a),sr=m,om=_}return l.resolvedType}function RIe(r){return r=Va(r,!0),r.kind===216||r.kind===234||HC(r)}function eD(r,a,l){const _=k8(r);if(Hr(r)){const h=DF(r);if(h)return lhe(_,h,a)}const m=The(_)||(l?w4(_,l,void 0,a||0):Dc(_,a));return rs(r)&&r.name.kind===207&&da(m)&&!m.target.hasRestElement&&D0(m)lK(r,_))}if(a.flags&58982400){const l=fu(a)||Kt;return nc(l,4)&&nc(r,128)||nc(l,8)&&nc(r,256)||nc(l,64)&&nc(r,2048)||nc(l,4096)&&nc(r,8192)||lK(r,l)}return!!(a.flags&406847616&&nc(r,128)||a.flags&256&&nc(r,256)||a.flags&2048&&nc(r,2048)||a.flags&512&&nc(r,512)||a.flags&8192&&nc(r,8192))}return!1}function tD(r){const a=r.parent;return Tb(a)&&Qg(a.type)||HC(a)&&Qg(MO(a))||che(r)&&$S(y_(r,0))||(l_(a)||ju(a)||hd(a))&&tD(a)||(zc(a)||k_(a)||d3(a))&&tD(a.parent)}function rD(r,a,l){const _=Hi(r,a,l);return tD(r)||Ute(r)?Uu(_):RIe(r)?_:Yme(_,WZ(y_(r,void 0),r,void 0))}function jIe(r,a){return r.name.kind===167&&Wg(r.name),rD(r.initializer,a)}function BIe(r,a){_5e(r),r.name.kind===167&&Wg(r.name);const l=AIe(r,a);return JIe(r,l,a)}function JIe(r,a,l){if(l&&l&10){const _=FI(a,0,!0),m=FI(a,1,!0),h=_||m;if(h&&h.typeParameters){const x=Av(r,2);if(x){const N=FI(Lh(x),_?0:1,!1);if(N&&!N.typeParameters){if(l&8)return zIe(r,l),Wt;const L=nb(r),z=L.signature&&Ja(L.signature),Z=z&&$Ne(z);if(Z&&!Z.typeParameters&&!Wi(L.inferences,A4)){const de=Act(L,h.typeParameters),_e=Kde(h,de),Re=nr(L.inferences,st=>ige(st.typeParameter));if(ege(_e,N,(st,gt)=>{Mh(Re,st,gt,0,!0)}),ct(Re,A4)&&(tge(_e,N,(st,gt)=>{Mh(Re,st,gt)}),!Dct(L.inferences,Re)))return wct(L.inferences,Re),L.inferredTypeParameters=es(L.inferredTypeParameters,de),QS(_e)}return QS(XNe(h,N,L))}}}}return a}function zIe(r,a){if(a&2){const l=nb(r);l.flags|=4}}function A4(r){return!!(r.candidates||r.contraCandidates)}function Pct(r){return!!(r.candidates||r.contraCandidates||C8e(r.typeParameter))}function Dct(r,a){for(let l=0;ll.symbol.escapedName===a)}function Nct(r,a){let l=a.length;for(;l>1&&a.charCodeAt(l-1)>=48&&a.charCodeAt(l-1)<=57;)l--;const _=a.slice(0,l);for(let m=1;;m++){const h=_+m;if(!She(r,h))return h}}function WIe(r){const a=_T(r);if(a&&!a.typeParameters)return Ja(a)}function Ict(r){const a=Hi(r.expression),l=kI(a,r.expression),_=WIe(a);return _&&TZ(_,r,l!==a)}function Yl(r){const a=The(r);if(a)return a;if(r.flags&268435456&&sr){const m=sr[Oa(r)];if(m)return m}const l=We,_=Hi(r,64);if(We!==l){const m=sr||(sr=[]);m[Oa(r)]=_,gne(r,r.flags|268435456)}return _}function The(r){let a=Va(r,!0);if(HC(a)){const l=MO(a);if(!Qg(l))return ii(l)}if(a=Va(r),py(a)){const l=The(a.expression);return l?pT(l):void 0}if(Rs(a)&&a.expression.kind!==108&&!Gu(a,!0)&&!cIe(a))return yb(a)?Ict(a):WIe(E4(a.expression));if(Tb(a)&&!Qg(a.type))return ii(a.type);if(Rv(r)||uE(r))return Hi(r)}function zj(r){const a=jn(r);if(a.contextFreeType)return a.contextFreeType;bj(r,B,!1);const l=a.contextFreeType=Hi(r,4);return NI(),l}function Hi(r,a,l){var _,m;(_=qr)==null||_.push(qr.Phase.Check,"checkExpression",{kind:r.kind,pos:r.pos,end:r.end,path:r.tracingPath});const h=P;P=r,T=0;const x=Lct(r,a,l),N=JIe(r,x,a);return oK(N)&&Fct(r,N),P=h,(m=qr)==null||m.pop(),N}function Fct(r,a){r.parent.kind===211&&r.parent.expression===r||r.parent.kind===212&&r.parent.expression===r||(r.kind===80||r.kind===166)&&xK(r)||r.parent.kind===186&&r.parent.exprName===r||r.parent.kind===281||Me(r,p.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),xp(j)&&(E.assert(!!(a.symbol.flags&128)),a.symbol.valueDeclaration.flags&33554432&&!I1(r)&&Me(r,p.Cannot_access_ambient_const_enums_when_0_is_enabled,Je))}function Oct(r,a){if(sf(r)){if(VW(r))return lhe(r.expression,UW(r),a);if(HC(r))return fIe(r,a)}return Hi(r.expression,a)}function Lct(r,a,l){const _=r.kind;if(i)switch(_){case 231:case 218:case 219:i.throwIfCancellationRequested()}switch(_){case 80:return dst(r,a);case 81:return Iat(r);case 110:return yj(r);case 108:return Dge(r);case 106:return Ne;case 15:case 11:return lge(r)?Be:vk(h_(r.text));case 9:return r0e(r),vk(Od(+r.text));case 10:return Rft(r),vk(iZ({negative:!1,base10Value:$E(r.text)}));case 112:return Er;case 97:return Jt;case 228:return xct(r);case 14:return qo;case 209:return hNe(r,a,l);case 210:return uat(r,a);case 211:return GZ(r,a);case 166:return FNe(r,a);case 212:return $at(r,a);case 213:if(r.expression.kind===102)return Eot(r);case 214:return Cot(r,a);case 215:return Pot(r);case 217:return Oct(r,a);case 231:return Tut(r);case 218:case 219:return AIe(r,a);case 221:return act(r);case 216:case 234:return Dot(r,a);case 235:return Not(r);case 233:return dIe(r);case 238:return Iot(r);case 236:return Fot(r);case 220:return ict(r);case 222:return oct(r);case 223:return cct(r);case 224:return lct(r);case 225:return uct(r);case 226:return xe(r,a);case 227:return Tct(r,a);case 230:return iat(r,a);case 232:return St;case 229:return Sct(r);case 237:return sat(r);case 294:return Cat(r,a);case 284:return dat(r);case 285:return fat(r);case 288:return mat(r);case 292:return hat(r,a);case 286:E.fail("Shouldn't ever directly check a JsxOpeningElement")}return nt}function VIe(r){Ug(r),r.expression&&Jl(r.expression,p.Type_expected),ia(r.constraint),ia(r.default);const a=qS(un(r));fu(a),mtt(a)||Me(r.default,p.Type_parameter_0_has_a_circular_default,Ar(a));const l=r_(a),_=XS(a);l&&_&&Pu(_,mf(zi(l,K2(a,_)),_),r.default,p.Type_0_does_not_satisfy_the_constraint_1),Tk(r),n(()=>oD(r.name,p.Type_parameter_name_cannot_be_0))}function Mct(r){var a,l;if(Bu(r.parent)||$n(r.parent)||Gp(r.parent)){const _=qS(un(r)),m=Hme(_)&24576;if(m){const h=un(r.parent);if(Gp(r.parent)&&!(bn(Eo(h))&52))Me(r,p.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);else if(m===8192||m===16384){(a=qr)==null||a.push(qr.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:Vu(Eo(h)),id:Vu(_)});const x=ij(h,_,m===16384?X:se),N=ij(h,_,m===16384?se:X),L=_;F=_,Pu(x,N,r,p.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),F=L,(l=qr)==null||l.pop()}}}}function UIe(r){Ug(r),Hj(r);const a=cf(r);Rn(r,31)&&(a.kind===176&&dp(a.body)||Me(r,p.A_parameter_property_is_only_allowed_in_a_constructor_implementation),a.kind===176&&Ie(r.name)&&r.name.escapedText==="constructor"&&Me(r.name,p.constructor_cannot_be_used_as_a_parameter_property_name)),!r.initializer&&e3(r)&&Ns(r.name)&&a.body&&Me(r,p.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),r.name&&Ie(r.name)&&(r.name.escapedText==="this"||r.name.escapedText==="new")&&(a.parameters.indexOf(r)!==0&&Me(r,p.A_0_parameter_must_be_the_first_parameter,r.name.escapedText),(a.kind===176||a.kind===180||a.kind===185)&&Me(r,p.A_constructor_cannot_have_a_this_parameter),a.kind===219&&Me(r,p.An_arrow_function_cannot_have_a_this_parameter),(a.kind===177||a.kind===178)&&Me(r,p.get_and_set_accessors_cannot_declare_this_parameters)),r.dotDotDotToken&&!Ns(r.name)&&!Qs(Fd(Xr(r.symbol)),If)&&Me(r,p.A_rest_parameter_must_be_of_an_array_type)}function Rct(r){const a=jct(r);if(!a){Me(r,p.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}const l=Np(a),_=op(l);if(!_)return;ia(r.type);const{parameterName:m}=r;if(_.kind===0||_.kind===2)sZ(m);else if(_.parameterIndex>=0){if(Su(l)&&_.parameterIndex===l.parameters.length-1)Me(m,p.A_type_predicate_cannot_reference_a_rest_parameter);else if(_.type){const h=()=>vs(void 0,p.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);Pu(_.type,Xr(l.parameters[_.parameterIndex]),r.type,void 0,h)}}else if(m){let h=!1;for(const{name:x}of a.parameters)if(Ns(x)&&qIe(x,m,_.parameterName)){h=!0;break}h||Me(r.parameterName,p.Cannot_find_parameter_0,_.parameterName)}}function jct(r){switch(r.parent.kind){case 219:case 179:case 262:case 218:case 184:case 174:case 173:const a=r.parent;if(r===a.type)return a}}function qIe(r,a,l){for(const _ of r.elements){if(pl(_))continue;const m=_.name;if(m.kind===80&&m.escapedText===l)return Me(a,p.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,l),!0;if((m.kind===207||m.kind===206)&&qIe(m,a,l))return!0}}function RI(r){r.kind===181?_ft(r):(r.kind===184||r.kind===262||r.kind===185||r.kind===179||r.kind===176||r.kind===180)&&wK(r);const a=fl(r);a&4||((a&3)===3&&re<99&&Kc(r,6144),(a&3)===2&&re<4&&Kc(r,64),a&3&&re<2&&Kc(r,128)),Xj(G0(r)),vut(r),er(r.parameters,UIe),r.type&&ia(r.type),n(l);function l(){Mlt(r);let _=bp(r),m=_;if(Hr(r)){const h=b1(r);if(h&&h.typeExpression&&$f(h.typeExpression.type)){const x=_T(ii(h.typeExpression));x&&x.declaration&&(_=bp(x.declaration),m=h.typeExpression.type)}}if(ae&&!_)switch(r.kind){case 180:Me(r,p.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 179:Me(r,p.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break}if(_&&m){const h=fl(r);if((h&5)===1){const x=ii(_);x===Wr?Me(m,p.A_generator_cannot_have_a_void_type_annotation):xhe(x,h,m)}else(h&3)===2&&mlt(r,_,m)}r.kind!==181&&r.kind!==324&&c1(r)}}function xhe(r,a,l){const _=ab(0,r,(a&2)!==0)||B,m=ab(1,r,(a&2)!==0)||_,h=ab(2,r,(a&2)!==0)||Kt,x=kIe(_,m,h,!!(a&2));return Pu(x,r,l)}function Bct(r){const a=new Map,l=new Map,_=new Map;for(const h of r.members)if(h.kind===176)for(const x of h.parameters)O_(x,h)&&!Ns(x.name)&&m(a,x.name,x.name.escapedText,3);else{const x=Ms(h),N=h.name;if(!N)continue;const L=Pi(N),z=L&&x?16:0,Z=L?_:x?l:a,de=N&&n0e(N);if(de)switch(h.kind){case 177:m(Z,N,de,1|z);break;case 178:m(Z,N,de,2|z);break;case 172:m(Z,N,de,3|z);break;case 174:m(Z,N,de,8|z);break}}function m(h,x,N,L){const z=h.get(N);if(z)if((z&16)!==(L&16))Me(x,p.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,jc(x));else{const Z=!!(z&8),de=!!(L&8);Z||de?Z!==de&&Me(x,p.Duplicate_identifier_0,jc(x)):z&L&-17?Me(x,p.Duplicate_identifier_0,jc(x)):h.set(N,z|L)}else h.set(N,L)}}function Jct(r){for(const a of r.members){const l=a.name;if(Ms(a)&&l){const m=n0e(l);switch(m){case"name":case"length":case"caller":case"arguments":if(ue)break;case"prototype":const h=p.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,x=pv(un(r));Me(l,h,m,x);break}}}}function HIe(r){const a=new Map;for(const l of r.members)if(l.kind===171){let _;const m=l.name;switch(m.kind){case 11:case 9:_=m.text;break;case 80:_=on(m);break;default:continue}a.get(_)?(Me(us(l.symbol.valueDeclaration),p.Duplicate_identifier_0,_),Me(l.name,p.Duplicate_identifier_0,_)):a.set(_,!0)}}function khe(r){if(r.kind===264){const l=un(r);if(l.declarations&&l.declarations.length>0&&l.declarations[0]!==r)return}const a=eme(un(r));if(a!=null&&a.declarations){const l=new Map;for(const _ of a.declarations)_.parameters.length===1&&_.parameters[0].type&&oT(ii(_.parameters[0].type),m=>{const h=l.get(Vu(m));h?h.declarations.push(_):l.set(Vu(m),{type:m,declarations:[_]})});l.forEach(_=>{if(_.declarations.length>1)for(const m of _.declarations)Me(m,p.Duplicate_index_signature_for_type_0,Ar(_.type))})}}function GIe(r){!Ug(r)&&!Fft(r)&&AK(r.name),Hj(r),Che(r),Rn(r,64)&&r.kind===172&&r.initializer&&Me(r,p.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,Ka(r.name))}function zct(r){return Pi(r.name)&&Me(r,p.Private_identifiers_are_not_allowed_outside_class_bodies),GIe(r)}function Wct(r){_5e(r)||AK(r.name),hc(r)&&r.asteriskToken&&Ie(r.name)&&on(r.name)==="constructor"&&Me(r.name,p.Class_constructor_may_not_be_a_generator),a7e(r),Rn(r,64)&&r.kind===174&&r.body&&Me(r,p.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,Ka(r.name)),Pi(r.name)&&!Nl(r)&&Me(r,p.Private_identifiers_are_not_allowed_outside_class_bodies),Che(r)}function Che(r){if(Pi(r.name)&&re<99){for(let a=Nm(r);a;a=Nm(a))jn(a).flags|=1048576;if(kl(r.parent)){const a=kge(r.parent);a&&(jn(r.name).flags|=32768,jn(a).flags|=4096)}}}function Vct(r){Ug(r),Ss(r,ia)}function Uct(r){RI(r),Nft(r)||Ift(r),ia(r.body);const a=un(r),l=Bo(a,r.kind);if(r===l&&fK(a),_c(r.body))return;n(m);return;function _(h){return Iu(h)?!0:h.kind===172&&!Ms(h)&&!!h.initializer}function m(){const h=r.parent;if(Gv(h)){Cge(r.parent,h);const x=Ege(h),N=tNe(r.body);if(N){if(x&&Me(N,p.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),!pe&&(ct(r.parent.members,_)||ct(r.parameters,z=>Rn(z,31))))if(!qct(N,r.body))Me(N,p.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 z;for(const Z of r.body.statements){if(Cl(Z)&&Pb(xc(Z.expression))){z=Z;break}if($Ie(Z))break}z===void 0&&Me(r,p.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 x||Me(r,p.Constructors_for_derived_classes_must_contain_a_super_call)}}}function qct(r,a){const l=Yh(r.parent);return Cl(l)&&l.parent===a}function $Ie(r){return r.kind===108||r.kind===110?!0:Yte(r)?!1:!!Ss(r,$Ie)}function XIe(r){Ie(r.name)&&on(r.name)==="constructor"&&$n(r.parent)&&Me(r.name,p.Class_constructor_may_not_be_an_accessor),n(a),ia(r.body),Che(r);function a(){if(!wK(r)&&!bft(r)&&AK(r.name),Vj(r),RI(r),r.kind===177&&!(r.flags&33554432)&&dp(r.body)&&r.flags&512&&(r.flags&1024||Me(r.name,p.A_get_accessor_must_return_a_value)),r.name.kind===167&&Wg(r.name),d4(r)){const _=un(r),m=Bo(_,177),h=Bo(_,178);if(m&&h&&!(F4(m)&1)){jn(m).flags|=1;const x=Lu(m),N=Lu(h);(x&64)!==(N&64)&&(Me(m.name,p.Accessors_must_both_be_abstract_or_non_abstract),Me(h.name,p.Accessors_must_both_be_abstract_or_non_abstract)),(x&4&&!(N&6)||x&2&&!(N&2))&&(Me(m.name,p.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),Me(h.name,p.A_get_accessor_must_be_at_least_as_accessible_as_the_setter))}}const l=hv(un(r));r.kind===177&&ghe(r,l)}}function Hct(r){Vj(r)}function Gct(r,a,l){return r.typeArguments&&l{const _=Ehe(r);_&&QIe(r,_)});const l=jn(r).resolvedSymbol;l&&ct(l.declarations,_=>NC(_)&&!!(_.flags&536870912))&&S0(Ij(r),l.declarations,l.escapedName)}}function Xct(r){const a=Wn(r.parent,n5);if(!a)return;const l=Ehe(a);if(!l)return;const _=r_(l[a.typeArguments.indexOf(r)]);return _&&zi(_,ef(l,uK(a,l)))}function Qct(r){$8e(r)}function Yct(r){er(r.members,ia),n(a);function a(){const l=Lwe(r);vK(l,l.symbol),khe(r),HIe(r)}}function Zct(r){ia(r.elementType)}function Kct(r){let a=!1,l=!1;for(const _ of r.elements){let m=mme(_);if(m&8){const h=ii(_.type);if(!N0(h)){Me(_,p.A_rest_element_type_must_be_an_array_type);break}(up(h)||da(h)&&h.target.combinedFlags&4)&&(m|=4)}if(m&4){if(l){or(_,p.A_rest_element_cannot_follow_another_rest_element);break}l=!0}else if(m&2){if(l){or(_,p.An_optional_element_cannot_follow_a_rest_element);break}a=!0}else if(m&1&&a){or(_,p.A_required_element_cannot_follow_an_optional_element);break}}er(r.elements,ia),ii(r)}function elt(r){er(r.types,ia),ii(r)}function ZIe(r,a){if(!(r.flags&8388608))return r;const l=r.objectType,_=r.indexType,m=g_(l)&&WY(l)===2?vwe(l,0):dm(l,0),h=!!zg(l,_t);if(N_(_,x=>Qs(x,m)||h&&dk(x,_t)))return a.kind===212&&vg(a)&&bn(l)&32&&tg(l)&1&&Me(a,p.Index_signature_in_type_0_only_permits_reading,Ar(l)),r;if(KS(l)){const x=eZ(_,a);if(x){const N=oT(n_(l),L=>$s(L,x));if(N&&Hf(N)&6)return Me(a,p.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,xi(x)),nt}}return Me(a,p.Type_0_cannot_be_used_to_index_type_1,Ar(_),Ar(l)),nt}function tlt(r){ia(r.objectType),ia(r.indexType),ZIe(wwe(r),r)}function rlt(r){nlt(r),ia(r.typeParameter),ia(r.nameType),ia(r.type),r.type||Ev(r,B);const a=Pme(r),l=E0(a);if(l)Pu(l,uo,r.nameType);else{const _=Jf(a);Pu(_,uo,Uk(r.typeParameter))}}function nlt(r){var a;if((a=r.members)!=null&&a.length)return or(r.members[0],p.A_mapped_type_may_not_declare_properties_or_methods)}function ilt(r){sZ(r)}function slt(r){Tft(r),ia(r.type)}function alt(r){Ss(r,ia)}function olt(r){Pr(r,l=>l.parent&&l.parent.kind===194&&l.parent.extendsType===l)||or(r,p.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),ia(r.typeParameter);const a=un(r.typeParameter);if(a.declarations&&a.declarations.length>1){const l=wi(a);if(!l.typeParametersChecked){l.typeParametersChecked=!0;const _=qS(a),m=vte(a,168);if(!P7e(m,[_],h=>[h])){const h=ni(a);for(const x of m)Me(x.name,p.All_declarations_of_0_must_have_identical_constraints,h)}}}c1(r)}function clt(r){for(const a of r.templateSpans){ia(a.type);const l=ii(a.type);Pu(l,_s,a.type)}ii(r)}function llt(r){ia(r.argument),r.attributes&&o6(r.attributes,or),YIe(r)}function ult(r){r.dotDotDotToken&&r.questionToken&&or(r,p.A_tuple_member_cannot_be_both_optional_and_rest),r.type.kind===190&&or(r.type,p.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),r.type.kind===191&&or(r.type,p.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),ia(r.type),ii(r)}function Wj(r){return(R_(r,2)||Iu(r))&&!!(r.flags&33554432)}function _K(r,a){let l=NK(r);if(r.parent.kind!==264&&r.parent.kind!==263&&r.parent.kind!==231&&r.flags&33554432){const _=wz(r);_&&_.flags&128&&!(l&128)&&!(Zd(r.parent)&&Sc(r.parent.parent)&&Vd(r.parent.parent))&&(l|=32),l|=128}return l&a}function fK(r){n(()=>_lt(r))}function _lt(r){function a(Gt,Cr){return Cr!==void 0&&Cr.parent===Gt[0].parent?Cr:Gt[0]}function l(Gt,Cr,kr,Br,Ir){if((Br^Ir)!==0){const ss=_K(a(Gt,Cr),kr);er(Gt,Ki=>{const hs=_K(Ki,kr)^ss;hs&32?Me(us(Ki),p.Overload_signatures_must_all_be_exported_or_non_exported):hs&128?Me(us(Ki),p.Overload_signatures_must_all_be_ambient_or_non_ambient):hs&6?Me(us(Ki)||Ki,p.Overload_signatures_must_all_be_public_private_or_protected):hs&64&&Me(us(Ki),p.Overload_signatures_must_all_be_abstract_or_non_abstract)})}}function _(Gt,Cr,kr,Br){if(kr!==Br){const Ir=MT(a(Gt,Cr));er(Gt,Jr=>{MT(Jr)!==Ir&&Me(us(Jr),p.Overload_signatures_must_all_be_optional_or_required)})}}const m=230;let h=0,x=m,N=!1,L=!0,z=!1,Z,de,_e;const Re=r.declarations,st=(r.flags&16384)!==0;function gt(Gt){if(Gt.name&&_c(Gt.name))return;let Cr=!1;const kr=Ss(Gt.parent,Ir=>{if(Cr)return Ir;Cr=Ir===Gt});if(kr&&kr.pos===Gt.end&&kr.kind===Gt.kind){const Ir=kr.name||kr,Jr=kr.name;if(Gt.name&&Jr&&(Pi(Gt.name)&&Pi(Jr)&&Gt.name.escapedText===Jr.escapedText||Pa(Gt.name)&&Pa(Jr)&&Ih(Wg(Gt.name),Wg(Jr))||qd(Gt.name)&&qd(Jr)&&PE(Gt.name)===PE(Jr))){if((Gt.kind===174||Gt.kind===173)&&Ms(Gt)!==Ms(kr)){const Ki=Ms(Gt)?p.Function_overload_must_be_static:p.Function_overload_must_not_be_static;Me(Ir,Ki)}return}if(dp(kr.body)){Me(Ir,p.Function_implementation_name_must_be_0,Ka(Gt.name));return}}const Br=Gt.name||Gt;st?Me(Br,p.Constructor_implementation_is_missing):Rn(Gt,64)?Me(Br,p.All_declarations_of_an_abstract_method_must_be_consecutive):Me(Br,p.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let qt=!1,$t=!1,Ur=!1;const Tr=[];if(Re)for(const Gt of Re){const Cr=Gt,kr=Cr.flags&33554432,Br=Cr.parent&&(Cr.parent.kind===264||Cr.parent.kind===187)||kr;if(Br&&(_e=void 0),(Cr.kind===263||Cr.kind===231)&&!kr&&(Ur=!0),Cr.kind===262||Cr.kind===174||Cr.kind===173||Cr.kind===176){Tr.push(Cr);const Ir=_K(Cr,m);h|=Ir,x&=Ir,N=N||MT(Cr),L=L&&MT(Cr);const Jr=dp(Cr.body);Jr&&Z?st?$t=!0:qt=!0:(_e==null?void 0:_e.parent)===Cr.parent&&_e.end!==Cr.pos&>(_e),Jr?Z||(Z=Cr):z=!0,_e=Cr,Br||(de=Cr)}Hr(Gt)&&As(Gt)&&Gt.jsDoc&&(z=gr(Hz(Gt))>0)}if($t&&er(Tr,Gt=>{Me(Gt,p.Multiple_constructor_implementations_are_not_allowed)}),qt&&er(Tr,Gt=>{Me(us(Gt)||Gt,p.Duplicate_function_implementation)}),Ur&&!st&&r.flags&16&&Re){const Gt=An(Re,Cr=>Cr.kind===263).map(Cr=>yn(Cr,p.Consider_adding_a_declare_modifier_to_this_class));er(Re,Cr=>{const kr=Cr.kind===263?p.Class_declaration_cannot_implement_overload_list_for_0:Cr.kind===262?p.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;kr&&la(Me(us(Cr)||Cr,kr,Xo(r)),...Gt)})}if(de&&!de.body&&!Rn(de,64)&&!de.questionToken&>(de),z&&(Re&&(l(Re,Z,m,h,x),_(Re,Z,N,L)),Z)){const Gt=$2(r),Cr=Np(Z);for(const kr of Gt)if(!Nnt(Cr,kr)){const Br=kr.declaration&&R1(kr.declaration)?kr.declaration.parent.tagName:kr.declaration;la(Me(Br,p.This_overload_signature_is_not_compatible_with_its_implementation_signature),yn(Z,p.The_implementation_signature_is_declared_here));break}}}function jI(r){n(()=>flt(r))}function flt(r){let a=r.localSymbol;if(!a&&(a=un(r),!a.exportSymbol)||Bo(a,r.kind)!==r)return;let l=0,_=0,m=0;for(const z of a.declarations){const Z=L(z),de=_K(z,2080);de&32?de&2048?m|=Z:l|=Z:_|=Z}const h=l|_,x=l&_,N=m&h;if(x||N)for(const z of a.declarations){const Z=L(z),de=us(z);Z&N?Me(de,p.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,Ka(de)):Z&x&&Me(de,p.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,Ka(de))}function L(z){let Z=z;switch(Z.kind){case 264:case 265:case 353:case 345:case 347:return 2;case 267:return su(Z)||ch(Z)!==0?5:4;case 263:case 266:case 306:return 3;case 312:return 7;case 277:case 226:const de=Z,_e=oc(de)?de.expression:de.right;if(!pc(_e))return 1;Z=_e;case 271:case 274:case 273:let Re=0;const st=cl(un(Z));return er(st.declarations,gt=>{Re|=L(gt)}),Re;case 260:case 208:case 262:case 276:case 80:return 1;case 173:case 171:return 2;default:return E.failBadSyntaxKind(Z)}}}function nD(r,a,l,..._){const m=BI(r,a);return m&&pT(m,a,l,..._)}function BI(r,a,l){if(ht(r))return;const _=r;if(_.promisedTypeOfPromise)return _.promisedTypeOfPromise;if($y(r,HR(!1)))return _.promisedTypeOfPromise=bo(r)[0];if(Bj(wh(r),402915324))return;const m=je(r,"then");if(ht(m))return;const h=m?Es(m,0):Ve;if(h.length===0){a&&Me(a,p.A_promise_must_have_a_then_method);return}let x,N;for(const Z of h){const de=Sv(Z);de&&de!==Wr&&!mm(r,de,Hm)?x=de:N=_r(N,Z)}if(!N){E.assertIsDefined(x),l&&(l.value=x),a&&Me(a,p.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Ar(r),Ar(x));return}const L=Op(Bn(nr(N,fhe)),2097152);if(ht(L))return;const z=Es(L,0);if(z.length===0){a&&Me(a,p.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback);return}return _.promisedTypeOfPromise=Bn(nr(z,fhe),2)}function JI(r,a,l,_,...m){return(a?pT(r,l,_,...m):I0(r,l,_,...m))||nt}function KIe(r){if(Bj(wh(r),402915324))return!1;const a=je(r,"then");return!!a&&Es(Op(a,2097152),0).length>0}function pK(r){var a;if(r.flags&16777216){const l=dme(!1);return!!l&&r.aliasSymbol===l&&((a=r.aliasTypeArguments)==null?void 0:a.length)===1}return!1}function iD(r){return r.flags&1048576?jo(r,iD):pK(r)?r.aliasTypeArguments[0]:r}function e7e(r){if(ht(r)||pK(r))return!1;if(KS(r)){const a=fu(r);if(a?a.flags&3||Fh(a)||cd(a,KIe):nc(r,8650752))return!0}return!1}function plt(r){const a=dme(!0);if(a)return y4(a,[iD(r)])}function dlt(r){if(e7e(r)){const a=plt(r);if(a)return a}return E.assert(pK(r)||BI(r)===void 0,"type provided should not be a non-generic 'promise'-like."),r}function pT(r,a,l,..._){const m=I0(r,a,l,..._);return m&&dlt(m)}function I0(r,a,l,..._){if(ht(r)||pK(r))return r;const m=r;if(m.awaitedTypeOfType)return m.awaitedTypeOfType;if(r.flags&1048576){if(ev.lastIndexOf(r.id)>=0){a&&Me(a,p.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}const N=a?z=>I0(z,a,l,..._):I0;ev.push(r.id);const L=jo(r,N);return ev.pop(),m.awaitedTypeOfType=L}if(e7e(r))return m.awaitedTypeOfType=r;const h={value:void 0},x=BI(r,void 0,h);if(x){if(r.id===x.id||ev.lastIndexOf(x.id)>=0){a&&Me(a,p.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}ev.push(r.id);const N=I0(x,a,l,..._);return ev.pop(),N?m.awaitedTypeOfType=N:void 0}if(KIe(r)){if(a){E.assertIsDefined(l);let N;h.value&&(N=vs(N,p.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Ar(r),Ar(h.value))),N=vs(N,l,..._),wa.add(Zg(wr(a),a,N))}return}return m.awaitedTypeOfType=r}function mlt(r,a,l){const _=ii(a);if(re>=2){if(Ot(_))return;const h=HR(!0);if(h!==fs&&!$y(_,h)){m(p.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,a,l,Ar(I0(_)||Wr));return}}else{if(hlt(a),Ot(_))return;const h=b8(a);if(h===void 0){m(p.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,l,Ar(_));return}const x=yo(h,111551,!0),N=x?Xr(x):nt;if(Ot(N)){h.kind===80&&h.escapedText==="Promise"&&C0(_)===HR(!1)?Me(l,p.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):m(p.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,l,L_(h));return}const L=ztt(!0);if(L===oa){m(p.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,l,L_(h));return}const z=p.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(!Pu(N,L,l,z,()=>a===l?void 0:vs(void 0,p.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type)))return;const de=h&&lf(h),_e=m_(r.locals,de.escapedText,111551);if(_e){Me(_e.valueDeclaration,p.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,on(de),L_(h));return}}JI(_,!1,r,p.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);function m(h,x,N,L){if(x===N)Me(N,h,L);else{const z=Me(N,p.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type);la(z,yn(x,h,L))}}}function glt(r){const a=D4(r);iK(a,r);const l=Ja(a);if(l.flags&1)return;const _=mhe(r);if(!(_!=null&&_.resolvedReturnType))return;let m;const h=_.resolvedReturnType;switch(r.parent.kind){case 263:case 231:m=p.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 172:if(!Y){m=p.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 169:m=p.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 174:case 177:case 178:m=p.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return E.failBadSyntaxKind(r.parent)}Pu(l,h,r.expression,m)}function zI(r,a,l,_,m,h=l.length,x=0){const N=I.createFunctionTypeNode(void 0,Ve,I.createKeywordTypeNode(133));return Jg(N,r,a,l,_,m,h,x)}function Dhe(r,a,l,_,m,h,x){const N=zI(r,a,l,_,m,h,x);return QS(N)}function t7e(r){return Dhe(void 0,void 0,Ve,r)}function r7e(r){const a=Cd("value",r);return Dhe(void 0,void 0,[a],Wr)}function hlt(r){n7e(r&&b8(r),!1)}function n7e(r,a){if(!r)return;const l=lf(r),_=(r.kind===80?788968:1920)|2097152,m=Ho(l,l.escapedText,_,void 0,void 0,!0);if(m&&m.flags&2097152){if(pt&&sd(m)&&!qI(cl(m))&&!rp(m))My(m);else if(a&&xp(j)&&au(j)>=5&&!sd(m)&&!ct(m.declarations,x1)){const h=Me(r,p.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),x=wn(m.declarations||Ve,Iy);x&&la(h,yn(x,p._0_was_imported_here,on(l)))}}}function N4(r){const a=whe(r);a&&b_(a)&&n7e(a,!0)}function whe(r){if(r)switch(r.kind){case 193:case 192:return i7e(r.types);case 194:return i7e([r.trueType,r.falseType]);case 196:case 202:return whe(r.type);case 183:return r.typeName}}function i7e(r){let a;for(let l of r){for(;l.kind===196||l.kind===202;)l=l.type;if(l.kind===146||!q&&(l.kind===201&&l.literal.kind===106||l.kind===157))continue;const _=whe(l);if(!_)return;if(a){if(!Ie(a)||!Ie(_)||a.escapedText!==_.escapedText)return}else a=_}return a}function dK(r){const a=Vl(r);return dg(r)?Fz(a):a}function Vj(r){if(!eS(r)||!Vf(r)||!r.modifiers||!P5(Y,r,r.parent,r.parent.parent))return;const a=wn(r.modifiers,ql);if(a){if(Y?(Kc(a,8),r.kind===169&&Kc(a,32)):re<99&&(Kc(a,8),Xc(r)?r.name?D7e(r)&&Kc(a,8388608):Kc(a,8388608):kl(r)||(Pi(r.name)&&(hc(r)||X0(r)||s_(r))&&Kc(a,8388608),Pa(r.name)&&Kc(a,16777216))),j.emitDecoratorMetadata)switch(Kc(a,16),r.kind){case 263:const l=Sg(r);if(l)for(const x of l.parameters)N4(dK(x));break;case 177:case 178:const _=r.kind===177?178:177,m=Bo(un(r),_);N4(ad(r)||m&&ad(m));break;case 174:for(const x of r.parameters)N4(dK(x));N4(bp(r));break;case 172:N4(Vl(r));break;case 169:N4(dK(r));const h=r.parent;for(const x of h.parameters)N4(dK(x));N4(bp(h));break}for(const l of r.modifiers)ql(l)&&glt(l)}}function ylt(r){n(a);function a(){a7e(r),Zhe(r),sD(r,r.name)}}function vlt(r){r.typeExpression||Me(r.name,p.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),r.name&&oD(r.name,p.Type_alias_name_cannot_be_0),ia(r.typeExpression),Xj(G0(r))}function blt(r){ia(r.constraint);for(const a of r.typeParameters)ia(a)}function Slt(r){ia(r.typeExpression)}function Tlt(r){ia(r.typeExpression);const a=D1(r);if(a){const l=V7(a,FO);if(gr(l)>1)for(let _=1;_0),l.length>1&&Me(l[1],p.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);const _=s7e(r.class.expression),m=Gv(a);if(m){const h=s7e(m.expression);h&&_.escapedText!==h.escapedText&&Me(_,p.JSDoc_0_1_does_not_match_the_extends_2_clause,on(r.tagName),on(_),on(h))}}function Alt(r){const a=Ib(r);a&&Iu(a)&&Me(r,p.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}function s7e(r){switch(r.kind){case 80:return r;case 211:return r.name;default:return}}function a7e(r){var a;Vj(r),RI(r);const l=fl(r);if(r.name&&r.name.kind===167&&Wg(r.name),d4(r)){const h=un(r),x=r.localSymbol||h,N=(a=x.declarations)==null?void 0:a.find(L=>L.kind===r.kind&&!(L.flags&524288));r===N&&fK(x),h.parent&&fK(h)}const _=r.kind===173?void 0:r.body;if(ia(_),ghe(r,g4(r)),n(m),Hr(r)){const h=b1(r);h&&h.typeExpression&&!Oge(ii(h.typeExpression),r)&&Me(h.typeExpression.type,p.The_type_of_a_function_declaration_must_match_the_function_s_signature)}function m(){bp(r)||(_c(_)&&!Wj(r)&&Ev(r,B),l&1&&dp(_)&&Ja(Np(r)))}}function c1(r){n(a);function a(){const l=wr(r);let _=Ff.get(l.path);_||(_=[],Ff.set(l.path,_)),_.push(r)}}function o7e(r,a){for(const l of r)switch(l.kind){case 263:case 231:Nlt(l,a),Ahe(l,a);break;case 312:case 267:case 241:case 269:case 248:case 249:case 250:u7e(l,a);break;case 176:case 218:case 262:case 219:case 174:case 177:case 178:l.body&&u7e(l,a),Ahe(l,a);break;case 173:case 179:case 180:case 184:case 185:case 265:case 264:Ahe(l,a);break;case 195:Ilt(l,a);break;default:E.assertNever(l,"Node should not have been registered for unused identifiers check")}}function c7e(r,a,l){const _=us(r)||r,m=NC(r)?p._0_is_declared_but_never_used:p._0_is_declared_but_its_value_is_never_read;l(r,0,yn(_,m,a))}function WI(r){return Ie(r)&&on(r).charCodeAt(0)===95}function Nlt(r,a){for(const l of r.members)switch(l.kind){case 174:case 172:case 177:case 178:if(l.kind===178&&l.symbol.flags&32768)break;const _=un(l);!_.isReferenced&&(R_(l,2)||Nu(l)&&Pi(l.name))&&!(l.flags&33554432)&&a(l,0,yn(l.name,p._0_is_declared_but_its_value_is_never_read,ni(_)));break;case 176:for(const m of l.parameters)!m.symbol.isReferenced&&Rn(m,2)&&a(m,0,yn(m.name,p.Property_0_is_declared_but_its_value_is_never_read,Xo(m.symbol)));break;case 181:case 240:case 175:break;default:E.fail("Unexpected class member")}}function Ilt(r,a){const{typeParameter:l}=r;Nhe(l)&&a(r,1,yn(r,p._0_is_declared_but_its_value_is_never_read,on(l.name)))}function Ahe(r,a){const l=un(r).declarations;if(!l||ka(l)!==r)return;const _=G0(r),m=new Set;for(const h of _){if(!Nhe(h))continue;const x=on(h.name),{parent:N}=h;if(N.kind!==195&&N.typeParameters.every(Nhe)){if(_1(m,N)){const L=wr(N),z=Cp(N)?jW(N):BW(L,N.typeParameters),de=N.typeParameters.length===1?[p._0_is_declared_but_its_value_is_never_read,x]:[p.All_type_parameters_are_unused];a(h,1,xl(L,z.pos,z.end-z.pos,...de))}}else a(h,1,yn(h,p._0_is_declared_but_its_value_is_never_read,x))}}function Nhe(r){return!(Na(r.symbol).isReferenced&262144)&&!WI(r.name)}function Uj(r,a,l,_){const m=String(_(a)),h=r.get(m);h?h[1].push(l):r.set(m,[a,[l]])}function l7e(r){return Wn(Hd(r),rs)}function Flt(r){return Ea(r)?kp(r.parent)?!!(r.propertyName&&WI(r.name)):WI(r.name):su(r)||(hi(r)&&Gk(r.parent.parent)||_7e(r))&&WI(r.name)}function u7e(r,a){const l=new Map,_=new Map,m=new Map;r.locals.forEach(h=>{if(!(h.flags&262144?!(h.flags&3&&!(h.isReferenced&3)):h.isReferenced||h.exportSymbol)&&h.declarations){for(const x of h.declarations)if(!Flt(x))if(_7e(x))Uj(l,Llt(x),x,Oa);else if(Ea(x)&&kp(x.parent)){const N=ka(x.parent.elements);(x===N||!ka(x.parent.elements).dotDotDotToken)&&Uj(_,x.parent,x,Oa)}else if(hi(x)){const N=lb(x)&7,L=us(x);(N!==4&&N!==6||!L||!WI(L))&&Uj(m,x.parent,x,Oa)}else{const N=h.valueDeclaration&&l7e(h.valueDeclaration),L=h.valueDeclaration&&us(h.valueDeclaration);N&&L?!O_(N,N.parent)&&!Qv(N)&&!WI(L)&&(Ea(x)&&s2(x.parent)?Uj(_,x.parent,x,Oa):a(N,1,yn(L,p._0_is_declared_but_its_value_is_never_read,Xo(h)))):c7e(x,Xo(h),a)}}}),l.forEach(([h,x])=>{const N=h.parent;if((h.name?1:0)+(h.namedBindings?h.namedBindings.kind===274?1:h.namedBindings.elements.length:0)===x.length)a(N,0,x.length===1?yn(N,p._0_is_declared_but_its_value_is_never_read,on(va(x).name)):yn(N,p.All_imports_in_import_declaration_are_unused));else for(const z of x)c7e(z,on(z.name),a)}),_.forEach(([h,x])=>{const N=l7e(h.parent)?1:0;if(h.elements.length===x.length)x.length===1&&h.parent.kind===260&&h.parent.parent.kind===261?Uj(m,h.parent.parent,h.parent,Oa):a(h,N,x.length===1?yn(h,p._0_is_declared_but_its_value_is_never_read,qj(va(x).name)):yn(h,p.All_destructured_elements_are_unused));else for(const L of x)a(L,N,yn(L,p._0_is_declared_but_its_value_is_never_read,qj(L.name)))}),m.forEach(([h,x])=>{if(h.declarations.length===x.length)a(h,0,x.length===1?yn(va(x).name,p._0_is_declared_but_its_value_is_never_read,qj(va(x).name)):yn(h.parent.kind===243?h.parent:h,p.All_variables_are_unused));else for(const N of x)a(N,0,yn(N,p._0_is_declared_but_its_value_is_never_read,qj(N.name)))})}function Olt(){var r;for(const a of Ng)if(!((r=un(a))!=null&&r.isReferenced)){const l=Wk(a);E.assert($v(l),"Only parameter declaration should be checked here");const _=yn(a.name,p._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,Ka(a.name),Ka(a.propertyName));l.type||la(_,xl(wr(l),l.end,1,p.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,Ka(a.propertyName))),wa.add(_)}}function qj(r){switch(r.kind){case 80:return on(r);case 207:case 206:return qj(Ls(va(r.elements),Ea).name);default:return E.assertNever(r)}}function _7e(r){return r.kind===273||r.kind===276||r.kind===274}function Llt(r){return r.kind===273?r:r.kind===274?r.parent:r.parent.parent}function mK(r){if(r.kind===241&&Rh(r),nz(r)){const a=Ae;er(r.statements,ia),Ae=a}else er(r.statements,ia);r.locals&&c1(r)}function Mlt(r){re>=2||!_z(r)||r.flags&33554432||_c(r.body)||er(r.parameters,a=>{a.name&&!Ns(a.name)&&a.name.escapedText===Pt.escapedName&&xd("noEmit",a,p.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function VI(r,a,l){if((a==null?void 0:a.escapedText)!==l||r.kind===172||r.kind===171||r.kind===174||r.kind===173||r.kind===177||r.kind===178||r.kind===303||r.flags&33554432||(Rm(r)||El(r)||x_(r))&&x1(r))return!1;const _=Hd(r);return!(rs(_)&&_c(_.parent.body))}function Rlt(r){Pr(r,a=>F4(a)&4?(r.kind!==80?Me(us(r),p.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):Me(r,p.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0):!1)}function jlt(r){Pr(r,a=>F4(a)&8?(r.kind!==80?Me(us(r),p.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):Me(r,p.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0):!1)}function Blt(r,a){if(R>=5&&!(R>=100&&wr(r).impliedNodeFormat===1)||!a||!VI(r,a,"require")&&!VI(r,a,"exports")||Sc(r)&&ch(r)!==1)return;const l=G(r);l.kind===312&&af(l)&&xd("noEmit",a,p.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,Ka(a),Ka(a))}function Jlt(r,a){if(!a||re>=4||!VI(r,a,"Promise")||Sc(r)&&ch(r)!==1)return;const l=G(r);l.kind===312&&af(l)&&l.flags&4096&&xd("noEmit",a,p.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,Ka(a),Ka(a))}function zlt(r,a){re<=8&&(VI(r,a,"WeakMap")||VI(r,a,"WeakSet"))&&Ey.push(r)}function Wlt(r){const a=Nm(r);F4(a)&1048576&&(E.assert(Nu(r)&&Ie(r.name)&&typeof r.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),xd("noEmit",r,p.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,r.name.escapedText))}function Vlt(r,a){a&&re>=2&&re<=8&&VI(r,a,"Reflect")&&Py.push(r)}function Ult(r){let a=!1;if(kl(r)){for(const l of r.members)if(F4(l)&2097152){a=!0;break}}else if(co(r))F4(r)&2097152&&(a=!0);else{const l=Nm(r);l&&F4(l)&2097152&&(a=!0)}a&&(E.assert(Nu(r)&&Ie(r.name),"The target of a Reflect collision check should be an identifier"),xd("noEmit",r,p.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,Ka(r.name),"Reflect"))}function sD(r,a){a&&(Blt(r,a),Jlt(r,a),zlt(r,a),Vlt(r,a),$n(r)?(oD(a,p.Class_name_cannot_be_0),r.flags&33554432||yut(a)):L1(r)&&oD(a,p.Enum_name_cannot_be_0))}function qlt(r){if(lb(r)&7||$v(r))return;const a=un(r);if(a.flags&1){if(!Ie(r.name))return E.fail();const l=Ho(r,r.name.escapedText,3,void 0,void 0,!1);if(l&&l!==a&&l.flags&2&&Wge(l)&7){const _=w1(l.valueDeclaration,261),m=_.parent.kind===243&&_.parent.parent?_.parent.parent:void 0;if(!(m&&(m.kind===241&&As(m.parent)||m.kind===268||m.kind===267||m.kind===312))){const x=ni(l);Me(r,p.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,x,x)}}}}function UI(r){return r===Ge?B:r===hl?Ec:r}function Hj(r){var a;if(Vj(r),Ea(r)||ia(r.type),!r.name)return;if(r.name.kind===167&&(Wg(r.name),xb(r)&&r.initializer&&Dc(r.initializer)),Ea(r)){if(r.propertyName&&Ie(r.name)&&$v(r)&&_c(cf(r).body)){Ng.push(r);return}kp(r.parent)&&r.dotDotDotToken&&re<5&&Kc(r,4),r.propertyName&&r.propertyName.kind===167&&Wg(r.propertyName);const m=r.parent.parent,h=r.dotDotDotToken?32:0,x=Tn(m,h),N=r.propertyName||r.name;if(x&&!Ns(N)){const L=w0(N);if(Sp(L)){const z=Tp(L),Z=$s(x,z);Z&&(Pj(Z,void 0,!1),Uge(r,!!m.initializer&&m.initializer.kind===108,!1,x,Z))}}}if(Ns(r.name)&&(r.name.kind===207&&re<2&&j.downlevelIteration&&Kc(r,512),er(r.name.elements,ia)),r.initializer&&$v(r)&&_c(cf(r).body)){Me(r,p.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);return}if(Ns(r.name)){if(dge(r))return;const m=xb(r)&&r.initializer&&r.parent.parent.kind!==249,h=!ct(r.name.elements,c7(pl));if(m||h){const x=M(r);if(m){const N=Dc(r.initializer);q&&h?INe(N,r):n1(N,M(r),r,r.initializer)}h&&(s2(r.name)?F0(65,x,Pe,r):q&&INe(x,r))}return}const l=un(r);if(l.flags&2097152&&(Uv(r)||tre(r))){bK(r);return}const _=UI(Xr(l));if(r===l.valueDeclaration){const m=xb(r)&&k8(r);if(m&&!(Hr(r)&&ua(m)&&(m.properties.length===0||iy(r.name))&&!!((a=l.exports)!=null&&a.size))&&r.parent.parent.kind!==249){const x=Dc(m);n1(x,_,r,m,void 0);const N=lb(r)&7;if(N===6){const L=Qtt(!0),z=rwe(!0);if(L!==oa&&z!==oa){const Z=Bn([L,z,ce,Pe]);Pu(x,Z,m,p.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(N===4){const L=rwe(!0);if(L!==oa){const z=Bn([L,ce,Pe]);Pu(x,z,m,p.The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined)}}}l.declarations&&l.declarations.length>1&&ct(l.declarations,h=>h!==r&&nC(h)&&!p7e(h,r))&&Me(r.name,p.All_declarations_of_0_must_have_identical_modifiers,Ka(r.name))}else{const m=UI(M(r));!Ot(_)&&!Ot(m)&&!Ih(_,m)&&!(l.flags&67108864)&&f7e(l.valueDeclaration,_,r,m),xb(r)&&r.initializer&&n1(Dc(r.initializer),m,r,r.initializer,void 0),l.valueDeclaration&&!p7e(r,l.valueDeclaration)&&Me(r.name,p.All_declarations_of_0_must_have_identical_modifiers,Ka(r.name))}r.kind!==172&&r.kind!==171&&(jI(r),(r.kind===260||r.kind===208)&&qlt(r),sD(r,r.name))}function f7e(r,a,l,_){const m=us(l),h=l.kind===172||l.kind===171?p.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:p.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,x=Ka(m),N=Me(m,h,x,Ar(a),Ar(_));r&&la(N,yn(r,p._0_was_also_declared_here,x))}function p7e(r,a){if(r.kind===169&&a.kind===260||r.kind===260&&a.kind===169)return!0;if(MT(r)!==MT(a))return!1;const l=1358;return zT(r,l)===zT(a,l)}function Hlt(r){var a,l;(a=qr)==null||a.push(qr.Phase.Check,"checkVariableDeclaration",{kind:r.kind,pos:r.pos,end:r.end,path:r.tracingPath}),Pft(r),Hj(r),(l=qr)==null||l.pop()}function Glt(r){return kft(r),Hj(r)}function gK(r){const a=Gh(r)&7;(a===4||a===6)&&Kc(r,33554432),er(r.declarations,ia)}function $lt(r){!Ug(r)&&!t0e(r.declarationList)&&Dft(r),gK(r.declarationList)}function Xlt(r){Rh(r),Hi(r.expression)}function Qlt(r){Rh(r);const a=aD(r.expression);Ihe(r.expression,a,r.thenStatement),ia(r.thenStatement),r.thenStatement.kind===242&&Me(r.thenStatement,p.The_body_of_an_if_statement_cannot_be_the_empty_statement),ia(r.elseStatement)}function Ihe(r,a,l){if(!q)return;_(r,l);function _(h,x){for(h=Va(h),m(h,x);Zr(h)&&(h.operatorToken.kind===57||h.operatorToken.kind===61);)h=Va(h.left),m(h,x)}function m(h,x){const N=X8(h)?Va(h.right):h;if(yg(N))return;if(X8(N)){_(N,x);return}const L=N===h?a:aD(N),z=Sn(N)&&RIe(N.expression);if(!Fp(L,4194304)||z)return;const Z=Es(L,0),de=!!nD(L);if(Z.length===0&&!de)return;const _e=Ie(N)?N:Sn(N)?N.name:void 0,Re=_e&&ld(_e);if(!Re&&!de)return;Re&&Zr(h.parent)&&Zlt(h.parent,Re)||Re&&x&&Ylt(h,x,_e,Re)||(de?nv(N,!0,p.This_condition_will_always_return_true_since_this_0_is_always_defined,Jy(L)):Me(N,p.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}}function Ylt(r,a,l,_){return!!Ss(a,function m(h){if(Ie(h)){const x=ld(h);if(x&&x===_){if(Ie(r)||Ie(l)&&Zr(l.parent))return!0;let N=l.parent,L=h.parent;for(;N&&L;){if(Ie(N)&&Ie(L)||N.kind===110&&L.kind===110)return ld(N)===ld(L);if(Sn(N)&&Sn(L)){if(ld(N.name)!==ld(L.name))return!1;L=L.expression,N=N.expression}else if(Rs(N)&&Rs(L))L=L.expression,N=N.expression;else return!1}}}return Ss(h,m)})}function Zlt(r,a){for(;Zr(r)&&r.operatorToken.kind===56;){if(Ss(r.right,function _(m){if(Ie(m)){const h=ld(m);if(h&&h===a)return!0}return Ss(m,_)}))return!0;r=r.parent}return!1}function Klt(r){Rh(r),ia(r.statement),aD(r.expression)}function eut(r){Rh(r),aD(r.expression),ia(r.statement)}function Fhe(r,a){return r.flags&16384&&Me(a,p.An_expression_of_type_void_cannot_be_tested_for_truthiness),r}function aD(r,a){return Fhe(Hi(r,a),r)}function tut(r){Rh(r)||r.initializer&&r.initializer.kind===261&&t0e(r.initializer),r.initializer&&(r.initializer.kind===261?gK(r.initializer):Hi(r.initializer)),r.condition&&aD(r.condition),r.incrementor&&Hi(r.incrementor),ia(r.statement),r.locals&&c1(r)}function rut(r){u5e(r);const a=T5(r);if(r.awaitModifier?a&&ec(a)?or(r.awaitModifier,p.for_await_loops_cannot_be_used_inside_a_class_static_block):(fl(a)&6)===2&&re<99&&Kc(r,16384):j.downlevelIteration&&re<2&&Kc(r,256),r.initializer.kind===261)gK(r.initializer);else{const l=r.initializer,_=Gj(r);if(l.kind===209||l.kind===210)fT(l,_||nt);else{const m=Hi(l);MI(l,p.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,p.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),_&&n1(_,m,l,r.expression)}}ia(r.statement),r.locals&&c1(r)}function nut(r){u5e(r);const a=qge(Hi(r.expression));if(r.initializer.kind===261){const l=r.initializer.declarations[0];l&&Ns(l.name)&&Me(l.name,p.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),gK(r.initializer)}else{const l=r.initializer,_=Hi(l);l.kind===209||l.kind===210?Me(l,p.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):Qs(Rrt(a),_)?MI(l,p.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,p.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):Me(l,p.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}(a===Cn||!Ql(a,126091264))&&Me(r.expression,p.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,Ar(a)),ia(r.statement),r.locals&&c1(r)}function Gj(r){const a=r.awaitModifier?15:13;return F0(a,E4(r.expression),Pe,r.expression)}function F0(r,a,l,_){return ht(a)?a:Ohe(r,a,l,_,!0)||B}function Ohe(r,a,l,_,m){const h=(r&2)!==0;if(a===Cn){Bhe(_,a,h);return}const x=re>=2,N=!x&&j.downlevelIteration,L=j.noUncheckedIndexedAccess&&!!(r&128);if(x||N||h){const st=yK(a,r,x?_:void 0);if(m&&st){const gt=r&8?p.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:r&32?p.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:r&64?p.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:r&16?p.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;gt&&Pu(l,st.nextType,_,gt)}if(st||x)return L?wI(st&&st.yieldType):st&&st.yieldType}let z=a,Z=!1,de=!1;if(r&4){if(z.flags&1048576){const st=a.types,gt=An(st,qt=>!(qt.flags&402653316));gt!==st&&(z=Bn(gt,2))}else z.flags&402653316&&(z=Cn);if(de=z!==a,de&&(re<1&&_&&(Me(_,p.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),Z=!0),z.flags&131072))return L?wI(Ce):Ce}if(!N0(z)){if(_&&!Z){const st=!!(r&4)&&!de,[gt,qt]=Re(st,N);nv(_,qt&&!!nD(z),gt,Ar(z))}return de?L?wI(Ce):Ce:void 0}const _e=bv(z,_t);if(de&&_e)return _e.flags&402653316&&!j.noUncheckedIndexedAccess?Ce:Bn(L?[_e,Ce,Pe]:[_e,Ce],2);return r&128?wI(_e):_e;function Re(st,gt){var qt;return gt?st?[p.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[p.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:Lhe(r,0,a,void 0)?[p.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1]:iut((qt=a.symbol)==null?void 0:qt.escapedName)?[p.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:st?[p.Type_0_is_not_an_array_type_or_a_string_type,!0]:[p.Type_0_is_not_an_array_type,!0]}}function iut(r){switch(r){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 Lhe(r,a,l,_){if(ht(l))return;const m=yK(l,r,_);return m&&m[Ebe(a)]}function O0(r=Cn,a=Cn,l=Kt){if(r.flags&67359327&&a.flags&180227&&l.flags&180227){const _=Ip([r,a,l]);let m=li.get(_);return m||(m={yieldType:r,returnType:a,nextType:l},li.set(_,m)),m}return{yieldType:r,returnType:a,nextType:l}}function d7e(r){let a,l,_;for(const m of r)if(!(m===void 0||m===gn)){if(m===Ps)return Ps;a=_r(a,m.yieldType),l=_r(l,m.returnType),_=_r(_,m.nextType)}return a||l||_?O0(a&&Bn(a),l&&Bn(l),_&&Xs(_)):gn}function hK(r,a){return r[a]}function Vg(r,a,l){return r[a]=l}function yK(r,a,l){var _,m;if(ht(r))return Ps;if(!(r.flags&1048576)){const z=l?{errors:void 0}:void 0,Z=m7e(r,a,l,z);if(Z===gn){if(l){const de=Bhe(l,r,!!(a&2));z!=null&&z.errors&&la(de,...z.errors)}return}else if((_=z==null?void 0:z.errors)!=null&&_.length)for(const de of z.errors)wa.add(de);return Z}const h=a&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",x=hK(r,h);if(x)return x===gn?void 0:x;let N;for(const z of r.types){const Z=l?{errors:void 0}:void 0,de=m7e(z,a,l,Z);if(de===gn){if(l){const _e=Bhe(l,r,!!(a&2));Z!=null&&Z.errors&&la(_e,...Z.errors)}Vg(r,h,gn);return}else if((m=Z==null?void 0:Z.errors)!=null&&m.length)for(const _e of Z.errors)wa.add(_e);N=_r(N,de)}const L=N?d7e(N):gn;return Vg(r,h,L),L===gn?void 0:L}function Mhe(r,a){if(r===gn)return gn;if(r===Ps)return Ps;const{yieldType:l,returnType:_,nextType:m}=r;return a&&dme(!0),O0(pT(l,a)||B,pT(_,a)||B,m)}function m7e(r,a,l,_){if(ht(r))return Ps;let m=!1;if(a&2){const h=Rhe(r,ho)||h7e(r,ho);if(h)if(h===gn&&l)m=!0;else return a&8?Mhe(h,l):h}if(a&1){let h=Rhe(r,Vc)||h7e(r,Vc);if(h)if(h===gn&&l)m=!0;else if(a&2){if(h!==gn)return h=Mhe(h,l),m?h:Vg(r,"iterationTypesOfAsyncIterable",h)}else return h}if(a&2){const h=jhe(r,ho,l,_,m);if(h!==gn)return h}if(a&1){let h=jhe(r,Vc,l,_,m);if(h!==gn)return a&2?(h=Mhe(h,l),m?h:Vg(r,"iterationTypesOfAsyncIterable",h)):h}return gn}function Rhe(r,a){return hK(r,a.iterableCacheKey)}function g7e(r,a){const l=Rhe(r,a)||jhe(r,a,void 0,void 0,!1);return l===gn?ml:l}function h7e(r,a){let l;if($y(r,l=a.getGlobalIterableType(!1))||$y(r,l=a.getGlobalIterableIteratorType(!1))){const[_]=bo(r),{returnType:m,nextType:h}=g7e(l,a);return Vg(r,a.iterableCacheKey,O0(a.resolveIterationType(_,void 0)||_,a.resolveIterationType(m,void 0)||m,h))}if($y(r,a.getGlobalGeneratorType(!1))){const[_,m,h]=bo(r);return Vg(r,a.iterableCacheKey,O0(a.resolveIterationType(_,void 0)||_,a.resolveIterationType(m,void 0)||m,h))}}function y7e(r){const a=K8e(!1),l=a&&je(Xr(a),Wo(r));return l&&Sp(l)?Tp(l):`__@${r}`}function jhe(r,a,l,_,m){const h=$s(r,y7e(a.iteratorSymbolName)),x=h&&!(h.flags&16777216)?Xr(h):void 0;if(ht(x))return m?Ps:Vg(r,a.iterableCacheKey,Ps);const N=x?Es(x,0):void 0;if(!ct(N))return m?gn:Vg(r,a.iterableCacheKey,gn);const L=Xs(nr(N,Ja)),z=v7e(L,a,l,_,m)??gn;return m?z:Vg(r,a.iterableCacheKey,z)}function Bhe(r,a,l){const _=l?p.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:p.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator,m=!!nD(a)||!l&&Fw(r.parent)&&r.parent.expression===r&&KY(!1)!==fs&&Qs(a,KY(!1));return nv(r,m,_,Ar(a))}function sut(r,a,l,_){return v7e(r,a,l,_,!1)}function v7e(r,a,l,_,m){if(ht(r))return Ps;let h=b7e(r,a)||aut(r,a);return h===gn&&l&&(h=void 0,m=!0),h??(h=T7e(r,a,l,_,m)),h===gn?void 0:h}function b7e(r,a){return hK(r,a.iteratorCacheKey)}function aut(r,a){const l=a.getGlobalIterableIteratorType(!1);if($y(r,l)){const[_]=bo(r),m=b7e(l,a)||T7e(l,a,void 0,void 0,!1),{returnType:h,nextType:x}=m===gn?ml:m;return Vg(r,a.iteratorCacheKey,O0(_,h,x))}if($y(r,a.getGlobalIteratorType(!1))||$y(r,a.getGlobalGeneratorType(!1))){const[_,m,h]=bo(r);return Vg(r,a.iteratorCacheKey,O0(_,m,h))}}function S7e(r,a){const l=je(r,"done")||Jt;return Qs(a===0?Jt:Er,l)}function out(r){return S7e(r,0)}function cut(r){return S7e(r,1)}function lut(r){if(ht(r))return Ps;const a=hK(r,"iterationTypesOfIteratorResult");if(a)return a;if($y(r,$tt(!1))){const x=bo(r)[0];return Vg(r,"iterationTypesOfIteratorResult",O0(x,void 0,void 0))}if($y(r,Xtt(!1))){const x=bo(r)[0];return Vg(r,"iterationTypesOfIteratorResult",O0(void 0,x,void 0))}const l=Mc(r,out),_=l!==Cn?je(l,"value"):void 0,m=Mc(r,cut),h=m!==Cn?je(m,"value"):void 0;return!_&&!h?Vg(r,"iterationTypesOfIteratorResult",gn):Vg(r,"iterationTypesOfIteratorResult",O0(_,h||Wr,void 0))}function Jhe(r,a,l,_,m){var h,x,N,L;const z=$s(r,l);if(!z&&l!=="next")return;const Z=z&&!(l==="next"&&z.flags&16777216)?l==="next"?Xr(z):Op(Xr(z),2097152):void 0;if(ht(Z))return l==="next"?Ps:Qo;const de=Z?Es(Z,0):Ve;if(de.length===0){if(_){const Gt=l==="next"?a.mustHaveANextMethodDiagnostic:a.mustBeAMethodDiagnostic;m?(m.errors??(m.errors=[]),m.errors.push(yn(_,Gt,l))):Me(_,Gt,l)}return l==="next"?gn:void 0}if(Z!=null&&Z.symbol&&de.length===1){const Gt=a.getGlobalGeneratorType(!1),Cr=a.getGlobalIteratorType(!1),kr=((x=(h=Gt.symbol)==null?void 0:h.members)==null?void 0:x.get(l))===Z.symbol,Br=!kr&&((L=(N=Cr.symbol)==null?void 0:N.members)==null?void 0:L.get(l))===Z.symbol;if(kr||Br){const Ir=kr?Gt:Cr,{mapper:Jr}=Z;return O0(t1(Ir.typeParameters[0],Jr),t1(Ir.typeParameters[1],Jr),l==="next"?t1(Ir.typeParameters[2],Jr):void 0)}}let _e,Re;for(const Gt of de)l!=="throw"&&ct(Gt.parameters)&&(_e=_r(_e,Md(Gt,0))),Re=_r(Re,Ja(Gt));let st,gt;if(l!=="throw"){const Gt=_e?Bn(_e):Kt;if(l==="next")gt=Gt;else if(l==="return"){const Cr=a.resolveIterationType(Gt,_)||B;st=_r(st,Cr)}}let qt;const $t=Re?Xs(Re):Cn,Ur=a.resolveIterationType($t,_)||B,Tr=lut(Ur);return Tr===gn?(_&&(m?(m.errors??(m.errors=[]),m.errors.push(yn(_,a.mustHaveAValueDiagnostic,l))):Me(_,a.mustHaveAValueDiagnostic,l)),qt=B,st=_r(st,B)):(qt=Tr.yieldType,st=_r(st,Tr.returnType)),O0(qt,Bn(st),gt)}function T7e(r,a,l,_,m){const h=d7e([Jhe(r,a,"next",l,_),Jhe(r,a,"return",l,_),Jhe(r,a,"throw",l,_)]);return m?h:Vg(r,a.iteratorCacheKey,h)}function ab(r,a,l){if(ht(a))return;const _=x7e(a,l);return _&&_[Ebe(r)]}function x7e(r,a){if(ht(r))return Ps;const l=a?2:1,_=a?ho:Vc;return yK(r,l,void 0)||sut(r,_,void 0,void 0)}function uut(r){Rh(r)||xft(r)}function $j(r,a){const l=!!(a&1),_=!!(a&2);if(l){const m=ab(1,r,_);return m?_?I0(iD(m)):m:nt}return _?I0(r)||nt:r}function k7e(r,a){const l=$j(a,fl(r));return!!(l&&(nc(l,16384)||l.flags&32769))}function _ut(r){if(Rh(r))return;const a=T5(r);if(a&&ec(a)){Jl(r,p.A_return_statement_cannot_be_used_inside_a_class_static_block);return}if(!a){Jl(r,p.A_return_statement_can_only_be_used_within_a_function_body);return}const l=Np(a),_=Ja(l),m=fl(a);if(q||r.expression||_.flags&131072){const h=r.expression?Dc(r.expression):Pe;if(a.kind===178)r.expression&&Me(r,p.Setters_cannot_return_a_value);else if(a.kind===176)r.expression&&!n1(h,_,r,r.expression)&&Me(r,p.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(g4(a)){const x=$j(_,m)??_,N=m&2?JI(h,!1,r,p.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):h;x&&n1(N,x,r,r.expression)}}else a.kind!==176&&j.noImplicitReturns&&!k7e(a,_)&&Me(r,p.Not_all_code_paths_return_a_value)}function fut(r){Rh(r)||r.flags&65536&&Jl(r,p.with_statements_are_not_allowed_in_an_async_function_block),Hi(r.expression);const a=wr(r);if(!ob(a)){const l=Im(a,r.pos).start,_=r.statement.pos;cb(a,l,_-l,p.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function put(r){Rh(r);let a,l=!1;const _=Hi(r.expression);er(r.caseBlock.clauses,m=>{m.kind===297&&!l&&(a===void 0?a=m:(or(m,p.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),l=!0)),m.kind===296&&n(h(m)),er(m.statements,ia),j.noFallthroughCasesInSwitch&&m.fallthroughFlowNode&&gj(m.fallthroughFlowNode)&&Me(m,p.Fallthrough_case_in_switch);function h(x){return()=>{const N=Hi(x.expression);bhe(_,N)||Qwe(N,_,x.expression,void 0)}}}),r.caseBlock.locals&&c1(r.caseBlock)}function dut(r){Rh(r)||Pr(r.parent,a=>As(a)?"quit":a.kind===256&&a.label.escapedText===r.label.escapedText?(or(r.label,p.Duplicate_label_0,jc(r.label)),!0):!1),ia(r.statement)}function mut(r){Rh(r)||Ie(r.expression)&&!r.expression.escapedText&&jft(r,p.Line_break_not_permitted_here),r.expression&&Hi(r.expression)}function gut(r){Rh(r),mK(r.tryBlock);const a=r.catchClause;if(a){if(a.variableDeclaration){const l=a.variableDeclaration;Hj(l);const _=Vl(l);if(_){const m=ii(_);m&&!(m.flags&3)&&Jl(_,p.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(l.initializer)Jl(l.initializer,p.Catch_clause_variable_cannot_have_an_initializer);else{const m=a.block.locals;m&&Am(a.locals,h=>{const x=m.get(h);x!=null&&x.valueDeclaration&&x.flags&2&&or(x.valueDeclaration,p.Cannot_redeclare_identifier_0_in_catch_clause,xi(h))})}}mK(a.block)}r.finallyBlock&&mK(r.finallyBlock)}function vK(r,a,l){const _=Wu(r);if(_.length===0)return;for(const h of Qy(r))l&&h.flags&4194304||C7e(r,h,b4(h,8576,!0),Gy(h));const m=a.valueDeclaration;if(m&&$n(m)){for(const h of m.members)if(!Ms(h)&&!d4(h)){const x=un(h);C7e(r,x,Yl(h.name.expression),Gy(x))}}if(_.length>1)for(const h of _)hut(r,h)}function C7e(r,a,l,_){const m=a.valueDeclaration,h=us(m);if(h&&Pi(h))return;const x=Qde(r,l),N=bn(r)&2?Bo(r.symbol,264):void 0,L=m&&m.kind===226||h&&h.kind===167?m:void 0,z=e_(a)===r.symbol?m:void 0;for(const Z of x){const de=Z.declaration&&e_(un(Z.declaration))===r.symbol?Z.declaration:void 0,_e=z||de||(N&&!ct(Z_(r),Re=>!!vv(Re,a.escapedName)&&!!bv(Re,Z.keyType))?N:void 0);if(_e&&!Qs(_,Z.type)){const Re=TS(_e,p.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,ni(a),Ar(_),Ar(Z.keyType),Ar(Z.type));L&&_e!==L&&la(Re,yn(L,p._0_is_declared_here,ni(a))),wa.add(Re)}}}function hut(r,a){const l=a.declaration,_=Qde(r,a.keyType),m=bn(r)&2?Bo(r.symbol,264):void 0,h=l&&e_(un(l))===r.symbol?l:void 0;for(const x of _){if(x===a)continue;const N=x.declaration&&e_(un(x.declaration))===r.symbol?x.declaration:void 0,L=h||N||(m&&!ct(Z_(r),z=>!!zg(z,a.keyType)&&!!bv(z,x.keyType))?m:void 0);L&&!Qs(a.type,x.type)&&Me(L,p._0_index_type_1_is_not_assignable_to_2_index_type_3,Ar(a.keyType),Ar(a.type),Ar(x.keyType),Ar(x.type))}}function oD(r,a){switch(r.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":Me(r,a,r.escapedText)}}function yut(r){re>=1&&r.escapedText==="Object"&&(R<5||wr(r).impliedNodeFormat===1)&&Me(r,p.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,$4[R])}function vut(r){const a=An(T1(r),bd);if(!gr(a))return;const l=Hr(r),_=new Set,m=new Set;if(er(r.parameters,({name:x},N)=>{Ie(x)&&_.add(x.escapedText),Ns(x)&&m.add(N)}),Zde(r)){const x=a.length-1,N=a[x];l&&N&&Ie(N.name)&&N.typeExpression&&N.typeExpression.type&&!_.has(N.name.escapedText)&&!m.has(x)&&!up(ii(N.typeExpression.type))&&Me(N.name,p.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,on(N.name))}else er(a,({name:x,isNameFirst:N},L)=>{m.has(L)||Ie(x)&&_.has(x.escapedText)||(Xu(x)?l&&Me(x,p.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,L_(x),L_(x.left)):N||Bl(l,x,p.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,on(x)))})}function Xj(r){let a=!1;if(r)for(let _=0;_{_.default?(a=!0,but(_.default,r,m)):a&&Me(_,p.Required_type_parameters_may_not_follow_optional_type_parameters);for(let h=0;h_)return!1;for(let L=0;LBc(l)&&Iu(l))&&or(a,p.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!r.name&&!Rn(r,2048)&&Jl(r,p.A_class_declaration_without_the_default_modifier_must_have_a_name),w7e(r),er(r.members,ia),c1(r)}function w7e(r){cft(r),Vj(r),sD(r,r.name),Xj(G0(r)),jI(r);const a=un(r),l=Eo(a),_=mf(l),m=Xr(a);E7e(a),fK(a),Bct(r),!!(r.flags&33554432)||Jct(r);const x=Ud(r);if(x){er(x.typeArguments,ia),re<2&&Kc(x.parent,1);const z=Gv(r);z&&z!==x&&Hi(z.expression);const Z=Z_(l);Z.length&&n(()=>{const de=Z[0],_e=Y_(l),Re=n_(_e);if(Eut(Re,x),ia(x.expression),ct(x.typeArguments)){er(x.typeArguments,ia);for(const gt of Eu(Re,x.typeArguments,x))if(!QIe(x,gt.typeParameters))break}const st=mf(de,l.thisType);if(Pu(_,st,void 0)?Pu(m,Uwe(Re),r.name||r,p.Class_static_side_0_incorrectly_extends_base_class_static_side_1):I7e(r,_,st,p.Class_0_incorrectly_extends_base_class_1),_e.flags&8650752&&(di(m)?Es(_e,1).some(qt=>qt.flags&4)&&!Rn(r,64)&&Me(r.name||r,p.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):Me(r.name||r,p.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)),!(Re.symbol&&Re.symbol.flags&32)&&!(_e.flags&8650752)){const gt=eg(Re,x.typeArguments,x);er(gt,qt=>!ym(qt.declaration)&&!Ih(Ja(qt),de))&&Me(x.expression,p.Base_constructors_must_all_have_the_same_return_type)}wut(l,de)})}Cut(r,l,_,m);const N=mC(r);if(N)for(const z of N)(!pc(z.expression)||hu(z.expression))&&Me(z.expression,p.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),Phe(z),n(L(z));n(()=>{vK(l,a),vK(m,a,!0),khe(r),Iut(r)});function L(z){return()=>{const Z=Fd(ii(z));if(!Ot(Z))if(LR(Z)){const de=Z.symbol&&Z.symbol.flags&32?p.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:p.Class_0_incorrectly_implements_interface_1,_e=mf(Z,l.thisType);Pu(_,_e,void 0)||I7e(r,_,_e,de)}else Me(z,p.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}}function Cut(r,a,l,_){const h=Ud(r)&&Z_(a),x=h!=null&&h.length?mf(va(h),a.thisType):void 0,N=Y_(a);for(const L of r.members)dW(L)||(sc(L)&&er(L.parameters,z=>{O_(z,L)&&A7e(r,_,N,x,a,l,z,!0)}),A7e(r,_,N,x,a,l,L,!1))}function A7e(r,a,l,_,m,h,x,N,L=!0){const z=x.name&&ld(x.name)||ld(x);return z?N7e(r,a,l,_,m,h,Z5(x),Zv(x),Ms(x),N,Xo(z),L?x:void 0):0}function N7e(r,a,l,_,m,h,x,N,L,z,Z,de){const _e=Hr(r),Re=!!(r.flags&33554432);if(_&&(x||j.noImplicitOverride)){const st=Wo(Z),gt=L?a:h,qt=L?l:_,$t=$s(gt,st),Ur=$s(qt,st),Tr=Ar(_);if($t&&!Ur&&x){if(de){const Gt=JNe(Z,qt);Gt?Me(de,_e?p.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:p.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,Tr,ni(Gt)):Me(de,_e?p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:p.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,Tr)}return 2}else if($t&&(Ur!=null&&Ur.declarations)&&j.noImplicitOverride&&!Re){const Gt=ct(Ur.declarations,Zv);if(x)return 0;if(Gt){if(N&&Gt)return de&&Me(de,p.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,Tr),1}else{if(de){const Cr=z?_e?p.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:p.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:_e?p.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:p.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0;Me(de,Cr,Tr)}return 1}}}else if(x){if(de){const st=Ar(m);Me(de,_e?p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:p.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,st)}return 2}return 0}function I7e(r,a,l,_){let m=!1;for(const h of r.members){if(Ms(h))continue;const x=h.name&&ld(h.name)||ld(h);if(x){const N=$s(a,x.escapedName),L=$s(l,x.escapedName);if(N&&L){const z=()=>vs(void 0,p.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,ni(x),Ar(a),Ar(l));Pu(Xr(N),Xr(L),h.name||h,void 0,z)||(m=!0)}}}m||Pu(a,l,r.name||r,_)}function Eut(r,a){const l=Es(r,1);if(l.length){const _=l[0].declaration;if(_&&R_(_,2)){const m=rh(r.symbol);Hhe(a,m)||Me(a,p.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,pf(r.symbol))}}}function Put(r,a,l){if(!a.name)return 0;const _=un(r),m=Eo(_),h=mf(m),x=Xr(_),L=Ud(r)&&Z_(m),z=L!=null&&L.length?mf(va(L),m.thisType):void 0,Z=Y_(m),de=a.parent?Z5(a):Rn(a,16);return N7e(r,x,Z,z,m,h,de,Zv(a),Ms(a),!1,Xo(l))}function I4(r){return Ko(r)&1?r.links.target:r}function Dut(r){return An(r.declarations,a=>a.kind===263||a.kind===264)}function wut(r,a){var l,_,m,h;const x=Ua(a);let N;e:for(const L of x){const z=I4(L);if(z.flags&4194304)continue;const Z=vv(r,z.escapedName);if(!Z)continue;const de=I4(Z),_e=Hf(z);if(E.assert(!!de,"derived should point to something, even if it is the base class' declaration."),de===z){const Re=rh(r.symbol);if(_e&64&&(!Re||!Rn(Re,64))){for(const st of Z_(r)){if(st===a)continue;const gt=vv(st,z.escapedName),qt=gt&&I4(gt);if(qt&&qt!==z)continue e}N||(N=Me(Re,p.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1,Ar(r),Ar(a))),Re.kind===231?la(N,yn(L.valueDeclaration??(L.declarations&&va(L.declarations))??Re,p.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,ni(L),Ar(a))):la(N,yn(L.valueDeclaration??(L.declarations&&va(L.declarations))??Re,p.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,Ar(r),ni(L),Ar(a)))}}else{const Re=Hf(de);if(_e&2||Re&2)continue;let st;const gt=z.flags&98308,qt=de.flags&98308;if(gt&&qt){if((Ko(z)&6?(l=z.declarations)!=null&&l.some(Tr=>F7e(Tr,_e)):(_=z.declarations)!=null&&_.every(Tr=>F7e(Tr,_e)))||Ko(z)&262144||de.valueDeclaration&&Zr(de.valueDeclaration))continue;const $t=gt!==4&&qt===4;if($t||gt===4&&qt!==4){const Tr=$t?p._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:p._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;Me(us(de.valueDeclaration)||de.valueDeclaration,Tr,ni(z),Ar(a),Ar(r))}else if(ue){const Tr=(m=de.declarations)==null?void 0:m.find(Gt=>Gt.kind===172&&!Gt.initializer);if(Tr&&!(de.flags&33554432)&&!(_e&64)&&!(Re&64)&&!((h=de.declarations)!=null&&h.some(Gt=>!!(Gt.flags&33554432)))){const Gt=Th(rh(r.symbol)),Cr=Tr.name;if(Tr.exclamationToken||!Gt||!Ie(Cr)||!q||!L7e(Cr,r,Gt)){const kr=p.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;Me(us(de.valueDeclaration)||de.valueDeclaration,kr,ni(z),Ar(a))}}}continue}else if(Vge(z)){if(Vge(de)||de.flags&4)continue;E.assert(!!(de.flags&98304)),st=p.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else z.flags&98304?st=p.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:st=p.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;Me(us(de.valueDeclaration)||de.valueDeclaration,st,Ar(a),ni(z),Ar(r))}}}function F7e(r,a){return a&64&&(!xs(r)||!r.initializer)||Bu(r.parent)}function Aut(r,a,l){if(!gr(a))return l;const _=new Map;er(l,m=>{_.set(m.escapedName,m)});for(const m of a){const h=Ua(mf(m,r.thisType));for(const x of h){const N=_.get(x.escapedName);N&&x.parent===N.parent&&_.delete(x.escapedName)}}return gs(_.values())}function Nut(r,a){const l=Z_(r);if(l.length<2)return!0;const _=new Map;er(Fde(r).declaredProperties,h=>{_.set(h.escapedName,{prop:h,containingType:r})});let m=!0;for(const h of l){const x=Ua(mf(h,r.thisType));for(const N of x){const L=_.get(N.escapedName);if(!L)_.set(N.escapedName,{prop:N,containingType:h});else if(L.containingType!==r&&!Vnt(L.prop,N)){m=!1;const Z=Ar(L.containingType),de=Ar(h);let _e=vs(void 0,p.Named_property_0_of_types_1_and_2_are_not_identical,ni(N),Z,de);_e=vs(_e,p.Interface_0_cannot_simultaneously_extend_types_1_and_2,Ar(r),Z,de),wa.add(Zg(wr(a),a,_e))}}}return m}function Iut(r){if(!q||!Se||r.flags&33554432)return;const a=Th(r);for(const l of r.members)if(!(Lu(l)&128)&&!Ms(l)&&O7e(l)){const _=l.name;if(Ie(_)||Pi(_)||Pa(_)){const m=Xr(un(l));m.flags&3||WP(m)||(!a||!L7e(_,m,a))&&Me(l.name,p.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,Ka(_))}}}function O7e(r){return r.kind===172&&!Zv(r)&&!r.exclamationToken&&!r.initializer}function Fut(r,a,l,_,m){for(const h of l)if(h.pos>=_&&h.pos<=m){const x=I.createPropertyAccessExpression(I.createThis(),r);ba(x.expression,x),ba(x,h),x.flowNode=h.returnFlowNode;const N=o1(x,a,s1(a));if(!WP(N))return!0}return!1}function L7e(r,a,l){const _=Pa(r)?I.createElementAccessExpression(I.createThis(),r.expression):I.createPropertyAccessExpression(I.createThis(),r);ba(_.expression,_),ba(_,l),_.flowNode=l.returnFlowNode;const m=o1(_,a,s1(a));return!WP(m)}function Out(r){Ug(r)||mft(r),Xj(r.typeParameters),n(()=>{oD(r.name,p.Interface_name_cannot_be_0),jI(r);const a=un(r);E7e(a);const l=Bo(a,264);if(r===l){const _=Eo(a),m=mf(_);if(Nut(_,r.name)){for(const h of Z_(_))Pu(m,mf(h,_.thisType),r.name,p.Interface_0_incorrectly_extends_interface_1);vK(_,a)}}HIe(r)}),er(CE(r),a=>{(!pc(a.expression)||hu(a.expression))&&Me(a.expression,p.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),Phe(a)}),er(r.members,ia),n(()=>{khe(r),c1(r)})}function Lut(r){Ug(r),oD(r.name,p.Type_alias_name_cannot_be_0),jI(r),Xj(r.typeParameters),r.type.kind===141?(!v9.has(r.name.escapedText)||gr(r.typeParameters)!==1)&&Me(r.type,p.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(ia(r.type),c1(r))}function M7e(r){const a=jn(r);if(!(a.flags&1024)){a.flags|=1024;let l=0;for(const _ of r.members){const m=Mut(_,l);jn(_).enumMemberValue=m,l=typeof m=="number"?m+1:void 0}}}function Mut(r,a){if(f8(r.name))Me(r.name,p.Computed_property_names_are_not_allowed_in_enums);else{const l=Kk(r.name);kg(l)&&!ZE(l)&&Me(r.name,p.An_enum_member_cannot_have_a_numeric_name)}if(r.initializer)return Rut(r);if(!(r.parent.flags&33554432&&!zv(r.parent))){if(a!==void 0)return a;Me(r.name,p.Enum_member_must_have_initializer)}}function Rut(r){const a=zv(r.parent),l=r.initializer,_=cD(l,r);return _!==void 0?a&&typeof _=="number"&&!isFinite(_)&&Me(l,isNaN(_)?p.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:p.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):a?Me(l,p.const_enum_member_initializers_must_be_constant_expressions):r.parent.flags&33554432?Me(l,p.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):Pu(Hi(l),_t,l,p.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values),_}function cD(r,a){switch(r.kind){case 224:const l=cD(r.operand,a);if(typeof l=="number")switch(r.operator){case 40:return l;case 41:return-l;case 55:return~l}break;case 226:const _=cD(r.left,a),m=cD(r.right,a);if(typeof _=="number"&&typeof m=="number")switch(r.operatorToken.kind){case 52:return _|m;case 51:return _&m;case 49:return _>>m;case 50:return _>>>m;case 48:return _<But(r))}function But(r){Ug(r),sD(r,r.name),jI(r),r.members.forEach(Jut),M7e(r);const a=un(r),l=Bo(a,r.kind);if(r===l){if(a.declarations&&a.declarations.length>1){const m=zv(r);er(a.declarations,h=>{L1(h)&&zv(h)!==m&&Me(us(h),p.Enum_declarations_must_all_be_const_or_non_const)})}let _=!1;er(a.declarations,m=>{if(m.kind!==266)return!1;const h=m;if(!h.members.length)return!1;const x=h.members[0];x.initializer||(_?Me(x.name,p.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):_=!0)})}}function Jut(r){Pi(r.name)&&Me(r,p.An_enum_member_cannot_be_named_with_a_private_identifier),r.initializer&&Hi(r.initializer)}function zut(r){const a=r.declarations;if(a){for(const l of a)if((l.kind===263||l.kind===262&&dp(l.body))&&!(l.flags&33554432))return l}}function Wut(r,a){const l=Nm(r),_=Nm(a);return Gm(l)?Gm(_):Gm(_)?!1:l===_}function Vut(r){r.body&&(ia(r.body),Vd(r)||c1(r)),n(a);function a(){var l,_;const m=Vd(r),h=r.flags&33554432;m&&!h&&Me(r.name,p.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);const x=su(r),N=x?p.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:p.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(Qj(r,N))return;Ug(r)||!h&&r.name.kind===11&&or(r.name,p.Only_ambient_modules_can_use_quoted_names),Ie(r.name)&&sD(r,r.name),jI(r);const L=un(r);if(L.flags&512&&!h&&qU(r,n2(j))){if(xp(j)&&!wr(r).externalModuleIndicator&&Me(r.name,p.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),((l=L.declarations)==null?void 0:l.length)>1){const z=zut(L);z&&(wr(r)!==wr(z)?Me(r.name,p.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):r.posZ.kind===95);z&&Me(z,p.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(x)if(Jv(r)){if((m||un(r).flags&33554432)&&r.body)for(const Z of r.body.statements)zhe(Z,m)}else Gm(r.parent)?m?Me(r.name,p.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Sl(yp(r.name))&&Me(r.name,p.Ambient_module_declaration_cannot_specify_relative_module_name):m?Me(r.name,p.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Me(r.name,p.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}}function zhe(r,a){switch(r.kind){case 243:for(const _ of r.declarationList.declarations)zhe(_,a);break;case 277:case 278:Jl(r,p.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 271:case 272:Jl(r,p.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 208:case 260:const l=r.name;if(Ns(l)){for(const _ of l.elements)zhe(_,a);break}case 263:case 266:case 262:case 264:case 267:case 265:if(a)return;break}}function Uut(r){switch(r.kind){case 80:return r;case 166:do r=r.left;while(r.kind!==80);return r;case 211:do{if(yg(r.expression)&&!Pi(r.name))return r.name;r=r.expression}while(r.kind!==80);return r}}function Whe(r){const a=uC(r);if(!a||_c(a))return!1;if(!aa(a))return Me(a,p.String_literal_expected),!1;const l=r.parent.kind===268&&su(r.parent.parent);if(r.parent.kind!==312&&!l)return Me(a,r.kind===278?p.Export_declarations_are_not_permitted_in_a_namespace:p.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(l&&Sl(a.text)&&!Wy(r))return Me(r,p.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!El(r)&&r.attributes){const _=r.attributes.token===118?p.Import_attribute_values_must_be_string_literal_expressions:p.Import_assertion_values_must_be_string_literal_expressions;let m=!1;for(const h of r.attributes.elements)aa(h.value)||(m=!0,Me(h.value,_));return!m}return!0}function bK(r){var a,l,_,m;let h=un(r);const x=cl(h);if(x!==tt){if(h=Na(h.exportSymbol||h),Hr(r)&&!(x.flags&111551)&&!x1(r)){const z=DT(r)?r.propertyName||r.name:Nu(r)?r.name:r;if(E.assert(r.kind!==280),r.kind===281){const Z=Me(z,p.Types_cannot_appear_in_export_declarations_in_JavaScript_files),de=(l=(a=wr(r).symbol)==null?void 0:a.exports)==null?void 0:l.get((r.propertyName||r.name).escapedText);if(de===x){const _e=(_=de.declarations)==null?void 0:_.find($k);_e&&la(Z,yn(_e,p._0_is_automatically_exported_here,xi(de.escapedName)))}}else{E.assert(r.kind!==260);const Z=Pr(r,pd(il,El)),de=(Z&&((m=lC(Z))==null?void 0:m.text))??"...",_e=xi(Ie(z)?z.escapedText:h.escapedName);Me(z,p._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,_e,`import("${de}").${_e}`)}return}const N=$l(x),L=(h.flags&1160127?111551:0)|(h.flags&788968?788968:0)|(h.flags&1920?1920:0);if(N&L){const z=r.kind===281?p.Export_declaration_conflicts_with_exported_declaration_of_0:p.Import_declaration_conflicts_with_local_declaration_of_0;Me(r,z,ni(h))}else r.kind!==281&&j.isolatedModules&&!Pr(r,x1)&&h.flags&1160127&&Me(r,p.Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,ni(h),Je);if(xp(j)&&!x1(r)&&!(r.flags&33554432)){const z=rp(h),Z=!(N&111551);if(Z||z)switch(r.kind){case 273:case 276:case 271:{if(j.preserveValueImports||j.verbatimModuleSyntax){E.assertIsDefined(r.name,"An ImportClause with a symbol should have a name");const de=j.verbatimModuleSyntax&&oC(r)?p.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:Z?j.verbatimModuleSyntax?p._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:p._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:j.verbatimModuleSyntax?p._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:p._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled,_e=on(r.kind===276&&r.propertyName||r.name);Ig(Me(r,de,_e),Z?void 0:z,_e)}Z&&r.kind===271&&R_(r,32)&&Me(r,p.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,Je);break}case 281:if(j.verbatimModuleSyntax||wr(z)!==wr(r)){const de=on(r.propertyName||r.name),_e=Z?Me(r,p.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,Je):Me(r,p._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled,de,Je);Ig(_e,Z?void 0:z,de);break}}j.verbatimModuleSyntax&&r.kind!==271&&!Hr(r)&&(R===1||wr(r).impliedNodeFormat===1)&&Me(r,p.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}if(x_(r)){const z=Vhe(h,r);wy(z)&&z.declarations&&S0(r,z.declarations,z.escapedName)}}}function Vhe(r,a){if(!(r.flags&2097152)||wy(r)||!rd(r))return r;const l=cl(r);if(l===tt)return l;for(;r.flags&2097152;){const _=Rge(r);if(_){if(_===l)break;if(_.declarations&&gr(_.declarations))if(wy(_)){S0(a,_.declarations,_.escapedName);break}else{if(r===l)break;r=_}}else break}return l}function SK(r){sD(r,r.name),bK(r),r.kind===276&&on(r.propertyName||r.name)==="default"&&Om(j)&&R!==4&&(R<5||wr(r).impliedNodeFormat===1)&&Kc(r,131072)}function B7e(r){var a;const l=r.attributes;if(l){const _=_me(!0);_!==oa&&Pu(ie(l),lj(_,32768),l);const m=Oq(r),h=o6(l,m?or:void 0),x=r.attributes.token===118;if(m&&h)return;if((R===199&&r.moduleSpecifier&&Oi(r.moduleSpecifier))!==99&&R!==99&&R!==200){const L=x?R===199?p.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:p.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:R===199?p.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:p.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve;return or(l,L)}if(il(r)?(a=r.importClause)!=null&&a.isTypeOnly:r.isTypeOnly)return or(l,x?p.Import_attributes_cannot_be_used_with_type_only_imports_or_exports:p.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(h)return or(l,p.resolution_mode_can_only_be_set_for_type_only_imports)}}function qut(r){return Uu(Dc(r.value))}function Hut(r){if(!Qj(r,Hr(r)?p.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:p.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!Ug(r)&&Y5(r)&&Jl(r,p.An_import_declaration_cannot_have_modifiers),Whe(r)){const a=r.importClause;a&&!Jft(a)&&(a.name&&SK(a),a.namedBindings&&(a.namedBindings.kind===274?(SK(a.namedBindings),R!==4&&(R<5||wr(r).impliedNodeFormat===1)&&Om(j)&&Kc(r,65536)):zu(r,r.moduleSpecifier)&&er(a.namedBindings.elements,SK)))}B7e(r)}}function Gut(r){if(!Qj(r,Hr(r)?p.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:p.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(Ug(r),oC(r)||Whe(r)))if(SK(r),Rn(r,32)&&Ly(r),r.moduleReference.kind!==283){const a=cl(un(r));if(a!==tt){const l=$l(a);if(l&111551){const _=lf(r.moduleReference);yo(_,112575).flags&1920||Me(_,p.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,Ka(_))}l&788968&&oD(r.name,p.Import_name_cannot_be_0)}r.isTypeOnly&&or(r,p.An_import_alias_cannot_use_import_type)}else R>=5&&R!==200&&wr(r).impliedNodeFormat===void 0&&!r.isTypeOnly&&!(r.flags&33554432)&&or(r,p.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 $ut(r){if(!Qj(r,Hr(r)?p.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:p.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!Ug(r)&&Pre(r)&&Jl(r,p.An_export_declaration_cannot_have_modifiers),r.moduleSpecifier&&r.exportClause&&Xf(r.exportClause)&&gr(r.exportClause.elements)&&re===0&&Kc(r,4194304),Xut(r),!r.moduleSpecifier||Whe(r))if(r.exportClause&&!jm(r.exportClause)){er(r.exportClause.elements,t_t);const a=r.parent.kind===268&&su(r.parent.parent),l=!a&&r.parent.kind===268&&!r.moduleSpecifier&&r.flags&33554432;r.parent.kind!==312&&!a&&!l&&Me(r,p.Export_declarations_are_not_permitted_in_a_namespace)}else{const a=zu(r,r.moduleSpecifier);a&&k0(a)?Me(r.moduleSpecifier,p.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,ni(a)):r.exportClause&&bK(r.exportClause),R!==4&&(R<5||wr(r).impliedNodeFormat===1)&&(r.exportClause?Om(j)&&Kc(r,65536):Kc(r,32768))}B7e(r)}}function Xut(r){var a;return r.isTypeOnly&&((a=r.exportClause)==null?void 0:a.kind)===279?h5e(r.exportClause):!1}function Qj(r,a){const l=r.parent.kind===312||r.parent.kind===268||r.parent.kind===267;return l||Jl(r,a),!l}function Qut(r){return R5(r,a=>!!un(a).isReferenced)}function Yut(r){return R5(r,a=>!!wi(un(a)).constEnumReferenced)}function Zut(r){return il(r)&&r.importClause&&!r.importClause.isTypeOnly&&Qut(r.importClause)&&!PK(r.importClause,!0)&&!Yut(r.importClause)}function Kut(r){return El(r)&&Bm(r.moduleReference)&&!r.isTypeOnly&&un(r).isReferenced&&!PK(r,!1)&&!wi(un(r)).constEnumReferenced}function e_t(r){if(pt)for(const a of r.statements)(Zut(a)||Kut(a))&&Me(a,p.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}function t_t(r){if(bK(r),Gf(j)&&AP(r.propertyName||r.name,!0),r.parent.parent.moduleSpecifier)Om(j)&&R!==4&&(R<5||wr(r).impliedNodeFormat===1)&&on(r.propertyName||r.name)==="default"&&Kc(r,131072);else{const a=r.propertyName||r.name,l=Ho(a,a.escapedText,2998271,void 0,void 0,!0);if(l&&(l===Fe||l===$e||l.declarations&&Gm(G(l.declarations[0]))))Me(a,p.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,on(a));else{!r.isTypeOnly&&!r.parent.parent.isTypeOnly&&Ly(r);const _=l&&(l.flags&2097152?cl(l):l);(!_||$l(_)&111551)&&Dc(r.propertyName||r.name)}}}function r_t(r){const a=r.isExportEquals?p.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:p.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration;if(Qj(r,a))return;const l=r.parent.kind===312?r.parent:r.parent.parent;if(l.kind===267&&!su(l)){r.isExportEquals?Me(r,p.An_export_assignment_cannot_be_used_in_a_namespace):Me(r,p.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);return}!Ug(r)&&Y5(r)&&Jl(r,p.An_export_assignment_cannot_have_modifiers);const _=Vl(r);_&&Pu(Dc(r.expression),ii(_),r.expression);const m=!r.isExportEquals&&!(r.flags&33554432)&&j.verbatimModuleSyntax&&(R===1||wr(r).impliedNodeFormat===1);if(r.expression.kind===80){const h=r.expression,x=Rf(yo(h,-1,!0,!0,r));if(x){const N=rp(x,111551);if(BZ(x,h),$l(x)&111551?(Dc(h),!m&&!(r.flags&33554432)&&j.verbatimModuleSyntax&&N&&Me(h,r.isExportEquals?p.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:p.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration,on(h))):!m&&!(r.flags&33554432)&&j.verbatimModuleSyntax&&Me(h,r.isExportEquals?p.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:p.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type,on(h)),!m&&!(r.flags&33554432)&&xp(j)&&!(x.flags&111551)){const L=$l(x,!1,!0);x.flags&2097152&&L&788968&&!(L&111551)&&(!N||wr(N)!==wr(r))?Me(h,r.isExportEquals?p._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:p._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,on(h),Je):N&&wr(N)!==wr(r)&&Ig(Me(h,r.isExportEquals?p._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:p._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,on(h),Je),N,on(h))}}else Dc(h);Gf(j)&&AP(h,!0)}else Dc(r.expression);m&&Me(r,p.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled),J7e(l),r.flags&33554432&&!pc(r.expression)&&or(r.expression,p.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),r.isExportEquals&&(R>=5&&R!==200&&(r.flags&33554432&&wr(r).impliedNodeFormat===99||!(r.flags&33554432)&&wr(r).impliedNodeFormat!==1)?or(r,p.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):R===4&&!(r.flags&33554432)&&or(r,p.Export_assignment_is_not_supported_when_module_flag_is_system))}function n_t(r){return _l(r.exports,(a,l)=>l!=="export=")}function J7e(r){const a=un(r),l=wi(a);if(!l.exportsChecked){const _=a.exports.get("export=");if(_&&n_t(a)){const h=rd(_)||_.valueDeclaration;h&&!Wy(h)&&!Hr(h)&&Me(h,p.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}const m=Xm(a);m&&m.forEach(({declarations:h,flags:x},N)=>{if(N==="__export"||x&1920)return;const L=j0(h,o7(Pbe,c7(Bu)));if(!(x&524288&&L<=2)&&L>1&&!TK(h))for(const z of h)kbe(z)&&wa.add(yn(z,p.Cannot_redeclare_exported_variable_0,xi(N)))}),l.exportsChecked=!0}}function TK(r){return r&&r.length>1&&r.every(a=>Hr(a)&&oo(a)&&(wb(a.expression)||yg(a.expression)))}function ia(r){if(r){const a=P;P=r,T=0,i_t(r),P=a}}function i_t(r){L8(r)&&er(r.jsDoc,({comment:l,tags:_})=>{z7e(l),er(_,m=>{z7e(m.comment),Hr(r)&&ia(m)})});const a=r.kind;if(i)switch(a){case 267:case 263:case 264:case 262:i.throwIfCancellationRequested()}switch(a>=243&&a<=259&&O8(r)&&r.flowNode&&!gj(r.flowNode)&&Bl(j.allowUnreachableCode===!1,r,p.Unreachable_code_detected),a){case 168:return VIe(r);case 169:return UIe(r);case 172:return GIe(r);case 171:return zct(r);case 185:case 184:case 179:case 180:case 181:return RI(r);case 174:case 173:return Wct(r);case 175:return Vct(r);case 176:return Uct(r);case 177:case 178:return XIe(r);case 183:return Phe(r);case 182:return Rct(r);case 186:return Qct(r);case 187:return Yct(r);case 188:return Zct(r);case 189:return Kct(r);case 192:case 193:return elt(r);case 196:case 190:case 191:return ia(r.type);case 197:return ilt(r);case 198:return slt(r);case 194:return alt(r);case 195:return olt(r);case 203:return clt(r);case 205:return llt(r);case 202:return ult(r);case 335:return wlt(r);case 336:return Dlt(r);case 353:case 345:case 347:return vlt(r);case 352:return blt(r);case 351:return Slt(r);case 331:case 332:case 333:return xlt(r);case 348:return klt(r);case 355:return Clt(r);case 324:Elt(r);case 322:case 321:case 319:case 320:case 329:W7e(r),Ss(r,ia);return;case 325:s_t(r);return;case 316:return ia(r.type);case 340:case 342:case 341:return Alt(r);case 357:return Tlt(r);case 350:return Plt(r);case 199:return tlt(r);case 200:return rlt(r);case 262:return ylt(r);case 241:case 268:return mK(r);case 243:return $lt(r);case 244:return Xlt(r);case 245:return Qlt(r);case 246:return Klt(r);case 247:return eut(r);case 248:return tut(r);case 249:return nut(r);case 250:return rut(r);case 251:case 252:return uut(r);case 253:return _ut(r);case 254:return fut(r);case 255:return put(r);case 256:return dut(r);case 257:return mut(r);case 258:return gut(r);case 260:return Hlt(r);case 208:return Glt(r);case 263:return kut(r);case 264:return Out(r);case 265:return Lut(r);case 266:return jut(r);case 267:return Vut(r);case 272:return Hut(r);case 271:return Gut(r);case 278:return $ut(r);case 277:return r_t(r);case 242:case 259:Rh(r);return;case 282:return Hct(r)}}function z7e(r){ts(r)&&er(r,a=>{IT(a)&&ia(a)})}function W7e(r){if(!Hr(r))if(DO(r)||WC(r)){const a=Ws(DO(r)?54:58),l=r.postfix?p._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:p._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1,_=r.type,m=ii(_);or(r,l,a,Ar(WC(r)&&!(m===Cn||m===Wr)?Bn(_r([m,Pe],r.postfix?void 0:ce)):m))}else or(r,p.JSDoc_types_can_only_be_used_inside_documentation_comments)}function s_t(r){W7e(r),ia(r.type);const{parent:a}=r;if(rs(a)&&VC(a.parent)){ka(a.parent.parameters)!==a&&Me(r,p.A_rest_parameter_must_be_last_in_a_parameter_list);return}d2(a)||Me(r,p.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);const l=r.parent.parent;if(!bd(l)){Me(r,p.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}const _=M8(l);if(!_)return;const m=P1(l);(!m||ka(m.parameters).symbol!==_)&&Me(r,p.A_rest_parameter_must_be_last_in_a_parameter_list)}function a_t(r){const a=ii(r.type),{parent:l}=r,_=r.parent.parent;if(d2(r.parent)&&bd(_)){const m=P1(_),h=LV(_.parent.parent);if(m||h){const x=Po(h?_.parent.parent.typeExpression.parameters:m.parameters),N=M8(_);if(!x||N&&x.symbol===N&&dg(x))return pu(a)}}return rs(l)&&VC(l.parent)?pu(a):A_(a)}function Tk(r){const a=wr(r),l=jn(a);l.flags&1?E.assert(!l.deferredNodes,"A type-checked file should have no deferred nodes."):(l.deferredNodes||(l.deferredNodes=new Set),l.deferredNodes.add(r))}function o_t(r){const a=jn(r);a.deferredNodes&&a.deferredNodes.forEach(c_t),a.deferredNodes=void 0}function c_t(r){var a,l;(a=qr)==null||a.push(qr.Phase.Check,"checkDeferredNode",{kind:r.kind,pos:r.pos,end:r.end,path:r.tracingPath});const _=P;switch(P=r,T=0,r.kind){case 213:case 214:case 215:case 170:case 286:uT(r);break;case 218:case 219:case 174:case 173:rct(r);break;case 177:case 178:XIe(r);break;case 231:xut(r);break;case 168:Mct(r);break;case 285:_at(r);break;case 284:pat(r);break;case 216:case 234:case 217:wot(r);break;case 222:Hi(r.expression);break;case 226:eF(r)&&uT(r);break}P=_,(l=qr)==null||l.pop()}function l_t(r){var a,l;(a=qr)==null||a.push(qr.Phase.Check,"checkSourceFile",{path:r.path},!0),Ao("beforeCheck"),u_t(r),Ao("afterCheck"),bf("Check","beforeCheck","afterCheck"),(l=qr)==null||l.pop()}function V7e(r,a){if(a)return!1;switch(r){case 0:return!!j.noUnusedLocals;case 1:return!!j.noUnusedParameters;default:return E.assertNever(r)}}function U7e(r){return Ff.get(r.path)||Ve}function u_t(r){const a=jn(r);if(!(a.flags&1)){if(GE(r,j,e))return;Mft(r),lg(I2),lg(F2),lg(Ey),lg(Py),lg(Ng),er(r.statements,ia),ia(r.endOfFileToken),o_t(r),af(r)&&c1(r),n(()=>{!r.isDeclarationFile&&(j.noUnusedLocals||j.noUnusedParameters)&&o7e(U7e(r),(l,_,m)=>{!Yk(l)&&V7e(_,!!(l.flags&33554432))&&wa.add(m)}),r.isDeclarationFile||Olt()}),j.importsNotUsedAsValues===2&&!r.isDeclarationFile&&Ic(r)&&e_t(r),af(r)&&J7e(r),I2.length&&(er(I2,Rlt),lg(I2)),F2.length&&(er(F2,jlt),lg(F2)),Ey.length&&(er(Ey,Wlt),lg(Ey)),Py.length&&(er(Py,Ult),lg(Py)),a.flags|=1}}function q7e(r,a){try{return i=a,__t(r)}finally{i=void 0}}function Uhe(){for(const r of t)r();t=[]}function qhe(r){Uhe();const a=n;n=l=>l(),l_t(r),n=a}function __t(r){if(r){Uhe();const a=wa.getGlobalDiagnostics(),l=a.length;qhe(r);const _=wa.getDiagnostics(r.fileName),m=wa.getGlobalDiagnostics();if(m!==a){const h=JK(a,m,WE);return es(h,_)}else if(l===0&&m.length>0)return es(m,_);return _}return er(e.getSourceFiles(),qhe),wa.getDiagnostics()}function f_t(){return Uhe(),wa.getGlobalDiagnostics()}function p_t(r,a){if(r.flags&67108864)return[];const l=Bs();let _=!1;return m(),l.delete("this"),Yde(l);function m(){for(;r;){switch(Dm(r)&&r.locals&&!Gm(r)&&x(r.locals,a),r.kind){case 312:if(!Ic(r))break;case 267:N(un(r).exports,a&2623475);break;case 266:x(un(r).exports,a&8);break;case 231:r.name&&h(r.symbol,a);case 263:case 264:_||x(Xy(un(r)),a&788968);break;case 218:r.name&&h(r.symbol,a);break}Hte(r)&&h(Pt,a),_=Ms(r),r=r.parent}x(ge,a)}function h(L,z){if(kC(L)&z){const Z=L.escapedName;l.has(Z)||l.set(Z,L)}}function x(L,z){z&&L.forEach(Z=>{h(Z,z)})}function N(L,z){z&&L.forEach(Z=>{!Bo(Z,281)&&!Bo(Z,280)&&Z.escapedName!=="default"&&h(Z,z)})}}function d_t(r){return r.kind===80&&NC(r.parent)&&us(r.parent)===r}function H7e(r){for(;r.parent.kind===166;)r=r.parent;return r.parent.kind===183}function m_t(r){for(;r.parent.kind===211;)r=r.parent;return r.parent.kind===233}function G7e(r,a){let l,_=Nl(r);for(;_&&!(l=a(_));)_=Nl(_);return l}function g_t(r){return!!Pr(r,a=>sc(a)&&dp(a.body)||xs(a)?!0:$n(a)||fo(a)?"quit":!1)}function Hhe(r,a){return!!G7e(r,l=>l===a)}function h_t(r){for(;r.parent.kind===166;)r=r.parent;if(r.parent.kind===271)return r.parent.moduleReference===r?r.parent:void 0;if(r.parent.kind===277)return r.parent.expression===r?r.parent:void 0}function xK(r){return h_t(r)!==void 0}function y_t(r){switch(fc(r.parent.parent)){case 1:case 3:return Mf(r.parent);case 5:if(Sn(r.parent)&&CC(r.parent)===r)return;case 4:case 2:return un(r.parent.parent)}}function v_t(r){let a=r.parent;for(;Xu(a);)r=a,a=a.parent;if(a&&a.kind===205&&a.qualifier===r)return a}function b_t(r){if(r.expression.kind===110){const a=a_(r,!1,!1);if(As(a)){const l=iNe(a);if(l){const _=Av(l,void 0),m=aNe(l,_);return m&&!ht(m)}}}}function $7e(r){if(eh(r))return Mf(r.parent);if(Hr(r)&&r.parent.kind===211&&r.parent===r.parent.parent.left&&!Pi(r)&&!M1(r)&&!b_t(r.parent)){const a=y_t(r);if(a)return a}if(r.parent.kind===277&&pc(r)){const a=yo(r,2998271,!0);if(a&&a!==tt)return a}else if(b_(r)&&xK(r)){const a=w1(r,271);return E.assert(a!==void 0),sk(r,!0)}if(b_(r)){const a=v_t(r);if(a){ii(a);const l=jn(r).resolvedSymbol;return l===tt?void 0:l}}for(;Fre(r);)r=r.parent;if(m_t(r)){let a=0;r.parent.kind===233?(a=gg(r)?788968:111551,K5(r.parent)&&(a|=111551)):a=1920,a|=2097152;const l=pc(r)?yo(r,a,!0):void 0;if(l)return l}if(r.parent.kind===348)return M8(r.parent);if(r.parent.kind===168&&r.parent.parent.kind===352){E.assert(!Hr(r));const a=sre(r.parent);return a&&a.symbol}if(hg(r)){if(_c(r))return;const a=Pr(r,pd(IT,v3,M1)),l=a?901119:111551;if(r.kind===80){if(aC(r)&&Sk(r)){const m=HZ(r.parent);return m===tt?void 0:m}const _=yo(r,l,!0,!0,P1(r));if(!_&&a){const m=Pr(r,pd($n,Bu));if(m)return Yj(r,!0,un(m))}if(_&&a){const m=Ib(r);if(m&&p2(m)&&m===_.valueDeclaration)return yo(r,l,!0,!0,wr(m))||_}return _}else{if(Pi(r))return XZ(r);if(r.kind===211||r.kind===166){const _=jn(r);return _.resolvedSymbol?_.resolvedSymbol:(r.kind===211?(GZ(r,0),_.resolvedSymbol||(_.resolvedSymbol=X7e(Dc(r.expression),w0(r.name)))):FNe(r,0),!_.resolvedSymbol&&a&&Xu(r)?Yj(r):_.resolvedSymbol)}else if(M1(r))return Yj(r)}}else if(H7e(r)){const a=r.parent.kind===183?788968:1920,l=yo(r,a,!1,!0);return l&&l!==tt?l:XY(r)}if(r.parent.kind===182)return yo(r,1)}function X7e(r,a){const l=Qde(r,a);if(l.length&&r.members){const _=HY(Id(r).members);if(l===Wu(r))return _;if(_){const m=wi(_),h=Ri(l,N=>N.declaration),x=nr(h,Oa).join(",");if(m.filteredIndexSymbolCache||(m.filteredIndexSymbolCache=new Map),m.filteredIndexSymbolCache.has(x))return m.filteredIndexSymbolCache.get(x);{const N=xa(131072,"__index");return N.declarations=Ri(l,L=>L.declaration),N.parent=r.aliasSymbol?r.aliasSymbol:r.symbol?r.symbol:ld(N.declarations[0].parent),m.filteredIndexSymbolCache.set(x,N),N}}}}function Yj(r,a,l){if(b_(r)){let x=yo(r,901119,a,!0,P1(r));if(!x&&Ie(r)&&l&&(x=Na(m_(Q_(l),r.escapedText,901119))),x)return x}const _=Ie(r)?l:Yj(r.left,a,l),m=Ie(r)?r.escapedText:r.right.escapedText;if(_){const h=_.flags&111551&&$s(Xr(_),"prototype"),x=h?Xr(h):Eo(_);return $s(x,m)}}function ld(r,a){if(Ni(r))return Ic(r)?Na(r.symbol):void 0;const{parent:l}=r,_=l.parent;if(!(r.flags&67108864)){if(Cbe(r)){const m=un(l);return DT(r.parent)&&r.parent.propertyName===r?Rge(m):m}else if(B8(r))return un(l.parent);if(r.kind===80){if(xK(r))return $7e(r);if(l.kind===208&&_.kind===206&&r===l.propertyName){const m=xk(_),h=$s(m,r.escapedText);if(h)return h}else if(f3(l)&&l.name===r)return l.keywordToken===105&&on(r)==="target"?uhe(l).symbol:l.keywordToken===102&&on(r)==="meta"?Y8e().members.get("meta"):void 0}switch(r.kind){case 80:case 81:case 211:case 166:if(!JT(r))return $7e(r);case 110:const m=a_(r,!1,!1);if(As(m)){const N=Np(m);if(N.thisParameter)return N.thisParameter}if(D5(r))return Hi(r).symbol;case 197:return sZ(r).symbol;case 108:return Hi(r).symbol;case 137:const h=r.parent;return h&&h.kind===176?h.parent.symbol:void 0;case 11:case 15:if(C1(r.parent.parent)&&bE(r.parent.parent)===r||(r.parent.kind===272||r.parent.kind===278)&&r.parent.moduleSpecifier===r||Hr(r)&&Gu(r.parent,!1)||of(r.parent)||fy(r.parent)&&ty(r.parent.parent)&&r.parent.parent.argument===r.parent)return zu(r,r,a);if(Rs(l)&&Ab(l)&&l.arguments[1]===r)return un(l);case 9:const x=ko(l)?l.argumentExpression===r?Yl(l.expression):void 0:fy(l)&&qb(_)?ii(_.objectType):void 0;return x&&$s(x,Wo(r.text));case 90:case 100:case 39:case 86:return Mf(r.parent);case 205:return ty(r)?ld(r.argument.literal,a):void 0;case 95:return oc(r.parent)?E.checkDefined(r.parent.symbol):void 0;case 102:case 105:return f3(r.parent)?gIe(r.parent).symbol:void 0;case 104:if(Zr(r.parent)){const N=Yl(r.parent.right),L=vhe(N);return(L==null?void 0:L.symbol)??N.symbol}return;case 236:return Hi(r).symbol;case 295:if(aC(r)&&Sk(r)){const N=HZ(r.parent);return N===tt?void 0:N}default:return}}}function S_t(r){if(Ie(r)&&Sn(r.parent)&&r.parent.name===r){const a=w0(r),l=Yl(r.parent.expression),_=l.flags&1048576?l.types:[l];return Zs(_,m=>An(Wu(m),h=>dk(a,h.keyType)))}}function T_t(r){if(r&&r.kind===304)return yo(r.name,2208703)}function x_t(r){return vu(r)?r.parent.parent.moduleSpecifier?bh(r.parent.parent,r):yo(r.propertyName||r.name,2998271):yo(r,2998271)}function xk(r){if(Ni(r)&&!Ic(r)||r.flags&67108864)return nt;const a=yW(r),l=a&&ap(un(a.class));if(gg(r)){const _=ii(r);return l?mf(_,l.thisType):_}if(hg(r))return Q7e(r);if(l&&!a.isImplements){const _=bl(Z_(l));return _?mf(_,l.thisType):nt}if(NC(r)){const _=un(r);return Eo(_)}if(d_t(r)){const _=ld(r);return _?Eo(_):nt}if(Ea(r))return US(r,!0,0)||nt;if(yu(r)){const _=un(r);return _?Xr(_):nt}if(Cbe(r)){const _=ld(r);return _?Xr(_):nt}if(Ns(r))return US(r.parent,!0,0)||nt;if(xK(r)){const _=ld(r);if(_){const m=Eo(_);return Ot(m)?Xr(_):m}}return f3(r.parent)&&r.parent.keywordToken===r.kind?gIe(r.parent):fx(r)?_me(!1):nt}function kK(r){if(E.assert(r.kind===210||r.kind===209),r.parent.kind===250){const m=Gj(r.parent);return fT(r,m||nt)}if(r.parent.kind===226){const m=Yl(r.parent.right);return fT(r,m||nt)}if(r.parent.kind===303){const m=Ls(r.parent.parent,ua),h=kK(m)||nt,x=Zk(m.properties,r.parent);return FIe(m,h,x)}const a=Ls(r.parent,ju),l=kK(a)||nt,_=F0(65,l,Pe,r.parent)||nt;return OIe(a,l,a.elements.indexOf(r),_)}function k_t(r){const a=kK(Ls(r.parent.parent,_E));return a&&$s(a,r.escapedText)}function Q7e(r){return ME(r)&&(r=r.parent),Uu(Yl(r))}function Y7e(r){const a=Mf(r.parent);return Ms(r)?Xr(a):Eo(a)}function Z7e(r){const a=r.name;switch(a.kind){case 80:return h_(on(a));case 9:case 11:return h_(a.text);case 167:const l=Wg(a);return Ql(l,12288)?l:Ce;default:return E.fail("Unsupported property name.")}}function Ghe(r){r=n_(r);const a=Bs(Ua(r)),l=Es(r,0).length?Fr:Es(r,1).length?Yi:void 0;return l&&er(Ua(l),_=>{a.has(_.escapedName)||a.set(_.escapedName,_)}),_v(a)}function CK(r){return Es(r,0).length!==0||Es(r,1).length!==0}function K7e(r){const a=C_t(r);return a?Zs(a,K7e):[r]}function C_t(r){if(Ko(r)&6)return Ri(wi(r).containingType.types,a=>$s(a,r.escapedName));if(r.flags&33554432){const{links:{leftSpread:a,rightSpread:l,syntheticOrigin:_}}=r;return a?[a,l]:_?[_]:TT(E_t(r))}}function E_t(r){let a,l=r;for(;l=wi(l).target;)a=l;return a}function P_t(r){if(Fo(r))return!1;const a=as(r,Ie);if(!a)return!1;const l=a.parent;return l?!((Sn(l)||zc(l))&&l.name===a)&&HI(a)===Pt:!1}function D_t(r){let a=zu(r.parent,r);if(!a||mE(a))return!0;const l=k0(a);a=X_(a);const _=wi(a);return _.exportsSomeValue===void 0&&(_.exportsSomeValue=l?!!(a.flags&111551):_l(Xm(a),m)),_.exportsSomeValue;function m(h){return h=mc(h),h&&!!($l(h)&111551)}}function w_t(r){return n8(r.parent)&&r===r.parent.name}function A_t(r,a){var l;const _=as(r,Ie);if(_){let m=HI(_,w_t(_));if(m){if(m.flags&1048576){const x=Na(m.exportSymbol);if(!a&&x.flags&944&&!(x.flags&3))return;m=x}const h=e_(m);if(h){if(h.flags&512&&((l=h.valueDeclaration)==null?void 0:l.kind)===312){const x=h.valueDeclaration,N=wr(_);return x!==N?void 0:x}return Pr(_.parent,x=>n8(x)&&un(x)===h)}}}}function N_t(r){const a=Vne(r);if(a)return a;const l=as(r,Ie);if(l){const _=U_t(l);if(FS(_,111551)&&!rp(_,111551))return rd(_)}}function I_t(r){return r.valueDeclaration&&Ea(r.valueDeclaration)&&Wk(r.valueDeclaration).parent.kind===299}function e5e(r){if(r.flags&418&&r.valueDeclaration&&!Ni(r.valueDeclaration)){const a=wi(r);if(a.isDeclarationWithCollidingName===void 0){const l=Nm(r.valueDeclaration);if(Cte(l)||I_t(r)){const _=jn(r.valueDeclaration);if(Ho(l.parent,r.escapedName,111551,void 0,void 0,!1))a.isDeclarationWithCollidingName=!0;else if(_.flags&16384){const m=_.flags&32768,h=Q0(l,!1),x=l.kind===241&&Q0(l.parent,!1);a.isDeclarationWithCollidingName=!Ite(l)&&(!m||!h&&!x)}else a.isDeclarationWithCollidingName=!1}}return a.isDeclarationWithCollidingName}return!1}function F_t(r){if(!Fo(r)){const a=as(r,Ie);if(a){const l=HI(a);if(l&&e5e(l))return l.valueDeclaration}}}function O_t(r){const a=as(r,yu);if(a){const l=un(a);if(l)return e5e(l)}return!1}function t5e(r){switch(E.assert(pt),r.kind){case 271:return EK(un(r));case 273:case 274:case 276:case 281:const a=un(r);return!!a&&EK(a,!0);case 278:const l=r.exportClause;return!!l&&(jm(l)||ct(l.elements,t5e));case 277:return r.expression&&r.expression.kind===80?EK(un(r),!0):!0}return!1}function L_t(r){const a=as(r,El);return a===void 0||a.parent.kind!==312||!oC(a)?!1:EK(un(a))&&a.moduleReference&&!_c(a.moduleReference)}function EK(r,a){if(!r)return!1;const l=Rf(cl(r));return l===tt?!a||!rp(r):!!($l(r,a,!0)&111551)&&(n2(j)||!qI(l))}function qI(r){return yhe(r)||!!r.constEnumOnlyModule}function PK(r,a){if(E.assert(pt),Iy(r)){const l=un(r),_=l&&wi(l);if(_!=null&&_.referenced)return!0;const m=wi(l).aliasTarget;if(m&&Lu(r)&32&&$l(m)&111551&&(n2(j)||!qI(m)))return!0}return a?!!Ss(r,l=>PK(l,a)):!1}function r5e(r){if(dp(r.body)){if(Y0(r)||Xh(r))return!1;const a=un(r),l=$2(a);return l.length>1||l.length===1&&l[0].declaration!==r}return!1}function n5e(r){return!!q&&!uI(r)&&!bd(r)&&!!r.initializer&&!Rn(r,31)}function M_t(r){return q&&uI(r)&&!r.initializer&&Rn(r,31)}function R_t(r){const a=as(r,$c);if(!a)return!1;const l=un(a);return!l||!(l.flags&16)?!1:!!_l(Q_(l),_=>_.flags&111551&&wF(_.valueDeclaration))}function j_t(r){const a=as(r,$c);if(!a)return Ve;const l=un(a);return l&&Ua(Xr(l))||Ve}function F4(r){var a;const l=r.id||0;return l<0||l>=N2.length?0:((a=N2[l])==null?void 0:a.flags)||0}function O4(r){return M7e(r.parent),jn(r).enumMemberValue}function i5e(r){switch(r.kind){case 306:case 211:case 212:return!0}return!1}function $he(r){if(r.kind===306)return O4(r);const a=jn(r).resolvedSymbol;if(a&&a.flags&8){const l=a.valueDeclaration;if(zv(l.parent))return O4(l)}}function Xhe(r){return!!(r.flags&524288)&&Es(r,0).length>0}function B_t(r,a){var l;const _=as(r,b_);if(!_||a&&(a=as(a),!a))return 0;let m=!1;if(Xu(_)){const Z=yo(lf(_),111551,!0,!0,a);m=!!((l=Z==null?void 0:Z.declarations)!=null&&l.every(x1))}const h=yo(_,111551,!0,!0,a),x=h&&h.flags&2097152?cl(h):h;m||(m=!!(h&&rp(h,111551)));const N=yo(_,788968,!0,!0,a),L=N&&N.flags&2097152?cl(N):N;if(h||m||(m=!!(N&&rp(N,788968))),x&&x===L){const Z=fme(!1);if(Z&&x===Z)return 9;const de=Xr(x);if(de&&Ia(de))return m?10:1}if(!L)return m?11:0;const z=Eo(L);return Ot(z)?m?11:0:z.flags&3?11:Ql(z,245760)?2:Ql(z,528)?6:Ql(z,296)?3:Ql(z,2112)?4:Ql(z,402653316)?5:da(z)?7:Ql(z,12288)?8:Xhe(z)?10:up(z)?7:11}function J_t(r,a,l,_,m){const h=as(r,Vte);if(!h)return I.createToken(133);const x=un(h);let N=x&&!(x.flags&133120)?tb(Xr(x)):nt;return N.flags&8192&&N.symbol===x&&(l|=1048576),m&&(N=s1(N)),ft.typeToTypeNode(N,a,l|1024,_)}function z_t(r,a,l,_){const m=as(r,As);if(!m)return I.createToken(133);const h=Np(m);return ft.typeToTypeNode(Ja(h),a,l|1024,_)}function W_t(r,a,l,_){const m=as(r,ot);if(!m)return I.createToken(133);const h=gf(Q7e(m));return ft.typeToTypeNode(h,a,l|1024,_)}function V_t(r){return ge.has(Wo(r))}function HI(r,a){const l=jn(r).resolvedSymbol;if(l)return l;let _=r;if(a){const m=r.parent;yu(m)&&r===m.name&&(_=G(m))}return Ho(_,r.escapedText,3257279,void 0,void 0,!0)}function U_t(r){const a=jn(r).resolvedSymbol;return a&&a!==tt?a:Ho(r,r.escapedText,3257279,void 0,void 0,!0,void 0,void 0)}function q_t(r){if(!Fo(r)){const a=as(r,Ie);if(a){const l=HI(a);if(l)return Rf(l).valueDeclaration}}}function H_t(r){if(!Fo(r)){const a=as(r,Ie);if(a){const l=HI(a);if(l)return An(Rf(l).declarations,_=>{switch(_.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 G_t(r){return m5(r)||hi(r)&&Kj(r)?Z2(Xr(un(r))):!1}function $_t(r,a,l){const _=r.flags&1056?ft.symbolToExpression(r.symbol,111551,a,void 0,l):r===Er?I.createTrue():r===Jt&&I.createFalse();if(_)return _;const m=r.value;return typeof m=="object"?I.createBigIntLiteral(m):typeof m=="string"?I.createStringLiteral(m):m<0?I.createPrefixUnaryExpression(41,I.createNumericLiteral(-m)):I.createNumericLiteral(m)}function X_t(r,a){const l=Xr(un(r));return $_t(l,r,a)}function s5e(r){return r?(rv(r),wr(r).localJsxFactory||gh):gh}function Qhe(r){if(r){const a=wr(r);if(a){if(a.localJsxFragmentFactory)return a.localJsxFragmentFactory;const l=a.pragmas.get("jsxfrag"),_=ts(l)?l[0]:l;if(_)return a.localJsxFragmentFactory=yx(_.arguments.factory,re),a.localJsxFragmentFactory}}if(j.jsxFragmentFactory)return yx(j.jsxFragmentFactory,re)}function Q_t(){const r=e.getResolvedTypeReferenceDirectives();let a;return r&&(a=new Map,r.forEach(({resolvedTypeReferenceDirective:L},z,Z)=>{if(!(L!=null&&L.resolvedFileName))return;const de=e.getSourceFile(L.resolvedFileName);de&&N(de,z,Z)})),{getReferencedExportContainer:A_t,getReferencedImportDeclaration:N_t,getReferencedDeclarationWithCollidingName:F_t,isDeclarationWithCollidingName:O_t,isValueAliasDeclaration:L=>{const z=as(L);return z&&pt?t5e(z):!0},hasGlobalName:V_t,isReferencedAliasDeclaration:(L,z)=>{const Z=as(L);return Z&&pt?PK(Z,z):!0},getNodeCheckFlags:L=>{const z=as(L);return z?F4(z):0},isTopLevelValueImportEqualsWithEntityName:L_t,isDeclarationVisible:Dd,isImplementationOfOverload:r5e,isRequiredInitializedParameter:n5e,isOptionalUninitializedParameterProperty:M_t,isExpandoFunctionDeclaration:R_t,getPropertiesOfContainerFunction:j_t,createTypeOfDeclaration:J_t,createReturnTypeOfSignatureDeclaration:z_t,createTypeOfExpression:W_t,createLiteralConstValue:X_t,isSymbolAccessible:gi,isEntityNameVisible:By,getConstantValue:L=>{const z=as(L,i5e);return z?$he(z):void 0},collectLinkedAliases:AP,getReferencedValueDeclaration:q_t,getReferencedValueDeclarations:H_t,getTypeReferenceSerializationKind:B_t,isOptionalParameter:uI,moduleExportsSomeValue:D_t,isArgumentsLocalBinding:P_t,getExternalModuleFileFromDeclaration:L=>{const z=as(L,Ote);return z&&Yhe(z)},getTypeReferenceDirectivesForEntityName:m,getTypeReferenceDirectivesForSymbol:h,isLiteralConstDeclaration:G_t,isLateBound:L=>{const z=as(L,yu),Z=z&&un(z);return!!(Z&&Ko(Z)&4096)},getJsxFactoryEntity:s5e,getJsxFragmentFactoryEntity:Qhe,getAllAccessorDeclarations(L){L=as(L,U7);const z=L.kind===178?177:178,Z=Bo(un(L),z),de=Z&&Z.posSh(L,L,void 0),isBindingCapturedByNode:(L,z)=>{const Z=as(L),de=as(z);return!!Z&&!!de&&(hi(de)||Ea(de))&&bst(Z,de)},getDeclarationStatementsForSourceFile:(L,z,Z,de)=>{const _e=as(L);E.assert(_e&&_e.kind===312,"Non-sourcefile node passed into getDeclarationsForSourceFile");const Re=un(L);return Re?Re.exports?ft.symbolTableToDeclarationStatements(Re.exports,L,z,Z,de):[]:L.locals?ft.symbolTableToDeclarationStatements(L.locals,L,z,Z,de):[]},isImportRequiredByAugmentation:l,tryFindAmbientModule:L=>{const z=as(L),Z=z&&Ma(z)?z.text:void 0;return Z!==void 0?VY(Z,!0):void 0}};function l(L){const z=wr(L);if(!z.symbol)return!1;const Z=Yhe(L);if(!Z||Z===z)return!1;const de=Xm(z.symbol);for(const _e of gs(de.values()))if(_e.mergeId){const Re=Na(_e);if(Re.declarations){for(const st of Re.declarations)if(wr(st)===Z)return!0}}return!1}function _(L){return L.parent&&L.parent.kind===233&&L.parent.parent&&L.parent.parent.kind===298}function m(L){if(!a)return;let z;L.parent.kind===167?z=1160127:(z=790504,(L.kind===80&&Mb(L)||L.kind===211&&!_(L))&&(z=1160127));const Z=yo(L,z,!0);return Z&&Z!==tt?h(Z,z):void 0}function h(L,z){if(!a||!x(L))return;let Z;for(const de of L.declarations)if(de.symbol&&de.symbol.flags&z){const _e=wr(de),Re=a.get(_e.path);if(Re)(Z||(Z=[])).push(Re);else return}return Z}function x(L){if(!L.declarations)return!1;let z=L;for(;;){const Z=e_(z);if(Z)z=Z;else break}if(z.valueDeclaration&&z.valueDeclaration.kind===312&&z.flags&512)return!1;for(const Z of L.declarations){const de=wr(Z);if(a.has(de.path))return!0}return!1}function N(L,z,Z){if(!a.has(L.path)){a.set(L.path,[z,Z]);for(const{fileName:de}of L.referencedFiles){const _e=z9(de,L.fileName),Re=e.getSourceFile(_e);Re&&N(Re,z,Z||L.impliedNodeFormat)}}}}function Yhe(r){const a=r.kind===267?Wn(r.name,aa):uC(r),l=Sh(a,a,void 0);if(l)return Bo(l,312)}function Y_t(){for(const a of e.getSourceFiles())Tse(a,j);$a=new Map;let r;for(const a of e.getSourceFiles())if(!a.redirectInfo){if(!af(a)){const l=a.locals.get("globalThis");if(l!=null&&l.declarations)for(const _ of l.declarations)wa.add(yn(_,p.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));Ed(ge,a.locals)}a.jsGlobalAugmentations&&Ed(ge,a.jsGlobalAugmentations),a.patternAmbientModules&&a.patternAmbientModules.length&&(Pp=es(Pp,a.patternAmbientModules)),a.moduleAugmentations.length&&(r||(r=[])).push(a.moduleAugmentations),a.symbol&&a.symbol.globalExports&&a.symbol.globalExports.forEach((_,m)=>{ge.has(m)||ge.set(m,_)})}if(r)for(const a of r)for(const l of a)Vd(l.parent)&&X6(l);if(O2(ge,SS,p.Declaration_name_conflicts_with_built_in_global_identifier_0),wi(Fe).type=St,wi(Pt).type=Pc("IArguments",0,!0),wi(tt).type=nt,wi($e).type=np(16,$e),Ds=Pc("Array",1,!0),Te=Pc("Object",0,!0),kt=Pc("Function",0,!0),Fr=oe&&Pc("CallableFunction",0,!0)||kt,Yi=oe&&Pc("NewableFunction",0,!0)||kt,Cc=Pc("String",0,!0),Uc=Pc("Number",0,!0),Ro=Pc("Boolean",0,!0),qo=Pc("RegExp",0,!0),Ec=pu(B),hl=pu(Ge),hl===oa&&(hl=so(void 0,U,Ve,Ve,Ve)),Is=nwe("ReadonlyArray",1)||Ds,If=Is?pI(Is,[B]):Ec,dc=nwe("ThisType",1),r)for(const a of r)for(const l of a)Vd(l.parent)||X6(l);$a.forEach(({firstFile:a,secondFile:l,conflictingSymbols:_})=>{if(_.size<8)_.forEach(({isBlockScoped:m,firstFileLocations:h,secondFileLocations:x},N)=>{const L=m?p.Cannot_redeclare_block_scoped_variable_0:p.Duplicate_identifier_0;for(const z of h)hh(z,L,N,x);for(const z of x)hh(z,L,N,h)});else{const m=gs(_.keys()).join(", ");wa.add(la(yn(a,p.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,m),yn(l,p.Conflicts_are_in_this_file))),wa.add(la(yn(l,p.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,m),yn(a,p.Conflicts_are_in_this_file)))}}),$a=void 0}function Kc(r,a){if((o&a)!==a&&j.importHelpers){const l=wr(r);if(FT(l,j)&&!(r.flags&33554432)){const _=K_t(l,r);if(_!==tt){const m=a&~o;for(let h=1;h<=33554432;h<<=1)if(m&h)for(const x of Z_t(h)){if(s.has(x))continue;s.add(x);const N=mc(m_(Xm(_),Wo(x),111551));N?h&524288?ct($2(N),L=>hf(L)>3)||Me(r,p.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,oy,x,4):h&1048576?ct($2(N),L=>hf(L)>4)||Me(r,p.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,oy,x,5):h&1024&&(ct($2(N),L=>hf(L)>2)||Me(r,p.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,oy,x,3)):Me(r,p.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,oy,x)}}o|=a}}}function Z_t(r){switch(r){case 1:return["__extends"];case 2:return["__assign"];case 4:return["__rest"];case 8:return Y?["__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 E.fail("Unrecognized helper")}}function K_t(r,a){return c||(c=um(r,oy,p.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,a)||tt),c}function Ug(r){var a;const l=rft(r)||eft(r);if(l!==void 0)return l;if(rs(r)&&Qv(r))return Jl(r,p.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);const _=ac(r)?r.declarationList.flags&7:0;let m,h,x,N,L,z=0,Z=!1,de=!1;for(const _e of r.modifiers)if(ql(_e)){if(P5(Y,r,r.parent,r.parent.parent)){if(Y&&(r.kind===177||r.kind===178)){const Re=Rb(r.parent.members,r);if(Vf(Re.firstAccessor)&&r===Re.secondAccessor)return Jl(r,p.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return r.kind===174&&!dp(r.body)?Jl(r,p.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):Jl(r,p.Decorators_are_not_valid_here);if(z&-34849)return or(_e,p.Decorators_are_not_valid_here);if(de&&z&98303){E.assertIsDefined(L);const Re=wr(_e);return ob(Re)?!1:(la(Me(_e,p.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),yn(L,p.Decorator_used_before_export_here)),!0)}z|=32768,z&98303?z&32&&(Z=!0):de=!0,L??(L=_e)}else{if(_e.kind!==148){if(r.kind===171||r.kind===173)return or(_e,p._0_modifier_cannot_appear_on_a_type_member,Ws(_e.kind));if(r.kind===181&&(_e.kind!==126||!$n(r.parent)))return or(_e,p._0_modifier_cannot_appear_on_an_index_signature,Ws(_e.kind))}if(_e.kind!==103&&_e.kind!==147&&_e.kind!==87&&r.kind===168)return or(_e,p._0_modifier_cannot_appear_on_a_type_parameter,Ws(_e.kind));switch(_e.kind){case 87:{if(r.kind!==266&&r.kind!==168)return or(r,p.A_class_member_cannot_have_the_0_keyword,Ws(87));const gt=Cp(r.parent)&&D1(r.parent)||r.parent;if(r.kind===168&&!(fo(gt)||$n(gt)||Mm(gt)||MC(gt)||sx(gt)||Dw(gt)||Lm(gt)))return or(_e,p._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,Ws(_e.kind));break}case 164:if(z&16)return or(_e,p._0_modifier_already_seen,"override");if(z&128)return or(_e,p._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(z&8)return or(_e,p._0_modifier_must_precede_1_modifier,"override","readonly");if(z&512)return or(_e,p._0_modifier_must_precede_1_modifier,"override","accessor");if(z&1024)return or(_e,p._0_modifier_must_precede_1_modifier,"override","async");z|=16,N=_e;break;case 125:case 124:case 123:const Re=VS(WT(_e.kind));if(z&7)return or(_e,p.Accessibility_modifier_already_seen);if(z&16)return or(_e,p._0_modifier_must_precede_1_modifier,Re,"override");if(z&256)return or(_e,p._0_modifier_must_precede_1_modifier,Re,"static");if(z&512)return or(_e,p._0_modifier_must_precede_1_modifier,Re,"accessor");if(z&8)return or(_e,p._0_modifier_must_precede_1_modifier,Re,"readonly");if(z&1024)return or(_e,p._0_modifier_must_precede_1_modifier,Re,"async");if(r.parent.kind===268||r.parent.kind===312)return or(_e,p._0_modifier_cannot_appear_on_a_module_or_namespace_element,Re);if(z&64)return _e.kind===123?or(_e,p._0_modifier_cannot_be_used_with_1_modifier,Re,"abstract"):or(_e,p._0_modifier_must_precede_1_modifier,Re,"abstract");if(Iu(r))return or(_e,p.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);z|=WT(_e.kind);break;case 126:if(z&256)return or(_e,p._0_modifier_already_seen,"static");if(z&8)return or(_e,p._0_modifier_must_precede_1_modifier,"static","readonly");if(z&1024)return or(_e,p._0_modifier_must_precede_1_modifier,"static","async");if(z&512)return or(_e,p._0_modifier_must_precede_1_modifier,"static","accessor");if(r.parent.kind===268||r.parent.kind===312)return or(_e,p._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(r.kind===169)return or(_e,p._0_modifier_cannot_appear_on_a_parameter,"static");if(z&64)return or(_e,p._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(z&16)return or(_e,p._0_modifier_must_precede_1_modifier,"static","override");z|=256,m=_e;break;case 129:if(z&512)return or(_e,p._0_modifier_already_seen,"accessor");if(z&8)return or(_e,p._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(z&128)return or(_e,p._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(r.kind!==172)return or(_e,p.accessor_modifier_can_only_appear_on_a_property_declaration);z|=512;break;case 148:if(z&8)return or(_e,p._0_modifier_already_seen,"readonly");if(r.kind!==172&&r.kind!==171&&r.kind!==181&&r.kind!==169)return or(_e,p.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(z&512)return or(_e,p._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");z|=8;break;case 95:if(j.verbatimModuleSyntax&&!(r.flags&33554432)&&r.kind!==265&&r.kind!==264&&r.kind!==267&&r.parent.kind===312&&(R===1||wr(r).impliedNodeFormat===1))return or(_e,p.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(z&32)return or(_e,p._0_modifier_already_seen,"export");if(z&128)return or(_e,p._0_modifier_must_precede_1_modifier,"export","declare");if(z&64)return or(_e,p._0_modifier_must_precede_1_modifier,"export","abstract");if(z&1024)return or(_e,p._0_modifier_must_precede_1_modifier,"export","async");if($n(r.parent))return or(_e,p._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(r.kind===169)return or(_e,p._0_modifier_cannot_appear_on_a_parameter,"export");if(_===4)return or(_e,p._0_modifier_cannot_appear_on_a_using_declaration,"export");if(_===6)return or(_e,p._0_modifier_cannot_appear_on_an_await_using_declaration,"export");z|=32;break;case 90:const st=r.parent.kind===312?r.parent:r.parent.parent;if(st.kind===267&&!su(st))return or(_e,p.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(_===4)return or(_e,p._0_modifier_cannot_appear_on_a_using_declaration,"default");if(_===6)return or(_e,p._0_modifier_cannot_appear_on_an_await_using_declaration,"default");if(z&32){if(Z)return or(L,p.Decorators_are_not_valid_here)}else return or(_e,p._0_modifier_must_precede_1_modifier,"export","default");z|=2048;break;case 138:if(z&128)return or(_e,p._0_modifier_already_seen,"declare");if(z&1024)return or(_e,p._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(z&16)return or(_e,p._0_modifier_cannot_be_used_in_an_ambient_context,"override");if($n(r.parent)&&!xs(r))return or(_e,p._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(r.kind===169)return or(_e,p._0_modifier_cannot_appear_on_a_parameter,"declare");if(_===4)return or(_e,p._0_modifier_cannot_appear_on_a_using_declaration,"declare");if(_===6)return or(_e,p._0_modifier_cannot_appear_on_an_await_using_declaration,"declare");if(r.parent.flags&33554432&&r.parent.kind===268)return or(_e,p.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(Iu(r))return or(_e,p._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(z&512)return or(_e,p._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");z|=128,h=_e;break;case 128:if(z&64)return or(_e,p._0_modifier_already_seen,"abstract");if(r.kind!==263&&r.kind!==185){if(r.kind!==174&&r.kind!==172&&r.kind!==177&&r.kind!==178)return or(_e,p.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(r.parent.kind===263&&Rn(r.parent,64))){const gt=r.kind===172?p.Abstract_properties_can_only_appear_within_an_abstract_class:p.Abstract_methods_can_only_appear_within_an_abstract_class;return or(_e,gt)}if(z&256)return or(_e,p._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(z&2)return or(_e,p._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(z&1024&&x)return or(x,p._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(z&16)return or(_e,p._0_modifier_must_precede_1_modifier,"abstract","override");if(z&512)return or(_e,p._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(Nu(r)&&r.name.kind===81)return or(_e,p._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");z|=64;break;case 134:if(z&1024)return or(_e,p._0_modifier_already_seen,"async");if(z&128||r.parent.flags&33554432)return or(_e,p._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(r.kind===169)return or(_e,p._0_modifier_cannot_appear_on_a_parameter,"async");if(z&64)return or(_e,p._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");z|=1024,x=_e;break;case 103:case 147:{const gt=_e.kind===103?8192:16384,qt=_e.kind===103?"in":"out",$t=Cp(r.parent)&&(D1(r.parent)||wn((a=pC(r.parent))==null?void 0:a.tags,Zb))||r.parent;if(r.kind!==168||$t&&!(Bu($t)||$n($t)||Gp($t)||Zb($t)))return or(_e,p._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,qt);if(z>)return or(_e,p._0_modifier_already_seen,qt);if(gt&8192&&z&16384)return or(_e,p._0_modifier_must_precede_1_modifier,"in","out");z|=gt;break}}}return r.kind===176?z&256?or(m,p._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):z&16?or(N,p._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):z&1024?or(x,p._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!1:(r.kind===272||r.kind===271)&&z&128?or(h,p.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):r.kind===169&&z&31&&Ns(r.name)?or(r,p.A_parameter_property_may_not_be_declared_using_a_binding_pattern):r.kind===169&&z&31&&r.dotDotDotToken?or(r,p.A_parameter_property_cannot_be_declared_using_a_rest_parameter):z&1024?ift(r,x):!1}function eft(r){if(!r.modifiers)return!1;const a=tft(r);return a&&Jl(a,p.Modifiers_cannot_appear_here)}function DK(r,a){const l=wn(r.modifiers,ta);return l&&l.kind!==a?l:void 0}function tft(r){switch(r.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 wn(r.modifiers,ta);default:if(r.parent.kind===268||r.parent.kind===312)return;switch(r.kind){case 262:return DK(r,134);case 263:case 185:return DK(r,128);case 231:case 264:case 265:return wn(r.modifiers,ta);case 243:return r.declarationList.flags&4?DK(r,135):wn(r.modifiers,ta);case 266:return DK(r,87);default:E.assertNever(r)}}}function rft(r){const a=nft(r);return a&&Jl(a,p.Decorators_are_not_valid_here)}function nft(r){return QV(r)?wn(r.modifiers,ql):void 0}function ift(r,a){switch(r.kind){case 174:case 262:case 218:case 219:return!1}return or(a,p._0_modifier_cannot_be_used_here,"async")}function kk(r,a=p.Trailing_comma_not_allowed){return r&&r.hasTrailingComma?cb(r[0],r.end-1,1,a):!1}function a5e(r,a){if(r&&r.length===0){const l=r.pos-1,_=ca(a.text,r.end)+1;return cb(a,l,_-l,p.Type_parameter_list_cannot_be_empty)}return!1}function sft(r){let a=!1;const l=r.length;for(let _=0;_!!a.initializer||Ns(a.name)||dg(a))}function oft(r){if(re>=3){const a=r.body&&Cs(r.body)&&HV(r.body.statements);if(a){const l=aft(r.parameters);if(gr(l)){er(l,m=>{la(Me(m,p.This_parameter_is_not_allowed_with_use_strict_directive),yn(a,p.use_strict_directive_used_here))});const _=l.map((m,h)=>h===0?yn(m,p.Non_simple_parameter_declared_here):yn(m,p.and_here));return la(Me(a,p.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),..._),!0}}}return!1}function wK(r){const a=wr(r);return Ug(r)||a5e(r.typeParameters,a)||sft(r.parameters)||lft(r,a)||fo(r)&&oft(r)}function cft(r){const a=wr(r);return dft(r)||a5e(r.typeParameters,a)}function lft(r,a){if(!po(r))return!1;r.typeParameters&&!(gr(r.typeParameters)>1||r.typeParameters.hasTrailingComma||r.typeParameters[0].constraint)&&a&&Gc(a.fileName,[".mts",".cts"])&&or(r.typeParameters[0],p.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);const{equalsGreaterThanToken:l}=r,_=Ha(a,l.pos).line,m=Ha(a,l.end).line;return _!==m&&or(l,p.Line_terminator_not_permitted_before_arrow)}function uft(r){const a=r.parameters[0];if(r.parameters.length!==1)return or(a?a.name:r,p.An_index_signature_must_have_exactly_one_parameter);if(kk(r.parameters,p.An_index_signature_cannot_have_a_trailing_comma),a.dotDotDotToken)return or(a.dotDotDotToken,p.An_index_signature_cannot_have_a_rest_parameter);if(Y5(a))return or(a.name,p.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(a.questionToken)return or(a.questionToken,p.An_index_signature_parameter_cannot_have_a_question_mark);if(a.initializer)return or(a.name,p.An_index_signature_parameter_cannot_have_an_initializer);if(!a.type)return or(a.name,p.An_index_signature_parameter_must_have_a_type_annotation);const l=ii(a.type);return cd(l,_=>!!(_.flags&8576))||S4(l)?or(a.name,p.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):N_(l,GY)?r.type?!1:or(r,p.An_index_signature_must_have_a_type_annotation):or(a.name,p.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}function _ft(r){return Ug(r)||uft(r)}function fft(r,a){if(a&&a.length===0){const l=wr(r),_=a.pos-1,m=ca(l.text,a.end)+1;return cb(l,_,m-_,p.Type_argument_list_cannot_be_empty)}return!1}function Zj(r,a){return kk(a)||fft(r,a)}function pft(r){return r.questionDotToken||r.flags&64?or(r.template,p.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function o5e(r){const a=r.types;if(kk(a))return!0;if(a&&a.length===0){const l=Ws(r.token);return cb(r,a.pos,0,p._0_list_cannot_be_empty,l)}return ct(a,c5e)}function c5e(r){return s0(r)&&_3(r.expression)&&r.typeArguments?or(r,p.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):Zj(r,r.typeArguments)}function dft(r){let a=!1,l=!1;if(!Ug(r)&&r.heritageClauses)for(const _ of r.heritageClauses){if(_.token===96){if(a)return Jl(_,p.extends_clause_already_seen);if(l)return Jl(_,p.extends_clause_must_precede_implements_clause);if(_.types.length>1)return Jl(_.types[1],p.Classes_can_only_extend_a_single_class);a=!0}else{if(E.assert(_.token===119),l)return Jl(_,p.implements_clause_already_seen);l=!0}o5e(_)}}function mft(r){let a=!1;if(r.heritageClauses)for(const l of r.heritageClauses){if(l.token===96){if(a)return Jl(l,p.extends_clause_already_seen);a=!0}else return E.assert(l.token===119),Jl(l,p.Interface_declaration_cannot_have_implements_clause);o5e(l)}return!1}function AK(r){if(r.kind!==167)return!1;const a=r;return a.expression.kind===226&&a.expression.operatorToken.kind===28?or(a.expression,p.A_comma_expression_is_not_allowed_in_a_computed_property_name):!1}function Zhe(r){if(r.asteriskToken){if(E.assert(r.kind===262||r.kind===218||r.kind===174),r.flags&33554432)return or(r.asteriskToken,p.Generators_are_not_allowed_in_an_ambient_context);if(!r.body)return or(r.asteriskToken,p.An_overload_signature_cannot_be_declared_as_a_generator)}}function Khe(r,a){return!!r&&or(r,a)}function l5e(r,a){return!!r&&or(r,a)}function gft(r,a){const l=new Map;for(const _ of r.properties){if(_.kind===305){if(a){const x=Va(_.expression);if(ju(x)||ua(x))return or(_.expression,p.A_rest_element_cannot_contain_a_binding_pattern)}continue}const m=_.name;if(m.kind===167&&AK(m),_.kind===304&&!a&&_.objectAssignmentInitializer&&or(_.equalsToken,p.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),m.kind===81&&or(m,p.Private_identifiers_are_not_allowed_outside_class_bodies),$p(_)&&_.modifiers)for(const x of _.modifiers)ta(x)&&(x.kind!==134||_.kind!==174)&&or(x,p._0_modifier_cannot_be_used_here,jc(x));else if(Eie(_)&&_.modifiers)for(const x of _.modifiers)ta(x)&&or(x,p._0_modifier_cannot_be_used_here,jc(x));let h;switch(_.kind){case 304:case 303:l5e(_.exclamationToken,p.A_definite_assignment_assertion_is_not_permitted_in_this_context),Khe(_.questionToken,p.An_object_member_cannot_be_declared_optional),m.kind===9&&r0e(m),h=4;break;case 174:h=8;break;case 177:h=1;break;case 178:h=2;break;default:E.assertNever(_,"Unexpected syntax kind:"+_.kind)}if(!a){const x=n0e(m);if(x===void 0)continue;const N=l.get(x);if(!N)l.set(x,h);else if(h&8&&N&8)or(m,p.Duplicate_identifier_0,jc(m));else if(h&4&&N&4)or(m,p.An_object_literal_cannot_have_multiple_properties_with_the_same_name,jc(m));else if(h&3&&N&3)if(N!==3&&h!==N)l.set(x,h|N);else return or(m,p.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);else return or(m,p.An_object_literal_cannot_have_property_and_accessor_with_the_same_name)}}}function hft(r){yft(r.tagName),Zj(r,r.typeArguments);const a=new Map;for(const l of r.attributes.properties){if(l.kind===293)continue;const{name:_,initializer:m}=l,h=t3(_);if(!a.get(h))a.set(h,!0);else return or(_,p.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(m&&m.kind===294&&!m.expression)return or(m,p.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}function yft(r){if(Sn(r)&&yd(r.expression))return or(r.expression,p.JSX_property_access_expressions_cannot_include_JSX_namespace_names);if(yd(r)&&pF(j)&&!vC(r.namespace.escapedText))return or(r,p.React_components_cannot_include_JSX_namespace_names)}function vft(r){if(r.expression&&S3(r.expression))return or(r.expression,p.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function u5e(r){if(Rh(r))return!0;if(r.kind===250&&r.awaitModifier&&!(r.flags&65536)){const a=wr(r);if(k5(r)){if(!ob(a))switch(FT(a,j)||wa.add(yn(r.awaitModifier,p.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)),R){case 100:case 199:if(a.impliedNodeFormat===1){wa.add(yn(r.awaitModifier,p.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 4:if(re>=4)break;default:wa.add(yn(r.awaitModifier,p.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(!ob(a)){const l=yn(r.awaitModifier,p.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),_=cf(r);if(_&&_.kind!==176){E.assert((fl(_)&2)===0,"Enclosing function should never be an async function.");const m=yn(_,p.Did_you_mean_to_mark_this_function_as_async);la(l,m)}return wa.add(l),!0}return!1}if(Fw(r)&&!(r.flags&65536)&&Ie(r.initializer)&&r.initializer.escapedText==="async")return or(r.initializer,p.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(r.initializer.kind===261){const a=r.initializer;if(!t0e(a)){const l=a.declarations;if(!l.length)return!1;if(l.length>1){const m=r.kind===249?p.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:p.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return Jl(a.declarations[1],m)}const _=l[0];if(_.initializer){const m=r.kind===249?p.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:p.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return or(_.name,m)}if(_.type){const m=r.kind===249?p.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:p.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation;return or(_,m)}}}return!1}function bft(r){if(!(r.flags&33554432)&&r.parent.kind!==187&&r.parent.kind!==264){if(re<1)return or(r.name,p.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(re<2&&Pi(r.name))return or(r.name,p.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(r.body===void 0&&!Rn(r,64))return cb(r,r.end-1,1,p._0_expected,"{")}if(r.body){if(Rn(r,64))return or(r,p.An_abstract_accessor_cannot_have_an_implementation);if(r.parent.kind===187||r.parent.kind===264)return or(r.body,p.An_implementation_cannot_be_declared_in_ambient_contexts)}if(r.typeParameters)return or(r.name,p.An_accessor_cannot_have_type_parameters);if(!Sft(r))return or(r.name,r.kind===177?p.A_get_accessor_cannot_have_parameters:p.A_set_accessor_must_have_exactly_one_parameter);if(r.kind===178){if(r.type)return or(r.name,p.A_set_accessor_cannot_have_a_return_type_annotation);const a=E.checkDefined(IE(r),"Return value does not match parameter count assertion.");if(a.dotDotDotToken)return or(a.dotDotDotToken,p.A_set_accessor_cannot_have_rest_parameter);if(a.questionToken)return or(a.questionToken,p.A_set_accessor_cannot_have_an_optional_parameter);if(a.initializer)return or(r.name,p.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function Sft(r){return e0e(r)||r.parameters.length===(r.kind===177?0:1)}function e0e(r){if(r.parameters.length===(r.kind===177?1:2))return Xv(r)}function Tft(r){if(r.operator===158){if(r.type.kind!==155)return or(r.type,p._0_expected,Ws(155));let a=R8(r.parent);if(Hr(a)&&d2(a)){const l=Ib(a);l&&(a=RT(l)||l)}switch(a.kind){case 260:const l=a;if(l.name.kind!==80)return or(r,p.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!hE(l))return or(r,p.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(l.parent.flags&2))return or(a.name,p.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 172:if(!Ms(a)||!FE(a))return or(a.name,p.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 171:if(!Rn(a,8))return or(a.name,p.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return or(r,p.unique_symbol_types_are_not_allowed_here)}}else if(r.operator===148&&r.type.kind!==188&&r.type.kind!==189)return Jl(r,p.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,Ws(155))}function lD(r,a){if(Jet(r))return or(r,a)}function _5e(r){if(wK(r))return!0;if(r.kind===174){if(r.parent.kind===210){if(r.modifiers&&!(r.modifiers.length===1&&va(r.modifiers).kind===134))return Jl(r,p.Modifiers_cannot_appear_here);if(Khe(r.questionToken,p.An_object_member_cannot_be_declared_optional))return!0;if(l5e(r.exclamationToken,p.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(r.body===void 0)return cb(r,r.end-1,1,p._0_expected,"{")}if(Zhe(r))return!0}if($n(r.parent)){if(re<2&&Pi(r.name))return or(r.name,p.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(r.flags&33554432)return lD(r.name,p.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(r.kind===174&&!r.body)return lD(r.name,p.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(r.parent.kind===264)return lD(r.name,p.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(r.parent.kind===187)return lD(r.name,p.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 xft(r){let a=r;for(;a;){if(Hk(a))return or(r,p.Jump_target_cannot_cross_function_boundary);switch(a.kind){case 256:if(r.label&&a.label.escapedText===r.label.escapedText)return r.kind===251&&!Q0(a.statement,!0)?or(r,p.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):!1;break;case 255:if(r.kind===252&&!r.label)return!1;break;default:if(Q0(a,!1)&&!r.label)return!1;break}a=a.parent}if(r.label){const l=r.kind===252?p.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:p.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return or(r,l)}else{const l=r.kind===252?p.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:p.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return or(r,l)}}function kft(r){if(r.dotDotDotToken){const a=r.parent.elements;if(r!==ka(a))return or(r,p.A_rest_element_must_be_last_in_a_destructuring_pattern);if(kk(a,p.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),r.propertyName)return or(r.name,p.A_rest_element_cannot_have_a_property_name)}if(r.dotDotDotToken&&r.initializer)return cb(r,r.initializer.pos-1,1,p.A_rest_element_cannot_have_an_initializer)}function f5e(r){return Tf(r)||r.kind===224&&r.operator===41&&r.operand.kind===9}function Cft(r){return r.kind===10||r.kind===224&&r.operator===41&&r.operand.kind===10}function Eft(r){if((Sn(r)||ko(r)&&f5e(r.argumentExpression))&&pc(r.expression))return!!(Dc(r).flags&1056)}function p5e(r){const a=r.initializer;if(a){const l=!(f5e(a)||Eft(a)||a.kind===112||a.kind===97||Cft(a));if((m5(r)||hi(r)&&Kj(r))&&!r.type){if(l)return or(a,p.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}else return or(a,p.Initializers_are_not_allowed_in_ambient_contexts)}}function Pft(r){const a=lb(r),l=a&7;if(Ns(r.name))switch(l){case 6:return or(r,p._0_declarations_may_not_have_binding_patterns,"await using");case 4:return or(r,p._0_declarations_may_not_have_binding_patterns,"using")}if(r.parent.parent.kind!==249&&r.parent.parent.kind!==250){if(a&33554432)p5e(r);else if(!r.initializer){if(Ns(r.name)&&!Ns(r.parent))return or(r,p.A_destructuring_declaration_must_have_an_initializer);switch(l){case 6:return or(r,p._0_declarations_must_be_initialized,"await using");case 4:return or(r,p._0_declarations_must_be_initialized,"using");case 2:return or(r,p._0_declarations_must_be_initialized,"const")}}}if(r.exclamationToken&&(r.parent.parent.kind!==243||!r.type||r.initializer||a&33554432)){const _=r.initializer?p.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:r.type?p.A_definite_assignment_assertion_is_not_permitted_in_this_context:p.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return or(r.exclamationToken,_)}return(R<5||wr(r).impliedNodeFormat===1)&&R!==4&&!(r.parent.parent.flags&33554432)&&Rn(r.parent.parent,32)&&d5e(r.name),!!l&&m5e(r.name)}function d5e(r){if(r.kind===80){if(on(r)==="__esModule")return Aft("noEmit",r,p.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else{const a=r.elements;for(const l of a)if(!pl(l))return d5e(l.name)}return!1}function m5e(r){if(r.kind===80){if(r.escapedText==="let")return or(r,p.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else{const a=r.elements;for(const l of a)pl(l)||m5e(l.name)}return!1}function t0e(r){const a=r.declarations;if(kk(r.declarations))return!0;if(!r.declarations.length)return cb(r,a.pos,a.end-a.pos,p.Variable_declaration_list_cannot_be_empty);const l=r.flags&7;return(l===4||l===6)&&PO(r.parent)?or(r,l===4?p.The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:p.The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration):l===6?IIe(r):!1}function g5e(r){switch(r.kind){case 245:case 246:case 247:case 254:case 248:case 249:case 250:return!1;case 256:return g5e(r.parent)}return!0}function Dft(r){if(!g5e(r.parent)){const a=lb(r.declarationList)&7;if(a){const l=a===1?"let":a===2?"const":a===4?"using":a===6?"await using":E.fail("Unknown BlockScope flag");return or(r,p._0_declarations_can_only_be_declared_inside_a_block,l)}}}function wft(r){const a=r.name.escapedText;switch(r.keywordToken){case 105:if(a!=="target")return or(r.name,p._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,xi(r.name.escapedText),Ws(r.keywordToken),"target");break;case 102:if(a!=="meta")return or(r.name,p._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,xi(r.name.escapedText),Ws(r.keywordToken),"meta");break}}function ob(r){return r.parseDiagnostics.length>0}function Jl(r,a,...l){const _=wr(r);if(!ob(_)){const m=Im(_,r.pos);return wa.add(xl(_,m.start,m.length,a,...l)),!0}return!1}function cb(r,a,l,_,...m){const h=wr(r);return ob(h)?!1:(wa.add(xl(h,a,l,_,...m)),!0)}function Aft(r,a,l,..._){const m=wr(a);return ob(m)?!1:(xd(r,a,l,..._),!0)}function or(r,a,...l){const _=wr(r);return ob(_)?!1:(wa.add(yn(r,a,...l)),!0)}function Nft(r){const a=Hr(r)?Q5(r):void 0,l=r.typeParameters||a&&bl(a);if(l){const _=l.pos===l.end?l.pos:ca(wr(r).text,l.pos);return cb(r,_,l.end-_,p.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function Ift(r){const a=r.type||bp(r);if(a)return or(a,p.Type_annotation_cannot_appear_on_a_constructor_declaration)}function Fft(r){if(Pa(r.name)&&Zr(r.name.expression)&&r.name.expression.operatorToken.kind===103)return or(r.parent.members[0],p.A_mapped_type_may_not_declare_properties_or_methods);if($n(r.parent)){if(aa(r.name)&&r.name.text==="constructor")return or(r.name,p.Classes_may_not_have_a_field_named_constructor);if(lD(r.name,p.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(re<2&&Pi(r.name))return or(r.name,p.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(re<2&&s_(r))return or(r.name,p.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(s_(r)&&Khe(r.questionToken,p.An_accessor_property_cannot_be_declared_optional))return!0}else if(r.parent.kind===264){if(lD(r.name,p.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(E.assertNode(r,B_),r.initializer)return or(r.initializer,p.An_interface_property_cannot_have_an_initializer)}else if(z_(r.parent)){if(lD(r.name,p.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(E.assertNode(r,B_),r.initializer)return or(r.initializer,p.A_type_literal_property_cannot_have_an_initializer)}if(r.flags&33554432&&p5e(r),xs(r)&&r.exclamationToken&&(!$n(r.parent)||!r.type||r.initializer||r.flags&33554432||Ms(r)||Zv(r))){const a=r.initializer?p.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:r.type?p.A_definite_assignment_assertion_is_not_permitted_in_this_context:p.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return or(r.exclamationToken,a)}}function Oft(r){return r.kind===264||r.kind===265||r.kind===272||r.kind===271||r.kind===278||r.kind===277||r.kind===270||Rn(r,2208)?!1:Jl(r,p.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function Lft(r){for(const a of r.statements)if((yu(a)||a.kind===243)&&Oft(a))return!0;return!1}function Mft(r){return!!(r.flags&33554432)&&Lft(r)}function Rh(r){if(r.flags&33554432){if(!jn(r).hasReportedStatementInAmbientContext&&(As(r.parent)||X0(r.parent)))return jn(r).hasReportedStatementInAmbientContext=Jl(r,p.An_implementation_cannot_be_declared_in_ambient_contexts);if(r.parent.kind===241||r.parent.kind===268||r.parent.kind===312){const l=jn(r.parent);if(!l.hasReportedStatementInAmbientContext)return l.hasReportedStatementInAmbientContext=Jl(r,p.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function r0e(r){const a=jc(r).includes("."),l=r.numericLiteralFlags&16;a||l||+r.text<=9007199254740991||kd(!1,yn(r,p.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function Rft(r){return!!(!(fy(r.parent)||dy(r.parent)&&fy(r.parent.parent))&&re<7&&or(r,p.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function jft(r,a,...l){const _=wr(r);if(!ob(_)){const m=Im(_,r.pos);return wa.add(xl(_,bc(m),0,a,...l)),!0}return!1}function Bft(){return ol||(ol=[],ge.forEach((r,a)=>{GU.test(a)&&ol.push(r)})),ol}function Jft(r){var a;return r.isTypeOnly&&r.name&&r.namedBindings?or(r,p.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both):r.isTypeOnly&&((a=r.namedBindings)==null?void 0:a.kind)===275?h5e(r.namedBindings):!1}function h5e(r){return!!er(r.elements,a=>{if(a.isTypeOnly)return Jl(a,a.kind===276?p.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:p.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)})}function zft(r){if(j.verbatimModuleSyntax&&R===1)return or(r,p.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(R===5)return or(r,p.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext);if(r.typeArguments)return or(r,p.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);const a=r.arguments;if(R!==99&&R!==199&&R!==100&&(kk(a),a.length>1)){const _=a[1];return or(_,p.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 or(r,p.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments);const l=wn(a,hd);return l?or(l,p.Argument_of_dynamic_import_cannot_be_spread_element):!1}function Wft(r,a){const l=bn(r);if(l&20&&a.flags&1048576)return wn(a.types,_=>{if(_.flags&524288){const m=l&bn(_);if(m&4)return r.target===_.target;if(m&16)return!!r.aliasSymbol&&r.aliasSymbol===_.aliasSymbol}return!1})}function Vft(r,a){if(bn(r)&128&&cd(a,N0))return wn(a.types,l=>!N0(l))}function Uft(r,a){let l=0;if(Es(r,l).length>0||(l=1,Es(r,l).length>0))return wn(a.types,m=>Es(m,l).length>0)}function qft(r,a){let l;if(!(r.flags&406978556)){let _=0;for(const m of a.types)if(!(m.flags&406978556)){const h=Xs([dm(r),dm(m)]);if(h.flags&4194304)return m;if(Ld(h)||h.flags&1048576){const x=h.flags&1048576?j0(h.types,Ld):1;x>=_&&(l=m,_=x)}}}return l}function Hft(r){if(nc(r,67108864)){const a=Mc(r,l=>!(l.flags&402784252));if(!(a.flags&131072))return a}return r}function y5e(r,a,l){if(a.flags&1048576&&r.flags&2621440){const _=AAe(a,r);if(_)return _;const m=Ua(r);if(m){const h=wAe(m,a);if(h){const x=Ume(a,nr(h,N=>[()=>Xr(N),N.escapedName]),l);if(x!==a)return x}}}}function n0e(r){const a=Fb(r);return a||(Pa(r)?mge(Yl(r.expression)):void 0)}function NK(r){return Lr===r||(Lr=r,tr=y1(r)),tr}function lb(r){return Vt===r||(Vt=r,hr=Gh(r)),hr}function Kj(r){const a=lb(r)&7;return a===2||a===4||a===6}}function JLe(e){return!X0(e)}function kbe(e){return e.kind!==262&&e.kind!==174||!!e.body}function Cbe(e){switch(e.parent.kind){case 276:case 281:return Ie(e);default:return eh(e)}}function Ebe(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function Su(e){return!!(e.flags&1)}function HU(e){return!!(e.flags&2)}function zLe(e){return{getCommonSourceDirectory:e.getCommonSourceDirectory?()=>e.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>e.getCurrentDirectory(),getSymlinkCache:Os(e,e.getSymlinkCache),getPackageJsonInfoCache:()=>{var t;return(t=e.getPackageJsonInfoCache)==null?void 0:t.call(e)},useCaseSensitiveFileNames:Os(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 GU,m9,Ise,Fse,Ose,Lse,g9,$U,h9,y9,Pbe,v9,Mse,Ef,XU,WLe=wt({"src/compiler/checker.ts"(){Fs(),Ase(),mb(),GU=/^".+"$/,m9="(anonymous)",Ise=1,Fse=1,Ose=1,Lse=1,g9=(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))(g9||{}),$U=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),h9=(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))(h9||{}),y9=(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))(y9||{}),Pbe=o7(kbe,JLe),v9=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3,NoInfer:4})),Mse=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"})(Ef||(Ef={})),XU=class k5e{constructor(t,n,i){this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;for(var s;n instanceof k5e;)n=n.inner;this.inner=n,this.moduleResolverHost=i,this.context=t,this.canTrackSymbol=!!((s=this.inner)!=null&&s.trackSymbol)}trackSymbol(t,n,i){var s,o;if((s=this.inner)!=null&&s.trackSymbol&&!this.disableTrackSymbol){if(this.inner.trackSymbol(t,n,i))return this.onDiagnosticReported(),!0;t.flags&262144||((o=this.context).trackedSymbols??(o.trackedSymbols=[])).push([t,n,i])}return!1}reportInaccessibleThisError(){var t;(t=this.inner)!=null&&t.reportInaccessibleThisError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleThisError())}reportPrivateInBaseOfClassExpression(t){var n;(n=this.inner)!=null&&n.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 n;(n=this.inner)!=null&&n.reportLikelyUnsafeImportRequiredError&&(this.onDiagnosticReported(),this.inner.reportLikelyUnsafeImportRequiredError(t))}reportTruncationError(){var t;(t=this.inner)!=null&&t.reportTruncationError&&(this.onDiagnosticReported(),this.inner.reportTruncationError())}trackReferencedAmbientModule(t,n){var i;(i=this.inner)!=null&&i.trackReferencedAmbientModule&&(this.onDiagnosticReported(),this.inner.trackReferencedAmbientModule(t,n))}trackExternalModuleSymbolOfImportTypeNode(t){var n;(n=this.inner)!=null&&n.trackExternalModuleSymbolOfImportTypeNode&&(this.onDiagnosticReported(),this.inner.trackExternalModuleSymbolOfImportTypeNode(t))}reportNonlocalAugmentation(t,n,i){var s;(s=this.inner)!=null&&s.reportNonlocalAugmentation&&(this.onDiagnosticReported(),this.inner.reportNonlocalAugmentation(t,n,i))}reportNonSerializableProperty(t){var n;(n=this.inner)!=null&&n.reportNonSerializableProperty&&(this.onDiagnosticReported(),this.inner.reportNonSerializableProperty(t))}onDiagnosticReported(){this.context.reportedDiagnostic=!0}}}});function qe(e,t,n,i){if(e===void 0)return e;const s=t(e);let o;if(s!==void 0)return ts(s)?o=(i||GLe)(s):o=s,E.assertNode(o,n),o}function Dr(e,t,n,i,s){if(e===void 0)return e;const o=e.length;(i===void 0||i<0)&&(i=0),(s===void 0||s>o-i)&&(s=o-i);let c,u=-1,f=-1;i>0||so-i)&&(s=o-i),Dbe(e,t,n,i,s)}function Dbe(e,t,n,i,s){let o;const c=e.length;(i>0||s=2&&(s=VLe(s,n)),n.setLexicalEnvironmentFlags(1,!1)),n.suspendLexicalEnvironment(),s}function VLe(e,t){let n;for(let i=0;i{const c=iu,addSource:Se,setSourceContent:ae,addName:K,addMapping:Oe,appendSourceMap:me,toJSON:ge,toString:()=>JSON.stringify(ge())};function Se($e){o();const Pt=CT(i,$e,e.getCurrentDirectory(),e.getCanonicalFileName,!0);let at=g.get(Pt);return at===void 0&&(at=f.length,f.push(Pt),u.push($e),g.set(Pt,at)),c(),at}function ae($e,Pt){if(o(),Pt!==null){for(d||(d=[]);d.length<$e;)d.push(null);d[$e]=Pt}c()}function K($e){o(),S||(S=new Map);let Pt=S.get($e);return Pt===void 0&&(Pt=y.length,y.push($e),S.set($e,Pt)),c(),Pt}function fe($e,Pt){return!q||re!==$e||R!==Pt}function ke($e,Pt,at){return $e!==void 0&&Pt!==void 0&&at!==void 0&&Y===$e&&(ue>Pt||ue===Pt&&pe>at)}function Oe($e,Pt,at,Je,pt,zt){E.assert($e>=re,"generatedLine cannot backtrack"),E.assert(Pt>=0,"generatedCharacter cannot be negative"),E.assert(at===void 0||at>=0,"sourceIndex cannot be negative"),E.assert(Je===void 0||Je>=0,"sourceLine cannot be negative"),E.assert(pt===void 0||pt>=0,"sourceCharacter cannot be negative"),o(),(fe($e,Pt)||ke(at,Je,pt))&&(De(),re=$e,R=Pt,ee=!1,oe=!1,q=!0),at!==void 0&&Je!==void 0&&pt!==void 0&&(Y=at,ue=Je,pe=pt,ee=!0,zt!==void 0&&(H=zt,oe=!0)),c()}function me($e,Pt,at,Je,pt,zt){E.assert($e>=re,"generatedLine cannot backtrack"),E.assert(Pt>=0,"generatedCharacter cannot be negative"),o();const Vt=[];let hr;const Lr=KU(at.mappings);for(const tr of Lr){if(zt&&(tr.generatedLine>zt.line||tr.generatedLine===zt.line&&tr.generatedCharacter>zt.character))break;if(pt&&(tr.generatedLine=1024&&ft()}function De(){if(!(!q||!be())){if(o(),w0&&(k+=String.fromCharCode.apply(void 0,T),T.length=0)}function ge(){return De(),ft(),{version:3,file:t,sourceRoot:n,sources:f,names:y,mappings:k,sourcesContent:d}}function Fe($e){$e<0?$e=(-$e<<1)+1:$e=$e<<1;do{let Pt=$e&31;$e=$e>>5,$e>0&&(Pt=Pt|32),xe(QLe(Pt))}while($e>0)}}function YU(e,t){return{getLineCount:()=>t.length,getLineText:n=>e.substring(t[n],t[n+1])}}function jse(e){for(let t=e.getLineCount()-1;t>=0;t--){const n=e.getLineText(t),i=S9.exec(n);if(i)return i[1].trimEnd();if(!n.match(T9))break}}function XLe(e){return typeof e=="string"||e===null}function Bse(e){return e!==null&&typeof e=="object"&&e.version===3&&typeof e.file=="string"&&typeof e.mappings=="string"&&ts(e.sources)&&Wi(e.sources,ls)&&(e.sourceRoot===void 0||e.sourceRoot===null||typeof e.sourceRoot=="string")&&(e.sourcesContent===void 0||e.sourcesContent===null||ts(e.sourcesContent)&&Wi(e.sourcesContent,XLe))&&(e.names===void 0||e.names===null||ts(e.names)&&Wi(e.names,ls))}function ZU(e){try{const t=JSON.parse(e);if(Bse(t))return t}catch{}}function KU(e){let t=!1,n=0,i=0,s=0,o=0,c=0,u=0,f=0,g;return{get pos(){return n},get error(){return g},get state(){return d(!0,!0)},next(){for(;!t&&n=e.length)return S("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;const $=YLe(e.charCodeAt(n));if($===-1)return S("Invalid character in VLQ"),-1;F=($&32)!==0,U=U|($&31)<>1,U=-U):U=U>>1,U}}function Abe(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 Jse(e){return e.sourceIndex!==void 0&&e.sourceLine!==void 0&&e.sourceCharacter!==void 0}function QLe(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:E.fail(`${e}: not a base64 value`)}function YLe(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 Nbe(e){return e.sourceIndex!==void 0&&e.sourcePosition!==void 0}function Ibe(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function ZLe(e,t){return E.assert(e.sourceIndex===t.sourceIndex),wo(e.sourcePosition,t.sourcePosition)}function KLe(e,t){return wo(e.generatedPosition,t.generatedPosition)}function eMe(e){return e.sourcePosition}function tMe(e){return e.generatedPosition}function zse(e,t,n){const i=Un(n),s=t.sourceRoot?Xi(t.sourceRoot,i):i,o=Xi(t.file,i),c=e.getSourceFileLike(o),u=t.sources.map(J=>Xi(J,s)),f=new Map(u.map((J,U)=>[e.getCanonicalFileName(J),U]));let g,d,y;return{getSourcePosition:F,getGeneratedPosition:P};function S(J){const U=c!==void 0?MD(c,J.generatedLine,J.generatedCharacter,!0):-1;let $,j;if(Jse(J)){const re=e.getSourceFileLike(u[J.sourceIndex]);$=t.sources[J.sourceIndex],j=re!==void 0?MD(re,J.sourceLine,J.sourceCharacter,!0):-1}return{generatedPosition:U,source:$,sourceIndex:J.sourceIndex,sourcePosition:j,nameIndex:J.nameIndex}}function T(){if(g===void 0){const J=KU(t.mappings),U=gs(J,S);J.error!==void 0?(e.log&&e.log(`Encountered error while decoding sourcemap: ${J.error}`),g=Ve):g=U}return g}function k(J){if(y===void 0){const U=[];for(const $ of T()){if(!Nbe($))continue;let j=U[$.sourceIndex];j||(U[$.sourceIndex]=j=[]),j.push($)}y=U.map($=>W4($,ZLe,Ibe))}return y[J]}function w(){if(d===void 0){const J=[];for(const U of T())J.push(U);d=W4(J,KLe,Ibe)}return d}function P(J){const U=f.get(e.getCanonicalFileName(J.fileName));if(U===void 0)return J;const $=k(U);if(!ct($))return J;let j=yT($,J.pos,eMe,wo);j<0&&(j=~j);const re=$[j];return re===void 0||re.sourceIndex!==U?J:{fileName:o,pos:re.generatedPosition}}function F(J){const U=w();if(!ct(U))return J;let $=yT(U,J.pos,tMe,wo);$<0&&($=~$);const j=U[$];return j===void 0||!Nbe(j)?J:{fileName:u[j.sourceIndex],pos:j.sourcePosition}}}var eq,S9,T9,x9,rMe=wt({"src/compiler/sourcemap.ts"(){Fs(),mb(),eq=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,S9=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,T9=/^\s*(\/\/[@#] .*)?$/,x9={getSourcePosition:Do,getGeneratedPosition:Do}}});function cu(e){return e=ic(e),e?Oa(e):0}function nMe(e){return!e||!sh(e)?!1:ct(e.elements,Fbe)}function Fbe(e){return e.propertyName!==void 0&&e.propertyName.escapedText==="default"}function Xp(e,t){return n;function n(s){return s.kind===312?t(s):i(s)}function i(s){return e.factory.createBundle(nr(s.sourceFiles,t),s.prepends)}}function Wse(e){return!!_C(e)}function k9(e){if(_C(e))return!0;const t=e.importClause&&e.importClause.namedBindings;if(!t||!sh(t))return!1;let n=0;for(const i of t.elements)Fbe(i)&&n++;return n>0&&n!==t.elements.length||!!(t.elements.length-n)&<(e)}function tq(e){return!k9(e)&&(LT(e)||!!e.importClause&&sh(e.importClause.namedBindings)&&nMe(e.importClause.namedBindings))}function rq(e,t){const n=e.getEmitResolver(),i=e.getCompilerOptions(),s=[],o=new aq,c=[],u=new Map;let f,g=!1,d,y=!1,S=!1,T=!1;for(const P of t.statements)switch(P.kind){case 272:s.push(P),!S&&k9(P)&&(S=!0),!T&&tq(P)&&(T=!0);break;case 271:P.moduleReference.kind===283&&s.push(P);break;case 278:if(P.moduleSpecifier)if(!P.exportClause)s.push(P),y=!0;else if(s.push(P),Xf(P.exportClause))w(P);else{const F=P.exportClause.name;u.get(on(F))||(F3(c,cu(P),F),u.set(on(F),!0),f=_r(f,F)),S=!0}else w(P);break;case 277:P.isExportEquals&&!d&&(d=P);break;case 243:if(Rn(P,32))for(const F of P.declarationList.declarations)f=Obe(F,u,f,c);break;case 262:if(Rn(P,32))if(Rn(P,2048))g||(F3(c,cu(P),e.factory.getDeclarationName(P)),g=!0);else{const F=P.name;u.get(on(F))||(F3(c,cu(P),F),u.set(on(F),!0),f=_r(f,F))}break;case 263:if(Rn(P,32))if(Rn(P,2048))g||(F3(c,cu(P),e.factory.getDeclarationName(P)),g=!0);else{const F=P.name;F&&!u.get(on(F))&&(F3(c,cu(P),F),u.set(on(F),!0),f=_r(f,F))}break}const k=GV(e.factory,e.getEmitHelperFactory(),t,i,y,S,T);return k&&s.unshift(k),{externalImports:s,exportSpecifiers:o,exportEquals:d,hasExportStarsToExportValues:y,exportedBindings:c,exportedNames:f,externalHelpersImportDeclaration:k};function w(P){for(const F of Ls(P.exportClause,Xf).elements)if(!u.get(on(F.name))){const J=F.propertyName||F.name;P.moduleSpecifier||o.add(J,F);const U=n.getReferencedImportDeclaration(J)||n.getReferencedValueDeclaration(J);U&&F3(c,cu(U),F.name),u.set(on(F.name),!0),f=_r(f,F.name)}}}function Obe(e,t,n,i){if(Ns(e.name))for(const s of e.name.elements)pl(s)||(n=Obe(s,t,n,i));else if(!Fo(e.name)){const s=on(e.name);t.get(s)||(t.set(s,!0),n=_r(n,e.name),ah(e.name)&&F3(i,cu(e),e.name))}return n}function F3(e,t,n){let i=e[t];return i?i.push(n):e[t]=i=[n],i}function y2(e){return Ma(e)||e.kind===9||c_(e.kind)||Ie(e)}function Wm(e){return!Ie(e)&&y2(e)}function O3(e){return e>=65&&e<=79}function L3(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 C9(e){if(!Cl(e))return;const t=Va(e.expression);return Pb(t)?t:void 0}function Lbe(e,t,n){for(let i=t;isMe(i,t,n))}function iMe(e){return aMe(e)||ec(e)}function P9(e){return An(e.members,iMe)}function sMe(e,t,n){return xs(e)&&(!!e.initializer||!t)&&Bc(e)===n}function aMe(e){return xs(e)&&Bc(e)}function gA(e){return e.kind===172&&e.initializer!==void 0}function Vse(e){return!Ms(e)&&(AT(e)||s_(e))&&Pi(e.name)}function Use(e){let t;if(e){const n=e.parameters,i=n.length>0&&Qv(n[0]),s=i?1:0,o=i?n.length-1:n.length;for(let c=0;csq(n.privateEnv,t))}function $se(e){return!e.initializer&&Ie(e.name)}function hA(e){return Wi(e,$se)}var xx,aq,lMe=wt({"src/compiler/transformers/utilities.ts"(){Fs(),xx=class L4{constructor(){this._map=new Map}get size(){return this._map.size}has(t){return this._map.has(L4.toKey(t))}get(t){return this._map.get(L4.toKey(t))}set(t,n){return this._map.set(L4.toKey(t),n),this}delete(t){var n;return((n=this._map)==null?void 0:n.delete(L4.toKey(t)))??!1}clear(){this._map.clear()}values(){return this._map.values()}static toKey(t){if(vb(t)||Fo(t)){const n=t.emitNode.autoGenerate;if((n.flags&7)===4){const i=Vw(t),s=pg(i)&&i!==t?L4.toKey(i):`(generated@${Oa(i)})`;return j1(!1,n.prefix,s,n.suffix,L4.toKey)}else{const i=`(auto@${n.id})`;return j1(!1,n.prefix,i,n.suffix,L4.toKey)}}return Pi(t)?on(t).slice(1):on(t)}},aq=class extends xx{add(e,t){let n=this.get(e);return n?n.push(t):this.set(e,n=[t]),n}remove(e,t){const n=this.get(e);n&&(ST(n,t),n.length||this.delete(e))}}}});function nS(e,t,n,i,s,o){let c=e,u;if(e0(e))for(u=e.right;Lre(e.left)||bW(e.left);)if(e0(u))c=e=u,u=e.right;else return E.checkDefined(qe(u,t,ot));let f;const g={context:n,level:i,downlevelIteration:!!n.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:d,emitBindingOrAssignment:y,createArrayBindingOrAssignmentPattern:S=>hMe(n.factory,S),createObjectBindingOrAssignmentPattern:S=>vMe(n.factory,S),createArrayBindingOrAssignmentElement:SMe,visitor:t};if(u&&(u=qe(u,t,ot),E.assert(u),Ie(u)&&Xse(e,u.escapedText)||Qse(e)?u=kx(g,u,!1,c):s?u=kx(g,u,!0,c):xo(e)&&(c=u)),M3(g,e,u,c,e0(e)),u&&s){if(!ct(f))return u;f.push(u)}return n.factory.inlineExpressions(f)||n.factory.createOmittedExpression();function d(S){f=_r(f,S)}function y(S,T,k,w){E.assertNode(S,o?Ie:ot);const P=o?o(S,T,k):Ke(n.factory.createAssignment(E.checkDefined(qe(S,t,ot)),T),k);P.original=w,d(P)}}function Xse(e,t){const n=gy(e);return KD(n)?uMe(n,t):Ie(n)?n.escapedText===t:!1}function uMe(e,t){const n=$C(e);for(const i of n)if(Xse(i,t))return!0;return!1}function Qse(e){const t=BO(e);if(t&&Pa(t)&&!Rv(t.expression))return!0;const n=gy(e);return!!n&&KD(n)&&_Me(n)}function _Me(e){return!!er($C(e),Qse)}function v2(e,t,n,i,s,o=!1,c){let u;const f=[],g=[],d={context:n,level:i,downlevelIteration:!!n.getCompilerOptions().downlevelIteration,hoistTempVariables:o,emitExpression:y,emitBindingOrAssignment:S,createArrayBindingOrAssignmentPattern:T=>gMe(n.factory,T),createObjectBindingOrAssignmentPattern:T=>yMe(n.factory,T),createArrayBindingOrAssignmentElement:T=>bMe(n.factory,T),visitor:t};if(hi(e)){let T=zw(e);T&&(Ie(T)&&Xse(e,T.escapedText)||Qse(e))&&(T=kx(d,E.checkDefined(qe(T,d.visitor,ot)),!1,T),e=n.factory.updateVariableDeclaration(e,e.name,void 0,void 0,T))}if(M3(d,e,s,e,c),u){const T=n.factory.createTempVariable(void 0);if(o){const k=n.factory.inlineExpressions(u);u=void 0,S(T,k,void 0,void 0)}else{n.hoistVariableDeclaration(T);const k=ka(f);k.pendingExpressions=_r(k.pendingExpressions,n.factory.createAssignment(T,k.value)),Nn(k.pendingExpressions,u),k.value=T}}for(const{pendingExpressions:T,name:k,value:w,location:P,original:F}of f){const J=n.factory.createVariableDeclaration(k,void 0,void 0,T?n.factory.inlineExpressions(_r(T,w)):w);J.original=F,Ke(J,P),g.push(J)}return g;function y(T){u=_r(u,T)}function S(T,k,w,P){E.assertNode(T,bb),u&&(k=n.factory.inlineExpressions(_r(u,k)),u=void 0),f.push({pendingExpressions:u,name:T,value:k,location:w,original:P})}}function M3(e,t,n,i,s){const o=gy(t);if(!s){const c=qe(zw(t),e.visitor,ot);c?n?(n=dMe(e,n,c,i),!Wm(c)&&KD(o)&&(n=kx(e,n,!0,i))):n=c:n||(n=e.context.factory.createVoidZero())}iz(o)?fMe(e,t,o,n,i):sz(o)?pMe(e,t,o,n,i):e.emitBindingOrAssignment(o,n,i,t)}function fMe(e,t,n,i,s){const o=$C(n),c=o.length;if(c!==1){const g=!ZD(t)||c!==0;i=kx(e,i,g,s)}let u,f;for(let g=0;g=1&&!(d.transformFlags&98304)&&!(gy(d).transformFlags&98304)&&!Pa(y))u=_r(u,qe(d,e.visitor,nte));else{u&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(u),i,s,n),u=void 0);const S=mMe(e,i,y);Pa(y)&&(f=_r(f,S.argumentExpression)),M3(e,d,S,d)}}}u&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(u),i,s,n)}function pMe(e,t,n,i,s){const o=$C(n),c=o.length;if(e.level<1&&e.downlevelIteration)i=kx(e,Ke(e.context.getEmitHelperFactory().createReadHelper(i,c>0&&jO(o[c-1])?void 0:c),s),!1,s);else if(c!==1&&(e.level<1||c===0)||Wi(o,pl)){const g=!ZD(t)||c!==0;i=kx(e,i,g,s)}let u,f;for(let g=0;g=1)if(d.transformFlags&65536||e.hasTransformedPriorElement&&!Rbe(d)){e.hasTransformedPriorElement=!0;const y=e.context.factory.createTempVariable(void 0);e.hoistTempVariables&&e.context.hoistVariableDeclaration(y),f=_r(f,[y,d]),u=_r(u,e.createArrayBindingOrAssignmentElement(y))}else u=_r(u,d);else{if(pl(d))continue;if(jO(d)){if(g===c-1){const y=e.context.factory.createArraySliceCall(i,g);M3(e,d,y,d)}}else{const y=e.context.factory.createElementAccessExpression(i,g);M3(e,d,y,d)}}}if(u&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(u),i,s,n),f)for(const[g,d]of f)M3(e,d,g,d)}function Rbe(e){const t=gy(e);if(!t||pl(t))return!0;const n=BO(e);if(n&&!qd(n))return!1;const i=zw(e);return i&&!Wm(i)?!1:KD(t)?Wi($C(t),Rbe):Ie(t)}function dMe(e,t,n,i){return t=kx(e,t,!0,i),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t,"undefined"),void 0,n,void 0,t)}function mMe(e,t,n){const{factory:i}=e.context;if(Pa(n)){const s=kx(e,E.checkDefined(qe(n.expression,e.visitor,ot)),!1,n);return e.context.factory.createElementAccessExpression(t,s)}else if(Tf(n)){const s=i.cloneNode(n);return e.context.factory.createElementAccessExpression(t,s)}else{const s=e.context.factory.createIdentifier(on(n));return e.context.factory.createPropertyAccessExpression(t,s)}}function kx(e,t,n,i){if(Ie(t)&&n)return t;{const s=e.context.factory.createTempVariable(void 0);return e.hoistTempVariables?(e.context.hoistVariableDeclaration(s),e.emitExpression(Ke(e.context.factory.createAssignment(s,t),i))):e.emitBindingOrAssignment(s,t,i,void 0),s}}function gMe(e,t){return E.assertEachNode(t,Q7),e.createArrayBindingPattern(t)}function hMe(e,t){return E.assertEachNode(t,t8),e.createArrayLiteralExpression(nr(t,e.converters.convertToArrayAssignmentElement))}function yMe(e,t){return E.assertEachNode(t,Ea),e.createObjectBindingPattern(t)}function vMe(e,t){return E.assertEachNode(t,e8),e.createObjectLiteralExpression(nr(t,e.converters.convertToObjectAssignmentElement))}function bMe(e,t){return e.createBindingElement(void 0,void 0,t)}function SMe(e){return e}var oq,TMe=wt({"src/compiler/transformers/destructuring.ts"(){Fs(),oq=(e=>(e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",e))(oq||{})}});function Yse(e,t,n=e.createThis()){const i=e.createAssignment(t,n),s=e.createExpressionStatement(i),o=e.createBlock([s],!1),c=e.createClassStaticBlockDeclaration(o);return ou(c).classThis=t,c}function R3(e){var t;if(!ec(e)||e.body.statements.length!==1)return!1;const n=e.body.statements[0];return Cl(n)&&nl(n.expression,!0)&&Ie(n.expression.left)&&((t=e.emitNode)==null?void 0:t.classThis)===n.expression.left&&n.expression.right.kind===110}function cq(e){var t;return!!((t=e.emitNode)!=null&&t.classThis)&&ct(e.members,R3)}function Zse(e,t,n,i){if(cq(t))return t;const s=Yse(e,n,i);t.name&&sa(s.body.statements[0],t.name);const o=e.createNodeArray([s,...t.members]);Ke(o,t.members);const c=Xc(t)?e.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,o):e.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,o);return ou(c).classThis=n,c}var xMe=wt({"src/compiler/transformers/classThis.ts"(){Fs()}});function j3(e,t,n){const i=ic(xc(n));return(Xc(i)||$c(i))&&!i.name&&Rn(i,2048)?e.createStringLiteral("default"):e.createStringLiteralFromNode(t)}function jbe(e,t,n){const{factory:i}=e;if(n!==void 0)return{assignedName:i.createStringLiteral(n),name:t};if(qd(t)||Pi(t))return{assignedName:i.createStringLiteralFromNode(t),name:t};if(qd(t.expression)&&!Ie(t.expression))return{assignedName:i.createStringLiteralFromNode(t.expression),name:t};const s=i.getGeneratedNameForNode(t);e.hoistVariableDeclaration(s);const o=e.getEmitHelperFactory().createPropKeyHelper(t.expression),c=i.createAssignment(s,o),u=i.updateComputedPropertyName(t,c);return{assignedName:s,name:u}}function Kse(e,t,n=e.factory.createThis()){const{factory:i}=e,s=e.getEmitHelperFactory().createSetFunctionNameHelper(n,t),o=i.createExpressionStatement(s),c=i.createBlock([o],!1),u=i.createClassStaticBlockDeclaration(c);return ou(u).assignedName=t,u}function Cx(e){var t;if(!ec(e)||e.body.statements.length!==1)return!1;const n=e.body.statements[0];return Cl(n)&&c3(n.expression,"___setFunctionName")&&n.expression.arguments.length>=2&&n.expression.arguments[1]===((t=e.emitNode)==null?void 0:t.assignedName)}function w9(e){var t;return!!((t=e.emitNode)!=null&&t.assignedName)&&ct(e.members,Cx)}function lq(e){return!!e.name||w9(e)}function A9(e,t,n,i){if(w9(t))return t;const{factory:s}=e,o=Kse(e,n,i);t.name&&sa(o.body.statements[0],t.name);const c=vc(t.members,R3)+1,u=t.members.slice(0,c),f=t.members.slice(c),g=s.createNodeArray([...u,o,...f]);return Ke(g,t.members),t=Xc(t)?s.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,g):s.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,g),ou(t).assignedName=n,t}function s6(e,t,n,i){if(i&&aa(n)&&Mz(n))return t;const{factory:s}=e,o=xc(t),c=kl(o)?Ls(A9(e,o,n),kl):e.getEmitHelperFactory().createSetFunctionNameHelper(o,n);return s.restoreOuterExpressions(t,c)}function kMe(e,t,n,i){const{factory:s}=e,{assignedName:o,name:c}=jbe(e,t.name,i),u=s6(e,t.initializer,o,n);return s.updatePropertyAssignment(t,c,u)}function CMe(e,t,n,i){const{factory:s}=e,o=i!==void 0?s.createStringLiteral(i):j3(s,t.name,t.objectAssignmentInitializer),c=s6(e,t.objectAssignmentInitializer,o,n);return s.updateShorthandPropertyAssignment(t,t.name,c)}function EMe(e,t,n,i){const{factory:s}=e,o=i!==void 0?s.createStringLiteral(i):j3(s,t.name,t.initializer),c=s6(e,t.initializer,o,n);return s.updateVariableDeclaration(t,t.name,t.exclamationToken,t.type,c)}function PMe(e,t,n,i){const{factory:s}=e,o=i!==void 0?s.createStringLiteral(i):j3(s,t.name,t.initializer),c=s6(e,t.initializer,o,n);return s.updateParameterDeclaration(t,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,t.type,c)}function DMe(e,t,n,i){const{factory:s}=e,o=i!==void 0?s.createStringLiteral(i):j3(s,t.name,t.initializer),c=s6(e,t.initializer,o,n);return s.updateBindingElement(t,t.dotDotDotToken,t.propertyName,t.name,c)}function wMe(e,t,n,i){const{factory:s}=e,{assignedName:o,name:c}=jbe(e,t.name,i),u=s6(e,t.initializer,o,n);return s.updatePropertyDeclaration(t,t.modifiers,c,t.questionToken??t.exclamationToken,t.type,u)}function AMe(e,t,n,i){const{factory:s}=e,o=i!==void 0?s.createStringLiteral(i):j3(s,t.left,t.right),c=s6(e,t.right,o,n);return s.updateBinaryExpression(t,t.left,t.operatorToken,c)}function NMe(e,t,n,i){const{factory:s}=e,o=i!==void 0?s.createStringLiteral(i):s.createStringLiteral(t.isExportEquals?"":"default"),c=s6(e,t.expression,o,n);return s.updateExportAssignment(t,t.modifiers,c)}function W_(e,t,n,i){switch(t.kind){case 303:return kMe(e,t,n,i);case 304:return CMe(e,t,n,i);case 260:return EMe(e,t,n,i);case 169:return PMe(e,t,n,i);case 208:return DMe(e,t,n,i);case 172:return wMe(e,t,n,i);case 226:return AMe(e,t,n,i);case 277:return NMe(e,t,n,i)}}var IMe=wt({"src/compiler/transformers/namedEvaluation.ts"(){Fs()}});function uq(e,t,n,i,s,o){const c=qe(t.tag,n,ot);E.assert(c);const u=[void 0],f=[],g=[],d=t.template;if(o===0&&!oW(d))return ur(t,n,e);const{factory:y}=e;if(tx(d))f.push(eae(y,d)),g.push(tae(y,d,i));else{f.push(eae(y,d.head)),g.push(tae(y,d.head,i));for(const T of d.templateSpans)f.push(eae(y,T.literal)),g.push(tae(y,T.literal,i)),u.push(E.checkDefined(qe(T.expression,n,ot)))}const S=e.getEmitHelperFactory().createTemplateObjectHelper(y.createArrayLiteralExpression(f),y.createArrayLiteralExpression(g));if(Ic(i)){const T=y.createUniqueName("templateObject");s(T),u[0]=y.createLogicalOr(T,y.createAssignment(T,S))}else u[0]=S;return y.createCallExpression(c,void 0,u)}function eae(e,t){return t.templateFlags&26656?e.createVoidZero():e.createStringLiteral(t.text)}function tae(e,t,n){let i=t.rawText;if(i===void 0){E.assertIsDefined(n,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),i=Bv(n,t);const s=t.kind===15||t.kind===18;i=i.substring(1,i.length-(s?1:2))}return i=i.replace(/\r\n?/g,` -`),Ke(e.createStringLiteral(i),t)}var _q,FMe=wt({"src/compiler/transformers/taggedTemplate.ts"(){Fs(),_q=(e=>(e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All",e))(_q||{})}});function rae(e){const{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:i,resumeLexicalEnvironment:s,endLexicalEnvironment:o,hoistVariableDeclaration:c}=e,u=e.getEmitResolver(),f=e.getCompilerOptions(),g=Fa(f),d=au(f),y=!!f.experimentalDecorators,S=f.emitDecoratorMetadata?iae(e):void 0,T=e.onEmitNode,k=e.onSubstituteNode;e.onEmitNode=Fc,e.onSubstituteNode=rc,e.enableSubstitution(211),e.enableSubstitution(212);let w,P,F,J,U,$,j,re;return R;function R(X){return X.kind===313?Y(X):ue(X)}function Y(X){return t.createBundle(X.sourceFiles.map(ue),Ri(X.prepends,Ee=>Ee.kind===315?_V(Ee,"js"):Ee))}function ue(X){if(X.isDeclarationFile)return X;w=X;const Ee=pe(X,$e);return ih(Ee,e.readEmitHelpers()),w=void 0,Ee}function pe(X,Ee){const lt=J,Xt=U,an=$;H(X);const rn=Ee(X);return J!==lt&&(U=Xt),J=lt,$=an,rn}function H(X){switch(X.kind){case 312:case 269:case 268:case 241:J=X,U=void 0;break;case 263:case 262:if(Rn(X,128))break;X.name?V(X):E.assert(X.kind===263||Rn(X,2048));break}}function q(X){return pe(X,ee)}function ee(X){return X.transformFlags&1?Fe(X):X}function oe(X){return pe(X,Se)}function Se(X){switch(X.kind){case 272:case 271:case 277:case 278:return K(X);default:return ee(X)}}function ae(X){const Ee=as(X);if(Ee===X||oc(X))return!1;if(!Ee||Ee.kind!==X.kind)return!0;switch(X.kind){case 272:if(E.assertNode(Ee,il),X.importClause!==Ee.importClause||X.attributes!==Ee.attributes)return!0;break;case 271:if(E.assertNode(Ee,El),X.name!==Ee.name||X.isTypeOnly!==Ee.isTypeOnly||X.moduleReference!==Ee.moduleReference&&(b_(X.moduleReference)||b_(Ee.moduleReference)))return!0;break;case 278:if(E.assertNode(Ee,Tc),X.exportClause!==Ee.exportClause||X.attributes!==Ee.attributes)return!0;break}return!1}function K(X){if(ae(X))return X.transformFlags&1?ur(X,q,e):X;switch(X.kind){case 272:return ar(X);case 271:return is(X);case 277:return oi(X);case 278:return Wr(X);default:E.fail("Unhandled ellided statement")}}function fe(X){return pe(X,ke)}function ke(X){if(!(X.kind===278||X.kind===272||X.kind===273||X.kind===271&&X.moduleReference.kind===283))return X.transformFlags&1||Rn(X,32)?Fe(X):X}function Oe(X){return Ee=>pe(Ee,lt=>me(lt,X))}function me(X,Ee){switch(X.kind){case 176:return fr(X);case 172:return Et(X,Ee);case 177:return _a(X,Ee);case 178:return cr(X,Ee);case 174:return ns(X,Ee);case 175:return ur(X,q,e);case 240:return X;case 181:return;default:return E.failBadSyntaxKind(X)}}function be(X){return Ee=>pe(Ee,lt=>xe(lt,X))}function xe(X,Ee){switch(X.kind){case 303:case 304:case 305:return q(X);case 177:return _a(X,Ee);case 178:return cr(X,Ee);case 174:return ns(X,Ee);default:return E.failBadSyntaxKind(X)}}function De(X){return ql(X)?void 0:q(X)}function ft(X){return ta(X)?void 0:q(X)}function ge(X){if(!ql(X)&&!(WT(X.kind)&28895)&&!(P&&X.kind===95))return X}function Fe(X){if(Ei(X)&&Rn(X,128))return t.createNotEmittedStatement(X);switch(X.kind){case 95:case 90:return P?void 0:X;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(X);case 270:return;case 264:return t.createNotEmittedStatement(X);case 263:return zt(X);case 231:return Vt(X);case 298:return ln(X);case 233:return Ht(X);case 210:return Pt(X);case 176:case 172:case 174:case 177:case 178:case 175:return E.fail("Class and object literal elements must be visited with their respective visitors");case 262:return br(X);case 218:return Le(X);case 219:return rt(X);case 169:return tt(X);case 217:return et(X);case 216:case 234:return B(X);case 238:return mt(X);case 213:return Be(X);case 214:return nt(X);case 215:return Dt(X);case 235:return Ge(X);case 266:return W(X);case 243:return yt(X);case 260:return we(X);case 267:return _t(X);case 271:return is(X);case 285:return ir(X);case 286:return Yt(X);default:return ur(X,q,e)}}function $e(X){const Ee=Mu(f,"alwaysStrict")&&!(Ic(X)&&d>=5)&&!gp(X);return t.updateSourceFile(X,QU(X.statements,oe,e,0,Ee))}function Pt(X){return t.updateObjectLiteralExpression(X,Dr(X.properties,be(X),Yg))}function at(X){let Ee=0;ct(nq(X,!0,!0))&&(Ee|=1);const lt=Ud(X);return lt&&xc(lt.expression).kind!==106&&(Ee|=64),Qh(y,X)&&(Ee|=2),vE(y,X)&&(Ee|=4),pr(X)?Ee|=8:_s(X)?Ee|=32:kc(X)&&(Ee|=16),Ee}function Je(X){return!!(X.transformFlags&8192)}function pt(X){return Vf(X)||ct(X.typeParameters)||ct(X.heritageClauses,Je)||ct(X.members,Je)}function zt(X){const Ee=at(X),lt=g<=1&&!!(Ee&7);if(!pt(X)&&!Qh(y,X)&&!pr(X))return t.updateClassDeclaration(X,Dr(X.modifiers,ge,ta),X.name,void 0,Dr(X.heritageClauses,q,kf),Dr(X.members,Oe(X),Tl));lt&&e.startLexicalEnvironment();const Xt=lt||Ee&8;let an=Xt?Dr(X.modifiers,ft,Oo):Dr(X.modifiers,q,Oo);Ee&2&&(an=Lr(an,X));const En=Xt&&!X.name||Ee&4||Ee&1?X.name??t.getGeneratedNameForNode(X):X.name,li=t.updateClassDeclaration(X,an,En,void 0,Dr(X.heritageClauses,q,kf),hr(X));let gn=ha(X);Ee&1&&(gn|=64),Qr(li,gn);let Ps;if(lt){const Qo=[li],ml=TW(ca(w.text,X.members.end),20),ho=t.getInternalName(X),Vc=t.createPartiallyEmittedExpression(ho);wC(Vc,ml.end),Qr(Vc,3072);const $a=t.createReturnStatement(Vc);XE($a,ml.pos),Qr($a,3840),Qo.push($a),mg(Qo,e.endLexicalEnvironment());const gl=t.createImmediatelyInvokedArrowFunction(Qo);bw(gl,1);const E_=t.createVariableDeclaration(t.getLocalName(X,!1,!1),void 0,void 0,gl);dn(E_,X);const ol=t.createVariableStatement(void 0,t.createVariableDeclarationList([E_],1));dn(ol,X),Nc(ol,X),sa(ol,th(X)),bu(ol),Ps=ol}else Ps=li;if(Xt){if(Ee&8)return[Ps,Ra(X)];if(Ee&32)return[Ps,t.createExportDefault(t.getLocalName(X,!1,!0))];if(Ee&16)return[Ps,t.createExternalModuleExport(t.getDeclarationName(X,!1,!0))]}return Ps}function Vt(X){let Ee=Dr(X.modifiers,ft,Oo);return Qh(y,X)&&(Ee=Lr(Ee,X)),t.updateClassExpression(X,Ee,X.name,void 0,Dr(X.heritageClauses,q,kf),hr(X))}function hr(X){const Ee=Dr(X.members,Oe(X),Tl);let lt;const Xt=Sg(X),an=Xt&&An(Xt.parameters,rn=>O_(rn,Xt));if(an)for(const rn of an){const En=t.createPropertyDeclaration(void 0,rn.name,void 0,void 0,void 0);dn(En,rn),lt=_r(lt,En)}return lt?(lt=Nn(lt,Ee),Ke(t.createNodeArray(lt),X.members)):Ee}function Lr(X,Ee){const lt=jt(Ee,Ee);if(ct(lt)){const Xt=[];Nn(Xt,u7(X,Ww)),Nn(Xt,An(X,ql)),Nn(Xt,lt),Nn(Xt,An(tee(X,Ww),ta)),X=Ke(t.createNodeArray(Xt),X)}return X}function tr(X,Ee,lt){if($n(lt)&&Lz(y,Ee,lt)){const Xt=jt(Ee,lt);if(ct(Xt)){const an=[];Nn(an,An(X,ql)),Nn(an,Xt),Nn(an,An(X,ta)),X=Ke(t.createNodeArray(an),X)}}return X}function jt(X,Ee){if(y)return Bbe?Kn(X,Ee):Rt(X,Ee)}function Rt(X,Ee){if(S){let lt;if(Ji(X)){const Xt=n().createMetadataHelper("design:type",S.serializeTypeOfNode({currentLexicalScope:J,currentNameScope:Ee},X));lt=_r(lt,t.createDecorator(Xt))}if(os(X)){const Xt=n().createMetadataHelper("design:paramtypes",S.serializeParameterTypesOfNode({currentLexicalScope:J,currentNameScope:Ee},X,Ee));lt=_r(lt,t.createDecorator(Xt))}if(yi(X)){const Xt=n().createMetadataHelper("design:returntype",S.serializeReturnTypeOfNode({currentLexicalScope:J,currentNameScope:Ee},X));lt=_r(lt,t.createDecorator(Xt))}return lt}}function Kn(X,Ee){if(S){let lt;if(Ji(X)){const Xt=t.createPropertyAssignment("type",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),S.serializeTypeOfNode({currentLexicalScope:J,currentNameScope:Ee},X)));lt=_r(lt,Xt)}if(os(X)){const Xt=t.createPropertyAssignment("paramTypes",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),S.serializeParameterTypesOfNode({currentLexicalScope:J,currentNameScope:Ee},X,Ee)));lt=_r(lt,Xt)}if(yi(X)){const Xt=t.createPropertyAssignment("returnType",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),S.serializeReturnTypeOfNode({currentLexicalScope:J,currentNameScope:Ee},X)));lt=_r(lt,Xt)}if(lt){const Xt=n().createMetadataHelper("design:typeinfo",t.createObjectLiteralExpression(lt,!0));return[t.createDecorator(Xt)]}}}function Ji(X){const Ee=X.kind;return Ee===174||Ee===177||Ee===178||Ee===172}function yi(X){return X.kind===174}function os(X){switch(X.kind){case 263:case 231:return Sg(X)!==void 0;case 174:case 177:case 178:return!0}return!1}function yr(X,Ee){const lt=X.name;return Pi(lt)?t.createIdentifier(""):Pa(lt)?lt.expression:Ie(lt)?t.createStringLiteral(on(lt)):t.cloneNode(lt)}function _i(X){const Ee=X.name;if(Pa(Ee)&&(!Bc(X)&&$||Vf(X)&&y)){const lt=qe(Ee.expression,q,ot);E.assert(lt);const Xt=zp(lt);if(!Wm(Xt)){const an=t.getGeneratedNameForNode(Ee);return c(an),t.updateComputedPropertyName(Ee,t.createAssignment(an,lt))}}return E.checkDefined(qe(Ee,q,Ac))}function ln(X){if(X.token!==119)return ur(X,q,e)}function Ht(X){return t.updateExpressionWithTypeArguments(X,E.checkDefined(qe(X.expression,q,S_)),void 0)}function Ue(X){return!_c(X.body)}function Et(X,Ee){const lt=X.flags&33554432||Rn(X,64);if(lt&&!(y&&Vf(X)))return;let Xt=$n(Ee)?lt?Dr(X.modifiers,ft,Oo):Dr(X.modifiers,q,Oo):Dr(X.modifiers,De,Oo);return Xt=tr(Xt,X,Ee),lt?t.updatePropertyDeclaration(X,es(Xt,t.createModifiersFromModifierFlags(128)),E.checkDefined(qe(X.name,q,Ac)),void 0,void 0,void 0):t.updatePropertyDeclaration(X,Xt,_i(X),void 0,void 0,qe(X.initializer,q,ot))}function fr(X){if(Ue(X))return t.updateConstructorDeclaration(X,void 0,tc(X.parameters,q,e),ei(X.body,X))}function Hn(X,Ee,lt,Xt,an,rn){const En=Xt[an],li=Ee[En];if(Nn(X,Dr(Ee,q,Ei,lt,En-lt)),$b(li)){const gn=[];Hn(gn,li.tryBlock.statements,0,Xt,an+1,rn);const Ps=t.createNodeArray(gn);Ke(Ps,li.tryBlock.statements),X.push(t.updateTryStatement(li,t.updateBlock(li.tryBlock,gn),qe(li.catchClause,q,f2),qe(li.finallyBlock,q,Cs)))}else Nn(X,Dr(Ee,q,Ei,En,1)),Nn(X,rn);Nn(X,Dr(Ee,q,Ei,En+1))}function ei(X,Ee){const lt=Ee&&An(Ee.parameters,gn=>O_(gn,Ee));if(!ct(lt))return Pf(X,q,e);let Xt=[];s();const an=t.copyPrologue(X.statements,Xt,!1,q),rn=E9(X.statements,an),En=Ri(lt,Ii);rn.length?Hn(Xt,X.statements,an,rn,0,En):(Nn(Xt,En),Nn(Xt,Dr(X.statements,q,Ei,an))),Xt=t.mergeLexicalEnvironment(Xt,o());const li=t.createBlock(Ke(t.createNodeArray(Xt),X.statements),!0);return Ke(li,X),dn(li,X),li}function Ii(X){const Ee=X.name;if(!Ie(Ee))return;const lt=ba(Ke(t.cloneNode(Ee),Ee),Ee.parent);Qr(lt,3168);const Xt=ba(Ke(t.cloneNode(Ee),Ee),Ee.parent);return Qr(Xt,3072),bu(vw(Ke(dn(t.createExpressionStatement(t.createAssignment(Ke(t.createPropertyAccessExpression(t.createThis(),lt),X.name),Xt)),X),A1(X,-1))))}function ns(X,Ee){if(!(X.transformFlags&1))return X;if(!Ue(X))return;let lt=$n(Ee)?Dr(X.modifiers,q,Oo):Dr(X.modifiers,De,Oo);return lt=tr(lt,X,Ee),t.updateMethodDeclaration(X,lt,X.asteriskToken,_i(X),void 0,void 0,tc(X.parameters,q,e),void 0,Pf(X.body,q,e))}function Vs(X){return!(_c(X.body)&&Rn(X,64))}function _a(X,Ee){if(!(X.transformFlags&1))return X;if(!Vs(X))return;let lt=$n(Ee)?Dr(X.modifiers,q,Oo):Dr(X.modifiers,De,Oo);return lt=tr(lt,X,Ee),t.updateGetAccessorDeclaration(X,lt,_i(X),tc(X.parameters,q,e),void 0,Pf(X.body,q,e)||t.createBlock([]))}function cr(X,Ee){if(!(X.transformFlags&1))return X;if(!Vs(X))return;let lt=$n(Ee)?Dr(X.modifiers,q,Oo):Dr(X.modifiers,De,Oo);return lt=tr(lt,X,Ee),t.updateSetAccessorDeclaration(X,lt,_i(X),tc(X.parameters,q,e),Pf(X.body,q,e)||t.createBlock([]))}function br(X){if(!Ue(X))return t.createNotEmittedStatement(X);const Ee=t.updateFunctionDeclaration(X,Dr(X.modifiers,ge,ta),X.asteriskToken,X.name,void 0,tc(X.parameters,q,e),void 0,Pf(X.body,q,e)||t.createBlock([]));if(pr(X)){const lt=[Ee];return mo(lt,X),lt}return Ee}function Le(X){return Ue(X)?t.updateFunctionExpression(X,Dr(X.modifiers,ge,ta),X.asteriskToken,X.name,void 0,tc(X.parameters,q,e),void 0,Pf(X.body,q,e)||t.createBlock([])):t.createOmittedExpression()}function rt(X){return t.updateArrowFunction(X,Dr(X.modifiers,ge,ta),void 0,tc(X.parameters,q,e),void 0,X.equalsGreaterThanToken,Pf(X.body,q,e))}function tt(X){if(Qv(X))return;const Ee=t.updateParameterDeclaration(X,Dr(X.modifiers,lt=>ql(lt)?q(lt):void 0,Oo),X.dotDotDotToken,E.checkDefined(qe(X.name,q,bb)),void 0,void 0,qe(X.initializer,q,ot));return Ee!==X&&(Nc(Ee,X),Ke(Ee,Xd(X)),sa(Ee,Xd(X)),Qr(Ee.name,64)),Ee}function yt(X){if(pr(X)){const Ee=BE(X.declarationList);return Ee.length===0?void 0:Ke(t.createExpressionStatement(t.inlineExpressions(nr(Ee,ne))),X)}else return ur(X,q,e)}function ne(X){const Ee=X.name;return Ns(Ee)?nS(X,q,e,0,!1,Ol):Ke(t.createAssignment($i(Ee),E.checkDefined(qe(X.initializer,q,ot))),X)}function we(X){const Ee=t.updateVariableDeclaration(X,E.checkDefined(qe(X.name,q,bb)),void 0,void 0,qe(X.initializer,q,ot));return X.type&&Jne(Ee.name,X.type),Ee}function et(X){const Ee=xc(X.expression,-7);if(Tb(Ee)){const lt=qe(X.expression,q,ot);return E.assert(lt),t.createPartiallyEmittedExpression(lt,X)}return ur(X,q,e)}function B(X){const Ee=qe(X.expression,q,ot);return E.assert(Ee),t.createPartiallyEmittedExpression(Ee,X)}function Ge(X){const Ee=qe(X.expression,q,S_);return E.assert(Ee),t.createPartiallyEmittedExpression(Ee,X)}function mt(X){const Ee=qe(X.expression,q,ot);return E.assert(Ee),t.createPartiallyEmittedExpression(Ee,X)}function Be(X){return t.updateCallExpression(X,E.checkDefined(qe(X.expression,q,ot)),void 0,Dr(X.arguments,q,ot))}function nt(X){return t.updateNewExpression(X,E.checkDefined(qe(X.expression,q,ot)),void 0,Dr(X.arguments,q,ot))}function Dt(X){return t.updateTaggedTemplateExpression(X,E.checkDefined(qe(X.tag,q,ot)),void 0,E.checkDefined(qe(X.template,q,NT)))}function ir(X){return t.updateJsxSelfClosingElement(X,E.checkDefined(qe(X.tagName,q,fE)),void 0,E.checkDefined(qe(X.attributes,q,_2)))}function Yt(X){return t.updateJsxOpeningElement(X,E.checkDefined(qe(X.tagName,q,fE)),void 0,E.checkDefined(qe(X.attributes,q,_2)))}function Kt(X){return!zv(X)||n2(f)}function W(X){if(!Kt(X))return t.createNotEmittedStatement(X);const Ee=[];let lt=4;const Xt=Ce(Ee,X);Xt&&(d!==4||J!==w)&&(lt|=1024);const an=zs(X),rn=Ll(X),En=pr(X)?t.getExternalModuleOrNamespaceExportName(F,X,!1,!0):t.getDeclarationName(X,!1,!0);let li=t.createLogicalOr(En,t.createAssignment(En,t.createObjectLiteralExpression()));if(pr(X)){const Ps=t.getLocalName(X,!1,!0);li=t.createAssignment(Ps,li)}const gn=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,an)],void 0,Pe(X,rn)),void 0,[li]));return dn(gn,X),Xt&&(O1(gn,void 0),YT(gn,void 0)),Ke(gn,X),Qd(gn,lt),Ee.push(gn),Ee}function Pe(X,Ee){const lt=F;F=Ee;const Xt=[];i();const an=nr(X.members,St);return mg(Xt,o()),Nn(Xt,an),F=lt,t.createBlock(Ke(t.createNodeArray(Xt),X.members),!0)}function St(X){const Ee=yr(X),lt=A(X),Xt=t.createAssignment(t.createElementAccessExpression(F,Ee),lt),an=lt.kind===11?Xt:t.createAssignment(t.createElementAccessExpression(F,Xt),Ee);return Ke(t.createExpressionStatement(Ke(an,X)),X)}function A(X){const Ee=u.getConstantValue(X);return Ee!==void 0?typeof Ee=="string"?t.createStringLiteral(Ee):Ee<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-Ee)):t.createNumericLiteral(Ee):(Qa(),X.initializer?E.checkDefined(qe(X.initializer,q,ot)):t.createVoidZero())}function le(X){const Ee=as(X,Sc);return Ee?qU(Ee,n2(f)):!0}function V(X){U||(U=new Map);const Ee=Ne(X);U.has(Ee)||U.set(Ee,X)}function ce(X){if(U){const Ee=Ne(X);return U.get(Ee)===X}return!0}function Ne(X){return E.assertNode(X.name,Ie),X.name.escapedText}function Ce(X,Ee){const lt=t.createVariableDeclaration(t.getLocalName(Ee,!1,!0)),Xt=J.kind===312?0:1,an=t.createVariableStatement(Dr(Ee.modifiers,ge,ta),t.createVariableDeclarationList([lt],Xt));return dn(lt,Ee),O1(lt,void 0),YT(lt,void 0),dn(an,Ee),V(Ee),ce(Ee)?(Ee.kind===266?sa(an.declarationList,Ee):sa(an,Ee),Nc(an,Ee),Qd(an,2048),X.push(an),!0):!1}function _t(X){if(!le(X))return t.createNotEmittedStatement(X);E.assertNode(X.name,Ie,"A TypeScript namespace should have an Identifier name."),oa();const Ee=[];let lt=4;const Xt=Ce(Ee,X);Xt&&(d!==4||J!==w)&&(lt|=1024);const an=zs(X),rn=Ll(X),En=pr(X)?t.getExternalModuleOrNamespaceExportName(F,X,!1,!0):t.getDeclarationName(X,!1,!0);let li=t.createLogicalOr(En,t.createAssignment(En,t.createObjectLiteralExpression()));if(pr(X)){const Ps=t.getLocalName(X,!1,!0);li=t.createAssignment(Ps,li)}const gn=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,an)],void 0,Tt(X,rn)),void 0,[li]));return dn(gn,X),Xt&&(O1(gn,void 0),YT(gn,void 0)),Ke(gn,X),Qd(gn,lt),Ee.push(gn),Ee}function Tt(X,Ee){const lt=F,Xt=P,an=U;F=Ee,P=X,U=void 0;const rn=[];i();let En,li;if(X.body)if(X.body.kind===268)pe(X.body,Ps=>Nn(rn,Dr(Ps.statements,fe,Ei))),En=X.body.statements,li=X.body;else{const Ps=_t(X.body);Ps&&(ts(Ps)?Nn(rn,Ps):rn.push(Ps));const Qo=Jt(X).body;En=A1(Qo.statements,-1)}mg(rn,o()),F=lt,P=Xt,U=an;const gn=t.createBlock(Ke(t.createNodeArray(rn),En),!0);return Ke(gn,li),(!X.body||X.body.kind!==268)&&Qr(gn,ha(gn)|3072),gn}function Jt(X){if(X.body.kind===267)return Jt(X.body)||X.body}function ar(X){if(!X.importClause)return X;if(X.importClause.isTypeOnly)return;const Ee=qe(X.importClause,Er,Rm);return Ee||f.importsNotUsedAsValues===1||f.importsNotUsedAsValues===2?t.updateImportDeclaration(X,void 0,Ee,X.moduleSpecifier,X.attributes):void 0}function Er(X){E.assert(!X.isTypeOnly);const Ee=se(X)?X.name:void 0,lt=qe(X.namedBindings,Nr,lz);return Ee||lt?t.updateImportClause(X,!1,Ee,lt):void 0}function Nr(X){if(X.kind===274)return se(X)?X:void 0;{const Ee=f.verbatimModuleSyntax||f.preserveValueImports&&(f.importsNotUsedAsValues===1||f.importsNotUsedAsValues===2),lt=Dr(X.elements,fi,x_);return Ee||ct(lt)?t.updateNamedImports(X,lt):void 0}}function fi(X){return!X.isTypeOnly&&se(X)?X:void 0}function oi(X){return f.verbatimModuleSyntax||u.isValueAliasDeclaration(X)?ur(X,q,e):void 0}function Wr(X){if(X.isTypeOnly)return;if(!X.exportClause||jm(X.exportClause))return X;const Ee=f.verbatimModuleSyntax||!!X.moduleSpecifier&&(f.importsNotUsedAsValues===1||f.importsNotUsedAsValues===2),lt=qe(X.exportClause,Xt=>pi(Xt,Ee),YJ);return lt?t.updateExportDeclaration(X,void 0,X.isTypeOnly,lt,X.moduleSpecifier,X.attributes):void 0}function Cn(X,Ee){const lt=Dr(X.elements,ci,vu);return Ee||ct(lt)?t.updateNamedExports(X,lt):void 0}function Qi(X){return t.updateNamespaceExport(X,E.checkDefined(qe(X.name,q,Ie)))}function pi(X,Ee){return jm(X)?Qi(X):Cn(X,Ee)}function ci(X){return!X.isTypeOnly&&(f.verbatimModuleSyntax||u.isValueAliasDeclaration(X))?X:void 0}function In(X){return se(X)||!Ic(w)&&u.isTopLevelValueImportEqualsWithEntityName(X)}function is(X){if(X.isTypeOnly)return;if(C1(X)){const lt=se(X);return!lt&&f.importsNotUsedAsValues===1?dn(Ke(t.createImportDeclaration(void 0,void 0,X.moduleReference.expression,void 0),X),X):lt?ur(X,q,e):void 0}if(!In(X))return;const Ee=Rw(t,X.moduleReference);return Qr(Ee,7168),kc(X)||!pr(X)?dn(Ke(t.createVariableStatement(Dr(X.modifiers,ge,ta),t.createVariableDeclarationList([dn(t.createVariableDeclaration(X.name,void 0,void 0,Ee),X)])),X),X):dn(Uo(X.name,Ee,X),X)}function pr(X){return P!==void 0&&Rn(X,32)}function uo(X){return P===void 0&&Rn(X,32)}function kc(X){return uo(X)&&!Rn(X,2048)}function _s(X){return uo(X)&&Rn(X,2048)}function Ra(X){const Ee=t.createAssignment(t.getExternalModuleOrNamespaceExportName(F,X,!1,!0),t.getLocalName(X));sa(Ee,Uf(X.name?X.name.pos:X.pos,X.end));const lt=t.createExpressionStatement(Ee);return sa(lt,Uf(-1,X.end)),lt}function mo(X,Ee){X.push(Ra(Ee))}function Uo(X,Ee,lt){return Ke(t.createExpressionStatement(t.createAssignment(t.getNamespaceMemberName(F,X,!1,!0),Ee)),lt)}function Ol(X,Ee,lt){return Ke(t.createAssignment($i(X),Ee),lt)}function $i(X){return t.getNamespaceMemberName(F,X,!1,!0)}function zs(X){const Ee=t.getGeneratedNameForNode(X);return sa(Ee,X.name),Ee}function Ll(X){return t.getGeneratedNameForNode(X)}function Qa(){j&8||(j|=8,e.enableSubstitution(80))}function oa(){j&2||(j|=2,e.enableSubstitution(80),e.enableSubstitution(304),e.enableEmitNotification(267))}function zo(X){return ic(X).kind===267}function Kf(X){return ic(X).kind===266}function Fc(X,Ee,lt){const Xt=re,an=w;Ni(Ee)&&(w=Ee),j&2&&zo(Ee)&&(re|=2),j&8&&Kf(Ee)&&(re|=8),T(X,Ee,lt),re=Xt,w=an}function rc(X,Ee){return Ee=k(X,Ee),X===1?fs(Ee):k_(Ee)?Mo(Ee):Ee}function Mo(X){if(j&2){const Ee=X.name,lt=go(Ee);if(lt){if(X.objectAssignmentInitializer){const Xt=t.createAssignment(lt,X.objectAssignmentInitializer);return Ke(t.createPropertyAssignment(Ee,Xt),X)}return Ke(t.createPropertyAssignment(Ee,lt),X)}}return X}function fs(X){switch(X.kind){case 80:return Wt(X);case 211:return Pl(X);case 212:return Ml(X)}return X}function Wt(X){return go(X)||X}function go(X){if(j&re&&!Fo(X)&&!ah(X)){const Ee=u.getReferencedExportContainer(X,!1);if(Ee&&Ee.kind!==312&&(re&2&&Ee.kind===267||re&8&&Ee.kind===266))return Ke(t.createPropertyAccessExpression(t.getGeneratedNameForNode(Ee),X),X)}}function Pl(X){return io(X)}function Ml(X){return io(X)}function q_(X){return X.replace(/\*\//g,"*_/")}function io(X){const Ee=Yc(X);if(Ee!==void 0){jne(X,Ee);const lt=typeof Ee=="string"?t.createStringLiteral(Ee):Ee<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-Ee)):t.createNumericLiteral(Ee);if(!f.removeComments){const Xt=ic(X,oo);WF(lt,3,` ${q_(jc(Xt))} `)}return lt}return X}function Yc(X){if(!xp(f))return Sn(X)||ko(X)?u.getConstantValue(X):void 0}function se(X){return f.verbatimModuleSyntax||Hr(X)||(f.preserveValueImports?u.isValueAliasDeclaration(X):u.isReferencedAliasDeclaration(X))}}var Bbe,OMe=wt({"src/compiler/transformers/ts.ts"(){Fs(),Bbe=!1}});function nae(e){const{factory:t,getEmitHelperFactory:n,hoistVariableDeclaration:i,endLexicalEnvironment:s,startLexicalEnvironment:o,resumeLexicalEnvironment:c,addBlockScopedVariable:u}=e,f=e.getEmitResolver(),g=e.getCompilerOptions(),d=Fa(g),y=s3(g),S=!!g.experimentalDecorators,T=!y,k=y&&d<9,w=T||k,P=d<9,F=d<99?-1:y?0:3,J=d<9,U=J&&d>=2,$=w||P||F===-1,j=e.onSubstituteNode;e.onSubstituteNode=Pl;const re=e.onEmitNode;e.onEmitNode=go;let R=!1,Y,ue,pe,H,q;const ee=new Map,oe=new Set;let Se,ae,K=!1,fe=!1;return Xp(e,ke);function ke(se){if(se.isDeclarationFile||(q=void 0,R=!!(Wp(se)&32),!$&&!R))return se;const X=ur(se,me,e);return ih(X,e.readEmitHelpers()),X}function Oe(se){switch(se.kind){case 129:return Et()?void 0:se;default:return Wn(se,ta)}}function me(se){if(!(se.transformFlags&16777216)&&!(se.transformFlags&134234112))return se;switch(se.kind){case 129:return E.fail("Use `modifierVisitor` instead.");case 263:return Yt(se);case 231:return W(se);case 175:case 172:return E.fail("Use `classElementVisitor` instead.");case 303:return Je(se);case 243:return pt(se);case 260:return zt(se);case 169:return Vt(se);case 208:return hr(se);case 277:return Lr(se);case 81:return Pt(se);case 211:return Vs(se);case 212:return _a(se);case 224:case 225:return cr(se,!1);case 226:return et(se,!1);case 217:return Ge(se,!1);case 213:return tt(se);case 244:return Le(se);case 215:return yt(se);case 248:return br(se);case 110:return A(se);case 262:case 218:return yi(void 0,be,se);case 176:case 174:case 177:case 178:return yi(se,be,se);default:return be(se)}}function be(se){return ur(se,me,e)}function xe(se){switch(se.kind){case 224:case 225:return cr(se,!0);case 226:return et(se,!0);case 361:return B(se);case 217:return Ge(se,!0);default:return me(se)}}function De(se){switch(se.kind){case 298:return ur(se,De,e);case 233:return Dt(se);default:return me(se)}}function ft(se){switch(se.kind){case 210:case 209:return Wt(se);default:return me(se)}}function ge(se){switch(se.kind){case 176:return yi(se,Rt,se);case 177:case 178:case 174:return yi(se,Ji,se);case 172:return yi(se,fr,se);case 175:return yi(se,St,se);case 167:return jt(se);case 240:return se;default:return Oo(se)?Oe(se):me(se)}}function Fe(se){switch(se.kind){case 167:return jt(se);default:return me(se)}}function $e(se){switch(se.kind){case 172:return Ue(se);case 177:case 178:return ge(se);default:E.assertMissingNode(se,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration");break}}function Pt(se){return!P||Ei(se.parent)?se:dn(t.createIdentifier(""),se)}function at(se){const X=zs(se.left);if(X){const Ee=qe(se.right,me,ot);return dn(n().createClassPrivateFieldInHelper(X.brandCheckIdentifier,Ee),se)}return ur(se,me,e)}function Je(se){return M_(se,we)&&(se=W_(e,se)),ur(se,me,e)}function pt(se){const X=H;H=[];const Ee=ur(se,me,e),lt=ct(H)?[Ee,...H]:Ee;return H=X,lt}function zt(se){return M_(se,we)&&(se=W_(e,se)),ur(se,me,e)}function Vt(se){return M_(se,we)&&(se=W_(e,se)),ur(se,me,e)}function hr(se){return M_(se,we)&&(se=W_(e,se)),ur(se,me,e)}function Lr(se){return M_(se,we)&&(se=W_(e,se,!0,se.isExportEquals?"":"default")),ur(se,me,e)}function tr(se){return ct(pe)&&(l_(se)?(pe.push(se.expression),se=t.updateParenthesizedExpression(se,t.inlineExpressions(pe))):(pe.push(se),se=t.inlineExpressions(pe)),pe=void 0),se}function jt(se){const X=qe(se.expression,me,ot);return t.updateComputedPropertyName(se,tr(X))}function Rt(se){return Se?ce(se,Se):be(se)}function Kn(se){return!!(P||Bc(se)&&Wp(se)&32)}function Ji(se){if(E.assert(!Vf(se)),!Iu(se)||!Kn(se))return ur(se,ge,e);const X=zs(se.name);if(E.assert(X,"Undeclared private name for property declaration."),!X.isValid)return se;const Ee=os(se);Ee&&is().push(t.createAssignment(Ee,t.createFunctionExpression(An(se.modifiers,lt=>ta(lt)&&!ix(lt)&&!Kne(lt)),se.asteriskToken,Ee,void 0,tc(se.parameters,me,e),void 0,Pf(se.body,me,e))))}function yi(se,X,Ee){if(se!==ae){const lt=ae;ae=se;const Xt=X(Ee);return ae=lt,Xt}return X(Ee)}function os(se){E.assert(Pi(se.name));const X=zs(se.name);if(E.assert(X,"Undeclared private name for property declaration."),X.kind==="m")return X.methodName;if(X.kind==="a"){if(Y0(se))return X.getterName;if(Xh(se))return X.setterName}}function yr(){const se=ci(),X=se.classThis??se.classConstructor??(Se==null?void 0:Se.name);return E.checkDefined(X)}function _i(se){const X=Yd(se),Ee=n0(se),lt=se.name;let Xt=lt,an=lt;if(Pa(lt)&&!Wm(lt.expression)){const ml=zO(lt);if(ml)Xt=t.updateComputedPropertyName(lt,qe(lt.expression,me,ot)),an=t.updateComputedPropertyName(lt,ml.left);else{const ho=t.createTempVariable(i);sa(ho,lt.expression);const Vc=qe(lt.expression,me,ot),$a=t.createAssignment(ho,Vc);sa($a,lt.expression),Xt=t.updateComputedPropertyName(lt,$a),an=t.updateComputedPropertyName(lt,ho)}}const rn=Dr(se.modifiers,Oe,ta),En=ZV(t,se,rn,se.initializer);dn(En,se),Qr(En,3072),sa(En,Ee);const li=Ms(se)?yr():t.createThis(),gn=Oie(t,se,rn,Xt,li);dn(gn,se),Nc(gn,X),sa(gn,Ee);const Ps=t.createModifiersFromModifierFlags($d(rn)),Qo=Lie(t,se,Ps,an,li);return dn(Qo,se),Qr(Qo,3072),sa(Qo,Ee),mA([En,gn,Qo],$e,Tl)}function ln(se){if(Kn(se)){const X=zs(se.name);if(E.assert(X,"Undeclared private name for property declaration."),!X.isValid)return se;if(X.isStatic&&!P){const Ee=Tt(se,t.createThis());if(Ee)return t.createClassStaticBlockDeclaration(t.createBlock([Ee],!0))}return}return T&&!Ms(se)&&(q!=null&&q.data)&&q.data.facts&16?t.updatePropertyDeclaration(se,Dr(se.modifiers,me,Oo),se.name,void 0,void 0,void 0):(M_(se,we)&&(se=W_(e,se)),t.updatePropertyDeclaration(se,Dr(se.modifiers,Oe,ta),qe(se.name,Fe,Ac),void 0,void 0,qe(se.initializer,me,ot)))}function Ht(se){if(w&&!s_(se)){const X=Cn(se.name,!!se.initializer||y);if(X&&is().push(...Mie(X)),Ms(se)&&!P){const Ee=Tt(se,t.createThis());if(Ee){const lt=t.createClassStaticBlockDeclaration(t.createBlock([Ee]));return dn(lt,se),Nc(lt,se),Nc(Ee,{pos:-1,end:-1}),O1(Ee,void 0),YT(Ee,void 0),lt}}return}return t.updatePropertyDeclaration(se,Dr(se.modifiers,Oe,ta),qe(se.name,Fe,Ac),void 0,void 0,qe(se.initializer,me,ot))}function Ue(se){return E.assert(!Vf(se),"Decorators should already have been transformed and elided."),Iu(se)?ln(se):Ht(se)}function Et(){return F===-1||F===3&&!!(q!=null&&q.data)&&!!(q.data.facts&16)}function fr(se){return s_(se)&&(Et()||Bc(se)&&Wp(se)&32)?_i(se):Ue(se)}function Hn(){return!!ae&&Bc(ae)&&X0(ae)&&s_(ic(ae))}function ei(se){if(Hn()){const X=xc(se);X.kind===110&&oe.add(X)}}function Ii(se,X){return X=qe(X,me,ot),ei(X),ns(se,X)}function ns(se,X){switch(Nc(X,A1(X,-1)),se.kind){case"a":return n().createClassPrivateFieldGetHelper(X,se.brandCheckIdentifier,se.kind,se.getterName);case"m":return n().createClassPrivateFieldGetHelper(X,se.brandCheckIdentifier,se.kind,se.methodName);case"f":return n().createClassPrivateFieldGetHelper(X,se.brandCheckIdentifier,se.kind,se.isStatic?se.variableName:void 0);case"untransformed":return E.fail("Access helpers should not be created for untransformed private elements");default:E.assertNever(se,"Unknown private element type")}}function Vs(se){if(Pi(se.name)){const X=zs(se.name);if(X)return Ke(dn(Ii(X,se.expression),se),se)}if(U&&ae&&o_(se)&&Ie(se.name)&&B3(ae)&&(q!=null&&q.data)){const{classConstructor:X,superClassReference:Ee,facts:lt}=q.data;if(lt&1)return Wr(se);if(X&&Ee){const Xt=t.createReflectGetCall(Ee,t.createStringLiteralFromNode(se.name),X);return dn(Xt,se.expression),Ke(Xt,se.expression),Xt}}return ur(se,me,e)}function _a(se){if(U&&ae&&o_(se)&&B3(ae)&&(q!=null&&q.data)){const{classConstructor:X,superClassReference:Ee,facts:lt}=q.data;if(lt&1)return Wr(se);if(X&&Ee){const Xt=t.createReflectGetCall(Ee,qe(se.argumentExpression,me,ot),X);return dn(Xt,se.expression),Ke(Xt,se.expression),Xt}}return ur(se,me,e)}function cr(se,X){if(se.operator===46||se.operator===47){const Ee=Va(se.operand);if(qk(Ee)){let lt;if(lt=zs(Ee.name)){const Xt=qe(Ee.expression,me,ot);ei(Xt);const{readExpression:an,initializeExpression:rn}=rt(Xt);let En=Ii(lt,an);const li=dy(se)||X?void 0:t.createTempVariable(i);return En=OO(t,se,En,i,li),En=mt(lt,rn||an,En,64),dn(En,se),Ke(En,se),li&&(En=t.createComma(En,li),Ke(En,se)),En}}else if(U&&ae&&o_(Ee)&&B3(ae)&&(q!=null&&q.data)){const{classConstructor:lt,superClassReference:Xt,facts:an}=q.data;if(an&1){const rn=Wr(Ee);return dy(se)?t.updatePrefixUnaryExpression(se,rn):t.updatePostfixUnaryExpression(se,rn)}if(lt&&Xt){let rn,En;if(Sn(Ee)?Ie(Ee.name)&&(En=rn=t.createStringLiteralFromNode(Ee.name)):Wm(Ee.argumentExpression)?En=rn=Ee.argumentExpression:(En=t.createTempVariable(i),rn=t.createAssignment(En,qe(Ee.argumentExpression,me,ot))),rn&&En){let li=t.createReflectGetCall(Xt,En,lt);Ke(li,Ee);const gn=X?void 0:t.createTempVariable(i);return li=OO(t,se,li,i,gn),li=t.createReflectSetCall(Xt,rn,li,lt),dn(li,se),Ke(li,se),gn&&(li=t.createComma(li,gn),Ke(li,se)),li}}}}return ur(se,me,e)}function br(se){return t.updateForStatement(se,qe(se.initializer,xe,Wf),qe(se.condition,me,ot),qe(se.incrementor,xe,ot),Qu(se.statement,me,e))}function Le(se){return t.updateExpressionStatement(se,qe(se.expression,xe,ot))}function rt(se){const X=xo(se)?se:t.cloneNode(se);if(se.kind===110&&oe.has(se)&&oe.add(X),Wm(se))return{readExpression:X,initializeExpression:void 0};const Ee=t.createTempVariable(i),lt=t.createAssignment(Ee,X);return{readExpression:Ee,initializeExpression:lt}}function tt(se){var X;if(qk(se.expression)&&zs(se.expression.name)){const{thisArg:Ee,target:lt}=t.createCallBinding(se.expression,i,d);return yb(se)?t.updateCallChain(se,t.createPropertyAccessChain(qe(lt,me,ot),se.questionDotToken,"call"),void 0,void 0,[qe(Ee,me,ot),...Dr(se.arguments,me,ot)]):t.updateCallExpression(se,t.createPropertyAccessExpression(qe(lt,me,ot),"call"),void 0,[qe(Ee,me,ot),...Dr(se.arguments,me,ot)])}if(U&&ae&&o_(se.expression)&&B3(ae)&&((X=q==null?void 0:q.data)!=null&&X.classConstructor)){const Ee=t.createFunctionCallCall(qe(se.expression,me,ot),q.data.classConstructor,Dr(se.arguments,me,ot));return dn(Ee,se),Ke(Ee,se),Ee}return ur(se,me,e)}function yt(se){var X;if(qk(se.tag)&&zs(se.tag.name)){const{thisArg:Ee,target:lt}=t.createCallBinding(se.tag,i,d);return t.updateTaggedTemplateExpression(se,t.createCallExpression(t.createPropertyAccessExpression(qe(lt,me,ot),"bind"),void 0,[qe(Ee,me,ot)]),void 0,qe(se.template,me,NT))}if(U&&ae&&o_(se.tag)&&B3(ae)&&((X=q==null?void 0:q.data)!=null&&X.classConstructor)){const Ee=t.createFunctionBindCall(qe(se.tag,me,ot),q.data.classConstructor,[]);return dn(Ee,se),Ke(Ee,se),t.updateTaggedTemplateExpression(se,Ee,void 0,qe(se.template,me,NT))}return ur(se,me,e)}function ne(se){if(q&&ee.set(ic(se),q),P){if(R3(se)){const lt=qe(se.body.statements[0].expression,me,ot);return nl(lt,!0)&<.left===lt.right?void 0:lt}if(Cx(se))return qe(se.body.statements[0].expression,me,ot);o();let X=yi(se,lt=>Dr(lt,me,Ei),se.body.statements);X=t.mergeLexicalEnvironment(X,s());const Ee=t.createImmediatelyInvokedArrowFunction(X);return dn(Va(Ee.expression),se),Qd(Va(Ee.expression),4),dn(Ee,se),Ke(Ee,se),Ee}}function we(se){if(kl(se)&&!se.name){const X=P9(se);return ct(X,Cx)?!1:(P||!!Wp(se))&&ct(X,lt=>ec(lt)||Iu(lt)||w&&gA(lt))}return!1}function et(se,X){if(e0(se)){const Ee=pe;pe=void 0,se=t.updateBinaryExpression(se,qe(se.left,ft,ot),se.operatorToken,qe(se.right,me,ot));const lt=ct(pe)?t.inlineExpressions(yD([...pe,se])):se;return pe=Ee,lt}if(nl(se)){M_(se,we)&&(se=W_(e,se),E.assertNode(se,nl));const Ee=xc(se.left,9);if(qk(Ee)){const lt=zs(Ee.name);if(lt)return Ke(dn(mt(lt,Ee.expression,se.right,se.operatorToken.kind),se),se)}else if(U&&ae&&o_(se.left)&&B3(ae)&&(q!=null&&q.data)){const{classConstructor:lt,superClassReference:Xt,facts:an}=q.data;if(an&1)return t.updateBinaryExpression(se,Wr(se.left),se.operatorToken,qe(se.right,me,ot));if(lt&&Xt){let rn=ko(se.left)?qe(se.left.argumentExpression,me,ot):Ie(se.left.name)?t.createStringLiteralFromNode(se.left.name):void 0;if(rn){let En=qe(se.right,me,ot);if(O3(se.operatorToken.kind)){let gn=rn;Wm(rn)||(gn=t.createTempVariable(i),rn=t.createAssignment(gn,rn));const Ps=t.createReflectGetCall(Xt,gn,lt);dn(Ps,se.left),Ke(Ps,se.left),En=t.createBinaryExpression(Ps,L3(se.operatorToken.kind),En),Ke(En,se)}const li=X?void 0:t.createTempVariable(i);return li&&(En=t.createAssignment(li,En),Ke(li,se)),En=t.createReflectSetCall(Xt,rn,En,lt),dn(En,se),Ke(En,se),li&&(En=t.createComma(En,li),Ke(En,se)),En}}}}return BMe(se)?at(se):ur(se,me,e)}function B(se,X){const Ee=b9(se.elements,xe);return t.updateCommaListExpression(se,Ee)}function Ge(se,X){const Ee=X?xe:me,lt=qe(se.expression,Ee,ot);return t.updateParenthesizedExpression(se,lt)}function mt(se,X,Ee,lt){if(X=qe(X,me,ot),Ee=qe(Ee,me,ot),ei(X),O3(lt)){const{readExpression:Xt,initializeExpression:an}=rt(X);X=an||Xt,Ee=t.createBinaryExpression(ns(se,Xt),L3(lt),Ee)}switch(Nc(X,A1(X,-1)),se.kind){case"a":return n().createClassPrivateFieldSetHelper(X,se.brandCheckIdentifier,Ee,se.kind,se.setterName);case"m":return n().createClassPrivateFieldSetHelper(X,se.brandCheckIdentifier,Ee,se.kind,void 0);case"f":return n().createClassPrivateFieldSetHelper(X,se.brandCheckIdentifier,Ee,se.kind,se.isStatic?se.variableName:void 0);case"untransformed":return E.fail("Access helpers should not be created for untransformed private elements");default:E.assertNever(se,"Unknown private element type")}}function Be(se){return An(se.members,Vse)}function nt(se){var X;let Ee=0;const lt=ic(se);Xc(lt)&&Qh(S,lt)&&(Ee|=1),P&&(cq(se)||w9(se))&&(Ee|=2);let Xt=!1,an=!1,rn=!1,En=!1;for(const gn of se.members)Ms(gn)?((gn.name&&(Pi(gn.name)||s_(gn))&&P||s_(gn)&&F===-1&&!se.name&&!((X=se.emitNode)!=null&&X.classThis))&&(Ee|=2),(xs(gn)||ec(gn))&&(J&&gn.transformFlags&16384&&(Ee|=8,Ee&1||(Ee|=2)),U&&gn.transformFlags&134217728&&(Ee&1||(Ee|=6)))):Zv(ic(gn))||(s_(gn)?(En=!0,rn||(rn=Iu(gn))):Iu(gn)?(rn=!0,f.getNodeCheckFlags(gn)&262144&&(Ee|=2)):xs(gn)&&(Xt=!0,an||(an=!!gn.initializer)));return(k&&Xt||T&&an||P&&rn||P&&En&&F===-1)&&(Ee|=16),Ee}function Dt(se){var X;if((((X=q==null?void 0:q.data)==null?void 0:X.facts)||0)&4){const lt=t.createTempVariable(i,!0);return ci().superClassReference=lt,t.updateExpressionWithTypeArguments(se,t.createAssignment(lt,qe(se.expression,me,ot)),void 0)}return ur(se,me,e)}function ir(se,X){var Ee;const lt=Se,Xt=pe,an=q;Se=se,pe=void 0,Qi();const rn=Wp(se)&32;if(P||rn){const gn=us(se);if(gn&&Ie(gn))In().data.className=gn;else if((Ee=se.emitNode)!=null&&Ee.assignedName&&aa(se.emitNode.assignedName)){if(se.emitNode.assignedName.textSourceNode&&Ie(se.emitNode.assignedName.textSourceNode))In().data.className=se.emitNode.assignedName.textSourceNode;else if(Sf(se.emitNode.assignedName.text,d)){const Ps=t.createIdentifier(se.emitNode.assignedName.text);In().data.className=Ps}}}if(P){const gn=Be(se);ct(gn)&&(In().data.weakSetName=Ol("instances",gn[0].name))}const En=nt(se);En&&(ci().facts=En),En&8&&fi();const li=X(se,En);return pi(),E.assert(q===an),Se=lt,pe=Xt,li}function Yt(se){return ir(se,Kt)}function Kt(se,X){var Ee,lt;let Xt;if(X&2)if(P&&((Ee=se.emitNode)!=null&&Ee.classThis))ci().classConstructor=se.emitNode.classThis,Xt=t.createAssignment(se.emitNode.classThis,t.getInternalName(se));else{const $a=t.createTempVariable(i,!0);ci().classConstructor=t.cloneNode($a),Xt=t.createAssignment($a,t.getInternalName(se))}(lt=se.emitNode)!=null&<.classThis&&(ci().classThis=se.emitNode.classThis);const an=f.getNodeCheckFlags(se)&262144,rn=Rn(se,32),En=Rn(se,2048);let li=Dr(se.modifiers,Oe,ta);const gn=Dr(se.heritageClauses,De,kf),{members:Ps,prologue:Qo}=le(se),ml=[];if(Xt&&is().unshift(Xt),ct(pe)&&ml.push(t.createExpressionStatement(t.inlineExpressions(pe))),T||P||Wp(se)&32){const $a=P9(se);ct($a)&&_t(ml,$a,t.getInternalName(se))}ml.length>0&&rn&&En&&(li=Dr(li,$a=>Ww($a)?void 0:$a,ta),ml.push(t.createExportAssignment(void 0,!1,t.getLocalName(se,!1,!0))));const ho=ci().classConstructor;an&&ho&&(Nr(),ue[cu(se)]=ho);const Vc=t.updateClassDeclaration(se,li,se.name,void 0,gn,Ps);return ml.unshift(Vc),Qo&&ml.unshift(t.createExpressionStatement(Qo)),ml}function W(se){return ir(se,Pe)}function Pe(se,X){var Ee,lt,Xt;const an=!!(X&1),rn=P9(se),En=f.getNodeCheckFlags(se),li=En&262144;let gn;function Ps(){var ol;if(P&&((ol=se.emitNode)!=null&&ol.classThis))return ci().classConstructor=se.emitNode.classThis;const Pp=En&32768,Ju=t.createTempVariable(Pp?u:i,!0);return ci().classConstructor=t.cloneNode(Ju),Ju}(Ee=se.emitNode)!=null&&Ee.classThis&&(ci().classThis=se.emitNode.classThis),X&2&&(gn??(gn=Ps()));const Qo=Dr(se.modifiers,Oe,ta),ml=Dr(se.heritageClauses,De,kf),{members:ho,prologue:Vc}=le(se),$a=t.updateClassExpression(se,Qo,se.name,void 0,ml,ho),gl=[];if(Vc&&gl.push(Vc),(P||Wp(se)&32)&&ct(rn,ol=>ec(ol)||Iu(ol)||w&&gA(ol))||ct(pe))if(an)E.assertIsDefined(H,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),ct(pe)&&Nn(H,nr(pe,t.createExpressionStatement)),ct(rn)&&_t(H,rn,((lt=se.emitNode)==null?void 0:lt.classThis)??t.getInternalName(se)),gn?gl.push(t.createAssignment(gn,$a)):P&&((Xt=se.emitNode)!=null&&Xt.classThis)?gl.push(t.createAssignment(se.emitNode.classThis,$a)):gl.push($a);else{if(gn??(gn=Ps()),li){Nr();const ol=t.cloneNode(gn);ol.emitNode.autoGenerate.flags&=-9,ue[cu(se)]=ol}gl.push(t.createAssignment(gn,$a)),Nn(gl,pe),Nn(gl,Jt(rn,gn)),gl.push(t.cloneNode(gn))}else gl.push($a);return gl.length>1&&(Qd($a,131072),gl.forEach(bu)),t.inlineExpressions(gl)}function St(se){if(!P)return ur(se,me,e)}function A(se){if(J&&ae&&ec(ae)&&(q!=null&&q.data)){const{classThis:X,classConstructor:Ee}=q.data;return X??Ee??se}return se}function le(se){const X=!!(Wp(se)&32);if(P||R){for(const rn of se.members)if(Iu(rn))if(Kn(rn))Uo(rn,rn.name,pr);else{const En=In();rS(En,rn.name,{kind:"untransformed"})}if(P&&ct(Be(se))&&V(),Et()){for(const rn of se.members)if(s_(rn)){const En=t.getGeneratedPrivateNameForNode(rn.name,void 0,"_accessor_storage");if(P||X&&Bc(rn))Uo(rn,En,uo);else{const li=In();rS(li,En,{kind:"untransformed"})}}}}let Ee=Dr(se.members,ge,Tl),lt;ct(Ee,sc)||(lt=ce(void 0,se));let Xt,an;if(!P&&ct(pe)){let rn=t.createExpressionStatement(t.inlineExpressions(pe));if(rn.transformFlags&134234112){const li=t.createTempVariable(i),gn=t.createArrowFunction(void 0,void 0,[],void 0,void 0,t.createBlock([rn]));Xt=t.createAssignment(li,gn),rn=t.createExpressionStatement(t.createCallExpression(li,void 0,[]))}const En=t.createBlock([rn]);an=t.createClassStaticBlockDeclaration(En),pe=void 0}if(lt||an){let rn;const En=wn(Ee,R3),li=wn(Ee,Cx);rn=_r(rn,En),rn=_r(rn,li),rn=_r(rn,lt),rn=_r(rn,an);const gn=En||li?An(Ee,Ps=>Ps!==En&&Ps!==li):Ee;rn=Nn(rn,gn),Ee=Ke(t.createNodeArray(rn),se.members)}return{members:Ee,prologue:Xt}}function V(){const{weakSetName:se}=In().data;E.assert(se,"weakSetName should be set in private identifier environment"),is().push(t.createAssignment(se,t.createNewExpression(t.createIdentifier("WeakSet"),void 0,[])))}function ce(se,X){if(se=qe(se,me,sc),!(q!=null&&q.data)||!(q.data.facts&16))return se;const Ee=Ud(X),lt=!!(Ee&&xc(Ee.expression).kind!==106),Xt=tc(se?se.parameters:void 0,me,e),an=Ce(X,se,lt);return an?se?(E.assert(Xt),t.updateConstructorDeclaration(se,void 0,Xt,an)):bu(dn(Ke(t.createConstructorDeclaration(void 0,Xt??[],an),se||X),se)):se}function Ne(se,X,Ee,lt,Xt,an,rn){const En=lt[Xt],li=X[En];if(Nn(se,Dr(X,me,Ei,Ee,En-Ee)),Ee=En+1,$b(li)){const gn=[];Ne(gn,li.tryBlock.statements,0,lt,Xt+1,an,rn);const Ps=t.createNodeArray(gn);Ke(Ps,li.tryBlock.statements),se.push(t.updateTryStatement(li,t.updateBlock(li.tryBlock,gn),qe(li.catchClause,me,f2),qe(li.finallyBlock,me,Cs)))}else{for(Nn(se,Dr(X,me,Ei,En,1));Ee!!ho.initializer||Pi(ho.name)||Gd(ho)));const an=Be(se),rn=ct(Xt)||ct(an);if(!X&&!rn)return Pf(void 0,me,e);c();const En=!X&&Ee;let li=0,gn=[];const Ps=[],Qo=t.createThis();if(oi(Ps,an,Qo),X){const ho=An(lt,$a=>O_(ic($a),X)),Vc=An(Xt,$a=>!O_(ic($a),X));_t(Ps,ho,Qo),_t(Ps,Vc,Qo)}else _t(Ps,Xt,Qo);if(X!=null&&X.body){li=t.copyPrologue(X.body.statements,gn,!1,me);const ho=E9(X.body.statements,li);if(ho.length)Ne(gn,X.body.statements,li,ho,0,Ps,X);else{for(;li=gn.length?X.body.multiLine??gn.length>0:gn.length>0;return Ke(t.createBlock(Ke(t.createNodeArray(gn),X?X.body.statements:se.members),ml),X?X.body:void 0)}function _t(se,X,Ee){for(const lt of X){if(Ms(lt)&&!P)continue;const Xt=Tt(lt,Ee);Xt&&se.push(Xt)}}function Tt(se,X){const Ee=ec(se)?yi(se,ne,se):ar(se,X);if(!Ee)return;const lt=t.createExpressionStatement(Ee);dn(lt,se),Qd(lt,ha(se)&3072),Nc(lt,se);const Xt=ic(se);return rs(Xt)?(sa(lt,Xt),vw(lt)):sa(lt,Xd(se)),O1(Ee,void 0),YT(Ee,void 0),Gd(Xt)&&Qd(lt,3072),lt}function Jt(se,X){const Ee=[];for(const lt of se){const Xt=ec(lt)?yi(lt,ne,lt):yi(lt,()=>ar(lt,X),void 0);Xt&&(bu(Xt),dn(Xt,lt),Qd(Xt,ha(lt)&3072),sa(Xt,Xd(lt)),Nc(Xt,lt),Ee.push(Xt))}return Ee}function ar(se,X){var Ee;const lt=ae,Xt=Er(se,X);return Xt&&Bc(se)&&((Ee=q==null?void 0:q.data)!=null&&Ee.facts)&&(dn(Xt,se),Qd(Xt,4),sa(Xt,n0(se.name)),ee.set(ic(se),q)),ae=lt,Xt}function Er(se,X){const Ee=!y;M_(se,we)&&(se=W_(e,se));const lt=Gd(se)?t.getGeneratedPrivateNameForNode(se.name):Pa(se.name)&&!Wm(se.name.expression)?t.updateComputedPropertyName(se.name,t.getGeneratedNameForNode(se.name)):se.name;if(Bc(se)&&(ae=se),Pi(lt)&&Kn(se)){const rn=zs(lt);if(rn)return rn.kind==="f"?rn.isStatic?LMe(t,rn.variableName,qe(se.initializer,me,ot)):MMe(t,X,qe(se.initializer,me,ot),rn.brandCheckIdentifier):void 0;E.fail("Undeclared private name for property declaration.")}if((Pi(lt)||Bc(se))&&!se.initializer)return;const Xt=ic(se);if(Rn(Xt,64))return;let an=qe(se.initializer,me,ot);if(O_(Xt,Xt.parent)&&Ie(lt)){const rn=t.cloneNode(lt);an?(l_(an)&&jw(an.expression)&&c3(an.expression.left,"___runInitializers")&&ux(an.expression.right)&&j_(an.expression.right.expression)&&(an=an.expression.left),an=t.inlineExpressions([an,rn])):an=rn,Qr(lt,3168),sa(rn,Xt.name),Qr(rn,3072)}else an??(an=t.createVoidZero());if(Ee||Pi(lt)){const rn=Kb(t,X,lt,lt);return Qd(rn,1024),t.createAssignment(rn,an)}else{const rn=Pa(lt)?lt.expression:Ie(lt)?t.createStringLiteral(xi(lt.escapedText)):lt,En=t.createPropertyDescriptor({value:an,configurable:!0,writable:!0,enumerable:!0});return t.createObjectDefinePropertyCall(X,rn,En)}}function Nr(){Y&1||(Y|=1,e.enableSubstitution(80),ue=[])}function fi(){Y&2||(Y|=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 oi(se,X,Ee){if(!P||!ct(X))return;const{weakSetName:lt}=In().data;E.assert(lt,"weakSetName should be set in private identifier environment"),se.push(t.createExpressionStatement(RMe(t,Ee,lt)))}function Wr(se){return Sn(se)?t.updatePropertyAccessExpression(se,t.createVoidZero(),se.name):t.updateElementAccessExpression(se,t.createVoidZero(),qe(se.argumentExpression,me,ot))}function Cn(se,X){if(Pa(se)){const Ee=zO(se),lt=qe(se.expression,me,ot),Xt=zp(lt),an=Wm(Xt);if(!(!!Ee||nl(Xt)&&Fo(Xt.left))&&!an&&X){const En=t.getGeneratedNameForNode(se);return f.getNodeCheckFlags(se)&32768?u(En):i(En),t.createAssignment(En,lt)}return an||Ie(Xt)?void 0:lt}}function Qi(){q={previous:q,data:void 0}}function pi(){q=q==null?void 0:q.previous}function ci(){return E.assert(q),q.data??(q.data={facts:0,classConstructor:void 0,classThis:void 0,superClassReference:void 0})}function In(){return E.assert(q),q.privateEnv??(q.privateEnv=Hse({className:void 0,weakSetName:void 0}))}function is(){return pe??(pe=[])}function pr(se,X,Ee,lt,Xt,an,rn){s_(se)?mo(se,X,Ee,lt,Xt,an):xs(se)?uo(se,X,Ee,lt,Xt,an):hc(se)?kc(se,X,Ee,lt,Xt,an):xf(se)?_s(se,X,Ee,lt,Xt,an,rn):J_(se)&&Ra(se,X,Ee,lt,Xt,an,rn)}function uo(se,X,Ee,lt,Xt,an,rn){if(Xt){const En=E.checkDefined(Ee.classThis??Ee.classConstructor,"classConstructor should be set in private identifier environment"),li=$i(X);rS(lt,X,{kind:"f",isStatic:!0,brandCheckIdentifier:En,variableName:li,isValid:an})}else{const En=$i(X);rS(lt,X,{kind:"f",isStatic:!1,brandCheckIdentifier:En,isValid:an}),is().push(t.createAssignment(En,t.createNewExpression(t.createIdentifier("WeakMap"),void 0,[])))}}function kc(se,X,Ee,lt,Xt,an,rn){const En=$i(X),li=Xt?E.checkDefined(Ee.classThis??Ee.classConstructor,"classConstructor should be set in private identifier environment"):E.checkDefined(lt.data.weakSetName,"weakSetName should be set in private identifier environment");rS(lt,X,{kind:"m",methodName:En,brandCheckIdentifier:li,isStatic:Xt,isValid:an})}function _s(se,X,Ee,lt,Xt,an,rn){const En=$i(X,"_get"),li=Xt?E.checkDefined(Ee.classThis??Ee.classConstructor,"classConstructor should be set in private identifier environment"):E.checkDefined(lt.data.weakSetName,"weakSetName should be set in private identifier environment");(rn==null?void 0:rn.kind)==="a"&&rn.isStatic===Xt&&!rn.getterName?rn.getterName=En:rS(lt,X,{kind:"a",getterName:En,setterName:void 0,brandCheckIdentifier:li,isStatic:Xt,isValid:an})}function Ra(se,X,Ee,lt,Xt,an,rn){const En=$i(X,"_set"),li=Xt?E.checkDefined(Ee.classThis??Ee.classConstructor,"classConstructor should be set in private identifier environment"):E.checkDefined(lt.data.weakSetName,"weakSetName should be set in private identifier environment");(rn==null?void 0:rn.kind)==="a"&&rn.isStatic===Xt&&!rn.setterName?rn.setterName=En:rS(lt,X,{kind:"a",getterName:void 0,setterName:En,brandCheckIdentifier:li,isStatic:Xt,isValid:an})}function mo(se,X,Ee,lt,Xt,an,rn){const En=$i(X,"_get"),li=$i(X,"_set"),gn=Xt?E.checkDefined(Ee.classThis??Ee.classConstructor,"classConstructor should be set in private identifier environment"):E.checkDefined(lt.data.weakSetName,"weakSetName should be set in private identifier environment");rS(lt,X,{kind:"a",getterName:En,setterName:li,brandCheckIdentifier:gn,isStatic:Xt,isValid:an})}function Uo(se,X,Ee){const lt=ci(),Xt=In(),an=sq(Xt,X),rn=Bc(se),En=!jMe(X)&&an===void 0;Ee(se,X,lt,Xt,rn,En,an)}function Ol(se,X,Ee){const{className:lt}=In().data,Xt=lt?{prefix:"_",node:lt,suffix:"_"}:"_",an=typeof se=="object"?t.getGeneratedNameForNode(se,24,Xt,Ee):typeof se=="string"?t.createUniqueName(se,16,Xt,Ee):t.createTempVariable(void 0,!0,Xt,Ee);return f.getNodeCheckFlags(X)&32768?u(an):i(an),an}function $i(se,X){const Ee=gE(se);return Ol((Ee==null?void 0:Ee.substring(1))??se,se,X)}function zs(se){const X=Gse(q,se);return(X==null?void 0:X.kind)==="untransformed"?void 0:X}function Ll(se){const X=t.getGeneratedNameForNode(se),Ee=zs(se.name);if(!Ee)return ur(se,me,e);let lt=se.expression;return(v8(se)||o_(se)||!y2(se.expression))&&(lt=t.createTempVariable(i,!0),is().push(t.createBinaryExpression(lt,64,qe(se.expression,me,ot)))),t.createAssignmentTargetWrapper(X,mt(Ee,lt,X,64))}function Qa(se){if(ua(se)||ju(se))return Wt(se);if(qk(se))return Ll(se);if(U&&ae&&o_(se)&&B3(ae)&&(q!=null&&q.data)){const{classConstructor:X,superClassReference:Ee,facts:lt}=q.data;if(lt&1)return Wr(se);if(X&&Ee){const Xt=ko(se)?qe(se.argumentExpression,me,ot):Ie(se.name)?t.createStringLiteralFromNode(se.name):void 0;if(Xt){const an=t.createTempVariable(void 0);return t.createAssignmentTargetWrapper(an,t.createReflectSetCall(Ee,Xt,an,X))}}}return ur(se,me,e)}function oa(se){if(M_(se,we)&&(se=W_(e,se)),nl(se,!0)){const X=Qa(se.left),Ee=qe(se.right,me,ot);return t.updateBinaryExpression(se,X,se.operatorToken,Ee)}return Qa(se)}function zo(se){if(S_(se.expression)){const X=Qa(se.expression);return t.updateSpreadElement(se,X)}return ur(se,me,e)}function Kf(se){if(t8(se)){if(hd(se))return zo(se);if(!pl(se))return oa(se)}return ur(se,me,e)}function Fc(se){const X=qe(se.name,me,Ac);if(nl(se.initializer,!0)){const Ee=oa(se.initializer);return t.updatePropertyAssignment(se,X,Ee)}if(S_(se.initializer)){const Ee=Qa(se.initializer);return t.updatePropertyAssignment(se,X,Ee)}return ur(se,me,e)}function rc(se){return M_(se,we)&&(se=W_(e,se)),ur(se,me,e)}function Mo(se){if(S_(se.expression)){const X=Qa(se.expression);return t.updateSpreadAssignment(se,X)}return ur(se,me,e)}function fs(se){return E.assertNode(se,e8),a0(se)?Mo(se):k_(se)?rc(se):zc(se)?Fc(se):ur(se,me,e)}function Wt(se){return ju(se)?t.updateArrayLiteralExpression(se,Dr(se.elements,Kf,ot)):t.updateObjectLiteralExpression(se,Dr(se.properties,fs,Yg))}function go(se,X,Ee){const lt=ic(X),Xt=ee.get(lt);if(Xt){const an=q,rn=fe;q=Xt,fe=K,K=!ec(lt)||!(Wp(lt)&32),re(se,X,Ee),K=fe,fe=rn,q=an;return}switch(X.kind){case 218:if(po(lt)||ha(X)&524288)break;case 262:case 176:case 177:case 178:case 174:case 172:{const an=q,rn=fe;q=void 0,fe=K,K=!1,re(se,X,Ee),K=fe,fe=rn,q=an;return}case 167:{const an=q,rn=K;q=q==null?void 0:q.previous,K=fe,re(se,X,Ee),K=rn,q=an;return}}re(se,X,Ee)}function Pl(se,X){return X=j(se,X),se===1?Ml(X):X}function Ml(se){switch(se.kind){case 80:return io(se);case 110:return q_(se)}return se}function q_(se){if(Y&2&&(q!=null&&q.data)&&!oe.has(se)){const{facts:X,classConstructor:Ee,classThis:lt}=q.data,Xt=K?lt??Ee:Ee;if(Xt)return Ke(dn(t.cloneNode(Xt),se),se);if(X&1&&S)return t.createParenthesizedExpression(t.createVoidZero())}return se}function io(se){return Yc(se)||se}function Yc(se){if(Y&1&&f.getNodeCheckFlags(se)&536870912){const X=f.getReferencedValueDeclaration(se);if(X){const Ee=ue[X.id];if(Ee){const lt=t.cloneNode(Ee);return sa(lt,se),Nc(lt,se),lt}}}}}function LMe(e,t,n){return e.createAssignment(t,e.createObjectLiteralExpression([e.createPropertyAssignment("value",n||e.createVoidZero())]))}function MMe(e,t,n,i){return e.createCallExpression(e.createPropertyAccessExpression(i,"set"),void 0,[t,n||e.createVoidZero()])}function RMe(e,t,n){return e.createCallExpression(e.createPropertyAccessExpression(n,"add"),void 0,[t])}function jMe(e){return!vb(e)&&e.escapedText==="#constructor"}function BMe(e){return Pi(e.left)&&e.operatorToken.kind===103}function JMe(e){return xs(e)&&Bc(e)}function B3(e){return ec(e)||JMe(e)}var zMe=wt({"src/compiler/transformers/classFields.ts"(){Fs()}});function iae(e){const{factory:t,hoistVariableDeclaration:n}=e,i=e.getEmitResolver(),s=e.getCompilerOptions(),o=Fa(s),c=Mu(s,"strictNullChecks");let u,f;return{serializeTypeNode:(pe,H)=>g(pe,w,H),serializeTypeOfNode:(pe,H)=>g(pe,y,H),serializeParameterTypesOfNode:(pe,H,q)=>g(pe,S,H,q),serializeReturnTypeOfNode:(pe,H)=>g(pe,k,H)};function g(pe,H,q,ee){const oe=u,Se=f;u=pe.currentLexicalScope,f=pe.currentNameScope;const ae=ee===void 0?H(q):H(q,ee);return u=oe,f=Se,ae}function d(pe){const H=i.getAllAccessorDeclarations(pe);return H.setAccessor&&vre(H.setAccessor)||H.getAccessor&&bp(H.getAccessor)}function y(pe){switch(pe.kind){case 172:case 169:return w(pe.type);case 178:case 177:return w(d(pe));case 263:case 231:case 174:return t.createIdentifier("Function");default:return t.createVoidZero()}}function S(pe,H){const q=$n(pe)?Sg(pe):As(pe)&&dp(pe.body)?pe:void 0,ee=[];if(q){const oe=T(q,H),Se=oe.length;for(let ae=0;aeoe.parent&&lx(oe.parent)&&(oe.parent.trueType===oe||oe.parent.falseType===oe)))return t.createIdentifier("Object");const q=j(pe.typeName),ee=t.createTempVariable(n);return t.createConditionalExpression(t.createTypeCheck(t.createAssignment(ee,q),"function"),void 0,ee,void 0,t.createIdentifier("Object"));case 1:return re(pe.typeName);case 2:return t.createVoidZero();case 4:return ue("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 ue("Symbol",2);case 10:return t.createIdentifier("Function");case 9:return t.createIdentifier("Promise");case 11:return t.createIdentifier("Object");default:return E.assertNever(H)}}function $(pe,H){return t.createLogicalAnd(t.createStrictInequality(t.createTypeOfExpression(pe),t.createStringLiteral("undefined")),H)}function j(pe){if(pe.kind===80){const ee=re(pe);return $(ee,ee)}if(pe.left.kind===80)return $(re(pe.left),re(pe));const H=j(pe.left),q=t.createTempVariable(n);return t.createLogicalAnd(t.createLogicalAnd(H.left,t.createStrictInequality(t.createAssignment(q,H.right),t.createVoidZero())),t.createPropertyAccessExpression(q,pe.right))}function re(pe){switch(pe.kind){case 80:const H=ba(Ke(Jm.cloneNode(pe),pe),pe.parent);return H.original=void 0,ba(H,as(u)),H;case 166:return R(pe)}}function R(pe){return t.createPropertyAccessExpression(re(pe.left),pe.right)}function Y(pe){return t.createConditionalExpression(t.createTypeCheck(t.createIdentifier(pe),"function"),void 0,t.createIdentifier(pe),void 0,t.createIdentifier("Object"))}function ue(pe,H){return oWw(Et)||ql(Et)?void 0:Et,Oo),Lr=Xd(Je),tr=De(Je),jt=c<2?t.getInternalName(Je,!1,!0):t.getLocalName(Je,!1,!0),Rt=Dr(Je.heritageClauses,y,kf);let Kn=Dr(Je.members,y,Tl),Ji=[];({members:Kn,decorationStatements:Ji}=P(Je,Kn));const yi=c>=9&&!!tr&&ct(Kn,Et=>xs(Et)&&Rn(Et,256)||ec(Et));yi&&(Kn=Ke(t.createNodeArray([t.createClassStaticBlockDeclaration(t.createBlock([t.createExpressionStatement(t.createAssignment(tr,t.createThis()))])),...Kn]),Kn));const os=t.createClassExpression(hr,pt&&Fo(pt)?void 0:pt,void 0,Rt,Kn);dn(os,Je),Ke(os,Lr);const yr=tr&&!yi?t.createAssignment(tr,os):os,_i=t.createVariableDeclaration(jt,void 0,void 0,yr);dn(_i,Je);const ln=t.createVariableDeclarationList([_i],1),Ht=t.createVariableStatement(void 0,ln);dn(Ht,Je),Ke(Ht,Lr),Nc(Ht,Je);const Ue=[Ht];if(Nn(Ue,Ji),fe(Ue,Je),zt)if(Vt){const Et=t.createExportDefault(jt);Ue.push(Et)}else{const Et=t.createExternalModuleExport(t.getDeclarationName(Je));Ue.push(Et)}return Ue}function U(Je){return t.updateClassExpression(Je,Dr(Je.modifiers,d,ta),Je.name,void 0,Dr(Je.heritageClauses,y,kf),Dr(Je.members,y,Tl))}function $(Je){return t.updateConstructorDeclaration(Je,Dr(Je.modifiers,d,ta),Dr(Je.parameters,y,rs),qe(Je.body,y,Cs))}function j(Je,pt){return Je!==pt&&(Nc(Je,pt),sa(Je,Xd(pt))),Je}function re(Je){return j(t.updateMethodDeclaration(Je,Dr(Je.modifiers,d,ta),Je.asteriskToken,E.checkDefined(qe(Je.name,y,Ac)),void 0,void 0,Dr(Je.parameters,y,rs),void 0,qe(Je.body,y,Cs)),Je)}function R(Je){return j(t.updateGetAccessorDeclaration(Je,Dr(Je.modifiers,d,ta),E.checkDefined(qe(Je.name,y,Ac)),Dr(Je.parameters,y,rs),void 0,qe(Je.body,y,Cs)),Je)}function Y(Je){return j(t.updateSetAccessorDeclaration(Je,Dr(Je.modifiers,d,ta),E.checkDefined(qe(Je.name,y,Ac)),Dr(Je.parameters,y,rs),qe(Je.body,y,Cs)),Je)}function ue(Je){if(!(Je.flags&33554432||Rn(Je,128)))return j(t.updatePropertyDeclaration(Je,Dr(Je.modifiers,d,ta),E.checkDefined(qe(Je.name,y,Ac)),void 0,void 0,qe(Je.initializer,y,ot)),Je)}function pe(Je){const pt=t.updateParameterDeclaration(Je,Fie(t,Je.modifiers),Je.dotDotDotToken,E.checkDefined(qe(Je.name,y,bb)),void 0,void 0,qe(Je.initializer,y,ot));return pt!==Je&&(Nc(pt,Je),Ke(pt,Xd(Je)),sa(pt,Xd(Je)),Qr(pt.name,64)),pt}function H(Je){return c3(Je.expression,"___metadata")}function q(Je){if(!Je)return;const{false:pt,true:zt}=r7(Je.decorators,H),Vt=[];return Nn(Vt,nr(pt,Oe)),Nn(Vt,Zs(Je.parameters,me)),Nn(Vt,nr(zt,Oe)),Vt}function ee(Je,pt,zt){Nn(Je,nr(ae(pt,zt),Vt=>t.createExpressionStatement(Vt)))}function oe(Je,pt,zt){return S8(!0,Je,zt)&&pt===Ms(Je)}function Se(Je,pt){return An(Je.members,zt=>oe(zt,pt,Je))}function ae(Je,pt){const zt=Se(Je,pt);let Vt;for(const hr of zt)Vt=_r(Vt,K(Je,hr));return Vt}function K(Je,pt){const zt=D9(pt,Je,!0),Vt=q(zt);if(!Vt)return;const hr=ge(Je,pt),Lr=be(pt,!Rn(pt,128)),tr=c>0?xs(pt)&&!Gd(pt)?t.createVoidZero():t.createNull():void 0,jt=n().createDecorateHelper(Vt,hr,Lr,tr);return Qr(jt,3072),sa(jt,Xd(pt)),jt}function fe(Je,pt){const zt=ke(pt);zt&&Je.push(dn(t.createExpressionStatement(zt),pt))}function ke(Je){const pt=iq(Je),zt=q(pt);if(!zt)return;const Vt=f&&f[cu(Je)],hr=c<2?t.getInternalName(Je,!1,!0):t.getDeclarationName(Je,!1,!0),Lr=n().createDecorateHelper(zt,hr),tr=t.createAssignment(hr,Vt?t.createAssignment(Vt,Lr):Lr);return Qr(tr,3072),sa(tr,Xd(Je)),tr}function Oe(Je){return E.checkDefined(qe(Je.expression,y,ot))}function me(Je,pt){let zt;if(Je){zt=[];for(const Vt of Je){const hr=n().createParamHelper(Oe(Vt),pt);Ke(hr,Vt.expression),Qr(hr,3072),zt.push(hr)}}return zt}function be(Je,pt){const zt=Je.name;return Pi(zt)?t.createIdentifier(""):Pa(zt)?pt&&!Wm(zt.expression)?t.getGeneratedNameForNode(zt):zt.expression:Ie(zt)?t.createStringLiteral(on(zt)):t.cloneNode(zt)}function xe(){f||(e.enableSubstitution(80),f=[])}function De(Je){if(s.getNodeCheckFlags(Je)&262144){xe();const pt=t.createUniqueName(Je.name&&!Fo(Je.name)?on(Je.name):"default");return f[cu(Je)]=pt,i(pt),pt}}function ft(Je){return t.createPropertyAccessExpression(t.getDeclarationName(Je),"prototype")}function ge(Je,pt){return Ms(pt)?t.getDeclarationName(Je):ft(Je)}function Fe(Je,pt){return pt=u(Je,pt),Je===1?$e(pt):pt}function $e(Je){switch(Je.kind){case 80:return Pt(Je)}return Je}function Pt(Je){return at(Je)??Je}function at(Je){if(f&&s.getNodeCheckFlags(Je)&536870912){const pt=s.getReferencedValueDeclaration(Je);if(pt){const zt=f[pt.id];if(zt){const Vt=t.cloneNode(zt);return sa(Vt,Je),Nc(Vt,Je),Vt}}}}}var VMe=wt({"src/compiler/transformers/legacyDecorators.ts"(){Fs()}});function aae(e){const{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:i,endLexicalEnvironment:s,hoistVariableDeclaration:o}=e,c=Fa(e.getCompilerOptions());let u,f,g,d,y,S;return Xp(e,T);function T(A){u=void 0,S=!1;const le=ur(A,Y,e);return ih(le,e.readEmitHelpers()),S&&(QT(le,32),S=!1),le}function k(){switch(f=void 0,g=void 0,d=void 0,u==null?void 0:u.kind){case"class":f=u.classInfo;break;case"class-element":f=u.next.classInfo,g=u.classThis,d=u.classSuper;break;case"name":const A=u.next.next.next;(A==null?void 0:A.kind)==="class-element"&&(f=A.next.classInfo,g=A.classThis,d=A.classSuper);break}}function w(A){u={kind:"class",next:u,classInfo:A,savedPendingExpressions:y},y=void 0,k()}function P(){E.assert((u==null?void 0:u.kind)==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${u==null?void 0:u.kind}' instead.`),y=u.savedPendingExpressions,u=u.next,k()}function F(A){var le,V;E.assert((u==null?void 0:u.kind)==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${u==null?void 0:u.kind}' instead.`),u={kind:"class-element",next:u},(ec(A)||xs(A)&&Bc(A))&&(u.classThis=(le=u.next.classInfo)==null?void 0:le.classThis,u.classSuper=(V=u.next.classInfo)==null?void 0:V.classSuper),k()}function J(){var A;E.assert((u==null?void 0:u.kind)==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${u==null?void 0:u.kind}' instead.`),E.assert(((A=u.next)==null?void 0:A.kind)==="class","Incorrect value for top.next.kind.",()=>{var le;return`Expected top.next.kind to be 'class' but got '${(le=u.next)==null?void 0:le.kind}' instead.`}),u=u.next,k()}function U(){E.assert((u==null?void 0:u.kind)==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${u==null?void 0:u.kind}' instead.`),u={kind:"name",next:u},k()}function $(){E.assert((u==null?void 0:u.kind)==="name","Incorrect value for top.kind.",()=>`Expected top.kind to be 'name' but got '${u==null?void 0:u.kind}' instead.`),u=u.next,k()}function j(){(u==null?void 0:u.kind)==="other"?(E.assert(!y),u.depth++):(u={kind:"other",next:u,depth:0,savedPendingExpressions:y},y=void 0,k())}function re(){E.assert((u==null?void 0:u.kind)==="other","Incorrect value for top.kind.",()=>`Expected top.kind to be 'other' but got '${u==null?void 0:u.kind}' instead.`),u.depth>0?(E.assert(!y),u.depth--):(y=u.savedPendingExpressions,u=u.next,k())}function R(A){return!!(A.transformFlags&33554432)||!!g&&!!(A.transformFlags&16384)||!!g&&!!d&&!!(A.transformFlags&134217728)}function Y(A){if(!R(A))return A;switch(A.kind){case 170:return E.fail("Use `modifierVisitor` instead.");case 263:return ke(A);case 231:return Oe(A);case 176:case 172:case 175:return E.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 169:return Lr(A);case 226:return Ji(A,!1);case 303:return Ht(A);case 260:return Ue(A);case 208:return Et(A);case 277:return Le(A);case 110:return Je(A);case 248:return Rt(A);case 244:return Kn(A);case 361:return os(A,!1);case 217:return rt(A,!1);case 360:return tt(A);case 213:return pt(A);case 215:return zt(A);case 224:case 225:return yi(A,!1);case 211:return Vt(A);case 212:return hr(A);case 167:return ln(A);case 174:case 178:case 177:case 218:case 262:{j();const le=ur(A,ue,e);return re(),le}default:return ur(A,ue,e)}}function ue(A){switch(A.kind){case 170:return;default:return Y(A)}}function pe(A){switch(A.kind){case 170:return;default:return A}}function H(A){switch(A.kind){case 176:return xe(A);case 174:return ge(A);case 177:return Fe(A);case 178:return $e(A);case 172:return at(A);case 175:return Pt(A);default:return Y(A)}}function q(A){switch(A.kind){case 224:case 225:return yi(A,!0);case 226:return Ji(A,!0);case 361:return os(A,!0);case 217:return rt(A,!0);default:return Y(A)}}function ee(A){let le=A.name&&Ie(A.name)&&!Fo(A.name)?on(A.name):A.name&&Pi(A.name)&&!Fo(A.name)?on(A.name).slice(1):A.name&&aa(A.name)&&Sf(A.name.text,99)?A.name.text:$n(A)?"class":"member";return Y0(A)&&(le=`get_${le}`),Xh(A)&&(le=`set_${le}`),A.name&&Pi(A.name)&&(le=`private_${le}`),Ms(A)&&(le=`static_${le}`),"_"+le}function oe(A,le){return t.createUniqueName(`${ee(A)}_${le}`,24)}function Se(A,le){return t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(A,void 0,void 0,le)],1))}function ae(A){const le=t.createUniqueName("_metadata",48);let V,ce,Ne=!1,Ce=!1,_t=!1,Tt,Jt,ar;if(sC(!1,A)){const Er=ct(A.members,Nr=>(Iu(Nr)||s_(Nr))&&Bc(Nr));Tt=t.createUniqueName("_classThis",Er?24:48)}for(const Er of A.members){if(AT(Er)&&S8(!1,Er,A))if(Bc(Er)){if(!ce){ce=t.createUniqueName("_staticExtraInitializers",48);const Nr=n().createRunInitializersHelper(Tt??t.createThis(),ce);sa(Nr,A.name??th(A)),Jt??(Jt=[]),Jt.push(Nr)}}else{if(!V){V=t.createUniqueName("_instanceExtraInitializers",48);const Nr=n().createRunInitializersHelper(t.createThis(),V);sa(Nr,A.name??th(A)),ar??(ar=[]),ar.push(Nr)}V??(V=t.createUniqueName("_instanceExtraInitializers",48))}if(ec(Er)?Cx(Er)||(Ne=!0):xs(Er)&&(Bc(Er)?Ne||(Ne=!!Er.initializer||Vf(Er)):Ce||(Ce=!Cz(Er))),(Iu(Er)||s_(Er))&&Bc(Er)&&(_t=!0),ce&&V&&Ne&&Ce&&_t)break}return{class:A,classThis:Tt,metadataReference:le,instanceMethodExtraInitializersName:V,staticMethodExtraInitializersName:ce,hasStaticInitializers:Ne,hasNonAmbientInstanceFields:Ce,hasStaticPrivateClassElements:_t,pendingStaticInitializers:Jt,pendingInstanceInitializers:ar}}function K(A){i(),!lq(A)&&Qh(!1,A)&&(A=A9(e,A,t.createStringLiteral("")));const le=t.getLocalName(A,!1,!1,!0),V=ae(A),ce=[];let Ne,Ce,_t,Tt,Jt=!1;const ar=et(iq(A));ar&&(V.classDecoratorsName=t.createUniqueName("_classDecorators",48),V.classDescriptorName=t.createUniqueName("_classDescriptor",48),V.classExtraInitializersName=t.createUniqueName("_classExtraInitializers",48),E.assertIsDefined(V.classThis),ce.push(Se(V.classDecoratorsName,t.createArrayLiteralExpression(ar)),Se(V.classDescriptorName),Se(V.classExtraInitializersName,t.createArrayLiteralExpression()),Se(V.classThis)),V.hasStaticPrivateClassElements&&(Jt=!0,S=!0));const Er=z8(A.heritageClauses,96),Nr=Er&&bl(Er.types),fi=Nr&&qe(Nr.expression,Y,ot);if(fi){V.classSuper=t.createUniqueName("_classSuper",48);const In=xc(fi),is=kl(In)&&!In.name||co(In)&&!In.name||po(In)?t.createComma(t.createNumericLiteral(0),fi):fi;ce.push(Se(V.classSuper,is));const pr=t.updateExpressionWithTypeArguments(Nr,V.classSuper,void 0),uo=t.updateHeritageClause(Er,[pr]);Tt=t.createNodeArray([uo])}const oi=V.classThis??t.createThis();w(V),Ne=_r(Ne,W(V.metadataReference,V.classSuper));let Wr=A.members;if(Wr=Dr(Wr,In=>sc(In)?In:H(In),Tl),Wr=Dr(Wr,In=>sc(In)?H(In):In,Tl),y){let In;for(let is of y){is=qe(is,function uo(kc){if(!(kc.transformFlags&16384))return kc;switch(kc.kind){case 110:return In||(In=t.createUniqueName("_outerThis",16),ce.unshift(Se(In,t.createThis()))),In;default:return ur(kc,uo,e)}},ot);const pr=t.createExpressionStatement(is);Ne=_r(Ne,pr)}y=void 0}if(P(),ct(V.pendingInstanceInitializers)&&!Sg(A)){const In=me(A,V);if(In){const is=Ud(A),pr=!!(is&&xc(is.expression).kind!==106),uo=[];if(pr){const _s=t.createSpreadElement(t.createIdentifier("arguments")),Ra=t.createCallExpression(t.createSuper(),void 0,[_s]);uo.push(t.createExpressionStatement(Ra))}Nn(uo,In);const kc=t.createBlock(uo,!0);_t=t.createConstructorDeclaration(void 0,[],kc)}}if(V.staticMethodExtraInitializersName&&ce.push(Se(V.staticMethodExtraInitializersName,t.createArrayLiteralExpression())),V.instanceMethodExtraInitializersName&&ce.push(Se(V.instanceMethodExtraInitializersName,t.createArrayLiteralExpression())),V.memberInfos&&_l(V.memberInfos,(In,is)=>{Ms(is)&&(ce.push(Se(In.memberDecoratorsName)),In.memberInitializersName&&ce.push(Se(In.memberInitializersName,t.createArrayLiteralExpression())),In.memberExtraInitializersName&&ce.push(Se(In.memberExtraInitializersName,t.createArrayLiteralExpression())),In.memberDescriptorName&&ce.push(Se(In.memberDescriptorName)))}),V.memberInfos&&_l(V.memberInfos,(In,is)=>{Ms(is)||(ce.push(Se(In.memberDecoratorsName)),In.memberInitializersName&&ce.push(Se(In.memberInitializersName,t.createArrayLiteralExpression())),In.memberExtraInitializersName&&ce.push(Se(In.memberExtraInitializersName,t.createArrayLiteralExpression())),In.memberDescriptorName&&ce.push(Se(In.memberDescriptorName)))}),Ne=Nn(Ne,V.staticNonFieldDecorationStatements),Ne=Nn(Ne,V.nonStaticNonFieldDecorationStatements),Ne=Nn(Ne,V.staticFieldDecorationStatements),Ne=Nn(Ne,V.nonStaticFieldDecorationStatements),V.classDescriptorName&&V.classDecoratorsName&&V.classExtraInitializersName&&V.classThis){Ne??(Ne=[]);const In=t.createPropertyAssignment("value",oi),is=t.createObjectLiteralExpression([In]),pr=t.createAssignment(V.classDescriptorName,is),uo=t.createPropertyAccessExpression(oi,"name"),kc=n().createESDecorateHelper(t.createNull(),pr,V.classDecoratorsName,{kind:"class",name:uo,metadata:V.metadataReference},t.createNull(),V.classExtraInitializersName),_s=t.createExpressionStatement(kc);sa(_s,th(A)),Ne.push(_s);const Ra=t.createPropertyAccessExpression(V.classDescriptorName,"value"),mo=t.createAssignment(V.classThis,Ra),Uo=t.createAssignment(le,mo);Ne.push(t.createExpressionStatement(Uo))}if(Ne.push(Pe(oi,V.metadataReference)),ct(V.pendingStaticInitializers)){for(const In of V.pendingStaticInitializers){const is=t.createExpressionStatement(In);sa(is,n0(In)),Ce=_r(Ce,is)}V.pendingStaticInitializers=void 0}if(V.classExtraInitializersName){const In=n().createRunInitializersHelper(oi,V.classExtraInitializersName),is=t.createExpressionStatement(In);sa(is,A.name??th(A)),Ce=_r(Ce,is)}Ne&&Ce&&!V.hasStaticInitializers&&(Nn(Ne,Ce),Ce=void 0);const Cn=Ne&&t.createClassStaticBlockDeclaration(t.createBlock(Ne,!0));Cn&&Jt&&bw(Cn,32);const Qi=Ce&&t.createClassStaticBlockDeclaration(t.createBlock(Ce,!0));if(Cn||_t||Qi){const In=[],is=Wr.findIndex(Cx);Cn?(Nn(In,Wr,0,is+1),In.push(Cn),Nn(In,Wr,is+1)):Nn(In,Wr),_t&&In.push(_t),Qi&&In.push(Qi),Wr=Ke(t.createNodeArray(In),Wr)}const pi=s();let ci;if(ar){ci=t.createClassExpression(void 0,void 0,void 0,Tt,Wr),V.classThis&&(ci=Zse(t,ci,V.classThis));const In=t.createVariableDeclaration(le,void 0,void 0,ci),is=t.createVariableDeclarationList([In]),pr=V.classThis?t.createAssignment(le,V.classThis):le;ce.push(t.createVariableStatement(void 0,is),t.createReturnStatement(pr))}else ci=t.createClassExpression(void 0,A.name,void 0,Tt,Wr),ce.push(t.createReturnStatement(ci));if(Jt){QT(ci,32);for(const In of ci.members)(Iu(In)||s_(In))&&Bc(In)&&QT(In,32)}return dn(ci,A),t.createImmediatelyInvokedArrowFunction(t.mergeLexicalEnvironment(ce,pi))}function fe(A){return Qh(!1,A)||vE(!1,A)}function ke(A){if(fe(A)){const le=[],V=ic(A,$n)??A,ce=V.name?t.createStringLiteralFromNode(V.name):t.createStringLiteral("default"),Ne=Rn(A,32),Ce=Rn(A,2048);if(A.name||(A=A9(e,A,ce)),Ne&&Ce){const _t=K(A);if(A.name){const Tt=t.createVariableDeclaration(t.getLocalName(A),void 0,void 0,_t);dn(Tt,A);const Jt=t.createVariableDeclarationList([Tt],1),ar=t.createVariableStatement(void 0,Jt);le.push(ar);const Er=t.createExportDefault(t.getDeclarationName(A));dn(Er,A),Nc(Er,Yd(A)),sa(Er,th(A)),le.push(Er)}else{const Tt=t.createExportDefault(_t);dn(Tt,A),Nc(Tt,Yd(A)),sa(Tt,th(A)),le.push(Tt)}}else{E.assertIsDefined(A.name,"A class declaration that is not a default export must have a name.");const _t=K(A),Tt=Ne?oi=>nx(oi)?void 0:pe(oi):pe,Jt=Dr(A.modifiers,Tt,ta),ar=t.getLocalName(A,!1,!0),Er=t.createVariableDeclaration(ar,void 0,void 0,_t);dn(Er,A);const Nr=t.createVariableDeclarationList([Er],1),fi=t.createVariableStatement(Jt,Nr);if(dn(fi,A),Nc(fi,Yd(A)),le.push(fi),Ne){const oi=t.createExternalModuleExport(ar);dn(oi,A),le.push(oi)}}return xm(le)}else{const le=Dr(A.modifiers,pe,ta),V=Dr(A.heritageClauses,Y,kf);w(void 0);const ce=Dr(A.members,H,Tl);return P(),t.updateClassDeclaration(A,le,A.name,void 0,V,ce)}}function Oe(A){if(fe(A)){const le=K(A);return dn(le,A),le}else{const le=Dr(A.modifiers,pe,ta),V=Dr(A.heritageClauses,Y,kf);w(void 0);const ce=Dr(A.members,H,Tl);return P(),t.updateClassExpression(A,le,A.name,void 0,V,ce)}}function me(A,le){if(ct(le.pendingInstanceInitializers)){const V=[];return V.push(t.createExpressionStatement(t.inlineExpressions(le.pendingInstanceInitializers))),le.pendingInstanceInitializers=void 0,V}}function be(A,le,V,ce,Ne,Ce){const _t=ce[Ne],Tt=le[_t];if(Nn(A,Dr(le,Y,Ei,V,_t-V)),$b(Tt)){const Jt=[];be(Jt,Tt.tryBlock.statements,0,ce,Ne+1,Ce);const ar=t.createNodeArray(Jt);Ke(ar,Tt.tryBlock.statements),A.push(t.updateTryStatement(Tt,t.updateBlock(Tt.tryBlock,Jt),qe(Tt.catchClause,Y,f2),qe(Tt.finallyBlock,Y,Cs)))}else Nn(A,Dr(le,Y,Ei,_t,1)),Nn(A,Ce);Nn(A,Dr(le,Y,Ei,_t+1))}function xe(A){F(A);const le=Dr(A.modifiers,pe,ta),V=Dr(A.parameters,Y,rs);let ce;if(A.body&&f){const Ne=me(f.class,f);if(Ne){const Ce=[],_t=t.copyPrologue(A.body.statements,Ce,!1,Y),Tt=E9(A.body.statements,_t);Tt.length>0?be(Ce,A.body.statements,_t,Tt,0,Ne):(Nn(Ce,Ne),Nn(Ce,Dr(A.body.statements,Y,Ei))),ce=t.createBlock(Ce,!0),dn(ce,A.body),Ke(ce,A.body)}}return ce??(ce=qe(A.body,Y,Cs)),J(),t.updateConstructorDeclaration(A,le,V,ce)}function De(A,le){return A!==le&&(Nc(A,le),sa(A,th(le))),A}function ft(A,le,V){let ce,Ne,Ce,_t,Tt,Jt;if(!le){const Nr=Dr(A.modifiers,pe,ta);return U(),Ne=_i(A.name),$(),{modifiers:Nr,referencedName:ce,name:Ne,initializersName:Ce,descriptorName:Jt,thisArg:Tt}}const ar=et(D9(A,le.class,!1)),Er=Dr(A.modifiers,pe,ta);if(ar){const Nr=oe(A,"decorators"),fi=t.createArrayLiteralExpression(ar),oi=t.createAssignment(Nr,fi),Wr={memberDecoratorsName:Nr};le.memberInfos??(le.memberInfos=new Map),le.memberInfos.set(A,Wr),y??(y=[]),y.push(oi);const Cn=AT(A)||s_(A)?Ms(A)?le.staticNonFieldDecorationStatements??(le.staticNonFieldDecorationStatements=[]):le.nonStaticNonFieldDecorationStatements??(le.nonStaticNonFieldDecorationStatements=[]):xs(A)&&!s_(A)?Ms(A)?le.staticFieldDecorationStatements??(le.staticFieldDecorationStatements=[]):le.nonStaticFieldDecorationStatements??(le.nonStaticFieldDecorationStatements=[]):E.fail(),Qi=xf(A)?"getter":J_(A)?"setter":hc(A)?"method":s_(A)?"accessor":xs(A)?"field":E.fail();let pi;if(Ie(A.name)||Pi(A.name))pi={computed:!1,name:A.name};else if(qd(A.name))pi={computed:!0,name:t.createStringLiteralFromNode(A.name)};else{const In=A.name.expression;qd(In)&&!Ie(In)?pi={computed:!0,name:t.createStringLiteralFromNode(In)}:(U(),{referencedName:ce,name:Ne}=yr(A.name),pi={computed:!0,name:ce},$())}const ci={kind:Qi,name:pi,static:Ms(A),private:Pi(A.name),access:{get:xs(A)||xf(A)||hc(A),set:xs(A)||J_(A)},metadata:le.metadataReference};if(AT(A)){const In=Ms(A)?le.staticMethodExtraInitializersName:le.instanceMethodExtraInitializersName;E.assertIsDefined(In);let is;Iu(A)&&V&&(is=V(A,Dr(Er,kc=>Wn(kc,l3),ta)),Wr.memberDescriptorName=Jt=oe(A,"descriptor"),is=t.createAssignment(Jt,is));const pr=n().createESDecorateHelper(t.createThis(),is??t.createNull(),Nr,ci,t.createNull(),In),uo=t.createExpressionStatement(pr);sa(uo,th(A)),Cn.push(uo)}else if(xs(A)){Ce=Wr.memberInitializersName??(Wr.memberInitializersName=oe(A,"initializers")),_t=Wr.memberExtraInitializersName??(Wr.memberExtraInitializersName=oe(A,"extraInitializers")),Ms(A)&&(Tt=le.classThis);let In;Iu(A)&&Gd(A)&&V&&(In=V(A,void 0),Wr.memberDescriptorName=Jt=oe(A,"descriptor"),In=t.createAssignment(Jt,In));const is=n().createESDecorateHelper(s_(A)?t.createThis():t.createNull(),In??t.createNull(),Nr,ci,Ce,_t),pr=t.createExpressionStatement(is);sa(pr,th(A)),Cn.push(pr)}}return Ne===void 0&&(U(),Ne=_i(A.name),$()),!ct(Er)&&(hc(A)||xs(A))&&Qr(Ne,1024),{modifiers:Er,referencedName:ce,name:Ne,initializersName:Ce,extraInitializersName:_t,descriptorName:Jt,thisArg:Tt}}function ge(A){F(A);const{modifiers:le,name:V,descriptorName:ce}=ft(A,f,mt);if(ce)return J(),De(ir(le,V,ce),A);{const Ne=Dr(A.parameters,Y,rs),Ce=qe(A.body,Y,Cs);return J(),De(t.updateMethodDeclaration(A,le,A.asteriskToken,V,void 0,void 0,Ne,void 0,Ce),A)}}function Fe(A){F(A);const{modifiers:le,name:V,descriptorName:ce}=ft(A,f,Be);if(ce)return J(),De(Yt(le,V,ce),A);{const Ne=Dr(A.parameters,Y,rs),Ce=qe(A.body,Y,Cs);return J(),De(t.updateGetAccessorDeclaration(A,le,V,Ne,void 0,Ce),A)}}function $e(A){F(A);const{modifiers:le,name:V,descriptorName:ce}=ft(A,f,nt);if(ce)return J(),De(Kt(le,V,ce),A);{const Ne=Dr(A.parameters,Y,rs),Ce=qe(A.body,Y,Cs);return J(),De(t.updateSetAccessorDeclaration(A,le,V,Ne,Ce),A)}}function Pt(A){F(A);let le;if(Cx(A))le=ur(A,Y,e);else if(R3(A)){const V=g;g=void 0,le=ur(A,Y,e),g=V}else if(A=ur(A,Y,e),le=A,f&&(f.hasStaticInitializers=!0,ct(f.pendingStaticInitializers))){const V=[];for(const Ce of f.pendingStaticInitializers){const _t=t.createExpressionStatement(Ce);sa(_t,n0(Ce)),V.push(_t)}const ce=t.createBlock(V,!0);le=[t.createClassStaticBlockDeclaration(ce),le],f.pendingStaticInitializers=void 0}return J(),le}function at(A){M_(A,tr)&&(A=W_(e,A,jt(A.initializer))),F(A),E.assert(!Cz(A),"Not yet implemented.");const{modifiers:le,name:V,initializersName:ce,extraInitializersName:Ne,descriptorName:Ce,thisArg:_t}=ft(A,f,Gd(A)?Dt:void 0);i();let Tt=qe(A.initializer,Y,ot);ce&&(Tt=n().createRunInitializersHelper(_t??t.createThis(),ce,Tt??t.createVoidZero())),Ms(A)&&f&&Tt&&(f.hasStaticInitializers=!0);const Jt=s();if(ct(Jt)&&(Tt=t.createImmediatelyInvokedArrowFunction([...Jt,t.createReturnStatement(Tt)])),f&&(Ms(A)?(Tt=we(f,!0,Tt),Ne&&(f.pendingStaticInitializers??(f.pendingStaticInitializers=[]),f.pendingStaticInitializers.push(n().createRunInitializersHelper(f.classThis??t.createThis(),Ne)))):(Tt=we(f,!1,Tt),Ne&&(f.pendingInstanceInitializers??(f.pendingInstanceInitializers=[]),f.pendingInstanceInitializers.push(n().createRunInitializersHelper(t.createThis(),Ne))))),J(),Gd(A)&&Ce){const ar=Yd(A),Er=n0(A),Nr=A.name;let fi=Nr,oi=Nr;if(Pa(Nr)&&!Wm(Nr.expression)){const ci=zO(Nr);if(ci)fi=t.updateComputedPropertyName(Nr,qe(Nr.expression,Y,ot)),oi=t.updateComputedPropertyName(Nr,ci.left);else{const In=t.createTempVariable(o);sa(In,Nr.expression);const is=qe(Nr.expression,Y,ot),pr=t.createAssignment(In,is);sa(pr,Nr.expression),fi=t.updateComputedPropertyName(Nr,pr),oi=t.updateComputedPropertyName(Nr,In)}}const Wr=Dr(le,ci=>ci.kind!==129?ci:void 0,ta),Cn=ZV(t,A,Wr,Tt);dn(Cn,A),Qr(Cn,3072),sa(Cn,Er),sa(Cn.name,A.name);const Qi=Yt(Wr,fi,Ce);dn(Qi,A),Nc(Qi,ar),sa(Qi,Er);const pi=Kt(Wr,oi,Ce);return dn(pi,A),Qr(pi,3072),sa(pi,Er),[Cn,Qi,pi]}return De(t.updatePropertyDeclaration(A,le,V,void 0,void 0,Tt),A)}function Je(A){return g??A}function pt(A){if(o_(A.expression)&&g){const le=qe(A.expression,Y,ot),V=Dr(A.arguments,Y,ot),ce=t.createFunctionCallCall(le,g,V);return dn(ce,A),Ke(ce,A),ce}return ur(A,Y,e)}function zt(A){if(o_(A.tag)&&g){const le=qe(A.tag,Y,ot),V=t.createFunctionBindCall(le,g,[]);dn(V,A),Ke(V,A);const ce=qe(A.template,Y,NT);return t.updateTaggedTemplateExpression(A,V,void 0,ce)}return ur(A,Y,e)}function Vt(A){if(o_(A)&&Ie(A.name)&&g&&d){const le=t.createStringLiteralFromNode(A.name),V=t.createReflectGetCall(d,le,g);return dn(V,A.expression),Ke(V,A.expression),V}return ur(A,Y,e)}function hr(A){if(o_(A)&&g&&d){const le=qe(A.argumentExpression,Y,ot),V=t.createReflectGetCall(d,le,g);return dn(V,A.expression),Ke(V,A.expression),V}return ur(A,Y,e)}function Lr(A){M_(A,tr)&&(A=W_(e,A,jt(A.initializer)));const le=t.updateParameterDeclaration(A,void 0,A.dotDotDotToken,qe(A.name,Y,bb),void 0,void 0,qe(A.initializer,Y,ot));return le!==A&&(Nc(le,A),Ke(le,Xd(A)),sa(le,Xd(A)),Qr(le.name,64)),le}function tr(A){return kl(A)&&!A.name&&fe(A)}function jt(A){const le=xc(A);return kl(le)&&!le.name&&!Qh(!1,le)}function Rt(A){return t.updateForStatement(A,qe(A.initializer,q,Wf),qe(A.condition,Y,ot),qe(A.incrementor,q,ot),Qu(A.statement,Y,e))}function Kn(A){return ur(A,q,e)}function Ji(A,le){if(e0(A)){const V=br(A.left),ce=qe(A.right,Y,ot);return t.updateBinaryExpression(A,V,A.operatorToken,ce)}if(nl(A)){if(M_(A,tr))return A=W_(e,A,jt(A.right)),ur(A,Y,e);if(o_(A.left)&&g&&d){let V=ko(A.left)?qe(A.left.argumentExpression,Y,ot):Ie(A.left.name)?t.createStringLiteralFromNode(A.left.name):void 0;if(V){let ce=qe(A.right,Y,ot);if(O3(A.operatorToken.kind)){let Ce=V;Wm(V)||(Ce=t.createTempVariable(o),V=t.createAssignment(Ce,V));const _t=t.createReflectGetCall(d,Ce,g);dn(_t,A.left),Ke(_t,A.left),ce=t.createBinaryExpression(_t,L3(A.operatorToken.kind),ce),Ke(ce,A)}const Ne=le?void 0:t.createTempVariable(o);return Ne&&(ce=t.createAssignment(Ne,ce),Ke(Ne,A)),ce=t.createReflectSetCall(d,V,ce,g),dn(ce,A),Ke(ce,A),Ne&&(ce=t.createComma(ce,Ne),Ke(ce,A)),ce}}}if(A.operatorToken.kind===28){const V=qe(A.left,q,ot),ce=qe(A.right,le?q:Y,ot);return t.updateBinaryExpression(A,V,A.operatorToken,ce)}return ur(A,Y,e)}function yi(A,le){if(A.operator===46||A.operator===47){const V=Va(A.operand);if(o_(V)&&g&&d){let ce=ko(V)?qe(V.argumentExpression,Y,ot):Ie(V.name)?t.createStringLiteralFromNode(V.name):void 0;if(ce){let Ne=ce;Wm(ce)||(Ne=t.createTempVariable(o),ce=t.createAssignment(Ne,ce));let Ce=t.createReflectGetCall(d,Ne,g);dn(Ce,A),Ke(Ce,A);const _t=le?void 0:t.createTempVariable(o);return Ce=OO(t,A,Ce,o,_t),Ce=t.createReflectSetCall(d,ce,Ce,g),dn(Ce,A),Ke(Ce,A),_t&&(Ce=t.createComma(Ce,_t),Ke(Ce,A)),Ce}}}return ur(A,Y,e)}function os(A,le){const V=le?b9(A.elements,q):b9(A.elements,Y,q);return t.updateCommaListExpression(A,V)}function yr(A){if(qd(A)||Pi(A)){const Ce=t.createStringLiteralFromNode(A),_t=qe(A,Y,Ac);return{referencedName:Ce,name:_t}}if(qd(A.expression)&&!Ie(A.expression)){const Ce=t.createStringLiteralFromNode(A.expression),_t=qe(A,Y,Ac);return{referencedName:Ce,name:_t}}const le=t.getGeneratedNameForNode(A);o(le);const V=n().createPropKeyHelper(qe(A.expression,Y,ot)),ce=t.createAssignment(le,V),Ne=t.updateComputedPropertyName(A,ne(ce));return{referencedName:le,name:Ne}}function _i(A){return Pa(A)?ln(A):qe(A,Y,Ac)}function ln(A){let le=qe(A.expression,Y,ot);return Wm(le)||(le=ne(le)),t.updateComputedPropertyName(A,le)}function Ht(A){return M_(A,tr)&&(A=W_(e,A,jt(A.initializer))),ur(A,Y,e)}function Ue(A){return M_(A,tr)&&(A=W_(e,A,jt(A.initializer))),ur(A,Y,e)}function Et(A){return M_(A,tr)&&(A=W_(e,A,jt(A.initializer))),ur(A,Y,e)}function fr(A){if(ua(A)||ju(A))return br(A);if(o_(A)&&g&&d){const le=ko(A)?qe(A.argumentExpression,Y,ot):Ie(A.name)?t.createStringLiteralFromNode(A.name):void 0;if(le){const V=t.createTempVariable(void 0),ce=t.createAssignmentTargetWrapper(V,t.createReflectSetCall(d,le,V,g));return dn(ce,A),Ke(ce,A),ce}}return ur(A,Y,e)}function Hn(A){if(nl(A,!0)){M_(A,tr)&&(A=W_(e,A,jt(A.right)));const le=fr(A.left),V=qe(A.right,Y,ot);return t.updateBinaryExpression(A,le,A.operatorToken,V)}else return fr(A)}function ei(A){if(S_(A.expression)){const le=fr(A.expression);return t.updateSpreadElement(A,le)}return ur(A,Y,e)}function Ii(A){return E.assertNode(A,t8),hd(A)?ei(A):pl(A)?ur(A,Y,e):Hn(A)}function ns(A){const le=qe(A.name,Y,Ac);if(nl(A.initializer,!0)){const V=Hn(A.initializer);return t.updatePropertyAssignment(A,le,V)}if(S_(A.initializer)){const V=fr(A.initializer);return t.updatePropertyAssignment(A,le,V)}return ur(A,Y,e)}function Vs(A){return M_(A,tr)&&(A=W_(e,A,jt(A.objectAssignmentInitializer))),ur(A,Y,e)}function _a(A){if(S_(A.expression)){const le=fr(A.expression);return t.updateSpreadAssignment(A,le)}return ur(A,Y,e)}function cr(A){return E.assertNode(A,e8),a0(A)?_a(A):k_(A)?Vs(A):zc(A)?ns(A):ur(A,Y,e)}function br(A){if(ju(A)){const le=Dr(A.elements,Ii,ot);return t.updateArrayLiteralExpression(A,le)}else{const le=Dr(A.properties,cr,Yg);return t.updateObjectLiteralExpression(A,le)}}function Le(A){return M_(A,tr)&&(A=W_(e,A,jt(A.expression))),ur(A,Y,e)}function rt(A,le){const V=le?q:Y,ce=qe(A.expression,V,ot);return t.updateParenthesizedExpression(A,ce)}function tt(A,le){const V=Y,ce=qe(A.expression,V,ot);return t.updatePartiallyEmittedExpression(A,ce)}function yt(A,le){return ct(A)&&(le?l_(le)?(A.push(le.expression),le=t.updateParenthesizedExpression(le,t.inlineExpressions(A))):(A.push(le),le=t.inlineExpressions(A)):le=t.inlineExpressions(A)),le}function ne(A){const le=yt(y,A);return E.assertIsDefined(le),le!==A&&(y=void 0),le}function we(A,le,V){const ce=yt(le?A.pendingStaticInitializers:A.pendingInstanceInitializers,V);return ce!==V&&(le?A.pendingStaticInitializers=void 0:A.pendingInstanceInitializers=void 0),ce}function et(A){if(!A)return;const le=[];return Nn(le,nr(A.decorators,B)),le}function B(A){const le=qe(A.expression,Y,ot);Qr(le,3072);const V=xc(le);if(oo(V)){const{target:ce,thisArg:Ne}=t.createCallBinding(le,o,c,!0);return t.restoreOuterExpressions(le,t.createFunctionBindCall(ce,Ne,[]))}return le}function Ge(A,le,V,ce,Ne,Ce,_t){const Tt=t.createFunctionExpression(V,ce,void 0,void 0,Ce,void 0,_t??t.createBlock([]));dn(Tt,A),sa(Tt,th(A)),Qr(Tt,3072);const Jt=Ne==="get"||Ne==="set"?Ne:void 0,ar=t.createStringLiteralFromNode(le,void 0),Er=n().createSetFunctionNameHelper(Tt,ar,Jt),Nr=t.createPropertyAssignment(t.createIdentifier(Ne),Er);return dn(Nr,A),sa(Nr,th(A)),Qr(Nr,3072),Nr}function mt(A,le){return t.createObjectLiteralExpression([Ge(A,A.name,le,A.asteriskToken,"value",Dr(A.parameters,Y,rs),qe(A.body,Y,Cs))])}function Be(A,le){return t.createObjectLiteralExpression([Ge(A,A.name,le,void 0,"get",[],qe(A.body,Y,Cs))])}function nt(A,le){return t.createObjectLiteralExpression([Ge(A,A.name,le,void 0,"set",Dr(A.parameters,Y,rs),qe(A.body,Y,Cs))])}function Dt(A,le){return t.createObjectLiteralExpression([Ge(A,A.name,le,void 0,"get",[],t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(A.name)))])),Ge(A,A.name,le,void 0,"set",[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(A.name)),t.createIdentifier("value")))]))])}function ir(A,le,V){return A=Dr(A,ce=>ix(ce)?ce:void 0,ta),t.createGetAccessorDeclaration(A,le,[],void 0,t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(V,t.createIdentifier("value")))]))}function Yt(A,le,V){return A=Dr(A,ce=>ix(ce)?ce:void 0,ta),t.createGetAccessorDeclaration(A,le,[],void 0,t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(V,t.createIdentifier("get")),t.createThis(),[]))]))}function Kt(A,le,V){return A=Dr(A,ce=>ix(ce)?ce:void 0,ta),t.createSetAccessorDeclaration(A,le,[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(V,t.createIdentifier("set")),t.createThis(),[t.createIdentifier("value")]))]))}function W(A,le){const V=t.createVariableDeclaration(A,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,[le?St(le):t.createNull()]),t.createToken(59),t.createVoidZero()));return t.createVariableStatement(void 0,t.createVariableDeclarationList([V],2))}function Pe(A,le){const V=t.createObjectDefinePropertyCall(A,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata"),t.createPropertyDescriptor({configurable:!0,writable:!0,enumerable:!0,value:le},!0));return Qr(t.createIfStatement(le,t.createExpressionStatement(V)),1)}function St(A){return t.createBinaryExpression(t.createElementAccessExpression(A,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),61,t.createNull())}}var UMe=wt({"src/compiler/transformers/esDecorators.ts"(){Fs()}});function oae(e){const{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:i,endLexicalEnvironment:s,hoistVariableDeclaration:o}=e,c=e.getEmitResolver(),u=e.getCompilerOptions(),f=Fa(u);let g,d=0,y,S,T,k;const w=[];let P=0;const F=e.onEmitNode,J=e.onSubstituteNode;return e.onEmitNode=Kn,e.onSubstituteNode=Ji,Xp(e,U);function U(Ue){if(Ue.isDeclarationFile)return Ue;$(1,!1),$(2,!kz(Ue,u));const Et=ur(Ue,H,e);return ih(Et,e.readEmitHelpers()),Et}function $(Ue,Et){P=Et?P|Ue:P&~Ue}function j(Ue){return(P&Ue)!==0}function re(){return!j(1)}function R(){return j(2)}function Y(Ue,Et,fr){const Hn=Ue&~P;if(Hn){$(Hn,!0);const ei=Et(fr);return $(Hn,!1),ei}return Et(fr)}function ue(Ue){return ur(Ue,H,e)}function pe(Ue){switch(Ue.kind){case 218:case 262:case 174:case 177:case 178:case 176:return Ue;case 169:case 208:case 260:break;case 80:if(k&&c.isArgumentsLocalBinding(Ue))return k;break}return ur(Ue,pe,e)}function H(Ue){if(!(Ue.transformFlags&256))return k?pe(Ue):Ue;switch(Ue.kind){case 134:return;case 223:return fe(Ue);case 174:return Y(3,Oe,Ue);case 262:return Y(3,xe,Ue);case 218:return Y(3,De,Ue);case 219:return Y(1,ft,Ue);case 211:return S&&Sn(Ue)&&Ue.expression.kind===108&&S.add(Ue.name.escapedText),ur(Ue,H,e);case 212:return S&&Ue.expression.kind===108&&(T=!0),ur(Ue,H,e);case 177:return Y(3,me,Ue);case 178:return Y(3,be,Ue);case 176:return Y(3,ke,Ue);case 263:case 231:return Y(3,ue,Ue);default:return ur(Ue,H,e)}}function q(Ue){if(ore(Ue))switch(Ue.kind){case 243:return oe(Ue);case 248:return K(Ue);case 249:return Se(Ue);case 250:return ae(Ue);case 299:return ee(Ue);case 241:case 255:case 269:case 296:case 297:case 258:case 246:case 247:case 245:case 254:case 256:return ur(Ue,q,e);default:return E.assertNever(Ue,"Unhandled node.")}return H(Ue)}function ee(Ue){const Et=new Set;ge(Ue.variableDeclaration,Et);let fr;if(Et.forEach((Hn,ei)=>{y.has(ei)&&(fr||(fr=new Set(y)),fr.delete(ei))}),fr){const Hn=y;y=fr;const ei=ur(Ue,q,e);return y=Hn,ei}else return ur(Ue,q,e)}function oe(Ue){if(Fe(Ue.declarationList)){const Et=$e(Ue.declarationList,!1);return Et?t.createExpressionStatement(Et):void 0}return ur(Ue,H,e)}function Se(Ue){return t.updateForInStatement(Ue,Fe(Ue.initializer)?$e(Ue.initializer,!0):E.checkDefined(qe(Ue.initializer,H,Wf)),E.checkDefined(qe(Ue.expression,H,ot)),Qu(Ue.statement,q,e))}function ae(Ue){return t.updateForOfStatement(Ue,qe(Ue.awaitModifier,H,EV),Fe(Ue.initializer)?$e(Ue.initializer,!0):E.checkDefined(qe(Ue.initializer,H,Wf)),E.checkDefined(qe(Ue.expression,H,ot)),Qu(Ue.statement,q,e))}function K(Ue){const Et=Ue.initializer;return t.updateForStatement(Ue,Fe(Et)?$e(Et,!1):qe(Ue.initializer,H,Wf),qe(Ue.condition,H,ot),qe(Ue.incrementor,H,ot),Qu(Ue.statement,q,e))}function fe(Ue){return re()?ur(Ue,H,e):dn(Ke(t.createYieldExpression(void 0,qe(Ue.expression,H,ot)),Ue),Ue)}function ke(Ue){const Et=k;k=void 0;const fr=t.updateConstructorDeclaration(Ue,Dr(Ue.modifiers,H,ta),tc(Ue.parameters,H,e),zt(Ue));return k=Et,fr}function Oe(Ue){let Et;const fr=fl(Ue),Hn=k;k=void 0;const ei=t.updateMethodDeclaration(Ue,Dr(Ue.modifiers,H,Oo),Ue.asteriskToken,Ue.name,void 0,void 0,Et=fr&2?hr(Ue):tc(Ue.parameters,H,e),void 0,fr&2?Lr(Ue,Et):zt(Ue));return k=Hn,ei}function me(Ue){const Et=k;k=void 0;const fr=t.updateGetAccessorDeclaration(Ue,Dr(Ue.modifiers,H,Oo),Ue.name,tc(Ue.parameters,H,e),void 0,zt(Ue));return k=Et,fr}function be(Ue){const Et=k;k=void 0;const fr=t.updateSetAccessorDeclaration(Ue,Dr(Ue.modifiers,H,Oo),Ue.name,tc(Ue.parameters,H,e),zt(Ue));return k=Et,fr}function xe(Ue){let Et;const fr=k;k=void 0;const Hn=fl(Ue),ei=t.updateFunctionDeclaration(Ue,Dr(Ue.modifiers,H,Oo),Ue.asteriskToken,Ue.name,void 0,Et=Hn&2?hr(Ue):tc(Ue.parameters,H,e),void 0,Hn&2?Lr(Ue,Et):Pf(Ue.body,H,e));return k=fr,ei}function De(Ue){let Et;const fr=k;k=void 0;const Hn=fl(Ue),ei=t.updateFunctionExpression(Ue,Dr(Ue.modifiers,H,ta),Ue.asteriskToken,Ue.name,void 0,Et=Hn&2?hr(Ue):tc(Ue.parameters,H,e),void 0,Hn&2?Lr(Ue,Et):Pf(Ue.body,H,e));return k=fr,ei}function ft(Ue){let Et;const fr=fl(Ue);return t.updateArrowFunction(Ue,Dr(Ue.modifiers,H,ta),void 0,Et=fr&2?hr(Ue):tc(Ue.parameters,H,e),void 0,Ue.equalsGreaterThanToken,fr&2?Lr(Ue,Et):Pf(Ue.body,H,e))}function ge({name:Ue},Et){if(Ie(Ue))Et.add(Ue.escapedText);else for(const fr of Ue.elements)pl(fr)||ge(fr,Et)}function Fe(Ue){return!!Ue&&dl(Ue)&&!(Ue.flags&7)&&Ue.declarations.some(pt)}function $e(Ue,Et){Pt(Ue);const fr=BE(Ue);return fr.length===0?Et?qe(t.converters.convertToAssignmentElementTarget(Ue.declarations[0].name),H,ot):void 0:t.inlineExpressions(nr(fr,Je))}function Pt(Ue){er(Ue.declarations,at)}function at({name:Ue}){if(Ie(Ue))o(Ue);else for(const Et of Ue.elements)pl(Et)||at(Et)}function Je(Ue){const Et=sa(t.createAssignment(t.converters.convertToAssignmentElementTarget(Ue.name),Ue.initializer),Ue);return E.checkDefined(qe(Et,H,ot))}function pt({name:Ue}){if(Ie(Ue))return y.has(Ue.escapedText);for(const Et of Ue.elements)if(!pl(Et)&&pt(Et))return!0;return!1}function zt(Ue){E.assertIsDefined(Ue.body);const Et=S,fr=T;S=new Set,T=!1;let Hn=Pf(Ue.body,H,e);const ei=ic(Ue,fo);if(f>=2&&c.getNodeCheckFlags(Ue)&384&&(fl(ei)&3)!==3){if(Rt(),S.size){const ns=N9(t,c,Ue,S);w[Oa(ns)]=!0;const Vs=Hn.statements.slice();mg(Vs,[ns]),Hn=t.updateBlock(Hn,Vs)}T&&(c.getNodeCheckFlags(Ue)&256?ZT(Hn,Cw):c.getNodeCheckFlags(Ue)&128&&ZT(Hn,kw))}return S=Et,T=fr,Hn}function Vt(){E.assert(k);const Ue=t.createVariableDeclaration(k,void 0,void 0,t.createIdentifier("arguments")),Et=t.createVariableStatement(void 0,[Ue]);return bu(Et),Qd(Et,2097152),Et}function hr(Ue){if(hA(Ue.parameters))return tc(Ue.parameters,H,e);const Et=[];for(const Hn of Ue.parameters){if(Hn.initializer||Hn.dotDotDotToken){if(Ue.kind===219){const Ii=t.createParameterDeclaration(void 0,t.createToken(26),t.createUniqueName("args",8));Et.push(Ii)}break}const ei=t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(Hn.name,8));Et.push(ei)}const fr=t.createNodeArray(Et);return Ke(fr,Ue.parameters),fr}function Lr(Ue,Et){const fr=hA(Ue.parameters)?void 0:tc(Ue.parameters,H,e);i();const ei=ic(Ue,As).type,Ii=f<2?jt(ei):void 0,ns=Ue.kind===219,Vs=k,cr=(c.getNodeCheckFlags(Ue)&512)!==0&&!k;cr&&(k=t.createUniqueName("arguments"));let br;if(fr)if(ns){const et=[];E.assert(Et.length<=Ue.parameters.length);for(let B=0;B=2&&c.getNodeCheckFlags(Ue)&384;if(B&&(Rt(),S.size)){const mt=N9(t,c,Ue,S);w[Oa(mt)]=!0,mg(et,[mt])}cr&&mg(et,[Vt()]);const Ge=t.createBlock(et,!0);Ke(Ge,Ue.body),B&&T&&(c.getNodeCheckFlags(Ue)&256?ZT(Ge,Cw):c.getNodeCheckFlags(Ue)&128&&ZT(Ge,kw)),we=Ge}return y=Le,ns||(S=rt,T=tt,k=Vs),we}function tr(Ue,Et){return Cs(Ue)?t.updateBlock(Ue,Dr(Ue.statements,q,Ei,Et)):t.converters.convertToFunctionBlock(E.checkDefined(qe(Ue,q,Z7)))}function jt(Ue){const Et=Ue&&b8(Ue);if(Et&&b_(Et)){const fr=c.getTypeReferenceSerializationKind(Et);if(fr===1||fr===0)return Et}}function Rt(){g&1||(g|=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 Kn(Ue,Et,fr){if(g&1&&ln(Et)){const Hn=c.getNodeCheckFlags(Et)&384;if(Hn!==d){const ei=d;d=Hn,F(Ue,Et,fr),d=ei;return}}else if(g&&w[Oa(Et)]){const Hn=d;d=0,F(Ue,Et,fr),d=Hn;return}F(Ue,Et,fr)}function Ji(Ue,Et){return Et=J(Ue,Et),Ue===1&&d?yi(Et):Et}function yi(Ue){switch(Ue.kind){case 211:return os(Ue);case 212:return yr(Ue);case 213:return _i(Ue)}return Ue}function os(Ue){return Ue.expression.kind===108?Ke(t.createPropertyAccessExpression(t.createUniqueName("_super",48),Ue.name),Ue):Ue}function yr(Ue){return Ue.expression.kind===108?Ht(Ue.argumentExpression,Ue):Ue}function _i(Ue){const Et=Ue.expression;if(o_(Et)){const fr=Sn(Et)?os(Et):yr(Et);return t.createCallExpression(t.createPropertyAccessExpression(fr,"call"),void 0,[t.createThis(),...Ue.arguments])}return Ue}function ln(Ue){const Et=Ue.kind;return Et===263||Et===176||Et===174||Et===177||Et===178}function Ht(Ue,Et){return d&256?Ke(t.createPropertyAccessExpression(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[Ue]),"value"),Et):Ke(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[Ue]),Et)}}function N9(e,t,n,i){const s=(t.getNodeCheckFlags(n)&256)!==0,o=[];return i.forEach((c,u)=>{const f=xi(u),g=[];g.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,Qr(e.createPropertyAccessExpression(Qr(e.createSuper(),8),f),8)))),s&&g.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(Qr(e.createPropertyAccessExpression(Qr(e.createSuper(),8),f),8),e.createIdentifier("v"))))),o.push(e.createPropertyAssignment(f,e.createObjectLiteralExpression(g)))}),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(o,!0)]))],2))}var qMe=wt({"src/compiler/transformers/es2017.ts"(){Fs()}});function cae(e){const{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:i,endLexicalEnvironment:s,hoistVariableDeclaration:o}=e,c=e.getEmitResolver(),u=e.getCompilerOptions(),f=Fa(u),g=e.onEmitNode;e.onEmitNode=Vs;const d=e.onSubstituteNode;e.onSubstituteNode=_a;let y=!1,S,T,k,w=0,P=0,F,J,U,$;const j=[];return Xp(e,pe);function re(ne,we){return P!==(P&~ne|we)}function R(ne,we){const et=P;return P=(P&~ne|we)&3,et}function Y(ne){P=ne}function ue(ne){J=_r(J,t.createVariableDeclaration(ne))}function pe(ne){if(ne.isDeclarationFile)return ne;F=ne;const we=ft(ne);return ih(we,e.readEmitHelpers()),F=void 0,J=void 0,we}function H(ne){return ae(ne,!1)}function q(ne){return ae(ne,!0)}function ee(ne){if(ne.kind!==134)return ne}function oe(ne,we,et,B){if(re(et,B)){const Ge=R(et,B),mt=ne(we);return Y(Ge),mt}return ne(we)}function Se(ne){return ur(ne,H,e)}function ae(ne,we){if(!(ne.transformFlags&128))return ne;switch(ne.kind){case 223:return K(ne);case 229:return fe(ne);case 253:return ke(ne);case 256:return Oe(ne);case 210:return be(ne);case 226:return Fe(ne,we);case 361:return $e(ne,we);case 299:return Pt(ne);case 243:return at(ne);case 260:return Je(ne);case 246:case 247:case 249:return oe(Se,ne,0,2);case 250:return hr(ne,void 0);case 248:return oe(zt,ne,0,2);case 222:return Vt(ne);case 176:return oe(os,ne,2,1);case 174:return oe(ln,ne,2,1);case 177:return oe(yr,ne,2,1);case 178:return oe(_i,ne,2,1);case 262:return oe(Ht,ne,2,1);case 218:return oe(Et,ne,2,1);case 219:return oe(Ue,ne,2,0);case 169:return Ji(ne);case 244:return xe(ne);case 217:return De(ne,we);case 215:return ge(ne);case 211:return U&&Sn(ne)&&ne.expression.kind===108&&U.add(ne.name.escapedText),ur(ne,H,e);case 212:return U&&ne.expression.kind===108&&($=!0),ur(ne,H,e);case 263:case 231:return oe(Se,ne,2,1);default:return ur(ne,H,e)}}function K(ne){return T&2&&T&1?dn(Ke(t.createYieldExpression(void 0,n().createAwaitHelper(qe(ne.expression,H,ot))),ne),ne):ur(ne,H,e)}function fe(ne){if(T&2&&T&1){if(ne.asteriskToken){const we=qe(E.checkDefined(ne.expression),H,ot);return dn(Ke(t.createYieldExpression(void 0,n().createAwaitHelper(t.updateYieldExpression(ne,ne.asteriskToken,Ke(n().createAsyncDelegatorHelper(Ke(n().createAsyncValuesHelper(we),we)),we)))),ne),ne)}return dn(Ke(t.createYieldExpression(void 0,jt(ne.expression?qe(ne.expression,H,ot):t.createVoidZero())),ne),ne)}return ur(ne,H,e)}function ke(ne){return T&2&&T&1?t.updateReturnStatement(ne,jt(ne.expression?qe(ne.expression,H,ot):t.createVoidZero())):ur(ne,H,e)}function Oe(ne){if(T&2){const we=Oz(ne);return we.kind===250&&we.awaitModifier?hr(we,ne):t.restoreEnclosingLabel(qe(we,H,Ei,t.liftToBlock),ne)}return ur(ne,H,e)}function me(ne){let we;const et=[];for(const B of ne)if(B.kind===305){we&&(et.push(t.createObjectLiteralExpression(we)),we=void 0);const Ge=B.expression;et.push(qe(Ge,H,ot))}else we=_r(we,B.kind===303?t.createPropertyAssignment(B.name,qe(B.initializer,H,ot)):qe(B,H,Yg));return we&&et.push(t.createObjectLiteralExpression(we)),et}function be(ne){if(ne.transformFlags&65536){const we=me(ne.properties);we.length&&we[0].kind!==210&&we.unshift(t.createObjectLiteralExpression());let et=we[0];if(we.length>1){for(let B=1;B=2&&c.getNodeCheckFlags(ne)&384;if(nt){ns();const ir=N9(t,c,ne,U);j[Oa(ir)]=!0,mg(Ge,[ir])}Ge.push(Be);const Dt=t.updateBlock(ne.body,Ge);return nt&&$&&(c.getNodeCheckFlags(ne)&256?ZT(Dt,Cw):c.getNodeCheckFlags(ne)&128&&ZT(Dt,kw)),U=et,$=B,Dt}function ei(ne){i();let we=0;const et=[],B=qe(ne.body,H,Z7)??t.createBlock([]);Cs(B)&&(we=t.copyPrologue(B.statements,et,!1,H)),Nn(et,Ii(void 0,ne));const Ge=s();if(we>0||ct(et)||ct(Ge)){const mt=t.converters.convertToFunctionBlock(B,!0);return mg(et,Ge),Nn(et,mt.statements.slice(we)),t.updateBlock(mt,Ke(t.createNodeArray(et),mt.statements))}return B}function Ii(ne,we){let et=!1;for(const B of we.parameters)if(et){if(Ns(B.name)){if(B.name.elements.length>0){const Ge=v2(B,H,e,0,t.getGeneratedNameForNode(B));if(ct(Ge)){const mt=t.createVariableDeclarationList(Ge),Be=t.createVariableStatement(void 0,mt);Qr(Be,2097152),ne=_r(ne,Be)}}else if(B.initializer){const Ge=t.getGeneratedNameForNode(B),mt=qe(B.initializer,H,ot),Be=t.createAssignment(Ge,mt),nt=t.createExpressionStatement(Be);Qr(nt,2097152),ne=_r(ne,nt)}}else if(B.initializer){const Ge=t.cloneNode(B.name);Ke(Ge,B.name),Qr(Ge,96);const mt=qe(B.initializer,H,ot);Qd(mt,3168);const Be=t.createAssignment(Ge,mt);Ke(Be,B),Qr(Be,3072);const nt=t.createBlock([t.createExpressionStatement(Be)]);Ke(nt,B),Qr(nt,3905);const Dt=t.createTypeCheck(t.cloneNode(B.name),"undefined"),ir=t.createIfStatement(Dt,nt);bu(ir),Ke(ir,B),Qr(ir,2101056),ne=_r(ne,ir)}}else if(B.transformFlags&65536){et=!0;const Ge=v2(B,H,e,1,t.getGeneratedNameForNode(B),!1,!0);if(ct(Ge)){const mt=t.createVariableDeclarationList(Ge),Be=t.createVariableStatement(void 0,mt);Qr(Be,2097152),ne=_r(ne,Be)}}return ne}function ns(){S&1||(S|=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 Vs(ne,we,et){if(S&1&&tt(we)){const B=c.getNodeCheckFlags(we)&384;if(B!==w){const Ge=w;w=B,g(ne,we,et),w=Ge;return}}else if(S&&j[Oa(we)]){const B=w;w=0,g(ne,we,et),w=B;return}g(ne,we,et)}function _a(ne,we){return we=d(ne,we),ne===1&&w?cr(we):we}function cr(ne){switch(ne.kind){case 211:return br(ne);case 212:return Le(ne);case 213:return rt(ne)}return ne}function br(ne){return ne.expression.kind===108?Ke(t.createPropertyAccessExpression(t.createUniqueName("_super",48),ne.name),ne):ne}function Le(ne){return ne.expression.kind===108?yt(ne.argumentExpression,ne):ne}function rt(ne){const we=ne.expression;if(o_(we)){const et=Sn(we)?br(we):Le(we);return t.createCallExpression(t.createPropertyAccessExpression(et,"call"),void 0,[t.createThis(),...ne.arguments])}return ne}function tt(ne){const we=ne.kind;return we===263||we===176||we===174||we===177||we===178}function yt(ne,we){return w&256?Ke(t.createPropertyAccessExpression(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[ne]),"value"),we):Ke(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[ne]),we)}}var HMe=wt({"src/compiler/transformers/es2018.ts"(){Fs()}});function lae(e){const t=e.factory;return Xp(e,n);function n(o){return o.isDeclarationFile?o:ur(o,i,e)}function i(o){if(!(o.transformFlags&64))return o;switch(o.kind){case 299:return s(o);default:return ur(o,i,e)}}function s(o){return o.variableDeclaration?ur(o,i,e):t.updateCatchClause(o,t.createVariableDeclaration(t.createTempVariable(void 0)),qe(o.block,i,Cs))}}var GMe=wt({"src/compiler/transformers/es2019.ts"(){Fs()}});function uae(e){const{factory:t,hoistVariableDeclaration:n}=e;return Xp(e,i);function i(k){return k.isDeclarationFile?k:ur(k,s,e)}function s(k){if(!(k.transformFlags&32))return k;switch(k.kind){case 213:{const w=f(k,!1);return E.assertNotNode(w,px),w}case 211:case 212:if(hu(k)){const w=d(k,!1,!1);return E.assertNotNode(w,px),w}return ur(k,s,e);case 226:return k.operatorToken.kind===61?S(k):ur(k,s,e);case 220:return T(k);default:return ur(k,s,e)}}function o(k){E.assertNotNode(k,G7);const w=[k];for(;!k.questionDotToken&&!o2(k);)k=Ls(zp(k.expression),hu),E.assertNotNode(k,G7),w.unshift(k);return{expression:k.expression,chain:w}}function c(k,w,P){const F=g(k.expression,w,P);return px(F)?t.createSyntheticReferenceExpression(t.updateParenthesizedExpression(k,F.expression),F.thisArg):t.updateParenthesizedExpression(k,F)}function u(k,w,P){if(hu(k))return d(k,w,P);let F=qe(k.expression,s,ot);E.assertNotNode(F,px);let J;return w&&(y2(F)?J=F:(J=t.createTempVariable(n),F=t.createAssignment(J,F))),F=k.kind===211?t.updatePropertyAccessExpression(k,F,qe(k.name,s,Ie)):t.updateElementAccessExpression(k,F,qe(k.argumentExpression,s,ot)),J?t.createSyntheticReferenceExpression(F,J):F}function f(k,w){if(hu(k))return d(k,w,!1);if(l_(k.expression)&&hu(Va(k.expression))){const P=c(k.expression,!0,!1),F=Dr(k.arguments,s,ot);return px(P)?Ke(t.createFunctionCallCall(P.expression,P.thisArg,F),k):t.updateCallExpression(k,P,void 0,F)}return ur(k,s,e)}function g(k,w,P){switch(k.kind){case 217:return c(k,w,P);case 211:case 212:return u(k,w,P);case 213:return f(k,w);default:return qe(k,s,ot)}}function d(k,w,P){const{expression:F,chain:J}=o(k),U=g(zp(F),yb(J[0]),!1);let $=px(U)?U.thisArg:void 0,j=px(U)?U.expression:U,re=t.restoreOuterExpressions(F,j,8);y2(j)||(j=t.createTempVariable(n),re=t.createAssignment(j,re));let R=j,Y;for(let pe=0;peae&&Nn(K,Dr(oe.statements,y,Ei,ae,fe-ae));break}fe++}E.assert(feP(K,ae))))],ae,Se===2)}return ur(oe,y,e)}function J(oe,Se,ae,K,fe){const ke=[];for(let be=Se;bet&&(t=i)}return t}function YMe(e){let t=0;for(const n of e){const i=fq(n.statements);if(i===2)return 2;i>t&&(t=i)}return t}var ZMe=wt({"src/compiler/transformers/esnext.ts"(){Fs()}});function gae(e){const{factory:t,getEmitHelperFactory:n}=e,i=e.getCompilerOptions();let s,o;return Xp(e,y);function c(){if(o.filenameDeclaration)return o.filenameDeclaration.name;const ge=t.createVariableDeclaration(t.createUniqueName("_jsxFileName",48),void 0,void 0,t.createStringLiteral(s.fileName));return o.filenameDeclaration=ge,o.filenameDeclaration.name}function u(ge){return i.jsx===5?"jsxDEV":ge?"jsxs":"jsx"}function f(ge){const Fe=u(ge);return d(Fe)}function g(){return d("Fragment")}function d(ge){var Fe,$e;const Pt=ge==="createElement"?o.importSpecifier:mF(o.importSpecifier,i),at=($e=(Fe=o.utilizedImplicitRuntimeImports)==null?void 0:Fe.get(Pt))==null?void 0:$e.get(ge);if(at)return at.name;o.utilizedImplicitRuntimeImports||(o.utilizedImplicitRuntimeImports=new Map);let Je=o.utilizedImplicitRuntimeImports.get(Pt);Je||(Je=new Map,o.utilizedImplicitRuntimeImports.set(Pt,Je));const pt=t.createUniqueName(`_${ge}`,112),zt=t.createImportSpecifier(!1,t.createIdentifier(ge),pt);return Wne(pt,zt),Je.set(ge,zt),pt}function y(ge){if(ge.isDeclarationFile)return ge;s=ge,o={},o.importSpecifier=dF(i,ge);let Fe=ur(ge,S,e);ih(Fe,e.readEmitHelpers());let $e=Fe.statements;if(o.filenameDeclaration&&($e=kb($e.slice(),t.createVariableStatement(void 0,t.createVariableDeclarationList([o.filenameDeclaration],2)))),o.utilizedImplicitRuntimeImports){for(const[Pt,at]of gs(o.utilizedImplicitRuntimeImports.entries()))if(Ic(ge)){const Je=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports(gs(at.values()))),t.createStringLiteral(Pt),void 0);ay(Je,!1),$e=kb($e.slice(),Je)}else if(af(ge)){const Je=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createObjectBindingPattern(gs(at.values(),pt=>t.createBindingElement(void 0,pt.propertyName,pt.name))),void 0,void 0,t.createCallExpression(t.createIdentifier("require"),void 0,[t.createStringLiteral(Pt)]))],2));ay(Je,!1),$e=kb($e.slice(),Je)}}return $e!==Fe.statements&&(Fe=t.updateSourceFile(Fe,$e)),o=void 0,Fe}function S(ge){return ge.transformFlags&2?T(ge):ge}function T(ge){switch(ge.kind){case 284:return J(ge,!1);case 285:return U(ge,!1);case 288:return $(ge,!1);case 294:return ft(ge);default:return ur(ge,S,e)}}function k(ge){switch(ge.kind){case 12:return fe(ge);case 294:return ft(ge);case 284:return J(ge,!0);case 285:return U(ge,!0);case 288:return $(ge,!0);default:return E.failBadSyntaxKind(ge)}}function w(ge){return ge.properties.some(Fe=>zc(Fe)&&(Ie(Fe.name)&&on(Fe.name)==="__proto__"||aa(Fe.name)&&Fe.name.text==="__proto__"))}function P(ge){let Fe=!1;for(const $e of ge.attributes.properties)if(mx($e)&&(!ua($e.expression)||$e.expression.properties.some(a0)))Fe=!0;else if(Fe&&em($e)&&Ie($e.name)&&$e.name.escapedText==="key")return!0;return!1}function F(ge){return o.importSpecifier===void 0||P(ge)}function J(ge,Fe){return(F(ge.openingElement)?ue:R)(ge.openingElement,ge.children,Fe,ge)}function U(ge,Fe){return(F(ge)?ue:R)(ge,void 0,Fe,ge)}function $(ge,Fe){return(o.importSpecifier===void 0?H:pe)(ge.openingFragment,ge.children,Fe,ge)}function j(ge){const Fe=re(ge);return Fe&&t.createObjectLiteralExpression([Fe])}function re(ge){const Fe=hC(ge);if(gr(Fe)===1&&!Fe[0].dotDotDotToken){const Pt=k(Fe[0]);return Pt&&t.createPropertyAssignment("children",Pt)}const $e=Ri(ge,k);return gr($e)?t.createPropertyAssignment("children",t.createArrayLiteralExpression($e)):void 0}function R(ge,Fe,$e,Pt){const at=xe(ge),Je=Fe&&Fe.length?re(Fe):void 0,pt=wn(ge.attributes.properties,hr=>!!hr.name&&Ie(hr.name)&&hr.name.escapedText==="key"),zt=pt?An(ge.attributes.properties,hr=>hr!==pt):ge.attributes.properties,Vt=gr(zt)?ee(zt,Je):t.createObjectLiteralExpression(Je?[Je]:Ve);return Y(at,Vt,pt,Fe||Ve,$e,Pt)}function Y(ge,Fe,$e,Pt,at,Je){var pt;const zt=hC(Pt),Vt=gr(zt)>1||!!((pt=zt[0])!=null&&pt.dotDotDotToken),hr=[ge,Fe];if($e&&hr.push(K($e.initializer)),i.jsx===5){const tr=ic(s);if(tr&&Ni(tr)){$e===void 0&&hr.push(t.createVoidZero()),hr.push(Vt?t.createTrue():t.createFalse());const jt=Ha(tr,Je.pos);hr.push(t.createObjectLiteralExpression([t.createPropertyAssignment("fileName",c()),t.createPropertyAssignment("lineNumber",t.createNumericLiteral(jt.line+1)),t.createPropertyAssignment("columnNumber",t.createNumericLiteral(jt.character+1))])),hr.push(t.createThis())}}const Lr=Ke(t.createCallExpression(f(Vt),void 0,hr),Je);return at&&bu(Lr),Lr}function ue(ge,Fe,$e,Pt){const at=xe(ge),Je=ge.attributes.properties,pt=gr(Je)?ee(Je):t.createNull(),zt=o.importSpecifier===void 0?WV(t,e.getEmitResolver().getJsxFactoryEntity(s),i.reactNamespace,ge):d("createElement"),Vt=yie(t,zt,at,pt,Ri(Fe,k),Pt);return $e&&bu(Vt),Vt}function pe(ge,Fe,$e,Pt){let at;if(Fe&&Fe.length){const Je=j(Fe);Je&&(at=Je)}return Y(g(),at||t.createObjectLiteralExpression([]),void 0,Fe,$e,Pt)}function H(ge,Fe,$e,Pt){const at=vie(t,e.getEmitResolver().getJsxFactoryEntity(s),e.getEmitResolver().getJsxFragmentFactoryEntity(s),i.reactNamespace,Ri(Fe,k),ge,Pt);return $e&&bu(at),at}function q(ge){return ua(ge.expression)&&!w(ge.expression)?rl(ge.expression.properties,Fe=>E.checkDefined(qe(Fe,S,Yg))):t.createSpreadAssignment(E.checkDefined(qe(ge.expression,S,ot)))}function ee(ge,Fe){const $e=Fa(i);return $e&&$e>=5?t.createObjectLiteralExpression(oe(ge,Fe)):Se(ge,Fe)}function oe(ge,Fe){const $e=Mp(sB(ge,mx,(Pt,at)=>Mp(nr(Pt,Je=>at?q(Je):ae(Je)))));return Fe&&$e.push(Fe),$e}function Se(ge,Fe){const $e=[];let Pt=[];for(const Je of ge){if(mx(Je)){if(ua(Je.expression)&&!w(Je.expression)){for(const pt of Je.expression.properties){if(a0(pt)){at(),$e.push(E.checkDefined(qe(pt.expression,S,ot)));continue}Pt.push(E.checkDefined(qe(pt,S)))}continue}at(),$e.push(E.checkDefined(qe(Je.expression,S,ot)));continue}Pt.push(ae(Je))}return Fe&&Pt.push(Fe),at(),$e.length&&!ua($e[0])&&$e.unshift(t.createObjectLiteralExpression()),Tm($e)||n().createAssignHelper($e);function at(){Pt.length&&($e.push(t.createObjectLiteralExpression(Pt)),Pt=[])}}function ae(ge){const Fe=De(ge),$e=K(ge.initializer);return t.createPropertyAssignment(Fe,$e)}function K(ge){if(ge===void 0)return t.createTrue();if(ge.kind===11){const Fe=ge.singleQuote!==void 0?ge.singleQuote:!F5(ge,s),$e=t.createStringLiteral(be(ge.text)||ge.text,Fe);return Ke($e,ge)}return ge.kind===294?ge.expression===void 0?t.createTrue():E.checkDefined(qe(ge.expression,S,ot)):Eg(ge)?J(ge,!1):Xb(ge)?U(ge,!1):u2(ge)?$(ge,!1):E.failBadSyntaxKind(ge)}function fe(ge){const Fe=ke(ge.text);return Fe===void 0?void 0:t.createStringLiteral(Fe)}function ke(ge){let Fe,$e=0,Pt=-1;for(let at=0;at{if(Je)return Jk(parseInt(Je,10));if(pt)return Jk(parseInt(pt,16));{const Vt=zbe.get(zt);return Vt?Jk(Vt):Fe}})}function be(ge){const Fe=me(ge);return Fe===ge?void 0:Fe}function xe(ge){if(ge.kind===284)return xe(ge.openingElement);{const Fe=ge.tagName;return Ie(Fe)&&vC(Fe.escapedText)?t.createStringLiteral(on(Fe)):yd(Fe)?t.createStringLiteral(on(Fe.namespace)+":"+on(Fe.name)):Rw(t,Fe)}}function De(ge){const Fe=ge.name;if(Ie(Fe)){const $e=on(Fe);return/^[A-Za-z_]\w*$/.test($e)?Fe:t.createStringLiteral($e)}return t.createStringLiteral(on(Fe.namespace)+":"+on(Fe.name))}function ft(ge){const Fe=qe(ge.expression,S,ot);return ge.dotDotDotToken?t.createSpreadElement(Fe):Fe}}var zbe,KMe=wt({"src/compiler/transformers/jsx.ts"(){Fs(),zbe=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 hae(e){const{factory:t,hoistVariableDeclaration:n}=e;return Xp(e,i);function i(f){return f.isDeclarationFile?f:ur(f,s,e)}function s(f){if(!(f.transformFlags&512))return f;switch(f.kind){case 226:return o(f);default:return ur(f,s,e)}}function o(f){switch(f.operatorToken.kind){case 68:return c(f);case 43:return u(f);default:return ur(f,s,e)}}function c(f){let g,d;const y=qe(f.left,s,ot),S=qe(f.right,s,ot);if(ko(y)){const T=t.createTempVariable(n),k=t.createTempVariable(n);g=Ke(t.createElementAccessExpression(Ke(t.createAssignment(T,y.expression),y.expression),Ke(t.createAssignment(k,y.argumentExpression),y.argumentExpression)),y),d=Ke(t.createElementAccessExpression(T,k),y)}else if(Sn(y)){const T=t.createTempVariable(n);g=Ke(t.createPropertyAccessExpression(Ke(t.createAssignment(T,y.expression),y.expression),y.name),y),d=Ke(t.createPropertyAccessExpression(T,y.name),y)}else g=y,d=y;return Ke(t.createAssignment(g,Ke(t.createGlobalMethodCall("Math","pow",[d,S]),f)),f)}function u(f){const g=qe(f.left,s,ot),d=qe(f.right,s,ot);return Ke(t.createGlobalMethodCall("Math","pow",[g,d]),f)}}var eRe=wt({"src/compiler/transformers/es2016.ts"(){Fs()}});function Wbe(e,t){return{kind:e,expression:t}}function yae(e){const{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:i,resumeLexicalEnvironment:s,endLexicalEnvironment:o,hoistVariableDeclaration:c}=e,u=e.getCompilerOptions(),f=e.getEmitResolver(),g=e.onSubstituteNode,d=e.onEmitNode;e.onEmitNode=If,e.onSubstituteNode=ep;let y,S,T,k;function w(Q){k=_r(k,t.createVariableDeclaration(Q))}let P,F;return Xp(e,J);function J(Q){if(Q.isDeclarationFile)return Q;y=Q,S=Q.text;const Ye=ee(Q);return ih(Ye,e.readEmitHelpers()),y=void 0,S=void 0,k=void 0,T=0,Ye}function U(Q,Ye){const Ct=T;return T=(T&~Q|Ye)&32767,Ct}function $(Q,Ye,Ct){T=(T&~Ye|Ct)&-32768|Q}function j(Q){return(T&8192)!==0&&Q.kind===253&&!Q.expression}function re(Q){return Q.transformFlags&4194304&&(Hp(Q)||Hb(Q)||sie(Q)||m3(Q)||g3(Q)||zC(Q)||y3(Q)||$b(Q)||f2(Q)||c2(Q)||Q0(Q,!1)||Cs(Q))}function R(Q){return(Q.transformFlags&1024)!==0||P!==void 0||T&8192&&re(Q)||Q0(Q,!1)&&$i(Q)||(Wp(Q)&1)!==0}function Y(Q){return R(Q)?q(Q,!1):Q}function ue(Q){return R(Q)?q(Q,!0):Q}function pe(Q){if(R(Q)){const Ye=ic(Q);if(xs(Ye)&&Bc(Ye)){const Ct=U(32670,16449),At=q(Q,!1);return $(Ct,229376,0),At}return q(Q,!1)}return Q}function H(Q){return Q.kind===108?Ec(Q,!0):Y(Q)}function q(Q,Ye){switch(Q.kind){case 126:return;case 263:return xe(Q);case 231:return De(Q);case 169:return _a(Q);case 262:return Yt(Q);case 219:return Dt(Q);case 218:return ir(Q);case 260:return ar(Q);case 80:return me(Q);case 261:return Ce(Q);case 255:return oe(Q);case 269:return Se(Q);case 241:return Pe(Q);case 252:case 251:return be(Q);case 256:return fi(Q);case 246:case 247:return Cn(Q,void 0);case 248:return Qi(Q,void 0);case 249:return ci(Q,void 0);case 250:return In(Q,void 0);case 244:return St(Q);case 210:return _s(Q);case 299:return li(Q);case 304:return ml(Q);case 167:return ho(Q);case 209:return $a(Q);case 213:return gl(Q);case 214:return Pp(Q);case 217:return A(Q,Ye);case 226:return le(Q,Ye);case 361:return V(Q,Ye);case 15:case 16:case 17:case 18:return Is(Q);case 11:return Cc(Q);case 9:return Uc(Q);case 215:return Ro(Q);case 228:return qo(Q);case 229:return Vc(Q);case 230:return Ds(Q);case 108:return Ec(Q,!1);case 110:return ke(Q);case 236:return hl(Q);case 174:return Ps(Q);case 177:case 178:return Qo(Q);case 243:return Ne(Q);case 253:return fe(Q);case 222:return Oe(Q);default:return ur(Q,Y,e)}}function ee(Q){const Ye=U(8064,64),Ct=[],At=[];i();const O=t.copyPrologue(Q.statements,Ct,!1,Y);return Nn(At,Dr(Q.statements,Y,Ei,O)),k&&At.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(k))),t.mergeLexicalEnvironment(Ct,o()),ne(Ct,Q),$(Ye,0,0),t.updateSourceFile(Q,Ke(t.createNodeArray(es(Ct,At)),Q.statements))}function oe(Q){if(P!==void 0){const Ye=P.allowedNonLabeledJumps;P.allowedNonLabeledJumps|=2;const Ct=ur(Q,Y,e);return P.allowedNonLabeledJumps=Ye,Ct}return ur(Q,Y,e)}function Se(Q){const Ye=U(7104,0),Ct=ur(Q,Y,e);return $(Ye,0,0),Ct}function ae(Q){return dn(t.createReturnStatement(K()),Q)}function K(){return t.createUniqueName("_this",48)}function fe(Q){return P?(P.nonLocalJumps|=8,j(Q)&&(Q=ae(Q)),t.createReturnStatement(t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("value"),Q.expression?E.checkDefined(qe(Q.expression,Y,ot)):t.createVoidZero())]))):j(Q)?ae(Q):ur(Q,Y,e)}function ke(Q){return T|=65536,T&2&&!(T&16384)&&(T|=131072),P?T&2?(P.containsLexicalThis=!0,Q):P.thisName||(P.thisName=t.createUniqueName("this")):Q}function Oe(Q){return ur(Q,ue,e)}function me(Q){return P&&f.isArgumentsLocalBinding(Q)?P.argumentsName||(P.argumentsName=t.createUniqueName("arguments")):Q.flags&256?dn(Ke(t.createIdentifier(xi(Q.escapedText)),Q),Q):Q}function be(Q){if(P){const Ye=Q.kind===252?2:4;if(!(Q.label&&P.labels&&P.labels.get(on(Q.label))||!Q.label&&P.allowedNonLabeledJumps&Ye)){let At;const O=Q.label;O?Q.kind===252?(At=`break-${O.escapedText}`,X(P,!0,on(O),At)):(At=`continue-${O.escapedText}`,X(P,!1,on(O),At)):Q.kind===252?(P.nonLocalJumps|=2,At="break"):(P.nonLocalJumps|=4,At="continue");let he=t.createStringLiteral(At);if(P.loopOutParameters.length){const Xe=P.loopOutParameters;let Ft;for(let zr=0;zrIe(Ye.name)&&!Ye.initializer)}function pt(Q){if(Pb(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:{const Ye=Q;return Pa(Ye.name)?!!Ss(Ye.name,pt):!1}}return!!Ss(Q,pt)}function zt(Q,Ye,Ct,At){const O=!!Ct&&xc(Ct.expression).kind!==106;if(!Q)return at(Ye,O);const he=[],Xe=[];s();const Ft=t.copyStandardPrologue(Q.body.statements,he,0);(At||pt(Q.body))&&(T|=8192),Nn(Xe,Dr(Q.body.statements,Y,Ei,Ft));const zr=O||T&8192;br(he,Q),yt(he,Q,At),et(he,Q),zr?we(he,Q,ns()):ne(he,Q),t.mergeLexicalEnvironment(he,o()),zr&&!Ii(Q.body)&&Xe.push(t.createReturnStatement(K()));const Vn=t.createBlock(Ke(t.createNodeArray([...he,...Xe]),Q.body.statements),!0);return Ke(Vn,Q.body),ei(Vn,Q.body,At)}function Vt(Q){return Fo(Q)&&on(Q)==="_this"}function hr(Q){return Fo(Q)&&on(Q)==="_super"}function Lr(Q){return ac(Q)&&Q.declarationList.declarations.length===1&&tr(Q.declarationList.declarations[0])}function tr(Q){return hi(Q)&&Vt(Q.name)&&!!Q.initializer}function jt(Q){return nl(Q,!0)&&Vt(Q.left)}function Rt(Q){return Rs(Q)&&Sn(Q.expression)&&hr(Q.expression.expression)&&Ie(Q.expression.name)&&(on(Q.expression.name)==="call"||on(Q.expression.name)==="apply")&&Q.arguments.length>=1&&Q.arguments[0].kind===110}function Kn(Q){return Zr(Q)&&Q.operatorToken.kind===57&&Q.right.kind===110&&Rt(Q.left)}function Ji(Q){return Zr(Q)&&Q.operatorToken.kind===56&&Zr(Q.left)&&Q.left.operatorToken.kind===38&&hr(Q.left.left)&&Q.left.right.kind===106&&Rt(Q.right)&&on(Q.right.expression.name)==="apply"}function yi(Q){return Zr(Q)&&Q.operatorToken.kind===57&&Q.right.kind===110&&Ji(Q.left)}function os(Q){return jt(Q)&&Kn(Q.right)}function yr(Q){return jt(Q)&&yi(Q.right)}function _i(Q){return Rt(Q)||Kn(Q)||os(Q)||Ji(Q)||yi(Q)||yr(Q)}function ln(Q){for(let Ye=0;Ye0;At--){const O=Q.statements[At];if(Hp(O)&&O.expression&&Vt(O.expression)){const he=Q.statements[At-1];let Xe;if(Cl(he)&&os(xc(he.expression)))Xe=he.expression;else if(Ct&&Lr(he)){const Vn=he.declarationList.declarations[0];_i(xc(Vn.initializer))&&(Xe=t.createAssignment(K(),Vn.initializer))}if(!Xe)break;const Ft=t.createReturnStatement(Xe);dn(Ft,he),Ke(Ft,he);const zr=t.createNodeArray([...Q.statements.slice(0,At-1),Ft,...Q.statements.slice(At+1)]);return Ke(zr,Q.statements),t.updateBlock(Q,zr)}}return Q}function Ue(Q){if(Lr(Q)){if(Q.declarationList.declarations[0].initializer.kind===110)return}else if(jt(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:{const Ye=Q;return Pa(Ye.name)?t.replacePropertyName(Ye,ur(Ye.name,Ue,void 0)):Q}}return ur(Q,Ue,void 0)}function Et(Q,Ye){if(Ye.transformFlags&16384||T&65536||T&131072)return Q;for(const Ct of Ye.statements)if(Ct.transformFlags&134217728&&!C9(Ct))return Q;return t.updateBlock(Q,Dr(Q.statements,Ue,Ei))}function fr(Q){if(Rt(Q)&&Q.arguments.length===2&&Ie(Q.arguments[1])&&on(Q.arguments[1])==="arguments")return t.createLogicalAnd(t.createStrictInequality(dc(),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:{const Ye=Q;return Pa(Ye.name)?t.replacePropertyName(Ye,ur(Ye.name,fr,void 0)):Q}}return ur(Q,fr,void 0)}function Hn(Q){return t.updateBlock(Q,Dr(Q.statements,fr,Ei))}function ei(Q,Ye,Ct){const At=Q;return Q=ln(Q),Q=Ht(Q,Ye),Q!==At&&(Q=Et(Q,Ye)),Ct&&(Q=Hn(Q)),Q}function Ii(Q){if(Q.kind===253)return!0;if(Q.kind===245){const Ye=Q;if(Ye.elseStatement)return Ii(Ye.thenStatement)&&Ii(Ye.elseStatement)}else if(Q.kind===241){const Ye=Po(Q.statements);if(Ye&&Ii(Ye))return!0}return!1}function ns(){return Qr(t.createThis(),8)}function Vs(){return t.createLogicalOr(t.createLogicalAnd(t.createStrictInequality(dc(),t.createNull()),t.createFunctionApplyCall(dc(),ns(),t.createIdentifier("arguments"))),ns())}function _a(Q){if(!Q.dotDotDotToken)return Ns(Q.name)?dn(Ke(t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(Q),void 0,void 0,void 0),Q),Q):Q.initializer?dn(Ke(t.createParameterDeclaration(void 0,void 0,Q.name,void 0,void 0,void 0),Q),Q):Q}function cr(Q){return Q.initializer!==void 0||Ns(Q.name)}function br(Q,Ye){if(!ct(Ye.parameters,cr))return!1;let Ct=!1;for(const At of Ye.parameters){const{name:O,initializer:he,dotDotDotToken:Xe}=At;Xe||(Ns(O)?Ct=Le(Q,At,O,he)||Ct:he&&(rt(Q,At,O,he),Ct=!0))}return Ct}function Le(Q,Ye,Ct,At){return Ct.elements.length>0?(kb(Q,Qr(t.createVariableStatement(void 0,t.createVariableDeclarationList(v2(Ye,Y,e,0,t.getGeneratedNameForNode(Ye)))),2097152)),!0):At?(kb(Q,Qr(t.createExpressionStatement(t.createAssignment(t.getGeneratedNameForNode(Ye),E.checkDefined(qe(At,Y,ot)))),2097152)),!0):!1}function rt(Q,Ye,Ct,At){At=E.checkDefined(qe(At,Y,ot));const O=t.createIfStatement(t.createTypeCheck(t.cloneNode(Ct),"undefined"),Qr(Ke(t.createBlock([t.createExpressionStatement(Qr(Ke(t.createAssignment(Qr(ba(Ke(t.cloneNode(Ct),Ct),Ct.parent),96),Qr(At,96|ha(At)|3072)),Ye),3072))]),Ye),3905));bu(O),Ke(O,Ye),Qr(O,2101056),kb(Q,O)}function tt(Q,Ye){return!!(Q&&Q.dotDotDotToken&&!Ye)}function yt(Q,Ye,Ct){const At=[],O=Po(Ye.parameters);if(!tt(O,Ct))return!1;const he=O.name.kind===80?ba(Ke(t.cloneNode(O.name),O.name),O.name.parent):t.createTempVariable(void 0);Qr(he,96);const Xe=O.name.kind===80?t.cloneNode(O.name):he,Ft=Ye.parameters.length-1,zr=t.createLoopVariable();At.push(Qr(Ke(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(he,void 0,void 0,t.createArrayLiteralExpression([]))])),O),2097152));const Vn=t.createForStatement(Ke(t.createVariableDeclarationList([t.createVariableDeclaration(zr,void 0,void 0,t.createNumericLiteral(Ft))]),O),Ke(t.createLessThan(zr,t.createPropertyAccessExpression(t.createIdentifier("arguments"),"length")),O),Ke(t.createPostfixIncrement(zr),O),t.createBlock([bu(Ke(t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(Xe,Ft===0?zr:t.createSubtract(zr,t.createNumericLiteral(Ft))),t.createElementAccessExpression(t.createIdentifier("arguments"),zr))),O))]));return Qr(Vn,2097152),bu(Vn),At.push(Vn),O.name.kind!==80&&At.push(Qr(Ke(t.createVariableStatement(void 0,t.createVariableDeclarationList(v2(O,Y,e,0,Xe))),O),2097152)),gz(Q,At),!0}function ne(Q,Ye){return T&131072&&Ye.kind!==219?(we(Q,Ye,t.createThis()),!0):!1}function we(Q,Ye,Ct){Ku();const At=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(K(),void 0,void 0,Ct)]));Qr(At,2100224),sa(At,Ye),kb(Q,At)}function et(Q,Ye){if(T&32768){let Ct;switch(Ye.kind){case 219:return Q;case 174:case 177:case 178:Ct=t.createVoidZero();break;case 176:Ct=t.createPropertyAccessExpression(Qr(t.createThis(),8),"constructor");break;case 262:case 218:Ct=t.createConditionalExpression(t.createLogicalAnd(Qr(t.createThis(),8),t.createBinaryExpression(Qr(t.createThis(),8),104,t.getLocalName(Ye))),void 0,t.createPropertyAccessExpression(Qr(t.createThis(),8),"constructor"),void 0,t.createVoidZero());break;default:return E.failBadSyntaxKind(Ye)}const At=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_newTarget",48),void 0,void 0,Ct)]));Qr(At,2100224),kb(Q,At)}return Q}function B(Q,Ye){for(const Ct of Ye.members)switch(Ct.kind){case 240:Q.push(Ge(Ct));break;case 174:Q.push(mt(Ag(Ye,Ct),Ct,Ye));break;case 177:case 178:const At=Rb(Ye.members,Ct);Ct===At.firstAccessor&&Q.push(Be(Ag(Ye,Ct),At,Ye));break;case 176:case 175:break;default:E.failBadSyntaxKind(Ct,y&&y.fileName);break}}function Ge(Q){return Ke(t.createEmptyStatement(),Q)}function mt(Q,Ye,Ct){const At=Yd(Ye),O=n0(Ye),he=Kt(Ye,Ye,void 0,Ct),Xe=qe(Ye.name,Y,Ac);E.assert(Xe);let Ft;if(!Pi(Xe)&&s3(e.getCompilerOptions())){const Vn=Pa(Xe)?Xe.expression:Ie(Xe)?t.createStringLiteral(xi(Xe.escapedText)):Xe;Ft=t.createObjectDefinePropertyCall(Q,Vn,t.createPropertyDescriptor({value:he,enumerable:!1,writable:!0,configurable:!0}))}else{const Vn=Kb(t,Q,Xe,Ye.name);Ft=t.createAssignment(Vn,he)}Qr(he,3072),sa(he,O);const zr=Ke(t.createExpressionStatement(Ft),Ye);return dn(zr,Ye),Nc(zr,At),Qr(zr,96),zr}function Be(Q,Ye,Ct){const At=t.createExpressionStatement(nt(Q,Ye,Ct,!1));return Qr(At,3072),sa(At,n0(Ye.firstAccessor)),At}function nt(Q,{firstAccessor:Ye,getAccessor:Ct,setAccessor:At},O,he){const Xe=ba(Ke(t.cloneNode(Q),Q),Q.parent);Qr(Xe,3136),sa(Xe,Ye.name);const Ft=qe(Ye.name,Y,Ac);if(E.assert(Ft),Pi(Ft))return E.failBadSyntaxKind(Ft,"Encountered unhandled private identifier while transforming ES2015.");const zr=UV(t,Ft);Qr(zr,3104),sa(zr,Ye.name);const Vn=[];if(Ct){const ji=Kt(Ct,void 0,void 0,O);sa(ji,n0(Ct)),Qr(ji,1024);const fa=t.createPropertyAssignment("get",ji);Nc(fa,Yd(Ct)),Vn.push(fa)}if(At){const ji=Kt(At,void 0,void 0,O);sa(ji,n0(At)),Qr(ji,1024);const fa=t.createPropertyAssignment("set",ji);Nc(fa,Yd(At)),Vn.push(fa)}Vn.push(t.createPropertyAssignment("enumerable",Ct||At?t.createFalse():t.createTrue()),t.createPropertyAssignment("configurable",t.createTrue()));const Ln=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[Xe,zr,t.createObjectLiteralExpression(Vn,!0)]);return he&&bu(Ln),Ln}function Dt(Q){Q.transformFlags&16384&&!(T&16384)&&(T|=131072);const Ye=P;P=void 0;const Ct=U(15232,66),At=t.createFunctionExpression(void 0,void 0,void 0,void 0,tc(Q.parameters,Y,e),void 0,W(Q));return Ke(At,Q),dn(At,Q),Qr(At,16),$(Ct,0,0),P=Ye,At}function ir(Q){const Ye=ha(Q)&524288?U(32662,69):U(32670,65),Ct=P;P=void 0;const At=tc(Q.parameters,Y,e),O=W(Q),he=T&32768?t.getLocalName(Q):Q.name;return $(Ye,229376,0),P=Ct,t.updateFunctionExpression(Q,void 0,Q.asteriskToken,he,void 0,At,void 0,O)}function Yt(Q){const Ye=P;P=void 0;const Ct=U(32670,65),At=tc(Q.parameters,Y,e),O=W(Q),he=T&32768?t.getLocalName(Q):Q.name;return $(Ct,229376,0),P=Ye,t.updateFunctionDeclaration(Q,Dr(Q.modifiers,Y,ta),Q.asteriskToken,he,void 0,At,void 0,O)}function Kt(Q,Ye,Ct,At){const O=P;P=void 0;const he=At&&$n(At)&&!Ms(Q)?U(32670,73):U(32670,65),Xe=tc(Q.parameters,Y,e),Ft=W(Q);return T&32768&&!Ct&&(Q.kind===262||Q.kind===218)&&(Ct=t.getGeneratedNameForNode(Q)),$(he,229376,0),P=O,dn(Ke(t.createFunctionExpression(void 0,Q.asteriskToken,Ct,void 0,Xe,void 0,Ft),Ye),Q)}function W(Q){let Ye=!1,Ct=!1,At,O;const he=[],Xe=[],Ft=Q.body;let zr;if(s(),Cs(Ft)&&(zr=t.copyStandardPrologue(Ft.statements,he,0,!1),zr=t.copyCustomPrologue(Ft.statements,Xe,zr,Y,h5),zr=t.copyCustomPrologue(Ft.statements,Xe,zr,Y,y5)),Ye=br(Xe,Q)||Ye,Ye=yt(Xe,Q,!1)||Ye,Cs(Ft))zr=t.copyCustomPrologue(Ft.statements,Xe,zr,Y),At=Ft.statements,Nn(Xe,Dr(Ft.statements,Y,Ei,zr)),!Ye&&Ft.multiLine&&(Ye=!0);else{E.assert(Q.kind===219),At=nF(Ft,-1);const Ln=Q.equalsGreaterThanToken;!xo(Ln)&&!xo(Ft)&&(Z8(Ln,Ft,y)?Ct=!0:Ye=!0);const ji=qe(Ft,Y,ot),fa=t.createReturnStatement(ji);Ke(fa,Ft),Mne(fa,Ft),Qr(fa,2880),Xe.push(fa),O=Ft}if(t.mergeLexicalEnvironment(he,o()),et(he,Q),ne(he,Q),ct(he)&&(Ye=!0),Xe.unshift(...he),Cs(Ft)&&_d(Xe,Ft.statements))return Ft;const Vn=t.createBlock(Ke(t.createNodeArray(Xe),At),Ye);return Ke(Vn,Q.body),!Ye&&Ct&&Qr(Vn,1),O&&Lne(Vn,20,O),dn(Vn,Q.body),Vn}function Pe(Q,Ye){const Ct=T&256?U(7104,512):U(6976,128),At=ur(Q,Y,e);return $(Ct,0,0),At}function St(Q){return ur(Q,ue,e)}function A(Q,Ye){return ur(Q,Ye?ue:Y,e)}function le(Q,Ye){return e0(Q)?nS(Q,Y,e,0,!Ye):Q.operatorToken.kind===28?t.updateBinaryExpression(Q,E.checkDefined(qe(Q.left,ue,ot)),Q.operatorToken,E.checkDefined(qe(Q.right,Ye?ue:Y,ot))):ur(Q,Y,e)}function V(Q,Ye){if(Ye)return ur(Q,ue,e);let Ct;for(let O=0;Ozr.name)),Ft=At?t.createYieldExpression(t.createToken(42),Qr(Xe,8388608)):Xe;if(he)O.push(t.createExpressionStatement(Ft)),io(Ye.loopOutParameters,1,0,O);else{const zr=t.createUniqueName("state"),Vn=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(zr,void 0,void 0,Ft)]));if(O.push(Vn),io(Ye.loopOutParameters,1,0,O),Ye.nonLocalJumps&8){let Ln;Ct?(Ct.nonLocalJumps|=8,Ln=t.createReturnStatement(zr)):Ln=t.createReturnStatement(t.createPropertyAccessExpression(zr,"value")),O.push(t.createIfStatement(t.createTypeCheck(zr,"object"),Ln))}if(Ye.nonLocalJumps&2&&O.push(t.createIfStatement(t.createStrictEquality(zr,t.createStringLiteral("break")),t.createBreakStatement())),Ye.labeledNonLocalBreaks||Ye.labeledNonLocalContinues){const Ln=[];Ee(Ye.labeledNonLocalBreaks,!0,zr,Ct,Ln),Ee(Ye.labeledNonLocalContinues,!1,zr,Ct,Ln),O.push(t.createSwitchStatement(zr,t.createCaseBlock(Ln)))}}return O}function X(Q,Ye,Ct,At){Ye?(Q.labeledNonLocalBreaks||(Q.labeledNonLocalBreaks=new Map),Q.labeledNonLocalBreaks.set(Ct,At)):(Q.labeledNonLocalContinues||(Q.labeledNonLocalContinues=new Map),Q.labeledNonLocalContinues.set(Ct,At))}function Ee(Q,Ye,Ct,At,O){Q&&Q.forEach((he,Xe)=>{const Ft=[];if(!At||At.labels&&At.labels.get(Xe)){const zr=t.createIdentifier(Xe);Ft.push(Ye?t.createBreakStatement(zr):t.createContinueStatement(zr))}else X(At,Ye,Xe,he),Ft.push(t.createReturnStatement(Ct));O.push(t.createCaseClause(t.createStringLiteral(he),Ft))})}function lt(Q,Ye,Ct,At,O){const he=Ye.name;if(Ns(he))for(const Xe of he.elements)pl(Xe)||lt(Q,Xe,Ct,At,O);else{Ct.push(t.createParameterDeclaration(void 0,void 0,he));const Xe=f.getNodeCheckFlags(Ye);if(Xe&65536||O){const Ft=t.createUniqueName("out_"+on(he));let zr=0;Xe&65536&&(zr|=1),Gb(Q)&&(Q.initializer&&f.isBindingCapturedByNode(Q.initializer,Ye)&&(zr|=2),(Q.condition&&f.isBindingCapturedByNode(Q.condition,Ye)||Q.incrementor&&f.isBindingCapturedByNode(Q.incrementor,Ye))&&(zr|=1)),At.push({flags:zr,originalName:he,outParamName:Ft})}}}function Xt(Q,Ye,Ct,At){const O=Ye.properties,he=O.length;for(let Xe=At;Xeac(p_)&&!!va(p_.declarationList.declarations).initializer,At=P;P=void 0;const O=Dr(Ye.statements,pe,Ei);P=At;const he=An(O,Ct),Xe=An(O,p_=>!Ct(p_)),zr=Ls(va(he),ac).declarationList.declarations[0],Vn=xc(zr.initializer);let Ln=Wn(Vn,nl);!Ln&&Zr(Vn)&&Vn.operatorToken.kind===28&&(Ln=Wn(Vn.left,nl));const ji=Ls(Ln?xc(Ln.right):Vn,Rs),fa=Ls(xc(ji.expression),co),pa=fa.body.statements;let lc=0,Rl=-1;const Zc=[];if(Ln){const p_=Wn(pa[lc],Cl);p_&&(Zc.push(p_),lc++),Zc.push(pa[lc]),lc++,Zc.push(t.createExpressionStatement(t.createAssignment(Ln.left,Ls(zr.name,Ie))))}for(;!Hp(Uh(pa,Rl));)Rl--;Nn(Zc,pa,lc,Rl),Rl<-1&&Nn(Zc,pa,Rl+1);const G_=Wn(Uh(pa,Rl),Hp);for(const p_ of Xe)Hp(p_)&&(G_!=null&&G_.expression)&&!Ie(G_.expression)?Zc.push(G_):Zc.push(p_);return Nn(Zc,he,1),t.restoreOuterExpressions(Q.expression,t.restoreOuterExpressions(zr.initializer,t.restoreOuterExpressions(Ln&&Ln.right,t.updateCallExpression(ji,t.restoreOuterExpressions(ji.expression,t.updateFunctionExpression(fa,void 0,void 0,void 0,void 0,fa.parameters,void 0,t.updateBlock(fa.body,Zc))),void 0,ji.arguments))))}function ol(Q,Ye){if(Q.transformFlags&32768||Q.expression.kind===108||o_(xc(Q.expression))){const{target:Ct,thisArg:At}=t.createCallBinding(Q.expression,c);Q.expression.kind===108&&Qr(At,8);let O;if(Q.transformFlags&32768?O=t.createFunctionApplyCall(E.checkDefined(qe(Ct,H,ot)),Q.expression.kind===108?At:E.checkDefined(qe(At,Y,ot)),Ju(Q.arguments,!0,!1,!1)):O=Ke(t.createFunctionCallCall(E.checkDefined(qe(Ct,H,ot)),Q.expression.kind===108?At:E.checkDefined(qe(At,Y,ot)),Dr(Q.arguments,Y,ot)),Q),Q.expression.kind===108){const he=t.createLogicalOr(O,ns());O=t.createAssignment(K(),he)}return dn(O,Q)}return Pb(Q)&&(T|=131072),ur(Q,Y,e)}function Pp(Q){if(ct(Q.arguments,hd)){const{target:Ye,thisArg:Ct}=t.createCallBinding(t.createPropertyAccessExpression(Q.expression,"bind"),c);return t.createNewExpression(t.createFunctionApplyCall(E.checkDefined(qe(Ye,Y,ot)),Ct,Ju(t.createNodeArray([t.createVoidZero(),...Q.arguments]),!0,!1,!1)),void 0,[])}return ur(Q,Y,e)}function Ju(Q,Ye,Ct,At){const O=Q.length,he=Mp(sB(Q,Te,(Vn,Ln,ji,fa)=>Ln(Vn,Ct,At&&fa===O)));if(he.length===1){const Vn=he[0];if(Ye&&!u.downlevelIteration||zW(Vn.expression)||c3(Vn.expression,"___spreadArray"))return Vn.expression}const Xe=n(),Ft=he[0].kind!==0;let zr=Ft?t.createArrayLiteralExpression():he[0].expression;for(let Vn=Ft?0:1;Vn0&&At.push(t.createStringLiteral(Ct.literal.text)),Ye=t.createCallExpression(t.createPropertyAccessExpression(Ye,"concat"),void 0,At)}return Ke(Ye,Q)}function dc(){return t.createUniqueName("_super",48)}function Ec(Q,Ye){const Ct=T&8&&!Ye?t.createPropertyAccessExpression(dn(dc(),Q),"prototype"):dc();return dn(Ct,Q),Nc(Ct,Q),sa(Ct,Q),Ct}function hl(Q){return Q.keywordToken===105&&Q.name.escapedText==="target"?(T|=32768,t.createUniqueName("_newTarget",48)):Q}function If(Q,Ye,Ct){if(F&1&&As(Ye)){const At=U(32670,ha(Ye)&16?81:65);d(Q,Ye,Ct),$(At,0,0);return}d(Q,Ye,Ct)}function __(){F&2||(F|=2,e.enableSubstitution(80))}function Ku(){F&1||(F|=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 ep(Q,Ye){return Ye=g(Q,Ye),Q===1?_h(Ye):Ie(Ye)?am(Ye):Ye}function am(Q){if(F&2&&!qV(Q)){const Ye=as(Q,Ie);if(Ye&&qm(Ye))return Ke(t.getGeneratedNameForNode(Ye),Q)}return Q}function qm(Q){switch(Q.parent.kind){case 208:case 263:case 266:case 260:return Q.parent.name===Q&&f.isDeclarationWithCollidingName(Q.parent)}return!1}function _h(Q){switch(Q.kind){case 80:return _u(Q);case 110:return H_(Q)}return Q}function _u(Q){if(F&2&&!qV(Q)){const Ye=f.getReferencedDeclarationWithCollidingName(Q);if(Ye&&!($n(Ye)&&fh(Ye,Q)))return Ke(t.getGeneratedNameForNode(us(Ye)),Q)}return Q}function fh(Q,Ye){let Ct=as(Ye);if(!Ct||Ct===Q||Ct.end<=Q.pos||Ct.pos>=Q.end)return!1;const At=Nm(Q);for(;Ct;){if(Ct===At||Ct===Q)return!1;if(Tl(Ct)&&Ct.parent===Q)return!0;Ct=Ct.parent}return!1}function H_(Q){return F&1&&T&16?Ke(K(),Q):Q}function Ag(Q,Ye){return Ms(Ye)?t.getInternalName(Q):t.createPropertyAccessExpression(t.getInternalName(Q),"prototype")}function f_(Q,Ye){if(!Q||!Ye||ct(Q.parameters))return!1;const Ct=bl(Q.body.statements);if(!Ct||!xo(Ct)||Ct.kind!==244)return!1;const At=Ct.expression;if(!xo(At)||At.kind!==213)return!1;const O=At.expression;if(!xo(O)||O.kind!==108)return!1;const he=Tm(At.arguments);if(!he||!xo(he)||he.kind!==230)return!1;const Xe=he.expression;return Ie(Xe)&&Xe.escapedText==="arguments"}}var tRe=wt({"src/compiler/transformers/es2015.ts"(){Fs()}});function vae(e){const{factory:t}=e,n=e.getCompilerOptions();let i,s;(n.jsx===1||n.jsx===3)&&(i=e.onEmitNode,e.onEmitNode=u,e.enableEmitNotification(286),e.enableEmitNotification(287),e.enableEmitNotification(285),s=[]);const o=e.onSubstituteNode;return e.onSubstituteNode=f,e.enableSubstitution(211),e.enableSubstitution(303),Xp(e,c);function c(S){return S}function u(S,T,k){switch(T.kind){case 286:case 287:case 285:const w=T.tagName;s[cu(w)]=!0;break}i(S,T,k)}function f(S,T){return T.id&&s&&s[T.id]?o(S,T):(T=o(S,T),Sn(T)?g(T):zc(T)?d(T):T)}function g(S){if(Pi(S.name))return S;const T=y(S.name);return T?Ke(t.createElementAccessExpression(S.expression,T),S):S}function d(S){const T=Ie(S.name)&&y(S.name);return T?t.updatePropertyAssignment(S,T,S.initializer):S}function y(S){const T=v1(S);if(T!==void 0&&T>=83&&T<=118)return Ke(t.createStringLiteralFromNode(S),S)}}var rRe=wt({"src/compiler/transformers/es5.ts"(){Fs()}});function nRe(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 bae(e){const{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:i,endLexicalEnvironment:s,hoistFunctionDeclaration:o,hoistVariableDeclaration:c}=e,u=e.getCompilerOptions(),f=Fa(u),g=e.getEmitResolver(),d=e.onSubstituteNode;e.onSubstituteNode=St;let y,S,T,k,w,P,F,J,U,$,j=1,re,R,Y,ue,pe=0,H=0,q,ee,oe,Se,ae,K,fe,ke;return Xp(e,Oe);function Oe(Te){if(Te.isDeclarationFile||!(Te.transformFlags&2048))return Te;const kt=ur(Te,me,e);return ih(kt,e.readEmitHelpers()),kt}function me(Te){const kt=Te.transformFlags;return k?be(Te):T?xe(Te):fo(Te)&&Te.asteriskToken?ft(Te):kt&2048?ur(Te,me,e):Te}function be(Te){switch(Te.kind){case 246:return Vs(Te);case 247:return cr(Te);case 255:return nt(Te);case 256:return ir(Te);default:return xe(Te)}}function xe(Te){switch(Te.kind){case 262:return ge(Te);case 218:return Fe(Te);case 177:case 178:return $e(Te);case 243:return at(Te);case 248:return Le(Te);case 249:return tt(Te);case 252:return et(Te);case 251:return ne(Te);case 253:return Ge(Te);default:return Te.transformFlags&1048576?De(Te):Te.transformFlags&4196352?ur(Te,me,e):Te}}function De(Te){switch(Te.kind){case 226:return Je(Te);case 361:return hr(Te);case 227:return tr(Te);case 229:return jt(Te);case 209:return Rt(Te);case 210:return Ji(Te);case 212:return yi(Te);case 213:return os(Te);case 214:return yr(Te);default:return ur(Te,me,e)}}function ft(Te){switch(Te.kind){case 262:return ge(Te);case 218:return Fe(Te);default:return E.failBadSyntaxKind(Te)}}function ge(Te){if(Te.asteriskToken)Te=dn(Ke(t.createFunctionDeclaration(Te.modifiers,void 0,Te.name,void 0,tc(Te.parameters,me,e),void 0,Pt(Te.body)),Te),Te);else{const kt=T,Fr=k;T=!1,k=!1,Te=ur(Te,me,e),T=kt,k=Fr}if(T){o(Te);return}else return Te}function Fe(Te){if(Te.asteriskToken)Te=dn(Ke(t.createFunctionExpression(void 0,void 0,Te.name,void 0,tc(Te.parameters,me,e),void 0,Pt(Te.body)),Te),Te);else{const kt=T,Fr=k;T=!1,k=!1,Te=ur(Te,me,e),T=kt,k=Fr}return Te}function $e(Te){const kt=T,Fr=k;return T=!1,k=!1,Te=ur(Te,me,e),T=kt,k=Fr,Te}function Pt(Te){const kt=[],Fr=T,Yi=k,Ds=w,Is=P,Cc=F,Uc=J,Ro=U,qo=$,dc=j,Ec=re,hl=R,If=Y,__=ue;T=!0,k=!1,w=void 0,P=void 0,F=void 0,J=void 0,U=void 0,$=void 0,j=1,re=void 0,R=void 0,Y=void 0,ue=t.createTempVariable(void 0),i();const Ku=t.copyPrologue(Te.statements,kt,!1,me);_i(Te.statements,Ku);const ep=X();return mg(kt,s()),kt.push(t.createReturnStatement(ep)),T=Fr,k=Yi,w=Ds,P=Is,F=Cc,J=Uc,U=Ro,$=qo,j=dc,re=Ec,R=hl,Y=If,ue=__,Ke(t.createBlock(kt,Te.multiLine),Te)}function at(Te){if(Te.transformFlags&1048576){Hn(Te.declarationList);return}else{if(ha(Te)&2097152)return Te;for(const Fr of Te.declarationList.declarations)c(Fr.name);const kt=BE(Te.declarationList);return kt.length===0?void 0:sa(t.createExpressionStatement(t.inlineExpressions(nr(kt,ei))),Te)}}function Je(Te){const kt=nW(Te);switch(kt){case 0:return zt(Te);case 1:return pt(Te);default:return E.assertNever(kt)}}function pt(Te){const{left:kt,right:Fr}=Te;if(W(Fr)){let Yi;switch(kt.kind){case 211:Yi=t.updatePropertyAccessExpression(kt,V(E.checkDefined(qe(kt.expression,me,S_))),kt.name);break;case 212:Yi=t.updateElementAccessExpression(kt,V(E.checkDefined(qe(kt.expression,me,S_))),V(E.checkDefined(qe(kt.argumentExpression,me,ot))));break;default:Yi=E.checkDefined(qe(kt,me,ot));break}const Ds=Te.operatorToken.kind;return O3(Ds)?Ke(t.createAssignment(Yi,Ke(t.createBinaryExpression(V(Yi),L3(Ds),E.checkDefined(qe(Fr,me,ot))),Te)),Te):t.updateBinaryExpression(Te,Yi,Te.operatorToken,E.checkDefined(qe(Fr,me,ot)))}return ur(Te,me,e)}function zt(Te){return W(Te.right)?Ire(Te.operatorToken.kind)?Lr(Te):Te.operatorToken.kind===28?Vt(Te):t.updateBinaryExpression(Te,V(E.checkDefined(qe(Te.left,me,ot))),Te.operatorToken,E.checkDefined(qe(Te.right,me,ot))):ur(Te,me,e)}function Vt(Te){let kt=[];return Fr(Te.left),Fr(Te.right),t.inlineExpressions(kt);function Fr(Yi){Zr(Yi)&&Yi.operatorToken.kind===28?(Fr(Yi.left),Fr(Yi.right)):(W(Yi)&&kt.length>0&&(se(1,[t.createExpressionStatement(t.inlineExpressions(kt))]),kt=[]),kt.push(E.checkDefined(qe(Yi,me,ot))))}}function hr(Te){let kt=[];for(const Fr of Te.elements)Zr(Fr)&&Fr.operatorToken.kind===28?kt.push(Vt(Fr)):(W(Fr)&&kt.length>0&&(se(1,[t.createExpressionStatement(t.inlineExpressions(kt))]),kt=[]),kt.push(E.checkDefined(qe(Fr,me,ot))));return t.inlineExpressions(kt)}function Lr(Te){const kt=Ne(),Fr=ce();return Mo(Fr,E.checkDefined(qe(Te.left,me,ot)),Te.left),Te.operatorToken.kind===56?go(kt,Fr,Te.left):Wt(kt,Fr,Te.left),Mo(Fr,E.checkDefined(qe(Te.right,me,ot)),Te.right),Ce(kt),Fr}function tr(Te){if(W(Te.whenTrue)||W(Te.whenFalse)){const kt=Ne(),Fr=Ne(),Yi=ce();return go(kt,E.checkDefined(qe(Te.condition,me,ot)),Te.condition),Mo(Yi,E.checkDefined(qe(Te.whenTrue,me,ot)),Te.whenTrue),fs(Fr),Ce(kt),Mo(Yi,E.checkDefined(qe(Te.whenFalse,me,ot)),Te.whenFalse),Ce(Fr),Yi}return ur(Te,me,e)}function jt(Te){const kt=Ne(),Fr=qe(Te.expression,me,ot);if(Te.asteriskToken){const Yi=ha(Te.expression)&8388608?Fr:Ke(n().createValuesHelper(Fr),Te);Pl(Yi,Te)}else Ml(Fr,Te);return Ce(kt),Kf(Te)}function Rt(Te){return Kn(Te.elements,void 0,void 0,Te.multiLine)}function Kn(Te,kt,Fr,Yi){const Ds=Pe(Te);let Is;if(Ds>0){Is=ce();const Ro=Dr(Te,me,ot,0,Ds);Mo(Is,t.createArrayLiteralExpression(kt?[kt,...Ro]:Ro)),kt=void 0}const Cc=Du(Te,Uc,[],Ds);return Is?t.createArrayConcatCall(Is,[t.createArrayLiteralExpression(Cc,Yi)]):Ke(t.createArrayLiteralExpression(kt?[kt,...Cc]:Cc,Yi),Fr);function Uc(Ro,qo){if(W(qo)&&Ro.length>0){const dc=Is!==void 0;Is||(Is=ce()),Mo(Is,dc?t.createArrayConcatCall(Is,[t.createArrayLiteralExpression(Ro,Yi)]):t.createArrayLiteralExpression(kt?[kt,...Ro]:Ro,Yi)),kt=void 0,Ro=[]}return Ro.push(E.checkDefined(qe(qo,me,ot))),Ro}}function Ji(Te){const kt=Te.properties,Fr=Te.multiLine,Yi=Pe(kt),Ds=ce();Mo(Ds,t.createObjectLiteralExpression(Dr(kt,me,Yg,0,Yi),Fr));const Is=Du(kt,Cc,[],Yi);return Is.push(Fr?bu(ba(Ke(t.cloneNode(Ds),Ds),Ds.parent)):Ds),t.inlineExpressions(Is);function Cc(Uc,Ro){W(Ro)&&Uc.length>0&&(rc(t.createExpressionStatement(t.inlineExpressions(Uc))),Uc=[]);const qo=bie(t,Te,Ro,Ds),dc=qe(qo,me,ot);return dc&&(Fr&&bu(dc),Uc.push(dc)),Uc}}function yi(Te){return W(Te.argumentExpression)?t.updateElementAccessExpression(Te,V(E.checkDefined(qe(Te.expression,me,S_))),E.checkDefined(qe(Te.argumentExpression,me,ot))):ur(Te,me,e)}function os(Te){if(!of(Te)&&er(Te.arguments,W)){const{target:kt,thisArg:Fr}=t.createCallBinding(Te.expression,c,f,!0);return dn(Ke(t.createFunctionApplyCall(V(E.checkDefined(qe(kt,me,S_))),Fr,Kn(Te.arguments)),Te),Te)}return ur(Te,me,e)}function yr(Te){if(er(Te.arguments,W)){const{target:kt,thisArg:Fr}=t.createCallBinding(t.createPropertyAccessExpression(Te.expression,"bind"),c);return dn(Ke(t.createNewExpression(t.createFunctionApplyCall(V(E.checkDefined(qe(kt,me,ot))),Fr,Kn(Te.arguments,t.createVoidZero())),void 0,[]),Te),Te)}return ur(Te,me,e)}function _i(Te,kt=0){const Fr=Te.length;for(let Yi=kt;Yi0)break;Ds.push(ei(Cc))}Ds.length&&(rc(t.createExpressionStatement(t.inlineExpressions(Ds))),Yi+=Ds.length,Ds=[])}}function ei(Te){return sa(t.createAssignment(sa(t.cloneNode(Te.name),Te.name),E.checkDefined(qe(Te.initializer,me,ot))),Te)}function Ii(Te){if(W(Te))if(W(Te.thenStatement)||W(Te.elseStatement)){const kt=Ne(),Fr=Te.elseStatement?Ne():void 0;go(Te.elseStatement?Fr:kt,E.checkDefined(qe(Te.expression,me,ot)),Te.expression),ln(Te.thenStatement),Te.elseStatement&&(fs(kt),Ce(Fr),ln(Te.elseStatement)),Ce(kt)}else rc(qe(Te,me,Ei));else rc(qe(Te,me,Ei))}function ns(Te){if(W(Te)){const kt=Ne(),Fr=Ne();pi(kt),Ce(Fr),ln(Te.statement),Ce(kt),Wt(Fr,E.checkDefined(qe(Te.expression,me,ot))),ci()}else rc(qe(Te,me,Ei))}function Vs(Te){return k?(Qi(),Te=ur(Te,me,e),ci(),Te):ur(Te,me,e)}function _a(Te){if(W(Te)){const kt=Ne(),Fr=pi(kt);Ce(kt),go(Fr,E.checkDefined(qe(Te.expression,me,ot))),ln(Te.statement),fs(kt),ci()}else rc(qe(Te,me,Ei))}function cr(Te){return k?(Qi(),Te=ur(Te,me,e),ci(),Te):ur(Te,me,e)}function br(Te){if(W(Te)){const kt=Ne(),Fr=Ne(),Yi=pi(Fr);if(Te.initializer){const Ds=Te.initializer;dl(Ds)?Hn(Ds):rc(Ke(t.createExpressionStatement(E.checkDefined(qe(Ds,me,ot))),Ds))}Ce(kt),Te.condition&&go(Yi,E.checkDefined(qe(Te.condition,me,ot))),ln(Te.statement),Ce(Fr),Te.incrementor&&rc(Ke(t.createExpressionStatement(E.checkDefined(qe(Te.incrementor,me,ot))),Te.incrementor)),fs(kt),ci()}else rc(qe(Te,me,Ei))}function Le(Te){k&&Qi();const kt=Te.initializer;if(kt&&dl(kt)){for(const Yi of kt.declarations)c(Yi.name);const Fr=BE(kt);Te=t.updateForStatement(Te,Fr.length>0?t.inlineExpressions(nr(Fr,ei)):void 0,qe(Te.condition,me,ot),qe(Te.incrementor,me,ot),Qu(Te.statement,me,e))}else Te=ur(Te,me,e);return k&&ci(),Te}function rt(Te){if(W(Te)){const kt=ce(),Fr=ce(),Yi=ce(),Ds=t.createLoopVariable(),Is=Te.initializer;c(Ds),Mo(kt,E.checkDefined(qe(Te.expression,me,ot))),Mo(Fr,t.createArrayLiteralExpression()),rc(t.createForInStatement(Yi,kt,t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(Fr,"push"),void 0,[Yi])))),Mo(Ds,t.createNumericLiteral(0));const Cc=Ne(),Uc=Ne(),Ro=pi(Uc);Ce(Cc),go(Ro,t.createLessThan(Ds,t.createPropertyAccessExpression(Fr,"length"))),Mo(Yi,t.createElementAccessExpression(Fr,Ds)),go(Uc,t.createBinaryExpression(Yi,103,kt));let qo;if(dl(Is)){for(const dc of Is.declarations)c(dc.name);qo=t.cloneNode(Is.declarations[0].name)}else qo=E.checkDefined(qe(Is,me,ot)),E.assert(S_(qo));Mo(qo,Yi),ln(Te.statement),Ce(Uc),rc(t.createExpressionStatement(t.createPostfixIncrement(Ds))),fs(Cc),ci()}else rc(qe(Te,me,Ei))}function tt(Te){k&&Qi();const kt=Te.initializer;if(dl(kt)){for(const Fr of kt.declarations)c(Fr.name);Te=t.updateForInStatement(Te,kt.declarations[0].name,E.checkDefined(qe(Te.expression,me,ot)),E.checkDefined(qe(Te.statement,me,Ei,t.liftToBlock)))}else Te=ur(Te,me,e);return k&&ci(),Te}function yt(Te){const kt=zs(Te.label?on(Te.label):void 0);kt>0?fs(kt,Te):rc(Te)}function ne(Te){if(k){const kt=zs(Te.label&&on(Te.label));if(kt>0)return oa(kt,Te)}return ur(Te,me,e)}function we(Te){const kt=$i(Te.label?on(Te.label):void 0);kt>0?fs(kt,Te):rc(Te)}function et(Te){if(k){const kt=$i(Te.label&&on(Te.label));if(kt>0)return oa(kt,Te)}return ur(Te,me,e)}function B(Te){q_(qe(Te.expression,me,ot),Te)}function Ge(Te){return zo(qe(Te.expression,me,ot),Te)}function mt(Te){W(Te)?(Er(V(E.checkDefined(qe(Te.expression,me,ot)))),ln(Te.statement),Nr()):rc(qe(Te,me,Ei))}function Be(Te){if(W(Te.caseBlock)){const kt=Te.caseBlock,Fr=kt.clauses.length,Yi=is(),Ds=V(E.checkDefined(qe(Te.expression,me,ot))),Is=[];let Cc=-1;for(let qo=0;qo0)break;Ro.push(t.createCaseClause(E.checkDefined(qe(Ec.expression,me,ot)),[oa(Is[dc],Ec.expression)]))}else qo++}Ro.length&&(rc(t.createSwitchStatement(Ds,t.createCaseBlock(Ro))),Uc+=Ro.length,Ro=[]),qo>0&&(Uc+=qo,qo=0)}Cc>=0?fs(Is[Cc]):fs(Yi);for(let qo=0;qo=0;Fr--){const Yi=J[Fr];if(mo(Yi)){if(Yi.labelText===Te)return!0}else break}return!1}function $i(Te){if(J)if(Te)for(let kt=J.length-1;kt>=0;kt--){const Fr=J[kt];if(mo(Fr)&&Fr.labelText===Te)return Fr.breakLabel;if(Ra(Fr)&&Ol(Te,kt-1))return Fr.breakLabel}else for(let kt=J.length-1;kt>=0;kt--){const Fr=J[kt];if(Ra(Fr))return Fr.breakLabel}return 0}function zs(Te){if(J)if(Te)for(let kt=J.length-1;kt>=0;kt--){const Fr=J[kt];if(Uo(Fr)&&Ol(Te,kt-1))return Fr.continueLabel}else for(let kt=J.length-1;kt>=0;kt--){const Fr=J[kt];if(Uo(Fr))return Fr.continueLabel}return 0}function Ll(Te){if(Te!==void 0&&Te>0){$===void 0&&($=[]);const kt=t.createNumericLiteral(Number.MAX_SAFE_INTEGER);return $[Te]===void 0?$[Te]=[kt]:$[Te].push(kt),kt}return t.createOmittedExpression()}function Qa(Te){const kt=t.createNumericLiteral(Te);return WF(kt,3,nRe(Te)),kt}function oa(Te,kt){return E.assertLessThan(0,Te,"Invalid label"),Ke(t.createReturnStatement(t.createArrayLiteralExpression([Qa(3),Ll(Te)])),kt)}function zo(Te,kt){return Ke(t.createReturnStatement(t.createArrayLiteralExpression(Te?[Qa(2),Te]:[Qa(2)])),kt)}function Kf(Te){return Ke(t.createCallExpression(t.createPropertyAccessExpression(ue,"sent"),void 0,[]),Te)}function Fc(){se(0)}function rc(Te){Te?se(1,[Te]):Fc()}function Mo(Te,kt,Fr){se(2,[Te,kt],Fr)}function fs(Te,kt){se(3,[Te],kt)}function Wt(Te,kt,Fr){se(4,[Te,kt],Fr)}function go(Te,kt,Fr){se(5,[Te,kt],Fr)}function Pl(Te,kt){se(7,[Te],kt)}function Ml(Te,kt){se(6,[Te],kt)}function q_(Te,kt){se(8,[Te],kt)}function io(Te,kt){se(9,[Te],kt)}function Yc(){se(10)}function se(Te,kt,Fr){re===void 0&&(re=[],R=[],Y=[]),U===void 0&&Ce(Ne());const Yi=re.length;re[Yi]=Te,R[Yi]=kt,Y[Yi]=Fr}function X(){pe=0,H=0,q=void 0,ee=!1,oe=!1,Se=void 0,ae=void 0,K=void 0,fe=void 0,ke=void 0;const Te=Ee();return n().createGeneratorHelper(Qr(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,ue)],void 0,t.createBlock(Te,Te.length>0)),1048576))}function Ee(){if(re){for(let Te=0;Te=0;kt--){const Fr=ke[kt];ae=[t.createWithStatement(Fr.expression,t.createBlock(ae))]}if(fe){const{startLabel:kt,catchLabel:Fr,finallyLabel:Yi,endLabel:Ds}=fe;ae.unshift(t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createPropertyAccessExpression(ue,"trys"),"push"),void 0,[t.createArrayLiteralExpression([Ll(kt),Ll(Fr),Ll(Yi),Ll(Ds)])]))),fe=void 0}Te&&ae.push(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(ue,"label"),t.createNumericLiteral(H+1))))}Se.push(t.createCaseClause(t.createNumericLiteral(H),ae||[])),ae=void 0}function En(Te){if(U)for(let kt=0;ktn.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.createIdentifier(on(Ce))),Ne),n.createVoidZero())));_r(Pe,qe(P.externalHelpersImportDeclaration,q,Ei)),Nn(Pe,Dr(W.statements,q,Ei,A)),H(Pe,!1),mg(Pe,o());const le=n.updateSourceFile(W,Ke(n.createNodeArray(Pe),W.statements));return ih(le,e.readEmitHelpers()),le}function re(W){const Pe=n.createIdentifier("define"),St=Jw(n,W,g,u),A=gp(W)&&W,{aliasedModuleNames:le,unaliasedModuleNames:V,importAliasNames:ce}=Y(W,!0),Ne=n.updateSourceFile(W,Ke(n.createNodeArray([n.createExpressionStatement(n.createCallExpression(Pe,void 0,[...St?[St]:[],n.createArrayLiteralExpression(A?Ve:[n.createStringLiteral("require"),n.createStringLiteral("exports"),...le,...V]),A?A.statements.length?A.statements[0].expression:n.createObjectLiteralExpression():n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,"require"),n.createParameterDeclaration(void 0,void 0,"exports"),...ce],void 0,pe(W))]))]),W.statements));return ih(Ne,e.readEmitHelpers()),Ne}function R(W){const{aliasedModuleNames:Pe,unaliasedModuleNames:St,importAliasNames:A}=Y(W,!1),le=Jw(n,W,g,u),V=n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,"factory")],void 0,Ke(n.createBlock([n.createIfStatement(n.createLogicalAnd(n.createTypeCheck(n.createIdentifier("module"),"object"),n.createTypeCheck(n.createPropertyAccessExpression(n.createIdentifier("module"),"exports"),"object")),n.createBlock([n.createVariableStatement(void 0,[n.createVariableDeclaration("v",void 0,void 0,n.createCallExpression(n.createIdentifier("factory"),void 0,[n.createIdentifier("require"),n.createIdentifier("exports")]))]),Qr(n.createIfStatement(n.createStrictInequality(n.createIdentifier("v"),n.createIdentifier("undefined")),n.createExpressionStatement(n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("module"),"exports"),n.createIdentifier("v")))),1)]),n.createIfStatement(n.createLogicalAnd(n.createTypeCheck(n.createIdentifier("define"),"function"),n.createPropertyAccessExpression(n.createIdentifier("define"),"amd")),n.createBlock([n.createExpressionStatement(n.createCallExpression(n.createIdentifier("define"),void 0,[...le?[le]:[],n.createArrayLiteralExpression([n.createStringLiteral("require"),n.createStringLiteral("exports"),...Pe,...St]),n.createIdentifier("factory")]))])))],!0),void 0)),ce=n.updateSourceFile(W,Ke(n.createNodeArray([n.createExpressionStatement(n.createCallExpression(V,void 0,[n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,"require"),n.createParameterDeclaration(void 0,void 0,"exports"),...A],void 0,pe(W))]))]),W.statements));return ih(ce,e.readEmitHelpers()),ce}function Y(W,Pe){const St=[],A=[],le=[];for(const V of W.amdDependencies)V.name?(St.push(n.createStringLiteral(V.path)),le.push(n.createParameterDeclaration(void 0,void 0,V.name))):A.push(n.createStringLiteral(V.path));for(const V of P.externalImports){const ce=hx(n,V,w,g,f,u),Ne=GC(n,V,w);ce&&(Pe&&Ne?(Qr(Ne,8),St.push(ce),le.push(n.createParameterDeclaration(void 0,void 0,Ne))):A.push(ce))}return{aliasedModuleNames:St,unaliasedModuleNames:A,importAliasNames:le}}function ue(W){if(El(W)||Tc(W)||!hx(n,W,w,g,f,u))return;const Pe=GC(n,W,w),St=os(W,Pe);if(St!==Pe)return n.createExpressionStatement(n.createAssignment(Pe,St))}function pe(W){s();const Pe=[],St=n.copyPrologue(W.statements,Pe,!u.noImplicitUseStrict,q);$()&&_r(Pe,yt()),gr(P.exportedNames)&&_r(Pe,n.createExpressionStatement(Du(P.exportedNames,(le,V)=>n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.createIdentifier(on(V))),le),n.createVoidZero()))),_r(Pe,qe(P.externalHelpersImportDeclaration,q,Ei)),y===2&&Nn(Pe,Ri(P.externalImports,ue)),Nn(Pe,Dr(W.statements,q,Ei,St)),H(Pe,!0),mg(Pe,o());const A=n.createBlock(Pe,!0);return J&&ZT(A,Vbe),A}function H(W,Pe){if(P.exportEquals){const St=qe(P.exportEquals.expression,Se,ot);if(St)if(Pe){const A=n.createReturnStatement(St);Ke(A,P.exportEquals),Qr(A,3840),W.push(A)}else{const A=n.createExpressionStatement(n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("module"),"exports"),St));Ke(A,P.exportEquals),Qr(A,3072),W.push(A)}}}function q(W){switch(W.kind){case 272:return yr(W);case 271:return ln(W);case 278:return Ht(W);case 277:return Ue(W);default:return ee(W)}}function ee(W){switch(W.kind){case 243:return Hn(W);case 262:return Et(W);case 263:return fr(W);case 248:return ke(W,!0);case 249:return Oe(W);case 250:return me(W);case 246:return be(W);case 247:return xe(W);case 256:return De(W);case 254:return ft(W);case 245:return ge(W);case 255:return Fe(W);case 269:return $e(W);case 296:return Pt(W);case 297:return at(W);case 258:return Je(W);case 299:return pt(W);case 241:return zt(W);default:return Se(W)}}function oe(W,Pe){if(!(W.transformFlags&276828160))return W;switch(W.kind){case 248:return ke(W,!1);case 244:return Vt(W);case 217:return hr(W,Pe);case 360:return Lr(W,Pe);case 213:if(of(W)&&w.impliedNodeFormat===void 0)return jt(W);break;case 226:if(e0(W))return fe(W,Pe);break;case 224:case 225:return tr(W,Pe)}return ur(W,Se,e)}function Se(W){return oe(W,!1)}function ae(W){return oe(W,!0)}function K(W){if(ua(W))for(const Pe of W.properties)switch(Pe.kind){case 303:if(K(Pe.initializer))return!0;break;case 304:if(K(Pe.name))return!0;break;case 305:if(K(Pe.expression))return!0;break;case 174:case 177:case 178:return!1;default:E.assertNever(Pe,"Unhandled object member kind")}else if(ju(W)){for(const Pe of W.elements)if(hd(Pe)){if(K(Pe.expression))return!0}else if(K(Pe))return!0}else if(Ie(W))return gr(Kt(W))>(LO(W)?1:0);return!1}function fe(W,Pe){return K(W.left)?nS(W,Se,e,0,!Pe,ei):ur(W,Se,e)}function ke(W,Pe){if(Pe&&W.initializer&&dl(W.initializer)&&!(W.initializer.flags&7)){const St=cr(void 0,W.initializer,!1);if(St){const A=[],le=qe(W.initializer,ae,dl),V=n.createVariableStatement(void 0,le);A.push(V),Nn(A,St);const ce=qe(W.condition,Se,ot),Ne=qe(W.incrementor,ae,ot),Ce=Qu(W.statement,Pe?ee:Se,e);return A.push(n.updateForStatement(W,void 0,ce,Ne,Ce)),A}}return n.updateForStatement(W,qe(W.initializer,ae,Wf),qe(W.condition,Se,ot),qe(W.incrementor,ae,ot),Qu(W.statement,Pe?ee:Se,e))}function Oe(W){if(dl(W.initializer)&&!(W.initializer.flags&7)){const Pe=cr(void 0,W.initializer,!0);if(ct(Pe)){const St=qe(W.initializer,ae,Wf),A=qe(W.expression,Se,ot),le=Qu(W.statement,ee,e),V=Cs(le)?n.updateBlock(le,[...Pe,...le.statements]):n.createBlock([...Pe,le],!0);return n.updateForInStatement(W,St,A,V)}}return n.updateForInStatement(W,qe(W.initializer,ae,Wf),qe(W.expression,Se,ot),Qu(W.statement,ee,e))}function me(W){if(dl(W.initializer)&&!(W.initializer.flags&7)){const Pe=cr(void 0,W.initializer,!0),St=qe(W.initializer,ae,Wf),A=qe(W.expression,Se,ot);let le=Qu(W.statement,ee,e);return ct(Pe)&&(le=Cs(le)?n.updateBlock(le,[...Pe,...le.statements]):n.createBlock([...Pe,le],!0)),n.updateForOfStatement(W,W.awaitModifier,St,A,le)}return n.updateForOfStatement(W,W.awaitModifier,qe(W.initializer,ae,Wf),qe(W.expression,Se,ot),Qu(W.statement,ee,e))}function be(W){return n.updateDoStatement(W,Qu(W.statement,ee,e),qe(W.expression,Se,ot))}function xe(W){return n.updateWhileStatement(W,qe(W.expression,Se,ot),Qu(W.statement,ee,e))}function De(W){return n.updateLabeledStatement(W,W.label,E.checkDefined(qe(W.statement,ee,Ei,n.liftToBlock)))}function ft(W){return n.updateWithStatement(W,qe(W.expression,Se,ot),E.checkDefined(qe(W.statement,ee,Ei,n.liftToBlock)))}function ge(W){return n.updateIfStatement(W,qe(W.expression,Se,ot),E.checkDefined(qe(W.thenStatement,ee,Ei,n.liftToBlock)),qe(W.elseStatement,ee,Ei,n.liftToBlock))}function Fe(W){return n.updateSwitchStatement(W,qe(W.expression,Se,ot),E.checkDefined(qe(W.caseBlock,ee,g3)))}function $e(W){return n.updateCaseBlock(W,Dr(W.clauses,ee,e5))}function Pt(W){return n.updateCaseClause(W,qe(W.expression,Se,ot),Dr(W.statements,ee,Ei))}function at(W){return ur(W,ee,e)}function Je(W){return ur(W,ee,e)}function pt(W){return n.updateCatchClause(W,W.variableDeclaration,E.checkDefined(qe(W.block,ee,Cs)))}function zt(W){return W=ur(W,ee,e),W}function Vt(W){return n.updateExpressionStatement(W,qe(W.expression,ae,ot))}function hr(W,Pe){return n.updateParenthesizedExpression(W,qe(W.expression,Pe?ae:Se,ot))}function Lr(W,Pe){return n.updatePartiallyEmittedExpression(W,qe(W.expression,Pe?ae:Se,ot))}function tr(W,Pe){if((W.operator===46||W.operator===47)&&Ie(W.operand)&&!Fo(W.operand)&&!ah(W.operand)&&!kW(W.operand)){const St=Kt(W.operand);if(St){let A,le=qe(W.operand,Se,ot);dy(W)?le=n.updatePrefixUnaryExpression(W,le):(le=n.updatePostfixUnaryExpression(W,le),Pe||(A=n.createTempVariable(c),le=n.createAssignment(A,le),Ke(le,W)),le=n.createComma(le,n.cloneNode(W.operand)),Ke(le,W));for(const V of St)F[Oa(le)]=!0,le=we(V,le),Ke(le,W);return A&&(F[Oa(le)]=!0,le=n.createComma(le,A),Ke(le,W)),le}}return ur(W,Se,e)}function jt(W){if(y===0&&d>=7)return ur(W,Se,e);const Pe=hx(n,W,w,g,f,u),St=qe(bl(W.arguments),Se,ot),A=Pe&&(!St||!aa(St)||St.text!==Pe.text)?Pe:St,le=!!(W.transformFlags&16384);switch(u.module){case 2:return Kn(A,le);case 3:return Rt(A??n.createVoidZero(),le);case 1:default:return Ji(A)}}function Rt(W,Pe){if(J=!0,y2(W)){const St=Fo(W)?W:aa(W)?n.createStringLiteralFromNode(W):Qr(Ke(n.cloneNode(W),W),3072);return n.createConditionalExpression(n.createIdentifier("__syncRequire"),void 0,Ji(W),void 0,Kn(St,Pe))}else{const St=n.createTempVariable(c);return n.createComma(n.createAssignment(St,W),n.createConditionalExpression(n.createIdentifier("__syncRequire"),void 0,Ji(St,!0),void 0,Kn(St,Pe)))}}function Kn(W,Pe){const St=n.createUniqueName("resolve"),A=n.createUniqueName("reject"),le=[n.createParameterDeclaration(void 0,void 0,St),n.createParameterDeclaration(void 0,void 0,A)],V=n.createBlock([n.createExpressionStatement(n.createCallExpression(n.createIdentifier("require"),void 0,[n.createArrayLiteralExpression([W||n.createOmittedExpression()]),St,A]))]);let ce;d>=2?ce=n.createArrowFunction(void 0,void 0,le,void 0,void 0,V):(ce=n.createFunctionExpression(void 0,void 0,void 0,void 0,le,void 0,V),Pe&&Qr(ce,16));const Ne=n.createNewExpression(n.createIdentifier("Promise"),void 0,[ce]);return Om(u)?n.createCallExpression(n.createPropertyAccessExpression(Ne,n.createIdentifier("then")),void 0,[i().createImportStarCallbackHelper()]):Ne}function Ji(W,Pe){const St=W&&!Wm(W)&&!Pe,A=n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Promise"),"resolve"),void 0,St?d>=2?[n.createTemplateExpression(n.createTemplateHead(""),[n.createTemplateSpan(W,n.createTemplateTail(""))])]:[n.createCallExpression(n.createPropertyAccessExpression(n.createStringLiteral(""),"concat"),void 0,[W])]:[]);let le=n.createCallExpression(n.createIdentifier("require"),void 0,St?[n.createIdentifier("s")]:W?[W]:[]);Om(u)&&(le=i().createImportStarHelper(le));const V=St?[n.createParameterDeclaration(void 0,void 0,"s")]:[];let ce;return d>=2?ce=n.createArrowFunction(void 0,void 0,V,void 0,void 0,le):ce=n.createFunctionExpression(void 0,void 0,void 0,void 0,V,void 0,n.createBlock([n.createReturnStatement(le)])),n.createCallExpression(n.createPropertyAccessExpression(A,"then"),void 0,[ce])}function yi(W,Pe){return!Om(u)||Wp(W)&2?Pe:Wse(W)?i().createImportStarHelper(Pe):Pe}function os(W,Pe){return!Om(u)||Wp(W)&2?Pe:k9(W)?i().createImportStarHelper(Pe):tq(W)?i().createImportDefaultHelper(Pe):Pe}function yr(W){let Pe;const St=_C(W);if(y!==2)if(W.importClause){const A=[];St&&!LT(W)?A.push(n.createVariableDeclaration(n.cloneNode(St.name),void 0,void 0,os(W,_i(W)))):(A.push(n.createVariableDeclaration(n.getGeneratedNameForNode(W),void 0,void 0,os(W,_i(W)))),St&<(W)&&A.push(n.createVariableDeclaration(n.cloneNode(St.name),void 0,void 0,n.getGeneratedNameForNode(W)))),Pe=_r(Pe,dn(Ke(n.createVariableStatement(void 0,n.createVariableDeclarationList(A,d>=2?2:0)),W),W))}else return dn(Ke(n.createExpressionStatement(_i(W)),W),W);else St&<(W)&&(Pe=_r(Pe,n.createVariableStatement(void 0,n.createVariableDeclarationList([dn(Ke(n.createVariableDeclaration(n.cloneNode(St.name),void 0,void 0,n.getGeneratedNameForNode(W)),W),W)],d>=2?2:0))));return Pe=ns(Pe,W),xm(Pe)}function _i(W){const Pe=hx(n,W,w,g,f,u),St=[];return Pe&&St.push(Pe),n.createCallExpression(n.createIdentifier("require"),void 0,St)}function ln(W){E.assert(C1(W),"import= for internal module references should be handled in an earlier transformer.");let Pe;return y!==2?Rn(W,32)?Pe=_r(Pe,dn(Ke(n.createExpressionStatement(we(W.name,_i(W))),W),W)):Pe=_r(Pe,dn(Ke(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(n.cloneNode(W.name),void 0,void 0,_i(W))],d>=2?2:0)),W),W)):Rn(W,32)&&(Pe=_r(Pe,dn(Ke(n.createExpressionStatement(we(n.getExportName(W),n.getLocalName(W))),W),W))),Pe=Vs(Pe,W),xm(Pe)}function Ht(W){if(!W.moduleSpecifier)return;const Pe=n.getGeneratedNameForNode(W);if(W.exportClause&&Xf(W.exportClause)){const St=[];y!==2&&St.push(dn(Ke(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(Pe,void 0,void 0,_i(W))])),W),W));for(const A of W.exportClause.elements)if(d===0)St.push(dn(Ke(n.createExpressionStatement(i().createCreateBindingHelper(Pe,n.createStringLiteralFromNode(A.propertyName||A.name),A.propertyName?n.createStringLiteralFromNode(A.name):void 0)),A),A));else{const le=!!Om(u)&&!(Wp(W)&2)&&on(A.propertyName||A.name)==="default",V=n.createPropertyAccessExpression(le?i().createImportDefaultHelper(Pe):Pe,A.propertyName||A.name);St.push(dn(Ke(n.createExpressionStatement(we(n.getExportName(A),V,void 0,!0)),A),A))}return xm(St)}else if(W.exportClause){const St=[];return St.push(dn(Ke(n.createExpressionStatement(we(n.cloneNode(W.exportClause.name),yi(W,y!==2?_i(W):_5(W)?Pe:n.createIdentifier(on(W.exportClause.name))))),W),W)),xm(St)}else return dn(Ke(n.createExpressionStatement(i().createExportStarHelper(y!==2?_i(W):Pe)),W),W)}function Ue(W){if(!W.isExportEquals)return ne(n.createIdentifier("default"),qe(W.expression,Se,ot),W,!0)}function Et(W){let Pe;return Rn(W,32)?Pe=_r(Pe,dn(Ke(n.createFunctionDeclaration(Dr(W.modifiers,et,ta),W.asteriskToken,n.getDeclarationName(W,!0,!0),void 0,Dr(W.parameters,Se,rs),void 0,ur(W.body,Se,e)),W),W)):Pe=_r(Pe,ur(W,Se,e)),Pe=Le(Pe,W),xm(Pe)}function fr(W){let Pe;return Rn(W,32)?Pe=_r(Pe,dn(Ke(n.createClassDeclaration(Dr(W.modifiers,et,Oo),n.getDeclarationName(W,!0,!0),void 0,Dr(W.heritageClauses,Se,kf),Dr(W.members,Se,Tl)),W),W)):Pe=_r(Pe,ur(W,Se,e)),Pe=Le(Pe,W),xm(Pe)}function Hn(W){let Pe,St,A;if(Rn(W,32)){let le,V=!1;for(const ce of W.declarationList.declarations)if(Ie(ce.name)&&ah(ce.name))if(le||(le=Dr(W.modifiers,et,ta)),ce.initializer){const Ne=n.updateVariableDeclaration(ce,ce.name,void 0,void 0,we(ce.name,qe(ce.initializer,Se,ot)));St=_r(St,Ne)}else St=_r(St,ce);else if(ce.initializer)if(!Ns(ce.name)&&(po(ce.initializer)||co(ce.initializer)||kl(ce.initializer))){const Ne=n.createAssignment(Ke(n.createPropertyAccessExpression(n.createIdentifier("exports"),ce.name),ce.name),n.createIdentifier(yp(ce.name))),Ce=n.createVariableDeclaration(ce.name,ce.exclamationToken,ce.type,qe(ce.initializer,Se,ot));St=_r(St,Ce),A=_r(A,Ne),V=!0}else A=_r(A,Ii(ce));if(St&&(Pe=_r(Pe,n.updateVariableStatement(W,le,n.updateVariableDeclarationList(W.declarationList,St)))),A){const ce=dn(Ke(n.createExpressionStatement(n.inlineExpressions(A)),W),W);V&&vw(ce),Pe=_r(Pe,ce)}}else Pe=_r(Pe,ur(W,Se,e));return Pe=_a(Pe,W),xm(Pe)}function ei(W,Pe,St){const A=Kt(W);if(A){let le=LO(W)?Pe:n.createAssignment(W,Pe);for(const V of A)Qr(le,8),le=we(V,le,St);return le}return n.createAssignment(W,Pe)}function Ii(W){return Ns(W.name)?nS(qe(W,Se,K8),Se,e,0,!1,ei):n.createAssignment(Ke(n.createPropertyAccessExpression(n.createIdentifier("exports"),W.name),W.name),W.initializer?qe(W.initializer,Se,ot):n.createVoidZero())}function ns(W,Pe){if(P.exportEquals)return W;const St=Pe.importClause;if(!St)return W;const A=new xx;St.name&&(W=rt(W,A,St));const le=St.namedBindings;if(le)switch(le.kind){case 274:W=rt(W,A,le);break;case 275:for(const V of le.elements)W=rt(W,A,V,!0);break}return W}function Vs(W,Pe){return P.exportEquals?W:rt(W,new xx,Pe)}function _a(W,Pe){return cr(W,Pe.declarationList,!1)}function cr(W,Pe,St){if(P.exportEquals)return W;for(const A of Pe.declarations)W=br(W,A,St);return W}function br(W,Pe,St){if(P.exportEquals)return W;if(Ns(Pe.name))for(const A of Pe.name.elements)pl(A)||(W=br(W,A,St));else!Fo(Pe.name)&&(!hi(Pe)||Pe.initializer||St)&&(W=rt(W,new xx,Pe));return W}function Le(W,Pe){if(P.exportEquals)return W;const St=new xx;if(Rn(Pe,32)){const A=Rn(Pe,2048)?n.createIdentifier("default"):n.getDeclarationName(Pe);W=tt(W,St,A,n.getLocalName(Pe),Pe)}return Pe.name&&(W=rt(W,St,Pe)),W}function rt(W,Pe,St,A){const le=n.getDeclarationName(St),V=P.exportSpecifiers.get(le);if(V)for(const ce of V)W=tt(W,Pe,ce.name,le,ce.name,void 0,A);return W}function tt(W,Pe,St,A,le,V,ce){return Pe.has(St)||(Pe.set(St,!0),W=_r(W,ne(St,A,le,V,ce))),W}function yt(){let W;return d===0?W=n.createExpressionStatement(we(n.createIdentifier("__esModule"),n.createTrue())):W=n.createExpressionStatement(n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"defineProperty"),void 0,[n.createIdentifier("exports"),n.createStringLiteral("__esModule"),n.createObjectLiteralExpression([n.createPropertyAssignment("value",n.createTrue())])])),Qr(W,2097152),W}function ne(W,Pe,St,A,le){const V=Ke(n.createExpressionStatement(we(W,Pe,void 0,le)),St);return bu(V),A||Qr(V,3072),V}function we(W,Pe,St,A){return Ke(A&&d!==0?n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"defineProperty"),void 0,[n.createIdentifier("exports"),n.createStringLiteralFromNode(W),n.createObjectLiteralExpression([n.createPropertyAssignment("enumerable",n.createTrue()),n.createPropertyAssignment("get",n.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,n.createBlock([n.createReturnStatement(Pe)])))])]):n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.cloneNode(W)),Pe),St)}function et(W){switch(W.kind){case 95:case 90:return}return W}function B(W,Pe,St){Pe.kind===312?(w=Pe,P=k[cu(w)],T(W,Pe,St),w=void 0,P=void 0):T(W,Pe,St)}function Ge(W,Pe){return Pe=S(W,Pe),Pe.id&&F[Pe.id]?Pe:W===1?Be(Pe):k_(Pe)?mt(Pe):Pe}function mt(W){const Pe=W.name,St=ir(Pe);if(St!==Pe){if(W.objectAssignmentInitializer){const A=n.createAssignment(St,W.objectAssignmentInitializer);return Ke(n.createPropertyAssignment(Pe,A),W)}return Ke(n.createPropertyAssignment(Pe,St),W)}return W}function Be(W){switch(W.kind){case 80:return ir(W);case 213:return nt(W);case 215:return Dt(W);case 226:return Yt(W)}return W}function nt(W){if(Ie(W.expression)){const Pe=ir(W.expression);if(F[Oa(Pe)]=!0,!Ie(Pe)&&!(ha(W.expression)&8192))return QT(n.updateCallExpression(W,Pe,void 0,W.arguments),16)}return W}function Dt(W){if(Ie(W.tag)){const Pe=ir(W.tag);if(F[Oa(Pe)]=!0,!Ie(Pe)&&!(ha(W.tag)&8192))return QT(n.updateTaggedTemplateExpression(W,Pe,void 0,W.template),16)}return W}function ir(W){var Pe,St;if(ha(W)&8192){const A=Bw(w);return A?n.createPropertyAccessExpression(A,W):W}else if(!(Fo(W)&&!(W.emitNode.autoGenerate.flags&64))&&!ah(W)){const A=f.getReferencedExportContainer(W,LO(W));if(A&&A.kind===312)return Ke(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.cloneNode(W)),W);const le=f.getReferencedImportDeclaration(W);if(le){if(Rm(le))return Ke(n.createPropertyAccessExpression(n.getGeneratedNameForNode(le.parent),n.createIdentifier("default")),W);if(x_(le)){const V=le.propertyName||le.name;return Ke(n.createPropertyAccessExpression(n.getGeneratedNameForNode(((St=(Pe=le.parent)==null?void 0:Pe.parent)==null?void 0:St.parent)||le),n.cloneNode(V)),W)}}}return W}function Yt(W){if(Kh(W.operatorToken.kind)&&Ie(W.left)&&(!Fo(W.left)||YD(W.left))&&!ah(W.left)){const Pe=Kt(W.left);if(Pe){let St=W;for(const A of Pe)F[Oa(St)]=!0,St=we(A,St,W);return St}}return W}function Kt(W){if(Fo(W)){if(YD(W)){const Pe=P==null?void 0:P.exportSpecifiers.get(W);if(Pe){const St=[];for(const A of Pe)St.push(A.name);return St}}}else{const Pe=f.getReferencedImportDeclaration(W);if(Pe)return P==null?void 0:P.exportedBindings[cu(Pe)];const St=new Set,A=f.getReferencedValueDeclarations(W);if(A){for(const le of A){const V=P==null?void 0:P.exportedBindings[cu(le)];if(V)for(const ce of V)St.add(ce)}if(St.size)return gs(St)}}}}var Vbe,sRe=wt({"src/compiler/transformers/module/module.ts"(){Fs(),Vbe={name:"typescript:dynamicimport-sync-require",scoped:!0,text:` - var __syncRequire = typeof module === "object" && typeof module.exports === "object";`}}});function Sae(e){const{factory:t,startLexicalEnvironment:n,endLexicalEnvironment:i,hoistVariableDeclaration:s}=e,o=e.getCompilerOptions(),c=e.getEmitResolver(),u=e.getEmitHost(),f=e.onSubstituteNode,g=e.onEmitNode;e.onSubstituteNode=we,e.onEmitNode=ne,e.enableSubstitution(80),e.enableSubstitution(304),e.enableSubstitution(226),e.enableSubstitution(236),e.enableEmitNotification(312);const d=[],y=[],S=[],T=[];let k,w,P,F,J,U,$;return Xp(e,j);function j(W){if(W.isDeclarationFile||!(FT(W,o)||W.transformFlags&8388608))return W;const Pe=cu(W);k=W,U=W,w=d[Pe]=rq(e,W),P=t.createUniqueName("exports"),y[Pe]=P,F=T[Pe]=t.createUniqueName("context");const St=re(w.externalImports),A=R(W,St),le=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,P),t.createParameterDeclaration(void 0,void 0,F)],void 0,A),V=Jw(t,W,u,o),ce=t.createArrayLiteralExpression(nr(St,Ce=>Ce.name)),Ne=Qr(t.updateSourceFile(W,Ke(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("System"),"register"),void 0,V?[V,ce,le]:[ce,le]))]),W.statements)),2048);return no(o)||Bne(Ne,A,Ce=>!Ce.scoped),$&&(S[Pe]=$,$=void 0),k=void 0,w=void 0,P=void 0,F=void 0,J=void 0,U=void 0,Ne}function re(W){const Pe=new Map,St=[];for(const A of W){const le=hx(t,A,k,u,c,o);if(le){const V=le.text,ce=Pe.get(V);ce!==void 0?St[ce].externalImports.push(A):(Pe.set(V,St.length),St.push({name:le,externalImports:[A]}))}}return St}function R(W,Pe){const St=[];n();const A=Mu(o,"alwaysStrict")||!o.noImplicitUseStrict&&Ic(k),le=t.copyPrologue(W.statements,St,A,H);St.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration("__moduleName",void 0,void 0,t.createLogicalAnd(F,t.createPropertyAccessExpression(F,"id")))]))),qe(w.externalHelpersImportDeclaration,H,Ei);const V=Dr(W.statements,H,Ei,le);Nn(St,J),mg(St,i());const ce=Y(St),Ne=W.transformFlags&2097152?t.createModifiersFromModifierFlags(1024):void 0,Ce=t.createObjectLiteralExpression([t.createPropertyAssignment("setters",pe(ce,Pe)),t.createPropertyAssignment("execute",t.createFunctionExpression(Ne,void 0,void 0,void 0,[],void 0,t.createBlock(V,!0)))],!0);return St.push(t.createReturnStatement(Ce)),t.createBlock(St,!0)}function Y(W){if(!w.hasExportStarsToExportValues)return;if(!w.exportedNames&&w.exportSpecifiers.size===0){let le=!1;for(const V of w.externalImports)if(V.kind===278&&V.exportClause){le=!0;break}if(!le){const V=ue(void 0);return W.push(V),V.name}}const Pe=[];if(w.exportedNames)for(const le of w.exportedNames)le.escapedText!=="default"&&Pe.push(t.createPropertyAssignment(t.createStringLiteralFromNode(le),t.createTrue()));const St=t.createUniqueName("exportedNames");W.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(St,void 0,void 0,t.createObjectLiteralExpression(Pe,!0))])));const A=ue(St);return W.push(A),A.name}function ue(W){const Pe=t.createUniqueName("exportStar"),St=t.createIdentifier("m"),A=t.createIdentifier("n"),le=t.createIdentifier("exports");let V=t.createStrictInequality(A,t.createStringLiteral("default"));return W&&(V=t.createLogicalAnd(V,t.createLogicalNot(t.createCallExpression(t.createPropertyAccessExpression(W,"hasOwnProperty"),void 0,[A])))),t.createFunctionDeclaration(void 0,void 0,Pe,void 0,[t.createParameterDeclaration(void 0,void 0,St)],void 0,t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(le,void 0,void 0,t.createObjectLiteralExpression([]))])),t.createForInStatement(t.createVariableDeclarationList([t.createVariableDeclaration(A)]),St,t.createBlock([Qr(t.createIfStatement(V,t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(le,A),t.createElementAccessExpression(St,A)))),1)])),t.createExpressionStatement(t.createCallExpression(P,void 0,[le]))],!0))}function pe(W,Pe){const St=[];for(const A of Pe){const le=er(A.externalImports,Ne=>GC(t,Ne,k)),V=le?t.getGeneratedNameForNode(le):t.createUniqueName(""),ce=[];for(const Ne of A.externalImports){const Ce=GC(t,Ne,k);switch(Ne.kind){case 272:if(!Ne.importClause)break;case 271:E.assert(Ce!==void 0),ce.push(t.createExpressionStatement(t.createAssignment(Ce,V))),Rn(Ne,32)&&ce.push(t.createExpressionStatement(t.createCallExpression(P,void 0,[t.createStringLiteral(on(Ce)),V])));break;case 278:if(E.assert(Ce!==void 0),Ne.exportClause)if(Xf(Ne.exportClause)){const _t=[];for(const Tt of Ne.exportClause.elements)_t.push(t.createPropertyAssignment(t.createStringLiteral(on(Tt.name)),t.createElementAccessExpression(V,t.createStringLiteral(on(Tt.propertyName||Tt.name)))));ce.push(t.createExpressionStatement(t.createCallExpression(P,void 0,[t.createObjectLiteralExpression(_t,!0)])))}else ce.push(t.createExpressionStatement(t.createCallExpression(P,void 0,[t.createStringLiteral(on(Ne.exportClause.name)),V])));else ce.push(t.createExpressionStatement(t.createCallExpression(W,void 0,[V])));break}}St.push(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,V)],void 0,t.createBlock(ce,!0)))}return t.createArrayLiteralExpression(St,!0)}function H(W){switch(W.kind){case 272:return q(W);case 271:return oe(W);case 278:return ee(W);case 277:return Se(W);default:return Vt(W)}}function q(W){let Pe;return W.importClause&&s(GC(t,W,k)),xm(ft(Pe,W))}function ee(W){E.assertIsDefined(W)}function oe(W){E.assert(C1(W),"import= for internal module references should be handled in an earlier transformer.");let Pe;return s(GC(t,W,k)),xm(ge(Pe,W))}function Se(W){if(W.isExportEquals)return;const Pe=qe(W.expression,Ii,ot);return pt(t.createIdentifier("default"),Pe,!0)}function ae(W){Rn(W,32)?J=_r(J,t.updateFunctionDeclaration(W,Dr(W.modifiers,yt,Oo),W.asteriskToken,t.getDeclarationName(W,!0,!0),void 0,Dr(W.parameters,Ii,rs),void 0,qe(W.body,Ii,Cs))):J=_r(J,ur(W,Ii,e)),J=Pt(J,W)}function K(W){let Pe;const St=t.getLocalName(W);return s(St),Pe=_r(Pe,Ke(t.createExpressionStatement(t.createAssignment(St,Ke(t.createClassExpression(Dr(W.modifiers,yt,Oo),W.name,void 0,Dr(W.heritageClauses,Ii,kf),Dr(W.members,Ii,Tl)),W))),W)),Pe=Pt(Pe,W),xm(Pe)}function fe(W){if(!Oe(W.declarationList))return qe(W,Ii,Ei);let Pe;if(m8(W.declarationList)||d8(W.declarationList)){const St=Dr(W.modifiers,yt,Oo),A=[];for(const V of W.declarationList.declarations)A.push(t.updateVariableDeclaration(V,t.getGeneratedNameForNode(V.name),void 0,void 0,me(V,!1)));const le=t.updateVariableDeclarationList(W.declarationList,A);Pe=_r(Pe,t.updateVariableStatement(W,St,le))}else{let St;const A=Rn(W,32);for(const le of W.declarationList.declarations)le.initializer?St=_r(St,me(le,A)):ke(le);St&&(Pe=_r(Pe,Ke(t.createExpressionStatement(t.inlineExpressions(St)),W)))}return Pe=Fe(Pe,W,!1),xm(Pe)}function ke(W){if(Ns(W.name))for(const Pe of W.name.elements)pl(Pe)||ke(Pe);else s(t.cloneNode(W.name))}function Oe(W){return(ha(W)&4194304)===0&&(U.kind===312||(ic(W).flags&7)===0)}function me(W,Pe){const St=Pe?be:xe;return Ns(W.name)?nS(W,Ii,e,0,!1,St):W.initializer?St(W.name,qe(W.initializer,Ii,ot)):W.name}function be(W,Pe,St){return De(W,Pe,St,!0)}function xe(W,Pe,St){return De(W,Pe,St,!1)}function De(W,Pe,St,A){return s(t.cloneNode(W)),A?zt(W,Yt(Ke(t.createAssignment(W,Pe),St))):Yt(Ke(t.createAssignment(W,Pe),St))}function ft(W,Pe){if(w.exportEquals)return W;const St=Pe.importClause;if(!St)return W;St.name&&(W=at(W,St));const A=St.namedBindings;if(A)switch(A.kind){case 274:W=at(W,A);break;case 275:for(const le of A.elements)W=at(W,le);break}return W}function ge(W,Pe){return w.exportEquals?W:at(W,Pe)}function Fe(W,Pe,St){if(w.exportEquals)return W;for(const A of Pe.declarationList.declarations)(A.initializer||St)&&(W=$e(W,A));return W}function $e(W,Pe,St){if(w.exportEquals)return W;if(Ns(Pe.name))for(const A of Pe.name.elements)pl(A)||(W=$e(W,A));else Fo(Pe.name)||(W=at(W,Pe,void 0));return W}function Pt(W,Pe){if(w.exportEquals)return W;let St;if(Rn(Pe,32)){const A=Rn(Pe,2048)?t.createStringLiteral("default"):Pe.name;W=Je(W,A,t.getLocalName(Pe)),St=yp(A)}return Pe.name&&(W=at(W,Pe,St)),W}function at(W,Pe,St){if(w.exportEquals)return W;const A=t.getDeclarationName(Pe),le=w.exportSpecifiers.get(A);if(le)for(const V of le)V.name.escapedText!==St&&(W=Je(W,V.name,A));return W}function Je(W,Pe,St,A){return W=_r(W,pt(Pe,St,A)),W}function pt(W,Pe,St){const A=t.createExpressionStatement(zt(W,Pe));return bu(A),St||Qr(A,3072),A}function zt(W,Pe){const St=Ie(W)?t.createStringLiteralFromNode(W):W;return Qr(Pe,ha(Pe)|3072),Nc(t.createCallExpression(P,void 0,[St,Pe]),Pe)}function Vt(W){switch(W.kind){case 243:return fe(W);case 262:return ae(W);case 263:return K(W);case 248:return hr(W,!0);case 249:return Lr(W);case 250:return tr(W);case 246:return Kn(W);case 247:return Ji(W);case 256:return yi(W);case 254:return os(W);case 245:return yr(W);case 255:return _i(W);case 269:return ln(W);case 296:return Ht(W);case 297:return Ue(W);case 258:return Et(W);case 299:return fr(W);case 241:return Hn(W);default:return Ii(W)}}function hr(W,Pe){const St=U;return U=W,W=t.updateForStatement(W,qe(W.initializer,Pe?Rt:ns,Wf),qe(W.condition,Ii,ot),qe(W.incrementor,ns,ot),Qu(W.statement,Pe?Vt:Ii,e)),U=St,W}function Lr(W){const Pe=U;return U=W,W=t.updateForInStatement(W,Rt(W.initializer),qe(W.expression,Ii,ot),Qu(W.statement,Vt,e)),U=Pe,W}function tr(W){const Pe=U;return U=W,W=t.updateForOfStatement(W,W.awaitModifier,Rt(W.initializer),qe(W.expression,Ii,ot),Qu(W.statement,Vt,e)),U=Pe,W}function jt(W){return dl(W)&&Oe(W)}function Rt(W){if(jt(W)){let Pe;for(const St of W.declarations)Pe=_r(Pe,me(St,!1)),St.initializer||ke(St);return Pe?t.inlineExpressions(Pe):t.createOmittedExpression()}else return qe(W,ns,Wf)}function Kn(W){return t.updateDoStatement(W,Qu(W.statement,Vt,e),qe(W.expression,Ii,ot))}function Ji(W){return t.updateWhileStatement(W,qe(W.expression,Ii,ot),Qu(W.statement,Vt,e))}function yi(W){return t.updateLabeledStatement(W,W.label,E.checkDefined(qe(W.statement,Vt,Ei,t.liftToBlock)))}function os(W){return t.updateWithStatement(W,qe(W.expression,Ii,ot),E.checkDefined(qe(W.statement,Vt,Ei,t.liftToBlock)))}function yr(W){return t.updateIfStatement(W,qe(W.expression,Ii,ot),E.checkDefined(qe(W.thenStatement,Vt,Ei,t.liftToBlock)),qe(W.elseStatement,Vt,Ei,t.liftToBlock))}function _i(W){return t.updateSwitchStatement(W,qe(W.expression,Ii,ot),E.checkDefined(qe(W.caseBlock,Vt,g3)))}function ln(W){const Pe=U;return U=W,W=t.updateCaseBlock(W,Dr(W.clauses,Vt,e5)),U=Pe,W}function Ht(W){return t.updateCaseClause(W,qe(W.expression,Ii,ot),Dr(W.statements,Vt,Ei))}function Ue(W){return ur(W,Vt,e)}function Et(W){return ur(W,Vt,e)}function fr(W){const Pe=U;return U=W,W=t.updateCatchClause(W,W.variableDeclaration,E.checkDefined(qe(W.block,Vt,Cs))),U=Pe,W}function Hn(W){const Pe=U;return U=W,W=ur(W,Vt,e),U=Pe,W}function ei(W,Pe){if(!(W.transformFlags&276828160))return W;switch(W.kind){case 248:return hr(W,!1);case 244:return Vs(W);case 217:return _a(W,Pe);case 360:return cr(W,Pe);case 226:if(e0(W))return Le(W,Pe);break;case 213:if(of(W))return br(W);break;case 224:case 225:return tt(W,Pe)}return ur(W,Ii,e)}function Ii(W){return ei(W,!1)}function ns(W){return ei(W,!0)}function Vs(W){return t.updateExpressionStatement(W,qe(W.expression,ns,ot))}function _a(W,Pe){return t.updateParenthesizedExpression(W,qe(W.expression,Pe?ns:Ii,ot))}function cr(W,Pe){return t.updatePartiallyEmittedExpression(W,qe(W.expression,Pe?ns:Ii,ot))}function br(W){const Pe=hx(t,W,k,u,c,o),St=qe(bl(W.arguments),Ii,ot),A=Pe&&(!St||!aa(St)||St.text!==Pe.text)?Pe:St;return t.createCallExpression(t.createPropertyAccessExpression(F,t.createIdentifier("import")),void 0,A?[A]:[])}function Le(W,Pe){return rt(W.left)?nS(W,Ii,e,0,!Pe):ur(W,Ii,e)}function rt(W){if(nl(W,!0))return rt(W.left);if(hd(W))return rt(W.expression);if(ua(W))return ct(W.properties,rt);if(ju(W))return ct(W.elements,rt);if(k_(W))return rt(W.name);if(zc(W))return rt(W.initializer);if(Ie(W)){const Pe=c.getReferencedExportContainer(W);return Pe!==void 0&&Pe.kind===312}else return!1}function tt(W,Pe){if((W.operator===46||W.operator===47)&&Ie(W.operand)&&!Fo(W.operand)&&!ah(W.operand)&&!kW(W.operand)){const St=Dt(W.operand);if(St){let A,le=qe(W.operand,Ii,ot);dy(W)?le=t.updatePrefixUnaryExpression(W,le):(le=t.updatePostfixUnaryExpression(W,le),Pe||(A=t.createTempVariable(s),le=t.createAssignment(A,le),Ke(le,W)),le=t.createComma(le,t.cloneNode(W.operand)),Ke(le,W));for(const V of St)le=zt(V,Yt(le));return A&&(le=t.createComma(le,A),Ke(le,W)),le}}return ur(W,Ii,e)}function yt(W){switch(W.kind){case 95:case 90:return}return W}function ne(W,Pe,St){if(Pe.kind===312){const A=cu(Pe);k=Pe,w=d[A],P=y[A],$=S[A],F=T[A],$&&delete S[A],g(W,Pe,St),k=void 0,w=void 0,P=void 0,F=void 0,$=void 0}else g(W,Pe,St)}function we(W,Pe){return Pe=f(W,Pe),Kt(Pe)?Pe:W===1?Ge(Pe):W===4?et(Pe):Pe}function et(W){switch(W.kind){case 304:return B(W)}return W}function B(W){var Pe,St;const A=W.name;if(!Fo(A)&&!ah(A)){const le=c.getReferencedImportDeclaration(A);if(le){if(Rm(le))return Ke(t.createPropertyAssignment(t.cloneNode(A),t.createPropertyAccessExpression(t.getGeneratedNameForNode(le.parent),t.createIdentifier("default"))),W);if(x_(le))return Ke(t.createPropertyAssignment(t.cloneNode(A),t.createPropertyAccessExpression(t.getGeneratedNameForNode(((St=(Pe=le.parent)==null?void 0:Pe.parent)==null?void 0:St.parent)||le),t.cloneNode(le.propertyName||le.name))),W)}}return W}function Ge(W){switch(W.kind){case 80:return mt(W);case 226:return Be(W);case 236:return nt(W)}return W}function mt(W){var Pe,St;if(ha(W)&8192){const A=Bw(k);return A?t.createPropertyAccessExpression(A,W):W}if(!Fo(W)&&!ah(W)){const A=c.getReferencedImportDeclaration(W);if(A){if(Rm(A))return Ke(t.createPropertyAccessExpression(t.getGeneratedNameForNode(A.parent),t.createIdentifier("default")),W);if(x_(A))return Ke(t.createPropertyAccessExpression(t.getGeneratedNameForNode(((St=(Pe=A.parent)==null?void 0:Pe.parent)==null?void 0:St.parent)||A),t.cloneNode(A.propertyName||A.name)),W)}}return W}function Be(W){if(Kh(W.operatorToken.kind)&&Ie(W.left)&&(!Fo(W.left)||YD(W.left))&&!ah(W.left)){const Pe=Dt(W.left);if(Pe){let St=W;for(const A of Pe)St=zt(A,Yt(St));return St}}return W}function nt(W){return rC(W)?t.createPropertyAccessExpression(F,t.createIdentifier("meta")):W}function Dt(W){let Pe;const St=ir(W);if(St){const A=c.getReferencedExportContainer(W,!1);A&&A.kind===312&&(Pe=_r(Pe,t.getDeclarationName(St))),Pe=Nn(Pe,w==null?void 0:w.exportedBindings[cu(St)])}else if(Fo(W)&&YD(W)){const A=w==null?void 0:w.exportSpecifiers.get(W);if(A){const le=[];for(const V of A)le.push(V.name);return le}}return Pe}function ir(W){if(!Fo(W)){const Pe=c.getReferencedImportDeclaration(W);if(Pe)return Pe;const St=c.getReferencedValueDeclaration(W);if(St&&(w!=null&&w.exportedBindings[cu(St)]))return St;const A=c.getReferencedValueDeclarations(W);if(A){for(const le of A)if(le!==St&&(w!=null&&w.exportedBindings[cu(le)]))return le}return St}}function Yt(W){return $===void 0&&($=[]),$[Oa(W)]=!0,W}function Kt(W){return $&&W.id&&$[W.id]}}var aRe=wt({"src/compiler/transformers/module/system.ts"(){Fs()}});function dq(e){const{factory:t,getEmitHelperFactory:n}=e,i=e.getEmitHost(),s=e.getEmitResolver(),o=e.getCompilerOptions(),c=Fa(o),u=e.onEmitNode,f=e.onSubstituteNode;e.onEmitNode=$,e.onSubstituteNode=j,e.enableEmitNotification(312),e.enableSubstitution(80);let g,d,y;return Xp(e,S);function S(R){if(R.isDeclarationFile)return R;if(Ic(R)||xp(o)){d=R,y=void 0;let Y=T(R);return d=void 0,y&&(Y=t.updateSourceFile(Y,Ke(t.createNodeArray(gz(Y.statements.slice(),y)),Y.statements))),!Ic(R)||au(o)===200||ct(Y.statements,r8)?Y:t.updateSourceFile(Y,Ke(t.createNodeArray([...Y.statements,Mw(t)]),Y.statements))}return R}function T(R){const Y=GV(t,n(),R,o);if(Y){const ue=[],pe=t.copyPrologue(R.statements,ue);return _r(ue,Y),Nn(ue,Dr(R.statements,k,Ei,pe)),t.updateSourceFile(R,Ke(t.createNodeArray(ue),R.statements))}else return ur(R,k,e)}function k(R){switch(R.kind){case 271:return au(o)>=100?P(R):void 0;case 277:return J(R);case 278:return U(R)}return R}function w(R){const Y=hx(t,R,E.checkDefined(d),i,s,o),ue=[];if(Y&&ue.push(Y),au(o)===200)return t.createCallExpression(t.createIdentifier("require"),void 0,ue);if(!y){const H=t.createUniqueName("_createRequire",48),q=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports([t.createImportSpecifier(!1,t.createIdentifier("createRequire"),H)])),t.createStringLiteral("module"),void 0),ee=t.createUniqueName("__require",48),oe=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(ee,void 0,void 0,t.createCallExpression(t.cloneNode(H),void 0,[t.createPropertyAccessExpression(t.createMetaProperty(102,t.createIdentifier("meta")),t.createIdentifier("url"))]))],c>=2?2:0));y=[q,oe]}const pe=y[1].declarationList.declarations[0].name;return E.assertNode(pe,Ie),t.createCallExpression(t.cloneNode(pe),void 0,ue)}function P(R){E.assert(C1(R),"import= for internal module references should be handled in an earlier transformer.");let Y;return Y=_r(Y,dn(Ke(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.cloneNode(R.name),void 0,void 0,w(R))],c>=2?2:0)),R),R)),Y=F(Y,R),xm(Y)}function F(R,Y){return Rn(Y,32)&&(R=_r(R,t.createExportDeclaration(void 0,Y.isTypeOnly,t.createNamedExports([t.createExportSpecifier(!1,void 0,on(Y.name))])))),R}function J(R){return R.isExportEquals?au(o)===200?dn(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),R.expression)),R):void 0:R}function U(R){if(o.module!==void 0&&o.module>5||!R.exportClause||!jm(R.exportClause)||!R.moduleSpecifier)return R;const Y=R.exportClause.name,ue=t.getGeneratedNameForNode(Y),pe=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamespaceImport(ue)),R.moduleSpecifier,R.attributes);dn(pe,R.exportClause);const H=_5(R)?t.createExportDefault(ue):t.createExportDeclaration(void 0,!1,t.createNamedExports([t.createExportSpecifier(!1,ue,Y)]));return dn(H,R),[pe,H]}function $(R,Y,ue){Ni(Y)?((Ic(Y)||xp(o))&&o.importHelpers&&(g=new Map),u(R,Y,ue),g=void 0):u(R,Y,ue)}function j(R,Y){return Y=f(R,Y),g&&Ie(Y)&&ha(Y)&8192?re(Y):Y}function re(R){const Y=on(R);let ue=g.get(Y);return ue||g.set(Y,ue=t.createUniqueName(Y,48)),ue}}var oRe=wt({"src/compiler/transformers/module/esnextAnd2015.ts"(){Fs()}});function Tae(e){const t=e.onSubstituteNode,n=e.onEmitNode,i=dq(e),s=e.onSubstituteNode,o=e.onEmitNode;e.onSubstituteNode=t,e.onEmitNode=n;const c=pq(e),u=e.onSubstituteNode,f=e.onEmitNode;e.onSubstituteNode=d,e.onEmitNode=y,e.enableSubstitution(312),e.enableEmitNotification(312);let g;return k;function d(P,F){return Ni(F)?(g=F,t(P,F)):g?g.impliedNodeFormat===99?s(P,F):u(P,F):t(P,F)}function y(P,F,J){return Ni(F)&&(g=F),g?g.impliedNodeFormat===99?o(P,F,J):f(P,F,J):n(P,F,J)}function S(P){return P.impliedNodeFormat===99?i:c}function T(P){if(P.isDeclarationFile)return P;g=P;const F=S(P)(P);return g=void 0,E.assert(Ni(F)),F}function k(P){return P.kind===312?T(P):w(P)}function w(P){return e.factory.createBundle(nr(P.sourceFiles,T),P.prepends)}}var cRe=wt({"src/compiler/transformers/module/node.ts"(){Fs()}});function I9(e){return hi(e)||xs(e)||B_(e)||Ea(e)||Xh(e)||Y0(e)||Dw(e)||sx(e)||hc(e)||Lm(e)||$c(e)||rs(e)||Vo(e)||s0(e)||El(e)||Gp(e)||sc(e)||i2(e)||Sn(e)||ko(e)||Zr(e)||hp(e)}function xae(e){if(Xh(e)||Y0(e))return t;return Lm(e)||hc(e)?i:o0(e);function t(o){const c=n(o);return c!==void 0?{diagnosticMessage:c,errorNode:e,typeName:e.name}:void 0}function n(o){return Ms(e)?o.errorModuleName?o.accessibility===2?p.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:p.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263?o.errorModuleName?o.accessibility===2?p.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:p.Public_property_0_of_exported_class_has_or_is_using_private_name_1:o.errorModuleName?p.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:p.Property_0_of_exported_interface_has_or_is_using_private_name_1}function i(o){const c=s(o);return c!==void 0?{diagnosticMessage:c,errorNode:e,typeName:e.name}:void 0}function s(o){return Ms(e)?o.errorModuleName?o.accessibility===2?p.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:p.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263?o.errorModuleName?o.accessibility===2?p.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:p.Public_method_0_of_exported_class_has_or_is_using_private_name_1:o.errorModuleName?p.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:p.Method_0_of_exported_interface_has_or_is_using_private_name_1}}function o0(e){if(hi(e)||xs(e)||B_(e)||Sn(e)||ko(e)||Zr(e)||Ea(e)||sc(e))return n;return Xh(e)||Y0(e)?i:Dw(e)||sx(e)||hc(e)||Lm(e)||$c(e)||i2(e)?s:rs(e)?O_(e,e.parent)&&Rn(e.parent,2)?n:o:Vo(e)?u:s0(e)?f:El(e)?g:Gp(e)||hp(e)?d:E.assertNever(e,`Attempted to set a declaration diagnostic context for unhandled node kind: ${E.formatSyntaxKind(e.kind)}`);function t(y){if(e.kind===260||e.kind===208)return y.errorModuleName?y.accessibility===2?p.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:p.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&&Rn(e.parent,2))return Ms(e)?y.errorModuleName?y.accessibility===2?p.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:p.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?p.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:p.Public_property_0_of_exported_class_has_or_is_using_private_name_1:y.errorModuleName?p.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:p.Property_0_of_exported_interface_has_or_is_using_private_name_1}function n(y){const S=t(y);return S!==void 0?{diagnosticMessage:S,errorNode:e,typeName:e.name}:void 0}function i(y){let S;return e.kind===178?Ms(e)?S=y.errorModuleName?p.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:p.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:S=y.errorModuleName?p.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:p.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:Ms(e)?S=y.errorModuleName?y.accessibility===2?p.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:p.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:S=y.errorModuleName?y.accessibility===2?p.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:p.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:S,errorNode:e.name,typeName:e.name}}function s(y){let S;switch(e.kind){case 180:S=y.errorModuleName?p.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:p.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 179:S=y.errorModuleName?p.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:p.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 181:S=y.errorModuleName?p.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:p.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 174:case 173:Ms(e)?S=y.errorModuleName?y.accessibility===2?p.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:p.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:p.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:e.parent.kind===263?S=y.errorModuleName?y.accessibility===2?p.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:p.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:p.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:S=y.errorModuleName?p.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:p.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 262:S=y.errorModuleName?y.accessibility===2?p.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:p.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:p.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return E.fail("This is unknown kind for signature: "+e.kind)}return{diagnosticMessage:S,errorNode:e.name||e}}function o(y){const S=c(y);return S!==void 0?{diagnosticMessage:S,errorNode:e,typeName:e.name}:void 0}function c(y){switch(e.parent.kind){case 176:return y.errorModuleName?y.accessibility===2?p.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 180:case 185:return y.errorModuleName?p.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 179:return y.errorModuleName?p.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 181:return y.errorModuleName?p.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 174:case 173:return Ms(e.parent)?y.errorModuleName?y.accessibility===2?p.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:p.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?p.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:y.errorModuleName?p.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 262:case 184:return y.errorModuleName?y.accessibility===2?p.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 178:case 177:return y.errorModuleName?y.accessibility===2?p.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return E.fail(`Unknown parent for parameter: ${E.formatSyntaxKind(e.parent.kind)}`)}}function u(){let y;switch(e.parent.kind){case 263:y=p.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 264:y=p.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 200:y=p.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 185:case 180:y=p.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 179:y=p.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 174:case 173:Ms(e.parent)?y=p.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===263?y=p.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:y=p.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 184:case 262:y=p.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 195:y=p.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 265:y=p.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return E.fail("This is unknown parent for type parameter: "+e.parent.kind)}return{diagnosticMessage:y,errorNode:e,typeName:e.name}}function f(){let y;return Xc(e.parent.parent)?y=kf(e.parent)&&e.parent.token===119?p.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.parent.parent.name?p.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:p.extends_clause_of_exported_class_has_or_is_using_private_name_0:y=p.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:y,errorNode:e,typeName:us(e.parent.parent)}}function g(){return{diagnosticMessage:p.Import_declaration_0_is_using_private_name_1,errorNode:e,typeName:e.name}}function d(y){return{diagnosticMessage:y.errorModuleName?p.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:p.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:hp(e)?E.checkDefined(e.typeExpression):e.type,typeName:hp(e)?us(e):e.name}}}var lRe=wt({"src/compiler/transformers/declarations/diagnostics.ts"(){Fs()}});function kae(e,t,n){const i=e.getCompilerOptions();return vA(t,e,I,i,n?[n]:An(e.getSourceFiles(),jz),[mq],!1).diagnostics}function mq(e){const t=()=>E.fail("Diagnostic emitted without context");let n=t,i=!0,s=!1,o=!1,c=!1,u=!1,f,g,d,y,S,T;const{factory:k}=e,w=e.getEmitHost(),P={trackSymbol:ae,reportInaccessibleThisError:me,reportInaccessibleUniqueSymbolError:ke,reportCyclicStructureError:Oe,reportPrivateInBaseOfClassExpression:K,reportLikelyUnsafeImportRequiredError:be,reportTruncationError:xe,moduleResolverHost:w,trackReferencedAmbientModule:q,trackExternalModuleSymbolOfImportTypeNode:Se,reportNonlocalAugmentation:De,reportNonSerializableProperty:ft};let F,J,U,$,j,re;const R=e.getEmitResolver(),Y=e.getCompilerOptions(),{noResolve:ue,stripInternal:pe}=Y;return Fe;function H(B){if(B){g=g||new Set;for(const Ge of B)g.add(Ge)}}function q(B,Ge){const mt=R.getTypeReferenceDirectivesForSymbol(Ge,-1);if(gr(mt))return H(mt);const Be=wr(B);$.set(cu(Be),Be)}function ee(B){const Ge=lC(B),mt=Ge&&R.tryFindAmbientModule(Ge);if(mt!=null&&mt.declarations)for(const Be of mt.declarations)su(Be)&&wr(Be)!==U&&q(Be,mt)}function oe(B){if(B.accessibility===0){if(B.aliasesToMakeVisible)if(!d)d=B.aliasesToMakeVisible;else for(const Ge of B.aliasesToMakeVisible)zf(d,Ge)}else{const Ge=n(B);if(Ge)return Ge.typeName?e.addDiagnostic(yn(B.errorNode||Ge.errorNode,Ge.diagnosticMessage,jc(Ge.typeName),B.errorSymbolName,B.errorModuleName)):e.addDiagnostic(yn(B.errorNode||Ge.errorNode,Ge.diagnosticMessage,B.errorSymbolName,B.errorModuleName)),!0}return!1}function Se(B){s||(T||(T=[])).push(B)}function ae(B,Ge,mt){if(B.flags&262144)return!1;const Be=oe(R.isSymbolAccessible(B,Ge,mt,!0));return H(R.getTypeReferenceDirectivesForSymbol(B,mt)),Be}function K(B){(F||J)&&e.addDiagnostic(yn(F||J,p.Property_0_of_exported_class_expression_may_not_be_private_or_protected,B))}function fe(){return F?Ka(F):J&&us(J)?Ka(us(J)):J&&oc(J)?J.isExportEquals?"export=":"default":"(Missing)"}function ke(){(F||J)&&e.addDiagnostic(yn(F||J,p.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,fe(),"unique symbol"))}function Oe(){(F||J)&&e.addDiagnostic(yn(F||J,p.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,fe()))}function me(){(F||J)&&e.addDiagnostic(yn(F||J,p.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,fe(),"this"))}function be(B){(F||J)&&e.addDiagnostic(yn(F||J,p.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,fe(),B))}function xe(){(F||J)&&e.addDiagnostic(yn(F||J,p.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))}function De(B,Ge,mt){var Be;const nt=(Be=Ge.declarations)==null?void 0:Be.find(ir=>wr(ir)===B),Dt=An(mt.declarations,ir=>wr(ir)!==B);if(nt&&Dt)for(const ir of Dt)e.addDiagnostic(la(yn(ir,p.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),yn(nt,p.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}function ft(B){(F||J)&&e.addDiagnostic(yn(F||J,p.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,B))}function ge(B,Ge){const mt=n;n=nt=>nt.errorNode&&I9(nt.errorNode)?o0(nt.errorNode)(nt):{diagnosticMessage:nt.errorModuleName?p.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:p.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:nt.errorNode||B};const Be=R.getDeclarationStatementsForSourceFile(B,iS,P,Ge);return n=mt,Be}function Fe(B){if(B.kind===312&&B.isDeclarationFile)return B;if(B.kind===313){s=!0,$=new Map,j=new Map;let Pe=!1;const St=k.createBundle(nr(B.sourceFiles,V=>{if(V.isDeclarationFile)return;if(Pe=Pe||V.hasNoDefaultLib,U=V,f=V,d=void 0,S=!1,y=new Map,n=t,c=!1,u=!1,$e(V,$),Pt(V,j),af(V)||gp(V)){o=!1,i=!1;const Ne=Ou(V)?k.createNodeArray(ge(V,!0)):Dr(V.statements,Hn,Ei);return k.updateSourceFile(V,[k.createModuleDeclaration([k.createModifier(138)],k.createStringLiteral(U5(e.getEmitHost(),V)),k.createModuleBlock(Ke(k.createNodeArray(Ue(Ne)),V.statements)))],!0,[],[],!1,[])}i=!0;const ce=Ou(V)?k.createNodeArray(ge(V)):Dr(V.statements,Hn,Ei);return k.updateSourceFile(V,Ue(ce),!0,[],[],!1,[])}),Ri(B.prepends,V=>{if(V.kind===315){const ce=_V(V,"dts",pe);return Pe=Pe||!!ce.hasNoDefaultLib,$e(ce,$),H(nr(ce.typeReferenceDirectives,Ne=>[Ne.fileName,Ne.resolutionMode])),Pt(ce,j),ce}return V}));St.syntheticFileReferences=[],St.syntheticTypeReferences=Yt(),St.syntheticLibReferences=ir(),St.hasNoDefaultLib=Pe;const A=Un(iu(V3(B,w,!0).declarationFilePath)),le=W(St.syntheticFileReferences,A);return $.forEach(le),St}i=!0,c=!1,u=!1,f=B,U=B,n=t,s=!1,o=!1,S=!1,d=void 0,y=new Map,g=void 0,$=$e(U,new Map),j=Pt(U,new Map);const Ge=[],mt=Un(iu(V3(B,w,!0).declarationFilePath)),Be=W(Ge,mt);let nt;if(Ou(U))nt=k.createNodeArray(ge(B)),$.forEach(Be),re=An(nt,Cb);else{const Pe=Dr(B.statements,Hn,Ei);nt=Ke(k.createNodeArray(Ue(Pe)),B.statements),$.forEach(Be),re=An(nt,Cb),Ic(B)&&(!o||c&&!u)&&(nt=Ke(k.createNodeArray([...nt,Mw(k)]),nt))}const Dt=k.updateSourceFile(B,nt,!0,Ge,Yt(),B.hasNoDefaultLib,ir());return Dt.exportedModulesFromDeclarationEmit=T,Dt;function ir(){return gs(j.keys(),Pe=>({fileName:Pe,pos:-1,end:-1}))}function Yt(){return g?Ri(gs(g.keys()),Kt):[]}function Kt([Pe,St]){if(re){for(const A of re)if(El(A)&&Bm(A.moduleReference)){const le=A.moduleReference.expression;if(Ma(le)&&le.text===Pe)return}else if(il(A)&&aa(A.moduleSpecifier)&&A.moduleSpecifier.text===Pe)return}return{fileName:Pe,pos:-1,end:-1,...St?{resolutionMode:St}:void 0}}function W(Pe,St){return A=>{if(T!=null&&T.includes(A.symbol))return;let le;if(A.isDeclarationFile)le=A.fileName;else{if(s&&bs(B.sourceFiles,A))return;const V=V3(A,w,!0);le=V.declarationFilePath||V.jsFilePath||A.fileName}if(le){const V=f9(Y,U,Xi(St,w.getCurrentDirectory()),Xi(le,w.getCurrentDirectory()),w);if(!nf(V)){H([[V,void 0]]);return}let ce=CT(St,le,w.getCurrentDirectory(),w.getCanonicalFileName,!1);if(Vi(ce,"./")&&kT(ce)&&(ce=ce.substring(2)),Vi(ce,"node_modules/")||W1(ce))return;Pe.push({pos:-1,end:-1,fileName:ce})}}}}function $e(B,Ge){return ue||!Qb(B)&&Ou(B)||er(B.referencedFiles,mt=>{const Be=w.getSourceFileFromReference(B,mt);Be&&Ge.set(cu(Be),Be)}),Ge}function Pt(B,Ge){return er(B.libReferenceDirectives,mt=>{w.getLibFileFromReference(mt)&&Ge.set(km(mt.fileName),!0)}),Ge}function at(B){if(B.kind===80)return B;return B.kind===207?k.updateArrayBindingPattern(B,Dr(B.elements,Ge,Q7)):k.updateObjectBindingPattern(B,Dr(B.elements,Ge,Ea));function Ge(mt){return mt.kind===232?mt:(mt.propertyName&&Pa(mt.propertyName)&&pc(mt.propertyName.expression)&&yi(mt.propertyName.expression,f),k.updateBindingElement(mt,mt.dotDotDotToken,mt.propertyName,at(mt.name),pt(mt)?mt.initializer:void 0))}}function Je(B,Ge,mt){let Be;S||(Be=n,n=o0(B));const nt=k.updateParameterDeclaration(B,_Re(k,B,Ge),B.dotDotDotToken,at(B.name),R.isOptionalParameter(B)?B.questionToken||k.createToken(58):void 0,Vt(B,mt||B.type,!0),zt(B));return S||(n=Be),nt}function pt(B){return fRe(B)&&R.isLiteralConstDeclaration(as(B))}function zt(B){if(pt(B))return R.createLiteralConstValue(as(B),P)}function Vt(B,Ge,mt){if(!mt&&R_(B,2)||pt(B))return;const Be=B.kind===169&&(R.isRequiredInitializedParameter(B)||R.isOptionalUninitializedParameterProperty(B));if(Ge&&!Be)return qe(Ge,Et,ki);if(!as(B))return Ge?qe(Ge,Et,ki):k.createKeywordTypeNode(133);if(B.kind===178)return k.createKeywordTypeNode(133);F=B.name;let nt;if(S||(nt=n,n=o0(B)),B.kind===260||B.kind===208)return Dt(R.createTypeOfDeclaration(B,f,iS,P));if(B.kind===169||B.kind===172||B.kind===171)return B_(B)||!B.initializer?Dt(R.createTypeOfDeclaration(B,f,iS,P,Be)):Dt(R.createTypeOfDeclaration(B,f,iS,P,Be)||R.createTypeOfExpression(B.initializer,f,iS,P));return Dt(R.createReturnTypeOfSignatureDeclaration(B,f,iS,P));function Dt(ir){return F=void 0,S||(n=nt),ir||k.createKeywordTypeNode(133)}}function hr(B){switch(B=as(B),B.kind){case 262:case 267:case 264:case 263:case 265:case 266:return!R.isDeclarationVisible(B);case 260:return!tr(B);case 271:case 272:case 278:case 277:return!1;case 175:return!0}return!1}function Lr(B){var Ge;if(B.body)return!0;const mt=(Ge=B.symbol.declarations)==null?void 0:Ge.filter(Be=>$c(Be)&&!Be.body);return!mt||mt.indexOf(B)===mt.length-1}function tr(B){return pl(B)?!1:Ns(B.name)?ct(B.name.elements,tr):R.isDeclarationVisible(B)}function jt(B,Ge,mt){if(R_(B,2))return k.createNodeArray();const Be=nr(Ge,nt=>Je(nt,mt));return Be?k.createNodeArray(Be,Ge.hasTrailingComma):k.createNodeArray()}function Rt(B,Ge){let mt;if(!Ge){const Be=Xv(B);Be&&(mt=[Je(Be)])}if(J_(B)){let Be;if(!Ge){const nt=IE(B);if(nt){const Dt=we(B,R.getAllAccessorDeclarations(B));Be=Je(nt,void 0,Dt)}}Be||(Be=k.createParameterDeclaration(void 0,void 0,"value")),mt=_r(mt,Be)}return k.createNodeArray(mt||Ve)}function Kn(B,Ge){return R_(B,2)?void 0:Dr(Ge,Et,Vo)}function Ji(B){return Ni(B)||Gp(B)||Sc(B)||Xc(B)||Bu(B)||As(B)||i2(B)||jC(B)}function yi(B,Ge){const mt=R.isEntityNameVisible(B,Ge);oe(mt),H(R.getTypeReferenceDirectivesForEntityName(B))}function os(B,Ge){return sf(B)&&sf(Ge)&&(B.jsDoc=Ge.jsDoc),Nc(B,Yd(Ge))}function yr(B,Ge){if(Ge){if(o=o||B.kind!==267&&B.kind!==205,Ma(Ge))if(s){const mt=mre(e.getEmitHost(),R,B);if(mt)return k.createStringLiteral(mt)}else{const mt=R.getSymbolOfExternalModuleSpecifier(Ge);mt&&(T||(T=[])).push(mt)}return Ge}}function _i(B){if(R.isDeclarationVisible(B))if(B.moduleReference.kind===283){const Ge=bE(B);return k.updateImportEqualsDeclaration(B,B.modifiers,B.isTypeOnly,B.name,k.updateExternalModuleReference(B.moduleReference,yr(B,Ge)))}else{const Ge=n;return n=o0(B),yi(B.moduleReference,f),n=Ge,B}}function ln(B){if(!B.importClause)return k.updateImportDeclaration(B,B.modifiers,B.importClause,yr(B,B.moduleSpecifier),Ht(B.attributes));const Ge=B.importClause&&B.importClause.name&&R.isDeclarationVisible(B.importClause)?B.importClause.name:void 0;if(!B.importClause.namedBindings)return Ge&&k.updateImportDeclaration(B,B.modifiers,k.updateImportClause(B.importClause,B.importClause.isTypeOnly,Ge,void 0),yr(B,B.moduleSpecifier),Ht(B.attributes));if(B.importClause.namedBindings.kind===274){const Be=R.isDeclarationVisible(B.importClause.namedBindings)?B.importClause.namedBindings:void 0;return Ge||Be?k.updateImportDeclaration(B,B.modifiers,k.updateImportClause(B.importClause,B.importClause.isTypeOnly,Ge,Be),yr(B,B.moduleSpecifier),Ht(B.attributes)):void 0}const mt=Ri(B.importClause.namedBindings.elements,Be=>R.isDeclarationVisible(Be)?Be:void 0);if(mt&&mt.length||Ge)return k.updateImportDeclaration(B,B.modifiers,k.updateImportClause(B.importClause,B.importClause.isTypeOnly,Ge,mt&&mt.length?k.updateNamedImports(B.importClause.namedBindings,mt):void 0),yr(B,B.moduleSpecifier),Ht(B.attributes));if(R.isImportRequiredByAugmentation(B))return k.updateImportDeclaration(B,B.modifiers,void 0,yr(B,B.moduleSpecifier),Ht(B.attributes))}function Ht(B){const Ge=o6(B);return B&&Ge!==void 0?B:void 0}function Ue(B){for(;gr(d);){const mt=d.shift();if(!p5(mt))return E.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${E.formatSyntaxKind(mt.kind)}`);const Be=i;i=mt.parent&&Ni(mt.parent)&&!(Ic(mt.parent)&&s);const nt=ns(mt);i=Be,y.set(cu(mt),nt)}return Dr(B,Ge,Ei);function Ge(mt){if(p5(mt)){const Be=cu(mt);if(y.has(Be)){const nt=y.get(Be);return y.delete(Be),nt&&((ts(nt)?ct(nt,Y7):Y7(nt))&&(c=!0),Ni(mt.parent)&&(ts(nt)?ct(nt,r8):r8(nt))&&(o=!0)),nt}}return mt}}function Et(B){if(Le(B)||yu(B)&&(hr(B)||ry(B)&&!R.isLateBound(as(B)))||As(B)&&R.isImplementationOfOverload(B)||iie(B))return;let Ge;Ji(B)&&(Ge=f,f=B);const mt=n,Be=I9(B),nt=S;let Dt=(B.kind===187||B.kind===200)&&B.parent.kind!==265;if((hc(B)||Lm(B))&&R_(B,2))return B.symbol&&B.symbol.declarations&&B.symbol.declarations[0]!==B?void 0:ir(k.createPropertyDeclaration(yt(B),B.name,void 0,void 0,void 0));if(Be&&!S&&(n=o0(B)),ax(B)&&yi(B.exprName,f),Dt&&(S=!0),dRe(B))switch(B.kind){case 233:{(b_(B.expression)||pc(B.expression))&&yi(B.expression,f);const Yt=ur(B,Et,e);return ir(k.updateExpressionWithTypeArguments(Yt,Yt.expression,Yt.typeArguments))}case 183:{yi(B.typeName,f);const Yt=ur(B,Et,e);return ir(k.updateTypeReferenceNode(Yt,Yt.typeName,Yt.typeArguments))}case 180:return ir(k.updateConstructSignature(B,Kn(B,B.typeParameters),jt(B,B.parameters),Vt(B,B.type)));case 176:{const Yt=k.createConstructorDeclaration(yt(B),jt(B,B.parameters,0),void 0);return ir(Yt)}case 174:{if(Pi(B.name))return ir(void 0);const Yt=k.createMethodDeclaration(yt(B),void 0,B.name,B.questionToken,Kn(B,B.typeParameters),jt(B,B.parameters),Vt(B,B.type),void 0);return ir(Yt)}case 177:{if(Pi(B.name))return ir(void 0);const Yt=we(B,R.getAllAccessorDeclarations(B));return ir(k.updateGetAccessorDeclaration(B,yt(B),B.name,Rt(B,R_(B,2)),Vt(B,Yt),void 0))}case 178:return Pi(B.name)?ir(void 0):ir(k.updateSetAccessorDeclaration(B,yt(B),B.name,Rt(B,R_(B,2)),void 0));case 172:return Pi(B.name)?ir(void 0):ir(k.updatePropertyDeclaration(B,yt(B),B.name,B.questionToken,Vt(B,B.type),zt(B)));case 171:return Pi(B.name)?ir(void 0):ir(k.updatePropertySignature(B,yt(B),B.name,B.questionToken,Vt(B,B.type)));case 173:return Pi(B.name)?ir(void 0):ir(k.updateMethodSignature(B,yt(B),B.name,B.questionToken,Kn(B,B.typeParameters),jt(B,B.parameters),Vt(B,B.type)));case 179:return ir(k.updateCallSignature(B,Kn(B,B.typeParameters),jt(B,B.parameters),Vt(B,B.type)));case 181:return ir(k.updateIndexSignature(B,yt(B),jt(B,B.parameters),qe(B.type,Et,ki)||k.createKeywordTypeNode(133)));case 260:return Ns(B.name)?_a(B.name):(Dt=!0,S=!0,ir(k.updateVariableDeclaration(B,B.name,void 0,Vt(B,B.type),zt(B))));case 168:return fr(B)&&(B.default||B.constraint)?ir(k.updateTypeParameterDeclaration(B,B.modifiers,B.name,void 0,void 0)):ir(ur(B,Et,e));case 194:{const Yt=qe(B.checkType,Et,ki),Kt=qe(B.extendsType,Et,ki),W=f;f=B.trueType;const Pe=qe(B.trueType,Et,ki);f=W;const St=qe(B.falseType,Et,ki);return E.assert(Yt),E.assert(Kt),E.assert(Pe),E.assert(St),ir(k.updateConditionalTypeNode(B,Yt,Kt,Pe,St))}case 184:return ir(k.updateFunctionTypeNode(B,Dr(B.typeParameters,Et,Vo),jt(B,B.parameters),E.checkDefined(qe(B.type,Et,ki))));case 185:return ir(k.updateConstructorTypeNode(B,yt(B),Dr(B.typeParameters,Et,Vo),jt(B,B.parameters),E.checkDefined(qe(B.type,Et,ki))));case 205:return ty(B)?(ee(B),ir(k.updateImportTypeNode(B,k.updateLiteralTypeNode(B.argument,yr(B,B.argument.literal)),B.attributes,B.qualifier,Dr(B.typeArguments,Et,ki),B.isTypeOf))):ir(B);default:E.assertNever(B,`Attempted to process unhandled node kind: ${E.formatSyntaxKind(B.kind)}`)}return ox(B)&&Ha(U,B.pos).line===Ha(U,B.end).line&&Qr(B,1),ir(ur(B,Et,e));function ir(Yt){return Yt&&Be&&ry(B)&&br(B),Ji(B)&&(f=Ge),Be&&!S&&(n=mt),Dt&&(S=nt),Yt===B?Yt:Yt&&dn(os(Yt,B),B)}}function fr(B){return B.parent.kind===174&&R_(B.parent,2)}function Hn(B){if(!pRe(B)||Le(B))return;switch(B.kind){case 278:return Ni(B.parent)&&(o=!0),u=!0,ee(B),k.updateExportDeclaration(B,B.modifiers,B.isTypeOnly,B.exportClause,yr(B,B.moduleSpecifier),Ht(B.attributes));case 277:{if(Ni(B.parent)&&(o=!0),u=!0,B.expression.kind===80)return B;{const mt=k.createUniqueName("_default",16);n=()=>({diagnosticMessage:p.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:B}),J=B;const Be=k.createVariableDeclaration(mt,void 0,R.createTypeOfExpression(B.expression,B,iS,P),void 0);J=void 0;const nt=k.createVariableStatement(i?[k.createModifier(138)]:[],k.createVariableDeclarationList([Be],2));return os(nt,B),vw(B),[nt,k.updateExportAssignment(B,B.modifiers,mt)]}}}const Ge=ns(B);return y.set(cu(B),Ge),B}function ei(B){if(El(B)||R_(B,2048)||!$p(B))return B;const Ge=k.createModifiersFromModifierFlags(Lu(B)&131039);return k.replaceModifiers(B,Ge)}function Ii(B,Ge,mt,Be){const nt=k.updateModuleDeclaration(B,Ge,mt,Be);if(su(nt)||nt.flags&32)return nt;const Dt=k.createModuleDeclaration(nt.modifiers,nt.name,nt.body,nt.flags|32);return dn(Dt,nt),Ke(Dt,nt),Dt}function ns(B){if(d)for(;Ik(d,B););if(Le(B))return;switch(B.kind){case 271:{const ir=_i(B);return ir&&ee(B),ir}case 272:{const ir=ln(B);return ir&&ee(B),ir}}if(yu(B)&&hr(B)||As(B)&&R.isImplementationOfOverload(B))return;let Ge;Ji(B)&&(Ge=f,f=B);const mt=I9(B),Be=n;mt&&(n=o0(B));const nt=i;switch(B.kind){case 265:{i=!1;const ir=Dt(k.updateTypeAliasDeclaration(B,yt(B),B.name,Dr(B.typeParameters,Et,Vo),E.checkDefined(qe(B.type,Et,ki))));return i=nt,ir}case 264:return Dt(k.updateInterfaceDeclaration(B,yt(B),B.name,Kn(B,B.typeParameters),et(B.heritageClauses),Dr(B.members,Et,Sb)));case 262:{const ir=Dt(k.updateFunctionDeclaration(B,yt(B),void 0,B.name,Kn(B,B.typeParameters),jt(B,B.parameters),Vt(B,B.type),void 0));if(ir&&R.isExpandoFunctionDeclaration(B)&&Lr(B)){const Yt=R.getPropertiesOfContainerFunction(B),Kt=Jm.createModuleDeclaration(void 0,ir.name||k.createIdentifier("_default"),k.createModuleBlock([]),32);ba(Kt,f),Kt.locals=Bs(Yt),Kt.symbol=Yt[0].parent;const W=[];let Pe=Ri(Yt,Ne=>{if(!wF(Ne.valueDeclaration))return;const Ce=xi(Ne.escapedName);if(!Sf(Ce,99))return;n=o0(Ne.valueDeclaration);const _t=R.createTypeOfDeclaration(Ne.valueDeclaration,Kt,iS,P);n=Be;const Tt=BT(Ce),Jt=Tt?k.getGeneratedNameForNode(Ne.valueDeclaration):k.createIdentifier(Ce);Tt&&W.push([Jt,Ce]);const ar=k.createVariableDeclaration(Jt,void 0,_t,void 0);return k.createVariableStatement(Tt?void 0:[k.createToken(95)],k.createVariableDeclarationList([ar]))});W.length?Pe.push(k.createExportDeclaration(void 0,!1,k.createNamedExports(nr(W,([Ne,Ce])=>k.createExportSpecifier(!1,Ne,Ce))))):Pe=Ri(Pe,Ne=>k.replaceModifiers(Ne,0));const St=k.createModuleDeclaration(yt(B),B.name,k.createModuleBlock(Pe),32);if(!R_(ir,2048))return[ir,St];const A=k.createModifiersFromModifierFlags(Lu(ir)&-2081|128),le=k.updateFunctionDeclaration(ir,A,void 0,ir.name,ir.typeParameters,ir.parameters,ir.type,void 0),V=k.updateModuleDeclaration(St,A,St.name,St.body),ce=k.createExportAssignment(void 0,!1,St.name);return Ni(B.parent)&&(o=!0),u=!0,[le,V,ce]}else return ir}case 267:{i=!1;const ir=B.body;if(ir&&ir.kind===268){const Yt=c,Kt=u;u=!1,c=!1;const W=Dr(ir.statements,Hn,Ei);let Pe=Ue(W);B.flags&33554432&&(c=!1),!Vd(B)&&!tt(Pe)&&!u&&(c?Pe=k.createNodeArray([...Pe,Mw(k)]):Pe=Dr(Pe,ei,Ei));const St=k.updateModuleBlock(ir,Pe);i=nt,c=Yt,u=Kt;const A=yt(B);return Dt(Ii(B,A,Jv(B)?yr(B,B.name):B.name,St))}else{i=nt;const Yt=yt(B);i=!1,qe(ir,Hn);const Kt=cu(ir),W=y.get(Kt);return y.delete(Kt),Dt(Ii(B,Yt,B.name,W))}}case 263:{F=B.name,J=B;const ir=k.createNodeArray(yt(B)),Yt=Kn(B,B.typeParameters),Kt=Sg(B);let W;if(Kt){const ce=n;W=yD(Zs(Kt.parameters,Ne=>{if(!Rn(Ne,31)||Le(Ne))return;if(n=o0(Ne),Ne.name.kind===80)return os(k.createPropertyDeclaration(yt(Ne),Ne.name,Ne.questionToken,Vt(Ne,Ne.type),zt(Ne)),Ne);return Ce(Ne.name);function Ce(_t){let Tt;for(const Jt of _t.elements)pl(Jt)||(Ns(Jt.name)&&(Tt=es(Tt,Ce(Jt.name))),Tt=Tt||[],Tt.push(k.createPropertyDeclaration(yt(Ne),Jt.name,void 0,Vt(Jt,void 0),void 0)));return Tt}})),n=ce}const St=ct(B.members,ce=>!!ce.name&&Pi(ce.name))?[k.createPropertyDeclaration(void 0,k.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,A=es(es(St,W),Dr(B.members,Et,Tl)),le=k.createNodeArray(A),V=Ud(B);if(V&&!pc(V.expression)&&V.expression.kind!==106){const ce=B.name?xi(B.name.escapedText):"default",Ne=k.createUniqueName(`${ce}_base`,16);n=()=>({diagnosticMessage:p.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:V,typeName:B.name});const Ce=k.createVariableDeclaration(Ne,void 0,R.createTypeOfExpression(V.expression,B,iS,P),void 0),_t=k.createVariableStatement(i?[k.createModifier(138)]:[],k.createVariableDeclarationList([Ce],2)),Tt=k.createNodeArray(nr(B.heritageClauses,Jt=>{if(Jt.token===96){const ar=n;n=o0(Jt.types[0]);const Er=k.updateHeritageClause(Jt,nr(Jt.types,Nr=>k.updateExpressionWithTypeArguments(Nr,Ne,Dr(Nr.typeArguments,Et,ki))));return n=ar,Er}return k.updateHeritageClause(Jt,Dr(k.createNodeArray(An(Jt.types,ar=>pc(ar.expression)||ar.expression.kind===106)),Et,s0))}));return[_t,Dt(k.updateClassDeclaration(B,ir,B.name,Yt,Tt,le))]}else{const ce=et(B.heritageClauses);return Dt(k.updateClassDeclaration(B,ir,B.name,Yt,ce,le))}}case 243:return Dt(Vs(B));case 266:return Dt(k.updateEnumDeclaration(B,k.createNodeArray(yt(B)),B.name,k.createNodeArray(Ri(B.members,ir=>{if(Le(ir))return;const Yt=R.getConstantValue(ir),Kt=Yt===void 0?void 0:typeof Yt=="string"?k.createStringLiteral(Yt):Yt<0?k.createPrefixUnaryExpression(41,k.createNumericLiteral(-Yt)):k.createNumericLiteral(Yt);return os(k.updateEnumMember(ir,ir.name,Kt),ir)}))))}return E.assertNever(B,`Unhandled top-level node in declaration emit: ${E.formatSyntaxKind(B.kind)}`);function Dt(ir){return Ji(B)&&(f=Ge),mt&&(n=Be),B.kind===267&&(i=nt),ir===B?ir:(J=void 0,F=void 0,ir&&dn(os(ir,B),B))}}function Vs(B){if(!er(B.declarationList.declarations,tr))return;const Ge=Dr(B.declarationList.declarations,Et,hi);if(!gr(Ge))return;const mt=k.createNodeArray(yt(B));let Be;return m8(B.declarationList)||d8(B.declarationList)?(Be=k.createVariableDeclarationList(Ge,2),dn(Be,B.declarationList),Ke(Be,B.declarationList),Nc(Be,B.declarationList)):Be=k.updateVariableDeclarationList(B.declarationList,Ge),k.updateVariableStatement(B,mt,Be)}function _a(B){return Mp(Ri(B.elements,Ge=>cr(Ge)))}function cr(B){if(B.kind!==232&&B.name)return tr(B)?Ns(B.name)?_a(B.name):k.createVariableDeclaration(B.name,void 0,Vt(B,void 0),void 0):void 0}function br(B){let Ge;S||(Ge=n,n=xae(B)),F=B.name,E.assert(R.isLateBound(as(B)));const Be=B.name.expression;yi(Be,f),S||(n=Ge),F=void 0}function Le(B){return!!pe&&!!B&&fz(B,U)}function rt(B){return oc(B)||Tc(B)}function tt(B){return ct(B,rt)}function yt(B){const Ge=Lu(B),mt=ne(B);return Ge===mt?mA(B.modifiers,Be=>Wn(Be,ta),ta):k.createModifiersFromModifierFlags(mt)}function ne(B){let Ge=130030,mt=i&&!uRe(B)?128:0;const Be=B.parent.kind===312;return(!Be||s&&Be&&Ic(B.parent))&&(Ge^=128,mt=0),Ube(B,Ge,mt)}function we(B,Ge){let mt=Cae(B);return!mt&&B!==Ge.firstAccessor&&(mt=Cae(Ge.firstAccessor),n=o0(Ge.firstAccessor)),!mt&&Ge.secondAccessor&&B!==Ge.secondAccessor&&(mt=Cae(Ge.secondAccessor),n=o0(Ge.secondAccessor)),mt}function et(B){return k.createNodeArray(An(nr(B,Ge=>k.updateHeritageClause(Ge,Dr(k.createNodeArray(An(Ge.types,mt=>pc(mt.expression)||Ge.token===96&&mt.expression.kind===106)),Et,s0))),Ge=>Ge.types&&!!Ge.types.length))}}function uRe(e){return e.kind===264}function _Re(e,t,n,i){return e.createModifiersFromModifierFlags(Ube(t,n,i))}function Ube(e,t=131070,n=0){let i=Lu(e)&t|n;return i&2048&&!(i&32)&&(i^=32),i&2048&&i&128&&(i^=128),i}function Cae(e){if(e)return e.kind===177?e.type:e.parameters.length>0?e.parameters[0].type:void 0}function fRe(e){switch(e.kind){case 172:case 171:return!R_(e,2);case 169:case 260:return!0}return!1}function pRe(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 dRe(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 iS,mRe=wt({"src/compiler/transformers/declarations.ts"(){Fs(),Ase(),iS=531469}});function gRe(e){switch(e){case 99:case 7:case 6:case 5:case 200:return dq;case 4:return Sae;case 100:case 199:return Tae;default:return pq}}function gq(e,t,n){return{scriptTransformers:hRe(e,t,n),declarationTransformers:yRe(t)}}function hRe(e,t,n){if(n)return Ve;const i=Fa(e),s=au(e),o=s3(e),c=[];return Nn(c,t&&nr(t.before,Hbe)),c.push(rae),e.experimentalDecorators&&c.push(sae),pF(e)&&c.push(gae),i<99&&c.push(fae),!e.experimentalDecorators&&(i<99||!o)&&c.push(aae),c.push(nae),i<8&&c.push(_ae),i<7&&c.push(uae),i<6&&c.push(lae),i<5&&c.push(cae),i<4&&c.push(oae),i<3&&c.push(hae),i<2&&(c.push(yae),c.push(bae)),c.push(gRe(s)),i<1&&c.push(vae),Nn(c,t&&nr(t.after,Hbe)),c}function yRe(e){const t=[];return t.push(mq),Nn(t,e&&nr(e.afterDeclarations,bRe)),t}function vRe(e){return t=>FV(t)?e.transformBundle(t):e.transformSourceFile(t)}function qbe(e,t){return n=>{const i=e(n);return typeof i=="function"?t(n,i):vRe(i)}}function Hbe(e){return qbe(e,Xp)}function bRe(e){return qbe(e,(t,n)=>n)}function J3(e,t){return t}function yA(e,t,n){n(e,t)}function vA(e,t,n,i,s,o,c){var u,f;const g=new Array(363);let d,y,S,T=0,k=[],w=[],P=[],F=[],J=0,U=!1,$=[],j=0,re,R,Y=J3,ue=yA,pe=0;const H=[],q={factory:n,getCompilerOptions:()=>i,getEmitResolver:()=>e,getEmitHost:()=>t,getEmitHelperFactory:Hu(()=>Une(q)),startLexicalEnvironment:ge,suspendLexicalEnvironment:Fe,resumeLexicalEnvironment:$e,endLexicalEnvironment:Pt,setLexicalEnvironmentFlags:at,getLexicalEnvironmentFlags:Je,hoistVariableDeclaration:xe,hoistFunctionDeclaration:De,addInitializationStatement:ft,startBlockScope:pt,endBlockScope:zt,addBlockScopedVariable:Vt,requestEmitHelper:hr,readEmitHelpers:Lr,enableSubstitution:K,enableEmitNotification:Oe,isSubstitutionEnabled:fe,isEmitNotificationEnabled:me,get onSubstituteNode(){return Y},set onSubstituteNode(jt){E.assert(pe<1,"Cannot modify transformation hooks after initialization has completed."),E.assert(jt!==void 0,"Value must not be 'undefined'"),Y=jt},get onEmitNode(){return ue},set onEmitNode(jt){E.assert(pe<1,"Cannot modify transformation hooks after initialization has completed."),E.assert(jt!==void 0,"Value must not be 'undefined'"),ue=jt},addDiagnostic(jt){H.push(jt)}};for(const jt of s)mV(wr(as(jt)));Ao("beforeTransform");const ee=o.map(jt=>jt(q)),oe=jt=>{for(const Rt of ee)jt=Rt(jt);return jt};pe=1;const Se=[];for(const jt of s)(u=qr)==null||u.push(qr.Phase.Emit,"transformNodes",jt.kind===312?{path:jt.path}:{kind:jt.kind,pos:jt.pos,end:jt.end}),Se.push((c?oe:ae)(jt)),(f=qr)==null||f.pop();return pe=2,Ao("afterTransform"),bf("transformTime","beforeTransform","afterTransform"),{transformed:Se,substituteNode:ke,emitNodeWithNotification:be,isEmitNotificationEnabled:me,dispose:tr,diagnostics:H};function ae(jt){return jt&&(!Ni(jt)||!jt.isDeclarationFile)?oe(jt):jt}function K(jt){E.assert(pe<2,"Cannot modify the transformation context after transformation has completed."),g[jt]|=1}function fe(jt){return(g[jt.kind]&1)!==0&&(ha(jt)&8)===0}function ke(jt,Rt){return E.assert(pe<3,"Cannot substitute a node after the result is disposed."),Rt&&fe(Rt)&&Y(jt,Rt)||Rt}function Oe(jt){E.assert(pe<2,"Cannot modify the transformation context after transformation has completed."),g[jt]|=2}function me(jt){return(g[jt.kind]&2)!==0||(ha(jt)&4)!==0}function be(jt,Rt,Kn){E.assert(pe<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),Rt&&(me(Rt)?ue(jt,Rt,Kn):Kn(jt,Rt))}function xe(jt){E.assert(pe>0,"Cannot modify the lexical environment during initialization."),E.assert(pe<2,"Cannot modify the lexical environment after transformation has completed.");const Rt=Qr(n.createVariableDeclaration(jt),128);d?d.push(Rt):d=[Rt],T&1&&(T|=2)}function De(jt){E.assert(pe>0,"Cannot modify the lexical environment during initialization."),E.assert(pe<2,"Cannot modify the lexical environment after transformation has completed."),Qr(jt,2097152),y?y.push(jt):y=[jt]}function ft(jt){E.assert(pe>0,"Cannot modify the lexical environment during initialization."),E.assert(pe<2,"Cannot modify the lexical environment after transformation has completed."),Qr(jt,2097152),S?S.push(jt):S=[jt]}function ge(){E.assert(pe>0,"Cannot modify the lexical environment during initialization."),E.assert(pe<2,"Cannot modify the lexical environment after transformation has completed."),E.assert(!U,"Lexical environment is suspended."),k[J]=d,w[J]=y,P[J]=S,F[J]=T,J++,d=void 0,y=void 0,S=void 0,T=0}function Fe(){E.assert(pe>0,"Cannot modify the lexical environment during initialization."),E.assert(pe<2,"Cannot modify the lexical environment after transformation has completed."),E.assert(!U,"Lexical environment is already suspended."),U=!0}function $e(){E.assert(pe>0,"Cannot modify the lexical environment during initialization."),E.assert(pe<2,"Cannot modify the lexical environment after transformation has completed."),E.assert(U,"Lexical environment is not suspended."),U=!1}function Pt(){E.assert(pe>0,"Cannot modify the lexical environment during initialization."),E.assert(pe<2,"Cannot modify the lexical environment after transformation has completed."),E.assert(!U,"Lexical environment is suspended.");let jt;if(d||y||S){if(y&&(jt=[...y]),d){const Rt=n.createVariableStatement(void 0,n.createVariableDeclarationList(d));Qr(Rt,2097152),jt?jt.push(Rt):jt=[Rt]}S&&(jt?jt=[...jt,...S]:jt=[...S])}return J--,d=k[J],y=w[J],S=P[J],T=F[J],J===0&&(k=[],w=[],P=[],F=[]),jt}function at(jt,Rt){T=Rt?T|jt:T&~jt}function Je(){return T}function pt(){E.assert(pe>0,"Cannot start a block scope during initialization."),E.assert(pe<2,"Cannot start a block scope after transformation has completed."),$[j]=re,j++,re=void 0}function zt(){E.assert(pe>0,"Cannot end a block scope during initialization."),E.assert(pe<2,"Cannot end a block scope after transformation has completed.");const jt=ct(re)?[n.createVariableStatement(void 0,n.createVariableDeclarationList(re.map(Rt=>n.createVariableDeclaration(Rt)),1))]:void 0;return j--,re=$[j],j===0&&($=[]),jt}function Vt(jt){E.assert(j>0,"Cannot add a block scoped variable outside of an iteration body."),(re||(re=[])).push(jt)}function hr(jt){if(E.assert(pe>0,"Cannot modify the transformation context during initialization."),E.assert(pe<2,"Cannot modify the transformation context after transformation has completed."),E.assert(!jt.scoped,"Cannot request a scoped emit helper."),jt.dependencies)for(const Rt of jt.dependencies)hr(Rt);R=_r(R,jt)}function Lr(){E.assert(pe>0,"Cannot modify the transformation context during initialization."),E.assert(pe<2,"Cannot modify the transformation context after transformation has completed.");const jt=R;return R=void 0,jt}function tr(){if(pe<3){for(const jt of s)mV(wr(as(jt)));d=void 0,k=void 0,y=void 0,w=void 0,Y=void 0,ue=void 0,R=void 0,pe=3}}}var hq,z3,SRe=wt({"src/compiler/transformer.ts"(){Fs(),mb(),hq={scriptTransformers:Ve,declarationTransformers:Ve},z3={factory:I,getCompilerOptions:()=>({}),getEmitResolver:ks,getEmitHost:ks,getEmitHelperFactory:ks,startLexicalEnvironment:Ca,resumeLexicalEnvironment:Ca,suspendLexicalEnvironment:Ca,endLexicalEnvironment:f1,setLexicalEnvironmentFlags:Ca,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:Ca,hoistFunctionDeclaration:Ca,addInitializationStatement:Ca,startBlockScope:Ca,endBlockScope:f1,addBlockScopedVariable:Ca,requestEmitHelper:Ca,readEmitHelpers:ks,enableSubstitution:Ca,enableEmitNotification:Ca,isSubstitutionEnabled:ks,isEmitNotificationEnabled:ks,onSubstituteNode:J3,onEmitNode:yA,addDiagnostic:Ca}}});function Eae(e){return Zo(e,".tsbuildinfo")}function yq(e,t,n,i=!1,s,o){const c=ts(n)?n:_W(e,n,i),u=e.getCompilerOptions();if(no(u)){const f=e.getPrependNodes();if(c.length||f.length){const g=I.createBundle(c,f),d=t(V3(g,e,i),g);if(d)return d}}else{if(!s)for(const f of c){const g=t(V3(f,e,i),f);if(g)return g}if(o){const f=c0(u);if(f)return t({buildInfoPath:f},void 0)}}}function c0(e){const t=e.configFilePath;if(!i3(e))return;if(e.tsBuildInfoFile)return e.tsBuildInfoFile;const n=no(e);let i;if(n)i=$u(n);else{if(!t)return;const s=$u(t);i=e.outDir?e.rootDir?U0(e.outDir,Bp(e.rootDir,s,!0)):Mn(e.outDir,wc(s)):s}return i+".tsbuildinfo"}function W3(e,t){const n=no(e),i=e.emitDeclarationOnly?void 0:n,s=i&&Gbe(i,e),o=t||Gf(e)?$u(n)+".d.ts":void 0,c=o&&fw(e)?o+".map":void 0,u=c0(e);return{jsFilePath:i,sourceMapFilePath:s,declarationFilePath:o,declarationMapPath:c,buildInfoPath:u}}function V3(e,t,n){const i=t.getCompilerOptions();if(e.kind===313)return W3(i,n);{const s=gre(e.fileName,t,F9(e.fileName,i)),o=gp(e),c=o&&Gg(e.fileName,s,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0,u=i.emitDeclarationOnly||c?void 0:s,f=!u||gp(e)?void 0:Gbe(u,i),g=n||Gf(i)&&!o?hre(e.fileName,t):void 0,d=g&&fw(i)?g+".map":void 0;return{jsFilePath:u,sourceMapFilePath:f,declarationFilePath:g,declarationMapPath:d,buildInfoPath:void 0}}}function Gbe(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function F9(e,t){return Zo(e,".json")?".json":t.jsx===1&&Gc(e,[".jsx",".tsx"])?".jsx":Gc(e,[".mts",".mjs"])?".mjs":Gc(e,[".cts",".cjs"])?".cjs":".js"}function $be(e,t,n,i){return n?U0(n,Bp(i(),e,t)):e}function U3(e,t,n,i=()=>a6(t,n)){return vq(e,t.options,n,i)}function vq(e,t,n,i){return N1($be(e,n,t.declarationDir||t.outDir,i),H5(e))}function Xbe(e,t,n,i=()=>a6(t,n)){if(t.options.emitDeclarationOnly)return;const s=Zo(e,".json"),o=bq(e,t.options,n,i);return!s||Gg(e,o,E.checkDefined(t.options.configFilePath),n)!==0?o:void 0}function bq(e,t,n,i){return N1($be(e,n,t.outDir,i),F9(e,t))}function Qbe(){let e;return{addOutput:t,getOutputs:n};function t(i){i&&(e||(e=[])).push(i)}function n(){return e||Ve}}function Ybe(e,t){const{jsFilePath:n,sourceMapFilePath:i,declarationFilePath:s,declarationMapPath:o,buildInfoPath:c}=W3(e.options,!1);t(n),t(i),t(s),t(o),t(c)}function Zbe(e,t,n,i,s){if(Hl(t))return;const o=Xbe(t,e,n,s);if(i(o),!Zo(t,".json")&&(o&&e.options.sourceMap&&i(`${o}.map`),Gf(e.options))){const c=U3(t,e,n,s);i(c),e.options.declarationMap&&i(`${c}.map`)}}function q3(e,t,n,i,s){let o;return e.rootDir?(o=Xi(e.rootDir,n),s==null||s(e.rootDir)):e.composite&&e.configFilePath?(o=Un(iu(e.configFilePath)),s==null||s(o)):o=Iae(t(),n,i),o&&o[o.length-1]!==Io&&(o+=Io),o}function a6({options:e,fileNames:t},n){return q3(e,()=>An(t,i=>!(e.noEmitForJsFiles&&Gc(i,FC))&&!Hl(i)),Un(iu(E.checkDefined(e.configFilePath))),nu(!n))}function O9(e,t){const{addOutput:n,getOutputs:i}=Qbe();if(no(e.options))Ybe(e,n);else{const s=Hu(()=>a6(e,t));for(const o of e.fileNames)Zbe(e,o,t,n,s);n(c0(e.options))}return i()}function Kbe(e,t,n){t=Hs(t),E.assert(bs(e.fileNames,t),"Expected fileName to be present in command line");const{addOutput:i,getOutputs:s}=Qbe();return no(e.options)?Ybe(e,i):Zbe(e,t,n,i),s()}function Sq(e,t){if(no(e.options)){const{jsFilePath:s,declarationFilePath:o}=W3(e.options,!1);return E.checkDefined(s||o,`project ${e.options.configFilePath} expected to have at least one output`)}const n=Hu(()=>a6(e,t));for(const s of e.fileNames){if(Hl(s))continue;const o=Xbe(s,e,t,n);if(o)return o;if(!Zo(s,".json")&&Gf(e.options))return U3(s,e,t,n)}const i=c0(e.options);return i||E.fail(`project ${e.options.configFilePath} expected to have at least one output`)}function L9(e,t,n,{scriptTransformers:i,declarationTransformers:s},o,c,u){var f=t.getCompilerOptions(),g=f.sourceMap||f.inlineSourceMap||fw(f)?[]:void 0,d=f.listEmittedFiles?[]:void 0,y=yC(),S=t0(f),T=G8(S),{enter:k,exit:w}=DB("printTime","beforePrint","afterPrint"),P,F=!1;return k(),yq(t,J,_W(t,n,u),u,c,!n),w(),{emitSkipped:F,diagnostics:y.getDiagnostics(),emittedFiles:d,sourceMaps:g};function J({jsFilePath:q,sourceMapFilePath:ee,declarationFilePath:oe,declarationMapPath:Se,buildInfoPath:ae},K){var fe,ke,Oe,me,be,xe;let De;ae&&K&&FV(K)&&(De=Un(Xi(ae,t.getCurrentDirectory())),P={commonSourceDirectory:ft(t.getCommonSourceDirectory()),sourceFiles:K.sourceFiles.map(ge=>ft(Xi(ge.fileName,t.getCurrentDirectory())))}),(fe=qr)==null||fe.push(qr.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:q}),$(K,q,ee,ft),(ke=qr)==null||ke.pop(),(Oe=qr)==null||Oe.push(qr.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:oe}),j(K,oe,Se,ft),(me=qr)==null||me.pop(),(be=qr)==null||be.push(qr.Phase.Emit,"emitBuildInfo",{buildInfoPath:ae}),U(P,ae),(xe=qr)==null||xe.pop();function ft(ge){return Fv(Bp(De,ge,t.getCanonicalFileName))}}function U(q,ee){if(!ee||n||F)return;if(t.isEmitBlocked(ee)){F=!0;return}const oe=t.getBuildInfo(q)||bA(void 0,q);AE(t,y,ee,Pae(oe),!1,void 0,{buildInfo:oe}),d==null||d.push(ee)}function $(q,ee,oe,Se){if(!q||o||!ee)return;if(t.isEmitBlocked(ee)||f.noEmit){F=!0;return}const ae=vA(e,t,I,f,[q],i,!1),K={removeComments:f.removeComments,newLine:f.newLine,noEmitHelpers:f.noEmitHelpers,module:f.module,target:f.target,sourceMap:f.sourceMap,inlineSourceMap:f.inlineSourceMap,inlineSources:f.inlineSources,extendedDiagnostics:f.extendedDiagnostics,writeBundleFileInfo:!!P,relativeToBuildInfo:Se},fe=V1(K,{hasGlobalName:e.hasGlobalName,onEmitNode:ae.emitNodeWithNotification,isEmitNotificationEnabled:ae.isEmitNotificationEnabled,substituteNode:ae.substituteNode});E.assert(ae.transformed.length===1,"Should only see one output from the transform"),R(ee,oe,ae,fe,f),ae.dispose(),P&&(P.js=fe.bundleFileInfo),d&&(d.push(ee),oe&&d.push(oe))}function j(q,ee,oe,Se){if(!q||o===0)return;if(!ee){(o||f.emitDeclarationOnly)&&(F=!0);return}const ae=Ni(q)?[q]:q.sourceFiles,K=u?ae:An(ae,jz),fe=no(f)?[I.createBundle(K,Ni(q)?void 0:q.prepends)]:K;o&&!Gf(f)&&K.forEach(re);const ke=vA(e,t,I,f,fe,s,!1);if(gr(ke.diagnostics))for(const me of ke.diagnostics)y.add(me);const Oe=!!ke.diagnostics&&!!ke.diagnostics.length||!!t.isEmitBlocked(ee)||!!f.noEmit;if(F=F||Oe,!Oe||u){E.assert(ke.transformed.length===1,"Should only see one output from the decl transform");const me={removeComments:f.removeComments,newLine:f.newLine,noEmitHelpers:!0,module:f.module,target:f.target,sourceMap:!u&&f.declarationMap,inlineSourceMap:f.inlineSourceMap,extendedDiagnostics:f.extendedDiagnostics,onlyPrintJsDocStyle:!0,omitBraceSourceMapPositions:!0,writeBundleFileInfo:!!P,recordInternalSection:!!P,relativeToBuildInfo:Se},be=V1(me,{hasGlobalName:e.hasGlobalName,onEmitNode:ke.emitNodeWithNotification,isEmitNotificationEnabled:ke.isEmitNotificationEnabled,substituteNode:ke.substituteNode});R(ee,oe,ke,be,{sourceMap:me.sourceMap,sourceRoot:f.sourceRoot,mapRoot:f.mapRoot,extendedDiagnostics:f.extendedDiagnostics}),d&&(d.push(ee),oe&&d.push(oe)),P&&(P.dts=be.bundleFileInfo)}ke.dispose()}function re(q){if(oc(q)){q.expression.kind===80&&e.collectLinkedAliases(q.expression,!0);return}else if(vu(q)){e.collectLinkedAliases(q.propertyName||q.name,!0);return}Ss(q,re)}function R(q,ee,oe,Se,ae){const K=oe.transformed[0],fe=K.kind===313?K:void 0,ke=K.kind===312?K:void 0,Oe=fe?fe.sourceFiles:[ke];let me;Y(ae,K)&&(me=Rse(t,wc(iu(q)),ue(ae),pe(ae,q,ke),ae)),fe?Se.writeBundle(fe,T,me):Se.writeFile(ke,T,me);let be;if(me){g&&g.push({inputSourceFileNames:me.getSources(),sourceMap:me.toJSON()});const De=H(ae,me,q,ee,ke);if(De&&(T.isAtStartOfLine()||T.rawWrite(S),be=T.getTextPos(),T.writeComment(`//# sourceMappingURL=${De}`)),ee){const ft=me.toString();AE(t,y,ee,ft,!1,Oe),Se.bundleFileInfo&&(Se.bundleFileInfo.mapHash=aS(ft,t))}}else T.writeLine();const xe=T.getText();AE(t,y,q,xe,!!f.emitBOM,Oe,{sourceMapUrlPos:be,diagnostics:oe.diagnostics}),Se.bundleFileInfo&&(Se.bundleFileInfo.hash=aS(xe,t)),T.clear()}function Y(q,ee){return(q.sourceMap||q.inlineSourceMap)&&(ee.kind!==312||!Zo(ee.fileName,".json"))}function ue(q){const ee=iu(q.sourceRoot||"");return ee&&ul(ee)}function pe(q,ee,oe){if(q.sourceRoot)return t.getCommonSourceDirectory();if(q.mapRoot){let Se=iu(q.mapRoot);return oe&&(Se=Un($5(oe.fileName,t,Se))),Pm(Se)===0&&(Se=Mn(t.getCommonSourceDirectory(),Se)),Se}return Un(Hs(ee))}function H(q,ee,oe,Se,ae){if(q.inlineSourceMap){const fe=ee.toString();return`data:application/json;base64,${Rre(zl,fe)}`}const K=wc(iu(E.checkDefined(Se)));if(q.mapRoot){let fe=iu(q.mapRoot);return ae&&(fe=Un($5(ae.fileName,t,fe))),Pm(fe)===0?(fe=Mn(t.getCommonSourceDirectory(),fe),encodeURI(CT(Un(Hs(oe)),Mn(fe,K),t.getCurrentDirectory(),t.getCanonicalFileName,!0))):encodeURI(Mn(fe,K))}return encodeURI(K)}}function bA(e,t){return{bundle:t,program:e,version:yf}}function Pae(e){return JSON.stringify(e)}function M9(e,t){return SW(e,t)}function TRe(e,t,n){var i;const s=E.checkDefined(e.js),o=((i=s.sources)==null?void 0:i.prologues)&&Iv(s.sources.prologues,c=>c.file);return e.sourceFiles.map((c,u)=>{const f=o==null?void 0:o.get(u),g=f==null?void 0:f.directives.map(S=>{const T=Ke(I.createStringLiteral(S.expression.text),S.expression),k=Ke(I.createExpressionStatement(T),S);return ba(T,k),k}),d=I.createToken(1),y=I.createSourceFile(g??[],d,0);return y.fileName=Bp(n.getCurrentDirectory(),Xi(c,t),!n.useCaseSensitiveFileNames()),y.text=(f==null?void 0:f.text)??"",QE(y,0,(f==null?void 0:f.text.length)??0),AC(y.statements,y),QE(d,y.end,0),ba(d,y),y})}function Dae(e,t,n,i){var s,o;(s=qr)==null||s.push(qr.Phase.Emit,"emitUsingBuildInfo",{},!0),Ao("beforeEmit");const c=xRe(e,t,n,i);return Ao("afterEmit"),bf("Emit","beforeEmit","afterEmit"),(o=qr)==null||o.pop(),c}function xRe(e,t,n,i){const{buildInfoPath:s,jsFilePath:o,sourceMapFilePath:c,declarationFilePath:u,declarationMapPath:f}=W3(e.options,!1),g=t.getBuildInfo(s,e.options.configFilePath);if(!g||!g.bundle||!g.bundle.js||u&&!g.bundle.dts)return s;const d=t.readFile(E.checkDefined(o));if(!d||aS(d,t)!==g.bundle.js.hash)return o;const y=c&&t.readFile(c);if(c&&!y||e.options.inlineSourceMap)return c||"inline sourcemap decoding";if(c&&aS(y,t)!==g.bundle.js.mapHash)return c;const S=u&&t.readFile(u);if(u&&!S||u&&aS(S,t)!==g.bundle.dts.hash)return u;const T=f&&t.readFile(f);if(f&&!T||e.options.inlineSourceMap)return f||"inline sourcemap decoding";if(f&&aS(T,t)!==g.bundle.dts.mapHash)return f;const k=Un(Xi(s,t.getCurrentDirectory())),w=pV(o,d,c,y,u,S,f,T,s,g,!0),P=[],F=Uq(e.projectReferences,n,re=>t.readFile(re),t),J=TRe(g.bundle,k,t);let U,$;const j={getPrependNodes:Hu(()=>[...F,w]),getCanonicalFileName:t.getCanonicalFileName,getCommonSourceDirectory:()=>Xi(g.bundle.commonSourceDirectory,k),getCompilerOptions:()=>e.options,getCurrentDirectory:()=>t.getCurrentDirectory(),getSourceFile:f1,getSourceFileByPath:f1,getSourceFiles:()=>J,getLibFileFromReference:ks,isSourceFileFromExternalLibrary:fd,getResolvedProjectReferenceToRedirect:f1,getProjectReferenceRedirect:f1,isSourceOfProjectReferenceRedirect:fd,writeFile:(re,R,Y,ue,pe,H)=>{switch(re){case o:if(d===R)return;break;case c:if(y===R)return;break;case s:break;case u:if(S===R)return;U=R,$=H;break;case f:if(T===R)return;break;default:E.fail(`Unexpected path: ${re}`)}P.push({name:re,text:R,writeByteOrderMark:Y,data:H})},isEmitBlocked:fd,readFile:re=>t.readFile(re),fileExists:re=>t.fileExists(re),useCaseSensitiveFileNames:()=>t.useCaseSensitiveFileNames(),getBuildInfo:re=>{const R=g.program;R&&U!==void 0&&e.options.composite&&(R.outSignature=aS(U,t,$));const{js:Y,dts:ue,sourceFiles:pe}=g.bundle;return re.js.sources=Y.sources,ue&&(re.dts.sources=ue.sources),re.sourceFiles=pe,bA(R,re)},getSourceFileFromReference:f1,redirectTargetsMap:vf(),getFileIncludeReasons:ks,createHash:Os(t,t.createHash)};return L9(R9,j,void 0,gq(e.options,i)),P}function V1(e={},t={}){var{hasGlobalName:n,onEmitNode:i=yA,isEmitNotificationEnabled:s,substituteNode:o=J3,onBeforeEmitNode:c,onAfterEmitNode:u,onBeforeEmitNodeArray:f,onAfterEmitNodeArray:g,onBeforeEmitToken:d,onAfterEmitToken:y}=t,S=!!e.extendedDiagnostics,T=!!e.omitBraceSourceMapPositions,k=t0(e),w=au(e),P=new Map,F,J,U,$,j,re,R,Y,ue,pe,H,q,ee,oe,Se,ae=e.preserveSourceNewlines,K,fe,ke,Oe=wS,me,be=e.writeBundleFileInfo?{sections:[]}:void 0,xe=be?E.checkDefined(e.relativeToBuildInfo):void 0,De=e.recordInternalSection,ft=0,ge="text",Fe=!0,$e,Pt,at=-1,Je,pt=-1,zt=-1,Vt=-1,hr=-1,Lr,tr,jt=!1,Rt=!!e.removeComments,Kn,Ji,{enter:yi,exit:os}=I0e(S,"commentTime","beforeComment","afterComment"),yr=I.parenthesizer,_i={select:C=>C===0?yr.parenthesizeLeadingTypeArgument:void 0},ln=fh();return Ge(),{printNode:Ht,printList:Ue,printFile:fr,printBundle:Et,writeNode:ei,writeList:Ii,writeFile:tt,writeBundle:Le,bundleFileInfo:be};function Ht(C,te,it){switch(C){case 0:E.assert(Ni(te),"Expected a SourceFile node.");break;case 2:E.assert(Ie(te),"Expected an Identifier node.");break;case 1:E.assert(ot(te),"Expected an Expression node.");break}switch(te.kind){case 312:return fr(te);case 313:return Et(te);case 314:return Hn(te)}return ei(C,te,it,yt()),ne()}function Ue(C,te,it){return Ii(C,te,it,yt()),ne()}function Et(C){return Le(C,yt(),void 0),ne()}function fr(C){return tt(C,yt(),void 0),ne()}function Hn(C){return rt(C,yt()),ne()}function ei(C,te,it,Ut){const vn=fe;B(Ut,void 0),we(C,te,it),Ge(),fe=vn}function Ii(C,te,it,Ut){const vn=fe;B(Ut,void 0),it&&et(it),Co(void 0,te,C),Ge(),fe=vn}function ns(){return fe.getTextPosWithWriteLine?fe.getTextPosWithWriteLine():fe.getTextPos()}function Vs(C,te,it){const Ut=Po(be.sections);Ut&&Ut.kind===it?Ut.end=te:be.sections.push({pos:C,end:te,kind:it})}function _a(C){if(De&&be&&F&&(yu(C)||ac(C))&&fz(C,F)&&ge!=="internal"){const te=ge;return br(fe.getTextPos()),ft=ns(),ge="internal",te}}function cr(C){C&&(br(fe.getTextPos()),ft=ns(),ge=C)}function br(C){return ftE.assert(Hre(Gs))),be.sections.push({pos:gi,end:fe.getTextPos(),kind:"prepend",data:xe(vn.fileName),texts:Li}))}}ft=ns();for(const vn of C.sourceFiles)we(0,vn,vn);if(be&&C.sourceFiles.length){const vn=fe.getTextPos();if(br(vn)){const gi=PP(C);gi&&(be.sources||(be.sources={}),be.sources.prologues=gi);const ti=Tt(C);ti&&(be.sources||(be.sources={}),be.sources.helpers=ti)}}Ge(),fe=Ut}function rt(C,te){const it=fe;B(te,void 0),we(4,C,void 0),Ge(),fe=it}function tt(C,te,it){me=!0;const Ut=fe;B(te,it),Ay(C),yh(C),we(0,C,C),Ge(),fe=Ut}function yt(){return ke||(ke=G8(k))}function ne(){const C=ke.getText();return ke.clear(),C}function we(C,te,it){it&&et(it),W(C,te,void 0)}function et(C){F=C,Lr=void 0,tr=void 0,C&&xh(C)}function B(C,te){C&&e.omitTrailingSemicolon&&(C=lW(C)),fe=C,$e=te,Fe=!fe||!$e}function Ge(){J=[],U=[],$=[],j=new Set,re=[],R=new Map,Y=[],ue=0,pe=[],H=0,q=[],ee=void 0,oe=[],Se=void 0,F=void 0,Lr=void 0,tr=void 0,B(void 0,void 0)}function mt(){return Lr||(Lr=$g(E.checkDefined(F)))}function Be(C,te){if(C===void 0)return;const it=_a(C);W(4,C,te),cr(it)}function nt(C){C!==void 0&&W(2,C,void 0)}function Dt(C,te){C!==void 0&&W(1,C,te)}function ir(C){W(aa(C)?6:4,C)}function Yt(C){ae&&Wp(C)&4&&(ae=!1)}function Kt(C){ae=C}function W(C,te,it){Ji=it,A(0,C,te)(C,te),Ji=void 0}function Pe(C){return!Rt&&!Ni(C)}function St(C){return!Fe&&!Ni(C)&&!A5(C)&&!Qb(C)&&!lie(C)}function A(C,te,it){switch(C){case 0:if(i!==yA&&(!s||s(it)))return V;case 1:if(o!==J3&&(Kn=o(te,it)||it)!==it)return Ji&&(Kn=Ji(Kn)),_t;case 2:if(Pe(it))return n4;case 3:if(St(it))return _v;case 4:return ce;default:return E.assertNever(C)}}function le(C,te,it){return A(C+1,te,it)}function V(C,te){const it=le(0,C,te);i(C,te,it)}function ce(C,te){if(c==null||c(te),ae){const it=ae;Yt(te),Ne(C,te),Kt(it)}else Ne(C,te);u==null||u(te),Ji=void 0}function Ne(C,te,it=!0){if(it){const Ut=gV(te);if(Ut)return Qi(C,te,Ut)}if(C===0)return rk(Ls(te,Ni));if(C===2)return In(Ls(te,Ie));if(C===6)return Nr(Ls(te,aa),!0);if(C===3)return Ce(Ls(te,Vo));if(C===7)return Xx(Ls(te,fx));if(C===5)return E.assertNode(te,AV),ji(!0);if(C===4){switch(te.kind){case 16:case 17:case 18:return Nr(te,!1);case 80:return In(te);case 81:return is(te);case 166:return pr(te);case 167:return kc(te);case 168:return _s(te);case 169:return Ra(te);case 170:return mo(te);case 171:return Uo(te);case 172:return Ol(te);case 173:return $i(te);case 174:return zs(te);case 175:return Ll(te);case 176:return Qa(te);case 177:case 178:return oa(te);case 179:return zo(te);case 180:return Kf(te);case 181:return Fc(te);case 182:return fs(te);case 183:return Wt(te);case 184:return go(te);case 185:return Yc(te);case 186:return se(te);case 187:return X(te);case 188:return Ee(te);case 189:return Xt(te);case 190:return rn(te);case 192:return En(te);case 193:return li(te);case 194:return gn(te);case 195:return Ps(te);case 196:return Qo(te);case 233:return Ct(te);case 197:return ml();case 198:return ho(te);case 199:return Vc(te);case 200:return $a(te);case 201:return gl(te);case 202:return an(te);case 203:return E_(te);case 204:return rc(te);case 205:return ol(te);case 206:return Pp(te);case 207:return Ju(te);case 208:return Te(te);case 239:return Ft(te);case 240:return Mo();case 241:return zr(te);case 243:return Ln(te);case 242:return ji(!1);case 244:return fa(te);case 245:return pa(te);case 246:return Rl(te);case 247:return Zc(te);case 248:return G_(te);case 249:return p_(te);case 250:return Cy(te);case 251:return Zp(te);case 252:return Kp(te);case 253:return A2(te);case 254:return Ff(te);case 255:return om(te);case 256:return Of(te);case 257:return dh(te);case 258:return Ae(te);case 259:return We(te);case 260:return bt(te);case 261:return Nt(te);case 262:return sr(te);case 263:return ws(te);case 264:return ku(te);case 265:return jl(te);case 266:return mh(te);case 267:return Z1(te);case 268:return qx(te);case 269:return K1(te);case 270:return Yx(te);case 271:return V6(te);case 272:return q6(te);case 273:return yS(te);case 274:return N2(te);case 280:return I2(te);case 275:return Hx(te);case 276:return H6(te);case 277:return Gx(te);case 278:return $x(te);case 279:return F2(te);case 281:return Ey(te);case 300:return Qx(te);case 301:return vS(te);case 282:return;case 283:return ev(te);case 12:return gh(te);case 286:case 289:return tv(te);case 287:case 290:return Hm(te);case 291:return d_(te);case 292:return tp(te);case 293:return $_(te);case 294:return $6(te);case 295:return Zx(te);case 296:return rv(te);case 297:return Kx(te);case 298:return v0(te);case 299:return ek(te);case 303:return xd(te);case 304:return TS(te);case 305:return Me(te);case 306:return kd(te);case 307:return oi(te);case 314:case 308:return fi(te);case 309:case 310:return Wr(te);case 311:return Cn(te);case 312:return rk(te);case 313:return E.fail("Bundles should be printed using printBundle");case 315:return E.fail("InputFiles should not be printed");case 316:return hh(te);case 317:return wy(te);case 319:return en("*");case 320:return en("?");case 321:return Ml(te);case 322:return q_(te);case 323:return io(te);case 324:return Pl(te);case 191:case 325:return lt(te);case 326:return;case 327:return Bl(te);case 329:return kS(te);case 330:return iv(te);case 334:case 339:case 344:return xS(te);case 335:case 336:return b0(te);case 337:case 338:return;case 340:case 341:case 342:case 343:return;case 345:return xa(te);case 346:return Cd(te);case 348:case 355:return CS(te);case 347:case 349:case 350:case 351:case 356:case 357:return nv(te);case 352:return S0(te);case 353:return CP(te);case 354:return tk(te);case 359:return}if(ot(te)&&(C=1,o!==J3)){const Ut=o(C,te)||te;Ut!==te&&(te=Ut,Ji&&(te=Ji(te)))}}if(C===1)switch(te.kind){case 9:case 10:return Er(te);case 11:case 14:case 15:return Nr(te,!1);case 80:return In(te);case 81:return is(te);case 209:return kt(te);case 210:return Fr(te);case 211:return Yi(te);case 212:return Is(te);case 213:return Cc(te);case 214:return Uc(te);case 215:return Ro(te);case 216:return qo(te);case 217:return dc(te);case 218:return Ec(te);case 219:return hl(te);case 220:return __(te);case 221:return Ku(te);case 222:return ep(te);case 223:return am(te);case 224:return qm(te);case 225:return _u(te);case 226:return ln(te);case 227:return H_(te);case 228:return Ag(te);case 229:return f_(te);case 230:return Q(te);case 231:return Ye(te);case 232:return;case 234:return At(te);case 235:return O(te);case 233:return Ct(te);case 238:return he(te);case 236:return Xe(te);case 237:return E.fail("SyntheticExpression should never be printed.");case 282:return;case 284:return wa(te);case 285:return bS(te);case 288:return G6(te);case 358:return E.fail("SyntaxList should not be printed");case 359:return;case 360:return jn(te);case 361:return Gm(te);case 362:return E.fail("SyntheticReferenceExpression should not be printed")}if(c_(te.kind))return j2(te,Oi);if(KJ(te.kind))return j2(te,en);E.fail(`Unhandled SyntaxKind: ${E.formatSyntaxKind(te.kind)}.`)}function Ce(C){Be(C.name),$r(),Oi("in"),$r(),Be(C.constraint)}function _t(C,te){const it=le(1,C,te);E.assertIsDefined(Kn),te=Kn,Kn=void 0,it(C,te)}function Tt(C){let te;if(w===0||e.noEmitHelpers)return;const it=new Map;for(const Ut of C.sourceFiles){const vn=Bw(Ut)!==void 0,gi=ar(Ut);if(gi)for(const ti of gi)!ti.scoped&&!vn&&!it.get(ti.name)&&(it.set(ti.name,!0),(te||(te=[])).push(ti.name))}return te}function Jt(C){let te=!1;const it=C.kind===313?C:void 0;if(it&&w===0)return;const Ut=it?it.prepends.length:0,vn=it?it.sourceFiles.length+Ut:1;for(let gi=0;gi"),$r(),Be(C.type),D_(C)}function Pl(C){Oi("function"),T0(C,C.parameters),en(":"),Be(C.type)}function Ml(C){en("?"),Be(C.type)}function q_(C){en("!"),Be(C.type)}function io(C){Be(C.type),en("=")}function Yc(C){$l(C),Ig(C,C.modifiers),Oi("new"),$r(),cm(C,C.typeParameters),T0(C,C.parameters),$r(),en("=>"),$r(),Be(C.type),D_(C)}function se(C){Oi("typeof"),$r(),Be(C.exprName),Og(C,C.typeArguments)}function X(C){rp(0,void 0),en("{");const te=ha(C)&1?768:32897;Co(C,C.members,te|524288),en("}"),Ly()}function Ee(C){Be(C.elementType,yr.parenthesizeNonArrayTypeOfPostfixType),en("["),en("]")}function lt(C){en("..."),Be(C.type)}function Xt(C){Ci(23,C.pos,en,C);const te=ha(C)&1?528:657;Co(C,C.elements,te|524288,yr.parenthesizeElementTypeOfTupleType),Ci(24,C.elements.end,en,C)}function an(C){Be(C.dotDotDotToken),Be(C.name),Be(C.questionToken),Ci(59,C.name.end,en,C),$r(),Be(C.type)}function rn(C){Be(C.type,yr.parenthesizeTypeOfOptionalType),en("?")}function En(C){Co(C,C.types,516,yr.parenthesizeConstituentTypeOfUnionType)}function li(C){Co(C,C.types,520,yr.parenthesizeConstituentTypeOfIntersectionType)}function gn(C){Be(C.checkType,yr.parenthesizeCheckTypeOfConditionalType),$r(),Oi("extends"),$r(),Be(C.extendsType,yr.parenthesizeExtendsTypeOfConditionalType),$r(),en("?"),$r(),Be(C.trueType),$r(),en(":"),$r(),Be(C.falseType)}function Ps(C){Oi("infer"),$r(),Be(C.typeParameter)}function Qo(C){en("("),Be(C.type),en(")")}function ml(){Oi("this")}function ho(C){Fy(C.operator,Oi),$r();const te=C.operator===148?yr.parenthesizeOperandOfReadonlyTypeOperator:yr.parenthesizeOperandOfTypeOperator;Be(C.type,te)}function Vc(C){Be(C.objectType,yr.parenthesizeNonArrayTypeOfPostfixType),en("["),Be(C.indexType),en("]")}function $a(C){const te=ha(C);en("{"),te&1?$r():(yl(),$m()),C.readonlyToken&&(Be(C.readonlyToken),C.readonlyToken.kind!==148&&Oi("readonly"),$r()),en("["),W(3,C.typeParameter),C.nameType&&($r(),Oi("as"),$r(),Be(C.nameType)),en("]"),C.questionToken&&(Be(C.questionToken),C.questionToken.kind!==58&&en("?")),en(":"),$r(),Be(C.type),Dl(),te&1?$r():(yl(),nd()),Co(C,C.members,2),en("}")}function gl(C){Dt(C.literal)}function E_(C){Be(C.head),Co(C,C.templateSpans,262144)}function ol(C){C.isTypeOf&&(Oi("typeof"),$r()),Oi("import"),en("("),Be(C.argument),C.attributes&&(en(","),$r(),W(7,C.attributes)),en(")"),C.qualifier&&(en("."),Be(C.qualifier)),Og(C,C.typeArguments)}function Pp(C){en("{"),Co(C,C.elements,525136),en("}")}function Ju(C){en("["),Co(C,C.elements,524880),en("]")}function Te(C){Be(C.dotDotDotToken),C.propertyName&&(Be(C.propertyName),en(":"),$r()),Be(C.name),Ny(C.initializer,C.name.end,C,yr.parenthesizeExpressionForDisallowedComma)}function kt(C){const te=C.elements,it=C.multiLine?65536:0;M2(C,te,8914|it,yr.parenthesizeExpressionForDisallowedComma)}function Fr(C){rp(0,void 0),er(C.properties,sk);const te=ha(C)&131072;te&&$m();const it=C.multiLine?65536:0,Ut=F&&F.languageVersion>=1&&!gp(F)?64:0;Co(C,C.properties,526226|Ut|it),te&&nd(),Ly()}function Yi(C){Dt(C.expression,yr.parenthesizeLeftSideOfAccess);const te=C.questionDotToken||Fm(I.createToken(25),C.expression.end,C.name.pos),it=ff(C,C.expression,te),Ut=ff(C,te,C.name);id(it,!1),te.kind!==29&&Ds(C.expression)&&!fe.hasTrailingComment()&&!fe.hasTrailingWhitespace()&&en("."),C.questionDotToken?Be(te):Ci(te.kind,C.expression.end,en,C),id(Ut,!1),Be(C.name),av(it,Ut)}function Ds(C){if(C=zp(C),j_(C)){const te=OS(C,!0,!1);return!(C.numericLiteralFlags&448)&&!te.includes(Ws(25))&&!te.includes("E")&&!te.includes("e")}else if(oo(C)){const te=Rne(C);return typeof te=="number"&&isFinite(te)&&te>=0&&Math.floor(te)===te}}function Is(C){Dt(C.expression,yr.parenthesizeLeftSideOfAccess),Be(C.questionDotToken),Ci(23,C.expression.end,en,C),Dt(C.argumentExpression),Ci(24,C.argumentExpression.end,en,C)}function Cc(C){const te=Wp(C)&16;te&&(en("("),Iy("0"),en(","),$r()),Dt(C.expression,yr.parenthesizeLeftSideOfAccess),te&&en(")"),Be(C.questionDotToken),Og(C,C.typeArguments),M2(C,C.arguments,2576,yr.parenthesizeExpressionForDisallowedComma)}function Uc(C){Ci(105,C.pos,Oi,C),$r(),Dt(C.expression,yr.parenthesizeExpressionOfNew),Og(C,C.typeArguments),M2(C,C.arguments,18960,yr.parenthesizeExpressionForDisallowedComma)}function Ro(C){const te=Wp(C)&16;te&&(en("("),Iy("0"),en(","),$r()),Dt(C.tag,yr.parenthesizeLeftSideOfAccess),te&&en(")"),Og(C,C.typeArguments),$r(),Dt(C.template)}function qo(C){en("<"),Be(C.type),en(">"),Dt(C.expression,yr.parenthesizeOperandOfPrefixUnary)}function dc(C){const te=Ci(21,C.pos,en,C),it=e4(C.expression,C);Dt(C.expression,void 0),B2(C.expression,C),av(it),Ci(22,C.expression?C.expression.end:te,en,C)}function Ec(C){pf(C.name),Mr(C)}function hl(C){Ig(C,C.modifiers),rr(C,If)}function If(C){cm(C,C.typeParameters),Y6(C,C.parameters),Ap(C.type),$r(),Be(C.equalsGreaterThanToken)}function __(C){Ci(91,C.pos,Oi,C),$r(),Dt(C.expression,yr.parenthesizeOperandOfPrefixUnary)}function Ku(C){Ci(114,C.pos,Oi,C),$r(),Dt(C.expression,yr.parenthesizeOperandOfPrefixUnary)}function ep(C){Ci(116,C.pos,Oi,C),$r(),Dt(C.expression,yr.parenthesizeOperandOfPrefixUnary)}function am(C){Ci(135,C.pos,Oi,C),$r(),Dt(C.expression,yr.parenthesizeOperandOfPrefixUnary)}function qm(C){Fy(C.operator,Lf),_h(C)&&$r(),Dt(C.operand,yr.parenthesizeOperandOfPrefixUnary)}function _h(C){const te=C.operand;return te.kind===224&&(C.operator===40&&(te.operator===40||te.operator===46)||C.operator===41&&(te.operator===41||te.operator===47))}function _u(C){Dt(C.operand,yr.parenthesizeOperandOfPostfixUnary),Fy(C.operator,Lf)}function fh(){return JO(C,te,it,Ut,vn,void 0);function C(ti,Li){if(Li){Li.stackIndex++,Li.preserveSourceNewlinesStack[Li.stackIndex]=ae,Li.containerPosStack[Li.stackIndex]=zt,Li.containerEndStack[Li.stackIndex]=Vt,Li.declarationListContainerEndStack[Li.stackIndex]=hr;const Gs=Li.shouldEmitCommentsStack[Li.stackIndex]=Pe(ti),Cu=Li.shouldEmitSourceMapsStack[Li.stackIndex]=St(ti);c==null||c(ti),Gs&&jS(ti),Cu&&uk(ti),Yt(ti)}else Li={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return Li}function te(ti,Li,Gs){return gi(ti,Gs,"left")}function it(ti,Li,Gs){const Cu=ti.kind!==28,t_=ff(Gs,Gs.left,ti),ip=ff(Gs,ti,Gs.right);id(t_,Cu),Mg(ti.pos),j2(ti,ti.kind===103?Oi:Lf),sd(ti.end,!0),id(ip,!0)}function Ut(ti,Li,Gs){return gi(ti,Gs,"right")}function vn(ti,Li){const Gs=ff(ti,ti.left,ti.operatorToken),Cu=ff(ti,ti.operatorToken,ti.right);if(av(Gs,Cu),Li.stackIndex>0){const t_=Li.preserveSourceNewlinesStack[Li.stackIndex],ip=Li.containerPosStack[Li.stackIndex],By=Li.containerEndStack[Li.stackIndex],ni=Li.declarationListContainerEndStack[Li.stackIndex],Ym=Li.shouldEmitCommentsStack[Li.stackIndex],Ar=Li.shouldEmitSourceMapsStack[Li.stackIndex];Kt(t_),Ar&&zS(ti),Ym&&i4(ti,ip,By,ni),u==null||u(ti),Li.stackIndex--}}function gi(ti,Li,Gs){const Cu=Gs==="left"?yr.getParenthesizeLeftSideOfBinaryForOperator(Li.operatorToken.kind):yr.getParenthesizeRightSideOfBinaryForOperator(Li.operatorToken.kind);let t_=A(0,1,ti);if(t_===_t&&(E.assertIsDefined(Kn),ti=Cu(Ls(Kn,ot)),t_=le(1,1,ti),Kn=void 0),(t_===n4||t_===_v||t_===ce)&&Zr(ti))return ti;Ji=Cu,t_(1,ti)}}function H_(C){const te=ff(C,C.condition,C.questionToken),it=ff(C,C.questionToken,C.whenTrue),Ut=ff(C,C.whenTrue,C.colonToken),vn=ff(C,C.colonToken,C.whenFalse);Dt(C.condition,yr.parenthesizeConditionOfConditionalExpression),id(te,!0),Be(C.questionToken),id(it,!0),Dt(C.whenTrue,yr.parenthesizeBranchOfConditionalExpression),av(te,it),id(Ut,!0),Be(C.colonToken),id(vn,!0),Dt(C.whenFalse,yr.parenthesizeBranchOfConditionalExpression),av(Ut,vn)}function Ag(C){Be(C.head),Co(C,C.templateSpans,262144)}function f_(C){Ci(127,C.pos,Oi,C),Be(C.asteriskToken),L2(C.expression&&ed(C.expression),w2)}function Q(C){Ci(26,C.pos,en,C),Dt(C.expression,yr.parenthesizeExpressionForDisallowedComma)}function Ye(C){pf(C.name),Ta(C)}function Ct(C){Dt(C.expression,yr.parenthesizeLeftSideOfAccess),Og(C,C.typeArguments)}function At(C){Dt(C.expression,void 0),C.type&&($r(),Oi("as"),$r(),Be(C.type))}function O(C){Dt(C.expression,yr.parenthesizeLeftSideOfAccess),Lf("!")}function he(C){Dt(C.expression,void 0),C.type&&($r(),Oi("satisfies"),$r(),Be(C.type))}function Xe(C){R2(C.keywordToken,C.pos,en),en("."),Be(C.name)}function Ft(C){Dt(C.expression),Be(C.literal)}function zr(C){Vn(C,!C.multiLine&&FS(C))}function Vn(C,te){Ci(19,C.pos,en,C);const it=te||ha(C)&1?768:129;Co(C,C.statements,it),Ci(20,C.statements.end,en,C,!!(it&1))}function Ln(C){_f(C,C.modifiers,!1),Be(C.declarationList),Dl()}function ji(C){C?en(";"):Dl()}function fa(C){Dt(C.expression,yr.parenthesizeExpressionOfExpressionStatement),(!F||!gp(F)||xo(C.expression))&&Dl()}function pa(C){const te=Ci(101,C.pos,Oi,C);$r(),Ci(21,te,en,C),Dt(C.expression),Ci(22,C.expression.end,en,C),Fg(C,C.thenStatement),C.elseStatement&&(bh(C,C.thenStatement,C.elseStatement),Ci(93,C.thenStatement.end,Oi,C),C.elseStatement.kind===245?($r(),Be(C.elseStatement)):Fg(C,C.elseStatement))}function lc(C,te){const it=Ci(117,te,Oi,C);$r(),Ci(21,it,en,C),Dt(C.expression),Ci(22,C.expression.end,en,C)}function Rl(C){Ci(92,C.pos,Oi,C),Fg(C,C.statement),Cs(C.statement)&&!ae?$r():bh(C,C.statement,C.expression),lc(C,C.statement.end),Dl()}function Zc(C){lc(C,C.pos),Fg(C,C.statement)}function G_(C){const te=Ci(99,C.pos,Oi,C);$r();let it=Ci(21,te,en,C);ja(C.initializer),it=Ci(27,C.initializer?C.initializer.end:it,en,C),L2(C.condition),it=Ci(27,C.condition?C.condition.end:it,en,C),L2(C.incrementor),Ci(22,C.incrementor?C.incrementor.end:it,en,C),Fg(C,C.statement)}function p_(C){const te=Ci(99,C.pos,Oi,C);$r(),Ci(21,te,en,C),ja(C.initializer),$r(),Ci(103,C.initializer.end,Oi,C),$r(),Dt(C.expression),Ci(22,C.expression.end,en,C),Fg(C,C.statement)}function Cy(C){const te=Ci(99,C.pos,Oi,C);$r(),ES(C.awaitModifier),Ci(21,te,en,C),ja(C.initializer),$r(),Ci(165,C.initializer.end,Oi,C),$r(),Dt(C.expression),Ci(22,C.expression.end,en,C),Fg(C,C.statement)}function ja(C){C!==void 0&&(C.kind===261?Be(C):Dt(C))}function Zp(C){Ci(88,C.pos,Oi,C),vh(C.label),Dl()}function Kp(C){Ci(83,C.pos,Oi,C),vh(C.label),Dl()}function Ci(C,te,it,Ut,vn){const gi=as(Ut),ti=gi&&gi.kind===Ut.kind,Li=te;if(ti&&F&&(te=ca(F.text,te)),ti&&Ut.pos!==Li){const Gs=vn&&F&&!qf(Li,te,F);Gs&&$m(),Mg(Li),Gs&&nd()}if(!T&&(C===19||C===20)?te=R2(C,te,it,Ut):te=Fy(C,it,te),ti&&Ut.end!==te){const Gs=Ut.kind===294;sd(te,!Gs,Gs)}return te}function ph(C){return C.kind===2||!!C.hasTrailingNewLine}function h0(C){if(!F)return!1;const te=_g(F.text,C.pos);if(te){const it=as(C);if(it&&l_(it.parent))return!0}return ct(te,ph)||ct(OC(C),ph)?!0:EO(C)?C.pos!==C.expression.pos&&ct(m1(F.text,C.expression.pos),ph)?!0:h0(C.expression):!1}function ed(C){if(!Rt&&EO(C)&&h0(C)){const te=as(C);if(te&&l_(te)){const it=I.createParenthesizedExpression(C.expression);return dn(it,C),Ke(it,te),it}return I.createParenthesizedExpression(C)}return C}function w2(C){return ed(yr.parenthesizeExpressionForDisallowedComma(C))}function A2(C){Ci(107,C.pos,Oi,C),L2(C.expression&&ed(C.expression),ed),Dl()}function Ff(C){const te=Ci(118,C.pos,Oi,C);$r(),Ci(21,te,en,C),Dt(C.expression),Ci(22,C.expression.end,en,C),Fg(C,C.statement)}function om(C){const te=Ci(109,C.pos,Oi,C);$r(),Ci(21,te,en,C),Dt(C.expression),Ci(22,C.expression.end,en,C),$r(),Be(C.caseBlock)}function Of(C){Be(C.label),Ci(59,C.label.end,en,C),$r(),Be(C.statement)}function dh(C){Ci(111,C.pos,Oi,C),L2(ed(C.expression),ed),Dl()}function Ae(C){Ci(113,C.pos,Oi,C),$r(),Be(C.tryBlock),C.catchClause&&(bh(C,C.tryBlock,C.catchClause),Be(C.catchClause)),C.finallyBlock&&(bh(C,C.catchClause||C.tryBlock,C.finallyBlock),Ci(98,(C.catchClause||C.tryBlock).end,Oi,C),$r(),Be(C.finallyBlock))}function We(C){R2(89,C.pos,Oi),Dl()}function bt(C){var te,it,Ut;Be(C.name),Be(C.exclamationToken),Ap(C.type),Ny(C.initializer,((te=C.type)==null?void 0:te.end)??((Ut=(it=C.name.emitNode)==null?void 0:it.typeNode)==null?void 0:Ut.end)??C.name.end,C,yr.parenthesizeExpressionForDisallowedComma)}function Nt(C){if(d8(C))Oi("await"),$r(),Oi("using");else{const te=g5(C)?"let":tC(C)?"const":m8(C)?"using":"var";Oi(te)}$r(),Co(C,C.declarations,528)}function sr(C){Mr(C)}function Mr(C){_f(C,C.modifiers,!1),Oi("function"),Be(C.asteriskToken),$r(),nt(C.name),rr(C,Rr)}function rr(C,te){const it=C.body;if(it)if(Cs(it)){const Ut=ha(C)&131072;Ut&&$m(),$l(C),er(C.parameters,wl),wl(C.body),te(C),Gr(it),D_(C),Ut&&nd()}else te(C),$r(),Dt(it,yr.parenthesizeConciseBodyOfArrowFunction);else te(C),Dl()}function Rr(C){cm(C,C.typeParameters),T0(C,C.parameters),Ap(C.type)}function Yn(C){if(ha(C)&1)return!0;if(C.multiLine||!xo(C)&&F&&!jb(C,F)||Lg(C,bl(C.statements),2)||ik(C,Po(C.statements),2,C.statements))return!1;let te;for(const it of C.statements){if(Oy(te,it,2)>0)return!1;te=it}return!0}function Gr(C){c==null||c(C),$r(),en("{"),$m();const te=Yn(C)?zn:Yr;un(C,C.statements,te),nd(),R2(20,C.statements.end,en,C),u==null||u(C)}function zn(C){Yr(C,!0)}function Yr(C,te){const it=m_(C.statements),Ut=fe.getTextPos();Jt(C),it===0&&Ut===fe.getTextPos()&&te?(nd(),Co(C,C.statements,768),$m()):Co(C,C.statements,1,void 0,it)}function ws(C){Ta(C)}function Ta(C){rp(0,void 0),er(C.members,sk),_f(C,C.modifiers,!0),Ci(86,Xd(C).pos,Oi,C),C.name&&($r(),nt(C.name));const te=ha(C)&131072;te&&$m(),cm(C,C.typeParameters),Co(C,C.heritageClauses,0),$r(),en("{"),Co(C,C.members,129),en("}"),te&&nd(),Ly()}function ku(C){rp(0,void 0),_f(C,C.modifiers,!1),Oi("interface"),$r(),Be(C.name),cm(C,C.typeParameters),Co(C,C.heritageClauses,512),$r(),en("{"),Co(C,C.members,129),en("}"),Ly()}function jl(C){_f(C,C.modifiers,!1),Oi("type"),$r(),Be(C.name),cm(C,C.typeParameters),$r(),en("="),$r(),Be(C.type),Dl()}function mh(C){_f(C,C.modifiers,!1),Oi("enum"),$r(),Be(C.name),$r(),en("{"),Co(C,C.members,145),en("}")}function Z1(C){_f(C,C.modifiers,!1),~C.flags&2048&&(Oi(C.flags&32?"namespace":"module"),$r()),Be(C.name);let te=C.body;if(!te)return Dl();for(;te&&Sc(te);)en("."),Be(te.name),te=te.body;$r(),Be(te)}function qx(C){$l(C),er(C.statements,wl),Vn(C,FS(C)),D_(C)}function K1(C){Ci(19,C.pos,en,C),Co(C,C.clauses,129),Ci(20,C.clauses.end,en,C,!0)}function V6(C){_f(C,C.modifiers,!1),Ci(102,C.modifiers?C.modifiers.end:C.pos,Oi,C),$r(),C.isTypeOnly&&(Ci(156,C.pos,Oi,C),$r()),Be(C.name),$r(),Ci(64,C.name.end,en,C),$r(),U6(C.moduleReference),Dl()}function U6(C){C.kind===80?Dt(C):Be(C)}function q6(C){_f(C,C.modifiers,!1),Ci(102,C.modifiers?C.modifiers.end:C.pos,Oi,C),$r(),C.importClause&&(Be(C.importClause),$r(),Ci(161,C.importClause.end,Oi,C),$r()),Dt(C.moduleSpecifier),C.attributes&&vh(C.attributes),Dl()}function yS(C){C.isTypeOnly&&(Ci(156,C.pos,Oi,C),$r()),Be(C.name),C.name&&C.namedBindings&&(Ci(28,C.name.end,en,C),$r()),Be(C.namedBindings)}function N2(C){const te=Ci(42,C.pos,en,C);$r(),Ci(130,te,Oi,C),$r(),Be(C.name)}function Hx(C){Py(C)}function H6(C){Ng(C)}function Gx(C){const te=Ci(95,C.pos,Oi,C);$r(),C.isExportEquals?Ci(64,te,Lf,C):Ci(90,te,Oi,C),$r(),Dt(C.expression,C.isExportEquals?yr.getParenthesizeRightSideOfBinaryForOperator(64):yr.parenthesizeExpressionOfExportDefault),Dl()}function $x(C){_f(C,C.modifiers,!1);let te=Ci(95,C.pos,Oi,C);if($r(),C.isTypeOnly&&(te=Ci(156,te,Oi,C),$r()),C.exportClause?Be(C.exportClause):te=Ci(42,te,en,C),C.moduleSpecifier){$r();const it=C.exportClause?C.exportClause.end:te;Ci(161,it,Oi,C),$r(),Dt(C.moduleSpecifier)}C.attributes&&vh(C.attributes),Dl()}function Xx(C){en("{"),$r(),Oi(C.token===132?"assert":"with"),en(":"),$r();const te=C.elements;Co(C,te,526226),$r(),en("}")}function Qx(C){Ci(C.token,C.pos,Oi,C),$r();const te=C.elements;Co(C,te,526226)}function vS(C){Be(C.name),en(":"),$r();const te=C.value;if(!(ha(te)&1024)){const it=Yd(te);sd(it.pos)}Be(te)}function Yx(C){let te=Ci(95,C.pos,Oi,C);$r(),te=Ci(130,te,Oi,C),$r(),te=Ci(145,te,Oi,C),$r(),Be(C.name),Dl()}function I2(C){const te=Ci(42,C.pos,en,C);$r(),Ci(130,te,Oi,C),$r(),Be(C.name)}function F2(C){Py(C)}function Ey(C){Ng(C)}function Py(C){en("{"),Co(C,C.elements,525136),en("}")}function Ng(C){C.isTypeOnly&&(Oi("type"),$r()),C.propertyName&&(Be(C.propertyName),$r(),Ci(130,C.propertyName.end,Oi,C),$r()),Be(C.name)}function ev(C){Oi("require"),en("("),Dt(C.expression),en(")")}function wa(C){Be(C.openingElement),Co(C,C.children,262144),Be(C.closingElement)}function bS(C){en("<"),Dy(C.tagName),Og(C,C.typeArguments),$r(),Be(C.attributes),en("/>")}function G6(C){Be(C.openingFragment),Co(C,C.children,262144),Be(C.closingFragment)}function tv(C){if(en("<"),Kd(C)){const te=e4(C.tagName,C);Dy(C.tagName),Og(C,C.typeArguments),C.attributes.properties&&C.attributes.properties.length>0&&$r(),Be(C.attributes),B2(C.attributes,C),av(te)}en(">")}function gh(C){fe.writeLiteral(C.text)}function Hm(C){en("")}function tp(C){Co(C,C.properties,262656)}function d_(C){Be(C.name),td("=",en,C.initializer,ir)}function $_(C){en("{..."),Dt(C.expression),en("}")}function P_(C){let te=!1;return BD((F==null?void 0:F.text)||"",C+1,()=>te=!0),te}function y0(C){let te=!1;return jD((F==null?void 0:F.text)||"",C+1,()=>te=!0),te}function SS(C){return P_(C)||y0(C)}function $6(C){var te;if(C.expression||!Rt&&!xo(C)&&SS(C.pos)){const it=F&&!xo(C)&&Ha(F,C.pos).line!==Ha(F,C.end).line;it&&fe.increaseIndent();const Ut=Ci(19,C.pos,en,C);Be(C.dotDotDotToken),Dt(C.expression),Ci(20,((te=C.expression)==null?void 0:te.end)||Ut,en,C),it&&fe.decreaseIndent()}}function Zx(C){nt(C.namespace),en(":"),nt(C.name)}function Dy(C){C.kind===80?Dt(C):Be(C)}function rv(C){Ci(84,C.pos,Oi,C),$r(),Dt(C.expression,yr.parenthesizeExpressionForDisallowedComma),qc(C,C.statements,C.expression.end)}function Kx(C){const te=Ci(90,C.pos,Oi,C);qc(C,C.statements,te)}function qc(C,te,it){const Ut=te.length===1&&(!F||xo(C)||xo(te[0])||iF(C,te[0],F));let vn=163969;Ut?(R2(59,it,en,C),$r(),vn&=-130):Ci(59,it,en,C),Co(C,te,vn)}function v0(C){$r(),Fy(C.token,Oi),$r(),Co(C,C.types,528)}function ek(C){const te=Ci(85,C.pos,Oi,C);$r(),C.variableDeclaration&&(Ci(21,te,en,C),Be(C.variableDeclaration),Ci(22,C.variableDeclaration.end,en,C),$r()),Be(C.block)}function xd(C){Be(C.name),en(":"),$r();const te=C.initializer;if(!(ha(te)&1024)){const it=Yd(te);sd(it.pos)}Dt(te,yr.parenthesizeExpressionForDisallowedComma)}function TS(C){Be(C.name),C.objectAssignmentInitializer&&($r(),en("="),$r(),Dt(C.objectAssignmentInitializer,yr.parenthesizeExpressionForDisallowedComma))}function Me(C){C.expression&&(Ci(26,C.pos,en,C),Dt(C.expression,yr.parenthesizeExpressionForDisallowedComma))}function kd(C){Be(C.name),Ny(C.initializer,C.name.end,C,yr.parenthesizeExpressionForDisallowedComma)}function Bl(C){if(Oe("/**"),C.comment){const te=$D(C.comment);if(te){const it=te.split(/\r\n?|\n/g);for(const Ut of it)yl(),$r(),en("*"),$r(),Oe(Ut)}}C.tags&&(C.tags.length===1&&C.tags[0].kind===351&&!C.comment?($r(),Be(C.tags[0])):Co(C,C.tags,33)),$r(),Oe("*/")}function nv(C){Dp(C.tagName),hh(C.typeExpression),wp(C.comment)}function tk(C){Dp(C.tagName),Be(C.name),wp(C.comment)}function wy(C){$r(),en("{"),Be(C.name),en("}")}function b0(C){Dp(C.tagName),$r(),en("{"),Be(C.class),en("}"),wp(C.comment)}function S0(C){Dp(C.tagName),hh(C.constraint),$r(),Co(C,C.typeParameters,528),wp(C.comment)}function CP(C){Dp(C.tagName),C.typeExpression&&(C.typeExpression.kind===316?hh(C.typeExpression):($r(),en("{"),Oe("Object"),C.typeExpression.isArrayType&&(en("["),en("]")),en("}"))),C.fullName&&($r(),Be(C.fullName)),wp(C.comment),C.typeExpression&&C.typeExpression.kind===329&&kS(C.typeExpression)}function xa(C){Dp(C.tagName),C.name&&($r(),Be(C.name)),wp(C.comment),iv(C.typeExpression)}function Cd(C){wp(C.comment),iv(C.typeExpression)}function xS(C){Dp(C.tagName),wp(C.comment)}function kS(C){Co(C,I.createNodeArray(C.jsDocPropertyTags),33)}function iv(C){C.typeParameters&&Co(C,I.createNodeArray(C.typeParameters),33),C.parameters&&Co(C,I.createNodeArray(C.parameters),33),C.type&&(yl(),$r(),en("*"),$r(),Be(C.type))}function CS(C){Dp(C.tagName),hh(C.typeExpression),$r(),C.isBracketed&&en("["),Be(C.name),C.isBracketed&&en("]"),wp(C.comment)}function Dp(C){en("@"),Be(C)}function wp(C){const te=$D(C);te&&($r(),Oe(te))}function hh(C){C&&($r(),en("{"),Be(C.type),en("}"))}function rk(C){yl();const te=C.statements;if(te.length===0||!Vp(te[0])||xo(te[0])){un(C,te,wi);return}wi(C)}function Ed(C){O2(!!C.hasNoDefaultLib,C.syntheticFileReferences||[],C.syntheticTypeReferences||[],C.syntheticLibReferences||[]);for(const te of C.prepends)if(Qb(te)&&te.syntheticReferences)for(const it of te.syntheticReferences)Be(it),yl()}function X6(C){C.isDeclarationFile&&O2(C.hasNoDefaultLib,C.referencedFiles,C.typeReferenceDirectives,C.libReferenceDirectives)}function O2(C,te,it,Ut){if(C){const vn=fe.getTextPos();lm('/// '),be&&be.sections.push({pos:vn,end:fe.getTextPos(),kind:"no-default-lib"}),yl()}if(F&&F.moduleName&&(lm(`/// `),yl()),F&&F.amdDependencies)for(const vn of F.amdDependencies)vn.name?lm(`/// `):lm(`/// `),yl();for(const vn of te){const gi=fe.getTextPos();lm(`/// `),be&&be.sections.push({pos:gi,end:fe.getTextPos(),kind:"reference",data:vn.fileName}),yl()}for(const vn of it){const gi=fe.getTextPos(),ti=vn.resolutionMode&&vn.resolutionMode!==(F==null?void 0:F.impliedNodeFormat)?`resolution-mode="${vn.resolutionMode===99?"import":"require"}"`:"";lm(`/// `),be&&be.sections.push({pos:gi,end:fe.getTextPos(),kind:vn.resolutionMode?vn.resolutionMode===99?"type-import":"type-require":"type",data:vn.fileName}),yl()}for(const vn of Ut){const gi=fe.getTextPos();lm(`/// `),be&&be.sections.push({pos:gi,end:fe.getTextPos(),kind:"lib",data:vn.fileName}),yl()}}function wi(C){const te=C.statements;$l(C),er(C.statements,wl),Jt(C);const it=vc(te,Ut=>!Vp(Ut));X6(C),Co(C,te,1,void 0,it===-1?te.length:it),D_(C)}function jn(C){const te=ha(C);!(te&1024)&&C.pos!==C.expression.pos&&sd(C.expression.pos),Dt(C.expression),!(te&2048)&&C.end!==C.expression.end&&Mg(C.expression.end)}function Gm(C){M2(C,C.elements,528,void 0)}function m_(C,te,it,Ut){let vn=!!te;for(let gi=0;gi=it.length||ti===0;if(Gs&&Ut&32768){f==null||f(it),g==null||g(it);return}Ut&15360&&(en(CRe(Ut)),Gs&&it&&sd(it.pos,!0)),f==null||f(it),Gs?Ut&1&&!(ae&&(!te||F&&jb(te,F)))?yl():Ut&256&&!(Ut&524288)&&$r():rd(C,te,it,Ut,vn,gi,ti,it.hasTrailingComma,it),g==null||g(it),Ut&15360&&(Gs&&it&&Mg(it.end),en(ERe(Ut)))}function rd(C,te,it,Ut,vn,gi,ti,Li,Gs){const Cu=(Ut&262144)===0;let t_=Cu;const ip=Lg(te,it[gi],Ut);ip?(yl(ip),t_=!1):Ut&256&&$r(),Ut&128&&$m();const By=ARe(C,vn);let ni,Ym,Ar=!1;for(let H2=0;H20){if(Ut&131||($m(),Ar=!0),t_&&Ut&60&&!gd(_m.pos)){const c4=Yd(_m);sd(c4.pos,!!(Ut&512),!0)}yl(Zm),t_=!1}else ni&&Ut&512&&$r()}if(Ym=_a(_m),t_){const Zm=Yd(_m);sd(Zm.pos)}else t_=Cu;K=_m.pos,By(_m,C,vn,H2),Ar&&(nd(),Ar=!1),ni=_m}const _k=ni?ha(ni):0,Jy=Rt||!!(_k&2048),zy=Li&&Ut&64&&Ut&16;zy&&(ni&&!Jy?Ci(28,ni.end,en,ni):en(",")),ni&&(te?te.end:-1)!==ni.end&&Ut&60&&!Jy&&Mg(zy&&(Gs!=null&&Gs.end)?Gs.end:ni.end),Ut&128&&nd(),cr(Ym);const WS=ik(te,it[gi+ti-1],Ut,Gs);WS?yl(WS):Ut&2097408&&$r()}function Iy(C){fe.writeLiteral(C)}function K6(C){fe.writeStringLiteral(C)}function wS(C){fe.write(C)}function DP(C,te){fe.writeSymbol(C,te)}function en(C){fe.writePunctuation(C)}function Dl(){fe.writeTrailingSemicolon(";")}function Oi(C){fe.writeKeyword(C)}function Lf(C){fe.writeOperator(C)}function x0(C){fe.writeParameter(C)}function lm(C){fe.writeComment(C)}function $r(){fe.writeSpace(" ")}function AS(C){fe.writeProperty(C)}function sv(C){fe.nonEscapingWrite?fe.nonEscapingWrite(C):fe.write(C)}function yl(C=1){for(let te=0;te0)}function $m(){fe.increaseIndent()}function nd(){fe.decreaseIndent()}function R2(C,te,it,Ut){return Fe?Fy(C,it,te):q2(Ut,C,it,te,Fy)}function j2(C,te){d&&d(C),te(Ws(C.kind)),y&&y(C)}function Fy(C,te,it){const Ut=Ws(C);return te(Ut),it<0?it:it+Ut.length}function bh(C,te,it){if(ha(C)&1)$r();else if(ae){const Ut=ff(C,te,it);Ut?yl(Ut):$r()}else yl()}function NS(C){const te=C.split(/\r\n?|\n/g),it=hte(te);for(const Ut of te){const vn=it?Ut.slice(it):Ut;vn.length&&(yl(),Oe(vn))}}function id(C,te){C?($m(),yl(C)):te&&$r()}function av(C,te){C&&nd(),te&&nd()}function Lg(C,te,it){if(it&2||ae){if(it&65536)return 1;if(te===void 0)return!C||F&&jb(C,F)?0:1;if(te.pos===K||te.kind===12)return 0;if(F&&C&&!gd(C.pos)&&!xo(te)&&(!te.parent||ic(te.parent)===ic(C)))return ae?ov(Ut=>Wre(te.pos,C.pos,F,Ut)):iF(C,te,F)?0:1;if(IS(te,it))return 1}return it&1?1:0}function Oy(C,te,it){if(it&2||ae){if(C===void 0||te===void 0||te.kind===12)return 0;if(F&&!xo(C)&&!xo(te))return ae&&e_(C,te)?ov(Ut=>xW(C,te,F,Ut)):!ae&&Mf(C,te)?Z8(C,te,F)?0:1:it&65536?1:0;if(IS(C,it)||IS(te,it))return 1}else if(a3(te))return 1;return it&1?1:0}function ik(C,te,it,Ut){if(it&2||ae){if(it&65536)return 1;if(te===void 0)return!C||F&&jb(C,F)?0:1;if(F&&C&&!gd(C.pos)&&!xo(te)&&(!te.parent||te.parent===C)){if(ae){const vn=Ut&&!gd(Ut.end)?Ut.end:te.end;return ov(gi=>Vre(vn,C.end,F,gi))}return Bre(C,te,F)?0:1}if(IS(te,it))return 1}return it&1&&!(it&131072)?1:0}function ov(C){E.assert(!!ae);const te=C(!0);return te===0?C(!1):te}function e4(C,te){const it=ae&&Lg(te,C,0);return it&&id(it,!1),!!it}function B2(C,te){const it=ae&&ik(te,C,0,void 0);it&&yl(it)}function IS(C,te){if(xo(C)){const it=a3(C);return it===void 0?(te&65536)!==0:it}return(te&65536)!==0}function ff(C,te,it){return ha(C)&262144?0:(C=mc(C),te=mc(te),it=mc(it),a3(it)?1:F&&!xo(C)&&!xo(te)&&!xo(it)?ae?ov(Ut=>xW(te,it,F,Ut)):Z8(te,it,F)?0:1:0)}function FS(C){return C.statements.length===0&&(!F||Z8(C,C,F))}function mc(C){for(;C.kind===217&&xo(C);)C=C.expression;return C}function cl(C,te){if(Fo(C)||vb(C))return LS(C);if(aa(C)&&C.textSourceNode)return cl(C.textSourceNode,te);const it=F,Ut=!!it&&!!C.parent&&!xo(C);if(pg(C)){if(!Ut||wr(C)!==ic(it))return on(C)}else if(yd(C)){if(!Ut||wr(C)!==ic(it))return r3(C)}else if(E.assertNode(C,Rv),!Ut)return C.text;return Bv(it,C,te)}function OS(C,te,it){if(C.kind===11&&C.textSourceNode){const vn=C.textSourceNode;if(Ie(vn)||Pi(vn)||j_(vn)||yd(vn)){const gi=j_(vn)?vn.text:cl(vn);return it?`"${cW(gi)}"`:te||ha(C)&16777216?`"${bg(gi)}"`:`"${H8(gi)}"`}else return OS(vn,te,it)}const Ut=(te?1:0)|(it?2:0)|(e.terminateUnterminatedLiterals?4:0)|(e.target&&e.target>=8?8:0);return Dte(C,F,Ut)}function $l(C){C&&ha(C)&1048576||(pe.push(H),H=0,re.push(R),R=void 0,q.push(ee))}function D_(C){C&&ha(C)&1048576||(H=pe.pop(),R=re.pop(),ee=q.pop())}function cv(C){(!ee||ee===Po(q))&&(ee=new Set),ee.add(C)}function rp(C,te){Y.push(ue),ue=C,oe.push(ee),Se=te}function Ly(){ue=Y.pop(),Se=oe.pop()}function My(C){(!Se||Se===Po(oe))&&(Se=new Set),Se.add(C)}function wl(C){if(C)switch(C.kind){case 241:er(C.statements,wl);break;case 256:case 254:case 246:case 247:wl(C.statement);break;case 245:wl(C.thenStatement),wl(C.elseStatement);break;case 248:case 250:case 249:wl(C.initializer),wl(C.statement);break;case 255:wl(C.caseBlock);break;case 269:er(C.clauses,wl);break;case 296:case 297:er(C.statements,wl);break;case 258:wl(C.tryBlock),wl(C.catchClause),wl(C.finallyBlock);break;case 299:wl(C.variableDeclaration),wl(C.block);break;case 243:wl(C.declarationList);break;case 261:er(C.declarations,wl);break;case 260:case 169:case 208:case 263:pf(C.name);break;case 262:pf(C.name),ha(C)&1048576&&(er(C.parameters,wl),wl(C.body));break;case 206:case 207:er(C.elements,wl);break;case 272:wl(C.importClause);break;case 273:pf(C.name),wl(C.namedBindings);break;case 274:pf(C.name);break;case 280:pf(C.name);break;case 275:er(C.elements,wl);break;case 276:pf(C.propertyName||C.name);break}}function sk(C){if(C)switch(C.kind){case 303:case 304:case 172:case 174:case 177:case 178:pf(C.name);break}}function pf(C){C&&(Fo(C)||vb(C)?LS(C):Ns(C)&&wl(C))}function LS(C){const te=C.emitNode.autoGenerate;if((te.flags&7)===4)return MS(Vw(C),Pi(C),te.flags,te.prefix,te.suffix);{const it=te.id;return $[it]||($[it]=r4(C))}}function MS(C,te,it,Ut,vn){const gi=Oa(C),ti=te?U:J;return ti[gi]||(ti[gi]=RS(C,te,it??0,XC(Ut,LS),XC(vn)))}function yo(C,te){return lv(C)&&!t4(C,te)&&!j.has(C)}function t4(C,te){return te?!!(Se!=null&&Se.has(C)):!!(ee!=null&&ee.has(C))}function lv(C,te){return F?l5(F,C,n):!0}function J2(C,te){for(let it=te;it&&Hv(it,te);it=it.nextContainer)if(Dm(it)&&it.locals){const Ut=it.locals.get(Wo(C));if(Ut&&Ut.flags&3257279)return!1}return!0}function wP(C){switch(C){case"":return H;case"#":return ue;default:return(R==null?void 0:R.get(C))??0}}function zu(C,te){switch(C){case"":H=te;break;case"#":ue=te;break;default:R??(R=new Map),R.set(C,te);break}}function Sh(C,te,it,Ut,vn){Ut.length>0&&Ut.charCodeAt(0)===35&&(Ut=Ut.slice(1));const gi=j1(it,Ut,"",vn);let ti=wP(gi);if(C&&!(ti&C)){const Gs=j1(it,Ut,C===268435456?"_i":"_n",vn);if(yo(Gs,it))return ti|=C,it?My(Gs):te&&cv(Gs),zu(gi,ti),Gs}for(;;){const Li=ti&268435455;if(ti++,Li!==8&&Li!==13){const Gs=Li<26?"_"+String.fromCharCode(97+Li):"_"+(Li-26),Cu=j1(it,Ut,Gs,vn);if(yo(Cu,it))return it?My(Cu):te&&cv(Cu),zu(gi,ti),Cu}}}function um(C,te=yo,it,Ut,vn,gi,ti){if(C.length>0&&C.charCodeAt(0)===35&&(C=C.slice(1)),gi.length>0&&gi.charCodeAt(0)===35&&(gi=gi.slice(1)),it){const Gs=j1(vn,gi,C,ti);if(te(Gs,vn))return vn?My(Gs):Ut?cv(Gs):j.add(Gs),Gs}C.charCodeAt(C.length-1)!==95&&(C+="_");let Li=1;for(;;){const Gs=j1(vn,gi,C+Li,ti);if(te(Gs,vn))return vn?My(Gs):Ut?cv(Gs):j.add(Gs),Gs;Li++}}function ak(C){return um(C,lv,!0,!1,!1,"","")}function X_(C){const te=cl(C.name);return J2(te,Wn(C,Dm))?te:um(te,yo,!1,!1,!1,"","")}function ok(C){const te=uC(C),it=aa(te)?Ate(te.text):"module";return um(it,yo,!1,!1,!1,"","")}function w_(){return um("default",yo,!1,!1,!1,"","")}function ck(){return um("class",yo,!1,!1,!1,"","")}function k0(C,te,it,Ut){return Ie(C.name)?MS(C.name,te):Sh(0,!1,te,it,Ut)}function RS(C,te,it,Ut,vn){switch(C.kind){case 80:case 81:return um(cl(C),yo,!!(it&16),!!(it&8),te,Ut,vn);case 267:case 266:return E.assert(!Ut&&!vn&&!te),X_(C);case 272:case 278:return E.assert(!Ut&&!vn&&!te),ok(C);case 262:case 263:{E.assert(!Ut&&!vn&&!te);const gi=C.name;return gi&&!Fo(gi)?RS(gi,!1,it,Ut,vn):w_()}case 277:return E.assert(!Ut&&!vn&&!te),w_();case 231:return E.assert(!Ut&&!vn&&!te),ck();case 174:case 177:case 178:return k0(C,te,Ut,vn);case 167:return Sh(0,!0,te,Ut,vn);default:return Sh(0,!1,te,Ut,vn)}}function r4(C){const te=C.emitNode.autoGenerate,it=XC(te.prefix,LS),Ut=XC(te.suffix);switch(te.flags&7){case 1:return Sh(0,!!(te.flags&8),Pi(C),it,Ut);case 2:return E.assertNode(C,Ie),Sh(268435456,!!(te.flags&8),!1,it,Ut);case 3:return um(on(C),te.flags&32?lv:yo,!!(te.flags&16),!!(te.flags&8),Pi(C),it,Ut)}return E.fail(`Unsupported GeneratedIdentifierKind: ${E.formatEnum(te.flags&7,h7,!0)}.`)}function n4(C,te){const it=le(2,C,te),Ut=zt,vn=Vt,gi=hr;jS(te),it(C,te),i4(te,Ut,vn,gi)}function jS(C){const te=ha(C),it=Yd(C);Ry(C,te,it.pos,it.end),te&4096&&(Rt=!0)}function i4(C,te,it,Ut){const vn=ha(C),gi=Yd(C);vn&4096&&(Rt=!1),Q_(C,vn,gi.pos,gi.end,te,it,Ut);const ti=zne(C);ti&&Q_(C,vn,ti.pos,ti.end,te,it,Ut)}function Ry(C,te,it,Ut){yi(),jt=!1;const vn=it<0||(te&1024)!==0||C.kind===12,gi=Ut<0||(te&2048)!==0||C.kind===12;(it>0||Ut>0)&&it!==Ut&&(vn||z2(it,C.kind!==359),(!vn||it>=0&&te&1024)&&(zt=it),(!gi||Ut>=0&&te&2048)&&(Vt=Ut,C.kind===261&&(hr=Ut))),er(OC(C),Xm),os()}function Q_(C,te,it,Ut,vn,gi,ti){yi();const Li=Ut<0||(te&2048)!==0||C.kind===12;er(Sw(C),s4),(it>0||Ut>0)&&it!==Ut&&(zt=vn,Vt=gi,hr=ti,!Li&&C.kind!==359&&Pd(Ut)),os()}function Xm(C){(C.hasLeadingNewline||C.kind===2)&&fe.writeLine(),BS(C),C.hasTrailingNewLine||C.kind===2?fe.writeLine():fe.writeSpace(" ")}function s4(C){fe.isAtStartOfLine()||fe.writeSpace(" "),BS(C),C.hasTrailingNewLine&&fe.writeLine()}function BS(C){const te=Na(C),it=C.kind===3?ET(te):void 0;TC(te,it,fe,0,te.length,k)}function Na(C){return C.kind===3?`/*${C.text}*/`:`//${C.text}`}function un(C,te,it){yi();const{pos:Ut,end:vn}=te,gi=ha(C),ti=Ut<0||(gi&1024)!==0,Li=Rt||vn<0||(gi&2048)!==0;ti||np(te),os(),gi&4096&&!Rt?(Rt=!0,it(C),Rt=!1):it(C),yi(),Li||(z2(te.end,!0),jt&&!fe.isAtStartOfLine()&&fe.writeLine()),os()}function Mf(C,te){return C=ic(C),C.parent&&C.parent===ic(te).parent}function e_(C,te){if(te.pos-1&&Ut.indexOf(te)===vn+1}function z2(C,te){jt=!1,te?C===0&&(F!=null&&F.isDeclarationFile)?jg(C,uv):jg(C,JS):C===0&&jg(C,a4)}function a4(C,te,it,Ut,vn){jf(C,te)&&JS(C,te,it,Ut,vn)}function uv(C,te,it,Ut,vn){jf(C,te)||JS(C,te,it,Ut,vn)}function W2(C,te){return e.onlyPrintJsDocStyle?eU(C,te)||u5(C,te):!0}function JS(C,te,it,Ut,vn){!F||!W2(F.text,C)||(jt||(kre(mt(),fe,vn,C),jt=!0),so(C),TC(F.text,mt(),fe,C,te,k),so(te),Ut?fe.writeLine():it===3&&fe.writeSpace(" "))}function Mg(C){Rt||C===-1||z2(C,!0)}function Pd(C){lk(C,Rf)}function Rf(C,te,it,Ut){!F||!W2(F.text,C)||(fe.isAtStartOfLine()||fe.writeSpace(" "),so(C),TC(F.text,mt(),fe,C,te,k),so(te),Ut&&fe.writeLine())}function sd(C,te,it){Rt||(yi(),lk(C,te?Rf:it?Th:Rg),os())}function Th(C,te,it){F&&(so(C),TC(F.text,mt(),fe,C,te,k),so(te),it===2&&fe.writeLine())}function Rg(C,te,it,Ut){F&&(so(C),TC(F.text,mt(),fe,C,te,k),so(te),Ut?fe.writeLine():fe.writeSpace(" "))}function jg(C,te){F&&(zt===-1||C!==zt)&&(Oc(C)?o4(te):jD(F.text,C,te,C))}function lk(C,te){F&&(Vt===-1||C!==Vt&&C!==hr)&&BD(F.text,C,te)}function Oc(C){return tr!==void 0&&ka(tr).nodePos===C}function o4(C){if(!F)return;const te=ka(tr).detachedCommentEndPos;tr.length-1?tr.pop():tr=void 0,jD(F.text,te,C,te)}function np(C){const te=F&&Ere(F.text,mt(),fe,Qm,C,k,Rt);te&&(tr?tr.push(te):tr=[te])}function Qm(C,te,it,Ut,vn,gi){!F||!W2(F.text,Ut)||(so(Ut),TC(C,te,it,Ut,vn,gi),so(vn))}function jf(C,te){return!!F&&hz(F.text,C,te)}function V2(C){return C.parsedSourceMap===void 0&&C.sourceMapText!==void 0&&(C.parsedSourceMap=ZU(C.sourceMapText)||!1),C.parsedSourceMap||void 0}function _v(C,te){const it=le(3,C,te);uk(te),it(C,te),zS(te)}function uk(C){const te=ha(C),it=n0(C);if(ZJ(C)){E.assertIsDefined(C.parent,"UnparsedNodes must have parent pointers");const Ut=V2(C.parent);Ut&&$e&&$e.appendSourceMap(fe.getLine(),fe.getColumn(),Ut,C.parent.sourceMapPath,C.parent.getLineAndCharacterOfPosition(C.pos),C.parent.getLineAndCharacterOfPosition(C.end))}else{const Ut=it.source||Pt;C.kind!==359&&!(te&32)&&it.pos>=0&&U2(it.source||Pt,Bf(Ut,it.pos)),te&128&&(Fe=!0)}}function zS(C){const te=ha(C),it=n0(C);ZJ(C)||(te&128&&(Fe=!1),C.kind!==359&&!(te&64)&&it.end>=0&&U2(it.source||Pt,it.end))}function Bf(C,te){return C.skipTrivia?C.skipTrivia(te):ca(C.text,te)}function so(C){if(Fe||gd(C)||fv(Pt))return;const{line:te,character:it}=Ha(Pt,C);$e.addMapping(fe.getLine(),fe.getColumn(),at,te,it,void 0)}function U2(C,te){if(C!==Pt){const it=Pt,Ut=at;xh(C),so(te),jy(it,Ut)}else so(te)}function q2(C,te,it,Ut,vn){if(Fe||C&&A5(C))return vn(te,it,Ut);const gi=C&&C.emitNode,ti=gi&&gi.flags||0,Li=gi&&gi.tokenSourceMapRanges&&gi.tokenSourceMapRanges[te],Gs=Li&&Li.source||Pt;return Ut=Bf(Gs,Li?Li.pos:Ut),!(ti&256)&&Ut>=0&&U2(Gs,Ut),Ut=vn(te,it,Ut),Li&&(Ut=Li.end),!(ti&512)&&Ut>=0&&U2(Gs,Ut),Ut}function xh(C){if(!Fe){if(Pt=C,C===Je){at=pt;return}fv(C)||(at=$e.addSource(C.fileName),e.inlineSources&&$e.setSourceContent(at,C.text),Je=C,pt=at)}}function jy(C,te){Pt=C,at=te}function fv(C){return Zo(C.fileName,".json")}}function kRe(){const e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}function CRe(e){return wae[e&15360][0]}function ERe(e){return wae[e&15360][1]}function PRe(e,t,n,i){t(e)}function DRe(e,t,n,i){t(e,n.select(i))}function wRe(e,t,n,i){t(e,n)}function ARe(e,t){return e.length===1?PRe:typeof t=="object"?DRe:wRe}var wae,R9,Tq,b2,xq,SA,NRe=wt({"src/compiler/emitter.ts"(){Fs(),Fs(),mb(),wae=kRe(),R9={hasGlobalName:ks,getReferencedExportContainer:ks,getReferencedImportDeclaration:ks,getReferencedDeclarationWithCollidingName:ks,isDeclarationWithCollidingName:ks,isValueAliasDeclaration:ks,isReferencedAliasDeclaration:ks,isTopLevelValueImportEqualsWithEntityName:ks,getNodeCheckFlags:ks,isDeclarationVisible:ks,isLateBound:e=>!1,collectLinkedAliases:ks,isImplementationOfOverload:ks,isRequiredInitializedParameter:ks,isOptionalUninitializedParameterProperty:ks,isExpandoFunctionDeclaration:ks,getPropertiesOfContainerFunction:ks,createTypeOfDeclaration:ks,createReturnTypeOfSignatureDeclaration:ks,createTypeOfExpression:ks,createLiteralConstValue:ks,isSymbolAccessible:ks,isEntityNameVisible:ks,getConstantValue:ks,getReferencedValueDeclaration:ks,getReferencedValueDeclarations:ks,getTypeReferenceSerializationKind:ks,isOptionalParameter:ks,moduleExportsSomeValue:ks,isArgumentsLocalBinding:ks,getExternalModuleFileFromDeclaration:ks,getTypeReferenceDirectivesForEntityName:ks,getTypeReferenceDirectivesForSymbol:ks,isLiteralConstDeclaration:ks,getJsxFactoryEntity:ks,getJsxFragmentFactoryEntity:ks,getAllAccessorDeclarations:ks,getSymbolOfExternalModuleSpecifier:ks,isBindingCapturedByNode:ks,getDeclarationStatementsForSourceFile:ks,isImportRequiredByAugmentation:ks,tryFindAmbientModule:ks},Tq=Hu(()=>V1({})),b2=Hu(()=>V1({removeComments:!0})),xq=Hu(()=>V1({removeComments:!0,neverAsciiEscape:!0})),SA=Hu(()=>V1({removeComments:!0,omitTrailingSemicolon:!0}))}});function j9(e,t,n){if(!e.getDirectories||!e.readDirectory)return;const i=new Map,s=nu(n);return{useCaseSensitiveFileNames:n,fileExists:T,readFile:(R,Y)=>e.readFile(R,Y),directoryExists:e.directoryExists&&k,getDirectories:P,readDirectory:F,createDirectory:e.createDirectory&&w,writeFile:e.writeFile&&S,addOrDeleteFileOrDirectory:U,addOrDeleteFile:$,clearCache:re,realpath:e.realpath&&J};function o(R){return No(R,t,s)}function c(R){return i.get(ul(R))}function u(R){const Y=c(Un(R));return Y&&(Y.sortedAndCanonicalizedFiles||(Y.sortedAndCanonicalizedFiles=Y.files.map(s).sort(),Y.sortedAndCanonicalizedDirectories=Y.directories.map(s).sort()),Y)}function f(R){return wc(Hs(R))}function g(R,Y){var ue;if(!e.realpath||ul(o(e.realpath(R)))===Y){const pe={files:nr(e.readDirectory(R,void 0,void 0,["*.*"]),f)||[],directories:e.getDirectories(R)||[]};return i.set(ul(Y),pe),pe}if((ue=e.directoryExists)!=null&&ue.call(e,R))return i.set(Y,!1),!1}function d(R,Y){Y=ul(Y);const ue=c(Y);if(ue)return ue;try{return g(R,Y)}catch{E.assert(!i.has(ul(Y)));return}}function y(R,Y){return Jh(R,Y,Do,mu)>=0}function S(R,Y,ue){const pe=o(R),H=u(pe);return H&&j(H,f(R),!0),e.writeFile(R,Y,ue)}function T(R){const Y=o(R),ue=u(Y);return ue&&y(ue.sortedAndCanonicalizedFiles,s(f(R)))||e.fileExists(R)}function k(R){const Y=o(R);return i.has(ul(Y))||e.directoryExists(R)}function w(R){const Y=o(R),ue=u(Y);if(ue){const pe=f(R),H=s(pe),q=ue.sortedAndCanonicalizedDirectories;B0(q,H,mu)&&ue.directories.push(pe)}e.createDirectory(R)}function P(R){const Y=o(R),ue=d(R,Y);return ue?ue.directories.slice():e.getDirectories(R)}function F(R,Y,ue,pe,H){const q=o(R),ee=d(R,q);let oe;if(ee!==void 0)return LW(R,Y,ue,pe,n,t,H,Se,J);return e.readDirectory(R,Y,ue,pe,H);function Se(K){const fe=o(K);if(fe===q)return ee||ae(K,fe);const ke=d(K,fe);return ke!==void 0?ke||ae(K,fe):jF}function ae(K,fe){if(oe&&fe===q)return oe;const ke={files:nr(e.readDirectory(K,void 0,void 0,["*.*"]),f)||Ve,directories:e.getDirectories(K)||Ve};return fe===q&&(oe=ke),ke}}function J(R){return e.realpath?e.realpath(R):R}function U(R,Y){if(c(Y)!==void 0){re();return}const pe=u(Y);if(!pe)return;if(!e.directoryExists){re();return}const H=f(R),q={fileExists:e.fileExists(R),directoryExists:e.directoryExists(R)};return q.directoryExists||y(pe.sortedAndCanonicalizedDirectories,s(H))?re():j(pe,H,q.fileExists),q}function $(R,Y,ue){if(ue===1)return;const pe=u(Y);pe&&j(pe,f(R),ue===0)}function j(R,Y,ue){const pe=R.sortedAndCanonicalizedFiles,H=s(Y);if(ue)B0(pe,H,mu)&&R.files.push(Y);else{const q=Jh(pe,H,Do,mu);if(q>=0){pe.splice(q,1);const ee=R.files.findIndex(oe=>s(oe)===H);R.files.splice(ee,1)}}}function re(){i.clear()}}function B9(e,t,n,i,s){var o;const c=Iv(((o=t==null?void 0:t.configFile)==null?void 0:o.extendedSourceFiles)||Ve,s);n.forEach((u,f)=>{c.has(f)||(u.projects.delete(e),u.close())}),c.forEach((u,f)=>{const g=n.get(f);g?g.projects.add(e):n.set(f,{projects:new Set([e]),watcher:i(u,f),close:()=>{const d=n.get(f);!d||d.projects.size!==0||(d.watcher.close(),n.delete(f))}})})}function kq(e,t){t.forEach(n=>{n.projects.delete(e)&&n.close()})}function J9(e,t,n){e.delete(t)&&e.forEach(({extendedResult:i},s)=>{var o;(o=i.extendedSourceFiles)!=null&&o.some(c=>n(c)===t)&&J9(e,s,n)})}function Cq(e,t,n){zE(t,e.getMissingFilePaths(),{createNewValue:n,onDeleteValue:md})}function TA(e,t,n){t?zE(e,new Map(Object.entries(t)),{createNewValue:i,onDeleteValue:Qf,onExistingValue:s}):T_(e,Qf);function i(o,c){return{watcher:n(o,c),flags:c}}function s(o,c,u){o.flags!==c&&(o.watcher.close(),e.set(u,i(u,c)))}}function xA({watchedDirPath:e,fileOrDirectory:t,fileOrDirectoryPath:n,configFileName:i,options:s,program:o,extraFileExtensions:c,currentDirectory:u,useCaseSensitiveFileNames:f,writeLog:g,toPath:d,getScriptKind:y}){const S=Z9(n);if(!S)return g(`Project: ${i} Detected ignored path: ${t}`),!0;if(n=S,n===e)return!1;if(kT(n)&&!(une(t,s,c)||F()))return g(`Project: ${i} Detected file add/remove of non supported extension: ${t}`),!0;if(Hie(t,s.configFile.configFileSpecs,Xi(Un(i),u),f,u))return g(`Project: ${i} Detected excluded file: ${t}`),!0;if(!o||no(s)||s.outDir)return!1;if(Hl(n)){if(s.declarationDir)return!1}else if(!Gc(n,FC))return!1;const T=$u(n),k=ts(o)?void 0:IRe(o)?o.getProgramOrUndefined():o,w=!k&&!ts(o)?o:void 0;if(P(T+".ts")||P(T+".tsx"))return g(`Project: ${i} Detected output file: ${t}`),!0;return!1;function P(J){return k?!!k.getSourceFileByPath(J):w?w.getState().fileInfos.has(J):!!wn(o,U=>d(U)===J)}function F(){if(!y)return!1;switch(y(t)){case 3:case 4:case 7:case 5:return!0;case 1:case 2:return cy(s);case 6:return F1(s);case 0:return!1}}}function IRe(e){return!!e.getState}function Aae(e,t){return e?e.isEmittedFile(t):!1}function Eq(e,t,n,i){dee(t===2?n:Ca);const s={watchFile:(w,P,F,J)=>e.watchFile(w,P,F,J),watchDirectory:(w,P,F,J)=>e.watchDirectory(w,P,(F&1)!==0,J)},o=t!==0?{watchFile:T("watchFile"),watchDirectory:T("watchDirectory")}:void 0,c=t===2?{watchFile:y,watchDirectory:S}:o||s,u=t===2?d:d6;return{watchFile:f("watchFile"),watchDirectory:f("watchDirectory")};function f(w){return(P,F,J,U,$,j)=>{var re;return $O(P,w==="watchFile"?U==null?void 0:U.excludeFiles:U==null?void 0:U.excludeDirectories,g(),((re=e.getCurrentDirectory)==null?void 0:re.call(e))||"")?u(P,J,U,$,j):c[w].call(void 0,P,F,J,U,$,j)}}function g(){return typeof e.useCaseSensitiveFileNames=="boolean"?e.useCaseSensitiveFileNames:e.useCaseSensitiveFileNames()}function d(w,P,F,J,U){return n(`ExcludeWatcher:: Added:: ${k(w,P,F,J,U,i)}`),{close:()=>n(`ExcludeWatcher:: Close:: ${k(w,P,F,J,U,i)}`)}}function y(w,P,F,J,U,$){n(`FileWatcher:: Added:: ${k(w,F,J,U,$,i)}`);const j=o.watchFile(w,P,F,J,U,$);return{close:()=>{n(`FileWatcher:: Close:: ${k(w,F,J,U,$,i)}`),j.close()}}}function S(w,P,F,J,U,$){const j=`DirectoryWatcher:: Added:: ${k(w,F,J,U,$,i)}`;n(j);const re=To(),R=o.watchDirectory(w,P,F,J,U,$),Y=To()-re;return n(`Elapsed:: ${Y}ms ${j}`),{close:()=>{const ue=`DirectoryWatcher:: Close:: ${k(w,F,J,U,$,i)}`;n(ue);const pe=To();R.close();const H=To()-pe;n(`Elapsed:: ${H}ms ${ue}`)}}}function T(w){return(P,F,J,U,$,j)=>s[w].call(void 0,P,(...re)=>{const R=`${w==="watchFile"?"FileWatcher":"DirectoryWatcher"}:: Triggered with ${re[0]} ${re[1]!==void 0?re[1]:""}:: ${k(P,J,U,$,j,i)}`;n(R);const Y=To();F.call(void 0,...re);const ue=To()-Y;n(`Elapsed:: ${ue}ms ${R}`)},J,U,$,j)}function k(w,P,F,J,U,$){return`WatchInfo: ${w} ${P} ${JSON.stringify(F)} ${$?$(J,U):U===void 0?J:`${J} ${U}`}`}}function kA(e){const t=e==null?void 0:e.fallbackPolling;return{watchFile:t!==void 0?t:1}}function Qf(e){e.watcher.close()}var Pq,Dq,FRe=wt({"src/compiler/watchUtilities.ts"(){Fs(),Pq=(e=>(e[e.Update=0]="Update",e[e.RootNamesAndUpdate=1]="RootNamesAndUpdate",e[e.Full=2]="Full",e))(Pq||{}),Dq=(e=>(e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose",e))(Dq||{})}});function Nae(e,t,n="tsconfig.json"){return Jp(e,i=>{const s=Mn(i,n);return t(s)?s:void 0})}function z9(e,t){const n=Un(t),i=F_(e)?e:Mn(n,e);return Hs(i)}function Iae(e,t,n){let i;return er(e,o=>{const c=ND(o,t);if(c.pop(),!i){i=c;return}const u=Math.min(i.length,c.length);for(let f=0;f{let c;try{Ao("beforeIORead"),c=e(i,t().charset),Ao("afterIORead"),bf("I/O Read","beforeIORead","afterIORead")}catch(u){o&&o(u.message),c=""}return c!==void 0?Hw(i,c,s,n):void 0}}function Aq(e,t,n){return(i,s,o,c)=>{try{Ao("beforeIOWrite"),fW(i,s,o,e,t,n),Ao("afterIOWrite"),bf("I/O Write","beforeIOWrite","afterIOWrite")}catch(u){c&&c(u.message)}}}function Nq(e,t,n=zl){const i=new Map,s=nu(n.useCaseSensitiveFileNames);function o(d){return i.has(d)?!0:(g.directoryExists||n.directoryExists)(d)?(i.set(d,!0),!0):!1}function c(){return Un(Hs(n.getExecutingFilePath()))}const u=t0(e),f=n.realpath&&(d=>n.realpath(d)),g={getSourceFile:wq(d=>g.readFile(d),()=>e,t),getDefaultLibLocation:c,getDefaultLibFileName:d=>Mn(c(),zD(d)),writeFile:Aq((d,y,S)=>n.writeFile(d,y,S),d=>(g.createDirectory||n.createDirectory)(d),d=>o(d)),getCurrentDirectory:Hu(()=>n.getCurrentDirectory()),useCaseSensitiveFileNames:()=>n.useCaseSensitiveFileNames,getCanonicalFileName:s,getNewLine:()=>u,fileExists:d=>n.fileExists(d),readFile:d=>n.readFile(d),trace:d=>n.write(d+u),directoryExists:d=>n.directoryExists(d),getEnvironmentVariable:d=>n.getEnvironmentVariable?n.getEnvironmentVariable(d):"",getDirectories:d=>n.getDirectories(d),realpath:f,readDirectory:(d,y,S,T,k)=>n.readDirectory(d,y,S,T,k),createDirectory:d=>n.createDirectory(d),createHash:Os(n,n.createHash)};return g}function CA(e,t,n){const i=e.readFile,s=e.fileExists,o=e.directoryExists,c=e.createDirectory,u=e.writeFile,f=new Map,g=new Map,d=new Map,y=new Map,S=w=>{const P=t(w),F=f.get(P);return F!==void 0?F!==!1?F:void 0:T(P,w)},T=(w,P)=>{const F=i.call(e,P);return f.set(w,F!==void 0?F:!1),F};e.readFile=w=>{const P=t(w),F=f.get(P);return F!==void 0?F!==!1?F:void 0:!Zo(w,".json")&&!Eae(w)?i.call(e,w):T(P,w)};const k=n?(w,P,F,J)=>{const U=t(w),$=typeof P=="object"?P.impliedNodeFormat:void 0,j=y.get($),re=j==null?void 0:j.get(U);if(re)return re;const R=n(w,P,F,J);return R&&(Hl(w)||Zo(w,".json"))&&y.set($,(j||new Map).set(U,R)),R}:void 0;return e.fileExists=w=>{const P=t(w),F=g.get(P);if(F!==void 0)return F;const J=s.call(e,w);return g.set(P,!!J),J},u&&(e.writeFile=(w,P,...F)=>{const J=t(w);g.delete(J);const U=f.get(J);U!==void 0&&U!==P?(f.delete(J),y.forEach($=>$.delete(J))):k&&y.forEach($=>{const j=$.get(J);j&&j.text!==P&&$.delete(J)}),u.call(e,w,P,...F)}),o&&(e.directoryExists=w=>{const P=t(w),F=d.get(P);if(F!==void 0)return F;const J=o.call(e,w);return d.set(P,!!J),J},c&&(e.createDirectory=w=>{const P=t(w);d.delete(P),c.call(e,w)})),{originalReadFile:i,originalFileExists:s,originalDirectoryExists:o,originalCreateDirectory:c,originalWriteFile:u,getSourceFileWithCache:k,readFileWithCache:S}}function eSe(e,t,n){let i;return i=Nn(i,e.getConfigFileParsingDiagnostics()),i=Nn(i,e.getOptionsDiagnostics(n)),i=Nn(i,e.getSyntacticDiagnostics(t,n)),i=Nn(i,e.getGlobalDiagnostics(n)),i=Nn(i,e.getSemanticDiagnostics(t,n)),Gf(e.getCompilerOptions())&&(i=Nn(i,e.getDeclarationDiagnostics(t,n))),zk(i||Ve)}function tSe(e,t){let n="";for(const i of e)n+=Iq(i,t);return n}function Iq(e,t){const n=`${gb(e)} TS${e.code}: ${tm(e.messageText,t.getNewLine())}${t.getNewLine()}`;if(e.file){const{line:i,character:s}=Ha(e.file,e.start),o=e.file.fileName;return`${Y4(o,t.getCurrentDirectory(),u=>t.getCanonicalFileName(u))}(${i+1},${s+1}): `+n}return n}function rSe(e){switch(e){case 1:return"\x1B[91m";case 0:return"\x1B[93m";case 2:return E.fail("Should never get an Info diagnostic on the command line.");case 3:return"\x1B[94m"}}function S2(e,t){return t+e+Rae}function nSe(e,t,n,i,s,o){const{line:c,character:u}=Ha(e,t),{line:f,character:g}=Ha(e,t+n),d=Ha(e,e.text.length).line,y=f-c>=4;let S=(f+1+"").length;y&&(S=Math.max(jae.length,S));let T="";for(let k=c;k<=f;k++){T+=o.getNewLine(),y&&c+1n.getCanonicalFileName(f)):e.fileName;let u="";return u+=i(c,"\x1B[96m"),u+=":",u+=i(`${s+1}`,"\x1B[93m"),u+=":",u+=i(`${o+1}`,"\x1B[93m"),u}function Oae(e,t){let n="";for(const i of e){if(i.file){const{file:s,start:o}=i;n+=Fq(s,o,t),n+=" - "}if(n+=S2(gb(i),rSe(i.category)),n+=S2(` TS${i.code}: `,"\x1B[90m"),n+=tm(i.messageText,t.getNewLine()),i.file&&i.code!==p.File_appears_to_be_binary.code&&(n+=t.getNewLine(),n+=nSe(i.file,i.start,i.length,"",rSe(i.category),t)),i.relatedInformation){n+=t.getNewLine();for(const{file:s,start:o,length:c,messageText:u}of i.relatedInformation)s&&(n+=t.getNewLine(),n+=aSe+Fq(s,o,t),n+=nSe(s,o,c,Bae,"\x1B[96m",t)),n+=t.getNewLine(),n+=Bae+tm(u,t.getNewLine())}n+=t.getNewLine()}return n}function tm(e,t,n=0){if(ls(e))return e;if(e===void 0)return"";let i="";if(n){i+=t;for(let s=0;st6(o,e,n,i,s,t,c)}}function jq(e){return ls(e)?e:km(e.fileName)}function W9(e,t,n,i,s){return{nameAndMode:oSe,resolve:(o,c)=>ose(o,e,n,i,t,s,c)}}function PA(e,t,n,i,s,o,c,u){if(e.length===0)return Ve;const f=[],g=new Map,d=u(t,n,i,o,c);for(const y of e){const S=d.nameAndMode.getName(y),T=d.nameAndMode.getMode(y,s,(n==null?void 0:n.commandLine.options)||i),k=N3(S,T);let w=g.get(k);w||g.set(k,w=d.resolve(S,T)),f.push(w)}return f}function Bq(e,t){return V9(void 0,e,(n,i)=>n&&t(n,i))}function V9(e,t,n,i){let s;return o(e,t,void 0);function o(c,u,f){if(i){const g=i(c,f);if(g)return g}return er(u,(g,d)=>{if(g&&(s!=null&&s.has(g.sourceFile.path)))return;const y=n(g,f,d);return y||!g?y:((s||(s=new Set)).add(g.sourceFile.path),o(g.commandLine.projectReferences,g.references,g))})}}function U9(e,t,n){const i=e.configFilePath?Un(e.configFilePath):t;return Mn(i,`__lib_node_modules_lookup_${n}__.ts`)}function Jq(e){const t=e.split(".");let n=t[1],i=2;for(;t[i]&&t[i]!=="d";)n+=(i===2?"/":"-")+t[i],i++;return"@typescript/lib-"+n}function iSe(e){const t=km(e.fileName),n=XO.get(t);return{libName:t,libFileName:n}}function U1(e){switch(e==null?void 0:e.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function c6(e){return e.pos!==void 0}function H3(e,t){var n,i,s,o;const c=E.checkDefined(e.getSourceFileByPath(t.file)),{kind:u,index:f}=t;let g,d,y,S;switch(u){case 3:const T=wA(c,f);if(y=(i=(n=e.getResolvedModule(c,T.text,e.getModeForUsageLocation(c,T)))==null?void 0:n.resolvedModule)==null?void 0:i.packageId,T.pos===-1)return{file:c,packageId:y,text:T.text};g=ca(c.text,T.pos),d=T.end;break;case 4:({pos:g,end:d}=c.referencedFiles[f]);break;case 5:({pos:g,end:d,resolutionMode:S}=c.typeReferenceDirectives[f]),y=(o=(s=e.getResolvedTypeReferenceDirective(c,km(c.typeReferenceDirectives[f].fileName),S||c.impliedNodeFormat))==null?void 0:s.resolvedTypeReferenceDirective)==null?void 0:o.packageId;break;case 7:({pos:g,end:d}=c.libReferenceDirectives[f]);break;default:return E.assertNever(u)}return{file:c,pos:g,end:d,packageId:y}}function zq(e,t,n,i,s,o,c,u,f,g){if(!e||u!=null&&u()||!_d(e.getRootFileNames(),t))return!1;let d;if(!_d(e.getProjectReferences(),g,w)||e.getSourceFiles().some(T))return!1;const y=e.getMissingFilePaths();if(y&&_l(y,s))return!1;const S=e.getCompilerOptions();if(!CW(S,n)||e.resolvedLibReferences&&_l(e.resolvedLibReferences,(F,J)=>c(J)))return!1;if(S.configFile&&n.configFile)return S.configFile.text===n.configFile.text;return!0;function T(F){return!k(F)||o(F.path)}function k(F){return F.version===i(F.resolvedPath,F.fileName)}function w(F,J,U){return dz(F,J)&&P(e.getResolvedProjectReferences()[U],F)}function P(F,J){if(F){if(bs(d,F))return!0;const $=l6(J),j=f($);return!j||F.commandLine.options.configFile!==j.options.configFile||!_d(F.commandLine.fileNames,j.fileNames)?!1:((d||(d=[])).push(F),!er(F.references,(re,R)=>!P(re,F.commandLine.projectReferences[R])))}const U=l6(J);return!f(U)}}function sS(e){return e.options.configFile?[...e.options.configFile.parseDiagnostics,...e.errors]:e.errors}function DA(e,t,n,i){const s=Wq(e,t,n,i);return typeof s=="object"?s.impliedNodeFormat:s}function Wq(e,t,n,i){switch(Ru(i)){case 3:case 99:return Gc(e,[".d.mts",".mts",".mjs"])?99:Gc(e,[".d.cts",".cts",".cjs"])?1:Gc(e,[".d.ts",".ts",".tsx",".js",".jsx"])?s():void 0;default:return}function s(){const o=cA(t,n,i),c=[];o.failedLookupLocations=c,o.affectingLocations=c;const u=lA(e,o);return{impliedNodeFormat:(u==null?void 0:u.contents.packageJsonContent.type)==="module"?99:1,packageJsonLocations:c,packageJsonScope:u}}}function ORe(e,t){return e?Qk(e.getCompilerOptions(),t,YO):!1}function LRe(e,t,n,i,s,o){return{rootNames:e,options:t,host:n,oldProgram:i,configFileParsingDiagnostics:s,typeScriptVersion:o}}function q9(e,t,n,i,s){var o,c,u,f,g,d,y,S,T,k,w,P,F,J,U,$;const j=ts(e)?LRe(e,t,n,i,s):e,{rootNames:re,options:R,configFileParsingDiagnostics:Y,projectReferences:ue,typeScriptVersion:pe}=j;let{oldProgram:H}=j;const q=Hu(()=>Zp("ignoreDeprecations",p.Invalid_value_for_ignoreDeprecations));let ee,oe,Se,ae,K,fe,ke;const Oe=new Map;let me=vf();const be={},xe={};let De=Sx(),ft,ge,Fe,$e,Pt,at,Je,pt,zt,Vt;const hr=typeof R.maxNodeModuleJsDepth=="number"?R.maxNodeModuleJsDepth:0;let Lr=0;const tr=new Map,jt=new Map;(o=qr)==null||o.push(qr.Phase.Program,"createProgram",{configFilePath:R.configFilePath,rootDir:R.rootDir},!0),Ao("beforeProgram");const Rt=j.host||Fae(R),Kn=G9(Rt);let Ji=R.noLib;const yi=Hu(()=>Rt.getDefaultLibFileName(R)),os=Rt.getDefaultLibLocation?Rt.getDefaultLibLocation():Un(yi()),yr=yC(),_i=Rt.getCurrentDirectory(),ln=UE(R),Ht=rw(R,ln),Ue=new Map;let Et,fr,Hn;const ei=Rt.hasInvalidatedResolutions||fd;Rt.resolveModuleNameLiterals?(Hn=Rt.resolveModuleNameLiterals.bind(Rt),fr=(c=Rt.getModuleResolutionCache)==null?void 0:c.call(Rt)):Rt.resolveModuleNames?(Hn=(Ae,We,bt,Nt,sr,Mr)=>Rt.resolveModuleNames(Ae.map(Mae),We,Mr==null?void 0:Mr.map(Mae),bt,Nt,sr).map(rr=>rr?rr.extension!==void 0?{resolvedModule:rr}:{resolvedModule:{...rr,extension:HE(rr.resolvedFileName)}}:Jae),fr=(u=Rt.getModuleResolutionCache)==null?void 0:u.call(Rt)):(fr=e6(_i,Q,R),Hn=(Ae,We,bt,Nt,sr)=>PA(Ae,We,bt,Nt,sr,Rt,fr,Rq));let Ii;if(Rt.resolveTypeReferenceDirectiveReferences)Ii=Rt.resolveTypeReferenceDirectiveReferences.bind(Rt);else if(Rt.resolveTypeReferenceDirectives)Ii=(Ae,We,bt,Nt,sr)=>Rt.resolveTypeReferenceDirectives(Ae.map(jq),We,bt,Nt,sr==null?void 0:sr.impliedNodeFormat).map(Mr=>({resolvedTypeReferenceDirective:Mr}));else{const Ae=a9(_i,Q,void 0,fr==null?void 0:fr.getPackageJsonInfoCache(),fr==null?void 0:fr.optionsToRedirectsKey);Ii=(We,bt,Nt,sr,Mr)=>PA(We,bt,Nt,sr,Mr,Rt,Ae,W9)}const ns=Rt.hasInvalidatedLibResolutions||fd;let Vs;if(Rt.resolveLibrary)Vs=Rt.resolveLibrary.bind(Rt);else{const Ae=e6(_i,Q,R,fr==null?void 0:fr.getPackageJsonInfoCache());Vs=(We,bt,Nt)=>o9(We,bt,Nt,Rt,Ae)}const _a=new Map;let cr=new Map,br=vf(),Le=!1;const rt=new Map;let tt=new Map;const yt=Rt.useCaseSensitiveFileNames()?new Map:void 0;let ne,we,et,B;const Ge=!!((f=Rt.useSourceOfProjectReferenceRedirect)!=null&&f.call(Rt))&&!R.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:mt,fileExists:Be,directoryExists:nt}=MRe({compilerHost:Rt,getSymlinkCache:om,useSourceOfProjectReferenceRedirect:Ge,toPath:Wr,getResolvedProjectReferences:_s,getSourceOfProjectReferenceRedirect:Ku,forEachResolvedProjectReference:__}),Dt=Rt.readFile.bind(Rt);(g=qr)==null||g.push(qr.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!H});const ir=ORe(H,R);(d=qr)==null||d.pop();let Yt;if((y=qr)==null||y.push(qr.Phase.Program,"tryReuseStructureFromOldProgram",{}),Yt=is(),(S=qr)==null||S.pop(),Yt!==2){if(ee=[],oe=[],ue&&(ne||(ne=ue.map(At)),re.length&&(ne==null||ne.forEach((Ae,We)=>{if(!Ae)return;const bt=no(Ae.commandLine.options);if(Ge){if(bt||au(Ae.commandLine.options)===0)for(const Nt of Ae.commandLine.fileNames)kt(Nt,{kind:1,index:We})}else if(bt)kt(N1(bt,".d.ts"),{kind:2,index:We});else if(au(Ae.commandLine.options)===0){const Nt=Hu(()=>a6(Ae.commandLine,!Rt.useCaseSensitiveFileNames()));for(const sr of Ae.commandLine.fileNames)!Hl(sr)&&!Zo(sr,".json")&&kt(U3(sr,Ae.commandLine,!Rt.useCaseSensitiveFileNames(),Nt),{kind:2,index:We})}}))),(T=qr)==null||T.push(qr.Phase.Program,"processRootFiles",{count:re.length}),er(re,(Ae,We)=>ho(Ae,!1,!1,{kind:0,index:We})),(k=qr)==null||k.pop(),ge??(ge=re.length?i9(R,Rt):Ve),Fe=Sx(),ge.length){(w=qr)==null||w.push(qr.Phase.Program,"processTypeReferences",{count:ge.length});const Ae=R.configFilePath?Un(R.configFilePath):_i,We=Mn(Ae,u6),bt=ci(ge,We);for(let Nt=0;Nt{ho(H_(We),!0,!1,{kind:6,index:bt})})}Se=Bh(ee,fi).concat(oe),ee=void 0,oe=void 0}if(H&&Rt.onReleaseOldSourceFile){const Ae=H.getSourceFiles();for(const We of Ae){const bt=zo(We.resolvedPath);(ir||!bt||bt.impliedNodeFormat!==We.impliedNodeFormat||We.resolvedPath===We.path&&bt.resolvedPath!==We.path)&&Rt.onReleaseOldSourceFile(We,H.getCompilerOptions(),!!zo(We.path))}Rt.getParsedCommandLine||H.forEachResolvedProjectReference(We=>{am(We.sourceFile.path)||Rt.onReleaseOldSourceFile(We.sourceFile,H.getCompilerOptions(),!1)})}H&&Rt.onReleaseParsedCommandLine&&V9(H.getProjectReferences(),H.getResolvedProjectReferences(),(Ae,We,bt)=>{const Nt=(We==null?void 0:We.commandLine.projectReferences[bt])||H.getProjectReferences()[bt],sr=l6(Nt);we!=null&&we.has(Wr(sr))||Rt.onReleaseParsedCommandLine(sr,Ae,H.getCompilerOptions())}),H=void 0,Pt=void 0,Je=void 0,zt=void 0;const Kt={getRootFileNames:()=>re,getSourceFile:oa,getSourceFileByPath:zo,getSourceFiles:()=>Se,getMissingFilePaths:()=>tt,getModuleResolutionCache:()=>fr,getFilesByNameMap:()=>rt,getCompilerOptions:()=>R,getSyntacticDiagnostics:Fc,getOptionsDiagnostics:gn,getGlobalDiagnostics:Qo,getSemanticDiagnostics:rc,getCachedSemanticDiagnostics:Mo,getSuggestionDiagnostics:Ee,getDeclarationDiagnostics:go,getBindAndCheckDiagnostics:fs,getProgramDiagnostics:Wt,getTypeChecker:$i,getClassifiableNames:Qi,getCommonSourceDirectory:Cn,emit:zs,getCurrentDirectory:()=>_i,getNodeCount:()=>$i().getNodeCount(),getIdentifierCount:()=>$i().getIdentifierCount(),getSymbolCount:()=>$i().getSymbolCount(),getTypeCount:()=>$i().getTypeCount(),getInstantiationCount:()=>$i().getInstantiationCount(),getRelationCacheSizes:()=>$i().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>ft,getResolvedTypeReferenceDirectives:()=>De,getAutomaticTypeDirectiveNames:()=>ge,getAutomaticTypeDirectiveResolutions:()=>Fe,isSourceFileFromExternalLibrary:Uo,isSourceFileDefaultLibrary:Ol,getModeForUsageLocation:Of,getModeForResolutionAtIndex:dh,getSourceFileFromReference:Pp,getLibFileFromReference:ol,sourceFileToPackageName:cr,redirectTargetsMap:br,usesUriStyleNodeCoreModules:Le,resolvedModules:at,resolvedTypeReferenceDirectiveNames:pt,resolvedLibReferences:$e,getResolvedModule:W,getResolvedModuleFromModuleSpecifier:Pe,getResolvedTypeReferenceDirective:St,forEachResolvedModule:A,forEachResolvedTypeReferenceDirective:le,getCurrentPackagesMap:()=>Vt,typesPackageExists:Ne,packageBundlesTypes:Ce,isEmittedFile:A2,getConfigFileParsingDiagnostics:ml,getProjectReferences:Ra,getResolvedProjectReferences:_s,getProjectReferenceRedirect:dc,getResolvedProjectReferenceToRedirect:If,getResolvedProjectReferenceByPath:am,forEachResolvedProjectReference:__,isSourceOfProjectReferenceRedirect:ep,emitBuildInfo:kc,fileExists:Be,readFile:Dt,directoryExists:nt,getSymlinkCache:om,realpath:(U=Rt.realpath)==null?void 0:U.bind(Rt),useCaseSensitiveFileNames:()=>Rt.useCaseSensitiveFileNames(),getCanonicalFileName:Q,getFileIncludeReasons:()=>me,structureIsReused:Yt,writeFile:uo};return mt(),ft==null||ft.forEach(Ae=>{switch(Ae.kind){case 1:return yr.add(Vn(Ae.file&&zo(Ae.file),Ae.fileProcessingReason,Ae.diagnostic,Ae.args||Ve));case 0:const{file:We,pos:bt,end:Nt}=H3(Kt,Ae.reason);return yr.add(xl(We,E.checkDefined(bt),E.checkDefined(Nt)-bt,Ae.diagnostic,...Ae.args||Ve));case 2:return Ae.diagnostics.forEach(sr=>yr.add(sr));default:E.assertNever(Ae)}}),O(),Ao("afterProgram"),bf("Program","beforeProgram","afterProgram"),($=qr)==null||$.pop(),Kt;function W(Ae,We,bt){var Nt;return(Nt=at==null?void 0:at.get(Ae.path))==null?void 0:Nt.get(We,bt)}function Pe(Ae){const We=wr(Ae);return E.assertIsDefined(We,"`moduleSpecifier` must have a `SourceFile` ancestor. Use `program.getResolvedModule` instead to provide the containing file and resolution mode."),W(We,Ae.text,Of(We,Ae))}function St(Ae,We,bt){var Nt;return(Nt=pt==null?void 0:pt.get(Ae.path))==null?void 0:Nt.get(We,bt)}function A(Ae,We){V(at,Ae,We)}function le(Ae,We){V(pt,Ae,We)}function V(Ae,We,bt){var Nt;bt?(Nt=Ae==null?void 0:Ae.get(bt.path))==null||Nt.forEach((sr,Mr,rr)=>We(sr,Mr,rr,bt.path)):Ae==null||Ae.forEach((sr,Mr)=>sr.forEach((rr,Rr,Yn)=>We(rr,Rr,Yn,Mr)))}function ce(){return Vt||(Vt=new Map,A(({resolvedModule:Ae})=>{Ae!=null&&Ae.packageId&&Vt.set(Ae.packageId.name,Ae.extension===".d.ts"||!!Vt.get(Ae.packageId.name))}),Vt)}function Ne(Ae){return ce().has(u9(Ae))}function Ce(Ae){return!!ce().get(Ae)}function _t(Ae){var We;(We=Ae.resolutionDiagnostics)!=null&&We.length&&(ft??(ft=[])).push({kind:2,diagnostics:Ae.resolutionDiagnostics})}function Tt(Ae,We,bt,Nt){if(Rt.resolveModuleNameLiterals||!Rt.resolveModuleNames)return _t(bt);if(!fr||Sl(We))return;const sr=Xi(Ae.originalFileName,_i),Mr=Un(sr),rr=Er(Ae),Rr=fr.getFromNonRelativeNameCache(We,Nt,Mr,rr);Rr&&_t(Rr)}function Jt(Ae,We,bt){var Nt,sr;if(!Ae.length)return Ve;const Mr=Xi(We.originalFileName,_i),rr=Er(We);(Nt=qr)==null||Nt.push(qr.Phase.Program,"resolveModuleNamesWorker",{containingFileName:Mr}),Ao("beforeResolveModule");const Rr=Hn(Ae,Mr,rr,R,We,bt);return Ao("afterResolveModule"),bf("ResolveModule","beforeResolveModule","afterResolveModule"),(sr=qr)==null||sr.pop(),Rr}function ar(Ae,We,bt){var Nt,sr;if(!Ae.length)return[];const Mr=ls(We)?void 0:We,rr=ls(We)?We:Xi(We.originalFileName,_i),Rr=Mr&&Er(Mr);(Nt=qr)==null||Nt.push(qr.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:rr}),Ao("beforeResolveTypeReference");const Yn=Ii(Ae,rr,Rr,R,Mr,bt);return Ao("afterResolveTypeReference"),bf("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),(sr=qr)==null||sr.pop(),Yn}function Er(Ae){const We=If(Ae.originalFileName);if(We||!Hl(Ae.originalFileName))return We;const bt=Nr(Ae.path);if(bt)return bt;if(!Rt.realpath||!R.preserveSymlinks||!Ae.originalFileName.includes(zm))return;const Nt=Wr(Rt.realpath(Ae.originalFileName));return Nt===Ae.path?void 0:Nr(Nt)}function Nr(Ae){const We=Ku(Ae);if(ls(We))return If(We);if(We)return __(bt=>{const Nt=no(bt.commandLine.options);if(Nt)return Wr(Nt)===Ae?bt:void 0})}function fi(Ae,We){return wo(oi(Ae),oi(We))}function oi(Ae){if(jp(os,Ae.fileName,!1)){const We=wc(Ae.fileName);if(We==="lib.d.ts"||We==="lib.es6.d.ts")return 0;const bt=Nk(H4(We,"lib."),".d.ts"),Nt=eA.indexOf(bt);if(Nt!==-1)return Nt+1}return eA.length+2}function Wr(Ae){return No(Ae,_i,Q)}function Cn(){if(K===void 0){const Ae=An(Se,We=>Ob(We,Kt));K=q3(R,()=>Ri(Ae,We=>We.isDeclarationFile?void 0:We.fileName),_i,Q,We=>Ct(Ae,We))}return K}function Qi(){var Ae;if(!ke){$i(),ke=new Set;for(const We of Se)(Ae=We.classifiableNames)==null||Ae.forEach(bt=>ke.add(bt))}return ke}function pi(Ae,We){if(Yt===0&&!We.ambientModuleNames.length)return Jt(Ae,We,void 0);let bt,Nt,sr;const Mr=Jae,rr=H&&H.getSourceFile(We.fileName);for(let zn=0;zn{const Nt=(We?We.commandLine.projectReferences:ue)[bt],sr=At(Nt);return Ae?!sr||sr.sourceFile!==Ae.sourceFile||!_d(Ae.commandLine.fileNames,sr.commandLine.fileNames):sr!==void 0},(Ae,We)=>{const bt=We?am(We.sourceFile.path).commandLine.projectReferences:ue;return!_d(Ae,bt,dz)})}function is(){var Ae;if(!H)return 0;const We=H.getCompilerOptions();if(i5(We,R))return 0;const bt=H.getRootFileNames();if(!_d(bt,re)||!In())return 0;ue&&(ne=ue.map(At));const Nt=[],sr=[];if(Yt=2,_l(H.getMissingFilePaths(),Gr=>Rt.fileExists(Gr)))return 0;const Mr=H.getSourceFiles();let rr;(Gr=>{Gr[Gr.Exists=0]="Exists",Gr[Gr.Modified=1]="Modified"})(rr||(rr={}));const Rr=new Map;for(const Gr of Mr){const zn=Is(Gr.fileName,fr,Rt,R);let Yr=Rt.getSourceFileByPath?Rt.getSourceFileByPath(Gr.fileName,Gr.resolvedPath,zn,void 0,ir):Rt.getSourceFile(Gr.fileName,zn,void 0,ir);if(!Yr)return 0;Yr.packageJsonLocations=(Ae=zn.packageJsonLocations)!=null&&Ae.length?zn.packageJsonLocations:void 0,Yr.packageJsonScope=zn.packageJsonScope,E.assert(!Yr.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");let ws;if(Gr.redirectInfo){if(Yr!==Gr.redirectInfo.unredirected)return 0;ws=!1,Yr=Gr}else if(H.redirectTargetsMap.has(Gr.path)){if(Yr!==Gr)return 0;ws=!1}else ws=Yr!==Gr;Yr.path=Gr.path,Yr.originalFileName=Gr.originalFileName,Yr.resolvedPath=Gr.resolvedPath,Yr.fileName=Gr.fileName;const Ta=H.sourceFileToPackageName.get(Gr.path);if(Ta!==void 0){const ku=Rr.get(Ta),jl=ws?1:0;if(ku!==void 0&&jl===1||ku===1)return 0;Rr.set(Ta,jl)}if(ws)Gr.impliedNodeFormat!==Yr.impliedNodeFormat?Yt=1:_d(Gr.libReferenceDirectives,Yr.libReferenceDirectives,Vc)?Gr.hasNoDefaultLib!==Yr.hasNoDefaultLib?Yt=1:_d(Gr.referencedFiles,Yr.referencedFiles,Vc)?(E_(Yr),_d(Gr.imports,Yr.imports,$a)&&_d(Gr.moduleAugmentations,Yr.moduleAugmentations,$a)?(Gr.flags&12582912)!==(Yr.flags&12582912)?Yt=1:_d(Gr.typeReferenceDirectives,Yr.typeReferenceDirectives,Vc)||(Yt=1):Yt=1):Yt=1:Yt=1,sr.push(Yr);else if(ei(Gr.path))Yt=1,sr.push(Yr);else for(const ku of Gr.ambientModuleNames)Oe.set(ku,Gr.fileName);Nt.push(Yr)}if(Yt!==2)return Yt;for(const Gr of sr){const zn=sSe(Gr),Yr=pi(zn,Gr);(Je??(Je=new Map)).set(Gr.path,Yr),mz(zn,Yr,mh=>H.getResolvedModule(Gr,mh.text,Of(Gr,mh)),xte)&&(Yt=1);const Ta=Gr.typeReferenceDirectives,ku=ci(Ta,Gr);(zt??(zt=new Map)).set(Gr.path,ku),mz(Ta,ku,mh=>H.getResolvedTypeReferenceDirective(Gr,jq(mh),EA(mh,Gr.impliedNodeFormat)),kte)&&(Yt=1)}if(Yt!==2)return Yt;if(Ste(We,R)||H.resolvedLibReferences&&_l(H.resolvedLibReferences,(Gr,zn)=>Ag(zn).actual!==Gr.actual))return 1;if(Rt.hasChangedAutomaticTypeDirectiveNames){if(Rt.hasChangedAutomaticTypeDirectiveNames())return 1}else if(ge=i9(R,Rt),!_d(H.getAutomaticTypeDirectiveNames(),ge))return 1;tt=H.getMissingFilePaths(),E.assert(Nt.length===H.getSourceFiles().length);for(const Gr of Nt)rt.set(Gr.path,Gr);return H.getFilesByNameMap().forEach((Gr,zn)=>{if(!Gr){rt.set(zn,Gr);return}if(Gr.path===zn){H.isSourceFileFromExternalLibrary(Gr)&&jt.set(Gr.path,!0);return}rt.set(zn,rt.get(Gr.path))}),Se=Nt,me=H.getFileIncludeReasons(),ft=H.getFileProcessingDiagnostics(),De=H.getResolvedTypeReferenceDirectives(),ge=H.getAutomaticTypeDirectiveNames(),Fe=H.getAutomaticTypeDirectiveResolutions(),cr=H.sourceFileToPackageName,br=H.redirectTargetsMap,Le=H.usesUriStyleNodeCoreModules,at=H.resolvedModules,pt=H.resolvedTypeReferenceDirectiveNames,$e=H.resolvedLibReferences,Vt=H.getCurrentPackagesMap(),2}function pr(Ae){return{getPrependNodes:mo,getCanonicalFileName:Q,getCommonSourceDirectory:Kt.getCommonSourceDirectory,getCompilerOptions:Kt.getCompilerOptions,getCurrentDirectory:()=>_i,getSourceFile:Kt.getSourceFile,getSourceFileByPath:Kt.getSourceFileByPath,getSourceFiles:Kt.getSourceFiles,getLibFileFromReference:Kt.getLibFileFromReference,isSourceFileFromExternalLibrary:Uo,getResolvedProjectReferenceToRedirect:If,getProjectReferenceRedirect:dc,isSourceOfProjectReferenceRedirect:ep,getSymlinkCache:om,writeFile:Ae||uo,isEmitBlocked:Ll,readFile:We=>Rt.readFile(We),fileExists:We=>{const bt=Wr(We);return zo(bt)?!0:tt.has(bt)?!1:Rt.fileExists(We)},useCaseSensitiveFileNames:()=>Rt.useCaseSensitiveFileNames(),getBuildInfo:We=>{var bt;return(bt=Kt.getBuildInfo)==null?void 0:bt.call(Kt,We)},getSourceFileFromReference:(We,bt)=>Kt.getSourceFileFromReference(We,bt),redirectTargetsMap:br,getFileIncludeReasons:Kt.getFileIncludeReasons,createHash:Os(Rt,Rt.createHash)}}function uo(Ae,We,bt,Nt,sr,Mr){Rt.writeFile(Ae,We,bt,Nt,sr,Mr)}function kc(Ae){var We,bt;E.assert(!no(R)),(We=qr)==null||We.push(qr.Phase.Emit,"emitBuildInfo",{},!0),Ao("beforeEmit");const Nt=L9(R9,pr(Ae),void 0,hq,!1,!0);return Ao("afterEmit"),bf("Emit","beforeEmit","afterEmit"),(bt=qr)==null||bt.pop(),Nt}function _s(){return ne}function Ra(){return ue}function mo(){return Uq(ue,(Ae,We)=>{var bt;return(bt=ne[We])==null?void 0:bt.commandLine},Ae=>{const We=Wr(Ae),bt=zo(We);return bt?bt.text:rt.has(We)?void 0:Rt.readFile(We)},Rt)}function Uo(Ae){return!!jt.get(Ae.path)}function Ol(Ae){if(!Ae.isDeclarationFile)return!1;if(Ae.hasNoDefaultLib)return!0;if(!R.noLib)return!1;const We=Rt.useCaseSensitiveFileNames()?pb:p1;return R.lib?ct(R.lib,bt=>We(Ae.fileName,$e.get(bt).actual)):We(Ae.fileName,yi())}function $i(){return fe||(fe=Nse(Kt))}function zs(Ae,We,bt,Nt,sr,Mr){var rr,Rr;(rr=qr)==null||rr.push(qr.Phase.Emit,"emit",{path:Ae==null?void 0:Ae.path},!0);const Yn=Ml(()=>Qa(Kt,Ae,We,bt,Nt,sr,Mr));return(Rr=qr)==null||Rr.pop(),Yn}function Ll(Ae){return Ue.has(Wr(Ae))}function Qa(Ae,We,bt,Nt,sr,Mr,rr){if(!rr){const Gr=Vq(Ae,We,bt,Nt);if(Gr)return Gr}const Rr=$i().getEmitResolver(no(R)?void 0:We,Nt);Ao("beforeEmit");const Yn=L9(Rr,pr(bt),We,gq(R,Mr,sr),sr,!1,rr);return Ao("afterEmit"),bf("Emit","beforeEmit","afterEmit"),Yn}function oa(Ae){return zo(Wr(Ae))}function zo(Ae){return rt.get(Ae)||void 0}function Kf(Ae,We,bt){return zk(Ae?We(Ae,bt):Zs(Kt.getSourceFiles(),Nt=>(bt&&bt.throwIfCancellationRequested(),We(Nt,bt))))}function Fc(Ae,We){return Kf(Ae,Pl,We)}function rc(Ae,We){return Kf(Ae,q_,We)}function Mo(Ae){var We;return Ae?(We=be.perFile)==null?void 0:We.get(Ae.path):be.allDiagnostics}function fs(Ae,We){return io(Ae,We)}function Wt(Ae){var We;if(GE(Ae,R,Kt))return Ve;const bt=yr.getDiagnostics(Ae.fileName);return(We=Ae.commentDirectives)!=null&&We.length?X(Ae,Ae.commentDirectives,bt).diagnostics:bt}function go(Ae,We){const bt=Kt.getCompilerOptions();return!Ae||no(bt)?an(Ae,We):Kf(Ae,li,We)}function Pl(Ae){return Ou(Ae)?(Ae.additionalSyntacticDiagnostics||(Ae.additionalSyntacticDiagnostics=Xt(Ae)),es(Ae.additionalSyntacticDiagnostics,Ae.parseDiagnostics)):Ae.parseDiagnostics}function Ml(Ae){try{return Ae()}catch(We){throw We instanceof Mk&&(fe=void 0),We}}function q_(Ae,We){return es(H9(io(Ae,We),R),Wt(Ae))}function io(Ae,We){return En(Ae,We,be,Yc)}function Yc(Ae,We){return Ml(()=>{if(GE(Ae,R,Kt))return Ve;const bt=$i();E.assert(!!Ae.bindDiagnostics);const sr=(Ae.scriptKind===1||Ae.scriptKind===2)&&sw(Ae,R),Mr=c8(Ae,R.checkJs),Rr=!(!!Ae.checkJsDirective&&Ae.checkJsDirective.enabled===!1)&&(Ae.scriptKind===3||Ae.scriptKind===4||Ae.scriptKind===5||Mr||sr||Ae.scriptKind===7);let Yn=Rr?Ae.bindDiagnostics:Ve,Gr=Rr?bt.getDiagnostics(Ae,We):Ve;return Mr&&(Yn=An(Yn,zn=>X9.has(zn.code)),Gr=An(Gr,zn=>X9.has(zn.code))),se(Ae,Rr&&!Mr,Yn,Gr,sr?Ae.jsDocDiagnostics:void 0)})}function se(Ae,We,...bt){var Nt;const sr=Mp(bt);if(!We||!((Nt=Ae.commentDirectives)!=null&&Nt.length))return sr;const{diagnostics:Mr,directives:rr}=X(Ae,Ae.commentDirectives,sr);for(const Rr of rr.getUnusedExpectations())Mr.push(Bte(Ae,Rr.range,p.Unused_ts_expect_error_directive));return Mr}function X(Ae,We,bt){const Nt=Pte(Ae,We);return{diagnostics:bt.filter(Mr=>lt(Mr,Nt)===-1),directives:Nt}}function Ee(Ae,We){return Ml(()=>$i().getSuggestionDiagnostics(Ae,We))}function lt(Ae,We){const{file:bt,start:Nt}=Ae;if(!bt)return-1;const sr=$g(bt);let Mr=Bk(sr,Nt).line-1;for(;Mr>=0;){if(We.markUsed(Mr))return Mr;const rr=bt.text.slice(sr[Mr],sr[Mr+1]).trim();if(rr!==""&&!/^(\s*)\/\/(.*)$/.test(rr))return-1;Mr--}return-1}function Xt(Ae){return Ml(()=>{const We=[];return bt(Ae,Ae),k3(Ae,bt,Nt),We;function bt(Rr,Yn){switch(Yn.kind){case 169:case 172:case 174:if(Yn.questionToken===Rr)return We.push(rr(Rr,p.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(Yn.type===Rr)return We.push(rr(Rr,p.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(Rr.kind){case 273:if(Rr.isTypeOnly)return We.push(rr(Yn,p._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 278:if(Rr.isTypeOnly)return We.push(rr(Rr,p._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 276:case 281:if(Rr.isTypeOnly)return We.push(rr(Rr,p._0_declarations_can_only_be_used_in_TypeScript_files,x_(Rr)?"import...type":"export...type")),"skip";break;case 271:return We.push(rr(Rr,p.import_can_only_be_used_in_TypeScript_files)),"skip";case 277:if(Rr.isExportEquals)return We.push(rr(Rr,p.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 298:if(Rr.token===119)return We.push(rr(Rr,p.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 264:const zn=Ws(120);return E.assertIsDefined(zn),We.push(rr(Rr,p._0_declarations_can_only_be_used_in_TypeScript_files,zn)),"skip";case 267:const Yr=Rr.flags&32?Ws(145):Ws(144);return E.assertIsDefined(Yr),We.push(rr(Rr,p._0_declarations_can_only_be_used_in_TypeScript_files,Yr)),"skip";case 265:return We.push(rr(Rr,p.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 176:case 174:case 262:return Rr.body?void 0:(We.push(rr(Rr,p.Signature_declarations_can_only_be_used_in_TypeScript_files)),"skip");case 266:const ws=E.checkDefined(Ws(94));return We.push(rr(Rr,p._0_declarations_can_only_be_used_in_TypeScript_files,ws)),"skip";case 235:return We.push(rr(Rr,p.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 234:return We.push(rr(Rr.type,p.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 238:return We.push(rr(Rr.type,p.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 216:E.fail()}}function Nt(Rr,Yn){if(QV(Yn)){const Gr=wn(Yn.modifiers,ql);Gr&&We.push(rr(Gr,p.Decorators_are_not_valid_here))}else if(eS(Yn)&&Yn.modifiers){const Gr=vc(Yn.modifiers,ql);if(Gr>=0){if(rs(Yn)&&!R.experimentalDecorators)We.push(rr(Yn.modifiers[Gr],p.Decorators_are_not_valid_here));else if(Xc(Yn)){const zn=vc(Yn.modifiers,nx);if(zn>=0){const Yr=vc(Yn.modifiers,SO);if(Gr>zn&&Yr>=0&&Gr=0&&Gr=0&&We.push(la(rr(Yn.modifiers[ws],p.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),rr(Yn.modifiers[Gr],p.Decorator_used_before_export_here)))}}}}}switch(Yn.kind){case 263:case 231:case 174:case 176:case 177:case 178:case 218:case 262:case 219:if(Rr===Yn.typeParameters)return We.push(Mr(Rr,p.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 243:if(Rr===Yn.modifiers)return sr(Yn.modifiers,Yn.kind===243),"skip";break;case 172:if(Rr===Yn.modifiers){for(const Gr of Rr)ta(Gr)&&Gr.kind!==126&&Gr.kind!==129&&We.push(rr(Gr,p.The_0_modifier_can_only_be_used_in_TypeScript_files,Ws(Gr.kind)));return"skip"}break;case 169:if(Rr===Yn.modifiers&&ct(Rr,ta))return We.push(Mr(Rr,p.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 213:case 214:case 233:case 285:case 286:case 215:if(Rr===Yn.typeArguments)return We.push(Mr(Rr,p.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip";break}}function sr(Rr,Yn){for(const Gr of Rr)switch(Gr.kind){case 87:if(Yn)continue;case 125:case 123:case 124:case 148:case 138:case 128:case 164:case 103:case 147:We.push(rr(Gr,p.The_0_modifier_can_only_be_used_in_TypeScript_files,Ws(Gr.kind)));break;case 126:case 95:case 90:case 129:}}function Mr(Rr,Yn,...Gr){const zn=Rr.pos;return xl(Ae,zn,Rr.end-zn,Yn,...Gr)}function rr(Rr,Yn,...Gr){return mp(Ae,Rr,Yn,...Gr)}})}function an(Ae,We){return En(Ae,We,xe,rn)}function rn(Ae,We){return Ml(()=>{const bt=$i().getEmitResolver(Ae,We);return kae(pr(Ca),bt,Ae)||Ve})}function En(Ae,We,bt,Nt){var sr;const Mr=Ae?(sr=bt.perFile)==null?void 0:sr.get(Ae.path):bt.allDiagnostics;if(Mr)return Mr;const rr=Nt(Ae,We);return Ae?(bt.perFile||(bt.perFile=new Map)).set(Ae.path,rr):bt.allDiagnostics=rr,rr}function li(Ae,We){return Ae.isDeclarationFile?[]:an(Ae,We)}function gn(){return zk(es(yr.getGlobalDiagnostics(),Ps()))}function Ps(){if(!R.configFile)return Ve;let Ae=yr.getDiagnostics(R.configFile.fileName);return __(We=>{Ae=es(Ae,yr.getDiagnostics(We.sourceFile.fileName))}),Ae}function Qo(){return re.length?zk($i().getGlobalDiagnostics().slice()):Ve}function ml(){return Y||Ve}function ho(Ae,We,bt,Nt){Te(Hs(Ae),We,bt,void 0,Nt)}function Vc(Ae,We){return Ae.fileName===We.fileName}function $a(Ae,We){return Ae.kind===80?We.kind===80&&Ae.escapedText===We.escapedText:We.kind===11&&Ae.text===We.text}function gl(Ae,We){const bt=I.createStringLiteral(Ae),Nt=I.createImportDeclaration(void 0,void 0,bt,void 0);return QT(Nt,2),ba(bt,Nt),ba(Nt,We),bt.flags&=-17,Nt.flags&=-17,bt}function E_(Ae){if(Ae.imports)return;const We=Ou(Ae),bt=Ic(Ae);let Nt,sr,Mr;if((xp(R)||bt)&&!Ae.isDeclarationFile){R.importHelpers&&(Nt=[gl(oy,Ae)]);const Gr=mF(dF(R,Ae),R);Gr&&(Nt||(Nt=[])).push(gl(Gr,Ae))}for(const Gr of Ae.statements)rr(Gr,!1);(Ae.flags&4194304||We)&&Rr(Ae),Ae.imports=Nt||Ve,Ae.moduleAugmentations=sr||Ve,Ae.ambientModuleNames=Mr||Ve;return;function rr(Gr,zn){if(_8(Gr)){const Yr=uC(Gr);Yr&&aa(Yr)&&Yr.text&&(!zn||!Sl(Yr.text))&&(ay(Gr,!1),Nt=_r(Nt,Yr),!Le&&Lr===0&&!Ae.isDeclarationFile&&(Le=Vi(Yr.text,"node:")))}else if(Sc(Gr)&&su(Gr)&&(zn||Rn(Gr,128)||Ae.isDeclarationFile)){Gr.name.parent=Gr;const Yr=yp(Gr.name);if(bt||zn&&!Sl(Yr))(sr||(sr=[])).push(Gr.name);else if(!zn){Ae.isDeclarationFile&&(Mr||(Mr=[])).push(Yr);const ws=Gr.body;if(ws)for(const Ta of ws.statements)rr(Ta,!0)}}}function Rr(Gr){const zn=/import|require/g;for(;zn.exec(Gr.text)!==null;){const Yr=Yn(Gr,zn.lastIndex);We&&Gu(Yr,!0)||of(Yr)&&Yr.arguments.length>=1&&Ma(Yr.arguments[0])?(ay(Yr,!1),Nt=_r(Nt,Yr.arguments[0])):ty(Yr)&&(ay(Yr,!1),Nt=_r(Nt,Yr.argument.literal))}}function Yn(Gr,zn){let Yr=Gr;const ws=Ta=>{if(Ta.pos<=zn&&(znZo(sr,rr))){bt&&(Kv(sr)?bt(p.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,Ae):bt(p.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,Ae,"'"+Mp(ln).join("', '")+"'"));return}const Mr=We(Ae);if(bt)if(Mr)U1(Nt)&&sr===Rt.getCanonicalFileName(zo(Nt.file).fileName)&&bt(p.A_file_cannot_have_a_reference_to_itself);else{const rr=dc(Ae);rr?bt(p.Output_file_0_has_not_been_built_from_source_file_1,rr,Ae):bt(p.File_0_not_found,Ae)}return Mr}else{const sr=R.allowNonTsExtensions&&We(Ae);if(sr)return sr;if(bt&&R.allowNonTsExtensions){bt(p.File_0_not_found,Ae);return}const Mr=er(ln[0],rr=>We(Ae+rr));return bt&&!Mr&&bt(p.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,Ae,"'"+Mp(ln).join("', '")+"'"),Mr}}function Te(Ae,We,bt,Nt,sr){Ju(Ae,Mr=>Ds(Mr,We,bt,sr,Nt),(Mr,...rr)=>Ln(void 0,sr,Mr,rr),sr)}function kt(Ae,We){return Te(Ae,!1,!1,void 0,We)}function Fr(Ae,We,bt){!U1(bt)&&ct(me.get(We.path),U1)?Ln(We,bt,p.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[We.fileName,Ae]):Ln(We,bt,p.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[Ae,We.fileName])}function Yi(Ae,We,bt,Nt,sr,Mr,rr){var Rr;const Yn=Jm.createRedirectedSourceFile({redirectTarget:Ae,unredirected:We});return Yn.fileName=bt,Yn.path=Nt,Yn.resolvedPath=sr,Yn.originalFileName=Mr,Yn.packageJsonLocations=(Rr=rr.packageJsonLocations)!=null&&Rr.length?rr.packageJsonLocations:void 0,Yn.packageJsonScope=rr.packageJsonScope,jt.set(Nt,Lr>0),Yn}function Ds(Ae,We,bt,Nt,sr){var Mr,rr;(Mr=qr)==null||Mr.push(qr.Phase.Program,"findSourceFile",{fileName:Ae,isDefaultLib:We||void 0,fileIncludeKind:y7[Nt.kind]});const Rr=Cc(Ae,We,bt,Nt,sr);return(rr=qr)==null||rr.pop(),Rr}function Is(Ae,We,bt,Nt){const sr=Wq(Xi(Ae,_i),We==null?void 0:We.getPackageJsonInfoCache(),bt,Nt),Mr=Fa(Nt),rr=tw(Nt);return typeof sr=="object"?{...sr,languageVersion:Mr,setExternalModuleIndicator:rr,jsDocParsingMode:bt.jsDocParsingMode}:{languageVersion:Mr,impliedNodeFormat:sr,setExternalModuleIndicator:rr,jsDocParsingMode:bt.jsDocParsingMode}}function Cc(Ae,We,bt,Nt,sr){var Mr;const rr=Wr(Ae);if(Ge){let Yr=Ku(rr);if(!Yr&&Rt.realpath&&R.preserveSymlinks&&Hl(Ae)&&Ae.includes(zm)){const ws=Wr(Rt.realpath(Ae));ws!==rr&&(Yr=Ku(ws))}if(Yr){const ws=ls(Yr)?Ds(Yr,We,bt,Nt,sr):void 0;return ws&&Ro(ws,rr,Ae,void 0),ws}}const Rr=Ae;if(rt.has(rr)){const Yr=rt.get(rr);if(Uc(Yr||void 0,Nt),Yr&&R.forceConsistentCasingInFileNames!==!1){const ws=Yr.fileName;Wr(ws)!==Wr(Ae)&&(Ae=dc(Ae)||Ae);const ku=LJ(ws,_i),jl=LJ(Ae,_i);ku!==jl&&Fr(Ae,Yr,Nt)}return Yr&&jt.get(Yr.path)&&Lr===0?(jt.set(Yr.path,!1),R.noResolve||(qm(Yr,We),_h(Yr)),R.noLib||f_(Yr),tr.set(Yr.path,!1),Ye(Yr)):Yr&&tr.get(Yr.path)&&LrLn(void 0,Nt,p.Cannot_read_file_0_Colon_1,[Ae,Yr]),ir);if(sr){const Yr=K0(sr),ws=_a.get(Yr);if(ws){const Ta=Yi(ws,zn,Ae,rr,Wr(Ae),Rr,Gr);return br.add(ws.path,Ae),Ro(Ta,rr,Ae,Yn),Uc(Ta,Nt),cr.set(rr,o5(sr)),oe.push(Ta),Ta}else zn&&(_a.set(Yr,zn),cr.set(rr,o5(sr)))}if(Ro(zn,rr,Ae,Yn),zn){if(jt.set(rr,Lr>0),zn.fileName=Ae,zn.path=rr,zn.resolvedPath=Wr(Ae),zn.originalFileName=Rr,zn.packageJsonLocations=(Mr=Gr.packageJsonLocations)!=null&&Mr.length?Gr.packageJsonLocations:void 0,zn.packageJsonScope=Gr.packageJsonScope,Uc(zn,Nt),Rt.useCaseSensitiveFileNames()){const Yr=km(rr),ws=yt.get(Yr);ws?Fr(Ae,ws,Nt):yt.set(Yr,zn)}Ji=Ji||zn.hasNoDefaultLib&&!bt,R.noResolve||(qm(zn,We),_h(zn)),R.noLib||f_(zn),Ye(zn),We?ee.push(zn):oe.push(zn)}return zn}function Uc(Ae,We){Ae&&me.add(Ae.path,We)}function Ro(Ae,We,bt,Nt){Nt?(qo(bt,Nt,Ae),qo(bt,We,Ae||!1)):qo(bt,We,Ae)}function qo(Ae,We,bt){rt.set(We,bt),bt!==void 0?tt.delete(We):tt.set(We,Ae)}function dc(Ae){const We=Ec(Ae);return We&&hl(We,Ae)}function Ec(Ae){if(!(!ne||!ne.length||Hl(Ae)||Zo(Ae,".json")))return If(Ae)}function hl(Ae,We){const bt=no(Ae.commandLine.options);return bt?N1(bt,".d.ts"):U3(We,Ae.commandLine,!Rt.useCaseSensitiveFileNames())}function If(Ae){et===void 0&&(et=new Map,__(bt=>{Wr(R.configFilePath)!==bt.sourceFile.path&&bt.commandLine.fileNames.forEach(Nt=>et.set(Wr(Nt),bt.sourceFile.path))}));const We=et.get(Wr(Ae));return We&&am(We)}function __(Ae){return Bq(ne,Ae)}function Ku(Ae){if(Hl(Ae))return B===void 0&&(B=new Map,__(We=>{const bt=no(We.commandLine.options);if(bt){const Nt=N1(bt,".d.ts");B.set(Wr(Nt),!0)}else{const Nt=Hu(()=>a6(We.commandLine,!Rt.useCaseSensitiveFileNames()));er(We.commandLine.fileNames,sr=>{if(!Hl(sr)&&!Zo(sr,".json")){const Mr=U3(sr,We.commandLine,!Rt.useCaseSensitiveFileNames(),Nt);B.set(Wr(Mr),sr)}})}})),B.get(Ae)}function ep(Ae){return Ge&&!!If(Ae)}function am(Ae){if(we)return we.get(Ae)||void 0}function qm(Ae,We){er(Ae.referencedFiles,(bt,Nt)=>{Te(z9(bt.fileName,Ae.fileName),We,!1,void 0,{kind:4,file:Ae.path,index:Nt})})}function _h(Ae){const We=Ae.typeReferenceDirectives;if(!We.length)return;const bt=(zt==null?void 0:zt.get(Ae.path))||ci(We,Ae),Nt=Sx();(pt??(pt=new Map)).set(Ae.path,Nt);for(let sr=0;sr{const{libName:Nt,libFileName:sr}=iSe(We);if(sr)ho(H_(sr),!0,!0,{kind:7,file:Ae.path,index:bt});else{const Mr=Nk(H4(Nt,"lib."),".d.ts"),rr=q4(Mr,eA,Do),Rr=rr?p.Cannot_find_lib_definition_for_0_Did_you_mean_1:p.Cannot_find_lib_definition_for_0,Yn=rr?[Nt,rr]:[Nt];(ft||(ft=[])).push({kind:0,reason:{kind:7,file:Ae.path,index:bt},diagnostic:Rr,args:Yn})}})}function Q(Ae){return Rt.getCanonicalFileName(Ae)}function Ye(Ae){var We;if(E_(Ae),Ae.imports.length||Ae.moduleAugmentations.length){const bt=sSe(Ae),Nt=(Je==null?void 0:Je.get(Ae.path))||pi(bt,Ae);E.assert(Nt.length===bt.length);const sr=((We=Er(Ae))==null?void 0:We.commandLine.options)||R,Mr=Sx();(at??(at=new Map)).set(Ae.path,Mr);for(let rr=0;rrhr,jl=Ta&&!qq(sr,Rr,Ae)&&!sr.noResolve&&rrIc(rr)&&!rr.isDeclarationFile);if(R.isolatedModules||R.verbatimModuleSyntax)R.module===0&&We<2&&R.isolatedModules&&ja(p.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),R.preserveConstEnums===!1&&ja(p.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,R.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(bt&&We<2&&R.module===0){const rr=Eb(bt,typeof bt.externalModuleIndicator=="boolean"?bt:bt.externalModuleIndicator);yr.add(xl(bt,rr.start,rr.length,p.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(Ae&&!R.emitDeclarationOnly){if(R.module&&!(R.module===2||R.module===4))ja(p.Only_amd_and_system_modules_are_supported_alongside_0,R.out?"out":"outFile","module");else if(R.module===void 0&&bt){const rr=Eb(bt,typeof bt.externalModuleIndicator=="boolean"?bt:bt.externalModuleIndicator);yr.add(xl(bt,rr.start,rr.length,p.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,R.out?"out":"outFile"))}}if(F1(R)&&(Ru(R)===1?ja(p.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):_F(R)||ja(p.Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd,"resolveJsonModule","module")),R.outDir||R.rootDir||R.sourceRoot||R.mapRoot){const rr=Cn();R.outDir&&rr===""&&Se.some(Rr=>Pm(Rr.fileName)>1)&&ja(p.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}R.useDefineForClassFields&&We===0&&ja(p.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),R.checkJs&&!cy(R)&&yr.add(gc(p.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),R.emitDeclarationOnly&&(Gf(R)||ja(p.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),R.noEmit&&ja(p.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),R.emitDecoratorMetadata&&!R.experimentalDecorators&&ja(p.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),R.jsxFactory?(R.reactNamespace&&ja(p.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),(R.jsx===4||R.jsx===5)&&ja(p.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",D3.get(""+R.jsx)),yx(R.jsxFactory,We)||Zp("jsxFactory",p.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,R.jsxFactory)):R.reactNamespace&&!Sf(R.reactNamespace,We)&&Zp("reactNamespace",p.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,R.reactNamespace),R.jsxFragmentFactory&&(R.jsxFactory||ja(p.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),(R.jsx===4||R.jsx===5)&&ja(p.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",D3.get(""+R.jsx)),yx(R.jsxFragmentFactory,We)||Zp("jsxFragmentFactory",p.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,R.jsxFragmentFactory)),R.reactNamespace&&(R.jsx===4||R.jsx===5)&&ja(p.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",D3.get(""+R.jsx)),R.jsxImportSource&&R.jsx===2&&ja(p.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",D3.get(""+R.jsx)),R.preserveValueImports&&au(R)<5&&ja(p.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"preserveValueImports");const Nt=au(R);R.verbatimModuleSyntax&&((Nt===2||Nt===3||Nt===4)&&ja(p.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax"),R.preserveValueImports&&ed("preserveValueImports","verbatimModuleSyntax"),R.importsNotUsedAsValues&&ed("importsNotUsedAsValues","verbatimModuleSyntax")),R.allowImportingTsExtensions&&!(R.noEmit||R.emitDeclarationOnly)&&Zp("allowImportingTsExtensions",p.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);const sr=Ru(R);if(R.resolvePackageJsonExports&&!HT(sr)&&ja(p.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports"),R.resolvePackageJsonImports&&!HT(sr)&&ja(p.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports"),R.customConditions&&!HT(sr)&&ja(p.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions"),sr===100&&!uF(Nt)&&Nt!==200&&Zp("moduleResolution",p.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"bundler"),$4[Nt]&&100<=Nt&&Nt<=199&&!(3<=sr&&sr<=99)){const rr=$4[Nt];Zp("moduleResolution",p.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1,rr,rr)}else if(Rk[sr]&&3<=sr&&sr<=99&&!(100<=Nt&&Nt<=199)){const rr=Rk[sr];Zp("module",p.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1,rr,rr)}if(!R.noEmit&&!R.suppressOutputPathCheck){const rr=pr(),Rr=new Set;yq(rr,Yn=>{R.emitDeclarationOnly||Mr(Yn.jsFilePath,Rr),Mr(Yn.declarationFilePath,Rr)})}function Mr(rr,Rr){if(rr){const Yn=Wr(rr);if(rt.has(Yn)){let zn;R.configFilePath||(zn=vs(void 0,p.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)),zn=vs(zn,p.Cannot_write_file_0_because_it_would_overwrite_input_file,rr),w2(rr,cF(zn))}const Gr=Rt.useCaseSensitiveFileNames()?Yn:km(Yn);Rr.has(Gr)?w2(rr,gc(p.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,rr)):Rr.add(Gr)}}}function he(){const Ae=R.ignoreDeprecations;if(Ae){if(Ae==="5.0")return new Rp(Ae);q()}return Rp.zero}function Xe(Ae,We,bt,Nt){const sr=new Rp(Ae),Mr=new Rp(We),rr=new Rp(pe||R0),Rr=he(),Yn=Mr.compareTo(rr)!==1,Gr=!Yn&&Rr.compareTo(sr)===-1;(Yn||Gr)&&Nt((zn,Yr,ws)=>{Yn?Yr===void 0?bt(zn,Yr,ws,p.Option_0_has_been_removed_Please_remove_it_from_your_configuration,zn):bt(zn,Yr,ws,p.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,zn,Yr):Yr===void 0?bt(zn,Yr,ws,p.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,zn,We,Ae):bt(zn,Yr,ws,p.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,zn,Yr,We,Ae)})}function Ft(){function Ae(We,bt,Nt,sr,...Mr){if(Nt){const rr=vs(void 0,p.Use_0_instead,Nt),Rr=vs(rr,sr,...Mr);Ci(!bt,We,void 0,Rr)}else Ci(!bt,We,void 0,sr,...Mr)}Xe("5.0","5.5",Ae,We=>{R.target===0&&We("target","ES3"),R.noImplicitUseStrict&&We("noImplicitUseStrict"),R.keyofStringsOnly&&We("keyofStringsOnly"),R.suppressExcessPropertyErrors&&We("suppressExcessPropertyErrors"),R.suppressImplicitAnyIndexErrors&&We("suppressImplicitAnyIndexErrors"),R.noStrictGenericChecks&&We("noStrictGenericChecks"),R.charset&&We("charset"),R.out&&We("out",void 0,"outFile"),R.importsNotUsedAsValues&&We("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),R.preserveValueImports&&We("preserveValueImports",void 0,"verbatimModuleSyntax")})}function zr(Ae,We,bt){function Nt(sr,Mr,rr,Rr,...Yn){Kp(We,bt,Rr,...Yn)}Xe("5.0","5.5",Nt,sr=>{Ae.prepend&&sr("prepend")})}function Vn(Ae,We,bt,Nt){var sr;let Mr,rr,Rr=U1(We)?We:void 0;Ae&&((sr=me.get(Ae.path))==null||sr.forEach(ws)),We&&ws(We),Rr&&(Mr==null?void 0:Mr.length)===1&&(Mr=void 0);const Yn=Rr&&H3(Kt,Rr),Gr=Mr&&vs(Mr,p.The_file_is_in_the_program_because_Colon),zn=Ae&&cH(Ae),Yr=vs(zn?Gr?[Gr,...zn]:zn:Gr,bt,...Nt||Ve);return Yn&&c6(Yn)?d5(Yn.file,Yn.pos,Yn.end-Yn.pos,Yr,rr):cF(Yr,rr);function ws(Ta){(Mr||(Mr=[])).push(_H(Kt,Ta)),!Rr&&U1(Ta)?Rr=Ta:Rr!==Ta&&(rr=_r(rr,fa(Ta))),Ta===We&&(We=void 0)}}function Ln(Ae,We,bt,Nt){(ft||(ft=[])).push({kind:1,file:Ae&&Ae.path,fileProcessingReason:We,diagnostic:bt,args:Nt})}function ji(Ae,We,bt){yr.add(Vn(Ae,void 0,We,bt))}function fa(Ae){if(U1(Ae)){const Nt=H3(Kt,Ae);let sr;switch(Ae.kind){case 3:sr=p.File_is_included_via_import_here;break;case 4:sr=p.File_is_included_via_reference_here;break;case 5:sr=p.File_is_included_via_type_library_reference_here;break;case 7:sr=p.File_is_included_via_library_reference_here;break;default:E.assertNever(Ae)}return c6(Nt)?xl(Nt.file,Nt.pos,Nt.end-Nt.pos,sr):void 0}if(!R.configFile)return;let We,bt;switch(Ae.kind){case 0:if(!R.configFile.configFileSpecs)return;const Nt=Xi(re[Ae.index],_i),sr=lH(Kt,Nt);if(sr){We=S5(R.configFile,"files",sr),bt=p.File_is_matched_by_files_list_specified_here;break}const Mr=uH(Kt,Nt);if(!Mr||!ls(Mr))return;We=S5(R.configFile,"include",Mr),bt=p.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:const rr=E.checkDefined(ne==null?void 0:ne[Ae.index]),Rr=V9(ue,ne,(ws,Ta,ku)=>ws===rr?{sourceFile:(Ta==null?void 0:Ta.sourceFile)||R.configFile,index:ku}:void 0);if(!Rr)return;const{sourceFile:Yn,index:Gr}=Rr,zn=h8(Yn,"references",ws=>ju(ws.initializer)?ws.initializer:void 0);return zn&&zn.elements.length>Gr?mp(Yn,zn.elements[Gr],Ae.kind===2?p.File_is_output_from_referenced_project_specified_here:p.File_is_source_from_referenced_project_specified_here):void 0;case 8:if(!R.types)return;We=Cy("types",Ae.typeReference),bt=p.File_is_entry_point_of_type_library_specified_here;break;case 6:if(Ae.index!==void 0){We=Cy("lib",R.lib[Ae.index]),bt=p.File_is_library_specified_here;break}const Yr=_l(rA.type,(ws,Ta)=>ws===Fa(R)?Ta:void 0);We=Yr?p_("target",Yr):void 0,bt=p.File_is_default_library_for_target_specified_here;break;default:E.assertNever(Ae)}return We&&mp(R.configFile,We,bt)}function pa(){const Ae=R.suppressOutputPathCheck?void 0:c0(R);V9(ue,ne,(We,bt,Nt)=>{const sr=(bt?bt.commandLine.projectReferences:ue)[Nt],Mr=bt&&bt.sourceFile;if(zr(sr,Mr,Nt),!We){Kp(Mr,Nt,p.File_0_not_found,sr.path);return}const rr=We.commandLine.options;if((!rr.composite||rr.noEmit)&&(bt?bt.commandLine.fileNames:re).length&&(rr.composite||Kp(Mr,Nt,p.Referenced_project_0_must_have_setting_composite_Colon_true,sr.path),rr.noEmit&&Kp(Mr,Nt,p.Referenced_project_0_may_not_disable_emit,sr.path)),sr.prepend){const Rr=no(rr);Rr?Rt.fileExists(Rr)||Kp(Mr,Nt,p.Output_file_0_from_project_1_does_not_exist,Rr,sr.path):Kp(Mr,Nt,p.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,sr.path)}!bt&&Ae&&Ae===c0(rr)&&(Kp(Mr,Nt,p.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,Ae,sr.path),Ue.set(Wr(Ae),!0))})}function lc(Ae,We,bt,...Nt){let sr=!0;G_(Mr=>{ua(Mr.initializer)&&iC(Mr.initializer,Ae,rr=>{const Rr=rr.initializer;ju(Rr)&&Rr.elements.length>We&&(yr.add(mp(R.configFile,Rr.elements[We],bt,...Nt)),sr=!1)})}),sr&&yr.add(gc(bt,...Nt))}function Rl(Ae,We,bt,...Nt){let sr=!0;G_(Mr=>{ua(Mr.initializer)&&h0(Mr.initializer,Ae,We,void 0,bt,...Nt)&&(sr=!1)}),sr&&yr.add(gc(bt,...Nt))}function Zc(Ae,We){return iC(ph(),Ae,We)}function G_(Ae){return Zc("paths",Ae)}function p_(Ae,We){return Zc(Ae,bt=>aa(bt.initializer)&&bt.initializer.text===We?bt.initializer:void 0)}function Cy(Ae,We){const bt=ph();return bt&&$te(bt,Ae,We)}function ja(Ae,We,bt,Nt){Ci(!0,We,bt,Ae,We,bt,Nt)}function Zp(Ae,We,...bt){Ci(!1,Ae,void 0,We,...bt)}function Kp(Ae,We,bt,...Nt){const sr=h8(Ae||R.configFile,"references",Mr=>ju(Mr.initializer)?Mr.initializer:void 0);sr&&sr.elements.length>We?yr.add(mp(Ae||R.configFile,sr.elements[We],bt,...Nt)):yr.add(gc(bt,...Nt))}function Ci(Ae,We,bt,Nt,...sr){const Mr=ph();(!Mr||!h0(Mr,Ae,We,bt,Nt,...sr))&&("messageText"in Nt?yr.add(cF(Nt)):yr.add(gc(Nt,...sr)))}function ph(){return Et===void 0&&(Et=iC(yE(R.configFile),"compilerOptions",Ae=>ua(Ae.initializer)?Ae.initializer:void 0)||!1),Et||void 0}function h0(Ae,We,bt,Nt,sr,...Mr){let rr=!1;return iC(Ae,bt,Rr=>{"messageText"in sr?yr.add(Zg(R.configFile,We?Rr.name:Rr.initializer,sr)):yr.add(mp(R.configFile,We?Rr.name:Rr.initializer,sr,...Mr)),rr=!0},Nt),rr}function ed(Ae,We){const bt=ph();bt?h0(bt,!0,Ae,void 0,p.Option_0_is_redundant_and_cannot_be_specified_with_option_1,Ae,We):ja(p.Option_0_is_redundant_and_cannot_be_specified_with_option_1,Ae,We)}function w2(Ae,We){Ue.set(Wr(Ae),!0),yr.add(We)}function A2(Ae){if(R.noEmit)return!1;const We=Wr(Ae);if(zo(We))return!1;const bt=no(R);if(bt)return Ff(We,bt)||Ff(We,$u(bt)+".d.ts");if(R.declarationDir&&jp(R.declarationDir,We,_i,!Rt.useCaseSensitiveFileNames()))return!0;if(R.outDir)return jp(R.outDir,We,_i,!Rt.useCaseSensitiveFileNames());if(Gc(We,FC)||Hl(We)){const Nt=$u(We);return!!zo(Nt+".ts")||!!zo(Nt+".tsx")}return!1}function Ff(Ae,We){return Gg(Ae,We,_i,!Rt.useCaseSensitiveFileNames())===0}function om(){return Rt.getSymlinkCache?Rt.getSymlinkCache():(ae||(ae=IW(_i,Q)),Se&&!ae.hasProcessedResolutions()&&ae.setSymlinksFromResolutions(A,le,Fe),ae)}function Of(Ae,We){var bt;const Nt=((bt=Er(Ae))==null?void 0:bt.commandLine.options)||R;return Mq(Ae,We,Nt)}function dh(Ae,We){return Of(Ae,wA(Ae,We))}}function MRe(e){let t;const n=e.compilerHost.fileExists,i=e.compilerHost.directoryExists,s=e.compilerHost.getDirectories,o=e.compilerHost.realpath;if(!e.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:Ca,fileExists:f};e.compilerHost.fileExists=f;let c;return i&&(c=e.compilerHost.directoryExists=T=>i.call(e.compilerHost,T)?(y(T),!0):e.getResolvedProjectReferences()?(t||(t=new Set,e.forEachResolvedProjectReference(k=>{const w=no(k.commandLine.options);if(w)t.add(Un(e.toPath(w)));else{const P=k.commandLine.options.declarationDir||k.commandLine.options.outDir;P&&t.add(e.toPath(P))}})),S(T,!1)):!1),s&&(e.compilerHost.getDirectories=T=>!e.getResolvedProjectReferences()||i&&i.call(e.compilerHost,T)?s.call(e.compilerHost,T):[]),o&&(e.compilerHost.realpath=T=>{var k;return((k=e.getSymlinkCache().getSymlinkedFiles())==null?void 0:k.get(e.toPath(T)))||o.call(e.compilerHost,T)}),{onProgramCreateComplete:u,fileExists:f,directoryExists:c};function u(){e.compilerHost.fileExists=n,e.compilerHost.directoryExists=i,e.compilerHost.getDirectories=s}function f(T){return n.call(e.compilerHost,T)?!0:!e.getResolvedProjectReferences()||!Hl(T)?!1:S(T,!0)}function g(T){const k=e.getSourceOfProjectReferenceRedirect(e.toPath(T));return k!==void 0?ls(k)?n.call(e.compilerHost,k):!0:void 0}function d(T){const k=e.toPath(T),w=`${k}${Io}`;return Am(t,P=>k===P||Vi(P,w)||Vi(k,`${P}/`))}function y(T){var k;if(!e.getResolvedProjectReferences()||YE(T)||!o||!T.includes(zm))return;const w=e.getSymlinkCache(),P=ul(e.toPath(T));if((k=w.getSymlinkedDirectories())!=null&&k.has(P))return;const F=Hs(o.call(e.compilerHost,T));let J;if(F===T||(J=ul(e.toPath(F)))===P){w.setSymlinkedDirectory(P,!1);return}w.setSymlinkedDirectory(T,{real:ul(F),realPath:J})}function S(T,k){var w;const P=k?j=>g(j):j=>d(j),F=P(T);if(F!==void 0)return F;const J=e.getSymlinkCache(),U=J.getSymlinkedDirectories();if(!U)return!1;const $=e.toPath(T);return $.includes(zm)?k&&((w=J.getSymlinkedFiles())!=null&&w.has($))?!0:Lp(U.entries(),([j,re])=>{if(!re||!Vi($,j))return;const R=P($.replace(j,re.realPath));if(k&&R){const Y=Xi(T,e.compilerHost.getCurrentDirectory());J.setSymlinkedFile($,`${re.real}${Y.replace(new RegExp(j,"i"),"")}`)}return R})||!1:!1}}function Vq(e,t,n,i){const s=e.getCompilerOptions();if(s.noEmit)return e.getSemanticDiagnostics(t,i),t||no(s)?Q9:e.emitBuildInfo(n,i);if(!s.noEmitOnError)return;let o=[...e.getOptionsDiagnostics(i),...e.getSyntacticDiagnostics(t,i),...e.getGlobalDiagnostics(i),...e.getSemanticDiagnostics(t,i)];if(o.length===0&&Gf(e.getCompilerOptions())&&(o=e.getDeclarationDiagnostics(void 0,i)),!o.length)return;let c;if(!t&&!no(s)){const u=e.emitBuildInfo(n,i);u.diagnostics&&(o=[...o,...u.diagnostics]),c=u.emittedFiles}return{diagnostics:o,sourceMaps:void 0,emittedFiles:c,emitSkipped:!0}}function H9(e,t){return An(e,n=>!n.skippedOn||!t[n.skippedOn])}function G9(e,t=e){return{fileExists:n=>t.fileExists(n),readDirectory(n,i,s,o,c){return E.assertIsDefined(t.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(n,i,s,o,c)},readFile:n=>t.readFile(n),directoryExists:Os(t,t.directoryExists),getDirectories:Os(t,t.getDirectories),realpath:Os(t,t.realpath),useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),getCurrentDirectory:()=>e.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:e.onUnRecoverableConfigFileDiagnostic||f1,trace:e.trace?n=>e.trace(n):void 0}}function Uq(e,t,n,i){if(!e)return Ve;let s;for(let o=0;oi);for(const i of t)i.kind===11&&n.push(i);return n}function wA({imports:e,moduleAugmentations:t},n){if(n(e.Grey="\x1B[90m",e.Red="\x1B[91m",e.Yellow="\x1B[93m",e.Blue="\x1B[94m",e.Cyan="\x1B[96m",e))(Hq||{}),Gq="\x1B[7m",$q=" ",Rae="\x1B[0m",jae="...",aSe=" ",Bae=" ",Jae={resolvedModule:void 0,resolvedTypeReferenceDirective:void 0},$9={getName:Mae,getMode:(e,t,n)=>Lq(t,e,n)},oSe={getName:jq,getMode:(e,t)=>EA(e,t==null?void 0:t.impliedNodeFormat)},u6="__inferred type names__.ts",X9=new Set([p.Cannot_redeclare_block_scoped_variable_0.code,p.A_module_cannot_have_multiple_default_exports.code,p.Another_export_default_is_here.code,p.The_first_export_default_is_here.code,p.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,p.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,p.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,p.constructor_is_a_reserved_word.code,p.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,p.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,p.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,p.Invalid_use_of_0_in_strict_mode.code,p.A_label_is_not_allowed_here.code,p.with_statements_are_not_allowed_in_strict_mode.code,p.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,p.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,p.A_class_declaration_without_the_default_modifier_must_have_a_name.code,p.A_class_member_cannot_have_the_0_keyword.code,p.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,p.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,p.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,p.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,p.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,p.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,p.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,p.A_destructuring_declaration_must_have_an_initializer.code,p.A_get_accessor_cannot_have_parameters.code,p.A_rest_element_cannot_contain_a_binding_pattern.code,p.A_rest_element_cannot_have_a_property_name.code,p.A_rest_element_cannot_have_an_initializer.code,p.A_rest_element_must_be_last_in_a_destructuring_pattern.code,p.A_rest_parameter_cannot_have_an_initializer.code,p.A_rest_parameter_must_be_last_in_a_parameter_list.code,p.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,p.A_return_statement_cannot_be_used_inside_a_class_static_block.code,p.A_set_accessor_cannot_have_rest_parameter.code,p.A_set_accessor_must_have_exactly_one_parameter.code,p.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,p.An_export_declaration_cannot_have_modifiers.code,p.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,p.An_import_declaration_cannot_have_modifiers.code,p.An_object_member_cannot_be_declared_optional.code,p.Argument_of_dynamic_import_cannot_be_spread_element.code,p.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,p.Cannot_redeclare_identifier_0_in_catch_clause.code,p.Catch_clause_variable_cannot_have_an_initializer.code,p.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,p.Classes_can_only_extend_a_single_class.code,p.Classes_may_not_have_a_field_named_constructor.code,p.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,p.Duplicate_label_0.code,p.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments.code,p.for_await_loops_cannot_be_used_inside_a_class_static_block.code,p.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,p.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,p.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,p.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,p.Jump_target_cannot_cross_function_boundary.code,p.Line_terminator_not_permitted_before_arrow.code,p.Modifiers_cannot_appear_here.code,p.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,p.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,p.Private_identifiers_are_not_allowed_outside_class_bodies.code,p.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,p.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,p.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,p.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,p.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,p.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,p.Trailing_comma_not_allowed.code,p.Variable_declaration_list_cannot_be_empty.code,p._0_and_1_operations_cannot_be_mixed_without_parentheses.code,p._0_expected.code,p._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,p._0_list_cannot_be_empty.code,p._0_modifier_already_seen.code,p._0_modifier_cannot_appear_on_a_constructor_declaration.code,p._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,p._0_modifier_cannot_appear_on_a_parameter.code,p._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,p._0_modifier_cannot_be_used_here.code,p._0_modifier_must_precede_1_modifier.code,p._0_declarations_can_only_be_declared_inside_a_block.code,p._0_declarations_must_be_initialized.code,p.extends_clause_already_seen.code,p.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,p.Class_constructor_may_not_be_a_generator.code,p.Class_constructor_may_not_be_an_accessor.code,p.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,p.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,p.Private_field_0_must_be_declared_in_an_enclosing_class.code,p.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value.code]),Q9={diagnostics:Ve,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}}),jRe=wt({"src/compiler/builderStatePublic.ts"(){}});function zae(e,t,n,i,s,o){const c=[],{emitSkipped:u,diagnostics:f}=e.emit(t,g,i,n,s,o);return{outputFiles:c,emitSkipped:u,diagnostics:f};function g(d,y,S){c.push({name:d,writeByteOrderMark:S,text:y})}}var Qp,BRe=wt({"src/compiler/builderState.ts"(){Fs(),(e=>{function t(){function H(q,ee,oe){const Se={getKeys:ae=>ee.get(ae),getValues:ae=>q.get(ae),keys:()=>q.keys(),deleteKey:ae=>{(oe||(oe=new Set)).add(ae);const K=q.get(ae);return K?(K.forEach(fe=>i(ee,fe,ae)),q.delete(ae),!0):!1},set:(ae,K)=>{oe==null||oe.delete(ae);const fe=q.get(ae);return q.set(ae,K),fe==null||fe.forEach(ke=>{K.has(ke)||i(ee,ke,ae)}),K.forEach(ke=>{fe!=null&&fe.has(ke)||n(ee,ke,ae)}),Se}};return Se}return H(new Map,new Map,void 0)}e.createManyToManyPathMap=t;function n(H,q,ee){let oe=H.get(q);oe||(oe=new Set,H.set(q,oe)),oe.add(ee)}function i(H,q,ee){const oe=H.get(q);return oe!=null&&oe.delete(ee)?(oe.size||H.delete(q),!0):!1}function s(H){return Ri(H.declarations,q=>{var ee;return(ee=wr(q))==null?void 0:ee.resolvedPath})}function o(H,q){const ee=H.getSymbolAtLocation(q);return ee&&s(ee)}function c(H,q,ee,oe){return No(H.getProjectReferenceRedirect(q)||q,ee,oe)}function u(H,q,ee){let oe;if(q.imports&&q.imports.length>0){const fe=H.getTypeChecker();for(const ke of q.imports){const Oe=o(fe,ke);Oe==null||Oe.forEach(K)}}const Se=Un(q.resolvedPath);if(q.referencedFiles&&q.referencedFiles.length>0)for(const fe of q.referencedFiles){const ke=c(H,fe.fileName,Se,ee);K(ke)}if(H.forEachResolvedTypeReferenceDirective(({resolvedTypeReferenceDirective:fe})=>{if(!fe)return;const ke=fe.resolvedFileName,Oe=c(H,ke,Se,ee);K(Oe)},q),q.moduleAugmentations.length){const fe=H.getTypeChecker();for(const ke of q.moduleAugmentations){if(!aa(ke))continue;const Oe=fe.getSymbolAtLocation(ke);Oe&&ae(Oe)}}for(const fe of H.getTypeChecker().getAmbientModules())fe.declarations&&fe.declarations.length>1&&ae(fe);return oe;function ae(fe){if(fe.declarations)for(const ke of fe.declarations){const Oe=wr(ke);Oe&&Oe!==q&&K(Oe.resolvedPath)}}function K(fe){(oe||(oe=new Set)).add(fe)}}function f(H,q){return q&&!q.referencedMap==!H}e.canReuseOldState=f;function g(H,q,ee){var oe,Se,ae;const K=new Map,fe=H.getCompilerOptions(),ke=no(fe),Oe=fe.module!==0&&!ke?t():void 0,me=Oe?t():void 0,be=f(Oe,q);H.getTypeChecker();for(const xe of H.getSourceFiles()){const De=E.checkDefined(xe.version,"Program intended to be used with Builder should have source files with versions set"),ft=be?(oe=q.oldSignatures)==null?void 0:oe.get(xe.resolvedPath):void 0,ge=ft===void 0?be?(Se=q.fileInfos.get(xe.resolvedPath))==null?void 0:Se.signature:void 0:ft||void 0;if(Oe){const Fe=u(H,xe,H.getCanonicalFileName);if(Fe&&Oe.set(xe.resolvedPath,Fe),be){const $e=(ae=q.oldExportedModulesMap)==null?void 0:ae.get(xe.resolvedPath),Pt=$e===void 0?q.exportedModulesMap.getValues(xe.resolvedPath):$e||void 0;Pt&&me.set(xe.resolvedPath,Pt)}}K.set(xe.resolvedPath,{version:De,signature:ge,affectsGlobalScope:ke?void 0:R(xe)||void 0,impliedFormat:xe.impliedNodeFormat})}return{fileInfos:K,referencedMap:Oe,exportedModulesMap:me,useFileVersionAsSignature:!ee&&!be}}e.create=g;function d(H){H.allFilesExcludingDefaultLibraryFile=void 0,H.allFileNames=void 0}e.releaseCache=d;function y(H,q,ee,oe,Se){var ae,K;const fe=S(H,q,ee,oe,Se);return(ae=H.oldSignatures)==null||ae.clear(),(K=H.oldExportedModulesMap)==null||K.clear(),fe}e.getFilesAffectedBy=y;function S(H,q,ee,oe,Se){const ae=q.getSourceFileByPath(ee);return ae?w(H,q,ae,oe,Se)?(H.referencedMap?pe:ue)(H,q,ae,oe,Se):[ae]:Ve}e.getFilesAffectedByWithOldState=S;function T(H,q,ee){H.fileInfos.get(ee).signature=q,(H.hasCalledUpdateShapeSignature||(H.hasCalledUpdateShapeSignature=new Set)).add(ee)}e.updateSignatureOfFile=T;function k(H,q,ee,oe,Se){H.emit(q,(ae,K,fe,ke,Oe,me)=>{E.assert(Hl(ae),`File extension for signature expected to be dts: Got:: ${ae}`),Se(Qq(H,q,K,oe,me),Oe)},ee,!0,void 0,!0)}e.computeDtsSignature=k;function w(H,q,ee,oe,Se,ae=H.useFileVersionAsSignature){var K;if((K=H.hasCalledUpdateShapeSignature)!=null&&K.has(ee.resolvedPath))return!1;const fe=H.fileInfos.get(ee.resolvedPath),ke=fe.signature;let Oe;if(!ee.isDeclarationFile&&!ae&&k(q,ee,oe,Se,(me,be)=>{Oe=me,Oe!==ke&&P(H,ee,be[0].exportedModulesFromDeclarationEmit)}),Oe===void 0&&(Oe=ee.version,H.exportedModulesMap&&Oe!==ke)){(H.oldExportedModulesMap||(H.oldExportedModulesMap=new Map)).set(ee.resolvedPath,H.exportedModulesMap.getValues(ee.resolvedPath)||!1);const me=H.referencedMap?H.referencedMap.getValues(ee.resolvedPath):void 0;me?H.exportedModulesMap.set(ee.resolvedPath,me):H.exportedModulesMap.deleteKey(ee.resolvedPath)}return(H.oldSignatures||(H.oldSignatures=new Map)).set(ee.resolvedPath,ke||!1),(H.hasCalledUpdateShapeSignature||(H.hasCalledUpdateShapeSignature=new Set)).add(ee.resolvedPath),fe.signature=Oe,Oe!==ke}e.updateShapeSignature=w;function P(H,q,ee){if(!H.exportedModulesMap)return;(H.oldExportedModulesMap||(H.oldExportedModulesMap=new Map)).set(q.resolvedPath,H.exportedModulesMap.getValues(q.resolvedPath)||!1);const oe=F(ee);oe?H.exportedModulesMap.set(q.resolvedPath,oe):H.exportedModulesMap.deleteKey(q.resolvedPath)}e.updateExportedModules=P;function F(H){let q;return H==null||H.forEach(ee=>s(ee).forEach(oe=>(q??(q=new Set)).add(oe))),q}e.getExportedModules=F;function J(H,q,ee){const oe=q.getCompilerOptions();if(no(oe)||!H.referencedMap||R(ee))return U(H,q);const Se=new Set,ae=[ee.resolvedPath];for(;ae.length;){const K=ae.pop();if(!Se.has(K)){Se.add(K);const fe=H.referencedMap.getValues(K);if(fe)for(const ke of fe.keys())ae.push(ke)}}return gs(J4(Se.keys(),K=>{var fe;return((fe=q.getSourceFileByPath(K))==null?void 0:fe.fileName)??K}))}e.getAllDependencies=J;function U(H,q){if(!H.allFileNames){const ee=q.getSourceFiles();H.allFileNames=ee===Ve?Ve:ee.map(oe=>oe.fileName)}return H.allFileNames}function $(H,q){const ee=H.referencedMap.getKeys(q);return ee?gs(ee.keys()):[]}e.getReferencedByPaths=$;function j(H){for(const q of H.statements)if(!f5(q))return!1;return!0}function re(H){return ct(H.moduleAugmentations,q=>Vd(q.parent))}function R(H){return re(H)||!af(H)&&!gp(H)&&!j(H)}function Y(H,q,ee){if(H.allFilesExcludingDefaultLibraryFile)return H.allFilesExcludingDefaultLibraryFile;let oe;ee&&Se(ee);for(const ae of q.getSourceFiles())ae!==ee&&Se(ae);return H.allFilesExcludingDefaultLibraryFile=oe||Ve,H.allFilesExcludingDefaultLibraryFile;function Se(ae){q.isSourceFileDefaultLibrary(ae)||(oe||(oe=[])).push(ae)}}e.getAllFilesExcludingDefaultLibraryFile=Y;function ue(H,q,ee){const oe=q.getCompilerOptions();return oe&&no(oe)?[ee]:Y(H,q,ee)}function pe(H,q,ee,oe,Se){if(R(ee))return Y(H,q,ee);const ae=q.getCompilerOptions();if(ae&&(xp(ae)||no(ae)))return[ee];const K=new Map;K.set(ee.resolvedPath,ee);const fe=$(H,ee.resolvedPath);for(;fe.length>0;){const ke=fe.pop();if(!K.has(ke)){const Oe=q.getSourceFileByPath(ke);K.set(ke,Oe),Oe&&w(H,q,Oe,oe,Se)&&fe.push(...$(H,Oe.resolvedPath))}}return gs(J4(K.values(),ke=>ke))}})(Qp||(Qp={}))}});function vy(e){let t=1;return e.sourceMap&&(t=t|2),e.inlineSourceMap&&(t=t|4),Gf(e)&&(t=t|8),e.declarationMap&&(t=t|16),e.emitDeclarationOnly&&(t=t&24),t}function _6(e,t){const n=t&&(zh(t)?t:vy(t)),i=zh(e)?e:vy(e);if(n===i)return 0;if(!n||!i)return i;const s=n^i;let o=0;return s&7&&(o=i&7),s&24&&(o=o|i&24),o}function JRe(e,t){return e===t||e!==void 0&&t!==void 0&&e.size===t.size&&!Am(e,n=>!t.has(n))}function zRe(e,t){var n,i;const s=Qp.create(e,t,!1);s.program=e;const o=e.getCompilerOptions();s.compilerOptions=o;const c=no(o);c?o.composite&&(t!=null&&t.outSignature)&&c===no(t==null?void 0:t.compilerOptions)&&(s.outSignature=t.outSignature&&lSe(o,t.compilerOptions,t.outSignature)):s.semanticDiagnosticsPerFile=new Map,s.changedFilesSet=new Set,s.latestChangedDtsFile=o.composite?t==null?void 0:t.latestChangedDtsFile:void 0;const u=Qp.canReuseOldState(s.referencedMap,t),f=u?t.compilerOptions:void 0,g=u&&t.semanticDiagnosticsPerFile&&!!s.semanticDiagnosticsPerFile&&!nne(o,f),d=o.composite&&(t==null?void 0:t.emitSignatures)&&!c&&!sne(o,t.compilerOptions);u?((n=t.changedFilesSet)==null||n.forEach(w=>s.changedFilesSet.add(w)),!c&&((i=t.affectedFilesPendingEmit)!=null&&i.size)&&(s.affectedFilesPendingEmit=new Map(t.affectedFilesPendingEmit),s.seenAffectedFiles=new Set),s.programEmitPending=t.programEmitPending):s.buildInfoEmitPending=!0;const y=s.referencedMap,S=u?t.referencedMap:void 0,T=g&&!o.skipLibCheck==!f.skipLibCheck,k=T&&!o.skipDefaultLibCheck==!f.skipDefaultLibCheck;if(s.fileInfos.forEach((w,P)=>{var F;let J,U;if(!u||!(J=t.fileInfos.get(P))||J.version!==w.version||J.impliedFormat!==w.impliedFormat||!JRe(U=y&&y.getValues(P),S&&S.getValues(P))||U&&Am(U,$=>!s.fileInfos.has($)&&t.fileInfos.has($)))cSe(s,P);else{const $=e.getSourceFileByPath(P),j=(F=t.emitDiagnosticsPerFile)==null?void 0:F.get(P);if(j&&(s.emitDiagnosticsPerFile??(s.emitDiagnosticsPerFile=new Map)).set(P,t.hasReusableDiagnostic?fSe(j,e):uSe(j,e)),g){if($.isDeclarationFile&&!T||$.hasNoDefaultLib&&!k)return;const re=t.semanticDiagnosticsPerFile.get(P);re&&(s.semanticDiagnosticsPerFile.set(P,t.hasReusableDiagnostic?fSe(re,e):uSe(re,e)),(s.semanticDiagnosticsFromOldState??(s.semanticDiagnosticsFromOldState=new Set)).add(P))}}if(d){const $=t.emitSignatures.get(P);$&&(s.emitSignatures??(s.emitSignatures=new Map)).set(P,lSe(o,t.compilerOptions,$))}}),u&&_l(t.fileInfos,(w,P)=>s.fileInfos.has(P)?!1:c||w.affectsGlobalScope?!0:(s.buildInfoEmitPending=!0,!1)))Qp.getAllFilesExcludingDefaultLibraryFile(s,e,void 0).forEach(w=>cSe(s,w.resolvedPath));else if(f){const w=ine(o,f)?vy(o):_6(o,f);w!==0&&(c?s.programEmitPending=s.programEmitPending?s.programEmitPending|w:w:(e.getSourceFiles().forEach(P=>{s.changedFilesSet.has(P.resolvedPath)||Gae(s,P.resolvedPath,w)}),E.assert(!s.seenAffectedFiles||!s.seenAffectedFiles.size),s.seenAffectedFiles=s.seenAffectedFiles||new Set,s.buildInfoEmitPending=!0))}return c&&!s.changedFilesSet.size&&(u&&(s.bundle=t.bundle),ct(e.getProjectReferences(),w=>!!w.prepend)&&(s.programEmitPending=vy(o))),s}function cSe(e,t){e.changedFilesSet.add(t),e.buildInfoEmitPending=!0,e.programEmitPending=void 0}function lSe(e,t,n){return!!e.declarationMap==!!t.declarationMap?n:ls(n)?[n]:n[0]}function uSe(e,t){return e.length?rl(e,n=>{if(ls(n.messageText))return n;const i=Wae(n.messageText,n.file,t,s=>{var o;return(o=s.repopulateInfo)==null?void 0:o.call(s)});return i===n.messageText?n:{...n,messageText:i}}):e}function Wae(e,t,n,i){const s=i(e);if(s)return{...a5(t,n,s.moduleReference,s.mode,s.packageName||s.moduleReference),next:_Se(e.next,t,n,i)};const o=_Se(e.next,t,n,i);return o===e.next?e:{...e,next:o}}function _Se(e,t,n,i){return rl(e,s=>Wae(s,t,n,i))}function fSe(e,t){if(!e.length)return Ve;let n;return e.map(s=>{const o=pSe(s,t,i);o.reportsUnnecessary=s.reportsUnnecessary,o.reportsDeprecated=s.reportDeprecated,o.source=s.source,o.skippedOn=s.skippedOn;const{relatedInformation:c}=s;return o.relatedInformation=c?c.length?c.map(u=>pSe(u,t,i)):[]:void 0,o});function i(s){return n??(n=Un(Xi(c0(t.getCompilerOptions()),t.getCurrentDirectory()))),No(s,n,t.getCanonicalFileName)}}function pSe(e,t,n){const{file:i}=e,s=i?t.getSourceFileByPath(n(i)):void 0;return{...e,file:s,messageText:ls(e.messageText)?e.messageText:Wae(e.messageText,s,t,o=>o.info)}}function WRe(e){Qp.releaseCache(e),e.program=void 0}function VRe(e){const t=no(e.compilerOptions);return E.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 URe(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 dSe(e,t){E.assert(!t||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==t||!e.semanticDiagnosticsPerFile.has(t.resolvedPath))}function mSe(e,t,n){for(var i,s;;){const{affectedFiles:o}=e;if(o){const g=e.seenAffectedFiles;let d=e.affectedFilesIndex;for(;d{const o=i&7;o?e.affectedFilesPendingEmit.set(s,o):e.affectedFilesPendingEmit.delete(s)})}}function HRe(e,t){var n;if((n=e.affectedFilesPendingEmit)!=null&&n.size)return _l(e.affectedFilesPendingEmit,(i,s)=>{var o;const c=e.program.getSourceFileByPath(s);if(!c||!Ob(c,e.program)){e.affectedFilesPendingEmit.delete(s);return}const u=(o=e.seenEmittedFiles)==null?void 0:o.get(c.resolvedPath);let f=_6(i,u);if(t&&(f=f&24),f)return{affectedFile:c,emitKind:f}})}function GRe(e){var t;if((t=e.emitDiagnosticsPerFile)!=null&&t.size)return _l(e.emitDiagnosticsPerFile,(n,i)=>{var s;const o=e.program.getSourceFileByPath(i);if(!o||!Ob(o,e.program)){e.emitDiagnosticsPerFile.delete(i);return}const c=((s=e.seenEmittedFiles)==null?void 0:s.get(o.resolvedPath))||0;if(!(c&24))return{affectedFile:o,diagnostics:n,seenKind:c}})}function gSe(e){if(!e.cleanedDiagnosticsOfLibFiles){e.cleanedDiagnosticsOfLibFiles=!0;const t=E.checkDefined(e.program),n=t.getCompilerOptions();er(t.getSourceFiles(),i=>t.isSourceFileDefaultLibrary(i)&&!GE(i,n,t)&&Vae(e,i.resolvedPath))}}function $Re(e,t,n,i){if(Vae(e,t.resolvedPath),e.allFilesExcludingDefaultLibraryFile===e.affectedFiles){gSe(e),Qp.updateShapeSignature(e,E.checkDefined(e.program),t,n,i);return}e.compilerOptions.assumeChangesOnlyAffectDirectDependencies||XRe(e,t,n,i)}function Xq(e,t,n,i){if(Vae(e,t),!e.changedFilesSet.has(t)){const s=E.checkDefined(e.program),o=s.getSourceFileByPath(t);o&&(Qp.updateShapeSignature(e,s,o,n,i,!0),Gf(e.compilerOptions)&&Gae(e,t,e.compilerOptions.declarationMap?24:8))}}function Vae(e,t){return e.semanticDiagnosticsFromOldState?(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size):!0}function hSe(e,t){const n=E.checkDefined(e.oldSignatures).get(t)||void 0;return E.checkDefined(e.fileInfos.get(t)).signature!==n}function Uae(e,t,n,i){var s;return(s=e.fileInfos.get(t))!=null&&s.affectsGlobalScope?(Qp.getAllFilesExcludingDefaultLibraryFile(e,e.program,void 0).forEach(o=>Xq(e,o.resolvedPath,n,i)),gSe(e),!0):!1}function XRe(e,t,n,i){var s;if(!e.exportedModulesMap||!e.changedFilesSet.has(t.resolvedPath)||!hSe(e,t.resolvedPath))return;if(xp(e.compilerOptions)){const c=new Map;c.set(t.resolvedPath,!0);const u=Qp.getReferencedByPaths(e,t.resolvedPath);for(;u.length>0;){const f=u.pop();if(!c.has(f)){if(c.set(f,!0),Uae(e,f,n,i))return;if(Xq(e,f,n,i),hSe(e,f)){const g=E.checkDefined(e.program).getSourceFileByPath(f);u.push(...Qp.getReferencedByPaths(e,g.resolvedPath))}}}}const o=new Set;(s=e.exportedModulesMap.getKeys(t.resolvedPath))==null||s.forEach(c=>{if(Uae(e,c,n,i))return!0;const u=e.referencedMap.getKeys(c);return u&&Am(u,f=>ySe(e,f,o,n,i))})}function ySe(e,t,n,i,s){var o,c;if(_1(n,t)){if(Uae(e,t,i,s))return!0;Xq(e,t,i,s),(o=e.exportedModulesMap.getKeys(t))==null||o.forEach(u=>ySe(e,u,n,i,s)),(c=e.referencedMap.getKeys(t))==null||c.forEach(u=>!n.has(u)&&Xq(e,u,i,s))}}function qae(e,t,n){return es(QRe(e,t,n),E.checkDefined(e.program).getProgramDiagnostics(t))}function QRe(e,t,n){const i=t.resolvedPath;if(e.semanticDiagnosticsPerFile){const o=e.semanticDiagnosticsPerFile.get(i);if(o)return H9(o,e.compilerOptions)}const s=E.checkDefined(e.program).getBindAndCheckDiagnostics(t,n);return e.semanticDiagnosticsPerFile&&e.semanticDiagnosticsPerFile.set(i,s),H9(s,e.compilerOptions)}function Hae(e){return!!no(e.options||{})}function YRe(e,t){var n,i,s;const o=E.checkDefined(e.program).getCurrentDirectory(),c=Un(Xi(c0(e.compilerOptions),o)),u=e.latestChangedDtsFile?re(e.latestChangedDtsFile):void 0,f=[],g=new Map,d=[];if(no(e.compilerOptions)){const fe=gs(e.fileInfos.entries(),([De,ft])=>{const ge=Y(De);return pe(De,ge),ft.impliedFormat?{version:ft.version,impliedFormat:ft.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:ft.version}),ke={fileNames:f,fileInfos:fe,root:d,options:H(e.compilerOptions),outSignature:e.outSignature,latestChangedDtsFile:u,pendingEmit:e.programEmitPending?e.programEmitPending===vy(e.compilerOptions)?!1:e.programEmitPending:void 0},{js:Oe,dts:me,commonSourceDirectory:be,sourceFiles:xe}=t;return e.bundle=t={commonSourceDirectory:be,sourceFiles:xe,js:Oe||(e.compilerOptions.emitDeclarationOnly||(n=e.bundle)==null?void 0:n.js),dts:me||(Gf(e.compilerOptions)?(i=e.bundle)==null?void 0:i.dts:void 0)},bA(ke,t)}let y,S,T;const k=gs(e.fileInfos.entries(),([fe,ke])=>{var Oe,me;const be=Y(fe);pe(fe,be),E.assert(f[be-1]===R(fe));const xe=(Oe=e.oldSignatures)==null?void 0:Oe.get(fe),De=xe!==void 0?xe||void 0:ke.signature;if(e.compilerOptions.composite){const ft=e.program.getSourceFileByPath(fe);if(!gp(ft)&&Ob(ft,e.program)){const ge=(me=e.emitSignatures)==null?void 0:me.get(fe);ge!==De&&(T||(T=[])).push(ge===void 0?be:[be,!ls(ge)&&ge[0]===De?Ve:ge])}}return ke.version===De?ke.affectsGlobalScope||ke.impliedFormat?{version:ke.version,signature:void 0,affectsGlobalScope:ke.affectsGlobalScope,impliedFormat:ke.impliedFormat}:ke.version:De!==void 0?xe===void 0?ke:{version:ke.version,signature:De,affectsGlobalScope:ke.affectsGlobalScope,impliedFormat:ke.impliedFormat}:{version:ke.version,signature:!1,affectsGlobalScope:ke.affectsGlobalScope,impliedFormat:ke.impliedFormat}});let w;e.referencedMap&&(w=gs(e.referencedMap.keys()).sort(mu).map(fe=>[Y(fe),ue(e.referencedMap.getValues(fe))]));let P;e.exportedModulesMap&&(P=Ri(gs(e.exportedModulesMap.keys()).sort(mu),fe=>{var ke;const Oe=(ke=e.oldExportedModulesMap)==null?void 0:ke.get(fe);if(Oe===void 0)return[Y(fe),ue(e.exportedModulesMap.getValues(fe))];if(Oe)return[Y(fe),ue(Oe)]}));const F=ee(e.semanticDiagnosticsPerFile);let J;if((s=e.affectedFilesPendingEmit)!=null&&s.size){const fe=vy(e.compilerOptions),ke=new Set;for(const Oe of gs(e.affectedFilesPendingEmit.keys()).sort(mu))if(_1(ke,Oe)){const me=e.program.getSourceFileByPath(Oe);if(!me||!Ob(me,e.program))continue;const be=Y(Oe),xe=e.affectedFilesPendingEmit.get(Oe);(J||(J=[])).push(xe===fe?be:xe===8?[be]:[be,xe])}}let U;if(e.changedFilesSet.size)for(const fe of gs(e.changedFilesSet.keys()).sort(mu))(U||(U=[])).push(Y(fe));const $=ee(e.emitDiagnosticsPerFile),j={fileNames:f,fileInfos:k,root:d,options:H(e.compilerOptions),fileIdsList:y,referencedMap:w,exportedModulesMap:P,semanticDiagnosticsPerFile:F,emitDiagnosticsPerFile:$,affectedFilesPendingEmit:J,changeFileSet:U,emitSignatures:T,latestChangedDtsFile:u};return bA(j,t);function re(fe){return R(Xi(fe,o))}function R(fe){return Fv(Bp(c,fe,e.program.getCanonicalFileName))}function Y(fe){let ke=g.get(fe);return ke===void 0&&(f.push(R(fe)),g.set(fe,ke=f.length)),ke}function ue(fe){const ke=gs(fe.keys(),Y).sort(wo),Oe=ke.join();let me=S==null?void 0:S.get(Oe);return me===void 0&&((y||(y=[])).push(ke),(S||(S=new Map)).set(Oe,me=y.length)),me}function pe(fe,ke){const Oe=e.program.getSourceFile(fe);if(!e.program.getFileIncludeReasons().get(Oe.path).some(De=>De.kind===0))return;if(!d.length)return d.push(ke);const me=d[d.length-1],be=ts(me);if(be&&me[1]===ke-1)return me[1]=ke;if(be||d.length===1||me!==ke-1)return d.push(ke);const xe=d[d.length-2];return!zh(xe)||xe!==me-1?d.push(ke):(d[d.length-2]=[xe,ke],d.length=d.length-1)}function H(fe){let ke;const{optionsNameMap:Oe}=YC();for(const me of ug(fe).sort(mu)){const be=Oe.get(me.toLowerCase());be!=null&&be.affectsBuildInfo&&((ke||(ke={}))[me]=q(be,fe[me]))}return ke}function q(fe,ke){if(fe){if(E.assert(fe.type!=="listOrElement"),fe.type==="list"){const Oe=ke;if(fe.element.isFilePath&&Oe.length)return Oe.map(re)}else if(fe.isFilePath)return re(ke)}return ke}function ee(fe){let ke;if(fe)for(const Oe of gs(fe.keys()).sort(mu)){const me=fe.get(Oe);(ke||(ke=[])).push(me.length?[Y(Oe),oe(me)]:Y(Oe))}return ke}function oe(fe){return E.assert(!!fe.length),fe.map(ke=>{const Oe=Se(ke);Oe.reportsUnnecessary=ke.reportsUnnecessary,Oe.reportDeprecated=ke.reportsDeprecated,Oe.source=ke.source,Oe.skippedOn=ke.skippedOn;const{relatedInformation:me}=ke;return Oe.relatedInformation=me?me.length?me.map(be=>Se(be)):[]:void 0,Oe})}function Se(fe){const{file:ke}=fe;return{...fe,file:ke?R(ke.resolvedPath):void 0,messageText:ls(fe.messageText)?fe.messageText:ae(fe.messageText)}}function ae(fe){if(fe.repopulateInfo)return{info:fe.repopulateInfo(),next:K(fe.next)};const ke=K(fe.next);return ke===fe.next?fe:{...fe,next:ke}}function K(fe){return fe&&(er(fe,(ke,Oe)=>{const me=ae(ke);if(ke===me)return;const be=Oe>0?fe.slice(0,Oe-1):[];be.push(me);for(let xe=Oe+1;xe`${f(g)}${ED[g.category]}${g.code}: ${u(g.messageText)}`).join(` -`)),(i.createHash??X4)(n);function u(g){return ls(g)?g:g===void 0?"":g.next?g.messageText+g.next.map(u).join(` -`):g.messageText}function f(g){return g.file.resolvedPath===t.resolvedPath?`(${g.start},${g.length})`:(c===void 0&&(c=Un(t.resolvedPath)),`${Fv(Bp(c,g.file.resolvedPath,e.getCanonicalFileName))}(${g.start},${g.length})`)}}function aS(e,t,n){return(t.createHash??X4)(vSe(e,n))}function Yq(e,{newProgram:t,host:n,oldProgram:i,configFileParsingDiagnostics:s}){let o=i&&i.getState();if(o&&t===o.program&&s===t.getConfigFileParsingDiagnostics())return t=void 0,o=void 0,i;const c=zRe(t,o);t.getBuildInfo=w=>YRe(c,w),t=void 0,i=void 0,o=void 0;const u=()=>c,f=Kq(u,s);return f.getState=u,f.saveEmitState=()=>VRe(c),f.restoreEmitState=w=>URe(c,w),f.hasChangedEmitSignature=()=>!!c.hasChangedEmitSignature,f.getAllDependencies=w=>Qp.getAllDependencies(c,E.checkDefined(c.program),w),f.getSemanticDiagnostics=k,f.emit=S,f.releaseProgram=()=>WRe(c),e===0?f.getSemanticDiagnosticsOfNextAffectedFile=T:e===1?(f.getSemanticDiagnosticsOfNextAffectedFile=T,f.emitNextAffectedFile=d,f.emitBuildInfo=g):ks(),f;function g(w,P){if(c.buildInfoEmitPending){const F=E.checkDefined(c.program).emitBuildInfo(w||Os(n,n.writeFile),P);return c.buildInfoEmitPending=!1,F}return Q9}function d(w,P,F,J){var U,$,j;let re=mSe(c,P,n);const R=vy(c.compilerOptions);let Y=F?R&24:R;if(!re)if(no(c.compilerOptions)){if(!c.programEmitPending||(Y=c.programEmitPending,F&&(Y=Y&24),!Y))return;re=c.program}else{const H=HRe(c,F);if(!H){const q=GRe(c);if(q)return(c.seenEmittedFiles??(c.seenEmittedFiles=new Map)).set(q.affectedFile.resolvedPath,q.seenKind|24),{result:{emitSkipped:!0,diagnostics:q.diagnostics},affected:q.affectedFile};if(!c.buildInfoEmitPending)return;const ee=c.program,oe=ee.emitBuildInfo(w||Os(n,n.writeFile),P);return c.buildInfoEmitPending=!1,{result:oe,affected:ee}}({affectedFile:re,emitKind:Y}=H)}let ue;Y&7&&(ue=0),Y&24&&(ue=ue===void 0?1:void 0),re===c.program&&(c.programEmitPending=c.changedFilesSet.size?_6(R,Y):c.programEmitPending?_6(c.programEmitPending,Y):void 0);const pe=c.program.emit(re===c.program?void 0:re,y(w,J),P,ue,J);if(re!==c.program){const H=re;c.seenAffectedFiles.add(H.resolvedPath),c.affectedFilesIndex!==void 0&&c.affectedFilesIndex++,c.buildInfoEmitPending=!0;const q=((U=c.seenEmittedFiles)==null?void 0:U.get(H.resolvedPath))||0;(c.seenEmittedFiles??(c.seenEmittedFiles=new Map)).set(H.resolvedPath,Y|q);const ee=(($=c.affectedFilesPendingEmit)==null?void 0:$.get(H.resolvedPath))||R,oe=_6(ee,Y|q);oe?(c.affectedFilesPendingEmit??(c.affectedFilesPendingEmit=new Map)).set(H.resolvedPath,oe):(j=c.affectedFilesPendingEmit)==null||j.delete(H.resolvedPath),pe.diagnostics.length&&(c.emitDiagnosticsPerFile??(c.emitDiagnosticsPerFile=new Map)).set(H.resolvedPath,pe.diagnostics)}else c.changedFilesSet.clear();return{result:pe,affected:re}}function y(w,P){return Gf(c.compilerOptions)?(F,J,U,$,j,re)=>{var R,Y,ue,pe;if(Hl(F))if(no(c.compilerOptions)){if(c.compilerOptions.composite){const q=H(c.outSignature,void 0);if(!q)return;c.outSignature=q}}else{E.assert((j==null?void 0:j.length)===1);let q;if(!P){const ee=j[0],oe=c.fileInfos.get(ee.resolvedPath);if(oe.signature===ee.version){const Se=Qq(c.program,ee,J,n,re);(R=re==null?void 0:re.diagnostics)!=null&&R.length||(q=Se),Se!==ee.version&&(n.storeFilesChangingSignatureDuringEmit&&(c.filesChangingSignature??(c.filesChangingSignature=new Set)).add(ee.resolvedPath),c.exportedModulesMap&&Qp.updateExportedModules(c,ee,ee.exportedModulesFromDeclarationEmit),c.affectedFiles?(((Y=c.oldSignatures)==null?void 0:Y.get(ee.resolvedPath))===void 0&&(c.oldSignatures??(c.oldSignatures=new Map)).set(ee.resolvedPath,oe.signature||!1),oe.signature=Se):(oe.signature=Se,(ue=c.oldExportedModulesMap)==null||ue.clear()))}}if(c.compilerOptions.composite){const ee=j[0].resolvedPath;if(q=H((pe=c.emitSignatures)==null?void 0:pe.get(ee),q),!q)return;(c.emitSignatures??(c.emitSignatures=new Map)).set(ee,q)}}w?w(F,J,U,$,j,re):n.writeFile?n.writeFile(F,J,U,$,j,re):c.program.writeFile(F,J,U,$,j,re);function H(q,ee){const oe=!q||ls(q)?q:q[0];if(ee??(ee=aS(J,n,re)),ee===oe){if(q===oe)return;re?re.differsOnlyInMap=!0:re={differsOnlyInMap:!0}}else c.hasChangedEmitSignature=!0,c.latestChangedDtsFile=F;return ee}}:w||Os(n,n.writeFile)}function S(w,P,F,J,U){e===1&&dSe(c,w);const $=Vq(f,w,P,F);if($)return $;if(!w)if(e===1){let j=[],re=!1,R,Y=[],ue;for(;ue=d(P,F,J,U);)re=re||ue.result.emitSkipped,R=Nn(R,ue.result.diagnostics),Y=Nn(Y,ue.result.emittedFiles),j=Nn(j,ue.result.sourceMaps);return{emitSkipped:re,diagnostics:R||Ve,emittedFiles:Y,sourceMaps:j}}else qRe(c,J);return E.checkDefined(c.program).emit(w,y(P,U),F,J,U)}function T(w,P){for(;;){const F=mSe(c,w,n);let J;if(F)if(F!==c.program){const U=F;if((!P||!P(U))&&(J=qae(c,U,w)),c.seenAffectedFiles.add(U.resolvedPath),c.affectedFilesIndex++,c.buildInfoEmitPending=!0,!J)continue}else J=c.program.getSemanticDiagnostics(void 0,w),c.changedFilesSet.clear(),c.programEmitPending=vy(c.compilerOptions);else return;return{result:J,affected:F}}}function k(w,P){dSe(c,w);const F=E.checkDefined(c.program).getCompilerOptions();if(no(F))return E.assert(!c.semanticDiagnosticsPerFile),E.checkDefined(c.program).getSemanticDiagnostics(w,P);if(w)return qae(c,w,P);for(;T(P););let J;for(const U of E.checkDefined(c.program).getSourceFiles())J=Nn(J,qae(c,U,P));return J||Ve}}function Gae(e,t,n){var i,s;const o=((i=e.affectedFilesPendingEmit)==null?void 0:i.get(t))||0;(e.affectedFilesPendingEmit??(e.affectedFilesPendingEmit=new Map)).set(t,o|n),(s=e.emitDiagnosticsPerFile)==null||s.delete(t)}function $ae(e){return ls(e)?{version:e,signature:e,affectsGlobalScope:void 0,impliedFormat:void 0}:ls(e.signature)?e:{version:e.version,signature:e.signature===!1?void 0:e.version,affectsGlobalScope:e.affectsGlobalScope,impliedFormat:e.impliedFormat}}function Xae(e,t){return zh(e)?t:e[1]||8}function Qae(e,t){return e||vy(t||{})}function Yae(e,t,n){var i,s,o,c;const u=e.program,f=Un(Xi(t,n.getCurrentDirectory())),g=nu(n.useCaseSensitiveFileNames());let d;const y=(i=u.fileNames)==null?void 0:i.map(k);let S;const T=u.latestChangedDtsFile?w(u.latestChangedDtsFile):void 0;if(Hae(u)){const $=new Map;u.fileInfos.forEach((j,re)=>{const R=P(re+1);$.set(R,ls(j)?{version:j,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:j)}),d={fileInfos:$,compilerOptions:u.options?dU(u.options,w):{},latestChangedDtsFile:T,outSignature:u.outSignature,programEmitPending:u.pendingEmit===void 0?void 0:Qae(u.pendingEmit,u.options),bundle:e.bundle}}else{S=(s=u.fileIdsList)==null?void 0:s.map(R=>new Set(R.map(P)));const $=new Map,j=(o=u.options)!=null&&o.composite&&!no(u.options)?new Map:void 0;u.fileInfos.forEach((R,Y)=>{const ue=P(Y+1),pe=$ae(R);$.set(ue,pe),j&&pe.signature&&j.set(ue,pe.signature)}),(c=u.emitSignatures)==null||c.forEach(R=>{if(zh(R))j.delete(P(R));else{const Y=P(R[0]);j.set(Y,!ls(R[1])&&!R[1].length?[j.get(Y)]:R[1])}});const re=u.affectedFilesPendingEmit?vy(u.options||{}):void 0;d={fileInfos:$,compilerOptions:u.options?dU(u.options,w):{},referencedMap:J(u.referencedMap),exportedModulesMap:J(u.exportedModulesMap),semanticDiagnosticsPerFile:U(u.semanticDiagnosticsPerFile),emitDiagnosticsPerFile:U(u.emitDiagnosticsPerFile),hasReusableDiagnostic:!0,affectedFilesPendingEmit:u.affectedFilesPendingEmit&&Iv(u.affectedFilesPendingEmit,R=>P(zh(R)?R:R[0]),R=>Xae(R,re)),changedFilesSet:new Set(nr(u.changeFileSet,P)),latestChangedDtsFile:T,emitSignatures:j!=null&&j.size?j:void 0}}return{getState:()=>d,saveEmitState:Ca,restoreEmitState:Ca,getProgram:ks,getProgramOrUndefined:f1,releaseProgram:Ca,getCompilerOptions:()=>d.compilerOptions,getSourceFile:ks,getSourceFiles:ks,getOptionsDiagnostics:ks,getGlobalDiagnostics:ks,getConfigFileParsingDiagnostics:ks,getSyntacticDiagnostics:ks,getDeclarationDiagnostics:ks,getSemanticDiagnostics:ks,emit:ks,getAllDependencies:ks,getCurrentDirectory:ks,emitNextAffectedFile:ks,getSemanticDiagnosticsOfNextAffectedFile:ks,emitBuildInfo:ks,close:Ca,hasChangedEmitSignature:fd};function k($){return No($,f,g)}function w($){return Xi($,f)}function P($){return y[$-1]}function F($){return S[$-1]}function J($){if(!$)return;const j=Qp.createManyToManyPathMap();return $.forEach(([re,R])=>j.set(P(re),F(R))),j}function U($){return $&&Iv($,j=>P(zh(j)?j:j[0]),j=>zh(j)?Ve:j[1])}}function Zq(e,t,n){const i=Un(Xi(t,n.getCurrentDirectory())),s=nu(n.useCaseSensitiveFileNames()),o=new Map;let c=0;const u=[];return e.fileInfos.forEach((f,g)=>{const d=No(e.fileNames[g],i,s),y=ls(f)?f:f.version;if(o.set(d,y),ce().program,releaseProgram:()=>e().program=void 0,getCompilerOptions:()=>e().compilerOptions,getSourceFile:i=>n().getSourceFile(i),getSourceFiles:()=>n().getSourceFiles(),getOptionsDiagnostics:i=>n().getOptionsDiagnostics(i),getGlobalDiagnostics:i=>n().getGlobalDiagnostics(i),getConfigFileParsingDiagnostics:()=>t,getSyntacticDiagnostics:(i,s)=>n().getSyntacticDiagnostics(i,s),getDeclarationDiagnostics:(i,s)=>n().getDeclarationDiagnostics(i,s),getSemanticDiagnostics:(i,s)=>n().getSemanticDiagnostics(i,s),emit:(i,s,o,c,u)=>n().emit(i,s,o,c,u),emitBuildInfo:(i,s)=>n().emitBuildInfo(i,s),getAllDependencies:ks,getCurrentDirectory:()=>n().getCurrentDirectory(),close:Ca};function n(){return E.checkDefined(e().program)}}var eH,tH,ZRe=wt({"src/compiler/builder.ts"(){Fs(),eH=(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))(eH||{}),tH=(e=>(e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",e))(tH||{})}});function bSe(e,t,n,i,s,o){return Yq(0,Y9(e,t,n,i,s,o))}function rH(e,t,n,i,s,o){return Yq(1,Y9(e,t,n,i,s,o))}function SSe(e,t,n,i,s,o){const{newProgram:c,configFileParsingDiagnostics:u}=Y9(e,t,n,i,s,o);return Kq(()=>({program:c,compilerOptions:c.getCompilerOptions()}),u)}var KRe=wt({"src/compiler/builderPublic.ts"(){Fs()}});function Z9(e){return Yo(e,"/node_modules/.staging")?Nk(e,"/.staging"):ct(AD,t=>e.includes(t))?void 0:e}function Zae(e,t){if(t<=1)return 1;let n=1,i=e[0].search(/[a-zA-Z]:/)===0;if(e[0]!==Io&&!i&&e[1].search(/[a-zA-Z]\$$/)===0){if(t===2)return 2;n=2,i=!0}return i&&!e[n].match(/^users$/i)?n:e[n].match(/^workspaces$/i)?n+1:n+2}function K9(e,t){if(t===void 0&&(t=e.length),t<=2)return!1;const n=Zae(e,t);return t>n+1}function Kae(e){return xSe(Un(e))}function TSe(e,t){if(t.lengths.length+1?toe(u,c,Math.max(s.length+1,f+1)):{dir:n,dirPath:i,nonRecursive:!0}:kSe(u,c,c.length-1,f,g,s)}function kSe(e,t,n,i,s,o){if(s!==-1)return toe(e,t,s+1);let c=!0,u=n;for(let f=0;feje(i,s,o,e,n,t,c)}}function eje(e,t,n,i,s,o,c){const u=eL(e),f=t6(n,i,s,u,t,o,c);if(!e.getGlobalCache)return f;const g=e.getGlobalCache();if(g!==void 0&&!Sl(n)&&!(f.resolvedModule&&TF(f.resolvedModule.extension))){const{resolvedModule:d,failedLookupLocations:y,affectingLocations:S,resolutionDiagnostics:T}=vse(E.checkDefined(e.globalCacheResolutionModuleName)(n),e.projectName,s,u,g,t);if(d)return f.resolvedModule=d,f.failedLookupLocations=KC(f.failedLookupLocations,y),f.affectingLocations=KC(f.affectingLocations,S),f.resolutionDiagnostics=KC(f.resolutionDiagnostics,T),f}return f}function iH(e,t,n){let i,s,o;const c=vf(),u=new Set,f=new Set,g=new Map,d=new Map;let y=!1,S,T,k,w,P,F=!1;const J=Hu(()=>e.getCurrentDirectory()),U=e.getCachedDirectoryStructureHost(),$=new Map,j=e6(J(),e.getCanonicalFileName,e.getCompilationSettings()),re=new Map,R=a9(J(),e.getCanonicalFileName,e.getCompilationSettings(),j.getPackageJsonInfoCache(),j.optionsToRedirectsKey),Y=new Map,ue=e6(J(),e.getCanonicalFileName,AU(e.getCompilationSettings()),j.getPackageJsonInfoCache()),pe=new Map,H=new Map,q=noe(t,J),ee=e.toPath(q),oe=ll(ee),Se=new Map;return{rootDirForResolution:t,resolvedModuleNames:$,resolvedTypeReferenceDirectives:re,resolvedLibraries:Y,resolvedFileToResolution:g,resolutionsWithFailedLookups:u,resolutionsWithOnlyAffectingLocations:f,directoryWatchesOfFailedLookups:pe,fileWatchesOfAffectingLocations:H,watchFailedLookupLocationsOfExternalModuleResolutions:hr,getModuleResolutionCache:()=>j,startRecordingFilesWithChangedResolutions:Oe,finishRecordingFilesWithChangedResolutions:me,startCachingPerDirectoryResolution:De,finishCachingPerDirectoryResolution:ge,resolveModuleNameLiterals:Je,resolveTypeReferenceDirectiveReferences:at,resolveLibrary:pt,resolveSingleModuleNameWithoutWatching:zt,removeResolutionsFromProjectReferenceRedirects:Ue,removeResolutionsOfFile:Et,hasChangedAutomaticTypeDirectiveNames:()=>y,invalidateResolutionOfFile:Hn,invalidateResolutionsOfFailedLookupLocations:Vs,setFilesWithInvalidatedNonRelativeUnresolvedImports:ei,createHasInvalidatedResolutions:xe,isFileWithInvalidatedNonRelativeUnresolvedImports:be,updateTypeRootsWatch:tt,closeTypeRootsWatch:Le,clear:fe,onChangesAffectModuleResolution:ke};function ae(ne){return ne.resolvedModule}function K(ne){return ne.resolvedTypeReferenceDirective}function fe(){T_(pe,Qf),T_(H,Qf),c.clear(),Le(),$.clear(),re.clear(),g.clear(),u.clear(),f.clear(),k=void 0,w=void 0,P=void 0,T=void 0,S=void 0,F=!1,j.clear(),R.clear(),j.update(e.getCompilationSettings()),R.update(e.getCompilationSettings()),ue.clear(),d.clear(),Y.clear(),y=!1}function ke(){F=!0,j.clearAllExceptPackageJsonInfoCache(),R.clearAllExceptPackageJsonInfoCache(),j.update(e.getCompilationSettings()),R.update(e.getCompilationSettings())}function Oe(){i=[]}function me(){const ne=i;return i=void 0,ne}function be(ne){if(!o)return!1;const we=o.get(ne);return!!we&&!!we.length}function xe(ne,we){Vs();const et=s;return s=void 0,{hasInvalidatedResolutions:B=>ne(B)||F||!!(et!=null&&et.has(B))||be(B),hasInvalidatedLibResolutions:B=>{var Ge;return we(B)||!!((Ge=Y==null?void 0:Y.get(B))!=null&&Ge.isInvalidated)}}}function De(){j.isReadonly=void 0,R.isReadonly=void 0,ue.isReadonly=void 0,j.getPackageJsonInfoCache().isReadonly=void 0,j.clearAllExceptPackageJsonInfoCache(),R.clearAllExceptPackageJsonInfoCache(),ue.clearAllExceptPackageJsonInfoCache(),c.forEach(Ji),c.clear()}function ft(ne){Y.forEach((we,et)=>{var B;(B=ne==null?void 0:ne.resolvedLibReferences)!=null&&B.has(et)||(yr(we,e.toPath(U9(e.getCompilationSettings(),J(),et)),ae),Y.delete(et))})}function ge(ne,we){o=void 0,F=!1,c.forEach(Ji),c.clear(),ne!==we&&(ft(ne),ne==null||ne.getSourceFiles().forEach(et=>{var B;const Ge=af(et)?((B=et.packageJsonLocations)==null?void 0:B.length)??0:0,mt=d.get(et.path)??Ve;for(let Be=mt.length;BeGe)for(let Be=Ge;Be{ne!=null&&ne.getSourceFileByPath(B)||(et.forEach(Ge=>H.get(Ge).files--),d.delete(B))})),pe.forEach(Fe),H.forEach($e),y=!1,j.isReadonly=!0,R.isReadonly=!0,ue.isReadonly=!0,j.getPackageJsonInfoCache().isReadonly=!0}function Fe(ne,we){ne.refCount===0&&(pe.delete(we),ne.watcher.close())}function $e(ne,we){var et;ne.files===0&&ne.resolutions===0&&!((et=ne.symlinks)!=null&&et.size)&&(H.delete(we),ne.watcher.close())}function Pt({entries:ne,containingFile:we,containingSourceFile:et,redirectedReference:B,options:Ge,perFileCache:mt,reusedNames:Be,loader:nt,getResolutionWithResolvedFileName:Dt,deferWatchingNonRelativeResolution:ir,shouldRetryResolution:Yt,logChanges:Kt}){const W=e.toPath(we),Pe=mt.get(W)||mt.set(W,Sx()).get(W),St=[],A=Kt&&be(W),le=e.getCurrentProgram(),V=le&&le.getResolvedProjectReferenceToRedirect(we),ce=V?!B||B.sourceFile.path!==V.sourceFile.path:!!B,Ne=Sx();for(const _t of ne){const Tt=nt.nameAndMode.getName(_t),Jt=nt.nameAndMode.getMode(_t,et,(B==null?void 0:B.commandLine.options)||Ge);let ar=Pe.get(Tt,Jt);if(!Ne.has(Tt,Jt)&&(F||ce||!ar||ar.isInvalidated||A&&!Sl(Tt)&&Yt(ar))){const Er=ar;ar=nt.resolve(Tt,Jt),e.onDiscoveredSymlink&&tje(ar)&&e.onDiscoveredSymlink(),Pe.set(Tt,Jt,ar),ar!==Er&&(hr(Tt,ar,W,Dt,ir),Er&&yr(Er,W,Dt)),Kt&&i&&!Ce(Er,ar)&&(i.push(W),Kt=!1)}else{const Er=eL(e);if(oh(Ge,Er)&&!Ne.has(Tt,Jt)){const Nr=Dt(ar);Zi(Er,mt===$?Nr!=null&&Nr.resolvedFileName?Nr.packageId?p.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:p.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:p.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:Nr!=null&&Nr.resolvedFileName?Nr.packageId?p.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:p.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:p.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,Tt,we,Nr==null?void 0:Nr.resolvedFileName,(Nr==null?void 0:Nr.packageId)&&K0(Nr.packageId))}}E.assert(ar!==void 0&&!ar.isInvalidated),Ne.set(Tt,Jt,!0),St.push(ar)}return Be==null||Be.forEach(_t=>Ne.set(nt.nameAndMode.getName(_t),nt.nameAndMode.getMode(_t,et,(B==null?void 0:B.commandLine.options)||Ge),!0)),Pe.size()!==Ne.size()&&Pe.forEach((_t,Tt,Jt)=>{Ne.has(Tt,Jt)||(yr(_t,W,Dt),Pe.delete(Tt,Jt))}),St;function Ce(_t,Tt){if(_t===Tt)return!0;if(!_t||!Tt)return!1;const Jt=Dt(_t),ar=Dt(Tt);return Jt===ar?!0:!Jt||!ar?!1:Jt.resolvedFileName===ar.resolvedFileName}}function at(ne,we,et,B,Ge,mt){return Pt({entries:ne,containingFile:we,containingSourceFile:Ge,redirectedReference:et,options:B,reusedNames:mt,perFileCache:re,loader:W9(we,et,B,eL(e),R),getResolutionWithResolvedFileName:K,shouldRetryResolution:Be=>Be.resolvedTypeReferenceDirective===void 0,deferWatchingNonRelativeResolution:!1})}function Je(ne,we,et,B,Ge,mt){return Pt({entries:ne,containingFile:we,containingSourceFile:Ge,redirectedReference:et,options:B,reusedNames:mt,perFileCache:$,loader:ioe(we,et,B,e,j),getResolutionWithResolvedFileName:ae,shouldRetryResolution:Be=>!Be.resolvedModule||!qE(Be.resolvedModule.extension),logChanges:n,deferWatchingNonRelativeResolution:!0})}function pt(ne,we,et,B){const Ge=eL(e);let mt=Y==null?void 0:Y.get(B);if(!mt||mt.isInvalidated){const Be=mt;mt=o9(ne,we,et,Ge,ue);const nt=e.toPath(we);hr(ne,mt,nt,ae,!1),Y.set(B,mt),Be&&yr(Be,nt,ae)}else if(oh(et,Ge)){const Be=ae(mt);Zi(Ge,Be!=null&&Be.resolvedFileName?Be.packageId?p.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:p.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:p.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,ne,we,Be==null?void 0:Be.resolvedFileName,(Be==null?void 0:Be.packageId)&&K0(Be.packageId))}return mt}function zt(ne,we){var et,B;const Ge=e.toPath(we),mt=$.get(Ge),Be=mt==null?void 0:mt.get(ne,void 0);if(Be&&!Be.isInvalidated)return Be;const nt=(et=e.beforeResolveSingleModuleNameWithoutWatching)==null?void 0:et.call(e,j),Dt=eL(e),ir=t6(ne,we,e.getCompilationSettings(),Dt,j);return(B=e.afterResolveSingleModuleNameWithoutWatching)==null||B.call(e,j,ne,we,ir,nt),ir}function Vt(ne){return Yo(ne,"/node_modules/@types")}function hr(ne,we,et,B,Ge){var mt;if(we.refCount)we.refCount++,E.assertIsDefined(we.files);else{we.refCount=1,E.assert(!((mt=we.files)!=null&&mt.size)),!Ge||Sl(ne)?tr(we):c.add(ne,we);const Be=B(we);if(Be&&Be.resolvedFileName){const nt=e.toPath(Be.resolvedFileName);let Dt=g.get(nt);Dt||g.set(nt,Dt=new Set),Dt.add(we)}}(we.files??(we.files=new Set)).add(et)}function Lr(ne,we){const et=e.toPath(ne),B=nH(ne,et,q,ee,oe,J);if(B){const{dir:Ge,dirPath:mt,nonRecursive:Be}=B;mt===ee?(E.assert(Be),we=!0):yi(Ge,mt,Be)}return we}function tr(ne){E.assert(!!ne.refCount);const{failedLookupLocations:we,affectingLocations:et,alternateResult:B}=ne;if(!(we!=null&&we.length)&&!(et!=null&&et.length)&&!B)return;(we!=null&&we.length||B)&&u.add(ne);let Ge=!1;if(we)for(const mt of we)Ge=Lr(mt,Ge);B&&(Ge=Lr(B,Ge)),Ge&&yi(q,ee,!0),jt(ne,!(we!=null&&we.length)&&!B)}function jt(ne,we){E.assert(!!ne.refCount);const{affectingLocations:et}=ne;if(et!=null&&et.length){we&&f.add(ne);for(const B of et)Rt(B,!0)}}function Rt(ne,we){const et=H.get(ne);if(et){we?et.resolutions++:et.files++;return}let B=ne,Ge=!1,mt;e.realpath&&(B=e.realpath(ne),ne!==B&&(Ge=!0,mt=H.get(B)));const Be=we?1:0,nt=we?0:1;if(!Ge||!mt){const Dt={watcher:eoe(e.toPath(B))?e.watchAffectingFileLocation(B,(ir,Yt)=>{U==null||U.addOrDeleteFile(ir,e.toPath(B),Yt),Kn(B,j.getPackageJsonInfoCache().getInternalMap()),e.scheduleInvalidateResolutionsOfFailedLookupLocations()}):p6,resolutions:Ge?0:Be,files:Ge?0:nt,symlinks:void 0};H.set(B,Dt),Ge&&(mt=Dt)}if(Ge){E.assert(!!mt);const Dt={watcher:{close:()=>{var ir;const Yt=H.get(B);(ir=Yt==null?void 0:Yt.symlinks)!=null&&ir.delete(ne)&&!Yt.symlinks.size&&!Yt.resolutions&&!Yt.files&&(H.delete(B),Yt.watcher.close())}},resolutions:Be,files:nt,symlinks:void 0};H.set(ne,Dt),(mt.symlinks??(mt.symlinks=new Set)).add(ne)}}function Kn(ne,we){var et;const B=H.get(ne);B!=null&&B.resolutions&&(T??(T=new Set)).add(ne),B!=null&&B.files&&(S??(S=new Set)).add(ne),(et=B==null?void 0:B.symlinks)==null||et.forEach(Ge=>Kn(Ge,we)),we==null||we.delete(e.toPath(ne))}function Ji(ne,we){const et=e.getCurrentProgram();!et||!et.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(we)?ne.forEach(tr):ne.forEach(B=>jt(B,!0))}function yi(ne,we,et){const B=pe.get(we);B?(E.assert(!!et==!!B.nonRecursive),B.refCount++):pe.set(we,{watcher:ln(ne,we,et),refCount:1,nonRecursive:et})}function os(ne,we,et){const B=e.toPath(ne),Ge=nH(ne,B,q,ee,oe,J);if(Ge){const{dirPath:mt}=Ge;mt===ee?we=!0:_i(mt,et)}return we}function yr(ne,we,et,B){if(E.checkDefined(ne.files).delete(we),ne.refCount--,ne.refCount)return;const Ge=et(ne);if(Ge&&Ge.resolvedFileName){const Dt=e.toPath(Ge.resolvedFileName),ir=g.get(Dt);ir!=null&&ir.delete(ne)&&!ir.size&&g.delete(Dt)}const{failedLookupLocations:mt,affectingLocations:Be,alternateResult:nt}=ne;if(u.delete(ne)){let Dt=!1;if(mt)for(const ir of mt)Dt=os(ir,Dt,B);nt&&(Dt=os(nt,Dt,B)),Dt&&_i(ee,B)}else Be!=null&&Be.length&&f.delete(ne);if(Be)for(const Dt of Be){const ir=H.get(Dt);ir.resolutions--,B&&$e(ir,Dt)}}function _i(ne,we){const et=pe.get(ne);et.refCount--,we&&Fe(et,ne)}function ln(ne,we,et){return e.watchDirectoryOfFailedLookupLocation(ne,B=>{const Ge=e.toPath(B);U&&U.addOrDeleteFileOrDirectory(B,Ge),Ii(Ge,we===Ge)},et?0:1)}function Ht(ne,we,et,B){const Ge=ne.get(we);Ge&&(Ge.forEach(mt=>yr(mt,we,et,B)),ne.delete(we))}function Ue(ne){if(!Zo(ne,".json"))return;const we=e.getCurrentProgram();if(!we)return;const et=we.getResolvedProjectReferenceByPath(ne);et&&et.commandLine.fileNames.forEach(B=>Et(e.toPath(B)))}function Et(ne,we){Ht($,ne,ae,we),Ht(re,ne,K,we)}function fr(ne,we){if(!ne)return!1;let et=!1;return ne.forEach(B=>{if(!(B.isInvalidated||!we(B))){B.isInvalidated=et=!0;for(const Ge of E.checkDefined(B.files))(s??(s=new Set)).add(Ge),y=y||Yo(Ge,u6)}}),et}function Hn(ne){Et(ne);const we=y;fr(g.get(ne),Wh)&&y&&!we&&e.onChangedAutomaticTypeDirectiveNames()}function ei(ne){E.assert(o===ne||o===void 0),o=ne}function Ii(ne,we){if(we)(P||(P=new Set)).add(ne);else{const et=Z9(ne);if(!et||(ne=et,e.fileIsOpen(ne)))return!1;const B=Un(ne);if(Vt(ne)||I7(ne)||Vt(B)||I7(B))(k||(k=new Set)).add(ne),(w||(w=new Set)).add(ne);else{if(Aae(e.getCurrentProgram(),ne)||Zo(ne,".map"))return!1;(k||(k=new Set)).add(ne);const Ge=oA(ne,!0);Ge&&(w||(w=new Set)).add(Ge)}}e.scheduleInvalidateResolutionsOfFailedLookupLocations()}function ns(){const ne=j.getPackageJsonInfoCache().getInternalMap();ne&&(k||w||P)&&ne.forEach((we,et)=>cr(et)?ne.delete(et):void 0)}function Vs(){var ne;if(F)return S=void 0,ns(),(k||w||P||T)&&fr(Y,_a),k=void 0,w=void 0,P=void 0,T=void 0,!0;let we=!1;return S&&((ne=e.getCurrentProgram())==null||ne.getSourceFiles().forEach(et=>{ct(et.packageJsonLocations,B=>S.has(B))&&((s??(s=new Set)).add(et.path),we=!0)}),S=void 0),!k&&!w&&!P&&!T||(we=fr(u,_a)||we,ns(),k=void 0,w=void 0,P=void 0,we=fr(f,br)||we,T=void 0),we}function _a(ne){var we;return br(ne)?!0:!k&&!w&&!P?!1:((we=ne.failedLookupLocations)==null?void 0:we.some(et=>cr(e.toPath(et))))||!!ne.alternateResult&&cr(e.toPath(ne.alternateResult))}function cr(ne){return(k==null?void 0:k.has(ne))||Lp((w==null?void 0:w.keys())||[],we=>Vi(ne,we)?!0:void 0)||Lp((P==null?void 0:P.keys())||[],we=>ne.length>we.length&&Vi(ne,we)&&(FJ(we)||ne[we.length]===Io)?!0:void 0)}function br(ne){var we;return!!T&&((we=ne.affectingLocations)==null?void 0:we.some(et=>T.has(et)))}function Le(){T_(Se,md)}function rt(ne){return yt(ne)?e.watchTypeRootsDirectory(ne,we=>{const et=e.toPath(we);U&&U.addOrDeleteFileOrDirectory(we,et),y=!0,e.onChangedAutomaticTypeDirectiveNames();const B=roe(ne,e.toPath(ne),ee,oe,J,Ge=>pe.has(Ge));B&&Ii(et,B===et)},1):p6}function tt(){const ne=e.getCompilationSettings();if(ne.types){Le();return}const we=A3(ne,{getCurrentDirectory:J});we?zE(Se,new Set(we),{createNewValue:rt,onDeleteValue:md}):Le()}function yt(ne){return e.getCompilationSettings().typeRoots?!0:Kae(e.toPath(ne))}}function tje(e){var t,n;return!!((t=e.resolvedModule)!=null&&t.originalPath||(n=e.resolvedTypeReferenceDirective)!=null&&n.originalPath)}var rje=wt({"src/compiler/resolutionCache.ts"(){Fs()}});function AA(e,t){const n=e===zl&&_oe?_oe:{getCurrentDirectory:()=>e.getCurrentDirectory(),getNewLine:()=>e.newLine,getCanonicalFileName:nu(e.useCaseSensitiveFileNames)};if(!t)return s=>e.write(Iq(s,n));const i=new Array(1);return s=>{i[0]=s,e.write(Oae(i,n)+n.getNewLine()),i[0]=void 0}}function ESe(e,t,n){return e.clearScreen&&!n.preserveWatchOutput&&!n.extendedDiagnostics&&!n.diagnostics&&bs(aL,t.code)?(e.clearScreen(),!0):!1}function nje(e,t){return bs(aL,e.code)?t+t:t}function NA(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace(" "," "):new Date().toLocaleTimeString()}function soe(e,t){return t?(n,i,s)=>{ESe(e,n,s);let o=`[${S2(NA(e),"\x1B[90m")}] `;o+=`${tm(n.messageText,e.newLine)}${i+i}`,e.write(o)}:(n,i,s)=>{let o="";ESe(e,n,s)||(o+=i),o+=`${NA(e)} - `,o+=`${tm(n.messageText,e.newLine)}${nje(n,i)}`,e.write(o)}}function PSe(e,t,n,i,s,o){const c=s;c.onUnRecoverableConfigFileDiagnostic=f=>ASe(s,o,f);const u=$w(e,t,c,n,i);return c.onUnRecoverableConfigFileDiagnostic=void 0,u}function tL(e){return j0(e,t=>t.category===1)}function rL(e){return An(e,n=>n.category===1).map(n=>{if(n.file!==void 0)return`${n.file.fileName}`}).map(n=>{if(n===void 0)return;const i=wn(e,s=>s.file!==void 0&&s.file.fileName===n);if(i!==void 0){const{line:s}=Ha(i.file,i.start);return{fileName:n,line:s+1}}})}function sH(e){return e===1?p.Found_1_error_Watching_for_file_changes:p.Found_0_errors_Watching_for_file_changes}function DSe(e,t){const n=S2(":"+e.line,"\x1B[90m");return Q4(e.fileName)&&Q4(t)?Bp(t,e.fileName,!1)+n:e.fileName+n}function aoe(e,t,n,i){if(e===0)return"";const s=t.filter(d=>d!==void 0),o=s.map(d=>`${d.fileName}:${d.line}`).filter((d,y,S)=>S.indexOf(d)===y),c=s[0]&&DSe(s[0],i.getCurrentDirectory());let u;e===1?u=t[0]!==void 0?[p.Found_1_error_in_0,c]:[p.Found_1_error]:u=o.length===0?[p.Found_0_errors,e]:o.length===1?[p.Found_0_errors_in_the_same_file_starting_at_Colon_1,e,c]:[p.Found_0_errors_in_1_files,e,o.length];const f=gc(...u),g=o.length>1?ije(s,i):"";return`${n}${tm(f.messageText,n)}${n}${n}${g}`}function ije(e,t){const n=e.filter((y,S,T)=>S===T.findIndex(k=>(k==null?void 0:k.fileName)===(y==null?void 0:y.fileName)));if(n.length===0)return"";const i=y=>Math.log(y)*Math.LOG10E+1,s=n.map(y=>[y,j0(e,S=>S.fileName===y.fileName)]),o=s.reduce((y,S)=>Math.max(y,S[1]||0),0),c=p.Errors_Files.message,u=c.split(" ")[0].length,f=Math.max(u,i(o)),g=Math.max(i(o)-u,0);let d="";return d+=" ".repeat(g)+c+` + `,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),Qn),ye.flags=Wa,ye.enclosingDeclaration=ga}function He(vt,pn,Qn){const Fn=sp(vt),Gn=hn(vt),Aa=nr(Gn,qu=>st(qu,ye)),Js=Z_(Fn),Ts=mr(Js)?Xs(Js):void 0,fo=Zs(Ua(Fn),qu=>rl(qu,Ts)),Wa=og(0,Fn,Ts,179),ga=og(1,Fn,Ts,180),Kl=jh(Fn,Ts),eu=mr(Js)?[I.createHeritageClause(96,Ri(Js,qu=>dT(qu,111551)))]:void 0;To(I.createInterfaceDeclaration(void 0,cd(vt,pn),Aa,eu,[...Kl,...ga,...Wa,...fo]),Qn)}function ut(vt){let pn=gs(Q_(vt).values());const Qn=Na(vt);if(Qn!==vt){const Fn=new Set(pn);for(const Gn of Q_(Qn).values())$l(mc(Gn))&111551||Fn.add(Gn);pn=gs(Fn)}return An(pn,Fn=>Si(Fn)&&bf(Fn.escapedName,99))}function Bt(vt){return Wi(ut(vt),pn=>!($l(mc(pn))&111551))}function Or(vt,pn,Qn){const Fn=ut(vt),Gn=yD(Fn,Ts=>Ts.parent&&Ts.parent===vt?"real":"merged"),Aa=Gn.get("real")||Ve,Js=Gn.get("merged")||Ve;if(mr(Aa)){const Ts=cd(vt,pn);Dn(Aa,Ts,Qn,!!(vt.flags&67108880))}if(mr(Js)){const Ts=wr(ye.enclosingDeclaration),fo=cd(vt,pn),Wa=I.createModuleBlock([I.createExportDeclaration(void 0,!1,I.createNamedExports(Ri(An(Js,ga=>ga.escapedName!=="export="),ga=>{var Kl,eu;const qu=xi(ga.escapedName),yc=cd(ga,qu),tu=ga.declarations&&ed(ga);if(Ts&&(tu?Ts!==wr(tu):!ct(ga.declarations,tf=>wr(tf)===Ts))){(eu=(Kl=ye.tracker)==null?void 0:Kl.reportNonlocalAugmentation)==null||eu.call(Kl,Ts,vt,ga);return}const v_=tu&&ff(tu,!0);ro(v_||ga);const Al=v_?cd(v_,xi(v_.escapedName)):yc;return I.createExportSpecifier(!1,qu===Al?void 0:Al,qu)})))]);To(I.createModuleDeclaration(void 0,I.createIdentifier(fo),Wa,32),0)}}function fn(vt,pn,Qn){To(I.createEnumDeclaration(I.createModifiersFromModifierFlags(hhe(vt)?4096:0),cd(vt,pn),nr(An(Ua(Xr(vt)),Fn=>!!(Fn.flags&8)),Fn=>{const Gn=Fn.declarations&&Fn.declarations[0]&&p2(Fn.declarations[0])?Ghe(Fn.declarations[0]):void 0;return I.createEnumMember(xi(Fn.escapedName),Gn===void 0?void 0:typeof Gn=="string"?I.createStringLiteral(Gn):I.createNumericLiteral(Gn))})),Qn)}function lr(vt,pn,Qn,Fn){const Gn=Es(vt,0);for(const Aa of Gn){const Js=de(Aa,262,ye,{name:I.createIdentifier(Qn),privateSymbolVisitor:ro,bundledImports:vr});To(Ke(Js,tn(Aa)),Fn)}if(!(pn.flags&1536&&pn.exports&&pn.exports.size)){const Aa=An(Ua(vt),Si);Dn(Aa,Qn,Fn,!0)}}function tn(vt){if(vt.declaration&&vt.declaration.parent){if(Zr(vt.declaration.parent)&&fc(vt.declaration.parent)===5)return vt.declaration.parent;if(hi(vt.declaration.parent)&&vt.declaration.parent.parent)return vt.declaration.parent.parent}return vt.declaration}function Dn(vt,pn,Qn,Fn){if(mr(vt)){const Aa=yD(vt,yc=>!mr(yc.declarations)||ct(yc.declarations,tu=>wr(tu)===wr(ye.enclosingDeclaration))?"local":"remote").get("local")||Ve;let Js=Jm.createModuleDeclaration(void 0,I.createIdentifier(pn),I.createModuleBlock([]),32);ba(Js,ai),Js.locals=Bs(vt),Js.symbol=vt[0].parent;const Ts=Pn;Pn=[];const fo=It;It=!1;const Wa={...ye,enclosingDeclaration:Js},ga=ye;ye=Wa,Ys(Bs(Aa),Fn,!0),ye=ga,It=fo;const Kl=Pn;Pn=Ts;const eu=nr(Kl,yc=>oc(yc)&&!yc.isExportEquals&&Ie(yc.expression)?I.createExportDeclaration(void 0,!1,I.createNamedExports([I.createExportSpecifier(!1,yc.expression,I.createIdentifier("default"))])):yc),qu=Wi(eu,yc=>Rn(yc,32))?nr(eu,qi):eu;Js=I.updateModuleDeclaration(Js,Js.modifiers,Js.name,I.createModuleBlock(qu)),To(Js,Qn)}}function Si(vt){return!!(vt.flags&2887656)||!(vt.flags&4194304||vt.escapedName==="prototype"||vt.valueDeclaration&&Ms(vt.valueDeclaration)&&$n(vt.valueDeclaration.parent))}function ms(vt){const pn=Ri(vt,Qn=>{const Fn=ye.enclosingDeclaration;ye.enclosingDeclaration=Qn;let Gn=Qn.expression;if(pc(Gn)){if(Ie(Gn)&&on(Gn)==="")return Aa(void 0);let Js;if({introducesError:Js,node:Gn}=i_(Gn,ye,ro),Js)return Aa(void 0)}return Aa(I.createExpressionWithTypeArguments(Gn,nr(Qn.typeArguments,Js=>uc(ye,Js,ro,vr)||_(ii(Js),ye))));function Aa(Js){return ye.enclosingDeclaration=Fn,Js}});if(pn.length===vt.length)return pn}function Us(vt,pn,Qn){var Fn,Gn;const Aa=(Fn=vt.declarations)==null?void 0:Fn.find($n),Js=ye.enclosingDeclaration;ye.enclosingDeclaration=Aa||Js;const Ts=hn(vt),fo=nr(Ts,bm=>st(bm,ye)),Wa=mf(sp(vt)),ga=Z_(Wa),Kl=Aa&&mC(Aa),eu=Kl&&ms(Kl)||Ri(wd(Wa),lD),qu=Xr(vt),yc=!!((Gn=qu.symbol)!=null&&Gn.valueDeclaration)&&$n(qu.symbol.valueDeclaration),tu=yc?Y_(qu):B,v_=[...mr(ga)?[I.createHeritageClause(96,nr(ga,bm=>pT(bm,tu,pn)))]:[],...mr(eu)?[I.createHeritageClause(119,eu)]:[]],Al=Aut(Wa,ga,Ua(Wa)),tf=An(Al,bm=>{const uD=bm.valueDeclaration;return!!uD&&!(Nu(uD)&&Pi(uD.name))}),vm=ct(Al,bm=>{const uD=bm.valueDeclaration;return!!uD&&Nu(uD)&&Pi(uD.name)})?[I.createPropertyDeclaration(void 0,I.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:Ve,c1=Zs(tf,bm=>Xn(bm,!1,ga[0])),l1=Zs(An(Ua(qu),bm=>!(bm.flags&4194304)&&bm.escapedName!=="prototype"&&!Si(bm)),bm=>Xn(bm,!0,tu)),Gft=!yc&&!!vt.valueDeclaration&&Hr(vt.valueDeclaration)&&!ct(Es(qu,1))?[I.createConstructorDeclaration(I.createModifiersFromModifierFlags(2),[],void 0)]:og(1,qu,tu,176),$ft=jh(Wa,ga[0]);ye.enclosingDeclaration=Js,To(Ke(I.createClassDeclaration(void 0,pn,fo,v_,[...$ft,...l1,...Gft,...c1,...vm]),vt.declarations&&An(vt.declarations,bm=>Qc(bm)||kl(bm))[0]),Qn)}function qs(vt){return Qa(vt,pn=>{if(x_(pn)||vu(pn))return on(pn.propertyName||pn.name);if(Zr(pn)||oc(pn)){const Qn=oc(pn)?pn.expression:pn.right;if(Sn(Qn))return on(Qn.name)}if(Ny(pn)){const Qn=us(pn);if(Qn&&Ie(Qn))return on(Qn)}})}function ri(vt,pn,Qn){var Fn,Gn,Aa,Js,Ts,fo;const Wa=ed(vt);if(!Wa)return E.fail();const ga=Na(ff(Wa,!0));if(!ga)return;let Kl=dE(ga)&&qs(vt.declarations)||xi(ga.escapedName);Kl==="export="&&H&&(Kl="default");const eu=cd(ga,Kl);switch(ro(ga),Wa.kind){case 208:if(((Gn=(Fn=Wa.parent)==null?void 0:Fn.parent)==null?void 0:Gn.kind)===260){const tu=Ir(ga.parent||ga,ye),{propertyName:v_}=Wa;To(I.createImportDeclaration(void 0,I.createImportClause(!1,void 0,I.createNamedImports([I.createImportSpecifier(!1,v_&&Ie(v_)?I.createIdentifier(on(v_)):void 0,I.createIdentifier(pn))])),I.createStringLiteral(tu),void 0),0);break}E.failBadSyntaxKind(((Aa=Wa.parent)==null?void 0:Aa.parent)||Wa,"Unhandled binding element grandparent kind in declaration serialization");break;case 304:((Ts=(Js=Wa.parent)==null?void 0:Js.parent)==null?void 0:Ts.kind)===226&&ps(xi(vt.escapedName),eu);break;case 260:if(Sn(Wa.initializer)){const tu=Wa.initializer,v_=I.createUniqueName(pn),Al=Ir(ga.parent||ga,ye);To(I.createImportEqualsDeclaration(void 0,!1,v_,I.createExternalModuleReference(I.createStringLiteral(Al))),0),To(I.createImportEqualsDeclaration(void 0,!1,I.createIdentifier(pn),I.createQualifiedName(v_,tu.name)),Qn);break}case 271:if(ga.escapedName==="export="&&ct(ga.declarations,tu=>Ni(tu)&&mp(tu))){na(vt);break}const qu=!(ga.flags&512)&&!hi(Wa);To(I.createImportEqualsDeclaration(void 0,!1,I.createIdentifier(pn),qu?Gi(ga,ye,-1,!1):I.createExternalModuleReference(I.createStringLiteral(Ir(ga,ye)))),qu?Qn:0);break;case 270:To(I.createNamespaceExportDeclaration(on(Wa.name)),0);break;case 273:{const tu=Ir(ga.parent||ga,ye),v_=vr?I.createStringLiteral(tu):Wa.parent.moduleSpecifier;To(I.createImportDeclaration(void 0,I.createImportClause(!1,I.createIdentifier(pn),void 0),v_,Wa.parent.attributes),0);break}case 274:{const tu=Ir(ga.parent||ga,ye),v_=vr?I.createStringLiteral(tu):Wa.parent.parent.moduleSpecifier;To(I.createImportDeclaration(void 0,I.createImportClause(!1,void 0,I.createNamespaceImport(I.createIdentifier(pn))),v_,Wa.parent.attributes),0);break}case 280:To(I.createExportDeclaration(void 0,!1,I.createNamespaceExport(I.createIdentifier(pn)),I.createStringLiteral(Ir(ga,ye))),0);break;case 276:{const tu=Ir(ga.parent||ga,ye),v_=vr?I.createStringLiteral(tu):Wa.parent.parent.parent.moduleSpecifier;To(I.createImportDeclaration(void 0,I.createImportClause(!1,void 0,I.createNamedImports([I.createImportSpecifier(!1,pn!==Kl?I.createIdentifier(Kl):void 0,I.createIdentifier(pn))])),v_,Wa.parent.parent.parent.attributes),0);break}case 281:const yc=Wa.parent.parent.moduleSpecifier;yc&&((fo=Wa.propertyName)==null?void 0:fo.escapedText)==="default"&&(Kl="default"),ps(xi(vt.escapedName),yc?Kl:eu,yc&&Ma(yc)?I.createStringLiteral(yc.text):void 0);break;case 277:na(vt);break;case 226:case 211:case 212:vt.escapedName==="default"||vt.escapedName==="export="?na(vt):ps(pn,eu);break;default:return E.failBadSyntaxKind(Wa,"Unhandled alias declaration kind in symbol serializer!")}}function ps(vt,pn,Qn){To(I.createExportDeclaration(void 0,!1,I.createNamedExports([I.createExportSpecifier(!1,vt!==pn?pn:void 0,vt)]),Qn),0)}function na(vt){var pn;if(vt.flags&4194304)return!1;const Qn=xi(vt.escapedName),Fn=Qn==="export=",Aa=Fn||Qn==="default",Js=vt.declarations&&ed(vt),Ts=Js&&ff(Js,!0);if(Ts&&mr(Ts.declarations)&&ct(Ts.declarations,fo=>wr(fo)===wr(ai))){const fo=Js&&(oc(Js)||Zr(Js)?$z(Js):ure(Js)),Wa=fo&&pc(fo)?Uut(fo):void 0,ga=Wa&&vo(Wa,-1,!0,!0,ai);(ga||Ts)&&ro(ga||Ts);const Kl=ye.tracker.disableTrackSymbol;if(ye.tracker.disableTrackSymbol=!0,Aa)Pn.push(I.createExportAssignment(void 0,Fn,tl(Ts,ye,-1)));else if(Wa===fo&&Wa)ps(Qn,on(Wa));else if(fo&&kl(fo))ps(Qn,cd(Ts,Xo(Ts)));else{const eu=jd(Qn,vt);To(I.createImportEqualsDeclaration(void 0,!1,I.createIdentifier(eu),Gi(Ts,ye,-1,!1)),0),ps(Qn,eu)}return ye.tracker.disableTrackSymbol=Kl,!0}else{const fo=jd(Qn,vt),Wa=gf(Xr(Na(vt)));if(no(Wa,vt))lr(Wa,vt,fo,Aa?0:32);else{const ga=((pn=ye.enclosingDeclaration)==null?void 0:pn.kind)===267&&(!(vt.flags&98304)||vt.flags&65536)?1:2,Kl=I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(fo,void 0,Xa(ye,Wa,vt,ai,ro,vr))],ga));To(Kl,Ts&&Ts.flags&4&&Ts.escapedName==="export="?128:Qn===fo?32:0)}return Aa?(Pn.push(I.createExportAssignment(void 0,Fn,I.createIdentifier(fo))),!0):Qn!==fo?(ps(Qn,fo),!0):!1}}function no(vt,pn){const Qn=wr(ye.enclosingDeclaration);return bn(vt)&48&&!mr(Wu(vt))&&!H2(vt)&&!!(mr(An(Ua(vt),Si))||mr(Es(vt,0)))&&!mr(Es(vt,1))&&!sn(pn,ai)&&!(vt.symbol&&ct(vt.symbol.declarations,Fn=>wr(Fn)!==Qn))&&!ct(Ua(vt),Fn=>aI(Fn.escapedName))&&!ct(Ua(vt),Fn=>ct(Fn.declarations,Gn=>wr(Gn)!==Qn))&&Wi(Ua(vt),Fn=>bf(Xo(Fn),re)?Fn.flags&98304?Hy(Fn)===G2(Fn):!0:!1)}function za(vt,pn,Qn){return function(Gn,Aa,Js){var Ts,fo,Wa,ga,Kl;const eu=qf(Gn),qu=!!(eu&2);if(Aa&&Gn.flags&2887656)return[];if(Gn.flags&4194304||Gn.escapedName==="constructor"||Js&&$s(Js,Gn.escapedName)&&Md($s(Js,Gn.escapedName))===Md(Gn)&&(Gn.flags&16777216)===($s(Js,Gn.escapedName).flags&16777216)&&Ih(Xr(Gn),je(Js,Gn.escapedName)))return[];const yc=eu&-1025|(Aa?256:0),tu=Sr(Gn,ye),v_=(Ts=Gn.declarations)==null?void 0:Ts.find(fd(xs,$0,hi,B_,Zr,Sn));if(Gn.flags&98304&&Qn){const Al=[];if(Gn.flags&65536){const tf=Gn.declarations&&rr(Gn.declarations,vm=>{if(vm.kind===178)return vm;if(Rs(vm)&&wb(vm))return rr(vm.arguments[2].properties,c1=>{const l1=us(c1);if(l1&&Ie(l1)&&on(l1)==="set")return c1})});E.assert(!!tf);const Ck=po(tf)?Ap(tf).parameters[0]:void 0;Al.push(Ke(I.createSetAccessorDeclaration(I.createModifiersFromModifierFlags(yc),tu,[I.createParameterDeclaration(void 0,void 0,Ck?$t(Ck,gt(Ck),ye):"value",void 0,qu?void 0:Xa(ye,Xr(Gn),Gn,ai,ro,vr))],void 0),((fo=Gn.declarations)==null?void 0:fo.find(Xh))||v_))}if(Gn.flags&32768){const tf=eu&2;Al.push(Ke(I.createGetAccessorDeclaration(I.createModifiersFromModifierFlags(yc),tu,[],tf?void 0:Xa(ye,Xr(Gn),Gn,ai,ro,vr),void 0),((Wa=Gn.declarations)==null?void 0:Wa.find(Q0))||v_))}return Al}else if(Gn.flags&98311)return Ke(vt(I.createModifiersFromModifierFlags((Md(Gn)?8:0)|yc),tu,Gn.flags&16777216?I.createToken(58):void 0,qu?void 0:Xa(ye,G2(Gn),Gn,ai,ro,vr),void 0),((ga=Gn.declarations)==null?void 0:ga.find(fd(xs,hi)))||v_);if(Gn.flags&8208){const Al=Xr(Gn),tf=Es(Al,0);if(yc&2)return Ke(vt(I.createModifiersFromModifierFlags((Md(Gn)?8:0)|yc),tu,Gn.flags&16777216?I.createToken(58):void 0,void 0,void 0),((Kl=Gn.declarations)==null?void 0:Kl.find(po))||tf[0]&&tf[0].declaration||Gn.declarations&&Gn.declarations[0]);const Ck=[];for(const vm of tf){const c1=de(vm,pn,ye,{name:tu,questionToken:Gn.flags&16777216?I.createToken(58):void 0,modifiers:yc?I.createModifiersFromModifierFlags(yc):void 0}),l1=vm.declaration&&w8(vm.declaration.parent)?vm.declaration.parent:vm.declaration;Ck.push(Ke(c1,l1))}return Ck}return E.fail(`Unhandled class member kind! ${Gn.__debugFlags||Gn.flags}`)}}function rl(vt,pn){return si(vt,!1,pn)}function og(vt,pn,Qn,Fn){const Gn=Es(pn,vt);if(vt===1){if(!Qn&&Wi(Gn,Ts=>mr(Ts.parameters)===0))return[];if(Qn){const Ts=Es(Qn,1);if(!mr(Ts)&&Wi(Gn,fo=>mr(fo.parameters)===0))return[];if(Ts.length===Gn.length){let fo=!1;for(let Wa=0;Wa_(Gn,ye)),Fn=tl(vt.target.symbol,ye,788968)):vt.symbol&&Ut(vt.symbol,ai,pn)&&(Fn=tl(vt.symbol,ye,788968)),Fn)return I.createExpressionWithTypeArguments(Fn,Qn)}function lD(vt){const pn=dT(vt,788968);if(pn)return pn;if(vt.symbol)return I.createExpressionWithTypeArguments(tl(vt.symbol,ye,788968),void 0)}function jd(vt,pn){var Qn,Fn;const Gn=pn?Ks(pn):void 0;if(Gn&&ye.remappedSymbolNames.has(Gn))return ye.remappedSymbolNames.get(Gn);pn&&(vt=kk(pn,vt));let Aa=0;const Js=vt;for(;(Qn=ye.usedSymbolNames)!=null&&Qn.has(vt);)Aa++,vt=`${Js}_${Aa}`;return(Fn=ye.usedSymbolNames)==null||Fn.add(vt),Gn&&ye.remappedSymbolNames.set(Gn,vt),vt}function kk(vt,pn){if(pn==="default"||pn==="__class"||pn==="__function"){const Qn=ye.flags;ye.flags|=16777216;const Fn=pv(vt,ye);ye.flags=Qn,pn=Fn.length>0&&T8(Fn.charCodeAt(0))?yp(Fn):Fn}return pn==="default"?pn="_default":pn==="export="&&(pn="_exports"),pn=bf(pn,re)&&!jT(pn)?pn:"_"+pn.replace(/[^a-zA-Z0-9]/g,"_"),pn}function cd(vt,pn){const Qn=Ks(vt);return ye.remappedSymbolNames.has(Qn)?ye.remappedSymbolNames.get(Qn):(pn=kk(vt,pn),ye.remappedSymbolNames.set(Qn,pn),pn)}}}function Zm(r,a,l=16384,_){return _?m(_).getText():fE(m);function m(h){const x=I.createTypePredicateNode(r.kind===2||r.kind===3?I.createToken(131):void 0,r.kind===1||r.kind===3?I.createIdentifier(r.parameterName):I.createThisTypeNode(),r.type&&ft.typeToTypeNode(r.type,a,zS(l)|70221824|512)),N=b2(),L=a&&wr(a);return N.writeNode(4,x,L,h),h}}function c4(r){const a=[];let l=0;for(let _=0;_us(x)?x:void 0);const h=m&&us(m);if(m&&h){if(Rs(m)&&wb(m))return Xo(r);if(Pa(h)&&!(Ko(r)&4096)){const x=wi(r).nameType;if(x&&x.flags&384){const N=nI(r,a);if(N!==void 0)return N}}return eo(h)}if(m||(m=r.declarations[0]),m.parent&&m.parent.kind===260)return eo(m.parent.name);switch(m.kind){case 231:case 218:case 219:return a&&!a.encounteredError&&!(a.flags&131072)&&(a.encounteredError=!0),m.kind===231?"(Anonymous class)":"(Anonymous function)"}}const _=nI(r,a);return _!==void 0?_:Xo(r)}function Pd(r){if(r){const l=jn(r);return l.isVisible===void 0&&(l.isVisible=!!a()),l.isVisible}return!1;function a(){switch(r.kind){case 345:case 353:case 347:return!!(r.parent&&r.parent.parent&&r.parent.parent.parent&&Ni(r.parent.parent.parent));case 208:return Pd(r.parent.parent);case 260:if(Ns(r.name)&&!r.name.elements.length)return!1;case 267:case 263:case 264:case 265:case 262:case 266:case 271:if(Jv(r))return!0;const l=G(r);return!(wK(r)&32)&&!(r.kind!==271&&l.kind!==312&&l.flags&33554432)?Gm(l):Pd(l);case 172:case 171:case 177:case 178:case 174:case 173:if(R_(r,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 Pd(r.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 wP(r,a){let l;r.parent&&r.parent.kind===277?l=Go(r,r.escapedText,2998271,void 0,r,!1):r.parent.kind===281&&(l=ov(r.parent,2998271));let _,m;return l&&(m=new Set,m.add(Ks(l)),h(l.declarations)),_;function h(x){rr(x,N=>{const L=PS(N)||N;if(a?jn(N).isVisible=!0:(_=_||[],Jf(_,L)),oC(N)){const z=N.moduleReference,Z=lf(z),de=Go(N,Z.escapedText,901119,void 0,void 0,!1);de&&m&&_1(m,Ks(de))&&h(de.declarations)}})}}function Km(r,a){const l=_k(r,a);if(l>=0){const{length:_}=jl;for(let m=l;m<_;m++)mh[m]=!1;return!1}return jl.push(r),mh.push(!0),Z1.push(a),!0}function _k(r,a){for(let l=jl.length-1;l>=Ux;l--){if(iI(jl[l],Z1[l]))return-1;if(jl[l]===r&&Z1[l]===a)return l}return-1}function iI(r,a){switch(a){case 0:return!!wi(r).type;case 5:return!!jn(r).resolvedEnumType;case 2:return!!wi(r).declaredType;case 1:return!!r.resolvedBaseConstructorType;case 3:return!!r.resolvedReturnType;case 4:return!!r.immediateBaseConstraint;case 6:return!!r.resolvedTypeArguments;case 7:return!!r.baseTypesResolved;case 8:return!!wi(r).writeType;case 9:return jn(r).parameterInitializerContainsUndefined!==void 0}return E.assertNever(a)}function _m(){return jl.pop(),Z1.pop(),mh.pop()}function G(r){return Pr(qd(r),a=>{switch(a.kind){case 260:case 261:case 276:case 275:case 274:case 273:return!1;default:return!0}}).parent}function ve(r){const a=Po(e_(r));return a.typeParameters?P0(a,nr(a.typeParameters,l=>B)):a}function je(r,a){const l=$s(r,a);return l?Xr(l):void 0}function dt(r,a){var l;let _;return je(r,a)||(_=(l=dk(r,a))==null?void 0:l.type)&&A_(_,!0,!0)}function ht(r){return r&&(r.flags&1)!==0}function Ot(r){return r===nt||!!(r.flags&1&&r.aliasSymbol)}function Tn(r,a){if(a!==0)return VS(r,!1,a);const l=un(r);return l&&wi(l).type||VS(r,!1,a)}function vi(r,a,l){if(r=Mc(r,L=>!(L.flags&98304)),r.flags&131072)return oa;if(r.flags&1048576)return Bo(r,L=>vi(L,a,l));let _=Bn(nr(a,w0));const m=[],h=[];for(const L of Ua(r)){const z=b4(L,8576);!Qs(z,_)&&!(qf(L)&6)&&tZ(L)?m.push(L):h.push(z)}if(ZS(r)||KS(_)){if(h.length&&(_=Bn([_,...h])),_.flags&131072)return r;const L=Ztt();return L?y4(L,[r,_]):nt}const x=Bs();for(const L of m)x.set(L.escapedName,Ame(L,!1));const N=ao(l,x,Ve,Ve,Wu(r));return N.objectFlags|=4194304,N}function ui(r){return!!(r.flags&465829888)&&nc(fu(r)||Kt,32768)}function Zn(r){const a=ad(r,ui)?Bo(r,l=>l.flags&465829888?wh(l):l):r;return Fp(a,524288)}function Ai(r,a){const l=Ba(r);return l?a1(l,a):a}function Ba(r){const a=to(r);if(a&&F8(a)&&a.flowNode){const l=Da(r);if(l){const _=Ke(Jm.createStringLiteral(l),r),m=S_(a)?a:Jm.createParenthesizedExpression(a),h=Ke(Jm.createElementAccessExpression(m,_),r);return ba(_,h),ba(h,r),m!==a&&ba(m,h),h.flowNode=a.flowNode,h}}}function to(r){const a=r.parent.parent;switch(a.kind){case 208:case 303:return Ba(a);case 209:return Ba(r.parent);case 260:return a.initializer;case 226:return a.right}}function Da(r){const a=r.parent;return r.kind===208&&a.kind===206?ip(r.propertyName||r.name):r.kind===303||r.kind===304?ip(r.name):""+a.elements.indexOf(r)}function ip(r){const a=w0(r);return a.flags&384?""+a.value:void 0}function fm(r){const a=r.dotDotDotToken?32:0,l=Tn(r.parent.parent,a);return l&&Bg(r,l,!1)}function Bg(r,a,l){if(ht(a))return a;const _=r.parent;q&&r.flags&33554432&&$v(r)?a=Lh(a):q&&_.parent.initializer&&!Ip(jAe(_.parent.initializer),65536)&&(a=Fp(a,524288));let m;if(_.kind===206)if(r.dotDotDotToken){if(a=Id(a),a.flags&2||!yj(a))return Me(r,p.Rest_types_may_only_be_created_from_object_types),nt;const h=[];for(const x of _.elements)x.dotDotDotToken||h.push(x.propertyName||x.name);m=vi(a,h,r.symbol)}else{const h=r.propertyName||r.name,x=w0(h),N=K_(a,x,32,h);m=Ai(r,N)}else{const h=F0(65|(r.dotDotDotToken?0:128),a,Pe,_),x=_.elements.indexOf(r);if(r.dotDotDotToken){const N=Bo(a,L=>L.flags&58982400?wh(L):L);m=N_(N,da)?Bo(N,L=>JP(L,x)):pu(h)}else if(N0(a)){const N=Fd(x),L=32|(l||YP(r)?16:0),z=Zy(a,N,L,r.name)||nt;m=Ai(r,z)}else m=h}return r.initializer?Vl(Wk(r))?q&&!Ip(KP(r,0),16777216)?Zn(m):m:aK(r,Bn([Zn(m),KP(r,0)],2)):m}function kh(r){const a=S1(r);if(a)return ii(a)}function Ch(r){const a=Va(r,!0);return a.kind===106||a.kind===80&&sd(a)===Fe}function Wy(r){const a=Va(r,!0);return a.kind===209&&a.elements.length===0}function A_(r,a=!1,l=!0){return q&&l?i1(r,a):r}function VS(r,a,l){if(hi(r)&&r.parent.parent.kind===249){const x=pm(Uge(Hi(r.parent.parent.expression,l)));return x.flags&4456448?Swe(x):Ce}if(hi(r)&&r.parent.parent.kind===250){const x=r.parent.parent;return Uj(x)||B}if(Ns(r.parent))return fm(r);const _=xs(r)&&!Hd(r)||B_(r)||die(r),m=a&&KE(r),h=Mi(r);if(yz(r))return h?ht(h)||h===Kt?h:nt:fe?Kt:B;if(h)return A_(h,_,m);if((ae||Hr(r))&&hi(r)&&!Ns(r.name)&&!(wK(r)&32)&&!(r.flags&33554432)){if(!(lb(r)&6)&&(!r.initializer||Ch(r.initializer)))return Ge;if(r.initializer&&Wy(r.initializer))return yl}if(rs(r)){const x=r.parent;if(x.kind===178&&d4(x)){const z=Jo(un(r.parent),177);if(z){const Z=Ap(z),de=Khe(x);return de&&r===de?(E.assert(!de.type),Xr(Z.thisParameter)):Ja(Z)}}const N=ktt(x,r);if(N)return N;const L=r.symbol.escapedName==="this"?oNe(x):cNe(r);if(L)return A_(L,!1,m)}if(Tb(r)&&r.initializer){if(Hr(r)&&!rs(r)){const N=ya(r,un(r),k8(r));if(N)return N}const x=aK(r,KP(r,l));return A_(x,_,m)}if(xs(r)&&(ae||Hr(r)))if(Bc(r)){const x=An(r.parent.members,ec),N=x.length?Eh(r.symbol,x):Lu(r)&128?dZ(r.symbol):void 0;return N&&A_(N,!0,m)}else{const x=Th(r.parent),N=x?Vy(r.symbol,x):Lu(r)&128?dZ(r.symbol):void 0;return N&&A_(N,!0,m)}if(Kd(r))return Er;if(Ns(r.name))return D(r.name,!1,!0)}function l4(r){if(r.valueDeclaration&&Zr(r.valueDeclaration)){const a=wi(r);return a.isConstructorDeclaredProperty===void 0&&(a.isConstructorDeclaredProperty=!1,a.isConstructorDeclaredProperty=!!NP(r)&&Wi(r.declarations,l=>Zr(l)&&BZ(l)&&(l.left.kind!==212||Sf(l.left.argumentExpression))&&!Lc(void 0,l,r,l))),a.isConstructorDeclaredProperty}return!1}function AP(r){const a=r.valueDeclaration;return a&&xs(a)&&!Vl(a)&&!a.initializer&&(ae||Hr(a))}function NP(r){if(r.declarations)for(const a of r.declarations){const l=a_(a,!1,!1);if(l&&(l.kind===176||hm(l)))return l}}function dv(r){const a=wr(r.declarations[0]),l=xi(r.escapedName),_=r.declarations.every(h=>Hr(h)&&co(h)&&yg(h.expression)),m=_?I.createPropertyAccessExpression(I.createPropertyAccessExpression(I.createIdentifier("module"),I.createIdentifier("exports")),l):I.createPropertyAccessExpression(I.createIdentifier("exports"),l);return _&&ba(m.expression.expression,m.expression),ba(m.expression,m),ba(m,a),m.flowNode=a.endFlowNode,a1(m,Ge,Pe)}function Eh(r,a){const l=Vi(r.escapedName,"__#")?I.createPrivateIdentifier(r.escapedName.split("@")[1]):xi(r.escapedName);for(const _ of a){const m=I.createPropertyAccessExpression(I.createThis(),l);ba(m.expression,m),ba(m,_),m.flowNode=_.returnFlowNode;const h=u4(m,r);if(ae&&(h===Ge||h===yl)&&Me(r.valueDeclaration,p.Member_0_implicitly_has_an_1_type,ni(r),Ar(h)),!N_(h,Tj))return VI(h)}}function Vy(r,a){const l=Vi(r.escapedName,"__#")?I.createPrivateIdentifier(r.escapedName.split("@")[1]):xi(r.escapedName),_=I.createPropertyAccessExpression(I.createThis(),l);ba(_.expression,_),ba(_,a),_.flowNode=a.returnFlowNode;const m=u4(_,r);return ae&&(m===Ge||m===yl)&&Me(r.valueDeclaration,p.Member_0_implicitly_has_an_1_type,ni(r),Ar(m)),N_(m,Tj)?void 0:VI(m)}function u4(r,a){const l=(a==null?void 0:a.valueDeclaration)&&(!AP(a)||Lu(a.valueDeclaration)&128)&&dZ(a)||Pe;return a1(r,Ge,l)}function df(r,a){const l=FT(r.valueDeclaration);if(l){const N=Hr(l)?b1(l):void 0;return N&&N.typeExpression?ii(N.typeExpression):r.valueDeclaration&&ya(r.valueDeclaration,r,l)||tb(Dc(l))}let _,m=!1,h=!1;if(l4(r)&&(_=Vy(r,NP(r))),!_){let N;if(r.declarations){let L;for(const z of r.declarations){const Z=Zr(z)||Rs(z)?z:co(z)?Zr(z.parent)?z.parent:z:void 0;if(!Z)continue;const de=co(Z)?D8(Z):fc(Z);(de===4||Zr(Z)&&BZ(Z,de))&&(IP(Z)?m=!0:h=!0),Rs(Z)||(L=Lc(L,Z,r,z)),L||(N||(N=[])).push(Zr(Z)||Rs(Z)?mv(r,a,Z,de):Cn)}_=L}if(!_){if(!mr(N))return nt;let L=m&&r.declarations?Uy(N,r.declarations):void 0;if(h){const Z=dZ(r);Z&&((L||(L=[])).push(Z),m=!0)}const z=ct(L,Z=>!!(Z.flags&-98305))?L:N;_=Bn(z)}}const x=gf(A_(_,!1,h&&!m));return r.valueDeclaration&&Hr(r.valueDeclaration)&&Mc(x,N=>!!(N.flags&-98305))===Cn?(Ev(r.valueDeclaration,B),B):x}function ya(r,a,l){var _,m;if(!Hr(r)||!l||!ua(l)||l.properties.length)return;const h=Bs();for(;Zr(r)||Sn(r);){const L=Lf(r);(_=L==null?void 0:L.exports)!=null&&_.size&&Cd(h,L.exports),r=Zr(r)?r.parent:r.parent.parent}const x=Lf(r);(m=x==null?void 0:x.exports)!=null&&m.size&&Cd(h,x.exports);const N=ao(a,h,Ve,Ve,Ve);return N.objectFlags|=4096,N}function Lc(r,a,l,_){var m;const h=Vl(a.parent);if(h){const x=gf(ii(h));if(r)!Ot(r)&&!Ot(x)&&!Ih(r,x)&&f7e(void 0,r,_,x);else return x}if((m=l.parent)!=null&&m.valueDeclaration){const x=z2(l.parent);if(x.valueDeclaration){const N=Vl(x.valueDeclaration);if(N){const L=$s(ii(N),l.escapedName);if(L)return Hy(L)}}}return r}function mv(r,a,l,_){if(Rs(l)){if(a)return Xr(a);const x=Dc(l.arguments[2]),N=je(x,"value");if(N)return N;const L=je(x,"get");if(L){const Z=uT(L);if(Z)return Ja(Z)}const z=je(x,"set");if(z){const Z=uT(z);if(Z)return _he(Z)}return B}if(fk(l.left,l.right))return B;const m=_===1&&(Sn(l.left)||Co(l.left))&&(yg(l.left.expression)||Ie(l.left.expression)&&Db(l.left.expression)),h=a?Xr(a):m?Uu(Dc(l.right)):tb(Dc(l.right));if(h.flags&524288&&_===2&&r.escapedName==="export="){const x=Nd(h),N=Bs();r5(x.members,N);const L=N.size;a&&!a.exports&&(a.exports=Bs()),(a||r).exports.forEach((Z,de)=>{var _e;const Re=N.get(de);if(Re&&Re!==Z&&!(Z.flags&2097152))if(Z.flags&111551&&Re.flags&111551){if(Z.valueDeclaration&&Re.valueDeclaration&&wr(Z.valueDeclaration)!==wr(Re.valueDeclaration)){const gt=xi(Z.escapedName),qt=((_e=Wn(Re.valueDeclaration,Nu))==null?void 0:_e.name)||Re.valueDeclaration;la(Me(Z.valueDeclaration,p.Duplicate_identifier_0,gt),yn(qt,p._0_was_also_declared_here,gt)),la(Me(qt,p.Duplicate_identifier_0,gt),yn(Z.valueDeclaration,p._0_was_also_declared_here,gt))}const st=xa(Z.flags|Re.flags,de);st.links.type=Bn([Xr(Z),Xr(Re)]),st.valueDeclaration=Re.valueDeclaration,st.declarations=es(Re.declarations,Z.declarations),N.set(de,st)}else N.set(de,Pp(Z,Re));else N.set(de,Z)});const z=ao(L!==N.size?void 0:x.symbol,N,x.callSignatures,x.constructSignatures,x.indexInfos);if(L===N.size&&(h.aliasSymbol&&(z.aliasSymbol=h.aliasSymbol,z.aliasTypeArguments=h.aliasTypeArguments),bn(h)&4)){z.aliasSymbol=h.symbol;const Z=So(h);z.aliasTypeArguments=mr(Z)?Z:void 0}return z.objectFlags|=bn(h)&4096,z.symbol&&z.symbol.flags&32&&h===sp(z.symbol)&&(z.objectFlags|=16777216),z}return gZ(h)?(Ev(l,Ec),Ec):h}function fk(r,a){return Sn(r)&&r.expression.kind===110&&x3(a,l=>Xl(r,l))}function IP(r){const a=a_(r,!1,!1);return a.kind===176||a.kind===262||a.kind===218&&!w8(a.parent)}function Uy(r,a){return E.assert(r.length===a.length),r.filter((l,_)=>{const m=a[_],h=Zr(m)?m:Zr(m.parent)?m.parent:void 0;return h&&IP(h)})}function FP(r,a,l){if(r.initializer){const _=Ns(r.name)?D(r.name,!0,!1):Kt;return A_(aK(r,KP(r,l?0:1,_)))}return Ns(r.name)?D(r.name,a,l):(l&&!nn(r)&&Ev(r,B),a?ir:B)}function Vr(r,a,l){const _=Bs();let m,h=131200;rr(r.elements,N=>{const L=N.propertyName||N.name;if(N.dotDotDotToken){m=ng(Ce,B,!1);return}const z=w0(L);if(!bp(z)){h|=512;return}const Z=Sp(z),de=4|(N.initializer?16777216:0),_e=xa(de,Z);_e.links.type=FP(N,a,l),_e.links.bindingElement=N,_.set(_e.escapedName,_e)});const x=ao(void 0,_,Ve,Ve,m?[m]:Ve);return x.objectFlags|=h,a&&(x.pattern=r,x.objectFlags|=131072),x}function v(r,a,l){const _=r.elements,m=Do(_),h=m&&m.kind===208&&m.dotDotDotToken?m:void 0;if(_.length===0||_.length===1&&h)return re>=2?swe(B):Ec;const x=nr(_,Z=>dl(Z)?B:FP(Z,a,l)),N=XI(_,Z=>!(Z===h||dl(Z)||YP(Z)),_.length-1)+1,L=nr(_,(Z,de)=>Z===h?4:de>=N?2:1);let z=ig(x,L);return a&&(z=J8e(z),z.pattern=r,z.objectFlags|=131072),z}function D(r,a=!1,l=!1){return r.kind===206?Vr(r,a,l):v(r,a,l)}function M(r,a){return Lt(VS(r,!0,0),r,a)}function ie(r){const a=jn(r);if(!a.resolvedType){const l=xa(4096,"__importAttributes"),_=Bs();rr(r.elements,h=>{const x=xa(4,PF(h));x.parent=l,x.links.type=qut(h),x.links.target=x,_.set(x.escapedName,x)});const m=ao(l,_,Ve,Ve,Ve);m.objectFlags|=262272,a.resolvedType=m}return a.resolvedType}function ze(r){const a=Lf(r),l=Jtt(!1);return l&&a&&a===l}function Lt(r,a,l){return r?(r.flags&4096&&ze(a.parent)&&(r=Nme(a)),l&&kZ(a,r),r.flags&8192&&(Ea(a)||!a.type)&&r.symbol!==un(a)&&(r=oi),gf(r)):(r=rs(a)&&a.dotDotDotToken?Ec:B,l&&(nn(a)||Ev(a,r)),r)}function nn(r){const a=qd(r),l=a.kind===169?a.parent:a;return Bj(l)}function Mi(r){const a=Vl(r);if(a)return ii(a)}function bo(r){let a=r.valueDeclaration;return a?(Ea(a)&&(a=Wk(a)),rs(a)?oZ(a.parent):!1):!1}function Dd(r,a){const l=wi(r);if(!l.type){const _=qy(r,a);return!l.type&&!bo(r)&&!a&&(l.type=_),_}return l.type}function qy(r,a){if(r.flags&4194304)return ve(r);if(r===at)return B;if(r.flags&134217728&&r.valueDeclaration){const m=un(wr(r.valueDeclaration)),h=xa(m.flags,"exports");h.declarations=m.declarations?m.declarations.slice():[],h.parent=r,h.links.target=m,m.valueDeclaration&&(h.valueDeclaration=m.valueDeclaration),m.members&&(h.members=new Map(m.members)),m.exports&&(h.exports=new Map(m.exports));const x=Bs();return x.set("exports",h),ao(r,x,Ve,Ve,Ve)}E.assertIsDefined(r.valueDeclaration);const l=r.valueDeclaration;if(Ni(l)&&mp(l))return l.statements.length?gf(tb(Hi(l.statements[0].expression))):oa;if($0(l))return hv(r);if(!Km(r,0))return r.flags&512&&!(r.flags&67108864)?OP(r):Ea(l)&&a===1?nt:_4(r);let _;if(l.kind===277)_=Lt(Mi(l)||Dc(l.expression),l);else if(Zr(l)||Hr(l)&&(Rs(l)||(Sn(l)||I5(l))&&Zr(l.parent)))_=df(r);else if(Sn(l)||Co(l)||Ie(l)||Ma(l)||j_(l)||Qc(l)||Xc(l)||hc(l)&&!Wp(l)||Lm(l)||Ni(l)){if(r.flags&9136)return OP(r);_=Zr(l.parent)?df(r):Mi(l)||B}else if(zc(l))_=Mi(l)||jIe(l);else if(Kd(l))_=Mi(l)||bNe(l);else if(k_(l))_=Mi(l)||tD(l.name,0);else if(Wp(l))_=Mi(l)||BIe(l,0);else if(rs(l)||xs(l)||B_(l)||hi(l)||Ea(l)||aE(l))_=M(l,!0);else if(L1(l))_=OP(r);else if(p2(l))_=OY(r);else return E.fail("Unhandled declaration kind! "+E.formatSyntaxKind(l.kind)+" for "+E.formatSymbol(r));return _m()?_:r.flags&512&&!(r.flags&67108864)?OP(r):Ea(l)&&a===1?_:_4(r)}function id(r){if(r)switch(r.kind){case 177:return vp(r);case 178:return bre(r);case 172:return E.assert(Hd(r)),Vl(r)}}function gv(r){const a=id(r);return a&&ii(a)}function IY(r){const a=Khe(r);return a&&a.symbol}function wde(r){return Sv(Ap(r))}function hv(r){const a=wi(r);if(!a.type){if(!Km(r,0))return nt;const l=Jo(r,177),_=Jo(r,178),m=Wn(Jo(r,172),s_);let h=l&&Hr(l)&&kh(l)||gv(l)||gv(_)||gv(m)||l&&l.body&&nK(l)||m&&m.initializer&&M(m,!0);h||(_&&!Bj(_)?Bl(ae,_,p.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,ni(r)):l&&!Bj(l)?Bl(ae,l,p.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,ni(r)):m&&!Bj(m)&&Bl(ae,m,p.Member_0_implicitly_has_an_1_type,ni(r),"any"),h=B),_m()||(id(l)?Me(l,p._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ni(r)):id(_)||id(m)?Me(_,p._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ni(r)):l&&ae&&Me(l,p._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,ni(r)),h=B),a.type=h}return a.type}function wR(r){const a=wi(r);if(!a.writeType){if(!Km(r,8))return nt;const l=Jo(r,178)??Wn(Jo(r,172),s_);let _=gv(l);_m()||(id(l)&&Me(l,p._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ni(r)),_=B),a.writeType=_||hv(r)}return a.writeType}function FY(r){const a=Y_(sp(r));return a.flags&8650752?a:a.flags&2097152?wn(a.types,l=>!!(l.flags&8650752)):void 0}function OP(r){let a=wi(r);const l=a;if(!a.type){const _=r.valueDeclaration&&tK(r.valueDeclaration,!1);if(_){const m=she(r,_);m&&(r=m,a=m.links)}l.type=a.type=AR(r)}return a.type}function AR(r){const a=r.valueDeclaration;if(r.flags&1536&&dE(r))return B;if(a&&(a.kind===226||co(a)&&a.parent.kind===226))return df(r);if(r.flags&512&&a&&Ni(a)&&a.commonJsModuleIndicator){const _=X_(r);if(_!==r){if(!Km(r,0))return nt;const m=Na(r.exports.get("export=")),h=df(m,m===_?void 0:_);return _m()?h:_4(r)}}const l=rp(16,r);if(r.flags&32){const _=FY(r);return _?Xs([l,_]):l}else return q&&r.flags&16777216?i1(l,!0):l}function OY(r){const a=wi(r);return a.type||(a.type=s8e(r))}function LY(r){const a=wi(r);if(!a.type){if(!Km(r,0))return nt;const l=ll(r),_=r.declarations&&ff(ed(r),!0),m=Qa(_==null?void 0:_.declarations,h=>oc(h)?Mi(h):void 0);if(a.type=_!=null&&_.declarations&&bK(_.declarations)&&r.declarations.length?dv(_):bK(r.declarations)?Ge:m||($l(l)&111551?Xr(l):nt),!_m())return _4(_??r),a.type=nt}return a.type}function Ade(r){const a=wi(r);return a.type||(a.type=zi(Xr(a.target),a.mapper))}function Nde(r){const a=wi(r);return a.writeType||(a.writeType=zi(G2(a.target),a.mapper))}function _4(r){const a=r.valueDeclaration;if(a){if(Vl(a))return Me(r.valueDeclaration,p._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ni(r)),nt;ae&&(a.kind!==169||a.initializer)&&Me(r.valueDeclaration,p._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,ni(r))}else if(r.flags&2097152){const l=ed(r);l&&Me(l,p.Circular_definition_of_import_alias_0,ni(r))}return B}function MY(r){const a=wi(r);return a.type||(E.assertIsDefined(a.deferralParent),E.assertIsDefined(a.deferralConstituents),a.type=a.deferralParent.flags&1048576?Bn(a.deferralConstituents):Xs(a.deferralConstituents)),a.type}function NR(r){const a=wi(r);return!a.writeType&&a.deferralWriteConstituents&&(E.assertIsDefined(a.deferralParent),E.assertIsDefined(a.deferralConstituents),a.writeType=a.deferralParent.flags&1048576?Bn(a.deferralWriteConstituents):Xs(a.deferralWriteConstituents)),a.writeType}function G2(r){const a=Ko(r);return r.flags&4?a&2?a&65536?NR(r)||MY(r):r.links.writeType||r.links.type:s1(Xr(r),!!(r.flags&16777216)):r.flags&98304?a&1?Nde(r):wR(r):Xr(r)}function Xr(r,a){const l=Ko(r);return l&65536?MY(r):l&1?Ade(r):l&262144?stt(r):l&8192?vit(r):r.flags&7?Dd(r,a):r.flags&9136?OP(r):r.flags&8?OY(r):r.flags&98304?hv(r):r.flags&2097152?LY(r):nt}function Hy(r){return s1(Xr(r),!!(r.flags&16777216))}function Gy(r,a){return r!==void 0&&a!==void 0&&(bn(r)&4)!==0&&r.target===a}function C0(r){return bn(r)&4?r.target:r}function f4(r,a){return l(r);function l(_){if(bn(_)&7){const m=C0(_);return m===a||ct(Z_(m),l)}else if(_.flags&2097152)return ct(_.types,l);return!1}}function yv(r,a){for(const l of a)r=Hg(r,US(un(l)));return r}function gr(r,a){for(;;){if(r=r.parent,r&&Zr(r)){const l=fc(r);if(l===6||l===3){const _=un(r.left);_&&_.parent&&!Pr(_.parent.valueDeclaration,m=>r===m)&&(r=_.parent.valueDeclaration)}}if(!r)return;switch(r.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:{const _=gr(r,a);if(r.kind===200)return _r(_,US(un(r.typeParameter)));if(r.kind===194)return es(_,Iwe(r));const m=yv(_,H0(r)),h=a&&(r.kind===263||r.kind===231||r.kind===264||hm(r))&&sp(un(r)).thisType;return h?_r(m,h):m}case 348:const l=L8(r);l&&(r=l.valueDeclaration);break;case 327:{const _=gr(r,a);return r.tags?yv(_,Zs(r.tags,m=>kp(m)?m.typeParameters:void 0)):_}}}}function kn(r){var a;const l=r.flags&32||r.flags&16?r.valueDeclaration:(a=r.declarations)==null?void 0:a.find(_=>{if(_.kind===264)return!0;if(_.kind!==260)return!1;const m=_.initializer;return!!m&&(m.kind===218||m.kind===219)});return E.assert(!!l,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),gr(l)}function hn(r){if(!r.declarations)return;let a;for(const l of r.declarations)(l.kind===264||l.kind===263||l.kind===231||hm(l)||I8(l))&&(a=yv(a,H0(l)));return a}function bi(r){return es(kn(r),hn(r))}function di(r){const a=Es(r,1);if(a.length===1){const l=a[0];if(!l.typeParameters&&l.parameters.length===1&&Su(l)){const _=Aj(l.parameters[0]);return ht(_)||sj(_)===B}}return!1}function Ia(r){if(Es(r,1).length>0)return!0;if(r.flags&8650752){const a=fu(r);return!!a&&di(a)}return!1}function Za(r){const a=rh(r.symbol);return a&&Vd(a)}function Eu(r,a,l){const _=mr(a),m=Hr(l);return An(Es(r,1),h=>(m||_>=rg(h.typeParameters))&&_<=mr(h.typeParameters))}function eg(r,a,l){const _=Eu(r,a,l),m=nr(a,ii);return nl(_,h=>ct(h.typeParameters)?uI(h,m,Hr(l)):h)}function Y_(r){if(!r.resolvedBaseConstructorType){const a=rh(r.symbol),l=a&&Vd(a),_=Za(r);if(!_)return r.resolvedBaseConstructorType=Pe;if(!Km(r,1))return nt;const m=Hi(_.expression);if(l&&_!==l&&(E.assert(!l.typeArguments),Hi(l.expression)),m.flags&2621440&&Nd(m),!_m())return Me(r.symbol.valueDeclaration,p._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,ni(r.symbol)),r.resolvedBaseConstructorType=nt;if(!(m.flags&1)&&m!==Ne&&!Ia(m)){const h=Me(_.expression,p.Type_0_is_not_a_constructor_function_type,Ar(m));if(m.flags&262144){const x=RP(m);let N=Kt;if(x){const L=Es(x,1);L[0]&&(N=Ja(L[0]))}m.symbol.declarations&&la(h,yn(m.symbol.declarations[0],p.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,ni(m.symbol),Ar(N)))}return r.resolvedBaseConstructorType=nt}r.resolvedBaseConstructorType=m}return r.resolvedBaseConstructorType}function wd(r){let a=Ve;if(r.symbol.declarations)for(const l of r.symbol.declarations){const _=mC(l);if(_)for(const m of _){const h=ii(m);Ot(h)||(a===Ve?a=[h]:a.push(h))}}return a}function Ph(r,a){Me(r,p.Type_0_recursively_references_itself_as_a_base_type,Ar(a,void 0,2))}function Z_(r){if(!r.baseTypesResolved){if(Km(r,7)&&(r.objectFlags&8?r.resolvedBaseTypes=[p4(r)]:r.symbol.flags&96?(r.symbol.flags&32&&sI(r),r.symbol.flags&64&&Oet(r)):E.fail("type must be class or interface"),!_m()&&r.symbol.declarations))for(const a of r.symbol.declarations)(a.kind===263||a.kind===264)&&Ph(a,r);r.baseTypesResolved=!0}return r.resolvedBaseTypes}function p4(r){const a=nl(r.typeParameters,(l,_)=>r.elementFlags[_]&8?K_(l,_t):l);return pu(Bn(a||Ve),r.readonly)}function sI(r){r.resolvedBaseTypes=DF;const a=n_(Y_(r));if(!(a.flags&2621441))return r.resolvedBaseTypes=Ve;const l=Za(r);let _;const m=a.symbol?Po(a.symbol):void 0;if(a.symbol&&a.symbol.flags&32&&Fet(m))_=z8e(l,a.symbol);else if(a.flags&1)_=a;else{const x=eg(a,l.typeArguments,l);if(!x.length)return Me(l.expression,p.No_base_constructor_has_the_specified_number_of_type_arguments),r.resolvedBaseTypes=Ve;_=Ja(x[0])}if(Ot(_))return r.resolvedBaseTypes=Ve;const h=Id(_);if(!IR(h)){const x=qde(void 0,_),N=vs(x,p.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,Ar(h));return wa.add(Zg(wr(l.expression),l.expression,N)),r.resolvedBaseTypes=Ve}return r===h||f4(h,r)?(Me(r.symbol.valueDeclaration,p.Type_0_recursively_references_itself_as_a_base_type,Ar(r,void 0,2)),r.resolvedBaseTypes=Ve):(r.resolvedBaseTypes===DF&&(r.members=void 0),r.resolvedBaseTypes=[h])}function Fet(r){const a=r.outerTypeParameters;if(a){const l=a.length-1,_=So(r);return a[l].symbol!==_[l].symbol}return!0}function IR(r){if(r.flags&262144){const a=fu(r);if(a)return IR(a)}return!!(r.flags&67633153&&!g_(r)||r.flags&2097152&&Wi(r.types,IR))}function Oet(r){if(r.resolvedBaseTypes=r.resolvedBaseTypes||Ve,r.symbol.declarations){for(const a of r.symbol.declarations)if(a.kind===264&&kE(a))for(const l of kE(a)){const _=Id(ii(l));Ot(_)||(IR(_)?r!==_&&!f4(_,r)?r.resolvedBaseTypes===Ve?r.resolvedBaseTypes=[_]:r.resolvedBaseTypes.push(_):Ph(a,r):Me(l,p.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function Let(r){if(!r.declarations)return!0;for(const a of r.declarations)if(a.kind===264){if(a.flags&256)return!1;const l=kE(a);if(l){for(const _ of l)if(pc(_.expression)){const m=vo(_.expression,788968,!0);if(!m||!(m.flags&64)||sp(m).thisType)return!1}}}return!0}function sp(r){let a=wi(r);const l=a;if(!a.declaredType){const _=r.flags&32?1:2,m=she(r,r.valueDeclaration&&xot(r.valueDeclaration));m&&(r=m,a=m.links);const h=l.declaredType=a.declaredType=rp(_,r),x=kn(r),N=hn(r);(x||N||_===1||!Let(r))&&(h.objectFlags|=4,h.typeParameters=es(x,N),h.outerTypeParameters=x,h.localTypeParameters=N,h.instantiations=new Map,h.instantiations.set(Np(h.typeParameters),h),h.target=h,h.resolvedTypeArguments=h.typeParameters,h.thisType=Rf(r),h.thisType.isThisType=!0,h.thisType.constraint=h)}return a.declaredType}function r8e(r){var a;const l=wi(r);if(!l.declaredType){if(!Km(r,2))return nt;const _=E.checkDefined((a=r.declarations)==null?void 0:a.find(I8),"Type alias symbol with no valid declaration found"),m=gp(_)?_.typeExpression:_.type;let h=m?ii(m):nt;if(_m()){const x=hn(r);x&&(l.typeParameters=x,l.instantiations=new Map,l.instantiations.set(Np(x),h))}else h=nt,_.kind===347?Me(_.typeExpression.type,p.Type_alias_0_circularly_references_itself,ni(r)):Me(Nu(_)&&_.name||_,p.Type_alias_0_circularly_references_itself,ni(r));l.declaredType=h}return l.declaredType}function RY(r){return r.flags&1056&&r.symbol.flags&8?Po(e_(r.symbol)):r}function n8e(r){const a=wi(r);if(!a.declaredType){const l=[];if(r.declarations){for(const m of r.declarations)if(m.kind===266){for(const h of m.members)if(d4(h)){const x=un(h),N=O4(h),L=yk(N!==void 0?ent(N,Ks(r),x):i8e(x));wi(x).declaredType=L,l.push(Uu(L))}}}const _=l.length?Bn(l,1,r,void 0):i8e(r);_.flags&1048576&&(_.flags|=1024,_.symbol=r),a.declaredType=_}return a.declaredType}function i8e(r){const a=jg(32,r),l=jg(32,r);return a.regularType=a,a.freshType=l,l.regularType=a,l.freshType=l,a}function s8e(r){const a=wi(r);if(!a.declaredType){const l=n8e(e_(r));a.declaredType||(a.declaredType=l)}return a.declaredType}function US(r){const a=wi(r);return a.declaredType||(a.declaredType=Rf(r))}function Met(r){const a=wi(r);return a.declaredType||(a.declaredType=Po(ll(r)))}function Po(r){return a8e(r)||nt}function a8e(r){if(r.flags&96)return sp(r);if(r.flags&524288)return r8e(r);if(r.flags&262144)return US(r);if(r.flags&384)return n8e(r);if(r.flags&8)return s8e(r);if(r.flags&2097152)return Met(r)}function FR(r){switch(r.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 FR(r.elementType);case 183:return!r.typeArguments||r.typeArguments.every(FR)}return!1}function Ret(r){const a=Uk(r);return!a||FR(a)}function o8e(r){const a=Vl(r);return a?FR(a):!Y0(r)}function jet(r){const a=vp(r),l=H0(r);return(r.kind===176||!!a&&FR(a))&&r.parameters.every(o8e)&&l.every(Ret)}function Bet(r){if(r.declarations&&r.declarations.length===1){const a=r.declarations[0];if(a)switch(a.kind){case 172:case 171:return o8e(a);case 174:case 173:case 176:case 177:case 178:return jet(a)}}return!1}function c8e(r,a,l){const _=Bs();for(const m of r)_.set(m.escapedName,l&&Bet(m)?m:Ome(m,a));return _}function l8e(r,a){for(const l of a){if(u8e(l))continue;const _=r.get(l.escapedName);(!_||_.valueDeclaration&&Zr(_.valueDeclaration)&&!l4(_)&&!Xte(_.valueDeclaration))&&(r.set(l.escapedName,l),r.set(l.escapedName,l))}}function u8e(r){return!!r.valueDeclaration&&Iu(r.valueDeclaration)&&Ms(r.valueDeclaration)}function Ide(r){if(!r.declaredProperties){const a=r.symbol,l=$y(a);r.declaredProperties=_v(l),r.declaredCallSignatures=Ve,r.declaredConstructSignatures=Ve,r.declaredIndexInfos=Ve,r.declaredCallSignatures=$2(l.get("__call")),r.declaredConstructSignatures=$2(l.get("__new")),r.declaredIndexInfos=R8e(a)}return r}function Fde(r){if(!Pa(r)&&!Co(r))return!1;const a=Pa(r)?r.expression:r.argumentExpression;return pc(a)&&bp(Pa(r)?Wg(r):Dc(a))}function aI(r){return r.charCodeAt(0)===95&&r.charCodeAt(1)===95&&r.charCodeAt(2)===64}function OR(r){const a=us(r);return!!a&&Fde(a)}function d4(r){return!ty(r)||OR(r)}function Jet(r){return B5(r)&&!Fde(r)}function zet(r,a,l){E.assert(!!(Ko(r)&4096),"Expected a late-bound symbol."),r.flags|=l,wi(a.symbol).lateSymbol=r,r.declarations?a.symbol.isReplaceableByMethod||r.declarations.push(a):r.declarations=[a],l&111551&&(!r.valueDeclaration||r.valueDeclaration.kind!==a.kind)&&(r.valueDeclaration=a)}function _8e(r,a,l,_){E.assert(!!_.symbol,"The member is expected to have a symbol.");const m=jn(_);if(!m.resolvedSymbol){m.resolvedSymbol=_.symbol;const h=Zr(_)?_.left:_.name,x=Co(h)?Dc(h.argumentExpression):Wg(h);if(bp(x)){const N=Sp(x),L=_.symbol.flags;let z=l.get(N);z||l.set(N,z=xa(0,N,4096));const Z=a&&a.get(N);if(!(r.flags&32)&&(z.flags&xS(L)||Z)){const de=Z?es(Z.declarations,z.declarations):z.declarations,_e=!(x.flags&8192)&&xi(N)||eo(h);rr(de,Re=>Me(us(Re)||Re,p.Property_0_was_also_declared_here,_e)),Me(h||_,p.Duplicate_property_0,_e),z=xa(0,N,4096)}return z.links.nameType=x,zet(z,_,L),z.parent?E.assert(z.parent===r,"Existing symbol parent should match new one"):z.parent=r,m.resolvedSymbol=z}}return m.resolvedSymbol}function Ode(r,a){const l=wi(r);if(!l[a]){const _=a==="resolvedExports",m=_?r.flags&1536?jS(r).exports:r.exports:r.members;l[a]=m||U;const h=Bs();for(const L of r.declarations||Ve){const z=zte(L);if(z)for(const Z of z)_===Bc(Z)&&OR(Z)&&_8e(r,m,h,Z)}const x=z2(r).assignmentDeclarationMembers;if(x){const L=gs(x.values());for(const z of L){const Z=fc(z),de=Z===3||Zr(z)&&BZ(z,Z)||Z===9||Z===6;_===!de&&OR(z)&&_8e(r,m,h,z)}}let N=tk(m,h);if(r.flags&33554432&&l.cjsExportMerged&&r.declarations)for(const L of r.declarations){const z=wi(L.symbol)[a];if(!N){N=z;continue}z&&z.forEach((Z,de)=>{const _e=N.get(de);if(!_e)N.set(de,Z);else{if(_e===Z)return;N.set(de,Pp(_e,Z))}})}l[a]=N||U}return l[a]}function $y(r){return r.flags&6256?Ode(r,"resolvedMembers"):r.members||U}function jY(r){if(r.flags&106500&&r.escapedName==="__computed"){const a=wi(r);if(!a.lateSymbol&&ct(r.declarations,OR)){const l=Na(r.parent);ct(r.declarations,Bc)?Q_(l):$y(l)}return a.lateSymbol||(a.lateSymbol=r)}return r}function mf(r,a,l){if(bn(r)&4){const _=r.target,m=So(r);return mr(_.typeParameters)===mr(m)?P0(_,es(m,[a||_.thisType])):r}else if(r.flags&2097152){const _=nl(r.types,m=>mf(m,a,l));return _!==r.types?Xs(_):r}return l?n_(r):r}function f8e(r,a,l,_){let m,h,x,N,L;oB(l,_,0,l.length)?(h=a.symbol?$y(a.symbol):Bs(a.declaredProperties),x=a.declaredCallSignatures,N=a.declaredConstructSignatures,L=a.declaredIndexInfos):(m=ef(l,_),h=c8e(a.declaredProperties,m,l.length===1),x=sZ(a.declaredCallSignatures,m),N=sZ(a.declaredConstructSignatures,m),L=jwe(a.declaredIndexInfos,m));const z=Z_(a);if(z.length){if(a.symbol&&h===$y(a.symbol)){const de=Bs(a.declaredProperties),_e=Kde(a.symbol);_e&&de.set("__index",_e),h=de}jf(r,h,x,N,L);const Z=Do(_);for(const de of z){const _e=Z?mf(zi(de,m),Z):de;l8e(h,Ua(_e)),x=es(x,Es(_e,0)),N=es(N,Es(_e,1));const Re=_e!==B?Wu(_e):[ng(Ce,B,!1)];L=es(L,An(Re,st=>!Hde(L,st.keyType)))}}jf(r,h,x,N,L)}function Wet(r){f8e(r,Ide(r),Ve,Ve)}function Vet(r){const a=Ide(r.target),l=es(a.typeParameters,[a.thisType]),_=So(r),m=_.length===l.length?_:es(_,[r]);f8e(r,a,l,m)}function Jg(r,a,l,_,m,h,x,N){const L=new g(jt,N);return L.declaration=r,L.typeParameters=a,L.parameters=_,L.thisParameter=l,L.resolvedReturnType=m,L.resolvedTypePredicate=h,L.minArgumentCount=x,L.resolvedMinArgumentCount=void 0,L.target=void 0,L.mapper=void 0,L.compositeSignatures=void 0,L.compositeKind=void 0,L}function oI(r){const a=Jg(r.declaration,r.typeParameters,r.thisParameter,r.parameters,void 0,void 0,r.minArgumentCount,r.flags&167);return a.target=r.target,a.mapper=r.mapper,a.compositeSignatures=r.compositeSignatures,a.compositeKind=r.compositeKind,a}function p8e(r,a){const l=oI(r);return l.compositeSignatures=a,l.compositeKind=1048576,l.target=void 0,l.mapper=void 0,l}function Uet(r,a){if((r.flags&24)===a)return r;r.optionalCallSignatureCache||(r.optionalCallSignatureCache={});const l=a===8?"inner":"outer";return r.optionalCallSignatureCache[l]||(r.optionalCallSignatureCache[l]=qet(r,a))}function qet(r,a){E.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.");const l=oI(r);return l.flags|=a,l}function d8e(r,a){if(Su(r)){const m=r.parameters.length-1,h=r.parameters[m].escapedName,x=Xr(r.parameters[m]);if(da(x))return[l(x,m,h)];if(!a&&x.flags&1048576&&Wi(x.types,da))return nr(x.types,N=>l(N,m,h))}return[r.parameters];function l(m,h,x){const N=So(m),L=_(m,x),z=nr(N,(Z,de)=>{const _e=L&&L[de]?L[de]:ZP(r,h+de,m),Re=m.target.elementFlags[de],st=Re&12?32768:Re&2?16384:0,gt=xa(1,_e,st);return gt.links.type=Re&4?pu(Z):Z,gt});return es(r.parameters.slice(0,h),z)}function _(m,h){const x=new Map;return nr(m.target.labeledElementDeclarations,(N,L)=>{const z=uhe(N,L,h),Z=x.get(z);return Z===void 0?(x.set(z,1),z):(x.set(z,Z+1),`${z}_${Z}`)})}}function Het(r){const a=Y_(r),l=Es(a,1),_=rh(r.symbol),m=!!_&&Rn(_,64);if(l.length===0)return[Jg(void 0,r.localTypeParameters,void 0,Ve,r,void 0,0,m?4:0)];const h=Za(r),x=Hr(h),N=WR(h),L=mr(N),z=[];for(const Z of l){const de=rg(Z.typeParameters),_e=mr(Z.typeParameters);if(x||L>=de&&L<=_e){const Re=_e?VY(Z,Qy(N,Z.typeParameters,de,x)):oI(Z);Re.typeParameters=r.localTypeParameters,Re.resolvedReturnType=r,Re.flags=m?Re.flags|4:Re.flags&-5,z.push(Re)}}return z}function BY(r,a,l,_,m){for(const h of r)if(nj(h,a,l,_,m,l?vnt:vI))return h}function Get(r,a,l){if(a.typeParameters){if(l>0)return;for(let m=1;m1&&(l=l===void 0?_:-1);for(const m of r[_])if(!a||!BY(a,m,!1,!1,!0)){const h=Get(r,m,_);if(h){let x=m;if(h.length>1){let N=m.thisParameter;const L=rr(h,z=>z.thisParameter);if(L){const z=Xs(Ri(h,Z=>Z.thisParameter&&Xr(Z.thisParameter)));N=rT(L,z)}x=p8e(m,h),x.thisParameter=N}(a||(a=[])).push(x)}}}if(!mr(a)&&l!==-1){const _=r[l!==void 0?l:0];let m=_.slice();for(const h of r)if(h!==_){const x=h[0];if(E.assert(!!x,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),m=x.typeParameters&&ct(m,N=>!!N.typeParameters&&!m8e(x.typeParameters,N.typeParameters))?void 0:nr(m,N=>Qet(N,x)),!m)break}a=m}return a||Ve}function m8e(r,a){if(mr(r)!==mr(a))return!1;if(!r||!a)return!0;const l=ef(a,r);for(let _=0;_=m?r:a,x=h===r?a:r,N=h===r?_:m,L=ag(r)||ag(a),z=L&&!ag(h),Z=new Array(N+(z?1:0));for(let de=0;de=ym(h)&&de>=ym(x),$t=de>=_?void 0:ZP(r,de),Ur=de>=m?void 0:ZP(a,de),Tr=$t===Ur?$t:$t?Ur?void 0:$t:Ur,Gt=xa(1|(qt&&!gt?16777216:0),Tr||`arg${de}`,gt?32768:qt?16384:0);Gt.links.type=gt?pu(st):st,Z[de]=Gt}if(z){const de=xa(1,"args",32768);de.links.type=pu(Ld(x,N)),x===a&&(de.links.type=zi(de.links.type,l)),Z[N]=de}return Z}function Qet(r,a){const l=r.typeParameters||a.typeParameters;let _;r.typeParameters&&a.typeParameters&&(_=ef(a.typeParameters,r.typeParameters));const m=r.declaration,h=Xet(r,a,_),x=$et(r.thisParameter,a.thisParameter,_),N=Math.max(r.minArgumentCount,a.minArgumentCount),L=Jg(m,l,x,h,void 0,void 0,N,(r.flags|a.flags)&167);return L.compositeKind=1048576,L.compositeSignatures=es(r.compositeKind!==2097152&&r.compositeSignatures||[r],[a]),_?L.mapper=r.compositeKind!==2097152&&r.mapper&&r.compositeSignatures?eb(r.mapper,_):_:r.compositeKind!==2097152&&r.mapper&&r.compositeSignatures&&(L.mapper=r.mapper),L}function g8e(r){const a=Wu(r[0]);if(a){const l=[];for(const _ of a){const m=_.keyType;Wi(r,h=>!!zg(h,m))&&l.push(ng(m,Bn(nr(r,h=>bv(h,m))),ct(r,h=>zg(h,m).isReadonly)))}return l}return Ve}function Yet(r){const a=Lde(nr(r.types,m=>m===kt?[Xt]:Es(m,0))),l=Lde(nr(r.types,m=>Es(m,1))),_=g8e(r.types);jf(r,U,a,l,_)}function LR(r,a){return r?a?Xs([r,a]):r:a}function h8e(r){const a=R0(r,_=>Es(_,1).length>0),l=nr(r,di);if(a>0&&a===R0(l,_=>_)){const _=l.indexOf(!0);l[_]=!1}return l}function Zet(r,a,l,_){const m=[];for(let h=0;hN);for(let N=0;N0&&(z=nr(z,Z=>{const de=oI(Z);return de.resolvedReturnType=Zet(Ja(Z),m,h,N),de})),l=y8e(l,z)}a=y8e(a,Es(L,0)),_=Du(Wu(L),(z,Z)=>v8e(z,Z,!1),_)}jf(r,U,a||Ve,l||Ve,_||Ve)}function y8e(r,a){for(const l of a)(!r||Wi(r,_=>!nj(_,l,!1,!1,!1,vI)))&&(r=_r(r,l));return r}function v8e(r,a,l){if(r)for(let _=0;_{var L;!(N.flags&418)&&!(N.flags&512&&((L=N.declarations)!=null&&L.length)&&Wi(N.declarations,su))&&x.set(N.escapedName,N)}),l=x}let m;if(jf(r,l,Ve,Ve,Ve),a.flags&32){const x=sp(a),N=Y_(x);N.flags&11272192?(l=Bs(JS(l)),l8e(l,Ua(N))):N===B&&(m=ng(Ce,B,!1))}const h=UY(l);if(h?_=eme(h):(m&&(_=_r(_,m)),a.flags&384&&(Po(a).flags&32||ct(r.properties,x=>!!(Xr(x).flags&296)))&&(_=_r(_,En))),jf(r,l,Ve,Ve,_||Ve),a.flags&8208&&(r.callSignatures=$2(a)),a.flags&32){const x=sp(a);let N=a.members?$2(a.members.get("__constructor")):Ve;a.flags&16&&(N=Nn(N.slice(),Ri(r.callSignatures,L=>hm(L.declaration)?Jg(L.declaration,L.typeParameters,L.thisParameter,L.parameters,x,void 0,L.minArgumentCount,L.flags&167):void 0))),N.length||(N=Het(x)),r.constructSignatures=N}}function ttt(r,a,l){return zi(r,ef([a.indexType,a.objectType],[Fd(0),ig([l])]))}function rtt(r){const a=Bf(r.mappedType);if(!(a.flags&1048576||a.flags&2097152))return;const l=a.flags&1048576?a.origin:a;if(!l||!(l.flags&2097152))return;const _=Xs(l.types.filter(m=>m!==r.constraintType));return _!==Cn?_:void 0}function ntt(r){const a=zg(r.source,Ce),l=tg(r.mappedType),_=!(l&1),m=l&4?0:16777216,h=a?[ng(Ce,EZ(a.type,r.mappedType,r.constraintType),_&&a.isReadonly)]:Ve,x=Bs(),N=rtt(r);for(const L of Ua(r.source)){if(N){const de=b4(L,8576);if(!Qs(de,N))continue}const z=8192|(_&&Md(L)?8:0),Z=xa(4|L.flags&m,L.escapedName,z);if(Z.declarations=L.declarations,Z.links.nameType=wi(L).nameType,Z.links.propertyType=Xr(L),r.constraintType.type.flags&8388608&&r.constraintType.type.objectType.flags&262144&&r.constraintType.type.indexType.flags&262144){const de=r.constraintType.type.objectType,_e=ttt(r.mappedType,r.constraintType.type,de);Z.links.mappedType=_e,Z.links.constraintType=pm(de)}else Z.links.mappedType=r.mappedType,Z.links.constraintType=r.constraintType;x.set(L.escapedName,Z)}jf(r,x,Ve,Ve,h)}function MR(r){if(r.flags&4194304){const a=n_(r.type);return n1(a)?lwe(a):pm(a)}if(r.flags&16777216){if(r.root.isDistributive){const a=r.checkType,l=MR(a);if(l!==a)return Mme(r,eT(r.root.checkType,l,r.mapper),!1)}return r}if(r.flags&1048576)return Bo(r,MR,!0);if(r.flags&2097152){const a=r.types;return a.length===2&&a[0].flags&76&&a[1]===Fc?r:Xs(nl(r.types,MR))}return r}function Mde(r){return Ko(r)&4096}function Rde(r,a,l,_){for(const m of Ua(r))_(b4(m,a));if(r.flags&1)_(Ce);else for(const m of Wu(r))(!l||m.keyType.flags&134217732)&&_(m.keyType)}function itt(r){const a=Bs();let l;jf(r,U,Ve,Ve,Ve);const _=Ad(r),m=Bf(r),h=r.target||r,x=E0(h),N=JY(h)!==2,L=Dh(h),z=n_(qS(r)),Z=tg(r),de=ke?128:8576;m4(r)?Rde(z,de,ke,_e):aT(MR(m),_e),jf(r,a,Ve,Ve,l||Ve);function _e(st){const gt=x?zi(x,gI(r.mapper,_,st)):st;aT(gt,qt=>Re(st,qt))}function Re(st,gt){if(bp(gt)){const qt=Sp(gt),$t=a.get(qt);if($t)$t.links.nameType=Bn([$t.links.nameType,gt]),$t.links.keyType=Bn([$t.links.keyType,st]);else{const Ur=bp(st)?$s(z,Sp(st)):void 0,Tr=!!(Z&4||!(Z&8)&&Ur&&Ur.flags&16777216),Gt=!!(Z&1||!(Z&2)&&Ur&&Md(Ur)),Cr=q&&!Tr&&Ur&&Ur.flags&16777216,kr=Ur?Mde(Ur):0,Br=xa(4|(Tr?16777216:0),qt,kr|262144|(Gt?8:0)|(Cr?524288:0));Br.links.mappedType=r,Br.links.nameType=gt,Br.links.keyType=st,Ur&&(Br.links.syntheticOrigin=Ur,Br.declarations=N?Ur.declarations:void 0),a.set(qt,Br)}}else if(qY(gt)||gt.flags&33){const qt=gt.flags&5?Ce:gt.flags&40?_t:gt,$t=zi(L,gI(r.mapper,_,st)),Ur=cI(z,gt),Tr=!!(Z&1||!(Z&2)&&(Ur!=null&&Ur.isReadonly)),Gt=ng(qt,$t,Tr);l=v8e(l,Gt,!0)}}}function stt(r){if(!r.links.type){const a=r.links.mappedType;if(!Km(r,0))return a.containsError=!0,nt;const l=Dh(a.target||a),_=gI(a.mapper,Ad(a),r.links.keyType),m=zi(l,_);let h=q&&r.flags&16777216&&!nc(m,49152)?i1(m,!0):r.links.checkFlags&524288?SZ(m):m;_m()||(Me(P,p.Type_of_property_0_circularly_references_itself_in_mapped_type_1,ni(r),Ar(a)),h=nt),r.links.type=h}return r.links.type}function Ad(r){return r.typeParameter||(r.typeParameter=US(un(r.declaration.typeParameter)))}function Bf(r){return r.constraintType||(r.constraintType=r_(Ad(r))||nt)}function E0(r){return r.declaration.nameType?r.nameType||(r.nameType=zi(ii(r.declaration.nameType),r.mapper)):void 0}function Dh(r){return r.templateType||(r.templateType=r.declaration.type?zi(A_(ii(r.declaration.type),!0,!!(tg(r)&4)),r.mapper):nt)}function b8e(r){return Uk(r.declaration.typeParameter)}function m4(r){const a=b8e(r);return a.kind===198&&a.operator===143}function qS(r){if(!r.modifiersType)if(m4(r))r.modifiersType=zi(ii(b8e(r).type),r.mapper);else{const a=Eme(r.declaration),l=Bf(a),_=l&&l.flags&262144?r_(l):l;r.modifiersType=_&&_.flags&4194304?zi(_.type,r.mapper):Kt}return r.modifiersType}function tg(r){const a=r.declaration;return(a.readonlyToken?a.readonlyToken.kind===41?2:1:0)|(a.questionToken?a.questionToken.kind===41?8:4:0)}function S8e(r){const a=tg(r);return a&8?-1:a&4?1:0}function jde(r){const a=S8e(r),l=qS(r);return a||(g_(l)?S8e(l):0)}function att(r){return!!(bn(r)&32&&tg(r)&4)}function g_(r){if(bn(r)&32){const a=Bf(r);if(KS(a))return!0;const l=E0(r);if(l&&KS(zi(l,K2(Ad(r),a))))return!0}return!1}function JY(r){const a=E0(r);return a?Qs(a,Ad(r))?1:2:0}function Nd(r){return r.members||(r.flags&524288?r.objectFlags&4?Vet(r):r.objectFlags&3?Wet(r):r.objectFlags&1024?ntt(r):r.objectFlags&16?ett(r):r.objectFlags&32?itt(r):E.fail("Unhandled object type "+E.formatObjectFlags(r.objectFlags)):r.flags&1048576?Yet(r):r.flags&2097152?Ket(r):E.fail("Unhandled type "+E.formatTypeFlags(r.flags))),r}function Xy(r){return r.flags&524288?Nd(r).properties:Ve}function vv(r,a){if(r.flags&524288){const _=Nd(r).members.get(a);if(_&&nd(_))return _}}function RR(r){if(!r.resolvedProperties){const a=Bs();for(const l of r.types){for(const _ of Ua(l))if(!a.has(_.escapedName)){const m=BR(r,_.escapedName,!!(r.flags&2097152));m&&a.set(_.escapedName,m)}if(r.flags&1048576&&Wu(l).length===0)break}r.resolvedProperties=_v(a)}return r.resolvedProperties}function Ua(r){return r=LP(r),r.flags&3145728?RR(r):Xy(r)}function ott(r,a){r=LP(r),r.flags&3670016&&Nd(r).members.forEach((l,_)=>{lk(l,_)&&a(l,_)})}function ctt(r,a){return a.properties.some(_=>{const m=_.name&&(hd(_.name)?h_(cw(_.name)):w0(_.name)),h=m&&bp(m)?Sp(m):void 0,x=h===void 0?void 0:je(r,h);return!!x&&TI(x)&&!Qs(Tk(_),x)})}function ltt(r){const a=Bn(r);if(!(a.flags&1048576))return Hhe(a);const l=Bs();for(const _ of r)for(const{escapedName:m}of Hhe(_))if(!l.has(m)){const h=D8e(a,m);h&&l.set(m,h)}return gs(l.values())}function HS(r){return r.flags&262144?r_(r):r.flags&8388608?_tt(r):r.flags&16777216?k8e(r):fu(r)}function r_(r){return jR(r)?RP(r):void 0}function utt(r,a){const l=hI(r);return!!l&&GS(l,a)}function GS(r,a=0){var l;return a<5&&!!(r&&(r.flags&262144&&ct((l=r.symbol)==null?void 0:l.declarations,_=>Rn(_,4096))||r.flags&3145728&&ct(r.types,_=>GS(_,a))||r.flags&8388608&&GS(r.objectType,a+1)||r.flags&16777216&&GS(k8e(r),a+1)||r.flags&33554432&&GS(r.baseType,a)||bn(r)&32&&utt(r,a)||n1(r)&&vc(Q2(r),(_,m)=>!!(r.target.elementFlags[m]&8)&&GS(_,a))>=0))}function _tt(r){return jR(r)?ftt(r):void 0}function Bde(r){const a=Nh(r,!1);return a!==r?a:HS(r)}function ftt(r){if(Vde(r))return KY(r.objectType,r.indexType);const a=Bde(r.indexType);if(a&&a!==r.indexType){const _=Zy(r.objectType,a,r.accessFlags);if(_)return _}const l=Bde(r.objectType);if(l&&l!==r.objectType)return Zy(l,r.indexType,r.accessFlags)}function Jde(r){if(!r.resolvedDefaultConstraint){const a=$rt(r),l=xv(r);r.resolvedDefaultConstraint=ht(a)?l:ht(l)?a:Bn([a,l])}return r.resolvedDefaultConstraint}function T8e(r){if(r.resolvedConstraintOfDistributive!==void 0)return r.resolvedConstraintOfDistributive||void 0;if(r.root.isDistributive&&r.restrictiveInstantiation!==r){const a=Nh(r.checkType,!1),l=a===r.checkType?HS(a):a;if(l&&l!==r.checkType){const _=Mme(r,eT(r.root.checkType,l,r.mapper),!0);if(!(_.flags&131072))return r.resolvedConstraintOfDistributive=_,_}}r.resolvedConstraintOfDistributive=!1}function x8e(r){return T8e(r)||Jde(r)}function k8e(r){return jR(r)?x8e(r):void 0}function ptt(r,a){let l,_=!1;for(const m of r)if(m.flags&465829888){let h=HS(m);for(;h&&h.flags&21233664;)h=HS(h);h&&(l=_r(l,h),a&&(l=_r(l,m)))}else(m.flags&469892092||sg(m))&&(_=!0);if(l&&(a||_)){if(_)for(const m of r)(m.flags&469892092||sg(m))&&(l=_r(l,m));return ej(Xs(l),!1)}}function fu(r){if(r.flags&464781312||n1(r)){const a=zde(r);return a!==ho&&a!==Pl?a:void 0}return r.flags&4194304?_o:void 0}function wh(r){return fu(r)||r}function jR(r){return zde(r)!==Pl}function zde(r){if(r.resolvedBaseConstraint)return r.resolvedBaseConstraint;const a=[];return r.resolvedBaseConstraint=l(r);function l(h){if(!h.immediateBaseConstraint){if(!Km(h,4))return Pl;let x;const N=mZ(h);if((a.length<10||a.length<50&&!bs(a,N))&&(a.push(N),x=m(Nh(h,!1)),a.pop()),!_m()){if(h.flags&262144){const L=tme(h);if(L){const z=Me(L,p.Type_parameter_0_has_a_circular_constraint,Ar(h));P&&!Hv(L,P)&&!Hv(P,L)&&la(z,yn(P,p.Circularity_originates_in_type_at_this_location))}}x=Pl}h.immediateBaseConstraint=x||ho}return h.immediateBaseConstraint}function _(h){const x=l(h);return x!==ho&&x!==Pl?x:void 0}function m(h){if(h.flags&262144){const x=RP(h);return h.isThisType||!x?x:_(x)}if(h.flags&3145728){const x=h.types,N=[];let L=!1;for(const z of x){const Z=_(z);Z?(Z!==z&&(L=!0),N.push(Z)):L=!0}return L?h.flags&1048576&&N.length===x.length?Bn(N):h.flags&2097152&&N.length?Xs(N):void 0:h}if(h.flags&4194304)return _o;if(h.flags&134217728){const x=h.types,N=Ri(x,_);return N.length===x.length?QS(h.texts,N):Ce}if(h.flags&268435456){const x=_(h.type);return x&&x!==h.type?gk(h.symbol,x):Ce}if(h.flags&8388608){if(Vde(h))return _(KY(h.objectType,h.indexType));const x=_(h.objectType),N=_(h.indexType),L=x&&N&&Zy(x,N,h.accessFlags);return L&&_(L)}if(h.flags&16777216){const x=x8e(h);return x&&_(x)}if(h.flags&33554432)return _(ame(h));if(n1(h)){const x=nr(Q2(h),(N,L)=>{const z=N.flags&262144&&h.target.elementFlags[L]&8&&_(N)||N;return z!==N&&N_(z,Z=>Cv(Z)&&!n1(Z))?z:N});return ig(x,h.target.elementFlags,h.target.readonly,h.target.labeledElementDeclarations)}return h}}function dtt(r,a){return r.resolvedApparentType||(r.resolvedApparentType=mf(r,a,!0))}function Wde(r){if(r.default)r.default===Ml&&(r.default=Pl);else if(r.target){const a=Wde(r.target);r.default=a?zi(a,r.mapper):ho}else{r.default=Ml;const a=r.symbol&&rr(r.symbol.declarations,_=>Uo(_)&&_.default),l=a?ii(a):ho;r.default===Ml&&(r.default=l)}return r.default}function $S(r){const a=Wde(r);return a!==ho&&a!==Pl?a:void 0}function mtt(r){return Wde(r)!==Pl}function C8e(r){return!!(r.symbol&&rr(r.symbol.declarations,a=>Uo(a)&&a.default))}function E8e(r){return r.resolvedApparentType||(r.resolvedApparentType=gtt(r))}function gtt(r){const a=r.target??r,l=hI(a);if(l&&!a.declaration.nameType){const _=qS(r),m=g_(_)?E8e(_):fu(_);if(m&&N_(m,h=>Cv(h)||P8e(h)))return zi(a,eT(l,m,r.mapper))}return r}function P8e(r){return!!(r.flags&2097152)&&Wi(r.types,Cv)}function Vde(r){let a;return!!(r.flags&8388608&&bn(a=r.objectType)&32&&!g_(a)&&KS(r.indexType)&&!(tg(a)&8)&&!a.declaration.nameType)}function n_(r){const a=r.flags&465829888?fu(r)||Kt:r,l=bn(a);return l&32?E8e(a):l&4&&a!==r?mf(a,r):a.flags&2097152?dtt(a,r):a.flags&402653316?Cc:a.flags&296?Uc:a.flags&2112?Ktt():a.flags&528?jo:a.flags&12288?ewe():a.flags&67108864?oa:a.flags&4194304?_o:a.flags&2&&!q?oa:a}function LP(r){return Id(n_(Id(r)))}function D8e(r,a,l){var _,m,h;let x,N,L;const z=r.flags&1048576;let Z,de=4,_e=z?0:8,Re=!1;for(const Br of r.types){const Ir=n_(Br);if(!(Ot(Ir)||Ir.flags&131072)){const Jr=$s(Ir,a,l),ss=Jr?qf(Jr):0;if(Jr){if(Jr.flags&106500&&(Z??(Z=z?0:16777216),z?Z|=Jr.flags&16777216:Z&=Jr.flags),!x)x=Jr;else if(Jr!==x)if((I4(Jr)||Jr)===(I4(x)||x)&&Hme(x,Jr,(hs,Gi)=>hs===Gi?-1:0)===-1)Re=!!x.parent&&!!mr(hn(x.parent));else{N||(N=new Map,N.set(Ks(x),x));const hs=Ks(Jr);N.has(hs)||N.set(hs,Jr)}z&&Md(Jr)?_e|=8:!z&&!Md(Jr)&&(_e&=-9),_e|=(ss&6?0:256)|(ss&4?512:0)|(ss&2?1024:0)|(ss&256?2048:0),Wge(Jr)||(de=2)}else if(z){const Ki=!aI(a)&&dk(Ir,a);Ki?(_e|=32|(Ki.isReadonly?8:0),L=_r(L,da(Ir)?yZ(Ir)||Pe:Ki.type)):Dv(Ir)&&!(bn(Ir)&2097152)?(_e|=32,L=_r(L,Pe)):_e|=16}}}if(!x||z&&(N||_e&48)&&_e&1536&&!(N&&htt(N.values())))return;if(!N&&!(_e&16)&&!L)if(Re){const Br=(_=Wn(x,wm))==null?void 0:_.links,Ir=rT(x,Br==null?void 0:Br.type);return Ir.parent=(h=(m=x.valueDeclaration)==null?void 0:m.symbol)==null?void 0:h.parent,Ir.links.containingType=r,Ir.links.mapper=Br==null?void 0:Br.mapper,Ir.links.writeType=G2(x),Ir}else return x;const st=N?gs(N.values()):[x];let gt,qt,$t;const Ur=[];let Tr,Gt,Cr=!1;for(const Br of st){Gt?Br.valueDeclaration&&Br.valueDeclaration!==Gt&&(Cr=!0):Gt=Br.valueDeclaration,gt=Nn(gt,Br.declarations);const Ir=Xr(Br);qt||(qt=Ir,$t=wi(Br).nameType);const Jr=G2(Br);(Tr||Jr!==Ir)&&(Tr=_r(Tr||Ur.slice(),Jr)),Ir!==qt&&(_e|=64),(TI(Ir)||YS(Ir))&&(_e|=128),Ir.flags&131072&&Ir!==Ol&&(_e|=131072),Ur.push(Ir)}Nn(Ur,L);const kr=xa(4|(Z??0),a,de|_e);return kr.links.containingType=r,!Cr&&Gt&&(kr.valueDeclaration=Gt,Gt.symbol.parent&&(kr.parent=Gt.symbol.parent)),kr.declarations=gt,kr.links.nameType=$t,Ur.length>2?(kr.links.checkFlags|=65536,kr.links.deferralParent=r,kr.links.deferralConstituents=Ur,kr.links.deferralWriteConstituents=Tr):(kr.links.type=z?Bn(Ur):Xs(Ur),Tr&&(kr.links.writeType=z?Bn(Tr):Xs(Tr))),kr}function w8e(r,a,l){var _,m,h;let x=l?(_=r.propertyCacheWithoutObjectFunctionPropertyAugment)==null?void 0:_.get(a):(m=r.propertyCache)==null?void 0:m.get(a);return x||(x=D8e(r,a,l),x&&((l?r.propertyCacheWithoutObjectFunctionPropertyAugment||(r.propertyCacheWithoutObjectFunctionPropertyAugment=Bs()):r.propertyCache||(r.propertyCache=Bs())).set(a,x),l&&!(Ko(x)&48)&&!((h=r.propertyCache)!=null&&h.get(a))&&(r.propertyCache||(r.propertyCache=Bs())).set(a,x))),x}function htt(r){let a;for(const l of r){if(!l.declarations)return;if(!a){a=new Set(l.declarations);continue}if(a.forEach(_=>{bs(l.declarations,_)||a.delete(_)}),a.size===0)return}return a}function BR(r,a,l){const _=w8e(r,a,l);return _&&!(Ko(_)&16)?_:void 0}function Id(r){return r.flags&1048576&&r.objectFlags&16777216?r.resolvedReducedType||(r.resolvedReducedType=ytt(r)):r.flags&2097152?(r.objectFlags&16777216||(r.objectFlags|=16777216|(ct(RR(r),vtt)?33554432:0)),r.objectFlags&33554432?Cn:r):r}function ytt(r){const a=nl(r.types,Id);if(a===r.types)return r;const l=Bn(a);return l.flags&1048576&&(l.resolvedReducedType=l),l}function vtt(r){return A8e(r)||N8e(r)}function A8e(r){return!(r.flags&16777216)&&(Ko(r)&131264)===192&&!!(Xr(r).flags&131072)}function N8e(r){return!r.valueDeclaration&&!!(Ko(r)&1024)}function Ude(r){return!!(r.flags&1048576&&r.objectFlags&16777216&&ct(r.types,Ude)||r.flags&2097152&&btt(r))}function btt(r){const a=r.uniqueLiteralFilledInstantiation||(r.uniqueLiteralFilledInstantiation=zi(r,$i));return Id(a)!==a}function qde(r,a){if(a.flags&2097152&&bn(a)&33554432){const l=wn(RR(a),A8e);if(l)return vs(r,p.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,Ar(a,void 0,536870912),ni(l));const _=wn(RR(a),N8e);if(_)return vs(r,p.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,Ar(a,void 0,536870912),ni(_))}return r}function $s(r,a,l,_){var m,h;if(r=LP(r),r.flags&524288){const x=Nd(r),N=x.members.get(a);if(N&&!_&&((m=r.symbol)==null?void 0:m.flags)&512&&((h=wi(r.symbol).typeOnlyExportStarMap)!=null&&h.has(a)))return;if(N&&nd(N,_))return N;if(l)return;const L=x===Wt?kt:x.callSignatures.length?Fr:x.constructSignatures.length?Yi:void 0;if(L){const z=vv(L,a);if(z)return z}return vv(Te,a)}if(r.flags&2097152){const x=BR(r,a,!0);return x||(l?void 0:BR(r,a,l))}if(r.flags&1048576)return BR(r,a,l)}function JR(r,a){if(r.flags&3670016){const l=Nd(r);return a===0?l.callSignatures:l.constructSignatures}return Ve}function Es(r,a){const l=JR(LP(r),a);if(a===0&&!mr(l)&&r.flags&1048576){if(r.arrayFallbackSignatures)return r.arrayFallbackSignatures;let _;if(N_(r,m=>{var h;return!!((h=m.symbol)!=null&&h.parent)&&Stt(m.symbol.parent)&&(_?_===m.symbol.escapedName:(_=m.symbol.escapedName,!0))})){const m=Bo(r,x=>e1((I8e(x.symbol.parent)?Is:Ds).typeParameters[0],x.mapper)),h=pu(m,ad(r,x=>I8e(x.symbol.parent)));return r.arrayFallbackSignatures=Es(je(h,_),a)}r.arrayFallbackSignatures=l}return l}function Stt(r){return!r||!Ds.symbol||!Is.symbol?!1:!!Ed(r,Ds.symbol)||!!Ed(r,Is.symbol)}function I8e(r){return!r||!Is.symbol?!1:!!Ed(r,Is.symbol)}function Hde(r,a){return wn(r,l=>l.keyType===a)}function Gde(r,a){let l,_,m;for(const h of r)h.keyType===Ce?l=h:pk(a,h.keyType)&&(_?(m||(m=[_])).push(h):_=h);return m?ng(Kt,Xs(nr(m,h=>h.type)),Du(m,(h,x)=>h&&x.isReadonly,!0)):_||(l&&pk(a,Ce)?l:void 0)}function pk(r,a){return Qs(r,a)||a===Ce&&Qs(r,_t)||a===_t&&(r===Ra||!!(r.flags&128)&&kg(r.value))}function $de(r){return r.flags&3670016?Nd(r).indexInfos:Ve}function Wu(r){return $de(LP(r))}function zg(r,a){return Hde(Wu(r),a)}function bv(r,a){var l;return(l=zg(r,a))==null?void 0:l.type}function Xde(r,a){return Wu(r).filter(l=>pk(a,l.keyType))}function cI(r,a){return Gde(Wu(r),a)}function dk(r,a){return cI(r,aI(a)?oi:h_(xi(a)))}function F8e(r){var a;let l;for(const _ of H0(r))l=Hg(l,US(_.symbol));return l!=null&&l.length?l:Xc(r)?(a=MP(r))==null?void 0:a.typeParameters:void 0}function Qde(r){const a=[];return r.forEach((l,_)=>{V2(_)||a.push(l)}),a}function zY(r,a){if(Sl(r))return;const l=m_(ge,'"'+r+'"',512);return l&&a?Na(l):l}function lI(r){if(LT(r)||aw(r)||ow(r))return!0;if(r.initializer){const l=Ap(r.parent),_=r.parent.parameters.indexOf(r);return E.assert(_>=0),_>=ym(l,3)}const a=Pb(r.parent);return a?!r.type&&!r.dotDotDotToken&&r.parent.parameters.indexOf(r)>=KZ(a).length:!1}function Ttt(r){return xs(r)&&!Hd(r)&&r.questionToken}function zR(r,a,l,_){return{kind:r,parameterName:a,parameterIndex:l,type:_}}function rg(r){let a=0;if(r)for(let l=0;l=l&&h<=m){const x=r?r.slice():[];for(let L=h;LL.arguments.length&&!$t||ow(gt)||(m=l.length)}if((r.kind===177||r.kind===178)&&d4(r)&&(!N||!h)){const st=r.kind===177?178:177,gt=Jo(un(r),st);gt&&(h=IY(gt))}x&&x.typeExpression&&(h=rT(xa(1,"this"),ii(x.typeExpression)));const de=R1(r)?D1(r):r,_e=de&&sc(de)?sp(Na(de.parent.symbol)):void 0,Re=_e?_e.localTypeParameters:F8e(r);(lz(r)||Hr(r)&&xtt(r,l))&&(_|=1),(MC(r)&&Rn(r,64)||sc(r)&&Rn(r.parent,64))&&(_|=4),a.resolvedSignature=Jg(r,Re,h,l,void 0,void 0,m,_)}return a.resolvedSignature}function xtt(r,a){if(R1(r)||!Yde(r))return!1;const l=Do(r.parameters),_=l?Vk(l):T1(r).filter(vd),m=Qa(_,x=>x.typeExpression&&EO(x.typeExpression.type)?x.typeExpression.type:void 0),h=xa(3,"args",32768);return m?h.links.type=pu(ii(m.type)):(h.links.checkFlags|=65536,h.links.deferralParent=Cn,h.links.deferralConstituents=[Ec],h.links.deferralWriteConstituents=[Ec]),m&&a.pop(),a.push(h),!0}function MP(r){if(!(Hr(r)&&po(r)))return;const a=b1(r);return(a==null?void 0:a.typeExpression)&&uT(ii(a.typeExpression))}function ktt(r,a){const l=MP(r);if(!l)return;const _=r.parameters.indexOf(a);return a.dotDotDotToken?Nj(l,_):Ld(l,_)}function Ctt(r){const a=MP(r);return a&&Ja(a)}function Yde(r){const a=jn(r);return a.containsArgumentsReference===void 0&&(a.flags&512?a.containsArgumentsReference=!0:a.containsArgumentsReference=l(r.body)),a.containsArgumentsReference;function l(_){if(!_)return!1;switch(_.kind){case 80:return _.escapedText===Pt.escapedName&&qI(_)===Pt;case 172:case 174:case 177:case 178:return _.name.kind===167&&l(_.name);case 211:case 212:return l(_.expression);case 303:return l(_.initializer);default:return!eW(_)&&!gg(_)&&!!Ss(_,l)}}}function $2(r){if(!r||!r.declarations)return Ve;const a=[];for(let l=0;l0&&_.body){const m=r.declarations[l-1];if(_.parent===m.parent&&_.kind===m.kind&&_.pos===m.end)continue}if(Hr(_)&&_.jsDoc){const m=Uz(_);if(mr(m)){for(const h of m){const x=h.typeExpression;x.type===void 0&&!sc(_)&&Ev(x,B),a.push(Ap(x))}continue}}a.push(!t2(_)&&!Wp(_)&&MP(_)||Ap(_))}}return a}function O8e(r){const a=zu(r,r);if(a){const l=X_(a);if(l)return Xr(l)}return B}function Sv(r){if(r.thisParameter)return Xr(r.thisParameter)}function ap(r){if(!r.resolvedTypePredicate){if(r.target){const a=ap(r.target);r.resolvedTypePredicate=a?lnt(a,r.mapper):Ee}else if(r.compositeSignatures)r.resolvedTypePredicate=krt(r.compositeSignatures,r.compositeKind)||Ee;else{const a=r.declaration&&vp(r.declaration);let l;if(!a){const _=MP(r.declaration);_&&r!==_&&(l=ap(_))}r.resolvedTypePredicate=a&&Dw(a)?Ett(a,r):l||Ee}E.assert(!!r.resolvedTypePredicate)}return r.resolvedTypePredicate===Ee?void 0:r.resolvedTypePredicate}function Ett(r,a){const l=r.parameterName,_=r.type&&ii(r.type);return l.kind===197?zR(r.assertsModifier?2:0,void 0,void 0,_):zR(r.assertsModifier?3:1,l.escapedText,vc(a.parameters,m=>m.escapedName===l.escapedText),_)}function L8e(r,a,l){return a!==2097152?Bn(r,l):Xs(r)}function Ja(r){if(!r.resolvedReturnType){if(!Km(r,3))return nt;let a=r.target?zi(Ja(r.target),r.mapper):r.compositeSignatures?zi(L8e(nr(r.compositeSignatures,Ja),r.compositeKind,2),r.mapper):g4(r.declaration)||(_c(r.declaration.body)?B:nK(r.declaration));if(r.flags&8?a=mAe(a):r.flags&16&&(a=i1(a)),!_m()){if(r.declaration){const l=vp(r.declaration);if(l)Me(l,p.Return_type_annotation_circularly_references_itself);else if(ae){const _=r.declaration,m=us(_);m?Me(m,p._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,eo(m)):Me(_,p.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=B}r.resolvedReturnType=a}return r.resolvedReturnType}function g4(r){if(r.kind===176)return sp(Na(r.parent.symbol));const a=vp(r);if(R1(r)){const l=pC(r);if(l&&sc(l.parent)&&!a)return sp(Na(l.parent.parent.symbol))}if(fC(r))return ii(r.parameters[0].type);if(a)return ii(a);if(r.kind===177&&d4(r)){const l=Hr(r)&&kh(r);if(l)return l;const _=Jo(un(r),178),m=gv(_);if(m)return m}return Ctt(r)}function WY(r){return r.compositeSignatures&&ct(r.compositeSignatures,WY)||!r.resolvedReturnType&&_k(r,3)>=0}function Ptt(r){return M8e(r)||B}function M8e(r){if(Su(r)){const a=Xr(r.parameters[r.parameters.length-1]),l=da(a)?yZ(a):a;return l&&bv(l,_t)}}function uI(r,a,l,_){const m=Zde(r,Qy(a,r.typeParameters,rg(r.typeParameters),l));if(_){const h=$Ne(Ja(m));if(h){const x=oI(h);x.typeParameters=_;const N=oI(m);return N.resolvedReturnType=XS(x),N}}return m}function Zde(r,a){const l=r.instantiations||(r.instantiations=new Map),_=Np(a);let m=l.get(_);return m||l.set(_,m=VY(r,a)),m}function VY(r,a){return x4(r,Dtt(r,a),!0)}function Dtt(r,a){return ef(r.typeParameters,a)}function _I(r){return r.typeParameters?r.erasedSignatureCache||(r.erasedSignatureCache=wtt(r)):r}function wtt(r){return x4(r,Bwe(r.typeParameters),!0)}function Att(r){return r.typeParameters?r.canonicalSignatureCache||(r.canonicalSignatureCache=Ntt(r)):r}function Ntt(r){return uI(r,nr(r.typeParameters,a=>a.target&&!r_(a.target)?a.target:a),Hr(r.declaration))}function Itt(r){const a=r.typeParameters;if(a){if(r.baseSignatureCache)return r.baseSignatureCache;const l=Bwe(a),_=ef(a,nr(a,h=>r_(h)||Kt));let m=nr(a,h=>zi(h,_)||Kt);for(let h=0;h{qY(m)&&!Hde(a,m)&&a.push(ng(m,l.type?ii(l.type):B,R_(l,8),l))})}return a}return Ve}function qY(r){return!!(r.flags&4108)||YS(r)||!!(r.flags&2097152)&&!S4(r)&&ct(r.types,qY)}function tme(r){return Ri(An(r.symbol&&r.symbol.declarations,Uo),Uk)[0]}function j8e(r,a){var l;let _;if((l=r.symbol)!=null&&l.declarations){for(const m of r.symbol.declarations)if(m.parent.kind===195){const[h=m.parent,x]=cre(m.parent.parent);if(x.kind===183&&!a){const N=x,L=Che(N);if(L){const z=N.typeArguments.indexOf(h);if(z()=>Gct(N,L,st))),_e=zi(Z,de);_e!==r&&(_=_r(_,_e))}}}}else if(x.kind===169&&x.dotDotDotToken||x.kind===191||x.kind===202&&x.dotDotDotToken)_=_r(_,pu(Kt));else if(x.kind===204)_=_r(_,Ce);else if(x.kind===168&&x.parent.kind===200)_=_r(_,_o);else if(x.kind===200&&x.type&&Va(x.type)===m.parent&&x.parent.kind===194&&x.parent.extendsType===x&&x.parent.checkType.kind===200&&x.parent.checkType.type){const N=x.parent.checkType,L=ii(N.type);_=_r(_,zi(L,K2(US(un(N.typeParameter)),N.typeParameter.constraint?ii(N.typeParameter.constraint):_o)))}}}return _&&Xs(_)}function RP(r){if(!r.constraint)if(r.target){const a=r_(r.target);r.constraint=a?zi(a,r.mapper):ho}else{const a=tme(r);if(!a)r.constraint=j8e(r)||ho;else{let l=ii(a);l.flags&1&&!Ot(l)&&(l=a.parent.parent.kind===200?_o:Kt),r.constraint=l}}return r.constraint===ho?void 0:r.constraint}function B8e(r){const a=Jo(r.symbol,168),l=kp(a.parent)?L5(a.parent):a.parent;return l&&Lf(l)}function Np(r){let a="";if(r){const l=r.length;let _=0;for(;_1&&(a+=":"+h),_+=h}}return a}function mk(r,a){return r?`@${Ks(r)}`+(a?`:${Np(a)}`:""):""}function HY(r,a){let l=0;for(const _ of r)(a===void 0||!(_.flags&a))&&(l|=bn(_));return l&458752}function h4(r,a){return ct(a)&&r===fs?Kt:P0(r,a)}function P0(r,a){const l=Np(a);let _=r.instantiations.get(l);return _||(_=rp(4,r.symbol),r.instantiations.set(l,_),_.objectFlags|=a?HY(a):0,_.target=r,_.resolvedTypeArguments=a),_}function J8e(r){const a=jg(r.flags,r.symbol);return a.objectFlags=r.objectFlags,a.target=r.target,a.resolvedTypeArguments=r.resolvedTypeArguments,a}function rme(r,a,l,_,m){if(!_){_=hk(a);const x=T4(_);m=l?A0(x,l):x}const h=rp(4,r.symbol);return h.target=r,h.node=a,h.mapper=l,h.aliasSymbol=_,h.aliasTypeArguments=m,h}function So(r){var a,l;if(!r.resolvedTypeArguments){if(!Km(r,6))return((a=r.target.localTypeParameters)==null?void 0:a.map(()=>nt))||Ve;const _=r.node,m=_?_.kind===183?es(r.target.outerTypeParameters,cK(_,r.target.localTypeParameters)):_.kind===188?[ii(_.elementType)]:nr(_.elements,ii):Ve;_m()?r.resolvedTypeArguments=r.mapper?A0(m,r.mapper):m:(r.resolvedTypeArguments=((l=r.target.localTypeParameters)==null?void 0:l.map(()=>nt))||Ve,Me(r.node||P,r.target.symbol?p.Type_arguments_for_0_circularly_reference_themselves:p.Tuple_type_arguments_circularly_reference_themselves,r.target.symbol&&ni(r.target.symbol)))}return r.resolvedTypeArguments}function D0(r){return mr(r.target.typeParameters)}function z8e(r,a){const l=Po(Na(a)),_=l.localTypeParameters;if(_){const m=mr(r.typeArguments),h=rg(_),x=Hr(r);if(!(!ae&&x)&&(m_.length)){const z=x&&s0(r)&&!mx(r.parent),Z=h===_.length?z?p.Expected_0_type_arguments_provide_these_with_an_extends_tag:p.Generic_type_0_requires_1_type_argument_s:z?p.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:p.Generic_type_0_requires_between_1_and_2_type_arguments,de=Ar(l,void 0,2);if(Me(r,Z,de,h,_.length),!x)return nt}if(r.kind===183&&owe(r,mr(r.typeArguments)!==_.length))return rme(l,r,void 0);const L=es(l.outerTypeParameters,Qy(WR(r),_,h,x));return P0(l,L)}return X2(r,a)?l:nt}function y4(r,a,l,_){const m=Po(r);if(m===Yt){const z=g9.get(r.escapedName);if(z!==void 0&&a&&a.length===1)return z===4?nme(a[0]):gk(r,a[0])}const h=wi(r),x=h.typeParameters,N=Np(a)+mk(l,_);let L=h.instantiations.get(N);return L||h.instantiations.set(N,L=Wwe(m,ef(x,Qy(a,x,rg(x),Hr(r.valueDeclaration))),l,_)),L}function Ftt(r,a){if(Ko(a)&1048576){const m=WR(r),h=mk(a,m);let x=we.get(h);return x||(x=Oc(1,"error",void 0,`alias ${h}`),x.aliasSymbol=a,x.aliasTypeArguments=m,we.set(h,x)),x}const l=Po(a),_=wi(a).typeParameters;if(_){const m=mr(r.typeArguments),h=rg(_);if(m_.length)return Me(r,h===_.length?p.Generic_type_0_requires_1_type_argument_s:p.Generic_type_0_requires_between_1_and_2_type_arguments,ni(a),h,_.length),nt;const x=hk(r);let N=x&&(W8e(a)||!W8e(x))?x:void 0,L;if(N)L=T4(N);else if(e5(r)){const z=v4(r,2097152,!0);if(z&&z!==tt){const Z=ll(z);Z&&Z.flags&524288&&(N=Z,L=WR(r)||(_?[]:void 0))}}return y4(a,WR(r),N,L)}return X2(r,a)?l:nt}function W8e(r){var a;const l=(a=r.declarations)==null?void 0:a.find(I8);return!!(l&&cf(l))}function Ott(r){switch(r.kind){case 183:return r.typeName;case 233:const a=r.expression;if(pc(a))return a}}function V8e(r){return r.parent?`${V8e(r.parent)}.${r.escapedName}`:r.escapedName}function GY(r){const l=(r.kind===166?r.right:r.kind===211?r.name:r).escapedText;if(l){const _=r.kind===166?GY(r.left):r.kind===211?GY(r.expression):void 0,m=_?`${V8e(_)}.${l}`:l;let h=ne.get(m);return h||(ne.set(m,h=xa(524288,l,1048576)),h.parent=_,h.links.declaredType=wt),h}return tt}function v4(r,a,l){const _=Ott(r);if(!_)return tt;const m=vo(_,a,l);return m&&m!==tt?m:l?tt:GY(_)}function $Y(r,a){if(a===tt)return nt;if(a=DP(a)||a,a.flags&96)return z8e(r,a);if(a.flags&524288)return Ftt(r,a);const l=a8e(a);if(l)return X2(r,a)?Uu(l):nt;if(a.flags&111551&&XY(r)){const _=Ltt(r,a);return _||(v4(r,788968),Xr(a))}return nt}function Ltt(r,a){const l=jn(r);if(!l.resolvedJSDocType){const _=Xr(a);let m=_;if(a.valueDeclaration){const h=r.kind===205&&r.qualifier;_.symbol&&_.symbol!==a&&h&&(m=$Y(r,_.symbol))}l.resolvedJSDocType=m}return l.resolvedJSDocType}function nme(r){return ime(r)?U8e(r,Kt):r}function ime(r){return!!(r.flags&3145728&&ct(r.types,ime)||r.flags&33554432&&!jP(r)&&ime(r.baseType)||r.flags&524288&&!sg(r)||r.flags&432275456&&!YS(r))}function jP(r){return!!(r.flags&33554432&&r.constraint.flags&2)}function sme(r,a){return a.flags&3||a===r||r.flags&1?r:U8e(r,a)}function U8e(r,a){const l=`${Vu(r)}>${Vu(a)}`,_=ns.get(l);if(_)return _;const m=Rg(33554432);return m.baseType=r,m.constraint=a,ns.set(l,m),m}function ame(r){return jP(r)?r.baseType:Xs([r.constraint,r.baseType])}function q8e(r){return r.kind===189&&r.elements.length===1}function H8e(r,a,l){return q8e(a)&&q8e(l)?H8e(r,a.elements[0],l.elements[0]):Ky(ii(a))===Ky(r)?ii(l):void 0}function Mtt(r,a){let l,_=!0;for(;a&&!Ei(a)&&a.kind!==327;){const m=a.parent;if(m.kind===169&&(_=!_),(_||r.flags&8650752)&&m.kind===194&&a===m.trueType){const h=H8e(r,m.checkType,m.extendsType);h&&(l=_r(l,h))}else if(r.flags&262144&&m.kind===200&&!m.nameType&&a===m.type){const h=ii(m);if(Ad(h)===Ky(r)){const x=hI(h);if(x){const N=r_(x);N&&N_(N,Cv)&&(l=_r(l,Bn([_t,Ra])))}}}a=m}return l?sme(r,Xs(l)):r}function XY(r){return!!(r.flags&16777216)&&(r.kind===183||r.kind===205)}function X2(r,a){return r.typeArguments?(Me(r,p.Type_0_is_not_generic,a?ni(a):r.typeName?eo(r.typeName):f9),!1):!0}function G8e(r){if(Ie(r.typeName)){const a=r.typeArguments;switch(r.typeName.escapedText){case"String":return X2(r),Ce;case"Number":return X2(r),_t;case"Boolean":return X2(r),fi;case"Void":return X2(r),Wr;case"Undefined":return X2(r),Pe;case"Null":return X2(r),ce;case"Function":case"function":return X2(r),kt;case"array":return(!a||!a.length)&&!ae?Ec:void 0;case"promise":return(!a||!a.length)&&!ae?Fj(B):void 0;case"Object":if(a&&a.length===2){if(D5(r)){const l=ii(a[0]),_=ii(a[1]),m=l===Ce||l===_t?[ng(l,_,!1)]:Ve;return ao(void 0,U,Ve,Ve,m)}return B}return X2(r),ae?void 0:B}}}function Rtt(r){const a=ii(r.type);return q?aj(a,65536):a}function ome(r){const a=jn(r);if(!a.resolvedType){if(Qg(r)&&Sb(r.parent))return a.resolvedSymbol=tt,a.resolvedType=Dc(r.parent.expression);let l,_;const m=788968;XY(r)&&(_=G8e(r),_||(l=v4(r,m,!0),l===tt?l=v4(r,m|111551):v4(r,m),_=$Y(r,l))),_||(l=v4(r,m),_=$Y(r,l)),a.resolvedSymbol=l,a.resolvedType=_}return a.resolvedType}function WR(r){return nr(r.typeArguments,ii)}function $8e(r){const a=jn(r);if(!a.resolvedType){const l=dIe(r);a.resolvedType=Uu(gf(l))}return a.resolvedType}function X8e(r,a){function l(m){const h=m.declarations;if(h)for(const x of h)switch(x.kind){case 263:case 264:case 266:return x}}if(!r)return a?fs:oa;const _=Po(r);return _.flags&524288?mr(_.typeParameters)!==a?(Me(l(r),p.Global_type_0_must_have_1_type_parameter_s,Xo(r),a),a?fs:oa):_:(Me(l(r),p.Global_type_0_must_be_a_class_or_interface_type,Xo(r)),a?fs:oa)}function cme(r,a){return BP(r,111551,a?p.Cannot_find_global_value_0:void 0)}function lme(r,a){return BP(r,788968,a?p.Cannot_find_global_type_0:void 0)}function QY(r,a,l){const _=BP(r,788968,l?p.Cannot_find_global_type_0:void 0);if(_&&(Po(_),mr(wi(_).typeParameters)!==a)){const m=_.declarations&&wn(_.declarations,qp);Me(m,p.Global_type_0_must_have_1_type_parameter_s,Xo(_),a);return}return _}function BP(r,a,l){return Go(void 0,r,a,l,r,!1,!1,!1)}function Pc(r,a,l){const _=lme(r,l);return _||l?X8e(_,a):void 0}function jtt(){return qm||(qm=Pc("TypedPropertyDescriptor",1,!0)||fs)}function Btt(){return zr||(zr=Pc("TemplateStringsArray",0,!0)||oa)}function Q8e(){return Vn||(Vn=Pc("ImportMeta",0,!0)||oa)}function Y8e(){if(!Ln){const r=xa(0,"ImportMetaExpression"),a=Q8e(),l=xa(4,"meta",8);l.parent=r,l.links.type=a;const _=Bs([l]);r.members=_,Ln=ao(r,_,Ve,Ve,Ve)}return Ln}function Z8e(r){return ji||(ji=Pc("ImportCallOptions",0,r))||oa}function ume(r){return fa||(fa=Pc("ImportAttributes",0,r))||oa}function K8e(r){return Ku||(Ku=cme("Symbol",r))}function Jtt(r){return Kf||(Kf=lme("SymbolConstructor",r))}function ewe(){return sm||(sm=Pc("Symbol",0,!1))||oa}function VR(r){return _h||(_h=Pc("Promise",1,r))||fs}function twe(r){return _u||(_u=Pc("PromiseLike",1,r))||fs}function _me(r){return fh||(fh=cme("Promise",r))}function ztt(r){return H_||(H_=Pc("PromiseConstructorLike",0,r))||oa}function YY(r){return O||(O=Pc("AsyncIterable",1,r))||fs}function Wtt(r){return he||(he=Pc("AsyncIterator",3,r))||fs}function Vtt(r){return Xe||(Xe=Pc("AsyncIterableIterator",1,r))||fs}function Utt(r){return Ft||(Ft=Pc("AsyncGenerator",3,r))||fs}function fme(r){return Ag||(Ag=Pc("Iterable",1,r))||fs}function qtt(r){return f_||(f_=Pc("Iterator",3,r))||fs}function Htt(r){return Q||(Q=Pc("IterableIterator",1,r))||fs}function Gtt(r){return Ye||(Ye=Pc("Generator",3,r))||fs}function $tt(r){return Ct||(Ct=Pc("IteratorYieldResult",1,r))||fs}function Xtt(r){return At||(At=Pc("IteratorReturnResult",1,r))||fs}function rwe(r){return pa||(pa=Pc("Disposable",0,r))||oa}function Qtt(r){return lc||(lc=Pc("AsyncDisposable",0,r))||oa}function nwe(r,a=0){const l=BP(r,788968,void 0);return l&&X8e(l,a)}function Ytt(){return Rl||(Rl=QY("Extract",2,!0)||tt),Rl===tt?void 0:Rl}function Ztt(){return Kc||(Kc=QY("Omit",2,!0)||tt),Kc===tt?void 0:Kc}function pme(r){return G_||(G_=QY("Awaited",1,r)||(r?tt:void 0)),G_===tt?void 0:G_}function Ktt(){return p_||(p_=Pc("BigInt",0,!1))||oa}function ert(r){return Qp??(Qp=Pc("ClassDecoratorContext",1,r))??fs}function trt(r){return Yp??(Yp=Pc("ClassMethodDecoratorContext",2,r))??fs}function rrt(r){return Ci??(Ci=Pc("ClassGetterDecoratorContext",2,r))??fs}function nrt(r){return ph??(ph=Pc("ClassSetterDecoratorContext",2,r))??fs}function irt(r){return h0??(h0=Pc("ClassAccessorDecoratorContext",2,r))??fs}function srt(r){return Zp??(Zp=Pc("ClassAccessorDecoratorTarget",2,r))??fs}function art(r){return w2??(w2=Pc("ClassAccessorDecoratorResult",2,r))??fs}function ort(r){return A2??(A2=Pc("ClassFieldDecoratorContext",2,r))??fs}function crt(){return ky||(ky=cme("NaN",!1))}function lrt(){return ja||(ja=QY("Record",2,!0)||tt),ja===tt?void 0:ja}function fI(r,a){return r!==fs?P0(r,a):oa}function iwe(r){return fI(jtt(),[r])}function swe(r){return fI(fme(!0),[r])}function pu(r,a){return fI(a?Is:Ds,[r])}function dme(r){switch(r.kind){case 190:return 2;case 191:return awe(r);case 202:return r.questionToken?2:r.dotDotDotToken?awe(r):1;default:return 1}}function awe(r){return $R(r.type)?4:8}function urt(r){const a=prt(r.parent);if($R(r))return a?Is:Ds;const _=nr(r.elements,dme);return mme(_,a,nr(r.elements,_rt))}function _rt(r){return RC(r)||rs(r)?r:void 0}function owe(r,a){return!!hk(r)||cwe(r)&&(r.kind===188?Yy(r.elementType):r.kind===189?ct(r.elements,Yy):a||ct(r.typeArguments,Yy))}function cwe(r){const a=r.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 cwe(a);case 265:return!0}return!1}function Yy(r){switch(r.kind){case 183:return XY(r)||!!(v4(r,788968).flags&524288);case 186:return!0;case 198:return r.operator!==158&&Yy(r.type);case 196:case 190:case 202:case 323:case 321:case 322:case 316:return Yy(r.type);case 191:return r.type.kind!==188||Yy(r.type.elementType);case 192:case 193:return ct(r.types,Yy);case 199:return Yy(r.objectType)||Yy(r.indexType);case 194:return Yy(r.checkType)||Yy(r.extendsType)||Yy(r.trueType)||Yy(r.falseType)}return!1}function frt(r){const a=jn(r);if(!a.resolvedType){const l=urt(r);if(l===fs)a.resolvedType=oa;else if(!(r.kind===189&&ct(r.elements,_=>!!(dme(_)&8)))&&owe(r))a.resolvedType=r.kind===189&&r.elements.length===0?l:rme(l,r,void 0);else{const _=r.kind===188?[ii(r.elementType)]:nr(r.elements,ii);a.resolvedType=gme(l,_)}}return a.resolvedType}function prt(r){return Vb(r)&&r.operator===148}function ig(r,a,l=!1,_=[]){const m=mme(a||nr(r,h=>1),l,_);return m===fs?oa:r.length?gme(m,r):m}function mme(r,a,l){if(r.length===1&&r[0]&4)return a?Is:Ds;const _=nr(r,h=>h&1?"#":h&2?"?":h&4?".":"*").join()+(a?"R":"")+(ct(l,h=>!!h)?","+nr(l,h=>h?Oa(h):"_").join(","):"");let m=os.get(_);return m||os.set(_,m=drt(r,a,l)),m}function drt(r,a,l){const _=r.length,m=R0(r,de=>!!(de&9));let h;const x=[];let N=0;if(_){h=new Array(_);for(let de=0;de<_;de++){const _e=h[de]=Rf(),Re=r[de];if(N|=Re,!(N&12)){const st=xa(4|(Re&2?16777216:0),""+de,a?8:0);st.links.tupleLabelDeclaration=l==null?void 0:l[de],st.links.type=_e,x.push(st)}}}const L=x.length,z=xa(4,"length",a?8:0);if(N&12)z.links.type=_t;else{const de=[];for(let _e=m;_e<=_;_e++)de.push(Fd(_e));z.links.type=Bn(de)}x.push(z);const Z=rp(12);return Z.typeParameters=h,Z.outerTypeParameters=void 0,Z.localTypeParameters=h,Z.instantiations=new Map,Z.instantiations.set(Np(Z.typeParameters),Z),Z.target=Z,Z.resolvedTypeArguments=Z.typeParameters,Z.thisType=Rf(),Z.thisType.isThisType=!0,Z.thisType.constraint=Z,Z.declaredProperties=x,Z.declaredCallSignatures=Ve,Z.declaredConstructSignatures=Ve,Z.declaredIndexInfos=Ve,Z.elementFlags=r,Z.minLength=m,Z.fixedLength=L,Z.hasRestElement=!!(N&12),Z.combinedFlags=N,Z.readonly=a,Z.labeledElementDeclarations=l,Z}function gme(r,a){return r.objectFlags&8?hme(r,a):P0(r,a)}function hme(r,a){var l,_,m,h;if(!(r.combinedFlags&14))return P0(r,a);if(r.combinedFlags&8){const st=vc(a,(gt,qt)=>!!(r.elementFlags[qt]&8&>.flags&1179648));if(st>=0)return qR(nr(a,(gt,qt)=>r.elementFlags[qt]&8?gt:Kt))?Bo(a[st],gt=>hme(r,uB(a,st,gt))):nt}const x=[],N=[],L=[];let z=-1,Z=-1,de=-1;for(let st=0;st=1e4)return Me(P,gg(P)?p.Type_produces_a_tuple_type_that_is_too_large_to_represent:p.Expression_produces_a_tuple_type_that_is_too_large_to_represent),nt;rr($t,(Ur,Tr)=>{var Gt;return Re(Ur,gt.target.elementFlags[Tr],(Gt=gt.target.labeledElementDeclarations)==null?void 0:Gt[Tr])})}else Re(N0(gt)&&bv(gt,_t)||nt,4,(m=r.labeledElementDeclarations)==null?void 0:m[st]);else Re(gt,qt,(h=r.labeledElementDeclarations)==null?void 0:h[st])}for(let st=0;st=0&&ZN[Z+gt]&8?K_(st,_t):st)),x.splice(Z+1,de-Z),N.splice(Z+1,de-Z),L.splice(Z+1,de-Z));const _e=mme(N,r.readonly,L);return _e===fs?oa:N.length?P0(_e,x):_e;function Re(st,gt,qt){gt&1&&(z=N.length),gt&4&&Z<0&&(Z=N.length),gt&6&&(de=N.length),x.push(gt&2?A_(st,!0):st),N.push(gt),L.push(qt)}}function JP(r,a,l=0){const _=r.target,m=D0(r)-l;return a>_.fixedLength?eit(r)||ig(Ve):ig(So(r).slice(a,m),_.elementFlags.slice(a,m),!1,_.labeledElementDeclarations&&_.labeledElementDeclarations.slice(a,m))}function lwe(r){return Bn(_r(zK(r.target.fixedLength,a=>h_(""+a)),pm(r.target.readonly?Is:Ds)))}function mrt(r,a){const l=vc(r.elementFlags,_=>!(_&a));return l>=0?l:r.elementFlags.length}function pI(r,a){return r.elementFlags.length-XI(r.elementFlags,l=>!(l&a))-1}function yme(r){return r.fixedLength+pI(r,3)}function Q2(r){const a=So(r),l=D0(r);return a.length===l?a:a.slice(0,l)}function grt(r){return A_(ii(r.type),!0)}function Vu(r){return r.id}function Ah(r,a){return Jh(r,a,Vu,Ao)>=0}function UR(r,a){const l=Jh(r,a,Vu,Ao);return l<0?(r.splice(~l,0,a),!0):!1}function hrt(r,a,l){const _=l.flags;if(!(_&131072))if(a|=_&473694207,_&465829888&&(a|=33554432),_&2097152&&bn(l)&67108864&&(a|=536870912),l===mt&&(a|=8388608),!q&&_&98304)bn(l)&65536||(a|=4194304);else{const m=r.length,h=m&&l.id>r[m-1].id?~m:Jh(r,l,Vu,Ao);h<0&&r.splice(~h,0,l)}return a}function uwe(r,a,l){let _;for(const m of l)m!==_&&(a=m.flags&1048576?uwe(r,a|(xrt(m)?1048576:0),m.types):hrt(r,a,m),_=m);return a}function yrt(r,a){var l;if(r.length<2)return r;const _=Np(r),m=Vs.get(_);if(m)return m;const h=a&&ct(r,z=>!!(z.flags&524288)&&!g_(z)&&Jme(Nd(z))),x=r.length;let N=x,L=0;for(;N>0;){N--;const z=r[N];if(h||z.flags&469499904){if(z.flags&262144&&wh(z).flags&1048576){dm(z,Bn(nr(r,_e=>_e===z?Cn:_e)),ep)&&J0(r,N);continue}const Z=z.flags&61603840?wn(Ua(z),_e=>Od(Xr(_e))):void 0,de=Z&&Uu(Xr(Z));for(const _e of r)if(z!==_e){if(L===1e5&&L/(x-N)*x>1e6){(l=qr)==null||l.instant(qr.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:r.map(st=>st.id)}),Me(P,p.Expression_produces_a_union_type_that_is_too_complex_to_represent);return}if(L++,Z&&_e.flags&61603840){const Re=je(_e,Z.escapedName);if(Re&&Od(Re)&&Uu(Re)!==de)continue}if(dm(z,_e,ep)&&(!(bn(C0(z))&1)||!(bn(C0(_e))&1)||kv(z,_e))){J0(r,N);break}}}}return Vs.set(_,r),r}function vrt(r,a,l){let _=r.length;for(;_>0;){_--;const m=r[_],h=m.flags;(h&402653312&&a&4||h&256&&a&8||h&2048&&a&64||h&8192&&a&4096||l&&h&32768&&a&16384||Z2(m)&&Ah(r,m.regularType))&&J0(r,_)}}function brt(r){const a=An(r,YS);if(a.length){let l=r.length;for(;l>0;){l--;const _=r[l];_.flags&128&&ct(a,m=>Srt(_,m))&&J0(r,l)}}}function Srt(r,a){return a.flags&134217728?DZ(r,a):PZ(r,a)}function Trt(r){const a=[];for(const l of r)if(l.flags&2097152&&bn(l)&67108864){const _=l.types[0].flags&8650752?0:1;Jf(a,l.types[_])}for(const l of a){const _=[];for(const h of r)if(h.flags&2097152&&bn(h)&67108864){const x=h.types[0].flags&8650752?0:1;h.types[x]===l&&UR(_,h.types[1-x])}const m=fu(l);if(N_(m,h=>Ah(_,h))){let h=r.length;for(;h>0;){h--;const x=r[h];if(x.flags&2097152&&bn(x)&67108864){const N=x.types[0].flags&8650752?0:1;x.types[N]===l&&Ah(_,x.types[1-N])&&J0(r,h)}}UR(r,l)}}}function xrt(r){return!!(r.flags&1048576&&(r.aliasSymbol||r.origin))}function _we(r,a){for(const l of a)if(l.flags&1048576){const _=l.origin;l.aliasSymbol||_&&!(_.flags&1048576)?Jf(r,l):_&&_.flags&1048576&&_we(r,_.types)}}function vme(r,a){const l=ck(r);return l.types=a,l}function Bn(r,a=1,l,_,m){if(r.length===0)return Cn;if(r.length===1)return r[0];if(r.length===2&&!m&&(r[0].flags&1048576||r[1].flags&1048576)){const h=a===0?"N":a===2?"S":"L",x=r[0].id=2&&h[0]===Pe&&h[1]===A&&J0(h,1),(x&402664352||x&16384&&x&32768)&&vrt(h,x,!!(a&2)),x&128&&x&402653184&&brt(h),x&536870912&&Trt(h),a===2&&(h=yrt(h,!!(x&524288)),!h))return nt;if(h.length===0)return x&65536?x&4194304?ce:Ne:x&32768?x&4194304?Pe:St:Cn}if(!m&&x&1048576){const L=[];_we(L,r);const z=[];for(const de of h)ct(L,_e=>Ah(_e.types,de))||z.push(de);if(!l&&L.length===1&&z.length===0)return L[0];if(Du(L,(de,_e)=>de+_e.types.length,0)+z.length===h.length){for(const de of L)UR(z,de);m=vme(1048576,z)}}const N=(x&36323331?0:32768)|(x&2097152?16777216:0);return Sme(h,N,l,_,m)}function krt(r,a){let l;const _=[];for(const h of r){const x=ap(h);if(x){if(x.kind!==0&&x.kind!==1||l&&!bme(l,x))return;l=x,_.push(x.type)}else{const N=a!==2097152?Ja(h):void 0;if(N!==Jt&&N!==ar)return}}if(!l)return;const m=L8e(_,a);return zR(l.kind,l.parameterName,l.parameterIndex,m)}function bme(r,a){return r.kind===a.kind&&r.parameterIndex===a.parameterIndex}function Sme(r,a,l,_,m){if(r.length===0)return Cn;if(r.length===1)return r[0];const x=(m?m.flags&1048576?`|${Np(m.types)}`:m.flags&2097152?`&${Np(m.types)}`:`#${m.type.id}|${Np(r)}`:Np(r))+mk(l,_);let N=yr.get(x);return N||(N=Rg(1048576),N.objectFlags=a|HY(r,98304),N.types=r,N.origin=m,N.aliasSymbol=l,N.aliasTypeArguments=_,r.length===2&&r[0].flags&512&&r[1].flags&512&&(N.flags|=16,N.intrinsicName="boolean"),yr.set(x,N)),N}function Crt(r){const a=jn(r);if(!a.resolvedType){const l=hk(r);a.resolvedType=Bn(nr(r.types,ii),1,l,T4(l))}return a.resolvedType}function Ert(r,a,l){const _=l.flags;return _&2097152?pwe(r,a,l.types):(sg(l)?a&16777216||(a|=16777216,r.set(l.id.toString(),l)):(_&3?l===mt&&(a|=8388608):(q||!(_&98304))&&(l===A&&(a|=262144,l=Pe),r.has(l.id.toString())||(l.flags&109472&&a&109472&&(a|=67108864),r.set(l.id.toString(),l))),a|=_&473694207),a)}function pwe(r,a,l){for(const _ of l)a=Ert(r,a,Uu(_));return a}function Prt(r,a){let l=r.length;for(;l>0;){l--;const _=r[l];(_.flags&4&&a&402653312||_.flags&8&&a&256||_.flags&64&&a&2048||_.flags&4096&&a&8192||_.flags&16384&&a&32768||sg(_)&&a&470302716)&&J0(r,l)}}function Drt(r,a){for(const l of r)if(!Ah(l.types,a)){const _=a.flags&128?Ce:a.flags&288?_t:a.flags&2048?Tt:a.flags&8192?oi:void 0;if(!_||!Ah(l.types,_))return!1}return!0}function wrt(r){let a=r.length;const l=An(r,_=>!!(_.flags&128));for(;a>0;){a--;const _=r[a];if(_.flags&402653184){for(const m of l)if(t1(m,_)){J0(r,a);break}else if(YS(_))return!0}}return!1}function dwe(r,a){for(let l=0;l!(_.flags&a))}function Art(r){let a;const l=vc(r,x=>!!(bn(x)&32768));if(l<0)return!1;let _=l+1;for(;_!!(st.flags&469893116)||sg(st))){if(YR(Re,_e))return de;if(!(Re.flags&1048576&&ad(Re,st=>YR(st,_e)))&&!YR(_e,Re))return Cn;N=67108864}}}const L=Np(x)+mk(a,l);let z=ln.get(L);if(!z){if(h&1048576)if(Art(x))z=Xs(x,a,l);else if(Wi(x,Z=>!!(Z.flags&1048576&&Z.types[0].flags&32768))){const Z=ct(x,kI)?A:Pe;dwe(x,32768),z=Bn([Xs(x),Z],1,a,l)}else if(Wi(x,Z=>!!(Z.flags&1048576&&(Z.types[0].flags&65536||Z.types[1].flags&65536))))dwe(x,65536),z=Bn([Xs(x),ce],1,a,l);else if(x.length>=4){const Z=Math.floor(x.length/2);z=Xs([Xs(x.slice(0,Z)),Xs(x.slice(Z))],a,l)}else{if(!qR(x))return nt;const Z=Irt(x),de=ct(Z,_e=>!!(_e.flags&2097152))&&Tme(Z)>Tme(x)?vme(2097152,x):void 0;z=Bn(Z,1,a,l,de)}else z=Nrt(x,N,a,l);ln.set(L,z)}return z}function mwe(r){return Du(r,(a,l)=>l.flags&1048576?a*l.types.length:l.flags&131072?0:a,1)}function qR(r){var a;const l=mwe(r);return l>=1e5?((a=qr)==null||a.instant(qr.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:r.map(_=>_.id),size:l}),Me(P,p.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1):!0}function Irt(r){const a=mwe(r),l=[];for(let _=0;_=0;N--)if(r[N].flags&1048576){const L=r[N].types,z=L.length;m[N]=L[h%z],h=Math.floor(h/z)}const x=Xs(m);x.flags&131072||l.push(x)}return l}function gwe(r){return!(r.flags&3145728)||r.aliasSymbol?1:r.flags&1048576&&r.origin?gwe(r.origin):Tme(r.types)}function Tme(r){return Du(r,(a,l)=>a+gwe(l),0)}function Frt(r){const a=jn(r);if(!a.resolvedType){const l=hk(r),_=nr(r.types,ii),m=_.length===2?_.indexOf(Fc):-1,h=m>=0?_[1-m]:Kt,x=!!(h.flags&76||h.flags&134217728&&YS(h));a.resolvedType=Xs(_,l,T4(l),x)}return a.resolvedType}function hwe(r,a){const l=Rg(4194304);return l.type=r,l.indexFlags=a,l}function Ort(r){const a=ck(4194304);return a.type=r,a}function ywe(r,a){return a&1?r.resolvedStringIndexType||(r.resolvedStringIndexType=hwe(r,1)):r.resolvedIndexType||(r.resolvedIndexType=hwe(r,0))}function vwe(r,a){const l=Ad(r),_=Bf(r),m=E0(r.target||r);if(!m&&!(a&2))return _;const h=[];if(KS(_)){if(m4(r))return ywe(r,a);aT(_,N)}else if(m4(r)){const L=n_(qS(r));Rde(L,8576,!!(a&1),N)}else aT(MR(_),N);const x=a&2?Mc(Bn(h),L=>!(L.flags&5)):Bn(h);if(x.flags&1048576&&_.flags&1048576&&Np(x.types)===Np(_.types))return _;return x;function N(L){const z=m?zi(m,gI(r.mapper,l,L)):L;h.push(z===Ce?is:z)}}function Lrt(r){const a=Ad(r);return l(E0(r)||a);function l(_){return _.flags&470810623?!0:_.flags&16777216?_.root.isDistributive&&_.checkType===a:_.flags&137363456?Wi(_.types,l):_.flags&8388608?l(_.objectType)&&l(_.indexType):_.flags&33554432?l(_.baseType)&&l(_.constraint):_.flags&268435456?l(_.type):!1}}function w0(r){if(Pi(r))return Cn;if(j_(r))return Uu(Hi(r));if(Pa(r))return Uu(Wg(r));const a=Ib(r);return a!==void 0?h_(xi(a)):ot(r)?Uu(Hi(r)):Cn}function b4(r,a,l){if(l||!(qf(r)&6)){let _=wi(jY(r)).nameType;if(!_){const m=us(r.valueDeclaration);_=r.escapedName==="default"?h_("default"):m&&w0(m)||(W8(r)?void 0:h_(Xo(r)))}if(_&&_.flags&a)return _}return Cn}function bwe(r,a){return!!(r.flags&a||r.flags&2097152&&ct(r.types,l=>bwe(l,a)))}function Mrt(r,a,l){const _=l&&(bn(r)&7||r.aliasSymbol)?Ort(r):void 0,m=nr(Ua(r),x=>b4(x,a)),h=nr(Wu(r),x=>x!==En&&bwe(x.keyType,a)?x.keyType===Ce&&a&8?is:x.keyType:Cn);return Bn(es(m,h),1,void 0,void 0,_)}function xme(r,a=0){return!!(r.flags&58982400||n1(r)||g_(r)&&(!Lrt(r)||JY(r)===2)||r.flags&1048576&&!(a&4)&&Ude(r)||r.flags&2097152&&nc(r,465829888)&&ct(r.types,sg))}function pm(r,a=Oe){return r=Id(r),jP(r)?nme(pm(r.baseType,a)):xme(r,a)?ywe(r,a):r.flags&1048576?Xs(nr(r.types,l=>pm(l,a))):r.flags&2097152?Bn(nr(r.types,l=>pm(l,a))):bn(r)&32?vwe(r,a):r===mt?mt:r.flags&2?Cn:r.flags&131073?_o:Mrt(r,(a&2?128:402653316)|(a&1?0:12584),a===Oe)}function Swe(r){if(ke)return r;const a=Ytt();return a?y4(a,[r,Ce]):Ce}function Rrt(r){const a=Swe(pm(r));return a.flags&131072?Ce:a}function jrt(r){const a=jn(r);if(!a.resolvedType)switch(r.operator){case 143:a.resolvedType=pm(ii(r.type));break;case 158:a.resolvedType=r.type.kind===155?Nme(M8(r.parent)):nt;break;case 148:a.resolvedType=ii(r.type);break;default:E.assertNever(r.operator)}return a.resolvedType}function Brt(r){const a=jn(r);return a.resolvedType||(a.resolvedType=QS([r.head.text,...nr(r.templateSpans,l=>l.literal.text)],nr(r.templateSpans,l=>ii(l.type)))),a.resolvedType}function QS(r,a){const l=vc(a,z=>!!(z.flags&1179648));if(l>=0)return qR(a)?Bo(a[l],z=>QS(r,uB(a,l,z))):nt;if(bs(a,mt))return mt;const _=[],m=[];let h=r[0];if(!L(r,a))return Ce;if(_.length===0)return h_(h);if(m.push(h),Wi(m,z=>z==="")){if(Wi(_,z=>!!(z.flags&4)))return Ce;if(_.length===1&&YS(_[0]))return _[0]}const x=`${Np(_)}|${nr(m,z=>z.length).join(",")}|${m.join("")}`;let N=ei.get(x);return N||ei.set(x,N=zrt(m,_)),N;function L(z,Z){for(let de=0;degk(r,l)):a.flags&128?h_(Twe(r,a.value)):a.flags&134217728?QS(...Wrt(r,a.texts,a.types)):a.flags&268435456&&r===a.symbol?a:a.flags&268435461||KS(a)?xwe(r,a):HR(a)?xwe(r,QS(["",""],[a])):a}function Twe(r,a){switch(g9.get(r.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 Wrt(r,a,l){switch(g9.get(r.escapedName)){case 0:return[a.map(_=>_.toUpperCase()),l.map(_=>gk(r,_))];case 1:return[a.map(_=>_.toLowerCase()),l.map(_=>gk(r,_))];case 2:return[a[0]===""?a:[a[0].charAt(0).toUpperCase()+a[0].slice(1),...a.slice(1)],a[0]===""?[gk(r,l[0]),...l.slice(1)]:l];case 3:return[a[0]===""?a:[a[0].charAt(0).toLowerCase()+a[0].slice(1),...a.slice(1)],a[0]===""?[gk(r,l[0]),...l.slice(1)]:l]}return[a,l]}function xwe(r,a){const l=`${Ks(r)},${Vu(a)}`;let _=Ii.get(l);return _||Ii.set(l,_=Vrt(r,a)),_}function Vrt(r,a){const l=jg(268435456,r);return l.type=a,l}function Urt(r,a,l,_,m){const h=Rg(8388608);return h.objectType=r,h.indexType=a,h.accessFlags=l,h.aliasSymbol=_,h.aliasTypeArguments=m,h}function dI(r){if(ae)return!1;if(bn(r)&4096)return!0;if(r.flags&1048576)return Wi(r.types,dI);if(r.flags&2097152)return ct(r.types,dI);if(r.flags&465829888){const a=zde(r);return a!==r&&dI(a)}return!1}function ZY(r,a){return bp(r)?Sp(r):a&&Ac(a)?Ib(a):void 0}function kme(r,a){if(a.flags&8208){const l=Pr(r.parent,_=>!co(_))||r.parent;return jv(l)?Jd(l)&&Ie(r)&&IAe(l,r):Wi(a.declarations,_=>!As(_)||b0(_))}return!0}function kwe(r,a,l,_,m,h){const x=m&&m.kind===212?m:void 0,N=m&&Pi(m)?void 0:ZY(l,m);if(N!==void 0){if(h&256)return wv(a,N)||B;const z=$s(a,N);if(z){if(h&64&&m&&z.declarations&&Dy(z)&&kme(m,z)){const de=(x==null?void 0:x.argumentExpression)??(Ub(m)?m.indexType:m);S0(de,z.declarations,N)}if(x){if(kj(z,x,WNe(x.expression,a.symbol)),NIe(x,z,RT(x))){Me(x.argumentExpression,p.Cannot_assign_to_0_because_it_is_a_read_only_property,ni(z));return}if(h&8&&(jn(m).resolvedSymbol=z),LNe(x,z))return Ge}const Z=h&4?G2(z):Xr(z);return x&&RT(x)!==1?a1(x,Z):m&&Ub(m)&&kI(Z)?Bn([Z,Pe]):Z}if(N_(a,da)&&kg(N)){const Z=+N;if(m&&N_(a,de=>!de.target.hasRestElement)&&!(h&16)){const de=Cme(m);if(da(a)){if(Z<0)return Me(de,p.A_tuple_type_cannot_be_indexed_with_a_negative_value),Pe;Me(de,p.Tuple_type_0_of_length_1_has_no_element_at_index_2,Ar(a),D0(a),xi(N))}else Me(de,p.Property_0_does_not_exist_on_type_1,xi(N),Ar(a))}if(Z>=0)return L(zg(a,_t)),fAe(a,Z,h&1?A:void 0)}}if(!(l.flags&98304)&&Ql(l,402665900)){if(a.flags&131073)return a;const z=cI(a,l)||zg(a,Ce);if(z){if(h&2&&z.keyType!==_t){x&&(h&4?Me(x,p.Type_0_is_generic_and_can_only_be_indexed_for_reading,Ar(r)):Me(x,p.Type_0_cannot_be_used_to_index_type_1,Ar(l),Ar(r)));return}if(m&&z.keyType===Ce&&!Ql(l,12)){const Z=Cme(m);return Me(Z,p.Type_0_cannot_be_used_as_an_index_type,Ar(l)),h&1?Bn([z.type,A]):z.type}return L(z),h&1&&!(a.symbol&&a.symbol.flags&384&&l.symbol&&l.flags&1024&&e_(l.symbol)===a.symbol)?Bn([z.type,A]):z.type}if(l.flags&131072)return Cn;if(dI(a))return B;if(x&&!sK(a)){if(Dv(a)){if(ae&&l.flags&384)return wa.add(yn(x,p.Property_0_does_not_exist_on_type_1,l.value,Ar(a))),Pe;if(l.flags&12){const Z=nr(a.properties,de=>Xr(de));return Bn(_r(Z,Pe))}}if(a.symbol===$e&&N!==void 0&&$e.exports.has(N)&&$e.exports.get(N).flags&418)Me(x,p.Property_0_does_not_exist_on_type_1,xi(N),Ar(a));else if(ae&&!j.suppressImplicitAnyIndexErrors&&!(h&128))if(N!==void 0&&BNe(N,a)){const Z=Ar(a);Me(x,p.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,N,Z,Z+"["+jc(x.argumentExpression)+"]")}else if(bv(a,_t))Me(x.argumentExpression,p.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let Z;if(N!==void 0&&(Z=Xge(N,a)))Z!==void 0&&Me(x.argumentExpression,p.Property_0_does_not_exist_on_type_1_Did_you_mean_2,N,Ar(a),Z);else{const de=Wat(a,x,l);if(de!==void 0)Me(x,p.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,Ar(a),de);else{let _e;if(l.flags&1024)_e=vs(void 0,p.Property_0_does_not_exist_on_type_1,"["+Ar(l)+"]",Ar(a));else if(l.flags&8192){const Re=pf(l.symbol,x);_e=vs(void 0,p.Property_0_does_not_exist_on_type_1,"["+Re+"]",Ar(a))}else l.flags&128||l.flags&256?_e=vs(void 0,p.Property_0_does_not_exist_on_type_1,l.value,Ar(a)):l.flags&12&&(_e=vs(void 0,p.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,Ar(l),Ar(a)));_e=vs(_e,p.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,Ar(_),Ar(a)),wa.add(Zg(wr(x),x,_e))}}}return}}if(dI(a))return B;if(m){const z=Cme(m);l.flags&384?Me(z,p.Property_0_does_not_exist_on_type_1,""+l.value,Ar(a)):l.flags&12?Me(z,p.Type_0_has_no_matching_index_signature_for_type_1,Ar(a),Ar(l)):Me(z,p.Type_0_cannot_be_used_as_an_index_type,Ar(l))}if(ht(l))return l;return;function L(z){z&&z.isReadonly&&x&&(vg(x)||Hz(x))&&Me(x,p.Index_signature_in_type_0_only_permits_reading,Ar(a))}}function Cme(r){return r.kind===212?r.argumentExpression:r.kind===199?r.indexType:r.kind===167?r.expression:r}function HR(r){if(r.flags&2097152){let a=!1;for(const l of r.types)if(l.flags&101248||HR(l))a=!0;else if(!(l.flags&524288))return!1;return a}return!!(r.flags&77)||YS(r)}function YS(r){return!!(r.flags&134217728)&&Wi(r.types,HR)||!!(r.flags&268435456)&&HR(r.type)}function Cwe(r){return!!(r.flags&402653184)&&!YS(r)}function S4(r){return!!mI(r)}function ZS(r){return!!(mI(r)&4194304)}function KS(r){return!!(mI(r)&8388608)}function mI(r){return r.flags&3145728?(r.objectFlags&2097152||(r.objectFlags|=2097152|Du(r.types,(a,l)=>a|mI(l),0)),r.objectFlags&12582912):r.flags&33554432?(r.objectFlags&2097152||(r.objectFlags|=2097152|mI(r.baseType)|mI(r.constraint)),r.objectFlags&12582912):(r.flags&58982400||g_(r)||n1(r)?4194304:0)|(r.flags&63176704||Cwe(r)?8388608:0)}function Nh(r,a){return r.flags&8388608?Hrt(r,a):r.flags&16777216?Grt(r,a):r}function Ewe(r,a,l){if(r.flags&1048576||r.flags&2097152&&!xme(r)){const _=nr(r.types,m=>Nh(K_(m,a),l));return r.flags&2097152||l?Xs(_):Bn(_)}}function qrt(r,a,l){if(a.flags&1048576){const _=nr(a.types,m=>Nh(K_(r,m),l));return l?Xs(_):Bn(_)}}function Hrt(r,a){const l=a?"simplifiedForWriting":"simplifiedForReading";if(r[l])return r[l]===Pl?r:r[l];r[l]=Pl;const _=Nh(r.objectType,a),m=Nh(r.indexType,a),h=qrt(_,m,a);if(h)return r[l]=h;if(!(m.flags&465829888)){const x=Ewe(_,m,a);if(x)return r[l]=x}if(n1(_)&&m.flags&296){const x=qP(_,m.flags&8?0:_.target.fixedLength,0,a);if(x)return r[l]=x}return g_(_)&&JY(_)!==2?r[l]=Bo(KY(_,r.indexType),x=>Nh(x,a)):r[l]=r}function Grt(r,a){const l=r.checkType,_=r.extendsType,m=Tv(r),h=xv(r);if(h.flags&131072&&Ky(m)===Ky(l)){if(l.flags&1||Qs(tT(l),tT(_)))return Nh(m,a);if(Pwe(l,_))return Cn}else if(m.flags&131072&&Ky(h)===Ky(l)){if(!(l.flags&1)&&Qs(tT(l),tT(_)))return Cn;if(l.flags&1||Pwe(l,_))return Nh(h,a)}return r}function Pwe(r,a){return!!(Bn([LR(r,a),Cn]).flags&131072)}function KY(r,a){const l=ef([Ad(r)],[a]),_=eb(r.mapper,l);return zi(Dh(r.target||r),_)}function K_(r,a,l=0,_,m,h){return Zy(r,a,l,_,m,h)||(_?nt:Kt)}function Dwe(r,a){return N_(r,l=>{if(l.flags&384){const _=Sp(l);if(kg(_)){const m=+_;return m>=0&&m0&&!ct(r.elements,a=>vO(a)||bO(a)||RC(a)&&!!(a.questionToken||a.dotDotDotToken))}function Nwe(r,a){return S4(r)||a&&da(r)&&ct(Q2(r),S4)}function Pme(r,a,l,_,m){let h,x,N=0;for(;;){if(N===1e3)return Me(P,p.Type_instantiation_is_excessively_deep_and_possibly_infinite),nt;const z=zi(Ky(r.checkType),a),Z=zi(r.extendsType,a);if(z===nt||Z===nt)return nt;if(z===mt||Z===mt)return mt;const de=R8(r.node.checkType),_e=R8(r.node.extendsType),Re=Awe(de)&&Awe(_e)&&mr(de.elements)===mr(_e.elements),st=Nwe(z,Re);let gt;if(r.inferTypeParameters){const $t=EI(r.inferTypeParameters,void 0,0);a&&($t.nonFixingMapper=eb($t.nonFixingMapper,a)),st||Mh($t.inferences,z,Z,1536),gt=a?eb($t.mapper,a):$t.mapper}const qt=gt?zi(r.extendsType,gt):Z;if(!st&&!Nwe(qt,Re)){if(!(qt.flags&3)&&(z.flags&1||!Qs(yI(z),yI(qt)))){(z.flags&1||l&&!(qt.flags&131072)&&ad(yI(qt),Ur=>Qs(Ur,yI(z))))&&(x||(x=[])).push(zi(ii(r.node.trueType),gt||a));const $t=ii(r.node.falseType);if($t.flags&16777216){const Ur=$t.root;if(Ur.node.parent===r.node&&(!Ur.isDistributive||Ur.checkType===r.checkType)){r=Ur;continue}if(L($t,a))continue}h=zi($t,a);break}if(qt.flags&3||Qs(tT(z),tT(qt))){const $t=ii(r.node.trueType),Ur=gt||a;if(L($t,Ur))continue;h=zi($t,Ur);break}}h=Rg(16777216),h.root=r,h.checkType=zi(r.checkType,a),h.extendsType=zi(r.extendsType,a),h.mapper=a,h.combinedMapper=gt,h.aliasSymbol=_||r.aliasSymbol,h.aliasTypeArguments=_?m:A0(r.aliasTypeArguments,a);break}return x?Bn(_r(x,h)):h;function L(z,Z){if(z.flags&16777216&&Z){const de=z.root;if(de.outerTypeParameters){const _e=eb(z.mapper,Z),Re=nr(de.outerTypeParameters,qt=>e1(qt,_e)),st=ef(de.outerTypeParameters,Re),gt=de.isDistributive?e1(de.checkType,st):void 0;if(!gt||gt===de.checkType||!(gt.flags&1179648))return r=de,a=st,_=void 0,m=void 0,de.aliasSymbol&&N++,!0}}return!1}}function Tv(r){return r.resolvedTrueType||(r.resolvedTrueType=zi(ii(r.root.node.trueType),r.mapper))}function xv(r){return r.resolvedFalseType||(r.resolvedFalseType=zi(ii(r.root.node.falseType),r.mapper))}function $rt(r){return r.resolvedInferredTrueType||(r.resolvedInferredTrueType=r.combinedMapper?zi(ii(r.root.node.trueType),r.combinedMapper):Tv(r))}function Iwe(r){let a;return r.locals&&r.locals.forEach(l=>{l.flags&262144&&(a=_r(a,Po(l)))}),a}function Xrt(r){return r.isDistributive&&(QR(r.checkType,r.node.trueType)||QR(r.checkType,r.node.falseType))}function Qrt(r){const a=jn(r);if(!a.resolvedType){const l=ii(r.checkType),_=hk(r),m=T4(_),h=gr(r,!0),x=m?h:An(h,L=>QR(L,r)),N={node:r,checkType:l,extendsType:ii(r.extendsType),isDistributive:!!(l.flags&262144),inferTypeParameters:Iwe(r),outerTypeParameters:x,instantiations:void 0,aliasSymbol:_,aliasTypeArguments:m};a.resolvedType=Pme(N,void 0,!1),x&&(N.instantiations=new Map,N.instantiations.set(Np(x),a.resolvedType))}return a.resolvedType}function Yrt(r){const a=jn(r);return a.resolvedType||(a.resolvedType=US(un(r.typeParameter))),a.resolvedType}function Fwe(r){return Ie(r)?[r]:_r(Fwe(r.left),r.right)}function Zrt(r){var a;const l=jn(r);if(!l.resolvedType){if(!ey(r))return Me(r.argument,p.String_literal_expected),l.resolvedSymbol=tt,l.resolvedType=nt;const _=r.isTypeOf?111551:r.flags&16777216?900095:788968,m=zu(r,r.argument.literal);if(!m)return l.resolvedSymbol=tt,l.resolvedType=nt;const h=!!((a=m.exports)!=null&&a.get("export=")),x=X_(m,!1);if(_c(r.qualifier))if(x.flags&_)l.resolvedType=Owe(r,l,x,_);else{const N=_===111551?p.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:p.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0;Me(r,N,r.argument.literal.text),l.resolvedSymbol=tt,l.resolvedType=nt}else{const N=Fwe(r.qualifier);let L=x,z;for(;z=N.shift();){const Z=N.length?1920:_,de=Na(mc(L)),_e=r.isTypeOf||Hr(r)&&h?$s(Xr(de),z.escapedText,!1,!0):void 0,st=(r.isTypeOf?void 0:m_(Q_(de),z.escapedText,Z))??_e;if(!st)return Me(z,p.Namespace_0_has_no_exported_member_1,pf(L),eo(z)),l.resolvedType=nt;jn(z).resolvedSymbol=st,jn(z.parent).resolvedSymbol=st,L=st}l.resolvedType=Owe(r,l,L,_)}}return l.resolvedType}function Owe(r,a,l,_){const m=mc(l);return a.resolvedSymbol=m,_===111551?mIe(Xr(l),r):$Y(r,m)}function Lwe(r){const a=jn(r);if(!a.resolvedType){const l=hk(r);if($y(r.symbol).size===0&&!l)a.resolvedType=Fc;else{let _=rp(16,r.symbol);_.aliasSymbol=l,_.aliasTypeArguments=T4(l),Qb(r)&&r.isArrayType&&(_=pu(_)),a.resolvedType=_}}return a.resolvedType}function hk(r){let a=r.parent;for(;Wb(a)||d2(a)||Vb(a)&&a.operator===148;)a=a.parent;return I8(a)?un(a):void 0}function T4(r){return r?hn(r):void 0}function eZ(r){return!!(r.flags&524288)&&!g_(r)}function Dme(r){return Fh(r)||!!(r.flags&474058748)}function wme(r,a){if(!(r.flags&1048576))return r;if(Wi(r.types,Dme))return wn(r.types,Fh)||oa;const l=wn(r.types,h=>!Dme(h));if(!l||wn(r.types,h=>h!==l&&!Dme(h)))return r;return m(l);function m(h){const x=Bs();for(const L of Ua(h))if(!(qf(L)&6)){if(tZ(L)){const z=L.flags&65536&&!(L.flags&32768),de=xa(16777220,L.escapedName,Mde(L)|(a?8:0));de.links.type=z?Pe:A_(Xr(L),!0),de.declarations=L.declarations,de.links.nameType=wi(L).nameType,de.links.syntheticOrigin=L,x.set(L.escapedName,de)}}const N=ao(h.symbol,x,Ve,Ve,Wu(h));return N.objectFlags|=131200,N}}function Y2(r,a,l,_,m){if(r.flags&1||a.flags&1)return B;if(r.flags&2||a.flags&2)return Kt;if(r.flags&131072)return a;if(a.flags&131072)return r;if(r=wme(r,m),r.flags&1048576)return qR([r,a])?Bo(r,z=>Y2(z,a,l,_,m)):nt;if(a=wme(a,m),a.flags&1048576)return qR([r,a])?Bo(a,z=>Y2(r,z,l,_,m)):nt;if(a.flags&473960444)return r;if(ZS(r)||ZS(a)){if(Fh(r))return a;if(r.flags&2097152){const z=r.types,Z=z[z.length-1];if(eZ(Z)&&eZ(a))return Xs(es(z.slice(0,z.length-1),[Y2(Z,a,l,_,m)]))}return Xs([r,a])}const h=Bs(),x=new Set,N=r===oa?Wu(a):g8e([r,a]);for(const z of Ua(a))qf(z)&6?x.add(z.escapedName):tZ(z)&&h.set(z.escapedName,Ame(z,m));for(const z of Ua(r))if(!(x.has(z.escapedName)||!tZ(z)))if(h.has(z.escapedName)){const Z=h.get(z.escapedName),de=Xr(Z);if(Z.flags&16777216){const _e=es(z.declarations,Z.declarations),Re=4|z.flags&16777216,st=xa(Re,z.escapedName),gt=Xr(z),qt=SZ(gt),$t=SZ(de);st.links.type=qt===$t?gt:Bn([gt,$t],2),st.links.leftSpread=z,st.links.rightSpread=Z,st.declarations=_e,st.links.nameType=wi(z).nameType,h.set(z.escapedName,st)}}else h.set(z.escapedName,Ame(z,m));const L=ao(l,h,Ve,Ve,nl(N,z=>Krt(z,m)));return L.objectFlags|=2228352|_,L}function tZ(r){var a;return!ct(r.declarations,Iu)&&(!(r.flags&106496)||!((a=r.declarations)!=null&&a.some(l=>$n(l.parent))))}function Ame(r,a){const l=r.flags&65536&&!(r.flags&32768);if(!l&&a===Md(r))return r;const _=4|r.flags&16777216,m=xa(_,r.escapedName,Mde(r)|(a?8:0));return m.links.type=l?Pe:Xr(r),m.declarations=r.declarations,m.links.nameType=wi(r).nameType,m.links.syntheticOrigin=r,m}function Krt(r,a){return r.isReadonly!==a?ng(r.keyType,r.type,a,r.declaration):r}function GR(r,a,l,_){const m=jg(r,l);return m.value=a,m.regularType=_||m,m}function yk(r){if(r.flags&2976){if(!r.freshType){const a=GR(r.flags,r.value,r.symbol,r);a.freshType=a,r.freshType=a}return r.freshType}return r}function Uu(r){return r.flags&2976?r.regularType:r.flags&1048576?r.regularType||(r.regularType=Bo(r,Uu)):r}function Z2(r){return!!(r.flags&2976)&&r.freshType===r}function h_(r){let a;return Ht.get(r)||(Ht.set(r,a=GR(128,r)),a)}function Fd(r){let a;return Ue.get(r)||(Ue.set(r,a=GR(256,r)),a)}function rZ(r){let a;const l=e2(r);return Et.get(l)||(Et.set(l,a=GR(2048,r)),a)}function ent(r,a,l){let _;const m=`${a}${typeof r=="string"?"@":"#"}${r}`,h=1024|(typeof r=="string"?128:256);return fr.get(m)||(fr.set(m,_=GR(h,r,l)),_)}function tnt(r){if(r.literal.kind===106)return ce;const a=jn(r);return a.resolvedType||(a.resolvedType=Uu(Hi(r.literal))),a.resolvedType}function rnt(r){const a=jg(8192,r);return a.escapedName=`__@${a.symbol.escapedName}@${Ks(a.symbol)}`,a}function Nme(r){if(Hr(r)&&d2(r)){const a=Nb(r);a&&(r=MT(a)||a)}if(Ute(r)){const a=g5(r)?Lf(r.left):Lf(r);if(a){const l=wi(a);return l.uniqueESSymbolType||(l.uniqueESSymbolType=rnt(a))}}return oi}function nnt(r){const a=a_(r,!1,!1),l=a&&a.parent;if(l&&($n(l)||l.kind===264)&&!Ms(a)&&(!sc(a)||Hv(r,a.body)))return sp(un(l)).thisType;if(l&&ua(l)&&Zr(l.parent)&&fc(l.parent)===6)return sp(Lf(l.parent.left).parent).thisType;const _=r.flags&16777216?P1(r):void 0;return _&&lo(_)&&Zr(_.parent)&&fc(_.parent)===3?sp(Lf(_.parent.left).parent).thisType:hm(a)&&Hv(r,a.body)?sp(un(a)).thisType:(Me(r,p.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),nt)}function nZ(r){const a=jn(r);return a.resolvedType||(a.resolvedType=nnt(r)),a.resolvedType}function Mwe(r){return ii($R(r.type)||r.type)}function $R(r){switch(r.kind){case 196:return $R(r.type);case 189:if(r.elements.length===1&&(r=r.elements[0],r.kind===191||r.kind===202&&r.dotDotDotToken))return $R(r.type);break;case 188:return r.elementType}}function int(r){const a=jn(r);return a.resolvedType||(a.resolvedType=r.dotDotDotToken?Mwe(r):A_(ii(r.type),!0,!!r.questionToken))}function ii(r){return Mtt(Rwe(r),r)}function Rwe(r){switch(r.kind){case 133:case 319:case 320:return B;case 159:return Kt;case 154:return Ce;case 150:return _t;case 163:return Tt;case 136:return fi;case 155:return oi;case 116:return Wr;case 157:return Pe;case 106:return ce;case 146:return Cn;case 151:return r.flags&524288&&!ae?B:In;case 141:return Yt;case 197:case 110:return nZ(r);case 201:return tnt(r);case 183:return ome(r);case 182:return r.assertsModifier?Wr:fi;case 233:return ome(r);case 186:return $8e(r);case 188:case 189:return frt(r);case 190:return grt(r);case 192:return Crt(r);case 193:return Frt(r);case 321:return Rtt(r);case 323:return A_(ii(r.type));case 202:return int(r);case 196:case 322:case 316:return ii(r.type);case 191:return Mwe(r);case 325:return a_t(r);case 184:case 185:case 187:case 329:case 324:case 330:return Lwe(r);case 198:return jrt(r);case 199:return wwe(r);case 200:return Eme(r);case 194:return Qrt(r);case 195:return Yrt(r);case 203:return Brt(r);case 205:return Zrt(r);case 80:case 166:case 211:const a=od(r);return a?Po(a):nt;default:return nt}}function iZ(r,a,l){if(r&&r.length)for(let _=0;__.typeParameter),nr(l,()=>Kt))}function eb(r,a){return r?aZ(4,r,a):a}function ont(r,a){return r?aZ(5,r,a):a}function eT(r,a,l){return l?aZ(5,K2(r,a),l):K2(r,a)}function gI(r,a,l){return r?aZ(5,r,K2(a,l)):K2(a,l)}function cnt(r){return!r.constraint&&!tme(r)||r.constraint===ho?r:r.restrictiveInstantiation||(r.restrictiveInstantiation=Rf(r.symbol),r.restrictiveInstantiation.constraint=ho,r.restrictiveInstantiation)}function Fme(r){const a=Rf(r.symbol);return a.target=r,a}function lnt(r,a){return zR(r.kind,r.parameterName,r.parameterIndex,zi(r.type,a))}function x4(r,a,l){let _;if(r.typeParameters&&!l){_=nr(r.typeParameters,Fme),a=eb(ef(r.typeParameters,_),a);for(const h of _)h.mapper=a}const m=Jg(r.declaration,_,r.thisParameter&&Ome(r.thisParameter,a),iZ(r.parameters,a,Ome),void 0,void 0,r.minArgumentCount,r.flags&167);return m.target=r,m.mapper=a,m}function Ome(r,a){const l=wi(r);if(l.type&&!Pv(l.type)&&(!(r.flags&65536)||l.writeType&&!Pv(l.writeType)))return r;Ko(r)&1&&(r=l.target,a=eb(l.mapper,a));const _=xa(r.flags,r.escapedName,1|Ko(r)&53256);return _.declarations=r.declarations,_.parent=r.parent,_.links.target=r,_.links.mapper=a,r.valueDeclaration&&(_.valueDeclaration=r.valueDeclaration),l.nameType&&(_.links.nameType=l.nameType),_}function unt(r,a,l,_){const m=r.objectFlags&4||r.objectFlags&8388608?r.node:r.symbol.declarations[0],h=jn(m),x=r.objectFlags&4?h.resolvedType:r.objectFlags&64?r.target:r;let N=h.outerTypeParameters;if(!N){let L=gr(m,!0);if(hm(m)){const Z=F8e(m);L=Nn(L,Z)}N=L||Ve;const z=r.objectFlags&8388612?[m]:r.symbol.declarations;N=(x.objectFlags&8388612||x.symbol.flags&8192||x.symbol.flags&2048)&&!x.aliasTypeArguments?An(N,Z=>ct(z,de=>QR(Z,de))):N,h.outerTypeParameters=N}if(N.length){const L=eb(r.mapper,a),z=nr(N,st=>e1(st,L)),Z=l||r.aliasSymbol,de=l?_:A0(r.aliasTypeArguments,a),_e=Np(z)+mk(Z,de);x.instantiations||(x.instantiations=new Map,x.instantiations.set(Np(N)+mk(x.aliasSymbol,x.aliasTypeArguments),x));let Re=x.instantiations.get(_e);if(!Re){const st=ef(N,z);Re=x.objectFlags&4?rme(r.target,r.node,st,Z,de):x.objectFlags&32?fnt(x,st,Z,de):Lme(x,st,Z,de),x.instantiations.set(_e,Re);const gt=bn(Re);if(Re.flags&3899393&&!(gt&524288)){const qt=ct(z,Pv);bn(Re)&524288||(gt&52?Re.objectFlags|=524288|(qt?1048576:0):Re.objectFlags|=qt?0:524288)}}return Re}return r}function _nt(r){return!(r.parent.kind===183&&r.parent.typeArguments&&r===r.parent.typeName||r.parent.kind===205&&r.parent.typeArguments&&r===r.parent.qualifier)}function QR(r,a){if(r.symbol&&r.symbol.declarations&&r.symbol.declarations.length===1){const _=r.symbol.declarations[0].parent;for(let m=a;m!==_;m=m.parent)if(!m||m.kind===241||m.kind===194&&Ss(m.extendsType,l))return!0;return l(a)}return!0;function l(_){switch(_.kind){case 197:return!!r.isThisType;case 80:return!r.isThisType&&gg(_)&&_nt(_)&&Rwe(_)===r;case 186:const m=_.exprName,h=lf(m);if(!Yv(h)){const x=sd(h),N=r.symbol.declarations[0],L=N.kind===168?N.parent:r.isThisType?N:void 0;if(x.declarations&&L)return ct(x.declarations,z=>Hv(z,L))||ct(_.typeArguments,l)}return!0;case 174:case 173:return!_.type&&!!_.body||ct(_.typeParameters,l)||ct(_.parameters,l)||!!_.type&&l(_.type)}return!!Ss(_,l)}}function hI(r){const a=Bf(r);if(a.flags&4194304){const l=Ky(a.type);if(l.flags&262144)return l}}function fnt(r,a,l,_){const m=hI(r);if(m){const x=zi(m,a);if(m!==x)return WAe(Id(x),h,l,_)}return zi(Bf(r),a)===mt?mt:Lme(r,a,l,_);function h(x){if(x.flags&61603843&&x!==mt&&!Ot(x)){if(!r.declaration.nameType){let N;if(lp(x)||x.flags&1&&_k(m,4)<0&&(N=r_(m))&&N_(N,Cv))return dnt(x,r,eT(m,x,a));if(da(x))return pnt(x,r,m,a);if(P8e(x))return Xs(nr(x.types,h))}return Lme(r,eT(m,x,a))}return x}}function Jwe(r,a){return a&1?!0:a&2?!1:r}function pnt(r,a,l,_){const m=r.target.elementFlags,h=r.target.fixedLength,x=h?eT(l,r,_):_,N=nr(Q2(r),(de,_e)=>{const Re=m[_e];return _ede&1?2:de):L&8?nr(m,de=>de&2?1:de):m,Z=Jwe(r.target.readonly,tg(a));return bs(N,nt)?nt:ig(N,z,Z,r.target.labeledElementDeclarations)}function dnt(r,a,l){const _=zwe(a,_t,!0,l);return Ot(_)?nt:pu(_,Jwe(VP(r),tg(a)))}function zwe(r,a,l,_){const m=gI(_,Ad(r),a),h=zi(Dh(r.target||r),m),x=tg(r);return q&&x&4&&!nc(h,49152)?i1(h,!0):q&&x&8&&l?Fp(h,524288):h}function Lme(r,a,l,_){E.assert(r.symbol,"anonymous type must have symbol to be instantiated");const m=rp(r.objectFlags&-1572865|64,r.symbol);if(r.objectFlags&32){m.declaration=r.declaration;const h=Ad(r),x=Fme(h);m.typeParameter=x,a=eb(K2(h,x),a),x.mapper=a}return r.objectFlags&8388608&&(m.node=r.node),m.target=r,m.mapper=a,m.aliasSymbol=l||r.aliasSymbol,m.aliasTypeArguments=l?_:A0(r.aliasTypeArguments,a),m.objectFlags|=m.aliasTypeArguments?HY(m.aliasTypeArguments):0,m}function Mme(r,a,l,_,m){const h=r.root;if(h.outerTypeParameters){const x=nr(h.outerTypeParameters,z=>e1(z,a)),N=(l?"C":"")+Np(x)+mk(_,m);let L=h.instantiations.get(N);if(!L){const z=ef(h.outerTypeParameters,x),Z=h.checkType,de=h.isDistributive?Id(e1(Z,z)):void 0;L=de&&Z!==de&&de.flags&1179648?WAe(de,_e=>Pme(h,eT(Z,_e,z),l),_,m):Pme(h,z,l,_,m),h.instantiations.set(N,L)}return L}return r}function zi(r,a){return r&&a?Wwe(r,a,void 0,void 0):r}function Wwe(r,a,l,_){var m;if(!Pv(r))return r;if(k===100||T>=5e6)return(m=qr)==null||m.instant(qr.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:r.id,instantiationDepth:k,instantiationCount:T}),Me(P,p.Type_instantiation_is_excessively_deep_and_possibly_infinite),nt;S++,T++,k++;const h=mnt(r,a,l,_);return k--,h}function mnt(r,a,l,_){const m=r.flags;if(m&262144)return e1(r,a);if(m&524288){const h=r.objectFlags;if(h&52){if(h&4&&!r.node){const x=r.resolvedTypeArguments,N=A0(x,a);return N!==x?gme(r.target,N):r}return h&1024?gnt(r,a):unt(r,a,l,_)}return r}if(m&3145728){const h=r.flags&1048576?r.origin:void 0,x=h&&h.flags&3145728?h.types:r.types,N=A0(x,a);if(N===x&&l===r.aliasSymbol)return r;const L=l||r.aliasSymbol,z=l?_:A0(r.aliasTypeArguments,a);return m&2097152||h&&h.flags&2097152?Xs(N,L,z):Bn(N,1,L,z)}if(m&4194304)return pm(zi(r.type,a));if(m&134217728)return QS(r.texts,A0(r.types,a));if(m&268435456)return gk(r.symbol,zi(r.type,a));if(m&8388608){const h=l||r.aliasSymbol,x=l?_:A0(r.aliasTypeArguments,a);return K_(zi(r.objectType,a),zi(r.indexType,a),r.accessFlags,void 0,h,x)}if(m&16777216)return Mme(r,eb(r.mapper,a),!1,l,_);if(m&33554432){const h=zi(r.baseType,a);if(jP(r))return nme(h);const x=zi(r.constraint,a);return h.flags&8650752&&S4(x)?sme(h,x):x.flags&3||Qs(tT(h),tT(x))?h:h.flags&8650752?sme(h,x):Xs([x,h])}return r}function gnt(r,a){const l=zi(r.mappedType,a);if(!(bn(l)&32))return r;const _=zi(r.constraintType,a);if(!(_.flags&4194304))return r;const m=bAe(zi(r.source,a),l,_);return m||r}function yI(r){return r.flags&402915327?r:r.permissiveInstantiation||(r.permissiveInstantiation=zi(r,qo))}function tT(r){return r.flags&402915327?r:(r.restrictiveInstantiation||(r.restrictiveInstantiation=zi(r,go),r.restrictiveInstantiation.restrictiveInstantiation=r.restrictiveInstantiation),r.restrictiveInstantiation)}function hnt(r,a){return ng(r.keyType,zi(r.type,a),r.isReadonly,r.declaration)}function op(r){switch(E.assert(r.kind!==174||Wp(r)),r.kind){case 218:case 219:case 174:case 262:return Vwe(r);case 210:return ct(r.properties,op);case 209:return ct(r.elements,op);case 227:return op(r.whenTrue)||op(r.whenFalse);case 226:return(r.operatorToken.kind===57||r.operatorToken.kind===61)&&(op(r.left)||op(r.right));case 303:return op(r.initializer);case 217:return op(r.expression);case 292:return ct(r.properties,op)||Zd(r.parent)&&ct(r.parent.parent.children,op);case 291:{const{initializer:a}=r;return!!a&&op(a)}case 294:{const{expression:a}=r;return!!a&&op(a)}}return!1}function Vwe(r){return TF(r)||ynt(r)}function ynt(r){return r.typeParameters||vp(r)||!r.body?!1:r.body.kind!==241?op(r.body):!!Wv(r.body,a=>!!a.expression&&op(a.expression))}function oZ(r){return(t2(r)||Wp(r))&&Vwe(r)}function Uwe(r){if(r.flags&524288){const a=Nd(r);if(a.constructSignatures.length||a.callSignatures.length){const l=rp(16,r.symbol);return l.members=a.members,l.properties=a.properties,l.callSignatures=Ve,l.constructSignatures=Ve,l.indexInfos=Ve,l}}else if(r.flags&2097152)return Xs(nr(r.types,Uwe));return r}function Ih(r,a){return dm(r,a,P_)}function vI(r,a){return dm(r,a,P_)?-1:0}function Rme(r,a){return dm(r,a,d_)?-1:0}function vnt(r,a){return dm(r,a,Hm)?-1:0}function t1(r,a){return dm(r,a,Hm)}function YR(r,a){return dm(r,a,ep)}function Qs(r,a){return dm(r,a,d_)}function kv(r,a){return r.flags&1048576?Wi(r.types,l=>kv(l,a)):a.flags&1048576?ct(a.types,l=>kv(r,l)):r.flags&2097152?ct(r.types,l=>kv(l,a)):r.flags&58982400?kv(fu(r)||Kt,a):sg(a)?!!(r.flags&67633152):a===Te?!!(r.flags&67633152)&&!sg(r):a===kt?!!(r.flags&524288)&&gge(r):f4(r,C0(a))||lp(a)&&!VP(a)&&kv(r,Is)}function cZ(r,a){return dm(r,a,$_)}function ZR(r,a){return cZ(r,a)||cZ(a,r)}function Pu(r,a,l,_,m,h){return cp(r,a,d_,l,_,m,h)}function r1(r,a,l,_,m,h){return jme(r,a,d_,l,_,m,h,void 0)}function jme(r,a,l,_,m,h,x,N){return dm(r,a,l)?!0:!_||!bI(m,r,a,l,h,x,N)?cp(r,a,l,_,h,x,N):!1}function qwe(r){return!!(r.flags&16777216||r.flags&2097152&&ct(r.types,qwe))}function bI(r,a,l,_,m,h,x){if(!r||qwe(l))return!1;if(!cp(a,l,_,void 0)&&bnt(r,a,l,_,m,h,x))return!0;switch(r.kind){case 234:if(!wy(r))break;case 294:case 217:return bI(r.expression,a,l,_,m,h,x);case 226:switch(r.operatorToken.kind){case 64:case 28:return bI(r.right,a,l,_,m,h,x)}break;case 210:return Dnt(r,a,l,_,h,x);case 209:return Ent(r,a,l,_,h,x);case 292:return Cnt(r,a,l,_,h,x);case 219:return Snt(r,a,l,_,h,x)}return!1}function bnt(r,a,l,_,m,h,x){const N=Es(a,0),L=Es(a,1);for(const z of[L,N])if(ct(z,Z=>{const de=Ja(Z);return!(de.flags&131073)&&cp(de,l,_,void 0)})){const Z=x||{};Pu(a,l,r,m,h,Z);const de=Z.errors[Z.errors.length-1];return la(de,yn(r,z===L?p.Did_you_mean_to_use_new_with_this_expression:p.Did_you_mean_to_call_this_expression)),!0}return!1}function Snt(r,a,l,_,m,h){if(Cs(r.body)||ct(r.parameters,K7))return!1;const x=uT(a);if(!x)return!1;const N=Es(l,0);if(!mr(N))return!1;const L=r.body,z=Ja(x),Z=Bn(nr(N,Ja));if(!cp(z,Z,_,void 0)){const de=L&&bI(L,z,Z,_,void 0,m,h);if(de)return de;const _e=h||{};if(cp(z,Z,_,L,void 0,m,_e),_e.errors)return l.symbol&&mr(l.symbol.declarations)&&la(_e.errors[_e.errors.length-1],yn(l.symbol.declarations[0],p.The_expected_type_comes_from_the_return_type_of_this_signature)),!(pl(r)&2)&&!je(z,"then")&&cp(Fj(z),Z,_,void 0)&&la(_e.errors[_e.errors.length-1],yn(r,p.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}function Hwe(r,a,l){const _=Zy(a,l);if(_)return _;if(a.flags&1048576){const m=eAe(r,a);if(m)return Zy(m,l)}}function Gwe(r,a){hj(r,a,!1);const l=tD(r,1);return AI(),l}function KR(r,a,l,_,m,h){let x=!1;for(const N of r){const{errorNode:L,innerExpression:z,nameType:Z,errorMessage:de}=N;let _e=Hwe(a,l,Z);if(!_e||_e.flags&8388608)continue;let Re=Zy(a,Z);if(!Re)continue;const st=ZY(Z,void 0);if(!cp(Re,_e,_,void 0)){const gt=z&&bI(z,Re,_e,_,void 0,m,h);if(x=!0,!gt){const qt=h||{},$t=z?Gwe(z,Re):Re;if(be&&uZ($t,_e)){const Ur=yn(L,p.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Ar($t),Ar(_e));wa.add(Ur),qt.errors=[Ur]}else{const Ur=!!(st&&($s(l,st)||tt).flags&16777216),Tr=!!(st&&($s(a,st)||tt).flags&16777216);_e=s1(_e,Ur),Re=s1(Re,Ur&&Tr),cp($t,_e,_,L,de,m,qt)&&$t!==Re&&cp(Re,_e,_,L,de,m,qt)}if(qt.errors){const Ur=qt.errors[qt.errors.length-1],Tr=bp(Z)?Sp(Z):void 0,Gt=Tr!==void 0?$s(l,Tr):void 0;let Cr=!1;if(!Gt){const kr=cI(l,Z);kr&&kr.declaration&&!wr(kr.declaration).hasNoDefaultLib&&(Cr=!0,la(Ur,yn(kr.declaration,p.The_expected_type_comes_from_this_index_signature)))}if(!Cr&&(Gt&&mr(Gt.declarations)||l.symbol&&mr(l.symbol.declarations))){const kr=Gt&&mr(Gt.declarations)?Gt.declarations[0]:l.symbol.declarations[0];wr(kr).hasNoDefaultLib||la(Ur,yn(kr,p.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,Tr&&!(Z.flags&8192)?xi(Tr):Ar(Z),Ar(l)))}}}}}return x}function Tnt(r,a,l,_,m,h){const x=Mc(l,hZ),N=Mc(l,Z=>!hZ(Z)),L=N!==Cn?Ohe(13,0,N,void 0):void 0;let z=!1;for(let Z=r.next();!Z.done;Z=r.next()){const{errorNode:de,innerExpression:_e,nameType:Re,errorMessage:st}=Z.value;let gt=L;const qt=x!==Cn?Hwe(a,x,Re):void 0;if(qt&&!(qt.flags&8388608)&&(gt=L?Bn([L,qt]):qt),!gt)continue;let $t=Zy(a,Re);if(!$t)continue;const Ur=ZY(Re,void 0);if(!cp($t,gt,_,void 0)){const Tr=_e&&bI(_e,$t,gt,_,void 0,m,h);if(z=!0,!Tr){const Gt=h||{},Cr=_e?Gwe(_e,$t):$t;if(be&&uZ(Cr,gt)){const kr=yn(de,p.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Ar(Cr),Ar(gt));wa.add(kr),Gt.errors=[kr]}else{const kr=!!(Ur&&($s(x,Ur)||tt).flags&16777216),Br=!!(Ur&&($s(a,Ur)||tt).flags&16777216);gt=s1(gt,kr),$t=s1($t,kr&&Br),cp(Cr,gt,_,de,st,m,Gt)&&Cr!==$t&&cp($t,gt,_,de,st,m,Gt)}}}}return z}function*xnt(r){if(mr(r.properties))for(const a of r.properties)dx(a)||Rge(cw(a.name))||(yield{errorNode:a.name,innerExpression:a.initializer,nameType:h_(cw(a.name))})}function*knt(r,a){if(!mr(r.children))return;let l=0;for(let _=0;_1;let qt,$t;if(fme(!1)!==fs){const Tr=swe(B);qt=Mc(Re,Gt=>Qs(Gt,Tr)),$t=Mc(Re,Gt=>!Qs(Gt,Tr))}else qt=Mc(Re,hZ),$t=Mc(Re,Tr=>!hZ(Tr));if(gt){if(qt!==Cn){const Tr=ig(VZ(z,0)),Gt=knt(z,L);x=Tnt(Gt,Tr,qt,_,m,h)||x}else if(!dm(K_(a,_e),Re,_)){x=!0;const Tr=Me(z.openingElement.tagName,p.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,de,Ar(Re));h&&h.skipLogging&&(h.errors||(h.errors=[])).push(Tr)}}else if($t!==Cn){const Tr=st[0],Gt=$we(Tr,_e,L);Gt&&(x=KR(function*(){yield Gt}(),a,l,_,m,h)||x)}else if(!dm(K_(a,_e),Re,_)){x=!0;const Tr=Me(z.openingElement.tagName,p.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,de,Ar(Re));h&&h.skipLogging&&(h.errors||(h.errors=[])).push(Tr)}}return x;function L(){if(!N){const z=jc(r.parent.tagName),Z=vj(cT(r)),de=Z===void 0?"children":xi(Z),_e=K_(l,h_(de)),Re=p._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;N={...Re,key:"!!ALREADY FORMATTED!!",message:PW(Re,z,de,Ar(_e))}}return N}}function*Xwe(r,a){const l=mr(r.elements);if(l)for(let _=0;_L:ym(r)>L))return _&&!(l&8)&&m(p.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1,ym(r),L),0;r.typeParameters&&r.typeParameters!==a.typeParameters&&(a=Att(a),r=XNe(r,a,void 0,x));const Z=hf(r),de=OI(r),_e=OI(a);(de||_e)&&zi(de||_e,N);const Re=a.declaration?a.declaration.kind:0,st=!(l&3)&&ee&&Re!==174&&Re!==173&&Re!==176;let gt=-1;const qt=Sv(r);if(qt&&qt!==Wr){const Tr=Sv(a);if(Tr){const Gt=!st&&x(qt,Tr,!1)||x(Tr,qt,_);if(!Gt)return _&&m(p.The_this_types_of_each_signature_are_incompatible),0;gt&=Gt}}const $t=de||_e?Math.min(Z,L):Math.max(Z,L),Ur=de||_e?$t-1:-1;for(let Tr=0;Tr<$t;Tr++){const Gt=Tr===Ur?vIe(r,Tr):sb(r,Tr),Cr=Tr===Ur?vIe(a,Tr):sb(a,Tr);if(Gt&&Cr){const kr=l&3||GNe(r,Tr)?void 0:uT(Lh(Gt)),Br=l&3||GNe(a,Tr)?void 0:uT(Lh(Cr));let Jr=kr&&Br&&!ap(kr)&&!ap(Br)&&GP(Gt,50331648)===GP(Cr,50331648)?Bme(Br,kr,l&8|(st?2:1),_,m,h,x,N):!(l&3)&&!st&&x(Gt,Cr,!1)||x(Cr,Gt,_);if(Jr&&l&8&&Tr>=ym(r)&&Tr=3&&a[0].flags&32768&&a[1].flags&65536&&ct(a,sg)?67108864:0)}return!!(r.objectFlags&67108864)}return!1}function zP(r){return!!((r.flags&1048576?r.types[0]:r).flags&32768)}function Ywe(r){return r.flags&524288&&!g_(r)&&Ua(r).length===0&&Wu(r).length===1&&!!zg(r,Ce)||r.flags&3145728&&Wi(r.types,Ywe)||!1}function zme(r,a,l){const _=r.flags&8?e_(r):r,m=a.flags&8?e_(a):a;if(_===m)return!0;if(_.escapedName!==m.escapedName||!(_.flags&256)||!(m.flags&256))return!1;const h=Ks(_)+","+Ks(m),x=y0.get(h);if(x!==void 0&&!(!(x&4)&&x&2&&l))return!!(x&1);const N=Xr(m);for(const L of Ua(Xr(_)))if(L.flags&8){const z=$s(N,L.escapedName);if(!z||!(z.flags&8))return l?(l(p.Property_0_is_missing_in_type_1,Xo(L),Ar(Po(m),void 0,64)),y0.set(h,6)):y0.set(h,2),!1;const Z=O4(Jo(L,306)),de=O4(Jo(z,306));if(Z!==de){const _e=typeof Z=="string",Re=typeof de=="string";if(Z!==void 0&&de!==void 0){if(!l)y0.set(h,2);else{const st=_e?`"${bg(Z)}"`:Z,gt=Re?`"${bg(de)}"`:de;l(p.Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given,Xo(m),Xo(z),gt,st),y0.set(h,6)}return!1}if(_e||Re){if(!l)y0.set(h,2);else{const st=Z??de;E.assert(typeof st=="string");const gt=`"${bg(st)}"`;l(p.One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value,Xo(m),Xo(z),gt),y0.set(h,6)}return!1}}}return y0.set(h,1),!0}function SI(r,a,l,_){const m=r.flags,h=a.flags;return h&1||m&131072||r===mt||h&2&&!(l===ep&&m&1)?!0:h&131072?!1:!!(m&402653316&&h&4||m&128&&m&1024&&h&128&&!(h&1024)&&r.value===a.value||m&296&&h&8||m&256&&m&1024&&h&256&&!(h&1024)&&r.value===a.value||m&2112&&h&64||m&528&&h&16||m&12288&&h&4096||m&32&&h&32&&r.symbol.escapedName===a.symbol.escapedName&&zme(r.symbol,a.symbol,_)||m&1024&&h&1024&&(m&1048576&&h&1048576&&zme(r.symbol,a.symbol,_)||m&2944&&h&2944&&r.value===a.value&&zme(r.symbol,a.symbol,_))||m&32768&&(!q&&!(h&3145728)||h&49152)||m&65536&&(!q&&!(h&3145728)||h&65536)||m&524288&&h&67108864&&!(l===ep&&sg(r)&&!(bn(r)&8192))||(l===d_||l===$_)&&(m&1||m&8&&(h&32||h&256&&h&1024)||m&256&&!(m&1024)&&(h&32||h&256&&h&1024&&r.value===a.value)||Int(a)))}function dm(r,a,l){if(Z2(r)&&(r=r.regularType),Z2(a)&&(a=a.regularType),r===a)return!0;if(l!==P_){if(l===$_&&!(a.flags&131072)&&SI(a,r,l)||SI(r,a,l))return!0}else if(!((r.flags|a.flags)&61865984)){if(r.flags!==a.flags)return!1;if(r.flags&67358815)return!0}if(r.flags&524288&&a.flags&524288){const _=l.get(pZ(r,a,0,l,!1));if(_!==void 0)return!!(_&1)}return r.flags&469499904||a.flags&469499904?cp(r,a,l,void 0):!1}function Zwe(r,a){return bn(r)&2048&&Rge(a.escapedName)}function ej(r,a){for(;;){const l=Z2(r)?r.regularType:n1(r)?Ont(r,a):bn(r)&4?r.node?P0(r.target,So(r)):$me(r)||r:r.flags&3145728?Fnt(r,a):r.flags&33554432?a?r.baseType:ame(r):r.flags&25165824?Nh(r,a):r;if(l===r)return l;r=l}}function Fnt(r,a){const l=Id(r);if(l!==r)return l;if(r.flags&2097152&&ct(r.types,sg)){const _=nl(r.types,m=>ej(m,a));if(_!==r.types)return Xs(_)}return r}function Ont(r,a){const l=Q2(r),_=nl(l,m=>m.flags&25165824?Nh(m,a):m);return l!==_?hme(r.target,_):r}function cp(r,a,l,_,m,h,x){var N;let L,z,Z,de,_e,Re,st=0,gt=0,qt=0,$t=0,Ur=!1,Tr=0,Gt=0,Cr,kr,Br=16e6-l.size>>3;E.assert(l!==P_||!_,"no error reporting in identity checking");const Ir=sn(r,a,3,!!_,m);if(kr&&hs(),Ur){const He=pZ(r,a,0,l,!1);l.set(He,6),(N=qr)==null||N.instant(qr.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:r.id,targetId:a.id,depth:gt,targetDepth:qt});const ut=Br<=0?p.Excessive_complexity_comparing_types_0_and_1:p.Excessive_stack_depth_comparing_types_0_and_1,Bt=Me(_||P,ut,Ar(r),Ar(a));x&&(x.errors||(x.errors=[])).push(Bt)}else if(L){if(h){const Bt=h();Bt&&(Zre(Bt,L),L=Bt)}let He;if(m&&_&&!Ir&&r.symbol){const Bt=wi(r.symbol);if(Bt.originatingImport&&!of(Bt.originatingImport)&&cp(Xr(Bt.target),a,l,void 0)){const fn=yn(Bt.originatingImport,p.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);He=_r(He,fn)}}const ut=Zg(wr(_),_,L,He);z&&la(ut,...z),x&&(x.errors||(x.errors=[])).push(ut),(!x||!x.skipLogging)&&wa.add(ut)}return _&&x&&x.skipLogging&&Ir===0&&E.assert(!!x.errors,"missed opportunity to interact with error."),Ir!==0;function Jr(He){L=He.errorInfo,Cr=He.lastSkippedInfo,kr=He.incompatibleStack,Tr=He.overrideNextErrorInfo,Gt=He.skipParentCounter,z=He.relatedInfo}function ss(){return{errorInfo:L,lastSkippedInfo:Cr,incompatibleStack:kr==null?void 0:kr.slice(),overrideNextErrorInfo:Tr,skipParentCounter:Gt,relatedInfo:z==null?void 0:z.slice()}}function Ki(He,...ut){Tr++,Cr=void 0,(kr||(kr=[])).push([He,...ut])}function hs(){const He=kr||[];kr=void 0;const ut=Cr;if(Cr=void 0,He.length===1){Gi(...He[0]),ut&&I_(void 0,...ut);return}let Bt="";const Or=[];for(;He.length;){const[fn,...lr]=He.pop();switch(fn.code){case p.Types_of_property_0_are_incompatible.code:{Bt.indexOf("new ")===0&&(Bt=`(${Bt})`);const tn=""+lr[0];Bt.length===0?Bt=`${tn}`:bf(tn,Fa(j))?Bt=`${Bt}.${tn}`:tn[0]==="["&&tn[tn.length-1]==="]"?Bt=`${Bt}${tn}`:Bt=`${Bt}[${tn}]`;break}case p.Call_signature_return_types_0_and_1_are_incompatible.code:case p.Construct_signature_return_types_0_and_1_are_incompatible.code:case p.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case p.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:{if(Bt.length===0){let tn=fn;fn.code===p.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?tn=p.Call_signature_return_types_0_and_1_are_incompatible:fn.code===p.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(tn=p.Construct_signature_return_types_0_and_1_are_incompatible),Or.unshift([tn,lr[0],lr[1]])}else{const tn=fn.code===p.Construct_signature_return_types_0_and_1_are_incompatible.code||fn.code===p.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",Dn=fn.code===p.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||fn.code===p.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";Bt=`${tn}${Bt}(${Dn})`}break}case p.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:{Or.unshift([p.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,lr[0],lr[1]]);break}case p.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:{Or.unshift([p.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,lr[0],lr[1],lr[2]]);break}default:return E.fail(`Unhandled Diagnostic: ${fn.code}`)}}Bt?Gi(Bt[Bt.length-1]===")"?p.The_types_returned_by_0_are_incompatible_between_these_types:p.The_types_of_0_are_incompatible_between_these_types,Bt):Or.shift();for(const[fn,...lr]of Or){const tn=fn.elidedInCompatabilityPyramid;fn.elidedInCompatabilityPyramid=!1,Gi(fn,...lr),fn.elidedInCompatabilityPyramid=tn}ut&&I_(void 0,...ut)}function Gi(He,...ut){E.assert(!!_),kr&&hs(),!He.elidedInCompatabilityPyramid&&(Gt===0?L=vs(L,He,...ut):Gt--)}function tl(He,...ut){Gi(He,...ut),Gt++}function up(He){E.assert(!!L),z?z.push(He):z=[He]}function I_(He,ut,Bt){kr&&hs();const[Or,fn]=uk(ut,Bt);let lr=ut,tn=Or;if(TI(ut)&&!Wme(Bt)&&(lr=Oh(ut),E.assert(!Qs(lr,Bt),"generalized source shouldn't be assignable"),tn=By(lr)),(Bt.flags&8388608&&!(ut.flags&8388608)?Bt.objectType.flags:Bt.flags)&262144&&Bt!==se&&Bt!==X){const Si=fu(Bt);let ms;Si&&(Qs(lr,Si)||(ms=Qs(ut,Si)))?Gi(p._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,ms?Or:tn,fn,Ar(Si)):(L=void 0,Gi(p._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,fn,tn))}if(He)He===p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&be&&Kwe(ut,Bt).length&&(He=p.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(l===$_)He=p.Type_0_is_not_comparable_to_type_1;else if(Or===fn)He=p.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(be&&Kwe(ut,Bt).length)He=p.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(ut.flags&128&&Bt.flags&1048576){const Si=Vat(ut,Bt);if(Si){Gi(p.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,tn,fn,Ar(Si));return}}He=p.Type_0_is_not_assignable_to_type_1}Gi(He,tn,fn)}function Sr(He,ut){const Bt=Jy(He.symbol)?Ar(He,He.symbol.valueDeclaration):Ar(He),Or=Jy(ut.symbol)?Ar(ut,ut.symbol.valueDeclaration):Ar(ut);(Cc===He&&Ce===ut||Uc===He&&_t===ut||jo===He&&fi===ut||ewe()===He&&oi===ut)&&Gi(p._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,Or,Bt)}function jr(He,ut,Bt){return da(He)?He.target.readonly&&ij(ut)?(Bt&&Gi(p.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Ar(He),Ar(ut)),!1):Cv(ut):VP(He)&&ij(ut)?(Bt&&Gi(p.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Ar(He),Ar(ut)),!1):da(ut)?lp(He):!0}function Bi(He,ut,Bt){return sn(He,ut,3,Bt)}function sn(He,ut,Bt=3,Or=!1,fn,lr=0){if(He===ut)return-1;if(He.flags&524288&&ut.flags&402784252)return l===$_&&!(ut.flags&131072)&&SI(ut,He,l)||SI(He,ut,l,Or?Gi:void 0)?-1:(Or&&cs(He,ut,He,ut,fn),0);const tn=ej(He,!1);let Dn=ej(ut,!0);if(tn===Dn)return-1;if(l===P_)return tn.flags!==Dn.flags?0:tn.flags&67358815?-1:(La(tn,Dn),si(tn,Dn,!1,0,Bt));if(tn.flags&262144&&HS(tn)===Dn)return-1;if(tn.flags&470302716&&Dn.flags&1048576){const Si=Dn.types,ms=Si.length===2&&Si[0].flags&98304?Si[1]:Si.length===3&&Si[0].flags&98304&&Si[1].flags&98304?Si[2]:void 0;if(ms&&!(ms.flags&98304)&&(Dn=ej(ms,!0),tn===Dn))return-1}if(l===$_&&!(Dn.flags&131072)&&SI(Dn,tn,l)||SI(tn,Dn,l,Or?Gi:void 0))return-1;if(tn.flags&469499904||Dn.flags&469499904){if(!(lr&2)&&Dv(tn)&&bn(tn)&8192&&du(tn,Dn,Or))return Or&&I_(fn,tn,ut.aliasSymbol?ut:Dn),0;const ms=(l!==$_||Od(tn))&&!(lr&2)&&tn.flags&405405692&&tn!==Te&&Dn.flags&2621440&&tAe(Dn)&&(Ua(tn).length>0||xK(tn)),Us=!!(bn(tn)&2048);if(ms&&!Mnt(tn,Dn,Us)){if(Or){const ps=Ar(He.aliasSymbol?He:tn),na=Ar(ut.aliasSymbol?ut:Dn),no=Es(tn,0),za=Es(tn,1);no.length>0&&sn(Ja(no[0]),Dn,1,!1)||za.length>0&&sn(Ja(za[0]),Dn,1,!1)?Gi(p.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,ps,na):Gi(p.Type_0_has_no_properties_in_common_with_type_1,ps,na)}return 0}La(tn,Dn);const ri=tn.flags&1048576&&tn.types.length<4&&!(Dn.flags&1048576)||Dn.flags&1048576&&Dn.types.length<4&&!(tn.flags&469499904)?i_(tn,Dn,Or,lr):si(tn,Dn,Or,lr,Bt);if(ri)return ri}return Or&&cs(He,ut,tn,Dn,fn),0}function cs(He,ut,Bt,Or,fn){var lr,tn;const Dn=!!$me(He),Si=!!$me(ut);Bt=He.aliasSymbol||Dn?He:Bt,Or=ut.aliasSymbol||Si?ut:Or;let ms=Tr>0;if(ms&&Tr--,Bt.flags&524288&&Or.flags&524288){const Us=L;jr(Bt,Or,!0),L!==Us&&(ms=!!L)}if(Bt.flags&524288&&Or.flags&402784252)Sr(Bt,Or);else if(Bt.symbol&&Bt.flags&524288&&Te===Bt)Gi(p.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(bn(Bt)&2048&&Or.flags&2097152){const Us=Or.types,qs=ib(Cf.IntrinsicAttributes,_),ri=ib(Cf.IntrinsicClassAttributes,_);if(!Ot(qs)&&!Ot(ri)&&(bs(Us,qs)||bs(Us,ri)))return}else L=qde(L,ut);if(!fn&&ms){Cr=[Bt,Or];return}if(I_(fn,Bt,Or),Bt.flags&262144&&((tn=(lr=Bt.symbol)==null?void 0:lr.declarations)!=null&&tn[0])&&!HS(Bt)){const Us=Fme(Bt);if(Us.constraint=zi(Or,K2(Bt,Us)),jR(Us)){const qs=Ar(Or,Bt.symbol.declarations[0]);up(yn(Bt.symbol.declarations[0],p.This_type_parameter_might_need_an_extends_0_constraint,qs))}}}function La(He,ut){if(qr&&He.flags&3145728&&ut.flags&3145728){const Bt=He,Or=ut;if(Bt.objectFlags&Or.objectFlags&32768)return;const fn=Bt.types.length,lr=Or.types.length;fn*lr>1e6&&qr.instant(qr.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:He.id,sourceSize:fn,targetId:ut.id,targetSize:lr,pos:_==null?void 0:_.pos,end:_==null?void 0:_.end})}}function Xa(He,ut){return Bn(Du(He,(Or,fn)=>{var lr;fn=n_(fn);const tn=fn.flags&3145728?BR(fn,ut):vv(fn,ut),Dn=tn&&Xr(tn)||((lr=dk(fn,ut))==null?void 0:lr.type)||Pe;return _r(Or,Dn)},void 0)||Ve)}function du(He,ut,Bt){var Or;if(!Sj(ut)||!ae&&bn(ut)&4096)return!1;const fn=!!(bn(He)&2048);if((l===d_||l===$_)&&($P(Te,ut)||!fn&&Fh(ut)))return!1;let lr=ut,tn;ut.flags&1048576&&(lr=y5e(He,ut,sn)||Hft(ut),tn=lr.flags&1048576?lr.types:[lr]);for(const Dn of Ua(He))if(ma(Dn,He.symbol)&&!Zwe(He,Dn)){if(!Jge(lr,Dn.escapedName,fn)){if(Bt){const Si=Mc(lr,Sj);if(!_)return E.fail();if(_2(_)||Fu(_)||Fu(_.parent)){Dn.valueDeclaration&&Kd(Dn.valueDeclaration)&&wr(_)===wr(Dn.valueDeclaration.name)&&(_=Dn.valueDeclaration.name);const ms=ni(Dn),Us=zNe(ms,Si),qs=Us?ni(Us):void 0;qs?Gi(p.Property_0_does_not_exist_on_type_1_Did_you_mean_2,ms,Ar(Si),qs):Gi(p.Property_0_does_not_exist_on_type_1,ms,Ar(Si))}else{const ms=((Or=He.symbol)==null?void 0:Or.declarations)&&bl(He.symbol.declarations);let Us;if(Dn.valueDeclaration&&Pr(Dn.valueDeclaration,qs=>qs===ms)&&wr(ms)===wr(_)){const qs=Dn.valueDeclaration;E.assertNode(qs,Yg);const ri=qs.name;_=ri,Ie(ri)&&(Us=Xge(ri,Si))}Us!==void 0?tl(p.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,ni(Dn),Ar(Si),Us):tl(p.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,ni(Dn),Ar(Si))}}return!0}if(tn&&!sn(Xr(Dn),Xa(tn,Dn.escapedName),3,Bt))return Bt&&Ki(p.Types_of_property_0_are_incompatible,ni(Dn)),!0}return!1}function ma(He,ut){return He.valueDeclaration&&ut.valueDeclaration&&He.valueDeclaration.parent===ut.valueDeclaration}function i_(He,ut,Bt,Or){if(He.flags&1048576){if(ut.flags&1048576){const fn=He.origin;if(fn&&fn.flags&2097152&&ut.aliasSymbol&&bs(fn.types,ut))return-1;const lr=ut.origin;if(lr&&lr.flags&1048576&&He.aliasSymbol&&bs(lr.types,He))return-1}return l===$_?ye(He,ut,Bt&&!(He.flags&402784252),Or):mn(He,ut,Bt&&!(He.flags&402784252),Or)}if(ut.flags&1048576)return $o(CI(He),ut,Bt&&!(He.flags&402784252)&&!(ut.flags&402784252),Or);if(ut.flags&2097152)return Ze(He,ut,Bt,2);if(l===$_&&ut.flags&402784252){const fn=nl(He.types,lr=>lr.flags&465829888?fu(lr)||Kt:lr);if(fn!==He.types){if(He=Xs(fn),He.flags&131072)return 0;if(!(He.flags&2097152))return sn(He,ut,1,!1)||sn(ut,He,1,!1)}}return ye(He,ut,!1,1)}function uc(He,ut){let Bt=-1;const Or=He.types;for(const fn of Or){const lr=$o(fn,ut,!1,0);if(!lr)return 0;Bt&=lr}return Bt}function $o(He,ut,Bt,Or){const fn=ut.types;if(ut.flags&1048576){if(Ah(fn,He))return-1;if(l!==$_&&bn(ut)&32768&&!(He.flags&1024)&&(He.flags&2688||(l===Hm||l===ep)&&He.flags&256)){const tn=He===He.regularType?He.freshType:He.regularType,Dn=He.flags&128?Ce:He.flags&256?_t:He.flags&2048?Tt:void 0;return Dn&&Ah(fn,Dn)||tn&&Ah(fn,tn)?-1:0}const lr=AAe(ut,He);if(lr){const tn=sn(He,lr,2,!1,void 0,Or);if(tn)return tn}}for(const lr of fn){const tn=sn(He,lr,2,!1,void 0,Or);if(tn)return tn}if(Bt){const lr=eAe(He,ut,sn);lr&&sn(He,lr,2,!0,void 0,Or)}return 0}function Ze(He,ut,Bt,Or){let fn=-1;const lr=ut.types;for(const tn of lr){const Dn=sn(He,tn,2,Bt,void 0,Or);if(!Dn)return 0;fn&=Dn}return fn}function ye(He,ut,Bt,Or){const fn=He.types;if(He.flags&1048576&&Ah(fn,ut))return-1;const lr=fn.length;for(let tn=0;tn=tn.types.length&&lr.length%tn.types.length===0){const Us=sn(Si,tn.types[Dn%tn.types.length],3,!1,void 0,Or);if(Us){fn&=Us;continue}}const ms=sn(Si,ut,1,Bt,void 0,Or);if(!ms)return 0;fn&=ms}return fn}function Xn(He=Ve,ut=Ve,Bt=Ve,Or,fn){if(He.length!==ut.length&&l===P_)return 0;const lr=He.length<=ut.length?He.length:ut.length;let tn=-1;for(let Dn=0;Dn(ps|=za?16:8,ri(za)));let na;return $t===3?((lr=qr)==null||lr.instant(qr.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:He.id,sourceIdStack:_e.map(za=>za.id),targetId:ut.id,targetIdStack:Re.map(za=>za.id),depth:gt,targetDepth:qt}),na=3):((tn=qr)==null||tn.push(qr.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:He.id,targetId:ut.id}),na=ai(He,ut,Bt,Or),(Dn=qr)==null||Dn.pop()),zs&&(zs=ri),fn&1&>--,fn&2&&qt--,$t=qs,na?(na===-1||gt===0&&qt===0)&&no(na===-1||na===3):(l.set(Si,(Bt?4:0)|2|ps),Br--,no(!1)),na;function no(za){for(let rl=Us;rlDn!==He)&&(lr=sn(tn,ut,1,!1,void 0,Or))}lr&&!(Or&2)&&ut.flags&2097152&&!ZS(ut)&&He.flags&2621440?(lr&=mi(He,ut,Bt,void 0,!1,0),lr&&Dv(He)&&bn(He)&8192&&(lr&=ro(He,ut,!1,Bt,0))):lr&&eZ(ut)&&!Cv(ut)&&He.flags&2097152&&n_(He).flags&3670016&&!ct(He.types,tn=>tn===ut||!!(bn(tn)&262144))&&(lr&=mi(He,ut,Bt,void 0,!0,Or))}return lr&&Jr(fn),lr}function Pn(He,ut){const Bt=n_(qS(ut)),Or=[];return Rde(Bt,8576,!1,fn=>void Or.push(zi(He,gI(ut.mapper,Ad(ut),fn)))),Bn(Or)}function _n(He,ut,Bt,Or,fn){let lr,tn,Dn=!1,Si=He.flags;const ms=ut.flags;if(l===P_){if(Si&3145728){let ri=uc(He,ut);return ri&&(ri&=uc(ut,He)),ri}if(Si&4194304)return sn(He.type,ut.type,3,!1);if(Si&8388608&&(lr=sn(He.objectType,ut.objectType,3,!1))&&(lr&=sn(He.indexType,ut.indexType,3,!1))||Si&16777216&&He.root.isDistributive===ut.root.isDistributive&&(lr=sn(He.checkType,ut.checkType,3,!1))&&(lr&=sn(He.extendsType,ut.extendsType,3,!1))&&(lr&=sn(Tv(He),Tv(ut),3,!1))&&(lr&=sn(xv(He),xv(ut),3,!1))||Si&33554432&&(lr=sn(He.baseType,ut.baseType,3,!1))&&(lr&=sn(He.constraint,ut.constraint,3,!1)))return lr;if(!(Si&524288))return 0}else if(Si&3145728||ms&3145728){if(lr=i_(He,ut,Bt,Or))return lr;if(!(Si&465829888||Si&524288&&ms&1048576||Si&2097152&&ms&467402752))return 0}if(Si&17301504&&He.aliasSymbol&&He.aliasTypeArguments&&He.aliasSymbol===ut.aliasSymbol&&!(_Z(He)||_Z(ut))){const ri=rAe(He.aliasSymbol);if(ri===Ve)return 1;const ps=wi(He.aliasSymbol).typeParameters,na=rg(ps),no=Qy(He.aliasTypeArguments,ps,na,Hr(He.aliasSymbol.valueDeclaration)),za=Qy(ut.aliasTypeArguments,ps,na,Hr(He.aliasSymbol.valueDeclaration)),rl=qs(no,za,ri,Or);if(rl!==void 0)return rl}if(_Ae(He)&&!He.target.readonly&&(lr=sn(So(He)[0],ut,1))||_Ae(ut)&&(ut.target.readonly||ij(fu(He)||He))&&(lr=sn(He,So(ut)[0],2)))return lr;if(ms&262144){if(bn(He)&32&&!He.declaration.nameType&&sn(pm(ut),Bf(He),3)&&!(tg(He)&4)){const ri=Dh(He),ps=K_(ut,Ad(He));if(lr=sn(ri,ps,3,Bt))return lr}if(l===$_&&Si&262144){let ri=r_(He);if(ri)for(;ri&&ad(ri,ps=>!!(ps.flags&262144));){if(lr=sn(ri,ut,1,!1))return lr;ri=r_(ri)}return 0}}else if(ms&4194304){const ri=ut.type;if(Si&4194304&&(lr=sn(ri,He.type,3,!1)))return lr;if(da(ri)){if(lr=sn(He,lwe(ri),2,Bt))return lr}else{const ps=Bde(ri);if(ps){if(sn(He,pm(ps,ut.indexFlags|4),2,Bt)===-1)return-1}else if(g_(ri)){const na=E0(ri),no=Bf(ri);let za;if(na&&m4(ri)){const rl=Pn(na,ri);za=Bn([rl,na])}else za=na||no;if(sn(He,za,2,Bt)===-1)return-1}}}else if(ms&8388608){if(Si&8388608){if((lr=sn(He.objectType,ut.objectType,3,Bt))&&(lr&=sn(He.indexType,ut.indexType,3,Bt)),lr)return lr;Bt&&(tn=L)}if(l===d_||l===$_){const ri=ut.objectType,ps=ut.indexType,na=fu(ri)||ri,no=fu(ps)||ps;if(!ZS(na)&&!KS(no)){const za=4|(na!==ri?2:0),rl=Zy(na,no,za);if(rl){if(Bt&&tn&&Jr(fn),lr=sn(He,rl,2,Bt,void 0,Or))return lr;Bt&&tn&&L&&(L=Us([tn])<=Us([L])?tn:L)}}}Bt&&(tn=void 0)}else if(g_(ut)&&l!==P_){const ri=!!ut.declaration.nameType,ps=Dh(ut),na=tg(ut);if(!(na&8)){if(!ri&&ps.flags&8388608&&ps.objectType===He&&ps.indexType===Ad(ut))return-1;if(!g_(He)){const no=ri?E0(ut):Bf(ut),za=pm(He,2),rl=na&4,og=rl?LR(no,za):void 0;if(rl?!(og.flags&131072):sn(no,za,3)){const jh=Dh(ut),pT=Ad(ut),dT=XP(jh,-98305);if(!ri&&dT.flags&8388608&&dT.indexType===pT){if(lr=sn(He,dT.objectType,2,Bt))return lr}else{const lD=ri?og||no:og?Xs([og,pT]):pT,jd=K_(He,lD);if(lr=sn(jd,jh,3,Bt))return lr}}tn=L,Jr(fn)}}}else if(ms&16777216){if(WP(ut,Re,qt,10))return 3;const ri=ut;if(!ri.root.inferTypeParameters&&!Xrt(ri.root)&&!(He.flags&16777216&&He.root===ri.root)){const ps=!Qs(yI(ri.checkType),yI(ri.extendsType)),na=!ps&&Qs(tT(ri.checkType),tT(ri.extendsType));if((lr=ps?-1:sn(He,Tv(ri),2,!1,void 0,Or))&&(lr&=na?-1:sn(He,xv(ri),2,!1,void 0,Or),lr))return lr}}else if(ms&134217728){if(Si&134217728){if(l===$_)return Tit(He,ut)?0:-1;zi(He,Ll)}if(DZ(He,ut))return-1}else if(ut.flags&268435456&&!(He.flags&268435456)&&PZ(He,ut))return-1;if(Si&8650752){if(!(Si&8388608&&ms&8388608)){const ri=HS(He)||Kt;if(lr=sn(ri,ut,1,!1,void 0,Or))return lr;if(lr=sn(mf(ri,He),ut,1,Bt&&ri!==Kt&&!(ms&Si&262144),void 0,Or))return lr;if(Vde(He)){const ps=HS(He.indexType);if(ps&&(lr=sn(K_(He.objectType,ps),ut,1,Bt)))return lr}}}else if(Si&4194304){const ri=xme(He.type,He.indexFlags)&&bn(He.type)&32;if(lr=sn(_o,ut,1,Bt&&!ri))return lr;if(ri){const ps=He.type,na=E0(ps),no=na&&m4(ps)?Pn(na,ps):na||Bf(ps);if(lr=sn(no,ut,1,Bt))return lr}}else if(Si&134217728&&!(ms&524288)){if(!(ms&134217728)){const ri=fu(He);if(ri&&ri!==He&&(lr=sn(ri,ut,1,Bt)))return lr}}else if(Si&268435456)if(ms&268435456){if(He.symbol!==ut.symbol)return 0;if(lr=sn(He.type,ut.type,3,Bt))return lr}else{const ri=fu(He);if(ri&&(lr=sn(ri,ut,1,Bt)))return lr}else if(Si&16777216){if(WP(He,_e,gt,10))return 3;if(ms&16777216){const na=He.root.inferTypeParameters;let no=He.extendsType,za;if(na){const rl=EI(na,void 0,0,Bi);Mh(rl.inferences,ut.extendsType,no,1536),no=zi(no,rl.mapper),za=rl.mapper}if(Ih(no,ut.extendsType)&&(sn(He.checkType,ut.checkType,3)||sn(ut.checkType,He.checkType,3))&&((lr=sn(zi(Tv(He),za),Tv(ut),3,Bt))&&(lr&=sn(xv(He),xv(ut),3,Bt)),lr))return lr}const ri=Jde(He);if(ri&&(lr=sn(ri,ut,1,Bt)))return lr;const ps=!(ms&16777216)&&jR(He)?T8e(He):void 0;if(ps&&(Jr(fn),lr=sn(ps,ut,1,Bt)))return lr}else{if(l!==Hm&&l!==ep&&att(ut)&&Fh(He))return-1;if(g_(ut))return g_(He)&&(lr=Qe(He,ut,Bt))?lr:0;const ri=!!(Si&402784252);if(l!==P_)He=n_(He),Si=He.flags;else if(g_(He))return 0;if(bn(He)&4&&bn(ut)&4&&He.target===ut.target&&!da(He)&&!(_Z(He)||_Z(ut))){if(gZ(He))return-1;const ps=Ume(He.target);if(ps===Ve)return 1;const na=qs(So(He),So(ut),ps,Or);if(na!==void 0)return na}else{if(VP(ut)?N_(He,Cv):lp(ut)&&N_(He,ps=>da(ps)&&!ps.target.readonly))return l!==P_?sn(bv(He,_t)||B,bv(ut,_t)||B,3,Bt):0;if(n1(He)&&da(ut)&&!n1(ut)){const ps=wh(He);if(ps!==He)return sn(ps,ut,1,Bt)}else if((l===Hm||l===ep)&&Fh(ut)&&bn(ut)&8192&&!Fh(He))return 0}if(Si&2621440&&ms&524288){const ps=Bt&&L===fn.errorInfo&&!ri;if(lr=mi(He,ut,ps,void 0,!1,Or),lr&&(lr&=ys(He,ut,0,ps,Or),lr&&(lr&=ys(He,ut,1,ps,Or),lr&&(lr&=ro(He,ut,ri,ps,Or)))),Dn&&lr)L=tn||L||fn.errorInfo;else if(lr)return lr}if(Si&2621440&&ms&1048576){const ps=XP(ut,36175872);if(ps.flags&1048576){const na=xt(He,ps);if(na)return na}}}return 0;function Us(ri){return ri?Du(ri,(ps,na)=>ps+1+Us(na.next),0):0}function qs(ri,ps,na,no){if(lr=Xn(ri,ps,na,Bt,no))return lr;if(ct(na,rl=>!!(rl&24))){tn=void 0,Jr(fn);return}const za=ps&&Rnt(ps,na);if(Dn=!za,na!==Ve&&!za){if(Dn&&!(Bt&&ct(na,rl=>(rl&7)===0)))return 0;tn=L,Jr(fn)}}}function Qe(He,ut,Bt){if(l===$_||(l===P_?tg(He)===tg(ut):jde(He)<=jde(ut))){let fn;const lr=Bf(ut),tn=zi(Bf(He),jde(He)<0?Ya:Ll);if(fn=sn(lr,tn,3,Bt)){const Dn=ef([Ad(He)],[Ad(ut)]);if(zi(E0(He),Dn)===zi(E0(ut),Dn))return fn&sn(zi(Dh(He),Dn),Dh(ut),3,Bt)}}return 0}function xt(He,ut){var Bt;const Or=Ua(He),fn=wAe(Or,ut);if(!fn)return 0;let lr=1;for(const qs of fn)if(lr*=Qit(Hy(qs)),lr>25)return(Bt=qr)==null||Bt.instant(qr.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:He.id,targetId:ut.id,numCombinations:lr}),0;const tn=new Array(fn.length),Dn=new Set;for(let qs=0;qsqs[na],!1,0,q||l===$_))continue e}Jf(ms,ps,Vh),ri=!0}if(!ri)return 0}let Us=-1;for(const qs of ms)if(Us&=mi(He,qs,!1,Dn,!1,0),Us&&(Us&=ys(He,qs,0,!1,0),Us&&(Us&=ys(He,qs,1,!1,0),Us&&!(da(He)&&da(qs))&&(Us&=ro(He,qs,!1,!1,0)))),!Us)return Us;return Us}function Qt(He,ut){if(!ut||He.length===0)return He;let Bt;for(let Or=0;Or5?Gi(p.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,Ar(He),Ar(ut),nr(lr.slice(0,4),tn=>ni(tn)).join(", "),lr.length-4):Gi(p.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,Ar(He),Ar(ut),nr(lr,tn=>ni(tn)).join(", ")),fn&&L&&Tr++)}function mi(He,ut,Bt,Or,fn,lr){if(l===P_)return xn(He,ut,Or);let tn=-1;if(da(ut)){if(Cv(He)){if(!ut.target.readonly&&(VP(He)||da(He)&&He.target.readonly))return 0;const qs=D0(He),ri=D0(ut),ps=da(He)?He.target.combinedFlags&4:4,na=ut.target.combinedFlags&4,no=da(He)?He.target.minLength:0,za=ut.target.minLength;if(!ps&&qs=jh?ri-1-Math.min(cd,pT):jd,pn=ut.target.elementFlags[vt];if(pn&8&&!(kk&8))return Bt&&Gi(p.Source_provides_no_match_for_variadic_element_at_position_0_in_target,vt),0;if(kk&8&&!(pn&12))return Bt&&Gi(p.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,jd,vt),0;if(pn&1&&!(kk&1))return Bt&&Gi(p.Source_provides_no_match_for_required_element_at_position_0_in_target,vt),0;if(lD&&((kk&12||pn&12)&&(lD=!1),lD&&(Or!=null&&Or.has(""+jd))))continue;const Qn=s1(rl[jd],!!(kk&pn&2)),Fn=og[vt],Gn=kk&8&&pn&4?pu(Fn):s1(Fn,!!(pn&2)),Aa=sn(Qn,Gn,3,Bt,void 0,lr);if(!Aa)return Bt&&(ri>1||qs>1)&&(dT&&jd>=jh&&cd>=pT&&jh!==qs-pT-1?Ki(p.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,jh,qs-pT-1,vt):Ki(p.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,jd,vt)),0;tn&=Aa}return tn}if(ut.target.combinedFlags&12)return 0}const Dn=(l===Hm||l===ep)&&!Dv(He)&&!gZ(He)&&!da(He),Si=oge(He,ut,Dn,!1);if(Si)return Bt&&dr(He,ut)&&xr(He,ut,Si,Dn),0;if(Dv(ut)){for(const qs of Qt(Ua(He),Or))if(!vv(ut,qs.escapedName)&&!(Xr(qs).flags&32768))return Bt&&Gi(p.Property_0_does_not_exist_on_type_1,ni(qs),Ar(ut)),0}const ms=Ua(ut),Us=da(He)&&da(ut);for(const qs of Qt(ms,Or)){const ri=qs.escapedName;if(!(qs.flags&4194304)&&(!Us||kg(ri)||ri==="length")&&(!fn||qs.flags&16777216)){const ps=$s(He,ri);if(ps&&ps!==qs){const na=Zt(He,ut,ps,qs,Hy,Bt,lr,l===$_);if(!na)return 0;tn&=na}}}return tn}function xn(He,ut,Bt){if(!(He.flags&524288&&ut.flags&524288))return 0;const Or=Qt(Xy(He),Bt),fn=Qt(Xy(ut),Bt);if(Or.length!==fn.length)return 0;let lr=-1;for(const tn of Or){const Dn=vv(ut,tn.escapedName);if(!Dn)return 0;const Si=Hme(tn,Dn,sn);if(!Si)return 0;lr&=Si}return lr}function ys(He,ut,Bt,Or,fn){var lr,tn;if(l===P_)return Ys(He,ut,Bt);if(ut===Wt||He===Wt)return-1;const Dn=He.symbol&&hm(He.symbol.valueDeclaration),Si=ut.symbol&&hm(ut.symbol.valueDeclaration),ms=Es(He,Dn&&Bt===1?0:Bt),Us=Es(ut,Si&&Bt===1?0:Bt);if(Bt===1&&ms.length&&Us.length){const no=!!(ms[0].flags&4),za=!!(Us[0].flags&4);if(no&&!za)return Or&&Gi(p.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!Rd(ms[0],Us[0],Or))return 0}let qs=-1;const ri=Bt===1?Fi:Jn,ps=bn(He),na=bn(ut);if(ps&64&&na&64&&He.symbol===ut.symbol||ps&4&&na&4&&He.target===ut.target){E.assertEqual(ms.length,Us.length);for(let no=0;noYm(jh,void 0,262144,Bt);return Gi(p.Type_0_is_not_assignable_to_type_1,og(za),og(rl)),Gi(p.Types_of_construct_signatures_are_incompatible),qs}}else e:for(const no of Us){const za=ss();let rl=Or;for(const og of ms){const jh=qi(og,no,!0,rl,fn,ri(og,no));if(jh){qs&=jh,Jr(za);continue e}rl=!1}return rl&&Gi(p.Type_0_provides_no_match_for_the_signature_1,Ar(He),Ym(no,void 0,void 0,Bt)),0}return qs}function dr(He,ut){const Bt=JR(He,0),Or=JR(He,1),fn=Xy(He);return(Bt.length||Or.length)&&!fn.length?!!(Es(ut,0).length&&Bt.length||Es(ut,1).length&&Or.length):!0}function Jn(He,ut){return He.parameters.length===0&&ut.parameters.length===0?(Bt,Or)=>Ki(p.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Ar(Bt),Ar(Or)):(Bt,Or)=>Ki(p.Call_signature_return_types_0_and_1_are_incompatible,Ar(Bt),Ar(Or))}function Fi(He,ut){return He.parameters.length===0&&ut.parameters.length===0?(Bt,Or)=>Ki(p.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Ar(Bt),Ar(Or)):(Bt,Or)=>Ki(p.Construct_signature_return_types_0_and_1_are_incompatible,Ar(Bt),Ar(Or))}function qi(He,ut,Bt,Or,fn,lr){const tn=l===Hm?16:l===ep?24:0;return Bme(Bt?_I(He):He,Bt?_I(ut):ut,tn,Or,Gi,lr,Dn,Ll);function Dn(Si,ms,Us){return sn(Si,ms,3,Us,void 0,fn)}}function Ys(He,ut,Bt){const Or=Es(He,Bt),fn=Es(ut,Bt);if(Or.length!==fn.length)return 0;let lr=-1;for(let tn=0;tnSi.keyType===Ce);let Dn=-1;for(const Si of lr){const ms=l!==ep&&!Bt&&tn&&Si.type.flags&1?-1:g_(He)&&tn?sn(Dh(He),Si.type,3,Or):Zl(He,Si,Or,fn);if(!ms)return 0;Dn&=ms}return Dn}function Zl(He,ut,Bt,Or){const fn=cI(He,ut.keyType);return fn?oo(fn,ut,Bt,Or):!(Or&1)&&(l!==ep||bn(He)&8192)&&TZ(He)?Hc(He,ut,Bt,Or):(Bt&&Gi(p.Index_signature_for_type_0_is_missing_in_type_1,Ar(ut.keyType),Ar(He)),0)}function To(He,ut){const Bt=Wu(He),Or=Wu(ut);if(Bt.length!==Or.length)return 0;for(const fn of Or){const lr=zg(He,fn.keyType);if(!(lr&&sn(lr.type,fn.type,3)&&lr.isReadonly===fn.isReadonly))return 0}return-1}function Rd(He,ut,Bt){if(!He.declaration||!ut.declaration)return!0;const Or=JT(He.declaration,6),fn=JT(ut.declaration,6);return fn===2||fn===4&&Or!==2||fn!==4&&!Or?!0:(Bt&&Gi(p.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,WS(Or),WS(fn)),!1)}}function Wme(r){if(r.flags&16)return!1;if(r.flags&3145728)return!!rr(r.types,Wme);if(r.flags&465829888){const a=HS(r);if(a&&a!==r)return Wme(a)}return Od(r)||!!(r.flags&134217728)||!!(r.flags&268435456)}function Kwe(r,a){return da(r)&&da(a)?Ve:Ua(a).filter(l=>uZ(je(r,l.escapedName),Xr(l)))}function uZ(r,a){return!!r&&!!a&&nc(r,32768)&&!!kI(a)}function Lnt(r){return Ua(r).filter(a=>kI(Xr(a)))}function eAe(r,a,l=Rme){return y5e(r,a,l)||Wft(r,a)||Vft(r,a)||Uft(r,a)||qft(r,a)}function Vme(r,a,l){const _=r.types,m=_.map(x=>x.flags&402784252?0:-1);for(const[x,N]of a){let L=!1;for(let z=0;z<_.length;z++)if(m[z]){const Z=dt(_[z],N);Z&&l(x(),Z)?L=!0:m[z]=3}for(let z=0;z<_.length;z++)m[z]===3&&(m[z]=L?0:-1)}const h=bs(m,0)?Bn(_.filter((x,N)=>m[N]),0):r;return h.flags&131072?r:h}function tAe(r){if(r.flags&524288){const a=Nd(r);return a.callSignatures.length===0&&a.constructSignatures.length===0&&a.indexInfos.length===0&&a.properties.length>0&&Wi(a.properties,l=>!!(l.flags&16777216))}return r.flags&2097152?Wi(r.types,tAe):!1}function Mnt(r,a,l){for(const _ of Ua(r))if(Jge(a,_.escapedName,l))return!0;return!1}function Ume(r){return r===Ds||r===Is||r.objectFlags&8?$:nAe(r.symbol,r.typeParameters)}function rAe(r){return nAe(r,wi(r).typeParameters)}function nAe(r,a=Ve){var l,_;const m=wi(r);if(!m.variances){(l=qr)==null||l.push(qr.Phase.CheckTypes,"getVariancesWorker",{arity:a.length,id:Vu(Po(r))});const h=K1;K1||(K1=!0,Ux=jl.length),m.variances=Ve;const x=[];for(const N of a){const L=qme(N);let z=L&16384?L&8192?0:1:L&8192?2:void 0;if(z===void 0){let Z=!1,de=!1;const _e=zs;zs=gt=>gt?de=!0:Z=!0;const Re=tj(r,N,q_),st=tj(r,N,so);z=(Qs(st,Re)?1:0)|(Qs(Re,st)?2:0),z===3&&Qs(tj(r,N,Zc),Re)&&(z=4),zs=_e,(Z||de)&&(Z&&(z|=8),de&&(z|=16))}x.push(z)}h||(K1=!1,Ux=0),m.variances=x,(_=qr)==null||_.pop({variances:x.map(E.formatVariance)})}return m.variances}function tj(r,a,l){const _=K2(a,l),m=Po(r);if(Ot(m))return m;const h=r.flags&524288?y4(r,A0(wi(r).typeParameters,_)):P0(m,A0(m.typeParameters,_));return rt.add(Vu(h)),h}function _Z(r){return rt.has(Vu(r))}function qme(r){var a;return Du((a=r.symbol)==null?void 0:a.declarations,(l,_)=>l|Lu(_),0)&28672}function Rnt(r,a){for(let l=0;l!!(a.flags&262144)||fZ(a))}function Jnt(r,a,l,_){const m=[];let h="";const x=L(r,0),N=L(a,0);return`${h}${x},${N}${l}`;function L(z,Z=0){let de=""+z.target.id;for(const _e of So(z)){if(_e.flags&262144){if(_||jnt(_e)){let Re=m.indexOf(_e);Re<0&&(Re=m.length,m.push(_e)),de+="="+Re;continue}h="*"}else if(Z<4&&fZ(_e)){de+="<"+L(_e,Z+1)+">";continue}de+="-"+_e.id}return de}}function pZ(r,a,l,_,m){if(_===P_&&r.id>a.id){const x=r;r=a,a=x}const h=l?":"+l:"";return fZ(r)&&fZ(a)?Jnt(r,a,h,m):`${r.id},${a.id}${h}`}function rj(r,a){if(Ko(r)&6){for(const l of r.links.containingType.types){const _=$s(l,r.escapedName),m=_&&rj(_,a);if(m)return m}return}return a(r)}function vk(r){return r.parent&&r.parent.flags&32?Po(e_(r)):void 0}function dZ(r){const a=vk(r),l=a&&Z_(a)[0];return l&&je(l,r.escapedName)}function znt(r,a){return rj(r,l=>{const _=vk(l);return _?f4(_,a):!1})}function Wnt(r,a){return!rj(a,l=>qf(l)&4?!znt(r,vk(l)):!1)}function iAe(r,a,l){return rj(a,_=>qf(_,l)&4?!f4(r,vk(_)):!1)?void 0:r}function WP(r,a,l,_=3){if(l>=_){if((bn(r)&96)===96&&(r=sAe(r)),r.flags&2097152)return ct(r.types,N=>WP(N,a,l,_));const m=mZ(r);let h=0,x=0;for(let N=0;N=x&&(h++,h>=_))return!0;x=L.id}}}return!1}function sAe(r){let a;for(;(bn(r)&96)===96&&(a=qS(r))&&(a.symbol||a.flags&2097152&&ct(a.types,l=>!!l.symbol));)r=a;return r}function aAe(r,a){return(bn(r)&96)===96&&(r=sAe(r)),r.flags&2097152?ct(r.types,l=>aAe(l,a)):mZ(r)===a}function mZ(r){if(r.flags&524288&&!lge(r)){if(bn(r)&4&&r.node)return r.node;if(r.symbol&&!(bn(r)&16&&r.symbol.flags&32))return r.symbol;if(da(r))return r.target}if(r.flags&262144)return r.symbol;if(r.flags&8388608){do r=r.objectType;while(r.flags&8388608);return r}return r.flags&16777216?r.root:r}function Vnt(r,a){return Hme(r,a,vI)!==0}function Hme(r,a,l){if(r===a)return-1;const _=qf(r)&6,m=qf(a)&6;if(_!==m)return 0;if(_){if(I4(r)!==I4(a))return 0}else if((r.flags&16777216)!==(a.flags&16777216))return 0;return Md(r)!==Md(a)?0:l(Xr(r),Xr(a))}function Unt(r,a,l){const _=hf(r),m=hf(a),h=ym(r),x=ym(a),N=ag(r),L=ag(a);return!!(_===m&&h===x&&N===L||l&&h<=x)}function nj(r,a,l,_,m,h){if(r===a)return-1;if(!Unt(r,a,l)||mr(r.typeParameters)!==mr(a.typeParameters))return 0;if(a.typeParameters){const L=ef(r.typeParameters,a.typeParameters);for(let z=0;za|(l.flags&1048576?oAe(l.types):l.flags),0)}function Gnt(r){if(r.length===1)return r[0];const a=q?nl(r,_=>Mc(_,m=>!(m.flags&98304))):r,l=Hnt(a)?Bn(a):Du(a,(_,m)=>t1(_,m)?m:_);return a===r?l:aj(l,oAe(r)&98304)}function $nt(r){return Du(r,(a,l)=>t1(l,a)?l:a)}function lp(r){return!!(bn(r)&4)&&(r.target===Ds||r.target===Is)}function VP(r){return!!(bn(r)&4)&&r.target===Is}function Cv(r){return lp(r)||da(r)}function ij(r){return lp(r)&&!VP(r)||da(r)&&!r.target.readonly}function sj(r){return lp(r)?So(r)[0]:void 0}function N0(r){return lp(r)||!(r.flags&98304)&&Qs(r,Nf)}function Gme(r){return ij(r)||!(r.flags&98305)&&Qs(r,Ec)}function $me(r){if(!(bn(r)&4)||!(bn(r.target)&3))return;if(bn(r)&33554432)return bn(r)&67108864?r.cachedEquivalentBaseType:void 0;r.objectFlags|=33554432;const a=r.target;if(bn(a)&1){const m=Za(a);if(m&&m.expression.kind!==80&&m.expression.kind!==211)return}const l=Z_(a);if(l.length!==1||$y(r.symbol).size)return;let _=mr(a.typeParameters)?zi(l[0],ef(a.typeParameters,So(r).slice(0,a.typeParameters.length))):l[0];return mr(So(r))>mr(a.typeParameters)&&(_=mf(_,ka(So(r)))),r.objectFlags|=67108864,r.cachedEquivalentBaseType=_}function cAe(r){return q?r===pi:r===St}function gZ(r){const a=sj(r);return!!a&&cAe(a)}function UP(r){let a;return da(r)||!!$s(r,"0")||N0(r)&&!!(a=je(r,"length"))&&N_(a,l=>!!(l.flags&256))}function hZ(r){return N0(r)||UP(r)}function Xnt(r,a){const l=je(r,""+a);if(l)return l;if(N_(r,da))return fAe(r,a,j.noUncheckedIndexedAccess?Pe:void 0)}function Qnt(r){return!(r.flags&240544)}function Od(r){return!!(r.flags&109472)}function lAe(r){const a=wh(r);return a.flags&2097152?ct(a.types,Od):Od(a)}function Ynt(r){return r.flags&2097152&&wn(r.types,Od)||r}function TI(r){return r.flags&16?!0:r.flags&1048576?r.flags&1024?!0:Wi(r.types,Od):Od(r)}function Oh(r){return r.flags&1056?RY(r):r.flags&402653312?Ce:r.flags&256?_t:r.flags&2048?Tt:r.flags&512?fi:r.flags&1048576?Znt(r):r}function Znt(r){const a=`B${Vu(r)}`;return Yx(a)??Py(a,Bo(r,Oh))}function Xme(r){return r.flags&402653312?Ce:r.flags&288?_t:r.flags&2048?Tt:r.flags&512?fi:r.flags&1048576?Bo(r,Xme):r}function tb(r){return r.flags&1056&&Z2(r)?RY(r):r.flags&128&&Z2(r)?Ce:r.flags&256&&Z2(r)?_t:r.flags&2048&&Z2(r)?Tt:r.flags&512&&Z2(r)?fi:r.flags&1048576?Bo(r,tb):r}function uAe(r){return r.flags&8192?oi:r.flags&1048576?Bo(r,uAe):r}function Qme(r,a){return oK(r,a)||(r=uAe(tb(r))),Uu(r)}function Knt(r,a,l){if(r&&Od(r)){const _=a?l?jI(a):a:void 0;r=Qme(r,_)}return r}function Yme(r,a,l,_){if(r&&Od(r)){const m=a?ab(l,a,_):void 0;r=Qme(r,m)}return r}function da(r){return!!(bn(r)&4&&r.target.objectFlags&8)}function n1(r){return da(r)&&!!(r.target.combinedFlags&8)}function _Ae(r){return n1(r)&&r.target.elementFlags.length===1}function yZ(r){return qP(r,r.target.fixedLength)}function fAe(r,a,l){return Bo(r,_=>{const m=_,h=yZ(m);return h?l&&a>=yme(m.target)?Bn([h,l]):h:Pe})}function eit(r){const a=yZ(r);return a&&pu(a)}function qP(r,a,l=0,_=!1,m=!1){const h=D0(r)-l;if(a(l&12)===(a.target.elementFlags[_]&12))}function pAe({value:r}){return r.base10Value==="0"}function dAe(r){return Mc(r,a=>Ip(a,4194304))}function rit(r){return Bo(r,nit)}function nit(r){return r.flags&4?ws:r.flags&8?Ta:r.flags&64?ku:r===ar||r===Jt||r.flags&114691||r.flags&128&&r.value===""||r.flags&256&&r.value===0||r.flags&2048&&pAe(r)?r:Cn}function aj(r,a){const l=a&~r.flags&98304;return l===0?r:Bn(l===32768?[r,Pe]:l===65536?[r,ce]:[r,Pe,ce])}function i1(r,a=!1){E.assert(q);const l=a?le:Pe;return r===l||r.flags&1048576&&r.types[0]===l?r:Bn([r,l])}function iit(r){return __||(__=BP("NonNullable",524288,void 0)||tt),__!==tt?y4(__,[r]):Xs([r,oa])}function Lh(r){return q?sT(r,2097152):r}function mAe(r){return q?Bn([r,V]):r}function vZ(r){return q?NZ(r,V):r}function bZ(r,a,l){return l?iE(a)?i1(r):mAe(r):r}function xI(r,a){return V7(a)?Lh(r):hu(a)?vZ(r):r}function s1(r,a){return be&&a?NZ(r,A):r}function kI(r){return r===A||!!(r.flags&1048576)&&r.types[0]===A}function SZ(r){return be?NZ(r,A):Fp(r,524288)}function sit(r,a){return(r.flags&524)!==0&&(a.flags&28)!==0}function TZ(r){const a=bn(r);return r.flags&2097152?Wi(r.types,TZ):!!(r.symbol&&r.symbol.flags&7040&&!(r.symbol.flags&32)&&!xK(r))||!!(a&4194304)||!!(a&1024&&TZ(r.source))}function rT(r,a){const l=xa(r.flags,r.escapedName,Ko(r)&8);l.declarations=r.declarations,l.parent=r.parent,l.links.type=a,l.links.target=r,r.valueDeclaration&&(l.valueDeclaration=r.valueDeclaration);const _=wi(r).nameType;return _&&(l.links.nameType=_),l}function ait(r,a){const l=Bs();for(const _ of Xy(r)){const m=Xr(_),h=a(m);l.set(_.escapedName,h===m?_:rT(_,h))}return l}function CI(r){if(!(Dv(r)&&bn(r)&8192))return r;const a=r.regularType;if(a)return a;const l=r,_=ait(r,CI),m=ao(l.symbol,_,l.callSignatures,l.constructSignatures,l.indexInfos);return m.flags=l.flags,m.objectFlags|=l.objectFlags&-8193,r.regularType=m,m}function gAe(r,a,l){return{parent:r,propertyName:a,siblings:l,resolvedProperties:void 0}}function hAe(r){if(!r.siblings){const a=[];for(const l of hAe(r.parent))if(Dv(l)){const _=vv(l,r.propertyName);_&&aT(Xr(_),m=>{a.push(m)})}r.siblings=a}return r.siblings}function oit(r){if(!r.resolvedProperties){const a=new Map;for(const l of hAe(r))if(Dv(l)&&!(bn(l)&2097152))for(const _ of Ua(l))a.set(_.escapedName,_);r.resolvedProperties=gs(a.values())}return r.resolvedProperties}function cit(r,a){if(!(r.flags&4))return r;const l=Xr(r),_=a&&gAe(a,r.escapedName,void 0),m=Zme(l,_);return m===l?r:rT(r,m)}function lit(r){const a=Le.get(r.escapedName);if(a)return a;const l=rT(r,le);return l.flags|=16777216,Le.set(r.escapedName,l),l}function uit(r,a){const l=Bs();for(const m of Xy(r))l.set(m.escapedName,cit(m,a));if(a)for(const m of oit(a))l.has(m.escapedName)||l.set(m.escapedName,lit(m));const _=ao(r.symbol,l,Ve,Ve,nl(Wu(r),m=>ng(m.keyType,gf(m.type),m.isReadonly)));return _.objectFlags|=bn(r)&266240,_}function gf(r){return Zme(r,void 0)}function Zme(r,a){if(bn(r)&196608){if(a===void 0&&r.widened)return r.widened;let l;if(r.flags&98305)l=B;else if(Dv(r))l=uit(r,a);else if(r.flags&1048576){const _=a||gAe(void 0,void 0,r.types),m=nl(r.types,h=>h.flags&98304?h:Zme(h,_));l=Bn(m,ct(m,Fh)?2:1)}else r.flags&2097152?l=Xs(nl(r.types,gf)):Cv(r)&&(l=P0(r.target,nl(So(r),gf)));return l&&a===void 0&&(r.widened=l),l||r}return r}function xZ(r){let a=!1;if(bn(r)&65536){if(r.flags&1048576)if(ct(r.types,Fh))a=!0;else for(const l of r.types)xZ(l)&&(a=!0);if(Cv(r))for(const l of So(r))xZ(l)&&(a=!0);if(Dv(r))for(const l of Xy(r)){const _=Xr(l);bn(_)&65536&&(xZ(_)||Me(l.valueDeclaration,p.Object_literal_s_property_0_implicitly_has_an_1_type,ni(l),Ar(gf(_))),a=!0)}}return a}function Ev(r,a,l){const _=Ar(gf(a));if(Hr(r)&&!iw(wr(r),j))return;let m;switch(r.kind){case 226:case 172:case 171:m=ae?p.Member_0_implicitly_has_an_1_type:p.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 169:const h=r;if(Ie(h.name)){const x=v1(h.name);if((ix(h.parent)||Lm(h.parent)||Mm(h.parent))&&h.parent.parameters.includes(h)&&(Go(h,h.name.escapedText,788968,void 0,h.name.escapedText,!0)||x&&CW(x))){const N="arg"+h.parent.parameters.indexOf(h),L=eo(h.name)+(h.dotDotDotToken?"[]":"");Bl(ae,r,p.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,N,L);return}}m=r.dotDotDotToken?ae?p.Rest_parameter_0_implicitly_has_an_any_type:p.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:ae?p.Parameter_0_implicitly_has_an_1_type:p.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 208:if(m=p.Binding_element_0_implicitly_has_an_1_type,!ae)return;break;case 324:Me(r,p.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,_);return;case 330:ae&&UC(r.parent)&&Me(r.parent.tagName,p.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,_);return;case 262:case 174:case 173:case 177:case 178:case 218:case 219:if(ae&&!r.name){l===3?Me(r,p.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation,_):Me(r,p.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,_);return}m=ae?l===3?p._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:p._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:p._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 200:ae&&Me(r,p.Mapped_object_type_implicitly_has_an_any_template_type);return;default:m=ae?p.Variable_0_implicitly_has_an_1_type:p.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}Bl(ae,r,m,eo(us(r)),_)}function kZ(r,a,l){n(()=>{ae&&bn(a)&65536&&(!l||!Oge(r))&&(xZ(a)||Ev(r,a,l))})}function Kme(r,a,l){const _=hf(r),m=hf(a),h=FI(r),x=FI(a),N=x?m-1:m,L=h?N:Math.min(_,N),z=Sv(r);if(z){const Z=Sv(a);Z&&l(z,Z)}for(let Z=0;Za.typeParameter),nr(r.inferences,(a,l)=>()=>(a.isFixed||(dit(r),CZ(r.inferences),a.isFixed=!0),uge(r,l))))}function pit(r){return Ime(nr(r.inferences,a=>a.typeParameter),nr(r.inferences,(a,l)=>()=>uge(r,l)))}function CZ(r){for(const a of r)a.isFixed||(a.inferredType=void 0)}function rge(r,a,l){(r.intraExpressionInferenceSites??(r.intraExpressionInferenceSites=[])).push({node:a,type:l})}function dit(r){if(r.intraExpressionInferenceSites){for(const{node:a,type:l}of r.intraExpressionInferenceSites){const _=a.kind===174?fNe(a,2):y_(a,2);_&&Mh(r.inferences,l,_)}r.intraExpressionInferenceSites=void 0}}function nge(r){return{typeParameter:r,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function yAe(r){return{typeParameter:r.typeParameter,candidates:r.candidates&&r.candidates.slice(),contraCandidates:r.contraCandidates&&r.contraCandidates.slice(),inferredType:r.inferredType,priority:r.priority,topLevel:r.topLevel,isFixed:r.isFixed,impliedArity:r.impliedArity}}function mit(r){const a=An(r.inferences,A4);return a.length?tge(nr(a,yAe),r.signature,r.flags,r.compareTypes):void 0}function ige(r){return r&&r.mapper}function Pv(r){const a=bn(r);if(a&524288)return!!(a&1048576);const l=!!(r.flags&465829888||r.flags&524288&&!vAe(r)&&(a&4&&(r.node||ct(So(r),Pv))||a&16&&r.symbol&&r.symbol.flags&14384&&r.symbol.declarations||a&12583968)||r.flags&3145728&&!(r.flags&1024)&&!vAe(r)&&ct(r.types,Pv));return r.flags&3899393&&(r.objectFlags|=524288|(l?1048576:0)),l}function vAe(r){if(r.aliasSymbol&&!r.aliasTypeArguments){const a=Jo(r.aliasSymbol,265);return!!(a&&Pr(a.parent,l=>l.kind===312?!0:l.kind===267?!1:"quit"))}return!1}function PI(r,a,l=0){return!!(r===a||r.flags&3145728&&ct(r.types,_=>PI(_,a,l))||l<3&&r.flags&16777216&&(PI(Tv(r),a,l+1)||PI(xv(r),a,l+1)))}function git(r,a){const l=ap(r);return l?!!l.type&&PI(l.type,a):PI(Ja(r),a)}function hit(r){const a=Bs();aT(r,_=>{if(!(_.flags&128))return;const m=Vo(_.value),h=xa(4,m);h.links.type=B,_.symbol&&(h.declarations=_.symbol.declarations,h.valueDeclaration=_.symbol.valueDeclaration),a.set(m,h)});const l=r.flags&4?[ng(Ce,oa,!1)]:Ve;return ao(void 0,a,Ve,Ve,l)}function bAe(r,a,l){const _=r.id+","+a.id+","+l.id;if(hl.has(_))return hl.get(_);const m=r.id+","+(a.target||a).id;if(bs(E_,m))return;E_.push(m);const h=yit(r,a,l);return E_.pop(),hl.set(_,h),h}function sge(r){return!(bn(r)&262144)||Dv(r)&&ct(Ua(r),a=>sge(Xr(a)))||da(r)&&ct(Q2(r),sge)}function yit(r,a,l){if(!(zg(r,Ce)||Ua(r).length!==0&&sge(r)))return;if(lp(r))return pu(EZ(So(r)[0],a,l),VP(r));if(da(r)){const m=nr(Q2(r),x=>EZ(x,a,l)),h=tg(a)&4?nl(r.target.elementFlags,x=>x&2?1:x):r.target.elementFlags;return ig(m,h,r.target.readonly,r.target.labeledElementDeclarations)}const _=rp(1040,void 0);return _.source=r,_.mappedType=a,_.constraintType=l,_}function vit(r){const a=wi(r);return a.type||(a.type=EZ(r.links.propertyType,r.links.mappedType,r.links.constraintType)),a.type}function EZ(r,a,l){const _=K_(l.type,Ad(a)),m=Dh(a),h=nge(_);return Mh([h],r,m),SAe(h)||Kt}function*age(r,a,l,_){const m=Ua(a);for(const h of m)if(!u8e(h)&&(l||!(h.flags&16777216||Ko(h)&48))){const x=$s(r,h.escapedName);if(!x)yield h;else if(_){const N=Xr(h);if(N.flags&109472){const L=Xr(x);L.flags&1||Uu(L)===Uu(N)||(yield h)}}}}function oge(r,a,l,_){return YI(age(r,a,l,_))}function bit(r,a){return!(a.target.combinedFlags&8)&&a.target.minLength>r.target.minLength||!a.target.hasRestElement&&(r.target.hasRestElement||a.target.fixedLengthgk(h,m),r)===r&&PZ(r,a)}return!1}function kAe(r,a){if(a.flags&2097152)return Wi(a.types,l=>l===Fc||kAe(r,l));if(a.flags&4||Qs(r,a))return!0;if(r.flags&128){const l=r.value;return!!(a.flags&8&&xAe(l,!1)||a.flags&64&&SF(l,!1)||a.flags&98816&&l===a.intrinsicName||a.flags&268435456&&PZ(h_(l),a)||a.flags&134217728&&DZ(r,a))}if(r.flags&134217728){const l=r.texts;return l.length===2&&l[0]===""&&l[1]===""&&Qs(r.types[0],a)}return!1}function CAe(r,a){return r.flags&128?EAe([r.value],Ve,a):r.flags&134217728?mD(r.texts,a.texts)?nr(r.types,kit):EAe(r.texts,r.types,a):void 0}function DZ(r,a){const l=CAe(r,a);return!!l&&Wi(l,(_,m)=>kAe(_,a.types[m]))}function kit(r){return r.flags&402653317?r:QS(["",""],[r])}function EAe(r,a,l){const _=r.length-1,m=r[0],h=r[_],x=l.texts,N=x.length-1,L=x[0],z=x[N];if(_===0&&m.length0){let Ur=_e,Tr=Re;for(;Tr=st(Ur).indexOf($t,Tr),!(Tr>=0);){if(Ur++,Ur===r.length)return;Tr=0}gt(Ur,Tr),Re+=$t.length}else if(Re!bs(sn,La)):Sr,cs?An(jr,La=>!bs(cs,La)):jr]}function Ur(Sr,jr,Bi){const sn=Sr.length!!Cr(cs));if(!sn||jr&&sn!==jr)return;jr=sn}return jr}function Br(Sr,jr,Bi){let sn=0;if(Bi&1048576){let cs;const La=Sr.flags&1048576?Sr.types:[Sr],Xa=new Array(La.length);let du=!1;for(const ma of jr)if(Cr(ma))cs=ma,sn++;else for(let i_=0;i_Xa[uc]?void 0:i_);if(ma.length){_e(Bn(ma),cs);return}}}else for(const cs of jr)Cr(cs)?sn++:_e(Sr,cs);if(Bi&2097152?sn===1:sn>0)for(const cs of jr)Cr(cs)&&Re(Sr,cs,1)}function Ir(Sr,jr,Bi){if(Bi.flags&1048576||Bi.flags&2097152){let sn=!1;for(const cs of Bi.types)sn=Ir(Sr,jr,cs)||sn;return sn}if(Bi.flags&4194304){const sn=Cr(Bi.type);if(sn&&!sn.isFixed&&!TAe(Sr)){const cs=bAe(Sr,jr,Bi);cs&&Re(cs,sn.typeParameter,bn(Sr)&262144?16:8)}return!0}if(Bi.flags&262144){Re(pm(Sr,Sr.pattern?2:0),Bi,32);const sn=HS(Bi);if(sn&&Ir(Sr,jr,sn))return!0;const cs=nr(Ua(Sr),Xr),La=nr(Wu(Sr),Xa=>Xa!==En?Xa.type:Cn);return _e(Bn(es(cs,La)),Dh(jr)),!0}return!1}function Jr(Sr,jr){if(Sr.flags&16777216)_e(Sr.checkType,jr.checkType),_e(Sr.extendsType,jr.extendsType),_e(Tv(Sr),Tv(jr)),_e(xv(Sr),xv(jr));else{const Bi=[Tv(jr),xv(jr)];gt(Sr,Bi,jr.flags,m?64:0)}}function ss(Sr,jr){const Bi=CAe(Sr,jr),sn=jr.types;if(Bi||Wi(jr.texts,cs=>cs.length===0))for(let cs=0;cs$o|Ze.flags,0);if(!(uc&4)){const $o=La.value;uc&296&&!xAe($o,!0)&&(uc&=-297),uc&2112&&!SF($o,!0)&&(uc&=-2113);const Ze=Du(i_,(ye,vr)=>vr.flags&uc?ye.flags&4?ye:vr.flags&4?La:ye.flags&134217728?ye:vr.flags&134217728&&DZ(La,vr)?La:ye.flags&268435456?ye:vr.flags&268435456&&$o===Twe(vr.symbol,$o)?La:ye.flags&128?ye:vr.flags&128&&vr.value===$o?vr:ye.flags&8?ye:vr.flags&8?Fd(+$o):ye.flags&32?ye:vr.flags&32?Fd(+$o):ye.flags&256?ye:vr.flags&256&&vr.value===+$o?vr:ye.flags&64?ye:vr.flags&64?xit($o):ye.flags&2048?ye:vr.flags&2048&&e2(vr.value)===$o?vr:ye.flags&16?ye:vr.flags&16?$o==="true"?Er:$o==="false"?Jt:fi:ye.flags&512?ye:vr.flags&512&&vr.intrinsicName===$o?vr:ye.flags&32768?ye:vr.flags&32768&&vr.intrinsicName===$o?vr:ye.flags&65536?ye:vr.flags&65536&&vr.intrinsicName===$o?vr:ye:ye,Cn);if(!(Ze.flags&131072)){_e(Ze,Xa);continue}}}}_e(La,Xa)}}function Ki(Sr,jr){_e(Bf(Sr),Bf(jr)),_e(Dh(Sr),Dh(jr));const Bi=E0(Sr),sn=E0(jr);Bi&&sn&&_e(Bi,sn)}function hs(Sr,jr){var Bi,sn;if(bn(Sr)&4&&bn(jr)&4&&(Sr.target===jr.target||lp(Sr)&&lp(jr))){Ur(So(Sr),So(jr),Ume(Sr.target));return}if(g_(Sr)&&g_(jr)&&Ki(Sr,jr),bn(jr)&32&&!jr.declaration.nameType){const cs=Bf(jr);if(Ir(Sr,jr,cs))return}if(!Sit(Sr,jr)){if(Cv(Sr)){if(da(jr)){const cs=D0(Sr),La=D0(jr),Xa=So(jr),du=jr.target.elementFlags;if(da(Sr)&&tit(Sr,jr)){for(let uc=0;uc0){const La=Es(jr,Bi),Xa=La.length;for(let du=0;du1){const a=An(r,lge);if(a.length){const l=Bn(a,2);return es(An(r,_=>!lge(_)),[l])}}return r}function wit(r){return r.priority&416?Xs(r.contraCandidates):$nt(r.contraCandidates)}function Ait(r,a){const l=Dit(r.candidates),_=Pit(r.typeParameter)||GS(r.typeParameter),m=!_&&r.topLevel&&(r.isFixed||!git(a,r.typeParameter)),h=_?nl(l,Uu):m?nl(l,tb):l,x=r.priority&416?Bn(h,2):Gnt(h);return gf(x)}function uge(r,a){const l=r.inferences[a];if(!l.inferredType){let _,m;if(r.signature){const x=l.candidates?Ait(l,r.signature):void 0,N=l.contraCandidates?wit(l):void 0;if(x||N){const L=x&&(!N||!(x.flags&131072)&&ct(l.contraCandidates,z=>t1(x,z))&&Wi(r.inferences,z=>z!==l&&r_(z.typeParameter)!==l.typeParameter||Wi(z.candidates,Z=>t1(Z,x))));_=L?x:N,m=L?N:x}else if(r.flags&1)_=Qi;else{const L=$S(l.typeParameter);L&&(_=zi(L,ont(ant(r,a),r.nonFixingMapper)))}}else _=SAe(l);l.inferredType=_||_ge(!!(r.flags&2));const h=r_(l.typeParameter);if(h){const x=zi(h,r.nonFixingMapper);(!_||!r.compareTypes(_,mf(x,_)))&&(l.inferredType=m&&r.compareTypes(m,mf(x,m))?m:x)}}return l.inferredType}function _ge(r){return r?B:Kt}function fge(r){const a=[];for(let l=0;lBu(a)||qp(a)||z_(a)))}function wZ(r,a,l,_){switch(r.kind){case 80:if(!BT(r)){const x=sd(r);return x!==tt?`${_?Oa(_):"-1"}|${Vu(a)}|${Vu(l)}|${Ks(x)}`:void 0}case 110:return`0|${_?Oa(_):"-1"}|${Vu(a)}|${Vu(l)}`;case 235:case 217:return wZ(r.expression,a,l,_);case 166:const m=wZ(r.left,a,l,_);return m&&m+"."+r.right.escapedText;case 211:case 212:const h=nT(r);if(h!==void 0){const x=wZ(r.expression,a,l,_);return x&&x+"."+h}break;case 206:case 207:case 262:case 218:case 219:case 174:return`${Oa(r)}#${Vu(a)}`}}function Xl(r,a){switch(a.kind){case 217:case 235:return Xl(r,a.expression);case 226:return il(a)&&Xl(r,a.left)||Zr(a)&&a.operatorToken.kind===28&&Xl(r,a.right)}switch(r.kind){case 236:return a.kind===236&&r.keywordToken===a.keywordToken&&r.name.escapedText===a.name.escapedText;case 80:case 81:return BT(r)?a.kind===110:a.kind===80&&sd(r)===sd(a)||(hi(a)||Ea(a))&&Mf(sd(r))===un(a);case 110:return a.kind===110;case 108:return a.kind===108;case 235:case 217:return Xl(r.expression,a);case 211:case 212:const l=nT(r),_=co(a)?nT(a):void 0;return l!==void 0&&_!==void 0&&_===l&&Xl(r.expression,a.expression);case 166:return co(a)&&r.right.escapedText===nT(a)&&Xl(r.left,a.expression);case 226:return Zr(r)&&r.operatorToken.kind===28&&Xl(r.right,a)}return!1}function nT(r){if(Sn(r))return r.name.escapedText;if(Co(r))return Nit(r);if(Ea(r)){const a=Da(r);return a?Vo(a):void 0}if(rs(r))return""+r.parent.parameters.indexOf(r)}function dge(r){return r.flags&8192?r.escapedName:r.flags&384?Vo(""+r.value):void 0}function Nit(r){return Sf(r.argumentExpression)?Vo(r.argumentExpression.text):pc(r.argumentExpression)?Iit(r.argumentExpression):void 0}function Iit(r){const a=vo(r,111551,!0);if(!a||!(QP(a)||a.flags&8))return;const l=a.valueDeclaration;if(l===void 0)return;const _=Mi(l);if(_){const m=dge(_);if(m!==void 0)return m}if(Tb(l)&&yh(l,r)){const m=x8(l);if(m){const h=Ns(l.parent)?fm(l):Yl(m);return h&&dge(h)}if(p2(l))return Kk(l.name)}}function DAe(r,a){for(;co(r);)if(r=r.expression,Xl(r,a))return!0;return!1}function iT(r,a){for(;hu(r);)if(r=r.expression,Xl(r,a))return!0;return!1}function HP(r,a){if(r&&r.flags&1048576){const l=w8e(r,a);if(l&&Ko(l)&2)return l.links.isDiscriminantProperty===void 0&&(l.links.isDiscriminantProperty=(l.links.checkFlags&192)===192&&!S4(Xr(l))),!!l.links.isDiscriminantProperty}return!1}function wAe(r,a){let l;for(const _ of r)if(HP(a,_.escapedName)){if(l){l.push(_);continue}l=[_]}return l}function Fit(r,a){const l=new Map;let _=0;for(const m of r)if(m.flags&61603840){const h=je(m,a);if(h){if(!TI(h))return;let x=!1;aT(h,N=>{const L=Vu(Uu(N)),z=l.get(L);z?z!==Kt&&(l.set(L,Kt),x=!0):l.set(L,m)}),x||_++}}return _>=10&&_*2>=r.length?l:void 0}function oj(r){const a=r.types;if(!(a.length<10||bn(r)&32768||R0(a,l=>!!(l.flags&59506688))<10)){if(r.keyPropertyName===void 0){const l=rr(a,m=>m.flags&59506688?rr(Ua(m),h=>Od(Xr(h))?h.escapedName:void 0):void 0),_=l&&Fit(a,l);r.keyPropertyName=_?l:"",r.constituentMap=_}return r.keyPropertyName.length?r.keyPropertyName:void 0}}function cj(r,a){var l;const _=(l=r.constituentMap)==null?void 0:l.get(Vu(Uu(a)));return _!==Kt?_:void 0}function AAe(r,a){const l=oj(r),_=l&&je(a,l);return _&&cj(r,_)}function Oit(r,a){const l=oj(r),_=l&&wn(a.properties,h=>h.symbol&&h.kind===303&&h.symbol.escapedName===l&&gj(h.initializer)),m=_&&jj(_.initializer);return m&&cj(r,m)}function NAe(r,a){return Xl(r,a)||DAe(r,a)}function IAe(r,a){if(r.arguments){for(const l of r.arguments)if(NAe(a,l)||iT(l,a))return!0}return!!(r.expression.kind===211&&NAe(a,r.expression.expression))}function mge(r){return(!r.id||r.id<0)&&(r.id=Ose,Ose++),r.id}function Lit(r,a){if(!(r.flags&1048576))return Qs(r,a);for(const l of r.types)if(Qs(l,a))return!0;return!1}function Mit(r,a){if(r===a)return r;if(a.flags&131072)return a;const l=`A${Vu(r)},${Vu(a)}`;return Yx(l)??Py(l,Rit(r,a))}function Rit(r,a){const l=Mc(r,m=>Lit(a,m)),_=a.flags&512&&Z2(a)?Bo(l,yk):l;return Qs(a,_)?_:r}function gge(r){const a=Nd(r);return!!(a.callSignatures.length||a.constructSignatures.length||a.members.get("bind")&&t1(r,kt))}function GP(r,a){return hge(r,a)&a}function Ip(r,a){return GP(r,a)!==0}function hge(r,a){r.flags&467927040&&(r=fu(r)||Kt);const l=r.flags;if(l&268435460)return q?16317953:16776705;if(l&134217856){const _=l&128&&r.value==="";return q?_?12123649:7929345:_?12582401:16776705}if(l&40)return q?16317698:16776450;if(l&256){const _=r.value===0;return q?_?12123394:7929090:_?12582146:16776450}if(l&64)return q?16317188:16775940;if(l&2048){const _=pAe(r);return q?_?12122884:7928580:_?12581636:16775940}return l&16?q?16316168:16774920:l&528?q?r===Jt||r===ar?12121864:7927560:r===Jt||r===ar?12580616:16774920:l&524288?a&(q?83427327:83886079)?bn(r)&16&&Fh(r)?q?83427327:83886079:gge(r)?q?7880640:16728e3:q?7888800:16736160:0:l&16384?9830144:l&32768?26607360:l&65536?42917664:l&12288?q?7925520:16772880:l&67108864?q?7888800:16736160:l&131072?0:l&1048576?Du(r.types,(_,m)=>_|hge(m,a),0):l&2097152?jit(r,a):83886079}function jit(r,a){const l=nc(r,402784252);let _=0,m=134217727;for(const h of r.types)if(!(l&&h.flags&524288)){const x=hge(h,a);_|=x,m&=x}return _&8256|m&134209471}function Fp(r,a){return Mc(r,l=>Ip(l,a))}function sT(r,a){const l=FAe(Fp(q&&r.flags&2?Ro:r,a));if(q)switch(a){case 524288:return Bo(l,_=>Ip(_,65536)?Xs([_,Ip(_,131072)&&!nc(l,65536)?Bn([oa,ce]):oa]):_);case 1048576:return Bo(l,_=>Ip(_,131072)?Xs([_,Ip(_,65536)&&!nc(l,32768)?Bn([oa,Pe]):oa]):_);case 2097152:case 4194304:return Bo(l,_=>Ip(_,262144)?iit(_):_)}return l}function FAe(r){return r===Ro?Kt:r}function yge(r,a){return a?Bn([Zn(r),Yl(a)]):r}function OAe(r,a){var l;const _=w0(a);if(!bp(_))return nt;const m=Sp(_);return je(r,m)||DI((l=dk(r,m))==null?void 0:l.type)||nt}function LAe(r,a){return N_(r,UP)&&Xnt(r,a)||DI(F0(65,r,Pe,void 0))||nt}function DI(r){return r&&(j.noUncheckedIndexedAccess?Bn([r,A]):r)}function MAe(r){return pu(F0(65,r,Pe,void 0)||nt)}function Bit(r){return r.parent.kind===209&&vge(r.parent)||r.parent.kind===303&&vge(r.parent.parent)?yge(lj(r),r.right):Yl(r.right)}function vge(r){return r.parent.kind===226&&r.parent.left===r||r.parent.kind===250&&r.parent.initializer===r}function Jit(r,a){return LAe(lj(r),r.elements.indexOf(a))}function zit(r){return MAe(lj(r.parent))}function RAe(r){return OAe(lj(r.parent),r.name)}function Wit(r){return yge(RAe(r),r.objectAssignmentInitializer)}function lj(r){const{parent:a}=r;switch(a.kind){case 249:return Ce;case 250:return Uj(a)||nt;case 226:return Bit(a);case 220:return Pe;case 209:return Jit(a,r);case 230:return zit(a);case 303:return RAe(a);case 304:return Wit(a)}return nt}function Vit(r){const a=r.parent,l=BAe(a.parent),_=a.kind===206?OAe(l,r.propertyName||r.name):r.dotDotDotToken?MAe(l):LAe(l,a.elements.indexOf(r));return yge(_,r.initializer)}function jAe(r){return jn(r).resolvedType||Yl(r)}function Uit(r){return r.initializer?jAe(r.initializer):r.parent.parent.kind===249?Ce:r.parent.parent.kind===250&&Uj(r.parent.parent)||nt}function BAe(r){return r.kind===260?Uit(r):Vit(r)}function qit(r){return r.kind===260&&r.initializer&&Wy(r.initializer)||r.kind!==208&&r.parent.kind===226&&Wy(r.parent.right)}function rb(r){switch(r.kind){case 217:return rb(r.expression);case 226:switch(r.operatorToken.kind){case 64:case 76:case 77:case 78:return rb(r.left);case 28:return rb(r.right)}}return r}function JAe(r){const{parent:a}=r;return a.kind===217||a.kind===226&&a.operatorToken.kind===64&&a.left===r||a.kind===226&&a.operatorToken.kind===28&&a.right===r?JAe(a):r}function Hit(r){return r.kind===296?Uu(Yl(r.expression)):Cn}function AZ(r){const a=jn(r);if(!a.switchTypes){a.switchTypes=[];for(const l of r.caseBlock.clauses)a.switchTypes.push(Hit(l))}return a.switchTypes}function zAe(r){if(ct(r.caseBlock.clauses,l=>l.kind===296&&!Ma(l.expression)))return;const a=[];for(const l of r.caseBlock.clauses){const _=l.kind===296?l.expression.text:void 0;a.push(_&&!bs(a,_)?_:void 0)}return a}function Git(r,a){return r.flags&1048576?!rr(r.types,l=>!bs(a,l)):bs(a,r)}function $P(r,a){return!!(r===a||r.flags&131072||a.flags&1048576&&$it(r,a))}function $it(r,a){if(r.flags&1048576){for(const l of r.types)if(!Ah(a.types,l))return!1;return!0}return r.flags&1056&&RY(r)===a?!0:Ah(a.types,r)}function aT(r,a){return r.flags&1048576?rr(r.types,a):a(r)}function ad(r,a){return r.flags&1048576?ct(r.types,a):a(r)}function N_(r,a){return r.flags&1048576?Wi(r.types,a):a(r)}function Xit(r,a){return r.flags&3145728?Wi(r.types,a):a(r)}function Mc(r,a){if(r.flags&1048576){const l=r.types,_=An(l,a);if(_===l)return r;const m=r.origin;let h;if(m&&m.flags&1048576){const x=m.types,N=An(x,L=>!!(L.flags&1048576)||a(L));if(x.length-N.length===l.length-_.length){if(N.length===1)return N[0];h=vme(1048576,N)}}return Sme(_,r.objectFlags&16809984,void 0,void 0,h)}return r.flags&131072||a(r)?r:Cn}function NZ(r,a){return Mc(r,l=>l!==a)}function Qit(r){return r.flags&1048576?r.types.length:1}function Bo(r,a,l){if(r.flags&131072)return r;if(!(r.flags&1048576))return a(r);const _=r.origin,m=_&&_.flags&1048576?_.types:r.types;let h,x=!1;for(const N of m){const L=N.flags&1048576?Bo(N,a,l):a(N);x||(x=N!==L),L&&(h?h.push(L):h=[L])}return x?h&&Bn(h,l?0:1):r}function WAe(r,a,l,_){return r.flags&1048576&&l?Bn(nr(r.types,a),1,l,_):Bo(r,a)}function XP(r,a){return Mc(r,l=>(l.flags&a)!==0)}function VAe(r,a){return nc(r,134217804)&&nc(a,402655616)?Bo(r,l=>l.flags&4?XP(a,402653316):YS(l)&&!nc(a,402653188)?XP(a,128):l.flags&8?XP(a,264):l.flags&64?XP(a,2112):l):r}function k4(r){return r.flags===0}function oT(r){return r.flags===0?r.type:r}function C4(r,a){return a?{flags:0,type:r.flags&131072?Qi:r}:r}function Yit(r){const a=rp(256);return a.elementType=r,a}function bge(r){return br[r.id]||(br[r.id]=Yit(r))}function UAe(r,a){const l=CI(Oh(jj(a)));return $P(l,r.elementType)?r:bge(Bn([r.elementType,l]))}function Zit(r){return r.flags&131072?yl:pu(r.flags&1048576?Bn(r.types,2):r)}function Kit(r){return r.finalArrayType||(r.finalArrayType=Zit(r.elementType))}function uj(r){return bn(r)&256?Kit(r):r}function est(r){return bn(r)&256?r.elementType:Cn}function tst(r){let a=!1;for(const l of r)if(!(l.flags&131072)){if(!(bn(l)&256))return!1;a=!0}return a}function qAe(r){const a=JAe(r),l=a.parent,_=Sn(l)&&(l.name.escapedText==="length"||l.parent.kind===213&&Ie(l.name)&&Kz(l.name)),m=l.kind===212&&l.expression===a&&l.parent.kind===226&&l.parent.operatorToken.kind===64&&l.parent.left===l&&!vg(l.parent)&&Ql(Yl(l.argumentExpression),296);return _||m}function rst(r){return(hi(r)||xs(r)||B_(r)||rs(r))&&!!(Vl(r)||Hr(r)&&Y0(r)&&r.initializer&&t2(r.initializer)&&vp(r.initializer))}function IZ(r,a){if(r=mc(r),r.flags&8752)return Xr(r);if(r.flags&7){if(Ko(r)&262144){const _=r.links.syntheticOrigin;if(_&&IZ(_))return Xr(r)}const l=r.valueDeclaration;if(l){if(rst(l))return Xr(r);if(hi(l)&&l.parent.parent.kind===250){const _=l.parent.parent,m=_j(_.expression,void 0);if(m){const h=_.awaitModifier?15:13;return F0(h,m,Pe,void 0)}}a&&la(a,yn(l,p._0_needs_an_explicit_type_annotation,ni(r)))}}}function _j(r,a){if(!(r.flags&67108864))switch(r.kind){case 80:const l=Mf(sd(r));return IZ(l,a);case 110:return xst(r);case 108:return Pge(r);case 211:{const _=_j(r.expression,a);if(_){const m=r.name;let h;if(Pi(m)){if(!_.symbol)return;h=$s(_,z8(_.symbol,m.escapedText))}else h=$s(_,m.escapedText);return h&&IZ(h,a)}return}case 217:return _j(r.expression,a)}}function fj(r){const a=jn(r);let l=a.effectsSignature;if(l===void 0){let _;if(Zr(r)){const x=E4(r.right);_=yhe(x)}else r.parent.kind===244?_=_j(r.expression,void 0):r.expression.kind!==108&&(hu(r)?_=mm(xI(Hi(r.expression),r.expression),r.expression):_=E4(r.expression));const m=Es(_&&n_(_)||Kt,0),h=m.length===1&&!m[0].typeParameters?m[0]:ct(m,HAe)?D4(r):void 0;l=a.effectsSignature=h&&HAe(h)?h:Xt}return l===Xt?void 0:l}function HAe(r){return!!(ap(r)||r.declaration&&(g4(r.declaration)||Kt).flags&131072)}function nst(r,a){if(r.kind===1||r.kind===3)return a.arguments[r.parameterIndex];const l=Va(a.expression);return co(l)?Va(l.expression):void 0}function ist(r){const a=Pr(r,tz),l=wr(r),_=Im(l,a.statements.pos);wa.add(xl(l,_.start,_.length,p.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function pj(r){const a=FZ(r,!1);return bt=r,Nt=a,a}function dj(r){const a=Va(r,!0);return a.kind===97||a.kind===226&&(a.operatorToken.kind===56&&(dj(a.left)||dj(a.right))||a.operatorToken.kind===57&&dj(a.left)&&dj(a.right))}function FZ(r,a){for(;;){if(r===bt)return Nt;const l=r.flags;if(l&4096){if(!a){const _=mge(r),m=yS[_];return m!==void 0?m:yS[_]=FZ(r,!0)}a=!1}if(l&368)r=r.antecedent;else if(l&512){const _=fj(r.node);if(_){const m=ap(_);if(m&&m.kind===3&&!m.type){const h=r.node.arguments[m.parameterIndex];if(h&&dj(h))return!1}if(Ja(_).flags&131072)return!1}r=r.antecedent}else{if(l&4)return ct(r.antecedents,_=>FZ(_,!1));if(l&8){const _=r.antecedents;if(_===void 0||_.length===0)return!1;r=_[0]}else if(l&128){if(r.clauseStart===r.clauseEnd&&PIe(r.switchStatement))return!1;r=r.antecedent}else if(l&1024){bt=void 0;const _=r.target,m=_.antecedents;_.antecedents=r.antecedents;const h=FZ(r.antecedent,!1);return _.antecedents=m,h}else return!(l&1)}}}function OZ(r,a){for(;;){const l=r.flags;if(l&4096){if(!a){const _=mge(r),m=Qx[_];return m!==void 0?m:Qx[_]=OZ(r,!0)}a=!1}if(l&496)r=r.antecedent;else if(l&512){if(r.node.expression.kind===108)return!0;r=r.antecedent}else{if(l&4)return Wi(r.antecedents,_=>OZ(_,!1));if(l&8)r=r.antecedents[0];else if(l&1024){const _=r.target,m=_.antecedents;_.antecedents=r.antecedents;const h=OZ(r.antecedent,!1);return _.antecedents=m,h}else return!!(l&1)}}}function GAe(r){switch(r.kind){case 110:return!0;case 80:if(!BT(r)){const l=sd(r);return QP(l)||MZ(l)&&!$Ae(l)}break;case 211:case 212:return GAe(r.expression)&&Md(jn(r).resolvedSymbol||tt);case 206:case 207:const a=qd(r.parent);return rs(a)||yne(a)?!Sge(a):hi(a)&&Qj(a)}return!1}function a1(r,a,l=a,_,m=(h=>(h=Wn(r,F8))==null?void 0:h.flowNode)()){let h,x=!1,N=0;if(Ae)return nt;if(!m)return a;We++;const L=dh,z=oT(_e(m));dh=L;const Z=bn(z)&256&&qAe(r)?yl:uj(z);if(Z===ci||r.parent&&r.parent.kind===235&&!(Z.flags&131072)&&Fp(Z,2097152).flags&131072)return a;return Z===W?Kt:Z;function de(){return x?h:(x=!0,h=wZ(r,a,l,_))}function _e(Qe){var xt;if(N===2e3)return(xt=qr)==null||xt.instant(qr.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:Qe.id}),Ae=!0,ist(r),nt;N++;let Qt;for(;;){const It=Qe.flags;if(It&4096){for(let xr=L;xr=0&&Qt.parameterIndex!(xr.flags&163840)):xt.kind===221&&iT(xt.expression,r)&&(It=La(It,Qe.switchStatement,Qe.clauseStart,Qe.clauseEnd,xr=>!(xr.flags&131072||xr.flags&128&&xr.value==="undefined"))));const Zt=Ir(xt,It);Zt&&(It=Ki(It,Zt,Qe.switchStatement,Qe.clauseStart,Qe.clauseEnd))}return C4(It,k4(Qt))}function Gt(Qe){const xt=[];let Qt=!1,It=!1,Zt;for(const xr of Qe.antecedents){if(!Zt&&xr.flags&128&&xr.clauseStart===xr.clauseEnd){Zt=xr;continue}const mi=_e(xr),xn=oT(mi);if(xn===a&&a===l)return xn;Jf(xt,xn),$P(xn,l)||(Qt=!0),k4(mi)&&(It=!0)}if(Zt){const xr=_e(Zt),mi=oT(xr);if(!(mi.flags&131072)&&!bs(xt,mi)&&!PIe(Zt.switchStatement)){if(mi===a&&a===l)return mi;xt.push(mi),$P(mi,l)||(Qt=!0),k4(xr)&&(It=!0)}}return C4(kr(xt,Qt?2:1),It)}function Cr(Qe){const xt=mge(Qe),Qt=qx[xt]||(qx[xt]=new Map),It=de();if(!It)return a;const Zt=Qt.get(It);if(Zt)return Zt;for(let dr=am;dr{const dr=dt(ys,It)||Kt;return!(dr.flags&131072)&&!(xn.flags&131072)&&ZR(xn,dr)})}function ss(Qe,xt,Qt,It,Zt){if((Qt===37||Qt===38)&&Qe.flags&1048576){const xr=oj(Qe);if(xr&&xr===nT(xt)){const mi=cj(Qe,Yl(It));if(mi)return Qt===(Zt?37:38)?mi:Od(je(mi,xr)||Kt)?NZ(Qe,mi):Qe}}return Jr(Qe,xt,xr=>Bi(xr,Qt,It,Zt))}function Ki(Qe,xt,Qt,It,Zt){if(Itcj(Qe,xn)||Kt));if(mi!==Kt)return mi}return Jr(Qe,xt,xr=>Xa(xr,Qt,It,Zt))}function hs(Qe,xt,Qt){if(Xl(r,xt))return sT(Qe,Qt?4194304:8388608);q&&Qt&&iT(xt,r)&&(Qe=sT(Qe,2097152));const It=Ir(xt,Qe);return It?Jr(Qe,It,Zt=>Fp(Zt,Qt?4194304:8388608)):Qe}function Gi(Qe,xt,Qt){const It=$s(Qe,xt);return It?!!(It.flags&16777216||Ko(It)&48)||Qt:!!dk(Qe,xt)||!Qt}function tl(Qe,xt,Qt){const It=Sp(xt);if(ad(Qe,xr=>Gi(xr,It,!0)))return Mc(Qe,xr=>Gi(xr,It,Qt));if(Qt){const xr=lrt();if(xr)return Xs([Qe,y4(xr,[xt,Kt])])}return Qe}function up(Qe,xt,Qt,It,Zt){return Zt=Zt!==(Qt.kind===112)!=(It!==38&&It!==36),Pn(Qe,xt,Zt)}function I_(Qe,xt,Qt){switch(xt.operatorToken.kind){case 64:case 76:case 77:case 78:return hs(Pn(Qe,xt.right,Qt),xt.left,Qt);case 35:case 36:case 37:case 38:const It=xt.operatorToken.kind,Zt=rb(xt.left),xr=rb(xt.right);if(Zt.kind===221&&Ma(xr))return sn(Qe,Zt,It,xr,Qt);if(xr.kind===221&&Ma(Zt))return sn(Qe,xr,It,Zt,Qt);if(Xl(r,Zt))return Bi(Qe,It,xr,Qt);if(Xl(r,xr))return Bi(Qe,It,Zt,Qt);q&&(iT(Zt,r)?Qe=jr(Qe,It,xr,Qt):iT(xr,r)&&(Qe=jr(Qe,It,Zt,Qt)));const mi=Ir(Zt,Qe);if(mi)return ss(Qe,mi,It,xr,Qt);const xn=Ir(xr,Qe);if(xn)return ss(Qe,xn,It,Zt,Qt);if($o(Zt))return Ze(Qe,It,xr,Qt);if($o(xr))return Ze(Qe,It,Zt,Qt);if(lE(xr)&&!co(Zt))return up(Qe,Zt,xr,It,Qt);if(lE(Zt)&&!co(xr))return up(Qe,xr,Zt,It,Qt);break;case 104:return ye(Qe,xt,Qt);case 103:if(Pi(xt.left))return Sr(Qe,xt,Qt);const ys=rb(xt.right);if(kI(Qe)&&co(r)&&Xl(r.expression,ys)){const dr=Yl(xt.left);if(bp(dr)&&nT(r)===Sp(dr))return Fp(Qe,Qt?524288:65536)}if(Xl(r,ys)){const dr=Yl(xt.left);if(bp(dr))return tl(Qe,dr,Qt)}break;case 28:return Pn(Qe,xt.right,Qt);case 56:return Qt?Pn(Pn(Qe,xt.left,!0),xt.right,!0):Bn([Pn(Qe,xt.left,!1),Pn(Qe,xt.right,!1)]);case 57:return Qt?Bn([Pn(Qe,xt.left,!0),Pn(Qe,xt.right,!0)]):Pn(Pn(Qe,xt.left,!1),xt.right,!1)}return Qe}function Sr(Qe,xt,Qt){const It=rb(xt.right);if(!Xl(r,It))return Qe;E.assertNode(xt.left,Pi);const Zt=GZ(xt.left);if(Zt===void 0)return Qe;const xr=Zt.parent,mi=Bc(E.checkDefined(Zt.valueDeclaration,"should always have a declaration"))?Xr(xr):Po(xr);return mn(Qe,mi,Qt,!0)}function jr(Qe,xt,Qt,It){const Zt=xt===35||xt===37,xr=xt===35||xt===36?98304:32768,mi=Yl(Qt);return Zt!==It&&N_(mi,ys=>!!(ys.flags&xr))||Zt===It&&N_(mi,ys=>!(ys.flags&(3|xr)))?sT(Qe,2097152):Qe}function Bi(Qe,xt,Qt,It){if(Qe.flags&1)return Qe;(xt===36||xt===38)&&(It=!It);const Zt=Yl(Qt),xr=xt===35||xt===36;if(Zt.flags&98304){if(!q)return Qe;const mi=xr?It?262144:2097152:Zt.flags&65536?It?131072:1048576:It?65536:524288;return sT(Qe,mi)}if(It){if(!xr&&(Qe.flags&2||ad(Qe,sg))){if(Zt.flags&469893116||sg(Zt))return Zt;if(Zt.flags&524288)return In}const mi=Mc(Qe,xn=>ZR(xn,Zt)||xr&&sit(xn,Zt));return VAe(mi,Zt)}return Od(Zt)?Mc(Qe,mi=>!(lAe(mi)&&ZR(mi,Zt))):Qe}function sn(Qe,xt,Qt,It,Zt){(Qt===36||Qt===38)&&(Zt=!Zt);const xr=rb(xt.expression);if(!Xl(r,xr)){q&&iT(xr,r)&&Zt===(It.text!=="undefined")&&(Qe=sT(Qe,2097152));const mi=Ir(xr,Qe);return mi?Jr(Qe,mi,xn=>cs(xn,It,Zt)):Qe}return cs(Qe,It,Zt)}function cs(Qe,xt,Qt){return Qt?du(Qe,xt.text):sT(Qe,HU.get(xt.text)||32768)}function La(Qe,xt,Qt,It,Zt){return Qt!==It&&Wi(AZ(xt).slice(Qt,It),Zt)?Fp(Qe,2097152):Qe}function Xa(Qe,xt,Qt,It){const Zt=AZ(xt);if(!Zt.length)return Qe;const xr=Zt.slice(Qt,It),mi=Qt===It||bs(xr,Cn);if(Qe.flags&2&&!mi){let Jn;for(let Fi=0;FiZR(xn,Jn)),xn);if(!mi)return ys;const dr=Mc(Qe,Jn=>!(lAe(Jn)&&bs(Zt,Uu(Ynt(Jn)))));return ys.flags&131072?dr:Bn([ys,dr])}function du(Qe,xt){switch(xt){case"string":return ma(Qe,Ce,1);case"number":return ma(Qe,_t,2);case"bigint":return ma(Qe,Tt,4);case"boolean":return ma(Qe,fi,8);case"symbol":return ma(Qe,oi,16);case"object":return Qe.flags&1?Qe:Bn([ma(Qe,In,32),ma(Qe,ce,131072)]);case"function":return Qe.flags&1?Qe:ma(Qe,kt,64);case"undefined":return ma(Qe,Pe,65536)}return ma(Qe,In,128)}function ma(Qe,xt,Qt){return Bo(Qe,It=>dm(It,xt,ep)?Ip(It,Qt)?It:Cn:t1(xt,It)?xt:Ip(It,Qt)?Xs([It,xt]):Cn)}function i_(Qe,xt,Qt,It){const Zt=zAe(xt);if(!Zt)return Qe;const xr=vc(xt.caseBlock.clauses,ys=>ys.kind===297);if(Qt===It||xr>=Qt&&xrGP(dr,ys)===ys)}const xn=Zt.slice(Qt,It);return Bn(nr(xn,ys=>ys?du(Qe,ys):Cn))}function uc(Qe,xt,Qt,It){const Zt=vc(xt.caseBlock.clauses,xn=>xn.kind===297),xr=Qt===It||Zt>=Qt&&Ztxn.kind===296?Pn(Qe,xn.expression,!0):Cn))}function $o(Qe){return(Sn(Qe)&&on(Qe.name)==="constructor"||Co(Qe)&&Ma(Qe.argumentExpression)&&Qe.argumentExpression.text==="constructor")&&Xl(r,Qe.expression)}function Ze(Qe,xt,Qt,It){if(It?xt!==35&&xt!==37:xt!==36&&xt!==38)return Qe;const Zt=Yl(Qt);if(!$he(Zt)&&!Ia(Zt))return Qe;const xr=$s(Zt,"prototype");if(!xr)return Qe;const mi=Xr(xr),xn=ht(mi)?void 0:mi;if(!xn||xn===Te||xn===kt)return Qe;if(ht(Qe))return xn;return Mc(Qe,dr=>ys(dr,xn));function ys(dr,Jn){return dr.flags&524288&&bn(dr)&1||Jn.flags&524288&&bn(Jn)&1?dr.symbol===Jn.symbol:t1(dr,Jn)}}function ye(Qe,xt,Qt){const It=rb(xt.left);if(!Xl(r,It))return Qt&&q&&iT(It,r)?sT(Qe,2097152):Qe;const Zt=xt.right,xr=Yl(Zt);if(!kv(xr,Te))return Qe;const mi=fj(xt),xn=mi&&ap(mi);if(xn&&xn.kind===1&&xn.parameterIndex===0)return mn(Qe,xn.type,Qt,!0);if(!kv(xr,kt))return Qe;const ys=Bo(xr,vr);return ht(Qe)&&(ys===Te||ys===kt)||!Qt&&!(ys.flags&524288&&!sg(ys))?Qe:mn(Qe,ys,Qt,!0)}function vr(Qe){const xt=je(Qe,"prototype");if(xt&&!ht(xt))return xt;const Qt=Es(Qe,1);return Qt.length?Bn(nr(Qt,It=>Ja(_I(It)))):oa}function mn(Qe,xt,Qt,It){const Zt=Qe.flags&1048576?`N${Vu(Qe)},${Vu(xt)},${(Qt?1:0)|(It?2:0)}`:void 0;return Yx(Zt)??Py(Zt,Xn(Qe,xt,Qt,It))}function Xn(Qe,xt,Qt,It){if(!Qt){if(Qe===xt)return Cn;if(It)return Mc(Qe,ys=>!kv(ys,xt));const xn=mn(Qe,xt,!0,!1);return Mc(Qe,ys=>!$P(ys,xn))}if(Qe.flags&3||Qe===xt)return xt;const Zt=It?kv:t1,xr=Qe.flags&1048576?oj(Qe):void 0,mi=Bo(xt,xn=>{const ys=xr&&je(xn,xr),dr=ys&&cj(Qe,ys),Jn=Bo(dr||Qe,It?Fi=>kv(Fi,xn)?Fi:kv(xn,Fi)?xn:Cn:Fi=>YR(Fi,xn)?Fi:YR(xn,Fi)?xn:t1(Fi,xn)?Fi:t1(xn,Fi)?xn:Cn);return Jn.flags&131072?Bo(Qe,Fi=>nc(Fi,465829888)&&Zt(xn,fu(Fi)||Kt)?Xs([Fi,xn]):Cn):Jn});return mi.flags&131072?t1(xt,Qe)?xt:Qs(Qe,xt)?Qe:Qs(xt,Qe)?xt:Xs([Qe,xt]):mi}function si(Qe,xt,Qt){if(IAe(xt,r)){const It=Qt||!hb(xt)?fj(xt):void 0,Zt=It&&ap(It);if(Zt&&(Zt.kind===0||Zt.kind===1))return ai(Qe,Zt,xt,Qt)}if(kI(Qe)&&co(r)&&Sn(xt.expression)){const It=xt.expression;if(Xl(r.expression,rb(It.expression))&&Ie(It.name)&&It.name.escapedText==="hasOwnProperty"&&xt.arguments.length===1){const Zt=xt.arguments[0];if(Ma(Zt)&&nT(r)===Vo(Zt.text))return Fp(Qe,Qt?524288:65536)}}return Qe}function ai(Qe,xt,Qt,It){if(xt.type&&!(ht(Qe)&&(xt.type===Te||xt.type===kt))){const Zt=nst(xt,Qt);if(Zt){if(Xl(r,Zt))return mn(Qe,xt.type,It,!1);q&&iT(Zt,r)&&(It&&!Ip(xt.type,65536)||!It&&N_(xt.type,Tj))&&(Qe=sT(Qe,2097152));const xr=Ir(Zt,Qe);if(xr)return Jr(Qe,xr,mi=>mn(mi,xt.type,It,!1))}}return Qe}function Pn(Qe,xt,Qt){if(V7(xt)||Zr(xt.parent)&&(xt.parent.operatorToken.kind===61||xt.parent.operatorToken.kind===78)&&xt.parent.left===xt)return _n(Qe,xt,Qt);switch(xt.kind){case 80:if(!Xl(r,xt)&&w<5){const It=sd(xt);if(QP(It)){const Zt=It.valueDeclaration;if(Zt&&hi(Zt)&&!Zt.type&&Zt.initializer&&GAe(r)){w++;const xr=Pn(Qe,Zt.initializer,Qt);return w--,xr}}}case 110:case 108:case 211:case 212:return hs(Qe,xt,Qt);case 213:return si(Qe,xt,Qt);case 217:case 235:return Pn(Qe,xt.expression,Qt);case 226:return I_(Qe,xt,Qt);case 224:if(xt.operator===54)return Pn(Qe,xt.operand,!Qt);break}return Qe}function _n(Qe,xt,Qt){if(Xl(r,xt))return sT(Qe,Qt?2097152:262144);const It=Ir(xt,Qe);return It?Jr(Qe,It,Zt=>Fp(Zt,Qt?2097152:262144)):Qe}}function sst(r,a){if(r=Mf(r),(a.kind===80||a.kind===81)&&(LE(a)&&(a=a.parent),hg(a)&&(!vg(a)||WT(a)))){const l=vZ(WT(a)&&a.kind===211?qZ(a,void 0,!0):Yl(a));if(Mf(jn(a).resolvedSymbol)===r)return l}return eh(a)&&Xh(a.parent)&&id(a.parent)?wR(a.parent.symbol):hW(a)&&WT(a.parent)?G2(r):Hy(r)}function wI(r){return Pr(r.parent,a=>As(a)&&!Pb(a)||a.kind===268||a.kind===312||a.kind===172)}function $Ae(r){return!XAe(r,void 0)}function XAe(r,a){const l=Pr(r.valueDeclaration,LZ);if(!l)return!1;const _=jn(l);return _.flags&131072||(_.flags|=131072,ast(l)||YAe(l)),!r.lastAssignmentPos||a&&r.lastAssignmentPosa.kind!==232&&QAe(a.name))}function ast(r){return!!Pr(r.parent,a=>LZ(a)&&!!(jn(a).flags&131072))}function LZ(r){return po(r)||Ni(r)}function YAe(r){switch(r.kind){case 80:if(vg(r)){const l=sd(r);if(MZ(l)&&l.lastAssignmentPos!==Number.MAX_VALUE){const _=Pr(r,LZ),m=Pr(l.valueDeclaration,LZ);l.lastAssignmentPos=_===m?ost(r,l.valueDeclaration):Number.MAX_VALUE}}return;case 281:const a=r.parent.parent;if(!r.isTypeOnly&&!a.isTypeOnly&&!a.moduleSpecifier){const l=vo(r.propertyName||r.name,111551,!0,!0);l&&MZ(l)&&(l.lastAssignmentPos=Number.MAX_VALUE)}return;case 264:case 265:case 266:return}ki(r)||Ss(r,YAe)}function ost(r,a){let l=r.pos;for(;r&&r.pos>a.pos;){switch(r.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:l=r.end}r=r.parent}return l}function QP(r){return r.flags&3&&(zge(r)&6)!==0}function MZ(r){const a=r.valueDeclaration&&qd(r.valueDeclaration);return!!a&&(rs(a)||hi(a)&&(f2(a.parent)||cst(a)))}function cst(r){return!!(r.parent.flags&1)&&!(y1(r)&32||r.parent.parent.kind===243&&Gm(r.parent.parent.parent))}function lst(r){const a=jn(r);if(a.parameterInitializerContainsUndefined===void 0){if(!Km(r,9))return _4(r.symbol),!0;const l=!!Ip(KP(r,0),16777216);if(!_m())return _4(r.symbol),!0;a.parameterInitializerContainsUndefined=l}return a.parameterInitializerContainsUndefined}function ust(r,a){return q&&a.kind===169&&a.initializer&&Ip(r,16777216)&&!lst(a)?Fp(r,524288):r}function _st(r,a){const l=a.parent;return l.kind===211||l.kind===166||l.kind===213&&l.expression===a||l.kind===212&&l.expression===a&&!(ad(r,KAe)&&KS(Yl(l.argumentExpression)))}function ZAe(r){return r.flags&2097152?ct(r.types,ZAe):!!(r.flags&465829888&&wh(r).flags&1146880)}function KAe(r){return r.flags&2097152?ct(r.types,KAe):!!(r.flags&465829888&&!nc(wh(r),98304))}function fst(r,a){const l=(Ie(r)||Sn(r)||Co(r))&&!((Zd(r.parent)||$b(r.parent))&&r.parent.tagName===r)&&(a&&a&32?y_(r,8):y_(r,void 0));return l&&!S4(l)}function Tge(r,a,l){return!(l&&l&2)&&ad(r,ZAe)&&(_st(r,a)||fst(a,l))?Bo(r,wh):r}function eNe(r){return!!Pr(r,a=>{const l=a.parent;return l===void 0?"quit":oc(l)?l.expression===a&&pc(a):vu(l)?l.name===a||l.propertyName===a:!1})}function RZ(r,a){if(pt&&IS(r,111551)&&!Lb(a)){const l=ll(r);$l(r,!0)&1160127&&(Tp(j)||n2(j)&&eNe(a)||!UI(Mf(l))?Ly(r):wl(r))}}function pst(r,a,l){var _;const m=Xr(r,l),h=r.valueDeclaration;if(h){if(Ea(h)&&!h.initializer&&!h.dotDotDotToken&&h.parent.elements.length>=2){const x=h.parent.parent,N=qd(x);if(N.kind===260&&lb(N)&6||N.kind===169){const L=jn(x);if(!(L.flags&4194304)){L.flags|=4194304;const z=Tn(x,0),Z=z&&Bo(z,wh);if(L.flags&=-4194305,Z&&Z.flags&1048576&&!(N.kind===169&&Sge(N))){const de=h.parent,_e=a1(de,Z,Z,void 0,a.flowNode);return _e.flags&131072?Cn:Bg(h,_e,!0)}}}}if(rs(h)&&!h.type&&!h.initializer&&!h.dotDotDotToken){const x=h.parent;if(x.parameters.length>=2&&oZ(x)){const N=NI(x);if(N&&N.parameters.length===1&&Su(N)){const L=LP(zi(Xr(N.parameters[0]),(_=nb(x))==null?void 0:_.nonFixingMapper));if(L.flags&1048576&&N_(L,da)&&!ct(x.parameters,Sge)){const z=a1(x,L,L,void 0,a.flowNode),Z=x.parameters.indexOf(h)-(Xv(x)?1:0);return K_(z,Fd(Z))}}}}}return m}function dst(r,a){if(BT(r))return mj(r);const l=sd(r);if(l===tt)return nt;if(l===Pt){if(RNe(r))return Me(r,p.arguments_cannot_be_referenced_in_property_initializers),nt;let Gt=cf(r);if(Gt)for(re<2&&(Gt.kind===219?Me(r,p.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):Rn(Gt,1024)&&Me(r,p.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),jn(Gt).flags|=512;Gt&&mo(Gt);)Gt=cf(Gt),Gt&&(jn(Gt).flags|=512);return Xr(l)}gst(r)&&RZ(l,r);const _=Mf(l),m=Whe(_,r);Dy(m)&&kme(r,m)&&m.declarations&&S0(r,m.declarations,r.escapedText);let h=_.valueDeclaration;if(h&&_.flags&32&&$n(h)&&h.name!==r){let Gt=a_(r,!1,!1);for(;Gt.kind!==312&&Gt.parent!==h;)Gt=a_(Gt,!1,!1);Gt.kind!==312&&(jn(h).flags|=262144,jn(Gt).flags|=262144,jn(r).flags|=536870912)}vst(r,l);let x=pst(_,r,a);const N=RT(r);if(N){if(!(_.flags&3)&&!(Hr(r)&&_.flags&512)){const Gt=_.flags&384?p.Cannot_assign_to_0_because_it_is_an_enum:_.flags&32?p.Cannot_assign_to_0_because_it_is_a_class:_.flags&1536?p.Cannot_assign_to_0_because_it_is_a_namespace:_.flags&16?p.Cannot_assign_to_0_because_it_is_a_function:_.flags&2097152?p.Cannot_assign_to_0_because_it_is_an_import:p.Cannot_assign_to_0_because_it_is_not_a_variable;return Me(r,Gt,ni(l)),nt}if(Md(_))return _.flags&3?Me(r,p.Cannot_assign_to_0_because_it_is_a_constant,ni(l)):Me(r,p.Cannot_assign_to_0_because_it_is_a_read_only_property,ni(l)),nt}const L=_.flags&2097152;if(_.flags&3){if(N===1)return qz(r)?Oh(x):x}else if(L)h=ed(l);else return x;if(!h)return x;x=Tge(x,r,a);const z=qd(h).kind===169,Z=wI(h);let de=wI(r);const _e=de!==Z,Re=r.parent&&r.parent.parent&&a0(r.parent)&&vge(r.parent.parent),st=l.flags&134217728,gt=x===Ge||x===yl,qt=gt&&r.parent.kind===235;for(;de!==Z&&(de.kind===218||de.kind===219||h5(de))&&(QP(_)&&x!==yl||MZ(_)&&XAe(_,r));)de=wI(de);const $t=z||L||_e||Re||st||mst(r,h)||x!==Ge&&x!==yl&&(!q||(x.flags&16387)!==0||Lb(r)||pge(r)||r.parent.kind===281)||r.parent.kind===235||h.kind===260&&h.exclamationToken||h.flags&33554432,Ur=qt?Pe:$t?z?ust(x,h):x:gt?Pe:i1(x),Tr=qt?Lh(a1(r,x,Ur,de)):a1(r,x,Ur,de);if(!qAe(r)&&(x===Ge||x===yl)){if(Tr===Ge||Tr===yl)return ae&&(Me(us(h),p.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,ni(l),Ar(Tr)),Me(r,p.Variable_0_implicitly_has_an_1_type,ni(l),Ar(Tr))),VI(Tr)}else if(!$t&&!zP(x)&&zP(Tr))return Me(r,p.Variable_0_is_used_before_being_assigned,ni(l)),x;return N?Oh(Tr):Tr}function mst(r,a){if(Ea(a)){const l=Pr(r,Ea);return l&&qd(l)===qd(a)}}function gst(r){var a;const l=r.parent;if(l){if(Sn(l)&&l.expression===r||vu(l)&&l.isTypeOnly)return!1;const _=(a=l.parent)==null?void 0:a.parent;if(_&&Tc(_)&&_.isTypeOnly)return!1}return!0}function hst(r,a){return!!Pr(r,l=>l===a?"quit":As(l)||l.parent&&xs(l.parent)&&!Bc(l.parent)&&l.parent.initializer===l)}function yst(r,a){return Pr(r,l=>l===a?"quit":l===a.initializer||l===a.condition||l===a.incrementor||l===a.statement)}function xge(r){return Pr(r,a=>!a||eW(a)?"quit":X0(a,!1))}function vst(r,a){if(re>=2||!(a.flags&34)||!a.valueDeclaration||Ni(a.valueDeclaration)||a.valueDeclaration.parent.kind===299)return;const l=Nm(a.valueDeclaration),_=hst(r,l),m=xge(l);if(m){if(_){let h=!0;if(Hb(l)){const x=w1(a.valueDeclaration,261);if(x&&x.parent===l){const N=yst(r.parent,l);if(N){const L=jn(N);L.flags|=8192;const z=L.capturedBlockScopeBindings||(L.capturedBlockScopeBindings=[]);Jf(z,a),N===l.initializer&&(h=!1)}}}h&&(jn(m).flags|=4096)}if(Hb(l)){const h=w1(a.valueDeclaration,261);h&&h.parent===l&&Sst(r,l)&&(jn(a.valueDeclaration).flags|=65536)}jn(a.valueDeclaration).flags|=32768}_&&(jn(a.valueDeclaration).flags|=16384)}function bst(r,a){const l=jn(r);return!!l&&bs(l.capturedBlockScopeBindings,un(a))}function Sst(r,a){let l=r;for(;l.parent.kind===217;)l=l.parent;let _=!1;if(vg(l))_=!0;else if(l.parent.kind===224||l.parent.kind===225){const m=l.parent;_=m.operator===46||m.operator===47}return _?!!Pr(l,m=>m===a?"quit":m===a.statement):!1}function kge(r,a){if(jn(r).flags|=2,a.kind===172||a.kind===176){const l=a.parent;jn(l).flags|=4}else jn(a).flags|=4}function tNe(r){return Eb(r)?r:As(r)?void 0:Ss(r,tNe)}function Cge(r){const a=un(r),l=Po(a);return Y_(l)===Ne}function rNe(r,a,l){const _=a.parent;Gv(_)&&!Cge(_)&&F8(r)&&r.flowNode&&!OZ(r.flowNode,!1)&&Me(r,l)}function Tst(r,a){xs(a)&&Bc(a)&&Y&&a.initializer&&zD(a.initializer,r.pos)&&Wf(a.parent)&&Me(r,p.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}function mj(r){const a=Lb(r);let l=a_(r,!0,!0),_=!1,m=!1;for(l.kind===176&&rNe(r,l,p.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);;){if(l.kind===219&&(l=a_(l,!1,!m),_=!0),l.kind===167){l=a_(l,!_,!1),m=!0;continue}break}if(Tst(r,l),m)Me(r,p.this_cannot_be_referenced_in_a_computed_property_name);else switch(l.kind){case 267:Me(r,p.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 266:Me(r,p.this_cannot_be_referenced_in_current_location);break;case 176:nNe(r,l)&&Me(r,p.this_cannot_be_referenced_in_constructor_arguments);break}!a&&_&&re<2&&kge(r,l);const h=Ege(r,!0,l);if(K){const x=Xr($e);if(h===x&&_)Me(r,p.The_containing_arrow_function_captures_the_global_value_of_this);else if(!h){const N=Me(r,p.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!Ni(l)){const L=Ege(l);L&&L!==x&&la(N,yn(l,p.An_outer_value_of_this_is_shadowed_by_this_container))}}}return h||B}function Ege(r,a=!0,l=a_(r,!1,!1)){const _=Hr(r);if(As(l)&&(!wge(r)||Xv(l))){let m=wde(l)||_&&Cst(l);if(!m){const h=kst(l);if(_&&h){const x=Hi(h).symbol;x&&x.members&&x.flags&16&&(m=Po(x).thisType)}else hm(l)&&(m=Po(Na(l.symbol)).thisType);m||(m=oNe(l))}if(m)return a1(r,m)}if($n(l.parent)){const m=un(l.parent),h=Ms(l)?Xr(m):Po(m).thisType;return a1(r,h)}if(Ni(l))if(l.commonJsModuleIndicator){const m=un(l);return m&&Xr(m)}else{if(l.externalModuleIndicator)return Pe;if(a)return Xr($e)}}function xst(r){const a=a_(r,!1,!1);if(As(a)){const l=Ap(a);if(l.thisParameter)return IZ(l.thisParameter)}if($n(a.parent)){const l=un(a.parent);return Ms(a)?Xr(l):Po(l).thisType}}function kst(r){if(r.kind===218&&Zr(r.parent)&&fc(r.parent)===3)return r.parent.left.expression.expression;if(r.kind===174&&r.parent.kind===210&&Zr(r.parent.parent)&&fc(r.parent.parent)===6)return r.parent.parent.left.expression;if(r.kind===218&&r.parent.kind===303&&r.parent.parent.kind===210&&Zr(r.parent.parent.parent)&&fc(r.parent.parent.parent)===6)return r.parent.parent.parent.left.expression;if(r.kind===218&&zc(r.parent)&&Ie(r.parent.name)&&(r.parent.name.escapedText==="value"||r.parent.name.escapedText==="get"||r.parent.name.escapedText==="set")&&ua(r.parent.parent)&&Rs(r.parent.parent.parent)&&r.parent.parent.parent.arguments[2]===r.parent.parent&&fc(r.parent.parent.parent)===9)return r.parent.parent.parent.arguments[0].expression;if(hc(r)&&Ie(r.name)&&(r.name.escapedText==="value"||r.name.escapedText==="get"||r.name.escapedText==="set")&&ua(r.parent)&&Rs(r.parent.parent)&&r.parent.parent.arguments[2]===r.parent&&fc(r.parent.parent)===9)return r.parent.parent.arguments[0].expression}function Cst(r){const a=B7(r);if(a&&a.typeExpression)return ii(a.typeExpression);const l=MP(r);if(l)return Sv(l)}function nNe(r,a){return!!Pr(r,l=>po(l)?"quit":l.kind===169&&l.parent===a)}function Pge(r){const a=r.parent.kind===213&&r.parent.expression===r,l=h8(r,!0);let _=l,m=!1,h=!1;if(!a){for(;_&&_.kind===219;)Rn(_,1024)&&(h=!0),_=h8(_,!0),m=re<2;_&&Rn(_,1024)&&(h=!0)}let x=0;if(!_||!Z(_)){const de=Pr(r,_e=>_e===_?"quit":_e.kind===167);return de&&de.kind===167?Me(r,p.super_cannot_be_referenced_in_a_computed_property_name):a?Me(r,p.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):!_||!_.parent||!($n(_.parent)||_.parent.kind===210)?Me(r,p.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions):Me(r,p.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class),nt}if(!a&&l.kind===176&&rNe(r,_,p.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),Ms(_)||a?(x=32,!a&&re>=2&&re<=8&&(xs(_)||ec(_))&&Ote(r.parent,de=>{(!Ni(de)||af(de))&&(jn(de).flags|=2097152)})):x=16,jn(r).flags|=x,_.kind===174&&h&&(o_(r.parent)&&vg(r.parent)?jn(_).flags|=256:jn(_).flags|=128),m&&kge(r.parent,_),_.parent.kind===210)return re<2?(Me(r,p.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),nt):B;const N=_.parent;if(!Gv(N))return Me(r,p.super_can_only_be_referenced_in_a_derived_class),nt;if(Cge(N))return a?nt:Ne;const L=Po(un(N)),z=L&&Z_(L)[0];if(!z)return nt;if(_.kind===176&&nNe(r,_))return Me(r,p.super_cannot_be_referenced_in_constructor_arguments),nt;return x===32?Y_(L):mf(z,L.thisType);function Z(de){return a?de.kind===176:$n(de.parent)||de.parent.kind===210?Ms(de)?de.kind===174||de.kind===173||de.kind===177||de.kind===178||de.kind===172||de.kind===175:de.kind===174||de.kind===173||de.kind===177||de.kind===178||de.kind===172||de.kind===171||de.kind===176:!1}}function iNe(r){return(r.kind===174||r.kind===177||r.kind===178)&&r.parent.kind===210?r.parent:r.kind===218&&r.parent.kind===303?r.parent.parent:void 0}function sNe(r){return bn(r)&4&&r.target===dc?So(r)[0]:void 0}function Est(r){return Bo(r,a=>a.flags&2097152?rr(a.types,sNe):sNe(a))}function aNe(r,a){let l=r,_=a;for(;_;){const m=Est(_);if(m)return m;if(l.parent.kind!==303)break;l=l.parent.parent,_=Av(l,void 0)}}function oNe(r){if(r.kind===219)return;if(oZ(r)){const l=NI(r);if(l){const _=l.thisParameter;if(_)return Xr(_)}}const a=Hr(r);if(K||a){const l=iNe(r);if(l){const m=Av(l,void 0),h=aNe(l,m);return h?zi(h,ige(nb(l))):gf(m?Lh(m):Dc(l))}const _=Yh(r.parent);if(il(_)){const m=_.left;if(co(m)){const{expression:h}=m;if(a&&Ie(h)){const x=wr(_);if(x.commonJsModuleIndicator&&sd(h)===x.symbol)return}return gf(Dc(h))}}}}function cNe(r){const a=r.parent;if(!oZ(a))return;const l=Pb(a);if(l&&l.arguments){const m=KZ(l),h=a.parameters.indexOf(r);if(r.dotDotDotToken)return the(m,h,m.length,B,void 0,0);const x=jn(l),N=x.resolvedSignature;x.resolvedSignature=lt;const L=h0)return D(l.name,!0,!1)}}function Ast(r,a){const l=cf(r);if(l){let _=jZ(l,a);if(_){const m=pl(l);if(m&1){const h=(m&2)!==0;_.flags&1048576&&(_=Mc(_,N=>!!ab(1,N,h)));const x=ab(1,_,(m&2)!==0);if(!x)return;_=x}if(m&2){const h=Bo(_,I0);return h&&Bn([h,xIe(h)])}return _}}}function Nst(r,a){const l=y_(r,a);if(l){const _=I0(l);return _&&Bn([_,xIe(_)])}}function Ist(r,a){const l=cf(r);if(l){const _=pl(l);let m=jZ(l,a);if(m){const h=(_&2)!==0;return!r.asteriskToken&&m.flags&1048576&&(m=Mc(m,x=>!!ab(1,x,h))),r.asteriskToken?m:ab(0,m,h)}}}function wge(r){let a=!1;for(;r.parent&&!As(r.parent);){if(rs(r.parent)&&(a||r.parent.initializer===r))return!0;Ea(r.parent)&&r.parent.initializer===r&&(a=!0),r=r.parent}return!1}function lNe(r,a){const l=!!(pl(a)&2),_=jZ(a,void 0);if(_)return ab(r,_,l)||void 0}function jZ(r,a){const l=g4(r);if(l)return l;const _=Oge(r);if(_&&!WY(_)){const h=Ja(_),x=pl(r);return x&1?Mc(h,N=>!!(N.flags&58998787)||The(N,x,void 0)):x&2?Mc(h,N=>!!(N.flags&58998787)||!!rD(N)):h}const m=Pb(r);if(m)return y_(m,a)}function uNe(r,a){const _=KZ(r).indexOf(a);return _===-1?void 0:Age(r,_)}function Age(r,a){if(of(r))return a===0?Ce:a===1?Z8e(!1):B;const l=jn(r).resolvedSignature===an?an:D4(r);if(Fu(r)&&a===0)return WZ(l,r);const _=l.parameters.length-1;return Su(l)&&a>=_?K_(Xr(l.parameters[_]),Fd(a-_),256):Ld(l,a)}function Fst(r){const a=dhe(r);return a?XS(a):void 0}function Ost(r,a){if(r.parent.kind===215)return uNe(r.parent,a)}function Lst(r,a){const l=r.parent,{left:_,operatorToken:m,right:h}=l;switch(m.kind){case 64:case 77:case 76:case 78:return r===h?Rst(l):void 0;case 57:case 61:const x=y_(l,a);return r===h&&(x&&x.pattern||!x&&!tre(l))?Yl(_):x;case 56:case 28:return r===h?y_(l,a):void 0;default:return}}function Mst(r){if(zd(r)&&r.symbol)return r.symbol;if(Ie(r))return sd(r);if(Sn(r)){const l=Yl(r.expression);return Pi(r.name)?a(l,r.name):$s(l,r.name.escapedText)}if(Co(r)){const l=Dc(r.argumentExpression);if(!bp(l))return;const _=Yl(r.expression);return $s(_,Sp(l))}return;function a(l,_){const m=HZ(_.escapedText,_);return m&&qge(l,m)}}function Rst(r){var a,l;const _=fc(r);switch(_){case 0:case 4:const m=Mst(r.left),h=m&&m.valueDeclaration;if(h&&(xs(h)||B_(h))){const L=Vl(h);return L&&zi(ii(L),wi(m).mapper)||(xs(h)?h.initializer&&Yl(r.left):void 0)}return _===0?Yl(r.left):_Ne(r);case 5:if(BZ(r,_))return _Ne(r);if(!zd(r.left)||!r.left.symbol)return Yl(r.left);{const L=r.left.symbol.valueDeclaration;if(!L)return;const z=Ls(r.left,co),Z=Vl(L);if(Z)return ii(Z);if(Ie(z.expression)){const de=z.expression,_e=Go(de,de.escapedText,111551,void 0,de.escapedText,!0);if(_e){const Re=_e.valueDeclaration&&Vl(_e.valueDeclaration);if(Re){const st=Kg(z);if(st!==void 0)return wv(ii(Re),st)}return}}return Hr(L)||L===r.left?void 0:Yl(r.left)}case 1:case 6:case 3:case 2:let x;_!==2&&(x=zd(r.left)?(a=r.left.symbol)==null?void 0:a.valueDeclaration:void 0),x||(x=(l=r.symbol)==null?void 0:l.valueDeclaration);const N=x&&Vl(x);return N?ii(N):void 0;case 7:case 8:case 9:return E.fail("Does not apply");default:return E.assertNever(_)}}function BZ(r,a=fc(r)){if(a===4)return!0;if(!Hr(r)||a!==5||!Ie(r.left.expression))return!1;const l=r.left.expression.escapedText,_=Go(r.left,l,111551,void 0,void 0,!0,!0);return T5(_==null?void 0:_.valueDeclaration)}function _Ne(r){if(!r.symbol)return Yl(r.left);if(r.symbol.valueDeclaration){const m=Vl(r.symbol.valueDeclaration);if(m){const h=ii(m);if(h)return h}}const a=Ls(r.left,co);if(!Wp(a_(a.expression,!1,!1)))return;const l=mj(a.expression),_=Kg(a);return _!==void 0&&wv(l,_)||void 0}function jst(r){return!!(Ko(r)&262144&&!r.links.type&&_k(r,0)>=0)}function wv(r,a,l){return Bo(r,_=>{var m;if(g_(_)&&!_.declaration.nameType){const h=Bf(_),x=fu(h)||h,N=l||h_(xi(a));if(Qs(N,x))return KY(_,N)}else if(_.flags&3670016){const h=$s(_,a);if(h)return jst(h)?void 0:s1(Xr(h),!!(h&&h.flags&16777216));if(da(_)&&kg(a)&&+a>=0){const x=qP(_,_.target.fixedLength,0,!1,!0);if(x)return x}return(m=Gde($de(_),l||h_(xi(a))))==null?void 0:m.type}},!0)}function fNe(r,a){if(E.assert(Wp(r)),!(r.flags&67108864))return Nge(r,a)}function Nge(r,a){const l=r.parent,_=zc(r)&&Dge(r,a);if(_)return _;const m=Av(l,a);if(m){if(d4(r)){const h=un(r);return wv(m,h.escapedName,wi(h).nameType)}if(ty(r)){const h=us(r);if(h&&Pa(h)){const x=Hi(h.expression),N=bp(x)&&wv(m,Sp(x));if(N)return N}}if(r.name){const h=w0(r.name);return Bo(m,x=>{var N;return(N=Gde($de(x),h))==null?void 0:N.type},!0)}}}function Bst(r){let a,l;for(let _=0;_{if(da(h)){if((_===void 0||a<_)&&am)?l-a:0,N=x>0&&h.target.hasRestElement?pI(h.target,3):0;return x>0&&x<=N?So(h)[D0(h)-x]:qP(h,_===void 0?h.target.fixedLength:Math.min(h.target.fixedLength,_),l===void 0||m===void 0?N:Math.min(N,l-m),!1,!0)}return(!_||a<_)&&wv(h,""+a)||Fhe(1,h,Pe,void 0,!1)},!0)}function Jst(r,a){const l=r.parent;return r===l.whenTrue||r===l.whenFalse?y_(l,a):void 0}function zst(r,a,l){const _=Av(r.openingElement.attributes,l),m=vj(cT(r));if(!(_&&!ht(_)&&m&&m!==""))return;const h=hC(r.children),x=h.indexOf(a),N=wv(_,m);return N&&(h.length===1?N:Bo(N,L=>N0(L)?K_(L,Fd(x)):L,!0))}function Wst(r,a){const l=r.parent;return Q7(l)?y_(r,a):Eg(l)?zst(l,r,a):void 0}function pNe(r,a){if(Kd(r)){const l=Av(r.parent,a);return!l||ht(l)?void 0:wv(l,e3(r.name))}else return y_(r.parent,a)}function gj(r){switch(r.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 gj(r.expression);case 294:return!r.expression||gj(r.expression)}return!1}function Vst(r,a){return Oit(a,r)||Vme(a,es(nr(An(r.properties,l=>l.symbol?l.kind===303?gj(l.initializer)&&HP(a,l.symbol.escapedName):l.kind===304?HP(a,l.symbol.escapedName):!1:!1),l=>[()=>jj(l.kind===303?l.initializer:l.name),l.symbol.escapedName]),nr(An(Ua(a),l=>{var _;return!!(l.flags&16777216)&&!!((_=r==null?void 0:r.symbol)!=null&&_.members)&&!r.symbol.members.has(l.escapedName)&&HP(a,l.escapedName)}),l=>[()=>Pe,l.escapedName])),Qs)}function Ust(r,a){const l=vj(cT(r));return Vme(a,es(nr(An(r.properties,_=>!!_.symbol&&_.kind===291&&HP(a,_.symbol.escapedName)&&(!_.initializer||gj(_.initializer))),_=>[_.initializer?()=>jj(_.initializer):()=>Er,_.symbol.escapedName]),nr(An(Ua(a),_=>{var m;if(!(_.flags&16777216)||!((m=r==null?void 0:r.symbol)!=null&&m.members))return!1;const h=r.parent.parent;return _.escapedName===l&&Eg(h)&&hC(h.children).length?!1:!r.symbol.members.has(_.escapedName)&&HP(a,_.escapedName)}),_=>[()=>Pe,_.escapedName])),Qs)}function Av(r,a){const l=Wp(r)?fNe(r,a):y_(r,a),_=JZ(l,r,a);if(_&&!(a&&a&2&&_.flags&8650752)){const m=Bo(_,h=>bn(h)&32?h:n_(h),!0);return m.flags&1048576&&ua(r)?Vst(r,m):m.flags&1048576&&_2(r)?Ust(r,m):m}}function JZ(r,a,l){if(r&&nc(r,465829888)){const _=nb(a);if(_&&l&1&&ct(_.inferences,Pct))return zZ(r,_.nonFixingMapper);if(_!=null&&_.returnMapper){const m=zZ(r,_.returnMapper);return m.flags&1048576&&Ah(m.types,ar)&&Ah(m.types,Nr)?Mc(m,h=>h!==ar&&h!==Nr):m}}return r}function zZ(r,a){return r.flags&465829888?zi(r,a):r.flags&1048576?Bn(nr(r.types,l=>zZ(l,a)),0):r.flags&2097152?Xs(nr(r.types,l=>zZ(l,a))):r}function y_(r,a){var l;if(r.flags&67108864)return;const _=mNe(r,!a);if(_>=0)return tr[_];const{parent:m}=r;switch(m.kind){case 260:case 169:case 172:case 171:case 208:return wst(r,a);case 219:case 253:return Ast(r,a);case 229:return Ist(m,a);case 223:return Nst(m,a);case 213:case 214:return uNe(m,r);case 170:return Fst(m);case 216:case 234:return Qg(m.type)?y_(m,a):ii(m.type);case 226:return Lst(r,a);case 303:case 304:return Nge(m,a);case 305:return y_(m.parent,a);case 209:{const h=m,x=Av(h,a),N=Zk(h.elements,r),L=(l=jn(h)).spreadIndices??(l.spreadIndices=Bst(h.elements));return Ige(x,N,h.elements.length,L.first,L.last)}case 227:return Jst(r,a);case 239:return E.assert(m.parent.kind===228),Ost(m.parent,r);case 217:{if(Hr(m)){if(zW(m))return ii(WW(m));const h=b1(m);if(h&&!Qg(h.typeExpression.type))return ii(h.typeExpression.type)}return y_(m,a)}case 235:return y_(m,a);case 238:return ii(m.type);case 277:return Mi(m);case 294:return Wst(m,a);case 291:case 293:return pNe(m,a);case 286:case 285:return $st(m,a);case 301:return Gst(m)}}function dNe(r){hj(r,y_(r,void 0),!0)}function hj(r,a,l){Mr[Yn]=r,tr[Yn]=a,Rr[Yn]=l,Yn++}function AI(){Yn--}function mNe(r,a){for(let l=Yn-1;l>=0;l--)if(r===Mr[l]&&(a||!Rr[l]))return l;return-1}function qst(r,a){Gr[Yr]=r,zn[Yr]=a,Yr++}function Hst(){Yr--}function nb(r){for(let a=Yr-1;a>=0;a--)if(Hv(r,Gr[a]))return zn[a]}function Gst(r){return wv(ume(!1),PF(r))}function $st(r,a){if(Zd(r)&&a!==4){const l=mNe(r.parent,!a);if(l>=0)return tr[l]}return Age(r,0)}function WZ(r,a){return ZNe(a)!==0?Xst(r,a):Zst(r,a)}function Xst(r,a){let l=fhe(r,Kt);l=gNe(a,cT(a),l);const _=ib(Cf.IntrinsicAttributes,a);return Ot(_)||(l=LR(_,l)),l}function Qst(r,a){if(r.compositeSignatures){const _=[];for(const m of r.compositeSignatures){const h=Ja(m);if(ht(h))return h;const x=je(h,a);if(!x)return;_.push(x)}return Xs(_)}const l=Ja(r);return ht(l)?l:je(l,a)}function Yst(r){if(bk(r.tagName)){const l=CNe(r),_=eK(r,l);return XS(_)}const a=Dc(r.tagName);if(a.flags&128){const l=kNe(a,r);if(!l)return nt;const _=eK(r,l);return XS(_)}return a}function gNe(r,a,l){const _=yat(a);if(_){const m=Yst(r),h=DNe(_,Hr(r),m,l);if(h)return h}return l}function Zst(r,a){const l=cT(a),_=bat(l);let m=_===void 0?fhe(r,Kt):_===""?Ja(r):Qst(r,_);if(!m)return _&&mr(a.attributes.properties)&&Me(a,p.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,xi(_)),Kt;if(m=gNe(a,l,m),ht(m))return m;{let h=m;const x=ib(Cf.IntrinsicClassAttributes,a);if(!Ot(x)){const L=hn(x.symbol),z=Ja(r);let Z;if(L){const de=Qy([z],L,rg(L),Hr(a));Z=zi(x,ef(L,de))}else Z=x;h=LR(Z,h)}const N=ib(Cf.IntrinsicAttributes,a);return Ot(N)||(h=LR(N,h)),h}}function Kst(r){return Mu(j,"noImplicitAny")?Du(r,(a,l)=>a===l||!a?a:m8e(a.typeParameters,l.typeParameters)?rat(a,l):void 0):void 0}function eat(r,a,l){if(!r||!a)return r||a;const _=Bn([Xr(r),zi(Xr(a),l)]);return rT(r,_)}function tat(r,a,l){const _=hf(r),m=hf(a),h=_>=m?r:a,x=h===r?a:r,N=h===r?_:m,L=ag(r)||ag(a),z=L&&!ag(h),Z=new Array(N+(z?1:0));for(let de=0;de=ym(h)&&de>=ym(x),$t=de>=_?void 0:ZP(r,de),Ur=de>=m?void 0:ZP(a,de),Tr=$t===Ur?$t:$t?Ur?void 0:$t:Ur,Gt=xa(1|(qt&&!gt?16777216:0),Tr||`arg${de}`);Gt.links.type=gt?pu(st):st,Z[de]=Gt}if(z){const de=xa(1,"args");de.links.type=pu(Ld(x,N)),x===a&&(de.links.type=zi(de.links.type,l)),Z[N]=de}return Z}function rat(r,a){const l=r.typeParameters||a.typeParameters;let _;r.typeParameters&&a.typeParameters&&(_=ef(a.typeParameters,r.typeParameters));const m=r.declaration,h=tat(r,a,_),x=eat(r.thisParameter,a.thisParameter,_),N=Math.max(r.minArgumentCount,a.minArgumentCount),L=Jg(m,l,x,h,void 0,void 0,N,(r.flags|a.flags)&167);return L.compositeKind=2097152,L.compositeSignatures=es(r.compositeKind===2097152&&r.compositeSignatures||[r],[a]),_&&(L.mapper=r.compositeKind===2097152&&r.mapper&&r.compositeSignatures?eb(r.mapper,_):_),L}function Fge(r,a){const l=Es(r,0),_=An(l,m=>!nat(m,a));return _.length===1?_[0]:Kst(_)}function nat(r,a){let l=0;for(;lUP(_e)||g_(_e)&&!_e.nameType&&!!hI(_e.target||_e));let de=!1;for(let _e=0;_ex[Re]&8?Zy(_e,_t)||B:_e),2):q?pi:St,L))}function yNe(r){if(!(bn(r)&4))return r;let a=r.literalType;return a||(a=r.literalType=J8e(r),a.objectFlags|=147456),a}function oat(r){switch(r.kind){case 167:return cat(r);case 80:return kg(r.escapedText);case 9:case 11:return kg(r.text);default:return!1}}function cat(r){return Ql(Wg(r),296)}function Wg(r){const a=jn(r.expression);if(!a.resolvedType){if((z_(r.parent.parent)||$n(r.parent.parent)||Bu(r.parent.parent))&&Zr(r.expression)&&r.expression.operatorToken.kind===103&&r.parent.kind!==177&&r.parent.kind!==178)return a.resolvedType=nt;if(a.resolvedType=Hi(r.expression),xs(r.parent)&&!Bc(r.parent)&&kl(r.parent.parent)){const l=Nm(r.parent.parent),_=xge(l);_&&(jn(_).flags|=4096,jn(r).flags|=32768,jn(r.parent.parent).flags|=32768)}(a.resolvedType.flags&98304||!Ql(a.resolvedType,402665900)&&!Qs(a.resolvedType,pr))&&Me(r,p.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return a.resolvedType}function lat(r){var a;const l=(a=r.declarations)==null?void 0:a[0];return kg(r.escapedName)||l&&Nu(l)&&oat(l.name)}function vNe(r){var a;const l=(a=r.declarations)==null?void 0:a[0];return W8(r)||l&&Nu(l)&&Pa(l.name)&&Ql(Wg(l.name),4096)}function Lge(r,a,l,_){const m=[];for(let x=a;x0&&(N=Y2(N,Cr(),r.symbol,gt,Z),x=[],h=Bs(),$t=!1,Ur=!1,Tr=!1);const Jr=Id(Hi(kr.expression,a&2));if(yj(Jr)){const ss=wme(Jr,Z);if(m&&SNe(ss,m,kr),Gt=x.length,Ot(N))continue;N=Y2(N,ss,r.symbol,gt,Z)}else Me(kr,p.Spread_types_may_only_be_created_from_object_types),N=nt;continue}else E.assert(kr.kind===177||kr.kind===178),Sk(kr);Ir&&!(Ir.flags&8576)?Qs(Ir,pr)&&(Qs(Ir,_t)?Ur=!0:Qs(Ir,oi)?Tr=!0:$t=!0,_&&(qt=!0)):h.set(Br.escapedName,Br),x.push(Br)}if(AI(),z){const kr=Pr(L.pattern.parent,Ir=>Ir.kind===260||Ir.kind===226||Ir.kind===169);if(Pr(r,Ir=>Ir===kr||Ir.kind===305).kind!==305)for(const Ir of Ua(L))!h.get(Ir.escapedName)&&!$s(N,Ir.escapedName)&&(Ir.flags&16777216||Me(Ir.valueDeclaration||((l=Wn(Ir,wm))==null?void 0:l.links.bindingElement),p.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),h.set(Ir.escapedName,Ir),x.push(Ir))}if(Ot(N))return nt;if(N!==oa)return x.length>0&&(N=Y2(N,Cr(),r.symbol,gt,Z),x=[],h=Bs(),$t=!1,Ur=!1),Bo(N,kr=>kr===oa?Cr():kr);return Cr();function Cr(){const kr=[];$t&&kr.push(Lge(r,Gt,x,Ce)),Ur&&kr.push(Lge(r,Gt,x,_t)),Tr&&kr.push(Lge(r,Gt,x,oi));const Br=ao(r.symbol,h,Ve,Ve,kr);return Br.objectFlags|=gt|128|131072,st&&(Br.objectFlags|=4096),qt&&(Br.objectFlags|=512),_&&(Br.pattern=r),Br}}function yj(r){const a=dAe(Bo(r,wh));return!!(a.flags&126615553||a.flags&3145728&&Wi(a.types,yj))}function _at(r){Bge(r)}function fat(r,a){return Sk(r),bj(r)||B}function pat(r){Bge(r.openingElement),bk(r.closingElement.tagName)?UZ(r.closingElement):Hi(r.closingElement.tagName),VZ(r)}function dat(r,a){return Sk(r),bj(r)||B}function mat(r){Bge(r.openingFragment);const a=wr(r);return uF(j)&&(j.jsxFactory||a.pragmas.has("jsx"))&&!j.jsxFragmentFactory&&!a.pragmas.has("jsxfrag")&&Me(r,j.jsxFactory?p.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:p.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),VZ(r),bj(r)||B}function Rge(r){return r.includes("-")}function bk(r){return Ie(r)&&vC(r.escapedText)||hd(r)}function bNe(r,a){return r.initializer?tD(r.initializer,a):Er}function gat(r,a=0){const l=r.attributes,_=y_(l,0),m=q?Bs():void 0;let h=Bs(),x=Wo,N=!1,L,z=!1,Z=2048;const de=vj(cT(r));for(const st of l.properties){const gt=st.symbol;if(Kd(st)){const qt=bNe(st,a);Z|=bn(qt)&458752;const $t=xa(4|gt.flags,gt.escapedName);if($t.declarations=gt.declarations,$t.parent=gt.parent,gt.valueDeclaration&&($t.valueDeclaration=gt.valueDeclaration),$t.links.type=qt,$t.links.target=gt,h.set($t.escapedName,$t),m==null||m.set($t.escapedName,$t),e3(st.name)===de&&(z=!0),_){const Ur=$s(_,gt.escapedName);Ur&&Ur.declarations&&Dy(Ur)&&Ie(st.name)&&S0(st.name,Ur.declarations,st.name.escapedText)}if(_&&a&2&&!(a&4)&&op(st)){const Ur=nb(l);E.assert(Ur);const Tr=st.initializer.expression;rge(Ur,Tr,qt)}}else{E.assert(st.kind===293),h.size>0&&(x=Y2(x,Re(),l.symbol,Z,!1),h=Bs());const qt=Id(Hi(st.expression,a&2));ht(qt)&&(N=!0),yj(qt)?(x=Y2(x,qt,l.symbol,Z,!1),m&&SNe(qt,m,st)):(Me(st.expression,p.Spread_types_may_only_be_created_from_object_types),L=L?Xs([L,qt]):qt)}}N||h.size>0&&(x=Y2(x,Re(),l.symbol,Z,!1));const _e=r.parent.kind===284?r.parent:void 0;if(_e&&_e.openingElement===r&&hC(_e.children).length>0){const st=VZ(_e,a);if(!N&&de&&de!==""){z&&Me(l,p._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,xi(de));const gt=Av(r.attributes,void 0),qt=gt&&wv(gt,de),$t=xa(4,de);$t.links.type=st.length===1?st[0]:qt&&ad(qt,UP)?ig(st):pu(Bn(st)),$t.valueDeclaration=I.createPropertySignature(void 0,xi(de),void 0,void 0),ba($t.valueDeclaration,l),$t.valueDeclaration.symbol=$t;const Ur=Bs();Ur.set(de,$t),x=Y2(x,ao(l.symbol,Ur,Ve,Ve,Ve),l.symbol,Z,!1)}}if(N)return B;if(L&&x!==Wo)return Xs([L,x]);return L||(x===Wo?Re():x);function Re(){Z|=me;const st=ao(l.symbol,h,Ve,Ve,Ve);return st.objectFlags|=Z|128|131072,st}}function VZ(r,a){const l=[];for(const _ of r.children)if(_.kind===12)_.containsOnlyTriviaWhiteSpaces||l.push(Ce);else{if(_.kind===294&&!_.expression)continue;l.push(tD(_,a))}return l}function SNe(r,a,l){for(const _ of Ua(r))if(!(_.flags&16777216)){const m=a.get(_.escapedName);if(m){const h=Me(m.valueDeclaration,p._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,xi(m.escapedName));la(h,yn(l,p.This_spread_always_overwrites_this_property))}}}function hat(r,a){return gat(r.parent,a)}function ib(r,a){const l=cT(a),_=l&&Q_(l),m=_&&m_(_,r,788968);return m?Po(m):nt}function UZ(r){const a=jn(r);if(!a.resolvedSymbol){const l=ib(Cf.IntrinsicElements,r);if(Ot(l))return ae&&Me(r,p.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,xi(Cf.IntrinsicElements)),a.resolvedSymbol=tt;{if(!Ie(r.tagName)&&!hd(r.tagName))return E.fail();const _=hd(r.tagName)?GT(r.tagName):r.tagName.escapedText,m=$s(l,_);if(m)return a.jsxFlags|=1,a.resolvedSymbol=m;const h=X7e(l,h_(xi(_)));return h?(a.jsxFlags|=2,a.resolvedSymbol=h):dt(l,_)?(a.jsxFlags|=2,a.resolvedSymbol=l.symbol):(Me(r,p.Property_0_does_not_exist_on_type_1,VW(r.tagName),"JSX."+Cf.IntrinsicElements),a.resolvedSymbol=tt)}}return a.resolvedSymbol}function jge(r){const a=r&&wr(r),l=a&&jn(a);if(l&&l.jsxImplicitImportContainer===!1)return;if(l&&l.jsxImplicitImportContainer)return l.jsxImplicitImportContainer;const _=fF(_F(j,a),j);if(!_)return;const h=Ru(j)===1?p.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:p.Cannot_find_module_0_or_its_corresponding_type_declarations,x=j.importHelpers?1:0,N=a==null?void 0:a.imports[x];N&&E.assert(ko(N)&&N.text===_,`Expected sourceFile.imports[${x}] to be the synthesized JSX runtime import`);const L=lm(N||r,_,h,r),z=L&&L!==tt?Na(mc(L)):void 0;return l&&(l.jsxImplicitImportContainer=z||!1),z}function cT(r){const a=r&&jn(r);if(a&&a.jsxNamespace)return a.jsxNamespace;if(!a||a.jsxNamespace!==!1){let _=jge(r);if(!_||_===tt){const m=rv(r);_=Go(r,m,1920,void 0,m,!1)}if(_){const m=mc(m_(Q_(mc(_)),Cf.JSX,1920));if(m&&m!==tt)return a&&(a.jsxNamespace=m),m}a&&(a.jsxNamespace=!1)}const l=mc(BP(Cf.JSX,1920,void 0));if(l!==tt)return l}function TNe(r,a){const l=a&&m_(a.exports,r,788968),_=l&&Po(l),m=_&&Ua(_);if(m){if(m.length===0)return"";if(m.length===1)return m[0].escapedName;m.length>1&&l.declarations&&Me(l.declarations[0],p.The_global_type_JSX_0_may_not_have_more_than_one_property,xi(r))}}function yat(r){return r&&m_(r.exports,Cf.LibraryManagedAttributes,788968)}function vat(r){return r&&m_(r.exports,Cf.ElementType,788968)}function bat(r){return TNe(Cf.ElementAttributesPropertyNameContainer,r)}function vj(r){return TNe(Cf.ElementChildrenAttributeNameContainer,r)}function xNe(r,a){if(r.flags&4)return[lt];if(r.flags&128){const m=kNe(r,a);return m?[eK(a,m)]:(Me(a,p.Property_0_does_not_exist_on_type_1,r.value,"JSX."+Cf.IntrinsicElements),Ve)}const l=n_(r);let _=Es(l,1);return _.length===0&&(_=Es(l,0)),_.length===0&&l.flags&1048576&&(_=Lde(nr(l.types,m=>xNe(m,a)))),_}function kNe(r,a){const l=ib(Cf.IntrinsicElements,a);if(!Ot(l)){const _=r.value,m=$s(l,Vo(_));if(m)return Xr(m);const h=bv(l,Ce);return h||void 0}return B}function Sat(r,a,l){if(r===1){const m=PNe(l);m&&cp(a,m,d_,l.tagName,p.Its_return_type_0_is_not_a_valid_JSX_element,_)}else if(r===0){const m=ENe(l);m&&cp(a,m,d_,l.tagName,p.Its_instance_type_0_is_not_a_valid_JSX_element,_)}else{const m=PNe(l),h=ENe(l);if(!m||!h)return;const x=Bn([m,h]);cp(a,x,d_,l.tagName,p.Its_element_type_0_is_not_a_valid_JSX_element,_)}function _(){const m=jc(l.tagName);return vs(void 0,p._0_cannot_be_used_as_a_JSX_component,m)}}function CNe(r){var a;E.assert(bk(r.tagName));const l=jn(r);if(!l.resolvedJsxElementAttributesType){const _=UZ(r);if(l.jsxFlags&1)return l.resolvedJsxElementAttributesType=Xr(_)||nt;if(l.jsxFlags&2){const m=hd(r.tagName)?GT(r.tagName):r.tagName.escapedText;return l.resolvedJsxElementAttributesType=((a=dk(ib(Cf.IntrinsicElements,r),m))==null?void 0:a.type)||nt}else return l.resolvedJsxElementAttributesType=nt}return l.resolvedJsxElementAttributesType}function ENe(r){const a=ib(Cf.ElementClass,r);if(!Ot(a))return a}function bj(r){return ib(Cf.Element,r)}function PNe(r){const a=bj(r);if(a)return Bn([a,ce])}function Tat(r){const a=cT(r);if(!a)return;const l=vat(a);if(!l)return;const _=DNe(l,Hr(r));if(!(!_||Ot(_)))return _}function DNe(r,a,...l){const _=Po(r);if(r.flags&524288){const m=wi(r).typeParameters;if(mr(m)>=l.length){const h=Qy(l,m,l.length,a);return mr(h)===0?_:y4(r,h)}}if(mr(_.typeParameters)>=l.length){const m=Qy(l,_.typeParameters,l.length,a);return P0(_,m)}}function xat(r){const a=ib(Cf.IntrinsicElements,r);return a?Ua(a):Ve}function kat(r){(j.jsx||0)===0&&Me(r,p.Cannot_use_JSX_unless_the_jsx_flag_is_provided),bj(r)===void 0&&ae&&Me(r,p.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function Bge(r){const a=Fu(r);if(a&&hft(r),kat(r),!jge(r)){const l=wa&&j.jsx===2?p.Cannot_find_name_0:void 0,_=rv(r),m=a?r.tagName:r;let h;if(px(r)&&_==="null"||(h=Go(m,_,111551,l,_,!0)),h&&(h.isReferenced=-1,pt&&h.flags&2097152&&!tp(h)&&Ly(h)),px(r)){const x=wr(r),N=Zx(x);N&&Go(m,N,111551,l,N,!0)}}if(a){const l=r,_=D4(l);rK(_,r);const m=Tat(l);if(m!==void 0){const h=l.tagName,x=bk(h)?h_(VW(h)):Hi(h);cp(x,m,d_,h,p.Its_type_0_is_not_a_valid_JSX_element_type,()=>{const N=jc(h);return vs(void 0,p._0_cannot_be_used_as_a_JSX_component,N)})}else Sat(ZNe(l),Ja(_),l)}}function Jge(r,a,l){if(r.flags&524288){if(vv(r,a)||dk(r,a)||aI(a)&&zg(r,Ce)||l&&Rge(a))return!0}else if(r.flags&3145728&&Sj(r)){for(const _ of r.types)if(Jge(_,a,l))return!0}return!1}function Sj(r){return!!(r.flags&524288&&!(bn(r)&512)||r.flags&67108864||r.flags&1048576&&ct(r.types,Sj)||r.flags&2097152&&Wi(r.types,Sj))}function Cat(r,a){if(vft(r),r.expression){const l=Hi(r.expression,a);return r.dotDotDotToken&&l!==B&&!lp(l)&&Me(r,p.JSX_spread_child_must_be_an_array_type),l}else return nt}function zge(r){return r.valueDeclaration?lb(r.valueDeclaration):0}function Wge(r){if(r.flags&8192||Ko(r)&4)return!0;if(Hr(r.valueDeclaration)){const a=r.valueDeclaration.parent;return a&&Zr(a)&&fc(a)===3}}function Vge(r,a,l,_,m,h=!0){const x=h?r.kind===166?r.right:r.kind===205?r:r.kind===208&&r.propertyName?r.propertyName:r.name:void 0;return wNe(r,a,l,_,m,x)}function wNe(r,a,l,_,m,h){var x;const N=qf(m,l);if(a){if(re<2&&ANe(m))return h&&Me(h,p.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(N&64)return h&&Me(h,p.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,ni(m),Ar(vk(m))),!1;if(!(N&256)&&((x=m.declarations)!=null&&x.some(ete)))return h&&Me(h,p.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super,ni(m)),!1}if(N&64&&ANe(m)&&(y8(r)||Zte(r)||xp(r.parent)&&T5(r.parent.parent))){const z=rh(e_(m));if(z&&g_t(r))return h&&Me(h,p.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,ni(m),hp(z.name)),!1}if(!(N&6))return!0;if(N&2){const z=rh(e_(m));return qhe(r,z)?!0:(h&&Me(h,p.Property_0_is_private_and_only_accessible_within_class_1,ni(m),Ar(vk(m))),!1)}if(a)return!0;let L=G7e(r,z=>{const Z=Po(un(z));return iAe(Z,m,l)});return!L&&(L=Eat(r),L=L&&iAe(L,m,l),N&256||!L)?(h&&Me(h,p.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,ni(m),Ar(vk(m)||_)),!1):N&256?!0:(_.flags&262144&&(_=_.isThisType?r_(_):fu(_)),!_||!f4(_,L)?(h&&Me(h,p.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,ni(m),Ar(L),Ar(_)),!1):!0)}function Eat(r){const a=Pat(r);let l=(a==null?void 0:a.type)&&ii(a.type);if(l&&l.flags&262144&&(l=r_(l)),l&&bn(l)&7)return C0(l)}function Pat(r){const a=a_(r,!1,!1);return a&&As(a)?Xv(a):void 0}function ANe(r){return!!rj(r,a=>!(a.flags&8192))}function E4(r){return mm(Hi(r),r)}function Tj(r){return Ip(r,50331648)}function Uge(r){return Tj(r)?Lh(r):r}function Dat(r,a){const l=pc(r)?L_(r):void 0;if(r.kind===106){Me(r,p.The_value_0_cannot_be_used_here,"null");return}if(l!==void 0&&l.length<100){if(Ie(r)&&l==="undefined"){Me(r,p.The_value_0_cannot_be_used_here,"undefined");return}Me(r,a&16777216?a&33554432?p._0_is_possibly_null_or_undefined:p._0_is_possibly_undefined:p._0_is_possibly_null,l)}else Me(r,a&16777216?a&33554432?p.Object_is_possibly_null_or_undefined:p.Object_is_possibly_undefined:p.Object_is_possibly_null)}function wat(r,a){Me(r,a&16777216?a&33554432?p.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:p.Cannot_invoke_an_object_which_is_possibly_undefined:p.Cannot_invoke_an_object_which_is_possibly_null)}function NNe(r,a,l){if(q&&r.flags&2){if(pc(a)){const m=L_(a);if(m.length<100)return Me(a,p._0_is_of_type_unknown,m),nt}return Me(a,p.Object_is_of_type_unknown),nt}const _=GP(r,50331648);if(_&50331648){l(a,_);const m=Lh(r);return m.flags&229376?nt:m}return r}function mm(r,a){return NNe(r,a,Dat)}function INe(r,a){const l=mm(r,a);if(l.flags&16384){if(pc(a)){const _=L_(a);if(Ie(a)&&_==="undefined")return Me(a,p.The_value_0_cannot_be_used_here,_),l;if(_.length<100)return Me(a,p._0_is_possibly_undefined,_),l}Me(a,p.Object_is_possibly_undefined)}return l}function qZ(r,a,l){return r.flags&64?Aat(r,a):Hge(r,r.expression,E4(r.expression),r.name,a,l)}function Aat(r,a){const l=Hi(r.expression),_=xI(l,r.expression);return bZ(Hge(r,r.expression,mm(_,r.expression),r.name,a),r,_!==l)}function FNe(r,a){const l=E5(r)&&Yv(r.left)?mm(mj(r.left),r.left):E4(r.left);return Hge(r,r.left,l,r.right,a)}function ONe(r){for(;r.parent.kind===217;)r=r.parent;return Jd(r.parent)&&r.parent.expression===r}function HZ(r,a){for(let l=b5(a);l;l=Nl(l)){const{symbol:_}=l,m=z8(_,r),h=_.members&&_.members.get(m)||_.exports&&_.exports.get(m);if(h)return h}}function Nat(r){if(!Nl(r))return or(r,p.Private_identifiers_are_not_allowed_outside_class_bodies);if(!kO(r.parent)){if(!hg(r))return or(r,p.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);const a=Zr(r.parent)&&r.parent.operatorToken.kind===103;if(!GZ(r)&&!a)return or(r,p.Cannot_find_name_0,on(r))}return!1}function Iat(r){Nat(r);const a=GZ(r);return a&&kj(a,void 0,!1),B}function GZ(r){if(!hg(r))return;const a=jn(r);return a.resolvedSymbol===void 0&&(a.resolvedSymbol=HZ(r.escapedText,r)),a.resolvedSymbol}function qge(r,a){return $s(r,a.escapedName)}function Fat(r,a,l){let _;const m=Ua(r);m&&rr(m,x=>{const N=x.valueDeclaration;if(N&&Nu(N)&&Pi(N.name)&&N.name.escapedText===a.escapedText)return _=x,!0});const h=Kp(a);if(_){const x=E.checkDefined(_.valueDeclaration),N=E.checkDefined(Nl(x));if(l!=null&&l.valueDeclaration){const L=l.valueDeclaration,z=Nl(L);if(E.assert(!!z),Pr(z,Z=>N===Z)){const Z=Me(a,p.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,h,Ar(r));return la(Z,yn(L,p.The_shadowing_declaration_of_0_is_defined_here,h),yn(x,p.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,h)),!0}}return Me(a,p.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,h,Kp(N.name||f9)),!0}return!1}function LNe(r,a){return(l4(a)||y8(r)&&AP(a))&&a_(r,!0,!1)===NP(a)}function Hge(r,a,l,_,m,h){const x=jn(a).resolvedSymbol,N=RT(r),L=n_(N!==0||ONe(r)?gf(l):l),z=ht(L)||L===Qi;let Z;if(Pi(_)){re<99&&(N!==0&&el(r,1048576),N!==1&&el(r,524288));const _e=HZ(_.escapedText,_);if(N&&_e&&_e.valueDeclaration&&hc(_e.valueDeclaration)&&or(_,p.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,on(_)),z){if(_e)return Ot(L)?nt:L;if(b5(_)===void 0)return or(_,p.Private_identifiers_are_not_allowed_outside_class_bodies),B}if(Z=_e&&qge(l,_e),Z===void 0){if(Fat(l,_,_e))return nt;const Re=b5(_);Re&&o8(wr(Re),j.checkJs)&&or(_,p.Private_field_0_must_be_declared_in_an_enclosing_class,on(_))}else Z.flags&65536&&!(Z.flags&32768)&&N!==1&&Me(r,p.Private_accessor_was_defined_without_a_getter)}else{if(z)return Ie(a)&&x&&RZ(x,r),Ot(L)?nt:L;Z=$s(L,_.escapedText,sK(L),r.kind===166)}Ie(a)&&x&&(Tp(j)||!(Z&&(UI(Z)||Z.flags&8&&r.parent.kind===306))||n2(j)&&eNe(r))&&RZ(x,r);let de;if(Z){const _e=Whe(Z,_);if(Dy(_e)&&kme(r,_e)&&_e.declarations&&S0(_,_e.declarations,_.escapedText),Oat(Z,r,_),kj(Z,r,WNe(a,x)),jn(r).resolvedSymbol=Z,Vge(r,a.kind===108,WT(r),L,Z),NIe(r,Z,N))return Me(_,p.Cannot_assign_to_0_because_it_is_a_read_only_property,on(_)),nt;de=LNe(r,Z)?Ge:h||rF(r)?G2(Z):Xr(Z)}else{const _e=!Pi(_)&&(N===0||!ZS(l)||ZE(l))?dk(L,_.escapedText):void 0;if(!(_e&&_e.type)){const Re=Gge(r,l.symbol,!0);return!Re&&dI(l)?B:l.symbol===$e?($e.exports.has(_.escapedText)&&$e.exports.get(_.escapedText).flags&418?Me(_,p.Property_0_does_not_exist_on_type_1,xi(_.escapedText),Ar(l)):ae&&Me(_,p.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,Ar(l)),B):(_.escapedText&&!CS(r)&&jNe(_,ZE(l)?L:l,Re),nt)}_e.isReadonly&&(vg(r)||Hz(r))&&Me(r,p.Index_signature_in_type_0_only_permits_reading,Ar(L)),de=j.noUncheckedIndexedAccess&&!vg(r)?Bn([_e.type,A]):_e.type,j.noPropertyAccessFromIndexSignature&&Sn(r)&&Me(_,p.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,xi(_.escapedText)),_e.declaration&&b0(_e.declaration)&&S0(_,[_e.declaration],_.escapedText)}return MNe(r,Z,de,_,m)}function Gge(r,a,l){var _;const m=wr(r);if(m&&j.checkJs===void 0&&m.checkJsDirective===void 0&&(m.scriptKind===1||m.scriptKind===2)){const h=rr(a==null?void 0:a.declarations,wr),x=!(a!=null&&a.valueDeclaration)||!$n(a.valueDeclaration)||((_=a.valueDeclaration.heritageClauses)==null?void 0:_.length)||Qh(!1,a.valueDeclaration);return!(m!==h&&h&&Gm(h))&&!(l&&a&&a.flags&32&&x)&&!(r&&l&&Sn(r)&&r.expression.kind===110&&x)}return!1}function MNe(r,a,l,_,m){const h=RT(r);if(h===1)return s1(l,!!(a&&a.flags&16777216));if(a&&!(a.flags&98311)&&!(a.flags&8192&&l.flags&1048576)&&!bK(a.declarations))return l;if(l===Ge)return u4(r,a);l=Tge(l,r,m);let x=!1;if(q&&Se&&co(r)&&r.expression.kind===110){const L=a&&a.valueDeclaration;if(L&&O7e(L)&&!Ms(L)){const z=wI(r);z.kind===176&&z.parent===L.parent&&!(L.flags&33554432)&&(x=!0)}}else q&&a&&a.valueDeclaration&&Sn(a.valueDeclaration)&&D8(a.valueDeclaration)&&wI(r)===wI(a.valueDeclaration)&&(x=!0);const N=a1(r,l,x?i1(l):l);return x&&!zP(l)&&zP(N)?(Me(_,p.Property_0_is_used_before_being_assigned,ni(a)),l):h?Oh(N):N}function Oat(r,a,l){const{valueDeclaration:_}=r;if(!_||wr(a).isDeclarationFile)return;let m;const h=on(l);RNe(a)&&!Ttt(_)&&!(co(a)&&co(a.expression))&&!yh(_,l)&&!(hc(_)&&wK(_)&256)&&(ue||!Lat(r))?m=Me(l,p.Property_0_is_used_before_its_initialization,h):_.kind===263&&a.parent.kind!==183&&!(_.flags&33554432)&&!yh(_,l)&&(m=Me(l,p.Class_0_used_before_its_declaration,h)),m&&la(m,yn(_,p._0_is_declared_here,h))}function RNe(r){return!!Pr(r,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 Cs(a.parent)&&ec(a.parent.parent)?!0:"quit";default:return hg(a)?!1:"quit"}})}function Lat(r){if(!(r.parent.flags&32))return!1;let a=Xr(r.parent);for(;;){if(a=a.symbol&&Mat(a),!a)return!1;const l=$s(a,r.escapedName);if(l&&l.valueDeclaration)return!0}}function Mat(r){const a=Z_(r);if(a.length!==0)return Xs(a)}function jNe(r,a,l){let _,m;if(!Pi(r)&&a.flags&1048576&&!(a.flags&402784252)){for(const x of a.types)if(!$s(x,r.escapedText)&&!dk(x,r.escapedText)){_=vs(_,p.Property_0_does_not_exist_on_type_1,eo(r),Ar(x));break}}if(BNe(r.escapedText,a)){const x=eo(r),N=Ar(a);_=vs(_,p.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,x,N,N+"."+x)}else{const x=jI(a);if(x&&$s(x,r.escapedText))_=vs(_,p.Property_0_does_not_exist_on_type_1,eo(r),Ar(a)),m=yn(r,p.Did_you_forget_to_use_await);else{const N=eo(r),L=Ar(a),z=Bat(N,a);if(z!==void 0)_=vs(_,p.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,N,L,z);else{const Z=$ge(r,a);if(Z!==void 0){const de=Xo(Z),_e=l?p.Property_0_may_not_exist_on_type_1_Did_you_mean_2:p.Property_0_does_not_exist_on_type_1_Did_you_mean_2;_=vs(_,_e,N,L,de),m=Z.valueDeclaration&&yn(Z.valueDeclaration,p._0_is_declared_here,de)}else{const de=Rat(a)?p.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:p.Property_0_does_not_exist_on_type_1;_=vs(qde(_,a),de,N,L)}}}}const h=Zg(wr(r),r,_);m&&la(h,m),xd(!l||_.code!==p.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,h)}function Rat(r){return j.lib&&!j.lib.includes("dom")&&Xit(r,a=>a.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(xi(a.symbol.escapedName)))&&Fh(r)}function BNe(r,a){const l=a.symbol&&$s(Xr(a.symbol),r);return l!==void 0&&!!l.valueDeclaration&&Ms(l.valueDeclaration)}function jat(r){const a=Kp(r),_=AF().get(a);return _&&cB(_.keys())}function Bat(r,a){const l=n_(a).symbol;if(!l)return;const _=Xo(l),h=AF().get(_);if(h){for(const[x,N]of h)if(bs(N,r))return x}}function JNe(r,a){return xj(r,Ua(a),106500)}function $ge(r,a){let l=Ua(a);if(typeof r!="string"){const _=r.parent;Sn(_)&&(l=An(l,m=>VNe(_,a,m))),r=on(r)}return xj(r,l,111551)}function zNe(r,a){const l=ls(r)?r:on(r),_=Ua(a);return(l==="for"?wn(_,h=>Xo(h)==="htmlFor"):l==="class"?wn(_,h=>Xo(h)==="className"):void 0)??xj(l,_,111551)}function Xge(r,a){const l=$ge(r,a);return l&&Xo(l)}function Qge(r,a,l){return E.assert(a!==void 0,"outername should always be defined"),_f(r,a,l,void 0,a,!1,!1,!0,(m,h,x)=>{E.assertEqual(a,h,"name should equal outerName");const N=m_(m,h,x);if(N)return N;let L;return m===ge?L=Ri(["string","number","boolean","object","bigint","symbol"],Z=>m.has(Z.charAt(0).toUpperCase()+Z.slice(1))?xa(524288,Z):void 0).concat(gs(m.values())):L=gs(m.values()),xj(xi(h),L,x)})}function Jat(r,a,l){const _=Qge(r,a,l);return _&&Xo(_)}function $Z(r,a){return a.exports&&xj(on(r),MS(a),2623475)}function zat(r,a){const l=$Z(r,a);return l&&Xo(l)}function Wat(r,a,l){function _(x){const N=vv(r,x);if(N){const L=uT(Xr(N));return!!L&&ym(L)>=1&&Qs(l,Ld(L,0))}return!1}const m=vg(a)?"set":"get";if(!_(m))return;let h=Q8(a.expression);return h===void 0?h=m:h+="."+m,h}function Vat(r,a){const l=a.types.filter(_=>!!(_.flags&128));return U4(r.value,l,_=>_.value)}function xj(r,a,l){return U4(r,a,_);function _(m){const h=Xo(m);if(!Vi(h,'"')){if(m.flags&l)return h;if(m.flags&2097152){const x=FS(m);if(x&&x.flags&l)return h}}}}function kj(r,a,l){const _=r&&r.flags&106500&&r.valueDeclaration;if(!_)return;const m=R_(_,2),h=r.valueDeclaration&&Nu(r.valueDeclaration)&&Pi(r.valueDeclaration.name);if(!(!m&&!h)&&!(a&&rF(a)&&!(r.flags&65536))){if(l){const x=Pr(a,po);if(x&&x.symbol===r)return}(Ko(r)&1?wi(r).target:r).isReferenced=-1}}function WNe(r,a){return r.kind===110||!!a&&pc(r)&&a===sd(lf(r))}function Uat(r,a){switch(r.kind){case 211:return Yge(r,r.expression.kind===108,a,gf(Hi(r.expression)));case 166:return Yge(r,!1,a,gf(Hi(r.left)));case 205:return Yge(r,!1,a,ii(r))}}function VNe(r,a,l){return Zge(r,r.kind===211&&r.expression.kind===108,!1,a,l)}function Yge(r,a,l,_){if(ht(_))return!0;const m=$s(_,l);return!!m&&Zge(r,a,!1,_,m)}function Zge(r,a,l,_,m){if(ht(_))return!0;if(m.valueDeclaration&&Iu(m.valueDeclaration)){const h=Nl(m.valueDeclaration);return!hu(r)&&!!Pr(r,x=>x===h)}return wNe(r,a,l,_,m)}function qat(r){const a=r.initializer;if(a.kind===261){const l=a.declarations[0];if(l&&!Ns(l.name))return un(l)}else if(a.kind===80)return sd(a)}function Hat(r){return Wu(r).length===1&&!!zg(r,_t)}function Gat(r){const a=Va(r);if(a.kind===80){const l=sd(a);if(l.flags&3){let _=r,m=r.parent;for(;m;){if(m.kind===249&&_===m.statement&&qat(m)===l&&Hat(Yl(m.expression)))return!0;_=m,m=m.parent}}}return!1}function $at(r,a){return r.flags&64?Xat(r,a):UNe(r,E4(r.expression),a)}function Xat(r,a){const l=Hi(r.expression),_=xI(l,r.expression);return bZ(UNe(r,mm(_,r.expression),a),r,_!==l)}function UNe(r,a,l){const _=RT(r)!==0||ONe(r)?gf(a):a,m=r.argumentExpression,h=Hi(m);if(Ot(_)||_===Qi)return _;if(sK(_)&&!Ma(m))return Me(m,p.A_const_enum_member_can_only_be_accessed_using_a_string_literal),nt;const x=Gat(m)?_t:h,N=vg(r)?4|(ZS(_)&&!ZE(_)?2:0):32,L=Zy(_,x,N,r)||nt;return ZIe(MNe(r,jn(r).resolvedSymbol,L,m,l),r)}function qNe(r){return Jd(r)||o2(r)||Fu(r)}function lT(r){return qNe(r)&&rr(r.typeArguments,ia),r.kind===215?Hi(r.template):Fu(r)?Hi(r.attributes):Zr(r)?Hi(r.left):Jd(r)&&rr(r.arguments,a=>{Hi(a)}),lt}function gm(r){return lT(r),Xt}function Qat(r,a,l){let _,m,h=0,x,N=-1,L;E.assert(!a.length);for(const z of r){const Z=z.declaration&&un(z.declaration),de=z.declaration&&z.declaration.parent;!m||Z===m?_&&de===_?x=x+1:(_=de,x=h):(x=h=a.length,_=de),m=Z,UU(z)?(N++,L=N,h++):L=x,a.splice(L,0,l?Uet(z,l):z)}}function XZ(r){return!!r&&(r.kind===230||r.kind===237&&r.isSpread)}function QZ(r){return vc(r,XZ)}function HNe(r){return!!(r.flags&16384)}function Yat(r){return!!(r.flags&49155)}function YZ(r,a,l,_=!1){let m,h=!1,x=hf(l),N=ym(l);if(r.kind===215)if(m=a.length,r.template.kind===228){const L=ka(r.template.templateSpans);h=_c(L.literal)||!!L.literal.isUnterminated}else{const L=r.template;E.assert(L.kind===15),h=!!L.isUnterminated}else if(r.kind===170)m=eIe(r,l);else if(r.kind===226)m=1;else if(Fu(r)){if(h=r.attributes.end===r.end,h)return!0;m=N===0?a.length:1,x=a.length===0?x:1,N=Math.min(N,1)}else if(r.arguments){m=_?a.length+1:a.length,h=r.arguments.end===r.end;const L=QZ(a);if(L>=0)return L>=ym(l)&&(ag(l)||Lx)return!1;if(h||m>=N)return!0;for(let L=m;L=_&&a.length<=l}function GNe(r,a){let l;return!!(r.target&&(l=sb(r.target,a))&&S4(l))}function uT(r){return II(r,0,!1)}function $Ne(r){return II(r,0,!1)||II(r,1,!1)}function II(r,a,l){if(r.flags&524288){const _=Nd(r);if(l||_.properties.length===0&&_.indexInfos.length===0){if(a===0&&_.callSignatures.length===1&&_.constructSignatures.length===0)return _.callSignatures[0];if(a===1&&_.constructSignatures.length===1&&_.callSignatures.length===0)return _.constructSignatures[0]}}}function XNe(r,a,l,_){const m=EI(r.typeParameters,r,0,_),h=FI(a),x=l&&(h&&h.flags&262144?l.nonFixingMapper:l.mapper),N=x?x4(a,x):a;return Kme(N,r,(L,z)=>{Mh(m.inferences,L,z)}),l||ege(a,r,(L,z)=>{Mh(m.inferences,L,z,128)}),uI(r,fge(m),Hr(a.declaration))}function Zat(r,a,l,_){const m=WZ(a,r),h=w4(r.attributes,m,_,l);return Mh(_.inferences,h,m),fge(_)}function QNe(r){if(!r)return Wr;const a=Hi(r);return Fre(r)?a:nE(r.parent)?Lh(a):hu(r.parent)?vZ(a):a}function ehe(r,a,l,_,m){if(Fu(r))return Zat(r,a,_,m);if(r.kind!==170&&r.kind!==226){const L=Wi(a.typeParameters,Z=>!!$S(Z)),z=y_(r,L?8:0);if(z){const Z=Ja(a);if(Pv(Z)){const de=nb(r);if(!(!L&&y_(r,8)!==z)){const gt=ige(_it(de,1)),qt=zi(z,gt),$t=uT(qt),Ur=$t&&$t.typeParameters?XS(Zde($t,$t.typeParameters)):qt;Mh(m.inferences,Ur,Z,128)}const Re=EI(a.typeParameters,a,m.flags),st=zi(z,de&&de.returnMapper);Mh(Re.inferences,st,Z),m.returnMapper=ct(Re.inferences,A4)?ige(mit(Re)):void 0}}}const h=OI(a),x=h?Math.min(hf(a)-1,l.length):l.length;if(h&&h.flags&262144){const L=wn(m.inferences,z=>z.typeParameter===h);L&&(L.impliedArity=vc(l,XZ,x)<0?l.length-x:void 0)}const N=Sv(a);if(N&&Pv(N)){const L=KNe(r);Mh(m.inferences,QNe(L),N)}for(let L=0;L=l-1){const Z=r[l-1];if(XZ(Z)){const de=Z.kind===237?Z.type:w4(Z.expression,_,m,h);return N0(de)?YNe(de):pu(F0(33,de,Pe,Z.kind===230?Z.expression:Z),x)}}const N=[],L=[],z=[];for(let Z=a;Zvs(void 0,p.Type_0_does_not_satisfy_the_constraint_1):void 0,de=_||p.Type_0_does_not_satisfy_the_constraint_1;N||(N=ef(h,x));const _e=x[L];if(!Pu(_e,mf(zi(z,N),_e),l?a[L]:void 0,de,Z))return}}return x}function ZNe(r){if(bk(r.tagName))return 2;const a=n_(Hi(r.tagName));return mr(Es(a,1))?0:mr(Es(a,0))?1:2}function Kat(r,a,l,_,m,h,x){const N=WZ(a,r),L=w4(r.attributes,N,void 0,_),z=_&4?CI(L):L;return Z()&&jme(z,N,l,m?r.tagName:void 0,r.attributes,void 0,h,x);function Z(){var de;if(jge(r))return!0;const _e=(Zd(r)||$b(r))&&!(bk(r.tagName)||hd(r.tagName))?Hi(r.tagName):void 0;if(!_e)return!0;const Re=Es(_e,0);if(!mr(Re))return!0;const st=s5e(r);if(!st)return!0;const gt=vo(st,111551,!0,!1,r);if(!gt)return!0;const qt=Xr(gt),$t=Es(qt,0);if(!mr($t))return!0;let Ur=!1,Tr=0;for(const Cr of $t){const kr=Ld(Cr,0),Br=Es(kr,0);if(mr(Br))for(const Ir of Br){if(Ur=!0,ag(Ir))return!0;const Jr=hf(Ir);Jr>Tr&&(Tr=Jr)}}if(!Ur)return!0;let Gt=1/0;for(const Cr of Re){const kr=ym(Cr);kr{m.push(h.expression)}),m}if(r.kind===170)return eot(r);if(r.kind===226)return[r.left];if(Fu(r))return r.attributes.properties.length>0||Zd(r)&&r.parent.children.length>0?[r.attributes]:Ve;const a=r.arguments||Ve,l=QZ(a);if(l>=0){const _=a.slice(0,l);for(let m=l;m{var z;const Z=x.target.elementFlags[L],de=Ej(h,Z&4?pu(N):N,!!(Z&12),(z=x.target.labeledElementDeclarations)==null?void 0:z[L]);_.push(de)}):_.push(h)}return _}return a}function eot(r){const a=r.expression,l=dhe(r);if(l){const _=[];for(const m of l.parameters){const h=Xr(m);_.push(Ej(a,h))}return _}return E.fail()}function eIe(r,a){return j.experimentalDecorators?tot(r,a):2}function tot(r,a){switch(r.parent.kind){case 263:case 231:return 1;case 172:return Hd(r.parent)?3:2;case 174:case 177:case 178:return re===0||a.parameters.length<=2?2:3;case 169:return 3;default:return E.fail()}}function tIe(r){const a=wr(r),{start:l,length:_}=Cb(a,Sn(r.expression)?r.expression.name:r.expression);return{start:l,length:_,sourceFile:a}}function Pj(r,a,...l){if(Rs(r)){const{sourceFile:_,start:m,length:h}=tIe(r);return"message"in a?xl(_,m,h,a,...l):Dz(_,a)}else return"message"in a?yn(r,a,...l):Zg(wr(r),r,a)}function rot(r){return Jd(r)?Sn(r.expression)?r.expression.name:r.expression:o2(r)?Sn(r.tag)?r.tag.name:r.tag:Fu(r)?r.tagName:r}function not(r){if(!Rs(r)||!Ie(r.expression))return!1;const a=Go(r.expression,r.expression.escapedText,111551,void 0,void 0,!1),l=a==null?void 0:a.valueDeclaration;if(!l||!rs(l)||!t2(l.parent)||!a2(l.parent.parent)||!Ie(l.parent.parent.expression))return!1;const _=_me(!1);return _?od(l.parent.parent.expression,!0)===_:!1}function rIe(r,a,l,_){var m;const h=QZ(l);if(h>-1)return yn(l[h],p.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);let x=Number.POSITIVE_INFINITY,N=Number.NEGATIVE_INFINITY,L=Number.NEGATIVE_INFINITY,z=Number.POSITIVE_INFINITY,Z;for(const gt of a){const qt=ym(gt),$t=hf(gt);qtL&&(L=qt),l.length<$t&&$tm?x=Math.min(x,L):z1&&(Tr=kr(_e,Hm,st,Gt)),Tr||(Tr=kr(_e,d_,st,Gt)),Tr)return Tr;if(Tr=sot(r,_e,Re,!!l,_),jn(r).resolvedSignature=Tr,Z)if(!h&&z&&(h=p.The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method),qt)if(qt.length===1||qt.length>3){const Br=qt[qt.length-1];let Ir;qt.length>3&&(Ir=vs(Ir,p.The_last_overload_gave_the_following_error),Ir=vs(Ir,p.No_overload_matches_this_call)),h&&(Ir=vs(Ir,h));const Jr=Cj(r,Re,Br,d_,0,!0,()=>Ir);if(Jr)for(const ss of Jr)Br.declaration&&qt.length>3&&la(ss,yn(Br.declaration,p.The_last_overload_is_declared_here)),Cr(Br,ss),wa.add(ss);else E.fail("No error for last overload signature")}else{const Br=[];let Ir=0,Jr=Number.MAX_VALUE,ss=0,Ki=0;for(const I_ of qt){const jr=Cj(r,Re,I_,d_,0,!0,()=>vs(void 0,p.Overload_0_of_1_2_gave_the_following_error,Ki+1,_e.length,Ym(I_)));jr?(jr.length<=Jr&&(Jr=jr.length,ss=Ki),Ir=Math.max(Ir,jr.length),Br.push(jr)):E.fail("No error for 3 or fewer overload signatures"),Ki++}const hs=Ir>1?Br[ss]:Op(Br);E.assert(hs.length>0,"No errors reported for 3 or fewer overload signatures");let Gi=vs(nr(hs,Rte),p.No_overload_matches_this_call);h&&(Gi=vs(Gi,h));const tl=[...Zs(hs,I_=>I_.relatedInformation)];let up;if(Wi(hs,I_=>I_.start===hs[0].start&&I_.length===hs[0].length&&I_.file===hs[0].file)){const{file:I_,start:Sr,length:jr}=hs[0];up={file:I_,start:Sr,length:jr,code:Gi.code,category:Gi.category,messageText:Gi,relatedInformation:tl}}else up=Zg(wr(r),rot(r),Gi,tl);Cr(qt[0],up),wa.add(up)}else if($t)wa.add(rIe(r,[$t],Re,h));else if(Ur)rhe(Ur,r.typeArguments,!0,h);else{const Br=An(a,Ir=>Kge(Ir,de));Br.length===0?wa.add(iot(r,a,de,h)):wa.add(rIe(r,Br,Re,h))}return Tr;function Cr(Br,Ir){var Jr,ss;const Ki=qt,hs=$t,Gi=Ur,tl=((ss=(Jr=Br.declaration)==null?void 0:Jr.symbol)==null?void 0:ss.declarations)||Ve,I_=tl.length>1?wn(tl,Sr=>po(Sr)&&pp(Sr.body)):void 0;if(I_){const Sr=Ap(I_),jr=!Sr.typeParameters;kr([Sr],d_,jr)&&la(Ir,yn(I_,p.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}qt=Ki,$t=hs,Ur=Gi}function kr(Br,Ir,Jr,ss=!1){if(qt=void 0,$t=void 0,Ur=void 0,Jr){const Ki=Br[0];if(ct(de)||!YZ(r,Re,Ki,ss))return;if(Cj(r,Re,Ki,Ir,0,!1,void 0)){qt=[Ki];return}return Ki}for(let Ki=0;Ki0),Sk(r),_||a.length===1||a.some(h=>!!h.typeParameters)?cot(r,a,l,m):aot(a)}function aot(r){const a=Ri(r,L=>L.thisParameter);let l;a.length&&(l=nIe(a,a.map(Aj)));const{min:_,max:m}=_ne(r,oot),h=[];for(let L=0;LSu(Z)?Lsb(Z,L))))}const x=Ri(r,L=>Su(L)?ka(L.parameters):void 0);let N=128;if(x.length!==0){const L=pu(Bn(Ri(r,M8e),2));h.push(iIe(x,L)),N|=1}return r.some(UU)&&(N|=2),Jg(r[0].declaration,void 0,l,h,Xs(r.map(Ja)),void 0,_,N)}function oot(r){const a=r.parameters.length;return Su(r)?a-1:a}function nIe(r,a){return iIe(r,Bn(a,2))}function iIe(r,a){return rT(va(r),a)}function cot(r,a,l,_){const m=_ot(a,zt===void 0?l.length:zt),h=a[m],{typeParameters:x}=h;if(!x)return h;const N=qNe(r)?r.typeArguments:void 0,L=N?VY(h,lot(N,x,Hr(r))):uot(r,x,h,l,_);return a[m]=L,L}function lot(r,a,l){const _=r.map(Tk);for(;_.length>a.length;)_.pop();for(;_.length=a)return m;x>_&&(_=x,l=m)}return l}function fot(r,a,l){if(r.expression.kind===108){const L=Pge(r.expression);if(ht(L)){for(const z of r.arguments)Hi(z);return lt}if(!Ot(L)){const z=Vd(Nl(r));if(z){const Z=eg(L,z.typeArguments,z);return P4(r,Z,a,l,0)}}return lT(r)}let _,m=Hi(r.expression);if(hb(r)){const L=xI(m,r.expression);_=L===m?0:iE(r)?16:8,m=L}else _=0;if(m=NNe(m,r.expression,wat),m===Qi)return rn;const h=n_(m);if(Ot(h))return gm(r);const x=Es(h,0),N=Es(h,1).length;if(Dj(m,h,x.length,N))return!Ot(m)&&r.typeArguments&&Me(r,p.Untyped_function_calls_may_not_accept_type_arguments),lT(r);if(!x.length){if(N)Me(r,p.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Ar(m));else{let L;if(r.arguments.length===1){const z=wr(r).text;gu(z.charCodeAt(ca(z,r.expression.end,!0)-1))&&(L=yn(r.expression,p.Are_you_missing_a_semicolon))}ihe(r.expression,h,0,L)}return gm(r)}return l&8&&!r.typeArguments&&x.some(pot)?(zIe(r,l),an):x.some(L=>Hr(L.declaration)&&!!VJ(L.declaration))?(Me(r,p.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Ar(m)),gm(r)):P4(r,x,a,l,_)}function pot(r){return!!(r.typeParameters&&$he(Ja(r)))}function Dj(r,a,l,_){return ht(r)||ht(a)&&!!(r.flags&262144)||!l&&!_&&!(a.flags&1048576)&&!(Id(a).flags&131072)&&Qs(r,kt)}function dot(r,a,l){if(r.arguments&&re<1){const x=QZ(r.arguments);x>=0&&Me(r.arguments[x],p.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}let _=E4(r.expression);if(_===Qi)return rn;if(_=n_(_),Ot(_))return gm(r);if(ht(_))return r.typeArguments&&Me(r,p.Untyped_function_calls_may_not_accept_type_arguments),lT(r);const m=Es(_,1);if(m.length){if(!mot(r,m[0]))return gm(r);if(sIe(m,N=>!!(N.flags&4)))return Me(r,p.Cannot_create_an_instance_of_an_abstract_class),gm(r);const x=_.symbol&&rh(_.symbol);return x&&Rn(x,64)?(Me(r,p.Cannot_create_an_instance_of_an_abstract_class),gm(r)):P4(r,m,a,l,0)}const h=Es(_,0);if(h.length){const x=P4(r,h,a,l,0);return ae||(x.declaration&&!hm(x.declaration)&&Ja(x)!==Wr&&Me(r,p.Only_a_void_function_can_be_called_with_the_new_keyword),Sv(x)===Wr&&Me(r,p.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),x}return ihe(r.expression,_,1),gm(r)}function sIe(r,a){return ts(r)?ct(r,l=>sIe(l,a)):r.compositeKind===1048576?ct(r.compositeSignatures,a):a(r)}function nhe(r,a){const l=Z_(a);if(!mr(l))return!1;const _=l[0];if(_.flags&2097152){const m=_.types,h=h8e(m);let x=0;for(const N of _.types){if(!h[x]&&bn(N)&3&&(N.symbol===r||nhe(r,N)))return!0;x++}return!1}return _.symbol===r?!0:nhe(r,_)}function mot(r,a){if(!a||!a.declaration)return!0;const l=a.declaration,_=JT(l,6);if(!_||l.kind!==176)return!0;const m=rh(l.parent.symbol),h=Po(l.parent.symbol);if(!qhe(r,m)){const x=Nl(r);if(x&&_&4){const N=Tk(x);if(nhe(l.parent.symbol,N))return!0}return _&2&&Me(r,p.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Ar(h)),_&4&&Me(r,p.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Ar(h)),!1}return!0}function aIe(r,a,l){let _;const m=l===0,h=fT(a),x=h&&Es(h,l).length>0;if(a.flags&1048576){const L=a.types;let z=!1;for(const Z of L)if(Es(Z,l).length!==0){if(z=!0,_)break}else if(_||(_=vs(_,m?p.Type_0_has_no_call_signatures:p.Type_0_has_no_construct_signatures,Ar(Z)),_=vs(_,m?p.Not_all_constituents_of_type_0_are_callable:p.Not_all_constituents_of_type_0_are_constructable,Ar(a))),z)break;z||(_=vs(void 0,m?p.No_constituent_of_type_0_is_callable:p.No_constituent_of_type_0_is_constructable,Ar(a))),_||(_=vs(_,m?p.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:p.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,Ar(a)))}else _=vs(_,m?p.Type_0_has_no_call_signatures:p.Type_0_has_no_construct_signatures,Ar(a));let N=m?p.This_expression_is_not_callable:p.This_expression_is_not_constructable;if(Rs(r.parent)&&r.parent.arguments.length===0){const{resolvedSymbol:L}=jn(r);L&&L.flags&32768&&(N=p.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:vs(_,N),relatedMessage:x?p.Did_you_forget_to_use_await:void 0}}function ihe(r,a,l,_){const{messageChain:m,relatedMessage:h}=aIe(r,a,l),x=Zg(wr(r),r,m);if(h&&la(x,yn(r,h)),Rs(r.parent)){const{start:N,length:L}=tIe(r.parent);x.start=N,x.length=L}wa.add(x),oIe(a,l,_?la(x,_):x)}function oIe(r,a,l){if(!r.symbol)return;const _=wi(r.symbol).originatingImport;if(_&&!of(_)){const m=Es(Xr(wi(r.symbol).target),a);if(!m||!m.length)return;la(l,yn(_,p.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 got(r,a,l){const _=Hi(r.tag),m=n_(_);if(Ot(m))return gm(r);const h=Es(m,0),x=Es(m,1).length;if(Dj(_,m,h.length,x))return lT(r);if(!h.length){if(ju(r.parent)){const N=yn(r.tag,p.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 wa.add(N),gm(r)}return ihe(r.tag,m,0),gm(r)}return P4(r,h,a,l,0)}function hot(r){switch(r.parent.kind){case 263:case 231:return p.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 169:return p.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 172:return p.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 174:case 177:case 178:return p.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return E.fail()}}function yot(r,a,l){const _=Hi(r.expression),m=n_(_);if(Ot(m))return gm(r);const h=Es(m,0),x=Es(m,1).length;if(Dj(_,m,h.length,x))return lT(r);if(Sot(r,h)&&!l_(r.expression)){const L=jc(r.expression,!1);return Me(r,p._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,L),gm(r)}const N=hot(r);if(!h.length){const L=aIe(r.expression,m,0),z=vs(L.messageChain,N),Z=Zg(wr(r.expression),r.expression,z);return L.relatedMessage&&la(Z,yn(r.expression,L.relatedMessage)),wa.add(Z),oIe(m,0,Z),gm(r)}return P4(r,h,a,l,0,N)}function eK(r,a){const l=cT(r),_=l&&Q_(l),m=_&&m_(_,Cf.Element,788968),h=m&&ft.symbolToEntityName(m,788968,r),x=I.createFunctionTypeNode(void 0,[I.createParameterDeclaration(void 0,void 0,"props",void 0,ft.typeToTypeNode(a,r))],h?I.createTypeReferenceNode(h,void 0):I.createKeywordTypeNode(133)),N=xa(1,"props");return N.links.type=a,Jg(x,void 0,void 0,[N],m?Po(m):nt,void 0,1,0)}function vot(r,a,l){if(bk(r.tagName)){const x=CNe(r),N=eK(r,x);return r1(w4(r.attributes,WZ(N,r),void 0,0),x,r.tagName,r.attributes),mr(r.typeArguments)&&(rr(r.typeArguments,ia),wa.add(eC(wr(r),r.typeArguments,p.Expected_0_type_arguments_but_got_1,0,mr(r.typeArguments)))),N}const _=Hi(r.tagName),m=n_(_);if(Ot(m))return gm(r);const h=xNe(_,r);return Dj(_,m,h.length,0)?lT(r):h.length===0?(Me(r.tagName,p.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,jc(r.tagName)),gm(r)):P4(r,h,a,l,0)}function bot(r,a,l){const _=Hi(r.right);if(!ht(_)){const m=yhe(_);if(m){const h=n_(m);if(Ot(h))return gm(r);const x=Es(h,0),N=Es(h,1);if(Dj(m,h,x.length,N.length))return lT(r);if(x.length)return P4(r,x,a,l,0)}else if(!(xK(_)||t1(_,kt)))return Me(r.right,p.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),gm(r)}return lt}function Sot(r,a){return a.length&&Wi(a,l=>l.minArgumentCount===0&&!Su(l)&&l.parameters.length1?Dc(r.arguments[1]):void 0;for(let h=2;h{const x=gf(m);cZ(h,x)||Qwe(m,h,l,p.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 Aot(r){const a=Hi(r.expression),l=xI(a,r.expression);return bZ(Lh(l),r,l!==a)}function Not(r){return r.flags&64?Aot(r):Lh(Hi(r.expression))}function dIe(r){if(c5e(r),rr(r.typeArguments,ia),r.kind===233){const l=Yh(r.parent);l.kind===226&&l.operatorToken.kind===104&&Hv(r,l.right)&&Me(r,p.The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression)}const a=r.kind===233?Hi(r.expression):Yv(r.exprName)?mj(r.exprName):Hi(r.exprName);return mIe(a,r)}function mIe(r,a){const l=a.typeArguments;if(r===Qi||Ot(r)||!ct(l))return r;let _=!1,m;const h=N(r),x=_?m:r;return x&&wa.add(eC(wr(a),l,p.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,Ar(x))),h;function N(z){let Z=!1,de=!1;const _e=Re(z);return _||(_=de),Z&&!de&&(m??(m=z)),_e;function Re(st){if(st.flags&524288){const gt=Nd(st),qt=L(gt.callSignatures),$t=L(gt.constructSignatures);if(Z||(Z=gt.callSignatures.length!==0||gt.constructSignatures.length!==0),de||(de=qt.length!==0||$t.length!==0),qt!==gt.callSignatures||$t!==gt.constructSignatures){const Ur=ao(xa(0,"__instantiationExpression"),gt.members,qt,$t,gt.indexInfos);return Ur.objectFlags|=8388608,Ur.node=a,Ur}}else if(st.flags&58982400){const gt=fu(st);if(gt){const qt=Re(gt);if(qt!==gt)return qt}}else{if(st.flags&1048576)return Bo(st,N);if(st.flags&2097152)return Xs(nl(st.types,Re))}return st}}function L(z){const Z=An(z,de=>!!de.typeParameters&&Kge(de,l));return nl(Z,de=>{const _e=rhe(de,l,!0);return _e?uI(de,_e,Hr(de.declaration)):de})}}function Iot(r){return ia(r.type),che(r.expression,r.type)}function che(r,a,l){const _=Hi(r,l),m=ii(a);if(Ot(m))return m;const h=Pr(a.parent,x=>x.kind===238||x.kind===357);return r1(_,m,h,r,p.Type_0_does_not_satisfy_the_expected_type_1),_}function Fot(r){return wft(r),r.keywordToken===105?lhe(r):r.keywordToken===102?Oot(r):E.assertNever(r.keywordToken)}function gIe(r){switch(r.keywordToken){case 102:return Y8e();case 105:const a=lhe(r);return Ot(a)?nt:Yot(a);default:E.assertNever(r.keywordToken)}}function lhe(r){const a=Yte(r);if(a)if(a.kind===176){const l=un(a.parent);return Xr(l)}else{const l=un(a);return Xr(l)}else return Me(r,p.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),nt}function Oot(r){R===100||R===199?wr(r).impliedNodeFormat!==99&&Me(r,p.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):R<6&&R!==4&&Me(r,p.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext);const a=wr(r);return E.assert(!!(a.flags&8388608),"Containing file is missing import meta node flag."),r.name.escapedText==="meta"?Q8e():nt}function Aj(r){const a=r.valueDeclaration;return A_(Xr(r),!1,!!a&&(Y0(a)||KE(a)))}function uhe(r,a,l="arg"){return r?(E.assert(Ie(r.name)),r.name.escapedText):`${l}_${a}`}function ZP(r,a,l){const _=r.parameters.length-(Su(r)?1:0);if(a<_)return r.parameters[a].escapedName;const m=r.parameters[_]||tt,h=l||Xr(m);if(da(h)){const x=h.target.labeledElementDeclarations,N=a-_;return uhe(x==null?void 0:x[N],N,m.escapedName)}return m.escapedName}function Lot(r,a){var l;if(((l=r.declaration)==null?void 0:l.kind)===324)return;const _=r.parameters.length-(Su(r)?1:0);if(a<_){const N=r.parameters[a],L=hIe(N);return L?{parameter:L,parameterName:N.escapedName,isRestParameter:!1}:void 0}const m=r.parameters[_]||tt,h=hIe(m);if(!h)return;const x=Xr(m);if(da(x)){const N=x.target.labeledElementDeclarations,L=a-_,z=N==null?void 0:N[L],Z=!!(z!=null&&z.dotDotDotToken);return z?(E.assert(Ie(z.name)),{parameter:z.name,parameterName:z.name.escapedText,isRestParameter:Z}):void 0}if(a===_)return{parameter:h,parameterName:m.escapedName,isRestParameter:!0}}function hIe(r){return r.valueDeclaration&&rs(r.valueDeclaration)&&Ie(r.valueDeclaration.name)&&r.valueDeclaration.name}function yIe(r){return r.kind===202||rs(r)&&r.name&&Ie(r.name)}function Mot(r,a){const l=r.parameters.length-(Su(r)?1:0);if(a=_-1)return a===_-1?h:pu(K_(h,_t));const x=[],N=[],L=[];for(let z=a;z<_;z++)!h||z<_-1?(x.push(Ld(r,z)),N.push(z!(L&1)),N=x<0?h.target.fixedLength:x;N>0&&(m=r.parameters.length-1+N)}}if(m===void 0){if(!l&&r.flags&32)return 0;m=r.minArgumentCount}if(_)return m;for(let h=m-1;h>=0;h--){const x=Ld(r,h);if(Mc(x,HNe).flags&131072)break;m=h}r.resolvedMinArgumentCount=m}return r.resolvedMinArgumentCount}function ag(r){if(Su(r)){const a=Xr(r.parameters[r.parameters.length-1]);return!da(a)||a.target.hasRestElement}return!1}function FI(r){if(Su(r)){const a=Xr(r.parameters[r.parameters.length-1]);if(!da(a))return ht(a)?Ec:a;if(a.target.hasRestElement)return JP(a,a.target.fixedLength)}}function OI(r){const a=FI(r);return a&&!lp(a)&&!ht(a)?a:void 0}function _he(r){return fhe(r,Cn)}function fhe(r,a){return r.parameters.length>0?Ld(r,0):a}function bIe(r,a,l){const _=r.parameters.length-(Su(r)?1:0);for(let m=0;m<_;m++){const h=r.parameters[m].valueDeclaration,x=Vl(h);if(x){const N=A_(ii(x),!1,KE(h)),L=Ld(a,m);Mh(l.inferences,N,L)}}}function Rot(r,a){if(a.typeParameters)if(!r.typeParameters)r.typeParameters=a.typeParameters;else return;if(a.thisParameter){const _=r.thisParameter;(!_||_.valueDeclaration&&!_.valueDeclaration.type)&&(_||(r.thisParameter=rT(a.thisParameter,void 0)),Ij(r.thisParameter,Xr(a.thisParameter)))}const l=r.parameters.length-(Su(r)?1:0);for(let _=0;_=0);const h=sc(_.parent)?Xr(un(_.parent.parent)):Y7e(_.parent),x=sc(_.parent)?Pe:Z7e(_.parent),N=Fd(m),L=kd("target",h),z=kd("propertyKey",x),Z=kd("parameterIndex",N);l.decoratorSignature=JI(void 0,void 0,[L,z,Z],Wr);break}case 174:case 177:case 178:case 172:{const _=a;if(!$n(_.parent))break;const m=Y7e(_),h=kd("target",m),x=Z7e(_),N=kd("propertyKey",x),L=xs(_)?Wr:iwe(Tk(_));if(re!==0&&(!xs(a)||Hd(a))){const Z=iwe(Tk(_)),de=kd("descriptor",Z);l.decoratorSignature=JI(void 0,void 0,[h,N,de],Bn([L,Wr]))}else l.decoratorSignature=JI(void 0,void 0,[h,N],Bn([L,Wr]));break}}return l.decoratorSignature===lt?void 0:l.decoratorSignature}function dhe(r){return Y?Qot(r):Xot(r)}function Fj(r){const a=VR(!0);return a!==fs?(r=I0(nD(r))||Kt,P0(a,[r])):Kt}function xIe(r){const a=twe(!0);return a!==fs?(r=I0(nD(r))||Kt,P0(a,[r])):Kt}function Oj(r,a){const l=Fj(a);return l===Kt?(Me(r,of(r)?p.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:p.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),nt):(_me(!0)||Me(r,of(r)?p.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:p.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),l)}function Yot(r){const a=xa(0,"NewTargetExpression"),l=xa(4,"target",8);l.parent=a,l.links.type=r;const _=Bs([l]);return a.members=_,ao(a,_,Ve,Ve,Ve)}function nK(r,a){if(!r.body)return nt;const l=pl(r),_=(l&2)!==0,m=(l&1)!==0;let h,x,N,L=Wr;if(r.body.kind!==241)h=Dc(r.body,a&&a&-9),_&&(h=nD(BI(h,!1,r,p.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(m){const z=wIe(r,a);z?z.length>0&&(h=Bn(z,2)):L=Cn;const{yieldTypes:Z,nextTypes:de}=Zot(r,a);x=ct(Z)?Bn(Z,2):void 0,N=ct(de)?Xs(de):void 0}else{const z=wIe(r,a);if(!z)return l&2?Oj(r,Cn):Cn;if(z.length===0){const Z=jZ(r,void 0),de=Z&&(qj(Z,l)||Wr).flags&32768?Pe:Wr;return l&2?Oj(r,de):de}h=Bn(z,2)}if(h||x||N){if(x&&kZ(r,x,3),h&&kZ(r,h,1),N&&kZ(r,N,2),h&&Od(h)||x&&Od(x)||N&&Od(N)){const z=Oge(r),Z=z?z===Ap(r)?m?void 0:h:JZ(Ja(z),r,void 0):void 0;m?(x=Yme(x,Z,0,_),h=Yme(h,Z,1,_),N=Yme(N,Z,2,_)):h=Knt(h,Z,_)}x&&(x=gf(x)),h&&(h=gf(h)),N&&(N=gf(N))}return m?kIe(x||Cn,h||L,N||lNe(2,r)||Kt,_):_?Fj(h||L):h||L}function kIe(r,a,l,_){const m=_?yo:Vc,h=m.getGlobalGeneratorType(!1);if(r=m.resolveIterationType(r,void 0)||Kt,a=m.resolveIterationType(a,void 0)||Kt,l=m.resolveIterationType(l,void 0)||Kt,h===fs){const x=m.getGlobalIterableIteratorType(!1),N=x!==fs?g7e(x,m):void 0,L=N?N.returnType:B,z=N?N.nextType:Pe;return Qs(a,L)&&Qs(z,l)?x!==fs?fI(x,[r]):(m.getGlobalIterableIteratorType(!0),oa):(m.getGlobalGeneratorType(!0),oa)}return fI(h,[r,a,l])}function Zot(r,a){const l=[],_=[],m=(pl(r)&2)!==0;return Jte(r.body,h=>{const x=h.expression?Hi(h.expression,a):St;Jf(l,CIe(h,x,B,m));let N;if(h.asteriskToken){const L=gK(x,m?19:17,h.expression);N=L&&L.nextType}else N=y_(h,void 0);N&&Jf(_,N)}),{yieldTypes:l,nextTypes:_}}function CIe(r,a,l,_){const m=r.expression||r,h=r.asteriskToken?F0(_?19:17,a,l,m):a;return _?fT(h,m,r.asteriskToken?p.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:p.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):h}function EIe(r,a,l){let _=0;for(let m=0;m=a?l[m]:void 0;_|=h!==void 0?HU.get(h)||32768:0}return _}function PIe(r){const a=jn(r);if(a.isExhaustive===void 0){a.isExhaustive=0;const l=Kot(r);a.isExhaustive===0&&(a.isExhaustive=l)}else a.isExhaustive===0&&(a.isExhaustive=!1);return a.isExhaustive}function Kot(r){if(r.expression.kind===221){const _=zAe(r);if(!_)return!1;const m=wh(Dc(r.expression.expression)),h=EIe(0,0,_);return m.flags&3?(556800&h)===556800:!ad(m,x=>GP(x,h)===h)}const a=Dc(r.expression);if(!TI(a))return!1;const l=AZ(r);return!l.length||ct(l,Qnt)?!1:Git(Bo(a,Uu),l)}function DIe(r){return r.endFlowNode&&pj(r.endFlowNode)}function wIe(r,a){const l=pl(r),_=[];let m=DIe(r),h=!1;if(Wv(r.body,x=>{let N=x.expression;if(N){if(N=Va(N,!0),l&2&&N.kind===223&&(N=Va(N.expression,!0)),N.kind===213&&N.expression.kind===80&&Dc(N.expression).symbol===r.symbol){h=!0;return}let L=Dc(N,a&&a&-9);l&2&&(L=nD(BI(L,!1,r,p.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),L.flags&131072&&(h=!0),Jf(_,L)}else m=!0}),!(_.length===0&&!m&&(h||ect(r))))return q&&_.length&&m&&!(hm(r)&&_.some(x=>x.symbol===r.symbol))&&Jf(_,Pe),_}function ect(r){switch(r.kind){case 218:case 219:return!0;case 174:return r.parent.kind===210;default:return!1}}function mhe(r,a){n(l);return;function l(){const _=pl(r),m=a&&qj(a,_);if(m&&(nc(m,16384)||m.flags&32769)||r.kind===173||_c(r.body)||r.body.kind!==241||!DIe(r))return;const h=r.flags&1024,x=vp(r)||r;if(m&&m.flags&131072)Me(x,p.A_function_returning_never_cannot_have_a_reachable_end_point);else if(m&&!h)Me(x,p.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);else if(m&&q&&!Qs(Pe,m))Me(x,p.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(j.noImplicitReturns){if(!m){if(!h)return;const N=Ja(Ap(r));if(k7e(r,N))return}Me(x,p.Not_all_code_paths_return_a_value)}}}function AIe(r,a){if(E.assert(r.kind!==174||Wp(r)),Sk(r),lo(r)&&iD(r,r.name),a&&a&4&&op(r)){if(!vp(r)&&!TF(r)){const _=NI(r);if(_&&Pv(Ja(_))){const m=jn(r);if(m.contextFreeType)return m.contextFreeType;const h=nK(r,a),x=Jg(void 0,void 0,void 0,Ve,h,void 0,0,64),N=ao(r.symbol,U,[x],Ve,Ve);return N.objectFlags|=262144,m.contextFreeType=N}}return Wt}return!PK(r)&&r.kind===218&&Yhe(r),tct(r,a),Xr(un(r))}function tct(r,a){const l=jn(r);if(!(l.flags&64)){const _=NI(r);if(!(l.flags&64)){l.flags|=64;const m=bl(Es(Xr(un(r)),0));if(!m)return;if(op(r))if(_){const h=nb(r);let x;if(a&&a&2){bIe(m,_,h);const N=FI(_);N&&N.flags&262144&&(x=x4(_,h.nonFixingMapper))}x||(x=h?x4(_,h.mapper):_),Rot(m,x)}else jot(m);else if(_&&!r.typeParameters&&_.parameters.length>r.parameters.length){const h=nb(r);a&&a&2&&bIe(m,_,h)}if(_&&!g4(r)&&!m.resolvedReturnType){const h=nK(r,a);m.resolvedReturnType||(m.resolvedReturnType=h)}MI(r)}}}function rct(r){E.assert(r.kind!==174||Wp(r));const a=pl(r),l=g4(r);if(mhe(r,l),r.body)if(vp(r)||Ja(Ap(r)),r.body.kind===241)ia(r.body);else{const _=Hi(r.body),m=l&&qj(l,a);if(m){const h=ZZ(r.body);if((a&3)===2){const x=BI(_,!1,h,p.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);r1(x,m,h,h)}else r1(_,m,h,h)}}}function iK(r,a,l,_=!1){if(!Qs(a,kc)){const m=_&&rD(a);return nv(r,!!m&&Qs(m,kc),l),!1}return!0}function nct(r){if(!Rs(r)||!wb(r))return!1;const a=Dc(r.arguments[2]);if(je(a,"value")){const m=$s(a,"writable"),h=m&&Xr(m);if(!h||h===Jt||h===ar)return!0;if(m&&m.valueDeclaration&&zc(m.valueDeclaration)){const x=m.valueDeclaration.initializer,N=Hi(x);if(N===Jt||N===ar)return!0}return!1}return!$s(a,"set")}function Md(r){return!!(Ko(r)&8||r.flags&4&&qf(r)&8||r.flags&3&&zge(r)&6||r.flags&98304&&!(r.flags&65536)||r.flags&8||ct(r.declarations,nct))}function NIe(r,a,l){var _,m;if(l===0)return!1;if(Md(a)){if(a.flags&4&&co(r)&&r.expression.kind===110){const h=cf(r);if(!(h&&(h.kind===176||hm(h))))return!0;if(a.valueDeclaration){const x=Zr(a.valueDeclaration),N=h.parent===a.valueDeclaration.parent,L=h===a.valueDeclaration.parent,z=x&&((_=a.parent)==null?void 0:_.valueDeclaration)===h.parent,Z=x&&((m=a.parent)==null?void 0:m.valueDeclaration)===h;return!(N||L||z||Z)}}return!0}if(co(r)){const h=Va(r.expression);if(h.kind===80){const x=jn(h).resolvedSymbol;if(x.flags&2097152){const N=ed(x);return!!N&&N.kind===274}}}return!1}function LI(r,a,l){const _=xc(r,7);return _.kind!==80&&!co(_)?(Me(r,a),!1):_.flags&64?(Me(r,l),!1):!0}function ict(r){Hi(r.expression);const a=Va(r.expression);if(!co(a))return Me(a,p.The_operand_of_a_delete_operator_must_be_a_property_reference),fi;Sn(a)&&Pi(a.name)&&Me(a,p.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);const l=jn(a),_=Mf(l.resolvedSymbol);return _&&(Md(_)?Me(a,p.The_operand_of_a_delete_operator_cannot_be_a_read_only_property):sct(a,_)),fi}function sct(r,a){const l=Xr(a);q&&!(l.flags&131075)&&!(be?a.flags&16777216:Ip(l,16777216))&&Me(r,p.The_operand_of_a_delete_operator_must_be_optional)}function act(r){return Hi(r.expression),G6}function oct(r){return Sk(r),St}function IIe(r){let a=!1;const l=v5(r);if(l&&ec(l)){const _=fy(r)?p.await_expression_cannot_be_used_inside_a_class_static_block:p.await_using_statements_cannot_be_used_inside_a_class_static_block;Me(r,_),a=!0}else if(!(r.flags&65536))if(S5(r)){const _=wr(r);if(!ob(_)){let m;if(!IT(_,j)){m??(m=Im(_,r.pos));const h=fy(r)?p.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:p.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,x=xl(_,m.start,m.length,h);wa.add(x),a=!0}switch(R){case 100:case 199:if(_.impliedNodeFormat===1){m??(m=Im(_,r.pos)),wa.add(xl(_,m.start,m.length,p.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(re>=4)break;default:m??(m=Im(_,r.pos));const h=fy(r)?p.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:p.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;wa.add(xl(_,m.start,m.length,h)),a=!0;break}}}else{const _=wr(r);if(!ob(_)){const m=Im(_,r.pos),h=fy(r)?p.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:p.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules,x=xl(_,m.start,m.length,h);if(l&&l.kind!==176&&!(pl(l)&2)){const N=yn(l,p.Did_you_mean_to_mark_this_function_as_async);la(x,N)}wa.add(x),a=!0}}return fy(r)&&wge(r)&&(Me(r,p.await_expressions_cannot_be_used_in_a_parameter_initializer),a=!0),a}function cct(r){n(()=>IIe(r));const a=Hi(r.expression),l=BI(a,!0,r,p.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return l===a&&!Ot(l)&&!(a.flags&3)&&xd(!1,yn(r,p.await_has_no_effect_on_the_type_of_this_expression)),l}function lct(r){const a=Hi(r.operand);if(a===Qi)return Qi;switch(r.operand.kind){case 9:switch(r.operator){case 41:return yk(Fd(-r.operand.text));case 40:return yk(Fd(+r.operand.text))}break;case 10:if(r.operator===41)return yk(rZ({negative:!0,base10Value:GE(r.operand.text)}))}switch(r.operator){case 40:case 41:case 55:return mm(a,r.operand),Lj(a,12288)&&Me(r.operand,p.The_0_operator_cannot_be_applied_to_type_symbol,Ws(r.operator)),r.operator===40?(Lj(a,2112)&&Me(r.operand,p.Operator_0_cannot_be_applied_to_type_1,Ws(r.operator),Ar(Oh(a))),_t):ghe(a);case 54:Ihe(a,r.operand);const l=GP(a,12582912);return l===4194304?Jt:l===8388608?Er:fi;case 46:case 47:return iK(r.operand,mm(a,r.operand),p.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&LI(r.operand,p.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,p.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),ghe(a)}return nt}function uct(r){const a=Hi(r.operand);return a===Qi?Qi:(iK(r.operand,mm(a,r.operand),p.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&LI(r.operand,p.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,p.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),ghe(a))}function ghe(r){return nc(r,2112)?Ql(r,3)||nc(r,296)?kc:Tt:_t}function Lj(r,a){if(nc(r,a))return!0;const l=wh(r);return!!l&&nc(l,a)}function nc(r,a){if(r.flags&a)return!0;if(r.flags&3145728){const l=r.types;for(const _ of l)if(nc(_,a))return!0}return!1}function Ql(r,a,l){return r.flags&a?!0:l&&r.flags&114691?!1:!!(a&296)&&Qs(r,_t)||!!(a&2112)&&Qs(r,Tt)||!!(a&402653316)&&Qs(r,Ce)||!!(a&528)&&Qs(r,fi)||!!(a&16384)&&Qs(r,Wr)||!!(a&131072)&&Qs(r,Cn)||!!(a&65536)&&Qs(r,ce)||!!(a&32768)&&Qs(r,Pe)||!!(a&4096)&&Qs(r,oi)||!!(a&67108864)&&Qs(r,In)}function Mj(r,a,l){return r.flags&1048576?Wi(r.types,_=>Mj(_,a,l)):Ql(r,a,l)}function sK(r){return!!(bn(r)&16)&&!!r.symbol&&hhe(r.symbol)}function hhe(r){return(r.flags&128)!==0}function yhe(r){const a=y7e("hasInstance"),l=vv(r,a);if(l){const _=Xr(l);if(_&&Es(_,0).length!==0)return _}}function _ct(r,a,l,_,m){if(l===Qi||_===Qi)return Qi;!ht(l)&&Mj(l,402784252)&&Me(r,p.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),E.assert(Y5(r.parent));const h=D4(r.parent,void 0,m);if(h===an)return Qi;const x=Ja(h);return Pu(x,fi,a,p.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),fi}function fct(r){return ad(r,a=>a===rc||!!(a.flags&2097152)&&sg(wh(a)))}function pct(r,a,l,_){if(l===Qi||_===Qi)return Qi;if(Pi(r)){if(re<99&&el(r,2097152),!jn(r).resolvedSymbol&&Nl(r)){const m=Gge(r,_.symbol,!0);jNe(r,_,m)}}else Pu(mm(l,r),pr,r);return Pu(mm(_,a),In,a)&&fct(_)&&Me(a,p.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,Ar(_)),fi}function dct(r,a,l){const _=r.properties;if(q&&_.length===0)return mm(a,r);for(let m=0;m<_.length;m++)FIe(r,a,m,_,l);return a}function FIe(r,a,l,_,m=!1){const h=r.properties,x=h[l];if(x.kind===303||x.kind===304){const N=x.name,L=w0(N);if(bp(L)){const de=Sp(L),_e=$s(a,de);_e&&(kj(_e,x,m),Vge(x,!1,!0,a,_e))}const z=K_(a,L,32,N),Z=Ai(x,z);return _T(x.kind===304?x:x.initializer,Z)}else if(x.kind===305)if(lJP(z,l)):pu(_);return _T(N,L,m)}}}}function _T(r,a,l,_){let m;if(r.kind===304){const h=r;h.objectAssignmentInitializer&&(q&&!Ip(Hi(h.objectAssignmentInitializer),16777216)&&(a=Fp(a,524288)),vct(h.name,h.equalsToken,h.objectAssignmentInitializer,l)),m=r.name}else m=r;return m.kind===226&&m.operatorToken.kind===64&&(xe(m,l),m=m.left,q&&(a=Fp(a,524288))),m.kind===210?dct(m,a,_):m.kind===209?mct(m,a,l):gct(m,a,l)}function gct(r,a,l){const _=Hi(r,l),m=r.parent.kind===305?p.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:p.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,h=r.parent.kind===305?p.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:p.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;return LI(r,m,h)&&r1(a,_,r,r),qk(r)&&el(r.parent,1048576),a}function Rj(r){switch(r=Va(r),r.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 Rj(r.whenTrue)&&Rj(r.whenFalse);case 226:return Kh(r.operatorToken.kind)?!1:Rj(r.left)&&Rj(r.right);case 224:case 225:switch(r.operator){case 54:case 40:case 41:case 55:return!0}return!1;case 222:case 216:case 234:default:return!1}}function vhe(r,a){return(a.flags&98304)!==0||cZ(r,a)}function hct(){const r=RO(a,l,_,m,h,x);return(_e,Re)=>{const st=r(_e,Re);return E.assertIsDefined(st),st};function a(_e,Re,st){return Re?(Re.stackIndex++,Re.skip=!1,z(Re,void 0),de(Re,void 0)):Re={checkMode:st,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},Hr(_e)&&FT(_e)?(Re.skip=!0,de(Re,Hi(_e.right,st)),Re):(yct(_e),_e.operatorToken.kind===64&&(_e.left.kind===210||_e.left.kind===209)&&(Re.skip=!0,de(Re,_T(_e.left,Hi(_e.right,st),st,_e.right.kind===110))),Re)}function l(_e,Re,st){if(!Re.skip)return N(Re,_e)}function _(_e,Re,st){if(!Re.skip){const gt=Z(Re);E.assertIsDefined(gt),z(Re,gt),de(Re,void 0);const qt=_e.kind;if(G8(qt)){let $t=st.parent;for(;$t.kind===217||$8($t);)$t=$t.parent;(qt===56||qb($t))&&Nhe(st.left,gt,qb($t)?$t.thenStatement:void 0),Ihe(gt,st.left)}}}function m(_e,Re,st){if(!Re.skip)return N(Re,_e)}function h(_e,Re){let st;if(Re.skip)st=Z(Re);else{const gt=L(Re);E.assertIsDefined(gt);const qt=Z(Re);E.assertIsDefined(qt),st=LIe(_e.left,_e.operatorToken,_e.right,gt,qt,Re.checkMode,_e)}return Re.skip=!1,z(Re,void 0),de(Re,void 0),Re.stackIndex--,st}function x(_e,Re,st){return de(_e,Re),_e}function N(_e,Re){if(Zr(Re))return Re;de(_e,Hi(Re,_e.checkMode))}function L(_e){return _e.typeStack[_e.stackIndex]}function z(_e,Re){_e.typeStack[_e.stackIndex]=Re}function Z(_e){return _e.typeStack[_e.stackIndex+1]}function de(_e,Re){_e.typeStack[_e.stackIndex+1]=Re}}function yct(r){const{left:a,operatorToken:l,right:_}=r;l.kind===61&&(Zr(a)&&(a.operatorToken.kind===57||a.operatorToken.kind===56)&&or(a,p._0_and_1_operations_cannot_be_mixed_without_parentheses,Ws(a.operatorToken.kind),Ws(l.kind)),Zr(_)&&(_.operatorToken.kind===57||_.operatorToken.kind===56)&&or(_,p._0_and_1_operations_cannot_be_mixed_without_parentheses,Ws(_.operatorToken.kind),Ws(l.kind)))}function vct(r,a,l,_,m){const h=a.kind;if(h===64&&(r.kind===210||r.kind===209))return _T(r,Hi(l,_),_,l.kind===110);let x;G8(h)?x=sD(r,_):x=Hi(r,_);const N=Hi(l,_);return LIe(r,a,l,x,N,_,m)}function LIe(r,a,l,_,m,h,x){const N=a.kind;switch(N){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(_===Qi||m===Qi)return Qi;_=mm(_,r),m=mm(m,l);let Gt;if(_.flags&528&&m.flags&528&&(Gt=_e(a.kind))!==void 0)return Me(x||a,p.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,Ws(a.kind),Ws(Gt)),_t;{const Br=iK(r,_,p.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),Ir=iK(l,m,p.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0);let Jr;if(Ql(_,3)&&Ql(m,3)||!(nc(_,2112)||nc(m,2112)))Jr=_t;else if(L(_,m)){switch(N){case 50:case 73:qt();break;case 43:case 68:re<3&&Me(x,p.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}Jr=Tt}else qt(L),Jr=nt;return Br&&Ir&&Re(Jr),Jr}case 40:case 65:if(_===Qi||m===Qi)return Qi;!Ql(_,402653316)&&!Ql(m,402653316)&&(_=mm(_,r),m=mm(m,l));let Cr;return Ql(_,296,!0)&&Ql(m,296,!0)?Cr=_t:Ql(_,2112,!0)&&Ql(m,2112,!0)?Cr=Tt:Ql(_,402653316,!0)||Ql(m,402653316,!0)?Cr=Ce:(ht(_)||ht(m))&&(Cr=Ot(_)||Ot(m)?nt:B),Cr&&!de(N)?Cr:Cr?(N===65&&Re(Cr),Cr):(qt((Ir,Jr)=>Ql(Ir,402655727)&&Ql(Jr,402655727)),B);case 30:case 32:case 33:case 34:return de(N)&&(_=Xme(mm(_,r)),m=Xme(mm(m,l)),gt((Br,Ir)=>{if(ht(Br)||ht(Ir))return!0;const Jr=Qs(Br,kc),ss=Qs(Ir,kc);return Jr&&ss||!Jr&&!ss&&ZR(Br,Ir)})),fi;case 35:case 36:case 37:case 38:if(!(h&&h&64)){if((ZJ(r)||ZJ(l))&&(!Hr(r)||N===37||N===38)){const Br=N===35||N===37;Me(x,p.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,Br?"false":"true")}Ur(x,N,r,l),gt((Br,Ir)=>vhe(Br,Ir)||vhe(Ir,Br))}return fi;case 104:return _ct(r,l,_,m,h);case 103:return pct(r,l,_,m);case 56:case 77:{const Br=Ip(_,4194304)?Bn([rit(q?_:Oh(m)),m]):_;return N===77&&Re(m),Br}case 57:case 76:{const Br=Ip(_,8388608)?Bn([Lh(dAe(_)),m],2):_;return N===76&&Re(m),Br}case 61:case 78:{const Br=Ip(_,262144)?Bn([Lh(_),m],2):_;return N===78&&Re(m),Br}case 64:const kr=Zr(r.parent)?fc(r.parent):0;return z(kr,m),st(kr)?((!(m.flags&524288)||kr!==2&&kr!==6&&!Fh(m)&&!gge(m)&&!(bn(m)&1))&&Re(m),_):(Re(m),m);case 28:if(!j.allowUnreachableCode&&Rj(r)&&!Z(r.parent)){const Br=wr(r),Ir=Br.text,Jr=ca(Ir,r.pos);Br.parseDiagnostics.some(Ki=>Ki.code!==p.JSX_expressions_must_have_one_parent_element.code?!1:JJ(Ki,Jr))||Me(r,p.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return m;default:return E.fail()}function L(Gt,Cr){return Ql(Gt,2112)&&Ql(Cr,2112)}function z(Gt,Cr){if(Gt===2)for(const kr of Xy(Cr)){const Br=Xr(kr);if(Br.symbol&&Br.symbol.flags&32){const Ir=kr.escapedName,Jr=Go(kr.valueDeclaration,Ir,788968,void 0,Ir,!1);Jr!=null&&Jr.declarations&&Jr.declarations.some(Yb)&&(Dp(Jr,p.Duplicate_identifier_0,xi(Ir),kr),Dp(kr,p.Duplicate_identifier_0,xi(Ir),Jr))}}}function Z(Gt){return Gt.parent.kind===217&&j_(Gt.left)&&Gt.left.text==="0"&&(Rs(Gt.parent.parent)&&Gt.parent.parent.expression===Gt.parent||Gt.parent.parent.kind===215)&&(co(Gt.right)||Ie(Gt.right)&&Gt.right.escapedText==="eval")}function de(Gt){const Cr=Lj(_,12288)?r:Lj(m,12288)?l:void 0;return Cr?(Me(Cr,p.The_0_operator_cannot_be_applied_to_type_symbol,Ws(Gt)),!1):!0}function _e(Gt){switch(Gt){case 52:case 75:return 57;case 53:case 79:return 38;case 51:case 74:return 56;default:return}}function Re(Gt){Kh(N)&&n(Cr);function Cr(){let kr=_;if(F3(a.kind)&&r.kind===211&&(kr=qZ(r,void 0,!0)),LI(r,p.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,p.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)){let Br;if(be&&Sn(r)&&nc(Gt,32768)){const Ir=je(Yl(r.expression),r.name.escapedText);uZ(Gt,Ir)&&(Br=p.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}r1(Gt,kr,r,l,Br)}}}function st(Gt){var Cr;switch(Gt){case 2:return!0;case 1:case 5:case 6:case 3:case 4:const kr=Lf(r),Br=FT(l);return!!Br&&ua(Br)&&!!((Cr=kr==null?void 0:kr.exports)!=null&&Cr.size);default:return!1}}function gt(Gt){return Gt(_,m)?!1:(qt(Gt),!0)}function qt(Gt){let Cr=!1;const kr=x||a;if(Gt){const Ki=I0(_),hs=I0(m);Cr=!(Ki===_&&hs===m)&&!!(Ki&&hs)&&Gt(Ki,hs)}let Br=_,Ir=m;!Cr&&Gt&&([Br,Ir]=bct(_,m,Gt));const[Jr,ss]=uk(Br,Ir);$t(kr,Cr,Jr,ss)||nv(kr,Cr,p.Operator_0_cannot_be_applied_to_types_1_and_2,Ws(a.kind),Jr,ss)}function $t(Gt,Cr,kr,Br){switch(a.kind){case 37:case 35:case 38:case 36:return nv(Gt,Cr,p.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,kr,Br);default:return}}function Ur(Gt,Cr,kr,Br){const Ir=Tr(Va(kr)),Jr=Tr(Va(Br));if(Ir||Jr){const ss=Me(Gt,p.This_condition_will_always_return_0,Ws(Cr===37||Cr===35?97:112));if(Ir&&Jr)return;const Ki=Cr===38||Cr===36?Ws(54):"",hs=Ir?Br:kr,Gi=Va(hs);la(ss,yn(hs,p.Did_you_mean_0,`${Ki}Number.isNaN(${pc(Gi)?L_(Gi):"..."})`))}}function Tr(Gt){if(Ie(Gt)&&Gt.escapedText==="NaN"){const Cr=crt();return!!Cr&&Cr===sd(Gt)}return!1}}function bct(r,a,l){let _=r,m=a;const h=Oh(r),x=Oh(a);return l(h,x)||(_=h,m=x),[_,m]}function Sct(r){n(_e);const a=cf(r);if(!a)return B;const l=pl(a);if(!(l&1))return B;const _=(l&2)!==0;r.asteriskToken&&(_&&re<99&&el(r,26624),!_&&re<2&&j.downlevelIteration&&el(r,256));let m=g4(a);m&&m.flags&1048576&&(m=Mc(m,Re=>The(Re,l,void 0)));const h=m&&x7e(m,_),x=h&&h.yieldType||B,N=h&&h.nextType||B,L=_?fT(N)||B:N,z=r.expression?Hi(r.expression):St,Z=CIe(r,z,L,_);if(m&&Z&&r1(Z,x,r.expression||r,r.expression),r.asteriskToken)return Ohe(_?19:17,1,z,r.expression)||B;if(m)return ab(2,m,_)||B;let de=lNe(2,a);return de||(de=B,n(()=>{if(ae&&!gne(r)){const Re=y_(r,void 0);(!Re||ht(Re))&&Me(r,p.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}})),de;function _e(){r.flags&16384||Jl(r,p.A_yield_expression_is_only_allowed_in_a_generator_body),wge(r)&&Me(r,p.yield_expressions_cannot_be_used_in_a_parameter_initializer)}}function Tct(r,a){const l=sD(r.condition,a);Nhe(r.condition,l,r.whenTrue);const _=Hi(r.whenTrue,a),m=Hi(r.whenFalse,a);return Bn([_,m],2)}function MIe(r){const a=r.parent;return l_(a)&&MIe(a)||Co(a)&&a.argumentExpression===r}function xct(r){const a=[r.head.text],l=[];for(const m of r.templateSpans){const h=Hi(m.expression);Lj(h,12288)&&Me(m.expression,p.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),a.push(m.literal.text),l.push(Qs(h,_s)?h:Ce)}if(eD(r)||MIe(r)||ad(y_(r,void 0)||Kt,kct))return QS(a,l);const _=r.parent.kind!==215&&j7e(r);return _?yk(h_(_)):Ce}function kct(r){return!!(r.flags&134217856||r.flags&58982400&&nc(fu(r)||Kt,402653316))}function Cct(r){return _2(r)&&!$b(r.parent)?r.parent.parent:r}function w4(r,a,l,_){const m=Cct(r);hj(m,a,!1),qst(m,l);const h=Hi(r,_|1|(l?2:0));l&&l.intraExpressionInferenceSites&&(l.intraExpressionInferenceSites=void 0);const x=nc(h,2944)&&oK(h,JZ(a,r,void 0))?Uu(h):h;return Hst(),AI(),x}function Dc(r,a){if(a)return Hi(r,a);const l=jn(r);if(!l.resolvedType){const _=am,m=sr;am=Ff,sr=void 0,l.resolvedType=Hi(r,a),sr=m,am=_}return l.resolvedType}function RIe(r){return r=Va(r,!0),r.kind===216||r.kind===234||HC(r)}function KP(r,a,l){const _=x8(r);if(Hr(r)){const h=CF(r);if(h)return che(_,h,a)}const m=She(_)||(l?w4(_,l,void 0,a||0):Dc(_,a));return rs(r)&&r.name.kind===207&&da(m)&&!m.target.hasRestElement&&D0(m)oK(r,_))}if(a.flags&58982400){const l=fu(a)||Kt;return nc(l,4)&&nc(r,128)||nc(l,8)&&nc(r,256)||nc(l,64)&&nc(r,2048)||nc(l,4096)&&nc(r,8192)||oK(r,l)}return!!(a.flags&406847616&&nc(r,128)||a.flags&256&&nc(r,256)||a.flags&2048&&nc(r,2048)||a.flags&512&&nc(r,512)||a.flags&8192&&nc(r,8192))}return!1}function eD(r){const a=r.parent;return Sb(a)&&Qg(a.type)||HC(a)&&Qg(FO(a))||ohe(r)&&GS(y_(r,0))||(l_(a)||ju(a)||gd(a))&&eD(a)||(zc(a)||k_(a)||p3(a))&&eD(a.parent)}function tD(r,a,l){const _=Hi(r,a,l);return eD(r)||Vte(r)?Uu(_):RIe(r)?_:Qme(_,JZ(y_(r,void 0),r,void 0))}function jIe(r,a){return r.name.kind===167&&Wg(r.name),tD(r.initializer,a)}function BIe(r,a){_5e(r),r.name.kind===167&&Wg(r.name);const l=AIe(r,a);return JIe(r,l,a)}function JIe(r,a,l){if(l&&l&10){const _=II(a,0,!0),m=II(a,1,!0),h=_||m;if(h&&h.typeParameters){const x=Av(r,2);if(x){const N=II(Lh(x),_?0:1,!1);if(N&&!N.typeParameters){if(l&8)return zIe(r,l),Wt;const L=nb(r),z=L.signature&&Ja(L.signature),Z=z&&$Ne(z);if(Z&&!Z.typeParameters&&!Wi(L.inferences,A4)){const de=Act(L,h.typeParameters),_e=Zde(h,de),Re=nr(L.inferences,st=>nge(st.typeParameter));if(Kme(_e,N,(st,gt)=>{Mh(Re,st,gt,0,!0)}),ct(Re,A4)&&(ege(_e,N,(st,gt)=>{Mh(Re,st,gt)}),!Dct(L.inferences,Re)))return wct(L.inferences,Re),L.inferredTypeParameters=es(L.inferredTypeParameters,de),XS(_e)}return XS(XNe(h,N,L))}}}}return a}function zIe(r,a){if(a&2){const l=nb(r);l.flags|=4}}function A4(r){return!!(r.candidates||r.contraCandidates)}function Pct(r){return!!(r.candidates||r.contraCandidates||C8e(r.typeParameter))}function Dct(r,a){for(let l=0;ll.symbol.escapedName===a)}function Nct(r,a){let l=a.length;for(;l>1&&a.charCodeAt(l-1)>=48&&a.charCodeAt(l-1)<=57;)l--;const _=a.slice(0,l);for(let m=1;;m++){const h=_+m;if(!bhe(r,h))return h}}function WIe(r){const a=uT(r);if(a&&!a.typeParameters)return Ja(a)}function Ict(r){const a=Hi(r.expression),l=xI(a,r.expression),_=WIe(a);return _&&bZ(_,r,l!==a)}function Yl(r){const a=She(r);if(a)return a;if(r.flags&268435456&&sr){const m=sr[Oa(r)];if(m)return m}const l=We,_=Hi(r,64);if(We!==l){const m=sr||(sr=[]);m[Oa(r)]=_,mne(r,r.flags|268435456)}return _}function She(r){let a=Va(r,!0);if(HC(a)){const l=FO(a);if(!Qg(l))return ii(l)}if(a=Va(r),fy(a)){const l=She(a.expression);return l?fT(l):void 0}if(Rs(a)&&a.expression.kind!==108&&!Gu(a,!0)&&!cIe(a))return hb(a)?Ict(a):WIe(E4(a.expression));if(Sb(a)&&!Qg(a.type))return ii(a.type);if(Rv(r)||lE(r))return Hi(r)}function jj(r){const a=jn(r);if(a.contextFreeType)return a.contextFreeType;hj(r,B,!1);const l=a.contextFreeType=Hi(r,4);return AI(),l}function Hi(r,a,l){var _,m;(_=qr)==null||_.push(qr.Phase.Check,"checkExpression",{kind:r.kind,pos:r.pos,end:r.end,path:r.tracingPath});const h=P;P=r,T=0;const x=Lct(r,a,l),N=JIe(r,x,a);return sK(N)&&Fct(r,N),P=h,(m=qr)==null||m.pop(),N}function Fct(r,a){r.parent.kind===211&&r.parent.expression===r||r.parent.kind===212&&r.parent.expression===r||(r.kind===80||r.kind===166)&&SK(r)||r.parent.kind===186&&r.parent.exprName===r||r.parent.kind===281||Me(r,p.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),Tp(j)&&(E.assert(!!(a.symbol.flags&128)),a.symbol.valueDeclaration.flags&33554432&&!I1(r)&&Me(r,p.Cannot_access_ambient_const_enums_when_0_is_enabled,Je))}function Oct(r,a){if(sf(r)){if(zW(r))return che(r.expression,WW(r),a);if(HC(r))return fIe(r,a)}return Hi(r.expression,a)}function Lct(r,a,l){const _=r.kind;if(i)switch(_){case 231:case 218:case 219:i.throwIfCancellationRequested()}switch(_){case 80:return dst(r,a);case 81:return Iat(r);case 110:return mj(r);case 108:return Pge(r);case 106:return Ne;case 15:case 11:return cge(r)?Be:yk(h_(r.text));case 9:return t0e(r),yk(Fd(+r.text));case 10:return Rft(r),yk(rZ({negative:!1,base10Value:GE(r.text)}));case 112:return Er;case 97:return Jt;case 228:return xct(r);case 14:return Ho;case 209:return hNe(r,a,l);case 210:return uat(r,a);case 211:return qZ(r,a);case 166:return FNe(r,a);case 212:return $at(r,a);case 213:if(r.expression.kind===102)return Eot(r);case 214:return Cot(r,a);case 215:return Pot(r);case 217:return Oct(r,a);case 231:return Tut(r);case 218:case 219:return AIe(r,a);case 221:return act(r);case 216:case 234:return Dot(r,a);case 235:return Not(r);case 233:return dIe(r);case 238:return Iot(r);case 236:return Fot(r);case 220:return ict(r);case 222:return oct(r);case 223:return cct(r);case 224:return lct(r);case 225:return uct(r);case 226:return xe(r,a);case 227:return Tct(r,a);case 230:return iat(r,a);case 232:return St;case 229:return Sct(r);case 237:return sat(r);case 294:return Cat(r,a);case 284:return dat(r);case 285:return fat(r);case 288:return mat(r);case 292:return hat(r,a);case 286:E.fail("Shouldn't ever directly check a JsxOpeningElement")}return nt}function VIe(r){Ug(r),r.expression&&Jl(r.expression,p.Type_expected),ia(r.constraint),ia(r.default);const a=US(un(r));fu(a),mtt(a)||Me(r.default,p.Type_parameter_0_has_a_circular_default,Ar(a));const l=r_(a),_=$S(a);l&&_&&Pu(_,mf(zi(l,K2(a,_)),_),r.default,p.Type_0_does_not_satisfy_the_constraint_1),Sk(r),n(()=>aD(r.name,p.Type_parameter_name_cannot_be_0))}function Mct(r){var a,l;if(Bu(r.parent)||$n(r.parent)||qp(r.parent)){const _=US(un(r)),m=qme(_)&24576;if(m){const h=un(r.parent);if(qp(r.parent)&&!(bn(Po(h))&52))Me(r,p.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);else if(m===8192||m===16384){(a=qr)==null||a.push(qr.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:Vu(Po(h)),id:Vu(_)});const x=tj(h,_,m===16384?X:se),N=tj(h,_,m===16384?se:X),L=_;F=_,Pu(x,N,r,p.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),F=L,(l=qr)==null||l.pop()}}}}function UIe(r){Ug(r),Vj(r);const a=cf(r);Rn(r,31)&&(a.kind===176&&pp(a.body)||Me(r,p.A_parameter_property_is_only_allowed_in_a_constructor_implementation),a.kind===176&&Ie(r.name)&&r.name.escapedText==="constructor"&&Me(r.name,p.constructor_cannot_be_used_as_a_parameter_property_name)),!r.initializer&&KE(r)&&Ns(r.name)&&a.body&&Me(r,p.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),r.name&&Ie(r.name)&&(r.name.escapedText==="this"||r.name.escapedText==="new")&&(a.parameters.indexOf(r)!==0&&Me(r,p.A_0_parameter_must_be_the_first_parameter,r.name.escapedText),(a.kind===176||a.kind===180||a.kind===185)&&Me(r,p.A_constructor_cannot_have_a_this_parameter),a.kind===219&&Me(r,p.An_arrow_function_cannot_have_a_this_parameter),(a.kind===177||a.kind===178)&&Me(r,p.get_and_set_accessors_cannot_declare_this_parameters)),r.dotDotDotToken&&!Ns(r.name)&&!Qs(Id(Xr(r.symbol)),Nf)&&Me(r,p.A_rest_parameter_must_be_of_an_array_type)}function Rct(r){const a=jct(r);if(!a){Me(r,p.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}const l=Ap(a),_=ap(l);if(!_)return;ia(r.type);const{parameterName:m}=r;if(_.kind===0||_.kind===2)nZ(m);else if(_.parameterIndex>=0){if(Su(l)&&_.parameterIndex===l.parameters.length-1)Me(m,p.A_type_predicate_cannot_reference_a_rest_parameter);else if(_.type){const h=()=>vs(void 0,p.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);Pu(_.type,Xr(l.parameters[_.parameterIndex]),r.type,void 0,h)}}else if(m){let h=!1;for(const{name:x}of a.parameters)if(Ns(x)&&qIe(x,m,_.parameterName)){h=!0;break}h||Me(r.parameterName,p.Cannot_find_parameter_0,_.parameterName)}}function jct(r){switch(r.parent.kind){case 219:case 179:case 262:case 218:case 184:case 174:case 173:const a=r.parent;if(r===a.type)return a}}function qIe(r,a,l){for(const _ of r.elements){if(dl(_))continue;const m=_.name;if(m.kind===80&&m.escapedText===l)return Me(a,p.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,l),!0;if((m.kind===207||m.kind===206)&&qIe(m,a,l))return!0}}function MI(r){r.kind===181?_ft(r):(r.kind===184||r.kind===262||r.kind===185||r.kind===179||r.kind===176||r.kind===180)&&PK(r);const a=pl(r);a&4||((a&3)===3&&re<99&&el(r,6144),(a&3)===2&&re<4&&el(r,64),a&3&&re<2&&el(r,128)),Hj(H0(r)),vut(r),rr(r.parameters,UIe),r.type&&ia(r.type),n(l);function l(){Mlt(r);let _=vp(r),m=_;if(Hr(r)){const h=b1(r);if(h&&h.typeExpression&&Gf(h.typeExpression.type)){const x=uT(ii(h.typeExpression));x&&x.declaration&&(_=vp(x.declaration),m=h.typeExpression.type)}}if(ae&&!_)switch(r.kind){case 180:Me(r,p.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 179:Me(r,p.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break}if(_&&m){const h=pl(r);if((h&5)===1){const x=ii(_);x===Wr?Me(m,p.A_generator_cannot_have_a_void_type_annotation):The(x,h,m)}else(h&3)===2&&mlt(r,_,m)}r.kind!==181&&r.kind!==324&&o1(r)}}function The(r,a,l){const _=ab(0,r,(a&2)!==0)||B,m=ab(1,r,(a&2)!==0)||_,h=ab(2,r,(a&2)!==0)||Kt,x=kIe(_,m,h,!!(a&2));return Pu(x,r,l)}function Bct(r){const a=new Map,l=new Map,_=new Map;for(const h of r.members)if(h.kind===176)for(const x of h.parameters)O_(x,h)&&!Ns(x.name)&&m(a,x.name,x.name.escapedText,3);else{const x=Ms(h),N=h.name;if(!N)continue;const L=Pi(N),z=L&&x?16:0,Z=L?_:x?l:a,de=N&&r0e(N);if(de)switch(h.kind){case 177:m(Z,N,de,1|z);break;case 178:m(Z,N,de,2|z);break;case 172:m(Z,N,de,3|z);break;case 174:m(Z,N,de,8|z);break}}function m(h,x,N,L){const z=h.get(N);if(z)if((z&16)!==(L&16))Me(x,p.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,jc(x));else{const Z=!!(z&8),de=!!(L&8);Z||de?Z!==de&&Me(x,p.Duplicate_identifier_0,jc(x)):z&L&-17?Me(x,p.Duplicate_identifier_0,jc(x)):h.set(N,z|L)}else h.set(N,L)}}function Jct(r){for(const a of r.members){const l=a.name;if(Ms(a)&&l){const m=r0e(l);switch(m){case"name":case"length":case"caller":case"arguments":if(ue)break;case"prototype":const h=p.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,x=pv(un(r));Me(l,h,m,x);break}}}}function HIe(r){const a=new Map;for(const l of r.members)if(l.kind===171){let _;const m=l.name;switch(m.kind){case 11:case 9:_=m.text;break;case 80:_=on(m);break;default:continue}a.get(_)?(Me(us(l.symbol.valueDeclaration),p.Duplicate_identifier_0,_),Me(l.name,p.Duplicate_identifier_0,_)):a.set(_,!0)}}function xhe(r){if(r.kind===264){const l=un(r);if(l.declarations&&l.declarations.length>0&&l.declarations[0]!==r)return}const a=Kde(un(r));if(a!=null&&a.declarations){const l=new Map;for(const _ of a.declarations)_.parameters.length===1&&_.parameters[0].type&&aT(ii(_.parameters[0].type),m=>{const h=l.get(Vu(m));h?h.declarations.push(_):l.set(Vu(m),{type:m,declarations:[_]})});l.forEach(_=>{if(_.declarations.length>1)for(const m of _.declarations)Me(m,p.Duplicate_index_signature_for_type_0,Ar(_.type))})}}function GIe(r){!Ug(r)&&!Fft(r)&&DK(r.name),Vj(r),khe(r),Rn(r,64)&&r.kind===172&&r.initializer&&Me(r,p.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,eo(r.name))}function zct(r){return Pi(r.name)&&Me(r,p.Private_identifiers_are_not_allowed_outside_class_bodies),GIe(r)}function Wct(r){_5e(r)||DK(r.name),hc(r)&&r.asteriskToken&&Ie(r.name)&&on(r.name)==="constructor"&&Me(r.name,p.Class_constructor_may_not_be_a_generator),a7e(r),Rn(r,64)&&r.kind===174&&r.body&&Me(r,p.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,eo(r.name)),Pi(r.name)&&!Nl(r)&&Me(r,p.Private_identifiers_are_not_allowed_outside_class_bodies),khe(r)}function khe(r){if(Pi(r.name)&&re<99){for(let a=Nm(r);a;a=Nm(a))jn(a).flags|=1048576;if(kl(r.parent)){const a=xge(r.parent);a&&(jn(r.name).flags|=32768,jn(a).flags|=4096)}}}function Vct(r){Ug(r),Ss(r,ia)}function Uct(r){MI(r),Nft(r)||Ift(r),ia(r.body);const a=un(r),l=Jo(a,r.kind);if(r===l&&uK(a),_c(r.body))return;n(m);return;function _(h){return Iu(h)?!0:h.kind===172&&!Ms(h)&&!!h.initializer}function m(){const h=r.parent;if(Gv(h)){kge(r.parent,h);const x=Cge(h),N=tNe(r.body);if(N){if(x&&Me(N,p.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),!pe&&(ct(r.parent.members,_)||ct(r.parameters,z=>Rn(z,31))))if(!qct(N,r.body))Me(N,p.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 z;for(const Z of r.body.statements){if(Cl(Z)&&Eb(xc(Z.expression))){z=Z;break}if($Ie(Z))break}z===void 0&&Me(r,p.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 x||Me(r,p.Constructors_for_derived_classes_must_contain_a_super_call)}}}function qct(r,a){const l=Yh(r.parent);return Cl(l)&&l.parent===a}function $Ie(r){return r.kind===108||r.kind===110?!0:Qte(r)?!1:!!Ss(r,$Ie)}function XIe(r){Ie(r.name)&&on(r.name)==="constructor"&&$n(r.parent)&&Me(r.name,p.Class_constructor_may_not_be_an_accessor),n(a),ia(r.body),khe(r);function a(){if(!PK(r)&&!bft(r)&&DK(r.name),Jj(r),MI(r),r.kind===177&&!(r.flags&33554432)&&pp(r.body)&&r.flags&512&&(r.flags&1024||Me(r.name,p.A_get_accessor_must_return_a_value)),r.name.kind===167&&Wg(r.name),d4(r)){const _=un(r),m=Jo(_,177),h=Jo(_,178);if(m&&h&&!(F4(m)&1)){jn(m).flags|=1;const x=Lu(m),N=Lu(h);(x&64)!==(N&64)&&(Me(m.name,p.Accessors_must_both_be_abstract_or_non_abstract),Me(h.name,p.Accessors_must_both_be_abstract_or_non_abstract)),(x&4&&!(N&6)||x&2&&!(N&2))&&(Me(m.name,p.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),Me(h.name,p.A_get_accessor_must_be_at_least_as_accessible_as_the_setter))}}const l=hv(un(r));r.kind===177&&mhe(r,l)}}function Hct(r){Jj(r)}function Gct(r,a,l){return r.typeArguments&&l{const _=Che(r);_&&QIe(r,_)});const l=jn(r).resolvedSymbol;l&&ct(l.declarations,_=>NC(_)&&!!(_.flags&536870912))&&S0(wj(r),l.declarations,l.escapedName)}}function Xct(r){const a=Wn(r.parent,e5);if(!a)return;const l=Che(a);if(!l)return;const _=r_(l[a.typeArguments.indexOf(r)]);return _&&zi(_,ef(l,cK(a,l)))}function Qct(r){$8e(r)}function Yct(r){rr(r.members,ia),n(a);function a(){const l=Lwe(r);hK(l,l.symbol),xhe(r),HIe(r)}}function Zct(r){ia(r.elementType)}function Kct(r){let a=!1,l=!1;for(const _ of r.elements){let m=dme(_);if(m&8){const h=ii(_.type);if(!N0(h)){Me(_,p.A_rest_element_type_must_be_an_array_type);break}(lp(h)||da(h)&&h.target.combinedFlags&4)&&(m|=4)}if(m&4){if(l){or(_,p.A_rest_element_cannot_follow_another_rest_element);break}l=!0}else if(m&2){if(l){or(_,p.An_optional_element_cannot_follow_a_rest_element);break}a=!0}else if(m&1&&a){or(_,p.A_required_element_cannot_follow_an_optional_element);break}}rr(r.elements,ia),ii(r)}function elt(r){rr(r.types,ia),ii(r)}function ZIe(r,a){if(!(r.flags&8388608))return r;const l=r.objectType,_=r.indexType,m=g_(l)&&JY(l)===2?vwe(l,0):pm(l,0),h=!!zg(l,_t);if(N_(_,x=>Qs(x,m)||h&&pk(x,_t)))return a.kind===212&&vg(a)&&bn(l)&32&&tg(l)&1&&Me(a,p.Index_signature_in_type_0_only_permits_reading,Ar(l)),r;if(ZS(l)){const x=ZY(_,a);if(x){const N=aT(n_(l),L=>$s(L,x));if(N&&qf(N)&6)return Me(a,p.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,xi(x)),nt}}return Me(a,p.Type_0_cannot_be_used_to_index_type_1,Ar(_),Ar(l)),nt}function tlt(r){ia(r.objectType),ia(r.indexType),ZIe(wwe(r),r)}function rlt(r){nlt(r),ia(r.typeParameter),ia(r.nameType),ia(r.type),r.type||Ev(r,B);const a=Eme(r),l=E0(a);if(l)Pu(l,_o,r.nameType);else{const _=Bf(a);Pu(_,_o,Uk(r.typeParameter))}}function nlt(r){var a;if((a=r.members)!=null&&a.length)return or(r.members[0],p.A_mapped_type_may_not_declare_properties_or_methods)}function ilt(r){nZ(r)}function slt(r){Tft(r),ia(r.type)}function alt(r){Ss(r,ia)}function olt(r){Pr(r,l=>l.parent&&l.parent.kind===194&&l.parent.extendsType===l)||or(r,p.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),ia(r.typeParameter);const a=un(r.typeParameter);if(a.declarations&&a.declarations.length>1){const l=wi(a);if(!l.typeParametersChecked){l.typeParametersChecked=!0;const _=US(a),m=yte(a,168);if(!P7e(m,[_],h=>[h])){const h=ni(a);for(const x of m)Me(x.name,p.All_declarations_of_0_must_have_identical_constraints,h)}}}o1(r)}function clt(r){for(const a of r.templateSpans){ia(a.type);const l=ii(a.type);Pu(l,_s,a.type)}ii(r)}function llt(r){ia(r.argument),r.attributes&&o6(r.attributes,or),YIe(r)}function ult(r){r.dotDotDotToken&&r.questionToken&&or(r,p.A_tuple_member_cannot_be_both_optional_and_rest),r.type.kind===190&&or(r.type,p.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),r.type.kind===191&&or(r.type,p.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),ia(r.type),ii(r)}function Bj(r){return(R_(r,2)||Iu(r))&&!!(r.flags&33554432)}function lK(r,a){let l=wK(r);if(r.parent.kind!==264&&r.parent.kind!==263&&r.parent.kind!==231&&r.flags&33554432){const _=Pz(r);_&&_.flags&128&&!(l&128)&&!(Yd(r.parent)&&Sc(r.parent.parent)&&Wd(r.parent.parent))&&(l|=32),l|=128}return l&a}function uK(r){n(()=>_lt(r))}function _lt(r){function a(Gt,Cr){return Cr!==void 0&&Cr.parent===Gt[0].parent?Cr:Gt[0]}function l(Gt,Cr,kr,Br,Ir){if((Br^Ir)!==0){const ss=lK(a(Gt,Cr),kr);rr(Gt,Ki=>{const hs=lK(Ki,kr)^ss;hs&32?Me(us(Ki),p.Overload_signatures_must_all_be_exported_or_non_exported):hs&128?Me(us(Ki),p.Overload_signatures_must_all_be_ambient_or_non_ambient):hs&6?Me(us(Ki)||Ki,p.Overload_signatures_must_all_be_public_private_or_protected):hs&64&&Me(us(Ki),p.Overload_signatures_must_all_be_abstract_or_non_abstract)})}}function _(Gt,Cr,kr,Br){if(kr!==Br){const Ir=LT(a(Gt,Cr));rr(Gt,Jr=>{LT(Jr)!==Ir&&Me(us(Jr),p.Overload_signatures_must_all_be_optional_or_required)})}}const m=230;let h=0,x=m,N=!1,L=!0,z=!1,Z,de,_e;const Re=r.declarations,st=(r.flags&16384)!==0;function gt(Gt){if(Gt.name&&_c(Gt.name))return;let Cr=!1;const kr=Ss(Gt.parent,Ir=>{if(Cr)return Ir;Cr=Ir===Gt});if(kr&&kr.pos===Gt.end&&kr.kind===Gt.kind){const Ir=kr.name||kr,Jr=kr.name;if(Gt.name&&Jr&&(Pi(Gt.name)&&Pi(Jr)&&Gt.name.escapedText===Jr.escapedText||Pa(Gt.name)&&Pa(Jr)&&Ih(Wg(Gt.name),Wg(Jr))||Ud(Gt.name)&&Ud(Jr)&&EE(Gt.name)===EE(Jr))){if((Gt.kind===174||Gt.kind===173)&&Ms(Gt)!==Ms(kr)){const Ki=Ms(Gt)?p.Function_overload_must_be_static:p.Function_overload_must_not_be_static;Me(Ir,Ki)}return}if(pp(kr.body)){Me(Ir,p.Function_implementation_name_must_be_0,eo(Gt.name));return}}const Br=Gt.name||Gt;st?Me(Br,p.Constructor_implementation_is_missing):Rn(Gt,64)?Me(Br,p.All_declarations_of_an_abstract_method_must_be_consecutive):Me(Br,p.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let qt=!1,$t=!1,Ur=!1;const Tr=[];if(Re)for(const Gt of Re){const Cr=Gt,kr=Cr.flags&33554432,Br=Cr.parent&&(Cr.parent.kind===264||Cr.parent.kind===187)||kr;if(Br&&(_e=void 0),(Cr.kind===263||Cr.kind===231)&&!kr&&(Ur=!0),Cr.kind===262||Cr.kind===174||Cr.kind===173||Cr.kind===176){Tr.push(Cr);const Ir=lK(Cr,m);h|=Ir,x&=Ir,N=N||LT(Cr),L=L&<(Cr);const Jr=pp(Cr.body);Jr&&Z?st?$t=!0:qt=!0:(_e==null?void 0:_e.parent)===Cr.parent&&_e.end!==Cr.pos&>(_e),Jr?Z||(Z=Cr):z=!0,_e=Cr,Br||(de=Cr)}Hr(Gt)&&As(Gt)&&Gt.jsDoc&&(z=mr(Uz(Gt))>0)}if($t&&rr(Tr,Gt=>{Me(Gt,p.Multiple_constructor_implementations_are_not_allowed)}),qt&&rr(Tr,Gt=>{Me(us(Gt)||Gt,p.Duplicate_function_implementation)}),Ur&&!st&&r.flags&16&&Re){const Gt=An(Re,Cr=>Cr.kind===263).map(Cr=>yn(Cr,p.Consider_adding_a_declare_modifier_to_this_class));rr(Re,Cr=>{const kr=Cr.kind===263?p.Class_declaration_cannot_implement_overload_list_for_0:Cr.kind===262?p.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;kr&&la(Me(us(Cr)||Cr,kr,Xo(r)),...Gt)})}if(de&&!de.body&&!Rn(de,64)&&!de.questionToken&>(de),z&&(Re&&(l(Re,Z,m,h,x),_(Re,Z,N,L)),Z)){const Gt=$2(r),Cr=Ap(Z);for(const kr of Gt)if(!Nnt(Cr,kr)){const Br=kr.declaration&&R1(kr.declaration)?kr.declaration.parent.tagName:kr.declaration;la(Me(Br,p.This_overload_signature_is_not_compatible_with_its_implementation_signature),yn(Z,p.The_implementation_signature_is_declared_here));break}}}function RI(r){n(()=>flt(r))}function flt(r){let a=r.localSymbol;if(!a&&(a=un(r),!a.exportSymbol)||Jo(a,r.kind)!==r)return;let l=0,_=0,m=0;for(const z of a.declarations){const Z=L(z),de=lK(z,2080);de&32?de&2048?m|=Z:l|=Z:_|=Z}const h=l|_,x=l&_,N=m&h;if(x||N)for(const z of a.declarations){const Z=L(z),de=us(z);Z&N?Me(de,p.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,eo(de)):Z&x&&Me(de,p.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,eo(de))}function L(z){let Z=z;switch(Z.kind){case 264:case 265:case 353:case 345:case 347:return 2;case 267:return su(Z)||ch(Z)!==0?5:4;case 263:case 266:case 306:return 3;case 312:return 7;case 277:case 226:const de=Z,_e=oc(de)?de.expression:de.right;if(!pc(_e))return 1;Z=_e;case 271:case 274:case 273:let Re=0;const st=ll(un(Z));return rr(st.declarations,gt=>{Re|=L(gt)}),Re;case 260:case 208:case 262:case 276:case 80:return 1;case 173:case 171:return 2;default:return E.failBadSyntaxKind(Z)}}}function rD(r,a,l,..._){const m=jI(r,a);return m&&fT(m,a,l,..._)}function jI(r,a,l){if(ht(r))return;const _=r;if(_.promisedTypeOfPromise)return _.promisedTypeOfPromise;if(Gy(r,VR(!1)))return _.promisedTypeOfPromise=So(r)[0];if(Mj(wh(r),402915324))return;const m=je(r,"then");if(ht(m))return;const h=m?Es(m,0):Ve;if(h.length===0){a&&Me(a,p.A_promise_must_have_a_then_method);return}let x,N;for(const Z of h){const de=Sv(Z);de&&de!==Wr&&!dm(r,de,Hm)?x=de:N=_r(N,Z)}if(!N){E.assertIsDefined(x),l&&(l.value=x),a&&Me(a,p.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Ar(r),Ar(x));return}const L=Fp(Bn(nr(N,_he)),2097152);if(ht(L))return;const z=Es(L,0);if(z.length===0){a&&Me(a,p.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback);return}return _.promisedTypeOfPromise=Bn(nr(z,_he),2)}function BI(r,a,l,_,...m){return(a?fT(r,l,_,...m):I0(r,l,_,...m))||nt}function KIe(r){if(Mj(wh(r),402915324))return!1;const a=je(r,"then");return!!a&&Es(Fp(a,2097152),0).length>0}function _K(r){var a;if(r.flags&16777216){const l=pme(!1);return!!l&&r.aliasSymbol===l&&((a=r.aliasTypeArguments)==null?void 0:a.length)===1}return!1}function nD(r){return r.flags&1048576?Bo(r,nD):_K(r)?r.aliasTypeArguments[0]:r}function e7e(r){if(ht(r)||_K(r))return!1;if(ZS(r)){const a=fu(r);if(a?a.flags&3||Fh(a)||ad(a,KIe):nc(r,8650752))return!0}return!1}function plt(r){const a=pme(!0);if(a)return y4(a,[nD(r)])}function dlt(r){if(e7e(r)){const a=plt(r);if(a)return a}return E.assert(_K(r)||jI(r)===void 0,"type provided should not be a non-generic 'promise'-like."),r}function fT(r,a,l,..._){const m=I0(r,a,l,..._);return m&&dlt(m)}function I0(r,a,l,..._){if(ht(r)||_K(r))return r;const m=r;if(m.awaitedTypeOfType)return m.awaitedTypeOfType;if(r.flags&1048576){if(ev.lastIndexOf(r.id)>=0){a&&Me(a,p.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}const N=a?z=>I0(z,a,l,..._):I0;ev.push(r.id);const L=Bo(r,N);return ev.pop(),m.awaitedTypeOfType=L}if(e7e(r))return m.awaitedTypeOfType=r;const h={value:void 0},x=jI(r,void 0,h);if(x){if(r.id===x.id||ev.lastIndexOf(x.id)>=0){a&&Me(a,p.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}ev.push(r.id);const N=I0(x,a,l,..._);return ev.pop(),N?m.awaitedTypeOfType=N:void 0}if(KIe(r)){if(a){E.assertIsDefined(l);let N;h.value&&(N=vs(N,p.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Ar(r),Ar(h.value))),N=vs(N,l,..._),wa.add(Zg(wr(a),a,N))}return}return m.awaitedTypeOfType=r}function mlt(r,a,l){const _=ii(a);if(re>=2){if(Ot(_))return;const h=VR(!0);if(h!==fs&&!Gy(_,h)){m(p.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,a,l,Ar(I0(_)||Wr));return}}else{if(hlt(a),Ot(_))return;const h=v8(a);if(h===void 0){m(p.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,l,Ar(_));return}const x=vo(h,111551,!0),N=x?Xr(x):nt;if(Ot(N)){h.kind===80&&h.escapedText==="Promise"&&C0(_)===VR(!1)?Me(l,p.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):m(p.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,l,L_(h));return}const L=ztt(!0);if(L===oa){m(p.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,l,L_(h));return}const z=p.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(!Pu(N,L,l,z,()=>a===l?void 0:vs(void 0,p.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type)))return;const de=h&&lf(h),_e=m_(r.locals,de.escapedText,111551);if(_e){Me(_e.valueDeclaration,p.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,on(de),L_(h));return}}BI(_,!1,r,p.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);function m(h,x,N,L){if(x===N)Me(N,h,L);else{const z=Me(N,p.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type);la(z,yn(x,h,L))}}}function glt(r){const a=D4(r);rK(a,r);const l=Ja(a);if(l.flags&1)return;const _=dhe(r);if(!(_!=null&&_.resolvedReturnType))return;let m;const h=_.resolvedReturnType;switch(r.parent.kind){case 263:case 231:m=p.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 172:if(!Y){m=p.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 169:m=p.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 174:case 177:case 178:m=p.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return E.failBadSyntaxKind(r.parent)}Pu(l,h,r.expression,m)}function JI(r,a,l,_,m,h=l.length,x=0){const N=I.createFunctionTypeNode(void 0,Ve,I.createKeywordTypeNode(133));return Jg(N,r,a,l,_,m,h,x)}function Phe(r,a,l,_,m,h,x){const N=JI(r,a,l,_,m,h,x);return XS(N)}function t7e(r){return Phe(void 0,void 0,Ve,r)}function r7e(r){const a=kd("value",r);return Phe(void 0,void 0,[a],Wr)}function hlt(r){n7e(r&&v8(r),!1)}function n7e(r,a){if(!r)return;const l=lf(r),_=(r.kind===80?788968:1920)|2097152,m=Go(l,l.escapedText,_,void 0,void 0,!0);if(m&&m.flags&2097152){if(pt&&nd(m)&&!UI(ll(m))&&!tp(m))Ly(m);else if(a&&Tp(j)&&au(j)>=5&&!nd(m)&&!ct(m.declarations,x1)){const h=Me(r,p.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),x=wn(m.declarations||Ve,Ny);x&&la(h,yn(x,p._0_was_imported_here,on(l)))}}}function N4(r){const a=Dhe(r);a&&b_(a)&&n7e(a,!0)}function Dhe(r){if(r)switch(r.kind){case 193:case 192:return i7e(r.types);case 194:return i7e([r.trueType,r.falseType]);case 196:case 202:return Dhe(r.type);case 183:return r.typeName}}function i7e(r){let a;for(let l of r){for(;l.kind===196||l.kind===202;)l=l.type;if(l.kind===146||!q&&(l.kind===201&&l.literal.kind===106||l.kind===157))continue;const _=Dhe(l);if(!_)return;if(a){if(!Ie(a)||!Ie(_)||a.escapedText!==_.escapedText)return}else a=_}return a}function fK(r){const a=Vl(r);return dg(r)?Nz(a):a}function Jj(r){if(!Kb(r)||!Wf(r)||!r.modifiers||!k5(Y,r,r.parent,r.parent.parent))return;const a=wn(r.modifiers,ql);if(a){if(Y?(el(a,8),r.kind===169&&el(a,32)):re<99&&(el(a,8),Qc(r)?r.name?D7e(r)&&el(a,8388608):el(a,8388608):kl(r)||(Pi(r.name)&&(hc(r)||$0(r)||s_(r))&&el(a,8388608),Pa(r.name)&&el(a,16777216))),j.emitDecoratorMetadata)switch(el(a,16),r.kind){case 263:const l=Sg(r);if(l)for(const x of l.parameters)N4(fK(x));break;case 177:case 178:const _=r.kind===177?178:177,m=Jo(un(r),_);N4(id(r)||m&&id(m));break;case 174:for(const x of r.parameters)N4(fK(x));N4(vp(r));break;case 172:N4(Vl(r));break;case 169:N4(fK(r));const h=r.parent;for(const x of h.parameters)N4(fK(x));N4(vp(h));break}for(const l of r.modifiers)ql(l)&&glt(l)}}function ylt(r){n(a);function a(){a7e(r),Yhe(r),iD(r,r.name)}}function vlt(r){r.typeExpression||Me(r.name,p.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),r.name&&aD(r.name,p.Type_alias_name_cannot_be_0),ia(r.typeExpression),Hj(H0(r))}function blt(r){ia(r.constraint);for(const a of r.typeParameters)ia(a)}function Slt(r){ia(r.typeExpression)}function Tlt(r){ia(r.typeExpression);const a=D1(r);if(a){const l=J7(a,AO);if(mr(l)>1)for(let _=1;_0),l.length>1&&Me(l[1],p.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);const _=s7e(r.class.expression),m=Gv(a);if(m){const h=s7e(m.expression);h&&_.escapedText!==h.escapedText&&Me(_,p.JSDoc_0_1_does_not_match_the_extends_2_clause,on(r.tagName),on(_),on(h))}}function Alt(r){const a=Nb(r);a&&Iu(a)&&Me(r,p.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}function s7e(r){switch(r.kind){case 80:return r;case 211:return r.name;default:return}}function a7e(r){var a;Jj(r),MI(r);const l=pl(r);if(r.name&&r.name.kind===167&&Wg(r.name),d4(r)){const h=un(r),x=r.localSymbol||h,N=(a=x.declarations)==null?void 0:a.find(L=>L.kind===r.kind&&!(L.flags&524288));r===N&&uK(x),h.parent&&uK(h)}const _=r.kind===173?void 0:r.body;if(ia(_),mhe(r,g4(r)),n(m),Hr(r)){const h=b1(r);h&&h.typeExpression&&!Fge(ii(h.typeExpression),r)&&Me(h.typeExpression.type,p.The_type_of_a_function_declaration_must_match_the_function_s_signature)}function m(){vp(r)||(_c(_)&&!Bj(r)&&Ev(r,B),l&1&&pp(_)&&Ja(Ap(r)))}}function o1(r){n(a);function a(){const l=wr(r);let _=If.get(l.path);_||(_=[],If.set(l.path,_)),_.push(r)}}function o7e(r,a){for(const l of r)switch(l.kind){case 263:case 231:Nlt(l,a),whe(l,a);break;case 312:case 267:case 241:case 269:case 248:case 249:case 250:u7e(l,a);break;case 176:case 218:case 262:case 219:case 174:case 177:case 178:l.body&&u7e(l,a),whe(l,a);break;case 173:case 179:case 180:case 184:case 185:case 265:case 264:whe(l,a);break;case 195:Ilt(l,a);break;default:E.assertNever(l,"Node should not have been registered for unused identifiers check")}}function c7e(r,a,l){const _=us(r)||r,m=NC(r)?p._0_is_declared_but_never_used:p._0_is_declared_but_its_value_is_never_read;l(r,0,yn(_,m,a))}function zI(r){return Ie(r)&&on(r).charCodeAt(0)===95}function Nlt(r,a){for(const l of r.members)switch(l.kind){case 174:case 172:case 177:case 178:if(l.kind===178&&l.symbol.flags&32768)break;const _=un(l);!_.isReferenced&&(R_(l,2)||Nu(l)&&Pi(l.name))&&!(l.flags&33554432)&&a(l,0,yn(l.name,p._0_is_declared_but_its_value_is_never_read,ni(_)));break;case 176:for(const m of l.parameters)!m.symbol.isReferenced&&Rn(m,2)&&a(m,0,yn(m.name,p.Property_0_is_declared_but_its_value_is_never_read,Xo(m.symbol)));break;case 181:case 240:case 175:break;default:E.fail("Unexpected class member")}}function Ilt(r,a){const{typeParameter:l}=r;Ahe(l)&&a(r,1,yn(r,p._0_is_declared_but_its_value_is_never_read,on(l.name)))}function whe(r,a){const l=un(r).declarations;if(!l||ka(l)!==r)return;const _=H0(r),m=new Set;for(const h of _){if(!Ahe(h))continue;const x=on(h.name),{parent:N}=h;if(N.kind!==195&&N.typeParameters.every(Ahe)){if(_1(m,N)){const L=wr(N),z=kp(N)?MW(N):RW(L,N.typeParameters),de=N.typeParameters.length===1?[p._0_is_declared_but_its_value_is_never_read,x]:[p.All_type_parameters_are_unused];a(h,1,xl(L,z.pos,z.end-z.pos,...de))}}else a(h,1,yn(h,p._0_is_declared_but_its_value_is_never_read,x))}}function Ahe(r){return!(Na(r.symbol).isReferenced&262144)&&!zI(r.name)}function zj(r,a,l,_){const m=String(_(a)),h=r.get(m);h?h[1].push(l):r.set(m,[a,[l]])}function l7e(r){return Wn(qd(r),rs)}function Flt(r){return Ea(r)?xp(r.parent)?!!(r.propertyName&&zI(r.name)):zI(r.name):su(r)||(hi(r)&&Gk(r.parent.parent)||_7e(r))&&zI(r.name)}function u7e(r,a){const l=new Map,_=new Map,m=new Map;r.locals.forEach(h=>{if(!(h.flags&262144?!(h.flags&3&&!(h.isReferenced&3)):h.isReferenced||h.exportSymbol)&&h.declarations){for(const x of h.declarations)if(!Flt(x))if(_7e(x))zj(l,Llt(x),x,Oa);else if(Ea(x)&&xp(x.parent)){const N=ka(x.parent.elements);(x===N||!ka(x.parent.elements).dotDotDotToken)&&zj(_,x.parent,x,Oa)}else if(hi(x)){const N=lb(x)&7,L=us(x);(N!==4&&N!==6||!L||!zI(L))&&zj(m,x.parent,x,Oa)}else{const N=h.valueDeclaration&&l7e(h.valueDeclaration),L=h.valueDeclaration&&us(h.valueDeclaration);N&&L?!O_(N,N.parent)&&!Qv(N)&&!zI(L)&&(Ea(x)&&s2(x.parent)?zj(_,x.parent,x,Oa):a(N,1,yn(L,p._0_is_declared_but_its_value_is_never_read,Xo(h)))):c7e(x,Xo(h),a)}}}),l.forEach(([h,x])=>{const N=h.parent;if((h.name?1:0)+(h.namedBindings?h.namedBindings.kind===274?1:h.namedBindings.elements.length:0)===x.length)a(N,0,x.length===1?yn(N,p._0_is_declared_but_its_value_is_never_read,on(va(x).name)):yn(N,p.All_imports_in_import_declaration_are_unused));else for(const z of x)c7e(z,on(z.name),a)}),_.forEach(([h,x])=>{const N=l7e(h.parent)?1:0;if(h.elements.length===x.length)x.length===1&&h.parent.kind===260&&h.parent.parent.kind===261?zj(m,h.parent.parent,h.parent,Oa):a(h,N,x.length===1?yn(h,p._0_is_declared_but_its_value_is_never_read,Wj(va(x).name)):yn(h,p.All_destructured_elements_are_unused));else for(const L of x)a(L,N,yn(L,p._0_is_declared_but_its_value_is_never_read,Wj(L.name)))}),m.forEach(([h,x])=>{if(h.declarations.length===x.length)a(h,0,x.length===1?yn(va(x).name,p._0_is_declared_but_its_value_is_never_read,Wj(va(x).name)):yn(h.parent.kind===243?h.parent:h,p.All_variables_are_unused));else for(const N of x)a(N,0,yn(N,p._0_is_declared_but_its_value_is_never_read,Wj(N.name)))})}function Olt(){var r;for(const a of Ng)if(!((r=un(a))!=null&&r.isReferenced)){const l=Wk(a);E.assert($v(l),"Only parameter declaration should be checked here");const _=yn(a.name,p._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,eo(a.name),eo(a.propertyName));l.type||la(_,xl(wr(l),l.end,1,p.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,eo(a.propertyName))),wa.add(_)}}function Wj(r){switch(r.kind){case 80:return on(r);case 207:case 206:return Wj(Ls(va(r.elements),Ea).name);default:return E.assertNever(r)}}function _7e(r){return r.kind===273||r.kind===276||r.kind===274}function Llt(r){return r.kind===273?r:r.kind===274?r.parent:r.parent.parent}function pK(r){if(r.kind===241&&Rh(r),tz(r)){const a=Ae;rr(r.statements,ia),Ae=a}else rr(r.statements,ia);r.locals&&o1(r)}function Mlt(r){re>=2||!lz(r)||r.flags&33554432||_c(r.body)||rr(r.parameters,a=>{a.name&&!Ns(a.name)&&a.name.escapedText===Pt.escapedName&&Td("noEmit",a,p.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function WI(r,a,l){if((a==null?void 0:a.escapedText)!==l||r.kind===172||r.kind===171||r.kind===174||r.kind===173||r.kind===177||r.kind===178||r.kind===303||r.flags&33554432||(Rm(r)||El(r)||x_(r))&&x1(r))return!1;const _=qd(r);return!(rs(_)&&_c(_.parent.body))}function Rlt(r){Pr(r,a=>F4(a)&4?(r.kind!==80?Me(us(r),p.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):Me(r,p.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0):!1)}function jlt(r){Pr(r,a=>F4(a)&8?(r.kind!==80?Me(us(r),p.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):Me(r,p.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0):!1)}function Blt(r,a){if(R>=5&&!(R>=100&&wr(r).impliedNodeFormat===1)||!a||!WI(r,a,"require")&&!WI(r,a,"exports")||Sc(r)&&ch(r)!==1)return;const l=G(r);l.kind===312&&af(l)&&Td("noEmit",a,p.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,eo(a),eo(a))}function Jlt(r,a){if(!a||re>=4||!WI(r,a,"Promise")||Sc(r)&&ch(r)!==1)return;const l=G(r);l.kind===312&&af(l)&&l.flags&4096&&Td("noEmit",a,p.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,eo(a),eo(a))}function zlt(r,a){re<=8&&(WI(r,a,"WeakMap")||WI(r,a,"WeakSet"))&&Cy.push(r)}function Wlt(r){const a=Nm(r);F4(a)&1048576&&(E.assert(Nu(r)&&Ie(r.name)&&typeof r.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),Td("noEmit",r,p.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,r.name.escapedText))}function Vlt(r,a){a&&re>=2&&re<=8&&WI(r,a,"Reflect")&&Ey.push(r)}function Ult(r){let a=!1;if(kl(r)){for(const l of r.members)if(F4(l)&2097152){a=!0;break}}else if(lo(r))F4(r)&2097152&&(a=!0);else{const l=Nm(r);l&&F4(l)&2097152&&(a=!0)}a&&(E.assert(Nu(r)&&Ie(r.name),"The target of a Reflect collision check should be an identifier"),Td("noEmit",r,p.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,eo(r.name),"Reflect"))}function iD(r,a){a&&(Blt(r,a),Jlt(r,a),zlt(r,a),Vlt(r,a),$n(r)?(aD(a,p.Class_name_cannot_be_0),r.flags&33554432||yut(a)):L1(r)&&aD(a,p.Enum_name_cannot_be_0))}function qlt(r){if(lb(r)&7||$v(r))return;const a=un(r);if(a.flags&1){if(!Ie(r.name))return E.fail();const l=Go(r,r.name.escapedText,3,void 0,void 0,!1);if(l&&l!==a&&l.flags&2&&zge(l)&7){const _=w1(l.valueDeclaration,261),m=_.parent.kind===243&&_.parent.parent?_.parent.parent:void 0;if(!(m&&(m.kind===241&&As(m.parent)||m.kind===268||m.kind===267||m.kind===312))){const x=ni(l);Me(r,p.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,x,x)}}}}function VI(r){return r===Ge?B:r===yl?Ec:r}function Vj(r){var a;if(Jj(r),Ea(r)||ia(r.type),!r.name)return;if(r.name.kind===167&&(Wg(r.name),Tb(r)&&r.initializer&&Dc(r.initializer)),Ea(r)){if(r.propertyName&&Ie(r.name)&&$v(r)&&_c(cf(r).body)){Ng.push(r);return}xp(r.parent)&&r.dotDotDotToken&&re<5&&el(r,4),r.propertyName&&r.propertyName.kind===167&&Wg(r.propertyName);const m=r.parent.parent,h=r.dotDotDotToken?32:0,x=Tn(m,h),N=r.propertyName||r.name;if(x&&!Ns(N)){const L=w0(N);if(bp(L)){const z=Sp(L),Z=$s(x,z);Z&&(kj(Z,void 0,!1),Vge(r,!!m.initializer&&m.initializer.kind===108,!1,x,Z))}}}if(Ns(r.name)&&(r.name.kind===207&&re<2&&j.downlevelIteration&&el(r,512),rr(r.name.elements,ia)),r.initializer&&$v(r)&&_c(cf(r).body)){Me(r,p.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);return}if(Ns(r.name)){if(pge(r))return;const m=Tb(r)&&r.initializer&&r.parent.parent.kind!==249,h=!ct(r.name.elements,s7(dl));if(m||h){const x=M(r);if(m){const N=Dc(r.initializer);q&&h?INe(N,r):r1(N,M(r),r,r.initializer)}h&&(s2(r.name)?F0(65,x,Pe,r):q&&INe(x,r))}return}const l=un(r);if(l.flags&2097152&&(Uv(r)||ere(r))){yK(r);return}const _=VI(Xr(l));if(r===l.valueDeclaration){const m=Tb(r)&&x8(r);if(m&&!(Hr(r)&&ua(m)&&(m.properties.length===0||ny(r.name))&&!!((a=l.exports)!=null&&a.size))&&r.parent.parent.kind!==249){const x=Dc(m);r1(x,_,r,m,void 0);const N=lb(r)&7;if(N===6){const L=Qtt(!0),z=rwe(!0);if(L!==oa&&z!==oa){const Z=Bn([L,z,ce,Pe]);Pu(x,Z,m,p.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(N===4){const L=rwe(!0);if(L!==oa){const z=Bn([L,ce,Pe]);Pu(x,z,m,p.The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined)}}}l.declarations&&l.declarations.length>1&&ct(l.declarations,h=>h!==r&&nC(h)&&!p7e(h,r))&&Me(r.name,p.All_declarations_of_0_must_have_identical_modifiers,eo(r.name))}else{const m=VI(M(r));!Ot(_)&&!Ot(m)&&!Ih(_,m)&&!(l.flags&67108864)&&f7e(l.valueDeclaration,_,r,m),Tb(r)&&r.initializer&&r1(Dc(r.initializer),m,r,r.initializer,void 0),l.valueDeclaration&&!p7e(r,l.valueDeclaration)&&Me(r.name,p.All_declarations_of_0_must_have_identical_modifiers,eo(r.name))}r.kind!==172&&r.kind!==171&&(RI(r),(r.kind===260||r.kind===208)&&qlt(r),iD(r,r.name))}function f7e(r,a,l,_){const m=us(l),h=l.kind===172||l.kind===171?p.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:p.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,x=eo(m),N=Me(m,h,x,Ar(a),Ar(_));r&&la(N,yn(r,p._0_was_also_declared_here,x))}function p7e(r,a){if(r.kind===169&&a.kind===260||r.kind===260&&a.kind===169)return!0;if(LT(r)!==LT(a))return!1;const l=1358;return JT(r,l)===JT(a,l)}function Hlt(r){var a,l;(a=qr)==null||a.push(qr.Phase.Check,"checkVariableDeclaration",{kind:r.kind,pos:r.pos,end:r.end,path:r.tracingPath}),Pft(r),Vj(r),(l=qr)==null||l.pop()}function Glt(r){return kft(r),Vj(r)}function dK(r){const a=Gh(r)&7;(a===4||a===6)&&el(r,33554432),rr(r.declarations,ia)}function $lt(r){!Ug(r)&&!e0e(r.declarationList)&&Dft(r),dK(r.declarationList)}function Xlt(r){Rh(r),Hi(r.expression)}function Qlt(r){Rh(r);const a=sD(r.expression);Nhe(r.expression,a,r.thenStatement),ia(r.thenStatement),r.thenStatement.kind===242&&Me(r.thenStatement,p.The_body_of_an_if_statement_cannot_be_the_empty_statement),ia(r.elseStatement)}function Nhe(r,a,l){if(!q)return;_(r,l);function _(h,x){for(h=Va(h),m(h,x);Zr(h)&&(h.operatorToken.kind===57||h.operatorToken.kind===61);)h=Va(h.left),m(h,x)}function m(h,x){const N=$8(h)?Va(h.right):h;if(yg(N))return;if($8(N)){_(N,x);return}const L=N===h?a:sD(N),z=Sn(N)&&RIe(N.expression);if(!Ip(L,4194304)||z)return;const Z=Es(L,0),de=!!rD(L);if(Z.length===0&&!de)return;const _e=Ie(N)?N:Sn(N)?N.name:void 0,Re=_e&&od(_e);if(!Re&&!de)return;Re&&Zr(h.parent)&&Zlt(h.parent,Re)||Re&&x&&Ylt(h,x,_e,Re)||(de?nv(N,!0,p.This_condition_will_always_return_true_since_this_0_is_always_defined,By(L)):Me(N,p.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}}function Ylt(r,a,l,_){return!!Ss(a,function m(h){if(Ie(h)){const x=od(h);if(x&&x===_){if(Ie(r)||Ie(l)&&Zr(l.parent))return!0;let N=l.parent,L=h.parent;for(;N&&L;){if(Ie(N)&&Ie(L)||N.kind===110&&L.kind===110)return od(N)===od(L);if(Sn(N)&&Sn(L)){if(od(N.name)!==od(L.name))return!1;L=L.expression,N=N.expression}else if(Rs(N)&&Rs(L))L=L.expression,N=N.expression;else return!1}}}return Ss(h,m)})}function Zlt(r,a){for(;Zr(r)&&r.operatorToken.kind===56;){if(Ss(r.right,function _(m){if(Ie(m)){const h=od(m);if(h&&h===a)return!0}return Ss(m,_)}))return!0;r=r.parent}return!1}function Klt(r){Rh(r),ia(r.statement),sD(r.expression)}function eut(r){Rh(r),sD(r.expression),ia(r.statement)}function Ihe(r,a){return r.flags&16384&&Me(a,p.An_expression_of_type_void_cannot_be_tested_for_truthiness),r}function sD(r,a){return Ihe(Hi(r,a),r)}function tut(r){Rh(r)||r.initializer&&r.initializer.kind===261&&e0e(r.initializer),r.initializer&&(r.initializer.kind===261?dK(r.initializer):Hi(r.initializer)),r.condition&&sD(r.condition),r.incrementor&&Hi(r.incrementor),ia(r.statement),r.locals&&o1(r)}function rut(r){u5e(r);const a=v5(r);if(r.awaitModifier?a&&ec(a)?or(r.awaitModifier,p.for_await_loops_cannot_be_used_inside_a_class_static_block):(pl(a)&6)===2&&re<99&&el(r,16384):j.downlevelIteration&&re<2&&el(r,256),r.initializer.kind===261)dK(r.initializer);else{const l=r.initializer,_=Uj(r);if(l.kind===209||l.kind===210)_T(l,_||nt);else{const m=Hi(l);LI(l,p.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,p.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),_&&r1(_,m,l,r.expression)}}ia(r.statement),r.locals&&o1(r)}function nut(r){u5e(r);const a=Uge(Hi(r.expression));if(r.initializer.kind===261){const l=r.initializer.declarations[0];l&&Ns(l.name)&&Me(l.name,p.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),dK(r.initializer)}else{const l=r.initializer,_=Hi(l);l.kind===209||l.kind===210?Me(l,p.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):Qs(Rrt(a),_)?LI(l,p.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,p.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):Me(l,p.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}(a===Cn||!Ql(a,126091264))&&Me(r.expression,p.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,Ar(a)),ia(r.statement),r.locals&&o1(r)}function Uj(r){const a=r.awaitModifier?15:13;return F0(a,E4(r.expression),Pe,r.expression)}function F0(r,a,l,_){return ht(a)?a:Fhe(r,a,l,_,!0)||B}function Fhe(r,a,l,_,m){const h=(r&2)!==0;if(a===Cn){jhe(_,a,h);return}const x=re>=2,N=!x&&j.downlevelIteration,L=j.noUncheckedIndexedAccess&&!!(r&128);if(x||N||h){const st=gK(a,r,x?_:void 0);if(m&&st){const gt=r&8?p.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:r&32?p.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:r&64?p.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:r&16?p.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;gt&&Pu(l,st.nextType,_,gt)}if(st||x)return L?DI(st&&st.yieldType):st&&st.yieldType}let z=a,Z=!1,de=!1;if(r&4){if(z.flags&1048576){const st=a.types,gt=An(st,qt=>!(qt.flags&402653316));gt!==st&&(z=Bn(gt,2))}else z.flags&402653316&&(z=Cn);if(de=z!==a,de&&(re<1&&_&&(Me(_,p.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),Z=!0),z.flags&131072))return L?DI(Ce):Ce}if(!N0(z)){if(_&&!Z){const st=!!(r&4)&&!de,[gt,qt]=Re(st,N);nv(_,qt&&!!rD(z),gt,Ar(z))}return de?L?DI(Ce):Ce:void 0}const _e=bv(z,_t);if(de&&_e)return _e.flags&402653316&&!j.noUncheckedIndexedAccess?Ce:Bn(L?[_e,Ce,Pe]:[_e,Ce],2);return r&128?DI(_e):_e;function Re(st,gt){var qt;return gt?st?[p.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[p.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:Ohe(r,0,a,void 0)?[p.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1]:iut((qt=a.symbol)==null?void 0:qt.escapedName)?[p.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:st?[p.Type_0_is_not_an_array_type_or_a_string_type,!0]:[p.Type_0_is_not_an_array_type,!0]}}function iut(r){switch(r){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 Ohe(r,a,l,_){if(ht(l))return;const m=gK(l,r,_);return m&&m[Ebe(a)]}function O0(r=Cn,a=Cn,l=Kt){if(r.flags&67359327&&a.flags&180227&&l.flags&180227){const _=Np([r,a,l]);let m=li.get(_);return m||(m={yieldType:r,returnType:a,nextType:l},li.set(_,m)),m}return{yieldType:r,returnType:a,nextType:l}}function d7e(r){let a,l,_;for(const m of r)if(!(m===void 0||m===gn)){if(m===Ps)return Ps;a=_r(a,m.yieldType),l=_r(l,m.returnType),_=_r(_,m.nextType)}return a||l||_?O0(a&&Bn(a),l&&Bn(l),_&&Xs(_)):gn}function mK(r,a){return r[a]}function Vg(r,a,l){return r[a]=l}function gK(r,a,l){var _,m;if(ht(r))return Ps;if(!(r.flags&1048576)){const z=l?{errors:void 0}:void 0,Z=m7e(r,a,l,z);if(Z===gn){if(l){const de=jhe(l,r,!!(a&2));z!=null&&z.errors&&la(de,...z.errors)}return}else if((_=z==null?void 0:z.errors)!=null&&_.length)for(const de of z.errors)wa.add(de);return Z}const h=a&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",x=mK(r,h);if(x)return x===gn?void 0:x;let N;for(const z of r.types){const Z=l?{errors:void 0}:void 0,de=m7e(z,a,l,Z);if(de===gn){if(l){const _e=jhe(l,r,!!(a&2));Z!=null&&Z.errors&&la(_e,...Z.errors)}Vg(r,h,gn);return}else if((m=Z==null?void 0:Z.errors)!=null&&m.length)for(const _e of Z.errors)wa.add(_e);N=_r(N,de)}const L=N?d7e(N):gn;return Vg(r,h,L),L===gn?void 0:L}function Lhe(r,a){if(r===gn)return gn;if(r===Ps)return Ps;const{yieldType:l,returnType:_,nextType:m}=r;return a&&pme(!0),O0(fT(l,a)||B,fT(_,a)||B,m)}function m7e(r,a,l,_){if(ht(r))return Ps;let m=!1;if(a&2){const h=Mhe(r,yo)||h7e(r,yo);if(h)if(h===gn&&l)m=!0;else return a&8?Lhe(h,l):h}if(a&1){let h=Mhe(r,Vc)||h7e(r,Vc);if(h)if(h===gn&&l)m=!0;else if(a&2){if(h!==gn)return h=Lhe(h,l),m?h:Vg(r,"iterationTypesOfAsyncIterable",h)}else return h}if(a&2){const h=Rhe(r,yo,l,_,m);if(h!==gn)return h}if(a&1){let h=Rhe(r,Vc,l,_,m);if(h!==gn)return a&2?(h=Lhe(h,l),m?h:Vg(r,"iterationTypesOfAsyncIterable",h)):h}return gn}function Mhe(r,a){return mK(r,a.iterableCacheKey)}function g7e(r,a){const l=Mhe(r,a)||Rhe(r,a,void 0,void 0,!1);return l===gn?gl:l}function h7e(r,a){let l;if(Gy(r,l=a.getGlobalIterableType(!1))||Gy(r,l=a.getGlobalIterableIteratorType(!1))){const[_]=So(r),{returnType:m,nextType:h}=g7e(l,a);return Vg(r,a.iterableCacheKey,O0(a.resolveIterationType(_,void 0)||_,a.resolveIterationType(m,void 0)||m,h))}if(Gy(r,a.getGlobalGeneratorType(!1))){const[_,m,h]=So(r);return Vg(r,a.iterableCacheKey,O0(a.resolveIterationType(_,void 0)||_,a.resolveIterationType(m,void 0)||m,h))}}function y7e(r){const a=K8e(!1),l=a&&je(Xr(a),Vo(r));return l&&bp(l)?Sp(l):`__@${r}`}function Rhe(r,a,l,_,m){const h=$s(r,y7e(a.iteratorSymbolName)),x=h&&!(h.flags&16777216)?Xr(h):void 0;if(ht(x))return m?Ps:Vg(r,a.iterableCacheKey,Ps);const N=x?Es(x,0):void 0;if(!ct(N))return m?gn:Vg(r,a.iterableCacheKey,gn);const L=Xs(nr(N,Ja)),z=v7e(L,a,l,_,m)??gn;return m?z:Vg(r,a.iterableCacheKey,z)}function jhe(r,a,l){const _=l?p.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:p.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator,m=!!rD(a)||!l&&Iw(r.parent)&&r.parent.expression===r&&YY(!1)!==fs&&Qs(a,YY(!1));return nv(r,m,_,Ar(a))}function sut(r,a,l,_){return v7e(r,a,l,_,!1)}function v7e(r,a,l,_,m){if(ht(r))return Ps;let h=b7e(r,a)||aut(r,a);return h===gn&&l&&(h=void 0,m=!0),h??(h=T7e(r,a,l,_,m)),h===gn?void 0:h}function b7e(r,a){return mK(r,a.iteratorCacheKey)}function aut(r,a){const l=a.getGlobalIterableIteratorType(!1);if(Gy(r,l)){const[_]=So(r),m=b7e(l,a)||T7e(l,a,void 0,void 0,!1),{returnType:h,nextType:x}=m===gn?gl:m;return Vg(r,a.iteratorCacheKey,O0(_,h,x))}if(Gy(r,a.getGlobalIteratorType(!1))||Gy(r,a.getGlobalGeneratorType(!1))){const[_,m,h]=So(r);return Vg(r,a.iteratorCacheKey,O0(_,m,h))}}function S7e(r,a){const l=je(r,"done")||Jt;return Qs(a===0?Jt:Er,l)}function out(r){return S7e(r,0)}function cut(r){return S7e(r,1)}function lut(r){if(ht(r))return Ps;const a=mK(r,"iterationTypesOfIteratorResult");if(a)return a;if(Gy(r,$tt(!1))){const x=So(r)[0];return Vg(r,"iterationTypesOfIteratorResult",O0(x,void 0,void 0))}if(Gy(r,Xtt(!1))){const x=So(r)[0];return Vg(r,"iterationTypesOfIteratorResult",O0(void 0,x,void 0))}const l=Mc(r,out),_=l!==Cn?je(l,"value"):void 0,m=Mc(r,cut),h=m!==Cn?je(m,"value"):void 0;return!_&&!h?Vg(r,"iterationTypesOfIteratorResult",gn):Vg(r,"iterationTypesOfIteratorResult",O0(_,h||Wr,void 0))}function Bhe(r,a,l,_,m){var h,x,N,L;const z=$s(r,l);if(!z&&l!=="next")return;const Z=z&&!(l==="next"&&z.flags&16777216)?l==="next"?Xr(z):Fp(Xr(z),2097152):void 0;if(ht(Z))return l==="next"?Ps:Qo;const de=Z?Es(Z,0):Ve;if(de.length===0){if(_){const Gt=l==="next"?a.mustHaveANextMethodDiagnostic:a.mustBeAMethodDiagnostic;m?(m.errors??(m.errors=[]),m.errors.push(yn(_,Gt,l))):Me(_,Gt,l)}return l==="next"?gn:void 0}if(Z!=null&&Z.symbol&&de.length===1){const Gt=a.getGlobalGeneratorType(!1),Cr=a.getGlobalIteratorType(!1),kr=((x=(h=Gt.symbol)==null?void 0:h.members)==null?void 0:x.get(l))===Z.symbol,Br=!kr&&((L=(N=Cr.symbol)==null?void 0:N.members)==null?void 0:L.get(l))===Z.symbol;if(kr||Br){const Ir=kr?Gt:Cr,{mapper:Jr}=Z;return O0(e1(Ir.typeParameters[0],Jr),e1(Ir.typeParameters[1],Jr),l==="next"?e1(Ir.typeParameters[2],Jr):void 0)}}let _e,Re;for(const Gt of de)l!=="throw"&&ct(Gt.parameters)&&(_e=_r(_e,Ld(Gt,0))),Re=_r(Re,Ja(Gt));let st,gt;if(l!=="throw"){const Gt=_e?Bn(_e):Kt;if(l==="next")gt=Gt;else if(l==="return"){const Cr=a.resolveIterationType(Gt,_)||B;st=_r(st,Cr)}}let qt;const $t=Re?Xs(Re):Cn,Ur=a.resolveIterationType($t,_)||B,Tr=lut(Ur);return Tr===gn?(_&&(m?(m.errors??(m.errors=[]),m.errors.push(yn(_,a.mustHaveAValueDiagnostic,l))):Me(_,a.mustHaveAValueDiagnostic,l)),qt=B,st=_r(st,B)):(qt=Tr.yieldType,st=_r(st,Tr.returnType)),O0(qt,Bn(st),gt)}function T7e(r,a,l,_,m){const h=d7e([Bhe(r,a,"next",l,_),Bhe(r,a,"return",l,_),Bhe(r,a,"throw",l,_)]);return m?h:Vg(r,a.iteratorCacheKey,h)}function ab(r,a,l){if(ht(a))return;const _=x7e(a,l);return _&&_[Ebe(r)]}function x7e(r,a){if(ht(r))return Ps;const l=a?2:1,_=a?yo:Vc;return gK(r,l,void 0)||sut(r,_,void 0,void 0)}function uut(r){Rh(r)||xft(r)}function qj(r,a){const l=!!(a&1),_=!!(a&2);if(l){const m=ab(1,r,_);return m?_?I0(nD(m)):m:nt}return _?I0(r)||nt:r}function k7e(r,a){const l=qj(a,pl(r));return!!(l&&(nc(l,16384)||l.flags&32769))}function _ut(r){if(Rh(r))return;const a=v5(r);if(a&&ec(a)){Jl(r,p.A_return_statement_cannot_be_used_inside_a_class_static_block);return}if(!a){Jl(r,p.A_return_statement_can_only_be_used_within_a_function_body);return}const l=Ap(a),_=Ja(l),m=pl(a);if(q||r.expression||_.flags&131072){const h=r.expression?Dc(r.expression):Pe;if(a.kind===178)r.expression&&Me(r,p.Setters_cannot_return_a_value);else if(a.kind===176)r.expression&&!r1(h,_,r,r.expression)&&Me(r,p.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(g4(a)){const x=qj(_,m)??_,N=m&2?BI(h,!1,r,p.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):h;x&&r1(N,x,r,r.expression)}}else a.kind!==176&&j.noImplicitReturns&&!k7e(a,_)&&Me(r,p.Not_all_code_paths_return_a_value)}function fut(r){Rh(r)||r.flags&65536&&Jl(r,p.with_statements_are_not_allowed_in_an_async_function_block),Hi(r.expression);const a=wr(r);if(!ob(a)){const l=Im(a,r.pos).start,_=r.statement.pos;cb(a,l,_-l,p.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function put(r){Rh(r);let a,l=!1;const _=Hi(r.expression);rr(r.caseBlock.clauses,m=>{m.kind===297&&!l&&(a===void 0?a=m:(or(m,p.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),l=!0)),m.kind===296&&n(h(m)),rr(m.statements,ia),j.noFallthroughCasesInSwitch&&m.fallthroughFlowNode&&pj(m.fallthroughFlowNode)&&Me(m,p.Fallthrough_case_in_switch);function h(x){return()=>{const N=Hi(x.expression);vhe(_,N)||Qwe(N,_,x.expression,void 0)}}}),r.caseBlock.locals&&o1(r.caseBlock)}function dut(r){Rh(r)||Pr(r.parent,a=>As(a)?"quit":a.kind===256&&a.label.escapedText===r.label.escapedText?(or(r.label,p.Duplicate_label_0,jc(r.label)),!0):!1),ia(r.statement)}function mut(r){Rh(r)||Ie(r.expression)&&!r.expression.escapedText&&jft(r,p.Line_break_not_permitted_here),r.expression&&Hi(r.expression)}function gut(r){Rh(r),pK(r.tryBlock);const a=r.catchClause;if(a){if(a.variableDeclaration){const l=a.variableDeclaration;Vj(l);const _=Vl(l);if(_){const m=ii(_);m&&!(m.flags&3)&&Jl(_,p.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(l.initializer)Jl(l.initializer,p.Catch_clause_variable_cannot_have_an_initializer);else{const m=a.block.locals;m&&Am(a.locals,h=>{const x=m.get(h);x!=null&&x.valueDeclaration&&x.flags&2&&or(x.valueDeclaration,p.Cannot_redeclare_identifier_0_in_catch_clause,xi(h))})}}pK(a.block)}r.finallyBlock&&pK(r.finallyBlock)}function hK(r,a,l){const _=Wu(r);if(_.length===0)return;for(const h of Xy(r))l&&h.flags&4194304||C7e(r,h,b4(h,8576,!0),Hy(h));const m=a.valueDeclaration;if(m&&$n(m)){for(const h of m.members)if(!Ms(h)&&!d4(h)){const x=un(h);C7e(r,x,Yl(h.name.expression),Hy(x))}}if(_.length>1)for(const h of _)hut(r,h)}function C7e(r,a,l,_){const m=a.valueDeclaration,h=us(m);if(h&&Pi(h))return;const x=Xde(r,l),N=bn(r)&2?Jo(r.symbol,264):void 0,L=m&&m.kind===226||h&&h.kind===167?m:void 0,z=e_(a)===r.symbol?m:void 0;for(const Z of x){const de=Z.declaration&&e_(un(Z.declaration))===r.symbol?Z.declaration:void 0,_e=z||de||(N&&!ct(Z_(r),Re=>!!vv(Re,a.escapedName)&&!!bv(Re,Z.keyType))?N:void 0);if(_e&&!Qs(_,Z.type)){const Re=SS(_e,p.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,ni(a),Ar(_),Ar(Z.keyType),Ar(Z.type));L&&_e!==L&&la(Re,yn(L,p._0_is_declared_here,ni(a))),wa.add(Re)}}}function hut(r,a){const l=a.declaration,_=Xde(r,a.keyType),m=bn(r)&2?Jo(r.symbol,264):void 0,h=l&&e_(un(l))===r.symbol?l:void 0;for(const x of _){if(x===a)continue;const N=x.declaration&&e_(un(x.declaration))===r.symbol?x.declaration:void 0,L=h||N||(m&&!ct(Z_(r),z=>!!zg(z,a.keyType)&&!!bv(z,x.keyType))?m:void 0);L&&!Qs(a.type,x.type)&&Me(L,p._0_index_type_1_is_not_assignable_to_2_index_type_3,Ar(a.keyType),Ar(a.type),Ar(x.keyType),Ar(x.type))}}function aD(r,a){switch(r.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":Me(r,a,r.escapedText)}}function yut(r){re>=1&&r.escapedText==="Object"&&(R<5||wr(r).impliedNodeFormat===1)&&Me(r,p.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,G4[R])}function vut(r){const a=An(T1(r),vd);if(!mr(a))return;const l=Hr(r),_=new Set,m=new Set;if(rr(r.parameters,({name:x},N)=>{Ie(x)&&_.add(x.escapedText),Ns(x)&&m.add(N)}),Yde(r)){const x=a.length-1,N=a[x];l&&N&&Ie(N.name)&&N.typeExpression&&N.typeExpression.type&&!_.has(N.name.escapedText)&&!m.has(x)&&!lp(ii(N.typeExpression.type))&&Me(N.name,p.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,on(N.name))}else rr(a,({name:x,isNameFirst:N},L)=>{m.has(L)||Ie(x)&&_.has(x.escapedText)||(Xu(x)?l&&Me(x,p.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,L_(x),L_(x.left)):N||Bl(l,x,p.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,on(x)))})}function Hj(r){let a=!1;if(r)for(let _=0;_{_.default?(a=!0,but(_.default,r,m)):a&&Me(_,p.Required_type_parameters_may_not_follow_optional_type_parameters);for(let h=0;h_)return!1;for(let L=0;LBc(l)&&Iu(l))&&or(a,p.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!r.name&&!Rn(r,2048)&&Jl(r,p.A_class_declaration_without_the_default_modifier_must_have_a_name),w7e(r),rr(r.members,ia),o1(r)}function w7e(r){cft(r),Jj(r),iD(r,r.name),Hj(H0(r)),RI(r);const a=un(r),l=Po(a),_=mf(l),m=Xr(a);E7e(a),uK(a),Bct(r),!!(r.flags&33554432)||Jct(r);const x=Vd(r);if(x){rr(x.typeArguments,ia),re<2&&el(x.parent,1);const z=Gv(r);z&&z!==x&&Hi(z.expression);const Z=Z_(l);Z.length&&n(()=>{const de=Z[0],_e=Y_(l),Re=n_(_e);if(Eut(Re,x),ia(x.expression),ct(x.typeArguments)){rr(x.typeArguments,ia);for(const gt of Eu(Re,x.typeArguments,x))if(!QIe(x,gt.typeParameters))break}const st=mf(de,l.thisType);if(Pu(_,st,void 0)?Pu(m,Uwe(Re),r.name||r,p.Class_static_side_0_incorrectly_extends_base_class_static_side_1):I7e(r,_,st,p.Class_0_incorrectly_extends_base_class_1),_e.flags&8650752&&(di(m)?Es(_e,1).some(qt=>qt.flags&4)&&!Rn(r,64)&&Me(r.name||r,p.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):Me(r.name||r,p.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)),!(Re.symbol&&Re.symbol.flags&32)&&!(_e.flags&8650752)){const gt=eg(Re,x.typeArguments,x);rr(gt,qt=>!hm(qt.declaration)&&!Ih(Ja(qt),de))&&Me(x.expression,p.Base_constructors_must_all_have_the_same_return_type)}wut(l,de)})}Cut(r,l,_,m);const N=mC(r);if(N)for(const z of N)(!pc(z.expression)||hu(z.expression))&&Me(z.expression,p.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),Ehe(z),n(L(z));n(()=>{hK(l,a),hK(m,a,!0),xhe(r),Iut(r)});function L(z){return()=>{const Z=Id(ii(z));if(!Ot(Z))if(IR(Z)){const de=Z.symbol&&Z.symbol.flags&32?p.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:p.Class_0_incorrectly_implements_interface_1,_e=mf(Z,l.thisType);Pu(_,_e,void 0)||I7e(r,_,_e,de)}else Me(z,p.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}}function Cut(r,a,l,_){const h=Vd(r)&&Z_(a),x=h!=null&&h.length?mf(va(h),a.thisType):void 0,N=Y_(a);for(const L of r.members)fW(L)||(sc(L)&&rr(L.parameters,z=>{O_(z,L)&&A7e(r,_,N,x,a,l,z,!0)}),A7e(r,_,N,x,a,l,L,!1))}function A7e(r,a,l,_,m,h,x,N,L=!0){const z=x.name&&od(x.name)||od(x);return z?N7e(r,a,l,_,m,h,X5(x),Zv(x),Ms(x),N,Xo(z),L?x:void 0):0}function N7e(r,a,l,_,m,h,x,N,L,z,Z,de){const _e=Hr(r),Re=!!(r.flags&33554432);if(_&&(x||j.noImplicitOverride)){const st=Vo(Z),gt=L?a:h,qt=L?l:_,$t=$s(gt,st),Ur=$s(qt,st),Tr=Ar(_);if($t&&!Ur&&x){if(de){const Gt=JNe(Z,qt);Gt?Me(de,_e?p.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:p.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,Tr,ni(Gt)):Me(de,_e?p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:p.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,Tr)}return 2}else if($t&&(Ur!=null&&Ur.declarations)&&j.noImplicitOverride&&!Re){const Gt=ct(Ur.declarations,Zv);if(x)return 0;if(Gt){if(N&&Gt)return de&&Me(de,p.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,Tr),1}else{if(de){const Cr=z?_e?p.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:p.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:_e?p.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:p.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0;Me(de,Cr,Tr)}return 1}}}else if(x){if(de){const st=Ar(m);Me(de,_e?p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:p.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,st)}return 2}return 0}function I7e(r,a,l,_){let m=!1;for(const h of r.members){if(Ms(h))continue;const x=h.name&&od(h.name)||od(h);if(x){const N=$s(a,x.escapedName),L=$s(l,x.escapedName);if(N&&L){const z=()=>vs(void 0,p.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,ni(x),Ar(a),Ar(l));Pu(Xr(N),Xr(L),h.name||h,void 0,z)||(m=!0)}}}m||Pu(a,l,r.name||r,_)}function Eut(r,a){const l=Es(r,1);if(l.length){const _=l[0].declaration;if(_&&R_(_,2)){const m=rh(r.symbol);qhe(a,m)||Me(a,p.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,pf(r.symbol))}}}function Put(r,a,l){if(!a.name)return 0;const _=un(r),m=Po(_),h=mf(m),x=Xr(_),L=Vd(r)&&Z_(m),z=L!=null&&L.length?mf(va(L),m.thisType):void 0,Z=Y_(m),de=a.parent?X5(a):Rn(a,16);return N7e(r,x,Z,z,m,h,de,Zv(a),Ms(a),!1,Xo(l))}function I4(r){return Ko(r)&1?r.links.target:r}function Dut(r){return An(r.declarations,a=>a.kind===263||a.kind===264)}function wut(r,a){var l,_,m,h;const x=Ua(a);let N;e:for(const L of x){const z=I4(L);if(z.flags&4194304)continue;const Z=vv(r,z.escapedName);if(!Z)continue;const de=I4(Z),_e=qf(z);if(E.assert(!!de,"derived should point to something, even if it is the base class' declaration."),de===z){const Re=rh(r.symbol);if(_e&64&&(!Re||!Rn(Re,64))){for(const st of Z_(r)){if(st===a)continue;const gt=vv(st,z.escapedName),qt=gt&&I4(gt);if(qt&&qt!==z)continue e}N||(N=Me(Re,p.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1,Ar(r),Ar(a))),Re.kind===231?la(N,yn(L.valueDeclaration??(L.declarations&&va(L.declarations))??Re,p.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,ni(L),Ar(a))):la(N,yn(L.valueDeclaration??(L.declarations&&va(L.declarations))??Re,p.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,Ar(r),ni(L),Ar(a)))}}else{const Re=qf(de);if(_e&2||Re&2)continue;let st;const gt=z.flags&98308,qt=de.flags&98308;if(gt&&qt){if((Ko(z)&6?(l=z.declarations)!=null&&l.some(Tr=>F7e(Tr,_e)):(_=z.declarations)!=null&&_.every(Tr=>F7e(Tr,_e)))||Ko(z)&262144||de.valueDeclaration&&Zr(de.valueDeclaration))continue;const $t=gt!==4&&qt===4;if($t||gt===4&&qt!==4){const Tr=$t?p._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:p._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;Me(us(de.valueDeclaration)||de.valueDeclaration,Tr,ni(z),Ar(a),Ar(r))}else if(ue){const Tr=(m=de.declarations)==null?void 0:m.find(Gt=>Gt.kind===172&&!Gt.initializer);if(Tr&&!(de.flags&33554432)&&!(_e&64)&&!(Re&64)&&!((h=de.declarations)!=null&&h.some(Gt=>!!(Gt.flags&33554432)))){const Gt=Th(rh(r.symbol)),Cr=Tr.name;if(Tr.exclamationToken||!Gt||!Ie(Cr)||!q||!L7e(Cr,r,Gt)){const kr=p.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;Me(us(de.valueDeclaration)||de.valueDeclaration,kr,ni(z),Ar(a))}}}continue}else if(Wge(z)){if(Wge(de)||de.flags&4)continue;E.assert(!!(de.flags&98304)),st=p.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else z.flags&98304?st=p.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:st=p.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;Me(us(de.valueDeclaration)||de.valueDeclaration,st,Ar(a),ni(z),Ar(r))}}}function F7e(r,a){return a&64&&(!xs(r)||!r.initializer)||Bu(r.parent)}function Aut(r,a,l){if(!mr(a))return l;const _=new Map;rr(l,m=>{_.set(m.escapedName,m)});for(const m of a){const h=Ua(mf(m,r.thisType));for(const x of h){const N=_.get(x.escapedName);N&&x.parent===N.parent&&_.delete(x.escapedName)}}return gs(_.values())}function Nut(r,a){const l=Z_(r);if(l.length<2)return!0;const _=new Map;rr(Ide(r).declaredProperties,h=>{_.set(h.escapedName,{prop:h,containingType:r})});let m=!0;for(const h of l){const x=Ua(mf(h,r.thisType));for(const N of x){const L=_.get(N.escapedName);if(!L)_.set(N.escapedName,{prop:N,containingType:h});else if(L.containingType!==r&&!Vnt(L.prop,N)){m=!1;const Z=Ar(L.containingType),de=Ar(h);let _e=vs(void 0,p.Named_property_0_of_types_1_and_2_are_not_identical,ni(N),Z,de);_e=vs(_e,p.Interface_0_cannot_simultaneously_extend_types_1_and_2,Ar(r),Z,de),wa.add(Zg(wr(a),a,_e))}}}return m}function Iut(r){if(!q||!Se||r.flags&33554432)return;const a=Th(r);for(const l of r.members)if(!(Lu(l)&128)&&!Ms(l)&&O7e(l)){const _=l.name;if(Ie(_)||Pi(_)||Pa(_)){const m=Xr(un(l));m.flags&3||zP(m)||(!a||!L7e(_,m,a))&&Me(l.name,p.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,eo(_))}}}function O7e(r){return r.kind===172&&!Zv(r)&&!r.exclamationToken&&!r.initializer}function Fut(r,a,l,_,m){for(const h of l)if(h.pos>=_&&h.pos<=m){const x=I.createPropertyAccessExpression(I.createThis(),r);ba(x.expression,x),ba(x,h),x.flowNode=h.returnFlowNode;const N=a1(x,a,i1(a));if(!zP(N))return!0}return!1}function L7e(r,a,l){const _=Pa(r)?I.createElementAccessExpression(I.createThis(),r.expression):I.createPropertyAccessExpression(I.createThis(),r);ba(_.expression,_),ba(_,l),_.flowNode=l.returnFlowNode;const m=a1(_,a,i1(a));return!zP(m)}function Out(r){Ug(r)||mft(r),Hj(r.typeParameters),n(()=>{aD(r.name,p.Interface_name_cannot_be_0),RI(r);const a=un(r);E7e(a);const l=Jo(a,264);if(r===l){const _=Po(a),m=mf(_);if(Nut(_,r.name)){for(const h of Z_(_))Pu(m,mf(h,_.thisType),r.name,p.Interface_0_incorrectly_extends_interface_1);hK(_,a)}}HIe(r)}),rr(kE(r),a=>{(!pc(a.expression)||hu(a.expression))&&Me(a.expression,p.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),Ehe(a)}),rr(r.members,ia),n(()=>{xhe(r),o1(r)})}function Lut(r){Ug(r),aD(r.name,p.Type_alias_name_cannot_be_0),RI(r),Hj(r.typeParameters),r.type.kind===141?(!g9.has(r.name.escapedText)||mr(r.typeParameters)!==1)&&Me(r.type,p.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(ia(r.type),o1(r))}function M7e(r){const a=jn(r);if(!(a.flags&1024)){a.flags|=1024;let l=0;for(const _ of r.members){const m=Mut(_,l);jn(_).enumMemberValue=m,l=typeof m=="number"?m+1:void 0}}}function Mut(r,a){if(_8(r.name))Me(r.name,p.Computed_property_names_are_not_allowed_in_enums);else{const l=Kk(r.name);kg(l)&&!YE(l)&&Me(r.name,p.An_enum_member_cannot_have_a_numeric_name)}if(r.initializer)return Rut(r);if(!(r.parent.flags&33554432&&!zv(r.parent))){if(a!==void 0)return a;Me(r.name,p.Enum_member_must_have_initializer)}}function Rut(r){const a=zv(r.parent),l=r.initializer,_=oD(l,r);return _!==void 0?a&&typeof _=="number"&&!isFinite(_)&&Me(l,isNaN(_)?p.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:p.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):a?Me(l,p.const_enum_member_initializers_must_be_constant_expressions):r.parent.flags&33554432?Me(l,p.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):Pu(Hi(l),_t,l,p.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values),_}function oD(r,a){switch(r.kind){case 224:const l=oD(r.operand,a);if(typeof l=="number")switch(r.operator){case 40:return l;case 41:return-l;case 55:return~l}break;case 226:const _=oD(r.left,a),m=oD(r.right,a);if(typeof _=="number"&&typeof m=="number")switch(r.operatorToken.kind){case 52:return _|m;case 51:return _&m;case 49:return _>>m;case 50:return _>>>m;case 48:return _<But(r))}function But(r){Ug(r),iD(r,r.name),RI(r),r.members.forEach(Jut),M7e(r);const a=un(r),l=Jo(a,r.kind);if(r===l){if(a.declarations&&a.declarations.length>1){const m=zv(r);rr(a.declarations,h=>{L1(h)&&zv(h)!==m&&Me(us(h),p.Enum_declarations_must_all_be_const_or_non_const)})}let _=!1;rr(a.declarations,m=>{if(m.kind!==266)return!1;const h=m;if(!h.members.length)return!1;const x=h.members[0];x.initializer||(_?Me(x.name,p.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):_=!0)})}}function Jut(r){Pi(r.name)&&Me(r,p.An_enum_member_cannot_be_named_with_a_private_identifier),r.initializer&&Hi(r.initializer)}function zut(r){const a=r.declarations;if(a){for(const l of a)if((l.kind===263||l.kind===262&&pp(l.body))&&!(l.flags&33554432))return l}}function Wut(r,a){const l=Nm(r),_=Nm(a);return Gm(l)?Gm(_):Gm(_)?!1:l===_}function Vut(r){r.body&&(ia(r.body),Wd(r)||o1(r)),n(a);function a(){var l,_;const m=Wd(r),h=r.flags&33554432;m&&!h&&Me(r.name,p.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);const x=su(r),N=x?p.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:p.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(Gj(r,N))return;Ug(r)||!h&&r.name.kind===11&&or(r.name,p.Only_ambient_modules_can_use_quoted_names),Ie(r.name)&&iD(r,r.name),RI(r);const L=un(r);if(L.flags&512&&!h&&VU(r,n2(j))){if(Tp(j)&&!wr(r).externalModuleIndicator&&Me(r.name,p.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),((l=L.declarations)==null?void 0:l.length)>1){const z=zut(L);z&&(wr(r)!==wr(z)?Me(r.name,p.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):r.posZ.kind===95);z&&Me(z,p.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(x)if(Jv(r)){if((m||un(r).flags&33554432)&&r.body)for(const Z of r.body.statements)Jhe(Z,m)}else Gm(r.parent)?m?Me(r.name,p.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Sl(hp(r.name))&&Me(r.name,p.Ambient_module_declaration_cannot_specify_relative_module_name):m?Me(r.name,p.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Me(r.name,p.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}}function Jhe(r,a){switch(r.kind){case 243:for(const _ of r.declarationList.declarations)Jhe(_,a);break;case 277:case 278:Jl(r,p.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 271:case 272:Jl(r,p.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 208:case 260:const l=r.name;if(Ns(l)){for(const _ of l.elements)Jhe(_,a);break}case 263:case 266:case 262:case 264:case 267:case 265:if(a)return;break}}function Uut(r){switch(r.kind){case 80:return r;case 166:do r=r.left;while(r.kind!==80);return r;case 211:do{if(yg(r.expression)&&!Pi(r.name))return r.name;r=r.expression}while(r.kind!==80);return r}}function zhe(r){const a=uC(r);if(!a||_c(a))return!1;if(!aa(a))return Me(a,p.String_literal_expected),!1;const l=r.parent.kind===268&&su(r.parent.parent);if(r.parent.kind!==312&&!l)return Me(a,r.kind===278?p.Export_declarations_are_not_permitted_in_a_namespace:p.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(l&&Sl(a.text)&&!zy(r))return Me(r,p.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!El(r)&&r.attributes){const _=r.attributes.token===118?p.Import_attribute_values_must_be_string_literal_expressions:p.Import_assertion_values_must_be_string_literal_expressions;let m=!1;for(const h of r.attributes.elements)aa(h.value)||(m=!0,Me(h.value,_));return!m}return!0}function yK(r){var a,l,_,m;let h=un(r);const x=ll(h);if(x!==tt){if(h=Na(h.exportSymbol||h),Hr(r)&&!(x.flags&111551)&&!x1(r)){const z=PT(r)?r.propertyName||r.name:Nu(r)?r.name:r;if(E.assert(r.kind!==280),r.kind===281){const Z=Me(z,p.Types_cannot_appear_in_export_declarations_in_JavaScript_files),de=(l=(a=wr(r).symbol)==null?void 0:a.exports)==null?void 0:l.get((r.propertyName||r.name).escapedText);if(de===x){const _e=(_=de.declarations)==null?void 0:_.find($k);_e&&la(Z,yn(_e,p._0_is_automatically_exported_here,xi(de.escapedName)))}}else{E.assert(r.kind!==260);const Z=Pr(r,fd(sl,El)),de=(Z&&((m=lC(Z))==null?void 0:m.text))??"...",_e=xi(Ie(z)?z.escapedText:h.escapedName);Me(z,p._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,_e,`import("${de}").${_e}`)}return}const N=$l(x),L=(h.flags&1160127?111551:0)|(h.flags&788968?788968:0)|(h.flags&1920?1920:0);if(N&L){const z=r.kind===281?p.Export_declaration_conflicts_with_exported_declaration_of_0:p.Import_declaration_conflicts_with_local_declaration_of_0;Me(r,z,ni(h))}else r.kind!==281&&j.isolatedModules&&!Pr(r,x1)&&h.flags&1160127&&Me(r,p.Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,ni(h),Je);if(Tp(j)&&!x1(r)&&!(r.flags&33554432)){const z=tp(h),Z=!(N&111551);if(Z||z)switch(r.kind){case 273:case 276:case 271:{if(j.preserveValueImports||j.verbatimModuleSyntax){E.assertIsDefined(r.name,"An ImportClause with a symbol should have a name");const de=j.verbatimModuleSyntax&&oC(r)?p.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:Z?j.verbatimModuleSyntax?p._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:p._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:j.verbatimModuleSyntax?p._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:p._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled,_e=on(r.kind===276&&r.propertyName||r.name);Ig(Me(r,de,_e),Z?void 0:z,_e)}Z&&r.kind===271&&R_(r,32)&&Me(r,p.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,Je);break}case 281:if(j.verbatimModuleSyntax||wr(z)!==wr(r)){const de=on(r.propertyName||r.name),_e=Z?Me(r,p.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,Je):Me(r,p._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled,de,Je);Ig(_e,Z?void 0:z,de);break}}j.verbatimModuleSyntax&&r.kind!==271&&!Hr(r)&&(R===1||wr(r).impliedNodeFormat===1)&&Me(r,p.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}if(x_(r)){const z=Whe(h,r);Dy(z)&&z.declarations&&S0(r,z.declarations,z.escapedName)}}}function Whe(r,a){if(!(r.flags&2097152)||Dy(r)||!ed(r))return r;const l=ll(r);if(l===tt)return l;for(;r.flags&2097152;){const _=Mge(r);if(_){if(_===l)break;if(_.declarations&&mr(_.declarations))if(Dy(_)){S0(a,_.declarations,_.escapedName);break}else{if(r===l)break;r=_}}else break}return l}function vK(r){iD(r,r.name),yK(r),r.kind===276&&on(r.propertyName||r.name)==="default"&&Om(j)&&R!==4&&(R<5||wr(r).impliedNodeFormat===1)&&el(r,131072)}function B7e(r){var a;const l=r.attributes;if(l){const _=ume(!0);_!==oa&&Pu(ie(l),aj(_,32768),l);const m=Iq(r),h=o6(l,m?or:void 0),x=r.attributes.token===118;if(m&&h)return;if((R===199&&r.moduleSpecifier&&Oi(r.moduleSpecifier))!==99&&R!==99&&R!==200){const L=x?R===199?p.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:p.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:R===199?p.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:p.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve;return or(l,L)}if(sl(r)?(a=r.importClause)!=null&&a.isTypeOnly:r.isTypeOnly)return or(l,x?p.Import_attributes_cannot_be_used_with_type_only_imports_or_exports:p.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(h)return or(l,p.resolution_mode_can_only_be_set_for_type_only_imports)}}function qut(r){return Uu(Dc(r.value))}function Hut(r){if(!Gj(r,Hr(r)?p.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:p.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!Ug(r)&&$5(r)&&Jl(r,p.An_import_declaration_cannot_have_modifiers),zhe(r)){const a=r.importClause;a&&!Jft(a)&&(a.name&&vK(a),a.namedBindings&&(a.namedBindings.kind===274?(vK(a.namedBindings),R!==4&&(R<5||wr(r).impliedNodeFormat===1)&&Om(j)&&el(r,65536)):zu(r,r.moduleSpecifier)&&rr(a.namedBindings.elements,vK)))}B7e(r)}}function Gut(r){if(!Gj(r,Hr(r)?p.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:p.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(Ug(r),oC(r)||zhe(r)))if(vK(r),Rn(r,32)&&Oy(r),r.moduleReference.kind!==283){const a=ll(un(r));if(a!==tt){const l=$l(a);if(l&111551){const _=lf(r.moduleReference);vo(_,112575).flags&1920||Me(_,p.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,eo(_))}l&788968&&aD(r.name,p.Import_name_cannot_be_0)}r.isTypeOnly&&or(r,p.An_import_alias_cannot_use_import_type)}else R>=5&&R!==200&&wr(r).impliedNodeFormat===void 0&&!r.isTypeOnly&&!(r.flags&33554432)&&or(r,p.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 $ut(r){if(!Gj(r,Hr(r)?p.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:p.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!Ug(r)&&Ere(r)&&Jl(r,p.An_export_declaration_cannot_have_modifiers),r.moduleSpecifier&&r.exportClause&&$f(r.exportClause)&&mr(r.exportClause.elements)&&re===0&&el(r,4194304),Xut(r),!r.moduleSpecifier||zhe(r))if(r.exportClause&&!jm(r.exportClause)){rr(r.exportClause.elements,t_t);const a=r.parent.kind===268&&su(r.parent.parent),l=!a&&r.parent.kind===268&&!r.moduleSpecifier&&r.flags&33554432;r.parent.kind!==312&&!a&&!l&&Me(r,p.Export_declarations_are_not_permitted_in_a_namespace)}else{const a=zu(r,r.moduleSpecifier);a&&k0(a)?Me(r.moduleSpecifier,p.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,ni(a)):r.exportClause&&yK(r.exportClause),R!==4&&(R<5||wr(r).impliedNodeFormat===1)&&(r.exportClause?Om(j)&&el(r,65536):el(r,32768))}B7e(r)}}function Xut(r){var a;return r.isTypeOnly&&((a=r.exportClause)==null?void 0:a.kind)===279?h5e(r.exportClause):!1}function Gj(r,a){const l=r.parent.kind===312||r.parent.kind===268||r.parent.kind===267;return l||Jl(r,a),!l}function Qut(r){return O5(r,a=>!!un(a).isReferenced)}function Yut(r){return O5(r,a=>!!wi(un(a)).constEnumReferenced)}function Zut(r){return sl(r)&&r.importClause&&!r.importClause.isTypeOnly&&Qut(r.importClause)&&!CK(r.importClause,!0)&&!Yut(r.importClause)}function Kut(r){return El(r)&&Bm(r.moduleReference)&&!r.isTypeOnly&&un(r).isReferenced&&!CK(r,!1)&&!wi(un(r)).constEnumReferenced}function e_t(r){if(pt)for(const a of r.statements)(Zut(a)||Kut(a))&&Me(a,p.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}function t_t(r){if(yK(r),Hf(j)&&wP(r.propertyName||r.name,!0),r.parent.parent.moduleSpecifier)Om(j)&&R!==4&&(R<5||wr(r).impliedNodeFormat===1)&&on(r.propertyName||r.name)==="default"&&el(r,131072);else{const a=r.propertyName||r.name,l=Go(a,a.escapedText,2998271,void 0,void 0,!0);if(l&&(l===Fe||l===$e||l.declarations&&Gm(G(l.declarations[0]))))Me(a,p.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,on(a));else{!r.isTypeOnly&&!r.parent.parent.isTypeOnly&&Oy(r);const _=l&&(l.flags&2097152?ll(l):l);(!_||$l(_)&111551)&&Dc(r.propertyName||r.name)}}}function r_t(r){const a=r.isExportEquals?p.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:p.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration;if(Gj(r,a))return;const l=r.parent.kind===312?r.parent:r.parent.parent;if(l.kind===267&&!su(l)){r.isExportEquals?Me(r,p.An_export_assignment_cannot_be_used_in_a_namespace):Me(r,p.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);return}!Ug(r)&&$5(r)&&Jl(r,p.An_export_assignment_cannot_have_modifiers);const _=Vl(r);_&&Pu(Dc(r.expression),ii(_),r.expression);const m=!r.isExportEquals&&!(r.flags&33554432)&&j.verbatimModuleSyntax&&(R===1||wr(r).impliedNodeFormat===1);if(r.expression.kind===80){const h=r.expression,x=Mf(vo(h,-1,!0,!0,r));if(x){const N=tp(x,111551);if(RZ(x,h),$l(x)&111551?(Dc(h),!m&&!(r.flags&33554432)&&j.verbatimModuleSyntax&&N&&Me(h,r.isExportEquals?p.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:p.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration,on(h))):!m&&!(r.flags&33554432)&&j.verbatimModuleSyntax&&Me(h,r.isExportEquals?p.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:p.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type,on(h)),!m&&!(r.flags&33554432)&&Tp(j)&&!(x.flags&111551)){const L=$l(x,!1,!0);x.flags&2097152&&L&788968&&!(L&111551)&&(!N||wr(N)!==wr(r))?Me(h,r.isExportEquals?p._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:p._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,on(h),Je):N&&wr(N)!==wr(r)&&Ig(Me(h,r.isExportEquals?p._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:p._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,on(h),Je),N,on(h))}}else Dc(h);Hf(j)&&wP(h,!0)}else Dc(r.expression);m&&Me(r,p.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled),J7e(l),r.flags&33554432&&!pc(r.expression)&&or(r.expression,p.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),r.isExportEquals&&(R>=5&&R!==200&&(r.flags&33554432&&wr(r).impliedNodeFormat===99||!(r.flags&33554432)&&wr(r).impliedNodeFormat!==1)?or(r,p.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):R===4&&!(r.flags&33554432)&&or(r,p.Export_assignment_is_not_supported_when_module_flag_is_system))}function n_t(r){return fl(r.exports,(a,l)=>l!=="export=")}function J7e(r){const a=un(r),l=wi(a);if(!l.exportsChecked){const _=a.exports.get("export=");if(_&&n_t(a)){const h=ed(_)||_.valueDeclaration;h&&!zy(h)&&!Hr(h)&&Me(h,p.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}const m=Xm(a);m&&m.forEach(({declarations:h,flags:x},N)=>{if(N==="__export"||x&1920)return;const L=R0(h,i7(Pbe,s7(Bu)));if(!(x&524288&&L<=2)&&L>1&&!bK(h))for(const z of h)kbe(z)&&wa.add(yn(z,p.Cannot_redeclare_exported_variable_0,xi(N)))}),l.exportsChecked=!0}}function bK(r){return r&&r.length>1&&r.every(a=>Hr(a)&&co(a)&&(Db(a.expression)||yg(a.expression)))}function ia(r){if(r){const a=P;P=r,T=0,i_t(r),P=a}}function i_t(r){O8(r)&&rr(r.jsDoc,({comment:l,tags:_})=>{z7e(l),rr(_,m=>{z7e(m.comment),Hr(r)&&ia(m)})});const a=r.kind;if(i)switch(a){case 267:case 263:case 264:case 262:i.throwIfCancellationRequested()}switch(a>=243&&a<=259&&F8(r)&&r.flowNode&&!pj(r.flowNode)&&Bl(j.allowUnreachableCode===!1,r,p.Unreachable_code_detected),a){case 168:return VIe(r);case 169:return UIe(r);case 172:return GIe(r);case 171:return zct(r);case 185:case 184:case 179:case 180:case 181:return MI(r);case 174:case 173:return Wct(r);case 175:return Vct(r);case 176:return Uct(r);case 177:case 178:return XIe(r);case 183:return Ehe(r);case 182:return Rct(r);case 186:return Qct(r);case 187:return Yct(r);case 188:return Zct(r);case 189:return Kct(r);case 192:case 193:return elt(r);case 196:case 190:case 191:return ia(r.type);case 197:return ilt(r);case 198:return slt(r);case 194:return alt(r);case 195:return olt(r);case 203:return clt(r);case 205:return llt(r);case 202:return ult(r);case 335:return wlt(r);case 336:return Dlt(r);case 353:case 345:case 347:return vlt(r);case 352:return blt(r);case 351:return Slt(r);case 331:case 332:case 333:return xlt(r);case 348:return klt(r);case 355:return Clt(r);case 324:Elt(r);case 322:case 321:case 319:case 320:case 329:W7e(r),Ss(r,ia);return;case 325:s_t(r);return;case 316:return ia(r.type);case 340:case 342:case 341:return Alt(r);case 357:return Tlt(r);case 350:return Plt(r);case 199:return tlt(r);case 200:return rlt(r);case 262:return ylt(r);case 241:case 268:return pK(r);case 243:return $lt(r);case 244:return Xlt(r);case 245:return Qlt(r);case 246:return Klt(r);case 247:return eut(r);case 248:return tut(r);case 249:return nut(r);case 250:return rut(r);case 251:case 252:return uut(r);case 253:return _ut(r);case 254:return fut(r);case 255:return put(r);case 256:return dut(r);case 257:return mut(r);case 258:return gut(r);case 260:return Hlt(r);case 208:return Glt(r);case 263:return kut(r);case 264:return Out(r);case 265:return Lut(r);case 266:return jut(r);case 267:return Vut(r);case 272:return Hut(r);case 271:return Gut(r);case 278:return $ut(r);case 277:return r_t(r);case 242:case 259:Rh(r);return;case 282:return Hct(r)}}function z7e(r){ts(r)&&rr(r,a=>{NT(a)&&ia(a)})}function W7e(r){if(!Hr(r))if(CO(r)||WC(r)){const a=Ws(CO(r)?54:58),l=r.postfix?p._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:p._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1,_=r.type,m=ii(_);or(r,l,a,Ar(WC(r)&&!(m===Cn||m===Wr)?Bn(_r([m,Pe],r.postfix?void 0:ce)):m))}else or(r,p.JSDoc_types_can_only_be_used_inside_documentation_comments)}function s_t(r){W7e(r),ia(r.type);const{parent:a}=r;if(rs(a)&&VC(a.parent)){ka(a.parent.parameters)!==a&&Me(r,p.A_rest_parameter_must_be_last_in_a_parameter_list);return}d2(a)||Me(r,p.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);const l=r.parent.parent;if(!vd(l)){Me(r,p.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}const _=L8(l);if(!_)return;const m=P1(l);(!m||ka(m.parameters).symbol!==_)&&Me(r,p.A_rest_parameter_must_be_last_in_a_parameter_list)}function a_t(r){const a=ii(r.type),{parent:l}=r,_=r.parent.parent;if(d2(r.parent)&&vd(_)){const m=P1(_),h=FV(_.parent.parent);if(m||h){const x=Do(h?_.parent.parent.typeExpression.parameters:m.parameters),N=L8(_);if(!x||N&&x.symbol===N&&dg(x))return pu(a)}}return rs(l)&&VC(l.parent)?pu(a):A_(a)}function Sk(r){const a=wr(r),l=jn(a);l.flags&1?E.assert(!l.deferredNodes,"A type-checked file should have no deferred nodes."):(l.deferredNodes||(l.deferredNodes=new Set),l.deferredNodes.add(r))}function o_t(r){const a=jn(r);a.deferredNodes&&a.deferredNodes.forEach(c_t),a.deferredNodes=void 0}function c_t(r){var a,l;(a=qr)==null||a.push(qr.Phase.Check,"checkDeferredNode",{kind:r.kind,pos:r.pos,end:r.end,path:r.tracingPath});const _=P;switch(P=r,T=0,r.kind){case 213:case 214:case 215:case 170:case 286:lT(r);break;case 218:case 219:case 174:case 173:rct(r);break;case 177:case 178:XIe(r);break;case 231:xut(r);break;case 168:Mct(r);break;case 285:_at(r);break;case 284:pat(r);break;case 216:case 234:case 217:wot(r);break;case 222:Hi(r.expression);break;case 226:Y5(r)&&lT(r);break}P=_,(l=qr)==null||l.pop()}function l_t(r){var a,l;(a=qr)==null||a.push(qr.Phase.Check,"checkSourceFile",{path:r.path},!0),No("beforeCheck"),u_t(r),No("afterCheck"),vf("Check","beforeCheck","afterCheck"),(l=qr)==null||l.pop()}function V7e(r,a){if(a)return!1;switch(r){case 0:return!!j.noUnusedLocals;case 1:return!!j.noUnusedParameters;default:return E.assertNever(r)}}function U7e(r){return If.get(r.path)||Ve}function u_t(r){const a=jn(r);if(!(a.flags&1)){if(HE(r,j,e))return;Mft(r),lg(I2),lg(F2),lg(Cy),lg(Ey),lg(Ng),rr(r.statements,ia),ia(r.endOfFileToken),o_t(r),af(r)&&o1(r),n(()=>{!r.isDeclarationFile&&(j.noUnusedLocals||j.noUnusedParameters)&&o7e(U7e(r),(l,_,m)=>{!Yk(l)&&V7e(_,!!(l.flags&33554432))&&wa.add(m)}),r.isDeclarationFile||Olt()}),j.importsNotUsedAsValues===2&&!r.isDeclarationFile&&Ic(r)&&e_t(r),af(r)&&J7e(r),I2.length&&(rr(I2,Rlt),lg(I2)),F2.length&&(rr(F2,jlt),lg(F2)),Cy.length&&(rr(Cy,Wlt),lg(Cy)),Ey.length&&(rr(Ey,Ult),lg(Ey)),a.flags|=1}}function q7e(r,a){try{return i=a,__t(r)}finally{i=void 0}}function Vhe(){for(const r of t)r();t=[]}function Uhe(r){Vhe();const a=n;n=l=>l(),l_t(r),n=a}function __t(r){if(r){Vhe();const a=wa.getGlobalDiagnostics(),l=a.length;Uhe(r);const _=wa.getDiagnostics(r.fileName),m=wa.getGlobalDiagnostics();if(m!==a){const h=BK(a,m,zE);return es(h,_)}else if(l===0&&m.length>0)return es(m,_);return _}return rr(e.getSourceFiles(),Uhe),wa.getDiagnostics()}function f_t(){return Vhe(),wa.getGlobalDiagnostics()}function p_t(r,a){if(r.flags&67108864)return[];const l=Bs();let _=!1;return m(),l.delete("this"),Qde(l);function m(){for(;r;){switch(Dm(r)&&r.locals&&!Gm(r)&&x(r.locals,a),r.kind){case 312:if(!Ic(r))break;case 267:N(un(r).exports,a&2623475);break;case 266:x(un(r).exports,a&8);break;case 231:r.name&&h(r.symbol,a);case 263:case 264:_||x($y(un(r)),a&788968);break;case 218:r.name&&h(r.symbol,a);break}qte(r)&&h(Pt,a),_=Ms(r),r=r.parent}x(ge,a)}function h(L,z){if(kC(L)&z){const Z=L.escapedName;l.has(Z)||l.set(Z,L)}}function x(L,z){z&&L.forEach(Z=>{h(Z,z)})}function N(L,z){z&&L.forEach(Z=>{!Jo(Z,281)&&!Jo(Z,280)&&Z.escapedName!=="default"&&h(Z,z)})}}function d_t(r){return r.kind===80&&NC(r.parent)&&us(r.parent)===r}function H7e(r){for(;r.parent.kind===166;)r=r.parent;return r.parent.kind===183}function m_t(r){for(;r.parent.kind===211;)r=r.parent;return r.parent.kind===233}function G7e(r,a){let l,_=Nl(r);for(;_&&!(l=a(_));)_=Nl(_);return l}function g_t(r){return!!Pr(r,a=>sc(a)&&pp(a.body)||xs(a)?!0:$n(a)||po(a)?"quit":!1)}function qhe(r,a){return!!G7e(r,l=>l===a)}function h_t(r){for(;r.parent.kind===166;)r=r.parent;if(r.parent.kind===271)return r.parent.moduleReference===r?r.parent:void 0;if(r.parent.kind===277)return r.parent.expression===r?r.parent:void 0}function SK(r){return h_t(r)!==void 0}function y_t(r){switch(fc(r.parent.parent)){case 1:case 3:return Lf(r.parent);case 5:if(Sn(r.parent)&&CC(r.parent)===r)return;case 4:case 2:return un(r.parent.parent)}}function v_t(r){let a=r.parent;for(;Xu(a);)r=a,a=a.parent;if(a&&a.kind===205&&a.qualifier===r)return a}function b_t(r){if(r.expression.kind===110){const a=a_(r,!1,!1);if(As(a)){const l=iNe(a);if(l){const _=Av(l,void 0),m=aNe(l,_);return m&&!ht(m)}}}}function $7e(r){if(eh(r))return Lf(r.parent);if(Hr(r)&&r.parent.kind===211&&r.parent===r.parent.parent.left&&!Pi(r)&&!M1(r)&&!b_t(r.parent)){const a=y_t(r);if(a)return a}if(r.parent.kind===277&&pc(r)){const a=vo(r,2998271,!0);if(a&&a!==tt)return a}else if(b_(r)&&SK(r)){const a=w1(r,271);return E.assert(a!==void 0),ik(r,!0)}if(b_(r)){const a=v_t(r);if(a){ii(a);const l=jn(r).resolvedSymbol;return l===tt?void 0:l}}for(;Ire(r);)r=r.parent;if(m_t(r)){let a=0;r.parent.kind===233?(a=gg(r)?788968:111551,Q5(r.parent)&&(a|=111551)):a=1920,a|=2097152;const l=pc(r)?vo(r,a,!0):void 0;if(l)return l}if(r.parent.kind===348)return L8(r.parent);if(r.parent.kind===168&&r.parent.parent.kind===352){E.assert(!Hr(r));const a=ire(r.parent);return a&&a.symbol}if(hg(r)){if(_c(r))return;const a=Pr(r,fd(NT,y3,M1)),l=a?901119:111551;if(r.kind===80){if(aC(r)&&bk(r)){const m=UZ(r.parent);return m===tt?void 0:m}const _=vo(r,l,!0,!0,P1(r));if(!_&&a){const m=Pr(r,fd($n,Bu));if(m)return $j(r,!0,un(m))}if(_&&a){const m=Nb(r);if(m&&p2(m)&&m===_.valueDeclaration)return vo(r,l,!0,!0,wr(m))||_}return _}else{if(Pi(r))return GZ(r);if(r.kind===211||r.kind===166){const _=jn(r);return _.resolvedSymbol?_.resolvedSymbol:(r.kind===211?(qZ(r,0),_.resolvedSymbol||(_.resolvedSymbol=X7e(Dc(r.expression),w0(r.name)))):FNe(r,0),!_.resolvedSymbol&&a&&Xu(r)?$j(r):_.resolvedSymbol)}else if(M1(r))return $j(r)}}else if(H7e(r)){const a=r.parent.kind===183?788968:1920,l=vo(r,a,!1,!0);return l&&l!==tt?l:GY(r)}if(r.parent.kind===182)return vo(r,1)}function X7e(r,a){const l=Xde(r,a);if(l.length&&r.members){const _=UY(Nd(r).members);if(l===Wu(r))return _;if(_){const m=wi(_),h=Ri(l,N=>N.declaration),x=nr(h,Oa).join(",");if(m.filteredIndexSymbolCache||(m.filteredIndexSymbolCache=new Map),m.filteredIndexSymbolCache.has(x))return m.filteredIndexSymbolCache.get(x);{const N=xa(131072,"__index");return N.declarations=Ri(l,L=>L.declaration),N.parent=r.aliasSymbol?r.aliasSymbol:r.symbol?r.symbol:od(N.declarations[0].parent),m.filteredIndexSymbolCache.set(x,N),N}}}}function $j(r,a,l){if(b_(r)){let x=vo(r,901119,a,!0,P1(r));if(!x&&Ie(r)&&l&&(x=Na(m_(Q_(l),r.escapedText,901119))),x)return x}const _=Ie(r)?l:$j(r.left,a,l),m=Ie(r)?r.escapedText:r.right.escapedText;if(_){const h=_.flags&111551&&$s(Xr(_),"prototype"),x=h?Xr(h):Po(_);return $s(x,m)}}function od(r,a){if(Ni(r))return Ic(r)?Na(r.symbol):void 0;const{parent:l}=r,_=l.parent;if(!(r.flags&67108864)){if(Cbe(r)){const m=un(l);return PT(r.parent)&&r.parent.propertyName===r?Mge(m):m}else if(j8(r))return un(l.parent);if(r.kind===80){if(SK(r))return $7e(r);if(l.kind===208&&_.kind===206&&r===l.propertyName){const m=Tk(_),h=$s(m,r.escapedText);if(h)return h}else if(_3(l)&&l.name===r)return l.keywordToken===105&&on(r)==="target"?lhe(l).symbol:l.keywordToken===102&&on(r)==="meta"?Y8e().members.get("meta"):void 0}switch(r.kind){case 80:case 81:case 211:case 166:if(!BT(r))return $7e(r);case 110:const m=a_(r,!1,!1);if(As(m)){const N=Ap(m);if(N.thisParameter)return N.thisParameter}if(C5(r))return Hi(r).symbol;case 197:return nZ(r).symbol;case 108:return Hi(r).symbol;case 137:const h=r.parent;return h&&h.kind===176?h.parent.symbol:void 0;case 11:case 15:if(C1(r.parent.parent)&&vE(r.parent.parent)===r||(r.parent.kind===272||r.parent.kind===278)&&r.parent.moduleSpecifier===r||Hr(r)&&Gu(r.parent,!1)||of(r.parent)||_y(r.parent)&&ey(r.parent.parent)&&r.parent.parent.argument===r.parent)return zu(r,r,a);if(Rs(l)&&wb(l)&&l.arguments[1]===r)return un(l);case 9:const x=Co(l)?l.argumentExpression===r?Yl(l.expression):void 0:_y(l)&&Ub(_)?ii(_.objectType):void 0;return x&&$s(x,Vo(r.text));case 90:case 100:case 39:case 86:return Lf(r.parent);case 205:return ey(r)?od(r.argument.literal,a):void 0;case 95:return oc(r.parent)?E.checkDefined(r.parent.symbol):void 0;case 102:case 105:return _3(r.parent)?gIe(r.parent).symbol:void 0;case 104:if(Zr(r.parent)){const N=Yl(r.parent.right),L=yhe(N);return(L==null?void 0:L.symbol)??N.symbol}return;case 236:return Hi(r).symbol;case 295:if(aC(r)&&bk(r)){const N=UZ(r.parent);return N===tt?void 0:N}default:return}}}function S_t(r){if(Ie(r)&&Sn(r.parent)&&r.parent.name===r){const a=w0(r),l=Yl(r.parent.expression),_=l.flags&1048576?l.types:[l];return Zs(_,m=>An(Wu(m),h=>pk(a,h.keyType)))}}function T_t(r){if(r&&r.kind===304)return vo(r.name,2208703)}function x_t(r){return vu(r)?r.parent.parent.moduleSpecifier?bh(r.parent.parent,r):vo(r.propertyName||r.name,2998271):vo(r,2998271)}function Tk(r){if(Ni(r)&&!Ic(r)||r.flags&67108864)return nt;const a=gW(r),l=a&&sp(un(a.class));if(gg(r)){const _=ii(r);return l?mf(_,l.thisType):_}if(hg(r))return Q7e(r);if(l&&!a.isImplements){const _=bl(Z_(l));return _?mf(_,l.thisType):nt}if(NC(r)){const _=un(r);return Po(_)}if(d_t(r)){const _=od(r);return _?Po(_):nt}if(Ea(r))return VS(r,!0,0)||nt;if(yu(r)){const _=un(r);return _?Xr(_):nt}if(Cbe(r)){const _=od(r);return _?Xr(_):nt}if(Ns(r))return VS(r.parent,!0,0)||nt;if(SK(r)){const _=od(r);if(_){const m=Po(_);return Ot(m)?Xr(_):m}}return _3(r.parent)&&r.parent.keywordToken===r.kind?gIe(r.parent):_x(r)?ume(!1):nt}function TK(r){if(E.assert(r.kind===210||r.kind===209),r.parent.kind===250){const m=Uj(r.parent);return _T(r,m||nt)}if(r.parent.kind===226){const m=Yl(r.parent.right);return _T(r,m||nt)}if(r.parent.kind===303){const m=Ls(r.parent.parent,ua),h=TK(m)||nt,x=Zk(m.properties,r.parent);return FIe(m,h,x)}const a=Ls(r.parent,ju),l=TK(a)||nt,_=F0(65,l,Pe,r.parent)||nt;return OIe(a,l,a.elements.indexOf(r),_)}function k_t(r){const a=TK(Ls(r.parent.parent,uE));return a&&$s(a,r.escapedText)}function Q7e(r){return LE(r)&&(r=r.parent),Uu(Yl(r))}function Y7e(r){const a=Lf(r.parent);return Ms(r)?Xr(a):Po(a)}function Z7e(r){const a=r.name;switch(a.kind){case 80:return h_(on(a));case 9:case 11:return h_(a.text);case 167:const l=Wg(a);return Ql(l,12288)?l:Ce;default:return E.fail("Unsupported property name.")}}function Hhe(r){r=n_(r);const a=Bs(Ua(r)),l=Es(r,0).length?Fr:Es(r,1).length?Yi:void 0;return l&&rr(Ua(l),_=>{a.has(_.escapedName)||a.set(_.escapedName,_)}),_v(a)}function xK(r){return Es(r,0).length!==0||Es(r,1).length!==0}function K7e(r){const a=C_t(r);return a?Zs(a,K7e):[r]}function C_t(r){if(Ko(r)&6)return Ri(wi(r).containingType.types,a=>$s(a,r.escapedName));if(r.flags&33554432){const{links:{leftSpread:a,rightSpread:l,syntheticOrigin:_}}=r;return a?[a,l]:_?[_]:ST(E_t(r))}}function E_t(r){let a,l=r;for(;l=wi(l).target;)a=l;return a}function P_t(r){if(Oo(r))return!1;const a=as(r,Ie);if(!a)return!1;const l=a.parent;return l?!((Sn(l)||zc(l))&&l.name===a)&&qI(a)===Pt:!1}function D_t(r){let a=zu(r.parent,r);if(!a||dE(a))return!0;const l=k0(a);a=X_(a);const _=wi(a);return _.exportsSomeValue===void 0&&(_.exportsSomeValue=l?!!(a.flags&111551):fl(Xm(a),m)),_.exportsSomeValue;function m(h){return h=mc(h),h&&!!($l(h)&111551)}}function w_t(r){return r8(r.parent)&&r===r.parent.name}function A_t(r,a){var l;const _=as(r,Ie);if(_){let m=qI(_,w_t(_));if(m){if(m.flags&1048576){const x=Na(m.exportSymbol);if(!a&&x.flags&944&&!(x.flags&3))return;m=x}const h=e_(m);if(h){if(h.flags&512&&((l=h.valueDeclaration)==null?void 0:l.kind)===312){const x=h.valueDeclaration,N=wr(_);return x!==N?void 0:x}return Pr(_.parent,x=>r8(x)&&un(x)===h)}}}}function N_t(r){const a=Wne(r);if(a)return a;const l=as(r,Ie);if(l){const _=U_t(l);if(IS(_,111551)&&!tp(_,111551))return ed(_)}}function I_t(r){return r.valueDeclaration&&Ea(r.valueDeclaration)&&Wk(r.valueDeclaration).parent.kind===299}function e5e(r){if(r.flags&418&&r.valueDeclaration&&!Ni(r.valueDeclaration)){const a=wi(r);if(a.isDeclarationWithCollidingName===void 0){const l=Nm(r.valueDeclaration);if(kte(l)||I_t(r)){const _=jn(r.valueDeclaration);if(Go(l.parent,r.escapedName,111551,void 0,void 0,!1))a.isDeclarationWithCollidingName=!0;else if(_.flags&16384){const m=_.flags&32768,h=X0(l,!1),x=l.kind===241&&X0(l.parent,!1);a.isDeclarationWithCollidingName=!Nte(l)&&(!m||!h&&!x)}else a.isDeclarationWithCollidingName=!1}}return a.isDeclarationWithCollidingName}return!1}function F_t(r){if(!Oo(r)){const a=as(r,Ie);if(a){const l=qI(a);if(l&&e5e(l))return l.valueDeclaration}}}function O_t(r){const a=as(r,yu);if(a){const l=un(a);if(l)return e5e(l)}return!1}function t5e(r){switch(E.assert(pt),r.kind){case 271:return kK(un(r));case 273:case 274:case 276:case 281:const a=un(r);return!!a&&kK(a,!0);case 278:const l=r.exportClause;return!!l&&(jm(l)||ct(l.elements,t5e));case 277:return r.expression&&r.expression.kind===80?kK(un(r),!0):!0}return!1}function L_t(r){const a=as(r,El);return a===void 0||a.parent.kind!==312||!oC(a)?!1:kK(un(a))&&a.moduleReference&&!_c(a.moduleReference)}function kK(r,a){if(!r)return!1;const l=Mf(ll(r));return l===tt?!a||!tp(r):!!($l(r,a,!0)&111551)&&(n2(j)||!UI(l))}function UI(r){return hhe(r)||!!r.constEnumOnlyModule}function CK(r,a){if(E.assert(pt),Ny(r)){const l=un(r),_=l&&wi(l);if(_!=null&&_.referenced)return!0;const m=wi(l).aliasTarget;if(m&&Lu(r)&32&&$l(m)&111551&&(n2(j)||!UI(m)))return!0}return a?!!Ss(r,l=>CK(l,a)):!1}function r5e(r){if(pp(r.body)){if(Q0(r)||Xh(r))return!1;const a=un(r),l=$2(a);return l.length>1||l.length===1&&l[0].declaration!==r}return!1}function n5e(r){return!!q&&!lI(r)&&!vd(r)&&!!r.initializer&&!Rn(r,31)}function M_t(r){return q&&lI(r)&&!r.initializer&&Rn(r,31)}function R_t(r){const a=as(r,Xc);if(!a)return!1;const l=un(a);return!l||!(l.flags&16)?!1:!!fl(Q_(l),_=>_.flags&111551&&EF(_.valueDeclaration))}function j_t(r){const a=as(r,Xc);if(!a)return Ve;const l=un(a);return l&&Ua(Xr(l))||Ve}function F4(r){var a;const l=r.id||0;return l<0||l>=N2.length?0:((a=N2[l])==null?void 0:a.flags)||0}function O4(r){return M7e(r.parent),jn(r).enumMemberValue}function i5e(r){switch(r.kind){case 306:case 211:case 212:return!0}return!1}function Ghe(r){if(r.kind===306)return O4(r);const a=jn(r).resolvedSymbol;if(a&&a.flags&8){const l=a.valueDeclaration;if(zv(l.parent))return O4(l)}}function $he(r){return!!(r.flags&524288)&&Es(r,0).length>0}function B_t(r,a){var l;const _=as(r,b_);if(!_||a&&(a=as(a),!a))return 0;let m=!1;if(Xu(_)){const Z=vo(lf(_),111551,!0,!0,a);m=!!((l=Z==null?void 0:Z.declarations)!=null&&l.every(x1))}const h=vo(_,111551,!0,!0,a),x=h&&h.flags&2097152?ll(h):h;m||(m=!!(h&&tp(h,111551)));const N=vo(_,788968,!0,!0,a),L=N&&N.flags&2097152?ll(N):N;if(h||m||(m=!!(N&&tp(N,788968))),x&&x===L){const Z=_me(!1);if(Z&&x===Z)return 9;const de=Xr(x);if(de&&Ia(de))return m?10:1}if(!L)return m?11:0;const z=Po(L);return Ot(z)?m?11:0:z.flags&3?11:Ql(z,245760)?2:Ql(z,528)?6:Ql(z,296)?3:Ql(z,2112)?4:Ql(z,402653316)?5:da(z)?7:Ql(z,12288)?8:$he(z)?10:lp(z)?7:11}function J_t(r,a,l,_,m){const h=as(r,Wte);if(!h)return I.createToken(133);const x=un(h);let N=x&&!(x.flags&133120)?tb(Xr(x)):nt;return N.flags&8192&&N.symbol===x&&(l|=1048576),m&&(N=i1(N)),ft.typeToTypeNode(N,a,l|1024,_)}function z_t(r,a,l,_){const m=as(r,As);if(!m)return I.createToken(133);const h=Ap(m);return ft.typeToTypeNode(Ja(h),a,l|1024,_)}function W_t(r,a,l,_){const m=as(r,ot);if(!m)return I.createToken(133);const h=gf(Q7e(m));return ft.typeToTypeNode(h,a,l|1024,_)}function V_t(r){return ge.has(Vo(r))}function qI(r,a){const l=jn(r).resolvedSymbol;if(l)return l;let _=r;if(a){const m=r.parent;yu(m)&&r===m.name&&(_=G(m))}return Go(_,r.escapedText,3257279,void 0,void 0,!0)}function U_t(r){const a=jn(r).resolvedSymbol;return a&&a!==tt?a:Go(r,r.escapedText,3257279,void 0,void 0,!0,void 0,void 0)}function q_t(r){if(!Oo(r)){const a=as(r,Ie);if(a){const l=qI(a);if(l)return Mf(l).valueDeclaration}}}function H_t(r){if(!Oo(r)){const a=as(r,Ie);if(a){const l=qI(a);if(l)return An(Mf(l).declarations,_=>{switch(_.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 G_t(r){return f5(r)||hi(r)&&Qj(r)?Z2(Xr(un(r))):!1}function $_t(r,a,l){const _=r.flags&1056?ft.symbolToExpression(r.symbol,111551,a,void 0,l):r===Er?I.createTrue():r===Jt&&I.createFalse();if(_)return _;const m=r.value;return typeof m=="object"?I.createBigIntLiteral(m):typeof m=="string"?I.createStringLiteral(m):m<0?I.createPrefixUnaryExpression(41,I.createNumericLiteral(-m)):I.createNumericLiteral(m)}function X_t(r,a){const l=Xr(un(r));return $_t(l,r,a)}function s5e(r){return r?(rv(r),wr(r).localJsxFactory||gh):gh}function Xhe(r){if(r){const a=wr(r);if(a){if(a.localJsxFragmentFactory)return a.localJsxFragmentFactory;const l=a.pragmas.get("jsxfrag"),_=ts(l)?l[0]:l;if(_)return a.localJsxFragmentFactory=hx(_.arguments.factory,re),a.localJsxFragmentFactory}}if(j.jsxFragmentFactory)return hx(j.jsxFragmentFactory,re)}function Q_t(){const r=e.getResolvedTypeReferenceDirectives();let a;return r&&(a=new Map,r.forEach(({resolvedTypeReferenceDirective:L},z,Z)=>{if(!(L!=null&&L.resolvedFileName))return;const de=e.getSourceFile(L.resolvedFileName);de&&N(de,z,Z)})),{getReferencedExportContainer:A_t,getReferencedImportDeclaration:N_t,getReferencedDeclarationWithCollidingName:F_t,isDeclarationWithCollidingName:O_t,isValueAliasDeclaration:L=>{const z=as(L);return z&&pt?t5e(z):!0},hasGlobalName:V_t,isReferencedAliasDeclaration:(L,z)=>{const Z=as(L);return Z&&pt?CK(Z,z):!0},getNodeCheckFlags:L=>{const z=as(L);return z?F4(z):0},isTopLevelValueImportEqualsWithEntityName:L_t,isDeclarationVisible:Pd,isImplementationOfOverload:r5e,isRequiredInitializedParameter:n5e,isOptionalUninitializedParameterProperty:M_t,isExpandoFunctionDeclaration:R_t,getPropertiesOfContainerFunction:j_t,createTypeOfDeclaration:J_t,createReturnTypeOfSignatureDeclaration:z_t,createTypeOfExpression:W_t,createLiteralConstValue:X_t,isSymbolAccessible:gi,isEntityNameVisible:jy,getConstantValue:L=>{const z=as(L,i5e);return z?Ghe(z):void 0},collectLinkedAliases:wP,getReferencedValueDeclaration:q_t,getReferencedValueDeclarations:H_t,getTypeReferenceSerializationKind:B_t,isOptionalParameter:lI,moduleExportsSomeValue:D_t,isArgumentsLocalBinding:P_t,getExternalModuleFileFromDeclaration:L=>{const z=as(L,Fte);return z&&Qhe(z)},getTypeReferenceDirectivesForEntityName:m,getTypeReferenceDirectivesForSymbol:h,isLiteralConstDeclaration:G_t,isLateBound:L=>{const z=as(L,yu),Z=z&&un(z);return!!(Z&&Ko(Z)&4096)},getJsxFactoryEntity:s5e,getJsxFragmentFactoryEntity:Xhe,getAllAccessorDeclarations(L){L=as(L,z7);const z=L.kind===178?177:178,Z=Jo(un(L),z),de=Z&&Z.posSh(L,L,void 0),isBindingCapturedByNode:(L,z)=>{const Z=as(L),de=as(z);return!!Z&&!!de&&(hi(de)||Ea(de))&&bst(Z,de)},getDeclarationStatementsForSourceFile:(L,z,Z,de)=>{const _e=as(L);E.assert(_e&&_e.kind===312,"Non-sourcefile node passed into getDeclarationsForSourceFile");const Re=un(L);return Re?Re.exports?ft.symbolTableToDeclarationStatements(Re.exports,L,z,Z,de):[]:L.locals?ft.symbolTableToDeclarationStatements(L.locals,L,z,Z,de):[]},isImportRequiredByAugmentation:l,tryFindAmbientModule:L=>{const z=as(L),Z=z&&Ma(z)?z.text:void 0;return Z!==void 0?zY(Z,!0):void 0}};function l(L){const z=wr(L);if(!z.symbol)return!1;const Z=Qhe(L);if(!Z||Z===z)return!1;const de=Xm(z.symbol);for(const _e of gs(de.values()))if(_e.mergeId){const Re=Na(_e);if(Re.declarations){for(const st of Re.declarations)if(wr(st)===Z)return!0}}return!1}function _(L){return L.parent&&L.parent.kind===233&&L.parent.parent&&L.parent.parent.kind===298}function m(L){if(!a)return;let z;L.parent.kind===167?z=1160127:(z=790504,(L.kind===80&&Lb(L)||L.kind===211&&!_(L))&&(z=1160127));const Z=vo(L,z,!0);return Z&&Z!==tt?h(Z,z):void 0}function h(L,z){if(!a||!x(L))return;let Z;for(const de of L.declarations)if(de.symbol&&de.symbol.flags&z){const _e=wr(de),Re=a.get(_e.path);if(Re)(Z||(Z=[])).push(Re);else return}return Z}function x(L){if(!L.declarations)return!1;let z=L;for(;;){const Z=e_(z);if(Z)z=Z;else break}if(z.valueDeclaration&&z.valueDeclaration.kind===312&&z.flags&512)return!1;for(const Z of L.declarations){const de=wr(Z);if(a.has(de.path))return!0}return!1}function N(L,z,Z){if(!a.has(L.path)){a.set(L.path,[z,Z]);for(const{fileName:de}of L.referencedFiles){const _e=j9(de,L.fileName),Re=e.getSourceFile(_e);Re&&N(Re,z,Z||L.impliedNodeFormat)}}}}function Qhe(r){const a=r.kind===267?Wn(r.name,aa):uC(r),l=Sh(a,a,void 0);if(l)return Jo(l,312)}function Y_t(){for(const a of e.getSourceFiles())Sse(a,j);$a=new Map;let r;for(const a of e.getSourceFiles())if(!a.redirectInfo){if(!af(a)){const l=a.locals.get("globalThis");if(l!=null&&l.declarations)for(const _ of l.declarations)wa.add(yn(_,p.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));Cd(ge,a.locals)}a.jsGlobalAugmentations&&Cd(ge,a.jsGlobalAugmentations),a.patternAmbientModules&&a.patternAmbientModules.length&&(Ep=es(Ep,a.patternAmbientModules)),a.moduleAugmentations.length&&(r||(r=[])).push(a.moduleAugmentations),a.symbol&&a.symbol.globalExports&&a.symbol.globalExports.forEach((_,m)=>{ge.has(m)||ge.set(m,_)})}if(r)for(const a of r)for(const l of a)Wd(l.parent)&&X6(l);if(O2(ge,bS,p.Declaration_name_conflicts_with_built_in_global_identifier_0),wi(Fe).type=St,wi(Pt).type=Pc("IArguments",0,!0),wi(tt).type=nt,wi($e).type=rp(16,$e),Ds=Pc("Array",1,!0),Te=Pc("Object",0,!0),kt=Pc("Function",0,!0),Fr=oe&&Pc("CallableFunction",0,!0)||kt,Yi=oe&&Pc("NewableFunction",0,!0)||kt,Cc=Pc("String",0,!0),Uc=Pc("Number",0,!0),jo=Pc("Boolean",0,!0),Ho=Pc("RegExp",0,!0),Ec=pu(B),yl=pu(Ge),yl===oa&&(yl=ao(void 0,U,Ve,Ve,Ve)),Is=nwe("ReadonlyArray",1)||Ds,Nf=Is?fI(Is,[B]):Ec,dc=nwe("ThisType",1),r)for(const a of r)for(const l of a)Wd(l.parent)||X6(l);$a.forEach(({firstFile:a,secondFile:l,conflictingSymbols:_})=>{if(_.size<8)_.forEach(({isBlockScoped:m,firstFileLocations:h,secondFileLocations:x},N)=>{const L=m?p.Cannot_redeclare_block_scoped_variable_0:p.Duplicate_identifier_0;for(const z of h)hh(z,L,N,x);for(const z of x)hh(z,L,N,h)});else{const m=gs(_.keys()).join(", ");wa.add(la(yn(a,p.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,m),yn(l,p.Conflicts_are_in_this_file))),wa.add(la(yn(l,p.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,m),yn(a,p.Conflicts_are_in_this_file)))}}),$a=void 0}function el(r,a){if((o&a)!==a&&j.importHelpers){const l=wr(r);if(IT(l,j)&&!(r.flags&33554432)){const _=K_t(l,r);if(_!==tt){const m=a&~o;for(let h=1;h<=33554432;h<<=1)if(m&h)for(const x of Z_t(h)){if(s.has(x))continue;s.add(x);const N=mc(m_(Xm(_),Vo(x),111551));N?h&524288?ct($2(N),L=>hf(L)>3)||Me(r,p.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,ay,x,4):h&1048576?ct($2(N),L=>hf(L)>4)||Me(r,p.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,ay,x,5):h&1024&&(ct($2(N),L=>hf(L)>2)||Me(r,p.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,ay,x,3)):Me(r,p.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,ay,x)}}o|=a}}}function Z_t(r){switch(r){case 1:return["__extends"];case 2:return["__assign"];case 4:return["__rest"];case 8:return Y?["__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 E.fail("Unrecognized helper")}}function K_t(r,a){return c||(c=lm(r,ay,p.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,a)||tt),c}function Ug(r){var a;const l=rft(r)||eft(r);if(l!==void 0)return l;if(rs(r)&&Qv(r))return Jl(r,p.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);const _=ac(r)?r.declarationList.flags&7:0;let m,h,x,N,L,z=0,Z=!1,de=!1;for(const _e of r.modifiers)if(ql(_e)){if(k5(Y,r,r.parent,r.parent.parent)){if(Y&&(r.kind===177||r.kind===178)){const Re=Mb(r.parent.members,r);if(Wf(Re.firstAccessor)&&r===Re.secondAccessor)return Jl(r,p.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return r.kind===174&&!pp(r.body)?Jl(r,p.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):Jl(r,p.Decorators_are_not_valid_here);if(z&-34849)return or(_e,p.Decorators_are_not_valid_here);if(de&&z&98303){E.assertIsDefined(L);const Re=wr(_e);return ob(Re)?!1:(la(Me(_e,p.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),yn(L,p.Decorator_used_before_export_here)),!0)}z|=32768,z&98303?z&32&&(Z=!0):de=!0,L??(L=_e)}else{if(_e.kind!==148){if(r.kind===171||r.kind===173)return or(_e,p._0_modifier_cannot_appear_on_a_type_member,Ws(_e.kind));if(r.kind===181&&(_e.kind!==126||!$n(r.parent)))return or(_e,p._0_modifier_cannot_appear_on_an_index_signature,Ws(_e.kind))}if(_e.kind!==103&&_e.kind!==147&&_e.kind!==87&&r.kind===168)return or(_e,p._0_modifier_cannot_appear_on_a_type_parameter,Ws(_e.kind));switch(_e.kind){case 87:{if(r.kind!==266&&r.kind!==168)return or(r,p.A_class_member_cannot_have_the_0_keyword,Ws(87));const gt=kp(r.parent)&&D1(r.parent)||r.parent;if(r.kind===168&&!(po(gt)||$n(gt)||Mm(gt)||MC(gt)||ix(gt)||Pw(gt)||Lm(gt)))return or(_e,p._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,Ws(_e.kind));break}case 164:if(z&16)return or(_e,p._0_modifier_already_seen,"override");if(z&128)return or(_e,p._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(z&8)return or(_e,p._0_modifier_must_precede_1_modifier,"override","readonly");if(z&512)return or(_e,p._0_modifier_must_precede_1_modifier,"override","accessor");if(z&1024)return or(_e,p._0_modifier_must_precede_1_modifier,"override","async");z|=16,N=_e;break;case 125:case 124:case 123:const Re=WS(zT(_e.kind));if(z&7)return or(_e,p.Accessibility_modifier_already_seen);if(z&16)return or(_e,p._0_modifier_must_precede_1_modifier,Re,"override");if(z&256)return or(_e,p._0_modifier_must_precede_1_modifier,Re,"static");if(z&512)return or(_e,p._0_modifier_must_precede_1_modifier,Re,"accessor");if(z&8)return or(_e,p._0_modifier_must_precede_1_modifier,Re,"readonly");if(z&1024)return or(_e,p._0_modifier_must_precede_1_modifier,Re,"async");if(r.parent.kind===268||r.parent.kind===312)return or(_e,p._0_modifier_cannot_appear_on_a_module_or_namespace_element,Re);if(z&64)return _e.kind===123?or(_e,p._0_modifier_cannot_be_used_with_1_modifier,Re,"abstract"):or(_e,p._0_modifier_must_precede_1_modifier,Re,"abstract");if(Iu(r))return or(_e,p.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);z|=zT(_e.kind);break;case 126:if(z&256)return or(_e,p._0_modifier_already_seen,"static");if(z&8)return or(_e,p._0_modifier_must_precede_1_modifier,"static","readonly");if(z&1024)return or(_e,p._0_modifier_must_precede_1_modifier,"static","async");if(z&512)return or(_e,p._0_modifier_must_precede_1_modifier,"static","accessor");if(r.parent.kind===268||r.parent.kind===312)return or(_e,p._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(r.kind===169)return or(_e,p._0_modifier_cannot_appear_on_a_parameter,"static");if(z&64)return or(_e,p._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(z&16)return or(_e,p._0_modifier_must_precede_1_modifier,"static","override");z|=256,m=_e;break;case 129:if(z&512)return or(_e,p._0_modifier_already_seen,"accessor");if(z&8)return or(_e,p._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(z&128)return or(_e,p._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(r.kind!==172)return or(_e,p.accessor_modifier_can_only_appear_on_a_property_declaration);z|=512;break;case 148:if(z&8)return or(_e,p._0_modifier_already_seen,"readonly");if(r.kind!==172&&r.kind!==171&&r.kind!==181&&r.kind!==169)return or(_e,p.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(z&512)return or(_e,p._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");z|=8;break;case 95:if(j.verbatimModuleSyntax&&!(r.flags&33554432)&&r.kind!==265&&r.kind!==264&&r.kind!==267&&r.parent.kind===312&&(R===1||wr(r).impliedNodeFormat===1))return or(_e,p.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(z&32)return or(_e,p._0_modifier_already_seen,"export");if(z&128)return or(_e,p._0_modifier_must_precede_1_modifier,"export","declare");if(z&64)return or(_e,p._0_modifier_must_precede_1_modifier,"export","abstract");if(z&1024)return or(_e,p._0_modifier_must_precede_1_modifier,"export","async");if($n(r.parent))return or(_e,p._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(r.kind===169)return or(_e,p._0_modifier_cannot_appear_on_a_parameter,"export");if(_===4)return or(_e,p._0_modifier_cannot_appear_on_a_using_declaration,"export");if(_===6)return or(_e,p._0_modifier_cannot_appear_on_an_await_using_declaration,"export");z|=32;break;case 90:const st=r.parent.kind===312?r.parent:r.parent.parent;if(st.kind===267&&!su(st))return or(_e,p.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(_===4)return or(_e,p._0_modifier_cannot_appear_on_a_using_declaration,"default");if(_===6)return or(_e,p._0_modifier_cannot_appear_on_an_await_using_declaration,"default");if(z&32){if(Z)return or(L,p.Decorators_are_not_valid_here)}else return or(_e,p._0_modifier_must_precede_1_modifier,"export","default");z|=2048;break;case 138:if(z&128)return or(_e,p._0_modifier_already_seen,"declare");if(z&1024)return or(_e,p._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(z&16)return or(_e,p._0_modifier_cannot_be_used_in_an_ambient_context,"override");if($n(r.parent)&&!xs(r))return or(_e,p._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(r.kind===169)return or(_e,p._0_modifier_cannot_appear_on_a_parameter,"declare");if(_===4)return or(_e,p._0_modifier_cannot_appear_on_a_using_declaration,"declare");if(_===6)return or(_e,p._0_modifier_cannot_appear_on_an_await_using_declaration,"declare");if(r.parent.flags&33554432&&r.parent.kind===268)return or(_e,p.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(Iu(r))return or(_e,p._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(z&512)return or(_e,p._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");z|=128,h=_e;break;case 128:if(z&64)return or(_e,p._0_modifier_already_seen,"abstract");if(r.kind!==263&&r.kind!==185){if(r.kind!==174&&r.kind!==172&&r.kind!==177&&r.kind!==178)return or(_e,p.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(r.parent.kind===263&&Rn(r.parent,64))){const gt=r.kind===172?p.Abstract_properties_can_only_appear_within_an_abstract_class:p.Abstract_methods_can_only_appear_within_an_abstract_class;return or(_e,gt)}if(z&256)return or(_e,p._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(z&2)return or(_e,p._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(z&1024&&x)return or(x,p._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(z&16)return or(_e,p._0_modifier_must_precede_1_modifier,"abstract","override");if(z&512)return or(_e,p._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(Nu(r)&&r.name.kind===81)return or(_e,p._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");z|=64;break;case 134:if(z&1024)return or(_e,p._0_modifier_already_seen,"async");if(z&128||r.parent.flags&33554432)return or(_e,p._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(r.kind===169)return or(_e,p._0_modifier_cannot_appear_on_a_parameter,"async");if(z&64)return or(_e,p._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");z|=1024,x=_e;break;case 103:case 147:{const gt=_e.kind===103?8192:16384,qt=_e.kind===103?"in":"out",$t=kp(r.parent)&&(D1(r.parent)||wn((a=pC(r.parent))==null?void 0:a.tags,Yb))||r.parent;if(r.kind!==168||$t&&!(Bu($t)||$n($t)||qp($t)||Yb($t)))return or(_e,p._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,qt);if(z>)return or(_e,p._0_modifier_already_seen,qt);if(gt&8192&&z&16384)return or(_e,p._0_modifier_must_precede_1_modifier,"in","out");z|=gt;break}}}return r.kind===176?z&256?or(m,p._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):z&16?or(N,p._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):z&1024?or(x,p._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!1:(r.kind===272||r.kind===271)&&z&128?or(h,p.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):r.kind===169&&z&31&&Ns(r.name)?or(r,p.A_parameter_property_may_not_be_declared_using_a_binding_pattern):r.kind===169&&z&31&&r.dotDotDotToken?or(r,p.A_parameter_property_cannot_be_declared_using_a_rest_parameter):z&1024?ift(r,x):!1}function eft(r){if(!r.modifiers)return!1;const a=tft(r);return a&&Jl(a,p.Modifiers_cannot_appear_here)}function EK(r,a){const l=wn(r.modifiers,ta);return l&&l.kind!==a?l:void 0}function tft(r){switch(r.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 wn(r.modifiers,ta);default:if(r.parent.kind===268||r.parent.kind===312)return;switch(r.kind){case 262:return EK(r,134);case 263:case 185:return EK(r,128);case 231:case 264:case 265:return wn(r.modifiers,ta);case 243:return r.declarationList.flags&4?EK(r,135):wn(r.modifiers,ta);case 266:return EK(r,87);default:E.assertNever(r)}}}function rft(r){const a=nft(r);return a&&Jl(a,p.Decorators_are_not_valid_here)}function nft(r){return $V(r)?wn(r.modifiers,ql):void 0}function ift(r,a){switch(r.kind){case 174:case 262:case 218:case 219:return!1}return or(a,p._0_modifier_cannot_be_used_here,"async")}function xk(r,a=p.Trailing_comma_not_allowed){return r&&r.hasTrailingComma?cb(r[0],r.end-1,1,a):!1}function a5e(r,a){if(r&&r.length===0){const l=r.pos-1,_=ca(a.text,r.end)+1;return cb(a,l,_-l,p.Type_parameter_list_cannot_be_empty)}return!1}function sft(r){let a=!1;const l=r.length;for(let _=0;_!!a.initializer||Ns(a.name)||dg(a))}function oft(r){if(re>=3){const a=r.body&&Cs(r.body)&&UV(r.body.statements);if(a){const l=aft(r.parameters);if(mr(l)){rr(l,m=>{la(Me(m,p.This_parameter_is_not_allowed_with_use_strict_directive),yn(a,p.use_strict_directive_used_here))});const _=l.map((m,h)=>h===0?yn(m,p.Non_simple_parameter_declared_here):yn(m,p.and_here));return la(Me(a,p.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),..._),!0}}}return!1}function PK(r){const a=wr(r);return Ug(r)||a5e(r.typeParameters,a)||sft(r.parameters)||lft(r,a)||po(r)&&oft(r)}function cft(r){const a=wr(r);return dft(r)||a5e(r.typeParameters,a)}function lft(r,a){if(!mo(r))return!1;r.typeParameters&&!(mr(r.typeParameters)>1||r.typeParameters.hasTrailingComma||r.typeParameters[0].constraint)&&a&&$c(a.fileName,[".mts",".cts"])&&or(r.typeParameters[0],p.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);const{equalsGreaterThanToken:l}=r,_=Ha(a,l.pos).line,m=Ha(a,l.end).line;return _!==m&&or(l,p.Line_terminator_not_permitted_before_arrow)}function uft(r){const a=r.parameters[0];if(r.parameters.length!==1)return or(a?a.name:r,p.An_index_signature_must_have_exactly_one_parameter);if(xk(r.parameters,p.An_index_signature_cannot_have_a_trailing_comma),a.dotDotDotToken)return or(a.dotDotDotToken,p.An_index_signature_cannot_have_a_rest_parameter);if($5(a))return or(a.name,p.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(a.questionToken)return or(a.questionToken,p.An_index_signature_parameter_cannot_have_a_question_mark);if(a.initializer)return or(a.name,p.An_index_signature_parameter_cannot_have_an_initializer);if(!a.type)return or(a.name,p.An_index_signature_parameter_must_have_a_type_annotation);const l=ii(a.type);return ad(l,_=>!!(_.flags&8576))||S4(l)?or(a.name,p.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):N_(l,qY)?r.type?!1:or(r,p.An_index_signature_must_have_a_type_annotation):or(a.name,p.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}function _ft(r){return Ug(r)||uft(r)}function fft(r,a){if(a&&a.length===0){const l=wr(r),_=a.pos-1,m=ca(l.text,a.end)+1;return cb(l,_,m-_,p.Type_argument_list_cannot_be_empty)}return!1}function Xj(r,a){return xk(a)||fft(r,a)}function pft(r){return r.questionDotToken||r.flags&64?or(r.template,p.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function o5e(r){const a=r.types;if(xk(a))return!0;if(a&&a.length===0){const l=Ws(r.token);return cb(r,a.pos,0,p._0_list_cannot_be_empty,l)}return ct(a,c5e)}function c5e(r){return s0(r)&&u3(r.expression)&&r.typeArguments?or(r,p.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):Xj(r,r.typeArguments)}function dft(r){let a=!1,l=!1;if(!Ug(r)&&r.heritageClauses)for(const _ of r.heritageClauses){if(_.token===96){if(a)return Jl(_,p.extends_clause_already_seen);if(l)return Jl(_,p.extends_clause_must_precede_implements_clause);if(_.types.length>1)return Jl(_.types[1],p.Classes_can_only_extend_a_single_class);a=!0}else{if(E.assert(_.token===119),l)return Jl(_,p.implements_clause_already_seen);l=!0}o5e(_)}}function mft(r){let a=!1;if(r.heritageClauses)for(const l of r.heritageClauses){if(l.token===96){if(a)return Jl(l,p.extends_clause_already_seen);a=!0}else return E.assert(l.token===119),Jl(l,p.Interface_declaration_cannot_have_implements_clause);o5e(l)}return!1}function DK(r){if(r.kind!==167)return!1;const a=r;return a.expression.kind===226&&a.expression.operatorToken.kind===28?or(a.expression,p.A_comma_expression_is_not_allowed_in_a_computed_property_name):!1}function Yhe(r){if(r.asteriskToken){if(E.assert(r.kind===262||r.kind===218||r.kind===174),r.flags&33554432)return or(r.asteriskToken,p.Generators_are_not_allowed_in_an_ambient_context);if(!r.body)return or(r.asteriskToken,p.An_overload_signature_cannot_be_declared_as_a_generator)}}function Zhe(r,a){return!!r&&or(r,a)}function l5e(r,a){return!!r&&or(r,a)}function gft(r,a){const l=new Map;for(const _ of r.properties){if(_.kind===305){if(a){const x=Va(_.expression);if(ju(x)||ua(x))return or(_.expression,p.A_rest_element_cannot_contain_a_binding_pattern)}continue}const m=_.name;if(m.kind===167&&DK(m),_.kind===304&&!a&&_.objectAssignmentInitializer&&or(_.equalsToken,p.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),m.kind===81&&or(m,p.Private_identifiers_are_not_allowed_outside_class_bodies),Hp(_)&&_.modifiers)for(const x of _.modifiers)ta(x)&&(x.kind!==134||_.kind!==174)&&or(x,p._0_modifier_cannot_be_used_here,jc(x));else if(Cie(_)&&_.modifiers)for(const x of _.modifiers)ta(x)&&or(x,p._0_modifier_cannot_be_used_here,jc(x));let h;switch(_.kind){case 304:case 303:l5e(_.exclamationToken,p.A_definite_assignment_assertion_is_not_permitted_in_this_context),Zhe(_.questionToken,p.An_object_member_cannot_be_declared_optional),m.kind===9&&t0e(m),h=4;break;case 174:h=8;break;case 177:h=1;break;case 178:h=2;break;default:E.assertNever(_,"Unexpected syntax kind:"+_.kind)}if(!a){const x=r0e(m);if(x===void 0)continue;const N=l.get(x);if(!N)l.set(x,h);else if(h&8&&N&8)or(m,p.Duplicate_identifier_0,jc(m));else if(h&4&&N&4)or(m,p.An_object_literal_cannot_have_multiple_properties_with_the_same_name,jc(m));else if(h&3&&N&3)if(N!==3&&h!==N)l.set(x,h|N);else return or(m,p.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);else return or(m,p.An_object_literal_cannot_have_property_and_accessor_with_the_same_name)}}}function hft(r){yft(r.tagName),Xj(r,r.typeArguments);const a=new Map;for(const l of r.attributes.properties){if(l.kind===293)continue;const{name:_,initializer:m}=l,h=e3(_);if(!a.get(h))a.set(h,!0);else return or(_,p.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(m&&m.kind===294&&!m.expression)return or(m,p.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}function yft(r){if(Sn(r)&&hd(r.expression))return or(r.expression,p.JSX_property_access_expressions_cannot_include_JSX_namespace_names);if(hd(r)&&uF(j)&&!vC(r.namespace.escapedText))return or(r,p.React_components_cannot_include_JSX_namespace_names)}function vft(r){if(r.expression&&b3(r.expression))return or(r.expression,p.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function u5e(r){if(Rh(r))return!0;if(r.kind===250&&r.awaitModifier&&!(r.flags&65536)){const a=wr(r);if(S5(r)){if(!ob(a))switch(IT(a,j)||wa.add(yn(r.awaitModifier,p.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)),R){case 100:case 199:if(a.impliedNodeFormat===1){wa.add(yn(r.awaitModifier,p.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 4:if(re>=4)break;default:wa.add(yn(r.awaitModifier,p.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(!ob(a)){const l=yn(r.awaitModifier,p.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),_=cf(r);if(_&&_.kind!==176){E.assert((pl(_)&2)===0,"Enclosing function should never be an async function.");const m=yn(_,p.Did_you_mean_to_mark_this_function_as_async);la(l,m)}return wa.add(l),!0}return!1}if(Iw(r)&&!(r.flags&65536)&&Ie(r.initializer)&&r.initializer.escapedText==="async")return or(r.initializer,p.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(r.initializer.kind===261){const a=r.initializer;if(!e0e(a)){const l=a.declarations;if(!l.length)return!1;if(l.length>1){const m=r.kind===249?p.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:p.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return Jl(a.declarations[1],m)}const _=l[0];if(_.initializer){const m=r.kind===249?p.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:p.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return or(_.name,m)}if(_.type){const m=r.kind===249?p.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:p.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation;return or(_,m)}}}return!1}function bft(r){if(!(r.flags&33554432)&&r.parent.kind!==187&&r.parent.kind!==264){if(re<1)return or(r.name,p.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(re<2&&Pi(r.name))return or(r.name,p.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(r.body===void 0&&!Rn(r,64))return cb(r,r.end-1,1,p._0_expected,"{")}if(r.body){if(Rn(r,64))return or(r,p.An_abstract_accessor_cannot_have_an_implementation);if(r.parent.kind===187||r.parent.kind===264)return or(r.body,p.An_implementation_cannot_be_declared_in_ambient_contexts)}if(r.typeParameters)return or(r.name,p.An_accessor_cannot_have_type_parameters);if(!Sft(r))return or(r.name,r.kind===177?p.A_get_accessor_cannot_have_parameters:p.A_set_accessor_must_have_exactly_one_parameter);if(r.kind===178){if(r.type)return or(r.name,p.A_set_accessor_cannot_have_a_return_type_annotation);const a=E.checkDefined(NE(r),"Return value does not match parameter count assertion.");if(a.dotDotDotToken)return or(a.dotDotDotToken,p.A_set_accessor_cannot_have_rest_parameter);if(a.questionToken)return or(a.questionToken,p.A_set_accessor_cannot_have_an_optional_parameter);if(a.initializer)return or(r.name,p.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function Sft(r){return Khe(r)||r.parameters.length===(r.kind===177?0:1)}function Khe(r){if(r.parameters.length===(r.kind===177?1:2))return Xv(r)}function Tft(r){if(r.operator===158){if(r.type.kind!==155)return or(r.type,p._0_expected,Ws(155));let a=M8(r.parent);if(Hr(a)&&d2(a)){const l=Nb(a);l&&(a=MT(l)||l)}switch(a.kind){case 260:const l=a;if(l.name.kind!==80)return or(r,p.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!gE(l))return or(r,p.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(l.parent.flags&2))return or(a.name,p.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 172:if(!Ms(a)||!IE(a))return or(a.name,p.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 171:if(!Rn(a,8))return or(a.name,p.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return or(r,p.unique_symbol_types_are_not_allowed_here)}}else if(r.operator===148&&r.type.kind!==188&&r.type.kind!==189)return Jl(r,p.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,Ws(155))}function cD(r,a){if(Jet(r))return or(r,a)}function _5e(r){if(PK(r))return!0;if(r.kind===174){if(r.parent.kind===210){if(r.modifiers&&!(r.modifiers.length===1&&va(r.modifiers).kind===134))return Jl(r,p.Modifiers_cannot_appear_here);if(Zhe(r.questionToken,p.An_object_member_cannot_be_declared_optional))return!0;if(l5e(r.exclamationToken,p.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(r.body===void 0)return cb(r,r.end-1,1,p._0_expected,"{")}if(Yhe(r))return!0}if($n(r.parent)){if(re<2&&Pi(r.name))return or(r.name,p.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(r.flags&33554432)return cD(r.name,p.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(r.kind===174&&!r.body)return cD(r.name,p.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(r.parent.kind===264)return cD(r.name,p.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(r.parent.kind===187)return cD(r.name,p.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 xft(r){let a=r;for(;a;){if(Hk(a))return or(r,p.Jump_target_cannot_cross_function_boundary);switch(a.kind){case 256:if(r.label&&a.label.escapedText===r.label.escapedText)return r.kind===251&&!X0(a.statement,!0)?or(r,p.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):!1;break;case 255:if(r.kind===252&&!r.label)return!1;break;default:if(X0(a,!1)&&!r.label)return!1;break}a=a.parent}if(r.label){const l=r.kind===252?p.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:p.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return or(r,l)}else{const l=r.kind===252?p.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:p.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return or(r,l)}}function kft(r){if(r.dotDotDotToken){const a=r.parent.elements;if(r!==ka(a))return or(r,p.A_rest_element_must_be_last_in_a_destructuring_pattern);if(xk(a,p.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),r.propertyName)return or(r.name,p.A_rest_element_cannot_have_a_property_name)}if(r.dotDotDotToken&&r.initializer)return cb(r,r.initializer.pos-1,1,p.A_rest_element_cannot_have_an_initializer)}function f5e(r){return Sf(r)||r.kind===224&&r.operator===41&&r.operand.kind===9}function Cft(r){return r.kind===10||r.kind===224&&r.operator===41&&r.operand.kind===10}function Eft(r){if((Sn(r)||Co(r)&&f5e(r.argumentExpression))&&pc(r.expression))return!!(Dc(r).flags&1056)}function p5e(r){const a=r.initializer;if(a){const l=!(f5e(a)||Eft(a)||a.kind===112||a.kind===97||Cft(a));if((f5(r)||hi(r)&&Qj(r))&&!r.type){if(l)return or(a,p.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}else return or(a,p.Initializers_are_not_allowed_in_ambient_contexts)}}function Pft(r){const a=lb(r),l=a&7;if(Ns(r.name))switch(l){case 6:return or(r,p._0_declarations_may_not_have_binding_patterns,"await using");case 4:return or(r,p._0_declarations_may_not_have_binding_patterns,"using")}if(r.parent.parent.kind!==249&&r.parent.parent.kind!==250){if(a&33554432)p5e(r);else if(!r.initializer){if(Ns(r.name)&&!Ns(r.parent))return or(r,p.A_destructuring_declaration_must_have_an_initializer);switch(l){case 6:return or(r,p._0_declarations_must_be_initialized,"await using");case 4:return or(r,p._0_declarations_must_be_initialized,"using");case 2:return or(r,p._0_declarations_must_be_initialized,"const")}}}if(r.exclamationToken&&(r.parent.parent.kind!==243||!r.type||r.initializer||a&33554432)){const _=r.initializer?p.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:r.type?p.A_definite_assignment_assertion_is_not_permitted_in_this_context:p.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return or(r.exclamationToken,_)}return(R<5||wr(r).impliedNodeFormat===1)&&R!==4&&!(r.parent.parent.flags&33554432)&&Rn(r.parent.parent,32)&&d5e(r.name),!!l&&m5e(r.name)}function d5e(r){if(r.kind===80){if(on(r)==="__esModule")return Aft("noEmit",r,p.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else{const a=r.elements;for(const l of a)if(!dl(l))return d5e(l.name)}return!1}function m5e(r){if(r.kind===80){if(r.escapedText==="let")return or(r,p.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else{const a=r.elements;for(const l of a)dl(l)||m5e(l.name)}return!1}function e0e(r){const a=r.declarations;if(xk(r.declarations))return!0;if(!r.declarations.length)return cb(r,a.pos,a.end-a.pos,p.Variable_declaration_list_cannot_be_empty);const l=r.flags&7;return(l===4||l===6)&&kO(r.parent)?or(r,l===4?p.The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:p.The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration):l===6?IIe(r):!1}function g5e(r){switch(r.kind){case 245:case 246:case 247:case 254:case 248:case 249:case 250:return!1;case 256:return g5e(r.parent)}return!0}function Dft(r){if(!g5e(r.parent)){const a=lb(r.declarationList)&7;if(a){const l=a===1?"let":a===2?"const":a===4?"using":a===6?"await using":E.fail("Unknown BlockScope flag");return or(r,p._0_declarations_can_only_be_declared_inside_a_block,l)}}}function wft(r){const a=r.name.escapedText;switch(r.keywordToken){case 105:if(a!=="target")return or(r.name,p._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,xi(r.name.escapedText),Ws(r.keywordToken),"target");break;case 102:if(a!=="meta")return or(r.name,p._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,xi(r.name.escapedText),Ws(r.keywordToken),"meta");break}}function ob(r){return r.parseDiagnostics.length>0}function Jl(r,a,...l){const _=wr(r);if(!ob(_)){const m=Im(_,r.pos);return wa.add(xl(_,m.start,m.length,a,...l)),!0}return!1}function cb(r,a,l,_,...m){const h=wr(r);return ob(h)?!1:(wa.add(xl(h,a,l,_,...m)),!0)}function Aft(r,a,l,..._){const m=wr(a);return ob(m)?!1:(Td(r,a,l,..._),!0)}function or(r,a,...l){const _=wr(r);return ob(_)?!1:(wa.add(yn(r,a,...l)),!0)}function Nft(r){const a=Hr(r)?G5(r):void 0,l=r.typeParameters||a&&bl(a);if(l){const _=l.pos===l.end?l.pos:ca(wr(r).text,l.pos);return cb(r,_,l.end-_,p.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function Ift(r){const a=r.type||vp(r);if(a)return or(a,p.Type_annotation_cannot_appear_on_a_constructor_declaration)}function Fft(r){if(Pa(r.name)&&Zr(r.name.expression)&&r.name.expression.operatorToken.kind===103)return or(r.parent.members[0],p.A_mapped_type_may_not_declare_properties_or_methods);if($n(r.parent)){if(aa(r.name)&&r.name.text==="constructor")return or(r.name,p.Classes_may_not_have_a_field_named_constructor);if(cD(r.name,p.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(re<2&&Pi(r.name))return or(r.name,p.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(re<2&&s_(r))return or(r.name,p.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(s_(r)&&Zhe(r.questionToken,p.An_accessor_property_cannot_be_declared_optional))return!0}else if(r.parent.kind===264){if(cD(r.name,p.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(E.assertNode(r,B_),r.initializer)return or(r.initializer,p.An_interface_property_cannot_have_an_initializer)}else if(z_(r.parent)){if(cD(r.name,p.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(E.assertNode(r,B_),r.initializer)return or(r.initializer,p.A_type_literal_property_cannot_have_an_initializer)}if(r.flags&33554432&&p5e(r),xs(r)&&r.exclamationToken&&(!$n(r.parent)||!r.type||r.initializer||r.flags&33554432||Ms(r)||Zv(r))){const a=r.initializer?p.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:r.type?p.A_definite_assignment_assertion_is_not_permitted_in_this_context:p.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return or(r.exclamationToken,a)}}function Oft(r){return r.kind===264||r.kind===265||r.kind===272||r.kind===271||r.kind===278||r.kind===277||r.kind===270||Rn(r,2208)?!1:Jl(r,p.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function Lft(r){for(const a of r.statements)if((yu(a)||a.kind===243)&&Oft(a))return!0;return!1}function Mft(r){return!!(r.flags&33554432)&&Lft(r)}function Rh(r){if(r.flags&33554432){if(!jn(r).hasReportedStatementInAmbientContext&&(As(r.parent)||$0(r.parent)))return jn(r).hasReportedStatementInAmbientContext=Jl(r,p.An_implementation_cannot_be_declared_in_ambient_contexts);if(r.parent.kind===241||r.parent.kind===268||r.parent.kind===312){const l=jn(r.parent);if(!l.hasReportedStatementInAmbientContext)return l.hasReportedStatementInAmbientContext=Jl(r,p.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function t0e(r){const a=jc(r).includes("."),l=r.numericLiteralFlags&16;a||l||+r.text<=9007199254740991||xd(!1,yn(r,p.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function Rft(r){return!!(!(_y(r.parent)||py(r.parent)&&_y(r.parent.parent))&&re<7&&or(r,p.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function jft(r,a,...l){const _=wr(r);if(!ob(_)){const m=Im(_,r.pos);return wa.add(xl(_,bc(m),0,a,...l)),!0}return!1}function Bft(){return cl||(cl=[],ge.forEach((r,a)=>{qU.test(a)&&cl.push(r)})),cl}function Jft(r){var a;return r.isTypeOnly&&r.name&&r.namedBindings?or(r,p.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both):r.isTypeOnly&&((a=r.namedBindings)==null?void 0:a.kind)===275?h5e(r.namedBindings):!1}function h5e(r){return!!rr(r.elements,a=>{if(a.isTypeOnly)return Jl(a,a.kind===276?p.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:p.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)})}function zft(r){if(j.verbatimModuleSyntax&&R===1)return or(r,p.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(R===5)return or(r,p.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext);if(r.typeArguments)return or(r,p.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);const a=r.arguments;if(R!==99&&R!==199&&R!==100&&(xk(a),a.length>1)){const _=a[1];return or(_,p.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 or(r,p.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments);const l=wn(a,gd);return l?or(l,p.Argument_of_dynamic_import_cannot_be_spread_element):!1}function Wft(r,a){const l=bn(r);if(l&20&&a.flags&1048576)return wn(a.types,_=>{if(_.flags&524288){const m=l&bn(_);if(m&4)return r.target===_.target;if(m&16)return!!r.aliasSymbol&&r.aliasSymbol===_.aliasSymbol}return!1})}function Vft(r,a){if(bn(r)&128&&ad(a,N0))return wn(a.types,l=>!N0(l))}function Uft(r,a){let l=0;if(Es(r,l).length>0||(l=1,Es(r,l).length>0))return wn(a.types,m=>Es(m,l).length>0)}function qft(r,a){let l;if(!(r.flags&406978556)){let _=0;for(const m of a.types)if(!(m.flags&406978556)){const h=Xs([pm(r),pm(m)]);if(h.flags&4194304)return m;if(Od(h)||h.flags&1048576){const x=h.flags&1048576?R0(h.types,Od):1;x>=_&&(l=m,_=x)}}}return l}function Hft(r){if(nc(r,67108864)){const a=Mc(r,l=>!(l.flags&402784252));if(!(a.flags&131072))return a}return r}function y5e(r,a,l){if(a.flags&1048576&&r.flags&2621440){const _=AAe(a,r);if(_)return _;const m=Ua(r);if(m){const h=wAe(m,a);if(h){const x=Vme(a,nr(h,N=>[()=>Xr(N),N.escapedName]),l);if(x!==a)return x}}}}function r0e(r){const a=Ib(r);return a||(Pa(r)?dge(Yl(r.expression)):void 0)}function wK(r){return Lr===r||(Lr=r,er=y1(r)),er}function lb(r){return Vt===r||(Vt=r,hr=Gh(r)),hr}function Qj(r){const a=lb(r)&7;return a===2||a===4||a===6}}function JLe(e){return!$0(e)}function kbe(e){return e.kind!==262&&e.kind!==174||!!e.body}function Cbe(e){switch(e.parent.kind){case 276:case 281:return Ie(e);default:return eh(e)}}function Ebe(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function Su(e){return!!(e.flags&1)}function UU(e){return!!(e.flags&2)}function zLe(e){return{getCommonSourceDirectory:e.getCommonSourceDirectory?()=>e.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>e.getCurrentDirectory(),getSymlinkCache:Os(e,e.getSymlinkCache),getPackageJsonInfoCache:()=>{var t;return(t=e.getPackageJsonInfoCache)==null?void 0:t.call(e)},useCaseSensitiveFileNames:Os(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 qU,f9,Nse,Ise,Fse,Ose,p9,HU,d9,m9,Pbe,g9,Lse,Cf,GU,WLe=Dt({"src/compiler/checker.ts"(){Fs(),wse(),db(),qU=/^".+"$/,f9="(anonymous)",Nse=1,Ise=1,Fse=1,Ose=1,p9=(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))(p9||{}),HU=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),d9=(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))(d9||{}),m9=(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))(m9||{}),Pbe=i7(kbe,JLe),g9=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3,NoInfer:4})),Lse=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"})(Cf||(Cf={})),GU=class k5e{constructor(t,n,i){this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;for(var s;n instanceof k5e;)n=n.inner;this.inner=n,this.moduleResolverHost=i,this.context=t,this.canTrackSymbol=!!((s=this.inner)!=null&&s.trackSymbol)}trackSymbol(t,n,i){var s,o;if((s=this.inner)!=null&&s.trackSymbol&&!this.disableTrackSymbol){if(this.inner.trackSymbol(t,n,i))return this.onDiagnosticReported(),!0;t.flags&262144||((o=this.context).trackedSymbols??(o.trackedSymbols=[])).push([t,n,i])}return!1}reportInaccessibleThisError(){var t;(t=this.inner)!=null&&t.reportInaccessibleThisError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleThisError())}reportPrivateInBaseOfClassExpression(t){var n;(n=this.inner)!=null&&n.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 n;(n=this.inner)!=null&&n.reportLikelyUnsafeImportRequiredError&&(this.onDiagnosticReported(),this.inner.reportLikelyUnsafeImportRequiredError(t))}reportTruncationError(){var t;(t=this.inner)!=null&&t.reportTruncationError&&(this.onDiagnosticReported(),this.inner.reportTruncationError())}trackReferencedAmbientModule(t,n){var i;(i=this.inner)!=null&&i.trackReferencedAmbientModule&&(this.onDiagnosticReported(),this.inner.trackReferencedAmbientModule(t,n))}trackExternalModuleSymbolOfImportTypeNode(t){var n;(n=this.inner)!=null&&n.trackExternalModuleSymbolOfImportTypeNode&&(this.onDiagnosticReported(),this.inner.trackExternalModuleSymbolOfImportTypeNode(t))}reportNonlocalAugmentation(t,n,i){var s;(s=this.inner)!=null&&s.reportNonlocalAugmentation&&(this.onDiagnosticReported(),this.inner.reportNonlocalAugmentation(t,n,i))}reportNonSerializableProperty(t){var n;(n=this.inner)!=null&&n.reportNonSerializableProperty&&(this.onDiagnosticReported(),this.inner.reportNonSerializableProperty(t))}onDiagnosticReported(){this.context.reportedDiagnostic=!0}}}});function qe(e,t,n,i){if(e===void 0)return e;const s=t(e);let o;if(s!==void 0)return ts(s)?o=(i||GLe)(s):o=s,E.assertNode(o,n),o}function Dr(e,t,n,i,s){if(e===void 0)return e;const o=e.length;(i===void 0||i<0)&&(i=0),(s===void 0||s>o-i)&&(s=o-i);let c,u=-1,f=-1;i>0||so-i)&&(s=o-i),Dbe(e,t,n,i,s)}function Dbe(e,t,n,i,s){let o;const c=e.length;(i>0||s=2&&(s=VLe(s,n)),n.setLexicalEnvironmentFlags(1,!1)),n.suspendLexicalEnvironment(),s}function VLe(e,t){let n;for(let i=0;i{const c=iu,addSource:Se,setSourceContent:ae,addName:K,addMapping:Oe,appendSourceMap:me,toJSON:ge,toString:()=>JSON.stringify(ge())};function Se($e){o();const Pt=kT(i,$e,e.getCurrentDirectory(),e.getCanonicalFileName,!0);let at=g.get(Pt);return at===void 0&&(at=f.length,f.push(Pt),u.push($e),g.set(Pt,at)),c(),at}function ae($e,Pt){if(o(),Pt!==null){for(d||(d=[]);d.length<$e;)d.push(null);d[$e]=Pt}c()}function K($e){o(),S||(S=new Map);let Pt=S.get($e);return Pt===void 0&&(Pt=y.length,y.push($e),S.set($e,Pt)),c(),Pt}function fe($e,Pt){return!q||re!==$e||R!==Pt}function ke($e,Pt,at){return $e!==void 0&&Pt!==void 0&&at!==void 0&&Y===$e&&(ue>Pt||ue===Pt&&pe>at)}function Oe($e,Pt,at,Je,pt,zt){E.assert($e>=re,"generatedLine cannot backtrack"),E.assert(Pt>=0,"generatedCharacter cannot be negative"),E.assert(at===void 0||at>=0,"sourceIndex cannot be negative"),E.assert(Je===void 0||Je>=0,"sourceLine cannot be negative"),E.assert(pt===void 0||pt>=0,"sourceCharacter cannot be negative"),o(),(fe($e,Pt)||ke(at,Je,pt))&&(De(),re=$e,R=Pt,ee=!1,oe=!1,q=!0),at!==void 0&&Je!==void 0&&pt!==void 0&&(Y=at,ue=Je,pe=pt,ee=!0,zt!==void 0&&(H=zt,oe=!0)),c()}function me($e,Pt,at,Je,pt,zt){E.assert($e>=re,"generatedLine cannot backtrack"),E.assert(Pt>=0,"generatedCharacter cannot be negative"),o();const Vt=[];let hr;const Lr=YU(at.mappings);for(const er of Lr){if(zt&&(er.generatedLine>zt.line||er.generatedLine===zt.line&&er.generatedCharacter>zt.character))break;if(pt&&(er.generatedLine=1024&&ft()}function De(){if(!(!q||!be())){if(o(),w0&&(k+=String.fromCharCode.apply(void 0,T),T.length=0)}function ge(){return De(),ft(),{version:3,file:t,sourceRoot:n,sources:f,names:y,mappings:k,sourcesContent:d}}function Fe($e){$e<0?$e=(-$e<<1)+1:$e=$e<<1;do{let Pt=$e&31;$e=$e>>5,$e>0&&(Pt=Pt|32),xe(QLe(Pt))}while($e>0)}}function XU(e,t){return{getLineCount:()=>t.length,getLineText:n=>e.substring(t[n],t[n+1])}}function Rse(e){for(let t=e.getLineCount()-1;t>=0;t--){const n=e.getLineText(t),i=y9.exec(n);if(i)return i[1].trimEnd();if(!n.match(v9))break}}function XLe(e){return typeof e=="string"||e===null}function jse(e){return e!==null&&typeof e=="object"&&e.version===3&&typeof e.file=="string"&&typeof e.mappings=="string"&&ts(e.sources)&&Wi(e.sources,ls)&&(e.sourceRoot===void 0||e.sourceRoot===null||typeof e.sourceRoot=="string")&&(e.sourcesContent===void 0||e.sourcesContent===null||ts(e.sourcesContent)&&Wi(e.sourcesContent,XLe))&&(e.names===void 0||e.names===null||ts(e.names)&&Wi(e.names,ls))}function QU(e){try{const t=JSON.parse(e);if(jse(t))return t}catch{}}function YU(e){let t=!1,n=0,i=0,s=0,o=0,c=0,u=0,f=0,g;return{get pos(){return n},get error(){return g},get state(){return d(!0,!0)},next(){for(;!t&&n=e.length)return S("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;const $=YLe(e.charCodeAt(n));if($===-1)return S("Invalid character in VLQ"),-1;F=($&32)!==0,U=U|($&31)<>1,U=-U):U=U>>1,U}}function Abe(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 Bse(e){return e.sourceIndex!==void 0&&e.sourceLine!==void 0&&e.sourceCharacter!==void 0}function QLe(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:E.fail(`${e}: not a base64 value`)}function YLe(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 Nbe(e){return e.sourceIndex!==void 0&&e.sourcePosition!==void 0}function Ibe(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function ZLe(e,t){return E.assert(e.sourceIndex===t.sourceIndex),Ao(e.sourcePosition,t.sourcePosition)}function KLe(e,t){return Ao(e.generatedPosition,t.generatedPosition)}function eMe(e){return e.sourcePosition}function tMe(e){return e.generatedPosition}function Jse(e,t,n){const i=Un(n),s=t.sourceRoot?Xi(t.sourceRoot,i):i,o=Xi(t.file,i),c=e.getSourceFileLike(o),u=t.sources.map(J=>Xi(J,s)),f=new Map(u.map((J,U)=>[e.getCanonicalFileName(J),U]));let g,d,y;return{getSourcePosition:F,getGeneratedPosition:P};function S(J){const U=c!==void 0?LD(c,J.generatedLine,J.generatedCharacter,!0):-1;let $,j;if(Bse(J)){const re=e.getSourceFileLike(u[J.sourceIndex]);$=t.sources[J.sourceIndex],j=re!==void 0?LD(re,J.sourceLine,J.sourceCharacter,!0):-1}return{generatedPosition:U,source:$,sourceIndex:J.sourceIndex,sourcePosition:j,nameIndex:J.nameIndex}}function T(){if(g===void 0){const J=YU(t.mappings),U=gs(J,S);J.error!==void 0?(e.log&&e.log(`Encountered error while decoding sourcemap: ${J.error}`),g=Ve):g=U}return g}function k(J){if(y===void 0){const U=[];for(const $ of T()){if(!Nbe($))continue;let j=U[$.sourceIndex];j||(U[$.sourceIndex]=j=[]),j.push($)}y=U.map($=>z4($,ZLe,Ibe))}return y[J]}function w(){if(d===void 0){const J=[];for(const U of T())J.push(U);d=z4(J,KLe,Ibe)}return d}function P(J){const U=f.get(e.getCanonicalFileName(J.fileName));if(U===void 0)return J;const $=k(U);if(!ct($))return J;let j=hT($,J.pos,eMe,Ao);j<0&&(j=~j);const re=$[j];return re===void 0||re.sourceIndex!==U?J:{fileName:o,pos:re.generatedPosition}}function F(J){const U=w();if(!ct(U))return J;let $=hT(U,J.pos,tMe,Ao);$<0&&($=~$);const j=U[$];return j===void 0||!Nbe(j)?J:{fileName:u[j.sourceIndex],pos:j.sourcePosition}}}var ZU,y9,v9,b9,rMe=Dt({"src/compiler/sourcemap.ts"(){Fs(),db(),ZU=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,y9=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,v9=/^\s*(\/\/[@#] .*)?$/,b9={getSourcePosition:wo,getGeneratedPosition:wo}}});function cu(e){return e=ic(e),e?Oa(e):0}function nMe(e){return!e||!sh(e)?!1:ct(e.elements,Fbe)}function Fbe(e){return e.propertyName!==void 0&&e.propertyName.escapedText==="default"}function Gp(e,t){return n;function n(s){return s.kind===312?t(s):i(s)}function i(s){return e.factory.createBundle(nr(s.sourceFiles,t),s.prepends)}}function zse(e){return!!_C(e)}function S9(e){if(_C(e))return!0;const t=e.importClause&&e.importClause.namedBindings;if(!t||!sh(t))return!1;let n=0;for(const i of t.elements)Fbe(i)&&n++;return n>0&&n!==t.elements.length||!!(t.elements.length-n)&&OT(e)}function KU(e){return!S9(e)&&(OT(e)||!!e.importClause&&sh(e.importClause.namedBindings)&&nMe(e.importClause.namedBindings))}function eq(e,t){const n=e.getEmitResolver(),i=e.getCompilerOptions(),s=[],o=new iq,c=[],u=new Map;let f,g=!1,d,y=!1,S=!1,T=!1;for(const P of t.statements)switch(P.kind){case 272:s.push(P),!S&&S9(P)&&(S=!0),!T&&KU(P)&&(T=!0);break;case 271:P.moduleReference.kind===283&&s.push(P);break;case 278:if(P.moduleSpecifier)if(!P.exportClause)s.push(P),y=!0;else if(s.push(P),$f(P.exportClause))w(P);else{const F=P.exportClause.name;u.get(on(F))||(I3(c,cu(P),F),u.set(on(F),!0),f=_r(f,F)),S=!0}else w(P);break;case 277:P.isExportEquals&&!d&&(d=P);break;case 243:if(Rn(P,32))for(const F of P.declarationList.declarations)f=Obe(F,u,f,c);break;case 262:if(Rn(P,32))if(Rn(P,2048))g||(I3(c,cu(P),e.factory.getDeclarationName(P)),g=!0);else{const F=P.name;u.get(on(F))||(I3(c,cu(P),F),u.set(on(F),!0),f=_r(f,F))}break;case 263:if(Rn(P,32))if(Rn(P,2048))g||(I3(c,cu(P),e.factory.getDeclarationName(P)),g=!0);else{const F=P.name;F&&!u.get(on(F))&&(I3(c,cu(P),F),u.set(on(F),!0),f=_r(f,F))}break}const k=qV(e.factory,e.getEmitHelperFactory(),t,i,y,S,T);return k&&s.unshift(k),{externalImports:s,exportSpecifiers:o,exportEquals:d,hasExportStarsToExportValues:y,exportedBindings:c,exportedNames:f,externalHelpersImportDeclaration:k};function w(P){for(const F of Ls(P.exportClause,$f).elements)if(!u.get(on(F.name))){const J=F.propertyName||F.name;P.moduleSpecifier||o.add(J,F);const U=n.getReferencedImportDeclaration(J)||n.getReferencedValueDeclaration(J);U&&I3(c,cu(U),F.name),u.set(on(F.name),!0),f=_r(f,F.name)}}}function Obe(e,t,n,i){if(Ns(e.name))for(const s of e.name.elements)dl(s)||(n=Obe(s,t,n,i));else if(!Oo(e.name)){const s=on(e.name);t.get(s)||(t.set(s,!0),n=_r(n,e.name),ah(e.name)&&I3(i,cu(e),e.name))}return n}function I3(e,t,n){let i=e[t];return i?i.push(n):e[t]=i=[n],i}function y2(e){return Ma(e)||e.kind===9||c_(e.kind)||Ie(e)}function Wm(e){return!Ie(e)&&y2(e)}function F3(e){return e>=65&&e<=79}function O3(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 T9(e){if(!Cl(e))return;const t=Va(e.expression);return Eb(t)?t:void 0}function Lbe(e,t,n){for(let i=t;isMe(i,t,n))}function iMe(e){return aMe(e)||ec(e)}function k9(e){return An(e.members,iMe)}function sMe(e,t,n){return xs(e)&&(!!e.initializer||!t)&&Bc(e)===n}function aMe(e){return xs(e)&&Bc(e)}function mA(e){return e.kind===172&&e.initializer!==void 0}function Wse(e){return!Ms(e)&&(wT(e)||s_(e))&&Pi(e.name)}function Vse(e){let t;if(e){const n=e.parameters,i=n.length>0&&Qv(n[0]),s=i?1:0,o=i?n.length-1:n.length;for(let c=0;cnq(n.privateEnv,t))}function Gse(e){return!e.initializer&&Ie(e.name)}function gA(e){return Wi(e,Gse)}var Tx,iq,lMe=Dt({"src/compiler/transformers/utilities.ts"(){Fs(),Tx=class L4{constructor(){this._map=new Map}get size(){return this._map.size}has(t){return this._map.has(L4.toKey(t))}get(t){return this._map.get(L4.toKey(t))}set(t,n){return this._map.set(L4.toKey(t),n),this}delete(t){var n;return((n=this._map)==null?void 0:n.delete(L4.toKey(t)))??!1}clear(){this._map.clear()}values(){return this._map.values()}static toKey(t){if(yb(t)||Oo(t)){const n=t.emitNode.autoGenerate;if((n.flags&7)===4){const i=Ww(t),s=pg(i)&&i!==t?L4.toKey(i):`(generated@${Oa(i)})`;return j1(!1,n.prefix,s,n.suffix,L4.toKey)}else{const i=`(auto@${n.id})`;return j1(!1,n.prefix,i,n.suffix,L4.toKey)}}return Pi(t)?on(t).slice(1):on(t)}},iq=class extends Tx{add(e,t){let n=this.get(e);return n?n.push(t):this.set(e,n=[t]),n}remove(e,t){const n=this.get(e);n&&(bT(n,t),n.length||this.delete(e))}}}});function rS(e,t,n,i,s,o){let c=e,u;if(e0(e))for(u=e.right;Ore(e.left)||yW(e.left);)if(e0(u))c=e=u,u=e.right;else return E.checkDefined(qe(u,t,ot));let f;const g={context:n,level:i,downlevelIteration:!!n.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:d,emitBindingOrAssignment:y,createArrayBindingOrAssignmentPattern:S=>hMe(n.factory,S),createObjectBindingOrAssignmentPattern:S=>vMe(n.factory,S),createArrayBindingOrAssignmentElement:SMe,visitor:t};if(u&&(u=qe(u,t,ot),E.assert(u),Ie(u)&&$se(e,u.escapedText)||Xse(e)?u=xx(g,u,!1,c):s?u=xx(g,u,!0,c):ko(e)&&(c=u)),L3(g,e,u,c,e0(e)),u&&s){if(!ct(f))return u;f.push(u)}return n.factory.inlineExpressions(f)||n.factory.createOmittedExpression();function d(S){f=_r(f,S)}function y(S,T,k,w){E.assertNode(S,o?Ie:ot);const P=o?o(S,T,k):Ke(n.factory.createAssignment(E.checkDefined(qe(S,t,ot)),T),k);P.original=w,d(P)}}function $se(e,t){const n=my(e);return ZD(n)?uMe(n,t):Ie(n)?n.escapedText===t:!1}function uMe(e,t){const n=$C(e);for(const i of n)if($se(i,t))return!0;return!1}function Xse(e){const t=MO(e);if(t&&Pa(t)&&!Rv(t.expression))return!0;const n=my(e);return!!n&&ZD(n)&&_Me(n)}function _Me(e){return!!rr($C(e),Xse)}function v2(e,t,n,i,s,o=!1,c){let u;const f=[],g=[],d={context:n,level:i,downlevelIteration:!!n.getCompilerOptions().downlevelIteration,hoistTempVariables:o,emitExpression:y,emitBindingOrAssignment:S,createArrayBindingOrAssignmentPattern:T=>gMe(n.factory,T),createObjectBindingOrAssignmentPattern:T=>yMe(n.factory,T),createArrayBindingOrAssignmentElement:T=>bMe(n.factory,T),visitor:t};if(hi(e)){let T=Jw(e);T&&(Ie(T)&&$se(e,T.escapedText)||Xse(e))&&(T=xx(d,E.checkDefined(qe(T,d.visitor,ot)),!1,T),e=n.factory.updateVariableDeclaration(e,e.name,void 0,void 0,T))}if(L3(d,e,s,e,c),u){const T=n.factory.createTempVariable(void 0);if(o){const k=n.factory.inlineExpressions(u);u=void 0,S(T,k,void 0,void 0)}else{n.hoistVariableDeclaration(T);const k=ka(f);k.pendingExpressions=_r(k.pendingExpressions,n.factory.createAssignment(T,k.value)),Nn(k.pendingExpressions,u),k.value=T}}for(const{pendingExpressions:T,name:k,value:w,location:P,original:F}of f){const J=n.factory.createVariableDeclaration(k,void 0,void 0,T?n.factory.inlineExpressions(_r(T,w)):w);J.original=F,Ke(J,P),g.push(J)}return g;function y(T){u=_r(u,T)}function S(T,k,w,P){E.assertNode(T,vb),u&&(k=n.factory.inlineExpressions(_r(u,k)),u=void 0),f.push({pendingExpressions:u,name:T,value:k,location:w,original:P})}}function L3(e,t,n,i,s){const o=my(t);if(!s){const c=qe(Jw(t),e.visitor,ot);c?n?(n=dMe(e,n,c,i),!Wm(c)&&ZD(o)&&(n=xx(e,n,!0,i))):n=c:n||(n=e.context.factory.createVoidZero())}rz(o)?fMe(e,t,o,n,i):nz(o)?pMe(e,t,o,n,i):e.emitBindingOrAssignment(o,n,i,t)}function fMe(e,t,n,i,s){const o=$C(n),c=o.length;if(c!==1){const g=!YD(t)||c!==0;i=xx(e,i,g,s)}let u,f;for(let g=0;g=1&&!(d.transformFlags&98304)&&!(my(d).transformFlags&98304)&&!Pa(y))u=_r(u,qe(d,e.visitor,rte));else{u&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(u),i,s,n),u=void 0);const S=mMe(e,i,y);Pa(y)&&(f=_r(f,S.argumentExpression)),L3(e,d,S,d)}}}u&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(u),i,s,n)}function pMe(e,t,n,i,s){const o=$C(n),c=o.length;if(e.level<1&&e.downlevelIteration)i=xx(e,Ke(e.context.getEmitHelperFactory().createReadHelper(i,c>0&&LO(o[c-1])?void 0:c),s),!1,s);else if(c!==1&&(e.level<1||c===0)||Wi(o,dl)){const g=!YD(t)||c!==0;i=xx(e,i,g,s)}let u,f;for(let g=0;g=1)if(d.transformFlags&65536||e.hasTransformedPriorElement&&!Rbe(d)){e.hasTransformedPriorElement=!0;const y=e.context.factory.createTempVariable(void 0);e.hoistTempVariables&&e.context.hoistVariableDeclaration(y),f=_r(f,[y,d]),u=_r(u,e.createArrayBindingOrAssignmentElement(y))}else u=_r(u,d);else{if(dl(d))continue;if(LO(d)){if(g===c-1){const y=e.context.factory.createArraySliceCall(i,g);L3(e,d,y,d)}}else{const y=e.context.factory.createElementAccessExpression(i,g);L3(e,d,y,d)}}}if(u&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(u),i,s,n),f)for(const[g,d]of f)L3(e,d,g,d)}function Rbe(e){const t=my(e);if(!t||dl(t))return!0;const n=MO(e);if(n&&!Ud(n))return!1;const i=Jw(e);return i&&!Wm(i)?!1:ZD(t)?Wi($C(t),Rbe):Ie(t)}function dMe(e,t,n,i){return t=xx(e,t,!0,i),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t,"undefined"),void 0,n,void 0,t)}function mMe(e,t,n){const{factory:i}=e.context;if(Pa(n)){const s=xx(e,E.checkDefined(qe(n.expression,e.visitor,ot)),!1,n);return e.context.factory.createElementAccessExpression(t,s)}else if(Sf(n)){const s=i.cloneNode(n);return e.context.factory.createElementAccessExpression(t,s)}else{const s=e.context.factory.createIdentifier(on(n));return e.context.factory.createPropertyAccessExpression(t,s)}}function xx(e,t,n,i){if(Ie(t)&&n)return t;{const s=e.context.factory.createTempVariable(void 0);return e.hoistTempVariables?(e.context.hoistVariableDeclaration(s),e.emitExpression(Ke(e.context.factory.createAssignment(s,t),i))):e.emitBindingOrAssignment(s,t,i,void 0),s}}function gMe(e,t){return E.assertEachNode(t,G7),e.createArrayBindingPattern(t)}function hMe(e,t){return E.assertEachNode(t,e8),e.createArrayLiteralExpression(nr(t,e.converters.convertToArrayAssignmentElement))}function yMe(e,t){return E.assertEachNode(t,Ea),e.createObjectBindingPattern(t)}function vMe(e,t){return E.assertEachNode(t,KD),e.createObjectLiteralExpression(nr(t,e.converters.convertToObjectAssignmentElement))}function bMe(e,t){return e.createBindingElement(void 0,void 0,t)}function SMe(e){return e}var sq,TMe=Dt({"src/compiler/transformers/destructuring.ts"(){Fs(),sq=(e=>(e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",e))(sq||{})}});function Qse(e,t,n=e.createThis()){const i=e.createAssignment(t,n),s=e.createExpressionStatement(i),o=e.createBlock([s],!1),c=e.createClassStaticBlockDeclaration(o);return ou(c).classThis=t,c}function M3(e){var t;if(!ec(e)||e.body.statements.length!==1)return!1;const n=e.body.statements[0];return Cl(n)&&il(n.expression,!0)&&Ie(n.expression.left)&&((t=e.emitNode)==null?void 0:t.classThis)===n.expression.left&&n.expression.right.kind===110}function aq(e){var t;return!!((t=e.emitNode)!=null&&t.classThis)&&ct(e.members,M3)}function Yse(e,t,n,i){if(aq(t))return t;const s=Qse(e,n,i);t.name&&sa(s.body.statements[0],t.name);const o=e.createNodeArray([s,...t.members]);Ke(o,t.members);const c=Qc(t)?e.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,o):e.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,o);return ou(c).classThis=n,c}var xMe=Dt({"src/compiler/transformers/classThis.ts"(){Fs()}});function R3(e,t,n){const i=ic(xc(n));return(Qc(i)||Xc(i))&&!i.name&&Rn(i,2048)?e.createStringLiteral("default"):e.createStringLiteralFromNode(t)}function jbe(e,t,n){const{factory:i}=e;if(n!==void 0)return{assignedName:i.createStringLiteral(n),name:t};if(Ud(t)||Pi(t))return{assignedName:i.createStringLiteralFromNode(t),name:t};if(Ud(t.expression)&&!Ie(t.expression))return{assignedName:i.createStringLiteralFromNode(t.expression),name:t};const s=i.getGeneratedNameForNode(t);e.hoistVariableDeclaration(s);const o=e.getEmitHelperFactory().createPropKeyHelper(t.expression),c=i.createAssignment(s,o),u=i.updateComputedPropertyName(t,c);return{assignedName:s,name:u}}function Zse(e,t,n=e.factory.createThis()){const{factory:i}=e,s=e.getEmitHelperFactory().createSetFunctionNameHelper(n,t),o=i.createExpressionStatement(s),c=i.createBlock([o],!1),u=i.createClassStaticBlockDeclaration(c);return ou(u).assignedName=t,u}function kx(e){var t;if(!ec(e)||e.body.statements.length!==1)return!1;const n=e.body.statements[0];return Cl(n)&&o3(n.expression,"___setFunctionName")&&n.expression.arguments.length>=2&&n.expression.arguments[1]===((t=e.emitNode)==null?void 0:t.assignedName)}function E9(e){var t;return!!((t=e.emitNode)!=null&&t.assignedName)&&ct(e.members,kx)}function oq(e){return!!e.name||E9(e)}function P9(e,t,n,i){if(E9(t))return t;const{factory:s}=e,o=Zse(e,n,i);t.name&&sa(o.body.statements[0],t.name);const c=vc(t.members,M3)+1,u=t.members.slice(0,c),f=t.members.slice(c),g=s.createNodeArray([...u,o,...f]);return Ke(g,t.members),t=Qc(t)?s.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,g):s.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,g),ou(t).assignedName=n,t}function s6(e,t,n,i){if(i&&aa(n)&&Oz(n))return t;const{factory:s}=e,o=xc(t),c=kl(o)?Ls(P9(e,o,n),kl):e.getEmitHelperFactory().createSetFunctionNameHelper(o,n);return s.restoreOuterExpressions(t,c)}function kMe(e,t,n,i){const{factory:s}=e,{assignedName:o,name:c}=jbe(e,t.name,i),u=s6(e,t.initializer,o,n);return s.updatePropertyAssignment(t,c,u)}function CMe(e,t,n,i){const{factory:s}=e,o=i!==void 0?s.createStringLiteral(i):R3(s,t.name,t.objectAssignmentInitializer),c=s6(e,t.objectAssignmentInitializer,o,n);return s.updateShorthandPropertyAssignment(t,t.name,c)}function EMe(e,t,n,i){const{factory:s}=e,o=i!==void 0?s.createStringLiteral(i):R3(s,t.name,t.initializer),c=s6(e,t.initializer,o,n);return s.updateVariableDeclaration(t,t.name,t.exclamationToken,t.type,c)}function PMe(e,t,n,i){const{factory:s}=e,o=i!==void 0?s.createStringLiteral(i):R3(s,t.name,t.initializer),c=s6(e,t.initializer,o,n);return s.updateParameterDeclaration(t,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,t.type,c)}function DMe(e,t,n,i){const{factory:s}=e,o=i!==void 0?s.createStringLiteral(i):R3(s,t.name,t.initializer),c=s6(e,t.initializer,o,n);return s.updateBindingElement(t,t.dotDotDotToken,t.propertyName,t.name,c)}function wMe(e,t,n,i){const{factory:s}=e,{assignedName:o,name:c}=jbe(e,t.name,i),u=s6(e,t.initializer,o,n);return s.updatePropertyDeclaration(t,t.modifiers,c,t.questionToken??t.exclamationToken,t.type,u)}function AMe(e,t,n,i){const{factory:s}=e,o=i!==void 0?s.createStringLiteral(i):R3(s,t.left,t.right),c=s6(e,t.right,o,n);return s.updateBinaryExpression(t,t.left,t.operatorToken,c)}function NMe(e,t,n,i){const{factory:s}=e,o=i!==void 0?s.createStringLiteral(i):s.createStringLiteral(t.isExportEquals?"":"default"),c=s6(e,t.expression,o,n);return s.updateExportAssignment(t,t.modifiers,c)}function W_(e,t,n,i){switch(t.kind){case 303:return kMe(e,t,n,i);case 304:return CMe(e,t,n,i);case 260:return EMe(e,t,n,i);case 169:return PMe(e,t,n,i);case 208:return DMe(e,t,n,i);case 172:return wMe(e,t,n,i);case 226:return AMe(e,t,n,i);case 277:return NMe(e,t,n,i)}}var IMe=Dt({"src/compiler/transformers/namedEvaluation.ts"(){Fs()}});function cq(e,t,n,i,s,o){const c=qe(t.tag,n,ot);E.assert(c);const u=[void 0],f=[],g=[],d=t.template;if(o===0&&!sW(d))return ur(t,n,e);const{factory:y}=e;if(ex(d))f.push(Kse(y,d)),g.push(eae(y,d,i));else{f.push(Kse(y,d.head)),g.push(eae(y,d.head,i));for(const T of d.templateSpans)f.push(Kse(y,T.literal)),g.push(eae(y,T.literal,i)),u.push(E.checkDefined(qe(T.expression,n,ot)))}const S=e.getEmitHelperFactory().createTemplateObjectHelper(y.createArrayLiteralExpression(f),y.createArrayLiteralExpression(g));if(Ic(i)){const T=y.createUniqueName("templateObject");s(T),u[0]=y.createLogicalOr(T,y.createAssignment(T,S))}else u[0]=S;return y.createCallExpression(c,void 0,u)}function Kse(e,t){return t.templateFlags&26656?e.createVoidZero():e.createStringLiteral(t.text)}function eae(e,t,n){let i=t.rawText;if(i===void 0){E.assertIsDefined(n,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),i=Bv(n,t);const s=t.kind===15||t.kind===18;i=i.substring(1,i.length-(s?1:2))}return i=i.replace(/\r\n?/g,` +`),Ke(e.createStringLiteral(i),t)}var lq,FMe=Dt({"src/compiler/transformers/taggedTemplate.ts"(){Fs(),lq=(e=>(e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All",e))(lq||{})}});function tae(e){const{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:i,resumeLexicalEnvironment:s,endLexicalEnvironment:o,hoistVariableDeclaration:c}=e,u=e.getEmitResolver(),f=e.getCompilerOptions(),g=Fa(f),d=au(f),y=!!f.experimentalDecorators,S=f.emitDecoratorMetadata?nae(e):void 0,T=e.onEmitNode,k=e.onSubstituteNode;e.onEmitNode=Fc,e.onSubstituteNode=rc,e.enableSubstitution(211),e.enableSubstitution(212);let w,P,F,J,U,$,j,re;return R;function R(X){return X.kind===313?Y(X):ue(X)}function Y(X){return t.createBundle(X.sourceFiles.map(ue),Ri(X.prepends,Ee=>Ee.kind===315?lV(Ee,"js"):Ee))}function ue(X){if(X.isDeclarationFile)return X;w=X;const Ee=pe(X,$e);return ih(Ee,e.readEmitHelpers()),w=void 0,Ee}function pe(X,Ee){const lt=J,Xt=U,an=$;H(X);const rn=Ee(X);return J!==lt&&(U=Xt),J=lt,$=an,rn}function H(X){switch(X.kind){case 312:case 269:case 268:case 241:J=X,U=void 0;break;case 263:case 262:if(Rn(X,128))break;X.name?V(X):E.assert(X.kind===263||Rn(X,2048));break}}function q(X){return pe(X,ee)}function ee(X){return X.transformFlags&1?Fe(X):X}function oe(X){return pe(X,Se)}function Se(X){switch(X.kind){case 272:case 271:case 277:case 278:return K(X);default:return ee(X)}}function ae(X){const Ee=as(X);if(Ee===X||oc(X))return!1;if(!Ee||Ee.kind!==X.kind)return!0;switch(X.kind){case 272:if(E.assertNode(Ee,sl),X.importClause!==Ee.importClause||X.attributes!==Ee.attributes)return!0;break;case 271:if(E.assertNode(Ee,El),X.name!==Ee.name||X.isTypeOnly!==Ee.isTypeOnly||X.moduleReference!==Ee.moduleReference&&(b_(X.moduleReference)||b_(Ee.moduleReference)))return!0;break;case 278:if(E.assertNode(Ee,Tc),X.exportClause!==Ee.exportClause||X.attributes!==Ee.attributes)return!0;break}return!1}function K(X){if(ae(X))return X.transformFlags&1?ur(X,q,e):X;switch(X.kind){case 272:return ar(X);case 271:return is(X);case 277:return oi(X);case 278:return Wr(X);default:E.fail("Unhandled ellided statement")}}function fe(X){return pe(X,ke)}function ke(X){if(!(X.kind===278||X.kind===272||X.kind===273||X.kind===271&&X.moduleReference.kind===283))return X.transformFlags&1||Rn(X,32)?Fe(X):X}function Oe(X){return Ee=>pe(Ee,lt=>me(lt,X))}function me(X,Ee){switch(X.kind){case 176:return fr(X);case 172:return Et(X,Ee);case 177:return _a(X,Ee);case 178:return cr(X,Ee);case 174:return ns(X,Ee);case 175:return ur(X,q,e);case 240:return X;case 181:return;default:return E.failBadSyntaxKind(X)}}function be(X){return Ee=>pe(Ee,lt=>xe(lt,X))}function xe(X,Ee){switch(X.kind){case 303:case 304:case 305:return q(X);case 177:return _a(X,Ee);case 178:return cr(X,Ee);case 174:return ns(X,Ee);default:return E.failBadSyntaxKind(X)}}function De(X){return ql(X)?void 0:q(X)}function ft(X){return ta(X)?void 0:q(X)}function ge(X){if(!ql(X)&&!(zT(X.kind)&28895)&&!(P&&X.kind===95))return X}function Fe(X){if(Ei(X)&&Rn(X,128))return t.createNotEmittedStatement(X);switch(X.kind){case 95:case 90:return P?void 0:X;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(X);case 270:return;case 264:return t.createNotEmittedStatement(X);case 263:return zt(X);case 231:return Vt(X);case 298:return ln(X);case 233:return Ht(X);case 210:return Pt(X);case 176:case 172:case 174:case 177:case 178:case 175:return E.fail("Class and object literal elements must be visited with their respective visitors");case 262:return br(X);case 218:return Le(X);case 219:return rt(X);case 169:return tt(X);case 217:return et(X);case 216:case 234:return B(X);case 238:return mt(X);case 213:return Be(X);case 214:return nt(X);case 215:return wt(X);case 235:return Ge(X);case 266:return W(X);case 243:return yt(X);case 260:return we(X);case 267:return _t(X);case 271:return is(X);case 285:return ir(X);case 286:return Yt(X);default:return ur(X,q,e)}}function $e(X){const Ee=Mu(f,"alwaysStrict")&&!(Ic(X)&&d>=5)&&!mp(X);return t.updateSourceFile(X,$U(X.statements,oe,e,0,Ee))}function Pt(X){return t.updateObjectLiteralExpression(X,Dr(X.properties,be(X),Yg))}function at(X){let Ee=0;ct(tq(X,!0,!0))&&(Ee|=1);const lt=Vd(X);return lt&&xc(lt.expression).kind!==106&&(Ee|=64),Qh(y,X)&&(Ee|=2),yE(y,X)&&(Ee|=4),pr(X)?Ee|=8:_s(X)?Ee|=32:kc(X)&&(Ee|=16),Ee}function Je(X){return!!(X.transformFlags&8192)}function pt(X){return Wf(X)||ct(X.typeParameters)||ct(X.heritageClauses,Je)||ct(X.members,Je)}function zt(X){const Ee=at(X),lt=g<=1&&!!(Ee&7);if(!pt(X)&&!Qh(y,X)&&!pr(X))return t.updateClassDeclaration(X,Dr(X.modifiers,ge,ta),X.name,void 0,Dr(X.heritageClauses,q,xf),Dr(X.members,Oe(X),Tl));lt&&e.startLexicalEnvironment();const Xt=lt||Ee&8;let an=Xt?Dr(X.modifiers,ft,Lo):Dr(X.modifiers,q,Lo);Ee&2&&(an=Lr(an,X));const En=Xt&&!X.name||Ee&4||Ee&1?X.name??t.getGeneratedNameForNode(X):X.name,li=t.updateClassDeclaration(X,an,En,void 0,Dr(X.heritageClauses,q,xf),hr(X));let gn=ha(X);Ee&1&&(gn|=64),Qr(li,gn);let Ps;if(lt){const Qo=[li],gl=bW(ca(w.text,X.members.end),20),yo=t.getInternalName(X),Vc=t.createPartiallyEmittedExpression(yo);wC(Vc,gl.end),Qr(Vc,3072);const $a=t.createReturnStatement(Vc);$E($a,gl.pos),Qr($a,3840),Qo.push($a),mg(Qo,e.endLexicalEnvironment());const hl=t.createImmediatelyInvokedArrowFunction(Qo);vw(hl,1);const E_=t.createVariableDeclaration(t.getLocalName(X,!1,!1),void 0,void 0,hl);dn(E_,X);const cl=t.createVariableStatement(void 0,t.createVariableDeclarationList([E_],1));dn(cl,X),Nc(cl,X),sa(cl,th(X)),bu(cl),Ps=cl}else Ps=li;if(Xt){if(Ee&8)return[Ps,Ra(X)];if(Ee&32)return[Ps,t.createExportDefault(t.getLocalName(X,!1,!0))];if(Ee&16)return[Ps,t.createExternalModuleExport(t.getDeclarationName(X,!1,!0))]}return Ps}function Vt(X){let Ee=Dr(X.modifiers,ft,Lo);return Qh(y,X)&&(Ee=Lr(Ee,X)),t.updateClassExpression(X,Ee,X.name,void 0,Dr(X.heritageClauses,q,xf),hr(X))}function hr(X){const Ee=Dr(X.members,Oe(X),Tl);let lt;const Xt=Sg(X),an=Xt&&An(Xt.parameters,rn=>O_(rn,Xt));if(an)for(const rn of an){const En=t.createPropertyDeclaration(void 0,rn.name,void 0,void 0,void 0);dn(En,rn),lt=_r(lt,En)}return lt?(lt=Nn(lt,Ee),Ke(t.createNodeArray(lt),X.members)):Ee}function Lr(X,Ee){const lt=jt(Ee,Ee);if(ct(lt)){const Xt=[];Nn(Xt,o7(X,zw)),Nn(Xt,An(X,ql)),Nn(Xt,lt),Nn(Xt,An(eee(X,zw),ta)),X=Ke(t.createNodeArray(Xt),X)}return X}function er(X,Ee,lt){if($n(lt)&&Fz(y,Ee,lt)){const Xt=jt(Ee,lt);if(ct(Xt)){const an=[];Nn(an,An(X,ql)),Nn(an,Xt),Nn(an,An(X,ta)),X=Ke(t.createNodeArray(an),X)}}return X}function jt(X,Ee){if(y)return Bbe?Kn(X,Ee):Rt(X,Ee)}function Rt(X,Ee){if(S){let lt;if(Ji(X)){const Xt=n().createMetadataHelper("design:type",S.serializeTypeOfNode({currentLexicalScope:J,currentNameScope:Ee},X));lt=_r(lt,t.createDecorator(Xt))}if(os(X)){const Xt=n().createMetadataHelper("design:paramtypes",S.serializeParameterTypesOfNode({currentLexicalScope:J,currentNameScope:Ee},X,Ee));lt=_r(lt,t.createDecorator(Xt))}if(yi(X)){const Xt=n().createMetadataHelper("design:returntype",S.serializeReturnTypeOfNode({currentLexicalScope:J,currentNameScope:Ee},X));lt=_r(lt,t.createDecorator(Xt))}return lt}}function Kn(X,Ee){if(S){let lt;if(Ji(X)){const Xt=t.createPropertyAssignment("type",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),S.serializeTypeOfNode({currentLexicalScope:J,currentNameScope:Ee},X)));lt=_r(lt,Xt)}if(os(X)){const Xt=t.createPropertyAssignment("paramTypes",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),S.serializeParameterTypesOfNode({currentLexicalScope:J,currentNameScope:Ee},X,Ee)));lt=_r(lt,Xt)}if(yi(X)){const Xt=t.createPropertyAssignment("returnType",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),S.serializeReturnTypeOfNode({currentLexicalScope:J,currentNameScope:Ee},X)));lt=_r(lt,Xt)}if(lt){const Xt=n().createMetadataHelper("design:typeinfo",t.createObjectLiteralExpression(lt,!0));return[t.createDecorator(Xt)]}}}function Ji(X){const Ee=X.kind;return Ee===174||Ee===177||Ee===178||Ee===172}function yi(X){return X.kind===174}function os(X){switch(X.kind){case 263:case 231:return Sg(X)!==void 0;case 174:case 177:case 178:return!0}return!1}function yr(X,Ee){const lt=X.name;return Pi(lt)?t.createIdentifier(""):Pa(lt)?lt.expression:Ie(lt)?t.createStringLiteral(on(lt)):t.cloneNode(lt)}function _i(X){const Ee=X.name;if(Pa(Ee)&&(!Bc(X)&&$||Wf(X)&&y)){const lt=qe(Ee.expression,q,ot);E.assert(lt);const Xt=Bp(lt);if(!Wm(Xt)){const an=t.getGeneratedNameForNode(Ee);return c(an),t.updateComputedPropertyName(Ee,t.createAssignment(an,lt))}}return E.checkDefined(qe(Ee,q,Ac))}function ln(X){if(X.token!==119)return ur(X,q,e)}function Ht(X){return t.updateExpressionWithTypeArguments(X,E.checkDefined(qe(X.expression,q,S_)),void 0)}function Ue(X){return!_c(X.body)}function Et(X,Ee){const lt=X.flags&33554432||Rn(X,64);if(lt&&!(y&&Wf(X)))return;let Xt=$n(Ee)?lt?Dr(X.modifiers,ft,Lo):Dr(X.modifiers,q,Lo):Dr(X.modifiers,De,Lo);return Xt=er(Xt,X,Ee),lt?t.updatePropertyDeclaration(X,es(Xt,t.createModifiersFromModifierFlags(128)),E.checkDefined(qe(X.name,q,Ac)),void 0,void 0,void 0):t.updatePropertyDeclaration(X,Xt,_i(X),void 0,void 0,qe(X.initializer,q,ot))}function fr(X){if(Ue(X))return t.updateConstructorDeclaration(X,void 0,tc(X.parameters,q,e),ei(X.body,X))}function Hn(X,Ee,lt,Xt,an,rn){const En=Xt[an],li=Ee[En];if(Nn(X,Dr(Ee,q,Ei,lt,En-lt)),Gb(li)){const gn=[];Hn(gn,li.tryBlock.statements,0,Xt,an+1,rn);const Ps=t.createNodeArray(gn);Ke(Ps,li.tryBlock.statements),X.push(t.updateTryStatement(li,t.updateBlock(li.tryBlock,gn),qe(li.catchClause,q,f2),qe(li.finallyBlock,q,Cs)))}else Nn(X,Dr(Ee,q,Ei,En,1)),Nn(X,rn);Nn(X,Dr(Ee,q,Ei,En+1))}function ei(X,Ee){const lt=Ee&&An(Ee.parameters,gn=>O_(gn,Ee));if(!ct(lt))return Ef(X,q,e);let Xt=[];s();const an=t.copyPrologue(X.statements,Xt,!1,q),rn=x9(X.statements,an),En=Ri(lt,Ii);rn.length?Hn(Xt,X.statements,an,rn,0,En):(Nn(Xt,En),Nn(Xt,Dr(X.statements,q,Ei,an))),Xt=t.mergeLexicalEnvironment(Xt,o());const li=t.createBlock(Ke(t.createNodeArray(Xt),X.statements),!0);return Ke(li,X),dn(li,X),li}function Ii(X){const Ee=X.name;if(!Ie(Ee))return;const lt=ba(Ke(t.cloneNode(Ee),Ee),Ee.parent);Qr(lt,3168);const Xt=ba(Ke(t.cloneNode(Ee),Ee),Ee.parent);return Qr(Xt,3072),bu(yw(Ke(dn(t.createExpressionStatement(t.createAssignment(Ke(t.createPropertyAccessExpression(t.createThis(),lt),X.name),Xt)),X),A1(X,-1))))}function ns(X,Ee){if(!(X.transformFlags&1))return X;if(!Ue(X))return;let lt=$n(Ee)?Dr(X.modifiers,q,Lo):Dr(X.modifiers,De,Lo);return lt=er(lt,X,Ee),t.updateMethodDeclaration(X,lt,X.asteriskToken,_i(X),void 0,void 0,tc(X.parameters,q,e),void 0,Ef(X.body,q,e))}function Vs(X){return!(_c(X.body)&&Rn(X,64))}function _a(X,Ee){if(!(X.transformFlags&1))return X;if(!Vs(X))return;let lt=$n(Ee)?Dr(X.modifiers,q,Lo):Dr(X.modifiers,De,Lo);return lt=er(lt,X,Ee),t.updateGetAccessorDeclaration(X,lt,_i(X),tc(X.parameters,q,e),void 0,Ef(X.body,q,e)||t.createBlock([]))}function cr(X,Ee){if(!(X.transformFlags&1))return X;if(!Vs(X))return;let lt=$n(Ee)?Dr(X.modifiers,q,Lo):Dr(X.modifiers,De,Lo);return lt=er(lt,X,Ee),t.updateSetAccessorDeclaration(X,lt,_i(X),tc(X.parameters,q,e),Ef(X.body,q,e)||t.createBlock([]))}function br(X){if(!Ue(X))return t.createNotEmittedStatement(X);const Ee=t.updateFunctionDeclaration(X,Dr(X.modifiers,ge,ta),X.asteriskToken,X.name,void 0,tc(X.parameters,q,e),void 0,Ef(X.body,q,e)||t.createBlock([]));if(pr(X)){const lt=[Ee];return go(lt,X),lt}return Ee}function Le(X){return Ue(X)?t.updateFunctionExpression(X,Dr(X.modifiers,ge,ta),X.asteriskToken,X.name,void 0,tc(X.parameters,q,e),void 0,Ef(X.body,q,e)||t.createBlock([])):t.createOmittedExpression()}function rt(X){return t.updateArrowFunction(X,Dr(X.modifiers,ge,ta),void 0,tc(X.parameters,q,e),void 0,X.equalsGreaterThanToken,Ef(X.body,q,e))}function tt(X){if(Qv(X))return;const Ee=t.updateParameterDeclaration(X,Dr(X.modifiers,lt=>ql(lt)?q(lt):void 0,Lo),X.dotDotDotToken,E.checkDefined(qe(X.name,q,vb)),void 0,void 0,qe(X.initializer,q,ot));return Ee!==X&&(Nc(Ee,X),Ke(Ee,$d(X)),sa(Ee,$d(X)),Qr(Ee.name,64)),Ee}function yt(X){if(pr(X)){const Ee=jE(X.declarationList);return Ee.length===0?void 0:Ke(t.createExpressionStatement(t.inlineExpressions(nr(Ee,ne))),X)}else return ur(X,q,e)}function ne(X){const Ee=X.name;return Ns(Ee)?rS(X,q,e,0,!1,Ol):Ke(t.createAssignment($i(Ee),E.checkDefined(qe(X.initializer,q,ot))),X)}function we(X){const Ee=t.updateVariableDeclaration(X,E.checkDefined(qe(X.name,q,vb)),void 0,void 0,qe(X.initializer,q,ot));return X.type&&Bne(Ee.name,X.type),Ee}function et(X){const Ee=xc(X.expression,-7);if(Sb(Ee)){const lt=qe(X.expression,q,ot);return E.assert(lt),t.createPartiallyEmittedExpression(lt,X)}return ur(X,q,e)}function B(X){const Ee=qe(X.expression,q,ot);return E.assert(Ee),t.createPartiallyEmittedExpression(Ee,X)}function Ge(X){const Ee=qe(X.expression,q,S_);return E.assert(Ee),t.createPartiallyEmittedExpression(Ee,X)}function mt(X){const Ee=qe(X.expression,q,ot);return E.assert(Ee),t.createPartiallyEmittedExpression(Ee,X)}function Be(X){return t.updateCallExpression(X,E.checkDefined(qe(X.expression,q,ot)),void 0,Dr(X.arguments,q,ot))}function nt(X){return t.updateNewExpression(X,E.checkDefined(qe(X.expression,q,ot)),void 0,Dr(X.arguments,q,ot))}function wt(X){return t.updateTaggedTemplateExpression(X,E.checkDefined(qe(X.tag,q,ot)),void 0,E.checkDefined(qe(X.template,q,AT)))}function ir(X){return t.updateJsxSelfClosingElement(X,E.checkDefined(qe(X.tagName,q,_E)),void 0,E.checkDefined(qe(X.attributes,q,_2)))}function Yt(X){return t.updateJsxOpeningElement(X,E.checkDefined(qe(X.tagName,q,_E)),void 0,E.checkDefined(qe(X.attributes,q,_2)))}function Kt(X){return!zv(X)||n2(f)}function W(X){if(!Kt(X))return t.createNotEmittedStatement(X);const Ee=[];let lt=4;const Xt=Ce(Ee,X);Xt&&(d!==4||J!==w)&&(lt|=1024);const an=zs(X),rn=Ll(X),En=pr(X)?t.getExternalModuleOrNamespaceExportName(F,X,!1,!0):t.getDeclarationName(X,!1,!0);let li=t.createLogicalOr(En,t.createAssignment(En,t.createObjectLiteralExpression()));if(pr(X)){const Ps=t.getLocalName(X,!1,!0);li=t.createAssignment(Ps,li)}const gn=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,an)],void 0,Pe(X,rn)),void 0,[li]));return dn(gn,X),Xt&&(O1(gn,void 0),QT(gn,void 0)),Ke(gn,X),Xd(gn,lt),Ee.push(gn),Ee}function Pe(X,Ee){const lt=F;F=Ee;const Xt=[];i();const an=nr(X.members,St);return mg(Xt,o()),Nn(Xt,an),F=lt,t.createBlock(Ke(t.createNodeArray(Xt),X.members),!0)}function St(X){const Ee=yr(X),lt=A(X),Xt=t.createAssignment(t.createElementAccessExpression(F,Ee),lt),an=lt.kind===11?Xt:t.createAssignment(t.createElementAccessExpression(F,Xt),Ee);return Ke(t.createExpressionStatement(Ke(an,X)),X)}function A(X){const Ee=u.getConstantValue(X);return Ee!==void 0?typeof Ee=="string"?t.createStringLiteral(Ee):Ee<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-Ee)):t.createNumericLiteral(Ee):(Ya(),X.initializer?E.checkDefined(qe(X.initializer,q,ot)):t.createVoidZero())}function le(X){const Ee=as(X,Sc);return Ee?VU(Ee,n2(f)):!0}function V(X){U||(U=new Map);const Ee=Ne(X);U.has(Ee)||U.set(Ee,X)}function ce(X){if(U){const Ee=Ne(X);return U.get(Ee)===X}return!0}function Ne(X){return E.assertNode(X.name,Ie),X.name.escapedText}function Ce(X,Ee){const lt=t.createVariableDeclaration(t.getLocalName(Ee,!1,!0)),Xt=J.kind===312?0:1,an=t.createVariableStatement(Dr(Ee.modifiers,ge,ta),t.createVariableDeclarationList([lt],Xt));return dn(lt,Ee),O1(lt,void 0),QT(lt,void 0),dn(an,Ee),V(Ee),ce(Ee)?(Ee.kind===266?sa(an.declarationList,Ee):sa(an,Ee),Nc(an,Ee),Xd(an,2048),X.push(an),!0):!1}function _t(X){if(!le(X))return t.createNotEmittedStatement(X);E.assertNode(X.name,Ie,"A TypeScript namespace should have an Identifier name."),oa();const Ee=[];let lt=4;const Xt=Ce(Ee,X);Xt&&(d!==4||J!==w)&&(lt|=1024);const an=zs(X),rn=Ll(X),En=pr(X)?t.getExternalModuleOrNamespaceExportName(F,X,!1,!0):t.getDeclarationName(X,!1,!0);let li=t.createLogicalOr(En,t.createAssignment(En,t.createObjectLiteralExpression()));if(pr(X)){const Ps=t.getLocalName(X,!1,!0);li=t.createAssignment(Ps,li)}const gn=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,an)],void 0,Tt(X,rn)),void 0,[li]));return dn(gn,X),Xt&&(O1(gn,void 0),QT(gn,void 0)),Ke(gn,X),Xd(gn,lt),Ee.push(gn),Ee}function Tt(X,Ee){const lt=F,Xt=P,an=U;F=Ee,P=X,U=void 0;const rn=[];i();let En,li;if(X.body)if(X.body.kind===268)pe(X.body,Ps=>Nn(rn,Dr(Ps.statements,fe,Ei))),En=X.body.statements,li=X.body;else{const Ps=_t(X.body);Ps&&(ts(Ps)?Nn(rn,Ps):rn.push(Ps));const Qo=Jt(X).body;En=A1(Qo.statements,-1)}mg(rn,o()),F=lt,P=Xt,U=an;const gn=t.createBlock(Ke(t.createNodeArray(rn),En),!0);return Ke(gn,li),(!X.body||X.body.kind!==268)&&Qr(gn,ha(gn)|3072),gn}function Jt(X){if(X.body.kind===267)return Jt(X.body)||X.body}function ar(X){if(!X.importClause)return X;if(X.importClause.isTypeOnly)return;const Ee=qe(X.importClause,Er,Rm);return Ee||f.importsNotUsedAsValues===1||f.importsNotUsedAsValues===2?t.updateImportDeclaration(X,void 0,Ee,X.moduleSpecifier,X.attributes):void 0}function Er(X){E.assert(!X.isTypeOnly);const Ee=se(X)?X.name:void 0,lt=qe(X.namedBindings,Nr,oz);return Ee||lt?t.updateImportClause(X,!1,Ee,lt):void 0}function Nr(X){if(X.kind===274)return se(X)?X:void 0;{const Ee=f.verbatimModuleSyntax||f.preserveValueImports&&(f.importsNotUsedAsValues===1||f.importsNotUsedAsValues===2),lt=Dr(X.elements,fi,x_);return Ee||ct(lt)?t.updateNamedImports(X,lt):void 0}}function fi(X){return!X.isTypeOnly&&se(X)?X:void 0}function oi(X){return f.verbatimModuleSyntax||u.isValueAliasDeclaration(X)?ur(X,q,e):void 0}function Wr(X){if(X.isTypeOnly)return;if(!X.exportClause||jm(X.exportClause))return X;const Ee=f.verbatimModuleSyntax||!!X.moduleSpecifier&&(f.importsNotUsedAsValues===1||f.importsNotUsedAsValues===2),lt=qe(X.exportClause,Xt=>pi(Xt,Ee),XJ);return lt?t.updateExportDeclaration(X,void 0,X.isTypeOnly,lt,X.moduleSpecifier,X.attributes):void 0}function Cn(X,Ee){const lt=Dr(X.elements,ci,vu);return Ee||ct(lt)?t.updateNamedExports(X,lt):void 0}function Qi(X){return t.updateNamespaceExport(X,E.checkDefined(qe(X.name,q,Ie)))}function pi(X,Ee){return jm(X)?Qi(X):Cn(X,Ee)}function ci(X){return!X.isTypeOnly&&(f.verbatimModuleSyntax||u.isValueAliasDeclaration(X))?X:void 0}function In(X){return se(X)||!Ic(w)&&u.isTopLevelValueImportEqualsWithEntityName(X)}function is(X){if(X.isTypeOnly)return;if(C1(X)){const lt=se(X);return!lt&&f.importsNotUsedAsValues===1?dn(Ke(t.createImportDeclaration(void 0,void 0,X.moduleReference.expression,void 0),X),X):lt?ur(X,q,e):void 0}if(!In(X))return;const Ee=Mw(t,X.moduleReference);return Qr(Ee,7168),kc(X)||!pr(X)?dn(Ke(t.createVariableStatement(Dr(X.modifiers,ge,ta),t.createVariableDeclarationList([dn(t.createVariableDeclaration(X.name,void 0,void 0,Ee),X)])),X),X):dn(qo(X.name,Ee,X),X)}function pr(X){return P!==void 0&&Rn(X,32)}function _o(X){return P===void 0&&Rn(X,32)}function kc(X){return _o(X)&&!Rn(X,2048)}function _s(X){return _o(X)&&Rn(X,2048)}function Ra(X){const Ee=t.createAssignment(t.getExternalModuleOrNamespaceExportName(F,X,!1,!0),t.getLocalName(X));sa(Ee,Vf(X.name?X.name.pos:X.pos,X.end));const lt=t.createExpressionStatement(Ee);return sa(lt,Vf(-1,X.end)),lt}function go(X,Ee){X.push(Ra(Ee))}function qo(X,Ee,lt){return Ke(t.createExpressionStatement(t.createAssignment(t.getNamespaceMemberName(F,X,!1,!0),Ee)),lt)}function Ol(X,Ee,lt){return Ke(t.createAssignment($i(X),Ee),lt)}function $i(X){return t.getNamespaceMemberName(F,X,!1,!0)}function zs(X){const Ee=t.getGeneratedNameForNode(X);return sa(Ee,X.name),Ee}function Ll(X){return t.getGeneratedNameForNode(X)}function Ya(){j&8||(j|=8,e.enableSubstitution(80))}function oa(){j&2||(j|=2,e.enableSubstitution(80),e.enableSubstitution(304),e.enableEmitNotification(267))}function Wo(X){return ic(X).kind===267}function Zf(X){return ic(X).kind===266}function Fc(X,Ee,lt){const Xt=re,an=w;Ni(Ee)&&(w=Ee),j&2&&Wo(Ee)&&(re|=2),j&8&&Zf(Ee)&&(re|=8),T(X,Ee,lt),re=Xt,w=an}function rc(X,Ee){return Ee=k(X,Ee),X===1?fs(Ee):k_(Ee)?Ro(Ee):Ee}function Ro(X){if(j&2){const Ee=X.name,lt=ho(Ee);if(lt){if(X.objectAssignmentInitializer){const Xt=t.createAssignment(lt,X.objectAssignmentInitializer);return Ke(t.createPropertyAssignment(Ee,Xt),X)}return Ke(t.createPropertyAssignment(Ee,lt),X)}}return X}function fs(X){switch(X.kind){case 80:return Wt(X);case 211:return Pl(X);case 212:return Ml(X)}return X}function Wt(X){return ho(X)||X}function ho(X){if(j&re&&!Oo(X)&&!ah(X)){const Ee=u.getReferencedExportContainer(X,!1);if(Ee&&Ee.kind!==312&&(re&2&&Ee.kind===267||re&8&&Ee.kind===266))return Ke(t.createPropertyAccessExpression(t.getGeneratedNameForNode(Ee),X),X)}}function Pl(X){return so(X)}function Ml(X){return so(X)}function q_(X){return X.replace(/\*\//g,"*_/")}function so(X){const Ee=Zc(X);if(Ee!==void 0){Rne(X,Ee);const lt=typeof Ee=="string"?t.createStringLiteral(Ee):Ee<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-Ee)):t.createNumericLiteral(Ee);if(!f.removeComments){const Xt=ic(X,co);BF(lt,3,` ${q_(jc(Xt))} `)}return lt}return X}function Zc(X){if(!Tp(f))return Sn(X)||Co(X)?u.getConstantValue(X):void 0}function se(X){return f.verbatimModuleSyntax||Hr(X)||(f.preserveValueImports?u.isValueAliasDeclaration(X):u.isReferencedAliasDeclaration(X))}}var Bbe,OMe=Dt({"src/compiler/transformers/ts.ts"(){Fs(),Bbe=!1}});function rae(e){const{factory:t,getEmitHelperFactory:n,hoistVariableDeclaration:i,endLexicalEnvironment:s,startLexicalEnvironment:o,resumeLexicalEnvironment:c,addBlockScopedVariable:u}=e,f=e.getEmitResolver(),g=e.getCompilerOptions(),d=Fa(g),y=i3(g),S=!!g.experimentalDecorators,T=!y,k=y&&d<9,w=T||k,P=d<9,F=d<99?-1:y?0:3,J=d<9,U=J&&d>=2,$=w||P||F===-1,j=e.onSubstituteNode;e.onSubstituteNode=Pl;const re=e.onEmitNode;e.onEmitNode=ho;let R=!1,Y,ue,pe,H,q;const ee=new Map,oe=new Set;let Se,ae,K=!1,fe=!1;return Gp(e,ke);function ke(se){if(se.isDeclarationFile||(q=void 0,R=!!(Jp(se)&32),!$&&!R))return se;const X=ur(se,me,e);return ih(X,e.readEmitHelpers()),X}function Oe(se){switch(se.kind){case 129:return Et()?void 0:se;default:return Wn(se,ta)}}function me(se){if(!(se.transformFlags&16777216)&&!(se.transformFlags&134234112))return se;switch(se.kind){case 129:return E.fail("Use `modifierVisitor` instead.");case 263:return Yt(se);case 231:return W(se);case 175:case 172:return E.fail("Use `classElementVisitor` instead.");case 303:return Je(se);case 243:return pt(se);case 260:return zt(se);case 169:return Vt(se);case 208:return hr(se);case 277:return Lr(se);case 81:return Pt(se);case 211:return Vs(se);case 212:return _a(se);case 224:case 225:return cr(se,!1);case 226:return et(se,!1);case 217:return Ge(se,!1);case 213:return tt(se);case 244:return Le(se);case 215:return yt(se);case 248:return br(se);case 110:return A(se);case 262:case 218:return yi(void 0,be,se);case 176:case 174:case 177:case 178:return yi(se,be,se);default:return be(se)}}function be(se){return ur(se,me,e)}function xe(se){switch(se.kind){case 224:case 225:return cr(se,!0);case 226:return et(se,!0);case 361:return B(se);case 217:return Ge(se,!0);default:return me(se)}}function De(se){switch(se.kind){case 298:return ur(se,De,e);case 233:return wt(se);default:return me(se)}}function ft(se){switch(se.kind){case 210:case 209:return Wt(se);default:return me(se)}}function ge(se){switch(se.kind){case 176:return yi(se,Rt,se);case 177:case 178:case 174:return yi(se,Ji,se);case 172:return yi(se,fr,se);case 175:return yi(se,St,se);case 167:return jt(se);case 240:return se;default:return Lo(se)?Oe(se):me(se)}}function Fe(se){switch(se.kind){case 167:return jt(se);default:return me(se)}}function $e(se){switch(se.kind){case 172:return Ue(se);case 177:case 178:return ge(se);default:E.assertMissingNode(se,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration");break}}function Pt(se){return!P||Ei(se.parent)?se:dn(t.createIdentifier(""),se)}function at(se){const X=zs(se.left);if(X){const Ee=qe(se.right,me,ot);return dn(n().createClassPrivateFieldInHelper(X.brandCheckIdentifier,Ee),se)}return ur(se,me,e)}function Je(se){return M_(se,we)&&(se=W_(e,se)),ur(se,me,e)}function pt(se){const X=H;H=[];const Ee=ur(se,me,e),lt=ct(H)?[Ee,...H]:Ee;return H=X,lt}function zt(se){return M_(se,we)&&(se=W_(e,se)),ur(se,me,e)}function Vt(se){return M_(se,we)&&(se=W_(e,se)),ur(se,me,e)}function hr(se){return M_(se,we)&&(se=W_(e,se)),ur(se,me,e)}function Lr(se){return M_(se,we)&&(se=W_(e,se,!0,se.isExportEquals?"":"default")),ur(se,me,e)}function er(se){return ct(pe)&&(l_(se)?(pe.push(se.expression),se=t.updateParenthesizedExpression(se,t.inlineExpressions(pe))):(pe.push(se),se=t.inlineExpressions(pe)),pe=void 0),se}function jt(se){const X=qe(se.expression,me,ot);return t.updateComputedPropertyName(se,er(X))}function Rt(se){return Se?ce(se,Se):be(se)}function Kn(se){return!!(P||Bc(se)&&Jp(se)&32)}function Ji(se){if(E.assert(!Wf(se)),!Iu(se)||!Kn(se))return ur(se,ge,e);const X=zs(se.name);if(E.assert(X,"Undeclared private name for property declaration."),!X.isValid)return se;const Ee=os(se);Ee&&is().push(t.createAssignment(Ee,t.createFunctionExpression(An(se.modifiers,lt=>ta(lt)&&!nx(lt)&&!Zne(lt)),se.asteriskToken,Ee,void 0,tc(se.parameters,me,e),void 0,Ef(se.body,me,e))))}function yi(se,X,Ee){if(se!==ae){const lt=ae;ae=se;const Xt=X(Ee);return ae=lt,Xt}return X(Ee)}function os(se){E.assert(Pi(se.name));const X=zs(se.name);if(E.assert(X,"Undeclared private name for property declaration."),X.kind==="m")return X.methodName;if(X.kind==="a"){if(Q0(se))return X.getterName;if(Xh(se))return X.setterName}}function yr(){const se=ci(),X=se.classThis??se.classConstructor??(Se==null?void 0:Se.name);return E.checkDefined(X)}function _i(se){const X=Qd(se),Ee=n0(se),lt=se.name;let Xt=lt,an=lt;if(Pa(lt)&&!Wm(lt.expression)){const gl=jO(lt);if(gl)Xt=t.updateComputedPropertyName(lt,qe(lt.expression,me,ot)),an=t.updateComputedPropertyName(lt,gl.left);else{const yo=t.createTempVariable(i);sa(yo,lt.expression);const Vc=qe(lt.expression,me,ot),$a=t.createAssignment(yo,Vc);sa($a,lt.expression),Xt=t.updateComputedPropertyName(lt,$a),an=t.updateComputedPropertyName(lt,yo)}}const rn=Dr(se.modifiers,Oe,ta),En=QV(t,se,rn,se.initializer);dn(En,se),Qr(En,3072),sa(En,Ee);const li=Ms(se)?yr():t.createThis(),gn=Fie(t,se,rn,Xt,li);dn(gn,se),Nc(gn,X),sa(gn,Ee);const Ps=t.createModifiersFromModifierFlags(Gd(rn)),Qo=Oie(t,se,Ps,an,li);return dn(Qo,se),Qr(Qo,3072),sa(Qo,Ee),dA([En,gn,Qo],$e,Tl)}function ln(se){if(Kn(se)){const X=zs(se.name);if(E.assert(X,"Undeclared private name for property declaration."),!X.isValid)return se;if(X.isStatic&&!P){const Ee=Tt(se,t.createThis());if(Ee)return t.createClassStaticBlockDeclaration(t.createBlock([Ee],!0))}return}return T&&!Ms(se)&&(q!=null&&q.data)&&q.data.facts&16?t.updatePropertyDeclaration(se,Dr(se.modifiers,me,Lo),se.name,void 0,void 0,void 0):(M_(se,we)&&(se=W_(e,se)),t.updatePropertyDeclaration(se,Dr(se.modifiers,Oe,ta),qe(se.name,Fe,Ac),void 0,void 0,qe(se.initializer,me,ot)))}function Ht(se){if(w&&!s_(se)){const X=Cn(se.name,!!se.initializer||y);if(X&&is().push(...Lie(X)),Ms(se)&&!P){const Ee=Tt(se,t.createThis());if(Ee){const lt=t.createClassStaticBlockDeclaration(t.createBlock([Ee]));return dn(lt,se),Nc(lt,se),Nc(Ee,{pos:-1,end:-1}),O1(Ee,void 0),QT(Ee,void 0),lt}}return}return t.updatePropertyDeclaration(se,Dr(se.modifiers,Oe,ta),qe(se.name,Fe,Ac),void 0,void 0,qe(se.initializer,me,ot))}function Ue(se){return E.assert(!Wf(se),"Decorators should already have been transformed and elided."),Iu(se)?ln(se):Ht(se)}function Et(){return F===-1||F===3&&!!(q!=null&&q.data)&&!!(q.data.facts&16)}function fr(se){return s_(se)&&(Et()||Bc(se)&&Jp(se)&32)?_i(se):Ue(se)}function Hn(){return!!ae&&Bc(ae)&&$0(ae)&&s_(ic(ae))}function ei(se){if(Hn()){const X=xc(se);X.kind===110&&oe.add(X)}}function Ii(se,X){return X=qe(X,me,ot),ei(X),ns(se,X)}function ns(se,X){switch(Nc(X,A1(X,-1)),se.kind){case"a":return n().createClassPrivateFieldGetHelper(X,se.brandCheckIdentifier,se.kind,se.getterName);case"m":return n().createClassPrivateFieldGetHelper(X,se.brandCheckIdentifier,se.kind,se.methodName);case"f":return n().createClassPrivateFieldGetHelper(X,se.brandCheckIdentifier,se.kind,se.isStatic?se.variableName:void 0);case"untransformed":return E.fail("Access helpers should not be created for untransformed private elements");default:E.assertNever(se,"Unknown private element type")}}function Vs(se){if(Pi(se.name)){const X=zs(se.name);if(X)return Ke(dn(Ii(X,se.expression),se),se)}if(U&&ae&&o_(se)&&Ie(se.name)&&j3(ae)&&(q!=null&&q.data)){const{classConstructor:X,superClassReference:Ee,facts:lt}=q.data;if(lt&1)return Wr(se);if(X&&Ee){const Xt=t.createReflectGetCall(Ee,t.createStringLiteralFromNode(se.name),X);return dn(Xt,se.expression),Ke(Xt,se.expression),Xt}}return ur(se,me,e)}function _a(se){if(U&&ae&&o_(se)&&j3(ae)&&(q!=null&&q.data)){const{classConstructor:X,superClassReference:Ee,facts:lt}=q.data;if(lt&1)return Wr(se);if(X&&Ee){const Xt=t.createReflectGetCall(Ee,qe(se.argumentExpression,me,ot),X);return dn(Xt,se.expression),Ke(Xt,se.expression),Xt}}return ur(se,me,e)}function cr(se,X){if(se.operator===46||se.operator===47){const Ee=Va(se.operand);if(qk(Ee)){let lt;if(lt=zs(Ee.name)){const Xt=qe(Ee.expression,me,ot);ei(Xt);const{readExpression:an,initializeExpression:rn}=rt(Xt);let En=Ii(lt,an);const li=py(se)||X?void 0:t.createTempVariable(i);return En=NO(t,se,En,i,li),En=mt(lt,rn||an,En,64),dn(En,se),Ke(En,se),li&&(En=t.createComma(En,li),Ke(En,se)),En}}else if(U&&ae&&o_(Ee)&&j3(ae)&&(q!=null&&q.data)){const{classConstructor:lt,superClassReference:Xt,facts:an}=q.data;if(an&1){const rn=Wr(Ee);return py(se)?t.updatePrefixUnaryExpression(se,rn):t.updatePostfixUnaryExpression(se,rn)}if(lt&&Xt){let rn,En;if(Sn(Ee)?Ie(Ee.name)&&(En=rn=t.createStringLiteralFromNode(Ee.name)):Wm(Ee.argumentExpression)?En=rn=Ee.argumentExpression:(En=t.createTempVariable(i),rn=t.createAssignment(En,qe(Ee.argumentExpression,me,ot))),rn&&En){let li=t.createReflectGetCall(Xt,En,lt);Ke(li,Ee);const gn=X?void 0:t.createTempVariable(i);return li=NO(t,se,li,i,gn),li=t.createReflectSetCall(Xt,rn,li,lt),dn(li,se),Ke(li,se),gn&&(li=t.createComma(li,gn),Ke(li,se)),li}}}}return ur(se,me,e)}function br(se){return t.updateForStatement(se,qe(se.initializer,xe,zf),qe(se.condition,me,ot),qe(se.incrementor,xe,ot),Qu(se.statement,me,e))}function Le(se){return t.updateExpressionStatement(se,qe(se.expression,xe,ot))}function rt(se){const X=ko(se)?se:t.cloneNode(se);if(se.kind===110&&oe.has(se)&&oe.add(X),Wm(se))return{readExpression:X,initializeExpression:void 0};const Ee=t.createTempVariable(i),lt=t.createAssignment(Ee,X);return{readExpression:Ee,initializeExpression:lt}}function tt(se){var X;if(qk(se.expression)&&zs(se.expression.name)){const{thisArg:Ee,target:lt}=t.createCallBinding(se.expression,i,d);return hb(se)?t.updateCallChain(se,t.createPropertyAccessChain(qe(lt,me,ot),se.questionDotToken,"call"),void 0,void 0,[qe(Ee,me,ot),...Dr(se.arguments,me,ot)]):t.updateCallExpression(se,t.createPropertyAccessExpression(qe(lt,me,ot),"call"),void 0,[qe(Ee,me,ot),...Dr(se.arguments,me,ot)])}if(U&&ae&&o_(se.expression)&&j3(ae)&&((X=q==null?void 0:q.data)!=null&&X.classConstructor)){const Ee=t.createFunctionCallCall(qe(se.expression,me,ot),q.data.classConstructor,Dr(se.arguments,me,ot));return dn(Ee,se),Ke(Ee,se),Ee}return ur(se,me,e)}function yt(se){var X;if(qk(se.tag)&&zs(se.tag.name)){const{thisArg:Ee,target:lt}=t.createCallBinding(se.tag,i,d);return t.updateTaggedTemplateExpression(se,t.createCallExpression(t.createPropertyAccessExpression(qe(lt,me,ot),"bind"),void 0,[qe(Ee,me,ot)]),void 0,qe(se.template,me,AT))}if(U&&ae&&o_(se.tag)&&j3(ae)&&((X=q==null?void 0:q.data)!=null&&X.classConstructor)){const Ee=t.createFunctionBindCall(qe(se.tag,me,ot),q.data.classConstructor,[]);return dn(Ee,se),Ke(Ee,se),t.updateTaggedTemplateExpression(se,Ee,void 0,qe(se.template,me,AT))}return ur(se,me,e)}function ne(se){if(q&&ee.set(ic(se),q),P){if(M3(se)){const lt=qe(se.body.statements[0].expression,me,ot);return il(lt,!0)&<.left===lt.right?void 0:lt}if(kx(se))return qe(se.body.statements[0].expression,me,ot);o();let X=yi(se,lt=>Dr(lt,me,Ei),se.body.statements);X=t.mergeLexicalEnvironment(X,s());const Ee=t.createImmediatelyInvokedArrowFunction(X);return dn(Va(Ee.expression),se),Xd(Va(Ee.expression),4),dn(Ee,se),Ke(Ee,se),Ee}}function we(se){if(kl(se)&&!se.name){const X=k9(se);return ct(X,kx)?!1:(P||!!Jp(se))&&ct(X,lt=>ec(lt)||Iu(lt)||w&&mA(lt))}return!1}function et(se,X){if(e0(se)){const Ee=pe;pe=void 0,se=t.updateBinaryExpression(se,qe(se.left,ft,ot),se.operatorToken,qe(se.right,me,ot));const lt=ct(pe)?t.inlineExpressions(hD([...pe,se])):se;return pe=Ee,lt}if(il(se)){M_(se,we)&&(se=W_(e,se),E.assertNode(se,il));const Ee=xc(se.left,9);if(qk(Ee)){const lt=zs(Ee.name);if(lt)return Ke(dn(mt(lt,Ee.expression,se.right,se.operatorToken.kind),se),se)}else if(U&&ae&&o_(se.left)&&j3(ae)&&(q!=null&&q.data)){const{classConstructor:lt,superClassReference:Xt,facts:an}=q.data;if(an&1)return t.updateBinaryExpression(se,Wr(se.left),se.operatorToken,qe(se.right,me,ot));if(lt&&Xt){let rn=Co(se.left)?qe(se.left.argumentExpression,me,ot):Ie(se.left.name)?t.createStringLiteralFromNode(se.left.name):void 0;if(rn){let En=qe(se.right,me,ot);if(F3(se.operatorToken.kind)){let gn=rn;Wm(rn)||(gn=t.createTempVariable(i),rn=t.createAssignment(gn,rn));const Ps=t.createReflectGetCall(Xt,gn,lt);dn(Ps,se.left),Ke(Ps,se.left),En=t.createBinaryExpression(Ps,O3(se.operatorToken.kind),En),Ke(En,se)}const li=X?void 0:t.createTempVariable(i);return li&&(En=t.createAssignment(li,En),Ke(li,se)),En=t.createReflectSetCall(Xt,rn,En,lt),dn(En,se),Ke(En,se),li&&(En=t.createComma(En,li),Ke(En,se)),En}}}}return BMe(se)?at(se):ur(se,me,e)}function B(se,X){const Ee=h9(se.elements,xe);return t.updateCommaListExpression(se,Ee)}function Ge(se,X){const Ee=X?xe:me,lt=qe(se.expression,Ee,ot);return t.updateParenthesizedExpression(se,lt)}function mt(se,X,Ee,lt){if(X=qe(X,me,ot),Ee=qe(Ee,me,ot),ei(X),F3(lt)){const{readExpression:Xt,initializeExpression:an}=rt(X);X=an||Xt,Ee=t.createBinaryExpression(ns(se,Xt),O3(lt),Ee)}switch(Nc(X,A1(X,-1)),se.kind){case"a":return n().createClassPrivateFieldSetHelper(X,se.brandCheckIdentifier,Ee,se.kind,se.setterName);case"m":return n().createClassPrivateFieldSetHelper(X,se.brandCheckIdentifier,Ee,se.kind,void 0);case"f":return n().createClassPrivateFieldSetHelper(X,se.brandCheckIdentifier,Ee,se.kind,se.isStatic?se.variableName:void 0);case"untransformed":return E.fail("Access helpers should not be created for untransformed private elements");default:E.assertNever(se,"Unknown private element type")}}function Be(se){return An(se.members,Wse)}function nt(se){var X;let Ee=0;const lt=ic(se);Qc(lt)&&Qh(S,lt)&&(Ee|=1),P&&(aq(se)||E9(se))&&(Ee|=2);let Xt=!1,an=!1,rn=!1,En=!1;for(const gn of se.members)Ms(gn)?((gn.name&&(Pi(gn.name)||s_(gn))&&P||s_(gn)&&F===-1&&!se.name&&!((X=se.emitNode)!=null&&X.classThis))&&(Ee|=2),(xs(gn)||ec(gn))&&(J&&gn.transformFlags&16384&&(Ee|=8,Ee&1||(Ee|=2)),U&&gn.transformFlags&134217728&&(Ee&1||(Ee|=6)))):Zv(ic(gn))||(s_(gn)?(En=!0,rn||(rn=Iu(gn))):Iu(gn)?(rn=!0,f.getNodeCheckFlags(gn)&262144&&(Ee|=2)):xs(gn)&&(Xt=!0,an||(an=!!gn.initializer)));return(k&&Xt||T&&an||P&&rn||P&&En&&F===-1)&&(Ee|=16),Ee}function wt(se){var X;if((((X=q==null?void 0:q.data)==null?void 0:X.facts)||0)&4){const lt=t.createTempVariable(i,!0);return ci().superClassReference=lt,t.updateExpressionWithTypeArguments(se,t.createAssignment(lt,qe(se.expression,me,ot)),void 0)}return ur(se,me,e)}function ir(se,X){var Ee;const lt=Se,Xt=pe,an=q;Se=se,pe=void 0,Qi();const rn=Jp(se)&32;if(P||rn){const gn=us(se);if(gn&&Ie(gn))In().data.className=gn;else if((Ee=se.emitNode)!=null&&Ee.assignedName&&aa(se.emitNode.assignedName)){if(se.emitNode.assignedName.textSourceNode&&Ie(se.emitNode.assignedName.textSourceNode))In().data.className=se.emitNode.assignedName.textSourceNode;else if(bf(se.emitNode.assignedName.text,d)){const Ps=t.createIdentifier(se.emitNode.assignedName.text);In().data.className=Ps}}}if(P){const gn=Be(se);ct(gn)&&(In().data.weakSetName=Ol("instances",gn[0].name))}const En=nt(se);En&&(ci().facts=En),En&8&&fi();const li=X(se,En);return pi(),E.assert(q===an),Se=lt,pe=Xt,li}function Yt(se){return ir(se,Kt)}function Kt(se,X){var Ee,lt;let Xt;if(X&2)if(P&&((Ee=se.emitNode)!=null&&Ee.classThis))ci().classConstructor=se.emitNode.classThis,Xt=t.createAssignment(se.emitNode.classThis,t.getInternalName(se));else{const $a=t.createTempVariable(i,!0);ci().classConstructor=t.cloneNode($a),Xt=t.createAssignment($a,t.getInternalName(se))}(lt=se.emitNode)!=null&<.classThis&&(ci().classThis=se.emitNode.classThis);const an=f.getNodeCheckFlags(se)&262144,rn=Rn(se,32),En=Rn(se,2048);let li=Dr(se.modifiers,Oe,ta);const gn=Dr(se.heritageClauses,De,xf),{members:Ps,prologue:Qo}=le(se),gl=[];if(Xt&&is().unshift(Xt),ct(pe)&&gl.push(t.createExpressionStatement(t.inlineExpressions(pe))),T||P||Jp(se)&32){const $a=k9(se);ct($a)&&_t(gl,$a,t.getInternalName(se))}gl.length>0&&rn&&En&&(li=Dr(li,$a=>zw($a)?void 0:$a,ta),gl.push(t.createExportAssignment(void 0,!1,t.getLocalName(se,!1,!0))));const yo=ci().classConstructor;an&&yo&&(Nr(),ue[cu(se)]=yo);const Vc=t.updateClassDeclaration(se,li,se.name,void 0,gn,Ps);return gl.unshift(Vc),Qo&&gl.unshift(t.createExpressionStatement(Qo)),gl}function W(se){return ir(se,Pe)}function Pe(se,X){var Ee,lt,Xt;const an=!!(X&1),rn=k9(se),En=f.getNodeCheckFlags(se),li=En&262144;let gn;function Ps(){var cl;if(P&&((cl=se.emitNode)!=null&&cl.classThis))return ci().classConstructor=se.emitNode.classThis;const Ep=En&32768,Ju=t.createTempVariable(Ep?u:i,!0);return ci().classConstructor=t.cloneNode(Ju),Ju}(Ee=se.emitNode)!=null&&Ee.classThis&&(ci().classThis=se.emitNode.classThis),X&2&&(gn??(gn=Ps()));const Qo=Dr(se.modifiers,Oe,ta),gl=Dr(se.heritageClauses,De,xf),{members:yo,prologue:Vc}=le(se),$a=t.updateClassExpression(se,Qo,se.name,void 0,gl,yo),hl=[];if(Vc&&hl.push(Vc),(P||Jp(se)&32)&&ct(rn,cl=>ec(cl)||Iu(cl)||w&&mA(cl))||ct(pe))if(an)E.assertIsDefined(H,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),ct(pe)&&Nn(H,nr(pe,t.createExpressionStatement)),ct(rn)&&_t(H,rn,((lt=se.emitNode)==null?void 0:lt.classThis)??t.getInternalName(se)),gn?hl.push(t.createAssignment(gn,$a)):P&&((Xt=se.emitNode)!=null&&Xt.classThis)?hl.push(t.createAssignment(se.emitNode.classThis,$a)):hl.push($a);else{if(gn??(gn=Ps()),li){Nr();const cl=t.cloneNode(gn);cl.emitNode.autoGenerate.flags&=-9,ue[cu(se)]=cl}hl.push(t.createAssignment(gn,$a)),Nn(hl,pe),Nn(hl,Jt(rn,gn)),hl.push(t.cloneNode(gn))}else hl.push($a);return hl.length>1&&(Xd($a,131072),hl.forEach(bu)),t.inlineExpressions(hl)}function St(se){if(!P)return ur(se,me,e)}function A(se){if(J&&ae&&ec(ae)&&(q!=null&&q.data)){const{classThis:X,classConstructor:Ee}=q.data;return X??Ee??se}return se}function le(se){const X=!!(Jp(se)&32);if(P||R){for(const rn of se.members)if(Iu(rn))if(Kn(rn))qo(rn,rn.name,pr);else{const En=In();tS(En,rn.name,{kind:"untransformed"})}if(P&&ct(Be(se))&&V(),Et()){for(const rn of se.members)if(s_(rn)){const En=t.getGeneratedPrivateNameForNode(rn.name,void 0,"_accessor_storage");if(P||X&&Bc(rn))qo(rn,En,_o);else{const li=In();tS(li,En,{kind:"untransformed"})}}}}let Ee=Dr(se.members,ge,Tl),lt;ct(Ee,sc)||(lt=ce(void 0,se));let Xt,an;if(!P&&ct(pe)){let rn=t.createExpressionStatement(t.inlineExpressions(pe));if(rn.transformFlags&134234112){const li=t.createTempVariable(i),gn=t.createArrowFunction(void 0,void 0,[],void 0,void 0,t.createBlock([rn]));Xt=t.createAssignment(li,gn),rn=t.createExpressionStatement(t.createCallExpression(li,void 0,[]))}const En=t.createBlock([rn]);an=t.createClassStaticBlockDeclaration(En),pe=void 0}if(lt||an){let rn;const En=wn(Ee,M3),li=wn(Ee,kx);rn=_r(rn,En),rn=_r(rn,li),rn=_r(rn,lt),rn=_r(rn,an);const gn=En||li?An(Ee,Ps=>Ps!==En&&Ps!==li):Ee;rn=Nn(rn,gn),Ee=Ke(t.createNodeArray(rn),se.members)}return{members:Ee,prologue:Xt}}function V(){const{weakSetName:se}=In().data;E.assert(se,"weakSetName should be set in private identifier environment"),is().push(t.createAssignment(se,t.createNewExpression(t.createIdentifier("WeakSet"),void 0,[])))}function ce(se,X){if(se=qe(se,me,sc),!(q!=null&&q.data)||!(q.data.facts&16))return se;const Ee=Vd(X),lt=!!(Ee&&xc(Ee.expression).kind!==106),Xt=tc(se?se.parameters:void 0,me,e),an=Ce(X,se,lt);return an?se?(E.assert(Xt),t.updateConstructorDeclaration(se,void 0,Xt,an)):bu(dn(Ke(t.createConstructorDeclaration(void 0,Xt??[],an),se||X),se)):se}function Ne(se,X,Ee,lt,Xt,an,rn){const En=lt[Xt],li=X[En];if(Nn(se,Dr(X,me,Ei,Ee,En-Ee)),Ee=En+1,Gb(li)){const gn=[];Ne(gn,li.tryBlock.statements,0,lt,Xt+1,an,rn);const Ps=t.createNodeArray(gn);Ke(Ps,li.tryBlock.statements),se.push(t.updateTryStatement(li,t.updateBlock(li.tryBlock,gn),qe(li.catchClause,me,f2),qe(li.finallyBlock,me,Cs)))}else{for(Nn(se,Dr(X,me,Ei,En,1));Ee!!yo.initializer||Pi(yo.name)||Hd(yo)));const an=Be(se),rn=ct(Xt)||ct(an);if(!X&&!rn)return Ef(void 0,me,e);c();const En=!X&&Ee;let li=0,gn=[];const Ps=[],Qo=t.createThis();if(oi(Ps,an,Qo),X){const yo=An(lt,$a=>O_(ic($a),X)),Vc=An(Xt,$a=>!O_(ic($a),X));_t(Ps,yo,Qo),_t(Ps,Vc,Qo)}else _t(Ps,Xt,Qo);if(X!=null&&X.body){li=t.copyPrologue(X.body.statements,gn,!1,me);const yo=x9(X.body.statements,li);if(yo.length)Ne(gn,X.body.statements,li,yo,0,Ps,X);else{for(;li=gn.length?X.body.multiLine??gn.length>0:gn.length>0;return Ke(t.createBlock(Ke(t.createNodeArray(gn),X?X.body.statements:se.members),gl),X?X.body:void 0)}function _t(se,X,Ee){for(const lt of X){if(Ms(lt)&&!P)continue;const Xt=Tt(lt,Ee);Xt&&se.push(Xt)}}function Tt(se,X){const Ee=ec(se)?yi(se,ne,se):ar(se,X);if(!Ee)return;const lt=t.createExpressionStatement(Ee);dn(lt,se),Xd(lt,ha(se)&3072),Nc(lt,se);const Xt=ic(se);return rs(Xt)?(sa(lt,Xt),yw(lt)):sa(lt,$d(se)),O1(Ee,void 0),QT(Ee,void 0),Hd(Xt)&&Xd(lt,3072),lt}function Jt(se,X){const Ee=[];for(const lt of se){const Xt=ec(lt)?yi(lt,ne,lt):yi(lt,()=>ar(lt,X),void 0);Xt&&(bu(Xt),dn(Xt,lt),Xd(Xt,ha(lt)&3072),sa(Xt,$d(lt)),Nc(Xt,lt),Ee.push(Xt))}return Ee}function ar(se,X){var Ee;const lt=ae,Xt=Er(se,X);return Xt&&Bc(se)&&((Ee=q==null?void 0:q.data)!=null&&Ee.facts)&&(dn(Xt,se),Xd(Xt,4),sa(Xt,n0(se.name)),ee.set(ic(se),q)),ae=lt,Xt}function Er(se,X){const Ee=!y;M_(se,we)&&(se=W_(e,se));const lt=Hd(se)?t.getGeneratedPrivateNameForNode(se.name):Pa(se.name)&&!Wm(se.name.expression)?t.updateComputedPropertyName(se.name,t.getGeneratedNameForNode(se.name)):se.name;if(Bc(se)&&(ae=se),Pi(lt)&&Kn(se)){const rn=zs(lt);if(rn)return rn.kind==="f"?rn.isStatic?LMe(t,rn.variableName,qe(se.initializer,me,ot)):MMe(t,X,qe(se.initializer,me,ot),rn.brandCheckIdentifier):void 0;E.fail("Undeclared private name for property declaration.")}if((Pi(lt)||Bc(se))&&!se.initializer)return;const Xt=ic(se);if(Rn(Xt,64))return;let an=qe(se.initializer,me,ot);if(O_(Xt,Xt.parent)&&Ie(lt)){const rn=t.cloneNode(lt);an?(l_(an)&&Rw(an.expression)&&o3(an.expression.left,"___runInitializers")&&lx(an.expression.right)&&j_(an.expression.right.expression)&&(an=an.expression.left),an=t.inlineExpressions([an,rn])):an=rn,Qr(lt,3168),sa(rn,Xt.name),Qr(rn,3072)}else an??(an=t.createVoidZero());if(Ee||Pi(lt)){const rn=Zb(t,X,lt,lt);return Xd(rn,1024),t.createAssignment(rn,an)}else{const rn=Pa(lt)?lt.expression:Ie(lt)?t.createStringLiteral(xi(lt.escapedText)):lt,En=t.createPropertyDescriptor({value:an,configurable:!0,writable:!0,enumerable:!0});return t.createObjectDefinePropertyCall(X,rn,En)}}function Nr(){Y&1||(Y|=1,e.enableSubstitution(80),ue=[])}function fi(){Y&2||(Y|=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 oi(se,X,Ee){if(!P||!ct(X))return;const{weakSetName:lt}=In().data;E.assert(lt,"weakSetName should be set in private identifier environment"),se.push(t.createExpressionStatement(RMe(t,Ee,lt)))}function Wr(se){return Sn(se)?t.updatePropertyAccessExpression(se,t.createVoidZero(),se.name):t.updateElementAccessExpression(se,t.createVoidZero(),qe(se.argumentExpression,me,ot))}function Cn(se,X){if(Pa(se)){const Ee=jO(se),lt=qe(se.expression,me,ot),Xt=Bp(lt),an=Wm(Xt);if(!(!!Ee||il(Xt)&&Oo(Xt.left))&&!an&&X){const En=t.getGeneratedNameForNode(se);return f.getNodeCheckFlags(se)&32768?u(En):i(En),t.createAssignment(En,lt)}return an||Ie(Xt)?void 0:lt}}function Qi(){q={previous:q,data:void 0}}function pi(){q=q==null?void 0:q.previous}function ci(){return E.assert(q),q.data??(q.data={facts:0,classConstructor:void 0,classThis:void 0,superClassReference:void 0})}function In(){return E.assert(q),q.privateEnv??(q.privateEnv=qse({className:void 0,weakSetName:void 0}))}function is(){return pe??(pe=[])}function pr(se,X,Ee,lt,Xt,an,rn){s_(se)?go(se,X,Ee,lt,Xt,an):xs(se)?_o(se,X,Ee,lt,Xt,an):hc(se)?kc(se,X,Ee,lt,Xt,an):Tf(se)?_s(se,X,Ee,lt,Xt,an,rn):J_(se)&&Ra(se,X,Ee,lt,Xt,an,rn)}function _o(se,X,Ee,lt,Xt,an,rn){if(Xt){const En=E.checkDefined(Ee.classThis??Ee.classConstructor,"classConstructor should be set in private identifier environment"),li=$i(X);tS(lt,X,{kind:"f",isStatic:!0,brandCheckIdentifier:En,variableName:li,isValid:an})}else{const En=$i(X);tS(lt,X,{kind:"f",isStatic:!1,brandCheckIdentifier:En,isValid:an}),is().push(t.createAssignment(En,t.createNewExpression(t.createIdentifier("WeakMap"),void 0,[])))}}function kc(se,X,Ee,lt,Xt,an,rn){const En=$i(X),li=Xt?E.checkDefined(Ee.classThis??Ee.classConstructor,"classConstructor should be set in private identifier environment"):E.checkDefined(lt.data.weakSetName,"weakSetName should be set in private identifier environment");tS(lt,X,{kind:"m",methodName:En,brandCheckIdentifier:li,isStatic:Xt,isValid:an})}function _s(se,X,Ee,lt,Xt,an,rn){const En=$i(X,"_get"),li=Xt?E.checkDefined(Ee.classThis??Ee.classConstructor,"classConstructor should be set in private identifier environment"):E.checkDefined(lt.data.weakSetName,"weakSetName should be set in private identifier environment");(rn==null?void 0:rn.kind)==="a"&&rn.isStatic===Xt&&!rn.getterName?rn.getterName=En:tS(lt,X,{kind:"a",getterName:En,setterName:void 0,brandCheckIdentifier:li,isStatic:Xt,isValid:an})}function Ra(se,X,Ee,lt,Xt,an,rn){const En=$i(X,"_set"),li=Xt?E.checkDefined(Ee.classThis??Ee.classConstructor,"classConstructor should be set in private identifier environment"):E.checkDefined(lt.data.weakSetName,"weakSetName should be set in private identifier environment");(rn==null?void 0:rn.kind)==="a"&&rn.isStatic===Xt&&!rn.setterName?rn.setterName=En:tS(lt,X,{kind:"a",getterName:void 0,setterName:En,brandCheckIdentifier:li,isStatic:Xt,isValid:an})}function go(se,X,Ee,lt,Xt,an,rn){const En=$i(X,"_get"),li=$i(X,"_set"),gn=Xt?E.checkDefined(Ee.classThis??Ee.classConstructor,"classConstructor should be set in private identifier environment"):E.checkDefined(lt.data.weakSetName,"weakSetName should be set in private identifier environment");tS(lt,X,{kind:"a",getterName:En,setterName:li,brandCheckIdentifier:gn,isStatic:Xt,isValid:an})}function qo(se,X,Ee){const lt=ci(),Xt=In(),an=nq(Xt,X),rn=Bc(se),En=!jMe(X)&&an===void 0;Ee(se,X,lt,Xt,rn,En,an)}function Ol(se,X,Ee){const{className:lt}=In().data,Xt=lt?{prefix:"_",node:lt,suffix:"_"}:"_",an=typeof se=="object"?t.getGeneratedNameForNode(se,24,Xt,Ee):typeof se=="string"?t.createUniqueName(se,16,Xt,Ee):t.createTempVariable(void 0,!0,Xt,Ee);return f.getNodeCheckFlags(X)&32768?u(an):i(an),an}function $i(se,X){const Ee=mE(se);return Ol((Ee==null?void 0:Ee.substring(1))??se,se,X)}function zs(se){const X=Hse(q,se);return(X==null?void 0:X.kind)==="untransformed"?void 0:X}function Ll(se){const X=t.getGeneratedNameForNode(se),Ee=zs(se.name);if(!Ee)return ur(se,me,e);let lt=se.expression;return(y8(se)||o_(se)||!y2(se.expression))&&(lt=t.createTempVariable(i,!0),is().push(t.createBinaryExpression(lt,64,qe(se.expression,me,ot)))),t.createAssignmentTargetWrapper(X,mt(Ee,lt,X,64))}function Ya(se){if(ua(se)||ju(se))return Wt(se);if(qk(se))return Ll(se);if(U&&ae&&o_(se)&&j3(ae)&&(q!=null&&q.data)){const{classConstructor:X,superClassReference:Ee,facts:lt}=q.data;if(lt&1)return Wr(se);if(X&&Ee){const Xt=Co(se)?qe(se.argumentExpression,me,ot):Ie(se.name)?t.createStringLiteralFromNode(se.name):void 0;if(Xt){const an=t.createTempVariable(void 0);return t.createAssignmentTargetWrapper(an,t.createReflectSetCall(Ee,Xt,an,X))}}}return ur(se,me,e)}function oa(se){if(M_(se,we)&&(se=W_(e,se)),il(se,!0)){const X=Ya(se.left),Ee=qe(se.right,me,ot);return t.updateBinaryExpression(se,X,se.operatorToken,Ee)}return Ya(se)}function Wo(se){if(S_(se.expression)){const X=Ya(se.expression);return t.updateSpreadElement(se,X)}return ur(se,me,e)}function Zf(se){if(e8(se)){if(gd(se))return Wo(se);if(!dl(se))return oa(se)}return ur(se,me,e)}function Fc(se){const X=qe(se.name,me,Ac);if(il(se.initializer,!0)){const Ee=oa(se.initializer);return t.updatePropertyAssignment(se,X,Ee)}if(S_(se.initializer)){const Ee=Ya(se.initializer);return t.updatePropertyAssignment(se,X,Ee)}return ur(se,me,e)}function rc(se){return M_(se,we)&&(se=W_(e,se)),ur(se,me,e)}function Ro(se){if(S_(se.expression)){const X=Ya(se.expression);return t.updateSpreadAssignment(se,X)}return ur(se,me,e)}function fs(se){return E.assertNode(se,KD),a0(se)?Ro(se):k_(se)?rc(se):zc(se)?Fc(se):ur(se,me,e)}function Wt(se){return ju(se)?t.updateArrayLiteralExpression(se,Dr(se.elements,Zf,ot)):t.updateObjectLiteralExpression(se,Dr(se.properties,fs,Yg))}function ho(se,X,Ee){const lt=ic(X),Xt=ee.get(lt);if(Xt){const an=q,rn=fe;q=Xt,fe=K,K=!ec(lt)||!(Jp(lt)&32),re(se,X,Ee),K=fe,fe=rn,q=an;return}switch(X.kind){case 218:if(mo(lt)||ha(X)&524288)break;case 262:case 176:case 177:case 178:case 174:case 172:{const an=q,rn=fe;q=void 0,fe=K,K=!1,re(se,X,Ee),K=fe,fe=rn,q=an;return}case 167:{const an=q,rn=K;q=q==null?void 0:q.previous,K=fe,re(se,X,Ee),K=rn,q=an;return}}re(se,X,Ee)}function Pl(se,X){return X=j(se,X),se===1?Ml(X):X}function Ml(se){switch(se.kind){case 80:return so(se);case 110:return q_(se)}return se}function q_(se){if(Y&2&&(q!=null&&q.data)&&!oe.has(se)){const{facts:X,classConstructor:Ee,classThis:lt}=q.data,Xt=K?lt??Ee:Ee;if(Xt)return Ke(dn(t.cloneNode(Xt),se),se);if(X&1&&S)return t.createParenthesizedExpression(t.createVoidZero())}return se}function so(se){return Zc(se)||se}function Zc(se){if(Y&1&&f.getNodeCheckFlags(se)&536870912){const X=f.getReferencedValueDeclaration(se);if(X){const Ee=ue[X.id];if(Ee){const lt=t.cloneNode(Ee);return sa(lt,se),Nc(lt,se),lt}}}}}function LMe(e,t,n){return e.createAssignment(t,e.createObjectLiteralExpression([e.createPropertyAssignment("value",n||e.createVoidZero())]))}function MMe(e,t,n,i){return e.createCallExpression(e.createPropertyAccessExpression(i,"set"),void 0,[t,n||e.createVoidZero()])}function RMe(e,t,n){return e.createCallExpression(e.createPropertyAccessExpression(n,"add"),void 0,[t])}function jMe(e){return!yb(e)&&e.escapedText==="#constructor"}function BMe(e){return Pi(e.left)&&e.operatorToken.kind===103}function JMe(e){return xs(e)&&Bc(e)}function j3(e){return ec(e)||JMe(e)}var zMe=Dt({"src/compiler/transformers/classFields.ts"(){Fs()}});function nae(e){const{factory:t,hoistVariableDeclaration:n}=e,i=e.getEmitResolver(),s=e.getCompilerOptions(),o=Fa(s),c=Mu(s,"strictNullChecks");let u,f;return{serializeTypeNode:(pe,H)=>g(pe,w,H),serializeTypeOfNode:(pe,H)=>g(pe,y,H),serializeParameterTypesOfNode:(pe,H,q)=>g(pe,S,H,q),serializeReturnTypeOfNode:(pe,H)=>g(pe,k,H)};function g(pe,H,q,ee){const oe=u,Se=f;u=pe.currentLexicalScope,f=pe.currentNameScope;const ae=ee===void 0?H(q):H(q,ee);return u=oe,f=Se,ae}function d(pe){const H=i.getAllAccessorDeclarations(pe);return H.setAccessor&&yre(H.setAccessor)||H.getAccessor&&vp(H.getAccessor)}function y(pe){switch(pe.kind){case 172:case 169:return w(pe.type);case 178:case 177:return w(d(pe));case 263:case 231:case 174:return t.createIdentifier("Function");default:return t.createVoidZero()}}function S(pe,H){const q=$n(pe)?Sg(pe):As(pe)&&pp(pe.body)?pe:void 0,ee=[];if(q){const oe=T(q,H),Se=oe.length;for(let ae=0;aeoe.parent&&cx(oe.parent)&&(oe.parent.trueType===oe||oe.parent.falseType===oe)))return t.createIdentifier("Object");const q=j(pe.typeName),ee=t.createTempVariable(n);return t.createConditionalExpression(t.createTypeCheck(t.createAssignment(ee,q),"function"),void 0,ee,void 0,t.createIdentifier("Object"));case 1:return re(pe.typeName);case 2:return t.createVoidZero();case 4:return ue("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 ue("Symbol",2);case 10:return t.createIdentifier("Function");case 9:return t.createIdentifier("Promise");case 11:return t.createIdentifier("Object");default:return E.assertNever(H)}}function $(pe,H){return t.createLogicalAnd(t.createStrictInequality(t.createTypeOfExpression(pe),t.createStringLiteral("undefined")),H)}function j(pe){if(pe.kind===80){const ee=re(pe);return $(ee,ee)}if(pe.left.kind===80)return $(re(pe.left),re(pe));const H=j(pe.left),q=t.createTempVariable(n);return t.createLogicalAnd(t.createLogicalAnd(H.left,t.createStrictInequality(t.createAssignment(q,H.right),t.createVoidZero())),t.createPropertyAccessExpression(q,pe.right))}function re(pe){switch(pe.kind){case 80:const H=ba(Ke(Jm.cloneNode(pe),pe),pe.parent);return H.original=void 0,ba(H,as(u)),H;case 166:return R(pe)}}function R(pe){return t.createPropertyAccessExpression(re(pe.left),pe.right)}function Y(pe){return t.createConditionalExpression(t.createTypeCheck(t.createIdentifier(pe),"function"),void 0,t.createIdentifier(pe),void 0,t.createIdentifier("Object"))}function ue(pe,H){return ozw(Et)||ql(Et)?void 0:Et,Lo),Lr=$d(Je),er=De(Je),jt=c<2?t.getInternalName(Je,!1,!0):t.getLocalName(Je,!1,!0),Rt=Dr(Je.heritageClauses,y,xf);let Kn=Dr(Je.members,y,Tl),Ji=[];({members:Kn,decorationStatements:Ji}=P(Je,Kn));const yi=c>=9&&!!er&&ct(Kn,Et=>xs(Et)&&Rn(Et,256)||ec(Et));yi&&(Kn=Ke(t.createNodeArray([t.createClassStaticBlockDeclaration(t.createBlock([t.createExpressionStatement(t.createAssignment(er,t.createThis()))])),...Kn]),Kn));const os=t.createClassExpression(hr,pt&&Oo(pt)?void 0:pt,void 0,Rt,Kn);dn(os,Je),Ke(os,Lr);const yr=er&&!yi?t.createAssignment(er,os):os,_i=t.createVariableDeclaration(jt,void 0,void 0,yr);dn(_i,Je);const ln=t.createVariableDeclarationList([_i],1),Ht=t.createVariableStatement(void 0,ln);dn(Ht,Je),Ke(Ht,Lr),Nc(Ht,Je);const Ue=[Ht];if(Nn(Ue,Ji),fe(Ue,Je),zt)if(Vt){const Et=t.createExportDefault(jt);Ue.push(Et)}else{const Et=t.createExternalModuleExport(t.getDeclarationName(Je));Ue.push(Et)}return Ue}function U(Je){return t.updateClassExpression(Je,Dr(Je.modifiers,d,ta),Je.name,void 0,Dr(Je.heritageClauses,y,xf),Dr(Je.members,y,Tl))}function $(Je){return t.updateConstructorDeclaration(Je,Dr(Je.modifiers,d,ta),Dr(Je.parameters,y,rs),qe(Je.body,y,Cs))}function j(Je,pt){return Je!==pt&&(Nc(Je,pt),sa(Je,$d(pt))),Je}function re(Je){return j(t.updateMethodDeclaration(Je,Dr(Je.modifiers,d,ta),Je.asteriskToken,E.checkDefined(qe(Je.name,y,Ac)),void 0,void 0,Dr(Je.parameters,y,rs),void 0,qe(Je.body,y,Cs)),Je)}function R(Je){return j(t.updateGetAccessorDeclaration(Je,Dr(Je.modifiers,d,ta),E.checkDefined(qe(Je.name,y,Ac)),Dr(Je.parameters,y,rs),void 0,qe(Je.body,y,Cs)),Je)}function Y(Je){return j(t.updateSetAccessorDeclaration(Je,Dr(Je.modifiers,d,ta),E.checkDefined(qe(Je.name,y,Ac)),Dr(Je.parameters,y,rs),qe(Je.body,y,Cs)),Je)}function ue(Je){if(!(Je.flags&33554432||Rn(Je,128)))return j(t.updatePropertyDeclaration(Je,Dr(Je.modifiers,d,ta),E.checkDefined(qe(Je.name,y,Ac)),void 0,void 0,qe(Je.initializer,y,ot)),Je)}function pe(Je){const pt=t.updateParameterDeclaration(Je,Iie(t,Je.modifiers),Je.dotDotDotToken,E.checkDefined(qe(Je.name,y,vb)),void 0,void 0,qe(Je.initializer,y,ot));return pt!==Je&&(Nc(pt,Je),Ke(pt,$d(Je)),sa(pt,$d(Je)),Qr(pt.name,64)),pt}function H(Je){return o3(Je.expression,"___metadata")}function q(Je){if(!Je)return;const{false:pt,true:zt}=KI(Je.decorators,H),Vt=[];return Nn(Vt,nr(pt,Oe)),Nn(Vt,Zs(Je.parameters,me)),Nn(Vt,nr(zt,Oe)),Vt}function ee(Je,pt,zt){Nn(Je,nr(ae(pt,zt),Vt=>t.createExpressionStatement(Vt)))}function oe(Je,pt,zt){return b8(!0,Je,zt)&&pt===Ms(Je)}function Se(Je,pt){return An(Je.members,zt=>oe(zt,pt,Je))}function ae(Je,pt){const zt=Se(Je,pt);let Vt;for(const hr of zt)Vt=_r(Vt,K(Je,hr));return Vt}function K(Je,pt){const zt=C9(pt,Je,!0),Vt=q(zt);if(!Vt)return;const hr=ge(Je,pt),Lr=be(pt,!Rn(pt,128)),er=c>0?xs(pt)&&!Hd(pt)?t.createVoidZero():t.createNull():void 0,jt=n().createDecorateHelper(Vt,hr,Lr,er);return Qr(jt,3072),sa(jt,$d(pt)),jt}function fe(Je,pt){const zt=ke(pt);zt&&Je.push(dn(t.createExpressionStatement(zt),pt))}function ke(Je){const pt=rq(Je),zt=q(pt);if(!zt)return;const Vt=f&&f[cu(Je)],hr=c<2?t.getInternalName(Je,!1,!0):t.getDeclarationName(Je,!1,!0),Lr=n().createDecorateHelper(zt,hr),er=t.createAssignment(hr,Vt?t.createAssignment(Vt,Lr):Lr);return Qr(er,3072),sa(er,$d(Je)),er}function Oe(Je){return E.checkDefined(qe(Je.expression,y,ot))}function me(Je,pt){let zt;if(Je){zt=[];for(const Vt of Je){const hr=n().createParamHelper(Oe(Vt),pt);Ke(hr,Vt.expression),Qr(hr,3072),zt.push(hr)}}return zt}function be(Je,pt){const zt=Je.name;return Pi(zt)?t.createIdentifier(""):Pa(zt)?pt&&!Wm(zt.expression)?t.getGeneratedNameForNode(zt):zt.expression:Ie(zt)?t.createStringLiteral(on(zt)):t.cloneNode(zt)}function xe(){f||(e.enableSubstitution(80),f=[])}function De(Je){if(s.getNodeCheckFlags(Je)&262144){xe();const pt=t.createUniqueName(Je.name&&!Oo(Je.name)?on(Je.name):"default");return f[cu(Je)]=pt,i(pt),pt}}function ft(Je){return t.createPropertyAccessExpression(t.getDeclarationName(Je),"prototype")}function ge(Je,pt){return Ms(pt)?t.getDeclarationName(Je):ft(Je)}function Fe(Je,pt){return pt=u(Je,pt),Je===1?$e(pt):pt}function $e(Je){switch(Je.kind){case 80:return Pt(Je)}return Je}function Pt(Je){return at(Je)??Je}function at(Je){if(f&&s.getNodeCheckFlags(Je)&536870912){const pt=s.getReferencedValueDeclaration(Je);if(pt){const zt=f[pt.id];if(zt){const Vt=t.cloneNode(zt);return sa(Vt,Je),Nc(Vt,Je),Vt}}}}}var VMe=Dt({"src/compiler/transformers/legacyDecorators.ts"(){Fs()}});function sae(e){const{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:i,endLexicalEnvironment:s,hoistVariableDeclaration:o}=e,c=Fa(e.getCompilerOptions());let u,f,g,d,y,S;return Gp(e,T);function T(A){u=void 0,S=!1;const le=ur(A,Y,e);return ih(le,e.readEmitHelpers()),S&&(XT(le,32),S=!1),le}function k(){switch(f=void 0,g=void 0,d=void 0,u==null?void 0:u.kind){case"class":f=u.classInfo;break;case"class-element":f=u.next.classInfo,g=u.classThis,d=u.classSuper;break;case"name":const A=u.next.next.next;(A==null?void 0:A.kind)==="class-element"&&(f=A.next.classInfo,g=A.classThis,d=A.classSuper);break}}function w(A){u={kind:"class",next:u,classInfo:A,savedPendingExpressions:y},y=void 0,k()}function P(){E.assert((u==null?void 0:u.kind)==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${u==null?void 0:u.kind}' instead.`),y=u.savedPendingExpressions,u=u.next,k()}function F(A){var le,V;E.assert((u==null?void 0:u.kind)==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${u==null?void 0:u.kind}' instead.`),u={kind:"class-element",next:u},(ec(A)||xs(A)&&Bc(A))&&(u.classThis=(le=u.next.classInfo)==null?void 0:le.classThis,u.classSuper=(V=u.next.classInfo)==null?void 0:V.classSuper),k()}function J(){var A;E.assert((u==null?void 0:u.kind)==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${u==null?void 0:u.kind}' instead.`),E.assert(((A=u.next)==null?void 0:A.kind)==="class","Incorrect value for top.next.kind.",()=>{var le;return`Expected top.next.kind to be 'class' but got '${(le=u.next)==null?void 0:le.kind}' instead.`}),u=u.next,k()}function U(){E.assert((u==null?void 0:u.kind)==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${u==null?void 0:u.kind}' instead.`),u={kind:"name",next:u},k()}function $(){E.assert((u==null?void 0:u.kind)==="name","Incorrect value for top.kind.",()=>`Expected top.kind to be 'name' but got '${u==null?void 0:u.kind}' instead.`),u=u.next,k()}function j(){(u==null?void 0:u.kind)==="other"?(E.assert(!y),u.depth++):(u={kind:"other",next:u,depth:0,savedPendingExpressions:y},y=void 0,k())}function re(){E.assert((u==null?void 0:u.kind)==="other","Incorrect value for top.kind.",()=>`Expected top.kind to be 'other' but got '${u==null?void 0:u.kind}' instead.`),u.depth>0?(E.assert(!y),u.depth--):(y=u.savedPendingExpressions,u=u.next,k())}function R(A){return!!(A.transformFlags&33554432)||!!g&&!!(A.transformFlags&16384)||!!g&&!!d&&!!(A.transformFlags&134217728)}function Y(A){if(!R(A))return A;switch(A.kind){case 170:return E.fail("Use `modifierVisitor` instead.");case 263:return ke(A);case 231:return Oe(A);case 176:case 172:case 175:return E.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 169:return Lr(A);case 226:return Ji(A,!1);case 303:return Ht(A);case 260:return Ue(A);case 208:return Et(A);case 277:return Le(A);case 110:return Je(A);case 248:return Rt(A);case 244:return Kn(A);case 361:return os(A,!1);case 217:return rt(A,!1);case 360:return tt(A);case 213:return pt(A);case 215:return zt(A);case 224:case 225:return yi(A,!1);case 211:return Vt(A);case 212:return hr(A);case 167:return ln(A);case 174:case 178:case 177:case 218:case 262:{j();const le=ur(A,ue,e);return re(),le}default:return ur(A,ue,e)}}function ue(A){switch(A.kind){case 170:return;default:return Y(A)}}function pe(A){switch(A.kind){case 170:return;default:return A}}function H(A){switch(A.kind){case 176:return xe(A);case 174:return ge(A);case 177:return Fe(A);case 178:return $e(A);case 172:return at(A);case 175:return Pt(A);default:return Y(A)}}function q(A){switch(A.kind){case 224:case 225:return yi(A,!0);case 226:return Ji(A,!0);case 361:return os(A,!0);case 217:return rt(A,!0);default:return Y(A)}}function ee(A){let le=A.name&&Ie(A.name)&&!Oo(A.name)?on(A.name):A.name&&Pi(A.name)&&!Oo(A.name)?on(A.name).slice(1):A.name&&aa(A.name)&&bf(A.name.text,99)?A.name.text:$n(A)?"class":"member";return Q0(A)&&(le=`get_${le}`),Xh(A)&&(le=`set_${le}`),A.name&&Pi(A.name)&&(le=`private_${le}`),Ms(A)&&(le=`static_${le}`),"_"+le}function oe(A,le){return t.createUniqueName(`${ee(A)}_${le}`,24)}function Se(A,le){return t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(A,void 0,void 0,le)],1))}function ae(A){const le=t.createUniqueName("_metadata",48);let V,ce,Ne=!1,Ce=!1,_t=!1,Tt,Jt,ar;if(sC(!1,A)){const Er=ct(A.members,Nr=>(Iu(Nr)||s_(Nr))&&Bc(Nr));Tt=t.createUniqueName("_classThis",Er?24:48)}for(const Er of A.members){if(wT(Er)&&b8(!1,Er,A))if(Bc(Er)){if(!ce){ce=t.createUniqueName("_staticExtraInitializers",48);const Nr=n().createRunInitializersHelper(Tt??t.createThis(),ce);sa(Nr,A.name??th(A)),Jt??(Jt=[]),Jt.push(Nr)}}else{if(!V){V=t.createUniqueName("_instanceExtraInitializers",48);const Nr=n().createRunInitializersHelper(t.createThis(),V);sa(Nr,A.name??th(A)),ar??(ar=[]),ar.push(Nr)}V??(V=t.createUniqueName("_instanceExtraInitializers",48))}if(ec(Er)?kx(Er)||(Ne=!0):xs(Er)&&(Bc(Er)?Ne||(Ne=!!Er.initializer||Wf(Er)):Ce||(Ce=!xz(Er))),(Iu(Er)||s_(Er))&&Bc(Er)&&(_t=!0),ce&&V&&Ne&&Ce&&_t)break}return{class:A,classThis:Tt,metadataReference:le,instanceMethodExtraInitializersName:V,staticMethodExtraInitializersName:ce,hasStaticInitializers:Ne,hasNonAmbientInstanceFields:Ce,hasStaticPrivateClassElements:_t,pendingStaticInitializers:Jt,pendingInstanceInitializers:ar}}function K(A){i(),!oq(A)&&Qh(!1,A)&&(A=P9(e,A,t.createStringLiteral("")));const le=t.getLocalName(A,!1,!1,!0),V=ae(A),ce=[];let Ne,Ce,_t,Tt,Jt=!1;const ar=et(rq(A));ar&&(V.classDecoratorsName=t.createUniqueName("_classDecorators",48),V.classDescriptorName=t.createUniqueName("_classDescriptor",48),V.classExtraInitializersName=t.createUniqueName("_classExtraInitializers",48),E.assertIsDefined(V.classThis),ce.push(Se(V.classDecoratorsName,t.createArrayLiteralExpression(ar)),Se(V.classDescriptorName),Se(V.classExtraInitializersName,t.createArrayLiteralExpression()),Se(V.classThis)),V.hasStaticPrivateClassElements&&(Jt=!0,S=!0));const Er=J8(A.heritageClauses,96),Nr=Er&&bl(Er.types),fi=Nr&&qe(Nr.expression,Y,ot);if(fi){V.classSuper=t.createUniqueName("_classSuper",48);const In=xc(fi),is=kl(In)&&!In.name||lo(In)&&!In.name||mo(In)?t.createComma(t.createNumericLiteral(0),fi):fi;ce.push(Se(V.classSuper,is));const pr=t.updateExpressionWithTypeArguments(Nr,V.classSuper,void 0),_o=t.updateHeritageClause(Er,[pr]);Tt=t.createNodeArray([_o])}const oi=V.classThis??t.createThis();w(V),Ne=_r(Ne,W(V.metadataReference,V.classSuper));let Wr=A.members;if(Wr=Dr(Wr,In=>sc(In)?In:H(In),Tl),Wr=Dr(Wr,In=>sc(In)?H(In):In,Tl),y){let In;for(let is of y){is=qe(is,function _o(kc){if(!(kc.transformFlags&16384))return kc;switch(kc.kind){case 110:return In||(In=t.createUniqueName("_outerThis",16),ce.unshift(Se(In,t.createThis()))),In;default:return ur(kc,_o,e)}},ot);const pr=t.createExpressionStatement(is);Ne=_r(Ne,pr)}y=void 0}if(P(),ct(V.pendingInstanceInitializers)&&!Sg(A)){const In=me(A,V);if(In){const is=Vd(A),pr=!!(is&&xc(is.expression).kind!==106),_o=[];if(pr){const _s=t.createSpreadElement(t.createIdentifier("arguments")),Ra=t.createCallExpression(t.createSuper(),void 0,[_s]);_o.push(t.createExpressionStatement(Ra))}Nn(_o,In);const kc=t.createBlock(_o,!0);_t=t.createConstructorDeclaration(void 0,[],kc)}}if(V.staticMethodExtraInitializersName&&ce.push(Se(V.staticMethodExtraInitializersName,t.createArrayLiteralExpression())),V.instanceMethodExtraInitializersName&&ce.push(Se(V.instanceMethodExtraInitializersName,t.createArrayLiteralExpression())),V.memberInfos&&fl(V.memberInfos,(In,is)=>{Ms(is)&&(ce.push(Se(In.memberDecoratorsName)),In.memberInitializersName&&ce.push(Se(In.memberInitializersName,t.createArrayLiteralExpression())),In.memberExtraInitializersName&&ce.push(Se(In.memberExtraInitializersName,t.createArrayLiteralExpression())),In.memberDescriptorName&&ce.push(Se(In.memberDescriptorName)))}),V.memberInfos&&fl(V.memberInfos,(In,is)=>{Ms(is)||(ce.push(Se(In.memberDecoratorsName)),In.memberInitializersName&&ce.push(Se(In.memberInitializersName,t.createArrayLiteralExpression())),In.memberExtraInitializersName&&ce.push(Se(In.memberExtraInitializersName,t.createArrayLiteralExpression())),In.memberDescriptorName&&ce.push(Se(In.memberDescriptorName)))}),Ne=Nn(Ne,V.staticNonFieldDecorationStatements),Ne=Nn(Ne,V.nonStaticNonFieldDecorationStatements),Ne=Nn(Ne,V.staticFieldDecorationStatements),Ne=Nn(Ne,V.nonStaticFieldDecorationStatements),V.classDescriptorName&&V.classDecoratorsName&&V.classExtraInitializersName&&V.classThis){Ne??(Ne=[]);const In=t.createPropertyAssignment("value",oi),is=t.createObjectLiteralExpression([In]),pr=t.createAssignment(V.classDescriptorName,is),_o=t.createPropertyAccessExpression(oi,"name"),kc=n().createESDecorateHelper(t.createNull(),pr,V.classDecoratorsName,{kind:"class",name:_o,metadata:V.metadataReference},t.createNull(),V.classExtraInitializersName),_s=t.createExpressionStatement(kc);sa(_s,th(A)),Ne.push(_s);const Ra=t.createPropertyAccessExpression(V.classDescriptorName,"value"),go=t.createAssignment(V.classThis,Ra),qo=t.createAssignment(le,go);Ne.push(t.createExpressionStatement(qo))}if(Ne.push(Pe(oi,V.metadataReference)),ct(V.pendingStaticInitializers)){for(const In of V.pendingStaticInitializers){const is=t.createExpressionStatement(In);sa(is,n0(In)),Ce=_r(Ce,is)}V.pendingStaticInitializers=void 0}if(V.classExtraInitializersName){const In=n().createRunInitializersHelper(oi,V.classExtraInitializersName),is=t.createExpressionStatement(In);sa(is,A.name??th(A)),Ce=_r(Ce,is)}Ne&&Ce&&!V.hasStaticInitializers&&(Nn(Ne,Ce),Ce=void 0);const Cn=Ne&&t.createClassStaticBlockDeclaration(t.createBlock(Ne,!0));Cn&&Jt&&vw(Cn,32);const Qi=Ce&&t.createClassStaticBlockDeclaration(t.createBlock(Ce,!0));if(Cn||_t||Qi){const In=[],is=Wr.findIndex(kx);Cn?(Nn(In,Wr,0,is+1),In.push(Cn),Nn(In,Wr,is+1)):Nn(In,Wr),_t&&In.push(_t),Qi&&In.push(Qi),Wr=Ke(t.createNodeArray(In),Wr)}const pi=s();let ci;if(ar){ci=t.createClassExpression(void 0,void 0,void 0,Tt,Wr),V.classThis&&(ci=Yse(t,ci,V.classThis));const In=t.createVariableDeclaration(le,void 0,void 0,ci),is=t.createVariableDeclarationList([In]),pr=V.classThis?t.createAssignment(le,V.classThis):le;ce.push(t.createVariableStatement(void 0,is),t.createReturnStatement(pr))}else ci=t.createClassExpression(void 0,A.name,void 0,Tt,Wr),ce.push(t.createReturnStatement(ci));if(Jt){XT(ci,32);for(const In of ci.members)(Iu(In)||s_(In))&&Bc(In)&&XT(In,32)}return dn(ci,A),t.createImmediatelyInvokedArrowFunction(t.mergeLexicalEnvironment(ce,pi))}function fe(A){return Qh(!1,A)||yE(!1,A)}function ke(A){if(fe(A)){const le=[],V=ic(A,$n)??A,ce=V.name?t.createStringLiteralFromNode(V.name):t.createStringLiteral("default"),Ne=Rn(A,32),Ce=Rn(A,2048);if(A.name||(A=P9(e,A,ce)),Ne&&Ce){const _t=K(A);if(A.name){const Tt=t.createVariableDeclaration(t.getLocalName(A),void 0,void 0,_t);dn(Tt,A);const Jt=t.createVariableDeclarationList([Tt],1),ar=t.createVariableStatement(void 0,Jt);le.push(ar);const Er=t.createExportDefault(t.getDeclarationName(A));dn(Er,A),Nc(Er,Qd(A)),sa(Er,th(A)),le.push(Er)}else{const Tt=t.createExportDefault(_t);dn(Tt,A),Nc(Tt,Qd(A)),sa(Tt,th(A)),le.push(Tt)}}else{E.assertIsDefined(A.name,"A class declaration that is not a default export must have a name.");const _t=K(A),Tt=Ne?oi=>rx(oi)?void 0:pe(oi):pe,Jt=Dr(A.modifiers,Tt,ta),ar=t.getLocalName(A,!1,!0),Er=t.createVariableDeclaration(ar,void 0,void 0,_t);dn(Er,A);const Nr=t.createVariableDeclarationList([Er],1),fi=t.createVariableStatement(Jt,Nr);if(dn(fi,A),Nc(fi,Qd(A)),le.push(fi),Ne){const oi=t.createExternalModuleExport(ar);dn(oi,A),le.push(oi)}}return xm(le)}else{const le=Dr(A.modifiers,pe,ta),V=Dr(A.heritageClauses,Y,xf);w(void 0);const ce=Dr(A.members,H,Tl);return P(),t.updateClassDeclaration(A,le,A.name,void 0,V,ce)}}function Oe(A){if(fe(A)){const le=K(A);return dn(le,A),le}else{const le=Dr(A.modifiers,pe,ta),V=Dr(A.heritageClauses,Y,xf);w(void 0);const ce=Dr(A.members,H,Tl);return P(),t.updateClassExpression(A,le,A.name,void 0,V,ce)}}function me(A,le){if(ct(le.pendingInstanceInitializers)){const V=[];return V.push(t.createExpressionStatement(t.inlineExpressions(le.pendingInstanceInitializers))),le.pendingInstanceInitializers=void 0,V}}function be(A,le,V,ce,Ne,Ce){const _t=ce[Ne],Tt=le[_t];if(Nn(A,Dr(le,Y,Ei,V,_t-V)),Gb(Tt)){const Jt=[];be(Jt,Tt.tryBlock.statements,0,ce,Ne+1,Ce);const ar=t.createNodeArray(Jt);Ke(ar,Tt.tryBlock.statements),A.push(t.updateTryStatement(Tt,t.updateBlock(Tt.tryBlock,Jt),qe(Tt.catchClause,Y,f2),qe(Tt.finallyBlock,Y,Cs)))}else Nn(A,Dr(le,Y,Ei,_t,1)),Nn(A,Ce);Nn(A,Dr(le,Y,Ei,_t+1))}function xe(A){F(A);const le=Dr(A.modifiers,pe,ta),V=Dr(A.parameters,Y,rs);let ce;if(A.body&&f){const Ne=me(f.class,f);if(Ne){const Ce=[],_t=t.copyPrologue(A.body.statements,Ce,!1,Y),Tt=x9(A.body.statements,_t);Tt.length>0?be(Ce,A.body.statements,_t,Tt,0,Ne):(Nn(Ce,Ne),Nn(Ce,Dr(A.body.statements,Y,Ei))),ce=t.createBlock(Ce,!0),dn(ce,A.body),Ke(ce,A.body)}}return ce??(ce=qe(A.body,Y,Cs)),J(),t.updateConstructorDeclaration(A,le,V,ce)}function De(A,le){return A!==le&&(Nc(A,le),sa(A,th(le))),A}function ft(A,le,V){let ce,Ne,Ce,_t,Tt,Jt;if(!le){const Nr=Dr(A.modifiers,pe,ta);return U(),Ne=_i(A.name),$(),{modifiers:Nr,referencedName:ce,name:Ne,initializersName:Ce,descriptorName:Jt,thisArg:Tt}}const ar=et(C9(A,le.class,!1)),Er=Dr(A.modifiers,pe,ta);if(ar){const Nr=oe(A,"decorators"),fi=t.createArrayLiteralExpression(ar),oi=t.createAssignment(Nr,fi),Wr={memberDecoratorsName:Nr};le.memberInfos??(le.memberInfos=new Map),le.memberInfos.set(A,Wr),y??(y=[]),y.push(oi);const Cn=wT(A)||s_(A)?Ms(A)?le.staticNonFieldDecorationStatements??(le.staticNonFieldDecorationStatements=[]):le.nonStaticNonFieldDecorationStatements??(le.nonStaticNonFieldDecorationStatements=[]):xs(A)&&!s_(A)?Ms(A)?le.staticFieldDecorationStatements??(le.staticFieldDecorationStatements=[]):le.nonStaticFieldDecorationStatements??(le.nonStaticFieldDecorationStatements=[]):E.fail(),Qi=Tf(A)?"getter":J_(A)?"setter":hc(A)?"method":s_(A)?"accessor":xs(A)?"field":E.fail();let pi;if(Ie(A.name)||Pi(A.name))pi={computed:!1,name:A.name};else if(Ud(A.name))pi={computed:!0,name:t.createStringLiteralFromNode(A.name)};else{const In=A.name.expression;Ud(In)&&!Ie(In)?pi={computed:!0,name:t.createStringLiteralFromNode(In)}:(U(),{referencedName:ce,name:Ne}=yr(A.name),pi={computed:!0,name:ce},$())}const ci={kind:Qi,name:pi,static:Ms(A),private:Pi(A.name),access:{get:xs(A)||Tf(A)||hc(A),set:xs(A)||J_(A)},metadata:le.metadataReference};if(wT(A)){const In=Ms(A)?le.staticMethodExtraInitializersName:le.instanceMethodExtraInitializersName;E.assertIsDefined(In);let is;Iu(A)&&V&&(is=V(A,Dr(Er,kc=>Wn(kc,c3),ta)),Wr.memberDescriptorName=Jt=oe(A,"descriptor"),is=t.createAssignment(Jt,is));const pr=n().createESDecorateHelper(t.createThis(),is??t.createNull(),Nr,ci,t.createNull(),In),_o=t.createExpressionStatement(pr);sa(_o,th(A)),Cn.push(_o)}else if(xs(A)){Ce=Wr.memberInitializersName??(Wr.memberInitializersName=oe(A,"initializers")),_t=Wr.memberExtraInitializersName??(Wr.memberExtraInitializersName=oe(A,"extraInitializers")),Ms(A)&&(Tt=le.classThis);let In;Iu(A)&&Hd(A)&&V&&(In=V(A,void 0),Wr.memberDescriptorName=Jt=oe(A,"descriptor"),In=t.createAssignment(Jt,In));const is=n().createESDecorateHelper(s_(A)?t.createThis():t.createNull(),In??t.createNull(),Nr,ci,Ce,_t),pr=t.createExpressionStatement(is);sa(pr,th(A)),Cn.push(pr)}}return Ne===void 0&&(U(),Ne=_i(A.name),$()),!ct(Er)&&(hc(A)||xs(A))&&Qr(Ne,1024),{modifiers:Er,referencedName:ce,name:Ne,initializersName:Ce,extraInitializersName:_t,descriptorName:Jt,thisArg:Tt}}function ge(A){F(A);const{modifiers:le,name:V,descriptorName:ce}=ft(A,f,mt);if(ce)return J(),De(ir(le,V,ce),A);{const Ne=Dr(A.parameters,Y,rs),Ce=qe(A.body,Y,Cs);return J(),De(t.updateMethodDeclaration(A,le,A.asteriskToken,V,void 0,void 0,Ne,void 0,Ce),A)}}function Fe(A){F(A);const{modifiers:le,name:V,descriptorName:ce}=ft(A,f,Be);if(ce)return J(),De(Yt(le,V,ce),A);{const Ne=Dr(A.parameters,Y,rs),Ce=qe(A.body,Y,Cs);return J(),De(t.updateGetAccessorDeclaration(A,le,V,Ne,void 0,Ce),A)}}function $e(A){F(A);const{modifiers:le,name:V,descriptorName:ce}=ft(A,f,nt);if(ce)return J(),De(Kt(le,V,ce),A);{const Ne=Dr(A.parameters,Y,rs),Ce=qe(A.body,Y,Cs);return J(),De(t.updateSetAccessorDeclaration(A,le,V,Ne,Ce),A)}}function Pt(A){F(A);let le;if(kx(A))le=ur(A,Y,e);else if(M3(A)){const V=g;g=void 0,le=ur(A,Y,e),g=V}else if(A=ur(A,Y,e),le=A,f&&(f.hasStaticInitializers=!0,ct(f.pendingStaticInitializers))){const V=[];for(const Ce of f.pendingStaticInitializers){const _t=t.createExpressionStatement(Ce);sa(_t,n0(Ce)),V.push(_t)}const ce=t.createBlock(V,!0);le=[t.createClassStaticBlockDeclaration(ce),le],f.pendingStaticInitializers=void 0}return J(),le}function at(A){M_(A,er)&&(A=W_(e,A,jt(A.initializer))),F(A),E.assert(!xz(A),"Not yet implemented.");const{modifiers:le,name:V,initializersName:ce,extraInitializersName:Ne,descriptorName:Ce,thisArg:_t}=ft(A,f,Hd(A)?wt:void 0);i();let Tt=qe(A.initializer,Y,ot);ce&&(Tt=n().createRunInitializersHelper(_t??t.createThis(),ce,Tt??t.createVoidZero())),Ms(A)&&f&&Tt&&(f.hasStaticInitializers=!0);const Jt=s();if(ct(Jt)&&(Tt=t.createImmediatelyInvokedArrowFunction([...Jt,t.createReturnStatement(Tt)])),f&&(Ms(A)?(Tt=we(f,!0,Tt),Ne&&(f.pendingStaticInitializers??(f.pendingStaticInitializers=[]),f.pendingStaticInitializers.push(n().createRunInitializersHelper(f.classThis??t.createThis(),Ne)))):(Tt=we(f,!1,Tt),Ne&&(f.pendingInstanceInitializers??(f.pendingInstanceInitializers=[]),f.pendingInstanceInitializers.push(n().createRunInitializersHelper(t.createThis(),Ne))))),J(),Hd(A)&&Ce){const ar=Qd(A),Er=n0(A),Nr=A.name;let fi=Nr,oi=Nr;if(Pa(Nr)&&!Wm(Nr.expression)){const ci=jO(Nr);if(ci)fi=t.updateComputedPropertyName(Nr,qe(Nr.expression,Y,ot)),oi=t.updateComputedPropertyName(Nr,ci.left);else{const In=t.createTempVariable(o);sa(In,Nr.expression);const is=qe(Nr.expression,Y,ot),pr=t.createAssignment(In,is);sa(pr,Nr.expression),fi=t.updateComputedPropertyName(Nr,pr),oi=t.updateComputedPropertyName(Nr,In)}}const Wr=Dr(le,ci=>ci.kind!==129?ci:void 0,ta),Cn=QV(t,A,Wr,Tt);dn(Cn,A),Qr(Cn,3072),sa(Cn,Er),sa(Cn.name,A.name);const Qi=Yt(Wr,fi,Ce);dn(Qi,A),Nc(Qi,ar),sa(Qi,Er);const pi=Kt(Wr,oi,Ce);return dn(pi,A),Qr(pi,3072),sa(pi,Er),[Cn,Qi,pi]}return De(t.updatePropertyDeclaration(A,le,V,void 0,void 0,Tt),A)}function Je(A){return g??A}function pt(A){if(o_(A.expression)&&g){const le=qe(A.expression,Y,ot),V=Dr(A.arguments,Y,ot),ce=t.createFunctionCallCall(le,g,V);return dn(ce,A),Ke(ce,A),ce}return ur(A,Y,e)}function zt(A){if(o_(A.tag)&&g){const le=qe(A.tag,Y,ot),V=t.createFunctionBindCall(le,g,[]);dn(V,A),Ke(V,A);const ce=qe(A.template,Y,AT);return t.updateTaggedTemplateExpression(A,V,void 0,ce)}return ur(A,Y,e)}function Vt(A){if(o_(A)&&Ie(A.name)&&g&&d){const le=t.createStringLiteralFromNode(A.name),V=t.createReflectGetCall(d,le,g);return dn(V,A.expression),Ke(V,A.expression),V}return ur(A,Y,e)}function hr(A){if(o_(A)&&g&&d){const le=qe(A.argumentExpression,Y,ot),V=t.createReflectGetCall(d,le,g);return dn(V,A.expression),Ke(V,A.expression),V}return ur(A,Y,e)}function Lr(A){M_(A,er)&&(A=W_(e,A,jt(A.initializer)));const le=t.updateParameterDeclaration(A,void 0,A.dotDotDotToken,qe(A.name,Y,vb),void 0,void 0,qe(A.initializer,Y,ot));return le!==A&&(Nc(le,A),Ke(le,$d(A)),sa(le,$d(A)),Qr(le.name,64)),le}function er(A){return kl(A)&&!A.name&&fe(A)}function jt(A){const le=xc(A);return kl(le)&&!le.name&&!Qh(!1,le)}function Rt(A){return t.updateForStatement(A,qe(A.initializer,q,zf),qe(A.condition,Y,ot),qe(A.incrementor,q,ot),Qu(A.statement,Y,e))}function Kn(A){return ur(A,q,e)}function Ji(A,le){if(e0(A)){const V=br(A.left),ce=qe(A.right,Y,ot);return t.updateBinaryExpression(A,V,A.operatorToken,ce)}if(il(A)){if(M_(A,er))return A=W_(e,A,jt(A.right)),ur(A,Y,e);if(o_(A.left)&&g&&d){let V=Co(A.left)?qe(A.left.argumentExpression,Y,ot):Ie(A.left.name)?t.createStringLiteralFromNode(A.left.name):void 0;if(V){let ce=qe(A.right,Y,ot);if(F3(A.operatorToken.kind)){let Ce=V;Wm(V)||(Ce=t.createTempVariable(o),V=t.createAssignment(Ce,V));const _t=t.createReflectGetCall(d,Ce,g);dn(_t,A.left),Ke(_t,A.left),ce=t.createBinaryExpression(_t,O3(A.operatorToken.kind),ce),Ke(ce,A)}const Ne=le?void 0:t.createTempVariable(o);return Ne&&(ce=t.createAssignment(Ne,ce),Ke(Ne,A)),ce=t.createReflectSetCall(d,V,ce,g),dn(ce,A),Ke(ce,A),Ne&&(ce=t.createComma(ce,Ne),Ke(ce,A)),ce}}}if(A.operatorToken.kind===28){const V=qe(A.left,q,ot),ce=qe(A.right,le?q:Y,ot);return t.updateBinaryExpression(A,V,A.operatorToken,ce)}return ur(A,Y,e)}function yi(A,le){if(A.operator===46||A.operator===47){const V=Va(A.operand);if(o_(V)&&g&&d){let ce=Co(V)?qe(V.argumentExpression,Y,ot):Ie(V.name)?t.createStringLiteralFromNode(V.name):void 0;if(ce){let Ne=ce;Wm(ce)||(Ne=t.createTempVariable(o),ce=t.createAssignment(Ne,ce));let Ce=t.createReflectGetCall(d,Ne,g);dn(Ce,A),Ke(Ce,A);const _t=le?void 0:t.createTempVariable(o);return Ce=NO(t,A,Ce,o,_t),Ce=t.createReflectSetCall(d,ce,Ce,g),dn(Ce,A),Ke(Ce,A),_t&&(Ce=t.createComma(Ce,_t),Ke(Ce,A)),Ce}}}return ur(A,Y,e)}function os(A,le){const V=le?h9(A.elements,q):h9(A.elements,Y,q);return t.updateCommaListExpression(A,V)}function yr(A){if(Ud(A)||Pi(A)){const Ce=t.createStringLiteralFromNode(A),_t=qe(A,Y,Ac);return{referencedName:Ce,name:_t}}if(Ud(A.expression)&&!Ie(A.expression)){const Ce=t.createStringLiteralFromNode(A.expression),_t=qe(A,Y,Ac);return{referencedName:Ce,name:_t}}const le=t.getGeneratedNameForNode(A);o(le);const V=n().createPropKeyHelper(qe(A.expression,Y,ot)),ce=t.createAssignment(le,V),Ne=t.updateComputedPropertyName(A,ne(ce));return{referencedName:le,name:Ne}}function _i(A){return Pa(A)?ln(A):qe(A,Y,Ac)}function ln(A){let le=qe(A.expression,Y,ot);return Wm(le)||(le=ne(le)),t.updateComputedPropertyName(A,le)}function Ht(A){return M_(A,er)&&(A=W_(e,A,jt(A.initializer))),ur(A,Y,e)}function Ue(A){return M_(A,er)&&(A=W_(e,A,jt(A.initializer))),ur(A,Y,e)}function Et(A){return M_(A,er)&&(A=W_(e,A,jt(A.initializer))),ur(A,Y,e)}function fr(A){if(ua(A)||ju(A))return br(A);if(o_(A)&&g&&d){const le=Co(A)?qe(A.argumentExpression,Y,ot):Ie(A.name)?t.createStringLiteralFromNode(A.name):void 0;if(le){const V=t.createTempVariable(void 0),ce=t.createAssignmentTargetWrapper(V,t.createReflectSetCall(d,le,V,g));return dn(ce,A),Ke(ce,A),ce}}return ur(A,Y,e)}function Hn(A){if(il(A,!0)){M_(A,er)&&(A=W_(e,A,jt(A.right)));const le=fr(A.left),V=qe(A.right,Y,ot);return t.updateBinaryExpression(A,le,A.operatorToken,V)}else return fr(A)}function ei(A){if(S_(A.expression)){const le=fr(A.expression);return t.updateSpreadElement(A,le)}return ur(A,Y,e)}function Ii(A){return E.assertNode(A,e8),gd(A)?ei(A):dl(A)?ur(A,Y,e):Hn(A)}function ns(A){const le=qe(A.name,Y,Ac);if(il(A.initializer,!0)){const V=Hn(A.initializer);return t.updatePropertyAssignment(A,le,V)}if(S_(A.initializer)){const V=fr(A.initializer);return t.updatePropertyAssignment(A,le,V)}return ur(A,Y,e)}function Vs(A){return M_(A,er)&&(A=W_(e,A,jt(A.objectAssignmentInitializer))),ur(A,Y,e)}function _a(A){if(S_(A.expression)){const le=fr(A.expression);return t.updateSpreadAssignment(A,le)}return ur(A,Y,e)}function cr(A){return E.assertNode(A,KD),a0(A)?_a(A):k_(A)?Vs(A):zc(A)?ns(A):ur(A,Y,e)}function br(A){if(ju(A)){const le=Dr(A.elements,Ii,ot);return t.updateArrayLiteralExpression(A,le)}else{const le=Dr(A.properties,cr,Yg);return t.updateObjectLiteralExpression(A,le)}}function Le(A){return M_(A,er)&&(A=W_(e,A,jt(A.expression))),ur(A,Y,e)}function rt(A,le){const V=le?q:Y,ce=qe(A.expression,V,ot);return t.updateParenthesizedExpression(A,ce)}function tt(A,le){const V=Y,ce=qe(A.expression,V,ot);return t.updatePartiallyEmittedExpression(A,ce)}function yt(A,le){return ct(A)&&(le?l_(le)?(A.push(le.expression),le=t.updateParenthesizedExpression(le,t.inlineExpressions(A))):(A.push(le),le=t.inlineExpressions(A)):le=t.inlineExpressions(A)),le}function ne(A){const le=yt(y,A);return E.assertIsDefined(le),le!==A&&(y=void 0),le}function we(A,le,V){const ce=yt(le?A.pendingStaticInitializers:A.pendingInstanceInitializers,V);return ce!==V&&(le?A.pendingStaticInitializers=void 0:A.pendingInstanceInitializers=void 0),ce}function et(A){if(!A)return;const le=[];return Nn(le,nr(A.decorators,B)),le}function B(A){const le=qe(A.expression,Y,ot);Qr(le,3072);const V=xc(le);if(co(V)){const{target:ce,thisArg:Ne}=t.createCallBinding(le,o,c,!0);return t.restoreOuterExpressions(le,t.createFunctionBindCall(ce,Ne,[]))}return le}function Ge(A,le,V,ce,Ne,Ce,_t){const Tt=t.createFunctionExpression(V,ce,void 0,void 0,Ce,void 0,_t??t.createBlock([]));dn(Tt,A),sa(Tt,th(A)),Qr(Tt,3072);const Jt=Ne==="get"||Ne==="set"?Ne:void 0,ar=t.createStringLiteralFromNode(le,void 0),Er=n().createSetFunctionNameHelper(Tt,ar,Jt),Nr=t.createPropertyAssignment(t.createIdentifier(Ne),Er);return dn(Nr,A),sa(Nr,th(A)),Qr(Nr,3072),Nr}function mt(A,le){return t.createObjectLiteralExpression([Ge(A,A.name,le,A.asteriskToken,"value",Dr(A.parameters,Y,rs),qe(A.body,Y,Cs))])}function Be(A,le){return t.createObjectLiteralExpression([Ge(A,A.name,le,void 0,"get",[],qe(A.body,Y,Cs))])}function nt(A,le){return t.createObjectLiteralExpression([Ge(A,A.name,le,void 0,"set",Dr(A.parameters,Y,rs),qe(A.body,Y,Cs))])}function wt(A,le){return t.createObjectLiteralExpression([Ge(A,A.name,le,void 0,"get",[],t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(A.name)))])),Ge(A,A.name,le,void 0,"set",[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(A.name)),t.createIdentifier("value")))]))])}function ir(A,le,V){return A=Dr(A,ce=>nx(ce)?ce:void 0,ta),t.createGetAccessorDeclaration(A,le,[],void 0,t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(V,t.createIdentifier("value")))]))}function Yt(A,le,V){return A=Dr(A,ce=>nx(ce)?ce:void 0,ta),t.createGetAccessorDeclaration(A,le,[],void 0,t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(V,t.createIdentifier("get")),t.createThis(),[]))]))}function Kt(A,le,V){return A=Dr(A,ce=>nx(ce)?ce:void 0,ta),t.createSetAccessorDeclaration(A,le,[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(V,t.createIdentifier("set")),t.createThis(),[t.createIdentifier("value")]))]))}function W(A,le){const V=t.createVariableDeclaration(A,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,[le?St(le):t.createNull()]),t.createToken(59),t.createVoidZero()));return t.createVariableStatement(void 0,t.createVariableDeclarationList([V],2))}function Pe(A,le){const V=t.createObjectDefinePropertyCall(A,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata"),t.createPropertyDescriptor({configurable:!0,writable:!0,enumerable:!0,value:le},!0));return Qr(t.createIfStatement(le,t.createExpressionStatement(V)),1)}function St(A){return t.createBinaryExpression(t.createElementAccessExpression(A,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),61,t.createNull())}}var UMe=Dt({"src/compiler/transformers/esDecorators.ts"(){Fs()}});function aae(e){const{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:i,endLexicalEnvironment:s,hoistVariableDeclaration:o}=e,c=e.getEmitResolver(),u=e.getCompilerOptions(),f=Fa(u);let g,d=0,y,S,T,k;const w=[];let P=0;const F=e.onEmitNode,J=e.onSubstituteNode;return e.onEmitNode=Kn,e.onSubstituteNode=Ji,Gp(e,U);function U(Ue){if(Ue.isDeclarationFile)return Ue;$(1,!1),$(2,!Tz(Ue,u));const Et=ur(Ue,H,e);return ih(Et,e.readEmitHelpers()),Et}function $(Ue,Et){P=Et?P|Ue:P&~Ue}function j(Ue){return(P&Ue)!==0}function re(){return!j(1)}function R(){return j(2)}function Y(Ue,Et,fr){const Hn=Ue&~P;if(Hn){$(Hn,!0);const ei=Et(fr);return $(Hn,!1),ei}return Et(fr)}function ue(Ue){return ur(Ue,H,e)}function pe(Ue){switch(Ue.kind){case 218:case 262:case 174:case 177:case 178:case 176:return Ue;case 169:case 208:case 260:break;case 80:if(k&&c.isArgumentsLocalBinding(Ue))return k;break}return ur(Ue,pe,e)}function H(Ue){if(!(Ue.transformFlags&256))return k?pe(Ue):Ue;switch(Ue.kind){case 134:return;case 223:return fe(Ue);case 174:return Y(3,Oe,Ue);case 262:return Y(3,xe,Ue);case 218:return Y(3,De,Ue);case 219:return Y(1,ft,Ue);case 211:return S&&Sn(Ue)&&Ue.expression.kind===108&&S.add(Ue.name.escapedText),ur(Ue,H,e);case 212:return S&&Ue.expression.kind===108&&(T=!0),ur(Ue,H,e);case 177:return Y(3,me,Ue);case 178:return Y(3,be,Ue);case 176:return Y(3,ke,Ue);case 263:case 231:return Y(3,ue,Ue);default:return ur(Ue,H,e)}}function q(Ue){if(are(Ue))switch(Ue.kind){case 243:return oe(Ue);case 248:return K(Ue);case 249:return Se(Ue);case 250:return ae(Ue);case 299:return ee(Ue);case 241:case 255:case 269:case 296:case 297:case 258:case 246:case 247:case 245:case 254:case 256:return ur(Ue,q,e);default:return E.assertNever(Ue,"Unhandled node.")}return H(Ue)}function ee(Ue){const Et=new Set;ge(Ue.variableDeclaration,Et);let fr;if(Et.forEach((Hn,ei)=>{y.has(ei)&&(fr||(fr=new Set(y)),fr.delete(ei))}),fr){const Hn=y;y=fr;const ei=ur(Ue,q,e);return y=Hn,ei}else return ur(Ue,q,e)}function oe(Ue){if(Fe(Ue.declarationList)){const Et=$e(Ue.declarationList,!1);return Et?t.createExpressionStatement(Et):void 0}return ur(Ue,H,e)}function Se(Ue){return t.updateForInStatement(Ue,Fe(Ue.initializer)?$e(Ue.initializer,!0):E.checkDefined(qe(Ue.initializer,H,zf)),E.checkDefined(qe(Ue.expression,H,ot)),Qu(Ue.statement,q,e))}function ae(Ue){return t.updateForOfStatement(Ue,qe(Ue.awaitModifier,H,kV),Fe(Ue.initializer)?$e(Ue.initializer,!0):E.checkDefined(qe(Ue.initializer,H,zf)),E.checkDefined(qe(Ue.expression,H,ot)),Qu(Ue.statement,q,e))}function K(Ue){const Et=Ue.initializer;return t.updateForStatement(Ue,Fe(Et)?$e(Et,!1):qe(Ue.initializer,H,zf),qe(Ue.condition,H,ot),qe(Ue.incrementor,H,ot),Qu(Ue.statement,q,e))}function fe(Ue){return re()?ur(Ue,H,e):dn(Ke(t.createYieldExpression(void 0,qe(Ue.expression,H,ot)),Ue),Ue)}function ke(Ue){const Et=k;k=void 0;const fr=t.updateConstructorDeclaration(Ue,Dr(Ue.modifiers,H,ta),tc(Ue.parameters,H,e),zt(Ue));return k=Et,fr}function Oe(Ue){let Et;const fr=pl(Ue),Hn=k;k=void 0;const ei=t.updateMethodDeclaration(Ue,Dr(Ue.modifiers,H,Lo),Ue.asteriskToken,Ue.name,void 0,void 0,Et=fr&2?hr(Ue):tc(Ue.parameters,H,e),void 0,fr&2?Lr(Ue,Et):zt(Ue));return k=Hn,ei}function me(Ue){const Et=k;k=void 0;const fr=t.updateGetAccessorDeclaration(Ue,Dr(Ue.modifiers,H,Lo),Ue.name,tc(Ue.parameters,H,e),void 0,zt(Ue));return k=Et,fr}function be(Ue){const Et=k;k=void 0;const fr=t.updateSetAccessorDeclaration(Ue,Dr(Ue.modifiers,H,Lo),Ue.name,tc(Ue.parameters,H,e),zt(Ue));return k=Et,fr}function xe(Ue){let Et;const fr=k;k=void 0;const Hn=pl(Ue),ei=t.updateFunctionDeclaration(Ue,Dr(Ue.modifiers,H,Lo),Ue.asteriskToken,Ue.name,void 0,Et=Hn&2?hr(Ue):tc(Ue.parameters,H,e),void 0,Hn&2?Lr(Ue,Et):Ef(Ue.body,H,e));return k=fr,ei}function De(Ue){let Et;const fr=k;k=void 0;const Hn=pl(Ue),ei=t.updateFunctionExpression(Ue,Dr(Ue.modifiers,H,ta),Ue.asteriskToken,Ue.name,void 0,Et=Hn&2?hr(Ue):tc(Ue.parameters,H,e),void 0,Hn&2?Lr(Ue,Et):Ef(Ue.body,H,e));return k=fr,ei}function ft(Ue){let Et;const fr=pl(Ue);return t.updateArrowFunction(Ue,Dr(Ue.modifiers,H,ta),void 0,Et=fr&2?hr(Ue):tc(Ue.parameters,H,e),void 0,Ue.equalsGreaterThanToken,fr&2?Lr(Ue,Et):Ef(Ue.body,H,e))}function ge({name:Ue},Et){if(Ie(Ue))Et.add(Ue.escapedText);else for(const fr of Ue.elements)dl(fr)||ge(fr,Et)}function Fe(Ue){return!!Ue&&ml(Ue)&&!(Ue.flags&7)&&Ue.declarations.some(pt)}function $e(Ue,Et){Pt(Ue);const fr=jE(Ue);return fr.length===0?Et?qe(t.converters.convertToAssignmentElementTarget(Ue.declarations[0].name),H,ot):void 0:t.inlineExpressions(nr(fr,Je))}function Pt(Ue){rr(Ue.declarations,at)}function at({name:Ue}){if(Ie(Ue))o(Ue);else for(const Et of Ue.elements)dl(Et)||at(Et)}function Je(Ue){const Et=sa(t.createAssignment(t.converters.convertToAssignmentElementTarget(Ue.name),Ue.initializer),Ue);return E.checkDefined(qe(Et,H,ot))}function pt({name:Ue}){if(Ie(Ue))return y.has(Ue.escapedText);for(const Et of Ue.elements)if(!dl(Et)&&pt(Et))return!0;return!1}function zt(Ue){E.assertIsDefined(Ue.body);const Et=S,fr=T;S=new Set,T=!1;let Hn=Ef(Ue.body,H,e);const ei=ic(Ue,po);if(f>=2&&c.getNodeCheckFlags(Ue)&384&&(pl(ei)&3)!==3){if(Rt(),S.size){const ns=D9(t,c,Ue,S);w[Oa(ns)]=!0;const Vs=Hn.statements.slice();mg(Vs,[ns]),Hn=t.updateBlock(Hn,Vs)}T&&(c.getNodeCheckFlags(Ue)&256?YT(Hn,kw):c.getNodeCheckFlags(Ue)&128&&YT(Hn,xw))}return S=Et,T=fr,Hn}function Vt(){E.assert(k);const Ue=t.createVariableDeclaration(k,void 0,void 0,t.createIdentifier("arguments")),Et=t.createVariableStatement(void 0,[Ue]);return bu(Et),Xd(Et,2097152),Et}function hr(Ue){if(gA(Ue.parameters))return tc(Ue.parameters,H,e);const Et=[];for(const Hn of Ue.parameters){if(Hn.initializer||Hn.dotDotDotToken){if(Ue.kind===219){const Ii=t.createParameterDeclaration(void 0,t.createToken(26),t.createUniqueName("args",8));Et.push(Ii)}break}const ei=t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(Hn.name,8));Et.push(ei)}const fr=t.createNodeArray(Et);return Ke(fr,Ue.parameters),fr}function Lr(Ue,Et){const fr=gA(Ue.parameters)?void 0:tc(Ue.parameters,H,e);i();const ei=ic(Ue,As).type,Ii=f<2?jt(ei):void 0,ns=Ue.kind===219,Vs=k,cr=(c.getNodeCheckFlags(Ue)&512)!==0&&!k;cr&&(k=t.createUniqueName("arguments"));let br;if(fr)if(ns){const et=[];E.assert(Et.length<=Ue.parameters.length);for(let B=0;B=2&&c.getNodeCheckFlags(Ue)&384;if(B&&(Rt(),S.size)){const mt=D9(t,c,Ue,S);w[Oa(mt)]=!0,mg(et,[mt])}cr&&mg(et,[Vt()]);const Ge=t.createBlock(et,!0);Ke(Ge,Ue.body),B&&T&&(c.getNodeCheckFlags(Ue)&256?YT(Ge,kw):c.getNodeCheckFlags(Ue)&128&&YT(Ge,xw)),we=Ge}return y=Le,ns||(S=rt,T=tt,k=Vs),we}function er(Ue,Et){return Cs(Ue)?t.updateBlock(Ue,Dr(Ue.statements,q,Ei,Et)):t.converters.convertToFunctionBlock(E.checkDefined(qe(Ue,q,X7)))}function jt(Ue){const Et=Ue&&v8(Ue);if(Et&&b_(Et)){const fr=c.getTypeReferenceSerializationKind(Et);if(fr===1||fr===0)return Et}}function Rt(){g&1||(g|=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 Kn(Ue,Et,fr){if(g&1&&ln(Et)){const Hn=c.getNodeCheckFlags(Et)&384;if(Hn!==d){const ei=d;d=Hn,F(Ue,Et,fr),d=ei;return}}else if(g&&w[Oa(Et)]){const Hn=d;d=0,F(Ue,Et,fr),d=Hn;return}F(Ue,Et,fr)}function Ji(Ue,Et){return Et=J(Ue,Et),Ue===1&&d?yi(Et):Et}function yi(Ue){switch(Ue.kind){case 211:return os(Ue);case 212:return yr(Ue);case 213:return _i(Ue)}return Ue}function os(Ue){return Ue.expression.kind===108?Ke(t.createPropertyAccessExpression(t.createUniqueName("_super",48),Ue.name),Ue):Ue}function yr(Ue){return Ue.expression.kind===108?Ht(Ue.argumentExpression,Ue):Ue}function _i(Ue){const Et=Ue.expression;if(o_(Et)){const fr=Sn(Et)?os(Et):yr(Et);return t.createCallExpression(t.createPropertyAccessExpression(fr,"call"),void 0,[t.createThis(),...Ue.arguments])}return Ue}function ln(Ue){const Et=Ue.kind;return Et===263||Et===176||Et===174||Et===177||Et===178}function Ht(Ue,Et){return d&256?Ke(t.createPropertyAccessExpression(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[Ue]),"value"),Et):Ke(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[Ue]),Et)}}function D9(e,t,n,i){const s=(t.getNodeCheckFlags(n)&256)!==0,o=[];return i.forEach((c,u)=>{const f=xi(u),g=[];g.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,Qr(e.createPropertyAccessExpression(Qr(e.createSuper(),8),f),8)))),s&&g.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(Qr(e.createPropertyAccessExpression(Qr(e.createSuper(),8),f),8),e.createIdentifier("v"))))),o.push(e.createPropertyAssignment(f,e.createObjectLiteralExpression(g)))}),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(o,!0)]))],2))}var qMe=Dt({"src/compiler/transformers/es2017.ts"(){Fs()}});function oae(e){const{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:i,endLexicalEnvironment:s,hoistVariableDeclaration:o}=e,c=e.getEmitResolver(),u=e.getCompilerOptions(),f=Fa(u),g=e.onEmitNode;e.onEmitNode=Vs;const d=e.onSubstituteNode;e.onSubstituteNode=_a;let y=!1,S,T,k,w=0,P=0,F,J,U,$;const j=[];return Gp(e,pe);function re(ne,we){return P!==(P&~ne|we)}function R(ne,we){const et=P;return P=(P&~ne|we)&3,et}function Y(ne){P=ne}function ue(ne){J=_r(J,t.createVariableDeclaration(ne))}function pe(ne){if(ne.isDeclarationFile)return ne;F=ne;const we=ft(ne);return ih(we,e.readEmitHelpers()),F=void 0,J=void 0,we}function H(ne){return ae(ne,!1)}function q(ne){return ae(ne,!0)}function ee(ne){if(ne.kind!==134)return ne}function oe(ne,we,et,B){if(re(et,B)){const Ge=R(et,B),mt=ne(we);return Y(Ge),mt}return ne(we)}function Se(ne){return ur(ne,H,e)}function ae(ne,we){if(!(ne.transformFlags&128))return ne;switch(ne.kind){case 223:return K(ne);case 229:return fe(ne);case 253:return ke(ne);case 256:return Oe(ne);case 210:return be(ne);case 226:return Fe(ne,we);case 361:return $e(ne,we);case 299:return Pt(ne);case 243:return at(ne);case 260:return Je(ne);case 246:case 247:case 249:return oe(Se,ne,0,2);case 250:return hr(ne,void 0);case 248:return oe(zt,ne,0,2);case 222:return Vt(ne);case 176:return oe(os,ne,2,1);case 174:return oe(ln,ne,2,1);case 177:return oe(yr,ne,2,1);case 178:return oe(_i,ne,2,1);case 262:return oe(Ht,ne,2,1);case 218:return oe(Et,ne,2,1);case 219:return oe(Ue,ne,2,0);case 169:return Ji(ne);case 244:return xe(ne);case 217:return De(ne,we);case 215:return ge(ne);case 211:return U&&Sn(ne)&&ne.expression.kind===108&&U.add(ne.name.escapedText),ur(ne,H,e);case 212:return U&&ne.expression.kind===108&&($=!0),ur(ne,H,e);case 263:case 231:return oe(Se,ne,2,1);default:return ur(ne,H,e)}}function K(ne){return T&2&&T&1?dn(Ke(t.createYieldExpression(void 0,n().createAwaitHelper(qe(ne.expression,H,ot))),ne),ne):ur(ne,H,e)}function fe(ne){if(T&2&&T&1){if(ne.asteriskToken){const we=qe(E.checkDefined(ne.expression),H,ot);return dn(Ke(t.createYieldExpression(void 0,n().createAwaitHelper(t.updateYieldExpression(ne,ne.asteriskToken,Ke(n().createAsyncDelegatorHelper(Ke(n().createAsyncValuesHelper(we),we)),we)))),ne),ne)}return dn(Ke(t.createYieldExpression(void 0,jt(ne.expression?qe(ne.expression,H,ot):t.createVoidZero())),ne),ne)}return ur(ne,H,e)}function ke(ne){return T&2&&T&1?t.updateReturnStatement(ne,jt(ne.expression?qe(ne.expression,H,ot):t.createVoidZero())):ur(ne,H,e)}function Oe(ne){if(T&2){const we=Iz(ne);return we.kind===250&&we.awaitModifier?hr(we,ne):t.restoreEnclosingLabel(qe(we,H,Ei,t.liftToBlock),ne)}return ur(ne,H,e)}function me(ne){let we;const et=[];for(const B of ne)if(B.kind===305){we&&(et.push(t.createObjectLiteralExpression(we)),we=void 0);const Ge=B.expression;et.push(qe(Ge,H,ot))}else we=_r(we,B.kind===303?t.createPropertyAssignment(B.name,qe(B.initializer,H,ot)):qe(B,H,Yg));return we&&et.push(t.createObjectLiteralExpression(we)),et}function be(ne){if(ne.transformFlags&65536){const we=me(ne.properties);we.length&&we[0].kind!==210&&we.unshift(t.createObjectLiteralExpression());let et=we[0];if(we.length>1){for(let B=1;B=2&&c.getNodeCheckFlags(ne)&384;if(nt){ns();const ir=D9(t,c,ne,U);j[Oa(ir)]=!0,mg(Ge,[ir])}Ge.push(Be);const wt=t.updateBlock(ne.body,Ge);return nt&&$&&(c.getNodeCheckFlags(ne)&256?YT(wt,kw):c.getNodeCheckFlags(ne)&128&&YT(wt,xw)),U=et,$=B,wt}function ei(ne){i();let we=0;const et=[],B=qe(ne.body,H,X7)??t.createBlock([]);Cs(B)&&(we=t.copyPrologue(B.statements,et,!1,H)),Nn(et,Ii(void 0,ne));const Ge=s();if(we>0||ct(et)||ct(Ge)){const mt=t.converters.convertToFunctionBlock(B,!0);return mg(et,Ge),Nn(et,mt.statements.slice(we)),t.updateBlock(mt,Ke(t.createNodeArray(et),mt.statements))}return B}function Ii(ne,we){let et=!1;for(const B of we.parameters)if(et){if(Ns(B.name)){if(B.name.elements.length>0){const Ge=v2(B,H,e,0,t.getGeneratedNameForNode(B));if(ct(Ge)){const mt=t.createVariableDeclarationList(Ge),Be=t.createVariableStatement(void 0,mt);Qr(Be,2097152),ne=_r(ne,Be)}}else if(B.initializer){const Ge=t.getGeneratedNameForNode(B),mt=qe(B.initializer,H,ot),Be=t.createAssignment(Ge,mt),nt=t.createExpressionStatement(Be);Qr(nt,2097152),ne=_r(ne,nt)}}else if(B.initializer){const Ge=t.cloneNode(B.name);Ke(Ge,B.name),Qr(Ge,96);const mt=qe(B.initializer,H,ot);Xd(mt,3168);const Be=t.createAssignment(Ge,mt);Ke(Be,B),Qr(Be,3072);const nt=t.createBlock([t.createExpressionStatement(Be)]);Ke(nt,B),Qr(nt,3905);const wt=t.createTypeCheck(t.cloneNode(B.name),"undefined"),ir=t.createIfStatement(wt,nt);bu(ir),Ke(ir,B),Qr(ir,2101056),ne=_r(ne,ir)}}else if(B.transformFlags&65536){et=!0;const Ge=v2(B,H,e,1,t.getGeneratedNameForNode(B),!1,!0);if(ct(Ge)){const mt=t.createVariableDeclarationList(Ge),Be=t.createVariableStatement(void 0,mt);Qr(Be,2097152),ne=_r(ne,Be)}}return ne}function ns(){S&1||(S|=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 Vs(ne,we,et){if(S&1&&tt(we)){const B=c.getNodeCheckFlags(we)&384;if(B!==w){const Ge=w;w=B,g(ne,we,et),w=Ge;return}}else if(S&&j[Oa(we)]){const B=w;w=0,g(ne,we,et),w=B;return}g(ne,we,et)}function _a(ne,we){return we=d(ne,we),ne===1&&w?cr(we):we}function cr(ne){switch(ne.kind){case 211:return br(ne);case 212:return Le(ne);case 213:return rt(ne)}return ne}function br(ne){return ne.expression.kind===108?Ke(t.createPropertyAccessExpression(t.createUniqueName("_super",48),ne.name),ne):ne}function Le(ne){return ne.expression.kind===108?yt(ne.argumentExpression,ne):ne}function rt(ne){const we=ne.expression;if(o_(we)){const et=Sn(we)?br(we):Le(we);return t.createCallExpression(t.createPropertyAccessExpression(et,"call"),void 0,[t.createThis(),...ne.arguments])}return ne}function tt(ne){const we=ne.kind;return we===263||we===176||we===174||we===177||we===178}function yt(ne,we){return w&256?Ke(t.createPropertyAccessExpression(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[ne]),"value"),we):Ke(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[ne]),we)}}var HMe=Dt({"src/compiler/transformers/es2018.ts"(){Fs()}});function cae(e){const t=e.factory;return Gp(e,n);function n(o){return o.isDeclarationFile?o:ur(o,i,e)}function i(o){if(!(o.transformFlags&64))return o;switch(o.kind){case 299:return s(o);default:return ur(o,i,e)}}function s(o){return o.variableDeclaration?ur(o,i,e):t.updateCatchClause(o,t.createVariableDeclaration(t.createTempVariable(void 0)),qe(o.block,i,Cs))}}var GMe=Dt({"src/compiler/transformers/es2019.ts"(){Fs()}});function lae(e){const{factory:t,hoistVariableDeclaration:n}=e;return Gp(e,i);function i(k){return k.isDeclarationFile?k:ur(k,s,e)}function s(k){if(!(k.transformFlags&32))return k;switch(k.kind){case 213:{const w=f(k,!1);return E.assertNotNode(w,fx),w}case 211:case 212:if(hu(k)){const w=d(k,!1,!1);return E.assertNotNode(w,fx),w}return ur(k,s,e);case 226:return k.operatorToken.kind===61?S(k):ur(k,s,e);case 220:return T(k);default:return ur(k,s,e)}}function o(k){E.assertNotNode(k,U7);const w=[k];for(;!k.questionDotToken&&!o2(k);)k=Ls(Bp(k.expression),hu),E.assertNotNode(k,U7),w.unshift(k);return{expression:k.expression,chain:w}}function c(k,w,P){const F=g(k.expression,w,P);return fx(F)?t.createSyntheticReferenceExpression(t.updateParenthesizedExpression(k,F.expression),F.thisArg):t.updateParenthesizedExpression(k,F)}function u(k,w,P){if(hu(k))return d(k,w,P);let F=qe(k.expression,s,ot);E.assertNotNode(F,fx);let J;return w&&(y2(F)?J=F:(J=t.createTempVariable(n),F=t.createAssignment(J,F))),F=k.kind===211?t.updatePropertyAccessExpression(k,F,qe(k.name,s,Ie)):t.updateElementAccessExpression(k,F,qe(k.argumentExpression,s,ot)),J?t.createSyntheticReferenceExpression(F,J):F}function f(k,w){if(hu(k))return d(k,w,!1);if(l_(k.expression)&&hu(Va(k.expression))){const P=c(k.expression,!0,!1),F=Dr(k.arguments,s,ot);return fx(P)?Ke(t.createFunctionCallCall(P.expression,P.thisArg,F),k):t.updateCallExpression(k,P,void 0,F)}return ur(k,s,e)}function g(k,w,P){switch(k.kind){case 217:return c(k,w,P);case 211:case 212:return u(k,w,P);case 213:return f(k,w);default:return qe(k,s,ot)}}function d(k,w,P){const{expression:F,chain:J}=o(k),U=g(Bp(F),hb(J[0]),!1);let $=fx(U)?U.thisArg:void 0,j=fx(U)?U.expression:U,re=t.restoreOuterExpressions(F,j,8);y2(j)||(j=t.createTempVariable(n),re=t.createAssignment(j,re));let R=j,Y;for(let pe=0;peae&&Nn(K,Dr(oe.statements,y,Ei,ae,fe-ae));break}fe++}E.assert(feP(K,ae))))],ae,Se===2)}return ur(oe,y,e)}function J(oe,Se,ae,K,fe){const ke=[];for(let be=Se;bet&&(t=i)}return t}function YMe(e){let t=0;for(const n of e){const i=uq(n.statements);if(i===2)return 2;i>t&&(t=i)}return t}var ZMe=Dt({"src/compiler/transformers/esnext.ts"(){Fs()}});function mae(e){const{factory:t,getEmitHelperFactory:n}=e,i=e.getCompilerOptions();let s,o;return Gp(e,y);function c(){if(o.filenameDeclaration)return o.filenameDeclaration.name;const ge=t.createVariableDeclaration(t.createUniqueName("_jsxFileName",48),void 0,void 0,t.createStringLiteral(s.fileName));return o.filenameDeclaration=ge,o.filenameDeclaration.name}function u(ge){return i.jsx===5?"jsxDEV":ge?"jsxs":"jsx"}function f(ge){const Fe=u(ge);return d(Fe)}function g(){return d("Fragment")}function d(ge){var Fe,$e;const Pt=ge==="createElement"?o.importSpecifier:fF(o.importSpecifier,i),at=($e=(Fe=o.utilizedImplicitRuntimeImports)==null?void 0:Fe.get(Pt))==null?void 0:$e.get(ge);if(at)return at.name;o.utilizedImplicitRuntimeImports||(o.utilizedImplicitRuntimeImports=new Map);let Je=o.utilizedImplicitRuntimeImports.get(Pt);Je||(Je=new Map,o.utilizedImplicitRuntimeImports.set(Pt,Je));const pt=t.createUniqueName(`_${ge}`,112),zt=t.createImportSpecifier(!1,t.createIdentifier(ge),pt);return zne(pt,zt),Je.set(ge,zt),pt}function y(ge){if(ge.isDeclarationFile)return ge;s=ge,o={},o.importSpecifier=_F(i,ge);let Fe=ur(ge,S,e);ih(Fe,e.readEmitHelpers());let $e=Fe.statements;if(o.filenameDeclaration&&($e=xb($e.slice(),t.createVariableStatement(void 0,t.createVariableDeclarationList([o.filenameDeclaration],2)))),o.utilizedImplicitRuntimeImports){for(const[Pt,at]of gs(o.utilizedImplicitRuntimeImports.entries()))if(Ic(ge)){const Je=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports(gs(at.values()))),t.createStringLiteral(Pt),void 0);sy(Je,!1),$e=xb($e.slice(),Je)}else if(af(ge)){const Je=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createObjectBindingPattern(gs(at.values(),pt=>t.createBindingElement(void 0,pt.propertyName,pt.name))),void 0,void 0,t.createCallExpression(t.createIdentifier("require"),void 0,[t.createStringLiteral(Pt)]))],2));sy(Je,!1),$e=xb($e.slice(),Je)}}return $e!==Fe.statements&&(Fe=t.updateSourceFile(Fe,$e)),o=void 0,Fe}function S(ge){return ge.transformFlags&2?T(ge):ge}function T(ge){switch(ge.kind){case 284:return J(ge,!1);case 285:return U(ge,!1);case 288:return $(ge,!1);case 294:return ft(ge);default:return ur(ge,S,e)}}function k(ge){switch(ge.kind){case 12:return fe(ge);case 294:return ft(ge);case 284:return J(ge,!0);case 285:return U(ge,!0);case 288:return $(ge,!0);default:return E.failBadSyntaxKind(ge)}}function w(ge){return ge.properties.some(Fe=>zc(Fe)&&(Ie(Fe.name)&&on(Fe.name)==="__proto__"||aa(Fe.name)&&Fe.name.text==="__proto__"))}function P(ge){let Fe=!1;for(const $e of ge.attributes.properties)if(dx($e)&&(!ua($e.expression)||$e.expression.properties.some(a0)))Fe=!0;else if(Fe&&Kd($e)&&Ie($e.name)&&$e.name.escapedText==="key")return!0;return!1}function F(ge){return o.importSpecifier===void 0||P(ge)}function J(ge,Fe){return(F(ge.openingElement)?ue:R)(ge.openingElement,ge.children,Fe,ge)}function U(ge,Fe){return(F(ge)?ue:R)(ge,void 0,Fe,ge)}function $(ge,Fe){return(o.importSpecifier===void 0?H:pe)(ge.openingFragment,ge.children,Fe,ge)}function j(ge){const Fe=re(ge);return Fe&&t.createObjectLiteralExpression([Fe])}function re(ge){const Fe=hC(ge);if(mr(Fe)===1&&!Fe[0].dotDotDotToken){const Pt=k(Fe[0]);return Pt&&t.createPropertyAssignment("children",Pt)}const $e=Ri(ge,k);return mr($e)?t.createPropertyAssignment("children",t.createArrayLiteralExpression($e)):void 0}function R(ge,Fe,$e,Pt){const at=xe(ge),Je=Fe&&Fe.length?re(Fe):void 0,pt=wn(ge.attributes.properties,hr=>!!hr.name&&Ie(hr.name)&&hr.name.escapedText==="key"),zt=pt?An(ge.attributes.properties,hr=>hr!==pt):ge.attributes.properties,Vt=mr(zt)?ee(zt,Je):t.createObjectLiteralExpression(Je?[Je]:Ve);return Y(at,Vt,pt,Fe||Ve,$e,Pt)}function Y(ge,Fe,$e,Pt,at,Je){var pt;const zt=hC(Pt),Vt=mr(zt)>1||!!((pt=zt[0])!=null&&pt.dotDotDotToken),hr=[ge,Fe];if($e&&hr.push(K($e.initializer)),i.jsx===5){const er=ic(s);if(er&&Ni(er)){$e===void 0&&hr.push(t.createVoidZero()),hr.push(Vt?t.createTrue():t.createFalse());const jt=Ha(er,Je.pos);hr.push(t.createObjectLiteralExpression([t.createPropertyAssignment("fileName",c()),t.createPropertyAssignment("lineNumber",t.createNumericLiteral(jt.line+1)),t.createPropertyAssignment("columnNumber",t.createNumericLiteral(jt.character+1))])),hr.push(t.createThis())}}const Lr=Ke(t.createCallExpression(f(Vt),void 0,hr),Je);return at&&bu(Lr),Lr}function ue(ge,Fe,$e,Pt){const at=xe(ge),Je=ge.attributes.properties,pt=mr(Je)?ee(Je):t.createNull(),zt=o.importSpecifier===void 0?JV(t,e.getEmitResolver().getJsxFactoryEntity(s),i.reactNamespace,ge):d("createElement"),Vt=hie(t,zt,at,pt,Ri(Fe,k),Pt);return $e&&bu(Vt),Vt}function pe(ge,Fe,$e,Pt){let at;if(Fe&&Fe.length){const Je=j(Fe);Je&&(at=Je)}return Y(g(),at||t.createObjectLiteralExpression([]),void 0,Fe,$e,Pt)}function H(ge,Fe,$e,Pt){const at=yie(t,e.getEmitResolver().getJsxFactoryEntity(s),e.getEmitResolver().getJsxFragmentFactoryEntity(s),i.reactNamespace,Ri(Fe,k),ge,Pt);return $e&&bu(at),at}function q(ge){return ua(ge.expression)&&!w(ge.expression)?nl(ge.expression.properties,Fe=>E.checkDefined(qe(Fe,S,Yg))):t.createSpreadAssignment(E.checkDefined(qe(ge.expression,S,ot)))}function ee(ge,Fe){const $e=Fa(i);return $e&&$e>=5?t.createObjectLiteralExpression(oe(ge,Fe)):Se(ge,Fe)}function oe(ge,Fe){const $e=Op(nB(ge,dx,(Pt,at)=>Op(nr(Pt,Je=>at?q(Je):ae(Je)))));return Fe&&$e.push(Fe),$e}function Se(ge,Fe){const $e=[];let Pt=[];for(const Je of ge){if(dx(Je)){if(ua(Je.expression)&&!w(Je.expression)){for(const pt of Je.expression.properties){if(a0(pt)){at(),$e.push(E.checkDefined(qe(pt.expression,S,ot)));continue}Pt.push(E.checkDefined(qe(pt,S)))}continue}at(),$e.push(E.checkDefined(qe(Je.expression,S,ot)));continue}Pt.push(ae(Je))}return Fe&&Pt.push(Fe),at(),$e.length&&!ua($e[0])&&$e.unshift(t.createObjectLiteralExpression()),Tm($e)||n().createAssignHelper($e);function at(){Pt.length&&($e.push(t.createObjectLiteralExpression(Pt)),Pt=[])}}function ae(ge){const Fe=De(ge),$e=K(ge.initializer);return t.createPropertyAssignment(Fe,$e)}function K(ge){if(ge===void 0)return t.createTrue();if(ge.kind===11){const Fe=ge.singleQuote!==void 0?ge.singleQuote:!A5(ge,s),$e=t.createStringLiteral(be(ge.text)||ge.text,Fe);return Ke($e,ge)}return ge.kind===294?ge.expression===void 0?t.createTrue():E.checkDefined(qe(ge.expression,S,ot)):Eg(ge)?J(ge,!1):$b(ge)?U(ge,!1):u2(ge)?$(ge,!1):E.failBadSyntaxKind(ge)}function fe(ge){const Fe=ke(ge.text);return Fe===void 0?void 0:t.createStringLiteral(Fe)}function ke(ge){let Fe,$e=0,Pt=-1;for(let at=0;at{if(Je)return Jk(parseInt(Je,10));if(pt)return Jk(parseInt(pt,16));{const Vt=zbe.get(zt);return Vt?Jk(Vt):Fe}})}function be(ge){const Fe=me(ge);return Fe===ge?void 0:Fe}function xe(ge){if(ge.kind===284)return xe(ge.openingElement);{const Fe=ge.tagName;return Ie(Fe)&&vC(Fe.escapedText)?t.createStringLiteral(on(Fe)):hd(Fe)?t.createStringLiteral(on(Fe.namespace)+":"+on(Fe.name)):Mw(t,Fe)}}function De(ge){const Fe=ge.name;if(Ie(Fe)){const $e=on(Fe);return/^[A-Za-z_]\w*$/.test($e)?Fe:t.createStringLiteral($e)}return t.createStringLiteral(on(Fe.namespace)+":"+on(Fe.name))}function ft(ge){const Fe=qe(ge.expression,S,ot);return ge.dotDotDotToken?t.createSpreadElement(Fe):Fe}}var zbe,KMe=Dt({"src/compiler/transformers/jsx.ts"(){Fs(),zbe=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 gae(e){const{factory:t,hoistVariableDeclaration:n}=e;return Gp(e,i);function i(f){return f.isDeclarationFile?f:ur(f,s,e)}function s(f){if(!(f.transformFlags&512))return f;switch(f.kind){case 226:return o(f);default:return ur(f,s,e)}}function o(f){switch(f.operatorToken.kind){case 68:return c(f);case 43:return u(f);default:return ur(f,s,e)}}function c(f){let g,d;const y=qe(f.left,s,ot),S=qe(f.right,s,ot);if(Co(y)){const T=t.createTempVariable(n),k=t.createTempVariable(n);g=Ke(t.createElementAccessExpression(Ke(t.createAssignment(T,y.expression),y.expression),Ke(t.createAssignment(k,y.argumentExpression),y.argumentExpression)),y),d=Ke(t.createElementAccessExpression(T,k),y)}else if(Sn(y)){const T=t.createTempVariable(n);g=Ke(t.createPropertyAccessExpression(Ke(t.createAssignment(T,y.expression),y.expression),y.name),y),d=Ke(t.createPropertyAccessExpression(T,y.name),y)}else g=y,d=y;return Ke(t.createAssignment(g,Ke(t.createGlobalMethodCall("Math","pow",[d,S]),f)),f)}function u(f){const g=qe(f.left,s,ot),d=qe(f.right,s,ot);return Ke(t.createGlobalMethodCall("Math","pow",[g,d]),f)}}var eRe=Dt({"src/compiler/transformers/es2016.ts"(){Fs()}});function Wbe(e,t){return{kind:e,expression:t}}function hae(e){const{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:i,resumeLexicalEnvironment:s,endLexicalEnvironment:o,hoistVariableDeclaration:c}=e,u=e.getCompilerOptions(),f=e.getEmitResolver(),g=e.onSubstituteNode,d=e.onEmitNode;e.onEmitNode=Nf,e.onSubstituteNode=Kf;let y,S,T,k;function w(Q){k=_r(k,t.createVariableDeclaration(Q))}let P,F;return Gp(e,J);function J(Q){if(Q.isDeclarationFile)return Q;y=Q,S=Q.text;const Ye=ee(Q);return ih(Ye,e.readEmitHelpers()),y=void 0,S=void 0,k=void 0,T=0,Ye}function U(Q,Ye){const Ct=T;return T=(T&~Q|Ye)&32767,Ct}function $(Q,Ye,Ct){T=(T&~Ye|Ct)&-32768|Q}function j(Q){return(T&8192)!==0&&Q.kind===253&&!Q.expression}function re(Q){return Q.transformFlags&4194304&&(Up(Q)||qb(Q)||iie(Q)||d3(Q)||m3(Q)||zC(Q)||h3(Q)||Gb(Q)||f2(Q)||c2(Q)||X0(Q,!1)||Cs(Q))}function R(Q){return(Q.transformFlags&1024)!==0||P!==void 0||T&8192&&re(Q)||X0(Q,!1)&&$i(Q)||(Jp(Q)&1)!==0}function Y(Q){return R(Q)?q(Q,!1):Q}function ue(Q){return R(Q)?q(Q,!0):Q}function pe(Q){if(R(Q)){const Ye=ic(Q);if(xs(Ye)&&Bc(Ye)){const Ct=U(32670,16449),At=q(Q,!1);return $(Ct,229376,0),At}return q(Q,!1)}return Q}function H(Q){return Q.kind===108?Ec(Q,!0):Y(Q)}function q(Q,Ye){switch(Q.kind){case 126:return;case 263:return xe(Q);case 231:return De(Q);case 169:return _a(Q);case 262:return Yt(Q);case 219:return wt(Q);case 218:return ir(Q);case 260:return ar(Q);case 80:return me(Q);case 261:return Ce(Q);case 255:return oe(Q);case 269:return Se(Q);case 241:return Pe(Q);case 252:case 251:return be(Q);case 256:return fi(Q);case 246:case 247:return Cn(Q,void 0);case 248:return Qi(Q,void 0);case 249:return ci(Q,void 0);case 250:return In(Q,void 0);case 244:return St(Q);case 210:return _s(Q);case 299:return li(Q);case 304:return gl(Q);case 167:return yo(Q);case 209:return $a(Q);case 213:return hl(Q);case 214:return Ep(Q);case 217:return A(Q,Ye);case 226:return le(Q,Ye);case 361:return V(Q,Ye);case 15:case 16:case 17:case 18:return Is(Q);case 11:return Cc(Q);case 9:return Uc(Q);case 215:return jo(Q);case 228:return Ho(Q);case 229:return Vc(Q);case 230:return Ds(Q);case 108:return Ec(Q,!1);case 110:return ke(Q);case 236:return yl(Q);case 174:return Ps(Q);case 177:case 178:return Qo(Q);case 243:return Ne(Q);case 253:return fe(Q);case 222:return Oe(Q);default:return ur(Q,Y,e)}}function ee(Q){const Ye=U(8064,64),Ct=[],At=[];i();const O=t.copyPrologue(Q.statements,Ct,!1,Y);return Nn(At,Dr(Q.statements,Y,Ei,O)),k&&At.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(k))),t.mergeLexicalEnvironment(Ct,o()),ne(Ct,Q),$(Ye,0,0),t.updateSourceFile(Q,Ke(t.createNodeArray(es(Ct,At)),Q.statements))}function oe(Q){if(P!==void 0){const Ye=P.allowedNonLabeledJumps;P.allowedNonLabeledJumps|=2;const Ct=ur(Q,Y,e);return P.allowedNonLabeledJumps=Ye,Ct}return ur(Q,Y,e)}function Se(Q){const Ye=U(7104,0),Ct=ur(Q,Y,e);return $(Ye,0,0),Ct}function ae(Q){return dn(t.createReturnStatement(K()),Q)}function K(){return t.createUniqueName("_this",48)}function fe(Q){return P?(P.nonLocalJumps|=8,j(Q)&&(Q=ae(Q)),t.createReturnStatement(t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("value"),Q.expression?E.checkDefined(qe(Q.expression,Y,ot)):t.createVoidZero())]))):j(Q)?ae(Q):ur(Q,Y,e)}function ke(Q){return T|=65536,T&2&&!(T&16384)&&(T|=131072),P?T&2?(P.containsLexicalThis=!0,Q):P.thisName||(P.thisName=t.createUniqueName("this")):Q}function Oe(Q){return ur(Q,ue,e)}function me(Q){return P&&f.isArgumentsLocalBinding(Q)?P.argumentsName||(P.argumentsName=t.createUniqueName("arguments")):Q.flags&256?dn(Ke(t.createIdentifier(xi(Q.escapedText)),Q),Q):Q}function be(Q){if(P){const Ye=Q.kind===252?2:4;if(!(Q.label&&P.labels&&P.labels.get(on(Q.label))||!Q.label&&P.allowedNonLabeledJumps&Ye)){let At;const O=Q.label;O?Q.kind===252?(At=`break-${O.escapedText}`,X(P,!0,on(O),At)):(At=`continue-${O.escapedText}`,X(P,!1,on(O),At)):Q.kind===252?(P.nonLocalJumps|=2,At="break"):(P.nonLocalJumps|=4,At="continue");let he=t.createStringLiteral(At);if(P.loopOutParameters.length){const Xe=P.loopOutParameters;let Ft;for(let zr=0;zrIe(Ye.name)&&!Ye.initializer)}function pt(Q){if(Eb(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:{const Ye=Q;return Pa(Ye.name)?!!Ss(Ye.name,pt):!1}}return!!Ss(Q,pt)}function zt(Q,Ye,Ct,At){const O=!!Ct&&xc(Ct.expression).kind!==106;if(!Q)return at(Ye,O);const he=[],Xe=[];s();const Ft=t.copyStandardPrologue(Q.body.statements,he,0);(At||pt(Q.body))&&(T|=8192),Nn(Xe,Dr(Q.body.statements,Y,Ei,Ft));const zr=O||T&8192;br(he,Q),yt(he,Q,At),et(he,Q),zr?we(he,Q,ns()):ne(he,Q),t.mergeLexicalEnvironment(he,o()),zr&&!Ii(Q.body)&&Xe.push(t.createReturnStatement(K()));const Vn=t.createBlock(Ke(t.createNodeArray([...he,...Xe]),Q.body.statements),!0);return Ke(Vn,Q.body),ei(Vn,Q.body,At)}function Vt(Q){return Oo(Q)&&on(Q)==="_this"}function hr(Q){return Oo(Q)&&on(Q)==="_super"}function Lr(Q){return ac(Q)&&Q.declarationList.declarations.length===1&&er(Q.declarationList.declarations[0])}function er(Q){return hi(Q)&&Vt(Q.name)&&!!Q.initializer}function jt(Q){return il(Q,!0)&&Vt(Q.left)}function Rt(Q){return Rs(Q)&&Sn(Q.expression)&&hr(Q.expression.expression)&&Ie(Q.expression.name)&&(on(Q.expression.name)==="call"||on(Q.expression.name)==="apply")&&Q.arguments.length>=1&&Q.arguments[0].kind===110}function Kn(Q){return Zr(Q)&&Q.operatorToken.kind===57&&Q.right.kind===110&&Rt(Q.left)}function Ji(Q){return Zr(Q)&&Q.operatorToken.kind===56&&Zr(Q.left)&&Q.left.operatorToken.kind===38&&hr(Q.left.left)&&Q.left.right.kind===106&&Rt(Q.right)&&on(Q.right.expression.name)==="apply"}function yi(Q){return Zr(Q)&&Q.operatorToken.kind===57&&Q.right.kind===110&&Ji(Q.left)}function os(Q){return jt(Q)&&Kn(Q.right)}function yr(Q){return jt(Q)&&yi(Q.right)}function _i(Q){return Rt(Q)||Kn(Q)||os(Q)||Ji(Q)||yi(Q)||yr(Q)}function ln(Q){for(let Ye=0;Ye0;At--){const O=Q.statements[At];if(Up(O)&&O.expression&&Vt(O.expression)){const he=Q.statements[At-1];let Xe;if(Cl(he)&&os(xc(he.expression)))Xe=he.expression;else if(Ct&&Lr(he)){const Vn=he.declarationList.declarations[0];_i(xc(Vn.initializer))&&(Xe=t.createAssignment(K(),Vn.initializer))}if(!Xe)break;const Ft=t.createReturnStatement(Xe);dn(Ft,he),Ke(Ft,he);const zr=t.createNodeArray([...Q.statements.slice(0,At-1),Ft,...Q.statements.slice(At+1)]);return Ke(zr,Q.statements),t.updateBlock(Q,zr)}}return Q}function Ue(Q){if(Lr(Q)){if(Q.declarationList.declarations[0].initializer.kind===110)return}else if(jt(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:{const Ye=Q;return Pa(Ye.name)?t.replacePropertyName(Ye,ur(Ye.name,Ue,void 0)):Q}}return ur(Q,Ue,void 0)}function Et(Q,Ye){if(Ye.transformFlags&16384||T&65536||T&131072)return Q;for(const Ct of Ye.statements)if(Ct.transformFlags&134217728&&!T9(Ct))return Q;return t.updateBlock(Q,Dr(Q.statements,Ue,Ei))}function fr(Q){if(Rt(Q)&&Q.arguments.length===2&&Ie(Q.arguments[1])&&on(Q.arguments[1])==="arguments")return t.createLogicalAnd(t.createStrictInequality(dc(),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:{const Ye=Q;return Pa(Ye.name)?t.replacePropertyName(Ye,ur(Ye.name,fr,void 0)):Q}}return ur(Q,fr,void 0)}function Hn(Q){return t.updateBlock(Q,Dr(Q.statements,fr,Ei))}function ei(Q,Ye,Ct){const At=Q;return Q=ln(Q),Q=Ht(Q,Ye),Q!==At&&(Q=Et(Q,Ye)),Ct&&(Q=Hn(Q)),Q}function Ii(Q){if(Q.kind===253)return!0;if(Q.kind===245){const Ye=Q;if(Ye.elseStatement)return Ii(Ye.thenStatement)&&Ii(Ye.elseStatement)}else if(Q.kind===241){const Ye=Do(Q.statements);if(Ye&&Ii(Ye))return!0}return!1}function ns(){return Qr(t.createThis(),8)}function Vs(){return t.createLogicalOr(t.createLogicalAnd(t.createStrictInequality(dc(),t.createNull()),t.createFunctionApplyCall(dc(),ns(),t.createIdentifier("arguments"))),ns())}function _a(Q){if(!Q.dotDotDotToken)return Ns(Q.name)?dn(Ke(t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(Q),void 0,void 0,void 0),Q),Q):Q.initializer?dn(Ke(t.createParameterDeclaration(void 0,void 0,Q.name,void 0,void 0,void 0),Q),Q):Q}function cr(Q){return Q.initializer!==void 0||Ns(Q.name)}function br(Q,Ye){if(!ct(Ye.parameters,cr))return!1;let Ct=!1;for(const At of Ye.parameters){const{name:O,initializer:he,dotDotDotToken:Xe}=At;Xe||(Ns(O)?Ct=Le(Q,At,O,he)||Ct:he&&(rt(Q,At,O,he),Ct=!0))}return Ct}function Le(Q,Ye,Ct,At){return Ct.elements.length>0?(xb(Q,Qr(t.createVariableStatement(void 0,t.createVariableDeclarationList(v2(Ye,Y,e,0,t.getGeneratedNameForNode(Ye)))),2097152)),!0):At?(xb(Q,Qr(t.createExpressionStatement(t.createAssignment(t.getGeneratedNameForNode(Ye),E.checkDefined(qe(At,Y,ot)))),2097152)),!0):!1}function rt(Q,Ye,Ct,At){At=E.checkDefined(qe(At,Y,ot));const O=t.createIfStatement(t.createTypeCheck(t.cloneNode(Ct),"undefined"),Qr(Ke(t.createBlock([t.createExpressionStatement(Qr(Ke(t.createAssignment(Qr(ba(Ke(t.cloneNode(Ct),Ct),Ct.parent),96),Qr(At,96|ha(At)|3072)),Ye),3072))]),Ye),3905));bu(O),Ke(O,Ye),Qr(O,2101056),xb(Q,O)}function tt(Q,Ye){return!!(Q&&Q.dotDotDotToken&&!Ye)}function yt(Q,Ye,Ct){const At=[],O=Do(Ye.parameters);if(!tt(O,Ct))return!1;const he=O.name.kind===80?ba(Ke(t.cloneNode(O.name),O.name),O.name.parent):t.createTempVariable(void 0);Qr(he,96);const Xe=O.name.kind===80?t.cloneNode(O.name):he,Ft=Ye.parameters.length-1,zr=t.createLoopVariable();At.push(Qr(Ke(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(he,void 0,void 0,t.createArrayLiteralExpression([]))])),O),2097152));const Vn=t.createForStatement(Ke(t.createVariableDeclarationList([t.createVariableDeclaration(zr,void 0,void 0,t.createNumericLiteral(Ft))]),O),Ke(t.createLessThan(zr,t.createPropertyAccessExpression(t.createIdentifier("arguments"),"length")),O),Ke(t.createPostfixIncrement(zr),O),t.createBlock([bu(Ke(t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(Xe,Ft===0?zr:t.createSubtract(zr,t.createNumericLiteral(Ft))),t.createElementAccessExpression(t.createIdentifier("arguments"),zr))),O))]));return Qr(Vn,2097152),bu(Vn),At.push(Vn),O.name.kind!==80&&At.push(Qr(Ke(t.createVariableStatement(void 0,t.createVariableDeclarationList(v2(O,Y,e,0,Xe))),O),2097152)),dz(Q,At),!0}function ne(Q,Ye){return T&131072&&Ye.kind!==219?(we(Q,Ye,t.createThis()),!0):!1}function we(Q,Ye,Ct){Ku();const At=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(K(),void 0,void 0,Ct)]));Qr(At,2100224),sa(At,Ye),xb(Q,At)}function et(Q,Ye){if(T&32768){let Ct;switch(Ye.kind){case 219:return Q;case 174:case 177:case 178:Ct=t.createVoidZero();break;case 176:Ct=t.createPropertyAccessExpression(Qr(t.createThis(),8),"constructor");break;case 262:case 218:Ct=t.createConditionalExpression(t.createLogicalAnd(Qr(t.createThis(),8),t.createBinaryExpression(Qr(t.createThis(),8),104,t.getLocalName(Ye))),void 0,t.createPropertyAccessExpression(Qr(t.createThis(),8),"constructor"),void 0,t.createVoidZero());break;default:return E.failBadSyntaxKind(Ye)}const At=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_newTarget",48),void 0,void 0,Ct)]));Qr(At,2100224),xb(Q,At)}return Q}function B(Q,Ye){for(const Ct of Ye.members)switch(Ct.kind){case 240:Q.push(Ge(Ct));break;case 174:Q.push(mt(Ag(Ye,Ct),Ct,Ye));break;case 177:case 178:const At=Mb(Ye.members,Ct);Ct===At.firstAccessor&&Q.push(Be(Ag(Ye,Ct),At,Ye));break;case 176:case 175:break;default:E.failBadSyntaxKind(Ct,y&&y.fileName);break}}function Ge(Q){return Ke(t.createEmptyStatement(),Q)}function mt(Q,Ye,Ct){const At=Qd(Ye),O=n0(Ye),he=Kt(Ye,Ye,void 0,Ct),Xe=qe(Ye.name,Y,Ac);E.assert(Xe);let Ft;if(!Pi(Xe)&&i3(e.getCompilerOptions())){const Vn=Pa(Xe)?Xe.expression:Ie(Xe)?t.createStringLiteral(xi(Xe.escapedText)):Xe;Ft=t.createObjectDefinePropertyCall(Q,Vn,t.createPropertyDescriptor({value:he,enumerable:!1,writable:!0,configurable:!0}))}else{const Vn=Zb(t,Q,Xe,Ye.name);Ft=t.createAssignment(Vn,he)}Qr(he,3072),sa(he,O);const zr=Ke(t.createExpressionStatement(Ft),Ye);return dn(zr,Ye),Nc(zr,At),Qr(zr,96),zr}function Be(Q,Ye,Ct){const At=t.createExpressionStatement(nt(Q,Ye,Ct,!1));return Qr(At,3072),sa(At,n0(Ye.firstAccessor)),At}function nt(Q,{firstAccessor:Ye,getAccessor:Ct,setAccessor:At},O,he){const Xe=ba(Ke(t.cloneNode(Q),Q),Q.parent);Qr(Xe,3136),sa(Xe,Ye.name);const Ft=qe(Ye.name,Y,Ac);if(E.assert(Ft),Pi(Ft))return E.failBadSyntaxKind(Ft,"Encountered unhandled private identifier while transforming ES2015.");const zr=WV(t,Ft);Qr(zr,3104),sa(zr,Ye.name);const Vn=[];if(Ct){const ji=Kt(Ct,void 0,void 0,O);sa(ji,n0(Ct)),Qr(ji,1024);const fa=t.createPropertyAssignment("get",ji);Nc(fa,Qd(Ct)),Vn.push(fa)}if(At){const ji=Kt(At,void 0,void 0,O);sa(ji,n0(At)),Qr(ji,1024);const fa=t.createPropertyAssignment("set",ji);Nc(fa,Qd(At)),Vn.push(fa)}Vn.push(t.createPropertyAssignment("enumerable",Ct||At?t.createFalse():t.createTrue()),t.createPropertyAssignment("configurable",t.createTrue()));const Ln=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[Xe,zr,t.createObjectLiteralExpression(Vn,!0)]);return he&&bu(Ln),Ln}function wt(Q){Q.transformFlags&16384&&!(T&16384)&&(T|=131072);const Ye=P;P=void 0;const Ct=U(15232,66),At=t.createFunctionExpression(void 0,void 0,void 0,void 0,tc(Q.parameters,Y,e),void 0,W(Q));return Ke(At,Q),dn(At,Q),Qr(At,16),$(Ct,0,0),P=Ye,At}function ir(Q){const Ye=ha(Q)&524288?U(32662,69):U(32670,65),Ct=P;P=void 0;const At=tc(Q.parameters,Y,e),O=W(Q),he=T&32768?t.getLocalName(Q):Q.name;return $(Ye,229376,0),P=Ct,t.updateFunctionExpression(Q,void 0,Q.asteriskToken,he,void 0,At,void 0,O)}function Yt(Q){const Ye=P;P=void 0;const Ct=U(32670,65),At=tc(Q.parameters,Y,e),O=W(Q),he=T&32768?t.getLocalName(Q):Q.name;return $(Ct,229376,0),P=Ye,t.updateFunctionDeclaration(Q,Dr(Q.modifiers,Y,ta),Q.asteriskToken,he,void 0,At,void 0,O)}function Kt(Q,Ye,Ct,At){const O=P;P=void 0;const he=At&&$n(At)&&!Ms(Q)?U(32670,73):U(32670,65),Xe=tc(Q.parameters,Y,e),Ft=W(Q);return T&32768&&!Ct&&(Q.kind===262||Q.kind===218)&&(Ct=t.getGeneratedNameForNode(Q)),$(he,229376,0),P=O,dn(Ke(t.createFunctionExpression(void 0,Q.asteriskToken,Ct,void 0,Xe,void 0,Ft),Ye),Q)}function W(Q){let Ye=!1,Ct=!1,At,O;const he=[],Xe=[],Ft=Q.body;let zr;if(s(),Cs(Ft)&&(zr=t.copyStandardPrologue(Ft.statements,he,0,!1),zr=t.copyCustomPrologue(Ft.statements,Xe,zr,Y,d5),zr=t.copyCustomPrologue(Ft.statements,Xe,zr,Y,m5)),Ye=br(Xe,Q)||Ye,Ye=yt(Xe,Q,!1)||Ye,Cs(Ft))zr=t.copyCustomPrologue(Ft.statements,Xe,zr,Y),At=Ft.statements,Nn(Xe,Dr(Ft.statements,Y,Ei,zr)),!Ye&&Ft.multiLine&&(Ye=!0);else{E.assert(Q.kind===219),At=eF(Ft,-1);const Ln=Q.equalsGreaterThanToken;!ko(Ln)&&!ko(Ft)&&(Y8(Ln,Ft,y)?Ct=!0:Ye=!0);const ji=qe(Ft,Y,ot),fa=t.createReturnStatement(ji);Ke(fa,Ft),Lne(fa,Ft),Qr(fa,2880),Xe.push(fa),O=Ft}if(t.mergeLexicalEnvironment(he,o()),et(he,Q),ne(he,Q),ct(he)&&(Ye=!0),Xe.unshift(...he),Cs(Ft)&&ud(Xe,Ft.statements))return Ft;const Vn=t.createBlock(Ke(t.createNodeArray(Xe),At),Ye);return Ke(Vn,Q.body),!Ye&&Ct&&Qr(Vn,1),O&&One(Vn,20,O),dn(Vn,Q.body),Vn}function Pe(Q,Ye){const Ct=T&256?U(7104,512):U(6976,128),At=ur(Q,Y,e);return $(Ct,0,0),At}function St(Q){return ur(Q,ue,e)}function A(Q,Ye){return ur(Q,Ye?ue:Y,e)}function le(Q,Ye){return e0(Q)?rS(Q,Y,e,0,!Ye):Q.operatorToken.kind===28?t.updateBinaryExpression(Q,E.checkDefined(qe(Q.left,ue,ot)),Q.operatorToken,E.checkDefined(qe(Q.right,Ye?ue:Y,ot))):ur(Q,Y,e)}function V(Q,Ye){if(Ye)return ur(Q,ue,e);let Ct;for(let O=0;Ozr.name)),Ft=At?t.createYieldExpression(t.createToken(42),Qr(Xe,8388608)):Xe;if(he)O.push(t.createExpressionStatement(Ft)),so(Ye.loopOutParameters,1,0,O);else{const zr=t.createUniqueName("state"),Vn=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(zr,void 0,void 0,Ft)]));if(O.push(Vn),so(Ye.loopOutParameters,1,0,O),Ye.nonLocalJumps&8){let Ln;Ct?(Ct.nonLocalJumps|=8,Ln=t.createReturnStatement(zr)):Ln=t.createReturnStatement(t.createPropertyAccessExpression(zr,"value")),O.push(t.createIfStatement(t.createTypeCheck(zr,"object"),Ln))}if(Ye.nonLocalJumps&2&&O.push(t.createIfStatement(t.createStrictEquality(zr,t.createStringLiteral("break")),t.createBreakStatement())),Ye.labeledNonLocalBreaks||Ye.labeledNonLocalContinues){const Ln=[];Ee(Ye.labeledNonLocalBreaks,!0,zr,Ct,Ln),Ee(Ye.labeledNonLocalContinues,!1,zr,Ct,Ln),O.push(t.createSwitchStatement(zr,t.createCaseBlock(Ln)))}}return O}function X(Q,Ye,Ct,At){Ye?(Q.labeledNonLocalBreaks||(Q.labeledNonLocalBreaks=new Map),Q.labeledNonLocalBreaks.set(Ct,At)):(Q.labeledNonLocalContinues||(Q.labeledNonLocalContinues=new Map),Q.labeledNonLocalContinues.set(Ct,At))}function Ee(Q,Ye,Ct,At,O){Q&&Q.forEach((he,Xe)=>{const Ft=[];if(!At||At.labels&&At.labels.get(Xe)){const zr=t.createIdentifier(Xe);Ft.push(Ye?t.createBreakStatement(zr):t.createContinueStatement(zr))}else X(At,Ye,Xe,he),Ft.push(t.createReturnStatement(Ct));O.push(t.createCaseClause(t.createStringLiteral(he),Ft))})}function lt(Q,Ye,Ct,At,O){const he=Ye.name;if(Ns(he))for(const Xe of he.elements)dl(Xe)||lt(Q,Xe,Ct,At,O);else{Ct.push(t.createParameterDeclaration(void 0,void 0,he));const Xe=f.getNodeCheckFlags(Ye);if(Xe&65536||O){const Ft=t.createUniqueName("out_"+on(he));let zr=0;Xe&65536&&(zr|=1),Hb(Q)&&(Q.initializer&&f.isBindingCapturedByNode(Q.initializer,Ye)&&(zr|=2),(Q.condition&&f.isBindingCapturedByNode(Q.condition,Ye)||Q.incrementor&&f.isBindingCapturedByNode(Q.incrementor,Ye))&&(zr|=1)),At.push({flags:zr,originalName:he,outParamName:Ft})}}}function Xt(Q,Ye,Ct,At){const O=Ye.properties,he=O.length;for(let Xe=At;Xeac(p_)&&!!va(p_.declarationList.declarations).initializer,At=P;P=void 0;const O=Dr(Ye.statements,pe,Ei);P=At;const he=An(O,Ct),Xe=An(O,p_=>!Ct(p_)),zr=Ls(va(he),ac).declarationList.declarations[0],Vn=xc(zr.initializer);let Ln=Wn(Vn,il);!Ln&&Zr(Vn)&&Vn.operatorToken.kind===28&&(Ln=Wn(Vn.left,il));const ji=Ls(Ln?xc(Ln.right):Vn,Rs),fa=Ls(xc(ji.expression),lo),pa=fa.body.statements;let lc=0,Rl=-1;const Kc=[];if(Ln){const p_=Wn(pa[lc],Cl);p_&&(Kc.push(p_),lc++),Kc.push(pa[lc]),lc++,Kc.push(t.createExpressionStatement(t.createAssignment(Ln.left,Ls(zr.name,Ie))))}for(;!Up(Uh(pa,Rl));)Rl--;Nn(Kc,pa,lc,Rl),Rl<-1&&Nn(Kc,pa,Rl+1);const G_=Wn(Uh(pa,Rl),Up);for(const p_ of Xe)Up(p_)&&(G_!=null&&G_.expression)&&!Ie(G_.expression)?Kc.push(G_):Kc.push(p_);return Nn(Kc,he,1),t.restoreOuterExpressions(Q.expression,t.restoreOuterExpressions(zr.initializer,t.restoreOuterExpressions(Ln&&Ln.right,t.updateCallExpression(ji,t.restoreOuterExpressions(ji.expression,t.updateFunctionExpression(fa,void 0,void 0,void 0,void 0,fa.parameters,void 0,t.updateBlock(fa.body,Kc))),void 0,ji.arguments))))}function cl(Q,Ye){if(Q.transformFlags&32768||Q.expression.kind===108||o_(xc(Q.expression))){const{target:Ct,thisArg:At}=t.createCallBinding(Q.expression,c);Q.expression.kind===108&&Qr(At,8);let O;if(Q.transformFlags&32768?O=t.createFunctionApplyCall(E.checkDefined(qe(Ct,H,ot)),Q.expression.kind===108?At:E.checkDefined(qe(At,Y,ot)),Ju(Q.arguments,!0,!1,!1)):O=Ke(t.createFunctionCallCall(E.checkDefined(qe(Ct,H,ot)),Q.expression.kind===108?At:E.checkDefined(qe(At,Y,ot)),Dr(Q.arguments,Y,ot)),Q),Q.expression.kind===108){const he=t.createLogicalOr(O,ns());O=t.createAssignment(K(),he)}return dn(O,Q)}return Eb(Q)&&(T|=131072),ur(Q,Y,e)}function Ep(Q){if(ct(Q.arguments,gd)){const{target:Ye,thisArg:Ct}=t.createCallBinding(t.createPropertyAccessExpression(Q.expression,"bind"),c);return t.createNewExpression(t.createFunctionApplyCall(E.checkDefined(qe(Ye,Y,ot)),Ct,Ju(t.createNodeArray([t.createVoidZero(),...Q.arguments]),!0,!1,!1)),void 0,[])}return ur(Q,Y,e)}function Ju(Q,Ye,Ct,At){const O=Q.length,he=Op(nB(Q,Te,(Vn,Ln,ji,fa)=>Ln(Vn,Ct,At&&fa===O)));if(he.length===1){const Vn=he[0];if(Ye&&!u.downlevelIteration||BW(Vn.expression)||o3(Vn.expression,"___spreadArray"))return Vn.expression}const Xe=n(),Ft=he[0].kind!==0;let zr=Ft?t.createArrayLiteralExpression():he[0].expression;for(let Vn=Ft?0:1;Vn0&&At.push(t.createStringLiteral(Ct.literal.text)),Ye=t.createCallExpression(t.createPropertyAccessExpression(Ye,"concat"),void 0,At)}return Ke(Ye,Q)}function dc(){return t.createUniqueName("_super",48)}function Ec(Q,Ye){const Ct=T&8&&!Ye?t.createPropertyAccessExpression(dn(dc(),Q),"prototype"):dc();return dn(Ct,Q),Nc(Ct,Q),sa(Ct,Q),Ct}function yl(Q){return Q.keywordToken===105&&Q.name.escapedText==="target"?(T|=32768,t.createUniqueName("_newTarget",48)):Q}function Nf(Q,Ye,Ct){if(F&1&&As(Ye)){const At=U(32670,ha(Ye)&16?81:65);d(Q,Ye,Ct),$(At,0,0);return}d(Q,Ye,Ct)}function __(){F&2||(F|=2,e.enableSubstitution(80))}function Ku(){F&1||(F|=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 Kf(Q,Ye){return Ye=g(Q,Ye),Q===1?_h(Ye):Ie(Ye)?sm(Ye):Ye}function sm(Q){if(F&2&&!VV(Q)){const Ye=as(Q,Ie);if(Ye&&qm(Ye))return Ke(t.getGeneratedNameForNode(Ye),Q)}return Q}function qm(Q){switch(Q.parent.kind){case 208:case 263:case 266:case 260:return Q.parent.name===Q&&f.isDeclarationWithCollidingName(Q.parent)}return!1}function _h(Q){switch(Q.kind){case 80:return _u(Q);case 110:return H_(Q)}return Q}function _u(Q){if(F&2&&!VV(Q)){const Ye=f.getReferencedDeclarationWithCollidingName(Q);if(Ye&&!($n(Ye)&&fh(Ye,Q)))return Ke(t.getGeneratedNameForNode(us(Ye)),Q)}return Q}function fh(Q,Ye){let Ct=as(Ye);if(!Ct||Ct===Q||Ct.end<=Q.pos||Ct.pos>=Q.end)return!1;const At=Nm(Q);for(;Ct;){if(Ct===At||Ct===Q)return!1;if(Tl(Ct)&&Ct.parent===Q)return!0;Ct=Ct.parent}return!1}function H_(Q){return F&1&&T&16?Ke(K(),Q):Q}function Ag(Q,Ye){return Ms(Ye)?t.getInternalName(Q):t.createPropertyAccessExpression(t.getInternalName(Q),"prototype")}function f_(Q,Ye){if(!Q||!Ye||ct(Q.parameters))return!1;const Ct=bl(Q.body.statements);if(!Ct||!ko(Ct)||Ct.kind!==244)return!1;const At=Ct.expression;if(!ko(At)||At.kind!==213)return!1;const O=At.expression;if(!ko(O)||O.kind!==108)return!1;const he=Tm(At.arguments);if(!he||!ko(he)||he.kind!==230)return!1;const Xe=he.expression;return Ie(Xe)&&Xe.escapedText==="arguments"}}var tRe=Dt({"src/compiler/transformers/es2015.ts"(){Fs()}});function yae(e){const{factory:t}=e,n=e.getCompilerOptions();let i,s;(n.jsx===1||n.jsx===3)&&(i=e.onEmitNode,e.onEmitNode=u,e.enableEmitNotification(286),e.enableEmitNotification(287),e.enableEmitNotification(285),s=[]);const o=e.onSubstituteNode;return e.onSubstituteNode=f,e.enableSubstitution(211),e.enableSubstitution(303),Gp(e,c);function c(S){return S}function u(S,T,k){switch(T.kind){case 286:case 287:case 285:const w=T.tagName;s[cu(w)]=!0;break}i(S,T,k)}function f(S,T){return T.id&&s&&s[T.id]?o(S,T):(T=o(S,T),Sn(T)?g(T):zc(T)?d(T):T)}function g(S){if(Pi(S.name))return S;const T=y(S.name);return T?Ke(t.createElementAccessExpression(S.expression,T),S):S}function d(S){const T=Ie(S.name)&&y(S.name);return T?t.updatePropertyAssignment(S,T,S.initializer):S}function y(S){const T=v1(S);if(T!==void 0&&T>=83&&T<=118)return Ke(t.createStringLiteralFromNode(S),S)}}var rRe=Dt({"src/compiler/transformers/es5.ts"(){Fs()}});function nRe(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 vae(e){const{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:i,endLexicalEnvironment:s,hoistFunctionDeclaration:o,hoistVariableDeclaration:c}=e,u=e.getCompilerOptions(),f=Fa(u),g=e.getEmitResolver(),d=e.onSubstituteNode;e.onSubstituteNode=St;let y,S,T,k,w,P,F,J,U,$,j=1,re,R,Y,ue,pe=0,H=0,q,ee,oe,Se,ae,K,fe,ke;return Gp(e,Oe);function Oe(Te){if(Te.isDeclarationFile||!(Te.transformFlags&2048))return Te;const kt=ur(Te,me,e);return ih(kt,e.readEmitHelpers()),kt}function me(Te){const kt=Te.transformFlags;return k?be(Te):T?xe(Te):po(Te)&&Te.asteriskToken?ft(Te):kt&2048?ur(Te,me,e):Te}function be(Te){switch(Te.kind){case 246:return Vs(Te);case 247:return cr(Te);case 255:return nt(Te);case 256:return ir(Te);default:return xe(Te)}}function xe(Te){switch(Te.kind){case 262:return ge(Te);case 218:return Fe(Te);case 177:case 178:return $e(Te);case 243:return at(Te);case 248:return Le(Te);case 249:return tt(Te);case 252:return et(Te);case 251:return ne(Te);case 253:return Ge(Te);default:return Te.transformFlags&1048576?De(Te):Te.transformFlags&4196352?ur(Te,me,e):Te}}function De(Te){switch(Te.kind){case 226:return Je(Te);case 361:return hr(Te);case 227:return er(Te);case 229:return jt(Te);case 209:return Rt(Te);case 210:return Ji(Te);case 212:return yi(Te);case 213:return os(Te);case 214:return yr(Te);default:return ur(Te,me,e)}}function ft(Te){switch(Te.kind){case 262:return ge(Te);case 218:return Fe(Te);default:return E.failBadSyntaxKind(Te)}}function ge(Te){if(Te.asteriskToken)Te=dn(Ke(t.createFunctionDeclaration(Te.modifiers,void 0,Te.name,void 0,tc(Te.parameters,me,e),void 0,Pt(Te.body)),Te),Te);else{const kt=T,Fr=k;T=!1,k=!1,Te=ur(Te,me,e),T=kt,k=Fr}if(T){o(Te);return}else return Te}function Fe(Te){if(Te.asteriskToken)Te=dn(Ke(t.createFunctionExpression(void 0,void 0,Te.name,void 0,tc(Te.parameters,me,e),void 0,Pt(Te.body)),Te),Te);else{const kt=T,Fr=k;T=!1,k=!1,Te=ur(Te,me,e),T=kt,k=Fr}return Te}function $e(Te){const kt=T,Fr=k;return T=!1,k=!1,Te=ur(Te,me,e),T=kt,k=Fr,Te}function Pt(Te){const kt=[],Fr=T,Yi=k,Ds=w,Is=P,Cc=F,Uc=J,jo=U,Ho=$,dc=j,Ec=re,yl=R,Nf=Y,__=ue;T=!0,k=!1,w=void 0,P=void 0,F=void 0,J=void 0,U=void 0,$=void 0,j=1,re=void 0,R=void 0,Y=void 0,ue=t.createTempVariable(void 0),i();const Ku=t.copyPrologue(Te.statements,kt,!1,me);_i(Te.statements,Ku);const Kf=X();return mg(kt,s()),kt.push(t.createReturnStatement(Kf)),T=Fr,k=Yi,w=Ds,P=Is,F=Cc,J=Uc,U=jo,$=Ho,j=dc,re=Ec,R=yl,Y=Nf,ue=__,Ke(t.createBlock(kt,Te.multiLine),Te)}function at(Te){if(Te.transformFlags&1048576){Hn(Te.declarationList);return}else{if(ha(Te)&2097152)return Te;for(const Fr of Te.declarationList.declarations)c(Fr.name);const kt=jE(Te.declarationList);return kt.length===0?void 0:sa(t.createExpressionStatement(t.inlineExpressions(nr(kt,ei))),Te)}}function Je(Te){const kt=tW(Te);switch(kt){case 0:return zt(Te);case 1:return pt(Te);default:return E.assertNever(kt)}}function pt(Te){const{left:kt,right:Fr}=Te;if(W(Fr)){let Yi;switch(kt.kind){case 211:Yi=t.updatePropertyAccessExpression(kt,V(E.checkDefined(qe(kt.expression,me,S_))),kt.name);break;case 212:Yi=t.updateElementAccessExpression(kt,V(E.checkDefined(qe(kt.expression,me,S_))),V(E.checkDefined(qe(kt.argumentExpression,me,ot))));break;default:Yi=E.checkDefined(qe(kt,me,ot));break}const Ds=Te.operatorToken.kind;return F3(Ds)?Ke(t.createAssignment(Yi,Ke(t.createBinaryExpression(V(Yi),O3(Ds),E.checkDefined(qe(Fr,me,ot))),Te)),Te):t.updateBinaryExpression(Te,Yi,Te.operatorToken,E.checkDefined(qe(Fr,me,ot)))}return ur(Te,me,e)}function zt(Te){return W(Te.right)?Nre(Te.operatorToken.kind)?Lr(Te):Te.operatorToken.kind===28?Vt(Te):t.updateBinaryExpression(Te,V(E.checkDefined(qe(Te.left,me,ot))),Te.operatorToken,E.checkDefined(qe(Te.right,me,ot))):ur(Te,me,e)}function Vt(Te){let kt=[];return Fr(Te.left),Fr(Te.right),t.inlineExpressions(kt);function Fr(Yi){Zr(Yi)&&Yi.operatorToken.kind===28?(Fr(Yi.left),Fr(Yi.right)):(W(Yi)&&kt.length>0&&(se(1,[t.createExpressionStatement(t.inlineExpressions(kt))]),kt=[]),kt.push(E.checkDefined(qe(Yi,me,ot))))}}function hr(Te){let kt=[];for(const Fr of Te.elements)Zr(Fr)&&Fr.operatorToken.kind===28?kt.push(Vt(Fr)):(W(Fr)&&kt.length>0&&(se(1,[t.createExpressionStatement(t.inlineExpressions(kt))]),kt=[]),kt.push(E.checkDefined(qe(Fr,me,ot))));return t.inlineExpressions(kt)}function Lr(Te){const kt=Ne(),Fr=ce();return Ro(Fr,E.checkDefined(qe(Te.left,me,ot)),Te.left),Te.operatorToken.kind===56?ho(kt,Fr,Te.left):Wt(kt,Fr,Te.left),Ro(Fr,E.checkDefined(qe(Te.right,me,ot)),Te.right),Ce(kt),Fr}function er(Te){if(W(Te.whenTrue)||W(Te.whenFalse)){const kt=Ne(),Fr=Ne(),Yi=ce();return ho(kt,E.checkDefined(qe(Te.condition,me,ot)),Te.condition),Ro(Yi,E.checkDefined(qe(Te.whenTrue,me,ot)),Te.whenTrue),fs(Fr),Ce(kt),Ro(Yi,E.checkDefined(qe(Te.whenFalse,me,ot)),Te.whenFalse),Ce(Fr),Yi}return ur(Te,me,e)}function jt(Te){const kt=Ne(),Fr=qe(Te.expression,me,ot);if(Te.asteriskToken){const Yi=ha(Te.expression)&8388608?Fr:Ke(n().createValuesHelper(Fr),Te);Pl(Yi,Te)}else Ml(Fr,Te);return Ce(kt),Zf(Te)}function Rt(Te){return Kn(Te.elements,void 0,void 0,Te.multiLine)}function Kn(Te,kt,Fr,Yi){const Ds=Pe(Te);let Is;if(Ds>0){Is=ce();const jo=Dr(Te,me,ot,0,Ds);Ro(Is,t.createArrayLiteralExpression(kt?[kt,...jo]:jo)),kt=void 0}const Cc=Du(Te,Uc,[],Ds);return Is?t.createArrayConcatCall(Is,[t.createArrayLiteralExpression(Cc,Yi)]):Ke(t.createArrayLiteralExpression(kt?[kt,...Cc]:Cc,Yi),Fr);function Uc(jo,Ho){if(W(Ho)&&jo.length>0){const dc=Is!==void 0;Is||(Is=ce()),Ro(Is,dc?t.createArrayConcatCall(Is,[t.createArrayLiteralExpression(jo,Yi)]):t.createArrayLiteralExpression(kt?[kt,...jo]:jo,Yi)),kt=void 0,jo=[]}return jo.push(E.checkDefined(qe(Ho,me,ot))),jo}}function Ji(Te){const kt=Te.properties,Fr=Te.multiLine,Yi=Pe(kt),Ds=ce();Ro(Ds,t.createObjectLiteralExpression(Dr(kt,me,Yg,0,Yi),Fr));const Is=Du(kt,Cc,[],Yi);return Is.push(Fr?bu(ba(Ke(t.cloneNode(Ds),Ds),Ds.parent)):Ds),t.inlineExpressions(Is);function Cc(Uc,jo){W(jo)&&Uc.length>0&&(rc(t.createExpressionStatement(t.inlineExpressions(Uc))),Uc=[]);const Ho=vie(t,Te,jo,Ds),dc=qe(Ho,me,ot);return dc&&(Fr&&bu(dc),Uc.push(dc)),Uc}}function yi(Te){return W(Te.argumentExpression)?t.updateElementAccessExpression(Te,V(E.checkDefined(qe(Te.expression,me,S_))),E.checkDefined(qe(Te.argumentExpression,me,ot))):ur(Te,me,e)}function os(Te){if(!of(Te)&&rr(Te.arguments,W)){const{target:kt,thisArg:Fr}=t.createCallBinding(Te.expression,c,f,!0);return dn(Ke(t.createFunctionApplyCall(V(E.checkDefined(qe(kt,me,S_))),Fr,Kn(Te.arguments)),Te),Te)}return ur(Te,me,e)}function yr(Te){if(rr(Te.arguments,W)){const{target:kt,thisArg:Fr}=t.createCallBinding(t.createPropertyAccessExpression(Te.expression,"bind"),c);return dn(Ke(t.createNewExpression(t.createFunctionApplyCall(V(E.checkDefined(qe(kt,me,ot))),Fr,Kn(Te.arguments,t.createVoidZero())),void 0,[]),Te),Te)}return ur(Te,me,e)}function _i(Te,kt=0){const Fr=Te.length;for(let Yi=kt;Yi0)break;Ds.push(ei(Cc))}Ds.length&&(rc(t.createExpressionStatement(t.inlineExpressions(Ds))),Yi+=Ds.length,Ds=[])}}function ei(Te){return sa(t.createAssignment(sa(t.cloneNode(Te.name),Te.name),E.checkDefined(qe(Te.initializer,me,ot))),Te)}function Ii(Te){if(W(Te))if(W(Te.thenStatement)||W(Te.elseStatement)){const kt=Ne(),Fr=Te.elseStatement?Ne():void 0;ho(Te.elseStatement?Fr:kt,E.checkDefined(qe(Te.expression,me,ot)),Te.expression),ln(Te.thenStatement),Te.elseStatement&&(fs(kt),Ce(Fr),ln(Te.elseStatement)),Ce(kt)}else rc(qe(Te,me,Ei));else rc(qe(Te,me,Ei))}function ns(Te){if(W(Te)){const kt=Ne(),Fr=Ne();pi(kt),Ce(Fr),ln(Te.statement),Ce(kt),Wt(Fr,E.checkDefined(qe(Te.expression,me,ot))),ci()}else rc(qe(Te,me,Ei))}function Vs(Te){return k?(Qi(),Te=ur(Te,me,e),ci(),Te):ur(Te,me,e)}function _a(Te){if(W(Te)){const kt=Ne(),Fr=pi(kt);Ce(kt),ho(Fr,E.checkDefined(qe(Te.expression,me,ot))),ln(Te.statement),fs(kt),ci()}else rc(qe(Te,me,Ei))}function cr(Te){return k?(Qi(),Te=ur(Te,me,e),ci(),Te):ur(Te,me,e)}function br(Te){if(W(Te)){const kt=Ne(),Fr=Ne(),Yi=pi(Fr);if(Te.initializer){const Ds=Te.initializer;ml(Ds)?Hn(Ds):rc(Ke(t.createExpressionStatement(E.checkDefined(qe(Ds,me,ot))),Ds))}Ce(kt),Te.condition&&ho(Yi,E.checkDefined(qe(Te.condition,me,ot))),ln(Te.statement),Ce(Fr),Te.incrementor&&rc(Ke(t.createExpressionStatement(E.checkDefined(qe(Te.incrementor,me,ot))),Te.incrementor)),fs(kt),ci()}else rc(qe(Te,me,Ei))}function Le(Te){k&&Qi();const kt=Te.initializer;if(kt&&ml(kt)){for(const Yi of kt.declarations)c(Yi.name);const Fr=jE(kt);Te=t.updateForStatement(Te,Fr.length>0?t.inlineExpressions(nr(Fr,ei)):void 0,qe(Te.condition,me,ot),qe(Te.incrementor,me,ot),Qu(Te.statement,me,e))}else Te=ur(Te,me,e);return k&&ci(),Te}function rt(Te){if(W(Te)){const kt=ce(),Fr=ce(),Yi=ce(),Ds=t.createLoopVariable(),Is=Te.initializer;c(Ds),Ro(kt,E.checkDefined(qe(Te.expression,me,ot))),Ro(Fr,t.createArrayLiteralExpression()),rc(t.createForInStatement(Yi,kt,t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(Fr,"push"),void 0,[Yi])))),Ro(Ds,t.createNumericLiteral(0));const Cc=Ne(),Uc=Ne(),jo=pi(Uc);Ce(Cc),ho(jo,t.createLessThan(Ds,t.createPropertyAccessExpression(Fr,"length"))),Ro(Yi,t.createElementAccessExpression(Fr,Ds)),ho(Uc,t.createBinaryExpression(Yi,103,kt));let Ho;if(ml(Is)){for(const dc of Is.declarations)c(dc.name);Ho=t.cloneNode(Is.declarations[0].name)}else Ho=E.checkDefined(qe(Is,me,ot)),E.assert(S_(Ho));Ro(Ho,Yi),ln(Te.statement),Ce(Uc),rc(t.createExpressionStatement(t.createPostfixIncrement(Ds))),fs(Cc),ci()}else rc(qe(Te,me,Ei))}function tt(Te){k&&Qi();const kt=Te.initializer;if(ml(kt)){for(const Fr of kt.declarations)c(Fr.name);Te=t.updateForInStatement(Te,kt.declarations[0].name,E.checkDefined(qe(Te.expression,me,ot)),E.checkDefined(qe(Te.statement,me,Ei,t.liftToBlock)))}else Te=ur(Te,me,e);return k&&ci(),Te}function yt(Te){const kt=zs(Te.label?on(Te.label):void 0);kt>0?fs(kt,Te):rc(Te)}function ne(Te){if(k){const kt=zs(Te.label&&on(Te.label));if(kt>0)return oa(kt,Te)}return ur(Te,me,e)}function we(Te){const kt=$i(Te.label?on(Te.label):void 0);kt>0?fs(kt,Te):rc(Te)}function et(Te){if(k){const kt=$i(Te.label&&on(Te.label));if(kt>0)return oa(kt,Te)}return ur(Te,me,e)}function B(Te){q_(qe(Te.expression,me,ot),Te)}function Ge(Te){return Wo(qe(Te.expression,me,ot),Te)}function mt(Te){W(Te)?(Er(V(E.checkDefined(qe(Te.expression,me,ot)))),ln(Te.statement),Nr()):rc(qe(Te,me,Ei))}function Be(Te){if(W(Te.caseBlock)){const kt=Te.caseBlock,Fr=kt.clauses.length,Yi=is(),Ds=V(E.checkDefined(qe(Te.expression,me,ot))),Is=[];let Cc=-1;for(let Ho=0;Ho0)break;jo.push(t.createCaseClause(E.checkDefined(qe(Ec.expression,me,ot)),[oa(Is[dc],Ec.expression)]))}else Ho++}jo.length&&(rc(t.createSwitchStatement(Ds,t.createCaseBlock(jo))),Uc+=jo.length,jo=[]),Ho>0&&(Uc+=Ho,Ho=0)}Cc>=0?fs(Is[Cc]):fs(Yi);for(let Ho=0;Ho=0;Fr--){const Yi=J[Fr];if(go(Yi)){if(Yi.labelText===Te)return!0}else break}return!1}function $i(Te){if(J)if(Te)for(let kt=J.length-1;kt>=0;kt--){const Fr=J[kt];if(go(Fr)&&Fr.labelText===Te)return Fr.breakLabel;if(Ra(Fr)&&Ol(Te,kt-1))return Fr.breakLabel}else for(let kt=J.length-1;kt>=0;kt--){const Fr=J[kt];if(Ra(Fr))return Fr.breakLabel}return 0}function zs(Te){if(J)if(Te)for(let kt=J.length-1;kt>=0;kt--){const Fr=J[kt];if(qo(Fr)&&Ol(Te,kt-1))return Fr.continueLabel}else for(let kt=J.length-1;kt>=0;kt--){const Fr=J[kt];if(qo(Fr))return Fr.continueLabel}return 0}function Ll(Te){if(Te!==void 0&&Te>0){$===void 0&&($=[]);const kt=t.createNumericLiteral(Number.MAX_SAFE_INTEGER);return $[Te]===void 0?$[Te]=[kt]:$[Te].push(kt),kt}return t.createOmittedExpression()}function Ya(Te){const kt=t.createNumericLiteral(Te);return BF(kt,3,nRe(Te)),kt}function oa(Te,kt){return E.assertLessThan(0,Te,"Invalid label"),Ke(t.createReturnStatement(t.createArrayLiteralExpression([Ya(3),Ll(Te)])),kt)}function Wo(Te,kt){return Ke(t.createReturnStatement(t.createArrayLiteralExpression(Te?[Ya(2),Te]:[Ya(2)])),kt)}function Zf(Te){return Ke(t.createCallExpression(t.createPropertyAccessExpression(ue,"sent"),void 0,[]),Te)}function Fc(){se(0)}function rc(Te){Te?se(1,[Te]):Fc()}function Ro(Te,kt,Fr){se(2,[Te,kt],Fr)}function fs(Te,kt){se(3,[Te],kt)}function Wt(Te,kt,Fr){se(4,[Te,kt],Fr)}function ho(Te,kt,Fr){se(5,[Te,kt],Fr)}function Pl(Te,kt){se(7,[Te],kt)}function Ml(Te,kt){se(6,[Te],kt)}function q_(Te,kt){se(8,[Te],kt)}function so(Te,kt){se(9,[Te],kt)}function Zc(){se(10)}function se(Te,kt,Fr){re===void 0&&(re=[],R=[],Y=[]),U===void 0&&Ce(Ne());const Yi=re.length;re[Yi]=Te,R[Yi]=kt,Y[Yi]=Fr}function X(){pe=0,H=0,q=void 0,ee=!1,oe=!1,Se=void 0,ae=void 0,K=void 0,fe=void 0,ke=void 0;const Te=Ee();return n().createGeneratorHelper(Qr(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,ue)],void 0,t.createBlock(Te,Te.length>0)),1048576))}function Ee(){if(re){for(let Te=0;Te=0;kt--){const Fr=ke[kt];ae=[t.createWithStatement(Fr.expression,t.createBlock(ae))]}if(fe){const{startLabel:kt,catchLabel:Fr,finallyLabel:Yi,endLabel:Ds}=fe;ae.unshift(t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createPropertyAccessExpression(ue,"trys"),"push"),void 0,[t.createArrayLiteralExpression([Ll(kt),Ll(Fr),Ll(Yi),Ll(Ds)])]))),fe=void 0}Te&&ae.push(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(ue,"label"),t.createNumericLiteral(H+1))))}Se.push(t.createCaseClause(t.createNumericLiteral(H),ae||[])),ae=void 0}function En(Te){if(U)for(let kt=0;ktn.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.createIdentifier(on(Ce))),Ne),n.createVoidZero())));_r(Pe,qe(P.externalHelpersImportDeclaration,q,Ei)),Nn(Pe,Dr(W.statements,q,Ei,A)),H(Pe,!1),mg(Pe,o());const le=n.updateSourceFile(W,Ke(n.createNodeArray(Pe),W.statements));return ih(le,e.readEmitHelpers()),le}function re(W){const Pe=n.createIdentifier("define"),St=Bw(n,W,g,u),A=mp(W)&&W,{aliasedModuleNames:le,unaliasedModuleNames:V,importAliasNames:ce}=Y(W,!0),Ne=n.updateSourceFile(W,Ke(n.createNodeArray([n.createExpressionStatement(n.createCallExpression(Pe,void 0,[...St?[St]:[],n.createArrayLiteralExpression(A?Ve:[n.createStringLiteral("require"),n.createStringLiteral("exports"),...le,...V]),A?A.statements.length?A.statements[0].expression:n.createObjectLiteralExpression():n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,"require"),n.createParameterDeclaration(void 0,void 0,"exports"),...ce],void 0,pe(W))]))]),W.statements));return ih(Ne,e.readEmitHelpers()),Ne}function R(W){const{aliasedModuleNames:Pe,unaliasedModuleNames:St,importAliasNames:A}=Y(W,!1),le=Bw(n,W,g,u),V=n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,"factory")],void 0,Ke(n.createBlock([n.createIfStatement(n.createLogicalAnd(n.createTypeCheck(n.createIdentifier("module"),"object"),n.createTypeCheck(n.createPropertyAccessExpression(n.createIdentifier("module"),"exports"),"object")),n.createBlock([n.createVariableStatement(void 0,[n.createVariableDeclaration("v",void 0,void 0,n.createCallExpression(n.createIdentifier("factory"),void 0,[n.createIdentifier("require"),n.createIdentifier("exports")]))]),Qr(n.createIfStatement(n.createStrictInequality(n.createIdentifier("v"),n.createIdentifier("undefined")),n.createExpressionStatement(n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("module"),"exports"),n.createIdentifier("v")))),1)]),n.createIfStatement(n.createLogicalAnd(n.createTypeCheck(n.createIdentifier("define"),"function"),n.createPropertyAccessExpression(n.createIdentifier("define"),"amd")),n.createBlock([n.createExpressionStatement(n.createCallExpression(n.createIdentifier("define"),void 0,[...le?[le]:[],n.createArrayLiteralExpression([n.createStringLiteral("require"),n.createStringLiteral("exports"),...Pe,...St]),n.createIdentifier("factory")]))])))],!0),void 0)),ce=n.updateSourceFile(W,Ke(n.createNodeArray([n.createExpressionStatement(n.createCallExpression(V,void 0,[n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,"require"),n.createParameterDeclaration(void 0,void 0,"exports"),...A],void 0,pe(W))]))]),W.statements));return ih(ce,e.readEmitHelpers()),ce}function Y(W,Pe){const St=[],A=[],le=[];for(const V of W.amdDependencies)V.name?(St.push(n.createStringLiteral(V.path)),le.push(n.createParameterDeclaration(void 0,void 0,V.name))):A.push(n.createStringLiteral(V.path));for(const V of P.externalImports){const ce=gx(n,V,w,g,f,u),Ne=GC(n,V,w);ce&&(Pe&&Ne?(Qr(Ne,8),St.push(ce),le.push(n.createParameterDeclaration(void 0,void 0,Ne))):A.push(ce))}return{aliasedModuleNames:St,unaliasedModuleNames:A,importAliasNames:le}}function ue(W){if(El(W)||Tc(W)||!gx(n,W,w,g,f,u))return;const Pe=GC(n,W,w),St=os(W,Pe);if(St!==Pe)return n.createExpressionStatement(n.createAssignment(Pe,St))}function pe(W){s();const Pe=[],St=n.copyPrologue(W.statements,Pe,!u.noImplicitUseStrict,q);$()&&_r(Pe,yt()),mr(P.exportedNames)&&_r(Pe,n.createExpressionStatement(Du(P.exportedNames,(le,V)=>n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.createIdentifier(on(V))),le),n.createVoidZero()))),_r(Pe,qe(P.externalHelpersImportDeclaration,q,Ei)),y===2&&Nn(Pe,Ri(P.externalImports,ue)),Nn(Pe,Dr(W.statements,q,Ei,St)),H(Pe,!0),mg(Pe,o());const A=n.createBlock(Pe,!0);return J&&YT(A,Vbe),A}function H(W,Pe){if(P.exportEquals){const St=qe(P.exportEquals.expression,Se,ot);if(St)if(Pe){const A=n.createReturnStatement(St);Ke(A,P.exportEquals),Qr(A,3840),W.push(A)}else{const A=n.createExpressionStatement(n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("module"),"exports"),St));Ke(A,P.exportEquals),Qr(A,3072),W.push(A)}}}function q(W){switch(W.kind){case 272:return yr(W);case 271:return ln(W);case 278:return Ht(W);case 277:return Ue(W);default:return ee(W)}}function ee(W){switch(W.kind){case 243:return Hn(W);case 262:return Et(W);case 263:return fr(W);case 248:return ke(W,!0);case 249:return Oe(W);case 250:return me(W);case 246:return be(W);case 247:return xe(W);case 256:return De(W);case 254:return ft(W);case 245:return ge(W);case 255:return Fe(W);case 269:return $e(W);case 296:return Pt(W);case 297:return at(W);case 258:return Je(W);case 299:return pt(W);case 241:return zt(W);default:return Se(W)}}function oe(W,Pe){if(!(W.transformFlags&276828160))return W;switch(W.kind){case 248:return ke(W,!1);case 244:return Vt(W);case 217:return hr(W,Pe);case 360:return Lr(W,Pe);case 213:if(of(W)&&w.impliedNodeFormat===void 0)return jt(W);break;case 226:if(e0(W))return fe(W,Pe);break;case 224:case 225:return er(W,Pe)}return ur(W,Se,e)}function Se(W){return oe(W,!1)}function ae(W){return oe(W,!0)}function K(W){if(ua(W))for(const Pe of W.properties)switch(Pe.kind){case 303:if(K(Pe.initializer))return!0;break;case 304:if(K(Pe.name))return!0;break;case 305:if(K(Pe.expression))return!0;break;case 174:case 177:case 178:return!1;default:E.assertNever(Pe,"Unhandled object member kind")}else if(ju(W)){for(const Pe of W.elements)if(gd(Pe)){if(K(Pe.expression))return!0}else if(K(Pe))return!0}else if(Ie(W))return mr(Kt(W))>(IO(W)?1:0);return!1}function fe(W,Pe){return K(W.left)?rS(W,Se,e,0,!Pe,ei):ur(W,Se,e)}function ke(W,Pe){if(Pe&&W.initializer&&ml(W.initializer)&&!(W.initializer.flags&7)){const St=cr(void 0,W.initializer,!1);if(St){const A=[],le=qe(W.initializer,ae,ml),V=n.createVariableStatement(void 0,le);A.push(V),Nn(A,St);const ce=qe(W.condition,Se,ot),Ne=qe(W.incrementor,ae,ot),Ce=Qu(W.statement,Pe?ee:Se,e);return A.push(n.updateForStatement(W,void 0,ce,Ne,Ce)),A}}return n.updateForStatement(W,qe(W.initializer,ae,zf),qe(W.condition,Se,ot),qe(W.incrementor,ae,ot),Qu(W.statement,Pe?ee:Se,e))}function Oe(W){if(ml(W.initializer)&&!(W.initializer.flags&7)){const Pe=cr(void 0,W.initializer,!0);if(ct(Pe)){const St=qe(W.initializer,ae,zf),A=qe(W.expression,Se,ot),le=Qu(W.statement,ee,e),V=Cs(le)?n.updateBlock(le,[...Pe,...le.statements]):n.createBlock([...Pe,le],!0);return n.updateForInStatement(W,St,A,V)}}return n.updateForInStatement(W,qe(W.initializer,ae,zf),qe(W.expression,Se,ot),Qu(W.statement,ee,e))}function me(W){if(ml(W.initializer)&&!(W.initializer.flags&7)){const Pe=cr(void 0,W.initializer,!0),St=qe(W.initializer,ae,zf),A=qe(W.expression,Se,ot);let le=Qu(W.statement,ee,e);return ct(Pe)&&(le=Cs(le)?n.updateBlock(le,[...Pe,...le.statements]):n.createBlock([...Pe,le],!0)),n.updateForOfStatement(W,W.awaitModifier,St,A,le)}return n.updateForOfStatement(W,W.awaitModifier,qe(W.initializer,ae,zf),qe(W.expression,Se,ot),Qu(W.statement,ee,e))}function be(W){return n.updateDoStatement(W,Qu(W.statement,ee,e),qe(W.expression,Se,ot))}function xe(W){return n.updateWhileStatement(W,qe(W.expression,Se,ot),Qu(W.statement,ee,e))}function De(W){return n.updateLabeledStatement(W,W.label,E.checkDefined(qe(W.statement,ee,Ei,n.liftToBlock)))}function ft(W){return n.updateWithStatement(W,qe(W.expression,Se,ot),E.checkDefined(qe(W.statement,ee,Ei,n.liftToBlock)))}function ge(W){return n.updateIfStatement(W,qe(W.expression,Se,ot),E.checkDefined(qe(W.thenStatement,ee,Ei,n.liftToBlock)),qe(W.elseStatement,ee,Ei,n.liftToBlock))}function Fe(W){return n.updateSwitchStatement(W,qe(W.expression,Se,ot),E.checkDefined(qe(W.caseBlock,ee,m3)))}function $e(W){return n.updateCaseBlock(W,Dr(W.clauses,ee,Y7))}function Pt(W){return n.updateCaseClause(W,qe(W.expression,Se,ot),Dr(W.statements,ee,Ei))}function at(W){return ur(W,ee,e)}function Je(W){return ur(W,ee,e)}function pt(W){return n.updateCatchClause(W,W.variableDeclaration,E.checkDefined(qe(W.block,ee,Cs)))}function zt(W){return W=ur(W,ee,e),W}function Vt(W){return n.updateExpressionStatement(W,qe(W.expression,ae,ot))}function hr(W,Pe){return n.updateParenthesizedExpression(W,qe(W.expression,Pe?ae:Se,ot))}function Lr(W,Pe){return n.updatePartiallyEmittedExpression(W,qe(W.expression,Pe?ae:Se,ot))}function er(W,Pe){if((W.operator===46||W.operator===47)&&Ie(W.operand)&&!Oo(W.operand)&&!ah(W.operand)&&!TW(W.operand)){const St=Kt(W.operand);if(St){let A,le=qe(W.operand,Se,ot);py(W)?le=n.updatePrefixUnaryExpression(W,le):(le=n.updatePostfixUnaryExpression(W,le),Pe||(A=n.createTempVariable(c),le=n.createAssignment(A,le),Ke(le,W)),le=n.createComma(le,n.cloneNode(W.operand)),Ke(le,W));for(const V of St)F[Oa(le)]=!0,le=we(V,le),Ke(le,W);return A&&(F[Oa(le)]=!0,le=n.createComma(le,A),Ke(le,W)),le}}return ur(W,Se,e)}function jt(W){if(y===0&&d>=7)return ur(W,Se,e);const Pe=gx(n,W,w,g,f,u),St=qe(bl(W.arguments),Se,ot),A=Pe&&(!St||!aa(St)||St.text!==Pe.text)?Pe:St,le=!!(W.transformFlags&16384);switch(u.module){case 2:return Kn(A,le);case 3:return Rt(A??n.createVoidZero(),le);case 1:default:return Ji(A)}}function Rt(W,Pe){if(J=!0,y2(W)){const St=Oo(W)?W:aa(W)?n.createStringLiteralFromNode(W):Qr(Ke(n.cloneNode(W),W),3072);return n.createConditionalExpression(n.createIdentifier("__syncRequire"),void 0,Ji(W),void 0,Kn(St,Pe))}else{const St=n.createTempVariable(c);return n.createComma(n.createAssignment(St,W),n.createConditionalExpression(n.createIdentifier("__syncRequire"),void 0,Ji(St,!0),void 0,Kn(St,Pe)))}}function Kn(W,Pe){const St=n.createUniqueName("resolve"),A=n.createUniqueName("reject"),le=[n.createParameterDeclaration(void 0,void 0,St),n.createParameterDeclaration(void 0,void 0,A)],V=n.createBlock([n.createExpressionStatement(n.createCallExpression(n.createIdentifier("require"),void 0,[n.createArrayLiteralExpression([W||n.createOmittedExpression()]),St,A]))]);let ce;d>=2?ce=n.createArrowFunction(void 0,void 0,le,void 0,void 0,V):(ce=n.createFunctionExpression(void 0,void 0,void 0,void 0,le,void 0,V),Pe&&Qr(ce,16));const Ne=n.createNewExpression(n.createIdentifier("Promise"),void 0,[ce]);return Om(u)?n.createCallExpression(n.createPropertyAccessExpression(Ne,n.createIdentifier("then")),void 0,[i().createImportStarCallbackHelper()]):Ne}function Ji(W,Pe){const St=W&&!Wm(W)&&!Pe,A=n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Promise"),"resolve"),void 0,St?d>=2?[n.createTemplateExpression(n.createTemplateHead(""),[n.createTemplateSpan(W,n.createTemplateTail(""))])]:[n.createCallExpression(n.createPropertyAccessExpression(n.createStringLiteral(""),"concat"),void 0,[W])]:[]);let le=n.createCallExpression(n.createIdentifier("require"),void 0,St?[n.createIdentifier("s")]:W?[W]:[]);Om(u)&&(le=i().createImportStarHelper(le));const V=St?[n.createParameterDeclaration(void 0,void 0,"s")]:[];let ce;return d>=2?ce=n.createArrowFunction(void 0,void 0,V,void 0,void 0,le):ce=n.createFunctionExpression(void 0,void 0,void 0,void 0,V,void 0,n.createBlock([n.createReturnStatement(le)])),n.createCallExpression(n.createPropertyAccessExpression(A,"then"),void 0,[ce])}function yi(W,Pe){return!Om(u)||Jp(W)&2?Pe:zse(W)?i().createImportStarHelper(Pe):Pe}function os(W,Pe){return!Om(u)||Jp(W)&2?Pe:S9(W)?i().createImportStarHelper(Pe):KU(W)?i().createImportDefaultHelper(Pe):Pe}function yr(W){let Pe;const St=_C(W);if(y!==2)if(W.importClause){const A=[];St&&!OT(W)?A.push(n.createVariableDeclaration(n.cloneNode(St.name),void 0,void 0,os(W,_i(W)))):(A.push(n.createVariableDeclaration(n.getGeneratedNameForNode(W),void 0,void 0,os(W,_i(W)))),St&&OT(W)&&A.push(n.createVariableDeclaration(n.cloneNode(St.name),void 0,void 0,n.getGeneratedNameForNode(W)))),Pe=_r(Pe,dn(Ke(n.createVariableStatement(void 0,n.createVariableDeclarationList(A,d>=2?2:0)),W),W))}else return dn(Ke(n.createExpressionStatement(_i(W)),W),W);else St&&OT(W)&&(Pe=_r(Pe,n.createVariableStatement(void 0,n.createVariableDeclarationList([dn(Ke(n.createVariableDeclaration(n.cloneNode(St.name),void 0,void 0,n.getGeneratedNameForNode(W)),W),W)],d>=2?2:0))));return Pe=ns(Pe,W),xm(Pe)}function _i(W){const Pe=gx(n,W,w,g,f,u),St=[];return Pe&&St.push(Pe),n.createCallExpression(n.createIdentifier("require"),void 0,St)}function ln(W){E.assert(C1(W),"import= for internal module references should be handled in an earlier transformer.");let Pe;return y!==2?Rn(W,32)?Pe=_r(Pe,dn(Ke(n.createExpressionStatement(we(W.name,_i(W))),W),W)):Pe=_r(Pe,dn(Ke(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(n.cloneNode(W.name),void 0,void 0,_i(W))],d>=2?2:0)),W),W)):Rn(W,32)&&(Pe=_r(Pe,dn(Ke(n.createExpressionStatement(we(n.getExportName(W),n.getLocalName(W))),W),W))),Pe=Vs(Pe,W),xm(Pe)}function Ht(W){if(!W.moduleSpecifier)return;const Pe=n.getGeneratedNameForNode(W);if(W.exportClause&&$f(W.exportClause)){const St=[];y!==2&&St.push(dn(Ke(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(Pe,void 0,void 0,_i(W))])),W),W));for(const A of W.exportClause.elements)if(d===0)St.push(dn(Ke(n.createExpressionStatement(i().createCreateBindingHelper(Pe,n.createStringLiteralFromNode(A.propertyName||A.name),A.propertyName?n.createStringLiteralFromNode(A.name):void 0)),A),A));else{const le=!!Om(u)&&!(Jp(W)&2)&&on(A.propertyName||A.name)==="default",V=n.createPropertyAccessExpression(le?i().createImportDefaultHelper(Pe):Pe,A.propertyName||A.name);St.push(dn(Ke(n.createExpressionStatement(we(n.getExportName(A),V,void 0,!0)),A),A))}return xm(St)}else if(W.exportClause){const St=[];return St.push(dn(Ke(n.createExpressionStatement(we(n.cloneNode(W.exportClause.name),yi(W,y!==2?_i(W):c5(W)?Pe:n.createIdentifier(on(W.exportClause.name))))),W),W)),xm(St)}else return dn(Ke(n.createExpressionStatement(i().createExportStarHelper(y!==2?_i(W):Pe)),W),W)}function Ue(W){if(!W.isExportEquals)return ne(n.createIdentifier("default"),qe(W.expression,Se,ot),W,!0)}function Et(W){let Pe;return Rn(W,32)?Pe=_r(Pe,dn(Ke(n.createFunctionDeclaration(Dr(W.modifiers,et,ta),W.asteriskToken,n.getDeclarationName(W,!0,!0),void 0,Dr(W.parameters,Se,rs),void 0,ur(W.body,Se,e)),W),W)):Pe=_r(Pe,ur(W,Se,e)),Pe=Le(Pe,W),xm(Pe)}function fr(W){let Pe;return Rn(W,32)?Pe=_r(Pe,dn(Ke(n.createClassDeclaration(Dr(W.modifiers,et,Lo),n.getDeclarationName(W,!0,!0),void 0,Dr(W.heritageClauses,Se,xf),Dr(W.members,Se,Tl)),W),W)):Pe=_r(Pe,ur(W,Se,e)),Pe=Le(Pe,W),xm(Pe)}function Hn(W){let Pe,St,A;if(Rn(W,32)){let le,V=!1;for(const ce of W.declarationList.declarations)if(Ie(ce.name)&&ah(ce.name))if(le||(le=Dr(W.modifiers,et,ta)),ce.initializer){const Ne=n.updateVariableDeclaration(ce,ce.name,void 0,void 0,we(ce.name,qe(ce.initializer,Se,ot)));St=_r(St,Ne)}else St=_r(St,ce);else if(ce.initializer)if(!Ns(ce.name)&&(mo(ce.initializer)||lo(ce.initializer)||kl(ce.initializer))){const Ne=n.createAssignment(Ke(n.createPropertyAccessExpression(n.createIdentifier("exports"),ce.name),ce.name),n.createIdentifier(hp(ce.name))),Ce=n.createVariableDeclaration(ce.name,ce.exclamationToken,ce.type,qe(ce.initializer,Se,ot));St=_r(St,Ce),A=_r(A,Ne),V=!0}else A=_r(A,Ii(ce));if(St&&(Pe=_r(Pe,n.updateVariableStatement(W,le,n.updateVariableDeclarationList(W.declarationList,St)))),A){const ce=dn(Ke(n.createExpressionStatement(n.inlineExpressions(A)),W),W);V&&yw(ce),Pe=_r(Pe,ce)}}else Pe=_r(Pe,ur(W,Se,e));return Pe=_a(Pe,W),xm(Pe)}function ei(W,Pe,St){const A=Kt(W);if(A){let le=IO(W)?Pe:n.createAssignment(W,Pe);for(const V of A)Qr(le,8),le=we(V,le,St);return le}return n.createAssignment(W,Pe)}function Ii(W){return Ns(W.name)?rS(qe(W,Se,Z8),Se,e,0,!1,ei):n.createAssignment(Ke(n.createPropertyAccessExpression(n.createIdentifier("exports"),W.name),W.name),W.initializer?qe(W.initializer,Se,ot):n.createVoidZero())}function ns(W,Pe){if(P.exportEquals)return W;const St=Pe.importClause;if(!St)return W;const A=new Tx;St.name&&(W=rt(W,A,St));const le=St.namedBindings;if(le)switch(le.kind){case 274:W=rt(W,A,le);break;case 275:for(const V of le.elements)W=rt(W,A,V,!0);break}return W}function Vs(W,Pe){return P.exportEquals?W:rt(W,new Tx,Pe)}function _a(W,Pe){return cr(W,Pe.declarationList,!1)}function cr(W,Pe,St){if(P.exportEquals)return W;for(const A of Pe.declarations)W=br(W,A,St);return W}function br(W,Pe,St){if(P.exportEquals)return W;if(Ns(Pe.name))for(const A of Pe.name.elements)dl(A)||(W=br(W,A,St));else!Oo(Pe.name)&&(!hi(Pe)||Pe.initializer||St)&&(W=rt(W,new Tx,Pe));return W}function Le(W,Pe){if(P.exportEquals)return W;const St=new Tx;if(Rn(Pe,32)){const A=Rn(Pe,2048)?n.createIdentifier("default"):n.getDeclarationName(Pe);W=tt(W,St,A,n.getLocalName(Pe),Pe)}return Pe.name&&(W=rt(W,St,Pe)),W}function rt(W,Pe,St,A){const le=n.getDeclarationName(St),V=P.exportSpecifiers.get(le);if(V)for(const ce of V)W=tt(W,Pe,ce.name,le,ce.name,void 0,A);return W}function tt(W,Pe,St,A,le,V,ce){return Pe.has(St)||(Pe.set(St,!0),W=_r(W,ne(St,A,le,V,ce))),W}function yt(){let W;return d===0?W=n.createExpressionStatement(we(n.createIdentifier("__esModule"),n.createTrue())):W=n.createExpressionStatement(n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"defineProperty"),void 0,[n.createIdentifier("exports"),n.createStringLiteral("__esModule"),n.createObjectLiteralExpression([n.createPropertyAssignment("value",n.createTrue())])])),Qr(W,2097152),W}function ne(W,Pe,St,A,le){const V=Ke(n.createExpressionStatement(we(W,Pe,void 0,le)),St);return bu(V),A||Qr(V,3072),V}function we(W,Pe,St,A){return Ke(A&&d!==0?n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"defineProperty"),void 0,[n.createIdentifier("exports"),n.createStringLiteralFromNode(W),n.createObjectLiteralExpression([n.createPropertyAssignment("enumerable",n.createTrue()),n.createPropertyAssignment("get",n.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,n.createBlock([n.createReturnStatement(Pe)])))])]):n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.cloneNode(W)),Pe),St)}function et(W){switch(W.kind){case 95:case 90:return}return W}function B(W,Pe,St){Pe.kind===312?(w=Pe,P=k[cu(w)],T(W,Pe,St),w=void 0,P=void 0):T(W,Pe,St)}function Ge(W,Pe){return Pe=S(W,Pe),Pe.id&&F[Pe.id]?Pe:W===1?Be(Pe):k_(Pe)?mt(Pe):Pe}function mt(W){const Pe=W.name,St=ir(Pe);if(St!==Pe){if(W.objectAssignmentInitializer){const A=n.createAssignment(St,W.objectAssignmentInitializer);return Ke(n.createPropertyAssignment(Pe,A),W)}return Ke(n.createPropertyAssignment(Pe,St),W)}return W}function Be(W){switch(W.kind){case 80:return ir(W);case 213:return nt(W);case 215:return wt(W);case 226:return Yt(W)}return W}function nt(W){if(Ie(W.expression)){const Pe=ir(W.expression);if(F[Oa(Pe)]=!0,!Ie(Pe)&&!(ha(W.expression)&8192))return XT(n.updateCallExpression(W,Pe,void 0,W.arguments),16)}return W}function wt(W){if(Ie(W.tag)){const Pe=ir(W.tag);if(F[Oa(Pe)]=!0,!Ie(Pe)&&!(ha(W.tag)&8192))return XT(n.updateTaggedTemplateExpression(W,Pe,void 0,W.template),16)}return W}function ir(W){var Pe,St;if(ha(W)&8192){const A=jw(w);return A?n.createPropertyAccessExpression(A,W):W}else if(!(Oo(W)&&!(W.emitNode.autoGenerate.flags&64))&&!ah(W)){const A=f.getReferencedExportContainer(W,IO(W));if(A&&A.kind===312)return Ke(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.cloneNode(W)),W);const le=f.getReferencedImportDeclaration(W);if(le){if(Rm(le))return Ke(n.createPropertyAccessExpression(n.getGeneratedNameForNode(le.parent),n.createIdentifier("default")),W);if(x_(le)){const V=le.propertyName||le.name;return Ke(n.createPropertyAccessExpression(n.getGeneratedNameForNode(((St=(Pe=le.parent)==null?void 0:Pe.parent)==null?void 0:St.parent)||le),n.cloneNode(V)),W)}}}return W}function Yt(W){if(Kh(W.operatorToken.kind)&&Ie(W.left)&&(!Oo(W.left)||QD(W.left))&&!ah(W.left)){const Pe=Kt(W.left);if(Pe){let St=W;for(const A of Pe)F[Oa(St)]=!0,St=we(A,St,W);return St}}return W}function Kt(W){if(Oo(W)){if(QD(W)){const Pe=P==null?void 0:P.exportSpecifiers.get(W);if(Pe){const St=[];for(const A of Pe)St.push(A.name);return St}}}else{const Pe=f.getReferencedImportDeclaration(W);if(Pe)return P==null?void 0:P.exportedBindings[cu(Pe)];const St=new Set,A=f.getReferencedValueDeclarations(W);if(A){for(const le of A){const V=P==null?void 0:P.exportedBindings[cu(le)];if(V)for(const ce of V)St.add(ce)}if(St.size)return gs(St)}}}}var Vbe,sRe=Dt({"src/compiler/transformers/module/module.ts"(){Fs(),Vbe={name:"typescript:dynamicimport-sync-require",scoped:!0,text:` + var __syncRequire = typeof module === "object" && typeof module.exports === "object";`}}});function bae(e){const{factory:t,startLexicalEnvironment:n,endLexicalEnvironment:i,hoistVariableDeclaration:s}=e,o=e.getCompilerOptions(),c=e.getEmitResolver(),u=e.getEmitHost(),f=e.onSubstituteNode,g=e.onEmitNode;e.onSubstituteNode=we,e.onEmitNode=ne,e.enableSubstitution(80),e.enableSubstitution(304),e.enableSubstitution(226),e.enableSubstitution(236),e.enableEmitNotification(312);const d=[],y=[],S=[],T=[];let k,w,P,F,J,U,$;return Gp(e,j);function j(W){if(W.isDeclarationFile||!(IT(W,o)||W.transformFlags&8388608))return W;const Pe=cu(W);k=W,U=W,w=d[Pe]=eq(e,W),P=t.createUniqueName("exports"),y[Pe]=P,F=T[Pe]=t.createUniqueName("context");const St=re(w.externalImports),A=R(W,St),le=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,P),t.createParameterDeclaration(void 0,void 0,F)],void 0,A),V=Bw(t,W,u,o),ce=t.createArrayLiteralExpression(nr(St,Ce=>Ce.name)),Ne=Qr(t.updateSourceFile(W,Ke(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("System"),"register"),void 0,V?[V,ce,le]:[ce,le]))]),W.statements)),2048);return io(o)||jne(Ne,A,Ce=>!Ce.scoped),$&&(S[Pe]=$,$=void 0),k=void 0,w=void 0,P=void 0,F=void 0,J=void 0,U=void 0,Ne}function re(W){const Pe=new Map,St=[];for(const A of W){const le=gx(t,A,k,u,c,o);if(le){const V=le.text,ce=Pe.get(V);ce!==void 0?St[ce].externalImports.push(A):(Pe.set(V,St.length),St.push({name:le,externalImports:[A]}))}}return St}function R(W,Pe){const St=[];n();const A=Mu(o,"alwaysStrict")||!o.noImplicitUseStrict&&Ic(k),le=t.copyPrologue(W.statements,St,A,H);St.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration("__moduleName",void 0,void 0,t.createLogicalAnd(F,t.createPropertyAccessExpression(F,"id")))]))),qe(w.externalHelpersImportDeclaration,H,Ei);const V=Dr(W.statements,H,Ei,le);Nn(St,J),mg(St,i());const ce=Y(St),Ne=W.transformFlags&2097152?t.createModifiersFromModifierFlags(1024):void 0,Ce=t.createObjectLiteralExpression([t.createPropertyAssignment("setters",pe(ce,Pe)),t.createPropertyAssignment("execute",t.createFunctionExpression(Ne,void 0,void 0,void 0,[],void 0,t.createBlock(V,!0)))],!0);return St.push(t.createReturnStatement(Ce)),t.createBlock(St,!0)}function Y(W){if(!w.hasExportStarsToExportValues)return;if(!w.exportedNames&&w.exportSpecifiers.size===0){let le=!1;for(const V of w.externalImports)if(V.kind===278&&V.exportClause){le=!0;break}if(!le){const V=ue(void 0);return W.push(V),V.name}}const Pe=[];if(w.exportedNames)for(const le of w.exportedNames)le.escapedText!=="default"&&Pe.push(t.createPropertyAssignment(t.createStringLiteralFromNode(le),t.createTrue()));const St=t.createUniqueName("exportedNames");W.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(St,void 0,void 0,t.createObjectLiteralExpression(Pe,!0))])));const A=ue(St);return W.push(A),A.name}function ue(W){const Pe=t.createUniqueName("exportStar"),St=t.createIdentifier("m"),A=t.createIdentifier("n"),le=t.createIdentifier("exports");let V=t.createStrictInequality(A,t.createStringLiteral("default"));return W&&(V=t.createLogicalAnd(V,t.createLogicalNot(t.createCallExpression(t.createPropertyAccessExpression(W,"hasOwnProperty"),void 0,[A])))),t.createFunctionDeclaration(void 0,void 0,Pe,void 0,[t.createParameterDeclaration(void 0,void 0,St)],void 0,t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(le,void 0,void 0,t.createObjectLiteralExpression([]))])),t.createForInStatement(t.createVariableDeclarationList([t.createVariableDeclaration(A)]),St,t.createBlock([Qr(t.createIfStatement(V,t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(le,A),t.createElementAccessExpression(St,A)))),1)])),t.createExpressionStatement(t.createCallExpression(P,void 0,[le]))],!0))}function pe(W,Pe){const St=[];for(const A of Pe){const le=rr(A.externalImports,Ne=>GC(t,Ne,k)),V=le?t.getGeneratedNameForNode(le):t.createUniqueName(""),ce=[];for(const Ne of A.externalImports){const Ce=GC(t,Ne,k);switch(Ne.kind){case 272:if(!Ne.importClause)break;case 271:E.assert(Ce!==void 0),ce.push(t.createExpressionStatement(t.createAssignment(Ce,V))),Rn(Ne,32)&&ce.push(t.createExpressionStatement(t.createCallExpression(P,void 0,[t.createStringLiteral(on(Ce)),V])));break;case 278:if(E.assert(Ce!==void 0),Ne.exportClause)if($f(Ne.exportClause)){const _t=[];for(const Tt of Ne.exportClause.elements)_t.push(t.createPropertyAssignment(t.createStringLiteral(on(Tt.name)),t.createElementAccessExpression(V,t.createStringLiteral(on(Tt.propertyName||Tt.name)))));ce.push(t.createExpressionStatement(t.createCallExpression(P,void 0,[t.createObjectLiteralExpression(_t,!0)])))}else ce.push(t.createExpressionStatement(t.createCallExpression(P,void 0,[t.createStringLiteral(on(Ne.exportClause.name)),V])));else ce.push(t.createExpressionStatement(t.createCallExpression(W,void 0,[V])));break}}St.push(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,V)],void 0,t.createBlock(ce,!0)))}return t.createArrayLiteralExpression(St,!0)}function H(W){switch(W.kind){case 272:return q(W);case 271:return oe(W);case 278:return ee(W);case 277:return Se(W);default:return Vt(W)}}function q(W){let Pe;return W.importClause&&s(GC(t,W,k)),xm(ft(Pe,W))}function ee(W){E.assertIsDefined(W)}function oe(W){E.assert(C1(W),"import= for internal module references should be handled in an earlier transformer.");let Pe;return s(GC(t,W,k)),xm(ge(Pe,W))}function Se(W){if(W.isExportEquals)return;const Pe=qe(W.expression,Ii,ot);return pt(t.createIdentifier("default"),Pe,!0)}function ae(W){Rn(W,32)?J=_r(J,t.updateFunctionDeclaration(W,Dr(W.modifiers,yt,Lo),W.asteriskToken,t.getDeclarationName(W,!0,!0),void 0,Dr(W.parameters,Ii,rs),void 0,qe(W.body,Ii,Cs))):J=_r(J,ur(W,Ii,e)),J=Pt(J,W)}function K(W){let Pe;const St=t.getLocalName(W);return s(St),Pe=_r(Pe,Ke(t.createExpressionStatement(t.createAssignment(St,Ke(t.createClassExpression(Dr(W.modifiers,yt,Lo),W.name,void 0,Dr(W.heritageClauses,Ii,xf),Dr(W.members,Ii,Tl)),W))),W)),Pe=Pt(Pe,W),xm(Pe)}function fe(W){if(!Oe(W.declarationList))return qe(W,Ii,Ei);let Pe;if(d8(W.declarationList)||p8(W.declarationList)){const St=Dr(W.modifiers,yt,Lo),A=[];for(const V of W.declarationList.declarations)A.push(t.updateVariableDeclaration(V,t.getGeneratedNameForNode(V.name),void 0,void 0,me(V,!1)));const le=t.updateVariableDeclarationList(W.declarationList,A);Pe=_r(Pe,t.updateVariableStatement(W,St,le))}else{let St;const A=Rn(W,32);for(const le of W.declarationList.declarations)le.initializer?St=_r(St,me(le,A)):ke(le);St&&(Pe=_r(Pe,Ke(t.createExpressionStatement(t.inlineExpressions(St)),W)))}return Pe=Fe(Pe,W,!1),xm(Pe)}function ke(W){if(Ns(W.name))for(const Pe of W.name.elements)dl(Pe)||ke(Pe);else s(t.cloneNode(W.name))}function Oe(W){return(ha(W)&4194304)===0&&(U.kind===312||(ic(W).flags&7)===0)}function me(W,Pe){const St=Pe?be:xe;return Ns(W.name)?rS(W,Ii,e,0,!1,St):W.initializer?St(W.name,qe(W.initializer,Ii,ot)):W.name}function be(W,Pe,St){return De(W,Pe,St,!0)}function xe(W,Pe,St){return De(W,Pe,St,!1)}function De(W,Pe,St,A){return s(t.cloneNode(W)),A?zt(W,Yt(Ke(t.createAssignment(W,Pe),St))):Yt(Ke(t.createAssignment(W,Pe),St))}function ft(W,Pe){if(w.exportEquals)return W;const St=Pe.importClause;if(!St)return W;St.name&&(W=at(W,St));const A=St.namedBindings;if(A)switch(A.kind){case 274:W=at(W,A);break;case 275:for(const le of A.elements)W=at(W,le);break}return W}function ge(W,Pe){return w.exportEquals?W:at(W,Pe)}function Fe(W,Pe,St){if(w.exportEquals)return W;for(const A of Pe.declarationList.declarations)(A.initializer||St)&&(W=$e(W,A));return W}function $e(W,Pe,St){if(w.exportEquals)return W;if(Ns(Pe.name))for(const A of Pe.name.elements)dl(A)||(W=$e(W,A));else Oo(Pe.name)||(W=at(W,Pe,void 0));return W}function Pt(W,Pe){if(w.exportEquals)return W;let St;if(Rn(Pe,32)){const A=Rn(Pe,2048)?t.createStringLiteral("default"):Pe.name;W=Je(W,A,t.getLocalName(Pe)),St=hp(A)}return Pe.name&&(W=at(W,Pe,St)),W}function at(W,Pe,St){if(w.exportEquals)return W;const A=t.getDeclarationName(Pe),le=w.exportSpecifiers.get(A);if(le)for(const V of le)V.name.escapedText!==St&&(W=Je(W,V.name,A));return W}function Je(W,Pe,St,A){return W=_r(W,pt(Pe,St,A)),W}function pt(W,Pe,St){const A=t.createExpressionStatement(zt(W,Pe));return bu(A),St||Qr(A,3072),A}function zt(W,Pe){const St=Ie(W)?t.createStringLiteralFromNode(W):W;return Qr(Pe,ha(Pe)|3072),Nc(t.createCallExpression(P,void 0,[St,Pe]),Pe)}function Vt(W){switch(W.kind){case 243:return fe(W);case 262:return ae(W);case 263:return K(W);case 248:return hr(W,!0);case 249:return Lr(W);case 250:return er(W);case 246:return Kn(W);case 247:return Ji(W);case 256:return yi(W);case 254:return os(W);case 245:return yr(W);case 255:return _i(W);case 269:return ln(W);case 296:return Ht(W);case 297:return Ue(W);case 258:return Et(W);case 299:return fr(W);case 241:return Hn(W);default:return Ii(W)}}function hr(W,Pe){const St=U;return U=W,W=t.updateForStatement(W,qe(W.initializer,Pe?Rt:ns,zf),qe(W.condition,Ii,ot),qe(W.incrementor,ns,ot),Qu(W.statement,Pe?Vt:Ii,e)),U=St,W}function Lr(W){const Pe=U;return U=W,W=t.updateForInStatement(W,Rt(W.initializer),qe(W.expression,Ii,ot),Qu(W.statement,Vt,e)),U=Pe,W}function er(W){const Pe=U;return U=W,W=t.updateForOfStatement(W,W.awaitModifier,Rt(W.initializer),qe(W.expression,Ii,ot),Qu(W.statement,Vt,e)),U=Pe,W}function jt(W){return ml(W)&&Oe(W)}function Rt(W){if(jt(W)){let Pe;for(const St of W.declarations)Pe=_r(Pe,me(St,!1)),St.initializer||ke(St);return Pe?t.inlineExpressions(Pe):t.createOmittedExpression()}else return qe(W,ns,zf)}function Kn(W){return t.updateDoStatement(W,Qu(W.statement,Vt,e),qe(W.expression,Ii,ot))}function Ji(W){return t.updateWhileStatement(W,qe(W.expression,Ii,ot),Qu(W.statement,Vt,e))}function yi(W){return t.updateLabeledStatement(W,W.label,E.checkDefined(qe(W.statement,Vt,Ei,t.liftToBlock)))}function os(W){return t.updateWithStatement(W,qe(W.expression,Ii,ot),E.checkDefined(qe(W.statement,Vt,Ei,t.liftToBlock)))}function yr(W){return t.updateIfStatement(W,qe(W.expression,Ii,ot),E.checkDefined(qe(W.thenStatement,Vt,Ei,t.liftToBlock)),qe(W.elseStatement,Vt,Ei,t.liftToBlock))}function _i(W){return t.updateSwitchStatement(W,qe(W.expression,Ii,ot),E.checkDefined(qe(W.caseBlock,Vt,m3)))}function ln(W){const Pe=U;return U=W,W=t.updateCaseBlock(W,Dr(W.clauses,Vt,Y7)),U=Pe,W}function Ht(W){return t.updateCaseClause(W,qe(W.expression,Ii,ot),Dr(W.statements,Vt,Ei))}function Ue(W){return ur(W,Vt,e)}function Et(W){return ur(W,Vt,e)}function fr(W){const Pe=U;return U=W,W=t.updateCatchClause(W,W.variableDeclaration,E.checkDefined(qe(W.block,Vt,Cs))),U=Pe,W}function Hn(W){const Pe=U;return U=W,W=ur(W,Vt,e),U=Pe,W}function ei(W,Pe){if(!(W.transformFlags&276828160))return W;switch(W.kind){case 248:return hr(W,!1);case 244:return Vs(W);case 217:return _a(W,Pe);case 360:return cr(W,Pe);case 226:if(e0(W))return Le(W,Pe);break;case 213:if(of(W))return br(W);break;case 224:case 225:return tt(W,Pe)}return ur(W,Ii,e)}function Ii(W){return ei(W,!1)}function ns(W){return ei(W,!0)}function Vs(W){return t.updateExpressionStatement(W,qe(W.expression,ns,ot))}function _a(W,Pe){return t.updateParenthesizedExpression(W,qe(W.expression,Pe?ns:Ii,ot))}function cr(W,Pe){return t.updatePartiallyEmittedExpression(W,qe(W.expression,Pe?ns:Ii,ot))}function br(W){const Pe=gx(t,W,k,u,c,o),St=qe(bl(W.arguments),Ii,ot),A=Pe&&(!St||!aa(St)||St.text!==Pe.text)?Pe:St;return t.createCallExpression(t.createPropertyAccessExpression(F,t.createIdentifier("import")),void 0,A?[A]:[])}function Le(W,Pe){return rt(W.left)?rS(W,Ii,e,0,!Pe):ur(W,Ii,e)}function rt(W){if(il(W,!0))return rt(W.left);if(gd(W))return rt(W.expression);if(ua(W))return ct(W.properties,rt);if(ju(W))return ct(W.elements,rt);if(k_(W))return rt(W.name);if(zc(W))return rt(W.initializer);if(Ie(W)){const Pe=c.getReferencedExportContainer(W);return Pe!==void 0&&Pe.kind===312}else return!1}function tt(W,Pe){if((W.operator===46||W.operator===47)&&Ie(W.operand)&&!Oo(W.operand)&&!ah(W.operand)&&!TW(W.operand)){const St=wt(W.operand);if(St){let A,le=qe(W.operand,Ii,ot);py(W)?le=t.updatePrefixUnaryExpression(W,le):(le=t.updatePostfixUnaryExpression(W,le),Pe||(A=t.createTempVariable(s),le=t.createAssignment(A,le),Ke(le,W)),le=t.createComma(le,t.cloneNode(W.operand)),Ke(le,W));for(const V of St)le=zt(V,Yt(le));return A&&(le=t.createComma(le,A),Ke(le,W)),le}}return ur(W,Ii,e)}function yt(W){switch(W.kind){case 95:case 90:return}return W}function ne(W,Pe,St){if(Pe.kind===312){const A=cu(Pe);k=Pe,w=d[A],P=y[A],$=S[A],F=T[A],$&&delete S[A],g(W,Pe,St),k=void 0,w=void 0,P=void 0,F=void 0,$=void 0}else g(W,Pe,St)}function we(W,Pe){return Pe=f(W,Pe),Kt(Pe)?Pe:W===1?Ge(Pe):W===4?et(Pe):Pe}function et(W){switch(W.kind){case 304:return B(W)}return W}function B(W){var Pe,St;const A=W.name;if(!Oo(A)&&!ah(A)){const le=c.getReferencedImportDeclaration(A);if(le){if(Rm(le))return Ke(t.createPropertyAssignment(t.cloneNode(A),t.createPropertyAccessExpression(t.getGeneratedNameForNode(le.parent),t.createIdentifier("default"))),W);if(x_(le))return Ke(t.createPropertyAssignment(t.cloneNode(A),t.createPropertyAccessExpression(t.getGeneratedNameForNode(((St=(Pe=le.parent)==null?void 0:Pe.parent)==null?void 0:St.parent)||le),t.cloneNode(le.propertyName||le.name))),W)}}return W}function Ge(W){switch(W.kind){case 80:return mt(W);case 226:return Be(W);case 236:return nt(W)}return W}function mt(W){var Pe,St;if(ha(W)&8192){const A=jw(k);return A?t.createPropertyAccessExpression(A,W):W}if(!Oo(W)&&!ah(W)){const A=c.getReferencedImportDeclaration(W);if(A){if(Rm(A))return Ke(t.createPropertyAccessExpression(t.getGeneratedNameForNode(A.parent),t.createIdentifier("default")),W);if(x_(A))return Ke(t.createPropertyAccessExpression(t.getGeneratedNameForNode(((St=(Pe=A.parent)==null?void 0:Pe.parent)==null?void 0:St.parent)||A),t.cloneNode(A.propertyName||A.name)),W)}}return W}function Be(W){if(Kh(W.operatorToken.kind)&&Ie(W.left)&&(!Oo(W.left)||QD(W.left))&&!ah(W.left)){const Pe=wt(W.left);if(Pe){let St=W;for(const A of Pe)St=zt(A,Yt(St));return St}}return W}function nt(W){return rC(W)?t.createPropertyAccessExpression(F,t.createIdentifier("meta")):W}function wt(W){let Pe;const St=ir(W);if(St){const A=c.getReferencedExportContainer(W,!1);A&&A.kind===312&&(Pe=_r(Pe,t.getDeclarationName(St))),Pe=Nn(Pe,w==null?void 0:w.exportedBindings[cu(St)])}else if(Oo(W)&&QD(W)){const A=w==null?void 0:w.exportSpecifiers.get(W);if(A){const le=[];for(const V of A)le.push(V.name);return le}}return Pe}function ir(W){if(!Oo(W)){const Pe=c.getReferencedImportDeclaration(W);if(Pe)return Pe;const St=c.getReferencedValueDeclaration(W);if(St&&(w!=null&&w.exportedBindings[cu(St)]))return St;const A=c.getReferencedValueDeclarations(W);if(A){for(const le of A)if(le!==St&&(w!=null&&w.exportedBindings[cu(le)]))return le}return St}}function Yt(W){return $===void 0&&($=[]),$[Oa(W)]=!0,W}function Kt(W){return $&&W.id&&$[W.id]}}var aRe=Dt({"src/compiler/transformers/module/system.ts"(){Fs()}});function fq(e){const{factory:t,getEmitHelperFactory:n}=e,i=e.getEmitHost(),s=e.getEmitResolver(),o=e.getCompilerOptions(),c=Fa(o),u=e.onEmitNode,f=e.onSubstituteNode;e.onEmitNode=$,e.onSubstituteNode=j,e.enableEmitNotification(312),e.enableSubstitution(80);let g,d,y;return Gp(e,S);function S(R){if(R.isDeclarationFile)return R;if(Ic(R)||Tp(o)){d=R,y=void 0;let Y=T(R);return d=void 0,y&&(Y=t.updateSourceFile(Y,Ke(t.createNodeArray(dz(Y.statements.slice(),y)),Y.statements))),!Ic(R)||au(o)===200||ct(Y.statements,t8)?Y:t.updateSourceFile(Y,Ke(t.createNodeArray([...Y.statements,Lw(t)]),Y.statements))}return R}function T(R){const Y=qV(t,n(),R,o);if(Y){const ue=[],pe=t.copyPrologue(R.statements,ue);return _r(ue,Y),Nn(ue,Dr(R.statements,k,Ei,pe)),t.updateSourceFile(R,Ke(t.createNodeArray(ue),R.statements))}else return ur(R,k,e)}function k(R){switch(R.kind){case 271:return au(o)>=100?P(R):void 0;case 277:return J(R);case 278:return U(R)}return R}function w(R){const Y=gx(t,R,E.checkDefined(d),i,s,o),ue=[];if(Y&&ue.push(Y),au(o)===200)return t.createCallExpression(t.createIdentifier("require"),void 0,ue);if(!y){const H=t.createUniqueName("_createRequire",48),q=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports([t.createImportSpecifier(!1,t.createIdentifier("createRequire"),H)])),t.createStringLiteral("module"),void 0),ee=t.createUniqueName("__require",48),oe=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(ee,void 0,void 0,t.createCallExpression(t.cloneNode(H),void 0,[t.createPropertyAccessExpression(t.createMetaProperty(102,t.createIdentifier("meta")),t.createIdentifier("url"))]))],c>=2?2:0));y=[q,oe]}const pe=y[1].declarationList.declarations[0].name;return E.assertNode(pe,Ie),t.createCallExpression(t.cloneNode(pe),void 0,ue)}function P(R){E.assert(C1(R),"import= for internal module references should be handled in an earlier transformer.");let Y;return Y=_r(Y,dn(Ke(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.cloneNode(R.name),void 0,void 0,w(R))],c>=2?2:0)),R),R)),Y=F(Y,R),xm(Y)}function F(R,Y){return Rn(Y,32)&&(R=_r(R,t.createExportDeclaration(void 0,Y.isTypeOnly,t.createNamedExports([t.createExportSpecifier(!1,void 0,on(Y.name))])))),R}function J(R){return R.isExportEquals?au(o)===200?dn(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),R.expression)),R):void 0:R}function U(R){if(o.module!==void 0&&o.module>5||!R.exportClause||!jm(R.exportClause)||!R.moduleSpecifier)return R;const Y=R.exportClause.name,ue=t.getGeneratedNameForNode(Y),pe=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamespaceImport(ue)),R.moduleSpecifier,R.attributes);dn(pe,R.exportClause);const H=c5(R)?t.createExportDefault(ue):t.createExportDeclaration(void 0,!1,t.createNamedExports([t.createExportSpecifier(!1,ue,Y)]));return dn(H,R),[pe,H]}function $(R,Y,ue){Ni(Y)?((Ic(Y)||Tp(o))&&o.importHelpers&&(g=new Map),u(R,Y,ue),g=void 0):u(R,Y,ue)}function j(R,Y){return Y=f(R,Y),g&&Ie(Y)&&ha(Y)&8192?re(Y):Y}function re(R){const Y=on(R);let ue=g.get(Y);return ue||g.set(Y,ue=t.createUniqueName(Y,48)),ue}}var oRe=Dt({"src/compiler/transformers/module/esnextAnd2015.ts"(){Fs()}});function Sae(e){const t=e.onSubstituteNode,n=e.onEmitNode,i=fq(e),s=e.onSubstituteNode,o=e.onEmitNode;e.onSubstituteNode=t,e.onEmitNode=n;const c=_q(e),u=e.onSubstituteNode,f=e.onEmitNode;e.onSubstituteNode=d,e.onEmitNode=y,e.enableSubstitution(312),e.enableEmitNotification(312);let g;return k;function d(P,F){return Ni(F)?(g=F,t(P,F)):g?g.impliedNodeFormat===99?s(P,F):u(P,F):t(P,F)}function y(P,F,J){return Ni(F)&&(g=F),g?g.impliedNodeFormat===99?o(P,F,J):f(P,F,J):n(P,F,J)}function S(P){return P.impliedNodeFormat===99?i:c}function T(P){if(P.isDeclarationFile)return P;g=P;const F=S(P)(P);return g=void 0,E.assert(Ni(F)),F}function k(P){return P.kind===312?T(P):w(P)}function w(P){return e.factory.createBundle(nr(P.sourceFiles,T),P.prepends)}}var cRe=Dt({"src/compiler/transformers/module/node.ts"(){Fs()}});function w9(e){return hi(e)||xs(e)||B_(e)||Ea(e)||Xh(e)||Q0(e)||Pw(e)||ix(e)||hc(e)||Lm(e)||Xc(e)||rs(e)||Uo(e)||s0(e)||El(e)||qp(e)||sc(e)||i2(e)||Sn(e)||Co(e)||Zr(e)||gp(e)}function Tae(e){if(Xh(e)||Q0(e))return t;return Lm(e)||hc(e)?i:o0(e);function t(o){const c=n(o);return c!==void 0?{diagnosticMessage:c,errorNode:e,typeName:e.name}:void 0}function n(o){return Ms(e)?o.errorModuleName?o.accessibility===2?p.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:p.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263?o.errorModuleName?o.accessibility===2?p.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:p.Public_property_0_of_exported_class_has_or_is_using_private_name_1:o.errorModuleName?p.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:p.Property_0_of_exported_interface_has_or_is_using_private_name_1}function i(o){const c=s(o);return c!==void 0?{diagnosticMessage:c,errorNode:e,typeName:e.name}:void 0}function s(o){return Ms(e)?o.errorModuleName?o.accessibility===2?p.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:p.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263?o.errorModuleName?o.accessibility===2?p.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:p.Public_method_0_of_exported_class_has_or_is_using_private_name_1:o.errorModuleName?p.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:p.Method_0_of_exported_interface_has_or_is_using_private_name_1}}function o0(e){if(hi(e)||xs(e)||B_(e)||Sn(e)||Co(e)||Zr(e)||Ea(e)||sc(e))return n;return Xh(e)||Q0(e)?i:Pw(e)||ix(e)||hc(e)||Lm(e)||Xc(e)||i2(e)?s:rs(e)?O_(e,e.parent)&&Rn(e.parent,2)?n:o:Uo(e)?u:s0(e)?f:El(e)?g:qp(e)||gp(e)?d:E.assertNever(e,`Attempted to set a declaration diagnostic context for unhandled node kind: ${E.formatSyntaxKind(e.kind)}`);function t(y){if(e.kind===260||e.kind===208)return y.errorModuleName?y.accessibility===2?p.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:p.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&&Rn(e.parent,2))return Ms(e)?y.errorModuleName?y.accessibility===2?p.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:p.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?p.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:p.Public_property_0_of_exported_class_has_or_is_using_private_name_1:y.errorModuleName?p.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:p.Property_0_of_exported_interface_has_or_is_using_private_name_1}function n(y){const S=t(y);return S!==void 0?{diagnosticMessage:S,errorNode:e,typeName:e.name}:void 0}function i(y){let S;return e.kind===178?Ms(e)?S=y.errorModuleName?p.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:p.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:S=y.errorModuleName?p.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:p.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:Ms(e)?S=y.errorModuleName?y.accessibility===2?p.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:p.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:S=y.errorModuleName?y.accessibility===2?p.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:p.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:S,errorNode:e.name,typeName:e.name}}function s(y){let S;switch(e.kind){case 180:S=y.errorModuleName?p.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:p.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 179:S=y.errorModuleName?p.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:p.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 181:S=y.errorModuleName?p.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:p.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 174:case 173:Ms(e)?S=y.errorModuleName?y.accessibility===2?p.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:p.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:p.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:e.parent.kind===263?S=y.errorModuleName?y.accessibility===2?p.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:p.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:p.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:S=y.errorModuleName?p.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:p.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 262:S=y.errorModuleName?y.accessibility===2?p.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:p.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:p.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return E.fail("This is unknown kind for signature: "+e.kind)}return{diagnosticMessage:S,errorNode:e.name||e}}function o(y){const S=c(y);return S!==void 0?{diagnosticMessage:S,errorNode:e,typeName:e.name}:void 0}function c(y){switch(e.parent.kind){case 176:return y.errorModuleName?y.accessibility===2?p.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 180:case 185:return y.errorModuleName?p.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 179:return y.errorModuleName?p.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 181:return y.errorModuleName?p.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 174:case 173:return Ms(e.parent)?y.errorModuleName?y.accessibility===2?p.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:p.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?p.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:y.errorModuleName?p.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 262:case 184:return y.errorModuleName?y.accessibility===2?p.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 178:case 177:return y.errorModuleName?y.accessibility===2?p.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:p.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:p.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return E.fail(`Unknown parent for parameter: ${E.formatSyntaxKind(e.parent.kind)}`)}}function u(){let y;switch(e.parent.kind){case 263:y=p.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 264:y=p.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 200:y=p.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 185:case 180:y=p.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 179:y=p.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 174:case 173:Ms(e.parent)?y=p.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===263?y=p.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:y=p.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 184:case 262:y=p.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 195:y=p.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 265:y=p.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return E.fail("This is unknown parent for type parameter: "+e.parent.kind)}return{diagnosticMessage:y,errorNode:e,typeName:e.name}}function f(){let y;return Qc(e.parent.parent)?y=xf(e.parent)&&e.parent.token===119?p.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.parent.parent.name?p.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:p.extends_clause_of_exported_class_has_or_is_using_private_name_0:y=p.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:y,errorNode:e,typeName:us(e.parent.parent)}}function g(){return{diagnosticMessage:p.Import_declaration_0_is_using_private_name_1,errorNode:e,typeName:e.name}}function d(y){return{diagnosticMessage:y.errorModuleName?p.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:p.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:gp(e)?E.checkDefined(e.typeExpression):e.type,typeName:gp(e)?us(e):e.name}}}var lRe=Dt({"src/compiler/transformers/declarations/diagnostics.ts"(){Fs()}});function xae(e,t,n){const i=e.getCompilerOptions();return yA(t,e,I,i,n?[n]:An(e.getSourceFiles(),Mz),[pq],!1).diagnostics}function pq(e){const t=()=>E.fail("Diagnostic emitted without context");let n=t,i=!0,s=!1,o=!1,c=!1,u=!1,f,g,d,y,S,T;const{factory:k}=e,w=e.getEmitHost(),P={trackSymbol:ae,reportInaccessibleThisError:me,reportInaccessibleUniqueSymbolError:ke,reportCyclicStructureError:Oe,reportPrivateInBaseOfClassExpression:K,reportLikelyUnsafeImportRequiredError:be,reportTruncationError:xe,moduleResolverHost:w,trackReferencedAmbientModule:q,trackExternalModuleSymbolOfImportTypeNode:Se,reportNonlocalAugmentation:De,reportNonSerializableProperty:ft};let F,J,U,$,j,re;const R=e.getEmitResolver(),Y=e.getCompilerOptions(),{noResolve:ue,stripInternal:pe}=Y;return Fe;function H(B){if(B){g=g||new Set;for(const Ge of B)g.add(Ge)}}function q(B,Ge){const mt=R.getTypeReferenceDirectivesForSymbol(Ge,-1);if(mr(mt))return H(mt);const Be=wr(B);$.set(cu(Be),Be)}function ee(B){const Ge=lC(B),mt=Ge&&R.tryFindAmbientModule(Ge);if(mt!=null&&mt.declarations)for(const Be of mt.declarations)su(Be)&&wr(Be)!==U&&q(Be,mt)}function oe(B){if(B.accessibility===0){if(B.aliasesToMakeVisible)if(!d)d=B.aliasesToMakeVisible;else for(const Ge of B.aliasesToMakeVisible)Jf(d,Ge)}else{const Ge=n(B);if(Ge)return Ge.typeName?e.addDiagnostic(yn(B.errorNode||Ge.errorNode,Ge.diagnosticMessage,jc(Ge.typeName),B.errorSymbolName,B.errorModuleName)):e.addDiagnostic(yn(B.errorNode||Ge.errorNode,Ge.diagnosticMessage,B.errorSymbolName,B.errorModuleName)),!0}return!1}function Se(B){s||(T||(T=[])).push(B)}function ae(B,Ge,mt){if(B.flags&262144)return!1;const Be=oe(R.isSymbolAccessible(B,Ge,mt,!0));return H(R.getTypeReferenceDirectivesForSymbol(B,mt)),Be}function K(B){(F||J)&&e.addDiagnostic(yn(F||J,p.Property_0_of_exported_class_expression_may_not_be_private_or_protected,B))}function fe(){return F?eo(F):J&&us(J)?eo(us(J)):J&&oc(J)?J.isExportEquals?"export=":"default":"(Missing)"}function ke(){(F||J)&&e.addDiagnostic(yn(F||J,p.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,fe(),"unique symbol"))}function Oe(){(F||J)&&e.addDiagnostic(yn(F||J,p.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,fe()))}function me(){(F||J)&&e.addDiagnostic(yn(F||J,p.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,fe(),"this"))}function be(B){(F||J)&&e.addDiagnostic(yn(F||J,p.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,fe(),B))}function xe(){(F||J)&&e.addDiagnostic(yn(F||J,p.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))}function De(B,Ge,mt){var Be;const nt=(Be=Ge.declarations)==null?void 0:Be.find(ir=>wr(ir)===B),wt=An(mt.declarations,ir=>wr(ir)!==B);if(nt&&wt)for(const ir of wt)e.addDiagnostic(la(yn(ir,p.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),yn(nt,p.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}function ft(B){(F||J)&&e.addDiagnostic(yn(F||J,p.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,B))}function ge(B,Ge){const mt=n;n=nt=>nt.errorNode&&w9(nt.errorNode)?o0(nt.errorNode)(nt):{diagnosticMessage:nt.errorModuleName?p.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:p.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:nt.errorNode||B};const Be=R.getDeclarationStatementsForSourceFile(B,nS,P,Ge);return n=mt,Be}function Fe(B){if(B.kind===312&&B.isDeclarationFile)return B;if(B.kind===313){s=!0,$=new Map,j=new Map;let Pe=!1;const St=k.createBundle(nr(B.sourceFiles,V=>{if(V.isDeclarationFile)return;if(Pe=Pe||V.hasNoDefaultLib,U=V,f=V,d=void 0,S=!1,y=new Map,n=t,c=!1,u=!1,$e(V,$),Pt(V,j),af(V)||mp(V)){o=!1,i=!1;const Ne=Ou(V)?k.createNodeArray(ge(V,!0)):Dr(V.statements,Hn,Ei);return k.updateSourceFile(V,[k.createModuleDeclaration([k.createModifier(138)],k.createStringLiteral(z5(e.getEmitHost(),V)),k.createModuleBlock(Ke(k.createNodeArray(Ue(Ne)),V.statements)))],!0,[],[],!1,[])}i=!0;const ce=Ou(V)?k.createNodeArray(ge(V)):Dr(V.statements,Hn,Ei);return k.updateSourceFile(V,Ue(ce),!0,[],[],!1,[])}),Ri(B.prepends,V=>{if(V.kind===315){const ce=lV(V,"dts",pe);return Pe=Pe||!!ce.hasNoDefaultLib,$e(ce,$),H(nr(ce.typeReferenceDirectives,Ne=>[Ne.fileName,Ne.resolutionMode])),Pt(ce,j),ce}return V}));St.syntheticFileReferences=[],St.syntheticTypeReferences=Yt(),St.syntheticLibReferences=ir(),St.hasNoDefaultLib=Pe;const A=Un(iu(W3(B,w,!0).declarationFilePath)),le=W(St.syntheticFileReferences,A);return $.forEach(le),St}i=!0,c=!1,u=!1,f=B,U=B,n=t,s=!1,o=!1,S=!1,d=void 0,y=new Map,g=void 0,$=$e(U,new Map),j=Pt(U,new Map);const Ge=[],mt=Un(iu(W3(B,w,!0).declarationFilePath)),Be=W(Ge,mt);let nt;if(Ou(U))nt=k.createNodeArray(ge(B)),$.forEach(Be),re=An(nt,kb);else{const Pe=Dr(B.statements,Hn,Ei);nt=Ke(k.createNodeArray(Ue(Pe)),B.statements),$.forEach(Be),re=An(nt,kb),Ic(B)&&(!o||c&&!u)&&(nt=Ke(k.createNodeArray([...nt,Lw(k)]),nt))}const wt=k.updateSourceFile(B,nt,!0,Ge,Yt(),B.hasNoDefaultLib,ir());return wt.exportedModulesFromDeclarationEmit=T,wt;function ir(){return gs(j.keys(),Pe=>({fileName:Pe,pos:-1,end:-1}))}function Yt(){return g?Ri(gs(g.keys()),Kt):[]}function Kt([Pe,St]){if(re){for(const A of re)if(El(A)&&Bm(A.moduleReference)){const le=A.moduleReference.expression;if(Ma(le)&&le.text===Pe)return}else if(sl(A)&&aa(A.moduleSpecifier)&&A.moduleSpecifier.text===Pe)return}return{fileName:Pe,pos:-1,end:-1,...St?{resolutionMode:St}:void 0}}function W(Pe,St){return A=>{if(T!=null&&T.includes(A.symbol))return;let le;if(A.isDeclarationFile)le=A.fileName;else{if(s&&bs(B.sourceFiles,A))return;const V=W3(A,w,!0);le=V.declarationFilePath||V.jsFilePath||A.fileName}if(le){const V=l9(Y,U,Xi(St,w.getCurrentDirectory()),Xi(le,w.getCurrentDirectory()),w);if(!nf(V)){H([[V,void 0]]);return}let ce=kT(St,le,w.getCurrentDirectory(),w.getCanonicalFileName,!1);if(Vi(ce,"./")&&xT(ce)&&(ce=ce.substring(2)),Vi(ce,"node_modules/")||W1(ce))return;Pe.push({pos:-1,end:-1,fileName:ce})}}}}function $e(B,Ge){return ue||!Xb(B)&&Ou(B)||rr(B.referencedFiles,mt=>{const Be=w.getSourceFileFromReference(B,mt);Be&&Ge.set(cu(Be),Be)}),Ge}function Pt(B,Ge){return rr(B.libReferenceDirectives,mt=>{w.getLibFileFromReference(mt)&&Ge.set(km(mt.fileName),!0)}),Ge}function at(B){if(B.kind===80)return B;return B.kind===207?k.updateArrayBindingPattern(B,Dr(B.elements,Ge,G7)):k.updateObjectBindingPattern(B,Dr(B.elements,Ge,Ea));function Ge(mt){return mt.kind===232?mt:(mt.propertyName&&Pa(mt.propertyName)&&pc(mt.propertyName.expression)&&yi(mt.propertyName.expression,f),k.updateBindingElement(mt,mt.dotDotDotToken,mt.propertyName,at(mt.name),pt(mt)?mt.initializer:void 0))}}function Je(B,Ge,mt){let Be;S||(Be=n,n=o0(B));const nt=k.updateParameterDeclaration(B,_Re(k,B,Ge),B.dotDotDotToken,at(B.name),R.isOptionalParameter(B)?B.questionToken||k.createToken(58):void 0,Vt(B,mt||B.type,!0),zt(B));return S||(n=Be),nt}function pt(B){return fRe(B)&&R.isLiteralConstDeclaration(as(B))}function zt(B){if(pt(B))return R.createLiteralConstValue(as(B),P)}function Vt(B,Ge,mt){if(!mt&&R_(B,2)||pt(B))return;const Be=B.kind===169&&(R.isRequiredInitializedParameter(B)||R.isOptionalUninitializedParameterProperty(B));if(Ge&&!Be)return qe(Ge,Et,ki);if(!as(B))return Ge?qe(Ge,Et,ki):k.createKeywordTypeNode(133);if(B.kind===178)return k.createKeywordTypeNode(133);F=B.name;let nt;if(S||(nt=n,n=o0(B)),B.kind===260||B.kind===208)return wt(R.createTypeOfDeclaration(B,f,nS,P));if(B.kind===169||B.kind===172||B.kind===171)return B_(B)||!B.initializer?wt(R.createTypeOfDeclaration(B,f,nS,P,Be)):wt(R.createTypeOfDeclaration(B,f,nS,P,Be)||R.createTypeOfExpression(B.initializer,f,nS,P));return wt(R.createReturnTypeOfSignatureDeclaration(B,f,nS,P));function wt(ir){return F=void 0,S||(n=nt),ir||k.createKeywordTypeNode(133)}}function hr(B){switch(B=as(B),B.kind){case 262:case 267:case 264:case 263:case 265:case 266:return!R.isDeclarationVisible(B);case 260:return!er(B);case 271:case 272:case 278:case 277:return!1;case 175:return!0}return!1}function Lr(B){var Ge;if(B.body)return!0;const mt=(Ge=B.symbol.declarations)==null?void 0:Ge.filter(Be=>Xc(Be)&&!Be.body);return!mt||mt.indexOf(B)===mt.length-1}function er(B){return dl(B)?!1:Ns(B.name)?ct(B.name.elements,er):R.isDeclarationVisible(B)}function jt(B,Ge,mt){if(R_(B,2))return k.createNodeArray();const Be=nr(Ge,nt=>Je(nt,mt));return Be?k.createNodeArray(Be,Ge.hasTrailingComma):k.createNodeArray()}function Rt(B,Ge){let mt;if(!Ge){const Be=Xv(B);Be&&(mt=[Je(Be)])}if(J_(B)){let Be;if(!Ge){const nt=NE(B);if(nt){const wt=we(B,R.getAllAccessorDeclarations(B));Be=Je(nt,void 0,wt)}}Be||(Be=k.createParameterDeclaration(void 0,void 0,"value")),mt=_r(mt,Be)}return k.createNodeArray(mt||Ve)}function Kn(B,Ge){return R_(B,2)?void 0:Dr(Ge,Et,Uo)}function Ji(B){return Ni(B)||qp(B)||Sc(B)||Qc(B)||Bu(B)||As(B)||i2(B)||jC(B)}function yi(B,Ge){const mt=R.isEntityNameVisible(B,Ge);oe(mt),H(R.getTypeReferenceDirectivesForEntityName(B))}function os(B,Ge){return sf(B)&&sf(Ge)&&(B.jsDoc=Ge.jsDoc),Nc(B,Qd(Ge))}function yr(B,Ge){if(Ge){if(o=o||B.kind!==267&&B.kind!==205,Ma(Ge))if(s){const mt=dre(e.getEmitHost(),R,B);if(mt)return k.createStringLiteral(mt)}else{const mt=R.getSymbolOfExternalModuleSpecifier(Ge);mt&&(T||(T=[])).push(mt)}return Ge}}function _i(B){if(R.isDeclarationVisible(B))if(B.moduleReference.kind===283){const Ge=vE(B);return k.updateImportEqualsDeclaration(B,B.modifiers,B.isTypeOnly,B.name,k.updateExternalModuleReference(B.moduleReference,yr(B,Ge)))}else{const Ge=n;return n=o0(B),yi(B.moduleReference,f),n=Ge,B}}function ln(B){if(!B.importClause)return k.updateImportDeclaration(B,B.modifiers,B.importClause,yr(B,B.moduleSpecifier),Ht(B.attributes));const Ge=B.importClause&&B.importClause.name&&R.isDeclarationVisible(B.importClause)?B.importClause.name:void 0;if(!B.importClause.namedBindings)return Ge&&k.updateImportDeclaration(B,B.modifiers,k.updateImportClause(B.importClause,B.importClause.isTypeOnly,Ge,void 0),yr(B,B.moduleSpecifier),Ht(B.attributes));if(B.importClause.namedBindings.kind===274){const Be=R.isDeclarationVisible(B.importClause.namedBindings)?B.importClause.namedBindings:void 0;return Ge||Be?k.updateImportDeclaration(B,B.modifiers,k.updateImportClause(B.importClause,B.importClause.isTypeOnly,Ge,Be),yr(B,B.moduleSpecifier),Ht(B.attributes)):void 0}const mt=Ri(B.importClause.namedBindings.elements,Be=>R.isDeclarationVisible(Be)?Be:void 0);if(mt&&mt.length||Ge)return k.updateImportDeclaration(B,B.modifiers,k.updateImportClause(B.importClause,B.importClause.isTypeOnly,Ge,mt&&mt.length?k.updateNamedImports(B.importClause.namedBindings,mt):void 0),yr(B,B.moduleSpecifier),Ht(B.attributes));if(R.isImportRequiredByAugmentation(B))return k.updateImportDeclaration(B,B.modifiers,void 0,yr(B,B.moduleSpecifier),Ht(B.attributes))}function Ht(B){const Ge=o6(B);return B&&Ge!==void 0?B:void 0}function Ue(B){for(;mr(d);){const mt=d.shift();if(!u5(mt))return E.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${E.formatSyntaxKind(mt.kind)}`);const Be=i;i=mt.parent&&Ni(mt.parent)&&!(Ic(mt.parent)&&s);const nt=ns(mt);i=Be,y.set(cu(mt),nt)}return Dr(B,Ge,Ei);function Ge(mt){if(u5(mt)){const Be=cu(mt);if(y.has(Be)){const nt=y.get(Be);return y.delete(Be),nt&&((ts(nt)?ct(nt,$7):$7(nt))&&(c=!0),Ni(mt.parent)&&(ts(nt)?ct(nt,t8):t8(nt))&&(o=!0)),nt}}return mt}}function Et(B){if(Le(B)||yu(B)&&(hr(B)||ty(B)&&!R.isLateBound(as(B)))||As(B)&&R.isImplementationOfOverload(B)||nie(B))return;let Ge;Ji(B)&&(Ge=f,f=B);const mt=n,Be=w9(B),nt=S;let wt=(B.kind===187||B.kind===200)&&B.parent.kind!==265;if((hc(B)||Lm(B))&&R_(B,2))return B.symbol&&B.symbol.declarations&&B.symbol.declarations[0]!==B?void 0:ir(k.createPropertyDeclaration(yt(B),B.name,void 0,void 0,void 0));if(Be&&!S&&(n=o0(B)),sx(B)&&yi(B.exprName,f),wt&&(S=!0),dRe(B))switch(B.kind){case 233:{(b_(B.expression)||pc(B.expression))&&yi(B.expression,f);const Yt=ur(B,Et,e);return ir(k.updateExpressionWithTypeArguments(Yt,Yt.expression,Yt.typeArguments))}case 183:{yi(B.typeName,f);const Yt=ur(B,Et,e);return ir(k.updateTypeReferenceNode(Yt,Yt.typeName,Yt.typeArguments))}case 180:return ir(k.updateConstructSignature(B,Kn(B,B.typeParameters),jt(B,B.parameters),Vt(B,B.type)));case 176:{const Yt=k.createConstructorDeclaration(yt(B),jt(B,B.parameters,0),void 0);return ir(Yt)}case 174:{if(Pi(B.name))return ir(void 0);const Yt=k.createMethodDeclaration(yt(B),void 0,B.name,B.questionToken,Kn(B,B.typeParameters),jt(B,B.parameters),Vt(B,B.type),void 0);return ir(Yt)}case 177:{if(Pi(B.name))return ir(void 0);const Yt=we(B,R.getAllAccessorDeclarations(B));return ir(k.updateGetAccessorDeclaration(B,yt(B),B.name,Rt(B,R_(B,2)),Vt(B,Yt),void 0))}case 178:return Pi(B.name)?ir(void 0):ir(k.updateSetAccessorDeclaration(B,yt(B),B.name,Rt(B,R_(B,2)),void 0));case 172:return Pi(B.name)?ir(void 0):ir(k.updatePropertyDeclaration(B,yt(B),B.name,B.questionToken,Vt(B,B.type),zt(B)));case 171:return Pi(B.name)?ir(void 0):ir(k.updatePropertySignature(B,yt(B),B.name,B.questionToken,Vt(B,B.type)));case 173:return Pi(B.name)?ir(void 0):ir(k.updateMethodSignature(B,yt(B),B.name,B.questionToken,Kn(B,B.typeParameters),jt(B,B.parameters),Vt(B,B.type)));case 179:return ir(k.updateCallSignature(B,Kn(B,B.typeParameters),jt(B,B.parameters),Vt(B,B.type)));case 181:return ir(k.updateIndexSignature(B,yt(B),jt(B,B.parameters),qe(B.type,Et,ki)||k.createKeywordTypeNode(133)));case 260:return Ns(B.name)?_a(B.name):(wt=!0,S=!0,ir(k.updateVariableDeclaration(B,B.name,void 0,Vt(B,B.type),zt(B))));case 168:return fr(B)&&(B.default||B.constraint)?ir(k.updateTypeParameterDeclaration(B,B.modifiers,B.name,void 0,void 0)):ir(ur(B,Et,e));case 194:{const Yt=qe(B.checkType,Et,ki),Kt=qe(B.extendsType,Et,ki),W=f;f=B.trueType;const Pe=qe(B.trueType,Et,ki);f=W;const St=qe(B.falseType,Et,ki);return E.assert(Yt),E.assert(Kt),E.assert(Pe),E.assert(St),ir(k.updateConditionalTypeNode(B,Yt,Kt,Pe,St))}case 184:return ir(k.updateFunctionTypeNode(B,Dr(B.typeParameters,Et,Uo),jt(B,B.parameters),E.checkDefined(qe(B.type,Et,ki))));case 185:return ir(k.updateConstructorTypeNode(B,yt(B),Dr(B.typeParameters,Et,Uo),jt(B,B.parameters),E.checkDefined(qe(B.type,Et,ki))));case 205:return ey(B)?(ee(B),ir(k.updateImportTypeNode(B,k.updateLiteralTypeNode(B.argument,yr(B,B.argument.literal)),B.attributes,B.qualifier,Dr(B.typeArguments,Et,ki),B.isTypeOf))):ir(B);default:E.assertNever(B,`Attempted to process unhandled node kind: ${E.formatSyntaxKind(B.kind)}`)}return ax(B)&&Ha(U,B.pos).line===Ha(U,B.end).line&&Qr(B,1),ir(ur(B,Et,e));function ir(Yt){return Yt&&Be&&ty(B)&&br(B),Ji(B)&&(f=Ge),Be&&!S&&(n=mt),wt&&(S=nt),Yt===B?Yt:Yt&&dn(os(Yt,B),B)}}function fr(B){return B.parent.kind===174&&R_(B.parent,2)}function Hn(B){if(!pRe(B)||Le(B))return;switch(B.kind){case 278:return Ni(B.parent)&&(o=!0),u=!0,ee(B),k.updateExportDeclaration(B,B.modifiers,B.isTypeOnly,B.exportClause,yr(B,B.moduleSpecifier),Ht(B.attributes));case 277:{if(Ni(B.parent)&&(o=!0),u=!0,B.expression.kind===80)return B;{const mt=k.createUniqueName("_default",16);n=()=>({diagnosticMessage:p.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:B}),J=B;const Be=k.createVariableDeclaration(mt,void 0,R.createTypeOfExpression(B.expression,B,nS,P),void 0);J=void 0;const nt=k.createVariableStatement(i?[k.createModifier(138)]:[],k.createVariableDeclarationList([Be],2));return os(nt,B),yw(B),[nt,k.updateExportAssignment(B,B.modifiers,mt)]}}}const Ge=ns(B);return y.set(cu(B),Ge),B}function ei(B){if(El(B)||R_(B,2048)||!Hp(B))return B;const Ge=k.createModifiersFromModifierFlags(Lu(B)&131039);return k.replaceModifiers(B,Ge)}function Ii(B,Ge,mt,Be){const nt=k.updateModuleDeclaration(B,Ge,mt,Be);if(su(nt)||nt.flags&32)return nt;const wt=k.createModuleDeclaration(nt.modifiers,nt.name,nt.body,nt.flags|32);return dn(wt,nt),Ke(wt,nt),wt}function ns(B){if(d)for(;Ik(d,B););if(Le(B))return;switch(B.kind){case 271:{const ir=_i(B);return ir&&ee(B),ir}case 272:{const ir=ln(B);return ir&&ee(B),ir}}if(yu(B)&&hr(B)||As(B)&&R.isImplementationOfOverload(B))return;let Ge;Ji(B)&&(Ge=f,f=B);const mt=w9(B),Be=n;mt&&(n=o0(B));const nt=i;switch(B.kind){case 265:{i=!1;const ir=wt(k.updateTypeAliasDeclaration(B,yt(B),B.name,Dr(B.typeParameters,Et,Uo),E.checkDefined(qe(B.type,Et,ki))));return i=nt,ir}case 264:return wt(k.updateInterfaceDeclaration(B,yt(B),B.name,Kn(B,B.typeParameters),et(B.heritageClauses),Dr(B.members,Et,bb)));case 262:{const ir=wt(k.updateFunctionDeclaration(B,yt(B),void 0,B.name,Kn(B,B.typeParameters),jt(B,B.parameters),Vt(B,B.type),void 0));if(ir&&R.isExpandoFunctionDeclaration(B)&&Lr(B)){const Yt=R.getPropertiesOfContainerFunction(B),Kt=Jm.createModuleDeclaration(void 0,ir.name||k.createIdentifier("_default"),k.createModuleBlock([]),32);ba(Kt,f),Kt.locals=Bs(Yt),Kt.symbol=Yt[0].parent;const W=[];let Pe=Ri(Yt,Ne=>{if(!EF(Ne.valueDeclaration))return;const Ce=xi(Ne.escapedName);if(!bf(Ce,99))return;n=o0(Ne.valueDeclaration);const _t=R.createTypeOfDeclaration(Ne.valueDeclaration,Kt,nS,P);n=Be;const Tt=jT(Ce),Jt=Tt?k.getGeneratedNameForNode(Ne.valueDeclaration):k.createIdentifier(Ce);Tt&&W.push([Jt,Ce]);const ar=k.createVariableDeclaration(Jt,void 0,_t,void 0);return k.createVariableStatement(Tt?void 0:[k.createToken(95)],k.createVariableDeclarationList([ar]))});W.length?Pe.push(k.createExportDeclaration(void 0,!1,k.createNamedExports(nr(W,([Ne,Ce])=>k.createExportSpecifier(!1,Ne,Ce))))):Pe=Ri(Pe,Ne=>k.replaceModifiers(Ne,0));const St=k.createModuleDeclaration(yt(B),B.name,k.createModuleBlock(Pe),32);if(!R_(ir,2048))return[ir,St];const A=k.createModifiersFromModifierFlags(Lu(ir)&-2081|128),le=k.updateFunctionDeclaration(ir,A,void 0,ir.name,ir.typeParameters,ir.parameters,ir.type,void 0),V=k.updateModuleDeclaration(St,A,St.name,St.body),ce=k.createExportAssignment(void 0,!1,St.name);return Ni(B.parent)&&(o=!0),u=!0,[le,V,ce]}else return ir}case 267:{i=!1;const ir=B.body;if(ir&&ir.kind===268){const Yt=c,Kt=u;u=!1,c=!1;const W=Dr(ir.statements,Hn,Ei);let Pe=Ue(W);B.flags&33554432&&(c=!1),!Wd(B)&&!tt(Pe)&&!u&&(c?Pe=k.createNodeArray([...Pe,Lw(k)]):Pe=Dr(Pe,ei,Ei));const St=k.updateModuleBlock(ir,Pe);i=nt,c=Yt,u=Kt;const A=yt(B);return wt(Ii(B,A,Jv(B)?yr(B,B.name):B.name,St))}else{i=nt;const Yt=yt(B);i=!1,qe(ir,Hn);const Kt=cu(ir),W=y.get(Kt);return y.delete(Kt),wt(Ii(B,Yt,B.name,W))}}case 263:{F=B.name,J=B;const ir=k.createNodeArray(yt(B)),Yt=Kn(B,B.typeParameters),Kt=Sg(B);let W;if(Kt){const ce=n;W=hD(Zs(Kt.parameters,Ne=>{if(!Rn(Ne,31)||Le(Ne))return;if(n=o0(Ne),Ne.name.kind===80)return os(k.createPropertyDeclaration(yt(Ne),Ne.name,Ne.questionToken,Vt(Ne,Ne.type),zt(Ne)),Ne);return Ce(Ne.name);function Ce(_t){let Tt;for(const Jt of _t.elements)dl(Jt)||(Ns(Jt.name)&&(Tt=es(Tt,Ce(Jt.name))),Tt=Tt||[],Tt.push(k.createPropertyDeclaration(yt(Ne),Jt.name,void 0,Vt(Jt,void 0),void 0)));return Tt}})),n=ce}const St=ct(B.members,ce=>!!ce.name&&Pi(ce.name))?[k.createPropertyDeclaration(void 0,k.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,A=es(es(St,W),Dr(B.members,Et,Tl)),le=k.createNodeArray(A),V=Vd(B);if(V&&!pc(V.expression)&&V.expression.kind!==106){const ce=B.name?xi(B.name.escapedText):"default",Ne=k.createUniqueName(`${ce}_base`,16);n=()=>({diagnosticMessage:p.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:V,typeName:B.name});const Ce=k.createVariableDeclaration(Ne,void 0,R.createTypeOfExpression(V.expression,B,nS,P),void 0),_t=k.createVariableStatement(i?[k.createModifier(138)]:[],k.createVariableDeclarationList([Ce],2)),Tt=k.createNodeArray(nr(B.heritageClauses,Jt=>{if(Jt.token===96){const ar=n;n=o0(Jt.types[0]);const Er=k.updateHeritageClause(Jt,nr(Jt.types,Nr=>k.updateExpressionWithTypeArguments(Nr,Ne,Dr(Nr.typeArguments,Et,ki))));return n=ar,Er}return k.updateHeritageClause(Jt,Dr(k.createNodeArray(An(Jt.types,ar=>pc(ar.expression)||ar.expression.kind===106)),Et,s0))}));return[_t,wt(k.updateClassDeclaration(B,ir,B.name,Yt,Tt,le))]}else{const ce=et(B.heritageClauses);return wt(k.updateClassDeclaration(B,ir,B.name,Yt,ce,le))}}case 243:return wt(Vs(B));case 266:return wt(k.updateEnumDeclaration(B,k.createNodeArray(yt(B)),B.name,k.createNodeArray(Ri(B.members,ir=>{if(Le(ir))return;const Yt=R.getConstantValue(ir),Kt=Yt===void 0?void 0:typeof Yt=="string"?k.createStringLiteral(Yt):Yt<0?k.createPrefixUnaryExpression(41,k.createNumericLiteral(-Yt)):k.createNumericLiteral(Yt);return os(k.updateEnumMember(ir,ir.name,Kt),ir)}))))}return E.assertNever(B,`Unhandled top-level node in declaration emit: ${E.formatSyntaxKind(B.kind)}`);function wt(ir){return Ji(B)&&(f=Ge),mt&&(n=Be),B.kind===267&&(i=nt),ir===B?ir:(J=void 0,F=void 0,ir&&dn(os(ir,B),B))}}function Vs(B){if(!rr(B.declarationList.declarations,er))return;const Ge=Dr(B.declarationList.declarations,Et,hi);if(!mr(Ge))return;const mt=k.createNodeArray(yt(B));let Be;return d8(B.declarationList)||p8(B.declarationList)?(Be=k.createVariableDeclarationList(Ge,2),dn(Be,B.declarationList),Ke(Be,B.declarationList),Nc(Be,B.declarationList)):Be=k.updateVariableDeclarationList(B.declarationList,Ge),k.updateVariableStatement(B,mt,Be)}function _a(B){return Op(Ri(B.elements,Ge=>cr(Ge)))}function cr(B){if(B.kind!==232&&B.name)return er(B)?Ns(B.name)?_a(B.name):k.createVariableDeclaration(B.name,void 0,Vt(B,void 0),void 0):void 0}function br(B){let Ge;S||(Ge=n,n=Tae(B)),F=B.name,E.assert(R.isLateBound(as(B)));const Be=B.name.expression;yi(Be,f),S||(n=Ge),F=void 0}function Le(B){return!!pe&&!!B&&uz(B,U)}function rt(B){return oc(B)||Tc(B)}function tt(B){return ct(B,rt)}function yt(B){const Ge=Lu(B),mt=ne(B);return Ge===mt?dA(B.modifiers,Be=>Wn(Be,ta),ta):k.createModifiersFromModifierFlags(mt)}function ne(B){let Ge=130030,mt=i&&!uRe(B)?128:0;const Be=B.parent.kind===312;return(!Be||s&&Be&&Ic(B.parent))&&(Ge^=128,mt=0),Ube(B,Ge,mt)}function we(B,Ge){let mt=kae(B);return!mt&&B!==Ge.firstAccessor&&(mt=kae(Ge.firstAccessor),n=o0(Ge.firstAccessor)),!mt&&Ge.secondAccessor&&B!==Ge.secondAccessor&&(mt=kae(Ge.secondAccessor),n=o0(Ge.secondAccessor)),mt}function et(B){return k.createNodeArray(An(nr(B,Ge=>k.updateHeritageClause(Ge,Dr(k.createNodeArray(An(Ge.types,mt=>pc(mt.expression)||Ge.token===96&&mt.expression.kind===106)),Et,s0))),Ge=>Ge.types&&!!Ge.types.length))}}function uRe(e){return e.kind===264}function _Re(e,t,n,i){return e.createModifiersFromModifierFlags(Ube(t,n,i))}function Ube(e,t=131070,n=0){let i=Lu(e)&t|n;return i&2048&&!(i&32)&&(i^=32),i&2048&&i&128&&(i^=128),i}function kae(e){if(e)return e.kind===177?e.type:e.parameters.length>0?e.parameters[0].type:void 0}function fRe(e){switch(e.kind){case 172:case 171:return!R_(e,2);case 169:case 260:return!0}return!1}function pRe(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 dRe(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 nS,mRe=Dt({"src/compiler/transformers/declarations.ts"(){Fs(),wse(),nS=531469}});function gRe(e){switch(e){case 99:case 7:case 6:case 5:case 200:return fq;case 4:return bae;case 100:case 199:return Sae;default:return _q}}function dq(e,t,n){return{scriptTransformers:hRe(e,t,n),declarationTransformers:yRe(t)}}function hRe(e,t,n){if(n)return Ve;const i=Fa(e),s=au(e),o=i3(e),c=[];return Nn(c,t&&nr(t.before,Hbe)),c.push(tae),e.experimentalDecorators&&c.push(iae),uF(e)&&c.push(mae),i<99&&c.push(_ae),!e.experimentalDecorators&&(i<99||!o)&&c.push(sae),c.push(rae),i<8&&c.push(uae),i<7&&c.push(lae),i<6&&c.push(cae),i<5&&c.push(oae),i<4&&c.push(aae),i<3&&c.push(gae),i<2&&(c.push(hae),c.push(vae)),c.push(gRe(s)),i<1&&c.push(yae),Nn(c,t&&nr(t.after,Hbe)),c}function yRe(e){const t=[];return t.push(pq),Nn(t,e&&nr(e.afterDeclarations,bRe)),t}function vRe(e){return t=>NV(t)?e.transformBundle(t):e.transformSourceFile(t)}function qbe(e,t){return n=>{const i=e(n);return typeof i=="function"?t(n,i):vRe(i)}}function Hbe(e){return qbe(e,Gp)}function bRe(e){return qbe(e,(t,n)=>n)}function B3(e,t){return t}function hA(e,t,n){n(e,t)}function yA(e,t,n,i,s,o,c){var u,f;const g=new Array(363);let d,y,S,T=0,k=[],w=[],P=[],F=[],J=0,U=!1,$=[],j=0,re,R,Y=B3,ue=hA,pe=0;const H=[],q={factory:n,getCompilerOptions:()=>i,getEmitResolver:()=>e,getEmitHost:()=>t,getEmitHelperFactory:Hu(()=>Vne(q)),startLexicalEnvironment:ge,suspendLexicalEnvironment:Fe,resumeLexicalEnvironment:$e,endLexicalEnvironment:Pt,setLexicalEnvironmentFlags:at,getLexicalEnvironmentFlags:Je,hoistVariableDeclaration:xe,hoistFunctionDeclaration:De,addInitializationStatement:ft,startBlockScope:pt,endBlockScope:zt,addBlockScopedVariable:Vt,requestEmitHelper:hr,readEmitHelpers:Lr,enableSubstitution:K,enableEmitNotification:Oe,isSubstitutionEnabled:fe,isEmitNotificationEnabled:me,get onSubstituteNode(){return Y},set onSubstituteNode(jt){E.assert(pe<1,"Cannot modify transformation hooks after initialization has completed."),E.assert(jt!==void 0,"Value must not be 'undefined'"),Y=jt},get onEmitNode(){return ue},set onEmitNode(jt){E.assert(pe<1,"Cannot modify transformation hooks after initialization has completed."),E.assert(jt!==void 0,"Value must not be 'undefined'"),ue=jt},addDiagnostic(jt){H.push(jt)}};for(const jt of s)pV(wr(as(jt)));No("beforeTransform");const ee=o.map(jt=>jt(q)),oe=jt=>{for(const Rt of ee)jt=Rt(jt);return jt};pe=1;const Se=[];for(const jt of s)(u=qr)==null||u.push(qr.Phase.Emit,"transformNodes",jt.kind===312?{path:jt.path}:{kind:jt.kind,pos:jt.pos,end:jt.end}),Se.push((c?oe:ae)(jt)),(f=qr)==null||f.pop();return pe=2,No("afterTransform"),vf("transformTime","beforeTransform","afterTransform"),{transformed:Se,substituteNode:ke,emitNodeWithNotification:be,isEmitNotificationEnabled:me,dispose:er,diagnostics:H};function ae(jt){return jt&&(!Ni(jt)||!jt.isDeclarationFile)?oe(jt):jt}function K(jt){E.assert(pe<2,"Cannot modify the transformation context after transformation has completed."),g[jt]|=1}function fe(jt){return(g[jt.kind]&1)!==0&&(ha(jt)&8)===0}function ke(jt,Rt){return E.assert(pe<3,"Cannot substitute a node after the result is disposed."),Rt&&fe(Rt)&&Y(jt,Rt)||Rt}function Oe(jt){E.assert(pe<2,"Cannot modify the transformation context after transformation has completed."),g[jt]|=2}function me(jt){return(g[jt.kind]&2)!==0||(ha(jt)&4)!==0}function be(jt,Rt,Kn){E.assert(pe<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),Rt&&(me(Rt)?ue(jt,Rt,Kn):Kn(jt,Rt))}function xe(jt){E.assert(pe>0,"Cannot modify the lexical environment during initialization."),E.assert(pe<2,"Cannot modify the lexical environment after transformation has completed.");const Rt=Qr(n.createVariableDeclaration(jt),128);d?d.push(Rt):d=[Rt],T&1&&(T|=2)}function De(jt){E.assert(pe>0,"Cannot modify the lexical environment during initialization."),E.assert(pe<2,"Cannot modify the lexical environment after transformation has completed."),Qr(jt,2097152),y?y.push(jt):y=[jt]}function ft(jt){E.assert(pe>0,"Cannot modify the lexical environment during initialization."),E.assert(pe<2,"Cannot modify the lexical environment after transformation has completed."),Qr(jt,2097152),S?S.push(jt):S=[jt]}function ge(){E.assert(pe>0,"Cannot modify the lexical environment during initialization."),E.assert(pe<2,"Cannot modify the lexical environment after transformation has completed."),E.assert(!U,"Lexical environment is suspended."),k[J]=d,w[J]=y,P[J]=S,F[J]=T,J++,d=void 0,y=void 0,S=void 0,T=0}function Fe(){E.assert(pe>0,"Cannot modify the lexical environment during initialization."),E.assert(pe<2,"Cannot modify the lexical environment after transformation has completed."),E.assert(!U,"Lexical environment is already suspended."),U=!0}function $e(){E.assert(pe>0,"Cannot modify the lexical environment during initialization."),E.assert(pe<2,"Cannot modify the lexical environment after transformation has completed."),E.assert(U,"Lexical environment is not suspended."),U=!1}function Pt(){E.assert(pe>0,"Cannot modify the lexical environment during initialization."),E.assert(pe<2,"Cannot modify the lexical environment after transformation has completed."),E.assert(!U,"Lexical environment is suspended.");let jt;if(d||y||S){if(y&&(jt=[...y]),d){const Rt=n.createVariableStatement(void 0,n.createVariableDeclarationList(d));Qr(Rt,2097152),jt?jt.push(Rt):jt=[Rt]}S&&(jt?jt=[...jt,...S]:jt=[...S])}return J--,d=k[J],y=w[J],S=P[J],T=F[J],J===0&&(k=[],w=[],P=[],F=[]),jt}function at(jt,Rt){T=Rt?T|jt:T&~jt}function Je(){return T}function pt(){E.assert(pe>0,"Cannot start a block scope during initialization."),E.assert(pe<2,"Cannot start a block scope after transformation has completed."),$[j]=re,j++,re=void 0}function zt(){E.assert(pe>0,"Cannot end a block scope during initialization."),E.assert(pe<2,"Cannot end a block scope after transformation has completed.");const jt=ct(re)?[n.createVariableStatement(void 0,n.createVariableDeclarationList(re.map(Rt=>n.createVariableDeclaration(Rt)),1))]:void 0;return j--,re=$[j],j===0&&($=[]),jt}function Vt(jt){E.assert(j>0,"Cannot add a block scoped variable outside of an iteration body."),(re||(re=[])).push(jt)}function hr(jt){if(E.assert(pe>0,"Cannot modify the transformation context during initialization."),E.assert(pe<2,"Cannot modify the transformation context after transformation has completed."),E.assert(!jt.scoped,"Cannot request a scoped emit helper."),jt.dependencies)for(const Rt of jt.dependencies)hr(Rt);R=_r(R,jt)}function Lr(){E.assert(pe>0,"Cannot modify the transformation context during initialization."),E.assert(pe<2,"Cannot modify the transformation context after transformation has completed.");const jt=R;return R=void 0,jt}function er(){if(pe<3){for(const jt of s)pV(wr(as(jt)));d=void 0,k=void 0,y=void 0,w=void 0,Y=void 0,ue=void 0,R=void 0,pe=3}}}var mq,J3,SRe=Dt({"src/compiler/transformer.ts"(){Fs(),db(),mq={scriptTransformers:Ve,declarationTransformers:Ve},J3={factory:I,getCompilerOptions:()=>({}),getEmitResolver:ks,getEmitHost:ks,getEmitHelperFactory:ks,startLexicalEnvironment:Ca,resumeLexicalEnvironment:Ca,suspendLexicalEnvironment:Ca,endLexicalEnvironment:f1,setLexicalEnvironmentFlags:Ca,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:Ca,hoistFunctionDeclaration:Ca,addInitializationStatement:Ca,startBlockScope:Ca,endBlockScope:f1,addBlockScopedVariable:Ca,requestEmitHelper:Ca,readEmitHelpers:ks,enableSubstitution:Ca,enableEmitNotification:Ca,isSubstitutionEnabled:ks,isEmitNotificationEnabled:ks,onSubstituteNode:B3,onEmitNode:hA,addDiagnostic:Ca}}});function Cae(e){return Zo(e,".tsbuildinfo")}function gq(e,t,n,i=!1,s,o){const c=ts(n)?n:lW(e,n,i),u=e.getCompilerOptions();if(io(u)){const f=e.getPrependNodes();if(c.length||f.length){const g=I.createBundle(c,f),d=t(W3(g,e,i),g);if(d)return d}}else{if(!s)for(const f of c){const g=t(W3(f,e,i),f);if(g)return g}if(o){const f=c0(u);if(f)return t({buildInfoPath:f},void 0)}}}function c0(e){const t=e.configFilePath;if(!n3(e))return;if(e.tsBuildInfoFile)return e.tsBuildInfoFile;const n=io(e);let i;if(n)i=$u(n);else{if(!t)return;const s=$u(t);i=e.outDir?e.rootDir?V0(e.outDir,Rp(e.rootDir,s,!0)):Mn(e.outDir,wc(s)):s}return i+".tsbuildinfo"}function z3(e,t){const n=io(e),i=e.emitDeclarationOnly?void 0:n,s=i&&Gbe(i,e),o=t||Hf(e)?$u(n)+".d.ts":void 0,c=o&&_w(e)?o+".map":void 0,u=c0(e);return{jsFilePath:i,sourceMapFilePath:s,declarationFilePath:o,declarationMapPath:c,buildInfoPath:u}}function W3(e,t,n){const i=t.getCompilerOptions();if(e.kind===313)return z3(i,n);{const s=mre(e.fileName,t,A9(e.fileName,i)),o=mp(e),c=o&&Gg(e.fileName,s,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0,u=i.emitDeclarationOnly||c?void 0:s,f=!u||mp(e)?void 0:Gbe(u,i),g=n||Hf(i)&&!o?gre(e.fileName,t):void 0,d=g&&_w(i)?g+".map":void 0;return{jsFilePath:u,sourceMapFilePath:f,declarationFilePath:g,declarationMapPath:d,buildInfoPath:void 0}}}function Gbe(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function A9(e,t){return Zo(e,".json")?".json":t.jsx===1&&$c(e,[".jsx",".tsx"])?".jsx":$c(e,[".mts",".mjs"])?".mjs":$c(e,[".cts",".cjs"])?".cjs":".js"}function $be(e,t,n,i){return n?V0(n,Rp(i(),e,t)):e}function V3(e,t,n,i=()=>a6(t,n)){return hq(e,t.options,n,i)}function hq(e,t,n,i){return N1($be(e,n,t.declarationDir||t.outDir,i),V5(e))}function Xbe(e,t,n,i=()=>a6(t,n)){if(t.options.emitDeclarationOnly)return;const s=Zo(e,".json"),o=yq(e,t.options,n,i);return!s||Gg(e,o,E.checkDefined(t.options.configFilePath),n)!==0?o:void 0}function yq(e,t,n,i){return N1($be(e,n,t.outDir,i),A9(e,t))}function Qbe(){let e;return{addOutput:t,getOutputs:n};function t(i){i&&(e||(e=[])).push(i)}function n(){return e||Ve}}function Ybe(e,t){const{jsFilePath:n,sourceMapFilePath:i,declarationFilePath:s,declarationMapPath:o,buildInfoPath:c}=z3(e.options,!1);t(n),t(i),t(s),t(o),t(c)}function Zbe(e,t,n,i,s){if(Hl(t))return;const o=Xbe(t,e,n,s);if(i(o),!Zo(t,".json")&&(o&&e.options.sourceMap&&i(`${o}.map`),Hf(e.options))){const c=V3(t,e,n,s);i(c),e.options.declarationMap&&i(`${c}.map`)}}function U3(e,t,n,i,s){let o;return e.rootDir?(o=Xi(e.rootDir,n),s==null||s(e.rootDir)):e.composite&&e.configFilePath?(o=Un(iu(e.configFilePath)),s==null||s(o)):o=Nae(t(),n,i),o&&o[o.length-1]!==Fo&&(o+=Fo),o}function a6({options:e,fileNames:t},n){return U3(e,()=>An(t,i=>!(e.noEmitForJsFiles&&$c(i,FC))&&!Hl(i)),Un(iu(E.checkDefined(e.configFilePath))),nu(!n))}function N9(e,t){const{addOutput:n,getOutputs:i}=Qbe();if(io(e.options))Ybe(e,n);else{const s=Hu(()=>a6(e,t));for(const o of e.fileNames)Zbe(e,o,t,n,s);n(c0(e.options))}return i()}function Kbe(e,t,n){t=Hs(t),E.assert(bs(e.fileNames,t),"Expected fileName to be present in command line");const{addOutput:i,getOutputs:s}=Qbe();return io(e.options)?Ybe(e,i):Zbe(e,t,n,i),s()}function vq(e,t){if(io(e.options)){const{jsFilePath:s,declarationFilePath:o}=z3(e.options,!1);return E.checkDefined(s||o,`project ${e.options.configFilePath} expected to have at least one output`)}const n=Hu(()=>a6(e,t));for(const s of e.fileNames){if(Hl(s))continue;const o=Xbe(s,e,t,n);if(o)return o;if(!Zo(s,".json")&&Hf(e.options))return V3(s,e,t,n)}const i=c0(e.options);return i||E.fail(`project ${e.options.configFilePath} expected to have at least one output`)}function I9(e,t,n,{scriptTransformers:i,declarationTransformers:s},o,c,u){var f=t.getCompilerOptions(),g=f.sourceMap||f.inlineSourceMap||_w(f)?[]:void 0,d=f.listEmittedFiles?[]:void 0,y=yC(),S=t0(f),T=H8(S),{enter:k,exit:w}=EB("printTime","beforePrint","afterPrint"),P,F=!1;return k(),gq(t,J,lW(t,n,u),u,c,!n),w(),{emitSkipped:F,diagnostics:y.getDiagnostics(),emittedFiles:d,sourceMaps:g};function J({jsFilePath:q,sourceMapFilePath:ee,declarationFilePath:oe,declarationMapPath:Se,buildInfoPath:ae},K){var fe,ke,Oe,me,be,xe;let De;ae&&K&&NV(K)&&(De=Un(Xi(ae,t.getCurrentDirectory())),P={commonSourceDirectory:ft(t.getCommonSourceDirectory()),sourceFiles:K.sourceFiles.map(ge=>ft(Xi(ge.fileName,t.getCurrentDirectory())))}),(fe=qr)==null||fe.push(qr.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:q}),$(K,q,ee,ft),(ke=qr)==null||ke.pop(),(Oe=qr)==null||Oe.push(qr.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:oe}),j(K,oe,Se,ft),(me=qr)==null||me.pop(),(be=qr)==null||be.push(qr.Phase.Emit,"emitBuildInfo",{buildInfoPath:ae}),U(P,ae),(xe=qr)==null||xe.pop();function ft(ge){return Fv(Rp(De,ge,t.getCanonicalFileName))}}function U(q,ee){if(!ee||n||F)return;if(t.isEmitBlocked(ee)){F=!0;return}const oe=t.getBuildInfo(q)||vA(void 0,q);wE(t,y,ee,Eae(oe),!1,void 0,{buildInfo:oe}),d==null||d.push(ee)}function $(q,ee,oe,Se){if(!q||o||!ee)return;if(t.isEmitBlocked(ee)||f.noEmit){F=!0;return}const ae=yA(e,t,I,f,[q],i,!1),K={removeComments:f.removeComments,newLine:f.newLine,noEmitHelpers:f.noEmitHelpers,module:f.module,target:f.target,sourceMap:f.sourceMap,inlineSourceMap:f.inlineSourceMap,inlineSources:f.inlineSources,extendedDiagnostics:f.extendedDiagnostics,writeBundleFileInfo:!!P,relativeToBuildInfo:Se},fe=V1(K,{hasGlobalName:e.hasGlobalName,onEmitNode:ae.emitNodeWithNotification,isEmitNotificationEnabled:ae.isEmitNotificationEnabled,substituteNode:ae.substituteNode});E.assert(ae.transformed.length===1,"Should only see one output from the transform"),R(ee,oe,ae,fe,f),ae.dispose(),P&&(P.js=fe.bundleFileInfo),d&&(d.push(ee),oe&&d.push(oe))}function j(q,ee,oe,Se){if(!q||o===0)return;if(!ee){(o||f.emitDeclarationOnly)&&(F=!0);return}const ae=Ni(q)?[q]:q.sourceFiles,K=u?ae:An(ae,Mz),fe=io(f)?[I.createBundle(K,Ni(q)?void 0:q.prepends)]:K;o&&!Hf(f)&&K.forEach(re);const ke=yA(e,t,I,f,fe,s,!1);if(mr(ke.diagnostics))for(const me of ke.diagnostics)y.add(me);const Oe=!!ke.diagnostics&&!!ke.diagnostics.length||!!t.isEmitBlocked(ee)||!!f.noEmit;if(F=F||Oe,!Oe||u){E.assert(ke.transformed.length===1,"Should only see one output from the decl transform");const me={removeComments:f.removeComments,newLine:f.newLine,noEmitHelpers:!0,module:f.module,target:f.target,sourceMap:!u&&f.declarationMap,inlineSourceMap:f.inlineSourceMap,extendedDiagnostics:f.extendedDiagnostics,onlyPrintJsDocStyle:!0,omitBraceSourceMapPositions:!0,writeBundleFileInfo:!!P,recordInternalSection:!!P,relativeToBuildInfo:Se},be=V1(me,{hasGlobalName:e.hasGlobalName,onEmitNode:ke.emitNodeWithNotification,isEmitNotificationEnabled:ke.isEmitNotificationEnabled,substituteNode:ke.substituteNode});R(ee,oe,ke,be,{sourceMap:me.sourceMap,sourceRoot:f.sourceRoot,mapRoot:f.mapRoot,extendedDiagnostics:f.extendedDiagnostics}),d&&(d.push(ee),oe&&d.push(oe)),P&&(P.dts=be.bundleFileInfo)}ke.dispose()}function re(q){if(oc(q)){q.expression.kind===80&&e.collectLinkedAliases(q.expression,!0);return}else if(vu(q)){e.collectLinkedAliases(q.propertyName||q.name,!0);return}Ss(q,re)}function R(q,ee,oe,Se,ae){const K=oe.transformed[0],fe=K.kind===313?K:void 0,ke=K.kind===312?K:void 0,Oe=fe?fe.sourceFiles:[ke];let me;Y(ae,K)&&(me=Mse(t,wc(iu(q)),ue(ae),pe(ae,q,ke),ae)),fe?Se.writeBundle(fe,T,me):Se.writeFile(ke,T,me);let be;if(me){g&&g.push({inputSourceFileNames:me.getSources(),sourceMap:me.toJSON()});const De=H(ae,me,q,ee,ke);if(De&&(T.isAtStartOfLine()||T.rawWrite(S),be=T.getTextPos(),T.writeComment(`//# sourceMappingURL=${De}`)),ee){const ft=me.toString();wE(t,y,ee,ft,!1,Oe),Se.bundleFileInfo&&(Se.bundleFileInfo.mapHash=sS(ft,t))}}else T.writeLine();const xe=T.getText();wE(t,y,q,xe,!!f.emitBOM,Oe,{sourceMapUrlPos:be,diagnostics:oe.diagnostics}),Se.bundleFileInfo&&(Se.bundleFileInfo.hash=sS(xe,t)),T.clear()}function Y(q,ee){return(q.sourceMap||q.inlineSourceMap)&&(ee.kind!==312||!Zo(ee.fileName,".json"))}function ue(q){const ee=iu(q.sourceRoot||"");return ee&&_l(ee)}function pe(q,ee,oe){if(q.sourceRoot)return t.getCommonSourceDirectory();if(q.mapRoot){let Se=iu(q.mapRoot);return oe&&(Se=Un(q5(oe.fileName,t,Se))),Pm(Se)===0&&(Se=Mn(t.getCommonSourceDirectory(),Se)),Se}return Un(Hs(ee))}function H(q,ee,oe,Se,ae){if(q.inlineSourceMap){const fe=ee.toString();return`data:application/json;base64,${Mre(zl,fe)}`}const K=wc(iu(E.checkDefined(Se)));if(q.mapRoot){let fe=iu(q.mapRoot);return ae&&(fe=Un(q5(ae.fileName,t,fe))),Pm(fe)===0?(fe=Mn(t.getCommonSourceDirectory(),fe),encodeURI(kT(Un(Hs(oe)),Mn(fe,K),t.getCurrentDirectory(),t.getCanonicalFileName,!0))):encodeURI(Mn(fe,K))}return encodeURI(K)}}function vA(e,t){return{bundle:t,program:e,version:ld}}function Eae(e){return JSON.stringify(e)}function F9(e,t){return vW(e,t)}function TRe(e,t,n){var i;const s=E.checkDefined(e.js),o=((i=s.sources)==null?void 0:i.prologues)&&Iv(s.sources.prologues,c=>c.file);return e.sourceFiles.map((c,u)=>{const f=o==null?void 0:o.get(u),g=f==null?void 0:f.directives.map(S=>{const T=Ke(I.createStringLiteral(S.expression.text),S.expression),k=Ke(I.createExpressionStatement(T),S);return ba(T,k),k}),d=I.createToken(1),y=I.createSourceFile(g??[],d,0);return y.fileName=Rp(n.getCurrentDirectory(),Xi(c,t),!n.useCaseSensitiveFileNames()),y.text=(f==null?void 0:f.text)??"",XE(y,0,(f==null?void 0:f.text.length)??0),AC(y.statements,y),XE(d,y.end,0),ba(d,y),y})}function Pae(e,t,n,i){var s,o;(s=qr)==null||s.push(qr.Phase.Emit,"emitUsingBuildInfo",{},!0),No("beforeEmit");const c=xRe(e,t,n,i);return No("afterEmit"),vf("Emit","beforeEmit","afterEmit"),(o=qr)==null||o.pop(),c}function xRe(e,t,n,i){const{buildInfoPath:s,jsFilePath:o,sourceMapFilePath:c,declarationFilePath:u,declarationMapPath:f}=z3(e.options,!1),g=t.getBuildInfo(s,e.options.configFilePath);if(!g||!g.bundle||!g.bundle.js||u&&!g.bundle.dts)return s;const d=t.readFile(E.checkDefined(o));if(!d||sS(d,t)!==g.bundle.js.hash)return o;const y=c&&t.readFile(c);if(c&&!y||e.options.inlineSourceMap)return c||"inline sourcemap decoding";if(c&&sS(y,t)!==g.bundle.js.mapHash)return c;const S=u&&t.readFile(u);if(u&&!S||u&&sS(S,t)!==g.bundle.dts.hash)return u;const T=f&&t.readFile(f);if(f&&!T||e.options.inlineSourceMap)return f||"inline sourcemap decoding";if(f&&sS(T,t)!==g.bundle.dts.mapHash)return f;const k=Un(Xi(s,t.getCurrentDirectory())),w=_V(o,d,c,y,u,S,f,T,s,g,!0),P=[],F=Wq(e.projectReferences,n,re=>t.readFile(re),t),J=TRe(g.bundle,k,t);let U,$;const j={getPrependNodes:Hu(()=>[...F,w]),getCanonicalFileName:t.getCanonicalFileName,getCommonSourceDirectory:()=>Xi(g.bundle.commonSourceDirectory,k),getCompilerOptions:()=>e.options,getCurrentDirectory:()=>t.getCurrentDirectory(),getSourceFile:f1,getSourceFileByPath:f1,getSourceFiles:()=>J,getLibFileFromReference:ks,isSourceFileFromExternalLibrary:_d,getResolvedProjectReferenceToRedirect:f1,getProjectReferenceRedirect:f1,isSourceOfProjectReferenceRedirect:_d,writeFile:(re,R,Y,ue,pe,H)=>{switch(re){case o:if(d===R)return;break;case c:if(y===R)return;break;case s:break;case u:if(S===R)return;U=R,$=H;break;case f:if(T===R)return;break;default:E.fail(`Unexpected path: ${re}`)}P.push({name:re,text:R,writeByteOrderMark:Y,data:H})},isEmitBlocked:_d,readFile:re=>t.readFile(re),fileExists:re=>t.fileExists(re),useCaseSensitiveFileNames:()=>t.useCaseSensitiveFileNames(),getBuildInfo:re=>{const R=g.program;R&&U!==void 0&&e.options.composite&&(R.outSignature=sS(U,t,$));const{js:Y,dts:ue,sourceFiles:pe}=g.bundle;return re.js.sources=Y.sources,ue&&(re.dts.sources=ue.sources),re.sourceFiles=pe,vA(R,re)},getSourceFileFromReference:f1,redirectTargetsMap:yf(),getFileIncludeReasons:ks,createHash:Os(t,t.createHash)};return I9(O9,j,void 0,dq(e.options,i)),P}function V1(e={},t={}){var{hasGlobalName:n,onEmitNode:i=hA,isEmitNotificationEnabled:s,substituteNode:o=B3,onBeforeEmitNode:c,onAfterEmitNode:u,onBeforeEmitNodeArray:f,onAfterEmitNodeArray:g,onBeforeEmitToken:d,onAfterEmitToken:y}=t,S=!!e.extendedDiagnostics,T=!!e.omitBraceSourceMapPositions,k=t0(e),w=au(e),P=new Map,F,J,U,$,j,re,R,Y,ue,pe,H,q,ee,oe,Se,ae=e.preserveSourceNewlines,K,fe,ke,Oe=DS,me,be=e.writeBundleFileInfo?{sections:[]}:void 0,xe=be?E.checkDefined(e.relativeToBuildInfo):void 0,De=e.recordInternalSection,ft=0,ge="text",Fe=!0,$e,Pt,at=-1,Je,pt=-1,zt=-1,Vt=-1,hr=-1,Lr,er,jt=!1,Rt=!!e.removeComments,Kn,Ji,{enter:yi,exit:os}=I0e(S,"commentTime","beforeComment","afterComment"),yr=I.parenthesizer,_i={select:C=>C===0?yr.parenthesizeLeadingTypeArgument:void 0},ln=fh();return Ge(),{printNode:Ht,printList:Ue,printFile:fr,printBundle:Et,writeNode:ei,writeList:Ii,writeFile:tt,writeBundle:Le,bundleFileInfo:be};function Ht(C,te,it){switch(C){case 0:E.assert(Ni(te),"Expected a SourceFile node.");break;case 2:E.assert(Ie(te),"Expected an Identifier node.");break;case 1:E.assert(ot(te),"Expected an Expression node.");break}switch(te.kind){case 312:return fr(te);case 313:return Et(te);case 314:return Hn(te)}return ei(C,te,it,yt()),ne()}function Ue(C,te,it){return Ii(C,te,it,yt()),ne()}function Et(C){return Le(C,yt(),void 0),ne()}function fr(C){return tt(C,yt(),void 0),ne()}function Hn(C){return rt(C,yt()),ne()}function ei(C,te,it,Ut){const vn=fe;B(Ut,void 0),we(C,te,it),Ge(),fe=vn}function Ii(C,te,it,Ut){const vn=fe;B(Ut,void 0),it&&et(it),Eo(void 0,te,C),Ge(),fe=vn}function ns(){return fe.getTextPosWithWriteLine?fe.getTextPosWithWriteLine():fe.getTextPos()}function Vs(C,te,it){const Ut=Do(be.sections);Ut&&Ut.kind===it?Ut.end=te:be.sections.push({pos:C,end:te,kind:it})}function _a(C){if(De&&be&&F&&(yu(C)||ac(C))&&uz(C,F)&&ge!=="internal"){const te=ge;return br(fe.getTextPos()),ft=ns(),ge="internal",te}}function cr(C){C&&(br(fe.getTextPos()),ft=ns(),ge=C)}function br(C){return ftE.assert(qre(Gs))),be.sections.push({pos:gi,end:fe.getTextPos(),kind:"prepend",data:xe(vn.fileName),texts:Li}))}}ft=ns();for(const vn of C.sourceFiles)we(0,vn,vn);if(be&&C.sourceFiles.length){const vn=fe.getTextPos();if(br(vn)){const gi=EP(C);gi&&(be.sources||(be.sources={}),be.sources.prologues=gi);const ti=Tt(C);ti&&(be.sources||(be.sources={}),be.sources.helpers=ti)}}Ge(),fe=Ut}function rt(C,te){const it=fe;B(te,void 0),we(4,C,void 0),Ge(),fe=it}function tt(C,te,it){me=!0;const Ut=fe;B(te,it),wy(C),yh(C),we(0,C,C),Ge(),fe=Ut}function yt(){return ke||(ke=H8(k))}function ne(){const C=ke.getText();return ke.clear(),C}function we(C,te,it){it&&et(it),W(C,te,void 0)}function et(C){F=C,Lr=void 0,er=void 0,C&&xh(C)}function B(C,te){C&&e.omitTrailingSemicolon&&(C=oW(C)),fe=C,$e=te,Fe=!fe||!$e}function Ge(){J=[],U=[],$=[],j=new Set,re=[],R=new Map,Y=[],ue=0,pe=[],H=0,q=[],ee=void 0,oe=[],Se=void 0,F=void 0,Lr=void 0,er=void 0,B(void 0,void 0)}function mt(){return Lr||(Lr=$g(E.checkDefined(F)))}function Be(C,te){if(C===void 0)return;const it=_a(C);W(4,C,te),cr(it)}function nt(C){C!==void 0&&W(2,C,void 0)}function wt(C,te){C!==void 0&&W(1,C,te)}function ir(C){W(aa(C)?6:4,C)}function Yt(C){ae&&Jp(C)&4&&(ae=!1)}function Kt(C){ae=C}function W(C,te,it){Ji=it,A(0,C,te)(C,te),Ji=void 0}function Pe(C){return!Rt&&!Ni(C)}function St(C){return!Fe&&!Ni(C)&&!P5(C)&&!Xb(C)&&!cie(C)}function A(C,te,it){switch(C){case 0:if(i!==hA&&(!s||s(it)))return V;case 1:if(o!==B3&&(Kn=o(te,it)||it)!==it)return Ji&&(Kn=Ji(Kn)),_t;case 2:if(Pe(it))return n4;case 3:if(St(it))return _v;case 4:return ce;default:return E.assertNever(C)}}function le(C,te,it){return A(C+1,te,it)}function V(C,te){const it=le(0,C,te);i(C,te,it)}function ce(C,te){if(c==null||c(te),ae){const it=ae;Yt(te),Ne(C,te),Kt(it)}else Ne(C,te);u==null||u(te),Ji=void 0}function Ne(C,te,it=!0){if(it){const Ut=dV(te);if(Ut)return Qi(C,te,Ut)}if(C===0)return tk(Ls(te,Ni));if(C===2)return In(Ls(te,Ie));if(C===6)return Nr(Ls(te,aa),!0);if(C===3)return Ce(Ls(te,Uo));if(C===7)return $x(Ls(te,_x));if(C===5)return E.assertNode(te,DV),ji(!0);if(C===4){switch(te.kind){case 16:case 17:case 18:return Nr(te,!1);case 80:return In(te);case 81:return is(te);case 166:return pr(te);case 167:return kc(te);case 168:return _s(te);case 169:return Ra(te);case 170:return go(te);case 171:return qo(te);case 172:return Ol(te);case 173:return $i(te);case 174:return zs(te);case 175:return Ll(te);case 176:return Ya(te);case 177:case 178:return oa(te);case 179:return Wo(te);case 180:return Zf(te);case 181:return Fc(te);case 182:return fs(te);case 183:return Wt(te);case 184:return ho(te);case 185:return Zc(te);case 186:return se(te);case 187:return X(te);case 188:return Ee(te);case 189:return Xt(te);case 190:return rn(te);case 192:return En(te);case 193:return li(te);case 194:return gn(te);case 195:return Ps(te);case 196:return Qo(te);case 233:return Ct(te);case 197:return gl();case 198:return yo(te);case 199:return Vc(te);case 200:return $a(te);case 201:return hl(te);case 202:return an(te);case 203:return E_(te);case 204:return rc(te);case 205:return cl(te);case 206:return Ep(te);case 207:return Ju(te);case 208:return Te(te);case 239:return Ft(te);case 240:return Ro();case 241:return zr(te);case 243:return Ln(te);case 242:return ji(!1);case 244:return fa(te);case 245:return pa(te);case 246:return Rl(te);case 247:return Kc(te);case 248:return G_(te);case 249:return p_(te);case 250:return ky(te);case 251:return Qp(te);case 252:return Yp(te);case 253:return A2(te);case 254:return If(te);case 255:return am(te);case 256:return Ff(te);case 257:return dh(te);case 258:return Ae(te);case 259:return We(te);case 260:return bt(te);case 261:return Nt(te);case 262:return sr(te);case 263:return ws(te);case 264:return ku(te);case 265:return jl(te);case 266:return mh(te);case 267:return Z1(te);case 268:return Ux(te);case 269:return K1(te);case 270:return Qx(te);case 271:return V6(te);case 272:return q6(te);case 273:return hS(te);case 274:return N2(te);case 280:return I2(te);case 275:return qx(te);case 276:return H6(te);case 277:return Hx(te);case 278:return Gx(te);case 279:return F2(te);case 281:return Cy(te);case 300:return Xx(te);case 301:return yS(te);case 282:return;case 283:return ev(te);case 12:return gh(te);case 286:case 289:return tv(te);case 287:case 290:return Hm(te);case 291:return d_(te);case 292:return ep(te);case 293:return $_(te);case 294:return $6(te);case 295:return Yx(te);case 296:return rv(te);case 297:return Zx(te);case 298:return v0(te);case 299:return Kx(te);case 303:return Td(te);case 304:return SS(te);case 305:return Me(te);case 306:return xd(te);case 307:return oi(te);case 314:case 308:return fi(te);case 309:case 310:return Wr(te);case 311:return Cn(te);case 312:return tk(te);case 313:return E.fail("Bundles should be printed using printBundle");case 315:return E.fail("InputFiles should not be printed");case 316:return hh(te);case 317:return Dy(te);case 319:return en("*");case 320:return en("?");case 321:return Ml(te);case 322:return q_(te);case 323:return so(te);case 324:return Pl(te);case 191:case 325:return lt(te);case 326:return;case 327:return Bl(te);case 329:return xS(te);case 330:return iv(te);case 334:case 339:case 344:return TS(te);case 335:case 336:return b0(te);case 337:case 338:return;case 340:case 341:case 342:case 343:return;case 345:return xa(te);case 346:return kd(te);case 348:case 355:return kS(te);case 347:case 349:case 350:case 351:case 356:case 357:return nv(te);case 352:return S0(te);case 353:return kP(te);case 354:return ek(te);case 359:return}if(ot(te)&&(C=1,o!==B3)){const Ut=o(C,te)||te;Ut!==te&&(te=Ut,Ji&&(te=Ji(te)))}}if(C===1)switch(te.kind){case 9:case 10:return Er(te);case 11:case 14:case 15:return Nr(te,!1);case 80:return In(te);case 81:return is(te);case 209:return kt(te);case 210:return Fr(te);case 211:return Yi(te);case 212:return Is(te);case 213:return Cc(te);case 214:return Uc(te);case 215:return jo(te);case 216:return Ho(te);case 217:return dc(te);case 218:return Ec(te);case 219:return yl(te);case 220:return __(te);case 221:return Ku(te);case 222:return Kf(te);case 223:return sm(te);case 224:return qm(te);case 225:return _u(te);case 226:return ln(te);case 227:return H_(te);case 228:return Ag(te);case 229:return f_(te);case 230:return Q(te);case 231:return Ye(te);case 232:return;case 234:return At(te);case 235:return O(te);case 233:return Ct(te);case 238:return he(te);case 236:return Xe(te);case 237:return E.fail("SyntheticExpression should never be printed.");case 282:return;case 284:return wa(te);case 285:return vS(te);case 288:return G6(te);case 358:return E.fail("SyntaxList should not be printed");case 359:return;case 360:return jn(te);case 361:return Gm(te);case 362:return E.fail("SyntheticReferenceExpression should not be printed")}if(c_(te.kind))return j2(te,Oi);if(YJ(te.kind))return j2(te,en);E.fail(`Unhandled SyntaxKind: ${E.formatSyntaxKind(te.kind)}.`)}function Ce(C){Be(C.name),$r(),Oi("in"),$r(),Be(C.constraint)}function _t(C,te){const it=le(1,C,te);E.assertIsDefined(Kn),te=Kn,Kn=void 0,it(C,te)}function Tt(C){let te;if(w===0||e.noEmitHelpers)return;const it=new Map;for(const Ut of C.sourceFiles){const vn=jw(Ut)!==void 0,gi=ar(Ut);if(gi)for(const ti of gi)!ti.scoped&&!vn&&!it.get(ti.name)&&(it.set(ti.name,!0),(te||(te=[])).push(ti.name))}return te}function Jt(C){let te=!1;const it=C.kind===313?C:void 0;if(it&&w===0)return;const Ut=it?it.prepends.length:0,vn=it?it.sourceFiles.length+Ut:1;for(let gi=0;gi"),$r(),Be(C.type),D_(C)}function Pl(C){Oi("function"),T0(C,C.parameters),en(":"),Be(C.type)}function Ml(C){en("?"),Be(C.type)}function q_(C){en("!"),Be(C.type)}function so(C){Be(C.type),en("=")}function Zc(C){$l(C),Ig(C,C.modifiers),Oi("new"),$r(),om(C,C.typeParameters),T0(C,C.parameters),$r(),en("=>"),$r(),Be(C.type),D_(C)}function se(C){Oi("typeof"),$r(),Be(C.exprName),Og(C,C.typeArguments)}function X(C){tp(0,void 0),en("{");const te=ha(C)&1?768:32897;Eo(C,C.members,te|524288),en("}"),Oy()}function Ee(C){Be(C.elementType,yr.parenthesizeNonArrayTypeOfPostfixType),en("["),en("]")}function lt(C){en("..."),Be(C.type)}function Xt(C){Ci(23,C.pos,en,C);const te=ha(C)&1?528:657;Eo(C,C.elements,te|524288,yr.parenthesizeElementTypeOfTupleType),Ci(24,C.elements.end,en,C)}function an(C){Be(C.dotDotDotToken),Be(C.name),Be(C.questionToken),Ci(59,C.name.end,en,C),$r(),Be(C.type)}function rn(C){Be(C.type,yr.parenthesizeTypeOfOptionalType),en("?")}function En(C){Eo(C,C.types,516,yr.parenthesizeConstituentTypeOfUnionType)}function li(C){Eo(C,C.types,520,yr.parenthesizeConstituentTypeOfIntersectionType)}function gn(C){Be(C.checkType,yr.parenthesizeCheckTypeOfConditionalType),$r(),Oi("extends"),$r(),Be(C.extendsType,yr.parenthesizeExtendsTypeOfConditionalType),$r(),en("?"),$r(),Be(C.trueType),$r(),en(":"),$r(),Be(C.falseType)}function Ps(C){Oi("infer"),$r(),Be(C.typeParameter)}function Qo(C){en("("),Be(C.type),en(")")}function gl(){Oi("this")}function yo(C){Iy(C.operator,Oi),$r();const te=C.operator===148?yr.parenthesizeOperandOfReadonlyTypeOperator:yr.parenthesizeOperandOfTypeOperator;Be(C.type,te)}function Vc(C){Be(C.objectType,yr.parenthesizeNonArrayTypeOfPostfixType),en("["),Be(C.indexType),en("]")}function $a(C){const te=ha(C);en("{"),te&1?$r():(vl(),$m()),C.readonlyToken&&(Be(C.readonlyToken),C.readonlyToken.kind!==148&&Oi("readonly"),$r()),en("["),W(3,C.typeParameter),C.nameType&&($r(),Oi("as"),$r(),Be(C.nameType)),en("]"),C.questionToken&&(Be(C.questionToken),C.questionToken.kind!==58&&en("?")),en(":"),$r(),Be(C.type),Dl(),te&1?$r():(vl(),td()),Eo(C,C.members,2),en("}")}function hl(C){wt(C.literal)}function E_(C){Be(C.head),Eo(C,C.templateSpans,262144)}function cl(C){C.isTypeOf&&(Oi("typeof"),$r()),Oi("import"),en("("),Be(C.argument),C.attributes&&(en(","),$r(),W(7,C.attributes)),en(")"),C.qualifier&&(en("."),Be(C.qualifier)),Og(C,C.typeArguments)}function Ep(C){en("{"),Eo(C,C.elements,525136),en("}")}function Ju(C){en("["),Eo(C,C.elements,524880),en("]")}function Te(C){Be(C.dotDotDotToken),C.propertyName&&(Be(C.propertyName),en(":"),$r()),Be(C.name),Ay(C.initializer,C.name.end,C,yr.parenthesizeExpressionForDisallowedComma)}function kt(C){const te=C.elements,it=C.multiLine?65536:0;M2(C,te,8914|it,yr.parenthesizeExpressionForDisallowedComma)}function Fr(C){tp(0,void 0),rr(C.properties,ik);const te=ha(C)&131072;te&&$m();const it=C.multiLine?65536:0,Ut=F&&F.languageVersion>=1&&!mp(F)?64:0;Eo(C,C.properties,526226|Ut|it),te&&td(),Oy()}function Yi(C){wt(C.expression,yr.parenthesizeLeftSideOfAccess);const te=C.questionDotToken||Fm(I.createToken(25),C.expression.end,C.name.pos),it=ff(C,C.expression,te),Ut=ff(C,te,C.name);rd(it,!1),te.kind!==29&&Ds(C.expression)&&!fe.hasTrailingComment()&&!fe.hasTrailingWhitespace()&&en("."),C.questionDotToken?Be(te):Ci(te.kind,C.expression.end,en,C),rd(Ut,!1),Be(C.name),av(it,Ut)}function Ds(C){if(C=Bp(C),j_(C)){const te=FS(C,!0,!1);return!(C.numericLiteralFlags&448)&&!te.includes(Ws(25))&&!te.includes("E")&&!te.includes("e")}else if(co(C)){const te=Mne(C);return typeof te=="number"&&isFinite(te)&&te>=0&&Math.floor(te)===te}}function Is(C){wt(C.expression,yr.parenthesizeLeftSideOfAccess),Be(C.questionDotToken),Ci(23,C.expression.end,en,C),wt(C.argumentExpression),Ci(24,C.argumentExpression.end,en,C)}function Cc(C){const te=Jp(C)&16;te&&(en("("),Ny("0"),en(","),$r()),wt(C.expression,yr.parenthesizeLeftSideOfAccess),te&&en(")"),Be(C.questionDotToken),Og(C,C.typeArguments),M2(C,C.arguments,2576,yr.parenthesizeExpressionForDisallowedComma)}function Uc(C){Ci(105,C.pos,Oi,C),$r(),wt(C.expression,yr.parenthesizeExpressionOfNew),Og(C,C.typeArguments),M2(C,C.arguments,18960,yr.parenthesizeExpressionForDisallowedComma)}function jo(C){const te=Jp(C)&16;te&&(en("("),Ny("0"),en(","),$r()),wt(C.tag,yr.parenthesizeLeftSideOfAccess),te&&en(")"),Og(C,C.typeArguments),$r(),wt(C.template)}function Ho(C){en("<"),Be(C.type),en(">"),wt(C.expression,yr.parenthesizeOperandOfPrefixUnary)}function dc(C){const te=Ci(21,C.pos,en,C),it=e4(C.expression,C);wt(C.expression,void 0),B2(C.expression,C),av(it),Ci(22,C.expression?C.expression.end:te,en,C)}function Ec(C){pf(C.name),Mr(C)}function yl(C){Ig(C,C.modifiers),tr(C,Nf)}function Nf(C){om(C,C.typeParameters),Y6(C,C.parameters),wp(C.type),$r(),Be(C.equalsGreaterThanToken)}function __(C){Ci(91,C.pos,Oi,C),$r(),wt(C.expression,yr.parenthesizeOperandOfPrefixUnary)}function Ku(C){Ci(114,C.pos,Oi,C),$r(),wt(C.expression,yr.parenthesizeOperandOfPrefixUnary)}function Kf(C){Ci(116,C.pos,Oi,C),$r(),wt(C.expression,yr.parenthesizeOperandOfPrefixUnary)}function sm(C){Ci(135,C.pos,Oi,C),$r(),wt(C.expression,yr.parenthesizeOperandOfPrefixUnary)}function qm(C){Iy(C.operator,Of),_h(C)&&$r(),wt(C.operand,yr.parenthesizeOperandOfPrefixUnary)}function _h(C){const te=C.operand;return te.kind===224&&(C.operator===40&&(te.operator===40||te.operator===46)||C.operator===41&&(te.operator===41||te.operator===47))}function _u(C){wt(C.operand,yr.parenthesizeOperandOfPostfixUnary),Iy(C.operator,Of)}function fh(){return RO(C,te,it,Ut,vn,void 0);function C(ti,Li){if(Li){Li.stackIndex++,Li.preserveSourceNewlinesStack[Li.stackIndex]=ae,Li.containerPosStack[Li.stackIndex]=zt,Li.containerEndStack[Li.stackIndex]=Vt,Li.declarationListContainerEndStack[Li.stackIndex]=hr;const Gs=Li.shouldEmitCommentsStack[Li.stackIndex]=Pe(ti),Cu=Li.shouldEmitSourceMapsStack[Li.stackIndex]=St(ti);c==null||c(ti),Gs&&RS(ti),Cu&&lk(ti),Yt(ti)}else Li={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return Li}function te(ti,Li,Gs){return gi(ti,Gs,"left")}function it(ti,Li,Gs){const Cu=ti.kind!==28,t_=ff(Gs,Gs.left,ti),np=ff(Gs,ti,Gs.right);rd(t_,Cu),Mg(ti.pos),j2(ti,ti.kind===103?Oi:Of),nd(ti.end,!0),rd(np,!0)}function Ut(ti,Li,Gs){return gi(ti,Gs,"right")}function vn(ti,Li){const Gs=ff(ti,ti.left,ti.operatorToken),Cu=ff(ti,ti.operatorToken,ti.right);if(av(Gs,Cu),Li.stackIndex>0){const t_=Li.preserveSourceNewlinesStack[Li.stackIndex],np=Li.containerPosStack[Li.stackIndex],jy=Li.containerEndStack[Li.stackIndex],ni=Li.declarationListContainerEndStack[Li.stackIndex],Ym=Li.shouldEmitCommentsStack[Li.stackIndex],Ar=Li.shouldEmitSourceMapsStack[Li.stackIndex];Kt(t_),Ar&&JS(ti),Ym&&i4(ti,np,jy,ni),u==null||u(ti),Li.stackIndex--}}function gi(ti,Li,Gs){const Cu=Gs==="left"?yr.getParenthesizeLeftSideOfBinaryForOperator(Li.operatorToken.kind):yr.getParenthesizeRightSideOfBinaryForOperator(Li.operatorToken.kind);let t_=A(0,1,ti);if(t_===_t&&(E.assertIsDefined(Kn),ti=Cu(Ls(Kn,ot)),t_=le(1,1,ti),Kn=void 0),(t_===n4||t_===_v||t_===ce)&&Zr(ti))return ti;Ji=Cu,t_(1,ti)}}function H_(C){const te=ff(C,C.condition,C.questionToken),it=ff(C,C.questionToken,C.whenTrue),Ut=ff(C,C.whenTrue,C.colonToken),vn=ff(C,C.colonToken,C.whenFalse);wt(C.condition,yr.parenthesizeConditionOfConditionalExpression),rd(te,!0),Be(C.questionToken),rd(it,!0),wt(C.whenTrue,yr.parenthesizeBranchOfConditionalExpression),av(te,it),rd(Ut,!0),Be(C.colonToken),rd(vn,!0),wt(C.whenFalse,yr.parenthesizeBranchOfConditionalExpression),av(Ut,vn)}function Ag(C){Be(C.head),Eo(C,C.templateSpans,262144)}function f_(C){Ci(127,C.pos,Oi,C),Be(C.asteriskToken),L2(C.expression&&Zp(C.expression),w2)}function Q(C){Ci(26,C.pos,en,C),wt(C.expression,yr.parenthesizeExpressionForDisallowedComma)}function Ye(C){pf(C.name),Ta(C)}function Ct(C){wt(C.expression,yr.parenthesizeLeftSideOfAccess),Og(C,C.typeArguments)}function At(C){wt(C.expression,void 0),C.type&&($r(),Oi("as"),$r(),Be(C.type))}function O(C){wt(C.expression,yr.parenthesizeLeftSideOfAccess),Of("!")}function he(C){wt(C.expression,void 0),C.type&&($r(),Oi("satisfies"),$r(),Be(C.type))}function Xe(C){R2(C.keywordToken,C.pos,en),en("."),Be(C.name)}function Ft(C){wt(C.expression),Be(C.literal)}function zr(C){Vn(C,!C.multiLine&&IS(C))}function Vn(C,te){Ci(19,C.pos,en,C);const it=te||ha(C)&1?768:129;Eo(C,C.statements,it),Ci(20,C.statements.end,en,C,!!(it&1))}function Ln(C){_f(C,C.modifiers,!1),Be(C.declarationList),Dl()}function ji(C){C?en(";"):Dl()}function fa(C){wt(C.expression,yr.parenthesizeExpressionOfExpressionStatement),(!F||!mp(F)||ko(C.expression))&&Dl()}function pa(C){const te=Ci(101,C.pos,Oi,C);$r(),Ci(21,te,en,C),wt(C.expression),Ci(22,C.expression.end,en,C),Fg(C,C.thenStatement),C.elseStatement&&(bh(C,C.thenStatement,C.elseStatement),Ci(93,C.thenStatement.end,Oi,C),C.elseStatement.kind===245?($r(),Be(C.elseStatement)):Fg(C,C.elseStatement))}function lc(C,te){const it=Ci(117,te,Oi,C);$r(),Ci(21,it,en,C),wt(C.expression),Ci(22,C.expression.end,en,C)}function Rl(C){Ci(92,C.pos,Oi,C),Fg(C,C.statement),Cs(C.statement)&&!ae?$r():bh(C,C.statement,C.expression),lc(C,C.statement.end),Dl()}function Kc(C){lc(C,C.pos),Fg(C,C.statement)}function G_(C){const te=Ci(99,C.pos,Oi,C);$r();let it=Ci(21,te,en,C);ja(C.initializer),it=Ci(27,C.initializer?C.initializer.end:it,en,C),L2(C.condition),it=Ci(27,C.condition?C.condition.end:it,en,C),L2(C.incrementor),Ci(22,C.incrementor?C.incrementor.end:it,en,C),Fg(C,C.statement)}function p_(C){const te=Ci(99,C.pos,Oi,C);$r(),Ci(21,te,en,C),ja(C.initializer),$r(),Ci(103,C.initializer.end,Oi,C),$r(),wt(C.expression),Ci(22,C.expression.end,en,C),Fg(C,C.statement)}function ky(C){const te=Ci(99,C.pos,Oi,C);$r(),CS(C.awaitModifier),Ci(21,te,en,C),ja(C.initializer),$r(),Ci(165,C.initializer.end,Oi,C),$r(),wt(C.expression),Ci(22,C.expression.end,en,C),Fg(C,C.statement)}function ja(C){C!==void 0&&(C.kind===261?Be(C):wt(C))}function Qp(C){Ci(88,C.pos,Oi,C),vh(C.label),Dl()}function Yp(C){Ci(83,C.pos,Oi,C),vh(C.label),Dl()}function Ci(C,te,it,Ut,vn){const gi=as(Ut),ti=gi&&gi.kind===Ut.kind,Li=te;if(ti&&F&&(te=ca(F.text,te)),ti&&Ut.pos!==Li){const Gs=vn&&F&&!Uf(Li,te,F);Gs&&$m(),Mg(Li),Gs&&td()}if(!T&&(C===19||C===20)?te=R2(C,te,it,Ut):te=Iy(C,it,te),ti&&Ut.end!==te){const Gs=Ut.kind===294;nd(te,!Gs,Gs)}return te}function ph(C){return C.kind===2||!!C.hasTrailingNewLine}function h0(C){if(!F)return!1;const te=_g(F.text,C.pos);if(te){const it=as(C);if(it&&l_(it.parent))return!0}return ct(te,ph)||ct(OC(C),ph)?!0:xO(C)?C.pos!==C.expression.pos&&ct(m1(F.text,C.expression.pos),ph)?!0:h0(C.expression):!1}function Zp(C){if(!Rt&&xO(C)&&h0(C)){const te=as(C);if(te&&l_(te)){const it=I.createParenthesizedExpression(C.expression);return dn(it,C),Ke(it,te),it}return I.createParenthesizedExpression(C)}return C}function w2(C){return Zp(yr.parenthesizeExpressionForDisallowedComma(C))}function A2(C){Ci(107,C.pos,Oi,C),L2(C.expression&&Zp(C.expression),Zp),Dl()}function If(C){const te=Ci(118,C.pos,Oi,C);$r(),Ci(21,te,en,C),wt(C.expression),Ci(22,C.expression.end,en,C),Fg(C,C.statement)}function am(C){const te=Ci(109,C.pos,Oi,C);$r(),Ci(21,te,en,C),wt(C.expression),Ci(22,C.expression.end,en,C),$r(),Be(C.caseBlock)}function Ff(C){Be(C.label),Ci(59,C.label.end,en,C),$r(),Be(C.statement)}function dh(C){Ci(111,C.pos,Oi,C),L2(Zp(C.expression),Zp),Dl()}function Ae(C){Ci(113,C.pos,Oi,C),$r(),Be(C.tryBlock),C.catchClause&&(bh(C,C.tryBlock,C.catchClause),Be(C.catchClause)),C.finallyBlock&&(bh(C,C.catchClause||C.tryBlock,C.finallyBlock),Ci(98,(C.catchClause||C.tryBlock).end,Oi,C),$r(),Be(C.finallyBlock))}function We(C){R2(89,C.pos,Oi),Dl()}function bt(C){var te,it,Ut;Be(C.name),Be(C.exclamationToken),wp(C.type),Ay(C.initializer,((te=C.type)==null?void 0:te.end)??((Ut=(it=C.name.emitNode)==null?void 0:it.typeNode)==null?void 0:Ut.end)??C.name.end,C,yr.parenthesizeExpressionForDisallowedComma)}function Nt(C){if(p8(C))Oi("await"),$r(),Oi("using");else{const te=p5(C)?"let":tC(C)?"const":d8(C)?"using":"var";Oi(te)}$r(),Eo(C,C.declarations,528)}function sr(C){Mr(C)}function Mr(C){_f(C,C.modifiers,!1),Oi("function"),Be(C.asteriskToken),$r(),nt(C.name),tr(C,Rr)}function tr(C,te){const it=C.body;if(it)if(Cs(it)){const Ut=ha(C)&131072;Ut&&$m(),$l(C),rr(C.parameters,wl),wl(C.body),te(C),Gr(it),D_(C),Ut&&td()}else te(C),$r(),wt(it,yr.parenthesizeConciseBodyOfArrowFunction);else te(C),Dl()}function Rr(C){om(C,C.typeParameters),T0(C,C.parameters),wp(C.type)}function Yn(C){if(ha(C)&1)return!0;if(C.multiLine||!ko(C)&&F&&!Rb(C,F)||Lg(C,bl(C.statements),2)||nk(C,Do(C.statements),2,C.statements))return!1;let te;for(const it of C.statements){if(Fy(te,it,2)>0)return!1;te=it}return!0}function Gr(C){c==null||c(C),$r(),en("{"),$m();const te=Yn(C)?zn:Yr;un(C,C.statements,te),td(),R2(20,C.statements.end,en,C),u==null||u(C)}function zn(C){Yr(C,!0)}function Yr(C,te){const it=m_(C.statements),Ut=fe.getTextPos();Jt(C),it===0&&Ut===fe.getTextPos()&&te?(td(),Eo(C,C.statements,768),$m()):Eo(C,C.statements,1,void 0,it)}function ws(C){Ta(C)}function Ta(C){tp(0,void 0),rr(C.members,ik),_f(C,C.modifiers,!0),Ci(86,$d(C).pos,Oi,C),C.name&&($r(),nt(C.name));const te=ha(C)&131072;te&&$m(),om(C,C.typeParameters),Eo(C,C.heritageClauses,0),$r(),en("{"),Eo(C,C.members,129),en("}"),te&&td(),Oy()}function ku(C){tp(0,void 0),_f(C,C.modifiers,!1),Oi("interface"),$r(),Be(C.name),om(C,C.typeParameters),Eo(C,C.heritageClauses,512),$r(),en("{"),Eo(C,C.members,129),en("}"),Oy()}function jl(C){_f(C,C.modifiers,!1),Oi("type"),$r(),Be(C.name),om(C,C.typeParameters),$r(),en("="),$r(),Be(C.type),Dl()}function mh(C){_f(C,C.modifiers,!1),Oi("enum"),$r(),Be(C.name),$r(),en("{"),Eo(C,C.members,145),en("}")}function Z1(C){_f(C,C.modifiers,!1),~C.flags&2048&&(Oi(C.flags&32?"namespace":"module"),$r()),Be(C.name);let te=C.body;if(!te)return Dl();for(;te&&Sc(te);)en("."),Be(te.name),te=te.body;$r(),Be(te)}function Ux(C){$l(C),rr(C.statements,wl),Vn(C,IS(C)),D_(C)}function K1(C){Ci(19,C.pos,en,C),Eo(C,C.clauses,129),Ci(20,C.clauses.end,en,C,!0)}function V6(C){_f(C,C.modifiers,!1),Ci(102,C.modifiers?C.modifiers.end:C.pos,Oi,C),$r(),C.isTypeOnly&&(Ci(156,C.pos,Oi,C),$r()),Be(C.name),$r(),Ci(64,C.name.end,en,C),$r(),U6(C.moduleReference),Dl()}function U6(C){C.kind===80?wt(C):Be(C)}function q6(C){_f(C,C.modifiers,!1),Ci(102,C.modifiers?C.modifiers.end:C.pos,Oi,C),$r(),C.importClause&&(Be(C.importClause),$r(),Ci(161,C.importClause.end,Oi,C),$r()),wt(C.moduleSpecifier),C.attributes&&vh(C.attributes),Dl()}function hS(C){C.isTypeOnly&&(Ci(156,C.pos,Oi,C),$r()),Be(C.name),C.name&&C.namedBindings&&(Ci(28,C.name.end,en,C),$r()),Be(C.namedBindings)}function N2(C){const te=Ci(42,C.pos,en,C);$r(),Ci(130,te,Oi,C),$r(),Be(C.name)}function qx(C){Ey(C)}function H6(C){Ng(C)}function Hx(C){const te=Ci(95,C.pos,Oi,C);$r(),C.isExportEquals?Ci(64,te,Of,C):Ci(90,te,Oi,C),$r(),wt(C.expression,C.isExportEquals?yr.getParenthesizeRightSideOfBinaryForOperator(64):yr.parenthesizeExpressionOfExportDefault),Dl()}function Gx(C){_f(C,C.modifiers,!1);let te=Ci(95,C.pos,Oi,C);if($r(),C.isTypeOnly&&(te=Ci(156,te,Oi,C),$r()),C.exportClause?Be(C.exportClause):te=Ci(42,te,en,C),C.moduleSpecifier){$r();const it=C.exportClause?C.exportClause.end:te;Ci(161,it,Oi,C),$r(),wt(C.moduleSpecifier)}C.attributes&&vh(C.attributes),Dl()}function $x(C){en("{"),$r(),Oi(C.token===132?"assert":"with"),en(":"),$r();const te=C.elements;Eo(C,te,526226),$r(),en("}")}function Xx(C){Ci(C.token,C.pos,Oi,C),$r();const te=C.elements;Eo(C,te,526226)}function yS(C){Be(C.name),en(":"),$r();const te=C.value;if(!(ha(te)&1024)){const it=Qd(te);nd(it.pos)}Be(te)}function Qx(C){let te=Ci(95,C.pos,Oi,C);$r(),te=Ci(130,te,Oi,C),$r(),te=Ci(145,te,Oi,C),$r(),Be(C.name),Dl()}function I2(C){const te=Ci(42,C.pos,en,C);$r(),Ci(130,te,Oi,C),$r(),Be(C.name)}function F2(C){Ey(C)}function Cy(C){Ng(C)}function Ey(C){en("{"),Eo(C,C.elements,525136),en("}")}function Ng(C){C.isTypeOnly&&(Oi("type"),$r()),C.propertyName&&(Be(C.propertyName),$r(),Ci(130,C.propertyName.end,Oi,C),$r()),Be(C.name)}function ev(C){Oi("require"),en("("),wt(C.expression),en(")")}function wa(C){Be(C.openingElement),Eo(C,C.children,262144),Be(C.closingElement)}function vS(C){en("<"),Py(C.tagName),Og(C,C.typeArguments),$r(),Be(C.attributes),en("/>")}function G6(C){Be(C.openingFragment),Eo(C,C.children,262144),Be(C.closingFragment)}function tv(C){if(en("<"),Zd(C)){const te=e4(C.tagName,C);Py(C.tagName),Og(C,C.typeArguments),C.attributes.properties&&C.attributes.properties.length>0&&$r(),Be(C.attributes),B2(C.attributes,C),av(te)}en(">")}function gh(C){fe.writeLiteral(C.text)}function Hm(C){en("")}function ep(C){Eo(C,C.properties,262656)}function d_(C){Be(C.name),Kp("=",en,C.initializer,ir)}function $_(C){en("{..."),wt(C.expression),en("}")}function P_(C){let te=!1;return jD((F==null?void 0:F.text)||"",C+1,()=>te=!0),te}function y0(C){let te=!1;return RD((F==null?void 0:F.text)||"",C+1,()=>te=!0),te}function bS(C){return P_(C)||y0(C)}function $6(C){var te;if(C.expression||!Rt&&!ko(C)&&bS(C.pos)){const it=F&&!ko(C)&&Ha(F,C.pos).line!==Ha(F,C.end).line;it&&fe.increaseIndent();const Ut=Ci(19,C.pos,en,C);Be(C.dotDotDotToken),wt(C.expression),Ci(20,((te=C.expression)==null?void 0:te.end)||Ut,en,C),it&&fe.decreaseIndent()}}function Yx(C){nt(C.namespace),en(":"),nt(C.name)}function Py(C){C.kind===80?wt(C):Be(C)}function rv(C){Ci(84,C.pos,Oi,C),$r(),wt(C.expression,yr.parenthesizeExpressionForDisallowedComma),qc(C,C.statements,C.expression.end)}function Zx(C){const te=Ci(90,C.pos,Oi,C);qc(C,C.statements,te)}function qc(C,te,it){const Ut=te.length===1&&(!F||ko(C)||ko(te[0])||tF(C,te[0],F));let vn=163969;Ut?(R2(59,it,en,C),$r(),vn&=-130):Ci(59,it,en,C),Eo(C,te,vn)}function v0(C){$r(),Iy(C.token,Oi),$r(),Eo(C,C.types,528)}function Kx(C){const te=Ci(85,C.pos,Oi,C);$r(),C.variableDeclaration&&(Ci(21,te,en,C),Be(C.variableDeclaration),Ci(22,C.variableDeclaration.end,en,C),$r()),Be(C.block)}function Td(C){Be(C.name),en(":"),$r();const te=C.initializer;if(!(ha(te)&1024)){const it=Qd(te);nd(it.pos)}wt(te,yr.parenthesizeExpressionForDisallowedComma)}function SS(C){Be(C.name),C.objectAssignmentInitializer&&($r(),en("="),$r(),wt(C.objectAssignmentInitializer,yr.parenthesizeExpressionForDisallowedComma))}function Me(C){C.expression&&(Ci(26,C.pos,en,C),wt(C.expression,yr.parenthesizeExpressionForDisallowedComma))}function xd(C){Be(C.name),Ay(C.initializer,C.name.end,C,yr.parenthesizeExpressionForDisallowedComma)}function Bl(C){if(Oe("/**"),C.comment){const te=GD(C.comment);if(te){const it=te.split(/\r\n?|\n/g);for(const Ut of it)vl(),$r(),en("*"),$r(),Oe(Ut)}}C.tags&&(C.tags.length===1&&C.tags[0].kind===351&&!C.comment?($r(),Be(C.tags[0])):Eo(C,C.tags,33)),$r(),Oe("*/")}function nv(C){Pp(C.tagName),hh(C.typeExpression),Dp(C.comment)}function ek(C){Pp(C.tagName),Be(C.name),Dp(C.comment)}function Dy(C){$r(),en("{"),Be(C.name),en("}")}function b0(C){Pp(C.tagName),$r(),en("{"),Be(C.class),en("}"),Dp(C.comment)}function S0(C){Pp(C.tagName),hh(C.constraint),$r(),Eo(C,C.typeParameters,528),Dp(C.comment)}function kP(C){Pp(C.tagName),C.typeExpression&&(C.typeExpression.kind===316?hh(C.typeExpression):($r(),en("{"),Oe("Object"),C.typeExpression.isArrayType&&(en("["),en("]")),en("}"))),C.fullName&&($r(),Be(C.fullName)),Dp(C.comment),C.typeExpression&&C.typeExpression.kind===329&&xS(C.typeExpression)}function xa(C){Pp(C.tagName),C.name&&($r(),Be(C.name)),Dp(C.comment),iv(C.typeExpression)}function kd(C){Dp(C.comment),iv(C.typeExpression)}function TS(C){Pp(C.tagName),Dp(C.comment)}function xS(C){Eo(C,I.createNodeArray(C.jsDocPropertyTags),33)}function iv(C){C.typeParameters&&Eo(C,I.createNodeArray(C.typeParameters),33),C.parameters&&Eo(C,I.createNodeArray(C.parameters),33),C.type&&(vl(),$r(),en("*"),$r(),Be(C.type))}function kS(C){Pp(C.tagName),hh(C.typeExpression),$r(),C.isBracketed&&en("["),Be(C.name),C.isBracketed&&en("]"),Dp(C.comment)}function Pp(C){en("@"),Be(C)}function Dp(C){const te=GD(C);te&&($r(),Oe(te))}function hh(C){C&&($r(),en("{"),Be(C.type),en("}"))}function tk(C){vl();const te=C.statements;if(te.length===0||!zp(te[0])||ko(te[0])){un(C,te,wi);return}wi(C)}function Cd(C){O2(!!C.hasNoDefaultLib,C.syntheticFileReferences||[],C.syntheticTypeReferences||[],C.syntheticLibReferences||[]);for(const te of C.prepends)if(Xb(te)&&te.syntheticReferences)for(const it of te.syntheticReferences)Be(it),vl()}function X6(C){C.isDeclarationFile&&O2(C.hasNoDefaultLib,C.referencedFiles,C.typeReferenceDirectives,C.libReferenceDirectives)}function O2(C,te,it,Ut){if(C){const vn=fe.getTextPos();cm('/// '),be&&be.sections.push({pos:vn,end:fe.getTextPos(),kind:"no-default-lib"}),vl()}if(F&&F.moduleName&&(cm(`/// `),vl()),F&&F.amdDependencies)for(const vn of F.amdDependencies)vn.name?cm(`/// `):cm(`/// `),vl();for(const vn of te){const gi=fe.getTextPos();cm(`/// `),be&&be.sections.push({pos:gi,end:fe.getTextPos(),kind:"reference",data:vn.fileName}),vl()}for(const vn of it){const gi=fe.getTextPos(),ti=vn.resolutionMode&&vn.resolutionMode!==(F==null?void 0:F.impliedNodeFormat)?`resolution-mode="${vn.resolutionMode===99?"import":"require"}"`:"";cm(`/// `),be&&be.sections.push({pos:gi,end:fe.getTextPos(),kind:vn.resolutionMode?vn.resolutionMode===99?"type-import":"type-require":"type",data:vn.fileName}),vl()}for(const vn of Ut){const gi=fe.getTextPos();cm(`/// `),be&&be.sections.push({pos:gi,end:fe.getTextPos(),kind:"lib",data:vn.fileName}),vl()}}function wi(C){const te=C.statements;$l(C),rr(C.statements,wl),Jt(C);const it=vc(te,Ut=>!zp(Ut));X6(C),Eo(C,te,1,void 0,it===-1?te.length:it),D_(C)}function jn(C){const te=ha(C);!(te&1024)&&C.pos!==C.expression.pos&&nd(C.expression.pos),wt(C.expression),!(te&2048)&&C.end!==C.expression.end&&Mg(C.expression.end)}function Gm(C){M2(C,C.elements,528,void 0)}function m_(C,te,it,Ut){let vn=!!te;for(let gi=0;gi=it.length||ti===0;if(Gs&&Ut&32768){f==null||f(it),g==null||g(it);return}Ut&15360&&(en(CRe(Ut)),Gs&&it&&nd(it.pos,!0)),f==null||f(it),Gs?Ut&1&&!(ae&&(!te||F&&Rb(te,F)))?vl():Ut&256&&!(Ut&524288)&&$r():ed(C,te,it,Ut,vn,gi,ti,it.hasTrailingComma,it),g==null||g(it),Ut&15360&&(Gs&&it&&Mg(it.end),en(ERe(Ut)))}function ed(C,te,it,Ut,vn,gi,ti,Li,Gs){const Cu=(Ut&262144)===0;let t_=Cu;const np=Lg(te,it[gi],Ut);np?(vl(np),t_=!1):Ut&256&&$r(),Ut&128&&$m();const jy=ARe(C,vn);let ni,Ym,Ar=!1;for(let H2=0;H20){if(Ut&131||($m(),Ar=!0),t_&&Ut&60&&!md(um.pos)){const c4=Qd(um);nd(c4.pos,!!(Ut&512),!0)}vl(Zm),t_=!1}else ni&&Ut&512&&$r()}if(Ym=_a(um),t_){const Zm=Qd(um);nd(Zm.pos)}else t_=Cu;K=um.pos,jy(um,C,vn,H2),Ar&&(td(),Ar=!1),ni=um}const uk=ni?ha(ni):0,By=Rt||!!(uk&2048),Jy=Li&&Ut&64&&Ut&16;Jy&&(ni&&!By?Ci(28,ni.end,en,ni):en(",")),ni&&(te?te.end:-1)!==ni.end&&Ut&60&&!By&&Mg(Jy&&(Gs!=null&&Gs.end)?Gs.end:ni.end),Ut&128&&td(),cr(Ym);const zS=nk(te,it[gi+ti-1],Ut,Gs);zS?vl(zS):Ut&2097408&&$r()}function Ny(C){fe.writeLiteral(C)}function K6(C){fe.writeStringLiteral(C)}function DS(C){fe.write(C)}function PP(C,te){fe.writeSymbol(C,te)}function en(C){fe.writePunctuation(C)}function Dl(){fe.writeTrailingSemicolon(";")}function Oi(C){fe.writeKeyword(C)}function Of(C){fe.writeOperator(C)}function x0(C){fe.writeParameter(C)}function cm(C){fe.writeComment(C)}function $r(){fe.writeSpace(" ")}function wS(C){fe.writeProperty(C)}function sv(C){fe.nonEscapingWrite?fe.nonEscapingWrite(C):fe.write(C)}function vl(C=1){for(let te=0;te0)}function $m(){fe.increaseIndent()}function td(){fe.decreaseIndent()}function R2(C,te,it,Ut){return Fe?Iy(C,it,te):q2(Ut,C,it,te,Iy)}function j2(C,te){d&&d(C),te(Ws(C.kind)),y&&y(C)}function Iy(C,te,it){const Ut=Ws(C);return te(Ut),it<0?it:it+Ut.length}function bh(C,te,it){if(ha(C)&1)$r();else if(ae){const Ut=ff(C,te,it);Ut?vl(Ut):$r()}else vl()}function AS(C){const te=C.split(/\r\n?|\n/g),it=gte(te);for(const Ut of te){const vn=it?Ut.slice(it):Ut;vn.length&&(vl(),Oe(vn))}}function rd(C,te){C?($m(),vl(C)):te&&$r()}function av(C,te){C&&td(),te&&td()}function Lg(C,te,it){if(it&2||ae){if(it&65536)return 1;if(te===void 0)return!C||F&&Rb(C,F)?0:1;if(te.pos===K||te.kind===12)return 0;if(F&&C&&!md(C.pos)&&!ko(te)&&(!te.parent||ic(te.parent)===ic(C)))return ae?ov(Ut=>zre(te.pos,C.pos,F,Ut)):tF(C,te,F)?0:1;if(NS(te,it))return 1}return it&1?1:0}function Fy(C,te,it){if(it&2||ae){if(C===void 0||te===void 0||te.kind===12)return 0;if(F&&!ko(C)&&!ko(te))return ae&&e_(C,te)?ov(Ut=>SW(C,te,F,Ut)):!ae&&Lf(C,te)?Y8(C,te,F)?0:1:it&65536?1:0;if(NS(C,it)||NS(te,it))return 1}else if(s3(te))return 1;return it&1?1:0}function nk(C,te,it,Ut){if(it&2||ae){if(it&65536)return 1;if(te===void 0)return!C||F&&Rb(C,F)?0:1;if(F&&C&&!md(C.pos)&&!ko(te)&&(!te.parent||te.parent===C)){if(ae){const vn=Ut&&!md(Ut.end)?Ut.end:te.end;return ov(gi=>Wre(vn,C.end,F,gi))}return jre(C,te,F)?0:1}if(NS(te,it))return 1}return it&1&&!(it&131072)?1:0}function ov(C){E.assert(!!ae);const te=C(!0);return te===0?C(!1):te}function e4(C,te){const it=ae&&Lg(te,C,0);return it&&rd(it,!1),!!it}function B2(C,te){const it=ae&&nk(te,C,0,void 0);it&&vl(it)}function NS(C,te){if(ko(C)){const it=s3(C);return it===void 0?(te&65536)!==0:it}return(te&65536)!==0}function ff(C,te,it){return ha(C)&262144?0:(C=mc(C),te=mc(te),it=mc(it),s3(it)?1:F&&!ko(C)&&!ko(te)&&!ko(it)?ae?ov(Ut=>SW(te,it,F,Ut)):Y8(te,it,F)?0:1:0)}function IS(C){return C.statements.length===0&&(!F||Y8(C,C,F))}function mc(C){for(;C.kind===217&&ko(C);)C=C.expression;return C}function ll(C,te){if(Oo(C)||yb(C))return OS(C);if(aa(C)&&C.textSourceNode)return ll(C.textSourceNode,te);const it=F,Ut=!!it&&!!C.parent&&!ko(C);if(pg(C)){if(!Ut||wr(C)!==ic(it))return on(C)}else if(hd(C)){if(!Ut||wr(C)!==ic(it))return t3(C)}else if(E.assertNode(C,Rv),!Ut)return C.text;return Bv(it,C,te)}function FS(C,te,it){if(C.kind===11&&C.textSourceNode){const vn=C.textSourceNode;if(Ie(vn)||Pi(vn)||j_(vn)||hd(vn)){const gi=j_(vn)?vn.text:ll(vn);return it?`"${aW(gi)}"`:te||ha(C)&16777216?`"${bg(gi)}"`:`"${q8(gi)}"`}else return FS(vn,te,it)}const Ut=(te?1:0)|(it?2:0)|(e.terminateUnterminatedLiterals?4:0)|(e.target&&e.target>=8?8:0);return Pte(C,F,Ut)}function $l(C){C&&ha(C)&1048576||(pe.push(H),H=0,re.push(R),R=void 0,q.push(ee))}function D_(C){C&&ha(C)&1048576||(H=pe.pop(),R=re.pop(),ee=q.pop())}function cv(C){(!ee||ee===Do(q))&&(ee=new Set),ee.add(C)}function tp(C,te){Y.push(ue),ue=C,oe.push(ee),Se=te}function Oy(){ue=Y.pop(),Se=oe.pop()}function Ly(C){(!Se||Se===Do(oe))&&(Se=new Set),Se.add(C)}function wl(C){if(C)switch(C.kind){case 241:rr(C.statements,wl);break;case 256:case 254:case 246:case 247:wl(C.statement);break;case 245:wl(C.thenStatement),wl(C.elseStatement);break;case 248:case 250:case 249:wl(C.initializer),wl(C.statement);break;case 255:wl(C.caseBlock);break;case 269:rr(C.clauses,wl);break;case 296:case 297:rr(C.statements,wl);break;case 258:wl(C.tryBlock),wl(C.catchClause),wl(C.finallyBlock);break;case 299:wl(C.variableDeclaration),wl(C.block);break;case 243:wl(C.declarationList);break;case 261:rr(C.declarations,wl);break;case 260:case 169:case 208:case 263:pf(C.name);break;case 262:pf(C.name),ha(C)&1048576&&(rr(C.parameters,wl),wl(C.body));break;case 206:case 207:rr(C.elements,wl);break;case 272:wl(C.importClause);break;case 273:pf(C.name),wl(C.namedBindings);break;case 274:pf(C.name);break;case 280:pf(C.name);break;case 275:rr(C.elements,wl);break;case 276:pf(C.propertyName||C.name);break}}function ik(C){if(C)switch(C.kind){case 303:case 304:case 172:case 174:case 177:case 178:pf(C.name);break}}function pf(C){C&&(Oo(C)||yb(C)?OS(C):Ns(C)&&wl(C))}function OS(C){const te=C.emitNode.autoGenerate;if((te.flags&7)===4)return LS(Ww(C),Pi(C),te.flags,te.prefix,te.suffix);{const it=te.id;return $[it]||($[it]=r4(C))}}function LS(C,te,it,Ut,vn){const gi=Oa(C),ti=te?U:J;return ti[gi]||(ti[gi]=MS(C,te,it??0,XC(Ut,OS),XC(vn)))}function vo(C,te){return lv(C)&&!t4(C,te)&&!j.has(C)}function t4(C,te){return te?!!(Se!=null&&Se.has(C)):!!(ee!=null&&ee.has(C))}function lv(C,te){return F?a5(F,C,n):!0}function J2(C,te){for(let it=te;it&&Hv(it,te);it=it.nextContainer)if(Dm(it)&&it.locals){const Ut=it.locals.get(Vo(C));if(Ut&&Ut.flags&3257279)return!1}return!0}function DP(C){switch(C){case"":return H;case"#":return ue;default:return(R==null?void 0:R.get(C))??0}}function zu(C,te){switch(C){case"":H=te;break;case"#":ue=te;break;default:R??(R=new Map),R.set(C,te);break}}function Sh(C,te,it,Ut,vn){Ut.length>0&&Ut.charCodeAt(0)===35&&(Ut=Ut.slice(1));const gi=j1(it,Ut,"",vn);let ti=DP(gi);if(C&&!(ti&C)){const Gs=j1(it,Ut,C===268435456?"_i":"_n",vn);if(vo(Gs,it))return ti|=C,it?Ly(Gs):te&&cv(Gs),zu(gi,ti),Gs}for(;;){const Li=ti&268435455;if(ti++,Li!==8&&Li!==13){const Gs=Li<26?"_"+String.fromCharCode(97+Li):"_"+(Li-26),Cu=j1(it,Ut,Gs,vn);if(vo(Cu,it))return it?Ly(Cu):te&&cv(Cu),zu(gi,ti),Cu}}}function lm(C,te=vo,it,Ut,vn,gi,ti){if(C.length>0&&C.charCodeAt(0)===35&&(C=C.slice(1)),gi.length>0&&gi.charCodeAt(0)===35&&(gi=gi.slice(1)),it){const Gs=j1(vn,gi,C,ti);if(te(Gs,vn))return vn?Ly(Gs):Ut?cv(Gs):j.add(Gs),Gs}C.charCodeAt(C.length-1)!==95&&(C+="_");let Li=1;for(;;){const Gs=j1(vn,gi,C+Li,ti);if(te(Gs,vn))return vn?Ly(Gs):Ut?cv(Gs):j.add(Gs),Gs;Li++}}function sk(C){return lm(C,lv,!0,!1,!1,"","")}function X_(C){const te=ll(C.name);return J2(te,Wn(C,Dm))?te:lm(te,vo,!1,!1,!1,"","")}function ak(C){const te=uC(C),it=aa(te)?wte(te.text):"module";return lm(it,vo,!1,!1,!1,"","")}function w_(){return lm("default",vo,!1,!1,!1,"","")}function ok(){return lm("class",vo,!1,!1,!1,"","")}function k0(C,te,it,Ut){return Ie(C.name)?LS(C.name,te):Sh(0,!1,te,it,Ut)}function MS(C,te,it,Ut,vn){switch(C.kind){case 80:case 81:return lm(ll(C),vo,!!(it&16),!!(it&8),te,Ut,vn);case 267:case 266:return E.assert(!Ut&&!vn&&!te),X_(C);case 272:case 278:return E.assert(!Ut&&!vn&&!te),ak(C);case 262:case 263:{E.assert(!Ut&&!vn&&!te);const gi=C.name;return gi&&!Oo(gi)?MS(gi,!1,it,Ut,vn):w_()}case 277:return E.assert(!Ut&&!vn&&!te),w_();case 231:return E.assert(!Ut&&!vn&&!te),ok();case 174:case 177:case 178:return k0(C,te,Ut,vn);case 167:return Sh(0,!0,te,Ut,vn);default:return Sh(0,!1,te,Ut,vn)}}function r4(C){const te=C.emitNode.autoGenerate,it=XC(te.prefix,OS),Ut=XC(te.suffix);switch(te.flags&7){case 1:return Sh(0,!!(te.flags&8),Pi(C),it,Ut);case 2:return E.assertNode(C,Ie),Sh(268435456,!!(te.flags&8),!1,it,Ut);case 3:return lm(on(C),te.flags&32?lv:vo,!!(te.flags&16),!!(te.flags&8),Pi(C),it,Ut)}return E.fail(`Unsupported GeneratedIdentifierKind: ${E.formatEnum(te.flags&7,d7,!0)}.`)}function n4(C,te){const it=le(2,C,te),Ut=zt,vn=Vt,gi=hr;RS(te),it(C,te),i4(te,Ut,vn,gi)}function RS(C){const te=ha(C),it=Qd(C);My(C,te,it.pos,it.end),te&4096&&(Rt=!0)}function i4(C,te,it,Ut){const vn=ha(C),gi=Qd(C);vn&4096&&(Rt=!1),Q_(C,vn,gi.pos,gi.end,te,it,Ut);const ti=Jne(C);ti&&Q_(C,vn,ti.pos,ti.end,te,it,Ut)}function My(C,te,it,Ut){yi(),jt=!1;const vn=it<0||(te&1024)!==0||C.kind===12,gi=Ut<0||(te&2048)!==0||C.kind===12;(it>0||Ut>0)&&it!==Ut&&(vn||z2(it,C.kind!==359),(!vn||it>=0&&te&1024)&&(zt=it),(!gi||Ut>=0&&te&2048)&&(Vt=Ut,C.kind===261&&(hr=Ut))),rr(OC(C),Xm),os()}function Q_(C,te,it,Ut,vn,gi,ti){yi();const Li=Ut<0||(te&2048)!==0||C.kind===12;rr(bw(C),s4),(it>0||Ut>0)&&it!==Ut&&(zt=vn,Vt=gi,hr=ti,!Li&&C.kind!==359&&Ed(Ut)),os()}function Xm(C){(C.hasLeadingNewline||C.kind===2)&&fe.writeLine(),jS(C),C.hasTrailingNewLine||C.kind===2?fe.writeLine():fe.writeSpace(" ")}function s4(C){fe.isAtStartOfLine()||fe.writeSpace(" "),jS(C),C.hasTrailingNewLine&&fe.writeLine()}function jS(C){const te=Na(C),it=C.kind===3?CT(te):void 0;TC(te,it,fe,0,te.length,k)}function Na(C){return C.kind===3?`/*${C.text}*/`:`//${C.text}`}function un(C,te,it){yi();const{pos:Ut,end:vn}=te,gi=ha(C),ti=Ut<0||(gi&1024)!==0,Li=Rt||vn<0||(gi&2048)!==0;ti||rp(te),os(),gi&4096&&!Rt?(Rt=!0,it(C),Rt=!1):it(C),yi(),Li||(z2(te.end,!0),jt&&!fe.isAtStartOfLine()&&fe.writeLine()),os()}function Lf(C,te){return C=ic(C),C.parent&&C.parent===ic(te).parent}function e_(C,te){if(te.pos-1&&Ut.indexOf(te)===vn+1}function z2(C,te){jt=!1,te?C===0&&(F!=null&&F.isDeclarationFile)?jg(C,uv):jg(C,BS):C===0&&jg(C,a4)}function a4(C,te,it,Ut,vn){Rf(C,te)&&BS(C,te,it,Ut,vn)}function uv(C,te,it,Ut,vn){Rf(C,te)||BS(C,te,it,Ut,vn)}function W2(C,te){return e.onlyPrintJsDocStyle?ZV(C,te)||o5(C,te):!0}function BS(C,te,it,Ut,vn){!F||!W2(F.text,C)||(jt||(xre(mt(),fe,vn,C),jt=!0),ao(C),TC(F.text,mt(),fe,C,te,k),ao(te),Ut?fe.writeLine():it===3&&fe.writeSpace(" "))}function Mg(C){Rt||C===-1||z2(C,!0)}function Ed(C){ck(C,Mf)}function Mf(C,te,it,Ut){!F||!W2(F.text,C)||(fe.isAtStartOfLine()||fe.writeSpace(" "),ao(C),TC(F.text,mt(),fe,C,te,k),ao(te),Ut&&fe.writeLine())}function nd(C,te,it){Rt||(yi(),ck(C,te?Mf:it?Th:Rg),os())}function Th(C,te,it){F&&(ao(C),TC(F.text,mt(),fe,C,te,k),ao(te),it===2&&fe.writeLine())}function Rg(C,te,it,Ut){F&&(ao(C),TC(F.text,mt(),fe,C,te,k),ao(te),Ut?fe.writeLine():fe.writeSpace(" "))}function jg(C,te){F&&(zt===-1||C!==zt)&&(Oc(C)?o4(te):RD(F.text,C,te,C))}function ck(C,te){F&&(Vt===-1||C!==Vt&&C!==hr)&&jD(F.text,C,te)}function Oc(C){return er!==void 0&&ka(er).nodePos===C}function o4(C){if(!F)return;const te=ka(er).detachedCommentEndPos;er.length-1?er.pop():er=void 0,RD(F.text,te,C,te)}function rp(C){const te=F&&Cre(F.text,mt(),fe,Qm,C,k,Rt);te&&(er?er.push(te):er=[te])}function Qm(C,te,it,Ut,vn,gi){!F||!W2(F.text,Ut)||(ao(Ut),TC(C,te,it,Ut,vn,gi),ao(vn))}function Rf(C,te){return!!F&&mz(F.text,C,te)}function V2(C){return C.parsedSourceMap===void 0&&C.sourceMapText!==void 0&&(C.parsedSourceMap=QU(C.sourceMapText)||!1),C.parsedSourceMap||void 0}function _v(C,te){const it=le(3,C,te);lk(te),it(C,te),JS(te)}function lk(C){const te=ha(C),it=n0(C);if(QJ(C)){E.assertIsDefined(C.parent,"UnparsedNodes must have parent pointers");const Ut=V2(C.parent);Ut&&$e&&$e.appendSourceMap(fe.getLine(),fe.getColumn(),Ut,C.parent.sourceMapPath,C.parent.getLineAndCharacterOfPosition(C.pos),C.parent.getLineAndCharacterOfPosition(C.end))}else{const Ut=it.source||Pt;C.kind!==359&&!(te&32)&&it.pos>=0&&U2(it.source||Pt,jf(Ut,it.pos)),te&128&&(Fe=!0)}}function JS(C){const te=ha(C),it=n0(C);QJ(C)||(te&128&&(Fe=!1),C.kind!==359&&!(te&64)&&it.end>=0&&U2(it.source||Pt,it.end))}function jf(C,te){return C.skipTrivia?C.skipTrivia(te):ca(C.text,te)}function ao(C){if(Fe||md(C)||fv(Pt))return;const{line:te,character:it}=Ha(Pt,C);$e.addMapping(fe.getLine(),fe.getColumn(),at,te,it,void 0)}function U2(C,te){if(C!==Pt){const it=Pt,Ut=at;xh(C),ao(te),Ry(it,Ut)}else ao(te)}function q2(C,te,it,Ut,vn){if(Fe||C&&P5(C))return vn(te,it,Ut);const gi=C&&C.emitNode,ti=gi&&gi.flags||0,Li=gi&&gi.tokenSourceMapRanges&&gi.tokenSourceMapRanges[te],Gs=Li&&Li.source||Pt;return Ut=jf(Gs,Li?Li.pos:Ut),!(ti&256)&&Ut>=0&&U2(Gs,Ut),Ut=vn(te,it,Ut),Li&&(Ut=Li.end),!(ti&512)&&Ut>=0&&U2(Gs,Ut),Ut}function xh(C){if(!Fe){if(Pt=C,C===Je){at=pt;return}fv(C)||(at=$e.addSource(C.fileName),e.inlineSources&&$e.setSourceContent(at,C.text),Je=C,pt=at)}}function Ry(C,te){Pt=C,at=te}function fv(C){return Zo(C.fileName,".json")}}function kRe(){const e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}function CRe(e){return Dae[e&15360][0]}function ERe(e){return Dae[e&15360][1]}function PRe(e,t,n,i){t(e)}function DRe(e,t,n,i){t(e,n.select(i))}function wRe(e,t,n,i){t(e,n)}function ARe(e,t){return e.length===1?PRe:typeof t=="object"?DRe:wRe}var Dae,O9,bq,b2,Sq,bA,NRe=Dt({"src/compiler/emitter.ts"(){Fs(),Fs(),db(),Dae=kRe(),O9={hasGlobalName:ks,getReferencedExportContainer:ks,getReferencedImportDeclaration:ks,getReferencedDeclarationWithCollidingName:ks,isDeclarationWithCollidingName:ks,isValueAliasDeclaration:ks,isReferencedAliasDeclaration:ks,isTopLevelValueImportEqualsWithEntityName:ks,getNodeCheckFlags:ks,isDeclarationVisible:ks,isLateBound:e=>!1,collectLinkedAliases:ks,isImplementationOfOverload:ks,isRequiredInitializedParameter:ks,isOptionalUninitializedParameterProperty:ks,isExpandoFunctionDeclaration:ks,getPropertiesOfContainerFunction:ks,createTypeOfDeclaration:ks,createReturnTypeOfSignatureDeclaration:ks,createTypeOfExpression:ks,createLiteralConstValue:ks,isSymbolAccessible:ks,isEntityNameVisible:ks,getConstantValue:ks,getReferencedValueDeclaration:ks,getReferencedValueDeclarations:ks,getTypeReferenceSerializationKind:ks,isOptionalParameter:ks,moduleExportsSomeValue:ks,isArgumentsLocalBinding:ks,getExternalModuleFileFromDeclaration:ks,getTypeReferenceDirectivesForEntityName:ks,getTypeReferenceDirectivesForSymbol:ks,isLiteralConstDeclaration:ks,getJsxFactoryEntity:ks,getJsxFragmentFactoryEntity:ks,getAllAccessorDeclarations:ks,getSymbolOfExternalModuleSpecifier:ks,isBindingCapturedByNode:ks,getDeclarationStatementsForSourceFile:ks,isImportRequiredByAugmentation:ks,tryFindAmbientModule:ks},bq=Hu(()=>V1({})),b2=Hu(()=>V1({removeComments:!0})),Sq=Hu(()=>V1({removeComments:!0,neverAsciiEscape:!0})),bA=Hu(()=>V1({removeComments:!0,omitTrailingSemicolon:!0}))}});function L9(e,t,n){if(!e.getDirectories||!e.readDirectory)return;const i=new Map,s=nu(n);return{useCaseSensitiveFileNames:n,fileExists:T,readFile:(R,Y)=>e.readFile(R,Y),directoryExists:e.directoryExists&&k,getDirectories:P,readDirectory:F,createDirectory:e.createDirectory&&w,writeFile:e.writeFile&&S,addOrDeleteFileOrDirectory:U,addOrDeleteFile:$,clearCache:re,realpath:e.realpath&&J};function o(R){return Io(R,t,s)}function c(R){return i.get(_l(R))}function u(R){const Y=c(Un(R));return Y&&(Y.sortedAndCanonicalizedFiles||(Y.sortedAndCanonicalizedFiles=Y.files.map(s).sort(),Y.sortedAndCanonicalizedDirectories=Y.directories.map(s).sort()),Y)}function f(R){return wc(Hs(R))}function g(R,Y){var ue;if(!e.realpath||_l(o(e.realpath(R)))===Y){const pe={files:nr(e.readDirectory(R,void 0,void 0,["*.*"]),f)||[],directories:e.getDirectories(R)||[]};return i.set(_l(Y),pe),pe}if((ue=e.directoryExists)!=null&&ue.call(e,R))return i.set(Y,!1),!1}function d(R,Y){Y=_l(Y);const ue=c(Y);if(ue)return ue;try{return g(R,Y)}catch{E.assert(!i.has(_l(Y)));return}}function y(R,Y){return Jh(R,Y,wo,mu)>=0}function S(R,Y,ue){const pe=o(R),H=u(pe);return H&&j(H,f(R),!0),e.writeFile(R,Y,ue)}function T(R){const Y=o(R),ue=u(Y);return ue&&y(ue.sortedAndCanonicalizedFiles,s(f(R)))||e.fileExists(R)}function k(R){const Y=o(R);return i.has(_l(Y))||e.directoryExists(R)}function w(R){const Y=o(R),ue=u(Y);if(ue){const pe=f(R),H=s(pe),q=ue.sortedAndCanonicalizedDirectories;j0(q,H,mu)&&ue.directories.push(pe)}e.createDirectory(R)}function P(R){const Y=o(R),ue=d(R,Y);return ue?ue.directories.slice():e.getDirectories(R)}function F(R,Y,ue,pe,H){const q=o(R),ee=d(R,q);let oe;if(ee!==void 0)return FW(R,Y,ue,pe,n,t,H,Se,J);return e.readDirectory(R,Y,ue,pe,H);function Se(K){const fe=o(K);if(fe===q)return ee||ae(K,fe);const ke=d(K,fe);return ke!==void 0?ke||ae(K,fe):LF}function ae(K,fe){if(oe&&fe===q)return oe;const ke={files:nr(e.readDirectory(K,void 0,void 0,["*.*"]),f)||Ve,directories:e.getDirectories(K)||Ve};return fe===q&&(oe=ke),ke}}function J(R){return e.realpath?e.realpath(R):R}function U(R,Y){if(c(Y)!==void 0){re();return}const pe=u(Y);if(!pe)return;if(!e.directoryExists){re();return}const H=f(R),q={fileExists:e.fileExists(R),directoryExists:e.directoryExists(R)};return q.directoryExists||y(pe.sortedAndCanonicalizedDirectories,s(H))?re():j(pe,H,q.fileExists),q}function $(R,Y,ue){if(ue===1)return;const pe=u(Y);pe&&j(pe,f(R),ue===0)}function j(R,Y,ue){const pe=R.sortedAndCanonicalizedFiles,H=s(Y);if(ue)j0(pe,H,mu)&&R.files.push(Y);else{const q=Jh(pe,H,wo,mu);if(q>=0){pe.splice(q,1);const ee=R.files.findIndex(oe=>s(oe)===H);R.files.splice(ee,1)}}}function re(){i.clear()}}function M9(e,t,n,i,s){var o;const c=Iv(((o=t==null?void 0:t.configFile)==null?void 0:o.extendedSourceFiles)||Ve,s);n.forEach((u,f)=>{c.has(f)||(u.projects.delete(e),u.close())}),c.forEach((u,f)=>{const g=n.get(f);g?g.projects.add(e):n.set(f,{projects:new Set([e]),watcher:i(u,f),close:()=>{const d=n.get(f);!d||d.projects.size!==0||(d.watcher.close(),n.delete(f))}})})}function Tq(e,t){t.forEach(n=>{n.projects.delete(e)&&n.close()})}function R9(e,t,n){e.delete(t)&&e.forEach(({extendedResult:i},s)=>{var o;(o=i.extendedSourceFiles)!=null&&o.some(c=>n(c)===t)&&R9(e,s,n)})}function xq(e,t,n){JE(t,e.getMissingFilePaths(),{createNewValue:n,onDeleteValue:dd})}function SA(e,t,n){t?JE(e,new Map(Object.entries(t)),{createNewValue:i,onDeleteValue:Xf,onExistingValue:s}):T_(e,Xf);function i(o,c){return{watcher:n(o,c),flags:c}}function s(o,c,u){o.flags!==c&&(o.watcher.close(),e.set(u,i(u,c)))}}function TA({watchedDirPath:e,fileOrDirectory:t,fileOrDirectoryPath:n,configFileName:i,options:s,program:o,extraFileExtensions:c,currentDirectory:u,useCaseSensitiveFileNames:f,writeLog:g,toPath:d,getScriptKind:y}){const S=X9(n);if(!S)return g(`Project: ${i} Detected ignored path: ${t}`),!0;if(n=S,n===e)return!1;if(xT(n)&&!(lne(t,s,c)||F()))return g(`Project: ${i} Detected file add/remove of non supported extension: ${t}`),!0;if(qie(t,s.configFile.configFileSpecs,Xi(Un(i),u),f,u))return g(`Project: ${i} Detected excluded file: ${t}`),!0;if(!o||io(s)||s.outDir)return!1;if(Hl(n)){if(s.declarationDir)return!1}else if(!$c(n,FC))return!1;const T=$u(n),k=ts(o)?void 0:IRe(o)?o.getProgramOrUndefined():o,w=!k&&!ts(o)?o:void 0;if(P(T+".ts")||P(T+".tsx"))return g(`Project: ${i} Detected output file: ${t}`),!0;return!1;function P(J){return k?!!k.getSourceFileByPath(J):w?w.getState().fileInfos.has(J):!!wn(o,U=>d(U)===J)}function F(){if(!y)return!1;switch(y(t)){case 3:case 4:case 7:case 5:return!0;case 1:case 2:return oy(s);case 6:return F1(s);case 0:return!1}}}function IRe(e){return!!e.getState}function wae(e,t){return e?e.isEmittedFile(t):!1}function kq(e,t,n,i){pee(t===2?n:Ca);const s={watchFile:(w,P,F,J)=>e.watchFile(w,P,F,J),watchDirectory:(w,P,F,J)=>e.watchDirectory(w,P,(F&1)!==0,J)},o=t!==0?{watchFile:T("watchFile"),watchDirectory:T("watchDirectory")}:void 0,c=t===2?{watchFile:y,watchDirectory:S}:o||s,u=t===2?d:d6;return{watchFile:f("watchFile"),watchDirectory:f("watchDirectory")};function f(w){return(P,F,J,U,$,j)=>{var re;return qO(P,w==="watchFile"?U==null?void 0:U.excludeFiles:U==null?void 0:U.excludeDirectories,g(),((re=e.getCurrentDirectory)==null?void 0:re.call(e))||"")?u(P,J,U,$,j):c[w].call(void 0,P,F,J,U,$,j)}}function g(){return typeof e.useCaseSensitiveFileNames=="boolean"?e.useCaseSensitiveFileNames:e.useCaseSensitiveFileNames()}function d(w,P,F,J,U){return n(`ExcludeWatcher:: Added:: ${k(w,P,F,J,U,i)}`),{close:()=>n(`ExcludeWatcher:: Close:: ${k(w,P,F,J,U,i)}`)}}function y(w,P,F,J,U,$){n(`FileWatcher:: Added:: ${k(w,F,J,U,$,i)}`);const j=o.watchFile(w,P,F,J,U,$);return{close:()=>{n(`FileWatcher:: Close:: ${k(w,F,J,U,$,i)}`),j.close()}}}function S(w,P,F,J,U,$){const j=`DirectoryWatcher:: Added:: ${k(w,F,J,U,$,i)}`;n(j);const re=xo(),R=o.watchDirectory(w,P,F,J,U,$),Y=xo()-re;return n(`Elapsed:: ${Y}ms ${j}`),{close:()=>{const ue=`DirectoryWatcher:: Close:: ${k(w,F,J,U,$,i)}`;n(ue);const pe=xo();R.close();const H=xo()-pe;n(`Elapsed:: ${H}ms ${ue}`)}}}function T(w){return(P,F,J,U,$,j)=>s[w].call(void 0,P,(...re)=>{const R=`${w==="watchFile"?"FileWatcher":"DirectoryWatcher"}:: Triggered with ${re[0]} ${re[1]!==void 0?re[1]:""}:: ${k(P,J,U,$,j,i)}`;n(R);const Y=xo();F.call(void 0,...re);const ue=xo()-Y;n(`Elapsed:: ${ue}ms ${R}`)},J,U,$,j)}function k(w,P,F,J,U,$){return`WatchInfo: ${w} ${P} ${JSON.stringify(F)} ${$?$(J,U):U===void 0?J:`${J} ${U}`}`}}function xA(e){const t=e==null?void 0:e.fallbackPolling;return{watchFile:t!==void 0?t:1}}function Xf(e){e.watcher.close()}var Cq,Eq,FRe=Dt({"src/compiler/watchUtilities.ts"(){Fs(),Cq=(e=>(e[e.Update=0]="Update",e[e.RootNamesAndUpdate=1]="RootNamesAndUpdate",e[e.Full=2]="Full",e))(Cq||{}),Eq=(e=>(e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose",e))(Eq||{})}});function Aae(e,t,n="tsconfig.json"){return jp(e,i=>{const s=Mn(i,n);return t(s)?s:void 0})}function j9(e,t){const n=Un(t),i=F_(e)?e:Mn(n,e);return Hs(i)}function Nae(e,t,n){let i;return rr(e,o=>{const c=AD(o,t);if(c.pop(),!i){i=c;return}const u=Math.min(i.length,c.length);for(let f=0;f{let c;try{No("beforeIORead"),c=e(i,t().charset),No("afterIORead"),vf("I/O Read","beforeIORead","afterIORead")}catch(u){o&&o(u.message),c=""}return c!==void 0?qw(i,c,s,n):void 0}}function Dq(e,t,n){return(i,s,o,c)=>{try{No("beforeIOWrite"),uW(i,s,o,e,t,n),No("afterIOWrite"),vf("I/O Write","beforeIOWrite","afterIOWrite")}catch(u){c&&c(u.message)}}}function wq(e,t,n=zl){const i=new Map,s=nu(n.useCaseSensitiveFileNames);function o(d){return i.has(d)?!0:(g.directoryExists||n.directoryExists)(d)?(i.set(d,!0),!0):!1}function c(){return Un(Hs(n.getExecutingFilePath()))}const u=t0(e),f=n.realpath&&(d=>n.realpath(d)),g={getSourceFile:Pq(d=>g.readFile(d),()=>e,t),getDefaultLibLocation:c,getDefaultLibFileName:d=>Mn(c(),JD(d)),writeFile:Dq((d,y,S)=>n.writeFile(d,y,S),d=>(g.createDirectory||n.createDirectory)(d),d=>o(d)),getCurrentDirectory:Hu(()=>n.getCurrentDirectory()),useCaseSensitiveFileNames:()=>n.useCaseSensitiveFileNames,getCanonicalFileName:s,getNewLine:()=>u,fileExists:d=>n.fileExists(d),readFile:d=>n.readFile(d),trace:d=>n.write(d+u),directoryExists:d=>n.directoryExists(d),getEnvironmentVariable:d=>n.getEnvironmentVariable?n.getEnvironmentVariable(d):"",getDirectories:d=>n.getDirectories(d),realpath:f,readDirectory:(d,y,S,T,k)=>n.readDirectory(d,y,S,T,k),createDirectory:d=>n.createDirectory(d),createHash:Os(n,n.createHash)};return g}function kA(e,t,n){const i=e.readFile,s=e.fileExists,o=e.directoryExists,c=e.createDirectory,u=e.writeFile,f=new Map,g=new Map,d=new Map,y=new Map,S=w=>{const P=t(w),F=f.get(P);return F!==void 0?F!==!1?F:void 0:T(P,w)},T=(w,P)=>{const F=i.call(e,P);return f.set(w,F!==void 0?F:!1),F};e.readFile=w=>{const P=t(w),F=f.get(P);return F!==void 0?F!==!1?F:void 0:!Zo(w,".json")&&!Cae(w)?i.call(e,w):T(P,w)};const k=n?(w,P,F,J)=>{const U=t(w),$=typeof P=="object"?P.impliedNodeFormat:void 0,j=y.get($),re=j==null?void 0:j.get(U);if(re)return re;const R=n(w,P,F,J);return R&&(Hl(w)||Zo(w,".json"))&&y.set($,(j||new Map).set(U,R)),R}:void 0;return e.fileExists=w=>{const P=t(w),F=g.get(P);if(F!==void 0)return F;const J=s.call(e,w);return g.set(P,!!J),J},u&&(e.writeFile=(w,P,...F)=>{const J=t(w);g.delete(J);const U=f.get(J);U!==void 0&&U!==P?(f.delete(J),y.forEach($=>$.delete(J))):k&&y.forEach($=>{const j=$.get(J);j&&j.text!==P&&$.delete(J)}),u.call(e,w,P,...F)}),o&&(e.directoryExists=w=>{const P=t(w),F=d.get(P);if(F!==void 0)return F;const J=o.call(e,w);return d.set(P,!!J),J},c&&(e.createDirectory=w=>{const P=t(w);d.delete(P),c.call(e,w)})),{originalReadFile:i,originalFileExists:s,originalDirectoryExists:o,originalCreateDirectory:c,originalWriteFile:u,getSourceFileWithCache:k,readFileWithCache:S}}function eSe(e,t,n){let i;return i=Nn(i,e.getConfigFileParsingDiagnostics()),i=Nn(i,e.getOptionsDiagnostics(n)),i=Nn(i,e.getSyntacticDiagnostics(t,n)),i=Nn(i,e.getGlobalDiagnostics(n)),i=Nn(i,e.getSemanticDiagnostics(t,n)),Hf(e.getCompilerOptions())&&(i=Nn(i,e.getDeclarationDiagnostics(t,n))),zk(i||Ve)}function tSe(e,t){let n="";for(const i of e)n+=Aq(i,t);return n}function Aq(e,t){const n=`${mb(e)} TS${e.code}: ${em(e.messageText,t.getNewLine())}${t.getNewLine()}`;if(e.file){const{line:i,character:s}=Ha(e.file,e.start),o=e.file.fileName;return`${Q4(o,t.getCurrentDirectory(),u=>t.getCanonicalFileName(u))}(${i+1},${s+1}): `+n}return n}function rSe(e){switch(e){case 1:return"\x1B[91m";case 0:return"\x1B[93m";case 2:return E.fail("Should never get an Info diagnostic on the command line.");case 3:return"\x1B[94m"}}function S2(e,t){return t+e+Mae}function nSe(e,t,n,i,s,o){const{line:c,character:u}=Ha(e,t),{line:f,character:g}=Ha(e,t+n),d=Ha(e,e.text.length).line,y=f-c>=4;let S=(f+1+"").length;y&&(S=Math.max(Rae.length,S));let T="";for(let k=c;k<=f;k++){T+=o.getNewLine(),y&&c+1n.getCanonicalFileName(f)):e.fileName;let u="";return u+=i(c,"\x1B[96m"),u+=":",u+=i(`${s+1}`,"\x1B[93m"),u+=":",u+=i(`${o+1}`,"\x1B[93m"),u}function Fae(e,t){let n="";for(const i of e){if(i.file){const{file:s,start:o}=i;n+=Nq(s,o,t),n+=" - "}if(n+=S2(mb(i),rSe(i.category)),n+=S2(` TS${i.code}: `,"\x1B[90m"),n+=em(i.messageText,t.getNewLine()),i.file&&i.code!==p.File_appears_to_be_binary.code&&(n+=t.getNewLine(),n+=nSe(i.file,i.start,i.length,"",rSe(i.category),t)),i.relatedInformation){n+=t.getNewLine();for(const{file:s,start:o,length:c,messageText:u}of i.relatedInformation)s&&(n+=t.getNewLine(),n+=aSe+Nq(s,o,t),n+=nSe(s,o,c,jae,"\x1B[96m",t)),n+=t.getNewLine(),n+=jae+em(u,t.getNewLine())}n+=t.getNewLine()}return n}function em(e,t,n=0){if(ls(e))return e;if(e===void 0)return"";let i="";if(n){i+=t;for(let s=0;st6(o,e,n,i,s,t,c)}}function Mq(e){return ls(e)?e:km(e.fileName)}function B9(e,t,n,i,s){return{nameAndMode:oSe,resolve:(o,c)=>ase(o,e,n,i,t,s,c)}}function EA(e,t,n,i,s,o,c,u){if(e.length===0)return Ve;const f=[],g=new Map,d=u(t,n,i,o,c);for(const y of e){const S=d.nameAndMode.getName(y),T=d.nameAndMode.getMode(y,s,(n==null?void 0:n.commandLine.options)||i),k=A3(S,T);let w=g.get(k);w||g.set(k,w=d.resolve(S,T)),f.push(w)}return f}function Rq(e,t){return J9(void 0,e,(n,i)=>n&&t(n,i))}function J9(e,t,n,i){let s;return o(e,t,void 0);function o(c,u,f){if(i){const g=i(c,f);if(g)return g}return rr(u,(g,d)=>{if(g&&(s!=null&&s.has(g.sourceFile.path)))return;const y=n(g,f,d);return y||!g?y:((s||(s=new Set)).add(g.sourceFile.path),o(g.commandLine.projectReferences,g.references,g))})}}function z9(e,t,n){const i=e.configFilePath?Un(e.configFilePath):t;return Mn(i,`__lib_node_modules_lookup_${n}__.ts`)}function jq(e){const t=e.split(".");let n=t[1],i=2;for(;t[i]&&t[i]!=="d";)n+=(i===2?"/":"-")+t[i],i++;return"@typescript/lib-"+n}function iSe(e){const t=km(e.fileName),n=HO.get(t);return{libName:t,libFileName:n}}function U1(e){switch(e==null?void 0:e.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function c6(e){return e.pos!==void 0}function q3(e,t){var n,i,s,o;const c=E.checkDefined(e.getSourceFileByPath(t.file)),{kind:u,index:f}=t;let g,d,y,S;switch(u){case 3:const T=DA(c,f);if(y=(i=(n=e.getResolvedModule(c,T.text,e.getModeForUsageLocation(c,T)))==null?void 0:n.resolvedModule)==null?void 0:i.packageId,T.pos===-1)return{file:c,packageId:y,text:T.text};g=ca(c.text,T.pos),d=T.end;break;case 4:({pos:g,end:d}=c.referencedFiles[f]);break;case 5:({pos:g,end:d,resolutionMode:S}=c.typeReferenceDirectives[f]),y=(o=(s=e.getResolvedTypeReferenceDirective(c,km(c.typeReferenceDirectives[f].fileName),S||c.impliedNodeFormat))==null?void 0:s.resolvedTypeReferenceDirective)==null?void 0:o.packageId;break;case 7:({pos:g,end:d}=c.libReferenceDirectives[f]);break;default:return E.assertNever(u)}return{file:c,pos:g,end:d,packageId:y}}function Bq(e,t,n,i,s,o,c,u,f,g){if(!e||u!=null&&u()||!ud(e.getRootFileNames(),t))return!1;let d;if(!ud(e.getProjectReferences(),g,w)||e.getSourceFiles().some(T))return!1;const y=e.getMissingFilePaths();if(y&&fl(y,s))return!1;const S=e.getCompilerOptions();if(!xW(S,n)||e.resolvedLibReferences&&fl(e.resolvedLibReferences,(F,J)=>c(J)))return!1;if(S.configFile&&n.configFile)return S.configFile.text===n.configFile.text;return!0;function T(F){return!k(F)||o(F.path)}function k(F){return F.version===i(F.resolvedPath,F.fileName)}function w(F,J,U){return fz(F,J)&&P(e.getResolvedProjectReferences()[U],F)}function P(F,J){if(F){if(bs(d,F))return!0;const $=l6(J),j=f($);return!j||F.commandLine.options.configFile!==j.options.configFile||!ud(F.commandLine.fileNames,j.fileNames)?!1:((d||(d=[])).push(F),!rr(F.references,(re,R)=>!P(re,F.commandLine.projectReferences[R])))}const U=l6(J);return!f(U)}}function iS(e){return e.options.configFile?[...e.options.configFile.parseDiagnostics,...e.errors]:e.errors}function PA(e,t,n,i){const s=Jq(e,t,n,i);return typeof s=="object"?s.impliedNodeFormat:s}function Jq(e,t,n,i){switch(Ru(i)){case 3:case 99:return $c(e,[".d.mts",".mts",".mjs"])?99:$c(e,[".d.cts",".cts",".cjs"])?1:$c(e,[".d.ts",".ts",".tsx",".js",".jsx"])?s():void 0;default:return}function s(){const o=oA(t,n,i),c=[];o.failedLookupLocations=c,o.affectingLocations=c;const u=cA(e,o);return{impliedNodeFormat:(u==null?void 0:u.contents.packageJsonContent.type)==="module"?99:1,packageJsonLocations:c,packageJsonScope:u}}}function ORe(e,t){return e?Qk(e.getCompilerOptions(),t,$O):!1}function LRe(e,t,n,i,s,o){return{rootNames:e,options:t,host:n,oldProgram:i,configFileParsingDiagnostics:s,typeScriptVersion:o}}function W9(e,t,n,i,s){var o,c,u,f,g,d,y,S,T,k,w,P,F,J,U,$;const j=ts(e)?LRe(e,t,n,i,s):e,{rootNames:re,options:R,configFileParsingDiagnostics:Y,projectReferences:ue,typeScriptVersion:pe}=j;let{oldProgram:H}=j;const q=Hu(()=>Qp("ignoreDeprecations",p.Invalid_value_for_ignoreDeprecations));let ee,oe,Se,ae,K,fe,ke;const Oe=new Map;let me=yf();const be={},xe={};let De=bx(),ft,ge,Fe,$e,Pt,at,Je,pt,zt,Vt;const hr=typeof R.maxNodeModuleJsDepth=="number"?R.maxNodeModuleJsDepth:0;let Lr=0;const er=new Map,jt=new Map;(o=qr)==null||o.push(qr.Phase.Program,"createProgram",{configFilePath:R.configFilePath,rootDir:R.rootDir},!0),No("beforeProgram");const Rt=j.host||Iae(R),Kn=U9(Rt);let Ji=R.noLib;const yi=Hu(()=>Rt.getDefaultLibFileName(R)),os=Rt.getDefaultLibLocation?Rt.getDefaultLibLocation():Un(yi()),yr=yC(),_i=Rt.getCurrentDirectory(),ln=VE(R),Ht=tw(R,ln),Ue=new Map;let Et,fr,Hn;const ei=Rt.hasInvalidatedResolutions||_d;Rt.resolveModuleNameLiterals?(Hn=Rt.resolveModuleNameLiterals.bind(Rt),fr=(c=Rt.getModuleResolutionCache)==null?void 0:c.call(Rt)):Rt.resolveModuleNames?(Hn=(Ae,We,bt,Nt,sr,Mr)=>Rt.resolveModuleNames(Ae.map(Lae),We,Mr==null?void 0:Mr.map(Lae),bt,Nt,sr).map(tr=>tr?tr.extension!==void 0?{resolvedModule:tr}:{resolvedModule:{...tr,extension:qE(tr.resolvedFileName)}}:Bae),fr=(u=Rt.getModuleResolutionCache)==null?void 0:u.call(Rt)):(fr=e6(_i,Q,R),Hn=(Ae,We,bt,Nt,sr)=>EA(Ae,We,bt,Nt,sr,Rt,fr,Lq));let Ii;if(Rt.resolveTypeReferenceDirectiveReferences)Ii=Rt.resolveTypeReferenceDirectiveReferences.bind(Rt);else if(Rt.resolveTypeReferenceDirectives)Ii=(Ae,We,bt,Nt,sr)=>Rt.resolveTypeReferenceDirectives(Ae.map(Mq),We,bt,Nt,sr==null?void 0:sr.impliedNodeFormat).map(Mr=>({resolvedTypeReferenceDirective:Mr}));else{const Ae=n9(_i,Q,void 0,fr==null?void 0:fr.getPackageJsonInfoCache(),fr==null?void 0:fr.optionsToRedirectsKey);Ii=(We,bt,Nt,sr,Mr)=>EA(We,bt,Nt,sr,Mr,Rt,Ae,B9)}const ns=Rt.hasInvalidatedLibResolutions||_d;let Vs;if(Rt.resolveLibrary)Vs=Rt.resolveLibrary.bind(Rt);else{const Ae=e6(_i,Q,R,fr==null?void 0:fr.getPackageJsonInfoCache());Vs=(We,bt,Nt)=>i9(We,bt,Nt,Rt,Ae)}const _a=new Map;let cr=new Map,br=yf(),Le=!1;const rt=new Map;let tt=new Map;const yt=Rt.useCaseSensitiveFileNames()?new Map:void 0;let ne,we,et,B;const Ge=!!((f=Rt.useSourceOfProjectReferenceRedirect)!=null&&f.call(Rt))&&!R.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:mt,fileExists:Be,directoryExists:nt}=MRe({compilerHost:Rt,getSymlinkCache:am,useSourceOfProjectReferenceRedirect:Ge,toPath:Wr,getResolvedProjectReferences:_s,getSourceOfProjectReferenceRedirect:Ku,forEachResolvedProjectReference:__}),wt=Rt.readFile.bind(Rt);(g=qr)==null||g.push(qr.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!H});const ir=ORe(H,R);(d=qr)==null||d.pop();let Yt;if((y=qr)==null||y.push(qr.Phase.Program,"tryReuseStructureFromOldProgram",{}),Yt=is(),(S=qr)==null||S.pop(),Yt!==2){if(ee=[],oe=[],ue&&(ne||(ne=ue.map(At)),re.length&&(ne==null||ne.forEach((Ae,We)=>{if(!Ae)return;const bt=io(Ae.commandLine.options);if(Ge){if(bt||au(Ae.commandLine.options)===0)for(const Nt of Ae.commandLine.fileNames)kt(Nt,{kind:1,index:We})}else if(bt)kt(N1(bt,".d.ts"),{kind:2,index:We});else if(au(Ae.commandLine.options)===0){const Nt=Hu(()=>a6(Ae.commandLine,!Rt.useCaseSensitiveFileNames()));for(const sr of Ae.commandLine.fileNames)!Hl(sr)&&!Zo(sr,".json")&&kt(V3(sr,Ae.commandLine,!Rt.useCaseSensitiveFileNames(),Nt),{kind:2,index:We})}}))),(T=qr)==null||T.push(qr.Phase.Program,"processRootFiles",{count:re.length}),rr(re,(Ae,We)=>yo(Ae,!1,!1,{kind:0,index:We})),(k=qr)==null||k.pop(),ge??(ge=re.length?t9(R,Rt):Ve),Fe=bx(),ge.length){(w=qr)==null||w.push(qr.Phase.Program,"processTypeReferences",{count:ge.length});const Ae=R.configFilePath?Un(R.configFilePath):_i,We=Mn(Ae,u6),bt=ci(ge,We);for(let Nt=0;Nt{yo(H_(We),!0,!1,{kind:6,index:bt})})}Se=Bh(ee,fi).concat(oe),ee=void 0,oe=void 0}if(H&&Rt.onReleaseOldSourceFile){const Ae=H.getSourceFiles();for(const We of Ae){const bt=Wo(We.resolvedPath);(ir||!bt||bt.impliedNodeFormat!==We.impliedNodeFormat||We.resolvedPath===We.path&&bt.resolvedPath!==We.path)&&Rt.onReleaseOldSourceFile(We,H.getCompilerOptions(),!!Wo(We.path))}Rt.getParsedCommandLine||H.forEachResolvedProjectReference(We=>{sm(We.sourceFile.path)||Rt.onReleaseOldSourceFile(We.sourceFile,H.getCompilerOptions(),!1)})}H&&Rt.onReleaseParsedCommandLine&&J9(H.getProjectReferences(),H.getResolvedProjectReferences(),(Ae,We,bt)=>{const Nt=(We==null?void 0:We.commandLine.projectReferences[bt])||H.getProjectReferences()[bt],sr=l6(Nt);we!=null&&we.has(Wr(sr))||Rt.onReleaseParsedCommandLine(sr,Ae,H.getCompilerOptions())}),H=void 0,Pt=void 0,Je=void 0,zt=void 0;const Kt={getRootFileNames:()=>re,getSourceFile:oa,getSourceFileByPath:Wo,getSourceFiles:()=>Se,getMissingFilePaths:()=>tt,getModuleResolutionCache:()=>fr,getFilesByNameMap:()=>rt,getCompilerOptions:()=>R,getSyntacticDiagnostics:Fc,getOptionsDiagnostics:gn,getGlobalDiagnostics:Qo,getSemanticDiagnostics:rc,getCachedSemanticDiagnostics:Ro,getSuggestionDiagnostics:Ee,getDeclarationDiagnostics:ho,getBindAndCheckDiagnostics:fs,getProgramDiagnostics:Wt,getTypeChecker:$i,getClassifiableNames:Qi,getCommonSourceDirectory:Cn,emit:zs,getCurrentDirectory:()=>_i,getNodeCount:()=>$i().getNodeCount(),getIdentifierCount:()=>$i().getIdentifierCount(),getSymbolCount:()=>$i().getSymbolCount(),getTypeCount:()=>$i().getTypeCount(),getInstantiationCount:()=>$i().getInstantiationCount(),getRelationCacheSizes:()=>$i().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>ft,getResolvedTypeReferenceDirectives:()=>De,getAutomaticTypeDirectiveNames:()=>ge,getAutomaticTypeDirectiveResolutions:()=>Fe,isSourceFileFromExternalLibrary:qo,isSourceFileDefaultLibrary:Ol,getModeForUsageLocation:Ff,getModeForResolutionAtIndex:dh,getSourceFileFromReference:Ep,getLibFileFromReference:cl,sourceFileToPackageName:cr,redirectTargetsMap:br,usesUriStyleNodeCoreModules:Le,resolvedModules:at,resolvedTypeReferenceDirectiveNames:pt,resolvedLibReferences:$e,getResolvedModule:W,getResolvedModuleFromModuleSpecifier:Pe,getResolvedTypeReferenceDirective:St,forEachResolvedModule:A,forEachResolvedTypeReferenceDirective:le,getCurrentPackagesMap:()=>Vt,typesPackageExists:Ne,packageBundlesTypes:Ce,isEmittedFile:A2,getConfigFileParsingDiagnostics:gl,getProjectReferences:Ra,getResolvedProjectReferences:_s,getProjectReferenceRedirect:dc,getResolvedProjectReferenceToRedirect:Nf,getResolvedProjectReferenceByPath:sm,forEachResolvedProjectReference:__,isSourceOfProjectReferenceRedirect:Kf,emitBuildInfo:kc,fileExists:Be,readFile:wt,directoryExists:nt,getSymlinkCache:am,realpath:(U=Rt.realpath)==null?void 0:U.bind(Rt),useCaseSensitiveFileNames:()=>Rt.useCaseSensitiveFileNames(),getCanonicalFileName:Q,getFileIncludeReasons:()=>me,structureIsReused:Yt,writeFile:_o};return mt(),ft==null||ft.forEach(Ae=>{switch(Ae.kind){case 1:return yr.add(Vn(Ae.file&&Wo(Ae.file),Ae.fileProcessingReason,Ae.diagnostic,Ae.args||Ve));case 0:const{file:We,pos:bt,end:Nt}=q3(Kt,Ae.reason);return yr.add(xl(We,E.checkDefined(bt),E.checkDefined(Nt)-bt,Ae.diagnostic,...Ae.args||Ve));case 2:return Ae.diagnostics.forEach(sr=>yr.add(sr));default:E.assertNever(Ae)}}),O(),No("afterProgram"),vf("Program","beforeProgram","afterProgram"),($=qr)==null||$.pop(),Kt;function W(Ae,We,bt){var Nt;return(Nt=at==null?void 0:at.get(Ae.path))==null?void 0:Nt.get(We,bt)}function Pe(Ae){const We=wr(Ae);return E.assertIsDefined(We,"`moduleSpecifier` must have a `SourceFile` ancestor. Use `program.getResolvedModule` instead to provide the containing file and resolution mode."),W(We,Ae.text,Ff(We,Ae))}function St(Ae,We,bt){var Nt;return(Nt=pt==null?void 0:pt.get(Ae.path))==null?void 0:Nt.get(We,bt)}function A(Ae,We){V(at,Ae,We)}function le(Ae,We){V(pt,Ae,We)}function V(Ae,We,bt){var Nt;bt?(Nt=Ae==null?void 0:Ae.get(bt.path))==null||Nt.forEach((sr,Mr,tr)=>We(sr,Mr,tr,bt.path)):Ae==null||Ae.forEach((sr,Mr)=>sr.forEach((tr,Rr,Yn)=>We(tr,Rr,Yn,Mr)))}function ce(){return Vt||(Vt=new Map,A(({resolvedModule:Ae})=>{Ae!=null&&Ae.packageId&&Vt.set(Ae.packageId.name,Ae.extension===".d.ts"||!!Vt.get(Ae.packageId.name))}),Vt)}function Ne(Ae){return ce().has(o9(Ae))}function Ce(Ae){return!!ce().get(Ae)}function _t(Ae){var We;(We=Ae.resolutionDiagnostics)!=null&&We.length&&(ft??(ft=[])).push({kind:2,diagnostics:Ae.resolutionDiagnostics})}function Tt(Ae,We,bt,Nt){if(Rt.resolveModuleNameLiterals||!Rt.resolveModuleNames)return _t(bt);if(!fr||Sl(We))return;const sr=Xi(Ae.originalFileName,_i),Mr=Un(sr),tr=Er(Ae),Rr=fr.getFromNonRelativeNameCache(We,Nt,Mr,tr);Rr&&_t(Rr)}function Jt(Ae,We,bt){var Nt,sr;if(!Ae.length)return Ve;const Mr=Xi(We.originalFileName,_i),tr=Er(We);(Nt=qr)==null||Nt.push(qr.Phase.Program,"resolveModuleNamesWorker",{containingFileName:Mr}),No("beforeResolveModule");const Rr=Hn(Ae,Mr,tr,R,We,bt);return No("afterResolveModule"),vf("ResolveModule","beforeResolveModule","afterResolveModule"),(sr=qr)==null||sr.pop(),Rr}function ar(Ae,We,bt){var Nt,sr;if(!Ae.length)return[];const Mr=ls(We)?void 0:We,tr=ls(We)?We:Xi(We.originalFileName,_i),Rr=Mr&&Er(Mr);(Nt=qr)==null||Nt.push(qr.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:tr}),No("beforeResolveTypeReference");const Yn=Ii(Ae,tr,Rr,R,Mr,bt);return No("afterResolveTypeReference"),vf("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),(sr=qr)==null||sr.pop(),Yn}function Er(Ae){const We=Nf(Ae.originalFileName);if(We||!Hl(Ae.originalFileName))return We;const bt=Nr(Ae.path);if(bt)return bt;if(!Rt.realpath||!R.preserveSymlinks||!Ae.originalFileName.includes(zm))return;const Nt=Wr(Rt.realpath(Ae.originalFileName));return Nt===Ae.path?void 0:Nr(Nt)}function Nr(Ae){const We=Ku(Ae);if(ls(We))return Nf(We);if(We)return __(bt=>{const Nt=io(bt.commandLine.options);if(Nt)return Wr(Nt)===Ae?bt:void 0})}function fi(Ae,We){return Ao(oi(Ae),oi(We))}function oi(Ae){if(Mp(os,Ae.fileName,!1)){const We=wc(Ae.fileName);if(We==="lib.d.ts"||We==="lib.es6.d.ts")return 0;const bt=Nk(q4(We,"lib."),".d.ts"),Nt=Kw.indexOf(bt);if(Nt!==-1)return Nt+1}return Kw.length+2}function Wr(Ae){return Io(Ae,_i,Q)}function Cn(){if(K===void 0){const Ae=An(Se,We=>Fb(We,Kt));K=U3(R,()=>Ri(Ae,We=>We.isDeclarationFile?void 0:We.fileName),_i,Q,We=>Ct(Ae,We))}return K}function Qi(){var Ae;if(!ke){$i(),ke=new Set;for(const We of Se)(Ae=We.classifiableNames)==null||Ae.forEach(bt=>ke.add(bt))}return ke}function pi(Ae,We){if(Yt===0&&!We.ambientModuleNames.length)return Jt(Ae,We,void 0);let bt,Nt,sr;const Mr=Bae,tr=H&&H.getSourceFile(We.fileName);for(let zn=0;zn{const Nt=(We?We.commandLine.projectReferences:ue)[bt],sr=At(Nt);return Ae?!sr||sr.sourceFile!==Ae.sourceFile||!ud(Ae.commandLine.fileNames,sr.commandLine.fileNames):sr!==void 0},(Ae,We)=>{const bt=We?sm(We.sourceFile.path).commandLine.projectReferences:ue;return!ud(Ae,bt,fz)})}function is(){var Ae;if(!H)return 0;const We=H.getCompilerOptions();if(t5(We,R))return 0;const bt=H.getRootFileNames();if(!ud(bt,re)||!In())return 0;ue&&(ne=ue.map(At));const Nt=[],sr=[];if(Yt=2,fl(H.getMissingFilePaths(),Gr=>Rt.fileExists(Gr)))return 0;const Mr=H.getSourceFiles();let tr;(Gr=>{Gr[Gr.Exists=0]="Exists",Gr[Gr.Modified=1]="Modified"})(tr||(tr={}));const Rr=new Map;for(const Gr of Mr){const zn=Is(Gr.fileName,fr,Rt,R);let Yr=Rt.getSourceFileByPath?Rt.getSourceFileByPath(Gr.fileName,Gr.resolvedPath,zn,void 0,ir):Rt.getSourceFile(Gr.fileName,zn,void 0,ir);if(!Yr)return 0;Yr.packageJsonLocations=(Ae=zn.packageJsonLocations)!=null&&Ae.length?zn.packageJsonLocations:void 0,Yr.packageJsonScope=zn.packageJsonScope,E.assert(!Yr.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");let ws;if(Gr.redirectInfo){if(Yr!==Gr.redirectInfo.unredirected)return 0;ws=!1,Yr=Gr}else if(H.redirectTargetsMap.has(Gr.path)){if(Yr!==Gr)return 0;ws=!1}else ws=Yr!==Gr;Yr.path=Gr.path,Yr.originalFileName=Gr.originalFileName,Yr.resolvedPath=Gr.resolvedPath,Yr.fileName=Gr.fileName;const Ta=H.sourceFileToPackageName.get(Gr.path);if(Ta!==void 0){const ku=Rr.get(Ta),jl=ws?1:0;if(ku!==void 0&&jl===1||ku===1)return 0;Rr.set(Ta,jl)}if(ws)Gr.impliedNodeFormat!==Yr.impliedNodeFormat?Yt=1:ud(Gr.libReferenceDirectives,Yr.libReferenceDirectives,Vc)?Gr.hasNoDefaultLib!==Yr.hasNoDefaultLib?Yt=1:ud(Gr.referencedFiles,Yr.referencedFiles,Vc)?(E_(Yr),ud(Gr.imports,Yr.imports,$a)&&ud(Gr.moduleAugmentations,Yr.moduleAugmentations,$a)?(Gr.flags&12582912)!==(Yr.flags&12582912)?Yt=1:ud(Gr.typeReferenceDirectives,Yr.typeReferenceDirectives,Vc)||(Yt=1):Yt=1):Yt=1:Yt=1,sr.push(Yr);else if(ei(Gr.path))Yt=1,sr.push(Yr);else for(const ku of Gr.ambientModuleNames)Oe.set(ku,Gr.fileName);Nt.push(Yr)}if(Yt!==2)return Yt;for(const Gr of sr){const zn=sSe(Gr),Yr=pi(zn,Gr);(Je??(Je=new Map)).set(Gr.path,Yr),pz(zn,Yr,mh=>H.getResolvedModule(Gr,mh.text,Ff(Gr,mh)),Tte)&&(Yt=1);const Ta=Gr.typeReferenceDirectives,ku=ci(Ta,Gr);(zt??(zt=new Map)).set(Gr.path,ku),pz(Ta,ku,mh=>H.getResolvedTypeReferenceDirective(Gr,Mq(mh),CA(mh,Gr.impliedNodeFormat)),xte)&&(Yt=1)}if(Yt!==2)return Yt;if(bte(We,R)||H.resolvedLibReferences&&fl(H.resolvedLibReferences,(Gr,zn)=>Ag(zn).actual!==Gr.actual))return 1;if(Rt.hasChangedAutomaticTypeDirectiveNames){if(Rt.hasChangedAutomaticTypeDirectiveNames())return 1}else if(ge=t9(R,Rt),!ud(H.getAutomaticTypeDirectiveNames(),ge))return 1;tt=H.getMissingFilePaths(),E.assert(Nt.length===H.getSourceFiles().length);for(const Gr of Nt)rt.set(Gr.path,Gr);return H.getFilesByNameMap().forEach((Gr,zn)=>{if(!Gr){rt.set(zn,Gr);return}if(Gr.path===zn){H.isSourceFileFromExternalLibrary(Gr)&&jt.set(Gr.path,!0);return}rt.set(zn,rt.get(Gr.path))}),Se=Nt,me=H.getFileIncludeReasons(),ft=H.getFileProcessingDiagnostics(),De=H.getResolvedTypeReferenceDirectives(),ge=H.getAutomaticTypeDirectiveNames(),Fe=H.getAutomaticTypeDirectiveResolutions(),cr=H.sourceFileToPackageName,br=H.redirectTargetsMap,Le=H.usesUriStyleNodeCoreModules,at=H.resolvedModules,pt=H.resolvedTypeReferenceDirectiveNames,$e=H.resolvedLibReferences,Vt=H.getCurrentPackagesMap(),2}function pr(Ae){return{getPrependNodes:go,getCanonicalFileName:Q,getCommonSourceDirectory:Kt.getCommonSourceDirectory,getCompilerOptions:Kt.getCompilerOptions,getCurrentDirectory:()=>_i,getSourceFile:Kt.getSourceFile,getSourceFileByPath:Kt.getSourceFileByPath,getSourceFiles:Kt.getSourceFiles,getLibFileFromReference:Kt.getLibFileFromReference,isSourceFileFromExternalLibrary:qo,getResolvedProjectReferenceToRedirect:Nf,getProjectReferenceRedirect:dc,isSourceOfProjectReferenceRedirect:Kf,getSymlinkCache:am,writeFile:Ae||_o,isEmitBlocked:Ll,readFile:We=>Rt.readFile(We),fileExists:We=>{const bt=Wr(We);return Wo(bt)?!0:tt.has(bt)?!1:Rt.fileExists(We)},useCaseSensitiveFileNames:()=>Rt.useCaseSensitiveFileNames(),getBuildInfo:We=>{var bt;return(bt=Kt.getBuildInfo)==null?void 0:bt.call(Kt,We)},getSourceFileFromReference:(We,bt)=>Kt.getSourceFileFromReference(We,bt),redirectTargetsMap:br,getFileIncludeReasons:Kt.getFileIncludeReasons,createHash:Os(Rt,Rt.createHash)}}function _o(Ae,We,bt,Nt,sr,Mr){Rt.writeFile(Ae,We,bt,Nt,sr,Mr)}function kc(Ae){var We,bt;E.assert(!io(R)),(We=qr)==null||We.push(qr.Phase.Emit,"emitBuildInfo",{},!0),No("beforeEmit");const Nt=I9(O9,pr(Ae),void 0,mq,!1,!0);return No("afterEmit"),vf("Emit","beforeEmit","afterEmit"),(bt=qr)==null||bt.pop(),Nt}function _s(){return ne}function Ra(){return ue}function go(){return Wq(ue,(Ae,We)=>{var bt;return(bt=ne[We])==null?void 0:bt.commandLine},Ae=>{const We=Wr(Ae),bt=Wo(We);return bt?bt.text:rt.has(We)?void 0:Rt.readFile(We)},Rt)}function qo(Ae){return!!jt.get(Ae.path)}function Ol(Ae){if(!Ae.isDeclarationFile)return!1;if(Ae.hasNoDefaultLib)return!0;if(!R.noLib)return!1;const We=Rt.useCaseSensitiveFileNames()?fb:p1;return R.lib?ct(R.lib,bt=>We(Ae.fileName,$e.get(bt).actual)):We(Ae.fileName,yi())}function $i(){return fe||(fe=Ase(Kt))}function zs(Ae,We,bt,Nt,sr,Mr){var tr,Rr;(tr=qr)==null||tr.push(qr.Phase.Emit,"emit",{path:Ae==null?void 0:Ae.path},!0);const Yn=Ml(()=>Ya(Kt,Ae,We,bt,Nt,sr,Mr));return(Rr=qr)==null||Rr.pop(),Yn}function Ll(Ae){return Ue.has(Wr(Ae))}function Ya(Ae,We,bt,Nt,sr,Mr,tr){if(!tr){const Gr=zq(Ae,We,bt,Nt);if(Gr)return Gr}const Rr=$i().getEmitResolver(io(R)?void 0:We,Nt);No("beforeEmit");const Yn=I9(Rr,pr(bt),We,dq(R,Mr,sr),sr,!1,tr);return No("afterEmit"),vf("Emit","beforeEmit","afterEmit"),Yn}function oa(Ae){return Wo(Wr(Ae))}function Wo(Ae){return rt.get(Ae)||void 0}function Zf(Ae,We,bt){return zk(Ae?We(Ae,bt):Zs(Kt.getSourceFiles(),Nt=>(bt&&bt.throwIfCancellationRequested(),We(Nt,bt))))}function Fc(Ae,We){return Zf(Ae,Pl,We)}function rc(Ae,We){return Zf(Ae,q_,We)}function Ro(Ae){var We;return Ae?(We=be.perFile)==null?void 0:We.get(Ae.path):be.allDiagnostics}function fs(Ae,We){return so(Ae,We)}function Wt(Ae){var We;if(HE(Ae,R,Kt))return Ve;const bt=yr.getDiagnostics(Ae.fileName);return(We=Ae.commentDirectives)!=null&&We.length?X(Ae,Ae.commentDirectives,bt).diagnostics:bt}function ho(Ae,We){const bt=Kt.getCompilerOptions();return!Ae||io(bt)?an(Ae,We):Zf(Ae,li,We)}function Pl(Ae){return Ou(Ae)?(Ae.additionalSyntacticDiagnostics||(Ae.additionalSyntacticDiagnostics=Xt(Ae)),es(Ae.additionalSyntacticDiagnostics,Ae.parseDiagnostics)):Ae.parseDiagnostics}function Ml(Ae){try{return Ae()}catch(We){throw We instanceof Mk&&(fe=void 0),We}}function q_(Ae,We){return es(V9(so(Ae,We),R),Wt(Ae))}function so(Ae,We){return En(Ae,We,be,Zc)}function Zc(Ae,We){return Ml(()=>{if(HE(Ae,R,Kt))return Ve;const bt=$i();E.assert(!!Ae.bindDiagnostics);const sr=(Ae.scriptKind===1||Ae.scriptKind===2)&&iw(Ae,R),Mr=o8(Ae,R.checkJs),Rr=!(!!Ae.checkJsDirective&&Ae.checkJsDirective.enabled===!1)&&(Ae.scriptKind===3||Ae.scriptKind===4||Ae.scriptKind===5||Mr||sr||Ae.scriptKind===7);let Yn=Rr?Ae.bindDiagnostics:Ve,Gr=Rr?bt.getDiagnostics(Ae,We):Ve;return Mr&&(Yn=An(Yn,zn=>H9.has(zn.code)),Gr=An(Gr,zn=>H9.has(zn.code))),se(Ae,Rr&&!Mr,Yn,Gr,sr?Ae.jsDocDiagnostics:void 0)})}function se(Ae,We,...bt){var Nt;const sr=Op(bt);if(!We||!((Nt=Ae.commentDirectives)!=null&&Nt.length))return sr;const{diagnostics:Mr,directives:tr}=X(Ae,Ae.commentDirectives,sr);for(const Rr of tr.getUnusedExpectations())Mr.push(jte(Ae,Rr.range,p.Unused_ts_expect_error_directive));return Mr}function X(Ae,We,bt){const Nt=Ete(Ae,We);return{diagnostics:bt.filter(Mr=>lt(Mr,Nt)===-1),directives:Nt}}function Ee(Ae,We){return Ml(()=>$i().getSuggestionDiagnostics(Ae,We))}function lt(Ae,We){const{file:bt,start:Nt}=Ae;if(!bt)return-1;const sr=$g(bt);let Mr=Bk(sr,Nt).line-1;for(;Mr>=0;){if(We.markUsed(Mr))return Mr;const tr=bt.text.slice(sr[Mr],sr[Mr+1]).trim();if(tr!==""&&!/^(\s*)\/\/(.*)$/.test(tr))return-1;Mr--}return-1}function Xt(Ae){return Ml(()=>{const We=[];return bt(Ae,Ae),x3(Ae,bt,Nt),We;function bt(Rr,Yn){switch(Yn.kind){case 169:case 172:case 174:if(Yn.questionToken===Rr)return We.push(tr(Rr,p.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(Yn.type===Rr)return We.push(tr(Rr,p.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(Rr.kind){case 273:if(Rr.isTypeOnly)return We.push(tr(Yn,p._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 278:if(Rr.isTypeOnly)return We.push(tr(Rr,p._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 276:case 281:if(Rr.isTypeOnly)return We.push(tr(Rr,p._0_declarations_can_only_be_used_in_TypeScript_files,x_(Rr)?"import...type":"export...type")),"skip";break;case 271:return We.push(tr(Rr,p.import_can_only_be_used_in_TypeScript_files)),"skip";case 277:if(Rr.isExportEquals)return We.push(tr(Rr,p.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 298:if(Rr.token===119)return We.push(tr(Rr,p.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 264:const zn=Ws(120);return E.assertIsDefined(zn),We.push(tr(Rr,p._0_declarations_can_only_be_used_in_TypeScript_files,zn)),"skip";case 267:const Yr=Rr.flags&32?Ws(145):Ws(144);return E.assertIsDefined(Yr),We.push(tr(Rr,p._0_declarations_can_only_be_used_in_TypeScript_files,Yr)),"skip";case 265:return We.push(tr(Rr,p.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 176:case 174:case 262:return Rr.body?void 0:(We.push(tr(Rr,p.Signature_declarations_can_only_be_used_in_TypeScript_files)),"skip");case 266:const ws=E.checkDefined(Ws(94));return We.push(tr(Rr,p._0_declarations_can_only_be_used_in_TypeScript_files,ws)),"skip";case 235:return We.push(tr(Rr,p.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 234:return We.push(tr(Rr.type,p.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 238:return We.push(tr(Rr.type,p.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 216:E.fail()}}function Nt(Rr,Yn){if($V(Yn)){const Gr=wn(Yn.modifiers,ql);Gr&&We.push(tr(Gr,p.Decorators_are_not_valid_here))}else if(Kb(Yn)&&Yn.modifiers){const Gr=vc(Yn.modifiers,ql);if(Gr>=0){if(rs(Yn)&&!R.experimentalDecorators)We.push(tr(Yn.modifiers[Gr],p.Decorators_are_not_valid_here));else if(Qc(Yn)){const zn=vc(Yn.modifiers,rx);if(zn>=0){const Yr=vc(Yn.modifiers,yO);if(Gr>zn&&Yr>=0&&Gr=0&&Gr=0&&We.push(la(tr(Yn.modifiers[ws],p.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),tr(Yn.modifiers[Gr],p.Decorator_used_before_export_here)))}}}}}switch(Yn.kind){case 263:case 231:case 174:case 176:case 177:case 178:case 218:case 262:case 219:if(Rr===Yn.typeParameters)return We.push(Mr(Rr,p.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 243:if(Rr===Yn.modifiers)return sr(Yn.modifiers,Yn.kind===243),"skip";break;case 172:if(Rr===Yn.modifiers){for(const Gr of Rr)ta(Gr)&&Gr.kind!==126&&Gr.kind!==129&&We.push(tr(Gr,p.The_0_modifier_can_only_be_used_in_TypeScript_files,Ws(Gr.kind)));return"skip"}break;case 169:if(Rr===Yn.modifiers&&ct(Rr,ta))return We.push(Mr(Rr,p.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 213:case 214:case 233:case 285:case 286:case 215:if(Rr===Yn.typeArguments)return We.push(Mr(Rr,p.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip";break}}function sr(Rr,Yn){for(const Gr of Rr)switch(Gr.kind){case 87:if(Yn)continue;case 125:case 123:case 124:case 148:case 138:case 128:case 164:case 103:case 147:We.push(tr(Gr,p.The_0_modifier_can_only_be_used_in_TypeScript_files,Ws(Gr.kind)));break;case 126:case 95:case 90:case 129:}}function Mr(Rr,Yn,...Gr){const zn=Rr.pos;return xl(Ae,zn,Rr.end-zn,Yn,...Gr)}function tr(Rr,Yn,...Gr){return dp(Ae,Rr,Yn,...Gr)}})}function an(Ae,We){return En(Ae,We,xe,rn)}function rn(Ae,We){return Ml(()=>{const bt=$i().getEmitResolver(Ae,We);return xae(pr(Ca),bt,Ae)||Ve})}function En(Ae,We,bt,Nt){var sr;const Mr=Ae?(sr=bt.perFile)==null?void 0:sr.get(Ae.path):bt.allDiagnostics;if(Mr)return Mr;const tr=Nt(Ae,We);return Ae?(bt.perFile||(bt.perFile=new Map)).set(Ae.path,tr):bt.allDiagnostics=tr,tr}function li(Ae,We){return Ae.isDeclarationFile?[]:an(Ae,We)}function gn(){return zk(es(yr.getGlobalDiagnostics(),Ps()))}function Ps(){if(!R.configFile)return Ve;let Ae=yr.getDiagnostics(R.configFile.fileName);return __(We=>{Ae=es(Ae,yr.getDiagnostics(We.sourceFile.fileName))}),Ae}function Qo(){return re.length?zk($i().getGlobalDiagnostics().slice()):Ve}function gl(){return Y||Ve}function yo(Ae,We,bt,Nt){Te(Hs(Ae),We,bt,void 0,Nt)}function Vc(Ae,We){return Ae.fileName===We.fileName}function $a(Ae,We){return Ae.kind===80?We.kind===80&&Ae.escapedText===We.escapedText:We.kind===11&&Ae.text===We.text}function hl(Ae,We){const bt=I.createStringLiteral(Ae),Nt=I.createImportDeclaration(void 0,void 0,bt,void 0);return XT(Nt,2),ba(bt,Nt),ba(Nt,We),bt.flags&=-17,Nt.flags&=-17,bt}function E_(Ae){if(Ae.imports)return;const We=Ou(Ae),bt=Ic(Ae);let Nt,sr,Mr;if((Tp(R)||bt)&&!Ae.isDeclarationFile){R.importHelpers&&(Nt=[hl(ay,Ae)]);const Gr=fF(_F(R,Ae),R);Gr&&(Nt||(Nt=[])).push(hl(Gr,Ae))}for(const Gr of Ae.statements)tr(Gr,!1);(Ae.flags&4194304||We)&&Rr(Ae),Ae.imports=Nt||Ve,Ae.moduleAugmentations=sr||Ve,Ae.ambientModuleNames=Mr||Ve;return;function tr(Gr,zn){if(u8(Gr)){const Yr=uC(Gr);Yr&&aa(Yr)&&Yr.text&&(!zn||!Sl(Yr.text))&&(sy(Gr,!1),Nt=_r(Nt,Yr),!Le&&Lr===0&&!Ae.isDeclarationFile&&(Le=Vi(Yr.text,"node:")))}else if(Sc(Gr)&&su(Gr)&&(zn||Rn(Gr,128)||Ae.isDeclarationFile)){Gr.name.parent=Gr;const Yr=hp(Gr.name);if(bt||zn&&!Sl(Yr))(sr||(sr=[])).push(Gr.name);else if(!zn){Ae.isDeclarationFile&&(Mr||(Mr=[])).push(Yr);const ws=Gr.body;if(ws)for(const Ta of ws.statements)tr(Ta,!0)}}}function Rr(Gr){const zn=/import|require/g;for(;zn.exec(Gr.text)!==null;){const Yr=Yn(Gr,zn.lastIndex);We&&Gu(Yr,!0)||of(Yr)&&Yr.arguments.length>=1&&Ma(Yr.arguments[0])?(sy(Yr,!1),Nt=_r(Nt,Yr.arguments[0])):ey(Yr)&&(sy(Yr,!1),Nt=_r(Nt,Yr.argument.literal))}}function Yn(Gr,zn){let Yr=Gr;const ws=Ta=>{if(Ta.pos<=zn&&(znZo(sr,tr))){bt&&(Kv(sr)?bt(p.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,Ae):bt(p.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,Ae,"'"+Op(ln).join("', '")+"'"));return}const Mr=We(Ae);if(bt)if(Mr)U1(Nt)&&sr===Rt.getCanonicalFileName(Wo(Nt.file).fileName)&&bt(p.A_file_cannot_have_a_reference_to_itself);else{const tr=dc(Ae);tr?bt(p.Output_file_0_has_not_been_built_from_source_file_1,tr,Ae):bt(p.File_0_not_found,Ae)}return Mr}else{const sr=R.allowNonTsExtensions&&We(Ae);if(sr)return sr;if(bt&&R.allowNonTsExtensions){bt(p.File_0_not_found,Ae);return}const Mr=rr(ln[0],tr=>We(Ae+tr));return bt&&!Mr&&bt(p.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,Ae,"'"+Op(ln).join("', '")+"'"),Mr}}function Te(Ae,We,bt,Nt,sr){Ju(Ae,Mr=>Ds(Mr,We,bt,sr,Nt),(Mr,...tr)=>Ln(void 0,sr,Mr,tr),sr)}function kt(Ae,We){return Te(Ae,!1,!1,void 0,We)}function Fr(Ae,We,bt){!U1(bt)&&ct(me.get(We.path),U1)?Ln(We,bt,p.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[We.fileName,Ae]):Ln(We,bt,p.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[Ae,We.fileName])}function Yi(Ae,We,bt,Nt,sr,Mr,tr){var Rr;const Yn=Jm.createRedirectedSourceFile({redirectTarget:Ae,unredirected:We});return Yn.fileName=bt,Yn.path=Nt,Yn.resolvedPath=sr,Yn.originalFileName=Mr,Yn.packageJsonLocations=(Rr=tr.packageJsonLocations)!=null&&Rr.length?tr.packageJsonLocations:void 0,Yn.packageJsonScope=tr.packageJsonScope,jt.set(Nt,Lr>0),Yn}function Ds(Ae,We,bt,Nt,sr){var Mr,tr;(Mr=qr)==null||Mr.push(qr.Phase.Program,"findSourceFile",{fileName:Ae,isDefaultLib:We||void 0,fileIncludeKind:m7[Nt.kind]});const Rr=Cc(Ae,We,bt,Nt,sr);return(tr=qr)==null||tr.pop(),Rr}function Is(Ae,We,bt,Nt){const sr=Jq(Xi(Ae,_i),We==null?void 0:We.getPackageJsonInfoCache(),bt,Nt),Mr=Fa(Nt),tr=ew(Nt);return typeof sr=="object"?{...sr,languageVersion:Mr,setExternalModuleIndicator:tr,jsDocParsingMode:bt.jsDocParsingMode}:{languageVersion:Mr,impliedNodeFormat:sr,setExternalModuleIndicator:tr,jsDocParsingMode:bt.jsDocParsingMode}}function Cc(Ae,We,bt,Nt,sr){var Mr;const tr=Wr(Ae);if(Ge){let Yr=Ku(tr);if(!Yr&&Rt.realpath&&R.preserveSymlinks&&Hl(Ae)&&Ae.includes(zm)){const ws=Wr(Rt.realpath(Ae));ws!==tr&&(Yr=Ku(ws))}if(Yr){const ws=ls(Yr)?Ds(Yr,We,bt,Nt,sr):void 0;return ws&&jo(ws,tr,Ae,void 0),ws}}const Rr=Ae;if(rt.has(tr)){const Yr=rt.get(tr);if(Uc(Yr||void 0,Nt),Yr&&R.forceConsistentCasingInFileNames!==!1){const ws=Yr.fileName;Wr(ws)!==Wr(Ae)&&(Ae=dc(Ae)||Ae);const ku=FJ(ws,_i),jl=FJ(Ae,_i);ku!==jl&&Fr(Ae,Yr,Nt)}return Yr&&jt.get(Yr.path)&&Lr===0?(jt.set(Yr.path,!1),R.noResolve||(qm(Yr,We),_h(Yr)),R.noLib||f_(Yr),er.set(Yr.path,!1),Ye(Yr)):Yr&&er.get(Yr.path)&&LrLn(void 0,Nt,p.Cannot_read_file_0_Colon_1,[Ae,Yr]),ir);if(sr){const Yr=Z0(sr),ws=_a.get(Yr);if(ws){const Ta=Yi(ws,zn,Ae,tr,Wr(Ae),Rr,Gr);return br.add(ws.path,Ae),jo(Ta,tr,Ae,Yn),Uc(Ta,Nt),cr.set(tr,i5(sr)),oe.push(Ta),Ta}else zn&&(_a.set(Yr,zn),cr.set(tr,i5(sr)))}if(jo(zn,tr,Ae,Yn),zn){if(jt.set(tr,Lr>0),zn.fileName=Ae,zn.path=tr,zn.resolvedPath=Wr(Ae),zn.originalFileName=Rr,zn.packageJsonLocations=(Mr=Gr.packageJsonLocations)!=null&&Mr.length?Gr.packageJsonLocations:void 0,zn.packageJsonScope=Gr.packageJsonScope,Uc(zn,Nt),Rt.useCaseSensitiveFileNames()){const Yr=km(tr),ws=yt.get(Yr);ws?Fr(Ae,ws,Nt):yt.set(Yr,zn)}Ji=Ji||zn.hasNoDefaultLib&&!bt,R.noResolve||(qm(zn,We),_h(zn)),R.noLib||f_(zn),Ye(zn),We?ee.push(zn):oe.push(zn)}return zn}function Uc(Ae,We){Ae&&me.add(Ae.path,We)}function jo(Ae,We,bt,Nt){Nt?(Ho(bt,Nt,Ae),Ho(bt,We,Ae||!1)):Ho(bt,We,Ae)}function Ho(Ae,We,bt){rt.set(We,bt),bt!==void 0?tt.delete(We):tt.set(We,Ae)}function dc(Ae){const We=Ec(Ae);return We&&yl(We,Ae)}function Ec(Ae){if(!(!ne||!ne.length||Hl(Ae)||Zo(Ae,".json")))return Nf(Ae)}function yl(Ae,We){const bt=io(Ae.commandLine.options);return bt?N1(bt,".d.ts"):V3(We,Ae.commandLine,!Rt.useCaseSensitiveFileNames())}function Nf(Ae){et===void 0&&(et=new Map,__(bt=>{Wr(R.configFilePath)!==bt.sourceFile.path&&bt.commandLine.fileNames.forEach(Nt=>et.set(Wr(Nt),bt.sourceFile.path))}));const We=et.get(Wr(Ae));return We&&sm(We)}function __(Ae){return Rq(ne,Ae)}function Ku(Ae){if(Hl(Ae))return B===void 0&&(B=new Map,__(We=>{const bt=io(We.commandLine.options);if(bt){const Nt=N1(bt,".d.ts");B.set(Wr(Nt),!0)}else{const Nt=Hu(()=>a6(We.commandLine,!Rt.useCaseSensitiveFileNames()));rr(We.commandLine.fileNames,sr=>{if(!Hl(sr)&&!Zo(sr,".json")){const Mr=V3(sr,We.commandLine,!Rt.useCaseSensitiveFileNames(),Nt);B.set(Wr(Mr),sr)}})}})),B.get(Ae)}function Kf(Ae){return Ge&&!!Nf(Ae)}function sm(Ae){if(we)return we.get(Ae)||void 0}function qm(Ae,We){rr(Ae.referencedFiles,(bt,Nt)=>{Te(j9(bt.fileName,Ae.fileName),We,!1,void 0,{kind:4,file:Ae.path,index:Nt})})}function _h(Ae){const We=Ae.typeReferenceDirectives;if(!We.length)return;const bt=(zt==null?void 0:zt.get(Ae.path))||ci(We,Ae),Nt=bx();(pt??(pt=new Map)).set(Ae.path,Nt);for(let sr=0;sr{const{libName:Nt,libFileName:sr}=iSe(We);if(sr)yo(H_(sr),!0,!0,{kind:7,file:Ae.path,index:bt});else{const Mr=Nk(q4(Nt,"lib."),".d.ts"),tr=U4(Mr,Kw,wo),Rr=tr?p.Cannot_find_lib_definition_for_0_Did_you_mean_1:p.Cannot_find_lib_definition_for_0,Yn=tr?[Nt,tr]:[Nt];(ft||(ft=[])).push({kind:0,reason:{kind:7,file:Ae.path,index:bt},diagnostic:Rr,args:Yn})}})}function Q(Ae){return Rt.getCanonicalFileName(Ae)}function Ye(Ae){var We;if(E_(Ae),Ae.imports.length||Ae.moduleAugmentations.length){const bt=sSe(Ae),Nt=(Je==null?void 0:Je.get(Ae.path))||pi(bt,Ae);E.assert(Nt.length===bt.length);const sr=((We=Er(Ae))==null?void 0:We.commandLine.options)||R,Mr=bx();(at??(at=new Map)).set(Ae.path,Mr);for(let tr=0;trhr,jl=Ta&&!Vq(sr,Rr,Ae)&&!sr.noResolve&&trIc(tr)&&!tr.isDeclarationFile);if(R.isolatedModules||R.verbatimModuleSyntax)R.module===0&&We<2&&R.isolatedModules&&ja(p.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),R.preserveConstEnums===!1&&ja(p.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,R.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(bt&&We<2&&R.module===0){const tr=Cb(bt,typeof bt.externalModuleIndicator=="boolean"?bt:bt.externalModuleIndicator);yr.add(xl(bt,tr.start,tr.length,p.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(Ae&&!R.emitDeclarationOnly){if(R.module&&!(R.module===2||R.module===4))ja(p.Only_amd_and_system_modules_are_supported_alongside_0,R.out?"out":"outFile","module");else if(R.module===void 0&&bt){const tr=Cb(bt,typeof bt.externalModuleIndicator=="boolean"?bt:bt.externalModuleIndicator);yr.add(xl(bt,tr.start,tr.length,p.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,R.out?"out":"outFile"))}}if(F1(R)&&(Ru(R)===1?ja(p.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):cF(R)||ja(p.Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd,"resolveJsonModule","module")),R.outDir||R.rootDir||R.sourceRoot||R.mapRoot){const tr=Cn();R.outDir&&tr===""&&Se.some(Rr=>Pm(Rr.fileName)>1)&&ja(p.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}R.useDefineForClassFields&&We===0&&ja(p.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),R.checkJs&&!oy(R)&&yr.add(gc(p.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),R.emitDeclarationOnly&&(Hf(R)||ja(p.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),R.noEmit&&ja(p.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),R.emitDecoratorMetadata&&!R.experimentalDecorators&&ja(p.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),R.jsxFactory?(R.reactNamespace&&ja(p.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),(R.jsx===4||R.jsx===5)&&ja(p.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",P3.get(""+R.jsx)),hx(R.jsxFactory,We)||Qp("jsxFactory",p.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,R.jsxFactory)):R.reactNamespace&&!bf(R.reactNamespace,We)&&Qp("reactNamespace",p.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,R.reactNamespace),R.jsxFragmentFactory&&(R.jsxFactory||ja(p.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),(R.jsx===4||R.jsx===5)&&ja(p.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",P3.get(""+R.jsx)),hx(R.jsxFragmentFactory,We)||Qp("jsxFragmentFactory",p.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,R.jsxFragmentFactory)),R.reactNamespace&&(R.jsx===4||R.jsx===5)&&ja(p.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",P3.get(""+R.jsx)),R.jsxImportSource&&R.jsx===2&&ja(p.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",P3.get(""+R.jsx)),R.preserveValueImports&&au(R)<5&&ja(p.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"preserveValueImports");const Nt=au(R);R.verbatimModuleSyntax&&((Nt===2||Nt===3||Nt===4)&&ja(p.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax"),R.preserveValueImports&&Zp("preserveValueImports","verbatimModuleSyntax"),R.importsNotUsedAsValues&&Zp("importsNotUsedAsValues","verbatimModuleSyntax")),R.allowImportingTsExtensions&&!(R.noEmit||R.emitDeclarationOnly)&&Qp("allowImportingTsExtensions",p.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);const sr=Ru(R);if(R.resolvePackageJsonExports&&!qT(sr)&&ja(p.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports"),R.resolvePackageJsonImports&&!qT(sr)&&ja(p.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports"),R.customConditions&&!qT(sr)&&ja(p.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions"),sr===100&&!oF(Nt)&&Nt!==200&&Qp("moduleResolution",p.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"bundler"),G4[Nt]&&100<=Nt&&Nt<=199&&!(3<=sr&&sr<=99)){const tr=G4[Nt];Qp("moduleResolution",p.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1,tr,tr)}else if(Rk[sr]&&3<=sr&&sr<=99&&!(100<=Nt&&Nt<=199)){const tr=Rk[sr];Qp("module",p.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1,tr,tr)}if(!R.noEmit&&!R.suppressOutputPathCheck){const tr=pr(),Rr=new Set;gq(tr,Yn=>{R.emitDeclarationOnly||Mr(Yn.jsFilePath,Rr),Mr(Yn.declarationFilePath,Rr)})}function Mr(tr,Rr){if(tr){const Yn=Wr(tr);if(rt.has(Yn)){let zn;R.configFilePath||(zn=vs(void 0,p.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)),zn=vs(zn,p.Cannot_write_file_0_because_it_would_overwrite_input_file,tr),w2(tr,sF(zn))}const Gr=Rt.useCaseSensitiveFileNames()?Yn:km(Yn);Rr.has(Gr)?w2(tr,gc(p.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,tr)):Rr.add(Gr)}}}function he(){const Ae=R.ignoreDeprecations;if(Ae){if(Ae==="5.0")return new Lp(Ae);q()}return Lp.zero}function Xe(Ae,We,bt,Nt){const sr=new Lp(Ae),Mr=new Lp(We),tr=new Lp(pe||qg),Rr=he(),Yn=Mr.compareTo(tr)!==1,Gr=!Yn&&Rr.compareTo(sr)===-1;(Yn||Gr)&&Nt((zn,Yr,ws)=>{Yn?Yr===void 0?bt(zn,Yr,ws,p.Option_0_has_been_removed_Please_remove_it_from_your_configuration,zn):bt(zn,Yr,ws,p.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,zn,Yr):Yr===void 0?bt(zn,Yr,ws,p.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,zn,We,Ae):bt(zn,Yr,ws,p.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,zn,Yr,We,Ae)})}function Ft(){function Ae(We,bt,Nt,sr,...Mr){if(Nt){const tr=vs(void 0,p.Use_0_instead,Nt),Rr=vs(tr,sr,...Mr);Ci(!bt,We,void 0,Rr)}else Ci(!bt,We,void 0,sr,...Mr)}Xe("5.0","5.5",Ae,We=>{R.target===0&&We("target","ES3"),R.noImplicitUseStrict&&We("noImplicitUseStrict"),R.keyofStringsOnly&&We("keyofStringsOnly"),R.suppressExcessPropertyErrors&&We("suppressExcessPropertyErrors"),R.suppressImplicitAnyIndexErrors&&We("suppressImplicitAnyIndexErrors"),R.noStrictGenericChecks&&We("noStrictGenericChecks"),R.charset&&We("charset"),R.out&&We("out",void 0,"outFile"),R.importsNotUsedAsValues&&We("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),R.preserveValueImports&&We("preserveValueImports",void 0,"verbatimModuleSyntax")})}function zr(Ae,We,bt){function Nt(sr,Mr,tr,Rr,...Yn){Yp(We,bt,Rr,...Yn)}Xe("5.0","5.5",Nt,sr=>{Ae.prepend&&sr("prepend")})}function Vn(Ae,We,bt,Nt){var sr;let Mr,tr,Rr=U1(We)?We:void 0;Ae&&((sr=me.get(Ae.path))==null||sr.forEach(ws)),We&&ws(We),Rr&&(Mr==null?void 0:Mr.length)===1&&(Mr=void 0);const Yn=Rr&&q3(Kt,Rr),Gr=Mr&&vs(Mr,p.The_file_is_in_the_program_because_Colon),zn=Ae&&aH(Ae),Yr=vs(zn?Gr?[Gr,...zn]:zn:Gr,bt,...Nt||Ve);return Yn&&c6(Yn)?_5(Yn.file,Yn.pos,Yn.end-Yn.pos,Yr,tr):sF(Yr,tr);function ws(Ta){(Mr||(Mr=[])).push(lH(Kt,Ta)),!Rr&&U1(Ta)?Rr=Ta:Rr!==Ta&&(tr=_r(tr,fa(Ta))),Ta===We&&(We=void 0)}}function Ln(Ae,We,bt,Nt){(ft||(ft=[])).push({kind:1,file:Ae&&Ae.path,fileProcessingReason:We,diagnostic:bt,args:Nt})}function ji(Ae,We,bt){yr.add(Vn(Ae,void 0,We,bt))}function fa(Ae){if(U1(Ae)){const Nt=q3(Kt,Ae);let sr;switch(Ae.kind){case 3:sr=p.File_is_included_via_import_here;break;case 4:sr=p.File_is_included_via_reference_here;break;case 5:sr=p.File_is_included_via_type_library_reference_here;break;case 7:sr=p.File_is_included_via_library_reference_here;break;default:E.assertNever(Ae)}return c6(Nt)?xl(Nt.file,Nt.pos,Nt.end-Nt.pos,sr):void 0}if(!R.configFile)return;let We,bt;switch(Ae.kind){case 0:if(!R.configFile.configFileSpecs)return;const Nt=Xi(re[Ae.index],_i),sr=oH(Kt,Nt);if(sr){We=y5(R.configFile,"files",sr),bt=p.File_is_matched_by_files_list_specified_here;break}const Mr=cH(Kt,Nt);if(!Mr||!ls(Mr))return;We=y5(R.configFile,"include",Mr),bt=p.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:const tr=E.checkDefined(ne==null?void 0:ne[Ae.index]),Rr=J9(ue,ne,(ws,Ta,ku)=>ws===tr?{sourceFile:(Ta==null?void 0:Ta.sourceFile)||R.configFile,index:ku}:void 0);if(!Rr)return;const{sourceFile:Yn,index:Gr}=Rr,zn=g8(Yn,"references",ws=>ju(ws.initializer)?ws.initializer:void 0);return zn&&zn.elements.length>Gr?dp(Yn,zn.elements[Gr],Ae.kind===2?p.File_is_output_from_referenced_project_specified_here:p.File_is_source_from_referenced_project_specified_here):void 0;case 8:if(!R.types)return;We=ky("types",Ae.typeReference),bt=p.File_is_entry_point_of_type_library_specified_here;break;case 6:if(Ae.index!==void 0){We=ky("lib",R.lib[Ae.index]),bt=p.File_is_library_specified_here;break}const Yr=fl(tA.type,(ws,Ta)=>ws===Fa(R)?Ta:void 0);We=Yr?p_("target",Yr):void 0,bt=p.File_is_default_library_for_target_specified_here;break;default:E.assertNever(Ae)}return We&&dp(R.configFile,We,bt)}function pa(){const Ae=R.suppressOutputPathCheck?void 0:c0(R);J9(ue,ne,(We,bt,Nt)=>{const sr=(bt?bt.commandLine.projectReferences:ue)[Nt],Mr=bt&&bt.sourceFile;if(zr(sr,Mr,Nt),!We){Yp(Mr,Nt,p.File_0_not_found,sr.path);return}const tr=We.commandLine.options;if((!tr.composite||tr.noEmit)&&(bt?bt.commandLine.fileNames:re).length&&(tr.composite||Yp(Mr,Nt,p.Referenced_project_0_must_have_setting_composite_Colon_true,sr.path),tr.noEmit&&Yp(Mr,Nt,p.Referenced_project_0_may_not_disable_emit,sr.path)),sr.prepend){const Rr=io(tr);Rr?Rt.fileExists(Rr)||Yp(Mr,Nt,p.Output_file_0_from_project_1_does_not_exist,Rr,sr.path):Yp(Mr,Nt,p.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,sr.path)}!bt&&Ae&&Ae===c0(tr)&&(Yp(Mr,Nt,p.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,Ae,sr.path),Ue.set(Wr(Ae),!0))})}function lc(Ae,We,bt,...Nt){let sr=!0;G_(Mr=>{ua(Mr.initializer)&&iC(Mr.initializer,Ae,tr=>{const Rr=tr.initializer;ju(Rr)&&Rr.elements.length>We&&(yr.add(dp(R.configFile,Rr.elements[We],bt,...Nt)),sr=!1)})}),sr&&yr.add(gc(bt,...Nt))}function Rl(Ae,We,bt,...Nt){let sr=!0;G_(Mr=>{ua(Mr.initializer)&&h0(Mr.initializer,Ae,We,void 0,bt,...Nt)&&(sr=!1)}),sr&&yr.add(gc(bt,...Nt))}function Kc(Ae,We){return iC(ph(),Ae,We)}function G_(Ae){return Kc("paths",Ae)}function p_(Ae,We){return Kc(Ae,bt=>aa(bt.initializer)&&bt.initializer.text===We?bt.initializer:void 0)}function ky(Ae,We){const bt=ph();return bt&&Gte(bt,Ae,We)}function ja(Ae,We,bt,Nt){Ci(!0,We,bt,Ae,We,bt,Nt)}function Qp(Ae,We,...bt){Ci(!1,Ae,void 0,We,...bt)}function Yp(Ae,We,bt,...Nt){const sr=g8(Ae||R.configFile,"references",Mr=>ju(Mr.initializer)?Mr.initializer:void 0);sr&&sr.elements.length>We?yr.add(dp(Ae||R.configFile,sr.elements[We],bt,...Nt)):yr.add(gc(bt,...Nt))}function Ci(Ae,We,bt,Nt,...sr){const Mr=ph();(!Mr||!h0(Mr,Ae,We,bt,Nt,...sr))&&("messageText"in Nt?yr.add(sF(Nt)):yr.add(gc(Nt,...sr)))}function ph(){return Et===void 0&&(Et=iC(hE(R.configFile),"compilerOptions",Ae=>ua(Ae.initializer)?Ae.initializer:void 0)||!1),Et||void 0}function h0(Ae,We,bt,Nt,sr,...Mr){let tr=!1;return iC(Ae,bt,Rr=>{"messageText"in sr?yr.add(Zg(R.configFile,We?Rr.name:Rr.initializer,sr)):yr.add(dp(R.configFile,We?Rr.name:Rr.initializer,sr,...Mr)),tr=!0},Nt),tr}function Zp(Ae,We){const bt=ph();bt?h0(bt,!0,Ae,void 0,p.Option_0_is_redundant_and_cannot_be_specified_with_option_1,Ae,We):ja(p.Option_0_is_redundant_and_cannot_be_specified_with_option_1,Ae,We)}function w2(Ae,We){Ue.set(Wr(Ae),!0),yr.add(We)}function A2(Ae){if(R.noEmit)return!1;const We=Wr(Ae);if(Wo(We))return!1;const bt=io(R);if(bt)return If(We,bt)||If(We,$u(bt)+".d.ts");if(R.declarationDir&&Mp(R.declarationDir,We,_i,!Rt.useCaseSensitiveFileNames()))return!0;if(R.outDir)return Mp(R.outDir,We,_i,!Rt.useCaseSensitiveFileNames());if($c(We,FC)||Hl(We)){const Nt=$u(We);return!!Wo(Nt+".ts")||!!Wo(Nt+".tsx")}return!1}function If(Ae,We){return Gg(Ae,We,_i,!Rt.useCaseSensitiveFileNames())===0}function am(){return Rt.getSymlinkCache?Rt.getSymlinkCache():(ae||(ae=AW(_i,Q)),Se&&!ae.hasProcessedResolutions()&&ae.setSymlinksFromResolutions(A,le,Fe),ae)}function Ff(Ae,We){var bt;const Nt=((bt=Er(Ae))==null?void 0:bt.commandLine.options)||R;return Oq(Ae,We,Nt)}function dh(Ae,We){return Ff(Ae,DA(Ae,We))}}function MRe(e){let t;const n=e.compilerHost.fileExists,i=e.compilerHost.directoryExists,s=e.compilerHost.getDirectories,o=e.compilerHost.realpath;if(!e.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:Ca,fileExists:f};e.compilerHost.fileExists=f;let c;return i&&(c=e.compilerHost.directoryExists=T=>i.call(e.compilerHost,T)?(y(T),!0):e.getResolvedProjectReferences()?(t||(t=new Set,e.forEachResolvedProjectReference(k=>{const w=io(k.commandLine.options);if(w)t.add(Un(e.toPath(w)));else{const P=k.commandLine.options.declarationDir||k.commandLine.options.outDir;P&&t.add(e.toPath(P))}})),S(T,!1)):!1),s&&(e.compilerHost.getDirectories=T=>!e.getResolvedProjectReferences()||i&&i.call(e.compilerHost,T)?s.call(e.compilerHost,T):[]),o&&(e.compilerHost.realpath=T=>{var k;return((k=e.getSymlinkCache().getSymlinkedFiles())==null?void 0:k.get(e.toPath(T)))||o.call(e.compilerHost,T)}),{onProgramCreateComplete:u,fileExists:f,directoryExists:c};function u(){e.compilerHost.fileExists=n,e.compilerHost.directoryExists=i,e.compilerHost.getDirectories=s}function f(T){return n.call(e.compilerHost,T)?!0:!e.getResolvedProjectReferences()||!Hl(T)?!1:S(T,!0)}function g(T){const k=e.getSourceOfProjectReferenceRedirect(e.toPath(T));return k!==void 0?ls(k)?n.call(e.compilerHost,k):!0:void 0}function d(T){const k=e.toPath(T),w=`${k}${Fo}`;return Am(t,P=>k===P||Vi(P,w)||Vi(k,`${P}/`))}function y(T){var k;if(!e.getResolvedProjectReferences()||QE(T)||!o||!T.includes(zm))return;const w=e.getSymlinkCache(),P=_l(e.toPath(T));if((k=w.getSymlinkedDirectories())!=null&&k.has(P))return;const F=Hs(o.call(e.compilerHost,T));let J;if(F===T||(J=_l(e.toPath(F)))===P){w.setSymlinkedDirectory(P,!1);return}w.setSymlinkedDirectory(T,{real:_l(F),realPath:J})}function S(T,k){var w;const P=k?j=>g(j):j=>d(j),F=P(T);if(F!==void 0)return F;const J=e.getSymlinkCache(),U=J.getSymlinkedDirectories();if(!U)return!1;const $=e.toPath(T);return $.includes(zm)?k&&((w=J.getSymlinkedFiles())!=null&&w.has($))?!0:Sm(U.entries(),([j,re])=>{if(!re||!Vi($,j))return;const R=P($.replace(j,re.realPath));if(k&&R){const Y=Xi(T,e.compilerHost.getCurrentDirectory());J.setSymlinkedFile($,`${re.real}${Y.replace(new RegExp(j,"i"),"")}`)}return R})||!1:!1}}function zq(e,t,n,i){const s=e.getCompilerOptions();if(s.noEmit)return e.getSemanticDiagnostics(t,i),t||io(s)?G9:e.emitBuildInfo(n,i);if(!s.noEmitOnError)return;let o=[...e.getOptionsDiagnostics(i),...e.getSyntacticDiagnostics(t,i),...e.getGlobalDiagnostics(i),...e.getSemanticDiagnostics(t,i)];if(o.length===0&&Hf(e.getCompilerOptions())&&(o=e.getDeclarationDiagnostics(void 0,i)),!o.length)return;let c;if(!t&&!io(s)){const u=e.emitBuildInfo(n,i);u.diagnostics&&(o=[...o,...u.diagnostics]),c=u.emittedFiles}return{diagnostics:o,sourceMaps:void 0,emittedFiles:c,emitSkipped:!0}}function V9(e,t){return An(e,n=>!n.skippedOn||!t[n.skippedOn])}function U9(e,t=e){return{fileExists:n=>t.fileExists(n),readDirectory(n,i,s,o,c){return E.assertIsDefined(t.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(n,i,s,o,c)},readFile:n=>t.readFile(n),directoryExists:Os(t,t.directoryExists),getDirectories:Os(t,t.getDirectories),realpath:Os(t,t.realpath),useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),getCurrentDirectory:()=>e.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:e.onUnRecoverableConfigFileDiagnostic||f1,trace:e.trace?n=>e.trace(n):void 0}}function Wq(e,t,n,i){if(!e)return Ve;let s;for(let o=0;oi);for(const i of t)i.kind===11&&n.push(i);return n}function DA({imports:e,moduleAugmentations:t},n){if(n(e.Grey="\x1B[90m",e.Red="\x1B[91m",e.Yellow="\x1B[93m",e.Blue="\x1B[94m",e.Cyan="\x1B[96m",e))(Uq||{}),qq="\x1B[7m",Hq=" ",Mae="\x1B[0m",Rae="...",aSe=" ",jae=" ",Bae={resolvedModule:void 0,resolvedTypeReferenceDirective:void 0},q9={getName:Lae,getMode:(e,t,n)=>Fq(t,e,n)},oSe={getName:Mq,getMode:(e,t)=>CA(e,t==null?void 0:t.impliedNodeFormat)},u6="__inferred type names__.ts",H9=new Set([p.Cannot_redeclare_block_scoped_variable_0.code,p.A_module_cannot_have_multiple_default_exports.code,p.Another_export_default_is_here.code,p.The_first_export_default_is_here.code,p.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,p.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,p.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,p.constructor_is_a_reserved_word.code,p.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,p.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,p.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,p.Invalid_use_of_0_in_strict_mode.code,p.A_label_is_not_allowed_here.code,p.with_statements_are_not_allowed_in_strict_mode.code,p.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,p.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,p.A_class_declaration_without_the_default_modifier_must_have_a_name.code,p.A_class_member_cannot_have_the_0_keyword.code,p.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,p.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,p.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,p.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,p.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,p.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,p.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,p.A_destructuring_declaration_must_have_an_initializer.code,p.A_get_accessor_cannot_have_parameters.code,p.A_rest_element_cannot_contain_a_binding_pattern.code,p.A_rest_element_cannot_have_a_property_name.code,p.A_rest_element_cannot_have_an_initializer.code,p.A_rest_element_must_be_last_in_a_destructuring_pattern.code,p.A_rest_parameter_cannot_have_an_initializer.code,p.A_rest_parameter_must_be_last_in_a_parameter_list.code,p.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,p.A_return_statement_cannot_be_used_inside_a_class_static_block.code,p.A_set_accessor_cannot_have_rest_parameter.code,p.A_set_accessor_must_have_exactly_one_parameter.code,p.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,p.An_export_declaration_cannot_have_modifiers.code,p.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,p.An_import_declaration_cannot_have_modifiers.code,p.An_object_member_cannot_be_declared_optional.code,p.Argument_of_dynamic_import_cannot_be_spread_element.code,p.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,p.Cannot_redeclare_identifier_0_in_catch_clause.code,p.Catch_clause_variable_cannot_have_an_initializer.code,p.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,p.Classes_can_only_extend_a_single_class.code,p.Classes_may_not_have_a_field_named_constructor.code,p.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,p.Duplicate_label_0.code,p.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments.code,p.for_await_loops_cannot_be_used_inside_a_class_static_block.code,p.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,p.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,p.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,p.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,p.Jump_target_cannot_cross_function_boundary.code,p.Line_terminator_not_permitted_before_arrow.code,p.Modifiers_cannot_appear_here.code,p.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,p.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,p.Private_identifiers_are_not_allowed_outside_class_bodies.code,p.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,p.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,p.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,p.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,p.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,p.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,p.Trailing_comma_not_allowed.code,p.Variable_declaration_list_cannot_be_empty.code,p._0_and_1_operations_cannot_be_mixed_without_parentheses.code,p._0_expected.code,p._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,p._0_list_cannot_be_empty.code,p._0_modifier_already_seen.code,p._0_modifier_cannot_appear_on_a_constructor_declaration.code,p._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,p._0_modifier_cannot_appear_on_a_parameter.code,p._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,p._0_modifier_cannot_be_used_here.code,p._0_modifier_must_precede_1_modifier.code,p._0_declarations_can_only_be_declared_inside_a_block.code,p._0_declarations_must_be_initialized.code,p.extends_clause_already_seen.code,p.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,p.Class_constructor_may_not_be_a_generator.code,p.Class_constructor_may_not_be_an_accessor.code,p.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,p.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,p.Private_field_0_must_be_declared_in_an_enclosing_class.code,p.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value.code]),G9={diagnostics:Ve,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}}),jRe=Dt({"src/compiler/builderStatePublic.ts"(){}});function Jae(e,t,n,i,s,o){const c=[],{emitSkipped:u,diagnostics:f}=e.emit(t,g,i,n,s,o);return{outputFiles:c,emitSkipped:u,diagnostics:f};function g(d,y,S){c.push({name:d,writeByteOrderMark:S,text:y})}}var $p,BRe=Dt({"src/compiler/builderState.ts"(){Fs(),(e=>{function t(){function H(q,ee,oe){const Se={getKeys:ae=>ee.get(ae),getValues:ae=>q.get(ae),keys:()=>q.keys(),deleteKey:ae=>{(oe||(oe=new Set)).add(ae);const K=q.get(ae);return K?(K.forEach(fe=>i(ee,fe,ae)),q.delete(ae),!0):!1},set:(ae,K)=>{oe==null||oe.delete(ae);const fe=q.get(ae);return q.set(ae,K),fe==null||fe.forEach(ke=>{K.has(ke)||i(ee,ke,ae)}),K.forEach(ke=>{fe!=null&&fe.has(ke)||n(ee,ke,ae)}),Se}};return Se}return H(new Map,new Map,void 0)}e.createManyToManyPathMap=t;function n(H,q,ee){let oe=H.get(q);oe||(oe=new Set,H.set(q,oe)),oe.add(ee)}function i(H,q,ee){const oe=H.get(q);return oe!=null&&oe.delete(ee)?(oe.size||H.delete(q),!0):!1}function s(H){return Ri(H.declarations,q=>{var ee;return(ee=wr(q))==null?void 0:ee.resolvedPath})}function o(H,q){const ee=H.getSymbolAtLocation(q);return ee&&s(ee)}function c(H,q,ee,oe){return Io(H.getProjectReferenceRedirect(q)||q,ee,oe)}function u(H,q,ee){let oe;if(q.imports&&q.imports.length>0){const fe=H.getTypeChecker();for(const ke of q.imports){const Oe=o(fe,ke);Oe==null||Oe.forEach(K)}}const Se=Un(q.resolvedPath);if(q.referencedFiles&&q.referencedFiles.length>0)for(const fe of q.referencedFiles){const ke=c(H,fe.fileName,Se,ee);K(ke)}if(H.forEachResolvedTypeReferenceDirective(({resolvedTypeReferenceDirective:fe})=>{if(!fe)return;const ke=fe.resolvedFileName,Oe=c(H,ke,Se,ee);K(Oe)},q),q.moduleAugmentations.length){const fe=H.getTypeChecker();for(const ke of q.moduleAugmentations){if(!aa(ke))continue;const Oe=fe.getSymbolAtLocation(ke);Oe&&ae(Oe)}}for(const fe of H.getTypeChecker().getAmbientModules())fe.declarations&&fe.declarations.length>1&&ae(fe);return oe;function ae(fe){if(fe.declarations)for(const ke of fe.declarations){const Oe=wr(ke);Oe&&Oe!==q&&K(Oe.resolvedPath)}}function K(fe){(oe||(oe=new Set)).add(fe)}}function f(H,q){return q&&!q.referencedMap==!H}e.canReuseOldState=f;function g(H,q,ee){var oe,Se,ae;const K=new Map,fe=H.getCompilerOptions(),ke=io(fe),Oe=fe.module!==0&&!ke?t():void 0,me=Oe?t():void 0,be=f(Oe,q);H.getTypeChecker();for(const xe of H.getSourceFiles()){const De=E.checkDefined(xe.version,"Program intended to be used with Builder should have source files with versions set"),ft=be?(oe=q.oldSignatures)==null?void 0:oe.get(xe.resolvedPath):void 0,ge=ft===void 0?be?(Se=q.fileInfos.get(xe.resolvedPath))==null?void 0:Se.signature:void 0:ft||void 0;if(Oe){const Fe=u(H,xe,H.getCanonicalFileName);if(Fe&&Oe.set(xe.resolvedPath,Fe),be){const $e=(ae=q.oldExportedModulesMap)==null?void 0:ae.get(xe.resolvedPath),Pt=$e===void 0?q.exportedModulesMap.getValues(xe.resolvedPath):$e||void 0;Pt&&me.set(xe.resolvedPath,Pt)}}K.set(xe.resolvedPath,{version:De,signature:ge,affectsGlobalScope:ke?void 0:R(xe)||void 0,impliedFormat:xe.impliedNodeFormat})}return{fileInfos:K,referencedMap:Oe,exportedModulesMap:me,useFileVersionAsSignature:!ee&&!be}}e.create=g;function d(H){H.allFilesExcludingDefaultLibraryFile=void 0,H.allFileNames=void 0}e.releaseCache=d;function y(H,q,ee,oe,Se){var ae,K;const fe=S(H,q,ee,oe,Se);return(ae=H.oldSignatures)==null||ae.clear(),(K=H.oldExportedModulesMap)==null||K.clear(),fe}e.getFilesAffectedBy=y;function S(H,q,ee,oe,Se){const ae=q.getSourceFileByPath(ee);return ae?w(H,q,ae,oe,Se)?(H.referencedMap?pe:ue)(H,q,ae,oe,Se):[ae]:Ve}e.getFilesAffectedByWithOldState=S;function T(H,q,ee){H.fileInfos.get(ee).signature=q,(H.hasCalledUpdateShapeSignature||(H.hasCalledUpdateShapeSignature=new Set)).add(ee)}e.updateSignatureOfFile=T;function k(H,q,ee,oe,Se){H.emit(q,(ae,K,fe,ke,Oe,me)=>{E.assert(Hl(ae),`File extension for signature expected to be dts: Got:: ${ae}`),Se($q(H,q,K,oe,me),Oe)},ee,!0,void 0,!0)}e.computeDtsSignature=k;function w(H,q,ee,oe,Se,ae=H.useFileVersionAsSignature){var K;if((K=H.hasCalledUpdateShapeSignature)!=null&&K.has(ee.resolvedPath))return!1;const fe=H.fileInfos.get(ee.resolvedPath),ke=fe.signature;let Oe;if(!ee.isDeclarationFile&&!ae&&k(q,ee,oe,Se,(me,be)=>{Oe=me,Oe!==ke&&P(H,ee,be[0].exportedModulesFromDeclarationEmit)}),Oe===void 0&&(Oe=ee.version,H.exportedModulesMap&&Oe!==ke)){(H.oldExportedModulesMap||(H.oldExportedModulesMap=new Map)).set(ee.resolvedPath,H.exportedModulesMap.getValues(ee.resolvedPath)||!1);const me=H.referencedMap?H.referencedMap.getValues(ee.resolvedPath):void 0;me?H.exportedModulesMap.set(ee.resolvedPath,me):H.exportedModulesMap.deleteKey(ee.resolvedPath)}return(H.oldSignatures||(H.oldSignatures=new Map)).set(ee.resolvedPath,ke||!1),(H.hasCalledUpdateShapeSignature||(H.hasCalledUpdateShapeSignature=new Set)).add(ee.resolvedPath),fe.signature=Oe,Oe!==ke}e.updateShapeSignature=w;function P(H,q,ee){if(!H.exportedModulesMap)return;(H.oldExportedModulesMap||(H.oldExportedModulesMap=new Map)).set(q.resolvedPath,H.exportedModulesMap.getValues(q.resolvedPath)||!1);const oe=F(ee);oe?H.exportedModulesMap.set(q.resolvedPath,oe):H.exportedModulesMap.deleteKey(q.resolvedPath)}e.updateExportedModules=P;function F(H){let q;return H==null||H.forEach(ee=>s(ee).forEach(oe=>(q??(q=new Set)).add(oe))),q}e.getExportedModules=F;function J(H,q,ee){const oe=q.getCompilerOptions();if(io(oe)||!H.referencedMap||R(ee))return U(H,q);const Se=new Set,ae=[ee.resolvedPath];for(;ae.length;){const K=ae.pop();if(!Se.has(K)){Se.add(K);const fe=H.referencedMap.getValues(K);if(fe)for(const ke of fe.keys())ae.push(ke)}}return gs(B4(Se.keys(),K=>{var fe;return((fe=q.getSourceFileByPath(K))==null?void 0:fe.fileName)??K}))}e.getAllDependencies=J;function U(H,q){if(!H.allFileNames){const ee=q.getSourceFiles();H.allFileNames=ee===Ve?Ve:ee.map(oe=>oe.fileName)}return H.allFileNames}function $(H,q){const ee=H.referencedMap.getKeys(q);return ee?gs(ee.keys()):[]}e.getReferencedByPaths=$;function j(H){for(const q of H.statements)if(!l5(q))return!1;return!0}function re(H){return ct(H.moduleAugmentations,q=>Wd(q.parent))}function R(H){return re(H)||!af(H)&&!mp(H)&&!j(H)}function Y(H,q,ee){if(H.allFilesExcludingDefaultLibraryFile)return H.allFilesExcludingDefaultLibraryFile;let oe;ee&&Se(ee);for(const ae of q.getSourceFiles())ae!==ee&&Se(ae);return H.allFilesExcludingDefaultLibraryFile=oe||Ve,H.allFilesExcludingDefaultLibraryFile;function Se(ae){q.isSourceFileDefaultLibrary(ae)||(oe||(oe=[])).push(ae)}}e.getAllFilesExcludingDefaultLibraryFile=Y;function ue(H,q,ee){const oe=q.getCompilerOptions();return oe&&io(oe)?[ee]:Y(H,q,ee)}function pe(H,q,ee,oe,Se){if(R(ee))return Y(H,q,ee);const ae=q.getCompilerOptions();if(ae&&(Tp(ae)||io(ae)))return[ee];const K=new Map;K.set(ee.resolvedPath,ee);const fe=$(H,ee.resolvedPath);for(;fe.length>0;){const ke=fe.pop();if(!K.has(ke)){const Oe=q.getSourceFileByPath(ke);K.set(ke,Oe),Oe&&w(H,q,Oe,oe,Se)&&fe.push(...$(H,Oe.resolvedPath))}}return gs(B4(K.values(),ke=>ke))}})($p||($p={}))}});function yy(e){let t=1;return e.sourceMap&&(t=t|2),e.inlineSourceMap&&(t=t|4),Hf(e)&&(t=t|8),e.declarationMap&&(t=t|16),e.emitDeclarationOnly&&(t=t&24),t}function _6(e,t){const n=t&&(zh(t)?t:yy(t)),i=zh(e)?e:yy(e);if(n===i)return 0;if(!n||!i)return i;const s=n^i;let o=0;return s&7&&(o=i&7),s&24&&(o=o|i&24),o}function JRe(e,t){return e===t||e!==void 0&&t!==void 0&&e.size===t.size&&!Am(e,n=>!t.has(n))}function zRe(e,t){var n,i;const s=$p.create(e,t,!1);s.program=e;const o=e.getCompilerOptions();s.compilerOptions=o;const c=io(o);c?o.composite&&(t!=null&&t.outSignature)&&c===io(t==null?void 0:t.compilerOptions)&&(s.outSignature=t.outSignature&&lSe(o,t.compilerOptions,t.outSignature)):s.semanticDiagnosticsPerFile=new Map,s.changedFilesSet=new Set,s.latestChangedDtsFile=o.composite?t==null?void 0:t.latestChangedDtsFile:void 0;const u=$p.canReuseOldState(s.referencedMap,t),f=u?t.compilerOptions:void 0,g=u&&t.semanticDiagnosticsPerFile&&!!s.semanticDiagnosticsPerFile&&!rne(o,f),d=o.composite&&(t==null?void 0:t.emitSignatures)&&!c&&!ine(o,t.compilerOptions);u?((n=t.changedFilesSet)==null||n.forEach(w=>s.changedFilesSet.add(w)),!c&&((i=t.affectedFilesPendingEmit)!=null&&i.size)&&(s.affectedFilesPendingEmit=new Map(t.affectedFilesPendingEmit),s.seenAffectedFiles=new Set),s.programEmitPending=t.programEmitPending):s.buildInfoEmitPending=!0;const y=s.referencedMap,S=u?t.referencedMap:void 0,T=g&&!o.skipLibCheck==!f.skipLibCheck,k=T&&!o.skipDefaultLibCheck==!f.skipDefaultLibCheck;if(s.fileInfos.forEach((w,P)=>{var F;let J,U;if(!u||!(J=t.fileInfos.get(P))||J.version!==w.version||J.impliedFormat!==w.impliedFormat||!JRe(U=y&&y.getValues(P),S&&S.getValues(P))||U&&Am(U,$=>!s.fileInfos.has($)&&t.fileInfos.has($)))cSe(s,P);else{const $=e.getSourceFileByPath(P),j=(F=t.emitDiagnosticsPerFile)==null?void 0:F.get(P);if(j&&(s.emitDiagnosticsPerFile??(s.emitDiagnosticsPerFile=new Map)).set(P,t.hasReusableDiagnostic?fSe(j,e):uSe(j,e)),g){if($.isDeclarationFile&&!T||$.hasNoDefaultLib&&!k)return;const re=t.semanticDiagnosticsPerFile.get(P);re&&(s.semanticDiagnosticsPerFile.set(P,t.hasReusableDiagnostic?fSe(re,e):uSe(re,e)),(s.semanticDiagnosticsFromOldState??(s.semanticDiagnosticsFromOldState=new Set)).add(P))}}if(d){const $=t.emitSignatures.get(P);$&&(s.emitSignatures??(s.emitSignatures=new Map)).set(P,lSe(o,t.compilerOptions,$))}}),u&&fl(t.fileInfos,(w,P)=>s.fileInfos.has(P)?!1:c||w.affectsGlobalScope?!0:(s.buildInfoEmitPending=!0,!1)))$p.getAllFilesExcludingDefaultLibraryFile(s,e,void 0).forEach(w=>cSe(s,w.resolvedPath));else if(f){const w=nne(o,f)?yy(o):_6(o,f);w!==0&&(c?s.programEmitPending=s.programEmitPending?s.programEmitPending|w:w:(e.getSourceFiles().forEach(P=>{s.changedFilesSet.has(P.resolvedPath)||Hae(s,P.resolvedPath,w)}),E.assert(!s.seenAffectedFiles||!s.seenAffectedFiles.size),s.seenAffectedFiles=s.seenAffectedFiles||new Set,s.buildInfoEmitPending=!0))}return c&&!s.changedFilesSet.size&&(u&&(s.bundle=t.bundle),ct(e.getProjectReferences(),w=>!!w.prepend)&&(s.programEmitPending=yy(o))),s}function cSe(e,t){e.changedFilesSet.add(t),e.buildInfoEmitPending=!0,e.programEmitPending=void 0}function lSe(e,t,n){return!!e.declarationMap==!!t.declarationMap?n:ls(n)?[n]:n[0]}function uSe(e,t){return e.length?nl(e,n=>{if(ls(n.messageText))return n;const i=zae(n.messageText,n.file,t,s=>{var o;return(o=s.repopulateInfo)==null?void 0:o.call(s)});return i===n.messageText?n:{...n,messageText:i}}):e}function zae(e,t,n,i){const s=i(e);if(s)return{...n5(t,n,s.moduleReference,s.mode,s.packageName||s.moduleReference),next:_Se(e.next,t,n,i)};const o=_Se(e.next,t,n,i);return o===e.next?e:{...e,next:o}}function _Se(e,t,n,i){return nl(e,s=>zae(s,t,n,i))}function fSe(e,t){if(!e.length)return Ve;let n;return e.map(s=>{const o=pSe(s,t,i);o.reportsUnnecessary=s.reportsUnnecessary,o.reportsDeprecated=s.reportDeprecated,o.source=s.source,o.skippedOn=s.skippedOn;const{relatedInformation:c}=s;return o.relatedInformation=c?c.length?c.map(u=>pSe(u,t,i)):[]:void 0,o});function i(s){return n??(n=Un(Xi(c0(t.getCompilerOptions()),t.getCurrentDirectory()))),Io(s,n,t.getCanonicalFileName)}}function pSe(e,t,n){const{file:i}=e,s=i?t.getSourceFileByPath(n(i)):void 0;return{...e,file:s,messageText:ls(e.messageText)?e.messageText:zae(e.messageText,s,t,o=>o.info)}}function WRe(e){$p.releaseCache(e),e.program=void 0}function VRe(e){const t=io(e.compilerOptions);return E.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 URe(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 dSe(e,t){E.assert(!t||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==t||!e.semanticDiagnosticsPerFile.has(t.resolvedPath))}function mSe(e,t,n){for(var i,s;;){const{affectedFiles:o}=e;if(o){const g=e.seenAffectedFiles;let d=e.affectedFilesIndex;for(;d{const o=i&7;o?e.affectedFilesPendingEmit.set(s,o):e.affectedFilesPendingEmit.delete(s)})}}function HRe(e,t){var n;if((n=e.affectedFilesPendingEmit)!=null&&n.size)return fl(e.affectedFilesPendingEmit,(i,s)=>{var o;const c=e.program.getSourceFileByPath(s);if(!c||!Fb(c,e.program)){e.affectedFilesPendingEmit.delete(s);return}const u=(o=e.seenEmittedFiles)==null?void 0:o.get(c.resolvedPath);let f=_6(i,u);if(t&&(f=f&24),f)return{affectedFile:c,emitKind:f}})}function GRe(e){var t;if((t=e.emitDiagnosticsPerFile)!=null&&t.size)return fl(e.emitDiagnosticsPerFile,(n,i)=>{var s;const o=e.program.getSourceFileByPath(i);if(!o||!Fb(o,e.program)){e.emitDiagnosticsPerFile.delete(i);return}const c=((s=e.seenEmittedFiles)==null?void 0:s.get(o.resolvedPath))||0;if(!(c&24))return{affectedFile:o,diagnostics:n,seenKind:c}})}function gSe(e){if(!e.cleanedDiagnosticsOfLibFiles){e.cleanedDiagnosticsOfLibFiles=!0;const t=E.checkDefined(e.program),n=t.getCompilerOptions();rr(t.getSourceFiles(),i=>t.isSourceFileDefaultLibrary(i)&&!HE(i,n,t)&&Wae(e,i.resolvedPath))}}function $Re(e,t,n,i){if(Wae(e,t.resolvedPath),e.allFilesExcludingDefaultLibraryFile===e.affectedFiles){gSe(e),$p.updateShapeSignature(e,E.checkDefined(e.program),t,n,i);return}e.compilerOptions.assumeChangesOnlyAffectDirectDependencies||XRe(e,t,n,i)}function Gq(e,t,n,i){if(Wae(e,t),!e.changedFilesSet.has(t)){const s=E.checkDefined(e.program),o=s.getSourceFileByPath(t);o&&($p.updateShapeSignature(e,s,o,n,i,!0),Hf(e.compilerOptions)&&Hae(e,t,e.compilerOptions.declarationMap?24:8))}}function Wae(e,t){return e.semanticDiagnosticsFromOldState?(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size):!0}function hSe(e,t){const n=E.checkDefined(e.oldSignatures).get(t)||void 0;return E.checkDefined(e.fileInfos.get(t)).signature!==n}function Vae(e,t,n,i){var s;return(s=e.fileInfos.get(t))!=null&&s.affectsGlobalScope?($p.getAllFilesExcludingDefaultLibraryFile(e,e.program,void 0).forEach(o=>Gq(e,o.resolvedPath,n,i)),gSe(e),!0):!1}function XRe(e,t,n,i){var s;if(!e.exportedModulesMap||!e.changedFilesSet.has(t.resolvedPath)||!hSe(e,t.resolvedPath))return;if(Tp(e.compilerOptions)){const c=new Map;c.set(t.resolvedPath,!0);const u=$p.getReferencedByPaths(e,t.resolvedPath);for(;u.length>0;){const f=u.pop();if(!c.has(f)){if(c.set(f,!0),Vae(e,f,n,i))return;if(Gq(e,f,n,i),hSe(e,f)){const g=E.checkDefined(e.program).getSourceFileByPath(f);u.push(...$p.getReferencedByPaths(e,g.resolvedPath))}}}}const o=new Set;(s=e.exportedModulesMap.getKeys(t.resolvedPath))==null||s.forEach(c=>{if(Vae(e,c,n,i))return!0;const u=e.referencedMap.getKeys(c);return u&&Am(u,f=>ySe(e,f,o,n,i))})}function ySe(e,t,n,i,s){var o,c;if(_1(n,t)){if(Vae(e,t,i,s))return!0;Gq(e,t,i,s),(o=e.exportedModulesMap.getKeys(t))==null||o.forEach(u=>ySe(e,u,n,i,s)),(c=e.referencedMap.getKeys(t))==null||c.forEach(u=>!n.has(u)&&Gq(e,u,i,s))}}function Uae(e,t,n){return es(QRe(e,t,n),E.checkDefined(e.program).getProgramDiagnostics(t))}function QRe(e,t,n){const i=t.resolvedPath;if(e.semanticDiagnosticsPerFile){const o=e.semanticDiagnosticsPerFile.get(i);if(o)return V9(o,e.compilerOptions)}const s=E.checkDefined(e.program).getBindAndCheckDiagnostics(t,n);return e.semanticDiagnosticsPerFile&&e.semanticDiagnosticsPerFile.set(i,s),V9(s,e.compilerOptions)}function qae(e){return!!io(e.options||{})}function YRe(e,t){var n,i,s;const o=E.checkDefined(e.program).getCurrentDirectory(),c=Un(Xi(c0(e.compilerOptions),o)),u=e.latestChangedDtsFile?re(e.latestChangedDtsFile):void 0,f=[],g=new Map,d=[];if(io(e.compilerOptions)){const fe=gs(e.fileInfos.entries(),([De,ft])=>{const ge=Y(De);return pe(De,ge),ft.impliedFormat?{version:ft.version,impliedFormat:ft.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:ft.version}),ke={fileNames:f,fileInfos:fe,root:d,options:H(e.compilerOptions),outSignature:e.outSignature,latestChangedDtsFile:u,pendingEmit:e.programEmitPending?e.programEmitPending===yy(e.compilerOptions)?!1:e.programEmitPending:void 0},{js:Oe,dts:me,commonSourceDirectory:be,sourceFiles:xe}=t;return e.bundle=t={commonSourceDirectory:be,sourceFiles:xe,js:Oe||(e.compilerOptions.emitDeclarationOnly||(n=e.bundle)==null?void 0:n.js),dts:me||(Hf(e.compilerOptions)?(i=e.bundle)==null?void 0:i.dts:void 0)},vA(ke,t)}let y,S,T;const k=gs(e.fileInfos.entries(),([fe,ke])=>{var Oe,me;const be=Y(fe);pe(fe,be),E.assert(f[be-1]===R(fe));const xe=(Oe=e.oldSignatures)==null?void 0:Oe.get(fe),De=xe!==void 0?xe||void 0:ke.signature;if(e.compilerOptions.composite){const ft=e.program.getSourceFileByPath(fe);if(!mp(ft)&&Fb(ft,e.program)){const ge=(me=e.emitSignatures)==null?void 0:me.get(fe);ge!==De&&(T||(T=[])).push(ge===void 0?be:[be,!ls(ge)&&ge[0]===De?Ve:ge])}}return ke.version===De?ke.affectsGlobalScope||ke.impliedFormat?{version:ke.version,signature:void 0,affectsGlobalScope:ke.affectsGlobalScope,impliedFormat:ke.impliedFormat}:ke.version:De!==void 0?xe===void 0?ke:{version:ke.version,signature:De,affectsGlobalScope:ke.affectsGlobalScope,impliedFormat:ke.impliedFormat}:{version:ke.version,signature:!1,affectsGlobalScope:ke.affectsGlobalScope,impliedFormat:ke.impliedFormat}});let w;e.referencedMap&&(w=gs(e.referencedMap.keys()).sort(mu).map(fe=>[Y(fe),ue(e.referencedMap.getValues(fe))]));let P;e.exportedModulesMap&&(P=Ri(gs(e.exportedModulesMap.keys()).sort(mu),fe=>{var ke;const Oe=(ke=e.oldExportedModulesMap)==null?void 0:ke.get(fe);if(Oe===void 0)return[Y(fe),ue(e.exportedModulesMap.getValues(fe))];if(Oe)return[Y(fe),ue(Oe)]}));const F=ee(e.semanticDiagnosticsPerFile);let J;if((s=e.affectedFilesPendingEmit)!=null&&s.size){const fe=yy(e.compilerOptions),ke=new Set;for(const Oe of gs(e.affectedFilesPendingEmit.keys()).sort(mu))if(_1(ke,Oe)){const me=e.program.getSourceFileByPath(Oe);if(!me||!Fb(me,e.program))continue;const be=Y(Oe),xe=e.affectedFilesPendingEmit.get(Oe);(J||(J=[])).push(xe===fe?be:xe===8?[be]:[be,xe])}}let U;if(e.changedFilesSet.size)for(const fe of gs(e.changedFilesSet.keys()).sort(mu))(U||(U=[])).push(Y(fe));const $=ee(e.emitDiagnosticsPerFile),j={fileNames:f,fileInfos:k,root:d,options:H(e.compilerOptions),fileIdsList:y,referencedMap:w,exportedModulesMap:P,semanticDiagnosticsPerFile:F,emitDiagnosticsPerFile:$,affectedFilesPendingEmit:J,changeFileSet:U,emitSignatures:T,latestChangedDtsFile:u};return vA(j,t);function re(fe){return R(Xi(fe,o))}function R(fe){return Fv(Rp(c,fe,e.program.getCanonicalFileName))}function Y(fe){let ke=g.get(fe);return ke===void 0&&(f.push(R(fe)),g.set(fe,ke=f.length)),ke}function ue(fe){const ke=gs(fe.keys(),Y).sort(Ao),Oe=ke.join();let me=S==null?void 0:S.get(Oe);return me===void 0&&((y||(y=[])).push(ke),(S||(S=new Map)).set(Oe,me=y.length)),me}function pe(fe,ke){const Oe=e.program.getSourceFile(fe);if(!e.program.getFileIncludeReasons().get(Oe.path).some(De=>De.kind===0))return;if(!d.length)return d.push(ke);const me=d[d.length-1],be=ts(me);if(be&&me[1]===ke-1)return me[1]=ke;if(be||d.length===1||me!==ke-1)return d.push(ke);const xe=d[d.length-2];return!zh(xe)||xe!==me-1?d.push(ke):(d[d.length-2]=[xe,ke],d.length=d.length-1)}function H(fe){let ke;const{optionsNameMap:Oe}=YC();for(const me of ug(fe).sort(mu)){const be=Oe.get(me.toLowerCase());be!=null&&be.affectsBuildInfo&&((ke||(ke={}))[me]=q(be,fe[me]))}return ke}function q(fe,ke){if(fe){if(E.assert(fe.type!=="listOrElement"),fe.type==="list"){const Oe=ke;if(fe.element.isFilePath&&Oe.length)return Oe.map(re)}else if(fe.isFilePath)return re(ke)}return ke}function ee(fe){let ke;if(fe)for(const Oe of gs(fe.keys()).sort(mu)){const me=fe.get(Oe);(ke||(ke=[])).push(me.length?[Y(Oe),oe(me)]:Y(Oe))}return ke}function oe(fe){return E.assert(!!fe.length),fe.map(ke=>{const Oe=Se(ke);Oe.reportsUnnecessary=ke.reportsUnnecessary,Oe.reportDeprecated=ke.reportsDeprecated,Oe.source=ke.source,Oe.skippedOn=ke.skippedOn;const{relatedInformation:me}=ke;return Oe.relatedInformation=me?me.length?me.map(be=>Se(be)):[]:void 0,Oe})}function Se(fe){const{file:ke}=fe;return{...fe,file:ke?R(ke.resolvedPath):void 0,messageText:ls(fe.messageText)?fe.messageText:ae(fe.messageText)}}function ae(fe){if(fe.repopulateInfo)return{info:fe.repopulateInfo(),next:K(fe.next)};const ke=K(fe.next);return ke===fe.next?fe:{...fe,next:ke}}function K(fe){return fe&&(rr(fe,(ke,Oe)=>{const me=ae(ke);if(ke===me)return;const be=Oe>0?fe.slice(0,Oe-1):[];be.push(me);for(let xe=Oe+1;xe`${f(g)}${CD[g.category]}${g.code}: ${u(g.messageText)}`).join(` +`)),(i.createHash??$4)(n);function u(g){return ls(g)?g:g===void 0?"":g.next?g.messageText+g.next.map(u).join(` +`):g.messageText}function f(g){return g.file.resolvedPath===t.resolvedPath?`(${g.start},${g.length})`:(c===void 0&&(c=Un(t.resolvedPath)),`${Fv(Rp(c,g.file.resolvedPath,e.getCanonicalFileName))}(${g.start},${g.length})`)}}function sS(e,t,n){return(t.createHash??$4)(vSe(e,n))}function Xq(e,{newProgram:t,host:n,oldProgram:i,configFileParsingDiagnostics:s}){let o=i&&i.getState();if(o&&t===o.program&&s===t.getConfigFileParsingDiagnostics())return t=void 0,o=void 0,i;const c=zRe(t,o);t.getBuildInfo=w=>YRe(c,w),t=void 0,i=void 0,o=void 0;const u=()=>c,f=Yq(u,s);return f.getState=u,f.saveEmitState=()=>VRe(c),f.restoreEmitState=w=>URe(c,w),f.hasChangedEmitSignature=()=>!!c.hasChangedEmitSignature,f.getAllDependencies=w=>$p.getAllDependencies(c,E.checkDefined(c.program),w),f.getSemanticDiagnostics=k,f.emit=S,f.releaseProgram=()=>WRe(c),e===0?f.getSemanticDiagnosticsOfNextAffectedFile=T:e===1?(f.getSemanticDiagnosticsOfNextAffectedFile=T,f.emitNextAffectedFile=d,f.emitBuildInfo=g):ks(),f;function g(w,P){if(c.buildInfoEmitPending){const F=E.checkDefined(c.program).emitBuildInfo(w||Os(n,n.writeFile),P);return c.buildInfoEmitPending=!1,F}return G9}function d(w,P,F,J){var U,$,j;let re=mSe(c,P,n);const R=yy(c.compilerOptions);let Y=F?R&24:R;if(!re)if(io(c.compilerOptions)){if(!c.programEmitPending||(Y=c.programEmitPending,F&&(Y=Y&24),!Y))return;re=c.program}else{const H=HRe(c,F);if(!H){const q=GRe(c);if(q)return(c.seenEmittedFiles??(c.seenEmittedFiles=new Map)).set(q.affectedFile.resolvedPath,q.seenKind|24),{result:{emitSkipped:!0,diagnostics:q.diagnostics},affected:q.affectedFile};if(!c.buildInfoEmitPending)return;const ee=c.program,oe=ee.emitBuildInfo(w||Os(n,n.writeFile),P);return c.buildInfoEmitPending=!1,{result:oe,affected:ee}}({affectedFile:re,emitKind:Y}=H)}let ue;Y&7&&(ue=0),Y&24&&(ue=ue===void 0?1:void 0),re===c.program&&(c.programEmitPending=c.changedFilesSet.size?_6(R,Y):c.programEmitPending?_6(c.programEmitPending,Y):void 0);const pe=c.program.emit(re===c.program?void 0:re,y(w,J),P,ue,J);if(re!==c.program){const H=re;c.seenAffectedFiles.add(H.resolvedPath),c.affectedFilesIndex!==void 0&&c.affectedFilesIndex++,c.buildInfoEmitPending=!0;const q=((U=c.seenEmittedFiles)==null?void 0:U.get(H.resolvedPath))||0;(c.seenEmittedFiles??(c.seenEmittedFiles=new Map)).set(H.resolvedPath,Y|q);const ee=(($=c.affectedFilesPendingEmit)==null?void 0:$.get(H.resolvedPath))||R,oe=_6(ee,Y|q);oe?(c.affectedFilesPendingEmit??(c.affectedFilesPendingEmit=new Map)).set(H.resolvedPath,oe):(j=c.affectedFilesPendingEmit)==null||j.delete(H.resolvedPath),pe.diagnostics.length&&(c.emitDiagnosticsPerFile??(c.emitDiagnosticsPerFile=new Map)).set(H.resolvedPath,pe.diagnostics)}else c.changedFilesSet.clear();return{result:pe,affected:re}}function y(w,P){return Hf(c.compilerOptions)?(F,J,U,$,j,re)=>{var R,Y,ue,pe;if(Hl(F))if(io(c.compilerOptions)){if(c.compilerOptions.composite){const q=H(c.outSignature,void 0);if(!q)return;c.outSignature=q}}else{E.assert((j==null?void 0:j.length)===1);let q;if(!P){const ee=j[0],oe=c.fileInfos.get(ee.resolvedPath);if(oe.signature===ee.version){const Se=$q(c.program,ee,J,n,re);(R=re==null?void 0:re.diagnostics)!=null&&R.length||(q=Se),Se!==ee.version&&(n.storeFilesChangingSignatureDuringEmit&&(c.filesChangingSignature??(c.filesChangingSignature=new Set)).add(ee.resolvedPath),c.exportedModulesMap&&$p.updateExportedModules(c,ee,ee.exportedModulesFromDeclarationEmit),c.affectedFiles?(((Y=c.oldSignatures)==null?void 0:Y.get(ee.resolvedPath))===void 0&&(c.oldSignatures??(c.oldSignatures=new Map)).set(ee.resolvedPath,oe.signature||!1),oe.signature=Se):(oe.signature=Se,(ue=c.oldExportedModulesMap)==null||ue.clear()))}}if(c.compilerOptions.composite){const ee=j[0].resolvedPath;if(q=H((pe=c.emitSignatures)==null?void 0:pe.get(ee),q),!q)return;(c.emitSignatures??(c.emitSignatures=new Map)).set(ee,q)}}w?w(F,J,U,$,j,re):n.writeFile?n.writeFile(F,J,U,$,j,re):c.program.writeFile(F,J,U,$,j,re);function H(q,ee){const oe=!q||ls(q)?q:q[0];if(ee??(ee=sS(J,n,re)),ee===oe){if(q===oe)return;re?re.differsOnlyInMap=!0:re={differsOnlyInMap:!0}}else c.hasChangedEmitSignature=!0,c.latestChangedDtsFile=F;return ee}}:w||Os(n,n.writeFile)}function S(w,P,F,J,U){e===1&&dSe(c,w);const $=zq(f,w,P,F);if($)return $;if(!w)if(e===1){let j=[],re=!1,R,Y=[],ue;for(;ue=d(P,F,J,U);)re=re||ue.result.emitSkipped,R=Nn(R,ue.result.diagnostics),Y=Nn(Y,ue.result.emittedFiles),j=Nn(j,ue.result.sourceMaps);return{emitSkipped:re,diagnostics:R||Ve,emittedFiles:Y,sourceMaps:j}}else qRe(c,J);return E.checkDefined(c.program).emit(w,y(P,U),F,J,U)}function T(w,P){for(;;){const F=mSe(c,w,n);let J;if(F)if(F!==c.program){const U=F;if((!P||!P(U))&&(J=Uae(c,U,w)),c.seenAffectedFiles.add(U.resolvedPath),c.affectedFilesIndex++,c.buildInfoEmitPending=!0,!J)continue}else J=c.program.getSemanticDiagnostics(void 0,w),c.changedFilesSet.clear(),c.programEmitPending=yy(c.compilerOptions);else return;return{result:J,affected:F}}}function k(w,P){dSe(c,w);const F=E.checkDefined(c.program).getCompilerOptions();if(io(F))return E.assert(!c.semanticDiagnosticsPerFile),E.checkDefined(c.program).getSemanticDiagnostics(w,P);if(w)return Uae(c,w,P);for(;T(P););let J;for(const U of E.checkDefined(c.program).getSourceFiles())J=Nn(J,Uae(c,U,P));return J||Ve}}function Hae(e,t,n){var i,s;const o=((i=e.affectedFilesPendingEmit)==null?void 0:i.get(t))||0;(e.affectedFilesPendingEmit??(e.affectedFilesPendingEmit=new Map)).set(t,o|n),(s=e.emitDiagnosticsPerFile)==null||s.delete(t)}function Gae(e){return ls(e)?{version:e,signature:e,affectsGlobalScope:void 0,impliedFormat:void 0}:ls(e.signature)?e:{version:e.version,signature:e.signature===!1?void 0:e.version,affectsGlobalScope:e.affectsGlobalScope,impliedFormat:e.impliedFormat}}function $ae(e,t){return zh(e)?t:e[1]||8}function Xae(e,t){return e||yy(t||{})}function Qae(e,t,n){var i,s,o,c;const u=e.program,f=Un(Xi(t,n.getCurrentDirectory())),g=nu(n.useCaseSensitiveFileNames());let d;const y=(i=u.fileNames)==null?void 0:i.map(k);let S;const T=u.latestChangedDtsFile?w(u.latestChangedDtsFile):void 0;if(qae(u)){const $=new Map;u.fileInfos.forEach((j,re)=>{const R=P(re+1);$.set(R,ls(j)?{version:j,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:j)}),d={fileInfos:$,compilerOptions:u.options?fU(u.options,w):{},latestChangedDtsFile:T,outSignature:u.outSignature,programEmitPending:u.pendingEmit===void 0?void 0:Xae(u.pendingEmit,u.options),bundle:e.bundle}}else{S=(s=u.fileIdsList)==null?void 0:s.map(R=>new Set(R.map(P)));const $=new Map,j=(o=u.options)!=null&&o.composite&&!io(u.options)?new Map:void 0;u.fileInfos.forEach((R,Y)=>{const ue=P(Y+1),pe=Gae(R);$.set(ue,pe),j&&pe.signature&&j.set(ue,pe.signature)}),(c=u.emitSignatures)==null||c.forEach(R=>{if(zh(R))j.delete(P(R));else{const Y=P(R[0]);j.set(Y,!ls(R[1])&&!R[1].length?[j.get(Y)]:R[1])}});const re=u.affectedFilesPendingEmit?yy(u.options||{}):void 0;d={fileInfos:$,compilerOptions:u.options?fU(u.options,w):{},referencedMap:J(u.referencedMap),exportedModulesMap:J(u.exportedModulesMap),semanticDiagnosticsPerFile:U(u.semanticDiagnosticsPerFile),emitDiagnosticsPerFile:U(u.emitDiagnosticsPerFile),hasReusableDiagnostic:!0,affectedFilesPendingEmit:u.affectedFilesPendingEmit&&Iv(u.affectedFilesPendingEmit,R=>P(zh(R)?R:R[0]),R=>$ae(R,re)),changedFilesSet:new Set(nr(u.changeFileSet,P)),latestChangedDtsFile:T,emitSignatures:j!=null&&j.size?j:void 0}}return{getState:()=>d,saveEmitState:Ca,restoreEmitState:Ca,getProgram:ks,getProgramOrUndefined:f1,releaseProgram:Ca,getCompilerOptions:()=>d.compilerOptions,getSourceFile:ks,getSourceFiles:ks,getOptionsDiagnostics:ks,getGlobalDiagnostics:ks,getConfigFileParsingDiagnostics:ks,getSyntacticDiagnostics:ks,getDeclarationDiagnostics:ks,getSemanticDiagnostics:ks,emit:ks,getAllDependencies:ks,getCurrentDirectory:ks,emitNextAffectedFile:ks,getSemanticDiagnosticsOfNextAffectedFile:ks,emitBuildInfo:ks,close:Ca,hasChangedEmitSignature:_d};function k($){return Io($,f,g)}function w($){return Xi($,f)}function P($){return y[$-1]}function F($){return S[$-1]}function J($){if(!$)return;const j=$p.createManyToManyPathMap();return $.forEach(([re,R])=>j.set(P(re),F(R))),j}function U($){return $&&Iv($,j=>P(zh(j)?j:j[0]),j=>zh(j)?Ve:j[1])}}function Qq(e,t,n){const i=Un(Xi(t,n.getCurrentDirectory())),s=nu(n.useCaseSensitiveFileNames()),o=new Map;let c=0;const u=[];return e.fileInfos.forEach((f,g)=>{const d=Io(e.fileNames[g],i,s),y=ls(f)?f:f.version;if(o.set(d,y),ce().program,releaseProgram:()=>e().program=void 0,getCompilerOptions:()=>e().compilerOptions,getSourceFile:i=>n().getSourceFile(i),getSourceFiles:()=>n().getSourceFiles(),getOptionsDiagnostics:i=>n().getOptionsDiagnostics(i),getGlobalDiagnostics:i=>n().getGlobalDiagnostics(i),getConfigFileParsingDiagnostics:()=>t,getSyntacticDiagnostics:(i,s)=>n().getSyntacticDiagnostics(i,s),getDeclarationDiagnostics:(i,s)=>n().getDeclarationDiagnostics(i,s),getSemanticDiagnostics:(i,s)=>n().getSemanticDiagnostics(i,s),emit:(i,s,o,c,u)=>n().emit(i,s,o,c,u),emitBuildInfo:(i,s)=>n().emitBuildInfo(i,s),getAllDependencies:ks,getCurrentDirectory:()=>n().getCurrentDirectory(),close:Ca};function n(){return E.checkDefined(e().program)}}var Zq,Kq,ZRe=Dt({"src/compiler/builder.ts"(){Fs(),Zq=(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))(Zq||{}),Kq=(e=>(e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",e))(Kq||{})}});function bSe(e,t,n,i,s,o){return Xq(0,$9(e,t,n,i,s,o))}function eH(e,t,n,i,s,o){return Xq(1,$9(e,t,n,i,s,o))}function SSe(e,t,n,i,s,o){const{newProgram:c,configFileParsingDiagnostics:u}=$9(e,t,n,i,s,o);return Yq(()=>({program:c,compilerOptions:c.getCompilerOptions()}),u)}var KRe=Dt({"src/compiler/builderPublic.ts"(){Fs()}});function X9(e){return Yo(e,"/node_modules/.staging")?Nk(e,"/.staging"):ct(wD,t=>e.includes(t))?void 0:e}function Yae(e,t){if(t<=1)return 1;let n=1,i=e[0].search(/[a-zA-Z]:/)===0;if(e[0]!==Fo&&!i&&e[1].search(/[a-zA-Z]\$$/)===0){if(t===2)return 2;n=2,i=!0}return i&&!e[n].match(/^users$/i)?n:e[n].match(/^workspaces$/i)?n+1:n+2}function Q9(e,t){if(t===void 0&&(t=e.length),t<=2)return!1;const n=Yae(e,t);return t>n+1}function Zae(e){return xSe(Un(e))}function TSe(e,t){if(t.lengths.length+1?eoe(u,c,Math.max(s.length+1,f+1)):{dir:n,dirPath:i,nonRecursive:!0}:kSe(u,c,c.length-1,f,g,s)}function kSe(e,t,n,i,s,o){if(s!==-1)return eoe(e,t,s+1);let c=!0,u=n;for(let f=0;feje(i,s,o,e,n,t,c)}}function eje(e,t,n,i,s,o,c){const u=Y9(e),f=t6(n,i,s,u,t,o,c);if(!e.getGlobalCache)return f;const g=e.getGlobalCache();if(g!==void 0&&!Sl(n)&&!(f.resolvedModule&&vF(f.resolvedModule.extension))){const{resolvedModule:d,failedLookupLocations:y,affectingLocations:S,resolutionDiagnostics:T}=yse(E.checkDefined(e.globalCacheResolutionModuleName)(n),e.projectName,s,u,g,t);if(d)return f.resolvedModule=d,f.failedLookupLocations=KC(f.failedLookupLocations,y),f.affectingLocations=KC(f.affectingLocations,S),f.resolutionDiagnostics=KC(f.resolutionDiagnostics,T),f}return f}function rH(e,t,n){let i,s,o;const c=yf(),u=new Set,f=new Set,g=new Map,d=new Map;let y=!1,S,T,k,w,P,F=!1;const J=Hu(()=>e.getCurrentDirectory()),U=e.getCachedDirectoryStructureHost(),$=new Map,j=e6(J(),e.getCanonicalFileName,e.getCompilationSettings()),re=new Map,R=n9(J(),e.getCanonicalFileName,e.getCompilationSettings(),j.getPackageJsonInfoCache(),j.optionsToRedirectsKey),Y=new Map,ue=e6(J(),e.getCanonicalFileName,DU(e.getCompilationSettings()),j.getPackageJsonInfoCache()),pe=new Map,H=new Map,q=roe(t,J),ee=e.toPath(q),oe=ul(ee),Se=new Map;return{rootDirForResolution:t,resolvedModuleNames:$,resolvedTypeReferenceDirectives:re,resolvedLibraries:Y,resolvedFileToResolution:g,resolutionsWithFailedLookups:u,resolutionsWithOnlyAffectingLocations:f,directoryWatchesOfFailedLookups:pe,fileWatchesOfAffectingLocations:H,watchFailedLookupLocationsOfExternalModuleResolutions:hr,getModuleResolutionCache:()=>j,startRecordingFilesWithChangedResolutions:Oe,finishRecordingFilesWithChangedResolutions:me,startCachingPerDirectoryResolution:De,finishCachingPerDirectoryResolution:ge,resolveModuleNameLiterals:Je,resolveTypeReferenceDirectiveReferences:at,resolveLibrary:pt,resolveSingleModuleNameWithoutWatching:zt,removeResolutionsFromProjectReferenceRedirects:Ue,removeResolutionsOfFile:Et,hasChangedAutomaticTypeDirectiveNames:()=>y,invalidateResolutionOfFile:Hn,invalidateResolutionsOfFailedLookupLocations:Vs,setFilesWithInvalidatedNonRelativeUnresolvedImports:ei,createHasInvalidatedResolutions:xe,isFileWithInvalidatedNonRelativeUnresolvedImports:be,updateTypeRootsWatch:tt,closeTypeRootsWatch:Le,clear:fe,onChangesAffectModuleResolution:ke};function ae(ne){return ne.resolvedModule}function K(ne){return ne.resolvedTypeReferenceDirective}function fe(){T_(pe,Xf),T_(H,Xf),c.clear(),Le(),$.clear(),re.clear(),g.clear(),u.clear(),f.clear(),k=void 0,w=void 0,P=void 0,T=void 0,S=void 0,F=!1,j.clear(),R.clear(),j.update(e.getCompilationSettings()),R.update(e.getCompilationSettings()),ue.clear(),d.clear(),Y.clear(),y=!1}function ke(){F=!0,j.clearAllExceptPackageJsonInfoCache(),R.clearAllExceptPackageJsonInfoCache(),j.update(e.getCompilationSettings()),R.update(e.getCompilationSettings())}function Oe(){i=[]}function me(){const ne=i;return i=void 0,ne}function be(ne){if(!o)return!1;const we=o.get(ne);return!!we&&!!we.length}function xe(ne,we){Vs();const et=s;return s=void 0,{hasInvalidatedResolutions:B=>ne(B)||F||!!(et!=null&&et.has(B))||be(B),hasInvalidatedLibResolutions:B=>{var Ge;return we(B)||!!((Ge=Y==null?void 0:Y.get(B))!=null&&Ge.isInvalidated)}}}function De(){j.isReadonly=void 0,R.isReadonly=void 0,ue.isReadonly=void 0,j.getPackageJsonInfoCache().isReadonly=void 0,j.clearAllExceptPackageJsonInfoCache(),R.clearAllExceptPackageJsonInfoCache(),ue.clearAllExceptPackageJsonInfoCache(),c.forEach(Ji),c.clear()}function ft(ne){Y.forEach((we,et)=>{var B;(B=ne==null?void 0:ne.resolvedLibReferences)!=null&&B.has(et)||(yr(we,e.toPath(z9(e.getCompilationSettings(),J(),et)),ae),Y.delete(et))})}function ge(ne,we){o=void 0,F=!1,c.forEach(Ji),c.clear(),ne!==we&&(ft(ne),ne==null||ne.getSourceFiles().forEach(et=>{var B;const Ge=af(et)?((B=et.packageJsonLocations)==null?void 0:B.length)??0:0,mt=d.get(et.path)??Ve;for(let Be=mt.length;BeGe)for(let Be=Ge;Be{ne!=null&&ne.getSourceFileByPath(B)||(et.forEach(Ge=>H.get(Ge).files--),d.delete(B))})),pe.forEach(Fe),H.forEach($e),y=!1,j.isReadonly=!0,R.isReadonly=!0,ue.isReadonly=!0,j.getPackageJsonInfoCache().isReadonly=!0}function Fe(ne,we){ne.refCount===0&&(pe.delete(we),ne.watcher.close())}function $e(ne,we){var et;ne.files===0&&ne.resolutions===0&&!((et=ne.symlinks)!=null&&et.size)&&(H.delete(we),ne.watcher.close())}function Pt({entries:ne,containingFile:we,containingSourceFile:et,redirectedReference:B,options:Ge,perFileCache:mt,reusedNames:Be,loader:nt,getResolutionWithResolvedFileName:wt,deferWatchingNonRelativeResolution:ir,shouldRetryResolution:Yt,logChanges:Kt}){const W=e.toPath(we),Pe=mt.get(W)||mt.set(W,bx()).get(W),St=[],A=Kt&&be(W),le=e.getCurrentProgram(),V=le&&le.getResolvedProjectReferenceToRedirect(we),ce=V?!B||B.sourceFile.path!==V.sourceFile.path:!!B,Ne=bx();for(const _t of ne){const Tt=nt.nameAndMode.getName(_t),Jt=nt.nameAndMode.getMode(_t,et,(B==null?void 0:B.commandLine.options)||Ge);let ar=Pe.get(Tt,Jt);if(!Ne.has(Tt,Jt)&&(F||ce||!ar||ar.isInvalidated||A&&!Sl(Tt)&&Yt(ar))){const Er=ar;ar=nt.resolve(Tt,Jt),e.onDiscoveredSymlink&&tje(ar)&&e.onDiscoveredSymlink(),Pe.set(Tt,Jt,ar),ar!==Er&&(hr(Tt,ar,W,wt,ir),Er&&yr(Er,W,wt)),Kt&&i&&!Ce(Er,ar)&&(i.push(W),Kt=!1)}else{const Er=Y9(e);if(oh(Ge,Er)&&!Ne.has(Tt,Jt)){const Nr=wt(ar);Zi(Er,mt===$?Nr!=null&&Nr.resolvedFileName?Nr.packageId?p.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:p.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:p.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:Nr!=null&&Nr.resolvedFileName?Nr.packageId?p.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:p.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:p.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,Tt,we,Nr==null?void 0:Nr.resolvedFileName,(Nr==null?void 0:Nr.packageId)&&Z0(Nr.packageId))}}E.assert(ar!==void 0&&!ar.isInvalidated),Ne.set(Tt,Jt,!0),St.push(ar)}return Be==null||Be.forEach(_t=>Ne.set(nt.nameAndMode.getName(_t),nt.nameAndMode.getMode(_t,et,(B==null?void 0:B.commandLine.options)||Ge),!0)),Pe.size()!==Ne.size()&&Pe.forEach((_t,Tt,Jt)=>{Ne.has(Tt,Jt)||(yr(_t,W,wt),Pe.delete(Tt,Jt))}),St;function Ce(_t,Tt){if(_t===Tt)return!0;if(!_t||!Tt)return!1;const Jt=wt(_t),ar=wt(Tt);return Jt===ar?!0:!Jt||!ar?!1:Jt.resolvedFileName===ar.resolvedFileName}}function at(ne,we,et,B,Ge,mt){return Pt({entries:ne,containingFile:we,containingSourceFile:Ge,redirectedReference:et,options:B,reusedNames:mt,perFileCache:re,loader:B9(we,et,B,Y9(e),R),getResolutionWithResolvedFileName:K,shouldRetryResolution:Be=>Be.resolvedTypeReferenceDirective===void 0,deferWatchingNonRelativeResolution:!1})}function Je(ne,we,et,B,Ge,mt){return Pt({entries:ne,containingFile:we,containingSourceFile:Ge,redirectedReference:et,options:B,reusedNames:mt,perFileCache:$,loader:noe(we,et,B,e,j),getResolutionWithResolvedFileName:ae,shouldRetryResolution:Be=>!Be.resolvedModule||!UE(Be.resolvedModule.extension),logChanges:n,deferWatchingNonRelativeResolution:!0})}function pt(ne,we,et,B){const Ge=Y9(e);let mt=Y==null?void 0:Y.get(B);if(!mt||mt.isInvalidated){const Be=mt;mt=i9(ne,we,et,Ge,ue);const nt=e.toPath(we);hr(ne,mt,nt,ae,!1),Y.set(B,mt),Be&&yr(Be,nt,ae)}else if(oh(et,Ge)){const Be=ae(mt);Zi(Ge,Be!=null&&Be.resolvedFileName?Be.packageId?p.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:p.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:p.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,ne,we,Be==null?void 0:Be.resolvedFileName,(Be==null?void 0:Be.packageId)&&Z0(Be.packageId))}return mt}function zt(ne,we){var et,B;const Ge=e.toPath(we),mt=$.get(Ge),Be=mt==null?void 0:mt.get(ne,void 0);if(Be&&!Be.isInvalidated)return Be;const nt=(et=e.beforeResolveSingleModuleNameWithoutWatching)==null?void 0:et.call(e,j),wt=Y9(e),ir=t6(ne,we,e.getCompilationSettings(),wt,j);return(B=e.afterResolveSingleModuleNameWithoutWatching)==null||B.call(e,j,ne,we,ir,nt),ir}function Vt(ne){return Yo(ne,"/node_modules/@types")}function hr(ne,we,et,B,Ge){var mt;if(we.refCount)we.refCount++,E.assertIsDefined(we.files);else{we.refCount=1,E.assert(!((mt=we.files)!=null&&mt.size)),!Ge||Sl(ne)?er(we):c.add(ne,we);const Be=B(we);if(Be&&Be.resolvedFileName){const nt=e.toPath(Be.resolvedFileName);let wt=g.get(nt);wt||g.set(nt,wt=new Set),wt.add(we)}}(we.files??(we.files=new Set)).add(et)}function Lr(ne,we){const et=e.toPath(ne),B=tH(ne,et,q,ee,oe,J);if(B){const{dir:Ge,dirPath:mt,nonRecursive:Be}=B;mt===ee?(E.assert(Be),we=!0):yi(Ge,mt,Be)}return we}function er(ne){E.assert(!!ne.refCount);const{failedLookupLocations:we,affectingLocations:et,alternateResult:B}=ne;if(!(we!=null&&we.length)&&!(et!=null&&et.length)&&!B)return;(we!=null&&we.length||B)&&u.add(ne);let Ge=!1;if(we)for(const mt of we)Ge=Lr(mt,Ge);B&&(Ge=Lr(B,Ge)),Ge&&yi(q,ee,!0),jt(ne,!(we!=null&&we.length)&&!B)}function jt(ne,we){E.assert(!!ne.refCount);const{affectingLocations:et}=ne;if(et!=null&&et.length){we&&f.add(ne);for(const B of et)Rt(B,!0)}}function Rt(ne,we){const et=H.get(ne);if(et){we?et.resolutions++:et.files++;return}let B=ne,Ge=!1,mt;e.realpath&&(B=e.realpath(ne),ne!==B&&(Ge=!0,mt=H.get(B)));const Be=we?1:0,nt=we?0:1;if(!Ge||!mt){const wt={watcher:Kae(e.toPath(B))?e.watchAffectingFileLocation(B,(ir,Yt)=>{U==null||U.addOrDeleteFile(ir,e.toPath(B),Yt),Kn(B,j.getPackageJsonInfoCache().getInternalMap()),e.scheduleInvalidateResolutionsOfFailedLookupLocations()}):p6,resolutions:Ge?0:Be,files:Ge?0:nt,symlinks:void 0};H.set(B,wt),Ge&&(mt=wt)}if(Ge){E.assert(!!mt);const wt={watcher:{close:()=>{var ir;const Yt=H.get(B);(ir=Yt==null?void 0:Yt.symlinks)!=null&&ir.delete(ne)&&!Yt.symlinks.size&&!Yt.resolutions&&!Yt.files&&(H.delete(B),Yt.watcher.close())}},resolutions:Be,files:nt,symlinks:void 0};H.set(ne,wt),(mt.symlinks??(mt.symlinks=new Set)).add(ne)}}function Kn(ne,we){var et;const B=H.get(ne);B!=null&&B.resolutions&&(T??(T=new Set)).add(ne),B!=null&&B.files&&(S??(S=new Set)).add(ne),(et=B==null?void 0:B.symlinks)==null||et.forEach(Ge=>Kn(Ge,we)),we==null||we.delete(e.toPath(ne))}function Ji(ne,we){const et=e.getCurrentProgram();!et||!et.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(we)?ne.forEach(er):ne.forEach(B=>jt(B,!0))}function yi(ne,we,et){const B=pe.get(we);B?(E.assert(!!et==!!B.nonRecursive),B.refCount++):pe.set(we,{watcher:ln(ne,we,et),refCount:1,nonRecursive:et})}function os(ne,we,et){const B=e.toPath(ne),Ge=tH(ne,B,q,ee,oe,J);if(Ge){const{dirPath:mt}=Ge;mt===ee?we=!0:_i(mt,et)}return we}function yr(ne,we,et,B){if(E.checkDefined(ne.files).delete(we),ne.refCount--,ne.refCount)return;const Ge=et(ne);if(Ge&&Ge.resolvedFileName){const wt=e.toPath(Ge.resolvedFileName),ir=g.get(wt);ir!=null&&ir.delete(ne)&&!ir.size&&g.delete(wt)}const{failedLookupLocations:mt,affectingLocations:Be,alternateResult:nt}=ne;if(u.delete(ne)){let wt=!1;if(mt)for(const ir of mt)wt=os(ir,wt,B);nt&&(wt=os(nt,wt,B)),wt&&_i(ee,B)}else Be!=null&&Be.length&&f.delete(ne);if(Be)for(const wt of Be){const ir=H.get(wt);ir.resolutions--,B&&$e(ir,wt)}}function _i(ne,we){const et=pe.get(ne);et.refCount--,we&&Fe(et,ne)}function ln(ne,we,et){return e.watchDirectoryOfFailedLookupLocation(ne,B=>{const Ge=e.toPath(B);U&&U.addOrDeleteFileOrDirectory(B,Ge),Ii(Ge,we===Ge)},et?0:1)}function Ht(ne,we,et,B){const Ge=ne.get(we);Ge&&(Ge.forEach(mt=>yr(mt,we,et,B)),ne.delete(we))}function Ue(ne){if(!Zo(ne,".json"))return;const we=e.getCurrentProgram();if(!we)return;const et=we.getResolvedProjectReferenceByPath(ne);et&&et.commandLine.fileNames.forEach(B=>Et(e.toPath(B)))}function Et(ne,we){Ht($,ne,ae,we),Ht(re,ne,K,we)}function fr(ne,we){if(!ne)return!1;let et=!1;return ne.forEach(B=>{if(!(B.isInvalidated||!we(B))){B.isInvalidated=et=!0;for(const Ge of E.checkDefined(B.files))(s??(s=new Set)).add(Ge),y=y||Yo(Ge,u6)}}),et}function Hn(ne){Et(ne);const we=y;fr(g.get(ne),Wh)&&y&&!we&&e.onChangedAutomaticTypeDirectiveNames()}function ei(ne){E.assert(o===ne||o===void 0),o=ne}function Ii(ne,we){if(we)(P||(P=new Set)).add(ne);else{const et=X9(ne);if(!et||(ne=et,e.fileIsOpen(ne)))return!1;const B=Un(ne);if(Vt(ne)||w7(ne)||Vt(B)||w7(B))(k||(k=new Set)).add(ne),(w||(w=new Set)).add(ne);else{if(wae(e.getCurrentProgram(),ne)||Zo(ne,".map"))return!1;(k||(k=new Set)).add(ne);const Ge=aA(ne,!0);Ge&&(w||(w=new Set)).add(Ge)}}e.scheduleInvalidateResolutionsOfFailedLookupLocations()}function ns(){const ne=j.getPackageJsonInfoCache().getInternalMap();ne&&(k||w||P)&&ne.forEach((we,et)=>cr(et)?ne.delete(et):void 0)}function Vs(){var ne;if(F)return S=void 0,ns(),(k||w||P||T)&&fr(Y,_a),k=void 0,w=void 0,P=void 0,T=void 0,!0;let we=!1;return S&&((ne=e.getCurrentProgram())==null||ne.getSourceFiles().forEach(et=>{ct(et.packageJsonLocations,B=>S.has(B))&&((s??(s=new Set)).add(et.path),we=!0)}),S=void 0),!k&&!w&&!P&&!T||(we=fr(u,_a)||we,ns(),k=void 0,w=void 0,P=void 0,we=fr(f,br)||we,T=void 0),we}function _a(ne){var we;return br(ne)?!0:!k&&!w&&!P?!1:((we=ne.failedLookupLocations)==null?void 0:we.some(et=>cr(e.toPath(et))))||!!ne.alternateResult&&cr(e.toPath(ne.alternateResult))}function cr(ne){return(k==null?void 0:k.has(ne))||Sm((w==null?void 0:w.keys())||[],we=>Vi(ne,we)?!0:void 0)||Sm((P==null?void 0:P.keys())||[],we=>ne.length>we.length&&Vi(ne,we)&&(NJ(we)||ne[we.length]===Fo)?!0:void 0)}function br(ne){var we;return!!T&&((we=ne.affectingLocations)==null?void 0:we.some(et=>T.has(et)))}function Le(){T_(Se,dd)}function rt(ne){return yt(ne)?e.watchTypeRootsDirectory(ne,we=>{const et=e.toPath(we);U&&U.addOrDeleteFileOrDirectory(we,et),y=!0,e.onChangedAutomaticTypeDirectiveNames();const B=toe(ne,e.toPath(ne),ee,oe,J,Ge=>pe.has(Ge));B&&Ii(et,B===et)},1):p6}function tt(){const ne=e.getCompilationSettings();if(ne.types){Le();return}const we=w3(ne,{getCurrentDirectory:J});we?JE(Se,new Set(we),{createNewValue:rt,onDeleteValue:dd}):Le()}function yt(ne){return e.getCompilationSettings().typeRoots?!0:Zae(e.toPath(ne))}}function tje(e){var t,n;return!!((t=e.resolvedModule)!=null&&t.originalPath||(n=e.resolvedTypeReferenceDirective)!=null&&n.originalPath)}var rje=Dt({"src/compiler/resolutionCache.ts"(){Fs()}});function wA(e,t){const n=e===zl&&uoe?uoe:{getCurrentDirectory:()=>e.getCurrentDirectory(),getNewLine:()=>e.newLine,getCanonicalFileName:nu(e.useCaseSensitiveFileNames)};if(!t)return s=>e.write(Aq(s,n));const i=new Array(1);return s=>{i[0]=s,e.write(Fae(i,n)+n.getNewLine()),i[0]=void 0}}function ESe(e,t,n){return e.clearScreen&&!n.preserveWatchOutput&&!n.extendedDiagnostics&&!n.diagnostics&&bs(nL,t.code)?(e.clearScreen(),!0):!1}function nje(e,t){return bs(nL,e.code)?t+t:t}function AA(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace(" "," "):new Date().toLocaleTimeString()}function ioe(e,t){return t?(n,i,s)=>{ESe(e,n,s);let o=`[${S2(AA(e),"\x1B[90m")}] `;o+=`${em(n.messageText,e.newLine)}${i+i}`,e.write(o)}:(n,i,s)=>{let o="";ESe(e,n,s)||(o+=i),o+=`${AA(e)} - `,o+=`${em(n.messageText,e.newLine)}${nje(n,i)}`,e.write(o)}}function PSe(e,t,n,i,s,o){const c=s;c.onUnRecoverableConfigFileDiagnostic=f=>ASe(s,o,f);const u=Gw(e,t,c,n,i);return c.onUnRecoverableConfigFileDiagnostic=void 0,u}function Z9(e){return R0(e,t=>t.category===1)}function K9(e){return An(e,n=>n.category===1).map(n=>{if(n.file!==void 0)return`${n.file.fileName}`}).map(n=>{if(n===void 0)return;const i=wn(e,s=>s.file!==void 0&&s.file.fileName===n);if(i!==void 0){const{line:s}=Ha(i.file,i.start);return{fileName:n,line:s+1}}})}function nH(e){return e===1?p.Found_1_error_Watching_for_file_changes:p.Found_0_errors_Watching_for_file_changes}function DSe(e,t){const n=S2(":"+e.line,"\x1B[90m");return X4(e.fileName)&&X4(t)?Rp(t,e.fileName,!1)+n:e.fileName+n}function soe(e,t,n,i){if(e===0)return"";const s=t.filter(d=>d!==void 0),o=s.map(d=>`${d.fileName}:${d.line}`).filter((d,y,S)=>S.indexOf(d)===y),c=s[0]&&DSe(s[0],i.getCurrentDirectory());let u;e===1?u=t[0]!==void 0?[p.Found_1_error_in_0,c]:[p.Found_1_error]:u=o.length===0?[p.Found_0_errors,e]:o.length===1?[p.Found_0_errors_in_the_same_file_starting_at_Colon_1,e,c]:[p.Found_0_errors_in_1_files,e,o.length];const f=gc(...u),g=o.length>1?ije(s,i):"";return`${n}${em(f.messageText,n)}${n}${n}${g}`}function ije(e,t){const n=e.filter((y,S,T)=>S===T.findIndex(k=>(k==null?void 0:k.fileName)===(y==null?void 0:y.fileName)));if(n.length===0)return"";const i=y=>Math.log(y)*Math.LOG10E+1,s=n.map(y=>[y,R0(e,S=>S.fileName===y.fileName)]),o=s.reduce((y,S)=>Math.max(y,S[1]||0),0),c=p.Errors_Files.message,u=c.split(" ")[0].length,f=Math.max(u,i(o)),g=Math.max(i(o)-u,0);let d="";return d+=" ".repeat(g)+c+` `,s.forEach(y=>{const[S,T]=y,k=Math.log(T)*Math.LOG10E+1|0,w=k{t(i.fileName)})}function oH(e,t){var n,i;const s=e.getFileIncludeReasons(),o=c=>Y4(c,e.getCurrentDirectory(),e.getCanonicalFileName);for(const c of e.getSourceFiles())t(`${f6(c,o)}`),(n=s.get(c.path))==null||n.forEach(u=>t(` ${_H(e,u,o).messageText}`)),(i=cH(c,o))==null||i.forEach(u=>t(` ${u.messageText}`))}function cH(e,t){var n;let i;if(e.path!==e.resolvedPath&&(i??(i=[])).push(vs(void 0,p.File_is_output_of_project_reference_source_0,f6(e.originalFileName,t))),e.redirectInfo&&(i??(i=[])).push(vs(void 0,p.File_redirects_to_file_0,f6(e.redirectInfo.redirectTarget,t))),af(e))switch(e.impliedNodeFormat){case 99:e.packageJsonScope&&(i??(i=[])).push(vs(void 0,p.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,f6(ka(e.packageJsonLocations),t)));break;case 1:e.packageJsonScope?(i??(i=[])).push(vs(void 0,e.packageJsonScope.contents.packageJsonContent.type?p.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:p.File_is_CommonJS_module_because_0_does_not_have_field_type,f6(ka(e.packageJsonLocations),t))):(n=e.packageJsonLocations)!=null&&n.length&&(i??(i=[])).push(vs(void 0,p.File_is_CommonJS_module_because_package_json_was_not_found));break}return i}function lH(e,t){var n;const i=e.getCompilerOptions().configFile;if(!((n=i==null?void 0:i.configFileSpecs)!=null&&n.validatedFilesSpec))return;const s=e.getCanonicalFileName(t),o=Un(Xi(i.fileName,e.getCurrentDirectory()));return wn(i.configFileSpecs.validatedFilesSpec,c=>e.getCanonicalFileName(Xi(c,o))===s)}function uH(e,t){var n,i;const s=e.getCompilerOptions().configFile;if(!((n=s==null?void 0:s.configFileSpecs)!=null&&n.validatedIncludeSpecs))return;if(s.configFileSpecs.isDefaultIncludeSpec)return!0;const o=Zo(t,".json"),c=Un(Xi(s.fileName,e.getCurrentDirectory())),u=e.useCaseSensitiveFileNames();return wn((i=s==null?void 0:s.configFileSpecs)==null?void 0:i.validatedIncludeSpecs,f=>{if(o&&!Yo(f,".json"))return!1;const g=ane(f,c,"files");return!!g&&sy(`(${g})$`,u).test(t)})}function _H(e,t,n){var i,s;const o=e.getCompilerOptions();if(U1(t)){const c=H3(e,t),u=c6(c)?c.file.text.substring(c.pos,c.end):`"${c.text}"`;let f;switch(E.assert(c6(c)||t.kind===3,"Only synthetic references are imports"),t.kind){case 3:c6(c)?f=c.packageId?p.Imported_via_0_from_file_1_with_packageId_2:p.Imported_via_0_from_file_1:c.text===oy?f=c.packageId?p.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:p.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:f=c.packageId?p.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:p.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case 4:E.assert(!c.packageId),f=p.Referenced_via_0_from_file_1;break;case 5:f=c.packageId?p.Type_library_referenced_via_0_from_file_1_with_packageId_2:p.Type_library_referenced_via_0_from_file_1;break;case 7:E.assert(!c.packageId),f=p.Library_referenced_via_0_from_file_1;break;default:E.assertNever(t)}return vs(void 0,f,u,f6(c.file,n),c.packageId&&K0(c.packageId))}switch(t.kind){case 0:if(!((i=o.configFile)!=null&&i.configFileSpecs))return vs(void 0,p.Root_file_specified_for_compilation);const c=Xi(e.getRootFileNames()[t.index],e.getCurrentDirectory());if(lH(e,c))return vs(void 0,p.Part_of_files_list_in_tsconfig_json);const f=uH(e,c);return ls(f)?vs(void 0,p.Matched_by_include_pattern_0_in_1,f,f6(o.configFile,n)):vs(void 0,f?p.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:p.Root_file_specified_for_compilation);case 1:case 2:const g=t.kind===2,d=E.checkDefined((s=e.getResolvedProjectReferences())==null?void 0:s[t.index]);return vs(void 0,no(o)?g?p.Output_from_referenced_project_0_included_because_1_specified:p.Source_from_referenced_project_0_included_because_1_specified:g?p.Output_from_referenced_project_0_included_because_module_is_specified_as_none:p.Source_from_referenced_project_0_included_because_module_is_specified_as_none,f6(d.sourceFile.fileName,n),o.outFile?"--outFile":"--out");case 8:{const y=o.types?t.packageId?[p.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1,t.typeReference,K0(t.packageId)]:[p.Entry_point_of_type_library_0_specified_in_compilerOptions,t.typeReference]:t.packageId?[p.Entry_point_for_implicit_type_library_0_with_packageId_1,t.typeReference,K0(t.packageId)]:[p.Entry_point_for_implicit_type_library_0,t.typeReference];return vs(void 0,...y)}case 6:{if(t.index!==void 0)return vs(void 0,p.Library_0_specified_in_compilerOptions,o.lib[t.index]);const y=_l(rA.type,(T,k)=>T===Fa(o)?k:void 0),S=y?[p.Default_library_for_target_0,y]:[p.Default_library];return vs(void 0,...S)}default:E.assertNever(t)}}function f6(e,t){const n=ls(e)?e:e.fileName;return t?t(n):n}function nL(e,t,n,i,s,o,c,u){const f=!!e.getCompilerOptions().listFilesOnly,g=e.getConfigFileParsingDiagnostics().slice(),d=g.length;Nn(g,e.getSyntacticDiagnostics(void 0,o)),g.length===d&&(Nn(g,e.getOptionsDiagnostics(o)),f||(Nn(g,e.getGlobalDiagnostics(o)),g.length===d&&Nn(g,e.getSemanticDiagnostics(void 0,o))));const y=f?{emitSkipped:!0,diagnostics:Ve}:e.emit(void 0,s,o,c,u),{emittedFiles:S,diagnostics:T}=y;Nn(g,T);const k=zk(g);if(k.forEach(t),n){const w=e.getCurrentDirectory();er(S,P=>{const F=Xi(P,w);n(`TSFILE: ${F}`)}),aH(e,n)}return i&&i(tL(k),rL(k)),{emitResult:y,diagnostics:k}}function coe(e,t,n,i,s,o,c,u){const{emitResult:f,diagnostics:g}=nL(e,t,n,i,s,o,c,u);return f.emitSkipped&&g.length>0?1:g.length>0?2:0}function fH(e=zl,t){return{onWatchStatusChange:t||soe(e),watchFile:Os(e,e.watchFile)||d6,watchDirectory:Os(e,e.watchDirectory)||d6,setTimeout:Os(e,e.setTimeout)||Ca,clearTimeout:Os(e,e.clearTimeout)||Ca}}function pH(e,t){const n=e.trace?t.extendedDiagnostics?2:t.diagnostics?1:0:0,i=n!==0?o=>e.trace(o):Ca,s=Eq(e,n,i);return s.writeLog=i,s}function dH(e,t,n=e){const i=e.useCaseSensitiveFileNames(),s={getSourceFile:wq((o,c)=>c?e.readFile(o,c):s.readFile(o),t,void 0),getDefaultLibLocation:Os(e,e.getDefaultLibLocation),getDefaultLibFileName:o=>e.getDefaultLibFileName(o),writeFile:Aq((o,c,u)=>e.writeFile(o,c,u),o=>e.createDirectory(o),o=>e.directoryExists(o)),getCurrentDirectory:Hu(()=>e.getCurrentDirectory()),useCaseSensitiveFileNames:()=>i,getCanonicalFileName:nu(i),getNewLine:()=>t0(t()),fileExists:o=>e.fileExists(o),readFile:o=>e.readFile(o),trace:Os(e,e.trace),directoryExists:Os(n,n.directoryExists),getDirectories:Os(n,n.getDirectories),realpath:Os(e,e.realpath),getEnvironmentVariable:Os(e,e.getEnvironmentVariable)||(()=>""),createHash:Os(e,e.createHash),readDirectory:Os(e,e.readDirectory),storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit,jsDocParsingMode:e.jsDocParsingMode};return s}function iL(e,t){if(t.match(eq)){let n=t.length,i=n;for(let s=n-1;s>=0;s--){const o=t.charCodeAt(s);switch(o){case 10:s&&t.charCodeAt(s-1)===13&&s--;case 13:break;default:if(o<127||!gu(o)){i=s;continue}break}const c=t.substring(i,n);if(c.match(S9)){t=t.substring(0,i);break}else if(!c.match(T9))break;n=i}}return(e.createHash||X4)(t)}function sL(e){const t=e.getSourceFile;e.getSourceFile=(...n)=>{const i=t.call(e,...n);return i&&(i.version=iL(e,i.text)),i}}function mH(e,t){const n=Hu(()=>Un(Hs(e.getExecutingFilePath())));return{useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames,getNewLine:()=>e.newLine,getCurrentDirectory:Hu(()=>e.getCurrentDirectory()),getDefaultLibLocation:n,getDefaultLibFileName:i=>Mn(n(),zD(i)),fileExists:i=>e.fileExists(i),readFile:(i,s)=>e.readFile(i,s),directoryExists:i=>e.directoryExists(i),getDirectories:i=>e.getDirectories(i),readDirectory:(i,s,o,c,u)=>e.readDirectory(i,s,o,c,u),realpath:Os(e,e.realpath),getEnvironmentVariable:Os(e,e.getEnvironmentVariable),trace:i=>e.write(i+e.newLine),createDirectory:i=>e.createDirectory(i),writeFile:(i,s,o)=>e.writeFile(i,s,o),createHash:Os(e,e.createHash),createProgram:t||rH,storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit,now:Os(e,e.now)}}function wSe(e=zl,t,n,i){const s=c=>e.write(c+e.newLine),o=mH(e,t);return dB(o,fH(e,i)),o.afterProgramCreate=c=>{const u=c.getCompilerOptions(),f=t0(u);nL(c,n,s,g=>o.onWatchStatusChange(gc(sH(g),g),f,u,g))},o}function ASe(e,t,n){t(n),e.exit(1)}function loe({configFileName:e,optionsToExtend:t,watchOptionsToExtend:n,extraFileExtensions:i,system:s,createProgram:o,reportDiagnostic:c,reportWatchStatus:u}){const f=c||AA(s),g=wSe(s,o,f,u);return g.onUnRecoverableConfigFileDiagnostic=d=>ASe(s,f,d),g.configFileName=e,g.optionsToExtend=t,g.watchOptionsToExtend=n,g.extraFileExtensions=i,g}function uoe({rootFiles:e,options:t,watchOptions:n,projectReferences:i,system:s,createProgram:o,reportDiagnostic:c,reportWatchStatus:u}){const f=wSe(s,o,c||AA(s),u);return f.rootFiles=e,f.options=t,f.watchOptions=n,f.projectReferences=i,f}function NSe(e){const t=e.system||zl,n=e.host||(e.host=gH(e.options,t)),i=foe(e),s=coe(i,e.reportDiagnostic||AA(t),o=>n.trace&&n.trace(o),e.reportErrorSummary||e.options.pretty?(o,c)=>t.write(aoe(o,c,t.newLine,n)):void 0);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(i),s}var _oe,aL,p6,d6,sl,sje=wt({"src/compiler/watch.ts"(){Fs(),_oe=zl?{getCurrentDirectory:()=>zl.getCurrentDirectory(),getNewLine:()=>zl.newLine,getCanonicalFileName:nu(zl.useCaseSensitiveFileNames)}:void 0,aL=[p.Starting_compilation_in_watch_mode.code,p.File_change_detected_Starting_incremental_compilation.code],p6={close:Ca},d6=()=>p6,sl={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 oL(e,t){const n=c0(e);if(!n)return;let i;if(t.getBuildInfo)i=t.getBuildInfo(n,e.configFilePath);else{const s=t.readFile(n);if(!s)return;i=M9(n,s)}if(!(!i||i.version!==yf||!i.program))return Yae(i,n,t)}function gH(e,t=zl){const n=Nq(e,void 0,t);return n.createHash=Os(t,t.createHash),n.storeFilesChangingSignatureDuringEmit=t.storeFilesChangingSignatureDuringEmit,sL(n),CA(n,i=>No(i,n.getCurrentDirectory(),n.getCanonicalFileName)),n}function foe({rootNames:e,options:t,configFileParsingDiagnostics:n,projectReferences:i,host:s,createProgram:o}){s=s||gH(t),o=o||rH;const c=oL(t,s);return o(e,t,s,c,n,i)}function ISe(e,t,n,i,s,o,c,u){return ts(e)?uoe({rootFiles:e,options:t,watchOptions:u,projectReferences:c,system:n,createProgram:i,reportDiagnostic:s,reportWatchStatus:o}):loe({configFileName:e,optionsToExtend:t,watchOptionsToExtend:c,extraFileExtensions:u,system:n,createProgram:i,reportDiagnostic:s,reportWatchStatus:o})}function FSe(e){let t,n,i,s,o,c,u,f,g=e.extendedConfigCache,d=!1;const y=new Map;let S,T=!1;const k=e.useCaseSensitiveFileNames(),w=e.getCurrentDirectory(),{configFileName:P,optionsToExtend:F={},watchOptionsToExtend:J,extraFileExtensions:U,createProgram:$}=e;let{rootFiles:j,options:re,watchOptions:R,projectReferences:Y}=e,ue,pe,H=!1,q=!1;const ee=P===void 0?void 0:j9(e,w,k),oe=ee||e,Se=G9(e,oe);let ae=hr();P&&e.configFileParsingResult&&(_a(e.configFileParsingResult),ae=hr()),yr(p.Starting_compilation_in_watch_mode),P&&!e.configFileParsingResult&&(ae=t0(F),E.assert(!j),Vs(),ae=hr()),E.assert(re),E.assert(j);const{watchFile:K,watchDirectory:fe,writeLog:ke}=pH(e,re),Oe=nu(k);ke(`Current directory: ${w} CaseSensitiveFileNames: ${k}`);let me;P&&(me=K(P,fr,2e3,R,sl.ConfigFile));const be=dH(e,()=>re,oe);sL(be);const xe=be.getSourceFile;be.getSourceFile=(Be,...nt)=>Kn(Be,Lr(Be),...nt),be.getSourceFileByPath=Kn,be.getNewLine=()=>ae,be.fileExists=Rt,be.onReleaseOldSourceFile=os,be.onReleaseParsedCommandLine=Le,be.toPath=Lr,be.getCompilationSettings=()=>re,be.useSourceOfProjectReferenceRedirect=Os(e,e.useSourceOfProjectReferenceRedirect),be.watchDirectoryOfFailedLookupLocation=(Be,nt,Dt)=>fe(Be,nt,Dt,R,sl.FailedLookupLocations),be.watchAffectingFileLocation=(Be,nt)=>K(Be,nt,2e3,R,sl.AffectingFileLocation),be.watchTypeRootsDirectory=(Be,nt,Dt)=>fe(Be,nt,Dt,R,sl.TypeRoots),be.getCachedDirectoryStructureHost=()=>ee,be.scheduleInvalidateResolutionsOfFailedLookupLocations=Ht,be.onInvalidatedResolution=Et,be.onChangedAutomaticTypeDirectiveNames=Et,be.fileIsOpen=fd,be.getCurrentProgram=Je,be.writeLog=ke,be.getParsedCommandLine=cr;const De=iH(be,P?Un(Xi(P,w)):w,!1);be.resolveModuleNameLiterals=Os(e,e.resolveModuleNameLiterals),be.resolveModuleNames=Os(e,e.resolveModuleNames),!be.resolveModuleNameLiterals&&!be.resolveModuleNames&&(be.resolveModuleNameLiterals=De.resolveModuleNameLiterals.bind(De)),be.resolveTypeReferenceDirectiveReferences=Os(e,e.resolveTypeReferenceDirectiveReferences),be.resolveTypeReferenceDirectives=Os(e,e.resolveTypeReferenceDirectives),!be.resolveTypeReferenceDirectiveReferences&&!be.resolveTypeReferenceDirectives&&(be.resolveTypeReferenceDirectiveReferences=De.resolveTypeReferenceDirectiveReferences.bind(De)),be.resolveLibrary=e.resolveLibrary?e.resolveLibrary.bind(e):De.resolveLibrary.bind(De),be.getModuleResolutionCache=e.resolveModuleNameLiterals||e.resolveModuleNames?Os(e,e.getModuleResolutionCache):()=>De.getModuleResolutionCache();const ge=!!e.resolveModuleNameLiterals||!!e.resolveTypeReferenceDirectiveReferences||!!e.resolveModuleNames||!!e.resolveTypeReferenceDirectives?Os(e,e.hasInvalidatedResolutions)||Wh:fd,Fe=e.resolveLibrary?Os(e,e.hasInvalidatedLibResolutions)||Wh:fd;return t=oL(re,be),pt(),et(),P&&Ge(Lr(P),re,R,sl.ExtendedConfigFile),P?{getCurrentProgram:at,getProgram:ei,close:$e,getResolutionCache:Pt}:{getCurrentProgram:at,getProgram:ei,updateRootFileNames:Vt,close:$e,getResolutionCache:Pt};function $e(){ln(),De.clear(),T_(y,Be=>{Be&&Be.fileWatcher&&(Be.fileWatcher.close(),Be.fileWatcher=void 0)}),me&&(me.close(),me=void 0),g==null||g.clear(),g=void 0,f&&(T_(f,Qf),f=void 0),s&&(T_(s,Qf),s=void 0),i&&(T_(i,md),i=void 0),u&&(T_(u,Be=>{var nt;(nt=Be.watcher)==null||nt.close(),Be.watcher=void 0,Be.watchedDirectories&&T_(Be.watchedDirectories,Qf),Be.watchedDirectories=void 0}),u=void 0)}function Pt(){return De}function at(){return t}function Je(){return t&&t.getProgramOrUndefined()}function pt(){ke("Synchronizing program"),E.assert(re),E.assert(j),ln();const Be=at();T&&(ae=hr(),Be&&i5(Be.getCompilerOptions(),re)&&De.onChangesAffectModuleResolution());const{hasInvalidatedResolutions:nt,hasInvalidatedLibResolutions:Dt}=De.createHasInvalidatedResolutions(ge,Fe),{originalReadFile:ir,originalFileExists:Yt,originalDirectoryExists:Kt,originalCreateDirectory:W,originalWriteFile:Pe,readFileWithCache:St}=CA(be,Lr);return zq(Je(),j,re,A=>yi(A,St),A=>be.fileExists(A),nt,Dt,_i,cr,Y)?q&&(d&&yr(p.File_change_detected_Starting_incremental_compilation),t=$(void 0,void 0,be,t,pe,Y),q=!1):(d&&yr(p.File_change_detected_Starting_incremental_compilation),zt(nt,Dt)),d=!1,e.afterProgramCreate&&Be!==t&&e.afterProgramCreate(t),be.readFile=ir,be.fileExists=Yt,be.directoryExists=Kt,be.createDirectory=W,be.writeFile=Pe,t}function zt(Be,nt){ke("CreatingProgramWith::"),ke(` roots: ${JSON.stringify(j)}`),ke(` options: ${JSON.stringify(re)}`),Y&&ke(` projectReferences: ${JSON.stringify(Y)}`);const Dt=T||!Je();T=!1,q=!1,De.startCachingPerDirectoryResolution(),be.hasInvalidatedResolutions=Be,be.hasInvalidatedLibResolutions=nt,be.hasChangedAutomaticTypeDirectiveNames=_i;const ir=Je();if(t=$(j,re,be,t,pe,Y),De.finishCachingPerDirectoryResolution(t.getProgram(),ir),Cq(t.getProgram(),i||(i=new Map),ne),Dt&&De.updateTypeRootsWatch(),S){for(const Yt of S)i.has(Yt)||y.delete(Yt);S=void 0}}function Vt(Be){E.assert(!P,"Cannot update root file names with config file watch mode"),j=Be,Et()}function hr(){return t0(re||F)}function Lr(Be){return No(Be,w,Oe)}function tr(Be){return typeof Be=="boolean"}function jt(Be){return typeof Be.version=="boolean"}function Rt(Be){const nt=Lr(Be);return tr(y.get(nt))?!1:oe.fileExists(Be)}function Kn(Be,nt,Dt,ir,Yt){const Kt=y.get(nt);if(tr(Kt))return;const W=typeof Dt=="object"?Dt.impliedNodeFormat:void 0;if(Kt===void 0||Yt||jt(Kt)||Kt.sourceFile.impliedNodeFormat!==W){const Pe=xe(Be,Dt,ir);if(Kt)Pe?(Kt.sourceFile=Pe,Kt.version=Pe.version,Kt.fileWatcher||(Kt.fileWatcher=rt(nt,Be,tt,250,R,sl.SourceFile))):(Kt.fileWatcher&&Kt.fileWatcher.close(),y.set(nt,!1));else if(Pe){const St=rt(nt,Be,tt,250,R,sl.SourceFile);y.set(nt,{sourceFile:Pe,version:Pe.version,fileWatcher:St})}else y.set(nt,!1);return Pe}return Kt.sourceFile}function Ji(Be){const nt=y.get(Be);nt!==void 0&&(tr(nt)?y.set(Be,{version:!1}):nt.version=!1)}function yi(Be,nt){const Dt=y.get(Be);if(!Dt)return;if(Dt.version)return Dt.version;const ir=nt(Be);return ir!==void 0?iL(be,ir):void 0}function os(Be,nt,Dt){const ir=y.get(Be.resolvedPath);ir!==void 0&&(tr(ir)?(S||(S=[])).push(Be.path):ir.sourceFile===Be&&(ir.fileWatcher&&ir.fileWatcher.close(),y.delete(Be.resolvedPath),Dt||De.removeResolutionsOfFile(Be.path)))}function yr(Be){e.onWatchStatusChange&&e.onWatchStatusChange(gc(Be),ae,re||F)}function _i(){return De.hasChangedAutomaticTypeDirectiveNames()}function ln(){return c?(e.clearTimeout(c),c=void 0,!0):!1}function Ht(){if(!e.setTimeout||!e.clearTimeout)return De.invalidateResolutionsOfFailedLookupLocations();const Be=ln();ke(`Scheduling invalidateFailedLookup${Be?", Cancelled earlier one":""}`),c=e.setTimeout(Ue,250,"timerToInvalidateFailedLookupResolutions")}function Ue(){c=void 0,De.invalidateResolutionsOfFailedLookupLocations()&&Et()}function Et(){!e.setTimeout||!e.clearTimeout||(o&&e.clearTimeout(o),ke("Scheduling update"),o=e.setTimeout(Hn,250,"timerToUpdateProgram"))}function fr(){E.assert(!!P),n=2,Et()}function Hn(){o=void 0,d=!0,ei()}function ei(){var Be,nt,Dt,ir;switch(n){case 1:(Be=wu)==null||Be.logStartUpdateProgram("PartialConfigReload"),Ii();break;case 2:(nt=wu)==null||nt.logStartUpdateProgram("FullConfigReload"),ns();break;default:(Dt=wu)==null||Dt.logStartUpdateProgram("SynchronizeProgram"),pt();break}return(ir=wu)==null||ir.logStopUpdateProgram("Done"),at()}function Ii(){ke("Reloading new file names and options"),E.assert(re),E.assert(P),n=0,j=P3(re.configFile.configFileSpecs,Xi(Un(P),w),re,Se,U),GO(j,Xi(P,w),re.configFile.configFileSpecs,pe,H)&&(q=!0),pt()}function ns(){E.assert(P),ke(`Reloading config file: ${P}`),n=0,ee&&ee.clearCache(),Vs(),T=!0,pt(),et(),Ge(Lr(P),re,R,sl.ExtendedConfigFile)}function Vs(){E.assert(P),_a($w(P,F,Se,g||(g=new Map),J,U))}function _a(Be){j=Be.fileNames,re=Be.options,R=Be.watchOptions,Y=Be.projectReferences,ue=Be.wildcardDirectories,pe=sS(Be).slice(),H=E3(Be.raw),q=!0}function cr(Be){const nt=Lr(Be);let Dt=u==null?void 0:u.get(nt);if(Dt){if(!Dt.updateLevel)return Dt.parsedCommandLine;if(Dt.parsedCommandLine&&Dt.updateLevel===1&&!e.getParsedCommandLine){ke("Reloading new file names and options"),E.assert(re);const Yt=P3(Dt.parsedCommandLine.options.configFile.configFileSpecs,Xi(Un(Be),w),re,Se);return Dt.parsedCommandLine={...Dt.parsedCommandLine,fileNames:Yt},Dt.updateLevel=void 0,Dt.parsedCommandLine}}ke(`Loading config file: ${Be}`);const ir=e.getParsedCommandLine?e.getParsedCommandLine(Be):br(Be);return Dt?(Dt.parsedCommandLine=ir,Dt.updateLevel=void 0):(u||(u=new Map)).set(nt,Dt={parsedCommandLine:ir}),mt(Be,nt,Dt),ir}function br(Be){const nt=Se.onUnRecoverableConfigFileDiagnostic;Se.onUnRecoverableConfigFileDiagnostic=Ca;const Dt=$w(Be,void 0,Se,g||(g=new Map),J);return Se.onUnRecoverableConfigFileDiagnostic=nt,Dt}function Le(Be){var nt;const Dt=Lr(Be),ir=u==null?void 0:u.get(Dt);ir&&(u.delete(Dt),ir.watchedDirectories&&T_(ir.watchedDirectories,Qf),(nt=ir.watcher)==null||nt.close(),kq(Dt,f))}function rt(Be,nt,Dt,ir,Yt,Kt){return K(nt,(W,Pe)=>Dt(W,Pe,Be),ir,Yt,Kt)}function tt(Be,nt,Dt){yt(Be,Dt,nt),nt===2&&y.has(Dt)&&De.invalidateResolutionOfFile(Dt),Ji(Dt),Et()}function yt(Be,nt,Dt){ee&&ee.addOrDeleteFile(Be,nt,Dt)}function ne(Be,nt){return u!=null&&u.has(Be)?p6:rt(Be,nt,we,500,R,sl.MissingFile)}function we(Be,nt,Dt){yt(Be,Dt,nt),nt===0&&i.has(Dt)&&(i.get(Dt).close(),i.delete(Dt),Ji(Dt),Et())}function et(){TA(s||(s=new Map),ue,B)}function B(Be,nt){return fe(Be,Dt=>{E.assert(P),E.assert(re);const ir=Lr(Dt);ee&&ee.addOrDeleteFileOrDirectory(Dt,ir),Ji(ir),!xA({watchedDirPath:Lr(Be),fileOrDirectory:Dt,fileOrDirectoryPath:ir,configFileName:P,extraFileExtensions:U,options:re,program:at()||j,currentDirectory:w,useCaseSensitiveFileNames:k,writeLog:ke,toPath:Lr})&&n!==2&&(n=1,Et())},nt,R,sl.WildcardDirectory)}function Ge(Be,nt,Dt,ir){B9(Be,nt,f||(f=new Map),(Yt,Kt)=>K(Yt,(W,Pe)=>{var St;yt(Yt,Kt,Pe),g&&J9(g,Kt,Lr);const A=(St=f.get(Kt))==null?void 0:St.projects;A!=null&&A.size&&A.forEach(le=>{if(P&&Lr(P)===le)n=2;else{const V=u==null?void 0:u.get(le);V&&(V.updateLevel=2),De.removeResolutionsFromProjectReferenceRedirects(le)}Et()})},2e3,Dt,ir),Lr)}function mt(Be,nt,Dt){var ir,Yt,Kt,W;Dt.watcher||(Dt.watcher=K(Be,(Pe,St)=>{yt(Be,nt,St);const A=u==null?void 0:u.get(nt);A&&(A.updateLevel=2),De.removeResolutionsFromProjectReferenceRedirects(nt),Et()},2e3,((ir=Dt.parsedCommandLine)==null?void 0:ir.watchOptions)||R,sl.ConfigFileOfReferencedProject)),TA(Dt.watchedDirectories||(Dt.watchedDirectories=new Map),(Yt=Dt.parsedCommandLine)==null?void 0:Yt.wildcardDirectories,(Pe,St)=>{var A;return fe(Pe,le=>{const V=Lr(le);ee&&ee.addOrDeleteFileOrDirectory(le,V),Ji(V);const ce=u==null?void 0:u.get(nt);ce!=null&&ce.parsedCommandLine&&(xA({watchedDirPath:Lr(Pe),fileOrDirectory:le,fileOrDirectoryPath:V,configFileName:Be,options:ce.parsedCommandLine.options,program:ce.parsedCommandLine.fileNames,currentDirectory:w,useCaseSensitiveFileNames:k,writeLog:ke,toPath:Lr})||ce.updateLevel!==2&&(ce.updateLevel=1,Et()))},St,((A=Dt.parsedCommandLine)==null?void 0:A.watchOptions)||R,sl.WildcardDirectoryOfReferencedProject)}),Ge(nt,(Kt=Dt.parsedCommandLine)==null?void 0:Kt.options,((W=Dt.parsedCommandLine)==null?void 0:W.watchOptions)||R,sl.ExtendedConfigOfReferencedProject)}}var aje=wt({"src/compiler/watchPublic.ts"(){Fs()}});function hH(e){return Zo(e,".json")?e:Mn(e,"tsconfig.json")}var yH,oje=wt({"src/compiler/tsbuild.ts"(){Fs(),yH=(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))(yH||{})}});function cje(e,t,n){const i=e.get(t);let s;return i||(s=n(),e.set(t,s)),i||s}function poe(e,t){return cje(e,t,()=>new Map)}function IA(e){return e.now?e.now():new Date}function Ex(e){return!!e&&!!e.buildOrder}function cL(e){return Ex(e)?e.buildOrder:e}function doe(e,t){return n=>{let i=t?`[${S2(NA(e),"\x1B[90m")}] `:`${NA(e)} - `;i+=`${tm(n.messageText,e.newLine)}${e.newLine+e.newLine}`,e.write(i)}}function OSe(e,t,n,i){const s=mH(e,t);return s.getModifiedTime=e.getModifiedTime?o=>e.getModifiedTime(o):f1,s.setModifiedTime=e.setModifiedTime?(o,c)=>e.setModifiedTime(o,c):Ca,s.deleteFile=e.deleteFile?o=>e.deleteFile(o):Ca,s.reportDiagnostic=n||AA(e),s.reportSolutionBuilderStatus=i||doe(e),s.now=Os(e,e.now),s}function LSe(e=zl,t,n,i,s){const o=OSe(e,t,n,i);return o.reportErrorSummary=s,o}function MSe(e=zl,t,n,i,s){const o=OSe(e,t,n,i),c=fH(e,s);return dB(o,c),o}function lje(e){const t={};return tA.forEach(n=>{Za(e,n.name)&&(t[n.name]=e[n.name])}),t}function RSe(e,t,n){return oTe(!1,e,t,n)}function jSe(e,t,n,i){return oTe(!0,e,t,n,i)}function uje(e,t,n,i,s){const o=t,c=t,u=lje(i),f=dH(o,()=>w.projectCompilerOptions);sL(f),f.getParsedCommandLine=P=>Px(w,P,rm(w,P)),f.resolveModuleNameLiterals=Os(o,o.resolveModuleNameLiterals),f.resolveTypeReferenceDirectiveReferences=Os(o,o.resolveTypeReferenceDirectiveReferences),f.resolveLibrary=Os(o,o.resolveLibrary),f.resolveModuleNames=Os(o,o.resolveModuleNames),f.resolveTypeReferenceDirectives=Os(o,o.resolveTypeReferenceDirectives),f.getModuleResolutionCache=Os(o,o.getModuleResolutionCache);let g,d;!f.resolveModuleNameLiterals&&!f.resolveModuleNames&&(g=e6(f.getCurrentDirectory(),f.getCanonicalFileName),f.resolveModuleNameLiterals=(P,F,J,U,$)=>PA(P,F,J,U,$,o,g,Rq),f.getModuleResolutionCache=()=>g),!f.resolveTypeReferenceDirectiveReferences&&!f.resolveTypeReferenceDirectives&&(d=a9(f.getCurrentDirectory(),f.getCanonicalFileName,void 0,g==null?void 0:g.getPackageJsonInfoCache(),g==null?void 0:g.optionsToRedirectsKey),f.resolveTypeReferenceDirectiveReferences=(P,F,J,U,$)=>PA(P,F,J,U,$,o,d,W9));let y;f.resolveLibrary||(y=e6(f.getCurrentDirectory(),f.getCanonicalFileName,void 0,g==null?void 0:g.getPackageJsonInfoCache()),f.resolveLibrary=(P,F,J)=>o9(P,F,J,o,y)),f.getBuildInfo=(P,F)=>ZSe(w,P,rm(w,F),void 0);const{watchFile:S,watchDirectory:T,writeLog:k}=pH(c,i),w={host:o,hostWithWatch:c,parseConfigFileHost:G9(o),write:Os(o,o.trace),options:i,baseCompilerOptions:u,rootNames:n,baseWatchOptions:s,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:f,moduleResolutionCache:g,typeReferenceDirectiveResolutionCache:d,libraryResolutionCache:y,buildOrder:void 0,readFileWithCache:P=>o.readFile(P),projectCompilerOptions:u,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:S,watchDirectory:T,writeLog:k};return w}function Yf(e,t){return No(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function rm(e,t){const{resolvedConfigFilePaths:n}=e,i=n.get(t);if(i!==void 0)return i;const s=Yf(e,t);return n.set(t,s),s}function BSe(e){return!!e.options}function _je(e,t){const n=e.configFileCache.get(t);return n&&BSe(n)?n:void 0}function Px(e,t,n){const{configFileCache:i}=e,s=i.get(n);if(s)return BSe(s)?s:void 0;Ao("SolutionBuilder::beforeConfigFileParsing");let o;const{parseConfigFileHost:c,baseCompilerOptions:u,baseWatchOptions:f,extendedConfigCache:g,host:d}=e;let y;return d.getParsedCommandLine?(y=d.getParsedCommandLine(t),y||(o=gc(p.File_0_not_found,t))):(c.onUnRecoverableConfigFileDiagnostic=S=>o=S,y=$w(t,u,c,g,f),c.onUnRecoverableConfigFileDiagnostic=Ca),i.set(n,y||o),Ao("SolutionBuilder::afterConfigFileParsing"),bf("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),y}function G3(e,t){return hH(U0(e.compilerHost.getCurrentDirectory(),t))}function JSe(e,t){const n=new Map,i=new Map,s=[];let o,c;for(const f of t)u(f);return c?{buildOrder:o||Ve,circularDiagnostics:c}:o||Ve;function u(f,g){const d=rm(e,f);if(i.has(d))return;if(n.has(d)){g||(c||(c=[])).push(gc(p.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,s.join(`\r -`)));return}n.set(d,!0),s.push(f);const y=Px(e,f,d);if(y&&y.projectReferences)for(const S of y.projectReferences){const T=G3(e,S.path);u(T,g||S.circular)}s.pop(),i.set(d,!0),(o||(o=[])).push(f)}}function lL(e){return e.buildOrder||fje(e)}function fje(e){const t=JSe(e,e.rootNames.map(s=>G3(e,s)));e.resolvedConfigFilePaths.clear();const n=new Set(cL(t).map(s=>rm(e,s))),i={onDeleteValue:Ca};return Tg(e.configFileCache,n,i),Tg(e.projectStatus,n,i),Tg(e.builderPrograms,n,i),Tg(e.diagnostics,n,i),Tg(e.projectPendingBuild,n,i),Tg(e.projectErrorsReported,n,i),Tg(e.buildInfoCache,n,i),Tg(e.outputTimeStamps,n,i),Tg(e.lastCachedPackageJsonLookups,n,i),e.watch&&(Tg(e.allWatchedConfigFiles,n,{onDeleteValue:md}),e.allWatchedExtendedConfigFiles.forEach(s=>{s.projects.forEach(o=>{n.has(o)||s.projects.delete(o)}),s.close()}),Tg(e.allWatchedWildcardDirectories,n,{onDeleteValue:s=>s.forEach(Qf)}),Tg(e.allWatchedInputFiles,n,{onDeleteValue:s=>s.forEach(md)}),Tg(e.allWatchedPackageJsonFiles,n,{onDeleteValue:s=>s.forEach(md)})),e.buildOrder=t}function zSe(e,t,n){const i=t&&G3(e,t),s=lL(e);if(Ex(s))return s;if(i){const c=rm(e,i);if(vc(s,f=>rm(e,f)===c)===-1)return}const o=i?JSe(e,[i]):s;return E.assert(!Ex(o)),E.assert(!n||i!==void 0),E.assert(!n||o[o.length-1]===i),n?o.slice(0,o.length-1):o}function WSe(e){e.cache&&moe(e);const{compilerHost:t,host:n}=e,i=e.readFileWithCache,s=t.getSourceFile,{originalReadFile:o,originalFileExists:c,originalDirectoryExists:u,originalCreateDirectory:f,originalWriteFile:g,getSourceFileWithCache:d,readFileWithCache:y}=CA(n,S=>Yf(e,S),(...S)=>s.call(t,...S));e.readFileWithCache=y,t.getSourceFile=d,e.cache={originalReadFile:o,originalFileExists:c,originalDirectoryExists:u,originalCreateDirectory:f,originalWriteFile:g,originalReadFileWithCache:i,originalGetSourceFile:s}}function moe(e){if(!e.cache)return;const{cache:t,host:n,compilerHost:i,extendedConfigCache:s,moduleResolutionCache:o,typeReferenceDirectiveResolutionCache:c,libraryResolutionCache:u}=e;n.readFile=t.originalReadFile,n.fileExists=t.originalFileExists,n.directoryExists=t.originalDirectoryExists,n.createDirectory=t.originalCreateDirectory,n.writeFile=t.originalWriteFile,i.getSourceFile=t.originalGetSourceFile,e.readFileWithCache=t.originalReadFileWithCache,s.clear(),o==null||o.clear(),c==null||c.clear(),u==null||u.clear(),e.cache=void 0}function VSe(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function USe({projectPendingBuild:e},t,n){const i=e.get(t);(i===void 0||ie.projectPendingBuild.set(rm(e,i),0)),t&&t.throwIfCancellationRequested()}function HSe(e,t){return e.projectPendingBuild.delete(t),e.diagnostics.has(t)?1:0}function pje(e,t,n,i,s){let o=!0;return{kind:2,project:t,projectPath:n,buildOrder:s,getCompilerOptions:()=>i.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),updateOutputFileStatmps:()=>{eTe(e,i,n),o=!1},done:()=>(o&&eTe(e,i,n),Ao("SolutionBuilder::Timestamps only updates"),HSe(e,n))}}function GSe(e,t,n,i,s,o,c){let u=e===0?0:4,f,g,d;return e===0?{kind:e,project:n,projectPath:i,buildOrder:c,getCompilerOptions:()=>o.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>S(Do),getProgram:()=>S(R=>R.getProgramOrUndefined()),getSourceFile:R=>S(Y=>Y.getSourceFile(R)),getSourceFiles:()=>T(R=>R.getSourceFiles()),getOptionsDiagnostics:R=>T(Y=>Y.getOptionsDiagnostics(R)),getGlobalDiagnostics:R=>T(Y=>Y.getGlobalDiagnostics(R)),getConfigFileParsingDiagnostics:()=>T(R=>R.getConfigFileParsingDiagnostics()),getSyntacticDiagnostics:(R,Y)=>T(ue=>ue.getSyntacticDiagnostics(R,Y)),getAllDependencies:R=>T(Y=>Y.getAllDependencies(R)),getSemanticDiagnostics:(R,Y)=>T(ue=>ue.getSemanticDiagnostics(R,Y)),getSemanticDiagnosticsOfNextAffectedFile:(R,Y)=>S(ue=>ue.getSemanticDiagnosticsOfNextAffectedFile&&ue.getSemanticDiagnosticsOfNextAffectedFile(R,Y)),emit:(R,Y,ue,pe,H)=>{if(R||pe)return S(q=>{var ee,oe;return q.emit(R,Y,ue,pe,H||((oe=(ee=t.host).getCustomTransformers)==null?void 0:oe.call(ee,n)))});if(re(2,ue),u===5)return U(Y,ue);if(u===3)return J(Y,ue,H)},done:y}:{kind:e,project:n,projectPath:i,buildOrder:c,getCompilerOptions:()=>o.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),emit:(R,Y)=>u!==4?d:j(R,Y),done:y};function y(R,Y,ue){return re(8,R,Y,ue),Ao(e===0?"SolutionBuilder::Projects built":"SolutionBuilder::Bundles updated"),HSe(t,i)}function S(R){return re(0),f&&R(f)}function T(R){return S(R)||Ve}function k(){var R,Y,ue;if(E.assert(f===void 0),t.options.dry){Yu(t,p.A_non_dry_build_would_build_project_0,n),g=1,u=7;return}if(t.options.verbose&&Yu(t,p.Building_project_0,n),o.fileNames.length===0){$3(t,i,sS(o)),g=0,u=7;return}const{host:pe,compilerHost:H}=t;if(t.projectCompilerOptions=o.options,(R=t.moduleResolutionCache)==null||R.update(o.options),(Y=t.typeReferenceDirectiveResolutionCache)==null||Y.update(o.options),f=pe.createProgram(o.fileNames,o.options,H,mje(t,i,o),sS(o),o.projectReferences),t.watch){const q=(ue=t.moduleResolutionCache)==null?void 0:ue.getPackageJsonInfoCache().getInternalMap();t.lastCachedPackageJsonLookups.set(i,q&&new Set(gs(q.values(),ee=>t.host.realpath&&(s9(ee)||ee.directoryExists)?t.host.realpath(Mn(ee.packageDirectory,"package.json")):Mn(ee.packageDirectory,"package.json")))),t.builderPrograms.set(i,f)}u++}function w(R,Y,ue){R.length?{buildResult:g,step:u}=yoe(t,i,f,o,R,Y,ue):u++}function P(R){E.assertIsDefined(f),w([...f.getConfigFileParsingDiagnostics(),...f.getOptionsDiagnostics(R),...f.getGlobalDiagnostics(R),...f.getSyntacticDiagnostics(void 0,R)],8,"Syntactic")}function F(R){w(E.checkDefined(f).getSemanticDiagnostics(void 0,R),16,"Semantic")}function J(R,Y,ue){var pe,H,q;E.assertIsDefined(f),E.assert(u===3);const ee=f.saveEmitState();let oe;const Se=Fe=>(oe||(oe=[])).push(Fe),ae=[],{emitResult:K}=nL(f,Se,void 0,void 0,(Fe,$e,Pt,at,Je,pt)=>ae.push({name:Fe,text:$e,writeByteOrderMark:Pt,data:pt}),Y,!1,ue||((H=(pe=t.host).getCustomTransformers)==null?void 0:H.call(pe,n)));if(oe)return f.restoreEmitState(ee),{buildResult:g,step:u}=yoe(t,i,f,o,oe,32,"Declaration file"),{emitSkipped:!0,diagnostics:K.diagnostics};const{host:fe,compilerHost:ke}=t,Oe=(q=f.hasChangedEmitSignature)!=null&&q.call(f)?0:2,me=yC(),be=new Map,xe=f.getCompilerOptions(),De=i3(xe);let ft,ge;return ae.forEach(({name:Fe,text:$e,writeByteOrderMark:Pt,data:at})=>{const Je=Yf(t,Fe);be.set(Yf(t,Fe),Fe),at!=null&&at.buildInfo&&boe(t,at.buildInfo,i,xe,Oe);const pt=at!=null&&at.differsOnlyInMap?xT(t.host,Fe):void 0;AE(R?{writeFile:R}:ke,me,Fe,$e,Pt),at!=null&&at.differsOnlyInMap?t.host.setModifiedTime(Fe,pt):!De&&t.watch&&(ft||(ft=voe(t,i))).set(Je,ge||(ge=IA(t.host)))}),$(me,be,ae.length?ae[0].name:Sq(o,!fe.useCaseSensitiveFileNames()),Oe),K}function U(R,Y){E.assertIsDefined(f),E.assert(u===5);const ue=f.emitBuildInfo((pe,H,q,ee,oe,Se)=>{Se!=null&&Se.buildInfo&&boe(t,Se.buildInfo,i,f.getCompilerOptions(),2),R?R(pe,H,q,ee,oe,Se):t.compilerHost.writeFile(pe,H,q,ee,oe,Se)},Y);return ue.diagnostics.length&&(_L(t,ue.diagnostics),t.diagnostics.set(i,[...t.diagnostics.get(i),...ue.diagnostics]),g=64&g),ue.emittedFiles&&t.write&&ue.emittedFiles.forEach(pe=>QSe(t,o,pe)),hoe(t,f,o),u=7,ue}function $(R,Y,ue,pe){const H=R.getDiagnostics();return H.length?({buildResult:g,step:u}=yoe(t,i,f,o,H,64,"Emit"),H):(t.write&&Y.forEach(q=>QSe(t,o,q)),KSe(t,o,i,p.Updating_unchanged_output_timestamps_of_project_0,Y),t.diagnostics.delete(i),t.projectStatus.set(i,{type:1,oldestOutputFileName:ue}),hoe(t,f,o),u=7,g=pe,H)}function j(R,Y){var ue,pe,H,q;if(E.assert(e===1),t.options.dry){Yu(t,p.A_non_dry_build_would_update_output_of_project_0,n),g=1,u=7;return}t.options.verbose&&Yu(t,p.Updating_output_of_project_0,n);const{compilerHost:ee}=t;t.projectCompilerOptions=o.options,(pe=(ue=t.host).beforeEmitBundle)==null||pe.call(ue,o);const oe=Dae(o,ee,Oe=>{const me=G3(t,Oe.path);return Px(t,me,rm(t,me))},Y||((q=(H=t.host).getCustomTransformers)==null?void 0:q.call(H,n)));if(ls(oe))return Yu(t,p.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,n,Fl(t,oe)),u=6,d=GSe(0,t,n,i,s,o,c);E.assert(!!oe.length);const Se=yC(),ae=new Map;let K=2;const fe=t.buildInfoCache.get(i).buildInfo||void 0;return oe.forEach(({name:Oe,text:me,writeByteOrderMark:be,data:xe})=>{var De,ft;ae.set(Yf(t,Oe),Oe),xe!=null&&xe.buildInfo&&(((De=xe.buildInfo.program)==null?void 0:De.outSignature)!==((ft=fe==null?void 0:fe.program)==null?void 0:ft.outSignature)&&(K&=-3),boe(t,xe.buildInfo,i,o.options,K)),AE(R?{writeFile:R}:ee,Se,Oe,me,be)}),{emitSkipped:!1,diagnostics:$(Se,ae,oe[0].name,K)}}function re(R,Y,ue,pe){for(;u<=R&&u<8;){const H=u;switch(u){case 0:k();break;case 1:P(Y);break;case 2:F(Y);break;case 3:J(ue,Y,pe);break;case 5:U(ue,Y);break;case 4:j(ue,pe);break;case 6:E.checkDefined(d).done(Y,ue,pe),u=8;break;case 7:vje(t,n,i,s,o,c,E.checkDefined(g)),u++;break}E.assert(u>H)}}}function dje({options:e},t,n){return t.type!==3||e.force?!0:n.fileNames.length===0||!!sS(n).length||!i3(n.options)}function $Se(e,t,n){if(!e.projectPendingBuild.size||Ex(t))return;const{options:i,projectPendingBuild:s}=e;for(let o=0;o{const T=E.checkDefined(e.filesWatched.get(u));E.assert(vH(T)),T.modifiedTime=S,T.callbacks.forEach(k=>k(d,y,S))},i,s,o,c);e.filesWatched.set(u,{callbacks:[n],watcher:g,modifiedTime:f})}return{close:()=>{const g=E.checkDefined(e.filesWatched.get(u));E.assert(vH(g)),g.callbacks.length===1?(e.filesWatched.delete(u),Qf(g)):ST(g.callbacks,n)}}}function voe(e,t){if(!e.watch)return;let n=e.outputTimeStamps.get(t);return n||e.outputTimeStamps.set(t,n=new Map),n}function boe(e,t,n,i,s){const o=c0(i),c=Soe(e,o,n),u=IA(e.host);c?(c.buildInfo=t,c.modifiedTime=u,s&2||(c.latestChangedDtsTime=u)):e.buildInfoCache.set(n,{path:Yf(e,o),buildInfo:t,modifiedTime:u,latestChangedDtsTime:s&2?void 0:u})}function Soe(e,t,n){const i=Yf(e,t),s=e.buildInfoCache.get(n);return(s==null?void 0:s.path)===i?s:void 0}function ZSe(e,t,n,i){const s=Yf(e,t),o=e.buildInfoCache.get(n);if(o!==void 0&&o.path===s)return o.buildInfo||void 0;const c=e.readFileWithCache(t),u=c?M9(t,c):void 0;return e.buildInfoCache.set(n,{path:s,buildInfo:u||!1,modifiedTime:i||rf}),u}function Toe(e,t,n,i){const s=YSe(e,t);if(nP&&(w=H,P=q),T&&J.add(Yf(e,H))}if(T){k||(k=Zq(T,g,f));for(const H of k.roots)if(!J.has(H))return{type:10,buildInfoFile:g,inputFile:H}}if(!g){const H=O9(t,!f.useCaseSensitiveFileNames()),q=voe(e,n);for(const ee of H){const oe=Yf(e,ee);let Se=q==null?void 0:q.get(oe);if(Se||(Se=xT(e.host,ee),q==null||q.set(oe,Se)),Se===rf)return{type:4,missingOutputFileName:ee};if(SeToe(e,H,y,d));if(Y)return Y;const ue=e.lastCachedPackageJsonLookups.get(n),pe=ue&&Am(ue,H=>Toe(e,H,y,d));return pe||(j&&$?{type:3,outOfDateOutputFileName:d,newerProjectName:re}:{type:$?2:F?15:1,newestInputFileTime:P,newestInputFileName:w,oldestOutputFileName:d})}function hje(e,t,n){return e.buildInfoCache.get(n).path===t.path}function xoe(e,t,n){if(t===void 0)return{type:0,reason:"File deleted mid-build"};const i=e.projectStatus.get(n);if(i!==void 0)return i;Ao("SolutionBuilder::beforeUpToDateCheck");const s=gje(e,t,n);return Ao("SolutionBuilder::afterUpToDateCheck"),bf("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),e.projectStatus.set(n,s),s}function KSe(e,t,n,i,s){if(t.options.noEmit)return;let o;const c=c0(t.options);if(c){s!=null&&s.has(Yf(e,c))||(e.options.verbose&&Yu(e,i,t.options.configFilePath),e.host.setModifiedTime(c,o=IA(e.host)),Soe(e,c,n).modifiedTime=o),e.outputTimeStamps.delete(n);return}const{host:u}=e,f=O9(t,!u.useCaseSensitiveFileNames()),g=voe(e,n),d=g?new Set:void 0;if(!s||f.length!==s.size){let y=!!e.options.verbose;for(const S of f){const T=Yf(e,S);s!=null&&s.has(T)||(y&&(y=!1,Yu(e,i,t.options.configFilePath)),u.setModifiedTime(S,o||(o=IA(e.host))),g&&(g.set(T,o),d.add(T)))}}g==null||g.forEach((y,S)=>{!(s!=null&&s.has(S))&&!d.has(S)&&g.delete(S)})}function yje(e,t,n){if(!t.composite)return;const i=E.checkDefined(e.buildInfoCache.get(n));if(i.latestChangedDtsTime!==void 0)return i.latestChangedDtsTime||void 0;const s=i.buildInfo&&i.buildInfo.program&&i.buildInfo.program.latestChangedDtsFile?e.host.getModifiedTime(Xi(i.buildInfo.program.latestChangedDtsFile,Un(i.path))):void 0;return i.latestChangedDtsTime=s||!1,s}function eTe(e,t,n){if(e.options.dry)return Yu(e,p.A_non_dry_build_would_update_timestamps_for_output_of_project_0,t.options.configFilePath);KSe(e,t,n,p.Updating_output_timestamps_of_project_0),e.projectStatus.set(n,{type:1,oldestOutputFileName:Sq(t,!e.host.useCaseSensitiveFileNames())})}function vje(e,t,n,i,s,o,c){if(!(c&124)&&s.options.composite)for(let u=i+1;ue.diagnostics.has(rm(e,g)))?f?2:1:0}function rTe(e,t,n){Ao("SolutionBuilder::beforeClean");const i=Sje(e,t,n);return Ao("SolutionBuilder::afterClean"),bf("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),i}function Sje(e,t,n){const i=zSe(e,t,n);if(!i)return 3;if(Ex(i))return _L(e,i.circularDiagnostics),4;const{options:s,host:o}=e,c=s.dry?[]:void 0;for(const u of i){const f=rm(e,u),g=Px(e,u,f);if(g===void 0){cTe(e,f);continue}const d=O9(g,!o.useCaseSensitiveFileNames());if(!d.length)continue;const y=new Set(g.fileNames.map(S=>Yf(e,S)));for(const S of d)y.has(Yf(e,S))||o.fileExists(S)&&(c?c.push(S):(o.deleteFile(S),koe(e,f,0)))}return c&&Yu(e,p.A_non_dry_build_would_delete_the_following_files_Colon_0,c.map(u=>`\r - * ${u}`).join("")),0}function koe(e,t,n){e.host.getParsedCommandLine&&n===1&&(n=2),n===2&&(e.configFileCache.delete(t),e.buildOrder=void 0),e.needsSummary=!0,VSe(e,t),USe(e,t,n),WSe(e)}function uL(e,t,n){e.reportFileChangeDetected=!0,koe(e,t,n),nTe(e,250,!0)}function nTe(e,t,n){const{hostWithWatch:i}=e;!i.setTimeout||!i.clearTimeout||(e.timerToBuildInvalidatedProject&&i.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=i.setTimeout(Tje,t,"timerToBuildInvalidatedProject",e,n))}function Tje(e,t,n){Ao("SolutionBuilder::beforeBuild");const i=xje(t,n);Ao("SolutionBuilder::afterBuild"),bf("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),i&&lTe(t,i)}function xje(e,t){e.timerToBuildInvalidatedProject=void 0,e.reportFileChangeDetected&&(e.reportFileChangeDetected=!1,e.projectErrorsReported.clear(),Poe(e,p.File_change_detected_Starting_incremental_compilation));let n=0;const i=lL(e),s=goe(e,i,!1);if(s)for(s.done(),n++;e.projectPendingBuild.size;){if(e.timerToBuildInvalidatedProject)return;const o=$Se(e,i,!1);if(!o)break;if(o.kind!==2&&(t||n===5)){nTe(e,100,!1);return}XSe(e,o,i).done(),o.kind!==2&&n++}return moe(e),i}function iTe(e,t,n,i){!e.watch||e.allWatchedConfigFiles.has(n)||e.allWatchedConfigFiles.set(n,bH(e,t,()=>uL(e,n,2),2e3,i==null?void 0:i.watchOptions,sl.ConfigFile,t))}function sTe(e,t,n){B9(t,n==null?void 0:n.options,e.allWatchedExtendedConfigFiles,(i,s)=>bH(e,i,()=>{var o;return(o=e.allWatchedExtendedConfigFiles.get(s))==null?void 0:o.projects.forEach(c=>uL(e,c,2))},2e3,n==null?void 0:n.watchOptions,sl.ExtendedConfigFile),i=>Yf(e,i))}function aTe(e,t,n,i){e.watch&&TA(poe(e.allWatchedWildcardDirectories,n),i.wildcardDirectories,(s,o)=>e.watchDirectory(s,c=>{var u;xA({watchedDirPath:Yf(e,s),fileOrDirectory:c,fileOrDirectoryPath:Yf(e,c),configFileName:t,currentDirectory:e.compilerHost.getCurrentDirectory(),options:i.options,program:e.builderPrograms.get(n)||((u=_je(e,n))==null?void 0:u.fileNames),useCaseSensitiveFileNames:e.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:f=>e.writeLog(f),toPath:f=>Yf(e,f)})||uL(e,n,1)},o,i==null?void 0:i.watchOptions,sl.WildcardDirectory,t))}function Coe(e,t,n,i){e.watch&&zE(poe(e.allWatchedInputFiles,n),new Set(i.fileNames),{createNewValue:s=>bH(e,s,()=>uL(e,n,0),250,i==null?void 0:i.watchOptions,sl.SourceFile,t),onDeleteValue:md})}function Eoe(e,t,n,i){!e.watch||!e.lastCachedPackageJsonLookups||zE(poe(e.allWatchedPackageJsonFiles,n),e.lastCachedPackageJsonLookups.get(n),{createNewValue:s=>bH(e,s,()=>uL(e,n,0),2e3,i==null?void 0:i.watchOptions,sl.PackageJson,t),onDeleteValue:md})}function kje(e,t){if(e.watchAllProjectsPending){Ao("SolutionBuilder::beforeWatcherCreation"),e.watchAllProjectsPending=!1;for(const n of cL(t)){const i=rm(e,n),s=Px(e,n,i);iTe(e,n,i,s),sTe(e,i,s),s&&(aTe(e,n,i,s),Coe(e,n,i,s),Eoe(e,n,i,s))}Ao("SolutionBuilder::afterWatcherCreation"),bf("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}}function Cje(e){T_(e.allWatchedConfigFiles,md),T_(e.allWatchedExtendedConfigFiles,Qf),T_(e.allWatchedWildcardDirectories,t=>T_(t,Qf)),T_(e.allWatchedInputFiles,t=>T_(t,md)),T_(e.allWatchedPackageJsonFiles,t=>T_(t,md))}function oTe(e,t,n,i,s){const o=uje(e,t,n,i,s);return{build:(c,u,f,g)=>tTe(o,c,u,f,g),clean:c=>rTe(o,c),buildReferences:(c,u,f,g)=>tTe(o,c,u,f,g,!0),cleanReferences:c=>rTe(o,c,!0),getNextInvalidatedProject:c=>(qSe(o,c),goe(o,lL(o),!1)),getBuildOrder:()=>lL(o),getUpToDateStatusOfProject:c=>{const u=G3(o,c),f=rm(o,u);return xoe(o,Px(o,u,f),f)},invalidateProject:(c,u)=>koe(o,c,u||0),close:()=>Cje(o)}}function Fl(e,t){return Y4(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function Yu(e,t,...n){e.host.reportSolutionBuilderStatus(gc(t,...n))}function Poe(e,t,...n){var i,s;(s=(i=e.hostWithWatch).onWatchStatusChange)==null||s.call(i,gc(t,...n),e.host.getNewLine(),e.baseCompilerOptions)}function _L({host:e},t){t.forEach(n=>e.reportDiagnostic(n))}function $3(e,t,n){_L(e,n),e.projectErrorsReported.set(t,!0),n.length&&e.diagnostics.set(t,n)}function cTe(e,t){$3(e,t,[e.configFileCache.get(t)])}function lTe(e,t){if(!e.needsSummary)return;e.needsSummary=!1;const n=e.watch||!!e.host.reportErrorSummary,{diagnostics:i}=e;let s=0,o=[];Ex(t)?(uTe(e,t.buildOrder),_L(e,t.circularDiagnostics),n&&(s+=tL(t.circularDiagnostics)),n&&(o=[...o,...rL(t.circularDiagnostics)])):(t.forEach(c=>{const u=rm(e,c);e.projectErrorsReported.has(u)||_L(e,i.get(u)||Ve)}),n&&i.forEach(c=>s+=tL(c)),n&&i.forEach(c=>[...o,...rL(c)])),e.watch?Poe(e,sH(s),s):e.host.reportErrorSummary&&e.host.reportErrorSummary(s,o)}function uTe(e,t){e.options.verbose&&Yu(e,p.Projects_in_this_build_Colon_0,t.map(n=>`\r - * `+Fl(e,n)).join(""))}function Eje(e,t,n){switch(n.type){case 6:return Yu(e,p.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,Fl(e,t),Fl(e,n.outOfDateOutputFileName),Fl(e,n.newerInputFileName));case 7:return Yu(e,p.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,Fl(e,t),Fl(e,n.outOfDateOutputFileName),Fl(e,n.newerProjectName));case 4:return Yu(e,p.Project_0_is_out_of_date_because_output_file_1_does_not_exist,Fl(e,t),Fl(e,n.missingOutputFileName));case 5:return Yu(e,p.Project_0_is_out_of_date_because_there_was_error_reading_file_1,Fl(e,t),Fl(e,n.fileName));case 8:return Yu(e,p.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,Fl(e,t),Fl(e,n.buildInfoFile));case 9:return Yu(e,p.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,Fl(e,t),Fl(e,n.buildInfoFile));case 10:return Yu(e,p.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,Fl(e,t),Fl(e,n.buildInfoFile),Fl(e,n.inputFile));case 1:if(n.newestInputFileTime!==void 0)return Yu(e,p.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,Fl(e,t),Fl(e,n.newestInputFileName||""),Fl(e,n.oldestOutputFileName||""));break;case 3:return Yu(e,p.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,Fl(e,t),Fl(e,n.newerProjectName));case 2:return Yu(e,p.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,Fl(e,t));case 15:return Yu(e,p.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,Fl(e,t));case 11:return Yu(e,p.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,Fl(e,t),Fl(e,n.upstreamProjectName));case 12:return Yu(e,n.upstreamProjectBlocked?p.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:p.Project_0_can_t_be_built_because_its_dependency_1_has_errors,Fl(e,t),Fl(e,n.upstreamProjectName));case 0:return Yu(e,p.Failed_to_parse_file_0_Colon_1,Fl(e,t),n.reason);case 14:return Yu(e,p.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,Fl(e,t),n.version,yf);case 17:return Yu(e,p.Project_0_is_being_forcibly_rebuilt,Fl(e,t))}}function SH(e,t,n){e.options.verbose&&Eje(e,t,n)}var _Te,fTe,TH,Pje=wt({"src/compiler/tsbuildPublic.ts"(){Fs(),mb(),_Te=new Date(-864e13),fTe=new Date(864e13),TH=(e=>(e[e.Build=0]="Build",e[e.UpdateBundle=1]="UpdateBundle",e[e.UpdateOutputFileStamps=2]="UpdateOutputFileStamps",e))(TH||{})}}),Fs=wt({"src/compiler/_namespaces/ts.ts"(){QI(),j5e(),B5e(),X5e(),Z5e(),K5e(),uFe(),F0e(),vFe(),kFe(),CFe(),AFe(),MFe(),OOe(),LOe(),MOe(),ROe(),UOe(),qOe(),HOe(),GOe(),b9e(),S9e(),N9e(),X9e(),SLe(),PLe(),DLe(),WLe(),$Le(),rMe(),lMe(),TMe(),xMe(),IMe(),FMe(),OMe(),zMe(),WMe(),VMe(),UMe(),qMe(),HMe(),GMe(),$Me(),XMe(),ZMe(),KMe(),eRe(),tRe(),rRe(),iRe(),sRe(),aRe(),oRe(),cRe(),lRe(),mRe(),SRe(),NRe(),FRe(),RRe(),jRe(),BRe(),ZRe(),KRe(),rje(),sje(),aje(),oje(),Pje(),Ase(),mb()}});function pTe(e){return zl.args.includes(e)}function dTe(e){const t=zl.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"})(kH||(kH={})),Doe=` - `}}),wje=wt({"src/jsTyping/types.ts"(){}}),mL=wt({"src/jsTyping/_namespaces/ts.server.ts"(){Dje(),wje()}});function gTe(e,t){return new Rp(t7(t,`ts${R0}`)||t7(t,"latest")).compareTo(e.version)<=0}function hTe(e){return Foe.has(e)?"node":e}function Aje(e,t){const n=Xw(t,i=>e.readFile(i));return new Map(Object.entries(n.config))}function Nje(e,t){var n;const i=Xw(t,s=>e.readFile(s));if((n=i.config)!=null&&n.simpleMap)return new Map(Object.entries(i.config.simpleMap))}function Ije(e,t,n,i,s,o,c,u,f,g){if(!c||!c.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};const d=new Map;n=Ri(n,$=>{const j=Hs($);if(Kv(j))return j});const y=[];c.include&&F(c.include,"Explicitly included types");const S=c.exclude||[];if(!g.types){const $=new Set(n.map(Un));$.add(i),$.forEach(j=>{J(j,"bower.json","bower_components",y),J(j,"package.json","node_modules",y)})}if(c.disableFilenameBasedTypeAcquisition||U(n),u){const $=Nv(u.map(hTe),pb,mu);F($,"Inferred typings from unresolved imports")}for(const $ of S)d.delete($)&&t&&t(`Typing for ${$} is in exclude list, will be ignored.`);o.forEach(($,j)=>{const re=f.get(j);d.get(j)===!1&&re!==void 0&&gTe($,re)&&d.set(j,$.typingLocation)});const T=[],k=[];d.forEach(($,j)=>{$?k.push($):T.push(j)});const w={cachedTypingPaths:k,newTypingNames:T,filesToWatch:y};return t&&t(`Finished typings discovery:${q1(w)}`),w;function P($){d.has($)||d.set($,!1)}function F($,j){t&&t(`${j}: ${JSON.stringify($)}`),er($,P)}function J($,j,re,R){const Y=Mn($,j);let ue,pe;e.fileExists(Y)&&(R.push(Y),ue=Xw(Y,oe=>e.readFile(oe)).config,pe=Zs([ue.dependencies,ue.devDependencies,ue.optionalDependencies,ue.peerDependencies],ug),F(pe,`Typing names in '${Y}' dependencies`));const H=Mn($,re);if(R.push(H),!e.directoryExists(H))return;const q=[],ee=pe?pe.map(oe=>Mn(H,oe,j)):e.readDirectory(H,[".json"],void 0,void 0,3).filter(oe=>{if(wc(oe)!==j)return!1;const Se=ll(Hs(oe)),ae=Se[Se.length-3][0]==="@";return ae&&km(Se[Se.length-4])===re||!ae&&km(Se[Se.length-3])===re});t&&t(`Searching for typing names in ${H}; all files: ${JSON.stringify(ee)}`);for(const oe of ee){const Se=Hs(oe),K=Xw(Se,ke=>e.readFile(ke)).config;if(!K.name)continue;const fe=K.types||K.typings;if(fe){const ke=Xi(fe,Un(Se));e.fileExists(ke)?(t&&t(` Package '${K.name}' provides its own types.`),d.set(K.name,ke)):t&&t(` Package '${K.name}' provides its own types but they are missing.`)}else q.push(K.name)}F(q," Found package names")}function U($){const j=Ri($,R=>{if(!Kv(R))return;const Y=$u(km(wc(R))),ue=hB(Y);return s.get(ue)});j.length&&F(j,"Inferred typings from file names"),ct($,R=>Zo(R,".jsx"))&&(t&&t("Inferred 'react' typings due to presence of '.jsx' extension"),P("react"))}}function Fje(e){return woe(e,!0)}function woe(e,t){if(!e)return 1;if(e.length>Loe)return 2;if(e.charCodeAt(0)===46)return 3;if(e.charCodeAt(0)===95)return 4;if(t){const n=/^@([^/]+)\/([^/]+)$/.exec(e);if(n){const i=woe(n[1],!1);if(i!==0)return{name:n[1],isScopeName:!0,result:i};const s=woe(n[2],!1);return s!==0?{name:n[2],isScopeName:!1,result:s}:0}}return encodeURIComponent(e)!==e?5:0}function Oje(e,t){return typeof e=="object"?yTe(t,e.result,e.name,e.isScopeName):yTe(t,e,t,!1)}function yTe(e,t,n,i){const s=i?"Scope":"Package";switch(t){case 1:return`'${e}':: ${s} name '${n}' cannot be empty`;case 2:return`'${e}':: ${s} name '${n}' should be less than ${Loe} characters`;case 3:return`'${e}':: ${s} name '${n}' cannot start with '.'`;case 4:return`'${e}':: ${s} name '${n}' cannot start with '_'`;case 5:return`'${e}':: ${s} name '${n}' contains non URI safe characters`;case 0:return E.fail();default:E.assertNever(t)}}var Aoe,Noe,Ioe,Foe,Ooe,Loe,Lje=wt({"src/jsTyping/jsTyping.ts"(){MA(),mL(),Aoe=["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"],Noe=Aoe.map(e=>`node:${e}`),Ioe=[...Aoe,...Noe],Foe=new Set(Ioe),Ooe=(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))(Ooe||{}),Loe=214}}),nm={};vl(nm,{NameValidationResult:()=>Ooe,discoverTypings:()=>Ije,isTypingUpToDate:()=>gTe,loadSafeList:()=>Aje,loadTypesMap:()=>Nje,nodeCoreModuleList:()=>Ioe,nodeCoreModules:()=>Foe,nonRelativeModuleNameForTypingCache:()=>hTe,prefixedNodeCoreModuleList:()=>Noe,renderPackageNameValidationFailure:()=>Oje,validatePackageName:()=>Fje});var Mje=wt({"src/jsTyping/_namespaces/ts.JsTyping.ts"(){Lje()}}),MA=wt({"src/jsTyping/_namespaces/ts.ts"(){Fs(),Mje(),mL()}});function gL(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 hL,CH,EH,PH,Zf,DH,wH,AH,NH,IH,FH,OH,Moe,RA,LH,MH,RH,jH,BH,JH,zH,WH,VH,Rje=wt({"src/services/types.ts"(){(e=>{class t{constructor(s){this.text=s}getText(s,o){return s===0&&o===this.text.length?this.text:this.text.substring(s,o)}getLength(){return this.text.length}getChangeRange(){}}function n(i){return new t(i)}e.fromString=n})(hL||(hL={})),CH=(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))(CH||{}),EH=(e=>(e[e.Off=0]="Off",e[e.On=1]="On",e[e.Auto=2]="Auto",e))(EH||{}),PH=(e=>(e[e.Semantic=0]="Semantic",e[e.PartialSemantic=1]="PartialSemantic",e[e.Syntactic=2]="Syntactic",e))(PH||{}),Zf={},DH=(e=>(e.Original="original",e.TwentyTwenty="2020",e))(DH||{}),wH=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(wH||{}),AH=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(AH||{}),NH=(e=>(e.Type="Type",e.Parameter="Parameter",e.Enum="Enum",e))(NH||{}),IH=(e=>(e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference",e))(IH||{}),FH=(e=>(e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart",e))(FH||{}),OH=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(OH||{}),Moe=gL(` -`),RA=(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))(RA||{}),LH=(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))(LH||{}),MH=(e=>(e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports",e))(MH||{}),RH=(e=>(e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration",e))(RH||{}),jH=(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))(jH||{}),BH=(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))(BH||{}),JH=(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))(JH||{}),zH=(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))(zH||{}),WH=(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))(WH||{}),VH=(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))(VH||{})}});function jA(e){switch(e.kind){case 260:return Hr(e)&&GJ(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 su(e)||ch(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 oS(e){e=rG(e);const t=e.parent;return e.kind===312?1:oc(t)||vu(t)||Bm(t)||x_(t)||Rm(t)||El(t)&&e===t.name?7:yL(e)?jje(e):eh(e)?jA(t):b_(e)&&Pr(e,pd(v3,IT,M1))?7:Wje(e)?2:Bje(e)?4:Vo(t)?(E.assert(Cp(t.parent)),2):fy(t)?3:1}function jje(e){const t=e.kind===166?e:Xu(e.parent)&&e.parent.right===e?e.parent:void 0;return t&&t.parent.kind===271?7:4}function yL(e){for(;e.parent.kind===166;)e=e.parent;return oC(e.parent)&&e.parent.moduleReference===e}function Bje(e){return Jje(e)||zje(e)}function Jje(e){let t=e,n=!0;if(t.parent.kind===166){for(;t.parent&&t.parent.kind===166;)t=t.parent;n=t.right===e}return t.parent.kind===183&&!n}function zje(e){let t=e,n=!0;if(t.parent.kind===211){for(;t.parent&&t.parent.kind===211;)t=t.parent;n=t.name===e}if(!n&&t.parent.kind===233&&t.parent.parent.kind===298){const 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(ME(e)&&(e=e.parent),e.kind){case 110:return!hg(e);case 197:return!0}switch(e.parent.kind){case 183:return!0;case 205:return!e.parent.isTypeOf;case 233:return gg(e.parent)}return!1}function UH(e,t=!1,n=!1){return BA(e,Rs,HH,t,n)}function Y3(e,t=!1,n=!1){return BA(e,a2,HH,t,n)}function qH(e,t=!1,n=!1){return BA(e,zd,HH,t,n)}function Roe(e,t=!1,n=!1){return BA(e,o2,Vje,t,n)}function joe(e,t=!1,n=!1){return BA(e,ql,HH,t,n)}function Boe(e,t=!1,n=!1){return BA(e,Fu,Uje,t,n)}function HH(e){return e.expression}function Vje(e){return e.tag}function Uje(e){return e.tagName}function BA(e,t,n,i,s){let o=i?Joe(e):vL(e);return s&&(o=xc(o)),!!o&&!!o.parent&&t(o.parent)&&n(o.parent)===o}function vL(e){return m6(e)?e.parent:e}function Joe(e){return m6(e)||QH(e)?e.parent:e}function bL(e,t){for(;e;){if(e.kind===256&&e.label.escapedText===t)return e.label;e=e.parent}}function JA(e,t){return Sn(e.expression)?e.expression.name.text===t:!1}function zA(e){var t;return Ie(e)&&((t=Wn(e.parent,aE))==null?void 0:t.label)===e}function GH(e){var t;return Ie(e)&&((t=Wn(e.parent,c2))==null?void 0:t.label)===e}function $H(e){return GH(e)||zA(e)}function XH(e){var t;return((t=Wn(e.parent,Xk))==null?void 0:t.tagName)===e}function zoe(e){var t;return((t=Wn(e.parent,Xu))==null?void 0:t.right)===e}function m6(e){var t;return((t=Wn(e.parent,Sn))==null?void 0:t.name)===e}function QH(e){var t;return((t=Wn(e.parent,ko))==null?void 0:t.argumentExpression)===e}function YH(e){var t;return((t=Wn(e.parent,Sc))==null?void 0:t.name)===e}function ZH(e){var t;return Ie(e)&&((t=Wn(e.parent,As))==null?void 0:t.name)===e}function SL(e){switch(e.parent.kind){case 172:case 171:case 303:case 306:case 174:case 173:case 177:case 178:case 267:return us(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 Woe(e){return C1(e.parent.parent)&&bE(e.parent.parent)===e}function cS(e){for(hp(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 T2(e){switch(e.kind){case 312:return Ic(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(Hd(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:const{initializer:n}=e;return As(n)?"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 Rn(e,31)?"property":"parameter";case 271:case 276:case 281:case 274:case 280:return"alias";case 226:const i=fc(e),{right:s}=e;switch(i){case 7:case 8:case 9:case 0:return"";case 1:case 2:const c=T2(s);return c===""?"const":c;case 3:return co(s)?"method":"property";case 4:return"property";case 5:return co(s)?"method":"property";case 6:return"local class";default:return""}case 80:return Rm(e.parent)?"alias":"";case 277:const o=T2(e.expression);return o===""?"const":o;default:return""}function t(n){return tC(n)?"const":g5(n)?"let":"var"}}function g6(e){switch(e.kind){case 110:return!0;case 80:return pW(e)&&e.parent.kind===169;default:return!1}}function Ep(e,t){const n=$g(t),i=t.getLineAndCharacterOfPosition(e).line;return n[i]}function Df(e,t){return KH(e.pos,e.end,t)}function Voe(e,t){return VA(e,t.pos)&&VA(e,t.end)}function WA(e,t){return e.pos<=t&&t<=e.end}function VA(e,t){return e.pos=n.end}function UA(e,t,n){return e.pos<=t&&e.end>=n}function Z3(e,t,n){return xL(e.pos,e.end,t,n)}function TL(e,t,n,i){return xL(e.getStart(t),e.end,n,i)}function xL(e,t,n,i){const s=Math.max(e,n),o=Math.min(t,i);return si.kind===t)}function kL(e){const t=wn(e.parent.getChildren(),n=>qC(n)&&Df(n,e));return E.assert(!t||bs(t.getChildren(),e)),t}function vTe(e){return e.kind===90}function qje(e){return e.kind===86}function Hje(e){return e.kind===100}function Gje(e){if(Nu(e))return e.name;if(Xc(e)){const t=e.modifiers&&wn(e.modifiers,vTe);if(t)return t}if(kl(e)){const t=wn(e.getChildren(),qje);if(t)return t}}function $je(e){if(Nu(e))return e.name;if($c(e)){const t=wn(e.modifiers,vTe);if(t)return t}if(co(e)){const t=wn(e.getChildren(),Hje);if(t)return t}}function Xje(e){let t;return Pr(e,n=>(ki(n)&&(t=n),!Xu(n.parent)&&!ki(n.parent)&&!Sb(n.parent))),t}function CL(e,t){if(e.flags&16777216)return;const n=UL(e,t);if(n)return n;const i=Xje(e);return i&&t.getTypeAtLocation(i)}function Qje(e,t){if(!t)switch(e.kind){case 263:case 231:return Gje(e);case 262:case 218:return $je(e);case 176:return e}if(Nu(e))return e.name}function bTe(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(sh(e.importClause.namedBindings)){const n=Tm(e.importClause.namedBindings.elements);return n?n.name:void 0}else if(my(e.importClause.namedBindings))return e.importClause.namedBindings.name}}if(!t)return e.moduleSpecifier}function STe(e,t){if(e.exportClause){if(Xf(e.exportClause))return Tm(e.exportClause.elements)?e.exportClause.elements[0].name:void 0;if(jm(e.exportClause))return e.exportClause.name}if(!t)return e.moduleSpecifier}function Yje(e){if(e.types.length===1)return e.types[0].expression}function TTe(e,t){const{parent:n}=e;if(ta(e)&&(t||e.kind!==90)?$p(n)&&bs(n.modifiers,e):e.kind===86?Xc(n)||kl(e):e.kind===100?$c(n)||co(e):e.kind===120?Bu(n):e.kind===94?L1(n):e.kind===156?Gp(n):e.kind===145||e.kind===144?Sc(n):e.kind===102?El(n):e.kind===139?xf(n):e.kind===153&&J_(n)){const i=Qje(n,t);if(i)return i}if((e.kind===115||e.kind===87||e.kind===121)&&dl(n)&&n.declarations.length===1){const i=n.declarations[0];if(Ie(i.name))return i.name}if(e.kind===156){if(Rm(n)&&n.isTypeOnly){const i=bTe(n.parent,t);if(i)return i}if(Tc(n)&&n.isTypeOnly){const i=STe(n,t);if(i)return i}}if(e.kind===130){if(x_(n)&&n.propertyName||vu(n)&&n.propertyName||my(n)||jm(n))return n.name;if(Tc(n)&&n.exportClause&&jm(n.exportClause))return n.exportClause.name}if(e.kind===102&&il(n)){const i=bTe(n,t);if(i)return i}if(e.kind===95){if(Tc(n)){const i=STe(n,t);if(i)return i}if(oc(n))return xc(n.expression)}if(e.kind===149&&Bm(n))return n.expression;if(e.kind===161&&(il(n)||Tc(n))&&n.moduleSpecifier)return n.moduleSpecifier;if((e.kind===96||e.kind===119)&&kf(n)&&n.token===e.kind){const i=Yje(n);if(i)return i}if(e.kind===96){if(Vo(n)&&n.constraint&&$f(n.constraint))return n.constraint.typeName;if(lx(n)&&$f(n.extendsType))return n.extendsType.typeName}if(e.kind===140&&Wb(n))return n.typeParameter.name;if(e.kind===103&&Vo(n)&&jC(n.parent))return n.name;if(e.kind===143&&Ub(n)&&n.operator===143&&$f(n.type))return n.type.typeName;if(e.kind===148&&Ub(n)&&n.operator===148&&Aw(n.type)&&$f(n.type.elementType))return n.type.elementType.typeName;if(!t){if((e.kind===105&&a2(n)||e.kind===116&&ux(n)||e.kind===114&&BC(n)||e.kind===135&&py(n)||e.kind===127&&CO(n)||e.kind===91&&nie(n))&&n.expression)return xc(n.expression);if((e.kind===103||e.kind===104)&&Zr(n)&&n.operatorToken===e)return xc(n.right);if(e.kind===130&&Iw(n)&&$f(n.type))return n.type.typeName;if(e.kind===103&&PO(n)||e.kind===165&&Fw(n))return xc(n.expression)}return e}function rG(e){return TTe(e,!1)}function EL(e){return TTe(e,!0)}function u_(e,t){return h6(e,t,n=>qd(n)||c_(n.kind)||Pi(n))}function h6(e,t,n){return xTe(e,t,!1,n,!1)}function Ui(e,t){return xTe(e,t,!0,void 0,!1)}function xTe(e,t,n,i,s){let o=e,c;e:for(;;){const f=o.getChildren(e),g=yT(f,t,(d,y)=>y,(d,y)=>{const S=f[d].getEnd();if(St?1:u(f[d],T,S)?f[d-1]&&u(f[d-1])?1:0:i&&T===t&&f[d-1]&&f[d-1].getEnd()===t&&u(f[d-1])?1:-1});if(c)return c;if(g>=0&&f[g]){o=f[g];continue e}return o}function u(f,g,d){if(d??(d=f.getEnd()),dt))return!1;if(tn.getStart(e)&&t(o.pos<=e.pos&&o.end>e.end||o.pos===e.end)&&Zoe(o,n)?i(o):void 0)}}function Qc(e,t,n,i){const s=o(n||t);return E.assert(!(s&&DL(s))),s;function o(c){if(kTe(c)&&c.kind!==1)return c;const u=c.getChildren(t),f=yT(u,e,(d,y)=>y,(d,y)=>e=u[d-1].end?0:1:-1);if(f>=0&&u[f]){const d=u[f];if(e=e||!Zoe(d,t)||DL(d)){const T=Goe(u,f,t,c.kind);return T?!i&&t5(T)&&T.getChildren(t).length?o(T):Hoe(T,t):void 0}else return o(d)}E.assert(n!==void 0||c.kind===312||c.kind===1||t5(c));const g=Goe(u,u.length,t,c.kind);return g&&Hoe(g,t)}}function kTe(e){return PT(e)&&!DL(e)}function Hoe(e,t){if(kTe(e))return e;const n=e.getChildren(t);if(n.length===0)return e;const i=Goe(n,n.length,t,e.kind);return i&&Hoe(i,t)}function Goe(e,t,n,i){for(let s=t-1;s>=0;s--){const o=e[s];if(DL(o))s===0&&(i===12||i===285)&&E.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(Zoe(e[s],n))return e[s]}}function Dx(e,t,n=Qc(t,e)){if(n&&tz(n)){const i=n.getStart(e),s=n.getEnd();if(in.getStart(e)}function Xoe(e,t){const n=Ui(e,t);return!!(ex(n)||n.kind===19&&h3(n.parent)&&Eg(n.parent.parent)||n.kind===30&&Fu(n.parent)&&Eg(n.parent.parent))}function wL(e,t){function n(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 n(Ui(e,t))}function AL(e,t,n){const i=Ws(e.kind),s=Ws(t),o=e.getFullStart(),c=n.text.lastIndexOf(s,o);if(c===-1)return;if(n.text.lastIndexOf(i,o-1)!!o.typeParameters&&o.typeParameters.length>=t)}function sG(e,t){if(t.text.lastIndexOf("<",e?e.pos:t.text.length)===-1)return;let n=e,i=0,s=0;for(;n;){switch(n.kind){case 30:if(n=Qc(n.getFullStart(),t),n&&n.kind===29&&(n=Qc(n.getFullStart(),t)),!n||!Ie(n))return;if(!i)return eh(n)?void 0:{called:n,nTypeArguments:s};i--;break;case 50:i=3;break;case 49:i=2;break;case 32:i++;break;case 20:if(n=AL(n,19,t),!n)return;break;case 22:if(n=AL(n,21,t),!n)return;break;case 24:if(n=AL(n,23,t),!n)return;break;case 28:s++;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(ki(n))break;return}n=Qc(n.getFullStart(),t)}}function l0(e,t,n){return al.getRangeOfEnclosingComment(e,t,void 0,n)}function Yoe(e,t){const n=Ui(e,t);return!!Pr(n,vd)}function Zoe(e,t){return e.kind===1?!!e.jsDoc:e.getWidth(t)!==0}function K3(e,t=0){const n=[],i=yu(e)?VJ(e)&~t:0;return i&2&&n.push("private"),i&4&&n.push("protected"),i&1&&n.push("public"),(i&256||ec(e))&&n.push("static"),i&64&&n.push("abstract"),i&32&&n.push("export"),i&65536&&n.push("deprecated"),e.flags&33554432&&n.push("declare"),e.kind===277&&n.push("export"),n.length>0?n.join(","):""}function Koe(e){if(e.kind===183||e.kind===213)return e.typeArguments;if(As(e)||e.kind===263||e.kind===264)return e.typeParameters}function NL(e){return e===2||e===3}function aG(e){return!!(e===11||e===14||$0(e))}function CTe(e,t,n){return!!(t.flags&4)&&e.isEmptyAnonymousObjectType(n)}function ece(e){if(!e.isIntersection())return!1;const{types:t,checker:n}=e;return t.length===2&&(CTe(n,t[0],t[1])||CTe(n,t[1],t[0]))}function GA(e,t,n){return $0(e.kind)&&e.getStart(n){const n=Oa(t);return!e[n]&&(e[n]=!0)}}function y6(e){return e.getText(0,e.getLength())}function QA(e,t){let n="";for(let i=0;i!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!(t.externalModuleIndicator||t.commonJsModuleIndicator))}function ice(e){return e.getSourceFiles().some(t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!t.externalModuleIndicator)}function dG(e){return!!e.module||Fa(e)>=2||!!e.noEmit}function lS(e,t){return{fileExists:n=>e.fileExists(n),getCurrentDirectory:()=>t.getCurrentDirectory(),readFile:Os(t,t.readFile),useCaseSensitiveFileNames:Os(t,t.useCaseSensitiveFileNames),getSymlinkCache:Os(t,t.getSymlinkCache)||e.getSymlinkCache,getModuleSpecifierCache:Os(t,t.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var n;return(n=e.getModuleResolutionCache())==null?void 0:n.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:Os(t,t.getGlobalTypingsCacheLocation),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:n=>e.getProjectReferenceRedirect(n),isSourceOfProjectReferenceRedirect:n=>e.isSourceOfProjectReferenceRedirect(n),getNearestAncestorDirectoryWithPackageJson:Os(t,t.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>e.getFileIncludeReasons(),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function mG(e,t){return{...lS(e,t),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function LL(e){return e===2||e>=3&&e<=99||e===100}function sce(e,t,n,i){return e||t&&t.length?_0(e,t,n,i):void 0}function _0(e,t,n,i,s){return I.createImportDeclaration(void 0,e||t?I.createImportClause(!!s,e,t&&t.length?I.createNamedImports(t):void 0):void 0,typeof n=="string"?Ax(n,i):n,void 0)}function Ax(e,t){return I.createStringLiteral(e,t===0)}function gG(e,t){return F5(e,t)?1:0}function wf(e,t){if(t.quotePreference&&t.quotePreference!=="auto")return t.quotePreference==="single"?0:1;{const n=e.imports&&wn(e.imports,i=>aa(i)&&!xo(i.parent));return n?gG(n,e):1}}function hG(e){switch(e){case 0:return"'";case 1:return'"';default:return E.assertNever(e)}}function ML(e){const t=RL(e);return t===void 0?void 0:xi(t)}function RL(e){return e.escapedName!=="default"?e.escapedName:$o(e.declarations,t=>{const n=us(t);return n&&n.kind===80?n.escapedText:void 0})}function jL(e){return Ma(e)&&(Bm(e.parent)||il(e.parent)||Gu(e.parent,!1)&&e.parent.arguments[0]===e||of(e.parent)&&e.parent.arguments[0]===e)}function ZA(e){return Ea(e)&&kp(e.parent)&&Ie(e.name)&&!e.propertyName}function BL(e,t){const n=e.getTypeAtLocation(t.parent);return n&&e.getPropertyOfType(n,t.name.text)}function KA(e,t,n){if(e)for(;e.parent;){if(Ni(e.parent)||!Zje(n,e.parent,t))return e;e=e.parent}}function Zje(e,t,n){return WJ(e,t.getStart(n))&&t.getEnd()<=bc(e)}function v6(e,t){return $p(e)?wn(e.modifiers,n=>n.kind===t):void 0}function tP(e,t,n,i,s){const c=(ts(n)?n[0]:n).kind===243?Bz:Cb,u=An(t.statements,c);let f=ts(n)?Yp.detectImportDeclarationSorting(n,s):3;const g=Yp.getOrganizeImportsComparer(s,f===2),d=ts(n)?Bh(n,(y,S)=>Yp.compareImportsOrRequireStatements(y,S,g)):[n];if(!u.length)e.insertNodesAtTopOfFile(t,d,i);else if(u&&(f=Yp.detectImportDeclarationSorting(u,s))){const y=Yp.getOrganizeImportsComparer(s,f===2);for(const S of d){const T=Yp.getImportDeclarationInsertionIndex(u,S,y);if(T===0){const k=u[0]===t.statements[0]?{leadingTriviaOption:Kr.LeadingTriviaOption.Exclude}:{};e.insertNodeBefore(t,u[0],S,!1,k)}else{const k=u[T-1];e.insertNodeAfter(t,k,S)}}}else{const y=Po(u);y?e.insertNodesAfter(t,y,d):e.insertNodesAtTopOfFile(t,d,i)}}function yG(e,t){return E.assert(e.isTypeOnly),Ls(e.getChildAt(0,t),fG)}function b6(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function vG(e,t,n){return(n?pb:p1)(e.fileName,t.fileName)&&b6(e.textSpan,t.textSpan)}function bG(e){return(t,n)=>vG(t,n,e)}function SG(e,t){if(e){for(let n=0;nrs(n)?!0:Ea(n)||kp(n)||s2(n)?!1:"quit")}function Kje(){const e=uw*10;let t,n,i,s;d();const o=y=>u(y,17);return{displayParts:()=>{const y=t.length&&t[t.length-1].text;return s>e&&y&&y!=="..."&&(Xg(y.charCodeAt(y.length-1))||t.push(C_(" ",16)),t.push(C_("...",15))),t},writeKeyword:y=>u(y,5),writeOperator:y=>u(y,12),writePunctuation:y=>u(y,15),writeTrailingSemicolon:y=>u(y,15),writeSpace:y=>u(y,16),writeStringLiteral:y=>u(y,8),writeParameter:y=>u(y,13),writeProperty:y=>u(y,14),writeLiteral:y=>u(y,8),writeSymbol:f,writeLine:g,write:o,writeComment:o,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:ks,getIndent:()=>i,increaseIndent:()=>{i++},decreaseIndent:()=>{i--},clear:d};function c(){if(!(s>e)&&n){const y=V5(i);y&&(s+=y.length,t.push(C_(y,16))),n=!1}}function u(y,S){s>e||(c(),s+=y.length,t.push(C_(y,S)))}function f(y,S){s>e||(c(),s+=y.length,t.push(oce(y,S)))}function g(){s>e||(s+=1,t.push(S6()),n=!0)}function d(){t=[],n=!0,i=0,s=0}}function oce(e,t){return C_(e,n(t));function n(i){const s=i.flags;return s&3?xG(i)?13:9:s&4||s&32768||s&65536?14:s&8?19:s&16?20:s&32?1:s&64?4:s&384?2:s&1536?11:s&8192?10:s&262144?18:s&524288||s&2097152?0:17}}function C_(e,t){return{text:e,kind:RA[t]}}function cc(){return C_(" ",16)}function V_(e){return C_(Ws(e),5)}function Tu(e){return C_(Ws(e),15)}function nP(e){return C_(Ws(e),12)}function cce(e){return C_(e,13)}function lce(e){return C_(e,14)}function kG(e){const t=Ov(e);return t===void 0?Af(e):V_(t)}function Af(e){return C_(e,17)}function uce(e){return C_(e,0)}function _ce(e){return C_(e,18)}function zL(e){return C_(e,24)}function fce(e,t){return{text:e,kind:RA[23],target:{fileName:wr(t).fileName,textSpan:Zu(t)}}}function CG(e){return C_(e,22)}function pce(e,t){var n;const i=uie(e)?"link":_ie(e)?"linkcode":"linkplain",s=[CG(`{@${i} `)];if(!e.name)e.text&&s.push(zL(e.text));else{const o=t==null?void 0:t.getSymbolAtLocation(e.name),c=o&&t?DG(o,t):void 0,u=tBe(e.text),f=jc(e.name)+e.text.slice(0,u),g=eBe(e.text.slice(u)),d=(c==null?void 0:c.valueDeclaration)||((n=c==null?void 0:c.declarations)==null?void 0:n[0]);if(d)s.push(fce(f,d)),g&&s.push(zL(g));else{const y=u===0||e.text.charCodeAt(u)===124&&f.charCodeAt(f.length-1)!==32?" ":"";s.push(zL(f+y+g))}}return s.push(CG("}")),s}function eBe(e){let t=0;if(e.charCodeAt(t++)===124){for(;t"&&n--,i++,!n)return i}return 0}function f0(e,t){var n;return(t==null?void 0:t.newLineCharacter)||((n=e.getNewLine)==null?void 0:n.call(e))||LTe}function S6(){return C_(` -`,6)}function Sy(e){try{return e(qG),qG.displayParts()}finally{qG.clear()}}function eN(e,t,n,i=0){return Sy(s=>{e.writeType(t,n,i|1024|16384,s)})}function iP(e,t,n,i,s=0){return Sy(o=>{e.writeSymbol(t,n,i,s|8,o)})}function EG(e,t,n,i=0){return i|=25632,Sy(s=>{e.writeSignature(t,n,i,void 0,s)})}function PTe(e,t){const n=t.getSourceFile();return Sy(i=>{SA().writeNode(4,e,n,i)})}function dce(e){return!!e.parent&&DT(e.parent)&&e.parent.propertyName===e}function PG(e,t){return vF(e,t.getScriptKind&&t.getScriptKind(e))}function DG(e,t){let n=e;for(;rBe(n)||wm(n)&&n.links.target;)wm(n)&&n.links.target?n=n.links.target:n=Ul(n,t);return n}function rBe(e){return(e.flags&2097152)!==0}function mce(e,t){return Ks(Ul(e,t))}function gce(e,t){for(;Xg(e.charCodeAt(t));)t+=1;return t}function WL(e,t){for(;t>-1&&Jd(e.charCodeAt(t));)t-=1;return t+1}function Lo(e,t=!0){const n=e&&DTe(e);return n&&!t&&U_(n),n}function tN(e,t,n){let i=n(e);return i?dn(i,e):i=DTe(e,n),i&&!t&&U_(i),i}function DTe(e,t){const n=t?o=>tN(o,!0,t):Lo,s=ur(e,n,void 0,t?o=>o&&wG(o,!0,t):o=>o&&k2(o),n);if(s===e){const o=aa(e)?dn(I.createStringLiteralFromNode(e),e):j_(e)?dn(I.createNumericLiteral(e.text,e.numericLiteralFlags),e):I.cloneNode(e);return Ke(o,e)}return s.parent=void 0,s}function k2(e,t=!0){if(e){const n=I.createNodeArray(e.map(i=>Lo(i,t)),e.hasTrailingComma);return Ke(n,e),n}return e}function wG(e,t,n){return I.createNodeArray(e.map(i=>tN(i,t,n)),e.hasTrailingComma)}function U_(e){AG(e),hce(e)}function AG(e){yce(e,1024,iBe)}function hce(e){yce(e,2048,EW)}function uS(e,t){const n=e.getSourceFile(),i=n.text;nBe(e,i)?T6(e,t,n):nN(e,t,n),sP(e,t,n)}function nBe(e,t){const n=e.getFullStart(),i=e.getStart();for(let s=n;st)}function _S(e,t){let n=e;for(let i=1;!l5(t,n);i++)n=`${e}_${i}`;return n}function rN(e,t,n,i){let s=0,o=-1;for(const{fileName:c,textChanges:u}of e){E.assert(c===t);for(const f of u){const{span:g,newText:d}=f,y=sBe(d,bg(n));if(y!==-1&&(o=g.start+s+y,!i))return o;s+=d.length-g.length}}return E.assert(i),E.assert(o>=0),o}function T6(e,t,n,i,s){jD(n.text,e.pos,vce(t,n,i,s,o3))}function sP(e,t,n,i,s){BD(n.text,e.end,vce(t,n,i,s,WF))}function nN(e,t,n,i,s){BD(n.text,e.pos,vce(t,n,i,s,o3))}function vce(e,t,n,i,s){return(o,c,u,f)=>{u===3?(o+=2,c-=2):o+=2,s(e,n||u,t.text.slice(o,c),i!==void 0?i:f)}}function sBe(e,t){if(Vi(e,t))return 0;let n=e.indexOf(" "+t);return n===-1&&(n=e.indexOf("."+t)),n===-1&&(n=e.indexOf('"'+t)),n===-1?-1:n+1}function VL(e){return Zr(e)&&e.operatorToken.kind===28||ua(e)||(Iw(e)||wV(e))&&ua(e.expression)}function UL(e,t,n){const i=Yh(e.parent);switch(i.kind){case 214:return t.getContextualType(i,n);case 226:{const{left:s,operatorToken:o,right:c}=i;return qL(o.kind)?t.getTypeAtLocation(e===c?s:c):t.getContextualType(e,n)}case 296:return IG(i,t);default:return t.getContextualType(e,n)}}function aP(e,t,n){const i=wf(e,t),s=JSON.stringify(n);return i===0?`'${vp(s).replace(/'/g,()=>"\\'").replace(/\\"/g,'"')}'`:s}function qL(e){switch(e){case 37:case 35:case 38:case 36:return!0;default:return!1}}function bce(e){switch(e.kind){case 11:case 15:case 228:case 215:return!0;default:return!1}}function NG(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}function IG(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}function oP(e,t,n,i){const s=n.getTypeChecker();let o=!0;const c=()=>o=!1,u=s.typeToTypeNode(e,t,1,{trackSymbol:(f,g,d)=>(o=o&&s.isSymbolAccessible(f,g,d,!1).accessibility===0,!o),reportInaccessibleThisError:c,reportPrivateInBaseOfClassExpression:c,reportInaccessibleUniqueSymbolError:c,moduleResolverHost:mG(n,i)});return o?u:void 0}function Sce(e){return e===179||e===180||e===181||e===171||e===173}function wTe(e){return e===262||e===176||e===174||e===177||e===178}function ATe(e){return e===267}function HL(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 aBe(e,t){const n=e.getLastToken(t);if(n&&n.kind===27)return!1;if(Sce(e.kind)){if(n&&n.kind===28)return!1}else if(ATe(e.kind)){const u=ka(e.getChildren(t));if(u&&Zd(u))return!1}else if(wTe(e.kind)){const u=ka(e.getChildren(t));if(u&&Vv(u))return!1}else if(!HL(e.kind))return!1;if(e.kind===246)return!0;const i=Pr(e,u=>!u.parent),s=x2(e,i,t);if(!s||s.kind===20)return!0;const o=t.getLineAndCharacterOfPosition(e.getEnd()).line,c=t.getLineAndCharacterOfPosition(s.getStart(t)).line;return o!==c}function GL(e,t,n){const i=Pr(t,s=>s.end!==e?"quit":HG(s.kind));return!!i&&aBe(i,n)}function iN(e){let t=0,n=0;const i=5;return Ss(e,function s(o){if(HL(o.kind)){const c=o.getLastToken(e);(c==null?void 0:c.kind)===27?t++:n++}else if(Sce(o.kind)){const c=o.getLastToken(e);if((c==null?void 0:c.kind)===27)t++;else if(c&&c.kind!==28){const u=Ha(e,c.getStart(e)).line,f=Ha(e,Im(e,c.end).start).line;u!==f&&n++}}return t+n>=i?!0:Ss(o,s)}),t===0&&n<=1?!0:t/n>1/i}function $L(e,t){return YL(e,e.getDirectories,t)||[]}function FG(e,t,n,i,s){return YL(e,e.readDirectory,t,n,i,s)||Ve}function sN(e,t){return YL(e,e.fileExists,t)}function XL(e,t){return QL(()=>dd(t,e))||!1}function QL(e){try{return e()}catch{return}}function YL(e,t,...n){return QL(()=>t&&t.apply(e,n))}function OG(e,t,n){const i=[];return Jp(e,s=>{if(s===n)return!0;const o=Mn(s,"package.json");sN(t,o)&&i.push(o)}),i}function Tce(e,t){let n;return Jp(e,i=>{if(i==="node_modules"||(n=Nae(i,s=>sN(t,s),"package.json"),n))return!0}),n}function xce(e,t){if(!t.fileExists)return[];const n=[];return Jp(Un(e),i=>{const s=Mn(i,"package.json");if(t.fileExists(s)){const o=LG(s,t);o&&n.push(o)}}),n}function LG(e,t){if(!t.readFile)return;const n=["dependencies","devDependencies","optionalDependencies","peerDependencies"],i=t.readFile(e)||"",s=rF(i),o={};if(s)for(const f of n){const g=s[f];if(!g)continue;const d=new Map;for(const y in g)d.set(y,g[y]);o[f]=d}const c=[[1,o.dependencies],[2,o.devDependencies],[8,o.optionalDependencies],[4,o.peerDependencies]];return{...o,parseable:!!s,fileName:e,get:u,has(f,g){return!!u(f,g)}};function u(f,g=15){for(const[d,y]of c)if(y&&g&d){const S=y.get(f);if(S!==void 0)return S}}}function cP(e,t,n){const i=(n.getPackageJsonsVisibleToFile&&n.getPackageJsonsVisibleToFile(e.fileName)||xce(e.fileName,n)).filter(k=>k.parseable);let s,o,c;return{allowsImportingAmbientModule:f,allowsImportingSourceFile:g,allowsImportingSpecifier:d};function u(k){const w=T(k);for(const P of i)if(P.has(w)||P.has(u9(w)))return!0;return!1}function f(k,w){if(!i.length||!k.valueDeclaration)return!0;if(!o)o=new Map;else{const $=o.get(k);if($!==void 0)return $}const P=vp(k.getName());if(y(P))return o.set(k,!0),!0;const F=k.valueDeclaration.getSourceFile(),J=S(F.fileName,w);if(typeof J>"u")return o.set(k,!0),!0;const U=u(J)||u(P);return o.set(k,U),U}function g(k,w){if(!i.length)return!0;if(!c)c=new Map;else{const J=c.get(k);if(J!==void 0)return J}const P=S(k.fileName,w);if(!P)return c.set(k,!0),!0;const F=u(P);return c.set(k,F),F}function d(k){return!i.length||y(k)||nf(k)||F_(k)?!0:u(k)}function y(k){return!!(Ou(e)&&nm.nodeCoreModules.has(k)&&(s===void 0&&(s=ZL(e)),s))}function S(k,w){if(!k.includes("node_modules"))return;const P=h2.getNodeModulesPackageName(n.getCompilationSettings(),e,k,w,t);if(P&&!nf(P)&&!F_(P))return T(P)}function T(k){const w=ll(I3(k)).slice(1);return Vi(w[0],"@")?`${w[0]}/${w[1]}`:w[0]}}function ZL(e){return ct(e.imports,({text:t})=>nm.nodeCoreModules.has(t))}function aN(e){return bs(ll(e),"node_modules")}function MG(e){return e.file!==void 0&&e.start!==void 0&&e.length!==void 0}function kce(e,t){const n=Zu(e),i=yT(t,n,Do,i7);if(i>=0){const s=t[i];return E.assertEqual(s.file,e.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),Ls(s,MG)}}function Cce(e,t){var n;let i=yT(t,e.start,c=>c.start,wo);for(i<0&&(i=~i);((n=t[i-1])==null?void 0:n.start)===e.start;)i--;const s=[],o=bc(e);for(;;){const c=Wn(t[i],MG);if(!c||c.start>o)break;Dee(e,c)&&s.push(c),i++}return s}function Nx({startPosition:e,endPosition:t}){return Rc(e,t===void 0?e:t)}function RG(e,t){const n=Ui(e,t.start);return Pr(n,s=>s.getStart(e)bc(t)?"quit":ot(s)&&b6(t,Zu(s,e)))}function jG(e,t,n=Do){return e?ts(e)?n(nr(e,t)):t(e,0):void 0}function BG(e){return ts(e)?va(e):e}function Ece(e,t){if(NTe(e)){const n=ITe(e);if(n)return n;const i=lu.moduleSymbolToValidIdentifier(Pce(e),t,!1),s=lu.moduleSymbolToValidIdentifier(Pce(e),t,!0);return i===s?i:[i,s]}return e.name}function KL(e,t,n){return NTe(e)?ITe(e)||lu.moduleSymbolToValidIdentifier(Pce(e),t,!!n):e.name}function NTe(e){return!(e.flags&33554432)&&(e.escapedName==="export="||e.escapedName==="default")}function ITe(e){return $o(e.declarations,t=>{var n,i,s;return oc(t)?(n=Wn(xc(t.expression),Ie))==null?void 0:n.text:vu(t)&&t.symbol.flags===2097152?(i=Wn(t.propertyName,Ie))==null?void 0:i.text:(s=Wn(us(t),Ie))==null?void 0:s.text})}function Pce(e){var t;return E.checkDefined(e.parent,`Symbol parent was undefined. Flags: ${E.formatSymbolFlags(e.flags)}. Declarations: ${(t=e.declarations)==null?void 0:t.map(n=>{const i=E.formatSyntaxKind(n.kind),s=Hr(n),{expression:o}=n;return(s?"[JS]":"")+i+(o?` (expression: ${E.formatSyntaxKind(o.kind)})`:"")}).join(", ")}.`)}function Dce(e,t,n){const i=t.length;if(i+n>e.length)return!1;for(let s=0;sSc(n)&&Vd(n))}function eM(e){return!!(VJ(e)&65536)}function tM(e,t){return $o(e.imports,i=>{if(nm.nodeCoreModules.has(i.text))return Vi(i.text,"node:")})??t.usesUriStyleNodeCoreModules}function oN(e){return e===` -`?1:0}function fS(e){return ts(e)?xg(ds(e[0]),e.slice(1)):ds(e)}function rM({options:e},t){const n=!e.semicolons||e.semicolons==="ignore",i=e.semicolons==="remove"||n&&!iN(t);return{...e,semicolons:i?"remove":"ignore"}}function zG(e){return e===2||e===3}function x6(e,t){return e.isSourceFileFromExternalLibrary(t)||e.isSourceFileDefaultLibrary(t)}function nM(e,t){const n=new Set,i=new Set,s=new Set;for(const u of t)if(!y3(u)){const f=Va(u.expression);if(Rv(f))switch(f.kind){case 15:case 11:n.add(f.text);break;case 9:i.add(parseInt(f.text));break;case 10:const g=pne(Yo(f.text,"n")?f.text.slice(0,-1):f.text);g&&s.add(e2(g));break}else{const g=e.getSymbolAtLocation(u.expression);if(g&&g.valueDeclaration&&p2(g.valueDeclaration)){const d=e.getConstantValue(g.valueDeclaration);d!==void 0&&o(d)}}}return{addValue:o,hasValue:c};function o(u){switch(typeof u){case"string":n.add(u);break;case"number":i.add(u)}}function c(u){switch(typeof u){case"string":return n.has(u);case"number":return i.has(u);case"object":return s.has(e2(u))}}}function WG(e,t,n,i){var s;const o=typeof e=="string"?e:e.fileName;if(!Kv(o))return!1;const c=t.getCompilerOptions(),u=au(c),f=typeof e=="string"?DA(No(e,n.getCurrentDirectory(),Zh(n)),(s=t.getPackageJsonInfoCache)==null?void 0:s.call(t),n,c):e.impliedNodeFormat;if(f===99)return!1;if(f===1||c.verbatimModuleSyntax&&u===1)return!0;if(c.verbatimModuleSyntax&&uF(u))return!1;if(typeof e=="object"){if(e.commonJsModuleIndicator)return!0;if(e.externalModuleIndicator)return!1}return i}var xu,VG,OTe,iM,UG,qG,LTe,sM,HG,oBe=wt({"src/services/utilities.ts"(){qn(),xu=Hh(99,!0),VG=(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))(VG||{}),OTe=/^\/\/\/\s*(e[e.Single=0]="Single",e[e.Double=1]="Double",e))(UG||{}),qG=Kje(),LTe=` -`,sM="anonymous function",HG=pd(Sce,wTe,ATe,HL)}});function GG(e){let t=1;const n=vf(),i=new Map,s=new Map;let o;const c={isUsableByFile:T=>T===o,isEmpty:()=>!n.size,clear:()=>{n.clear(),i.clear(),o=void 0},add:(T,k,w,P,F,J,U,$)=>{T!==o&&(c.clear(),o=T);let j;if(F){const ae=PF(F.fileName);if(ae){const{topLevelNodeModulesIndex:K,topLevelPackageNameIndex:fe,packageRootIndex:ke}=ae;if(j=fA(I3(F.fileName.substring(fe+1,ke))),Vi(T,F.path.substring(0,K))){const Oe=s.get(j),me=F.fileName.substring(0,fe+1);if(Oe){const be=Oe.indexOf(zm);K>be&&s.set(j,me)}else s.set(j,me)}}}const R=J===1&&xC(k)||k,Y=J===0||XA(R)?xi(w):Ece(R,void 0),ue=typeof Y=="string"?Y:Y[0],pe=typeof Y=="string"?void 0:Y[1],H=vp(P.name),q=t++,ee=Ul(k,$),oe=k.flags&33554432?void 0:k,Se=P.flags&33554432?void 0:P;(!oe||!Se)&&i.set(q,[k,P]),n.add(f(ue,k,Sl(H)?void 0:H,$),{id:q,symbolTableKey:w,symbolName:ue,capitalizedSymbolName:pe,moduleName:H,moduleFile:F,moduleFileName:F==null?void 0:F.fileName,packageName:j,exportKind:J,targetFlags:ee.flags,isFromPackageJson:U,symbol:oe,moduleSymbol:Se})},get:(T,k)=>{if(T!==o)return;const w=n.get(k);return w==null?void 0:w.map(u)},search:(T,k,w,P)=>{if(T===o)return _l(n,(F,J)=>{const{symbolName:U,ambientModuleName:$}=g(J),j=k&&F[0].capitalizedSymbolName||U;if(w(j,F[0].targetFlags)){const R=F.map(u).filter((Y,ue)=>S(Y,F[ue].packageName));if(R.length){const Y=P(R,j,!!$,J);if(Y!==void 0)return Y}}})},releaseSymbols:()=>{i.clear()},onFileChanged:(T,k,w)=>d(T)&&d(k)?!1:o&&o!==k.path||w&&ZL(T)!==ZL(k)||!_d(T.moduleAugmentations,k.moduleAugmentations)||!y(T,k)?(c.clear(),!0):(o=k.path,!1)};return E.isDebugging&&Object.defineProperty(c,"__cache",{value:n}),c;function u(T){if(T.symbol&&T.moduleSymbol)return T;const{id:k,exportKind:w,targetFlags:P,isFromPackageJson:F,moduleFileName:J}=T,[U,$]=i.get(k)||Ve;if(U&&$)return{symbol:U,moduleSymbol:$,moduleFileName:J,exportKind:w,targetFlags:P,isFromPackageJson:F};const j=(F?e.getPackageJsonAutoImportProvider():e.getCurrentProgram()).getTypeChecker(),re=T.moduleSymbol||$||E.checkDefined(T.moduleFile?j.getMergedSymbol(T.moduleFile.symbol):j.tryFindAmbientModule(T.moduleName)),R=T.symbol||U||E.checkDefined(w===2?j.resolveExternalModuleSymbol(re):j.tryGetMemberInModuleExportsAndProperties(xi(T.symbolTableKey),re),`Could not find symbol '${T.symbolName}' by key '${T.symbolTableKey}' in module ${re.name}`);return i.set(k,[R,re]),{symbol:R,moduleSymbol:re,moduleFileName:J,exportKind:w,targetFlags:P,isFromPackageJson:F}}function f(T,k,w,P){const F=w||"";return`${T.length} ${Ks(Ul(k,P))} ${T} ${F}`}function g(T){const k=T.indexOf(" "),w=T.indexOf(" ",k+1),P=parseInt(T.substring(0,k),10),F=T.substring(w+1),J=F.substring(0,P),U=F.substring(P+1);return{symbolName:J,ambientModuleName:U===""?void 0:U}}function d(T){return!T.commonJsModuleIndicator&&!T.externalModuleIndicator&&!T.moduleAugmentations&&!T.ambientModuleNames}function y(T,k){if(!_d(T.ambientModuleNames,k.ambientModuleNames))return!1;let w=-1,P=-1;for(const F of k.ambientModuleNames){const J=U=>Sz(U)&&U.name.text===F;if(w=vc(T.statements,J,w+1),P=vc(k.statements,J,P+1),T.statements[w]!==k.statements[P])return!1}return!0}function S(T,k){if(!k||!T.moduleFileName)return!0;const w=e.getGlobalTypingsCacheLocation();if(w&&Vi(T.moduleFileName,w))return!0;const P=s.get(k);return!P||Vi(T.moduleFileName,P)}}function $G(e,t,n,i,s,o,c){var u;if(t===n)return!1;const f=c==null?void 0:c.get(t.path,n.path,i,{});if((f==null?void 0:f.isBlockedByPackageJsonDependencies)!==void 0)return!f.isBlockedByPackageJsonDependencies;const g=Zh(o),d=(u=o.getGlobalTypingsCacheLocation)==null?void 0:u.call(o),y=!!h2.forEachFileNameOfModule(t.fileName,n.fileName,o,!1,S=>{const T=e.getSourceFile(S);return(T===n||!T)&&cBe(t.fileName,S,g,d)});if(s){const S=y&&s.allowsImportingSourceFile(n,o);return c==null||c.setBlockedByPackageJsonDependencies(t.path,n.path,i,{},!S),S}return y}function cBe(e,t,n,i){const s=Jp(t,c=>wc(c)==="node_modules"?c:void 0),o=s&&Un(n(s));return o===void 0||Vi(n(e),o)||!!i&&Vi(n(i),o)}function XG(e,t,n,i,s){var o,c;const u=SC(t),f=n.autoImportFileExcludePatterns&&Ri(n.autoImportFileExcludePatterns,d=>{const y=hF(d,"","exclude");return y?sy(y,u):void 0});MTe(e.getTypeChecker(),e.getSourceFiles(),f,t,(d,y)=>s(d,y,e,!1));const g=i&&((o=t.getPackageJsonAutoImportProvider)==null?void 0:o.call(t));if(g){const d=To(),y=e.getTypeChecker();MTe(g.getTypeChecker(),g.getSourceFiles(),f,t,(S,T)=>{(T&&!e.getSourceFile(T.fileName)||!T&&!y.resolveName(S.name,void 0,1536,!1))&&s(S,T,g,!0)}),(c=t.log)==null||c.call(t,`forEachExternalModuleToImportFrom autoImportProvider: ${To()-d}`)}}function MTe(e,t,n,i,s){var o,c;const u=(o=i.getSymlinkCache)==null?void 0:o.call(i).getSymlinkedDirectoriesByRealpath(),f=n&&(({fileName:g,path:d})=>{if(n.some(y=>y.test(g)))return!0;if(u!=null&&u.size&&W1(g)){let y=Un(g);return Jp(Un(d),S=>{const T=u.get(ul(S));if(T)return T.some(k=>n.some(w=>w.test(g.replace(y,k))));y=Un(y)})??!1}return!1});for(const g of e.getAmbientModules())!g.name.includes("*")&&!(n&&((c=g.declarations)!=null&&c.every(d=>f(d.getSourceFile()))))&&s(g,void 0);for(const g of t)af(g)&&!(f!=null&&f(g))&&s(e.getMergedSymbol(g.symbol),g)}function cN(e,t,n,i,s){var o,c,u,f,g;const d=To();(o=t.getPackageJsonAutoImportProvider)==null||o.call(t);const y=((c=t.getCachedExportInfoMap)==null?void 0:c.call(t))||GG({getCurrentProgram:()=>n,getPackageJsonAutoImportProvider:()=>{var k;return(k=t.getPackageJsonAutoImportProvider)==null?void 0:k.call(t)},getGlobalTypingsCacheLocation:()=>{var k;return(k=t.getGlobalTypingsCacheLocation)==null?void 0:k.call(t)}});if(y.isUsableByFile(e.path))return(u=t.log)==null||u.call(t,"getExportInfoMap: cache hit"),y;(f=t.log)==null||f.call(t,"getExportInfoMap: cache miss or empty; calculating new results");const S=n.getCompilerOptions();let T=0;try{XG(n,t,i,!0,(k,w,P,F)=>{++T%100===0&&(s==null||s.throwIfCancellationRequested());const J=new Map,U=P.getTypeChecker(),$=aM(k,U,S);$&&RTe($.symbol,U)&&y.add(e.path,$.symbol,$.exportKind===1?"default":"export=",k,w,$.exportKind,F,U),U.forEachExportAndPropertyOfModule(k,(j,re)=>{j!==($==null?void 0:$.symbol)&&RTe(j,U)&&qp(J,re)&&y.add(e.path,j,re,k,w,0,F,U)})})}catch(k){throw y.clear(),k}return(g=t.log)==null||g.call(t,`getExportInfoMap: done in ${To()-d} ms`),y}function aM(e,t,n){const i=lBe(e,t);if(!i)return;const{symbol:s,exportKind:o}=i,c=oM(s,t,n);return c&&{symbol:s,exportKind:o,...c}}function RTe(e,t){return!t.isUndefinedSymbol(e)&&!t.isUnknownSymbol(e)&&!V8(e)&&!fre(e)}function lBe(e,t){const n=t.resolveExternalModuleSymbol(e);if(n!==e)return{symbol:n,exportKind:2};const i=t.tryGetMemberInModuleExports("default",e);if(i)return{symbol:i,exportKind:1}}function oM(e,t,n){const i=xC(e);if(i)return{resolvedSymbol:i,name:i.name};const s=uBe(e);if(s!==void 0)return{resolvedSymbol:e,name:s};if(e.flags&2097152){const o=t.getImmediateAliasedSymbol(e);if(o&&o.parent)return oM(o,t,n)}return e.escapedName!=="default"&&e.escapedName!=="export="?{resolvedSymbol:e,name:e.getName()}:{resolvedSymbol:e,name:KL(e,n.target)}}function uBe(e){return e.declarations&&$o(e.declarations,t=>{var n;if(oc(t))return(n=Wn(xc(t.expression),Ie))==null?void 0:n.text;if(vu(t))return E.assert(t.name.text==="default","Expected the specifier to be a default export"),t.propertyName&&t.propertyName.text})}var QG,YG,_Be=wt({"src/services/exportInfoMap.ts"(){qn(),QG=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.CommonJS=3]="CommonJS",e))(QG||{}),YG=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e[e.UMD=3]="UMD",e))(YG||{})}});function jTe(){const e=Hh(99,!1);function t(i,s,o){return dBe(n(i,s,o),i)}function n(i,s,o){let c=0,u=0;const f=[],{prefix:g,pushTemplate:d}=hBe(s);i=g+i;const y=g.length;d&&f.push(16),e.setText(i);let S=0;const T=[];let k=0;do{c=e.scan(),gC(c)||(w(),u=c);const P=e.getTokenEnd();if(pBe(e.getTokenStart(),P,y,bBe(c),T),P>=i.length){const F=fBe(e,c,Po(f));F!==void 0&&(S=F)}}while(c!==1);function w(){switch(c){case 44:case 69:!WTe[u]&&e.reScanSlashToken()===14&&(c=14);break;case 30:u===80&&k++;break;case 32:k>0&&k--;break;case 133:case 154:case 150:case 136:case 155:k>0&&!o&&(c=80);break;case 16:f.push(c);break;case 19:f.length>0&&f.push(c);break;case 20:if(f.length>0){const P=Po(f);P===16?(c=e.reScanTemplateToken(!1),c===18?f.pop():E.assertEqual(c,17,"Should have been a template middle.")):(E.assertEqual(P,19,"Should have been an open brace"),f.pop())}break;default:if(!c_(c))break;(u===25||c_(u)&&c_(c)&&!gBe(u,c))&&(c=80)}}return{endOfLineState:S,spans:T}}return{getClassificationsForLine:t,getEncodedLexicalClassifications:n}}function fBe(e,t,n){switch(t){case 11:{if(!e.isUnterminated())return;const i=e.getTokenText(),s=i.length-1;let o=0;for(;i.charCodeAt(s-o)===92;)o++;return o&1?i.charCodeAt(0)===34?3:2:void 0}case 3:return e.isUnterminated()?1:void 0;default:if($0(t)){if(!e.isUnterminated())return;switch(t){case 18:return 5;case 15:return 4;default:return E.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+t)}}return n===16?6:void 0}}function pBe(e,t,n,i,s){if(i===8)return;e===0&&n>0&&(e+=n);const o=t-e;o>0&&s.push(e-n,o,i)}function dBe(e,t){const n=[],i=e.spans;let s=0;for(let c=0;c=0){const d=u-s;d>0&&n.push({length:d,classification:4})}n.push({length:f,classification:mBe(g)}),s=u+f}const o=t.length-s;return o>0&&n.push({length:o,classification:4}),{entries:n,finalLexState:e.endOfLineState}}function mBe(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 gBe(e,t){if(!oG(e))return!0;switch(t){case 139:case 153:case 137:case 126:case 129:return!0;default:return!1}}function hBe(e){switch(e){case 3:return{prefix:`"\\ +`}),d}function aoe(e){return!!e.getState}function iH(e,t){const n=e.getCompilerOptions();n.explainFiles?sH(aoe(e)?e.getProgram():e,t):(n.listFiles||n.listFilesOnly)&&rr(e.getSourceFiles(),i=>{t(i.fileName)})}function sH(e,t){var n,i;const s=e.getFileIncludeReasons(),o=c=>Q4(c,e.getCurrentDirectory(),e.getCanonicalFileName);for(const c of e.getSourceFiles())t(`${f6(c,o)}`),(n=s.get(c.path))==null||n.forEach(u=>t(` ${lH(e,u,o).messageText}`)),(i=aH(c,o))==null||i.forEach(u=>t(` ${u.messageText}`))}function aH(e,t){var n;let i;if(e.path!==e.resolvedPath&&(i??(i=[])).push(vs(void 0,p.File_is_output_of_project_reference_source_0,f6(e.originalFileName,t))),e.redirectInfo&&(i??(i=[])).push(vs(void 0,p.File_redirects_to_file_0,f6(e.redirectInfo.redirectTarget,t))),af(e))switch(e.impliedNodeFormat){case 99:e.packageJsonScope&&(i??(i=[])).push(vs(void 0,p.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,f6(ka(e.packageJsonLocations),t)));break;case 1:e.packageJsonScope?(i??(i=[])).push(vs(void 0,e.packageJsonScope.contents.packageJsonContent.type?p.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:p.File_is_CommonJS_module_because_0_does_not_have_field_type,f6(ka(e.packageJsonLocations),t))):(n=e.packageJsonLocations)!=null&&n.length&&(i??(i=[])).push(vs(void 0,p.File_is_CommonJS_module_because_package_json_was_not_found));break}return i}function oH(e,t){var n;const i=e.getCompilerOptions().configFile;if(!((n=i==null?void 0:i.configFileSpecs)!=null&&n.validatedFilesSpec))return;const s=e.getCanonicalFileName(t),o=Un(Xi(i.fileName,e.getCurrentDirectory()));return wn(i.configFileSpecs.validatedFilesSpec,c=>e.getCanonicalFileName(Xi(c,o))===s)}function cH(e,t){var n,i;const s=e.getCompilerOptions().configFile;if(!((n=s==null?void 0:s.configFileSpecs)!=null&&n.validatedIncludeSpecs))return;if(s.configFileSpecs.isDefaultIncludeSpec)return!0;const o=Zo(t,".json"),c=Un(Xi(s.fileName,e.getCurrentDirectory())),u=e.useCaseSensitiveFileNames();return wn((i=s==null?void 0:s.configFileSpecs)==null?void 0:i.validatedIncludeSpecs,f=>{if(o&&!Yo(f,".json"))return!1;const g=sne(f,c,"files");return!!g&&iy(`(${g})$`,u).test(t)})}function lH(e,t,n){var i,s;const o=e.getCompilerOptions();if(U1(t)){const c=q3(e,t),u=c6(c)?c.file.text.substring(c.pos,c.end):`"${c.text}"`;let f;switch(E.assert(c6(c)||t.kind===3,"Only synthetic references are imports"),t.kind){case 3:c6(c)?f=c.packageId?p.Imported_via_0_from_file_1_with_packageId_2:p.Imported_via_0_from_file_1:c.text===ay?f=c.packageId?p.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:p.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:f=c.packageId?p.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:p.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case 4:E.assert(!c.packageId),f=p.Referenced_via_0_from_file_1;break;case 5:f=c.packageId?p.Type_library_referenced_via_0_from_file_1_with_packageId_2:p.Type_library_referenced_via_0_from_file_1;break;case 7:E.assert(!c.packageId),f=p.Library_referenced_via_0_from_file_1;break;default:E.assertNever(t)}return vs(void 0,f,u,f6(c.file,n),c.packageId&&Z0(c.packageId))}switch(t.kind){case 0:if(!((i=o.configFile)!=null&&i.configFileSpecs))return vs(void 0,p.Root_file_specified_for_compilation);const c=Xi(e.getRootFileNames()[t.index],e.getCurrentDirectory());if(oH(e,c))return vs(void 0,p.Part_of_files_list_in_tsconfig_json);const f=cH(e,c);return ls(f)?vs(void 0,p.Matched_by_include_pattern_0_in_1,f,f6(o.configFile,n)):vs(void 0,f?p.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:p.Root_file_specified_for_compilation);case 1:case 2:const g=t.kind===2,d=E.checkDefined((s=e.getResolvedProjectReferences())==null?void 0:s[t.index]);return vs(void 0,io(o)?g?p.Output_from_referenced_project_0_included_because_1_specified:p.Source_from_referenced_project_0_included_because_1_specified:g?p.Output_from_referenced_project_0_included_because_module_is_specified_as_none:p.Source_from_referenced_project_0_included_because_module_is_specified_as_none,f6(d.sourceFile.fileName,n),o.outFile?"--outFile":"--out");case 8:{const y=o.types?t.packageId?[p.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1,t.typeReference,Z0(t.packageId)]:[p.Entry_point_of_type_library_0_specified_in_compilerOptions,t.typeReference]:t.packageId?[p.Entry_point_for_implicit_type_library_0_with_packageId_1,t.typeReference,Z0(t.packageId)]:[p.Entry_point_for_implicit_type_library_0,t.typeReference];return vs(void 0,...y)}case 6:{if(t.index!==void 0)return vs(void 0,p.Library_0_specified_in_compilerOptions,o.lib[t.index]);const y=fl(tA.type,(T,k)=>T===Fa(o)?k:void 0),S=y?[p.Default_library_for_target_0,y]:[p.Default_library];return vs(void 0,...S)}default:E.assertNever(t)}}function f6(e,t){const n=ls(e)?e:e.fileName;return t?t(n):n}function eL(e,t,n,i,s,o,c,u){const f=!!e.getCompilerOptions().listFilesOnly,g=e.getConfigFileParsingDiagnostics().slice(),d=g.length;Nn(g,e.getSyntacticDiagnostics(void 0,o)),g.length===d&&(Nn(g,e.getOptionsDiagnostics(o)),f||(Nn(g,e.getGlobalDiagnostics(o)),g.length===d&&Nn(g,e.getSemanticDiagnostics(void 0,o))));const y=f?{emitSkipped:!0,diagnostics:Ve}:e.emit(void 0,s,o,c,u),{emittedFiles:S,diagnostics:T}=y;Nn(g,T);const k=zk(g);if(k.forEach(t),n){const w=e.getCurrentDirectory();rr(S,P=>{const F=Xi(P,w);n(`TSFILE: ${F}`)}),iH(e,n)}return i&&i(Z9(k),K9(k)),{emitResult:y,diagnostics:k}}function ooe(e,t,n,i,s,o,c,u){const{emitResult:f,diagnostics:g}=eL(e,t,n,i,s,o,c,u);return f.emitSkipped&&g.length>0?1:g.length>0?2:0}function uH(e=zl,t){return{onWatchStatusChange:t||ioe(e),watchFile:Os(e,e.watchFile)||d6,watchDirectory:Os(e,e.watchDirectory)||d6,setTimeout:Os(e,e.setTimeout)||Ca,clearTimeout:Os(e,e.clearTimeout)||Ca}}function _H(e,t){const n=e.trace?t.extendedDiagnostics?2:t.diagnostics?1:0:0,i=n!==0?o=>e.trace(o):Ca,s=kq(e,n,i);return s.writeLog=i,s}function fH(e,t,n=e){const i=e.useCaseSensitiveFileNames(),s={getSourceFile:Pq((o,c)=>c?e.readFile(o,c):s.readFile(o),t,void 0),getDefaultLibLocation:Os(e,e.getDefaultLibLocation),getDefaultLibFileName:o=>e.getDefaultLibFileName(o),writeFile:Dq((o,c,u)=>e.writeFile(o,c,u),o=>e.createDirectory(o),o=>e.directoryExists(o)),getCurrentDirectory:Hu(()=>e.getCurrentDirectory()),useCaseSensitiveFileNames:()=>i,getCanonicalFileName:nu(i),getNewLine:()=>t0(t()),fileExists:o=>e.fileExists(o),readFile:o=>e.readFile(o),trace:Os(e,e.trace),directoryExists:Os(n,n.directoryExists),getDirectories:Os(n,n.getDirectories),realpath:Os(e,e.realpath),getEnvironmentVariable:Os(e,e.getEnvironmentVariable)||(()=>""),createHash:Os(e,e.createHash),readDirectory:Os(e,e.readDirectory),storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit,jsDocParsingMode:e.jsDocParsingMode};return s}function tL(e,t){if(t.match(ZU)){let n=t.length,i=n;for(let s=n-1;s>=0;s--){const o=t.charCodeAt(s);switch(o){case 10:s&&t.charCodeAt(s-1)===13&&s--;case 13:break;default:if(o<127||!gu(o)){i=s;continue}break}const c=t.substring(i,n);if(c.match(y9)){t=t.substring(0,i);break}else if(!c.match(v9))break;n=i}}return(e.createHash||$4)(t)}function rL(e){const t=e.getSourceFile;e.getSourceFile=(...n)=>{const i=t.call(e,...n);return i&&(i.version=tL(e,i.text)),i}}function pH(e,t){const n=Hu(()=>Un(Hs(e.getExecutingFilePath())));return{useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames,getNewLine:()=>e.newLine,getCurrentDirectory:Hu(()=>e.getCurrentDirectory()),getDefaultLibLocation:n,getDefaultLibFileName:i=>Mn(n(),JD(i)),fileExists:i=>e.fileExists(i),readFile:(i,s)=>e.readFile(i,s),directoryExists:i=>e.directoryExists(i),getDirectories:i=>e.getDirectories(i),readDirectory:(i,s,o,c,u)=>e.readDirectory(i,s,o,c,u),realpath:Os(e,e.realpath),getEnvironmentVariable:Os(e,e.getEnvironmentVariable),trace:i=>e.write(i+e.newLine),createDirectory:i=>e.createDirectory(i),writeFile:(i,s,o)=>e.writeFile(i,s,o),createHash:Os(e,e.createHash),createProgram:t||eH,storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit,now:Os(e,e.now)}}function wSe(e=zl,t,n,i){const s=c=>e.write(c+e.newLine),o=pH(e,t);return fB(o,uH(e,i)),o.afterProgramCreate=c=>{const u=c.getCompilerOptions(),f=t0(u);eL(c,n,s,g=>o.onWatchStatusChange(gc(nH(g),g),f,u,g))},o}function ASe(e,t,n){t(n),e.exit(1)}function coe({configFileName:e,optionsToExtend:t,watchOptionsToExtend:n,extraFileExtensions:i,system:s,createProgram:o,reportDiagnostic:c,reportWatchStatus:u}){const f=c||wA(s),g=wSe(s,o,f,u);return g.onUnRecoverableConfigFileDiagnostic=d=>ASe(s,f,d),g.configFileName=e,g.optionsToExtend=t,g.watchOptionsToExtend=n,g.extraFileExtensions=i,g}function loe({rootFiles:e,options:t,watchOptions:n,projectReferences:i,system:s,createProgram:o,reportDiagnostic:c,reportWatchStatus:u}){const f=wSe(s,o,c||wA(s),u);return f.rootFiles=e,f.options=t,f.watchOptions=n,f.projectReferences=i,f}function NSe(e){const t=e.system||zl,n=e.host||(e.host=dH(e.options,t)),i=_oe(e),s=ooe(i,e.reportDiagnostic||wA(t),o=>n.trace&&n.trace(o),e.reportErrorSummary||e.options.pretty?(o,c)=>t.write(soe(o,c,t.newLine,n)):void 0);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(i),s}var uoe,nL,p6,d6,al,sje=Dt({"src/compiler/watch.ts"(){Fs(),uoe=zl?{getCurrentDirectory:()=>zl.getCurrentDirectory(),getNewLine:()=>zl.newLine,getCanonicalFileName:nu(zl.useCaseSensitiveFileNames)}:void 0,nL=[p.Starting_compilation_in_watch_mode.code,p.File_change_detected_Starting_incremental_compilation.code],p6={close:Ca},d6=()=>p6,al={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 iL(e,t){const n=c0(e);if(!n)return;let i;if(t.getBuildInfo)i=t.getBuildInfo(n,e.configFilePath);else{const s=t.readFile(n);if(!s)return;i=F9(n,s)}if(!(!i||i.version!==ld||!i.program))return Qae(i,n,t)}function dH(e,t=zl){const n=wq(e,void 0,t);return n.createHash=Os(t,t.createHash),n.storeFilesChangingSignatureDuringEmit=t.storeFilesChangingSignatureDuringEmit,rL(n),kA(n,i=>Io(i,n.getCurrentDirectory(),n.getCanonicalFileName)),n}function _oe({rootNames:e,options:t,configFileParsingDiagnostics:n,projectReferences:i,host:s,createProgram:o}){s=s||dH(t),o=o||eH;const c=iL(t,s);return o(e,t,s,c,n,i)}function ISe(e,t,n,i,s,o,c,u){return ts(e)?loe({rootFiles:e,options:t,watchOptions:u,projectReferences:c,system:n,createProgram:i,reportDiagnostic:s,reportWatchStatus:o}):coe({configFileName:e,optionsToExtend:t,watchOptionsToExtend:c,extraFileExtensions:u,system:n,createProgram:i,reportDiagnostic:s,reportWatchStatus:o})}function FSe(e){let t,n,i,s,o,c,u,f,g=e.extendedConfigCache,d=!1;const y=new Map;let S,T=!1;const k=e.useCaseSensitiveFileNames(),w=e.getCurrentDirectory(),{configFileName:P,optionsToExtend:F={},watchOptionsToExtend:J,extraFileExtensions:U,createProgram:$}=e;let{rootFiles:j,options:re,watchOptions:R,projectReferences:Y}=e,ue,pe,H=!1,q=!1;const ee=P===void 0?void 0:L9(e,w,k),oe=ee||e,Se=U9(e,oe);let ae=hr();P&&e.configFileParsingResult&&(_a(e.configFileParsingResult),ae=hr()),yr(p.Starting_compilation_in_watch_mode),P&&!e.configFileParsingResult&&(ae=t0(F),E.assert(!j),Vs(),ae=hr()),E.assert(re),E.assert(j);const{watchFile:K,watchDirectory:fe,writeLog:ke}=_H(e,re),Oe=nu(k);ke(`Current directory: ${w} CaseSensitiveFileNames: ${k}`);let me;P&&(me=K(P,fr,2e3,R,al.ConfigFile));const be=fH(e,()=>re,oe);rL(be);const xe=be.getSourceFile;be.getSourceFile=(Be,...nt)=>Kn(Be,Lr(Be),...nt),be.getSourceFileByPath=Kn,be.getNewLine=()=>ae,be.fileExists=Rt,be.onReleaseOldSourceFile=os,be.onReleaseParsedCommandLine=Le,be.toPath=Lr,be.getCompilationSettings=()=>re,be.useSourceOfProjectReferenceRedirect=Os(e,e.useSourceOfProjectReferenceRedirect),be.watchDirectoryOfFailedLookupLocation=(Be,nt,wt)=>fe(Be,nt,wt,R,al.FailedLookupLocations),be.watchAffectingFileLocation=(Be,nt)=>K(Be,nt,2e3,R,al.AffectingFileLocation),be.watchTypeRootsDirectory=(Be,nt,wt)=>fe(Be,nt,wt,R,al.TypeRoots),be.getCachedDirectoryStructureHost=()=>ee,be.scheduleInvalidateResolutionsOfFailedLookupLocations=Ht,be.onInvalidatedResolution=Et,be.onChangedAutomaticTypeDirectiveNames=Et,be.fileIsOpen=_d,be.getCurrentProgram=Je,be.writeLog=ke,be.getParsedCommandLine=cr;const De=rH(be,P?Un(Xi(P,w)):w,!1);be.resolveModuleNameLiterals=Os(e,e.resolveModuleNameLiterals),be.resolveModuleNames=Os(e,e.resolveModuleNames),!be.resolveModuleNameLiterals&&!be.resolveModuleNames&&(be.resolveModuleNameLiterals=De.resolveModuleNameLiterals.bind(De)),be.resolveTypeReferenceDirectiveReferences=Os(e,e.resolveTypeReferenceDirectiveReferences),be.resolveTypeReferenceDirectives=Os(e,e.resolveTypeReferenceDirectives),!be.resolveTypeReferenceDirectiveReferences&&!be.resolveTypeReferenceDirectives&&(be.resolveTypeReferenceDirectiveReferences=De.resolveTypeReferenceDirectiveReferences.bind(De)),be.resolveLibrary=e.resolveLibrary?e.resolveLibrary.bind(e):De.resolveLibrary.bind(De),be.getModuleResolutionCache=e.resolveModuleNameLiterals||e.resolveModuleNames?Os(e,e.getModuleResolutionCache):()=>De.getModuleResolutionCache();const ge=!!e.resolveModuleNameLiterals||!!e.resolveTypeReferenceDirectiveReferences||!!e.resolveModuleNames||!!e.resolveTypeReferenceDirectives?Os(e,e.hasInvalidatedResolutions)||Wh:_d,Fe=e.resolveLibrary?Os(e,e.hasInvalidatedLibResolutions)||Wh:_d;return t=iL(re,be),pt(),et(),P&&Ge(Lr(P),re,R,al.ExtendedConfigFile),P?{getCurrentProgram:at,getProgram:ei,close:$e,getResolutionCache:Pt}:{getCurrentProgram:at,getProgram:ei,updateRootFileNames:Vt,close:$e,getResolutionCache:Pt};function $e(){ln(),De.clear(),T_(y,Be=>{Be&&Be.fileWatcher&&(Be.fileWatcher.close(),Be.fileWatcher=void 0)}),me&&(me.close(),me=void 0),g==null||g.clear(),g=void 0,f&&(T_(f,Xf),f=void 0),s&&(T_(s,Xf),s=void 0),i&&(T_(i,dd),i=void 0),u&&(T_(u,Be=>{var nt;(nt=Be.watcher)==null||nt.close(),Be.watcher=void 0,Be.watchedDirectories&&T_(Be.watchedDirectories,Xf),Be.watchedDirectories=void 0}),u=void 0)}function Pt(){return De}function at(){return t}function Je(){return t&&t.getProgramOrUndefined()}function pt(){ke("Synchronizing program"),E.assert(re),E.assert(j),ln();const Be=at();T&&(ae=hr(),Be&&t5(Be.getCompilerOptions(),re)&&De.onChangesAffectModuleResolution());const{hasInvalidatedResolutions:nt,hasInvalidatedLibResolutions:wt}=De.createHasInvalidatedResolutions(ge,Fe),{originalReadFile:ir,originalFileExists:Yt,originalDirectoryExists:Kt,originalCreateDirectory:W,originalWriteFile:Pe,readFileWithCache:St}=kA(be,Lr);return Bq(Je(),j,re,A=>yi(A,St),A=>be.fileExists(A),nt,wt,_i,cr,Y)?q&&(d&&yr(p.File_change_detected_Starting_incremental_compilation),t=$(void 0,void 0,be,t,pe,Y),q=!1):(d&&yr(p.File_change_detected_Starting_incremental_compilation),zt(nt,wt)),d=!1,e.afterProgramCreate&&Be!==t&&e.afterProgramCreate(t),be.readFile=ir,be.fileExists=Yt,be.directoryExists=Kt,be.createDirectory=W,be.writeFile=Pe,t}function zt(Be,nt){ke("CreatingProgramWith::"),ke(` roots: ${JSON.stringify(j)}`),ke(` options: ${JSON.stringify(re)}`),Y&&ke(` projectReferences: ${JSON.stringify(Y)}`);const wt=T||!Je();T=!1,q=!1,De.startCachingPerDirectoryResolution(),be.hasInvalidatedResolutions=Be,be.hasInvalidatedLibResolutions=nt,be.hasChangedAutomaticTypeDirectiveNames=_i;const ir=Je();if(t=$(j,re,be,t,pe,Y),De.finishCachingPerDirectoryResolution(t.getProgram(),ir),xq(t.getProgram(),i||(i=new Map),ne),wt&&De.updateTypeRootsWatch(),S){for(const Yt of S)i.has(Yt)||y.delete(Yt);S=void 0}}function Vt(Be){E.assert(!P,"Cannot update root file names with config file watch mode"),j=Be,Et()}function hr(){return t0(re||F)}function Lr(Be){return Io(Be,w,Oe)}function er(Be){return typeof Be=="boolean"}function jt(Be){return typeof Be.version=="boolean"}function Rt(Be){const nt=Lr(Be);return er(y.get(nt))?!1:oe.fileExists(Be)}function Kn(Be,nt,wt,ir,Yt){const Kt=y.get(nt);if(er(Kt))return;const W=typeof wt=="object"?wt.impliedNodeFormat:void 0;if(Kt===void 0||Yt||jt(Kt)||Kt.sourceFile.impliedNodeFormat!==W){const Pe=xe(Be,wt,ir);if(Kt)Pe?(Kt.sourceFile=Pe,Kt.version=Pe.version,Kt.fileWatcher||(Kt.fileWatcher=rt(nt,Be,tt,250,R,al.SourceFile))):(Kt.fileWatcher&&Kt.fileWatcher.close(),y.set(nt,!1));else if(Pe){const St=rt(nt,Be,tt,250,R,al.SourceFile);y.set(nt,{sourceFile:Pe,version:Pe.version,fileWatcher:St})}else y.set(nt,!1);return Pe}return Kt.sourceFile}function Ji(Be){const nt=y.get(Be);nt!==void 0&&(er(nt)?y.set(Be,{version:!1}):nt.version=!1)}function yi(Be,nt){const wt=y.get(Be);if(!wt)return;if(wt.version)return wt.version;const ir=nt(Be);return ir!==void 0?tL(be,ir):void 0}function os(Be,nt,wt){const ir=y.get(Be.resolvedPath);ir!==void 0&&(er(ir)?(S||(S=[])).push(Be.path):ir.sourceFile===Be&&(ir.fileWatcher&&ir.fileWatcher.close(),y.delete(Be.resolvedPath),wt||De.removeResolutionsOfFile(Be.path)))}function yr(Be){e.onWatchStatusChange&&e.onWatchStatusChange(gc(Be),ae,re||F)}function _i(){return De.hasChangedAutomaticTypeDirectiveNames()}function ln(){return c?(e.clearTimeout(c),c=void 0,!0):!1}function Ht(){if(!e.setTimeout||!e.clearTimeout)return De.invalidateResolutionsOfFailedLookupLocations();const Be=ln();ke(`Scheduling invalidateFailedLookup${Be?", Cancelled earlier one":""}`),c=e.setTimeout(Ue,250,"timerToInvalidateFailedLookupResolutions")}function Ue(){c=void 0,De.invalidateResolutionsOfFailedLookupLocations()&&Et()}function Et(){!e.setTimeout||!e.clearTimeout||(o&&e.clearTimeout(o),ke("Scheduling update"),o=e.setTimeout(Hn,250,"timerToUpdateProgram"))}function fr(){E.assert(!!P),n=2,Et()}function Hn(){o=void 0,d=!0,ei()}function ei(){var Be,nt,wt,ir;switch(n){case 1:(Be=wu)==null||Be.logStartUpdateProgram("PartialConfigReload"),Ii();break;case 2:(nt=wu)==null||nt.logStartUpdateProgram("FullConfigReload"),ns();break;default:(wt=wu)==null||wt.logStartUpdateProgram("SynchronizeProgram"),pt();break}return(ir=wu)==null||ir.logStopUpdateProgram("Done"),at()}function Ii(){ke("Reloading new file names and options"),E.assert(re),E.assert(P),n=0,j=E3(re.configFile.configFileSpecs,Xi(Un(P),w),re,Se,U),UO(j,Xi(P,w),re.configFile.configFileSpecs,pe,H)&&(q=!0),pt()}function ns(){E.assert(P),ke(`Reloading config file: ${P}`),n=0,ee&&ee.clearCache(),Vs(),T=!0,pt(),et(),Ge(Lr(P),re,R,al.ExtendedConfigFile)}function Vs(){E.assert(P),_a(Gw(P,F,Se,g||(g=new Map),J,U))}function _a(Be){j=Be.fileNames,re=Be.options,R=Be.watchOptions,Y=Be.projectReferences,ue=Be.wildcardDirectories,pe=iS(Be).slice(),H=C3(Be.raw),q=!0}function cr(Be){const nt=Lr(Be);let wt=u==null?void 0:u.get(nt);if(wt){if(!wt.updateLevel)return wt.parsedCommandLine;if(wt.parsedCommandLine&&wt.updateLevel===1&&!e.getParsedCommandLine){ke("Reloading new file names and options"),E.assert(re);const Yt=E3(wt.parsedCommandLine.options.configFile.configFileSpecs,Xi(Un(Be),w),re,Se);return wt.parsedCommandLine={...wt.parsedCommandLine,fileNames:Yt},wt.updateLevel=void 0,wt.parsedCommandLine}}ke(`Loading config file: ${Be}`);const ir=e.getParsedCommandLine?e.getParsedCommandLine(Be):br(Be);return wt?(wt.parsedCommandLine=ir,wt.updateLevel=void 0):(u||(u=new Map)).set(nt,wt={parsedCommandLine:ir}),mt(Be,nt,wt),ir}function br(Be){const nt=Se.onUnRecoverableConfigFileDiagnostic;Se.onUnRecoverableConfigFileDiagnostic=Ca;const wt=Gw(Be,void 0,Se,g||(g=new Map),J);return Se.onUnRecoverableConfigFileDiagnostic=nt,wt}function Le(Be){var nt;const wt=Lr(Be),ir=u==null?void 0:u.get(wt);ir&&(u.delete(wt),ir.watchedDirectories&&T_(ir.watchedDirectories,Xf),(nt=ir.watcher)==null||nt.close(),Tq(wt,f))}function rt(Be,nt,wt,ir,Yt,Kt){return K(nt,(W,Pe)=>wt(W,Pe,Be),ir,Yt,Kt)}function tt(Be,nt,wt){yt(Be,wt,nt),nt===2&&y.has(wt)&&De.invalidateResolutionOfFile(wt),Ji(wt),Et()}function yt(Be,nt,wt){ee&&ee.addOrDeleteFile(Be,nt,wt)}function ne(Be,nt){return u!=null&&u.has(Be)?p6:rt(Be,nt,we,500,R,al.MissingFile)}function we(Be,nt,wt){yt(Be,wt,nt),nt===0&&i.has(wt)&&(i.get(wt).close(),i.delete(wt),Ji(wt),Et())}function et(){SA(s||(s=new Map),ue,B)}function B(Be,nt){return fe(Be,wt=>{E.assert(P),E.assert(re);const ir=Lr(wt);ee&&ee.addOrDeleteFileOrDirectory(wt,ir),Ji(ir),!TA({watchedDirPath:Lr(Be),fileOrDirectory:wt,fileOrDirectoryPath:ir,configFileName:P,extraFileExtensions:U,options:re,program:at()||j,currentDirectory:w,useCaseSensitiveFileNames:k,writeLog:ke,toPath:Lr})&&n!==2&&(n=1,Et())},nt,R,al.WildcardDirectory)}function Ge(Be,nt,wt,ir){M9(Be,nt,f||(f=new Map),(Yt,Kt)=>K(Yt,(W,Pe)=>{var St;yt(Yt,Kt,Pe),g&&R9(g,Kt,Lr);const A=(St=f.get(Kt))==null?void 0:St.projects;A!=null&&A.size&&A.forEach(le=>{if(P&&Lr(P)===le)n=2;else{const V=u==null?void 0:u.get(le);V&&(V.updateLevel=2),De.removeResolutionsFromProjectReferenceRedirects(le)}Et()})},2e3,wt,ir),Lr)}function mt(Be,nt,wt){var ir,Yt,Kt,W;wt.watcher||(wt.watcher=K(Be,(Pe,St)=>{yt(Be,nt,St);const A=u==null?void 0:u.get(nt);A&&(A.updateLevel=2),De.removeResolutionsFromProjectReferenceRedirects(nt),Et()},2e3,((ir=wt.parsedCommandLine)==null?void 0:ir.watchOptions)||R,al.ConfigFileOfReferencedProject)),SA(wt.watchedDirectories||(wt.watchedDirectories=new Map),(Yt=wt.parsedCommandLine)==null?void 0:Yt.wildcardDirectories,(Pe,St)=>{var A;return fe(Pe,le=>{const V=Lr(le);ee&&ee.addOrDeleteFileOrDirectory(le,V),Ji(V);const ce=u==null?void 0:u.get(nt);ce!=null&&ce.parsedCommandLine&&(TA({watchedDirPath:Lr(Pe),fileOrDirectory:le,fileOrDirectoryPath:V,configFileName:Be,options:ce.parsedCommandLine.options,program:ce.parsedCommandLine.fileNames,currentDirectory:w,useCaseSensitiveFileNames:k,writeLog:ke,toPath:Lr})||ce.updateLevel!==2&&(ce.updateLevel=1,Et()))},St,((A=wt.parsedCommandLine)==null?void 0:A.watchOptions)||R,al.WildcardDirectoryOfReferencedProject)}),Ge(nt,(Kt=wt.parsedCommandLine)==null?void 0:Kt.options,((W=wt.parsedCommandLine)==null?void 0:W.watchOptions)||R,al.ExtendedConfigOfReferencedProject)}}var aje=Dt({"src/compiler/watchPublic.ts"(){Fs()}});function mH(e){return Zo(e,".json")?e:Mn(e,"tsconfig.json")}var gH,oje=Dt({"src/compiler/tsbuild.ts"(){Fs(),gH=(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))(gH||{})}});function cje(e,t,n){const i=e.get(t);let s;return i||(s=n(),e.set(t,s)),i||s}function foe(e,t){return cje(e,t,()=>new Map)}function NA(e){return e.now?e.now():new Date}function Cx(e){return!!e&&!!e.buildOrder}function sL(e){return Cx(e)?e.buildOrder:e}function poe(e,t){return n=>{let i=t?`[${S2(AA(e),"\x1B[90m")}] `:`${AA(e)} - `;i+=`${em(n.messageText,e.newLine)}${e.newLine+e.newLine}`,e.write(i)}}function OSe(e,t,n,i){const s=pH(e,t);return s.getModifiedTime=e.getModifiedTime?o=>e.getModifiedTime(o):f1,s.setModifiedTime=e.setModifiedTime?(o,c)=>e.setModifiedTime(o,c):Ca,s.deleteFile=e.deleteFile?o=>e.deleteFile(o):Ca,s.reportDiagnostic=n||wA(e),s.reportSolutionBuilderStatus=i||poe(e),s.now=Os(e,e.now),s}function LSe(e=zl,t,n,i,s){const o=OSe(e,t,n,i);return o.reportErrorSummary=s,o}function MSe(e=zl,t,n,i,s){const o=OSe(e,t,n,i),c=uH(e,s);return fB(o,c),o}function lje(e){const t={};return eA.forEach(n=>{Ka(e,n.name)&&(t[n.name]=e[n.name])}),t}function RSe(e,t,n){return oTe(!1,e,t,n)}function jSe(e,t,n,i){return oTe(!0,e,t,n,i)}function uje(e,t,n,i,s){const o=t,c=t,u=lje(i),f=fH(o,()=>w.projectCompilerOptions);rL(f),f.getParsedCommandLine=P=>Ex(w,P,tm(w,P)),f.resolveModuleNameLiterals=Os(o,o.resolveModuleNameLiterals),f.resolveTypeReferenceDirectiveReferences=Os(o,o.resolveTypeReferenceDirectiveReferences),f.resolveLibrary=Os(o,o.resolveLibrary),f.resolveModuleNames=Os(o,o.resolveModuleNames),f.resolveTypeReferenceDirectives=Os(o,o.resolveTypeReferenceDirectives),f.getModuleResolutionCache=Os(o,o.getModuleResolutionCache);let g,d;!f.resolveModuleNameLiterals&&!f.resolveModuleNames&&(g=e6(f.getCurrentDirectory(),f.getCanonicalFileName),f.resolveModuleNameLiterals=(P,F,J,U,$)=>EA(P,F,J,U,$,o,g,Lq),f.getModuleResolutionCache=()=>g),!f.resolveTypeReferenceDirectiveReferences&&!f.resolveTypeReferenceDirectives&&(d=n9(f.getCurrentDirectory(),f.getCanonicalFileName,void 0,g==null?void 0:g.getPackageJsonInfoCache(),g==null?void 0:g.optionsToRedirectsKey),f.resolveTypeReferenceDirectiveReferences=(P,F,J,U,$)=>EA(P,F,J,U,$,o,d,B9));let y;f.resolveLibrary||(y=e6(f.getCurrentDirectory(),f.getCanonicalFileName,void 0,g==null?void 0:g.getPackageJsonInfoCache()),f.resolveLibrary=(P,F,J)=>i9(P,F,J,o,y)),f.getBuildInfo=(P,F)=>ZSe(w,P,tm(w,F),void 0);const{watchFile:S,watchDirectory:T,writeLog:k}=_H(c,i),w={host:o,hostWithWatch:c,parseConfigFileHost:U9(o),write:Os(o,o.trace),options:i,baseCompilerOptions:u,rootNames:n,baseWatchOptions:s,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:f,moduleResolutionCache:g,typeReferenceDirectiveResolutionCache:d,libraryResolutionCache:y,buildOrder:void 0,readFileWithCache:P=>o.readFile(P),projectCompilerOptions:u,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:S,watchDirectory:T,writeLog:k};return w}function Qf(e,t){return Io(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function tm(e,t){const{resolvedConfigFilePaths:n}=e,i=n.get(t);if(i!==void 0)return i;const s=Qf(e,t);return n.set(t,s),s}function BSe(e){return!!e.options}function _je(e,t){const n=e.configFileCache.get(t);return n&&BSe(n)?n:void 0}function Ex(e,t,n){const{configFileCache:i}=e,s=i.get(n);if(s)return BSe(s)?s:void 0;No("SolutionBuilder::beforeConfigFileParsing");let o;const{parseConfigFileHost:c,baseCompilerOptions:u,baseWatchOptions:f,extendedConfigCache:g,host:d}=e;let y;return d.getParsedCommandLine?(y=d.getParsedCommandLine(t),y||(o=gc(p.File_0_not_found,t))):(c.onUnRecoverableConfigFileDiagnostic=S=>o=S,y=Gw(t,u,c,g,f),c.onUnRecoverableConfigFileDiagnostic=Ca),i.set(n,y||o),No("SolutionBuilder::afterConfigFileParsing"),vf("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),y}function H3(e,t){return mH(V0(e.compilerHost.getCurrentDirectory(),t))}function JSe(e,t){const n=new Map,i=new Map,s=[];let o,c;for(const f of t)u(f);return c?{buildOrder:o||Ve,circularDiagnostics:c}:o||Ve;function u(f,g){const d=tm(e,f);if(i.has(d))return;if(n.has(d)){g||(c||(c=[])).push(gc(p.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,s.join(`\r +`)));return}n.set(d,!0),s.push(f);const y=Ex(e,f,d);if(y&&y.projectReferences)for(const S of y.projectReferences){const T=H3(e,S.path);u(T,g||S.circular)}s.pop(),i.set(d,!0),(o||(o=[])).push(f)}}function aL(e){return e.buildOrder||fje(e)}function fje(e){const t=JSe(e,e.rootNames.map(s=>H3(e,s)));e.resolvedConfigFilePaths.clear();const n=new Set(sL(t).map(s=>tm(e,s))),i={onDeleteValue:Ca};return Tg(e.configFileCache,n,i),Tg(e.projectStatus,n,i),Tg(e.builderPrograms,n,i),Tg(e.diagnostics,n,i),Tg(e.projectPendingBuild,n,i),Tg(e.projectErrorsReported,n,i),Tg(e.buildInfoCache,n,i),Tg(e.outputTimeStamps,n,i),Tg(e.lastCachedPackageJsonLookups,n,i),e.watch&&(Tg(e.allWatchedConfigFiles,n,{onDeleteValue:dd}),e.allWatchedExtendedConfigFiles.forEach(s=>{s.projects.forEach(o=>{n.has(o)||s.projects.delete(o)}),s.close()}),Tg(e.allWatchedWildcardDirectories,n,{onDeleteValue:s=>s.forEach(Xf)}),Tg(e.allWatchedInputFiles,n,{onDeleteValue:s=>s.forEach(dd)}),Tg(e.allWatchedPackageJsonFiles,n,{onDeleteValue:s=>s.forEach(dd)})),e.buildOrder=t}function zSe(e,t,n){const i=t&&H3(e,t),s=aL(e);if(Cx(s))return s;if(i){const c=tm(e,i);if(vc(s,f=>tm(e,f)===c)===-1)return}const o=i?JSe(e,[i]):s;return E.assert(!Cx(o)),E.assert(!n||i!==void 0),E.assert(!n||o[o.length-1]===i),n?o.slice(0,o.length-1):o}function WSe(e){e.cache&&doe(e);const{compilerHost:t,host:n}=e,i=e.readFileWithCache,s=t.getSourceFile,{originalReadFile:o,originalFileExists:c,originalDirectoryExists:u,originalCreateDirectory:f,originalWriteFile:g,getSourceFileWithCache:d,readFileWithCache:y}=kA(n,S=>Qf(e,S),(...S)=>s.call(t,...S));e.readFileWithCache=y,t.getSourceFile=d,e.cache={originalReadFile:o,originalFileExists:c,originalDirectoryExists:u,originalCreateDirectory:f,originalWriteFile:g,originalReadFileWithCache:i,originalGetSourceFile:s}}function doe(e){if(!e.cache)return;const{cache:t,host:n,compilerHost:i,extendedConfigCache:s,moduleResolutionCache:o,typeReferenceDirectiveResolutionCache:c,libraryResolutionCache:u}=e;n.readFile=t.originalReadFile,n.fileExists=t.originalFileExists,n.directoryExists=t.originalDirectoryExists,n.createDirectory=t.originalCreateDirectory,n.writeFile=t.originalWriteFile,i.getSourceFile=t.originalGetSourceFile,e.readFileWithCache=t.originalReadFileWithCache,s.clear(),o==null||o.clear(),c==null||c.clear(),u==null||u.clear(),e.cache=void 0}function VSe(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function USe({projectPendingBuild:e},t,n){const i=e.get(t);(i===void 0||ie.projectPendingBuild.set(tm(e,i),0)),t&&t.throwIfCancellationRequested()}function HSe(e,t){return e.projectPendingBuild.delete(t),e.diagnostics.has(t)?1:0}function pje(e,t,n,i,s){let o=!0;return{kind:2,project:t,projectPath:n,buildOrder:s,getCompilerOptions:()=>i.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),updateOutputFileStatmps:()=>{eTe(e,i,n),o=!1},done:()=>(o&&eTe(e,i,n),No("SolutionBuilder::Timestamps only updates"),HSe(e,n))}}function GSe(e,t,n,i,s,o,c){let u=e===0?0:4,f,g,d;return e===0?{kind:e,project:n,projectPath:i,buildOrder:c,getCompilerOptions:()=>o.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>S(wo),getProgram:()=>S(R=>R.getProgramOrUndefined()),getSourceFile:R=>S(Y=>Y.getSourceFile(R)),getSourceFiles:()=>T(R=>R.getSourceFiles()),getOptionsDiagnostics:R=>T(Y=>Y.getOptionsDiagnostics(R)),getGlobalDiagnostics:R=>T(Y=>Y.getGlobalDiagnostics(R)),getConfigFileParsingDiagnostics:()=>T(R=>R.getConfigFileParsingDiagnostics()),getSyntacticDiagnostics:(R,Y)=>T(ue=>ue.getSyntacticDiagnostics(R,Y)),getAllDependencies:R=>T(Y=>Y.getAllDependencies(R)),getSemanticDiagnostics:(R,Y)=>T(ue=>ue.getSemanticDiagnostics(R,Y)),getSemanticDiagnosticsOfNextAffectedFile:(R,Y)=>S(ue=>ue.getSemanticDiagnosticsOfNextAffectedFile&&ue.getSemanticDiagnosticsOfNextAffectedFile(R,Y)),emit:(R,Y,ue,pe,H)=>{if(R||pe)return S(q=>{var ee,oe;return q.emit(R,Y,ue,pe,H||((oe=(ee=t.host).getCustomTransformers)==null?void 0:oe.call(ee,n)))});if(re(2,ue),u===5)return U(Y,ue);if(u===3)return J(Y,ue,H)},done:y}:{kind:e,project:n,projectPath:i,buildOrder:c,getCompilerOptions:()=>o.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),emit:(R,Y)=>u!==4?d:j(R,Y),done:y};function y(R,Y,ue){return re(8,R,Y,ue),No(e===0?"SolutionBuilder::Projects built":"SolutionBuilder::Bundles updated"),HSe(t,i)}function S(R){return re(0),f&&R(f)}function T(R){return S(R)||Ve}function k(){var R,Y,ue;if(E.assert(f===void 0),t.options.dry){Yu(t,p.A_non_dry_build_would_build_project_0,n),g=1,u=7;return}if(t.options.verbose&&Yu(t,p.Building_project_0,n),o.fileNames.length===0){G3(t,i,iS(o)),g=0,u=7;return}const{host:pe,compilerHost:H}=t;if(t.projectCompilerOptions=o.options,(R=t.moduleResolutionCache)==null||R.update(o.options),(Y=t.typeReferenceDirectiveResolutionCache)==null||Y.update(o.options),f=pe.createProgram(o.fileNames,o.options,H,mje(t,i,o),iS(o),o.projectReferences),t.watch){const q=(ue=t.moduleResolutionCache)==null?void 0:ue.getPackageJsonInfoCache().getInternalMap();t.lastCachedPackageJsonLookups.set(i,q&&new Set(gs(q.values(),ee=>t.host.realpath&&(r9(ee)||ee.directoryExists)?t.host.realpath(Mn(ee.packageDirectory,"package.json")):Mn(ee.packageDirectory,"package.json")))),t.builderPrograms.set(i,f)}u++}function w(R,Y,ue){R.length?{buildResult:g,step:u}=hoe(t,i,f,o,R,Y,ue):u++}function P(R){E.assertIsDefined(f),w([...f.getConfigFileParsingDiagnostics(),...f.getOptionsDiagnostics(R),...f.getGlobalDiagnostics(R),...f.getSyntacticDiagnostics(void 0,R)],8,"Syntactic")}function F(R){w(E.checkDefined(f).getSemanticDiagnostics(void 0,R),16,"Semantic")}function J(R,Y,ue){var pe,H,q;E.assertIsDefined(f),E.assert(u===3);const ee=f.saveEmitState();let oe;const Se=Fe=>(oe||(oe=[])).push(Fe),ae=[],{emitResult:K}=eL(f,Se,void 0,void 0,(Fe,$e,Pt,at,Je,pt)=>ae.push({name:Fe,text:$e,writeByteOrderMark:Pt,data:pt}),Y,!1,ue||((H=(pe=t.host).getCustomTransformers)==null?void 0:H.call(pe,n)));if(oe)return f.restoreEmitState(ee),{buildResult:g,step:u}=hoe(t,i,f,o,oe,32,"Declaration file"),{emitSkipped:!0,diagnostics:K.diagnostics};const{host:fe,compilerHost:ke}=t,Oe=(q=f.hasChangedEmitSignature)!=null&&q.call(f)?0:2,me=yC(),be=new Map,xe=f.getCompilerOptions(),De=n3(xe);let ft,ge;return ae.forEach(({name:Fe,text:$e,writeByteOrderMark:Pt,data:at})=>{const Je=Qf(t,Fe);be.set(Qf(t,Fe),Fe),at!=null&&at.buildInfo&&voe(t,at.buildInfo,i,xe,Oe);const pt=at!=null&&at.differsOnlyInMap?TT(t.host,Fe):void 0;wE(R?{writeFile:R}:ke,me,Fe,$e,Pt),at!=null&&at.differsOnlyInMap?t.host.setModifiedTime(Fe,pt):!De&&t.watch&&(ft||(ft=yoe(t,i))).set(Je,ge||(ge=NA(t.host)))}),$(me,be,ae.length?ae[0].name:vq(o,!fe.useCaseSensitiveFileNames()),Oe),K}function U(R,Y){E.assertIsDefined(f),E.assert(u===5);const ue=f.emitBuildInfo((pe,H,q,ee,oe,Se)=>{Se!=null&&Se.buildInfo&&voe(t,Se.buildInfo,i,f.getCompilerOptions(),2),R?R(pe,H,q,ee,oe,Se):t.compilerHost.writeFile(pe,H,q,ee,oe,Se)},Y);return ue.diagnostics.length&&(cL(t,ue.diagnostics),t.diagnostics.set(i,[...t.diagnostics.get(i),...ue.diagnostics]),g=64&g),ue.emittedFiles&&t.write&&ue.emittedFiles.forEach(pe=>QSe(t,o,pe)),goe(t,f,o),u=7,ue}function $(R,Y,ue,pe){const H=R.getDiagnostics();return H.length?({buildResult:g,step:u}=hoe(t,i,f,o,H,64,"Emit"),H):(t.write&&Y.forEach(q=>QSe(t,o,q)),KSe(t,o,i,p.Updating_unchanged_output_timestamps_of_project_0,Y),t.diagnostics.delete(i),t.projectStatus.set(i,{type:1,oldestOutputFileName:ue}),goe(t,f,o),u=7,g=pe,H)}function j(R,Y){var ue,pe,H,q;if(E.assert(e===1),t.options.dry){Yu(t,p.A_non_dry_build_would_update_output_of_project_0,n),g=1,u=7;return}t.options.verbose&&Yu(t,p.Updating_output_of_project_0,n);const{compilerHost:ee}=t;t.projectCompilerOptions=o.options,(pe=(ue=t.host).beforeEmitBundle)==null||pe.call(ue,o);const oe=Pae(o,ee,Oe=>{const me=H3(t,Oe.path);return Ex(t,me,tm(t,me))},Y||((q=(H=t.host).getCustomTransformers)==null?void 0:q.call(H,n)));if(ls(oe))return Yu(t,p.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,n,Fl(t,oe)),u=6,d=GSe(0,t,n,i,s,o,c);E.assert(!!oe.length);const Se=yC(),ae=new Map;let K=2;const fe=t.buildInfoCache.get(i).buildInfo||void 0;return oe.forEach(({name:Oe,text:me,writeByteOrderMark:be,data:xe})=>{var De,ft;ae.set(Qf(t,Oe),Oe),xe!=null&&xe.buildInfo&&(((De=xe.buildInfo.program)==null?void 0:De.outSignature)!==((ft=fe==null?void 0:fe.program)==null?void 0:ft.outSignature)&&(K&=-3),voe(t,xe.buildInfo,i,o.options,K)),wE(R?{writeFile:R}:ee,Se,Oe,me,be)}),{emitSkipped:!1,diagnostics:$(Se,ae,oe[0].name,K)}}function re(R,Y,ue,pe){for(;u<=R&&u<8;){const H=u;switch(u){case 0:k();break;case 1:P(Y);break;case 2:F(Y);break;case 3:J(ue,Y,pe);break;case 5:U(ue,Y);break;case 4:j(ue,pe);break;case 6:E.checkDefined(d).done(Y,ue,pe),u=8;break;case 7:vje(t,n,i,s,o,c,E.checkDefined(g)),u++;break}E.assert(u>H)}}}function dje({options:e},t,n){return t.type!==3||e.force?!0:n.fileNames.length===0||!!iS(n).length||!n3(n.options)}function $Se(e,t,n){if(!e.projectPendingBuild.size||Cx(t))return;const{options:i,projectPendingBuild:s}=e;for(let o=0;o{const T=E.checkDefined(e.filesWatched.get(u));E.assert(hH(T)),T.modifiedTime=S,T.callbacks.forEach(k=>k(d,y,S))},i,s,o,c);e.filesWatched.set(u,{callbacks:[n],watcher:g,modifiedTime:f})}return{close:()=>{const g=E.checkDefined(e.filesWatched.get(u));E.assert(hH(g)),g.callbacks.length===1?(e.filesWatched.delete(u),Xf(g)):bT(g.callbacks,n)}}}function yoe(e,t){if(!e.watch)return;let n=e.outputTimeStamps.get(t);return n||e.outputTimeStamps.set(t,n=new Map),n}function voe(e,t,n,i,s){const o=c0(i),c=boe(e,o,n),u=NA(e.host);c?(c.buildInfo=t,c.modifiedTime=u,s&2||(c.latestChangedDtsTime=u)):e.buildInfoCache.set(n,{path:Qf(e,o),buildInfo:t,modifiedTime:u,latestChangedDtsTime:s&2?void 0:u})}function boe(e,t,n){const i=Qf(e,t),s=e.buildInfoCache.get(n);return(s==null?void 0:s.path)===i?s:void 0}function ZSe(e,t,n,i){const s=Qf(e,t),o=e.buildInfoCache.get(n);if(o!==void 0&&o.path===s)return o.buildInfo||void 0;const c=e.readFileWithCache(t),u=c?F9(t,c):void 0;return e.buildInfoCache.set(n,{path:s,buildInfo:u||!1,modifiedTime:i||rf}),u}function Soe(e,t,n,i){const s=YSe(e,t);if(nP&&(w=H,P=q),T&&J.add(Qf(e,H))}if(T){k||(k=Qq(T,g,f));for(const H of k.roots)if(!J.has(H))return{type:10,buildInfoFile:g,inputFile:H}}if(!g){const H=N9(t,!f.useCaseSensitiveFileNames()),q=yoe(e,n);for(const ee of H){const oe=Qf(e,ee);let Se=q==null?void 0:q.get(oe);if(Se||(Se=TT(e.host,ee),q==null||q.set(oe,Se)),Se===rf)return{type:4,missingOutputFileName:ee};if(SeSoe(e,H,y,d));if(Y)return Y;const ue=e.lastCachedPackageJsonLookups.get(n),pe=ue&&Am(ue,H=>Soe(e,H,y,d));return pe||(j&&$?{type:3,outOfDateOutputFileName:d,newerProjectName:re}:{type:$?2:F?15:1,newestInputFileTime:P,newestInputFileName:w,oldestOutputFileName:d})}function hje(e,t,n){return e.buildInfoCache.get(n).path===t.path}function Toe(e,t,n){if(t===void 0)return{type:0,reason:"File deleted mid-build"};const i=e.projectStatus.get(n);if(i!==void 0)return i;No("SolutionBuilder::beforeUpToDateCheck");const s=gje(e,t,n);return No("SolutionBuilder::afterUpToDateCheck"),vf("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),e.projectStatus.set(n,s),s}function KSe(e,t,n,i,s){if(t.options.noEmit)return;let o;const c=c0(t.options);if(c){s!=null&&s.has(Qf(e,c))||(e.options.verbose&&Yu(e,i,t.options.configFilePath),e.host.setModifiedTime(c,o=NA(e.host)),boe(e,c,n).modifiedTime=o),e.outputTimeStamps.delete(n);return}const{host:u}=e,f=N9(t,!u.useCaseSensitiveFileNames()),g=yoe(e,n),d=g?new Set:void 0;if(!s||f.length!==s.size){let y=!!e.options.verbose;for(const S of f){const T=Qf(e,S);s!=null&&s.has(T)||(y&&(y=!1,Yu(e,i,t.options.configFilePath)),u.setModifiedTime(S,o||(o=NA(e.host))),g&&(g.set(T,o),d.add(T)))}}g==null||g.forEach((y,S)=>{!(s!=null&&s.has(S))&&!d.has(S)&&g.delete(S)})}function yje(e,t,n){if(!t.composite)return;const i=E.checkDefined(e.buildInfoCache.get(n));if(i.latestChangedDtsTime!==void 0)return i.latestChangedDtsTime||void 0;const s=i.buildInfo&&i.buildInfo.program&&i.buildInfo.program.latestChangedDtsFile?e.host.getModifiedTime(Xi(i.buildInfo.program.latestChangedDtsFile,Un(i.path))):void 0;return i.latestChangedDtsTime=s||!1,s}function eTe(e,t,n){if(e.options.dry)return Yu(e,p.A_non_dry_build_would_update_timestamps_for_output_of_project_0,t.options.configFilePath);KSe(e,t,n,p.Updating_output_timestamps_of_project_0),e.projectStatus.set(n,{type:1,oldestOutputFileName:vq(t,!e.host.useCaseSensitiveFileNames())})}function vje(e,t,n,i,s,o,c){if(!(c&124)&&s.options.composite)for(let u=i+1;ue.diagnostics.has(tm(e,g)))?f?2:1:0}function rTe(e,t,n){No("SolutionBuilder::beforeClean");const i=Sje(e,t,n);return No("SolutionBuilder::afterClean"),vf("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),i}function Sje(e,t,n){const i=zSe(e,t,n);if(!i)return 3;if(Cx(i))return cL(e,i.circularDiagnostics),4;const{options:s,host:o}=e,c=s.dry?[]:void 0;for(const u of i){const f=tm(e,u),g=Ex(e,u,f);if(g===void 0){cTe(e,f);continue}const d=N9(g,!o.useCaseSensitiveFileNames());if(!d.length)continue;const y=new Set(g.fileNames.map(S=>Qf(e,S)));for(const S of d)y.has(Qf(e,S))||o.fileExists(S)&&(c?c.push(S):(o.deleteFile(S),xoe(e,f,0)))}return c&&Yu(e,p.A_non_dry_build_would_delete_the_following_files_Colon_0,c.map(u=>`\r + * ${u}`).join("")),0}function xoe(e,t,n){e.host.getParsedCommandLine&&n===1&&(n=2),n===2&&(e.configFileCache.delete(t),e.buildOrder=void 0),e.needsSummary=!0,VSe(e,t),USe(e,t,n),WSe(e)}function oL(e,t,n){e.reportFileChangeDetected=!0,xoe(e,t,n),nTe(e,250,!0)}function nTe(e,t,n){const{hostWithWatch:i}=e;!i.setTimeout||!i.clearTimeout||(e.timerToBuildInvalidatedProject&&i.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=i.setTimeout(Tje,t,"timerToBuildInvalidatedProject",e,n))}function Tje(e,t,n){No("SolutionBuilder::beforeBuild");const i=xje(t,n);No("SolutionBuilder::afterBuild"),vf("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),i&&lTe(t,i)}function xje(e,t){e.timerToBuildInvalidatedProject=void 0,e.reportFileChangeDetected&&(e.reportFileChangeDetected=!1,e.projectErrorsReported.clear(),Eoe(e,p.File_change_detected_Starting_incremental_compilation));let n=0;const i=aL(e),s=moe(e,i,!1);if(s)for(s.done(),n++;e.projectPendingBuild.size;){if(e.timerToBuildInvalidatedProject)return;const o=$Se(e,i,!1);if(!o)break;if(o.kind!==2&&(t||n===5)){nTe(e,100,!1);return}XSe(e,o,i).done(),o.kind!==2&&n++}return doe(e),i}function iTe(e,t,n,i){!e.watch||e.allWatchedConfigFiles.has(n)||e.allWatchedConfigFiles.set(n,yH(e,t,()=>oL(e,n,2),2e3,i==null?void 0:i.watchOptions,al.ConfigFile,t))}function sTe(e,t,n){M9(t,n==null?void 0:n.options,e.allWatchedExtendedConfigFiles,(i,s)=>yH(e,i,()=>{var o;return(o=e.allWatchedExtendedConfigFiles.get(s))==null?void 0:o.projects.forEach(c=>oL(e,c,2))},2e3,n==null?void 0:n.watchOptions,al.ExtendedConfigFile),i=>Qf(e,i))}function aTe(e,t,n,i){e.watch&&SA(foe(e.allWatchedWildcardDirectories,n),i.wildcardDirectories,(s,o)=>e.watchDirectory(s,c=>{var u;TA({watchedDirPath:Qf(e,s),fileOrDirectory:c,fileOrDirectoryPath:Qf(e,c),configFileName:t,currentDirectory:e.compilerHost.getCurrentDirectory(),options:i.options,program:e.builderPrograms.get(n)||((u=_je(e,n))==null?void 0:u.fileNames),useCaseSensitiveFileNames:e.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:f=>e.writeLog(f),toPath:f=>Qf(e,f)})||oL(e,n,1)},o,i==null?void 0:i.watchOptions,al.WildcardDirectory,t))}function koe(e,t,n,i){e.watch&&JE(foe(e.allWatchedInputFiles,n),new Set(i.fileNames),{createNewValue:s=>yH(e,s,()=>oL(e,n,0),250,i==null?void 0:i.watchOptions,al.SourceFile,t),onDeleteValue:dd})}function Coe(e,t,n,i){!e.watch||!e.lastCachedPackageJsonLookups||JE(foe(e.allWatchedPackageJsonFiles,n),e.lastCachedPackageJsonLookups.get(n),{createNewValue:s=>yH(e,s,()=>oL(e,n,0),2e3,i==null?void 0:i.watchOptions,al.PackageJson,t),onDeleteValue:dd})}function kje(e,t){if(e.watchAllProjectsPending){No("SolutionBuilder::beforeWatcherCreation"),e.watchAllProjectsPending=!1;for(const n of sL(t)){const i=tm(e,n),s=Ex(e,n,i);iTe(e,n,i,s),sTe(e,i,s),s&&(aTe(e,n,i,s),koe(e,n,i,s),Coe(e,n,i,s))}No("SolutionBuilder::afterWatcherCreation"),vf("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}}function Cje(e){T_(e.allWatchedConfigFiles,dd),T_(e.allWatchedExtendedConfigFiles,Xf),T_(e.allWatchedWildcardDirectories,t=>T_(t,Xf)),T_(e.allWatchedInputFiles,t=>T_(t,dd)),T_(e.allWatchedPackageJsonFiles,t=>T_(t,dd))}function oTe(e,t,n,i,s){const o=uje(e,t,n,i,s);return{build:(c,u,f,g)=>tTe(o,c,u,f,g),clean:c=>rTe(o,c),buildReferences:(c,u,f,g)=>tTe(o,c,u,f,g,!0),cleanReferences:c=>rTe(o,c,!0),getNextInvalidatedProject:c=>(qSe(o,c),moe(o,aL(o),!1)),getBuildOrder:()=>aL(o),getUpToDateStatusOfProject:c=>{const u=H3(o,c),f=tm(o,u);return Toe(o,Ex(o,u,f),f)},invalidateProject:(c,u)=>xoe(o,c,u||0),close:()=>Cje(o)}}function Fl(e,t){return Q4(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function Yu(e,t,...n){e.host.reportSolutionBuilderStatus(gc(t,...n))}function Eoe(e,t,...n){var i,s;(s=(i=e.hostWithWatch).onWatchStatusChange)==null||s.call(i,gc(t,...n),e.host.getNewLine(),e.baseCompilerOptions)}function cL({host:e},t){t.forEach(n=>e.reportDiagnostic(n))}function G3(e,t,n){cL(e,n),e.projectErrorsReported.set(t,!0),n.length&&e.diagnostics.set(t,n)}function cTe(e,t){G3(e,t,[e.configFileCache.get(t)])}function lTe(e,t){if(!e.needsSummary)return;e.needsSummary=!1;const n=e.watch||!!e.host.reportErrorSummary,{diagnostics:i}=e;let s=0,o=[];Cx(t)?(uTe(e,t.buildOrder),cL(e,t.circularDiagnostics),n&&(s+=Z9(t.circularDiagnostics)),n&&(o=[...o,...K9(t.circularDiagnostics)])):(t.forEach(c=>{const u=tm(e,c);e.projectErrorsReported.has(u)||cL(e,i.get(u)||Ve)}),n&&i.forEach(c=>s+=Z9(c)),n&&i.forEach(c=>[...o,...K9(c)])),e.watch?Eoe(e,nH(s),s):e.host.reportErrorSummary&&e.host.reportErrorSummary(s,o)}function uTe(e,t){e.options.verbose&&Yu(e,p.Projects_in_this_build_Colon_0,t.map(n=>`\r + * `+Fl(e,n)).join(""))}function Eje(e,t,n){switch(n.type){case 6:return Yu(e,p.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,Fl(e,t),Fl(e,n.outOfDateOutputFileName),Fl(e,n.newerInputFileName));case 7:return Yu(e,p.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,Fl(e,t),Fl(e,n.outOfDateOutputFileName),Fl(e,n.newerProjectName));case 4:return Yu(e,p.Project_0_is_out_of_date_because_output_file_1_does_not_exist,Fl(e,t),Fl(e,n.missingOutputFileName));case 5:return Yu(e,p.Project_0_is_out_of_date_because_there_was_error_reading_file_1,Fl(e,t),Fl(e,n.fileName));case 8:return Yu(e,p.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,Fl(e,t),Fl(e,n.buildInfoFile));case 9:return Yu(e,p.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,Fl(e,t),Fl(e,n.buildInfoFile));case 10:return Yu(e,p.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,Fl(e,t),Fl(e,n.buildInfoFile),Fl(e,n.inputFile));case 1:if(n.newestInputFileTime!==void 0)return Yu(e,p.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,Fl(e,t),Fl(e,n.newestInputFileName||""),Fl(e,n.oldestOutputFileName||""));break;case 3:return Yu(e,p.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,Fl(e,t),Fl(e,n.newerProjectName));case 2:return Yu(e,p.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,Fl(e,t));case 15:return Yu(e,p.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,Fl(e,t));case 11:return Yu(e,p.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,Fl(e,t),Fl(e,n.upstreamProjectName));case 12:return Yu(e,n.upstreamProjectBlocked?p.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:p.Project_0_can_t_be_built_because_its_dependency_1_has_errors,Fl(e,t),Fl(e,n.upstreamProjectName));case 0:return Yu(e,p.Failed_to_parse_file_0_Colon_1,Fl(e,t),n.reason);case 14:return Yu(e,p.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,Fl(e,t),n.version,ld);case 17:return Yu(e,p.Project_0_is_being_forcibly_rebuilt,Fl(e,t))}}function vH(e,t,n){e.options.verbose&&Eje(e,t,n)}var _Te,fTe,bH,Pje=Dt({"src/compiler/tsbuildPublic.ts"(){Fs(),db(),_Te=new Date(-864e13),fTe=new Date(864e13),bH=(e=>(e[e.Build=0]="Build",e[e.UpdateBundle=1]="UpdateBundle",e[e.UpdateOutputFileStamps=2]="UpdateOutputFileStamps",e))(bH||{})}}),Fs=Dt({"src/compiler/_namespaces/ts.ts"(){FK(),j5e(),B5e(),X5e(),Z5e(),K5e(),uFe(),F0e(),vFe(),kFe(),CFe(),AFe(),MFe(),OOe(),LOe(),MOe(),ROe(),UOe(),qOe(),HOe(),GOe(),b9e(),S9e(),N9e(),X9e(),SLe(),PLe(),DLe(),WLe(),$Le(),rMe(),lMe(),TMe(),xMe(),IMe(),FMe(),OMe(),zMe(),WMe(),VMe(),UMe(),qMe(),HMe(),GMe(),$Me(),XMe(),ZMe(),KMe(),eRe(),tRe(),rRe(),iRe(),sRe(),aRe(),oRe(),cRe(),lRe(),mRe(),SRe(),NRe(),FRe(),RRe(),jRe(),BRe(),ZRe(),KRe(),rje(),sje(),aje(),oje(),Pje(),wse(),db()}});function pTe(e){return zl.args.includes(e)}function dTe(e){const t=zl.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"})(TH||(TH={})),Poe=` + `}}),wje=Dt({"src/jsTyping/types.ts"(){}}),fL=Dt({"src/jsTyping/_namespaces/ts.server.ts"(){Dje(),wje()}});function gTe(e,t){return new Lp(ZI(t,`ts${qg}`)||ZI(t,"latest")).compareTo(e.version)<=0}function hTe(e){return Ioe.has(e)?"node":e}function Aje(e,t){const n=$w(t,i=>e.readFile(i));return new Map(Object.entries(n.config))}function Nje(e,t){var n;const i=$w(t,s=>e.readFile(s));if((n=i.config)!=null&&n.simpleMap)return new Map(Object.entries(i.config.simpleMap))}function Ije(e,t,n,i,s,o,c,u,f,g){if(!c||!c.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};const d=new Map;n=Ri(n,$=>{const j=Hs($);if(Kv(j))return j});const y=[];c.include&&F(c.include,"Explicitly included types");const S=c.exclude||[];if(!g.types){const $=new Set(n.map(Un));$.add(i),$.forEach(j=>{J(j,"bower.json","bower_components",y),J(j,"package.json","node_modules",y)})}if(c.disableFilenameBasedTypeAcquisition||U(n),u){const $=Nv(u.map(hTe),fb,mu);F($,"Inferred typings from unresolved imports")}for(const $ of S)d.delete($)&&t&&t(`Typing for ${$} is in exclude list, will be ignored.`);o.forEach(($,j)=>{const re=f.get(j);d.get(j)===!1&&re!==void 0&&gTe($,re)&&d.set(j,$.typingLocation)});const T=[],k=[];d.forEach(($,j)=>{$?k.push($):T.push(j)});const w={cachedTypingPaths:k,newTypingNames:T,filesToWatch:y};return t&&t(`Finished typings discovery:${q1(w)}`),w;function P($){d.has($)||d.set($,!1)}function F($,j){t&&t(`${j}: ${JSON.stringify($)}`),rr($,P)}function J($,j,re,R){const Y=Mn($,j);let ue,pe;e.fileExists(Y)&&(R.push(Y),ue=$w(Y,oe=>e.readFile(oe)).config,pe=Zs([ue.dependencies,ue.devDependencies,ue.optionalDependencies,ue.peerDependencies],ug),F(pe,`Typing names in '${Y}' dependencies`));const H=Mn($,re);if(R.push(H),!e.directoryExists(H))return;const q=[],ee=pe?pe.map(oe=>Mn(H,oe,j)):e.readDirectory(H,[".json"],void 0,void 0,3).filter(oe=>{if(wc(oe)!==j)return!1;const Se=ul(Hs(oe)),ae=Se[Se.length-3][0]==="@";return ae&&km(Se[Se.length-4])===re||!ae&&km(Se[Se.length-3])===re});t&&t(`Searching for typing names in ${H}; all files: ${JSON.stringify(ee)}`);for(const oe of ee){const Se=Hs(oe),K=$w(Se,ke=>e.readFile(ke)).config;if(!K.name)continue;const fe=K.types||K.typings;if(fe){const ke=Xi(fe,Un(Se));e.fileExists(ke)?(t&&t(` Package '${K.name}' provides its own types.`),d.set(K.name,ke)):t&&t(` Package '${K.name}' provides its own types but they are missing.`)}else q.push(K.name)}F(q," Found package names")}function U($){const j=Ri($,R=>{if(!Kv(R))return;const Y=$u(km(wc(R))),ue=mB(Y);return s.get(ue)});j.length&&F(j,"Inferred typings from file names"),ct($,R=>Zo(R,".jsx"))&&(t&&t("Inferred 'react' typings due to presence of '.jsx' extension"),P("react"))}}function Fje(e){return Doe(e,!0)}function Doe(e,t){if(!e)return 1;if(e.length>Ooe)return 2;if(e.charCodeAt(0)===46)return 3;if(e.charCodeAt(0)===95)return 4;if(t){const n=/^@([^/]+)\/([^/]+)$/.exec(e);if(n){const i=Doe(n[1],!1);if(i!==0)return{name:n[1],isScopeName:!0,result:i};const s=Doe(n[2],!1);return s!==0?{name:n[2],isScopeName:!1,result:s}:0}}return encodeURIComponent(e)!==e?5:0}function Oje(e,t){return typeof e=="object"?yTe(t,e.result,e.name,e.isScopeName):yTe(t,e,t,!1)}function yTe(e,t,n,i){const s=i?"Scope":"Package";switch(t){case 1:return`'${e}':: ${s} name '${n}' cannot be empty`;case 2:return`'${e}':: ${s} name '${n}' should be less than ${Ooe} characters`;case 3:return`'${e}':: ${s} name '${n}' cannot start with '.'`;case 4:return`'${e}':: ${s} name '${n}' cannot start with '_'`;case 5:return`'${e}':: ${s} name '${n}' contains non URI safe characters`;case 0:return E.fail();default:E.assertNever(t)}}var woe,Aoe,Noe,Ioe,Foe,Ooe,Lje=Dt({"src/jsTyping/jsTyping.ts"(){LA(),fL(),woe=["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"],Aoe=woe.map(e=>`node:${e}`),Noe=[...woe,...Aoe],Ioe=new Set(Noe),Foe=(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))(Foe||{}),Ooe=214}}),rm={};Gc(rm,{NameValidationResult:()=>Foe,discoverTypings:()=>Ije,isTypingUpToDate:()=>gTe,loadSafeList:()=>Aje,loadTypesMap:()=>Nje,nodeCoreModuleList:()=>Noe,nodeCoreModules:()=>Ioe,nonRelativeModuleNameForTypingCache:()=>hTe,prefixedNodeCoreModuleList:()=>Aoe,renderPackageNameValidationFailure:()=>Oje,validatePackageName:()=>Fje});var Mje=Dt({"src/jsTyping/_namespaces/ts.JsTyping.ts"(){Lje()}}),LA=Dt({"src/jsTyping/_namespaces/ts.ts"(){Fs(),Mje(),fL()}});function pL(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 dL,xH,kH,CH,Yf,EH,PH,DH,wH,AH,NH,IH,Loe,MA,FH,OH,LH,MH,RH,jH,BH,JH,zH,Rje=Dt({"src/services/types.ts"(){(e=>{class t{constructor(s){this.text=s}getText(s,o){return s===0&&o===this.text.length?this.text:this.text.substring(s,o)}getLength(){return this.text.length}getChangeRange(){}}function n(i){return new t(i)}e.fromString=n})(dL||(dL={})),xH=(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))(xH||{}),kH=(e=>(e[e.Off=0]="Off",e[e.On=1]="On",e[e.Auto=2]="Auto",e))(kH||{}),CH=(e=>(e[e.Semantic=0]="Semantic",e[e.PartialSemantic=1]="PartialSemantic",e[e.Syntactic=2]="Syntactic",e))(CH||{}),Yf={},EH=(e=>(e.Original="original",e.TwentyTwenty="2020",e))(EH||{}),PH=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(PH||{}),DH=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(DH||{}),wH=(e=>(e.Type="Type",e.Parameter="Parameter",e.Enum="Enum",e))(wH||{}),AH=(e=>(e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference",e))(AH||{}),NH=(e=>(e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart",e))(NH||{}),IH=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(IH||{}),Loe=pL(` +`),MA=(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))(MA||{}),FH=(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))(FH||{}),OH=(e=>(e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports",e))(OH||{}),LH=(e=>(e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration",e))(LH||{}),MH=(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))(MH||{}),RH=(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))(RH||{}),jH=(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))(jH||{}),BH=(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))(BH||{}),JH=(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))(JH||{}),zH=(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))(zH||{})}});function RA(e){switch(e.kind){case 260:return Hr(e)&&qJ(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 su(e)||ch(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 aS(e){e=eG(e);const t=e.parent;return e.kind===312?1:oc(t)||vu(t)||Bm(t)||x_(t)||Rm(t)||El(t)&&e===t.name?7:mL(e)?jje(e):eh(e)?RA(t):b_(e)&&Pr(e,fd(y3,NT,M1))?7:Wje(e)?2:Bje(e)?4:Uo(t)?(E.assert(kp(t.parent)),2):_y(t)?3:1}function jje(e){const t=e.kind===166?e:Xu(e.parent)&&e.parent.right===e?e.parent:void 0;return t&&t.parent.kind===271?7:4}function mL(e){for(;e.parent.kind===166;)e=e.parent;return oC(e.parent)&&e.parent.moduleReference===e}function Bje(e){return Jje(e)||zje(e)}function Jje(e){let t=e,n=!0;if(t.parent.kind===166){for(;t.parent&&t.parent.kind===166;)t=t.parent;n=t.right===e}return t.parent.kind===183&&!n}function zje(e){let t=e,n=!0;if(t.parent.kind===211){for(;t.parent&&t.parent.kind===211;)t=t.parent;n=t.name===e}if(!n&&t.parent.kind===233&&t.parent.parent.kind===298){const 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(LE(e)&&(e=e.parent),e.kind){case 110:return!hg(e);case 197:return!0}switch(e.parent.kind){case 183:return!0;case 205:return!e.parent.isTypeOf;case 233:return gg(e.parent)}return!1}function WH(e,t=!1,n=!1){return jA(e,Rs,UH,t,n)}function Q3(e,t=!1,n=!1){return jA(e,a2,UH,t,n)}function VH(e,t=!1,n=!1){return jA(e,Jd,UH,t,n)}function Moe(e,t=!1,n=!1){return jA(e,o2,Vje,t,n)}function Roe(e,t=!1,n=!1){return jA(e,ql,UH,t,n)}function joe(e,t=!1,n=!1){return jA(e,Fu,Uje,t,n)}function UH(e){return e.expression}function Vje(e){return e.tag}function Uje(e){return e.tagName}function jA(e,t,n,i,s){let o=i?Boe(e):gL(e);return s&&(o=xc(o)),!!o&&!!o.parent&&t(o.parent)&&n(o.parent)===o}function gL(e){return m6(e)?e.parent:e}function Boe(e){return m6(e)||$H(e)?e.parent:e}function hL(e,t){for(;e;){if(e.kind===256&&e.label.escapedText===t)return e.label;e=e.parent}}function BA(e,t){return Sn(e.expression)?e.expression.name.text===t:!1}function JA(e){var t;return Ie(e)&&((t=Wn(e.parent,sE))==null?void 0:t.label)===e}function qH(e){var t;return Ie(e)&&((t=Wn(e.parent,c2))==null?void 0:t.label)===e}function HH(e){return qH(e)||JA(e)}function GH(e){var t;return((t=Wn(e.parent,Xk))==null?void 0:t.tagName)===e}function Joe(e){var t;return((t=Wn(e.parent,Xu))==null?void 0:t.right)===e}function m6(e){var t;return((t=Wn(e.parent,Sn))==null?void 0:t.name)===e}function $H(e){var t;return((t=Wn(e.parent,Co))==null?void 0:t.argumentExpression)===e}function XH(e){var t;return((t=Wn(e.parent,Sc))==null?void 0:t.name)===e}function QH(e){var t;return Ie(e)&&((t=Wn(e.parent,As))==null?void 0:t.name)===e}function yL(e){switch(e.parent.kind){case 172:case 171:case 303:case 306:case 174:case 173:case 177:case 178:case 267:return us(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 zoe(e){return C1(e.parent.parent)&&vE(e.parent.parent)===e}function oS(e){for(gp(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 T2(e){switch(e.kind){case 312:return Ic(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(qd(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:const{initializer:n}=e;return As(n)?"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 Rn(e,31)?"property":"parameter";case 271:case 276:case 281:case 274:case 280:return"alias";case 226:const i=fc(e),{right:s}=e;switch(i){case 7:case 8:case 9:case 0:return"";case 1:case 2:const c=T2(s);return c===""?"const":c;case 3:return lo(s)?"method":"property";case 4:return"property";case 5:return lo(s)?"method":"property";case 6:return"local class";default:return""}case 80:return Rm(e.parent)?"alias":"";case 277:const o=T2(e.expression);return o===""?"const":o;default:return""}function t(n){return tC(n)?"const":p5(n)?"let":"var"}}function g6(e){switch(e.kind){case 110:return!0;case 80:return _W(e)&&e.parent.kind===169;default:return!1}}function Cp(e,t){const n=$g(t),i=t.getLineAndCharacterOfPosition(e).line;return n[i]}function Pf(e,t){return YH(e.pos,e.end,t)}function Woe(e,t){return WA(e,t.pos)&&WA(e,t.end)}function zA(e,t){return e.pos<=t&&t<=e.end}function WA(e,t){return e.pos=n.end}function VA(e,t,n){return e.pos<=t&&e.end>=n}function Y3(e,t,n){return bL(e.pos,e.end,t,n)}function vL(e,t,n,i){return bL(e.getStart(t),e.end,n,i)}function bL(e,t,n,i){const s=Math.max(e,n),o=Math.min(t,i);return si.kind===t)}function SL(e){const t=wn(e.parent.getChildren(),n=>qC(n)&&Pf(n,e));return E.assert(!t||bs(t.getChildren(),e)),t}function vTe(e){return e.kind===90}function qje(e){return e.kind===86}function Hje(e){return e.kind===100}function Gje(e){if(Nu(e))return e.name;if(Qc(e)){const t=e.modifiers&&wn(e.modifiers,vTe);if(t)return t}if(kl(e)){const t=wn(e.getChildren(),qje);if(t)return t}}function $je(e){if(Nu(e))return e.name;if(Xc(e)){const t=wn(e.modifiers,vTe);if(t)return t}if(lo(e)){const t=wn(e.getChildren(),Hje);if(t)return t}}function Xje(e){let t;return Pr(e,n=>(ki(n)&&(t=n),!Xu(n.parent)&&!ki(n.parent)&&!bb(n.parent))),t}function TL(e,t){if(e.flags&16777216)return;const n=zL(e,t);if(n)return n;const i=Xje(e);return i&&t.getTypeAtLocation(i)}function Qje(e,t){if(!t)switch(e.kind){case 263:case 231:return Gje(e);case 262:case 218:return $je(e);case 176:return e}if(Nu(e))return e.name}function bTe(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(sh(e.importClause.namedBindings)){const n=Tm(e.importClause.namedBindings.elements);return n?n.name:void 0}else if(dy(e.importClause.namedBindings))return e.importClause.namedBindings.name}}if(!t)return e.moduleSpecifier}function STe(e,t){if(e.exportClause){if($f(e.exportClause))return Tm(e.exportClause.elements)?e.exportClause.elements[0].name:void 0;if(jm(e.exportClause))return e.exportClause.name}if(!t)return e.moduleSpecifier}function Yje(e){if(e.types.length===1)return e.types[0].expression}function TTe(e,t){const{parent:n}=e;if(ta(e)&&(t||e.kind!==90)?Hp(n)&&bs(n.modifiers,e):e.kind===86?Qc(n)||kl(e):e.kind===100?Xc(n)||lo(e):e.kind===120?Bu(n):e.kind===94?L1(n):e.kind===156?qp(n):e.kind===145||e.kind===144?Sc(n):e.kind===102?El(n):e.kind===139?Tf(n):e.kind===153&&J_(n)){const i=Qje(n,t);if(i)return i}if((e.kind===115||e.kind===87||e.kind===121)&&ml(n)&&n.declarations.length===1){const i=n.declarations[0];if(Ie(i.name))return i.name}if(e.kind===156){if(Rm(n)&&n.isTypeOnly){const i=bTe(n.parent,t);if(i)return i}if(Tc(n)&&n.isTypeOnly){const i=STe(n,t);if(i)return i}}if(e.kind===130){if(x_(n)&&n.propertyName||vu(n)&&n.propertyName||dy(n)||jm(n))return n.name;if(Tc(n)&&n.exportClause&&jm(n.exportClause))return n.exportClause.name}if(e.kind===102&&sl(n)){const i=bTe(n,t);if(i)return i}if(e.kind===95){if(Tc(n)){const i=STe(n,t);if(i)return i}if(oc(n))return xc(n.expression)}if(e.kind===149&&Bm(n))return n.expression;if(e.kind===161&&(sl(n)||Tc(n))&&n.moduleSpecifier)return n.moduleSpecifier;if((e.kind===96||e.kind===119)&&xf(n)&&n.token===e.kind){const i=Yje(n);if(i)return i}if(e.kind===96){if(Uo(n)&&n.constraint&&Gf(n.constraint))return n.constraint.typeName;if(cx(n)&&Gf(n.extendsType))return n.extendsType.typeName}if(e.kind===140&&zb(n))return n.typeParameter.name;if(e.kind===103&&Uo(n)&&jC(n.parent))return n.name;if(e.kind===143&&Vb(n)&&n.operator===143&&Gf(n.type))return n.type.typeName;if(e.kind===148&&Vb(n)&&n.operator===148&&ww(n.type)&&Gf(n.type.elementType))return n.type.elementType.typeName;if(!t){if((e.kind===105&&a2(n)||e.kind===116&&lx(n)||e.kind===114&&BC(n)||e.kind===135&&fy(n)||e.kind===127&&TO(n)||e.kind===91&&rie(n))&&n.expression)return xc(n.expression);if((e.kind===103||e.kind===104)&&Zr(n)&&n.operatorToken===e)return xc(n.right);if(e.kind===130&&Nw(n)&&Gf(n.type))return n.type.typeName;if(e.kind===103&&kO(n)||e.kind===165&&Iw(n))return xc(n.expression)}return e}function eG(e){return TTe(e,!1)}function xL(e){return TTe(e,!0)}function u_(e,t){return h6(e,t,n=>Ud(n)||c_(n.kind)||Pi(n))}function h6(e,t,n){return xTe(e,t,!1,n,!1)}function Ui(e,t){return xTe(e,t,!0,void 0,!1)}function xTe(e,t,n,i,s){let o=e,c;e:for(;;){const f=o.getChildren(e),g=hT(f,t,(d,y)=>y,(d,y)=>{const S=f[d].getEnd();if(St?1:u(f[d],T,S)?f[d-1]&&u(f[d-1])?1:0:i&&T===t&&f[d-1]&&f[d-1].getEnd()===t&&u(f[d-1])?1:-1});if(c)return c;if(g>=0&&f[g]){o=f[g];continue e}return o}function u(f,g,d){if(d??(d=f.getEnd()),dt))return!1;if(tn.getStart(e)&&t(o.pos<=e.pos&&o.end>e.end||o.pos===e.end)&&Yoe(o,n)?i(o):void 0)}}function Yc(e,t,n,i){const s=o(n||t);return E.assert(!(s&&CL(s))),s;function o(c){if(kTe(c)&&c.kind!==1)return c;const u=c.getChildren(t),f=hT(u,e,(d,y)=>y,(d,y)=>e=u[d-1].end?0:1:-1);if(f>=0&&u[f]){const d=u[f];if(e=e||!Yoe(d,t)||CL(d)){const T=Hoe(u,f,t,c.kind);return T?!i&&Z7(T)&&T.getChildren(t).length?o(T):qoe(T,t):void 0}else return o(d)}E.assert(n!==void 0||c.kind===312||c.kind===1||Z7(c));const g=Hoe(u,u.length,t,c.kind);return g&&qoe(g,t)}}function kTe(e){return ET(e)&&!CL(e)}function qoe(e,t){if(kTe(e))return e;const n=e.getChildren(t);if(n.length===0)return e;const i=Hoe(n,n.length,t,e.kind);return i&&qoe(i,t)}function Hoe(e,t,n,i){for(let s=t-1;s>=0;s--){const o=e[s];if(CL(o))s===0&&(i===12||i===285)&&E.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(Yoe(e[s],n))return e[s]}}function Px(e,t,n=Yc(t,e)){if(n&&KJ(n)){const i=n.getStart(e),s=n.getEnd();if(in.getStart(e)}function $oe(e,t){const n=Ui(e,t);return!!(KT(n)||n.kind===19&&g3(n.parent)&&Eg(n.parent.parent)||n.kind===30&&Fu(n.parent)&&Eg(n.parent.parent))}function EL(e,t){function n(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 n(Ui(e,t))}function PL(e,t,n){const i=Ws(e.kind),s=Ws(t),o=e.getFullStart(),c=n.text.lastIndexOf(s,o);if(c===-1)return;if(n.text.lastIndexOf(i,o-1)!!o.typeParameters&&o.typeParameters.length>=t)}function nG(e,t){if(t.text.lastIndexOf("<",e?e.pos:t.text.length)===-1)return;let n=e,i=0,s=0;for(;n;){switch(n.kind){case 30:if(n=Yc(n.getFullStart(),t),n&&n.kind===29&&(n=Yc(n.getFullStart(),t)),!n||!Ie(n))return;if(!i)return eh(n)?void 0:{called:n,nTypeArguments:s};i--;break;case 50:i=3;break;case 49:i=2;break;case 32:i++;break;case 20:if(n=PL(n,19,t),!n)return;break;case 22:if(n=PL(n,21,t),!n)return;break;case 24:if(n=PL(n,23,t),!n)return;break;case 28:s++;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(ki(n))break;return}n=Yc(n.getFullStart(),t)}}function l0(e,t,n){return ol.getRangeOfEnclosingComment(e,t,void 0,n)}function Qoe(e,t){const n=Ui(e,t);return!!Pr(n,yd)}function Yoe(e,t){return e.kind===1?!!e.jsDoc:e.getWidth(t)!==0}function Z3(e,t=0){const n=[],i=yu(e)?zJ(e)&~t:0;return i&2&&n.push("private"),i&4&&n.push("protected"),i&1&&n.push("public"),(i&256||ec(e))&&n.push("static"),i&64&&n.push("abstract"),i&32&&n.push("export"),i&65536&&n.push("deprecated"),e.flags&33554432&&n.push("declare"),e.kind===277&&n.push("export"),n.length>0?n.join(","):""}function Zoe(e){if(e.kind===183||e.kind===213)return e.typeArguments;if(As(e)||e.kind===263||e.kind===264)return e.typeParameters}function DL(e){return e===2||e===3}function iG(e){return!!(e===11||e===14||G0(e))}function CTe(e,t,n){return!!(t.flags&4)&&e.isEmptyAnonymousObjectType(n)}function Koe(e){if(!e.isIntersection())return!1;const{types:t,checker:n}=e;return t.length===2&&(CTe(n,t[0],t[1])||CTe(n,t[1],t[0]))}function HA(e,t,n){return G0(e.kind)&&e.getStart(n){const n=Oa(t);return!e[n]&&(e[n]=!0)}}function y6(e){return e.getText(0,e.getLength())}function XA(e,t){let n="";for(let i=0;i!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!(t.externalModuleIndicator||t.commonJsModuleIndicator))}function nce(e){return e.getSourceFiles().some(t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!t.externalModuleIndicator)}function fG(e){return!!e.module||Fa(e)>=2||!!e.noEmit}function cS(e,t){return{fileExists:n=>e.fileExists(n),getCurrentDirectory:()=>t.getCurrentDirectory(),readFile:Os(t,t.readFile),useCaseSensitiveFileNames:Os(t,t.useCaseSensitiveFileNames),getSymlinkCache:Os(t,t.getSymlinkCache)||e.getSymlinkCache,getModuleSpecifierCache:Os(t,t.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var n;return(n=e.getModuleResolutionCache())==null?void 0:n.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:Os(t,t.getGlobalTypingsCacheLocation),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:n=>e.getProjectReferenceRedirect(n),isSourceOfProjectReferenceRedirect:n=>e.isSourceOfProjectReferenceRedirect(n),getNearestAncestorDirectoryWithPackageJson:Os(t,t.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>e.getFileIncludeReasons(),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function pG(e,t){return{...cS(e,t),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function IL(e){return e===2||e>=3&&e<=99||e===100}function ice(e,t,n,i){return e||t&&t.length?_0(e,t,n,i):void 0}function _0(e,t,n,i,s){return I.createImportDeclaration(void 0,e||t?I.createImportClause(!!s,e,t&&t.length?I.createNamedImports(t):void 0):void 0,typeof n=="string"?wx(n,i):n,void 0)}function wx(e,t){return I.createStringLiteral(e,t===0)}function dG(e,t){return A5(e,t)?1:0}function Df(e,t){if(t.quotePreference&&t.quotePreference!=="auto")return t.quotePreference==="single"?0:1;{const n=e.imports&&wn(e.imports,i=>aa(i)&&!ko(i.parent));return n?dG(n,e):1}}function mG(e){switch(e){case 0:return"'";case 1:return'"';default:return E.assertNever(e)}}function FL(e){const t=OL(e);return t===void 0?void 0:xi(t)}function OL(e){return e.escapedName!=="default"?e.escapedName:Qa(e.declarations,t=>{const n=us(t);return n&&n.kind===80?n.escapedText:void 0})}function LL(e){return Ma(e)&&(Bm(e.parent)||sl(e.parent)||Gu(e.parent,!1)&&e.parent.arguments[0]===e||of(e.parent)&&e.parent.arguments[0]===e)}function YA(e){return Ea(e)&&xp(e.parent)&&Ie(e.name)&&!e.propertyName}function ML(e,t){const n=e.getTypeAtLocation(t.parent);return n&&e.getPropertyOfType(n,t.name.text)}function ZA(e,t,n){if(e)for(;e.parent;){if(Ni(e.parent)||!Zje(n,e.parent,t))return e;e=e.parent}}function Zje(e,t,n){return JJ(e,t.getStart(n))&&t.getEnd()<=bc(e)}function v6(e,t){return Hp(e)?wn(e.modifiers,n=>n.kind===t):void 0}function eP(e,t,n,i,s){const c=(ts(n)?n[0]:n).kind===243?Rz:kb,u=An(t.statements,c);let f=ts(n)?Xp.detectImportDeclarationSorting(n,s):3;const g=Xp.getOrganizeImportsComparer(s,f===2),d=ts(n)?Bh(n,(y,S)=>Xp.compareImportsOrRequireStatements(y,S,g)):[n];if(!u.length)e.insertNodesAtTopOfFile(t,d,i);else if(u&&(f=Xp.detectImportDeclarationSorting(u,s))){const y=Xp.getOrganizeImportsComparer(s,f===2);for(const S of d){const T=Xp.getImportDeclarationInsertionIndex(u,S,y);if(T===0){const k=u[0]===t.statements[0]?{leadingTriviaOption:Kr.LeadingTriviaOption.Exclude}:{};e.insertNodeBefore(t,u[0],S,!1,k)}else{const k=u[T-1];e.insertNodeAfter(t,k,S)}}}else{const y=Do(u);y?e.insertNodesAfter(t,y,d):e.insertNodesAtTopOfFile(t,d,i)}}function gG(e,t){return E.assert(e.isTypeOnly),Ls(e.getChildAt(0,t),uG)}function b6(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function hG(e,t,n){return(n?fb:p1)(e.fileName,t.fileName)&&b6(e.textSpan,t.textSpan)}function yG(e){return(t,n)=>hG(t,n,e)}function vG(e,t){if(e){for(let n=0;nrs(n)?!0:Ea(n)||xp(n)||s2(n)?!1:"quit")}function Kje(){const e=lw*10;let t,n,i,s;d();const o=y=>u(y,17);return{displayParts:()=>{const y=t.length&&t[t.length-1].text;return s>e&&y&&y!=="..."&&(Xg(y.charCodeAt(y.length-1))||t.push(C_(" ",16)),t.push(C_("...",15))),t},writeKeyword:y=>u(y,5),writeOperator:y=>u(y,12),writePunctuation:y=>u(y,15),writeTrailingSemicolon:y=>u(y,15),writeSpace:y=>u(y,16),writeStringLiteral:y=>u(y,8),writeParameter:y=>u(y,13),writeProperty:y=>u(y,14),writeLiteral:y=>u(y,8),writeSymbol:f,writeLine:g,write:o,writeComment:o,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:ks,getIndent:()=>i,increaseIndent:()=>{i++},decreaseIndent:()=>{i--},clear:d};function c(){if(!(s>e)&&n){const y=J5(i);y&&(s+=y.length,t.push(C_(y,16))),n=!1}}function u(y,S){s>e||(c(),s+=y.length,t.push(C_(y,S)))}function f(y,S){s>e||(c(),s+=y.length,t.push(ace(y,S)))}function g(){s>e||(s+=1,t.push(S6()),n=!0)}function d(){t=[],n=!0,i=0,s=0}}function ace(e,t){return C_(e,n(t));function n(i){const s=i.flags;return s&3?SG(i)?13:9:s&4||s&32768||s&65536?14:s&8?19:s&16?20:s&32?1:s&64?4:s&384?2:s&1536?11:s&8192?10:s&262144?18:s&524288||s&2097152?0:17}}function C_(e,t){return{text:e,kind:MA[t]}}function cc(){return C_(" ",16)}function V_(e){return C_(Ws(e),5)}function Tu(e){return C_(Ws(e),15)}function rP(e){return C_(Ws(e),12)}function oce(e){return C_(e,13)}function cce(e){return C_(e,14)}function TG(e){const t=Ov(e);return t===void 0?wf(e):V_(t)}function wf(e){return C_(e,17)}function lce(e){return C_(e,0)}function uce(e){return C_(e,18)}function jL(e){return C_(e,24)}function _ce(e,t){return{text:e,kind:MA[23],target:{fileName:wr(t).fileName,textSpan:Zu(t)}}}function xG(e){return C_(e,22)}function fce(e,t){var n;const i=lie(e)?"link":uie(e)?"linkcode":"linkplain",s=[xG(`{@${i} `)];if(!e.name)e.text&&s.push(jL(e.text));else{const o=t==null?void 0:t.getSymbolAtLocation(e.name),c=o&&t?EG(o,t):void 0,u=tBe(e.text),f=jc(e.name)+e.text.slice(0,u),g=eBe(e.text.slice(u)),d=(c==null?void 0:c.valueDeclaration)||((n=c==null?void 0:c.declarations)==null?void 0:n[0]);if(d)s.push(_ce(f,d)),g&&s.push(jL(g));else{const y=u===0||e.text.charCodeAt(u)===124&&f.charCodeAt(f.length-1)!==32?" ":"";s.push(jL(f+y+g))}}return s.push(xG("}")),s}function eBe(e){let t=0;if(e.charCodeAt(t++)===124){for(;t"&&n--,i++,!n)return i}return 0}function f0(e,t){var n;return(t==null?void 0:t.newLineCharacter)||((n=e.getNewLine)==null?void 0:n.call(e))||LTe}function S6(){return C_(` +`,6)}function by(e){try{return e(VG),VG.displayParts()}finally{VG.clear()}}function KA(e,t,n,i=0){return by(s=>{e.writeType(t,n,i|1024|16384,s)})}function nP(e,t,n,i,s=0){return by(o=>{e.writeSymbol(t,n,i,s|8,o)})}function kG(e,t,n,i=0){return i|=25632,by(s=>{e.writeSignature(t,n,i,void 0,s)})}function PTe(e,t){const n=t.getSourceFile();return by(i=>{bA().writeNode(4,e,n,i)})}function pce(e){return!!e.parent&&PT(e.parent)&&e.parent.propertyName===e}function CG(e,t){return gF(e,t.getScriptKind&&t.getScriptKind(e))}function EG(e,t){let n=e;for(;rBe(n)||wm(n)&&n.links.target;)wm(n)&&n.links.target?n=n.links.target:n=Ul(n,t);return n}function rBe(e){return(e.flags&2097152)!==0}function dce(e,t){return Ks(Ul(e,t))}function mce(e,t){for(;Xg(e.charCodeAt(t));)t+=1;return t}function BL(e,t){for(;t>-1&&Bd(e.charCodeAt(t));)t-=1;return t+1}function Mo(e,t=!0){const n=e&&DTe(e);return n&&!t&&U_(n),n}function eN(e,t,n){let i=n(e);return i?dn(i,e):i=DTe(e,n),i&&!t&&U_(i),i}function DTe(e,t){const n=t?o=>eN(o,!0,t):Mo,s=ur(e,n,void 0,t?o=>o&&PG(o,!0,t):o=>o&&k2(o),n);if(s===e){const o=aa(e)?dn(I.createStringLiteralFromNode(e),e):j_(e)?dn(I.createNumericLiteral(e.text,e.numericLiteralFlags),e):I.cloneNode(e);return Ke(o,e)}return s.parent=void 0,s}function k2(e,t=!0){if(e){const n=I.createNodeArray(e.map(i=>Mo(i,t)),e.hasTrailingComma);return Ke(n,e),n}return e}function PG(e,t,n){return I.createNodeArray(e.map(i=>eN(i,t,n)),e.hasTrailingComma)}function U_(e){DG(e),gce(e)}function DG(e){hce(e,1024,iBe)}function gce(e){hce(e,2048,kW)}function lS(e,t){const n=e.getSourceFile(),i=n.text;nBe(e,i)?T6(e,t,n):rN(e,t,n),iP(e,t,n)}function nBe(e,t){const n=e.getFullStart(),i=e.getStart();for(let s=n;st)}function uS(e,t){let n=e;for(let i=1;!a5(t,n);i++)n=`${e}_${i}`;return n}function tN(e,t,n,i){let s=0,o=-1;for(const{fileName:c,textChanges:u}of e){E.assert(c===t);for(const f of u){const{span:g,newText:d}=f,y=sBe(d,bg(n));if(y!==-1&&(o=g.start+s+y,!i))return o;s+=d.length-g.length}}return E.assert(i),E.assert(o>=0),o}function T6(e,t,n,i,s){RD(n.text,e.pos,yce(t,n,i,s,a3))}function iP(e,t,n,i,s){jD(n.text,e.end,yce(t,n,i,s,BF))}function rN(e,t,n,i,s){jD(n.text,e.pos,yce(t,n,i,s,a3))}function yce(e,t,n,i,s){return(o,c,u,f)=>{u===3?(o+=2,c-=2):o+=2,s(e,n||u,t.text.slice(o,c),i!==void 0?i:f)}}function sBe(e,t){if(Vi(e,t))return 0;let n=e.indexOf(" "+t);return n===-1&&(n=e.indexOf("."+t)),n===-1&&(n=e.indexOf('"'+t)),n===-1?-1:n+1}function JL(e){return Zr(e)&&e.operatorToken.kind===28||ua(e)||(Nw(e)||PV(e))&&ua(e.expression)}function zL(e,t,n){const i=Yh(e.parent);switch(i.kind){case 214:return t.getContextualType(i,n);case 226:{const{left:s,operatorToken:o,right:c}=i;return WL(o.kind)?t.getTypeAtLocation(e===c?s:c):t.getContextualType(e,n)}case 296:return AG(i,t);default:return t.getContextualType(e,n)}}function sP(e,t,n){const i=Df(e,t),s=JSON.stringify(n);return i===0?`'${yp(s).replace(/'/g,()=>"\\'").replace(/\\"/g,'"')}'`:s}function WL(e){switch(e){case 37:case 35:case 38:case 36:return!0;default:return!1}}function vce(e){switch(e.kind){case 11:case 15:case 228:case 215:return!0;default:return!1}}function wG(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}function AG(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}function aP(e,t,n,i){const s=n.getTypeChecker();let o=!0;const c=()=>o=!1,u=s.typeToTypeNode(e,t,1,{trackSymbol:(f,g,d)=>(o=o&&s.isSymbolAccessible(f,g,d,!1).accessibility===0,!o),reportInaccessibleThisError:c,reportPrivateInBaseOfClassExpression:c,reportInaccessibleUniqueSymbolError:c,moduleResolverHost:pG(n,i)});return o?u:void 0}function bce(e){return e===179||e===180||e===181||e===171||e===173}function wTe(e){return e===262||e===176||e===174||e===177||e===178}function ATe(e){return e===267}function VL(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 aBe(e,t){const n=e.getLastToken(t);if(n&&n.kind===27)return!1;if(bce(e.kind)){if(n&&n.kind===28)return!1}else if(ATe(e.kind)){const u=ka(e.getChildren(t));if(u&&Yd(u))return!1}else if(wTe(e.kind)){const u=ka(e.getChildren(t));if(u&&Vv(u))return!1}else if(!VL(e.kind))return!1;if(e.kind===246)return!0;const i=Pr(e,u=>!u.parent),s=x2(e,i,t);if(!s||s.kind===20)return!0;const o=t.getLineAndCharacterOfPosition(e.getEnd()).line,c=t.getLineAndCharacterOfPosition(s.getStart(t)).line;return o!==c}function UL(e,t,n){const i=Pr(t,s=>s.end!==e?"quit":UG(s.kind));return!!i&&aBe(i,n)}function nN(e){let t=0,n=0;const i=5;return Ss(e,function s(o){if(VL(o.kind)){const c=o.getLastToken(e);(c==null?void 0:c.kind)===27?t++:n++}else if(bce(o.kind)){const c=o.getLastToken(e);if((c==null?void 0:c.kind)===27)t++;else if(c&&c.kind!==28){const u=Ha(e,c.getStart(e)).line,f=Ha(e,Im(e,c.end).start).line;u!==f&&n++}}return t+n>=i?!0:Ss(o,s)}),t===0&&n<=1?!0:t/n>1/i}function qL(e,t){return $L(e,e.getDirectories,t)||[]}function NG(e,t,n,i,s){return $L(e,e.readDirectory,t,n,i,s)||Ve}function iN(e,t){return $L(e,e.fileExists,t)}function HL(e,t){return GL(()=>pd(t,e))||!1}function GL(e){try{return e()}catch{return}}function $L(e,t,...n){return GL(()=>t&&t.apply(e,n))}function IG(e,t,n){const i=[];return jp(e,s=>{if(s===n)return!0;const o=Mn(s,"package.json");iN(t,o)&&i.push(o)}),i}function Sce(e,t){let n;return jp(e,i=>{if(i==="node_modules"||(n=Aae(i,s=>iN(t,s),"package.json"),n))return!0}),n}function Tce(e,t){if(!t.fileExists)return[];const n=[];return jp(Un(e),i=>{const s=Mn(i,"package.json");if(t.fileExists(s)){const o=FG(s,t);o&&n.push(o)}}),n}function FG(e,t){if(!t.readFile)return;const n=["dependencies","devDependencies","optionalDependencies","peerDependencies"],i=t.readFile(e)||"",s=K5(i),o={};if(s)for(const f of n){const g=s[f];if(!g)continue;const d=new Map;for(const y in g)d.set(y,g[y]);o[f]=d}const c=[[1,o.dependencies],[2,o.devDependencies],[8,o.optionalDependencies],[4,o.peerDependencies]];return{...o,parseable:!!s,fileName:e,get:u,has(f,g){return!!u(f,g)}};function u(f,g=15){for(const[d,y]of c)if(y&&g&d){const S=y.get(f);if(S!==void 0)return S}}}function oP(e,t,n){const i=(n.getPackageJsonsVisibleToFile&&n.getPackageJsonsVisibleToFile(e.fileName)||Tce(e.fileName,n)).filter(k=>k.parseable);let s,o,c;return{allowsImportingAmbientModule:f,allowsImportingSourceFile:g,allowsImportingSpecifier:d};function u(k){const w=T(k);for(const P of i)if(P.has(w)||P.has(o9(w)))return!0;return!1}function f(k,w){if(!i.length||!k.valueDeclaration)return!0;if(!o)o=new Map;else{const $=o.get(k);if($!==void 0)return $}const P=yp(k.getName());if(y(P))return o.set(k,!0),!0;const F=k.valueDeclaration.getSourceFile(),J=S(F.fileName,w);if(typeof J>"u")return o.set(k,!0),!0;const U=u(J)||u(P);return o.set(k,U),U}function g(k,w){if(!i.length)return!0;if(!c)c=new Map;else{const J=c.get(k);if(J!==void 0)return J}const P=S(k.fileName,w);if(!P)return c.set(k,!0),!0;const F=u(P);return c.set(k,F),F}function d(k){return!i.length||y(k)||nf(k)||F_(k)?!0:u(k)}function y(k){return!!(Ou(e)&&rm.nodeCoreModules.has(k)&&(s===void 0&&(s=XL(e)),s))}function S(k,w){if(!k.includes("node_modules"))return;const P=h2.getNodeModulesPackageName(n.getCompilationSettings(),e,k,w,t);if(P&&!nf(P)&&!F_(P))return T(P)}function T(k){const w=ul(N3(k)).slice(1);return Vi(w[0],"@")?`${w[0]}/${w[1]}`:w[0]}}function XL(e){return ct(e.imports,({text:t})=>rm.nodeCoreModules.has(t))}function sN(e){return bs(ul(e),"node_modules")}function OG(e){return e.file!==void 0&&e.start!==void 0&&e.length!==void 0}function xce(e,t){const n=Zu(e),i=hT(t,n,wo,t7);if(i>=0){const s=t[i];return E.assertEqual(s.file,e.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),Ls(s,OG)}}function kce(e,t){var n;let i=hT(t,e.start,c=>c.start,Ao);for(i<0&&(i=~i);((n=t[i-1])==null?void 0:n.start)===e.start;)i--;const s=[],o=bc(e);for(;;){const c=Wn(t[i],OG);if(!c||c.start>o)break;Pee(e,c)&&s.push(c),i++}return s}function Ax({startPosition:e,endPosition:t}){return Rc(e,t===void 0?e:t)}function LG(e,t){const n=Ui(e,t.start);return Pr(n,s=>s.getStart(e)bc(t)?"quit":ot(s)&&b6(t,Zu(s,e)))}function MG(e,t,n=wo){return e?ts(e)?n(nr(e,t)):t(e,0):void 0}function RG(e){return ts(e)?va(e):e}function Cce(e,t){if(NTe(e)){const n=ITe(e);if(n)return n;const i=lu.moduleSymbolToValidIdentifier(Ece(e),t,!1),s=lu.moduleSymbolToValidIdentifier(Ece(e),t,!0);return i===s?i:[i,s]}return e.name}function QL(e,t,n){return NTe(e)?ITe(e)||lu.moduleSymbolToValidIdentifier(Ece(e),t,!!n):e.name}function NTe(e){return!(e.flags&33554432)&&(e.escapedName==="export="||e.escapedName==="default")}function ITe(e){return Qa(e.declarations,t=>{var n,i,s;return oc(t)?(n=Wn(xc(t.expression),Ie))==null?void 0:n.text:vu(t)&&t.symbol.flags===2097152?(i=Wn(t.propertyName,Ie))==null?void 0:i.text:(s=Wn(us(t),Ie))==null?void 0:s.text})}function Ece(e){var t;return E.checkDefined(e.parent,`Symbol parent was undefined. Flags: ${E.formatSymbolFlags(e.flags)}. Declarations: ${(t=e.declarations)==null?void 0:t.map(n=>{const i=E.formatSyntaxKind(n.kind),s=Hr(n),{expression:o}=n;return(s?"[JS]":"")+i+(o?` (expression: ${E.formatSyntaxKind(o.kind)})`:"")}).join(", ")}.`)}function Pce(e,t,n){const i=t.length;if(i+n>e.length)return!1;for(let s=0;sSc(n)&&Wd(n))}function YL(e){return!!(zJ(e)&65536)}function ZL(e,t){return Qa(e.imports,i=>{if(rm.nodeCoreModules.has(i.text))return Vi(i.text,"node:")})??t.usesUriStyleNodeCoreModules}function aN(e){return e===` +`?1:0}function _S(e){return ts(e)?xg(ds(e[0]),e.slice(1)):ds(e)}function KL({options:e},t){const n=!e.semicolons||e.semicolons==="ignore",i=e.semicolons==="remove"||n&&!nN(t);return{...e,semicolons:i?"remove":"ignore"}}function BG(e){return e===2||e===3}function x6(e,t){return e.isSourceFileFromExternalLibrary(t)||e.isSourceFileDefaultLibrary(t)}function eM(e,t){const n=new Set,i=new Set,s=new Set;for(const u of t)if(!h3(u)){const f=Va(u.expression);if(Rv(f))switch(f.kind){case 15:case 11:n.add(f.text);break;case 9:i.add(parseInt(f.text));break;case 10:const g=fne(Yo(f.text,"n")?f.text.slice(0,-1):f.text);g&&s.add(e2(g));break}else{const g=e.getSymbolAtLocation(u.expression);if(g&&g.valueDeclaration&&p2(g.valueDeclaration)){const d=e.getConstantValue(g.valueDeclaration);d!==void 0&&o(d)}}}return{addValue:o,hasValue:c};function o(u){switch(typeof u){case"string":n.add(u);break;case"number":i.add(u)}}function c(u){switch(typeof u){case"string":return n.has(u);case"number":return i.has(u);case"object":return s.has(e2(u))}}}function JG(e,t,n,i){var s;const o=typeof e=="string"?e:e.fileName;if(!Kv(o))return!1;const c=t.getCompilerOptions(),u=au(c),f=typeof e=="string"?PA(Io(e,n.getCurrentDirectory(),Zh(n)),(s=t.getPackageJsonInfoCache)==null?void 0:s.call(t),n,c):e.impliedNodeFormat;if(f===99)return!1;if(f===1||c.verbatimModuleSyntax&&u===1)return!0;if(c.verbatimModuleSyntax&&oF(u))return!1;if(typeof e=="object"){if(e.commonJsModuleIndicator)return!0;if(e.externalModuleIndicator)return!1}return i}var xu,zG,OTe,tM,WG,VG,LTe,rM,UG,oBe=Dt({"src/services/utilities.ts"(){qn(),xu=Hh(99,!0),zG=(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))(zG||{}),OTe=/^\/\/\/\s*(e[e.Single=0]="Single",e[e.Double=1]="Double",e))(WG||{}),VG=Kje(),LTe=` +`,rM="anonymous function",UG=fd(bce,wTe,ATe,VL)}});function qG(e){let t=1;const n=yf(),i=new Map,s=new Map;let o;const c={isUsableByFile:T=>T===o,isEmpty:()=>!n.size,clear:()=>{n.clear(),i.clear(),o=void 0},add:(T,k,w,P,F,J,U,$)=>{T!==o&&(c.clear(),o=T);let j;if(F){const ae=kF(F.fileName);if(ae){const{topLevelNodeModulesIndex:K,topLevelPackageNameIndex:fe,packageRootIndex:ke}=ae;if(j=_A(N3(F.fileName.substring(fe+1,ke))),Vi(T,F.path.substring(0,K))){const Oe=s.get(j),me=F.fileName.substring(0,fe+1);if(Oe){const be=Oe.indexOf(zm);K>be&&s.set(j,me)}else s.set(j,me)}}}const R=J===1&&xC(k)||k,Y=J===0||$A(R)?xi(w):Cce(R,void 0),ue=typeof Y=="string"?Y:Y[0],pe=typeof Y=="string"?void 0:Y[1],H=yp(P.name),q=t++,ee=Ul(k,$),oe=k.flags&33554432?void 0:k,Se=P.flags&33554432?void 0:P;(!oe||!Se)&&i.set(q,[k,P]),n.add(f(ue,k,Sl(H)?void 0:H,$),{id:q,symbolTableKey:w,symbolName:ue,capitalizedSymbolName:pe,moduleName:H,moduleFile:F,moduleFileName:F==null?void 0:F.fileName,packageName:j,exportKind:J,targetFlags:ee.flags,isFromPackageJson:U,symbol:oe,moduleSymbol:Se})},get:(T,k)=>{if(T!==o)return;const w=n.get(k);return w==null?void 0:w.map(u)},search:(T,k,w,P)=>{if(T===o)return fl(n,(F,J)=>{const{symbolName:U,ambientModuleName:$}=g(J),j=k&&F[0].capitalizedSymbolName||U;if(w(j,F[0].targetFlags)){const R=F.map(u).filter((Y,ue)=>S(Y,F[ue].packageName));if(R.length){const Y=P(R,j,!!$,J);if(Y!==void 0)return Y}}})},releaseSymbols:()=>{i.clear()},onFileChanged:(T,k,w)=>d(T)&&d(k)?!1:o&&o!==k.path||w&&XL(T)!==XL(k)||!ud(T.moduleAugmentations,k.moduleAugmentations)||!y(T,k)?(c.clear(),!0):(o=k.path,!1)};return E.isDebugging&&Object.defineProperty(c,"__cache",{value:n}),c;function u(T){if(T.symbol&&T.moduleSymbol)return T;const{id:k,exportKind:w,targetFlags:P,isFromPackageJson:F,moduleFileName:J}=T,[U,$]=i.get(k)||Ve;if(U&&$)return{symbol:U,moduleSymbol:$,moduleFileName:J,exportKind:w,targetFlags:P,isFromPackageJson:F};const j=(F?e.getPackageJsonAutoImportProvider():e.getCurrentProgram()).getTypeChecker(),re=T.moduleSymbol||$||E.checkDefined(T.moduleFile?j.getMergedSymbol(T.moduleFile.symbol):j.tryFindAmbientModule(T.moduleName)),R=T.symbol||U||E.checkDefined(w===2?j.resolveExternalModuleSymbol(re):j.tryGetMemberInModuleExportsAndProperties(xi(T.symbolTableKey),re),`Could not find symbol '${T.symbolName}' by key '${T.symbolTableKey}' in module ${re.name}`);return i.set(k,[R,re]),{symbol:R,moduleSymbol:re,moduleFileName:J,exportKind:w,targetFlags:P,isFromPackageJson:F}}function f(T,k,w,P){const F=w||"";return`${T.length} ${Ks(Ul(k,P))} ${T} ${F}`}function g(T){const k=T.indexOf(" "),w=T.indexOf(" ",k+1),P=parseInt(T.substring(0,k),10),F=T.substring(w+1),J=F.substring(0,P),U=F.substring(P+1);return{symbolName:J,ambientModuleName:U===""?void 0:U}}function d(T){return!T.commonJsModuleIndicator&&!T.externalModuleIndicator&&!T.moduleAugmentations&&!T.ambientModuleNames}function y(T,k){if(!ud(T.ambientModuleNames,k.ambientModuleNames))return!1;let w=-1,P=-1;for(const F of k.ambientModuleNames){const J=U=>vz(U)&&U.name.text===F;if(w=vc(T.statements,J,w+1),P=vc(k.statements,J,P+1),T.statements[w]!==k.statements[P])return!1}return!0}function S(T,k){if(!k||!T.moduleFileName)return!0;const w=e.getGlobalTypingsCacheLocation();if(w&&Vi(T.moduleFileName,w))return!0;const P=s.get(k);return!P||Vi(T.moduleFileName,P)}}function HG(e,t,n,i,s,o,c){var u;if(t===n)return!1;const f=c==null?void 0:c.get(t.path,n.path,i,{});if((f==null?void 0:f.isBlockedByPackageJsonDependencies)!==void 0)return!f.isBlockedByPackageJsonDependencies;const g=Zh(o),d=(u=o.getGlobalTypingsCacheLocation)==null?void 0:u.call(o),y=!!h2.forEachFileNameOfModule(t.fileName,n.fileName,o,!1,S=>{const T=e.getSourceFile(S);return(T===n||!T)&&cBe(t.fileName,S,g,d)});if(s){const S=y&&s.allowsImportingSourceFile(n,o);return c==null||c.setBlockedByPackageJsonDependencies(t.path,n.path,i,{},!S),S}return y}function cBe(e,t,n,i){const s=jp(t,c=>wc(c)==="node_modules"?c:void 0),o=s&&Un(n(s));return o===void 0||Vi(n(e),o)||!!i&&Vi(n(i),o)}function GG(e,t,n,i,s){var o,c;const u=SC(t),f=n.autoImportFileExcludePatterns&&Ri(n.autoImportFileExcludePatterns,d=>{const y=dF(d,"","exclude");return y?iy(y,u):void 0});MTe(e.getTypeChecker(),e.getSourceFiles(),f,t,(d,y)=>s(d,y,e,!1));const g=i&&((o=t.getPackageJsonAutoImportProvider)==null?void 0:o.call(t));if(g){const d=xo(),y=e.getTypeChecker();MTe(g.getTypeChecker(),g.getSourceFiles(),f,t,(S,T)=>{(T&&!e.getSourceFile(T.fileName)||!T&&!y.resolveName(S.name,void 0,1536,!1))&&s(S,T,g,!0)}),(c=t.log)==null||c.call(t,`forEachExternalModuleToImportFrom autoImportProvider: ${xo()-d}`)}}function MTe(e,t,n,i,s){var o,c;const u=(o=i.getSymlinkCache)==null?void 0:o.call(i).getSymlinkedDirectoriesByRealpath(),f=n&&(({fileName:g,path:d})=>{if(n.some(y=>y.test(g)))return!0;if(u!=null&&u.size&&W1(g)){let y=Un(g);return jp(Un(d),S=>{const T=u.get(_l(S));if(T)return T.some(k=>n.some(w=>w.test(g.replace(y,k))));y=Un(y)})??!1}return!1});for(const g of e.getAmbientModules())!g.name.includes("*")&&!(n&&((c=g.declarations)!=null&&c.every(d=>f(d.getSourceFile()))))&&s(g,void 0);for(const g of t)af(g)&&!(f!=null&&f(g))&&s(e.getMergedSymbol(g.symbol),g)}function oN(e,t,n,i,s){var o,c,u,f,g;const d=xo();(o=t.getPackageJsonAutoImportProvider)==null||o.call(t);const y=((c=t.getCachedExportInfoMap)==null?void 0:c.call(t))||qG({getCurrentProgram:()=>n,getPackageJsonAutoImportProvider:()=>{var k;return(k=t.getPackageJsonAutoImportProvider)==null?void 0:k.call(t)},getGlobalTypingsCacheLocation:()=>{var k;return(k=t.getGlobalTypingsCacheLocation)==null?void 0:k.call(t)}});if(y.isUsableByFile(e.path))return(u=t.log)==null||u.call(t,"getExportInfoMap: cache hit"),y;(f=t.log)==null||f.call(t,"getExportInfoMap: cache miss or empty; calculating new results");const S=n.getCompilerOptions();let T=0;try{GG(n,t,i,!0,(k,w,P,F)=>{++T%100===0&&(s==null||s.throwIfCancellationRequested());const J=new Map,U=P.getTypeChecker(),$=nM(k,U,S);$&&RTe($.symbol,U)&&y.add(e.path,$.symbol,$.exportKind===1?"default":"export=",k,w,$.exportKind,F,U),U.forEachExportAndPropertyOfModule(k,(j,re)=>{j!==($==null?void 0:$.symbol)&&RTe(j,U)&&Vp(J,re)&&y.add(e.path,j,re,k,w,0,F,U)})})}catch(k){throw y.clear(),k}return(g=t.log)==null||g.call(t,`getExportInfoMap: done in ${xo()-d} ms`),y}function nM(e,t,n){const i=lBe(e,t);if(!i)return;const{symbol:s,exportKind:o}=i,c=iM(s,t,n);return c&&{symbol:s,exportKind:o,...c}}function RTe(e,t){return!t.isUndefinedSymbol(e)&&!t.isUnknownSymbol(e)&&!W8(e)&&!_re(e)}function lBe(e,t){const n=t.resolveExternalModuleSymbol(e);if(n!==e)return{symbol:n,exportKind:2};const i=t.tryGetMemberInModuleExports("default",e);if(i)return{symbol:i,exportKind:1}}function iM(e,t,n){const i=xC(e);if(i)return{resolvedSymbol:i,name:i.name};const s=uBe(e);if(s!==void 0)return{resolvedSymbol:e,name:s};if(e.flags&2097152){const o=t.getImmediateAliasedSymbol(e);if(o&&o.parent)return iM(o,t,n)}return e.escapedName!=="default"&&e.escapedName!=="export="?{resolvedSymbol:e,name:e.getName()}:{resolvedSymbol:e,name:QL(e,n.target)}}function uBe(e){return e.declarations&&Qa(e.declarations,t=>{var n;if(oc(t))return(n=Wn(xc(t.expression),Ie))==null?void 0:n.text;if(vu(t))return E.assert(t.name.text==="default","Expected the specifier to be a default export"),t.propertyName&&t.propertyName.text})}var $G,XG,_Be=Dt({"src/services/exportInfoMap.ts"(){qn(),$G=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.CommonJS=3]="CommonJS",e))($G||{}),XG=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e[e.UMD=3]="UMD",e))(XG||{})}});function jTe(){const e=Hh(99,!1);function t(i,s,o){return dBe(n(i,s,o),i)}function n(i,s,o){let c=0,u=0;const f=[],{prefix:g,pushTemplate:d}=hBe(s);i=g+i;const y=g.length;d&&f.push(16),e.setText(i);let S=0;const T=[];let k=0;do{c=e.scan(),gC(c)||(w(),u=c);const P=e.getTokenEnd();if(pBe(e.getTokenStart(),P,y,bBe(c),T),P>=i.length){const F=fBe(e,c,Do(f));F!==void 0&&(S=F)}}while(c!==1);function w(){switch(c){case 44:case 69:!WTe[u]&&e.reScanSlashToken()===14&&(c=14);break;case 30:u===80&&k++;break;case 32:k>0&&k--;break;case 133:case 154:case 150:case 136:case 155:k>0&&!o&&(c=80);break;case 16:f.push(c);break;case 19:f.length>0&&f.push(c);break;case 20:if(f.length>0){const P=Do(f);P===16?(c=e.reScanTemplateToken(!1),c===18?f.pop():E.assertEqual(c,17,"Should have been a template middle.")):(E.assertEqual(P,19,"Should have been an open brace"),f.pop())}break;default:if(!c_(c))break;(u===25||c_(u)&&c_(c)&&!gBe(u,c))&&(c=80)}}return{endOfLineState:S,spans:T}}return{getClassificationsForLine:t,getEncodedLexicalClassifications:n}}function fBe(e,t,n){switch(t){case 11:{if(!e.isUnterminated())return;const i=e.getTokenText(),s=i.length-1;let o=0;for(;i.charCodeAt(s-o)===92;)o++;return o&1?i.charCodeAt(0)===34?3:2:void 0}case 3:return e.isUnterminated()?1:void 0;default:if(G0(t)){if(!e.isUnterminated())return;switch(t){case 18:return 5;case 15:return 4;default:return E.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+t)}}return n===16?6:void 0}}function pBe(e,t,n,i,s){if(i===8)return;e===0&&n>0&&(e+=n);const o=t-e;o>0&&s.push(e-n,o,i)}function dBe(e,t){const n=[],i=e.spans;let s=0;for(let c=0;c=0){const d=u-s;d>0&&n.push({length:d,classification:4})}n.push({length:f,classification:mBe(g)}),s=u+f}const o=t.length-s;return o>0&&n.push({length:o,classification:4}),{entries:n,finalLexState:e.endOfLineState}}function mBe(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 gBe(e,t){if(!sG(e))return!0;switch(t){case 139:case 153:case 137:case 126:case 129:return!0;default:return!1}}function hBe(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 E.assertNever(e)}}function yBe(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 vBe(e){switch(e){case 40:case 41:case 55:case 54:case 46:case 47:return!0;default:return!1}}function bBe(e){if(c_(e))return 3;if(yBe(e)||vBe(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 $0(e)?6:2}}function Ace(e,t,n,i,s){return zTe(ZG(e,t,n,i,s))}function BTe(e,t){switch(t){case 267:case 263:case 264:case 262:case 231:case 218:case 219:e.throwIfCancellationRequested()}}function ZG(e,t,n,i,s){const o=[];return n.forEachChild(function u(f){if(!(!f||!B7(s,f.pos,f.getFullWidth()))){if(BTe(t,f.kind),Ie(f)&&!_c(f)&&i.has(f.escapedText)){const g=e.getSymbolAtLocation(f),d=g&&JTe(g,oS(f),e);d&&c(f.getStart(n),f.getEnd(),d)}f.forEachChild(u)}}),{spans:o,endOfLineState:0};function c(u,f,g){const d=f-u;E.assert(d>0,`Classification had non-positive length of ${d}`),o.push(u),o.push(d),o.push(g)}}function JTe(e,t,n){const i=e.getFlags();if(i&2885600)return i&32?11:i&384?12:i&524288?16:i&1536?t&4||t&1&&SBe(e)?14:void 0:i&2097152?JTe(n.getAliasedSymbol(e),t,n):t&2?i&64?13:i&262144?15:void 0:void 0}function SBe(e){return ct(e.declarations,t=>Sc(t)&&ch(t)===1)}function TBe(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 zTe(e){E.assert(e.spans.length%3===0);const t=e.spans,n=[];for(let i=0;i])*)(\/>)?)?/im,Y=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/img,ue=t.text.substr(j,re),pe=R.exec(ue);if(!pe||!pe[3]||!(pe[3]in PD))return!1;let H=j;y(H,pe[1].length),H+=pe[1].length,f(H,pe[2].length,10),H+=pe[2].length,f(H,pe[3].length,21),H+=pe[3].length;const q=pe[4];let ee=H;for(;;){const Se=Y.exec(q);if(!Se)break;const ae=H+Se.index+Se[1].length;ae>ee&&(y(ee,ae-ee),ee=ae),f(ee,Se[2].length,22),ee+=Se[2].length,Se[3].length&&(y(ee,Se[3].length),ee+=Se[3].length),f(ee,Se[4].length,5),ee+=Se[4].length,Se[5].length&&(y(ee,Se[5].length),ee+=Se[5].length),f(ee,Se[6].length,24),ee+=Se[6].length}H+=pe[4].length,H>ee&&y(ee,H-ee),pe[5]&&(f(H,pe[5].length,10),H+=pe[5].length);const oe=j+re;return H=0),Y>0){const ue=re||U(j.kind,j);ue&&f(R,Y,ue)}return!0}function J(j){switch(j.parent&&j.parent.kind){case 286:if(j.parent.tagName===j)return 19;break;case 287:if(j.parent.tagName===j)return 20;break;case 285:if(j.parent.tagName===j)return 21;break;case 291:if(j.parent.name===j)return 22;break}}function U(j,re){if(c_(j))return 3;if((j===30||j===32)&&re&&Koe(re.parent))return 10;if(Yz(j)){if(re){const R=re.parent;if(j===64&&(R.kind===260||R.kind===172||R.kind===169||R.kind===291)||R.kind===226||R.kind===224||R.kind===225||R.kind===227)return 5}return 10}else{if(j===9)return 4;if(j===10)return 25;if(j===11)return re&&re.parent.kind===291?24:6;if(j===14)return 6;if($0(j))return 6;if(j===12)return 23;if(j===80){if(re){switch(re.parent.kind){case 263:return re.parent.name===re?11:void 0;case 168:return re.parent.name===re?15:void 0;case 264:return re.parent.name===re?13:void 0;case 266:return re.parent.name===re?12:void 0;case 267:return re.parent.name===re?14:void 0;case 169:return re.parent.name===re?Yv(re)?3:17:void 0}if(Qg(re.parent))return 3}return 2}}}function $(j){if(j&&VD(i,s,j.pos,j.getFullWidth())){BTe(e,j.kind);for(const re of j.getChildren(t))F(re)||$(re)}}}var WTe,VTe=wt({"src/services/classifier.ts"(){qn(),WTe=UK([80,11,9,10,14,110,46,47,22,24,20,112,97],e=>e,()=>!0)}}),cM,xBe=wt({"src/services/documentHighlights.ts"(){qn(),(e=>{function t(H,q,ee,oe,Se){const ae=u_(ee,oe);if(ae.parent&&(Kd(ae.parent)&&ae.parent.tagName===ae||l2(ae.parent))){const{openingElement:K,closingElement:fe}=ae.parent.parent,ke=[K,fe].map(({tagName:Oe})=>n(Oe,ee));return[{fileName:ee.fileName,highlightSpans:ke}]}return i(oe,ae,H,q,Se)||s(ae,ee)}e.getDocumentHighlights=t;function n(H,q){return{fileName:q.fileName,textSpan:Zu(H,q),kind:"none"}}function i(H,q,ee,oe,Se){const ae=new Set(Se.map(Oe=>Oe.fileName)),K=lo.getReferenceEntriesForNode(H,q,ee,Se,oe,void 0,ae);if(!K)return;const fe=vD(K.map(lo.toHighlightSpan),Oe=>Oe.fileName,Oe=>Oe.span),ke=nu(ee.useCaseSensitiveFileNames());return gs(J4(fe.entries(),([Oe,me])=>{if(!ae.has(Oe)){if(!ee.redirectTargetsMap.has(No(Oe,ee.getCurrentDirectory(),ke)))return;const be=ee.getSourceFile(Oe);Oe=wn(Se,De=>!!De.redirectInfo&&De.redirectInfo.redirectTarget===be).fileName,E.assert(ae.has(Oe))}return{fileName:Oe,highlightSpans:me}}))}function s(H,q){const ee=o(H,q);return ee&&[{fileName:q.fileName,highlightSpans:ee}]}function o(H,q){switch(H.kind){case 101:case 93:return Hb(H.parent)?Y(H.parent,q):void 0;case 107:return oe(H.parent,Hp,$);case 111:return oe(H.parent,NV,U);case 113:case 85:case 98:const ae=H.kind===85?H.parent.parent:H.parent;return oe(ae,$b,J);case 109:return oe(H.parent,m3,F);case 84:case 90:return y3(H.parent)||zC(H.parent)?oe(H.parent.parent.parent,m3,F):void 0;case 83:case 88:return oe(H.parent,aE,P);case 99:case 117:case 92:return oe(H.parent,K=>Q0(K,!0),w);case 137:return ee(sc,[137]);case 139:case 153:return ee(X0,[139,153]);case 135:return oe(H.parent,py,j);case 134:return Se(j(H));case 127:return Se(re(H));case 103:case 147:return;default:return $h(H.kind)&&(yu(H.parent)||ac(H.parent))?Se(S(H.kind,H.parent)):void 0}function ee(ae,K){return oe(H.parent,ae,fe=>{var ke;return Ri((ke=Wn(fe,Wd))==null?void 0:ke.symbol.declarations,Oe=>ae(Oe)?wn(Oe.getChildren(q),me=>bs(K,me.kind)):void 0)})}function oe(ae,K,fe){return K(ae)?Se(fe(ae,q)):void 0}function Se(ae){return ae&&ae.map(K=>n(K,q))}}function c(H){return NV(H)?[H]:$b(H)?es(H.catchClause?c(H.catchClause):H.tryBlock&&c(H.tryBlock),H.finallyBlock&&c(H.finallyBlock)):As(H)?void 0:g(H,c)}function u(H){let q=H;for(;q.parent;){const ee=q.parent;if(Vv(ee)||ee.kind===312)return ee;if($b(ee)&&ee.tryBlock===q&&ee.catchClause)return q;q=ee}}function f(H){return aE(H)?[H]:As(H)?void 0:g(H,f)}function g(H,q){const ee=[];return H.forEachChild(oe=>{const Se=q(oe);Se!==void 0&&ee.push(...bT(Se))}),ee}function d(H,q){const ee=y(q);return!!ee&&ee===H}function y(H){return Pr(H,q=>{switch(q.kind){case 255:if(H.kind===251)return!1;case 248:case 249:case 250:case 247:case 246:return!H.label||pe(q,H.label.escapedText);default:return As(q)&&"quit"}})}function S(H,q){return Ri(T(q,WT(H)),ee=>v6(ee,H))}function T(H,q){const ee=H.parent;switch(ee.kind){case 268:case 312:case 241:case 296:case 297:return q&64&&Xc(H)?[...H.members,H]:ee.statements;case 176:case 174:case 262:return[...ee.parameters,...$n(ee.parent)?ee.parent.members:[]];case 263:case 231:case 264:case 187:const oe=ee.members;if(q&15){const Se=wn(ee.members,sc);if(Se)return[...oe,...Se.parameters]}else if(q&64)return[...oe,ee];return oe;case 210:return;default:E.assertNever(ee,"Invalid container kind.")}}function k(H,q,...ee){return q&&bs(ee,q.kind)?(H.push(q),!0):!1}function w(H){const q=[];if(k(q,H.getFirstToken(),99,117,92)&&H.kind===246){const ee=H.getChildren();for(let oe=ee.length-1;oe>=0&&!k(q,ee[oe],117);oe--);}return er(f(H.statement),ee=>{d(H,ee)&&k(q,ee.getFirstToken(),83,88)}),q}function P(H){const q=y(H);if(q)switch(q.kind){case 248:case 249:case 250:case 246:case 247:return w(q);case 255:return F(q)}}function F(H){const q=[];return k(q,H.getFirstToken(),109),er(H.caseBlock.clauses,ee=>{k(q,ee.getFirstToken(),84,90),er(f(ee),oe=>{d(H,oe)&&k(q,oe.getFirstToken(),83)})}),q}function J(H,q){const ee=[];if(k(ee,H.getFirstToken(),113),H.catchClause&&k(ee,H.catchClause.getFirstToken(),85),H.finallyBlock){const oe=qa(H,98,q);k(ee,oe,98)}return ee}function U(H,q){const ee=u(H);if(!ee)return;const oe=[];return er(c(ee),Se=>{oe.push(qa(Se,111,q))}),Vv(ee)&&Wv(ee,Se=>{oe.push(qa(Se,107,q))}),oe}function $(H,q){const ee=cf(H);if(!ee)return;const oe=[];return Wv(Ls(ee.body,Cs),Se=>{oe.push(qa(Se,107,q))}),er(c(ee.body),Se=>{oe.push(qa(Se,111,q))}),oe}function j(H){const q=cf(H);if(!q)return;const ee=[];return q.modifiers&&q.modifiers.forEach(oe=>{k(ee,oe,134)}),Ss(q,oe=>{R(oe,Se=>{py(Se)&&k(ee,Se.getFirstToken(),135)})}),ee}function re(H){const q=cf(H);if(!q)return;const ee=[];return Ss(q,oe=>{R(oe,Se=>{CO(Se)&&k(ee,Se.getFirstToken(),127)})}),ee}function R(H,q){q(H),!As(H)&&!$n(H)&&!Bu(H)&&!Sc(H)&&!Gp(H)&&!ki(H)&&Ss(H,ee=>R(ee,q))}function Y(H,q){const ee=ue(H,q),oe=[];for(let Se=0;Se=ae.end;ke--)if(!Jd(q.text.charCodeAt(ke))){fe=!1;break}if(fe){oe.push({fileName:q.fileName,textSpan:Rc(ae.getStart(),K.end),kind:"reference"}),Se++;continue}}oe.push(n(ee[Se],q))}return oe}function ue(H,q){const ee=[];for(;Hb(H.parent)&&H.parent.elseStatement===H;)H=H.parent;for(;;){const oe=H.getChildren(q);k(ee,oe[0],101);for(let Se=oe.length-1;Se>=0&&!k(ee,oe[Se],93);Se--);if(!H.elseStatement||!Hb(H.elseStatement))break;H=H.elseStatement}return ee}function pe(H,q){return!!Pr(H.parent,ee=>c2(ee)?ee.label.escapedText===q:"quit")}})(cM||(cM={}))}});function lN(e){return!!e.sourceFile}function Ice(e,t,n){return e$(e,t,n)}function e$(e,t="",n,i){const s=new Map,o=nu(!!e);function c(){const P=gs(s.keys()).filter(F=>F&&F.charAt(0)==="_").map(F=>{const J=s.get(F),U=[];return J.forEach(($,j)=>{lN($)?U.push({name:j,scriptKind:$.sourceFile.scriptKind,refCount:$.languageServiceRefCount}):$.forEach((re,R)=>U.push({name:j,scriptKind:R,refCount:re.languageServiceRefCount}))}),U.sort(($,j)=>j.refCount-$.refCount),{bucket:F,sourceFiles:U}});return JSON.stringify(P,void 0,2)}function u(P){return typeof P.getCompilationSettings=="function"?P.getCompilationSettings():P}function f(P,F,J,U,$,j){const re=No(P,t,o),R=t$(u(F));return g(P,re,F,R,J,U,$,j)}function g(P,F,J,U,$,j,re,R){return T(P,F,J,U,$,j,!0,re,R)}function d(P,F,J,U,$,j){const re=No(P,t,o),R=t$(u(F));return y(P,re,F,R,J,U,$,j)}function y(P,F,J,U,$,j,re,R){return T(P,F,u(J),U,$,j,!1,re,R)}function S(P,F){const J=lN(P)?P:P.get(E.checkDefined(F,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return E.assert(F===void 0||!J||J.sourceFile.scriptKind===F,`Script kind should match provided ScriptKind:${F} and sourceFile.scriptKind: ${J==null?void 0:J.sourceFile.scriptKind}, !entry: ${!J}`),J}function T(P,F,J,U,$,j,re,R,Y){var ue,pe,H,q;R=vF(P,R);const ee=u(J),oe=J===ee?void 0:J,Se=R===6?100:Fa(ee),ae=typeof Y=="object"?Y:{languageVersion:Se,impliedNodeFormat:oe&&DA(F,(q=(H=(pe=(ue=oe.getCompilerHost)==null?void 0:ue.call(oe))==null?void 0:pe.getModuleResolutionCache)==null?void 0:H.call(pe))==null?void 0:q.getPackageJsonInfoCache(),oe,ee),setExternalModuleIndicator:tw(ee),jsDocParsingMode:n};ae.languageVersion=Se,E.assertEqual(n,ae.jsDocParsingMode);const K=s.size,fe=Fce(U,ae.impliedNodeFormat),ke=z4(s,fe,()=>new Map);if(qr){s.size>K&&qr.instant(qr.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:ee.configFilePath,key:fe});const xe=!Hl(F)&&_l(s,(De,ft)=>ft!==fe&&De.has(F)&&ft);xe&&qr.instant(qr.Phase.Session,"documentRegistryBucketOverlap",{path:F,key1:xe,key2:fe})}const Oe=ke.get(F);let me=Oe&&S(Oe,R);if(!me&&i){const xe=i.getDocument(fe,F);xe&&(E.assert(re),me={sourceFile:xe,languageServiceRefCount:0},be())}if(me)me.sourceFile.version!==j&&(me.sourceFile=V$(me.sourceFile,$,j,$.getChangeRange(me.sourceFile.scriptSnapshot)),i&&i.setDocument(fe,F,me.sourceFile)),re&&me.languageServiceRefCount++;else{const xe=FM(P,$,ae,j,!1,R);i&&i.setDocument(fe,F,xe),me={sourceFile:xe,languageServiceRefCount:1},be()}return E.assert(me.languageServiceRefCount!==0),me.sourceFile;function be(){if(!Oe)ke.set(F,me);else if(lN(Oe)){const xe=new Map;xe.set(Oe.sourceFile.scriptKind,Oe),xe.set(R,me),ke.set(F,xe)}else Oe.set(R,me)}}function k(P,F,J,U){const $=No(P,t,o),j=t$(F);return w($,j,J,U)}function w(P,F,J,U){const $=E.checkDefined(s.get(Fce(F,U))),j=$.get(P),re=S(j,J);re.languageServiceRefCount--,E.assert(re.languageServiceRefCount>=0),re.languageServiceRefCount===0&&(lN(j)?$.delete(P):(j.delete(J),j.size===1&&$.set(P,Lp(j.values(),Do))))}return{acquireDocument:f,acquireDocumentWithKey:g,updateDocument:d,updateDocumentWithKey:y,releaseDocument:k,releaseDocumentWithKey:w,getKeyForCompilationSettings:t$,getDocumentRegistryBucketKeyWithMode:Fce,reportStats:c,getBuckets:()=>s}}function t$(e){return DU(e,YO)}function Fce(e,t){return t?`${e}|${t}`:e}var kBe=wt({"src/services/documentRegistry.ts"(){qn()}});function Oce(e,t,n,i,s,o,c){const u=SC(i),f=nu(u),g=r$(t,n,f,c),d=r$(n,t,f,c);return Kr.ChangeTracker.with({host:i,formatContext:s,preferences:o},y=>{EBe(e,y,g,t,n,i.getCurrentDirectory(),u),PBe(e,y,g,d,i,f)})}function r$(e,t,n,i){const s=n(e);return c=>{const u=i&&i.tryGetSourcePosition({fileName:c,pos:0}),f=o(u?u.fileName:c);return u?f===void 0?void 0:CBe(u.fileName,f,c,n):f};function o(c){if(n(c)===s)return t;const u=FW(c,s,n);return u===void 0?void 0:t+"/"+u}}function CBe(e,t,n,i){const s=FD(e,t,i);return Lce(Un(n),s)}function EBe(e,t,n,i,s,o,c){const{configFile:u}=e.getCompilerOptions();if(!u)return;const f=Un(u.fileName),g=yE(u);if(!g)return;Mce(g,(T,k)=>{switch(k){case"files":case"include":case"exclude":{if(d(T)||k!=="include"||!ju(T.initializer))return;const P=Ri(T.initializer.elements,J=>aa(J)?J.text:void 0);if(P.length===0)return;const F=yF(f,[],P,c,o);sy(E.checkDefined(F.includeFilePattern),c).test(i)&&!sy(E.checkDefined(F.includeFilePattern),c).test(s)&&t.insertNodeAfter(u,ka(T.initializer.elements),I.createStringLiteral(S(s)));return}case"compilerOptions":Mce(T.initializer,(w,P)=>{const F=lU(P);E.assert((F==null?void 0:F.type)!=="listOrElement"),F&&(F.isFilePath||F.type==="list"&&F.element.isFilePath)?d(w):P==="paths"&&Mce(w.initializer,J=>{if(ju(J.initializer))for(const U of J.initializer.elements)y(U)})});return}});function d(T){const k=ju(T.initializer)?T.initializer.elements:[T.initializer];let w=!1;for(const P of k)w=y(P)||w;return w}function y(T){if(!aa(T))return!1;const k=Lce(f,T.text),w=n(k);return w!==void 0?(t.replaceRangeWithText(u,qTe(T,u),S(w)),!0):!1}function S(T){return Bp(f,T,!c)}}function PBe(e,t,n,i,s,o){const c=e.getSourceFiles();for(const u of c){const f=n(u.fileName),g=f??u.fileName,d=Un(g),y=i(u.fileName),S=y||u.fileName,T=Un(S),k=f!==void 0||y!==void 0;ABe(u,t,w=>{if(!nf(w))return;const P=Lce(T,w),F=n(P);return F===void 0?void 0:Fv(Bp(d,F,o))},w=>{const P=e.getTypeChecker().getSymbolAtLocation(w);if(P!=null&&P.declarations&&P.declarations.some(J=>su(J)))return;const F=y!==void 0?UTe(w,t6(w.text,S,e.getCompilerOptions(),s),n,c):wBe(P,w,u,e,s,n);return F!==void 0&&(F.updated||k&&nf(w.text))?h2.updateModuleSpecifier(e.getCompilerOptions(),u,g,F.newFileName,lS(e,s),w.text):void 0})}}function DBe(e,t){return Hs(Mn(e,t))}function Lce(e,t){return Fv(DBe(e,t))}function wBe(e,t,n,i,s,o){if(e){const c=wn(e.declarations,Ni).fileName,u=o(c);return u===void 0?{newFileName:c,updated:!1}:{newFileName:u,updated:!0}}else{const c=i.getModeForUsageLocation(n,t),u=s.resolveModuleNameLiterals||!s.resolveModuleNames?i.getResolvedModuleFromModuleSpecifier(t):s.getResolvedModuleWithFailedLookupLocationsFromCache&&s.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,n.fileName,c);return UTe(t,u,o,i.getSourceFiles())}}function UTe(e,t,n,i){if(!t)return;if(t.resolvedModule){const f=u(t.resolvedModule.resolvedFileName);if(f)return f}const s=er(t.failedLookupLocations,o)||nf(e.text)&&er(t.failedLookupLocations,c);if(s)return s;return t.resolvedModule&&{newFileName:t.resolvedModule.resolvedFileName,updated:!1};function o(f){const g=n(f);return g&&wn(i,d=>d.fileName===g)?c(f):void 0}function c(f){return Yo(f,"/package.json")?void 0:u(f)}function u(f){const g=n(f);return g&&{newFileName:g,updated:!0}}}function ABe(e,t,n,i){for(const s of e.referencedFiles||Ve){const o=n(s.fileName);o!==void 0&&o!==e.text.slice(s.pos,s.end)&&t.replaceRangeWithText(e,s,o)}for(const s of e.imports){const o=i(s);o!==void 0&&o!==s.text&&t.replaceRangeWithText(e,qTe(s,e),o)}}function qTe(e,t){return Uf(e.getStart(t)+1,e.end-1)}function Mce(e,t){if(ua(e))for(const n of e.properties)zc(n)&&aa(n.name)&&t(n,n.name.text)}var NBe=wt({"src/services/getEditsForFileRename.ts"(){qn()}});function lP(e,t){return{kind:e,isCaseSensitive:t}}function Rce(e){const t=new Map,n=e.trim().split(".").map(i=>LBe(i.trim()));if(n.length===1&&n[0].totalTextChunk.text==="")return{getMatchForLastSegmentOfPattern:()=>lP(2,!0),getFullMatch:()=>lP(2,!0),patternContainsDots:!1};if(!n.some(i=>!i.subWordTextChunks.length))return{getFullMatch:(i,s)=>IBe(i,s,n,t),getMatchForLastSegmentOfPattern:i=>jce(i,ka(n),t),patternContainsDots:n.length>1}}function IBe(e,t,n,i){if(!jce(t,ka(n),i)||n.length-1>e.length)return;let o;for(let c=n.length-2,u=e.length-1;c>=0;c-=1,u-=1)o=$Te(o,jce(e[u],n[c],i));return o}function HTe(e,t){let n=t.get(e);return n||t.set(e,n=Uce(e)),n}function GTe(e,t,n){const i=MBe(e,t.textLowerCase);if(i===0)return lP(t.text.length===e.length?0:1,Vi(e,t.text));if(t.isLowerCase){if(i===-1)return;const s=HTe(e,n);for(const o of s)if(Bce(e,o,t.text,!0))return lP(2,Bce(e,o,t.text,!1));if(t.text.length0)return lP(2,!0);if(t.characterSpans.length>0){const s=HTe(e,n),o=XTe(e,s,t,!1)?!0:XTe(e,s,t,!0)?!1:void 0;if(o!==void 0)return lP(3,o)}}}function jce(e,t,n){if(n$(t.totalTextChunk.text,o=>o!==32&&o!==42)){const o=GTe(e,t.totalTextChunk,n);if(o)return o}const i=t.subWordTextChunks;let s;for(const o of i)s=$Te(s,GTe(e,o,n));return s}function $Te(e,t){return gB([e,t],FBe)}function FBe(e,t){return e===void 0?1:t===void 0?-1:wo(e.kind,t.kind)||J0(!e.isCaseSensitive,!t.isCaseSensitive)}function Bce(e,t,n,i,s={start:0,length:n.length}){return s.length<=t.length&&KTe(0,s.length,o=>OBe(n.charCodeAt(s.start+o),e.charCodeAt(t.start+o),i))}function OBe(e,t,n){return n?Jce(e)===Jce(t):e===t}function XTe(e,t,n,i){const s=n.characterSpans;let o=0,c=0;for(;;){if(c===s.length)return!0;if(o===t.length)return!1;let u=t[o],f=!1;for(;c=65&&e<=90)return!0;if(e<127||!O7(e,99))return!1;const t=String.fromCharCode(e);return t===t.toUpperCase()}function QTe(e){if(e>=97&&e<=122)return!0;if(e<127||!O7(e,99))return!1;const t=String.fromCharCode(e);return t===t.toLowerCase()}function MBe(e,t){const n=e.length-t.length;for(let i=0;i<=n;i++)if(n$(t,(s,o)=>Jce(e.charCodeAt(o+i))===s))return i;return-1}function Jce(e){return e>=65&&e<=90?97+(e-65):e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function zce(e){return e>=48&&e<=57}function RBe(e){return k6(e)||QTe(e)||zce(e)||e===95||e===36}function jBe(e){const t=[];let n=0,i=0;for(let s=0;s0&&(t.push(Wce(e.substr(n,i))),i=0)}return i>0&&t.push(Wce(e.substr(n,i))),t}function Wce(e){const t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:Vce(e)}}function Vce(e){return YTe(e,!1)}function Uce(e){return YTe(e,!0)}function YTe(e,t){const n=[];let i=0;for(let s=1;sqce(i)&&i!==95,t,n)}function BBe(e,t,n){return t!==n&&t+1t(e.charCodeAt(s),s))}var lM,zBe=wt({"src/services/patternMatcher.ts"(){qn(),lM=(e=>(e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase",e))(lM||{})}});function exe(e,t=!0,n=!1){const i={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},s=[];let o,c,u,f=0,g=!1;function d(){return c=u,u=xu.scan(),u===19?f++:u===20&&f--,u}function y(){const j=xu.getTokenValue(),re=xu.getTokenStart();return{fileName:j,pos:re,end:re+j.length}}function S(){o||(o=[]),o.push({ref:y(),depth:f})}function T(){s.push(y()),k()}function k(){f===0&&(g=!0)}function w(){let j=xu.getToken();return j===138?(j=d(),j===144&&(j=d(),j===11&&S()),!0):!1}function P(){if(c===25)return!1;let j=xu.getToken();if(j===102){if(j=d(),j===21){if(j=d(),j===11||j===15)return T(),!0}else{if(j===11)return T(),!0;if(j===156&&xu.lookAhead(()=>{const R=xu.scan();return R!==161&&(R===42||R===19||R===80||c_(R))})&&(j=d()),j===80||c_(j))if(j=d(),j===161){if(j=d(),j===11)return T(),!0}else if(j===64){if(J(!0))return!0}else if(j===28)j=d();else return!0;if(j===19){for(j=d();j!==20&&j!==1;)j=d();j===20&&(j=d(),j===161&&(j=d(),j===11&&T()))}else j===42&&(j=d(),j===130&&(j=d(),(j===80||c_(j))&&(j=d(),j===161&&(j=d(),j===11&&T()))))}return!0}return!1}function F(){let j=xu.getToken();if(j===95){if(k(),j=d(),j===156&&xu.lookAhead(()=>{const R=xu.scan();return R===42||R===19})&&(j=d()),j===19){for(j=d();j!==20&&j!==1;)j=d();j===20&&(j=d(),j===161&&(j=d(),j===11&&T()))}else if(j===42)j=d(),j===161&&(j=d(),j===11&&T());else if(j===102&&(j=d(),j===156&&xu.lookAhead(()=>{const R=xu.scan();return R===80||c_(R)})&&(j=d()),(j===80||c_(j))&&(j=d(),j===64&&J(!0))))return!0;return!0}return!1}function J(j,re=!1){let R=j?d():xu.getToken();return R===149?(R=d(),R===21&&(R=d(),(R===11||re&&R===15)&&T()),!0):!1}function U(){let j=xu.getToken();if(j===80&&xu.getTokenValue()==="define"){if(j=d(),j!==21)return!0;if(j=d(),j===11||j===15)if(j=d(),j===28)j=d();else return!0;if(j!==23)return!0;for(j=d();j!==24&&j!==1;)(j===11||j===15)&&T(),j=d();return!0}return!1}function $(){for(xu.setText(e),d();xu.getToken()!==1;){if(xu.getToken()===16){const j=[xu.getToken()];e:for(;gr(j);){const re=xu.scan();switch(re){case 1:break e;case 102:P();break;case 16:j.push(re);break;case 19:gr(j)&&j.push(re);break;case 20:gr(j)&&(Po(j)===16?xu.reScanTemplateToken(!1)===18&&j.pop():j.pop());break}}d()}w()||P()||F()||n&&(J(!1,!0)||U())||d()}xu.setText(void 0)}if(t&&$(),nU(i,e),iU(i,Ca),g){if(o)for(const j of o)s.push(j.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:s,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:void 0}}else{let j;if(o)for(const re of o)re.depth===0?(j||(j=[]),j.push(re.ref.fileName)):s.push(re.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:s,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:j}}}var WBe=wt({"src/services/preProcess.ts"(){qn()}});function Hce(e){const t=nu(e.useCaseSensitiveFileNames()),n=e.getCurrentDirectory(),i=new Map,s=new Map;return{tryGetSourcePosition:u,tryGetGeneratedPosition:f,toLineColumnOffset:S,clearCache:T};function o(k){return No(k,n,t)}function c(k,w){const P=o(k),F=s.get(P);if(F)return F;let J;if(e.getDocumentPositionMapper)J=e.getDocumentPositionMapper(k,w);else if(e.readFile){const U=y(k);J=U&&i$({getSourceFileLike:y,getCanonicalFileName:t,log:$=>e.log($)},k,YU(U.text,$g(U)),$=>!e.fileExists||e.fileExists($)?e.readFile($):void 0)}return s.set(P,J||x9),J||x9}function u(k){if(!Hl(k.fileName)||!g(k.fileName))return;const P=c(k.fileName).getSourcePosition(k);return!P||P===k?void 0:u(P)||P}function f(k){if(Hl(k.fileName))return;const w=g(k.fileName);if(!w)return;const P=e.getProgram();if(P.isSourceOfProjectReferenceRedirect(w.fileName))return;const F=P.getCompilerOptions(),J=no(F),U=J?$u(J)+".d.ts":q5(k.fileName,P.getCompilerOptions(),n,P.getCommonSourceDirectory(),t);if(U===void 0)return;const $=c(U,k.fileName).getGeneratedPosition(k);return $===k?void 0:$}function g(k){const w=e.getProgram();if(!w)return;const P=o(k),F=w.getSourceFileByPath(P);return F&&F.resolvedPath===P?F:void 0}function d(k){const w=o(k),P=i.get(w);if(P!==void 0)return P||void 0;if(!e.readFile||e.fileExists&&!e.fileExists(k)){i.set(w,!1);return}const F=e.readFile(k),J=F?VBe(F):!1;return i.set(w,J),J||void 0}function y(k){return e.getSourceFileLike?e.getSourceFileLike(k):g(k)||d(k)}function S(k,w){return y(k).getLineAndCharacterOfPosition(w)}function T(){i.clear(),s.clear()}}function i$(e,t,n,i){let s=jse(n);if(s){const u=rxe.exec(s);if(u){if(u[1]){const f=u[1];return txe(e,jre(zl,f),t)}s=void 0}}const o=[];s&&o.push(s),o.push(t+".map");const c=s&&Xi(s,Un(t));for(const u of o){const f=Xi(u,Un(t)),g=i(f,c);if(ls(g))return txe(e,g,f);if(g!==void 0)return g||void 0}}function txe(e,t,n){const i=ZU(t);if(!(!i||!i.sources||!i.file||!i.mappings)&&!(i.sourcesContent&&i.sourcesContent.some(ls)))return zse(e,i,n)}function VBe(e,t){return{text:e,lineMap:t,getLineAndCharacterOfPosition(n){return Bk($g(this),n)}}}var rxe,UBe=wt({"src/services/sourcemaps.ts"(){qn(),rxe=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+/=]+)$)?/}});function s$(e,t,n){var i;t.getSemanticDiagnostics(e,n);const s=[],o=t.getTypeChecker();!(e.impliedNodeFormat===1||Gc(e.fileName,[".cts",".cjs"]))&&e.commonJsModuleIndicator&&(ice(t)||dG(t.getCompilerOptions()))&&qBe(e)&&s.push(yn(XBe(e.commonJsModuleIndicator),p.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));const u=Ou(e);if(l$.clear(),f(e),Jb(t.getCompilerOptions()))for(const g of e.imports){const d=TE(g),y=HBe(d);if(!y)continue;const S=(i=t.getResolvedModuleFromModuleSpecifier(g))==null?void 0:i.resolvedModule,T=S&&t.getSourceFile(S.resolvedFileName);T&&T.externalModuleIndicator&&T.externalModuleIndicator!==!0&&oc(T.externalModuleIndicator)&&T.externalModuleIndicator.isExportEquals&&s.push(yn(y,p.Import_may_be_converted_to_a_default_import))}return Nn(s,e.bindSuggestionDiagnostics),Nn(s,t.getSuggestionDiagnostics(e,n)),s.sort((g,d)=>g.start-d.start);function f(g){if(u)YBe(g,o)&&s.push(yn(hi(g.parent)?g.parent.name:g,p.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(ac(g)&&g.parent===e&&g.declarationList.flags&2&&g.declarationList.declarations.length===1){const y=g.declarationList.declarations[0].initializer;y&&Gu(y,!0)&&s.push(yn(y,p.require_call_may_be_converted_to_an_import))}const d=lu.getJSDocTypedefNodes(g);for(const y of d)s.push(yn(y,p.JSDoc_typedef_may_be_converted_to_TypeScript_type));lu.parameterShouldGetTypeFromJSDoc(g)&&s.push(yn(g.name||g,p.JSDoc_types_may_be_moved_to_TypeScript_types))}c$(g)&&GBe(g,o,s),g.forEachChild(f)}}function qBe(e){return e.statements.some(t=>{switch(t.kind){case 243:return t.declarationList.declarations.some(n=>!!n.initializer&&Gu(nxe(n.initializer),!0));case 244:{const{expression:n}=t;if(!Zr(n))return Gu(n,!0);const i=fc(n);return i===1||i===2}default:return!1}})}function nxe(e){return Sn(e)?nxe(e.expression):e}function HBe(e){switch(e.kind){case 272:const{importClause:t,moduleSpecifier:n}=e;return t&&!t.name&&t.namedBindings&&t.namedBindings.kind===274&&aa(n)?t.namedBindings.name:void 0;case 271:return e.name;default:return}}function GBe(e,t,n){$Be(e,t)&&!l$.has(oxe(e))&&n.push(yn(!e.name&&hi(e.parent)&&Ie(e.parent.name)?e.parent.name:e,p.This_may_be_converted_to_an_async_function))}function $Be(e,t){return!EE(e)&&e.body&&Cs(e.body)&&QBe(e.body,t)&&a$(e,t)}function a$(e,t){const n=t.getSignatureFromDeclaration(e),i=n?t.getReturnTypeOfSignature(n):void 0;return!!i&&!!t.getPromisedTypeOfPromise(i)}function XBe(e){return Zr(e)?e.left:e}function QBe(e,t){return!!Wv(e,n=>uM(n,t))}function uM(e,t){return Hp(e)&&!!e.expression&&o$(e.expression,t)}function o$(e,t){if(!ixe(e)||!sxe(e)||!e.arguments.every(i=>axe(i,t)))return!1;let n=e.expression.expression;for(;ixe(n)||Sn(n);)if(Rs(n)){if(!sxe(n)||!n.arguments.every(i=>axe(i,t)))return!1;n=n.expression.expression}else n=n.expression;return!0}function ixe(e){return Rs(e)&&(JA(e,"then")||JA(e,"catch")||JA(e,"finally"))}function sxe(e){const t=e.expression.name.text,n=t==="then"?2:t==="catch"||t==="finally"?1:0;return e.arguments.length>n?!1:e.arguments.lengthi.kind===106||Ie(i)&&i.text==="undefined")}function axe(e,t){switch(e.kind){case 262:case 218:if(fl(e)&1)return!1;case 219:l$.set(oxe(e),!0);case 106:return!0;case 80:case 211:{const i=t.getSymbolAtLocation(e);return i?t.isUndefinedSymbol(i)||ct(Ul(i,t).declarations,s=>As(s)||Z0(s)&&!!s.initializer&&As(s.initializer)):!1}default:return!1}}function oxe(e){return`${e.pos.toString()}:${e.end.toString()}`}function YBe(e,t){var n,i,s,o;if(co(e)){if(hi(e.parent)&&((n=e.symbol.members)!=null&&n.size))return!0;const c=t.getSymbolOfExpando(e,!1);return!!(c&&((i=c.exports)!=null&&i.size||(s=c.members)!=null&&s.size))}return $c(e)?!!((o=e.symbol.members)!=null&&o.size):!1}function c$(e){switch(e.kind){case 262:case 174:case 218:case 219:return!0;default:return!1}}var l$,ZBe=wt({"src/services/suggestionDiagnostics.ts"(){qn(),l$=new Map}});function Gce(e,t){const n=[],i=t.compilerOptions?u$(t.compilerOptions,n):{},s=IM();for(const S in s)Za(s,S)&&i[S]===void 0&&(i[S]=s[S]);for(const S of xU)i.verbatimModuleSyntax&&lxe.has(S.name)||(i[S.name]=S.transpileOptionValue);i.suppressOutputPathCheck=!0,i.allowNonTsExtensions=!0;const o=t0(i),c={getSourceFile:S=>S===Hs(u)?f:void 0,writeFile:(S,T)=>{Zo(S,".map")?(E.assertEqual(d,void 0,"Unexpected multiple source map outputs, file:",S),d=T):(E.assertEqual(g,void 0,"Unexpected multiple outputs, file:",S),g=T)},getDefaultLibFileName:()=>"lib.d.ts",useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:S=>S,getCurrentDirectory:()=>"",getNewLine:()=>o,fileExists:S=>S===u,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},u=t.fileName||(t.compilerOptions&&t.compilerOptions.jsx?"module.tsx":"module.ts"),f=Hw(u,e,{languageVersion:Fa(i),impliedNodeFormat:DA(No(u,"",c.getCanonicalFileName),void 0,c,i),setExternalModuleIndicator:tw(i),jsDocParsingMode:t.jsDocParsingMode??0});t.moduleName&&(f.moduleName=t.moduleName),t.renamedDependencies&&(f.renamedDependencies=new Map(Object.entries(t.renamedDependencies)));let g,d;const y=q9([u],i,c);return t.reportDiagnostics&&(Nn(n,y.getSyntacticDiagnostics(f)),Nn(n,y.getOptionsDiagnostics())),y.emit(void 0,void 0,void 0,void 0,t.transformers),g===void 0?E.fail("Output generation failed"):{outputText:g,diagnostics:n,sourceMapText:d}}function cxe(e,t,n,i,s){const o=Gce(e,{compilerOptions:t,fileName:n,reportDiagnostics:!!i,moduleName:s});return Nn(i,o.diagnostics),o.outputText}function u$(e,t){$ce=$ce||An(Pg,n=>typeof n.type=="object"&&!_l(n.type,i=>typeof i!="number")),e=cG(e);for(const n of $ce){if(!Za(e,n.name))continue;const i=e[n.name];ls(i)?e[n.name]=UO(n,i,t):_l(n.type,s=>s===i)||t.push(Bie(n))}return e}var lxe,$ce,KBe=wt({"src/services/transpile.ts"(){qn(),lxe=new Set(["isolatedModules","preserveValueImports","importsNotUsedAsValues"])}});function uxe(e,t,n,i,s,o,c){const u=Rce(i);if(!u)return Ve;const f=[],g=e.length===1?e[0]:void 0;for(const d of e)n.throwIfCancellationRequested(),!(o&&d.isDeclarationFile)&&(_xe(d,!!c,g)||d.getNamedDeclarations().forEach((y,S)=>{eJe(u,S,y,t,d.fileName,!!c,g,f)}));return f.sort(iJe),(s===void 0?f:f.slice(0,s)).map(sJe)}function _xe(e,t,n){return e!==n&&t&&(aN(e.path)||e.hasNoDefaultLib)}function eJe(e,t,n,i,s,o,c,u){const f=e.getMatchForLastSegmentOfPattern(t);if(f){for(const g of n)if(tJe(g,i,o,c))if(e.patternContainsDots){const d=e.getFullMatch(nJe(g),t);d&&u.push({name:t,fileName:s,matchKind:d.kind,isCaseSensitive:d.isCaseSensitive,declaration:g})}else u.push({name:t,fileName:s,matchKind:f.kind,isCaseSensitive:f.isCaseSensitive,declaration:g})}}function tJe(e,t,n,i){var s;switch(e.kind){case 273:case 276:case 271:const o=t.getSymbolAtLocation(e.name),c=t.getAliasedSymbol(o);return o.escapedName!==c.escapedName&&!((s=c.declarations)!=null&&s.every(u=>_xe(u.getSourceFile(),n,i)));default:return!0}}function rJe(e,t){const n=us(e);return!!n&&(fxe(n,t)||n.kind===167&&Xce(n.expression,t))}function Xce(e,t){return fxe(e,t)||Sn(e)&&(t.push(e.name.text),!0)&&Xce(e.expression,t)}function fxe(e,t){return qd(e)&&(t.push(yp(e)),!0)}function nJe(e){const t=[],n=us(e);if(n&&n.kind===167&&!Xce(n.expression,t))return Ve;t.shift();let i=cS(e);for(;i;){if(!rJe(i,t))return Ve;i=cS(i)}return t.reverse()}function iJe(e,t){return wo(e.matchKind,t.matchKind)||SD(e.name,t.name)}function sJe(e){const t=e.declaration,n=cS(t),i=n&&us(n);return{name:e.name,kind:T2(t),kindModifiers:K3(t),matchKind:lM[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:Zu(t),containerName:i?i.text:"",containerKind:i?T2(n):""}}var aJe=wt({"src/services/navigateTo.ts"(){qn()}}),Qce={};vl(Qce,{getNavigateToItems:()=>uxe});var pxe=wt({"src/services/_namespaces/ts.NavigateTo.ts"(){aJe()}});function dxe(e,t){d$=t,uN=e;try{return nr(_Je(yxe(e)),fJe)}finally{gxe()}}function mxe(e,t){d$=t,uN=e;try{return Pxe(yxe(e))}finally{gxe()}}function gxe(){uN=void 0,d$=void 0,_N=[],p0=void 0,m$=[]}function _M(e){return uP(e.getText(uN))}function _$(e){return e.node.kind}function hxe(e,t){e.children?e.children.push(t):e.children=[t]}function yxe(e){E.assert(!_N.length);const t={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};p0=t;for(const n of e.statements)Ix(n);return H1(),E.assert(!p0&&!_N.length),t}function C2(e,t){hxe(p0,Yce(e,t))}function Yce(e,t){return{node:e,name:t||(yu(e)||ot(e)?us(e):void 0),additionalNodes:void 0,parent:p0,children:void 0,indent:p0.indent+1}}function vxe(e){C6||(C6=new Map),C6.set(e,!0)}function bxe(e){for(let t=0;t0;i--){const s=n[i];E2(e,s)}return[n.length-1,n[0]]}function E2(e,t){const n=Yce(e,t);hxe(p0,n),_N.push(p0),sle.push(C6),C6=void 0,p0=n}function H1(){p0.children&&(f$(p0.children,p0),ele(p0.children)),p0=_N.pop(),C6=sle.pop()}function G1(e,t,n){E2(e,n),Ix(t),H1()}function Txe(e){e.initializer&&dJe(e.initializer)?(E2(e),Ss(e.initializer,Ix),H1()):G1(e,e.initializer)}function Zce(e){const t=us(e);if(t===void 0)return!1;if(Pa(t)){const n=t.expression;return pc(n)||j_(n)||Tf(n)}return!!t}function Ix(e){if(d$.throwIfCancellationRequested(),!(!e||PT(e)))switch(e.kind){case 176:const t=e;G1(t,t.body);for(const c of t.parameters)O_(c,t)&&C2(c);break;case 174:case 177:case 178:case 173:Zce(e)&&G1(e,e.body);break;case 172:Zce(e)&&Txe(e);break;case 171:Zce(e)&&C2(e);break;case 273:const n=e;n.name&&C2(n.name);const{namedBindings:i}=n;if(i)if(i.kind===274)C2(i);else for(const c of i.elements)C2(c);break;case 304:G1(e,e.name);break;case 305:const{expression:s}=e;Ie(s)?C2(e,s):C2(e);break;case 208:case 303:case 260:{const c=e;Ns(c.name)?Ix(c.name):Txe(c);break}case 262:const o=e.name;o&&Ie(o)&&vxe(o.text),G1(e,e.body);break;case 219:case 218:G1(e,e.body);break;case 266:E2(e);for(const c of e.members)pJe(c)||C2(c);H1();break;case 263:case 231:case 264:E2(e);for(const c of e.members)Ix(c);H1();break;case 267:G1(e,wxe(e).body);break;case 277:{const c=e.expression,u=ua(c)||Rs(c)?c:po(c)||co(c)?c.body:void 0;u?(E2(e),Ix(u),H1()):C2(e);break}case 281:case 271:case 181:case 179:case 180:case 265:C2(e);break;case 213:case 226:{const c=fc(e);switch(c){case 1:case 2:G1(e,e.right);return;case 6:case 3:{const u=e,f=u.left,g=c===3?f.expression:f;let d=0,y;Ie(g.expression)?(vxe(g.expression.text),y=g.expression):[d,y]=Sxe(u,g.expression),c===6?ua(u.right)&&u.right.properties.length>0&&(E2(u,y),Ss(u.right,Ix),H1()):co(u.right)||po(u.right)?G1(e,u.right,y):(E2(u,y),G1(e,u.right,f.name),H1()),bxe(d);return}case 7:case 9:{const u=e,f=c===7?u.arguments[0]:u.arguments[0].expression,g=u.arguments[1],[d,y]=Sxe(e,f);E2(e,y),E2(e,Ke(I.createIdentifier(g.text),g)),Ix(e.arguments[2]),H1(),H1(),bxe(d);return}case 5:{const u=e,f=u.left,g=f.expression;if(Ie(g)&&Kg(f)!=="prototype"&&C6&&C6.has(g.text)){co(u.right)||po(u.right)?G1(e,u.right,g):qv(f)&&(E2(u,g),G1(u.left,u.right,D8(f)),H1());return}break}case 4:case 0:case 8:break;default:E.assertNever(c)}}default:sf(e)&&er(e.jsDoc,c=>{er(c.tags,u=>{hp(u)&&C2(u)})}),Ss(e,Ix)}}function f$(e,t){const n=new Map;rB(e,(i,s)=>{const o=i.name||us(i.node),c=o&&_M(o);if(!c)return!0;const u=n.get(c);if(!u)return n.set(c,i),!0;if(u instanceof Array){for(const f of u)if(xxe(f,i,s,t))return!1;return u.push(i),!0}else{const f=u;return xxe(f,i,s,t)?!1:(n.set(c,[f,i]),!0)}})}function oJe(e,t,n,i){function s(u){return co(u)||$c(u)||hi(u)}const o=Zr(t.node)||Rs(t.node)?fc(t.node):0,c=Zr(e.node)||Rs(e.node)?fc(e.node):0;if(_P[o]&&_P[c]||s(e.node)&&_P[o]||s(t.node)&&_P[c]||Xc(e.node)&&Kce(e.node)&&_P[o]||Xc(t.node)&&_P[c]||Xc(e.node)&&Kce(e.node)&&s(t.node)||Xc(t.node)&&s(e.node)&&Kce(e.node)){let u=e.additionalNodes&&Po(e.additionalNodes)||e.node;if(!Xc(e.node)&&!Xc(t.node)||s(e.node)||s(t.node)){const g=s(e.node)?e.node:s(t.node)?t.node:void 0;if(g!==void 0){const d=Ke(I.createConstructorDeclaration(void 0,[],void 0),g),y=Yce(d);y.indent=e.indent+1,y.children=e.node===g?e.children:t.children,e.children=e.node===g?es([y],t.children||[t]):es(e.children||[{...e}],[y])}else(e.children||t.children)&&(e.children=es(e.children||[{...e}],t.children||[t]),e.children&&(f$(e.children,e),ele(e.children)));u=e.node=Ke(I.createClassDeclaration(void 0,e.name||I.createIdentifier("__class__"),void 0,void 0,[]),e.node)}else e.children=es(e.children,t.children),e.children&&f$(e.children,e);const f=t.node;return i.children[n-1].node.end===u.end?Ke(u,{pos:u.pos,end:f.end}):(e.additionalNodes||(e.additionalNodes=[]),e.additionalNodes.push(Ke(I.createClassDeclaration(void 0,e.name||I.createIdentifier("__class__"),void 0,void 0,[]),t.node))),!0}return o!==0}function xxe(e,t,n,i){return oJe(e,t,n,i)?!0:cJe(e.node,t.node,i)?(lJe(e,t),!0):!1}function cJe(e,t,n){if(e.kind!==t.kind||e.parent!==t.parent&&!(kxe(e,n)&&kxe(t,n)))return!1;switch(e.kind){case 172:case 174:case 177:case 178:return Ms(e)===Ms(t);case 267:return Cxe(e,t)&&nle(e)===nle(t);default:return!0}}function Kce(e){return!!(e.flags&16)}function kxe(e,t){const n=Zd(e.parent)?e.parent.parent:e.parent;return n===t.node||bs(t.additionalNodes,n)}function Cxe(e,t){return!e.body||!t.body?e.body===t.body:e.body.kind===t.body.kind&&(e.body.kind!==267||Cxe(e.body,t.body))}function lJe(e,t){e.additionalNodes=e.additionalNodes||[],e.additionalNodes.push(t.node),t.additionalNodes&&e.additionalNodes.push(...t.additionalNodes),e.children=es(e.children,t.children),e.children&&(f$(e.children,e),ele(e.children))}function ele(e){e.sort(uJe)}function uJe(e,t){return SD(Exe(e.node),Exe(t.node))||wo(_$(e),_$(t))}function Exe(e){if(e.kind===267)return Dxe(e);const t=us(e);if(t&&Ac(t)){const n=Fb(t);return n&&xi(n)}switch(e.kind){case 218:case 219:case 231:return Nxe(e);default:return}}function tle(e,t){if(e.kind===267)return uP(Dxe(e));if(t){const n=Ie(t)?t.text:ko(t)?`[${_M(t.argumentExpression)}]`:_M(t);if(n.length>0)return uP(n)}switch(e.kind){case 312:const n=e;return Ic(n)?`"${bg(wc($u(Hs(n.fileName))))}"`:"";case 277:return oc(e)&&e.isExportEquals?"export=":"default";case 219:case 262:case 218:case 263:case 231:return ny(e)&2048?"default":Nxe(e);case 176:return"constructor";case 180:return"new()";case 179:return"()";case 181:return"[]";default:return""}}function _Je(e){const t=[];function n(s){if(i(s)&&(t.push(s),s.children))for(const o of s.children)n(o)}return n(e),t;function i(s){if(s.children)return!0;switch(_$(s)){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 o(s);default:return!1}function o(c){if(!c.node.body)return!1;switch(_$(c.parent)){case 268:case 312:case 174:case 176:return!0;default:return!1}}}}function Pxe(e){return{text:tle(e.node,e.name),kind:T2(e.node),kindModifiers:Axe(e.node),spans:rle(e),nameSpan:e.name&&ile(e.name),childItems:nr(e.children,Pxe)}}function fJe(e){return{text:tle(e.node,e.name),kind:T2(e.node),kindModifiers:Axe(e.node),spans:rle(e),childItems:nr(e.children,t)||m$,indent:e.indent,bolded:!1,grayed:!1};function t(n){return{text:tle(n.node,n.name),kind:T2(n.node),kindModifiers:K3(n.node),spans:rle(n),childItems:m$,indent:0,bolded:!1,grayed:!1}}}function rle(e){const t=[ile(e.node)];if(e.additionalNodes)for(const n of e.additionalNodes)t.push(ile(n));return t}function Dxe(e){return su(e)?jc(e.name):nle(e)}function nle(e){const t=[yp(e.name)];for(;e.body&&e.body.kind===267;)e=e.body,t.push(yp(e.name));return t.join(".")}function wxe(e){return e.body&&Sc(e.body)?wxe(e.body):e}function pJe(e){return!e.name||e.name.kind===167}function ile(e){return e.kind===312?by(e):Zu(e,uN)}function Axe(e){return e.parent&&e.parent.kind===260&&(e=e.parent),K3(e)}function Nxe(e){const{parent:t}=e;if(e.name&&o8(e.name)>0)return uP(Ka(e.name));if(hi(t))return uP(Ka(t.name));if(Zr(t)&&t.operatorToken.kind===64)return _M(t.left).replace(Fxe,"");if(zc(t))return _M(t.name);if(ny(e)&2048)return"default";if($n(e))return"";if(Rs(t)){let n=Ixe(t.expression);if(n!==void 0){if(n=uP(n),n.length>p$)return`${n} callback`;const i=uP(Ri(t.arguments,s=>Ma(s)||NT(s)?s.getText(uN):void 0).join(", "));return`${n}(${i}) callback`}}return""}function Ixe(e){if(Ie(e))return e.text;if(Sn(e)){const t=Ixe(e.expression),n=e.name.text;return t===void 0?n:`${t}.${n}`}else return}function dJe(e){switch(e.kind){case 219:case 218:case 231:return!0;default:return!1}}function uP(e){return e=e.length>p$?e.substring(0,p$)+"...":e,e.replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}var Fxe,p$,d$,uN,_N,p0,sle,C6,m$,_P,mJe=wt({"src/services/navigationBar.ts"(){qn(),Fxe=/\s+/g,p$=150,_N=[],sle=[],m$=[],_P={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1}}}),ale={};vl(ale,{getNavigationBarItems:()=>dxe,getNavigationTree:()=>mxe});var Oxe=wt({"src/services/_namespaces/ts.NavigationBar.ts"(){mJe()}});function Dg(e,t){g$.set(e,t)}function gJe(e,t){return gs(nB(g$.values(),n=>{var i;return e.cancellationToken&&e.cancellationToken.isCancellationRequested()||!((i=n.kinds)!=null&&i.some(s=>$1(s,e.kind)))?void 0:n.getAvailableActions(e,t)}))}function hJe(e,t,n,i){const s=g$.get(t);return s&&s.getEditsForAction(e,n,i)}var g$,Lxe=wt({"src/services/refactorProvider.ts"(){qn(),Vm(),g$=new Map}});function Mxe(e,t=!0){const{file:n,program:i}=e,s=Nx(e),o=Ui(n,s.start),c=o.parent&&ny(o.parent)&32&&t?o.parent:KA(o,n,s);if(!c||!Ni(c.parent)&&!(Zd(c.parent)&&su(c.parent.parent)))return{error:ds(p.Could_not_find_export_statement)};const u=i.getTypeChecker(),f=xJe(c.parent,u),g=ny(c)||(oc(c)&&!c.isExportEquals?2080:0),d=!!(g&2048);if(!(g&32)||!d&&f.exports.has("default"))return{error:ds(p.This_file_already_has_a_default_export)};const y=S=>Ie(S)&&u.getSymbolAtLocation(S)?void 0:{error:ds(p.Can_only_convert_named_export)};switch(c.kind){case 262:case 263:case 264:case 266:case 265:case 267:{const S=c;return S.name?y(S.name)||{exportNode:S,exportName:S.name,wasDefault:d,exportingModuleSymbol:f}:void 0}case 243:{const S=c;if(!(S.declarationList.flags&2)||S.declarationList.declarations.length!==1)return;const T=va(S.declarationList.declarations);return T.initializer?(E.assert(!d,"Can't have a default flag here"),y(T.name)||{exportNode:S,exportName:T.name,wasDefault:d,exportingModuleSymbol:f}):void 0}case 277:{const S=c;return S.isExportEquals?void 0:y(S.expression)||{exportNode:S,exportName:S.expression,wasDefault:d,exportingModuleSymbol:f}}default:return}}function yJe(e,t,n,i,s){vJe(e,n,i,t.getTypeChecker()),bJe(t,n,i,s)}function vJe(e,{wasDefault:t,exportNode:n,exportName:i},s,o){if(t)if(oc(n)&&!n.isExportEquals){const c=n.expression,u=Rxe(c.text,c.text);s.replaceNode(e,n,I.createExportDeclaration(void 0,!1,I.createNamedExports([u])))}else s.delete(e,E.checkDefined(v6(n,90),"Should find a default keyword in modifier list"));else{const c=E.checkDefined(v6(n,95),"Should find an export keyword in modifier list");switch(n.kind){case 262:case 263:case 264:s.insertNodeAfter(e,c,I.createToken(90));break;case 243:const u=va(n.declarationList.declarations);if(!lo.Core.isSymbolReferencedInFile(i,o,e)&&!u.type){s.replaceNode(e,n,I.createExportDefault(E.checkDefined(u.initializer,"Initializer was previously known to be present")));break}case 266:case 265:case 267:s.deleteModifier(e,c),s.insertNodeAfter(e,n,I.createExportDefault(I.createIdentifier(i.text)));break;default:E.fail(`Unexpected exportNode kind ${n.kind}`)}}}function bJe(e,{wasDefault:t,exportName:n,exportingModuleSymbol:i},s,o){const c=e.getTypeChecker(),u=E.checkDefined(c.getSymbolAtLocation(n),"Export name should resolve to a symbol");lo.Core.eachExportReference(e.getSourceFiles(),c,o,u,i,n.text,t,f=>{if(n===f)return;const g=f.getSourceFile();t?SJe(g,f,s,n.text):TJe(g,f,s)})}function SJe(e,t,n,i){const{parent:s}=t;switch(s.kind){case 211:n.replaceNode(e,t,I.createIdentifier(i));break;case 276:case 281:{const c=s;n.replaceNode(e,c,ole(i,c.name.text));break}case 273:{const c=s;E.assert(c.name===t,"Import clause name should match provided ref");const u=ole(i,t.text),{namedBindings:f}=c;if(!f)n.replaceNode(e,t,I.createNamedImports([u]));else if(f.kind===274){n.deleteRange(e,{pos:t.getStart(e),end:f.getStart(e)});const g=aa(c.parent.moduleSpecifier)?gG(c.parent.moduleSpecifier,e):1,d=_0(void 0,[ole(i,t.text)],c.parent.moduleSpecifier,g);n.insertNodeAfter(e,c.parent,d)}else n.delete(e,t),n.insertNodeAtEndOfList(e,f.elements,u);break}case 205:const o=s;n.replaceNode(e,s,I.createImportTypeNode(o.argument,o.attributes,I.createIdentifier(i),o.typeArguments,o.isTypeOf));break;default:E.failBadSyntaxKind(s)}}function TJe(e,t,n){const i=t.parent;switch(i.kind){case 211:n.replaceNode(e,t,I.createIdentifier("default"));break;case 276:{const s=I.createIdentifier(i.name.text);i.parent.elements.length===1?n.replaceNode(e,i.parent,s):(n.delete(e,i),n.insertNodeBefore(e,i.parent,s));break}case 281:{n.replaceNode(e,i,Rxe("default",i.name.text));break}default:E.assertNever(i,`Unexpected parent kind ${i.kind}`)}}function ole(e,t){return I.createImportSpecifier(!1,e===t?void 0:I.createIdentifier(e),I.createIdentifier(t))}function Rxe(e,t){return I.createExportSpecifier(!1,e===t?void 0:I.createIdentifier(e),I.createIdentifier(t))}function xJe(e,t){if(Ni(e))return e.symbol;const n=e.parent.symbol;return n.valueDeclaration&&Jv(n.valueDeclaration)?t.getMergedSymbol(n):n}var h$,fM,pM,kJe=wt({"src/services/refactors/convertExport.ts"(){qn(),Vm(),h$="Convert export",fM={name:"Convert default export to named export",description:ds(p.Convert_default_export_to_named_export),kind:"refactor.rewrite.export.named"},pM={name:"Convert named export to default export",description:ds(p.Convert_named_export_to_default_export),kind:"refactor.rewrite.export.default"},Dg(h$,{kinds:[fM.kind,pM.kind],getAvailableActions:function(t){const n=Mxe(t,t.triggerReason==="invoked");if(!n)return Ve;if(!lh(n)){const i=n.wasDefault?fM:pM;return[{name:h$,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?[{name:h$,description:ds(p.Convert_default_export_to_named_export),actions:[{...fM,notApplicableReason:n.error},{...pM,notApplicableReason:n.error}]}]:Ve},getEditsForAction:function(t,n){E.assert(n===fM.name||n===pM.name,"Unexpected action name");const i=Mxe(t);return E.assert(i&&!lh(i),"Expected applicable refactor info"),{edits:Kr.ChangeTracker.with(t,o=>yJe(t.file,t.program,i,o,t.cancellationToken)),renameFilename:void 0,renameLocation:void 0}}})}});function jxe(e,t=!0){const{file:n}=e,i=Nx(e),s=Ui(n,i.start),o=t?Pr(s,il):KA(s,n,i);if(!o||!il(o))return{error:"Selection is not an import declaration."};const c=i.start+i.length,u=x2(o,o.parent,n);if(u&&c>u.getStart())return;const{importClause:f}=o;return f?f.namedBindings?f.namedBindings.kind===274?{convertTo:0,import:f.namedBindings}:Bxe(e.program,f)?{convertTo:1,import:f.namedBindings}:{convertTo:2,import:f.namedBindings}:{error:ds(p.Could_not_find_namespace_import_or_named_imports)}:{error:ds(p.Could_not_find_import_clause)}}function Bxe(e,t){return Jb(e.getCompilerOptions())&&DJe(t.parent.moduleSpecifier,e.getTypeChecker())}function CJe(e,t,n,i){const s=t.getTypeChecker();i.convertTo===0?EJe(e,s,n,i.import,Jb(t.getCompilerOptions())):zxe(e,t,n,i.import,i.convertTo===1)}function EJe(e,t,n,i,s){let o=!1;const c=[],u=new Map;lo.Core.eachSymbolReferenceInFile(i.name,t,e,y=>{if(!ste(y.parent))o=!0;else{const S=Jxe(y.parent).text;t.resolveName(S,y,-1,!0)&&u.set(S,!0),E.assert(PJe(y.parent)===y,"Parent expression should match id"),c.push(y.parent)}});const f=new Map;for(const y of c){const S=Jxe(y).text;let T=f.get(S);T===void 0&&f.set(S,T=u.has(S)?_S(S,e):S),n.replaceNode(e,y,I.createIdentifier(T))}const g=[];f.forEach((y,S)=>{g.push(I.createImportSpecifier(!1,y===S?void 0:I.createIdentifier(S),I.createIdentifier(y)))});const d=i.parent.parent;o&&!s?n.insertNodeAfter(e,d,cle(d,void 0,g)):n.replaceNode(e,d,cle(d,o?I.createIdentifier(i.name.text):void 0,g))}function Jxe(e){return Sn(e)?e.name:e.right}function PJe(e){return Sn(e)?e.expression:e.left}function zxe(e,t,n,i,s=Bxe(t,i.parent)){const o=t.getTypeChecker(),c=i.parent.parent,{moduleSpecifier:u}=c,f=new Set;i.elements.forEach(k=>{const w=o.getSymbolAtLocation(k.name);w&&f.add(w)});const g=u&&aa(u)?lu.moduleSpecifierToValidIdentifier(u.text,99):"module";function d(k){return!!lo.Core.eachSymbolReferenceInFile(k.name,o,e,w=>{const P=o.resolveName(g,w,-1,!0);return P?f.has(P)?vu(w.parent):!0:!1})}const S=i.elements.some(d)?_S(g,e):g,T=new Set;for(const k of i.elements){const w=(k.propertyName||k.name).text;lo.Core.eachSymbolReferenceInFile(k.name,o,e,P=>{const F=I.createPropertyAccessExpression(I.createIdentifier(S),w);k_(P.parent)?n.replaceNode(e,P.parent,I.createPropertyAssignment(P.text,F)):vu(P.parent)?T.add(k):n.replaceNode(e,P,F)})}if(n.replaceNode(e,i,s?I.createIdentifier(S):I.createNamespaceImport(I.createIdentifier(S))),T.size){const k=gs(T.values(),w=>I.createImportSpecifier(w.isTypeOnly,w.propertyName&&I.createIdentifier(w.propertyName.text),I.createIdentifier(w.name.text)));n.insertNodeAfter(e,i.parent.parent,cle(c,void 0,k))}}function DJe(e,t){const n=t.resolveExternalModuleName(e);if(!n)return!1;const i=t.resolveExternalModuleSymbol(n);return n!==i}function cle(e,t,n){return I.createImportDeclaration(void 0,I.createImportClause(!1,t,n&&n.length?I.createNamedImports(n):void 0),e.moduleSpecifier,void 0)}var y$,dM,wJe=wt({"src/services/refactors/convertImport.ts"(){qn(),Vm(),y$="Convert import",dM={0:{name:"Convert namespace import to named imports",description:ds(p.Convert_namespace_import_to_named_imports),kind:"refactor.rewrite.import.named"},2:{name:"Convert named imports to namespace import",description:ds(p.Convert_named_imports_to_namespace_import),kind:"refactor.rewrite.import.namespace"},1:{name:"Convert named imports to default import",description:ds(p.Convert_named_imports_to_default_import),kind:"refactor.rewrite.import.default"}},Dg(y$,{kinds:vT(dM).map(e=>e.kind),getAvailableActions:function(t){const n=jxe(t,t.triggerReason==="invoked");if(!n)return Ve;if(!lh(n)){const i=dM[n.convertTo];return[{name:y$,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?vT(dM).map(i=>({name:y$,description:i.description,actions:[{...i,notApplicableReason:n.error}]})):Ve},getEditsForAction:function(t,n){E.assert(ct(vT(dM),o=>o.name===n),"Unexpected action name");const i=jxe(t);return E.assert(i&&!lh(i),"Expected applicable refactor info"),{edits:Kr.ChangeTracker.with(t,o=>CJe(t.file,t.program,o,i)),renameFilename:void 0,renameLocation:void 0}}})}});function Wxe(e,t=!0){const{file:n,startPosition:i}=e,s=Ou(n),o=IL(Nx(e)),c=o.pos===o.end&&t,u=AJe(n,i,o,c);if(!u||!ki(u))return{error:ds(p.Selection_is_not_a_valid_type_node)};const f=e.program.getTypeChecker(),g=LJe(u,s);if(g===void 0)return{error:ds(p.No_type_could_be_extracted_from_this_type_node)};const d=MJe(u,g);if(!ki(d))return{error:ds(p.Selection_is_not_a_valid_type_node)};const y=[];(_y(d.parent)||cx(d.parent))&&o.end>u.end&&Nn(y,d.parent.types.filter(w=>TL(w,n,o.pos,o.end)));const S=y.length>1?y:d,T=NJe(f,S,g,n);if(!T)return{error:ds(p.No_type_could_be_extracted_from_this_type_node)};const k=v$(f,S);return{isJS:s,selection:S,enclosingNode:g,typeParameters:T,typeElements:k}}function AJe(e,t,n,i){const s=[()=>Ui(e,t),()=>h6(e,t,()=>!0)];for(const o of s){const c=o(),u=TL(c,e,n.pos,n.end),f=Pr(c,g=>g.parent&&ki(g)&&!P2(n,g.parent,e)&&(i||u));if(f)return f}}function v$(e,t){if(t){if(ts(t)){const n=[];for(const i of t){const s=v$(e,i);if(!s)return;Nn(n,s)}return n}if(cx(t)){const n=[],i=new Map;for(const s of t.types){const o=v$(e,s);if(!o||!o.every(c=>c.name&&qp(i,YA(c.name))))return;Nn(n,o)}return n}else{if(Vb(t))return v$(e,t.type);if(z_(t))return t.members}}}function P2(e,t,n){return UA(e,ca(n.text,t.pos),t.end)}function NJe(e,t,n,i){const s=[],o=bT(t),c={pos:o[0].pos,end:o[o.length-1].end};for(const f of o)if(u(f))return;return s;function u(f){if($f(f)){if(Ie(f.typeName)){const g=f.typeName,d=e.resolveName(g.text,g,262144,!0);for(const y of(d==null?void 0:d.declarations)||Ve)if(Vo(y)&&y.getSourceFile()===i){if(y.name.escapedText===g.escapedText&&P2(y,c,i))return!0;if(P2(n,y,i)&&!P2(c,y,i)){zf(s,y);break}}}}else if(Wb(f)){const g=Pr(f,d=>lx(d)&&P2(d.extendsType,f,i));if(!g||!P2(c,g,i))return!0}else if(ww(f)||Nw(f)){const g=Pr(f.parent,As);if(g&&g.type&&P2(g.type,f,i)&&!P2(c,g,i))return!0}else if(ax(f)){if(Ie(f.exprName)){const g=e.resolveName(f.exprName.text,f.exprName,111551,!1);if(g!=null&&g.valueDeclaration&&P2(n,g.valueDeclaration,i)&&!P2(c,g.valueDeclaration,i))return!0}else if(Yv(f.exprName.left)&&!P2(c,f.parent,i))return!0}return i&&ox(f)&&Ha(i,f.pos).line===Ha(i,f.end).line&&Qr(f,1),Ss(f,u)}}function IJe(e,t,n,i){const{enclosingNode:s,typeParameters:o}=i,{firstTypeNode:c,lastTypeNode:u,newTypeNode:f}=lle(i),g=I.createTypeAliasDeclaration(void 0,n,o.map(d=>I.updateTypeParameterDeclaration(d,d.modifiers,d.name,d.constraint,void 0)),f);e.insertNodeBefore(t,s,yV(g),!0),e.replaceNodeRange(t,c,u,I.createTypeReferenceNode(n,o.map(d=>I.createTypeReferenceNode(d.name,void 0))),{leadingTriviaOption:Kr.LeadingTriviaOption.Exclude,trailingTriviaOption:Kr.TrailingTriviaOption.ExcludeWhitespace})}function FJe(e,t,n,i){var s;const{enclosingNode:o,typeParameters:c,typeElements:u}=i,f=I.createInterfaceDeclaration(void 0,n,c,void 0,u);Ke(f,(s=u[0])==null?void 0:s.parent),e.insertNodeBefore(t,o,yV(f),!0);const{firstTypeNode:g,lastTypeNode:d}=lle(i);e.replaceNodeRange(t,g,d,I.createTypeReferenceNode(n,c.map(y=>I.createTypeReferenceNode(y.name,void 0))),{leadingTriviaOption:Kr.LeadingTriviaOption.Exclude,trailingTriviaOption:Kr.TrailingTriviaOption.ExcludeWhitespace})}function OJe(e,t,n,i,s){var o;bT(s.selection).forEach(k=>{Qr(k,7168)});const{enclosingNode:c,typeParameters:u}=s,{firstTypeNode:f,lastTypeNode:g,newTypeNode:d}=lle(s),y=I.createJSDocTypedefTag(I.createIdentifier("typedef"),I.createJSDocTypeExpression(d),I.createIdentifier(i)),S=[];er(u,k=>{const w=Uk(k),P=I.createTypeParameterDeclaration(void 0,k.name),F=I.createJSDocTemplateTag(I.createIdentifier("template"),w&&Ls(w,d2),[P]);S.push(F)});const T=I.createJSDocComment(void 0,I.createNodeArray(es(S,[y])));if(vd(c)){const k=c.getStart(n),w=f0(t.host,(o=t.formatContext)==null?void 0:o.options);e.insertNodeAt(n,c.getStart(n),T,{suffix:w+w+n.text.slice(WL(n.text,k-1),k)})}else e.insertNodeBefore(n,c,T,!0);e.replaceNodeRange(n,f,g,I.createTypeReferenceNode(i,u.map(k=>I.createTypeReferenceNode(k.name,void 0))))}function lle(e){return ts(e.selection)?{firstTypeNode:e.selection[0],lastTypeNode:e.selection[e.selection.length-1],newTypeNode:_y(e.selection[0].parent)?I.createUnionTypeNode(e.selection):I.createIntersectionTypeNode(e.selection)}:{firstTypeNode:e.selection,lastTypeNode:e.selection,newTypeNode:e.selection}}function LJe(e,t){return Pr(e,Ei)||(t?Pr(e,vd):void 0)}function MJe(e,t){return Pr(e,n=>n===t?"quit":!!(_y(n.parent)||cx(n.parent)))??e}var b$,mM,gM,hM,RJe=wt({"src/services/refactors/extractType.ts"(){qn(),Vm(),b$="Extract type",mM={name:"Extract to type alias",description:ds(p.Extract_to_type_alias),kind:"refactor.extract.type"},gM={name:"Extract to interface",description:ds(p.Extract_to_interface),kind:"refactor.extract.interface"},hM={name:"Extract to typedef",description:ds(p.Extract_to_typedef),kind:"refactor.extract.typedef"},Dg(b$,{kinds:[mM.kind,gM.kind,hM.kind],getAvailableActions:function(t){const n=Wxe(t,t.triggerReason==="invoked");return n?lh(n)?t.preferences.provideRefactorNotApplicableReason?[{name:b$,description:ds(p.Extract_type),actions:[{...hM,notApplicableReason:n.error},{...mM,notApplicableReason:n.error},{...gM,notApplicableReason:n.error}]}]:Ve:[{name:b$,description:ds(p.Extract_type),actions:n.isJS?[hM]:_r([mM],n.typeElements&&gM)}]:Ve},getEditsForAction:function(t,n){const{file:i}=t,s=Wxe(t);E.assert(s&&!lh(s),"Expected to find a range to extract");const o=_S("NewType",i),c=Kr.ChangeTracker.with(t,g=>{switch(n){case mM.name:return E.assert(!s.isJS,"Invalid actionName/JS combo"),IJe(g,i,o,s);case hM.name:return E.assert(s.isJS,"Invalid actionName/JS combo"),OJe(g,t,i,o,s);case gM.name:return E.assert(!s.isJS&&!!s.typeElements,"Invalid actionName/JS combo"),FJe(g,i,o,s);default:E.fail("Unexpected action name")}}),u=i.fileName,f=rN(c,u,o,!1);return{edits:c,renameFilename:u,renameLocation:f}}})}});function lh(e){return e.error!==void 0}function $1(e,t){return t?e.substr(0,t.length)===t:!0}var jJe=wt({"src/services/refactors/helpers.ts"(){}});function Vxe(e,t,n,i){var s,o;const c=i.getTypeChecker(),u=u_(e,t),f=u.parent;if(Ie(u)){if(K8(f)&&hE(f)&&Ie(f.name)){if(((s=c.getMergedSymbol(f.symbol).declarations)==null?void 0:s.length)!==1)return{error:ds(p.Variables_with_multiple_declarations_cannot_be_inlined)};if(Uxe(f))return;const g=qxe(f,c,e);return g&&{references:g,declaration:f,replacement:f.initializer}}if(n){let g=c.resolveName(u.text,u,111551,!1);if(g=g&&c.getMergedSymbol(g),((o=g==null?void 0:g.declarations)==null?void 0:o.length)!==1)return{error:ds(p.Variables_with_multiple_declarations_cannot_be_inlined)};const d=g.declarations[0];if(!K8(d)||!hE(d)||!Ie(d.name)||Uxe(d))return;const y=qxe(d,c,e);return y&&{references:y,declaration:d,replacement:d.initializer}}return{error:ds(p.Could_not_find_variable_to_inline)}}}function Uxe(e){const t=Ls(e.parent.parent,ac);return ct(t.modifiers,nx)}function qxe(e,t,n){const i=[],s=lo.Core.eachSymbolReferenceInFile(e.name,t,n,o=>{if(lo.isWriteAccessForReference(o)&&!k_(o.parent)||vu(o.parent)||oc(o.parent)||ax(o.parent)||WD(e,o.pos))return!0;i.push(o)});return i.length===0||s?void 0:i}function BJe(e,t){t=Lo(t);const{parent:n}=e;return ot(n)&&(wE(t){for(const y of c)d.replaceNode(n,y,BJe(y,f));d.delete(n,u)})}}})}});function zJe(e,t,n,i,s,o){const c=t.getTypeChecker(),u=bM(e,n.all,c),f=ble(e,t,s,n);i.createNewFile(e,f,WJe(e,u,i,n,t,s,f,o)),ule(t,i,e.fileName,f,Zh(s))}function WJe(e,t,n,i,s,o,c,u){const f=s.getTypeChecker(),g=u7(e.statements,Vp);if(e.externalModuleIndicator===void 0&&e.commonJsModuleIndicator===void 0&&t.oldImportsNeededByTargetFile.size===0)return yM(e,i.ranges,n),[...g,...i.all];const d=!WG(c,s,o,!!e.commonJsModuleIndicator),y=wf(e,u),S=dle(e,t.oldFileImportsFromTargetFile,c,s,o,d,y);S&&tP(n,e,S,!0,u),_le(e,i.all,n,t.unusedImportsFromOldFile,f),yM(e,i.ranges,n),fle(n,s,o,e,t.movedSymbols,c,y);const T=VJe(e,t.oldImportsNeededByTargetFile,t.targetFileImportsFromOldFile,n,f,s,o,d,y),k=mle(e,i.all,t.oldFileImportsFromTargetFile,d);return T.length&&k.length?[...g,...T,4,...k]:[...g,...T,...k]}function VJe(e,t,n,i,s,o,c,u,f){const g=[];for(const T of e.statements)mN(T,k=>{_r(g,gN(k,dN(k),w=>t.has(s.getSymbolAtLocation(w))))});let d;const y=[],S=wx();return n.forEach(T=>{if(T.declarations)for(const k of T.declarations){if(!SM(k))continue;const w=yle(k);if(!w)continue;const P=C$(k);S(P)&&vle(e,P,w,i,u),Rn(k,2048)?d=w:y.push(w.text)}}),_r(g,vM(e,d,y,wc(e.fileName),o,c,u,f)),g}var pN,x$,k$,UJe=wt({"src/services/refactors/moveToNewFile.ts"(){qn(),Vm(),pN="Move to a new file",x$=ds(p.Move_to_a_new_file),k$={name:pN,description:x$,kind:"refactor.move.newFile"},Dg(pN,{kinds:[k$.kind],getAvailableActions:function(t){const n=hN(t);return t.preferences.allowTextChangesInNewFiles&&n?[{name:pN,description:x$,actions:[k$]}]:t.preferences.provideRefactorNotApplicableReason?[{name:pN,description:x$,actions:[{...k$,notApplicableReason:ds(p.Selection_is_not_a_valid_statement_or_statements)}]}]:Ve},getEditsForAction:function(t,n){E.assert(n===pN,"Wrong refactor invoked");const i=E.checkDefined(hN(t));return{edits:Kr.ChangeTracker.with(t,o=>zJe(t.file,t.program,i,o,t.host,t.preferences)),renameFilename:void 0,renameLocation:void 0}}})}});function Hxe(e){return{edits:[],renameFilename:void 0,renameLocation:void 0,notApplicableReason:e}}function qJe(e,t,n,i,s,o,c,u){const f=i.getTypeChecker();if(!c.fileExists(n))o.createNewFile(t,n,Gxe(t,n,bM(t,s.all,f),o,s,i,c,u)),ule(i,o,t.fileName,n,Zh(c));else{const g=E.checkDefined(i.getSourceFile(n)),d=lu.createImportAdder(g,e.program,e.preferences,e.host);Gxe(t,g,bM(t,s.all,f,uze(g,s.all,f)),o,s,i,c,u,d)}}function Gxe(e,t,n,i,s,o,c,u,f){const g=o.getTypeChecker(),d=u7(e.statements,Vp);if(e.externalModuleIndicator===void 0&&e.commonJsModuleIndicator===void 0&&n.oldImportsNeededByTargetFile.size===0&&n.targetFileImportsFromOldFile.size===0&&typeof t=="string")return yM(e,s.ranges,i),[...d,...s.all];const y=typeof t=="string"?t:t.fileName,S=!WG(y,o,c,!!e.commonJsModuleIndicator),T=wf(e,u),k=dle(e,n.oldFileImportsFromTargetFile,y,o,c,S,T);k&&tP(i,e,k,!0,u),_le(e,s.all,i,n.unusedImportsFromOldFile,g),yM(e,s.ranges,i),fle(i,o,c,e,n.movedSymbols,y,T);const w=HJe(e,y,n.oldImportsNeededByTargetFile,n.targetFileImportsFromOldFile,i,g,o,c,S,T,f),P=mle(e,s.all,n.oldFileImportsFromTargetFile,S);return typeof t!="string"&&(t.statements.length>0?lze(i,o,P,t,s):i.insertNodesAtEndOfFile(t,P,!1),w.length>0&&tP(i,t,w,!0,u)),f&&f.writeFixes(i,T),w.length&&P.length?[...d,...w,4,...P]:[...d,...w,...P]}function HJe(e,t,n,i,s,o,c,u,f,g,d){const y=[];if(d)n.forEach((P,F)=>{try{d.addImportFromExportedSymbol(Ul(F,o),P)}catch{for(const J of e.statements)mN(J,U=>{_r(y,gN(U,I.createStringLiteral(dN(U).text),$=>n.has(o.getSymbolAtLocation($))))})}});else{const P=c.getSourceFile(t);for(const F of e.statements)mN(F,J=>{var U;const $=dN(J),j=c.getCompilerOptions(),re=c.getResolvedModuleFromModuleSpecifier($),R=(U=re==null?void 0:re.resolvedModule)==null?void 0:U.resolvedFileName;if(R&&P){const Y=f9(j,P,P.fileName,R,lS(c,u));_r(y,gN(J,Ax(Y,g),ue=>n.has(o.getSymbolAtLocation(ue))))}else _r(y,gN(J,I.createStringLiteral(dN(J).text),Y=>n.has(o.getSymbolAtLocation(Y))))})}const S=c.getSourceFile(t);let T;const k=[],w=wx();return i.forEach(P=>{if(P.declarations)for(const F of P.declarations){if(!SM(F))continue;const J=yle(F);if(!J)continue;const U=C$(F);w(U)&&vle(e,U,J,s,f),d&&o.isUnknownSymbol(P)?d.addImportFromExportedSymbol(Ul(P,o)):Rn(F,2048)?T=J:k.push(J.text)}}),S?_r(y,vM(S,T,k,e.fileName,c,u,f,g)):_r(y,vM(e,T,k,e.fileName,c,u,f,g))}function ule(e,t,n,i,s){const o=e.getCompilerOptions().configFile;if(!o)return;const c=Hs(Mn(n,"..",i)),u=FD(o.fileName,c,s),f=o.statements[0]&&Wn(o.statements[0].expression,ua),g=f&&wn(f.properties,d=>zc(d)&&aa(d.name)&&d.name.text==="files");g&&ju(g.initializer)&&t.insertNodeInListAfter(o,ka(g.initializer.elements),I.createStringLiteral(u),g.initializer.elements)}function yM(e,t,n){for(const{first:i,afterLast:s}of t)n.deleteNodeRangeExcludingEnd(e,i,s)}function _le(e,t,n,i,s){for(const o of e.statements)bs(t,o)||mN(o,c=>gle(e,c,n,u=>i.has(s.getSymbolAtLocation(u))))}function fle(e,t,n,i,s,o,c){const u=t.getTypeChecker();for(const f of t.getSourceFiles())if(f!==i)for(const g of f.statements)mN(g,d=>{if(u.getSymbolAtLocation(dN(d))!==i.symbol)return;const y=P=>{const F=Ea(P.parent)?BL(u,P.parent):Ul(u.getSymbolAtLocation(P),u);return!!F&&s.has(F)};gle(f,d,e,y);const S=U0(Un(i.path),o),T=f9(t.getCompilerOptions(),f,f.fileName,S,lS(t,n)),k=gN(d,Ax(T,c),y);k&&e.insertNodeAfter(f,g,k);const w=GJe(d);w&&$Je(e,f,u,s,T,w,d,c)})}function GJe(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 Wn(e.name,Ie);default:return E.assertNever(e,`Unexpected node kind ${e.kind}`)}}function $Je(e,t,n,i,s,o,c,u){const f=lu.moduleSpecifierToValidIdentifier(s,99);let g=!1;const d=[];if(lo.Core.eachSymbolReferenceInFile(o,n,t,y=>{Sn(y.parent)&&(g=g||!!n.resolveName(f,y,-1,!0),i.has(n.getSymbolAtLocation(y.parent.name))&&d.push(y))}),d.length){const y=g?_S(f,t):f;for(const S of d)e.replaceNode(t,S,I.createIdentifier(y));e.insertNodeAfter(t,c,XJe(c,f,s,u))}}function XJe(e,t,n,i){const s=I.createIdentifier(t),o=Ax(n,i);switch(e.kind){case 272:return I.createImportDeclaration(void 0,I.createImportClause(!1,void 0,I.createNamespaceImport(s)),o,void 0);case 271:return I.createImportEqualsDeclaration(void 0,!1,s,I.createExternalModuleReference(o));case 260:return I.createVariableDeclaration(s,void 0,void 0,ple(o));default:return E.assertNever(e,`Unexpected node kind ${e.kind}`)}}function ple(e){return I.createCallExpression(I.createIdentifier("require"),void 0,[e])}function dN(e){return e.kind===272?e.moduleSpecifier:e.kind===271?e.moduleReference.expression:e.initializer.arguments[0]}function mN(e,t){if(il(e))aa(e.moduleSpecifier)&&t(e);else if(El(e))Bm(e.moduleReference)&&Ma(e.moduleReference.expression)&&t(e);else if(ac(e))for(const n of e.declarationList.declarations)n.initializer&&Gu(n.initializer,!0)&&t(n)}function dle(e,t,n,i,s,o,c){let u;const f=[];return t.forEach(g=>{g.escapedName==="default"?u=I.createIdentifier(ML(g)):f.push(g.name)}),vM(e,u,f,n,i,s,o,c)}function vM(e,t,n,i,s,o,c,u){const f=U0(Un(e.path),i),g=f9(s.getCompilerOptions(),e,e.fileName,f,lS(s,o));if(c){const d=n.map(y=>I.createImportSpecifier(!1,void 0,I.createIdentifier(y)));return sce(t,d,g,u)}else{E.assert(!t,"No default import should exist");const d=n.map(y=>I.createBindingElement(void 0,void 0,y));return d.length?$xe(I.createObjectBindingPattern(d),void 0,ple(Ax(g,u))):void 0}}function $xe(e,t,n,i=2){return I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(e,void 0,t,n)],i))}function mle(e,t,n,i){return Zs(t,s=>{if(Qxe(s)&&!Xxe(e,s,i)&&xle(s,o=>{var c;return n.has(E.checkDefined((c=Wn(o,Wd))==null?void 0:c.symbol))})){const o=ZJe(Lo(s),i);if(o)return o}return Lo(s)})}function Xxe(e,t,n,i){var s;return n?!Cl(t)&&Rn(t,32)||!!(i&&e.symbol&&((s=e.symbol.exports)!=null&&s.has(i.escapedText))):!!e.symbol&&!!e.symbol.exports&&hle(t).some(o=>e.symbol.exports.has(Wo(o)))}function gle(e,t,n,i){switch(t.kind){case 272:QJe(e,t,n,i);break;case 271:i(t.name)&&n.delete(e,t);break;case 260:YJe(e,t,n,i);break;default:E.assertNever(t,`Unexpected import decl kind ${t.kind}`)}}function QJe(e,t,n,i){if(!t.importClause)return;const{name:s,namedBindings:o}=t.importClause,c=!s||i(s),u=!o||(o.kind===274?i(o.name):o.elements.length!==0&&o.elements.every(f=>i(f.name)));if(c&&u)n.delete(e,t);else if(s&&c&&n.delete(e,s),o){if(u)n.replaceNode(e,t.importClause,I.updateImportClause(t.importClause,t.importClause.isTypeOnly,s,void 0));else if(o.kind===275)for(const f of o.elements)i(f.name)&&n.delete(e,f)}}function YJe(e,t,n,i){const{name:s}=t;switch(s.kind){case 80:i(s)&&(t.initializer&&Gu(t.initializer,!0)?n.delete(e,dl(t.parent)&&gr(t.parent.declarations)===1?t.parent.parent:t):n.delete(e,s));break;case 207:break;case 206:if(s.elements.every(o=>Ie(o.name)&&i(o.name)))n.delete(e,dl(t.parent)&&t.parent.declarations.length===1?t.parent.parent:t);else for(const o of s.elements)Ie(o.name)&&i(o.name)&&n.delete(e,o.name);break}}function Qxe(e){return E.assert(Ni(e.parent),"Node parent should be a SourceFile"),tke(e)||ac(e)}function ZJe(e,t){return t?[KJe(e)]:eze(e)}function KJe(e){const t=$p(e)?es([I.createModifier(95)],Lv(e)):void 0;switch(e.kind){case 262:return I.updateFunctionDeclaration(e,t,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);case 263:const n=eS(e)?H0(e):void 0;return I.updateClassDeclaration(e,es(n,t),e.name,e.typeParameters,e.heritageClauses,e.members);case 243:return I.updateVariableStatement(e,t,e.declarationList);case 267:return I.updateModuleDeclaration(e,t,e.name,e.body);case 266:return I.updateEnumDeclaration(e,t,e.name,e.members);case 265:return I.updateTypeAliasDeclaration(e,t,e.name,e.typeParameters,e.type);case 264:return I.updateInterfaceDeclaration(e,t,e.name,e.typeParameters,e.heritageClauses,e.members);case 271:return I.updateImportEqualsDeclaration(e,t,e.isTypeOnly,e.name,e.moduleReference);case 244:return E.fail();default:return E.assertNever(e,`Unexpected declaration kind ${e.kind}`)}}function eze(e){return[e,...hle(e).map(Yxe)]}function Yxe(e){return I.createExpressionStatement(I.createBinaryExpression(I.createPropertyAccessExpression(I.createIdentifier("exports"),I.createIdentifier(e)),64,I.createIdentifier(e)))}function hle(e){switch(e.kind){case 262:case 263:return[e.name.text];case 243:return Ri(e.declarationList.declarations,t=>Ie(t.name)?t.name.text:void 0);case 267:case 266:case 265:case 264:case 271:return Ve;case 244:return E.fail("Can't export an ExpressionStatement");default:return E.assertNever(e,`Unexpected decl kind ${e.kind}`)}}function gN(e,t,n){switch(e.kind){case 272:{const i=e.importClause;if(!i)return;const s=i.name&&n(i.name)?i.name:void 0,o=i.namedBindings&&tze(i.namedBindings,n);return s||o?I.createImportDeclaration(void 0,I.createImportClause(i.isTypeOnly,s,o),Lo(t),void 0):void 0}case 271:return n(e.name)?e:void 0;case 260:{const i=rze(e.name,n);return i?$xe(i,e.type,ple(t),e.parent.flags):void 0}default:return E.assertNever(e,`Unexpected import kind ${e.kind}`)}}function tze(e,t){if(e.kind===274)return t(e.name)?e:void 0;{const n=e.elements.filter(i=>t(i.name));return n.length?I.createNamedImports(n):void 0}}function rze(e,t){switch(e.kind){case 80:return t(e)?e:void 0;case 207:return e;case 206:{const n=e.elements.filter(i=>i.propertyName||!Ie(i.name)||t(i.name));return n.length?I.createObjectBindingPattern(n):void 0}}}function yle(e){return Cl(e)?Wn(e.expression.left.name,Ie):Wn(e.name,Ie)}function C$(e){switch(e.kind){case 260:return e.parent.parent;case 208:return C$(Ls(e.parent.parent,t=>hi(t)||Ea(t)));default:return e}}function vle(e,t,n,i,s){if(!Xxe(e,t,s,n))if(s)Cl(t)||i.insertExportModifier(e,t);else{const o=hle(t);o.length!==0&&i.insertNodesAfter(e,t,o.map(Yxe))}}function ble(e,t,n,i){const s=t.getTypeChecker();if(i){const o=bM(e,i.all,s),c=Un(e.fileName),u=HE(e.fileName);return Mn(c,aze(oze(o.oldFileImportsFromTargetFile,o.movedSymbols),u,c,n))+u}return""}function nze(e){const{file:t}=e,n=IL(Nx(e)),{statements:i}=t;let s=vc(i,g=>g.end>n.pos);if(s===-1)return;const o=i[s],c=rke(t,o);c&&(s=c.start);let u=vc(i,g=>g.end>=n.end,s);u!==-1&&n.end<=i[u].getStart()&&u--;const f=rke(t,i[u]);return f&&(u=f.end),{toMove:i.slice(s,u===-1?i.length:u+1),afterLast:u===-1?void 0:i[u+1]}}function hN(e){const t=nze(e);if(t===void 0)return;const n=[],i=[],{toMove:s,afterLast:o}=t;return aB(s,ize,(c,u)=>{for(let f=c;f!!(t.transformFlags&2))}function ize(e){return!sze(e)&&!Vp(e)}function sze(e){switch(e.kind){case 272:return!0;case 271:return!Rn(e,32);case 243:return e.declarationList.declarations.every(t=>!!t.initializer&&Gu(t.initializer,!0));default:return!1}}function bM(e,t,n,i=new Set){const s=new Set,o=new Map,c=new Set,u=d(Sle(t));u&&o.set(u,!1);for(const y of t)xle(y,S=>{s.add(E.checkDefined(Cl(S)?n.getSymbolAtLocation(S.expression.left):S.symbol,"Need a symbol here"))});const f=new Set;for(const y of t)Tle(y,n,(S,T)=>{if(S.declarations){if(i.has(Ul(S,n))){f.add(S);return}for(const k of S.declarations)if(Zxe(k)){const w=o.get(S);o.set(S,(w===void 0||w)&&T)}else SM(k)&&cze(k)===e&&!s.has(S)&&c.add(S)}});for(const y of o.keys())f.add(y);const g=new Set;for(const y of e.statements)bs(t,y)||(u&&y.transformFlags&2&&f.delete(u),Tle(y,n,S=>{s.has(S)&&g.add(S),f.delete(S)}));return{movedSymbols:s,targetFileImportsFromOldFile:c,oldFileImportsFromTargetFile:g,oldImportsNeededByTargetFile:o,unusedImportsFromOldFile:f};function d(y){if(y===void 0)return;const S=n.getJsxNamespace(y),T=n.resolveName(S,y,1920,!0);return T&&ct(T.declarations,Zxe)?T:void 0}}function aze(e,t,n,i){let s=e;for(let o=1;;o++){const c=Mn(n,s+t);if(!i.fileExists(c))return s;s=`${e}.${o}`}}function oze(e,t){return Am(e,ML)||Am(t,ML)||"newFile"}function Tle(e,t,n){e.forEachChild(function i(s){if(Ie(s)&&!eh(s)){const o=t.getSymbolAtLocation(s);o&&n(o,I1(s))}else s.forEachChild(i)})}function xle(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 $o(e.declarationList.declarations,n=>eke(n.name,t));case 244:{const{expression:n}=e;return Zr(n)&&fc(n)===1?t(e):void 0}}}function Zxe(e){switch(e.kind){case 271:case 276:case 273:case 274:return!0;case 260:return Kxe(e);case 208:return hi(e.parent.parent)&&Kxe(e.parent.parent);default:return!1}}function Kxe(e){return Ni(e.parent.parent.parent)&&!!e.initializer&&Gu(e.initializer,!0)}function SM(e){return tke(e)&&Ni(e.parent)||hi(e)&&Ni(e.parent.parent.parent)}function cze(e){return hi(e)?e.parent.parent.parent:e.parent}function eke(e,t){switch(e.kind){case 80:return t(Ls(e.parent,n=>hi(n)||Ea(n)));case 207:case 206:return $o(e.elements,n=>pl(n)?void 0:eke(n.name,t));default:return E.assertNever(e,`Unexpected name kind ${e.kind}`)}}function tke(e){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return!0;default:return!1}}function lze(e,t,n,i,s){var o;const c=new Set,u=(o=i.symbol)==null?void 0:o.exports;if(u){const g=t.getTypeChecker(),d=new Map;for(const y of s.all)Qxe(y)&&Rn(y,32)&&xle(y,S=>{var T;const k=Wd(S)?(T=u.get(S.symbol.escapedName))==null?void 0:T.declarations:void 0,w=$o(k,P=>Tc(P)?P:vu(P)?Wn(P.parent.parent,Tc):void 0);w&&w.moduleSpecifier&&d.set(w,(d.get(w)||new Set).add(S))});for(const[y,S]of gs(d))if(y.exportClause&&Xf(y.exportClause)&&gr(y.exportClause.elements)){const T=y.exportClause.elements,k=An(T,w=>wn(Ul(w.symbol,g).declarations,P=>SM(P)&&S.has(P))===void 0);if(gr(k)===0){e.deleteNode(i,y),c.add(y);continue}gr(k)Tc(g)&&!!g.moduleSpecifier&&!c.has(g));f?e.insertNodesBefore(i,f,n,!0):e.insertNodesAfter(i,i.statements[i.statements.length-1],n)}function rke(e,t){if(fo(t)){const n=t.symbol.declarations;if(n===void 0||gr(n)<=1||!bs(n,t))return;const i=n[0],s=n[gr(n)-1],o=Ri(n,f=>wr(f)===e&&Ei(f)?f:void 0),c=vc(e.statements,f=>f.end>=s.end),u=vc(e.statements,f=>f.end>=i.end);return{toMove:o,start:u,end:c}}}function uze(e,t,n){const i=new Set;for(const s of e.imports){const o=TE(s);if(il(o)&&o.importClause&&o.importClause.namedBindings&&sh(o.importClause.namedBindings))for(const c of o.importClause.namedBindings.elements){const u=n.getSymbolAtLocation(c.propertyName||c.name);u&&i.add(Ul(u,n))}if(I5(o.parent)&&kp(o.parent.name))for(const c of o.parent.name.elements){const u=n.getSymbolAtLocation(c.propertyName||c.name);u&&i.add(Ul(u,n))}}for(const s of t)Tle(s,n,o=>{const c=Ul(o,n);c.valueDeclaration&&wr(c.valueDeclaration)===e&&i.add(c)});return i}var TM,E$,P$,_ze=wt({"src/services/refactors/moveToFile.ts"(){wse(),qn(),Lxe(),TM="Move to file",E$=ds(p.Move_to_file),P$={name:"Move to file",description:E$,kind:"refactor.move.file"},Dg(TM,{kinds:[P$.kind],getAvailableActions:function(t,n){const i=hN(t);return n?t.preferences.allowTextChangesInNewFiles&&i?[{name:TM,description:E$,actions:[P$]}]:t.preferences.provideRefactorNotApplicableReason?[{name:TM,description:E$,actions:[{...P$,notApplicableReason:ds(p.Selection_is_not_a_valid_statement_or_statements)}]}]:Ve:Ve},getEditsForAction:function(t,n,i){E.assert(n===TM,"Wrong refactor invoked");const s=E.checkDefined(hN(t)),{host:o,program:c}=t;E.assert(i,"No interactive refactor arguments available");const u=i.targetFile;return Kv(u)||GT(u)?o.fileExists(u)&&c.getSourceFile(u)===void 0?Hxe(ds(p.Cannot_move_statements_to_the_selected_file)):{edits:Kr.ChangeTracker.with(t,g=>qJe(t,t.file,i.targetFile,t.program,s,g,t.host,t.preferences)),renameFilename:void 0,renameLocation:void 0}:Hxe(ds(p.Cannot_move_to_file_selected_file_is_invalid))}})}});function fze(e){const{file:t,startPosition:n,program:i}=e;return ike(t,n,i)?[{name:D$,description:kle,actions:[Cle]}]:Ve}function pze(e){const{file:t,startPosition:n,program:i}=e,s=ike(t,n,i);if(!s)return;const o=i.getTypeChecker(),c=s[s.length-1];let u=c;switch(c.kind){case 173:{u=I.updateMethodSignature(c,c.modifiers,c.name,c.questionToken,c.typeParameters,g(s),c.type);break}case 174:{u=I.updateMethodDeclaration(c,c.modifiers,c.asteriskToken,c.name,c.questionToken,c.typeParameters,g(s),c.type,c.body);break}case 179:{u=I.updateCallSignature(c,c.typeParameters,g(s),c.type);break}case 176:{u=I.updateConstructorDeclaration(c,c.modifiers,g(s),c.body);break}case 180:{u=I.updateConstructSignature(c,c.typeParameters,g(s),c.type);break}case 262:{u=I.updateFunctionDeclaration(c,c.modifiers,c.asteriskToken,c.name,c.typeParameters,g(s),c.type,c.body);break}default:return E.failBadSyntaxKind(c,"Unhandled signature kind in overload list conversion refactoring")}if(u===c)return;return{renameFilename:void 0,renameLocation:void 0,edits:Kr.ChangeTracker.with(e,S=>{S.replaceNodeRange(t,s[0],s[s.length-1],u)})};function g(S){const T=S[S.length-1];return fo(T)&&T.body&&(S=S.slice(0,S.length-1)),I.createNodeArray([I.createParameterDeclaration(void 0,I.createToken(26),"args",void 0,I.createUnionTypeNode(nr(S,d)))])}function d(S){const T=nr(S.parameters,y);return Qr(I.createTupleTypeNode(T),ct(T,k=>!!gr(OC(k)))?0:1)}function y(S){E.assert(Ie(S.name));const T=Ke(I.createNamedTupleMember(S.dotDotDotToken,S.name,S.questionToken,S.type||I.createKeywordTypeNode(133)),S),k=S.symbol&&S.symbol.getDocumentationComment(o);if(k){const w=kN(k);w.length&&O1(T,[{text:`* +`,pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return E.assertNever(e)}}function yBe(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 vBe(e){switch(e){case 40:case 41:case 55:case 54:case 46:case 47:return!0;default:return!1}}function bBe(e){if(c_(e))return 3;if(yBe(e)||vBe(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 G0(e)?6:2}}function wce(e,t,n,i,s){return zTe(QG(e,t,n,i,s))}function BTe(e,t){switch(t){case 267:case 263:case 264:case 262:case 231:case 218:case 219:e.throwIfCancellationRequested()}}function QG(e,t,n,i,s){const o=[];return n.forEachChild(function u(f){if(!(!f||!M7(s,f.pos,f.getFullWidth()))){if(BTe(t,f.kind),Ie(f)&&!_c(f)&&i.has(f.escapedText)){const g=e.getSymbolAtLocation(f),d=g&&JTe(g,aS(f),e);d&&c(f.getStart(n),f.getEnd(),d)}f.forEachChild(u)}}),{spans:o,endOfLineState:0};function c(u,f,g){const d=f-u;E.assert(d>0,`Classification had non-positive length of ${d}`),o.push(u),o.push(d),o.push(g)}}function JTe(e,t,n){const i=e.getFlags();if(i&2885600)return i&32?11:i&384?12:i&524288?16:i&1536?t&4||t&1&&SBe(e)?14:void 0:i&2097152?JTe(n.getAliasedSymbol(e),t,n):t&2?i&64?13:i&262144?15:void 0:void 0}function SBe(e){return ct(e.declarations,t=>Sc(t)&&ch(t)===1)}function TBe(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 zTe(e){E.assert(e.spans.length%3===0);const t=e.spans,n=[];for(let i=0;i])*)(\/>)?)?/im,Y=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/img,ue=t.text.substr(j,re),pe=R.exec(ue);if(!pe||!pe[3]||!(pe[3]in ED))return!1;let H=j;y(H,pe[1].length),H+=pe[1].length,f(H,pe[2].length,10),H+=pe[2].length,f(H,pe[3].length,21),H+=pe[3].length;const q=pe[4];let ee=H;for(;;){const Se=Y.exec(q);if(!Se)break;const ae=H+Se.index+Se[1].length;ae>ee&&(y(ee,ae-ee),ee=ae),f(ee,Se[2].length,22),ee+=Se[2].length,Se[3].length&&(y(ee,Se[3].length),ee+=Se[3].length),f(ee,Se[4].length,5),ee+=Se[4].length,Se[5].length&&(y(ee,Se[5].length),ee+=Se[5].length),f(ee,Se[6].length,24),ee+=Se[6].length}H+=pe[4].length,H>ee&&y(ee,H-ee),pe[5]&&(f(H,pe[5].length,10),H+=pe[5].length);const oe=j+re;return H=0),Y>0){const ue=re||U(j.kind,j);ue&&f(R,Y,ue)}return!0}function J(j){switch(j.parent&&j.parent.kind){case 286:if(j.parent.tagName===j)return 19;break;case 287:if(j.parent.tagName===j)return 20;break;case 285:if(j.parent.tagName===j)return 21;break;case 291:if(j.parent.name===j)return 22;break}}function U(j,re){if(c_(j))return 3;if((j===30||j===32)&&re&&Zoe(re.parent))return 10;if(Xz(j)){if(re){const R=re.parent;if(j===64&&(R.kind===260||R.kind===172||R.kind===169||R.kind===291)||R.kind===226||R.kind===224||R.kind===225||R.kind===227)return 5}return 10}else{if(j===9)return 4;if(j===10)return 25;if(j===11)return re&&re.parent.kind===291?24:6;if(j===14)return 6;if(G0(j))return 6;if(j===12)return 23;if(j===80){if(re){switch(re.parent.kind){case 263:return re.parent.name===re?11:void 0;case 168:return re.parent.name===re?15:void 0;case 264:return re.parent.name===re?13:void 0;case 266:return re.parent.name===re?12:void 0;case 267:return re.parent.name===re?14:void 0;case 169:return re.parent.name===re?Yv(re)?3:17:void 0}if(Qg(re.parent))return 3}return 2}}}function $(j){if(j&&WD(i,s,j.pos,j.getFullWidth())){BTe(e,j.kind);for(const re of j.getChildren(t))F(re)||$(re)}}}var WTe,VTe=Dt({"src/services/classifier.ts"(){qn(),WTe=VK([80,11,9,10,14,110,46,47,22,24,20,112,97],e=>e,()=>!0)}}),sM,xBe=Dt({"src/services/documentHighlights.ts"(){qn(),(e=>{function t(H,q,ee,oe,Se){const ae=u_(ee,oe);if(ae.parent&&(Zd(ae.parent)&&ae.parent.tagName===ae||l2(ae.parent))){const{openingElement:K,closingElement:fe}=ae.parent.parent,ke=[K,fe].map(({tagName:Oe})=>n(Oe,ee));return[{fileName:ee.fileName,highlightSpans:ke}]}return i(oe,ae,H,q,Se)||s(ae,ee)}e.getDocumentHighlights=t;function n(H,q){return{fileName:q.fileName,textSpan:Zu(H,q),kind:"none"}}function i(H,q,ee,oe,Se){const ae=new Set(Se.map(Oe=>Oe.fileName)),K=uo.getReferenceEntriesForNode(H,q,ee,Se,oe,void 0,ae);if(!K)return;const fe=yD(K.map(uo.toHighlightSpan),Oe=>Oe.fileName,Oe=>Oe.span),ke=nu(ee.useCaseSensitiveFileNames());return gs(B4(fe.entries(),([Oe,me])=>{if(!ae.has(Oe)){if(!ee.redirectTargetsMap.has(Io(Oe,ee.getCurrentDirectory(),ke)))return;const be=ee.getSourceFile(Oe);Oe=wn(Se,De=>!!De.redirectInfo&&De.redirectInfo.redirectTarget===be).fileName,E.assert(ae.has(Oe))}return{fileName:Oe,highlightSpans:me}}))}function s(H,q){const ee=o(H,q);return ee&&[{fileName:q.fileName,highlightSpans:ee}]}function o(H,q){switch(H.kind){case 101:case 93:return qb(H.parent)?Y(H.parent,q):void 0;case 107:return oe(H.parent,Up,$);case 111:return oe(H.parent,wV,U);case 113:case 85:case 98:const ae=H.kind===85?H.parent.parent:H.parent;return oe(ae,Gb,J);case 109:return oe(H.parent,d3,F);case 84:case 90:return h3(H.parent)||zC(H.parent)?oe(H.parent.parent.parent,d3,F):void 0;case 83:case 88:return oe(H.parent,sE,P);case 99:case 117:case 92:return oe(H.parent,K=>X0(K,!0),w);case 137:return ee(sc,[137]);case 139:case 153:return ee($0,[139,153]);case 135:return oe(H.parent,fy,j);case 134:return Se(j(H));case 127:return Se(re(H));case 103:case 147:return;default:return $h(H.kind)&&(yu(H.parent)||ac(H.parent))?Se(S(H.kind,H.parent)):void 0}function ee(ae,K){return oe(H.parent,ae,fe=>{var ke;return Ri((ke=Wn(fe,zd))==null?void 0:ke.symbol.declarations,Oe=>ae(Oe)?wn(Oe.getChildren(q),me=>bs(K,me.kind)):void 0)})}function oe(ae,K,fe){return K(ae)?Se(fe(ae,q)):void 0}function Se(ae){return ae&&ae.map(K=>n(K,q))}}function c(H){return wV(H)?[H]:Gb(H)?es(H.catchClause?c(H.catchClause):H.tryBlock&&c(H.tryBlock),H.finallyBlock&&c(H.finallyBlock)):As(H)?void 0:g(H,c)}function u(H){let q=H;for(;q.parent;){const ee=q.parent;if(Vv(ee)||ee.kind===312)return ee;if(Gb(ee)&&ee.tryBlock===q&&ee.catchClause)return q;q=ee}}function f(H){return sE(H)?[H]:As(H)?void 0:g(H,f)}function g(H,q){const ee=[];return H.forEachChild(oe=>{const Se=q(oe);Se!==void 0&&ee.push(...vT(Se))}),ee}function d(H,q){const ee=y(q);return!!ee&&ee===H}function y(H){return Pr(H,q=>{switch(q.kind){case 255:if(H.kind===251)return!1;case 248:case 249:case 250:case 247:case 246:return!H.label||pe(q,H.label.escapedText);default:return As(q)&&"quit"}})}function S(H,q){return Ri(T(q,zT(H)),ee=>v6(ee,H))}function T(H,q){const ee=H.parent;switch(ee.kind){case 268:case 312:case 241:case 296:case 297:return q&64&&Qc(H)?[...H.members,H]:ee.statements;case 176:case 174:case 262:return[...ee.parameters,...$n(ee.parent)?ee.parent.members:[]];case 263:case 231:case 264:case 187:const oe=ee.members;if(q&15){const Se=wn(ee.members,sc);if(Se)return[...oe,...Se.parameters]}else if(q&64)return[...oe,ee];return oe;case 210:return;default:E.assertNever(ee,"Invalid container kind.")}}function k(H,q,...ee){return q&&bs(ee,q.kind)?(H.push(q),!0):!1}function w(H){const q=[];if(k(q,H.getFirstToken(),99,117,92)&&H.kind===246){const ee=H.getChildren();for(let oe=ee.length-1;oe>=0&&!k(q,ee[oe],117);oe--);}return rr(f(H.statement),ee=>{d(H,ee)&&k(q,ee.getFirstToken(),83,88)}),q}function P(H){const q=y(H);if(q)switch(q.kind){case 248:case 249:case 250:case 246:case 247:return w(q);case 255:return F(q)}}function F(H){const q=[];return k(q,H.getFirstToken(),109),rr(H.caseBlock.clauses,ee=>{k(q,ee.getFirstToken(),84,90),rr(f(ee),oe=>{d(H,oe)&&k(q,oe.getFirstToken(),83)})}),q}function J(H,q){const ee=[];if(k(ee,H.getFirstToken(),113),H.catchClause&&k(ee,H.catchClause.getFirstToken(),85),H.finallyBlock){const oe=qa(H,98,q);k(ee,oe,98)}return ee}function U(H,q){const ee=u(H);if(!ee)return;const oe=[];return rr(c(ee),Se=>{oe.push(qa(Se,111,q))}),Vv(ee)&&Wv(ee,Se=>{oe.push(qa(Se,107,q))}),oe}function $(H,q){const ee=cf(H);if(!ee)return;const oe=[];return Wv(Ls(ee.body,Cs),Se=>{oe.push(qa(Se,107,q))}),rr(c(ee.body),Se=>{oe.push(qa(Se,111,q))}),oe}function j(H){const q=cf(H);if(!q)return;const ee=[];return q.modifiers&&q.modifiers.forEach(oe=>{k(ee,oe,134)}),Ss(q,oe=>{R(oe,Se=>{fy(Se)&&k(ee,Se.getFirstToken(),135)})}),ee}function re(H){const q=cf(H);if(!q)return;const ee=[];return Ss(q,oe=>{R(oe,Se=>{TO(Se)&&k(ee,Se.getFirstToken(),127)})}),ee}function R(H,q){q(H),!As(H)&&!$n(H)&&!Bu(H)&&!Sc(H)&&!qp(H)&&!ki(H)&&Ss(H,ee=>R(ee,q))}function Y(H,q){const ee=ue(H,q),oe=[];for(let Se=0;Se=ae.end;ke--)if(!Bd(q.text.charCodeAt(ke))){fe=!1;break}if(fe){oe.push({fileName:q.fileName,textSpan:Rc(ae.getStart(),K.end),kind:"reference"}),Se++;continue}}oe.push(n(ee[Se],q))}return oe}function ue(H,q){const ee=[];for(;qb(H.parent)&&H.parent.elseStatement===H;)H=H.parent;for(;;){const oe=H.getChildren(q);k(ee,oe[0],101);for(let Se=oe.length-1;Se>=0&&!k(ee,oe[Se],93);Se--);if(!H.elseStatement||!qb(H.elseStatement))break;H=H.elseStatement}return ee}function pe(H,q){return!!Pr(H.parent,ee=>c2(ee)?ee.label.escapedText===q:"quit")}})(sM||(sM={}))}});function cN(e){return!!e.sourceFile}function Nce(e,t,n){return ZG(e,t,n)}function ZG(e,t="",n,i){const s=new Map,o=nu(!!e);function c(){const P=gs(s.keys()).filter(F=>F&&F.charAt(0)==="_").map(F=>{const J=s.get(F),U=[];return J.forEach(($,j)=>{cN($)?U.push({name:j,scriptKind:$.sourceFile.scriptKind,refCount:$.languageServiceRefCount}):$.forEach((re,R)=>U.push({name:j,scriptKind:R,refCount:re.languageServiceRefCount}))}),U.sort(($,j)=>j.refCount-$.refCount),{bucket:F,sourceFiles:U}});return JSON.stringify(P,void 0,2)}function u(P){return typeof P.getCompilationSettings=="function"?P.getCompilationSettings():P}function f(P,F,J,U,$,j){const re=Io(P,t,o),R=KG(u(F));return g(P,re,F,R,J,U,$,j)}function g(P,F,J,U,$,j,re,R){return T(P,F,J,U,$,j,!0,re,R)}function d(P,F,J,U,$,j){const re=Io(P,t,o),R=KG(u(F));return y(P,re,F,R,J,U,$,j)}function y(P,F,J,U,$,j,re,R){return T(P,F,u(J),U,$,j,!1,re,R)}function S(P,F){const J=cN(P)?P:P.get(E.checkDefined(F,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return E.assert(F===void 0||!J||J.sourceFile.scriptKind===F,`Script kind should match provided ScriptKind:${F} and sourceFile.scriptKind: ${J==null?void 0:J.sourceFile.scriptKind}, !entry: ${!J}`),J}function T(P,F,J,U,$,j,re,R,Y){var ue,pe,H,q;R=gF(P,R);const ee=u(J),oe=J===ee?void 0:J,Se=R===6?100:Fa(ee),ae=typeof Y=="object"?Y:{languageVersion:Se,impliedNodeFormat:oe&&PA(F,(q=(H=(pe=(ue=oe.getCompilerHost)==null?void 0:ue.call(oe))==null?void 0:pe.getModuleResolutionCache)==null?void 0:H.call(pe))==null?void 0:q.getPackageJsonInfoCache(),oe,ee),setExternalModuleIndicator:ew(ee),jsDocParsingMode:n};ae.languageVersion=Se,E.assertEqual(n,ae.jsDocParsingMode);const K=s.size,fe=Ice(U,ae.impliedNodeFormat),ke=J4(s,fe,()=>new Map);if(qr){s.size>K&&qr.instant(qr.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:ee.configFilePath,key:fe});const xe=!Hl(F)&&fl(s,(De,ft)=>ft!==fe&&De.has(F)&&ft);xe&&qr.instant(qr.Phase.Session,"documentRegistryBucketOverlap",{path:F,key1:xe,key2:fe})}const Oe=ke.get(F);let me=Oe&&S(Oe,R);if(!me&&i){const xe=i.getDocument(fe,F);xe&&(E.assert(re),me={sourceFile:xe,languageServiceRefCount:0},be())}if(me)me.sourceFile.version!==j&&(me.sourceFile=z$(me.sourceFile,$,j,$.getChangeRange(me.sourceFile.scriptSnapshot)),i&&i.setDocument(fe,F,me.sourceFile)),re&&me.languageServiceRefCount++;else{const xe=AM(P,$,ae,j,!1,R);i&&i.setDocument(fe,F,xe),me={sourceFile:xe,languageServiceRefCount:1},be()}return E.assert(me.languageServiceRefCount!==0),me.sourceFile;function be(){if(!Oe)ke.set(F,me);else if(cN(Oe)){const xe=new Map;xe.set(Oe.sourceFile.scriptKind,Oe),xe.set(R,me),ke.set(F,xe)}else Oe.set(R,me)}}function k(P,F,J,U){const $=Io(P,t,o),j=KG(F);return w($,j,J,U)}function w(P,F,J,U){const $=E.checkDefined(s.get(Ice(F,U))),j=$.get(P),re=S(j,J);re.languageServiceRefCount--,E.assert(re.languageServiceRefCount>=0),re.languageServiceRefCount===0&&(cN(j)?$.delete(P):(j.delete(J),j.size===1&&$.set(P,Sm(j.values(),wo))))}return{acquireDocument:f,acquireDocumentWithKey:g,updateDocument:d,updateDocumentWithKey:y,releaseDocument:k,releaseDocumentWithKey:w,getKeyForCompilationSettings:KG,getDocumentRegistryBucketKeyWithMode:Ice,reportStats:c,getBuckets:()=>s}}function KG(e){return EU(e,$O)}function Ice(e,t){return t?`${e}|${t}`:e}var kBe=Dt({"src/services/documentRegistry.ts"(){qn()}});function Fce(e,t,n,i,s,o,c){const u=SC(i),f=nu(u),g=e$(t,n,f,c),d=e$(n,t,f,c);return Kr.ChangeTracker.with({host:i,formatContext:s,preferences:o},y=>{EBe(e,y,g,t,n,i.getCurrentDirectory(),u),PBe(e,y,g,d,i,f)})}function e$(e,t,n,i){const s=n(e);return c=>{const u=i&&i.tryGetSourcePosition({fileName:c,pos:0}),f=o(u?u.fileName:c);return u?f===void 0?void 0:CBe(u.fileName,f,c,n):f};function o(c){if(n(c)===s)return t;const u=NW(c,s,n);return u===void 0?void 0:t+"/"+u}}function CBe(e,t,n,i){const s=ID(e,t,i);return Oce(Un(n),s)}function EBe(e,t,n,i,s,o,c){const{configFile:u}=e.getCompilerOptions();if(!u)return;const f=Un(u.fileName),g=hE(u);if(!g)return;Lce(g,(T,k)=>{switch(k){case"files":case"include":case"exclude":{if(d(T)||k!=="include"||!ju(T.initializer))return;const P=Ri(T.initializer.elements,J=>aa(J)?J.text:void 0);if(P.length===0)return;const F=mF(f,[],P,c,o);iy(E.checkDefined(F.includeFilePattern),c).test(i)&&!iy(E.checkDefined(F.includeFilePattern),c).test(s)&&t.insertNodeAfter(u,ka(T.initializer.elements),I.createStringLiteral(S(s)));return}case"compilerOptions":Lce(T.initializer,(w,P)=>{const F=oU(P);E.assert((F==null?void 0:F.type)!=="listOrElement"),F&&(F.isFilePath||F.type==="list"&&F.element.isFilePath)?d(w):P==="paths"&&Lce(w.initializer,J=>{if(ju(J.initializer))for(const U of J.initializer.elements)y(U)})});return}});function d(T){const k=ju(T.initializer)?T.initializer.elements:[T.initializer];let w=!1;for(const P of k)w=y(P)||w;return w}function y(T){if(!aa(T))return!1;const k=Oce(f,T.text),w=n(k);return w!==void 0?(t.replaceRangeWithText(u,qTe(T,u),S(w)),!0):!1}function S(T){return Rp(f,T,!c)}}function PBe(e,t,n,i,s,o){const c=e.getSourceFiles();for(const u of c){const f=n(u.fileName),g=f??u.fileName,d=Un(g),y=i(u.fileName),S=y||u.fileName,T=Un(S),k=f!==void 0||y!==void 0;ABe(u,t,w=>{if(!nf(w))return;const P=Oce(T,w),F=n(P);return F===void 0?void 0:Fv(Rp(d,F,o))},w=>{const P=e.getTypeChecker().getSymbolAtLocation(w);if(P!=null&&P.declarations&&P.declarations.some(J=>su(J)))return;const F=y!==void 0?UTe(w,t6(w.text,S,e.getCompilerOptions(),s),n,c):wBe(P,w,u,e,s,n);return F!==void 0&&(F.updated||k&&nf(w.text))?h2.updateModuleSpecifier(e.getCompilerOptions(),u,g,F.newFileName,cS(e,s),w.text):void 0})}}function DBe(e,t){return Hs(Mn(e,t))}function Oce(e,t){return Fv(DBe(e,t))}function wBe(e,t,n,i,s,o){if(e){const c=wn(e.declarations,Ni).fileName,u=o(c);return u===void 0?{newFileName:c,updated:!1}:{newFileName:u,updated:!0}}else{const c=i.getModeForUsageLocation(n,t),u=s.resolveModuleNameLiterals||!s.resolveModuleNames?i.getResolvedModuleFromModuleSpecifier(t):s.getResolvedModuleWithFailedLookupLocationsFromCache&&s.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,n.fileName,c);return UTe(t,u,o,i.getSourceFiles())}}function UTe(e,t,n,i){if(!t)return;if(t.resolvedModule){const f=u(t.resolvedModule.resolvedFileName);if(f)return f}const s=rr(t.failedLookupLocations,o)||nf(e.text)&&rr(t.failedLookupLocations,c);if(s)return s;return t.resolvedModule&&{newFileName:t.resolvedModule.resolvedFileName,updated:!1};function o(f){const g=n(f);return g&&wn(i,d=>d.fileName===g)?c(f):void 0}function c(f){return Yo(f,"/package.json")?void 0:u(f)}function u(f){const g=n(f);return g&&{newFileName:g,updated:!0}}}function ABe(e,t,n,i){for(const s of e.referencedFiles||Ve){const o=n(s.fileName);o!==void 0&&o!==e.text.slice(s.pos,s.end)&&t.replaceRangeWithText(e,s,o)}for(const s of e.imports){const o=i(s);o!==void 0&&o!==s.text&&t.replaceRangeWithText(e,qTe(s,e),o)}}function qTe(e,t){return Vf(e.getStart(t)+1,e.end-1)}function Lce(e,t){if(ua(e))for(const n of e.properties)zc(n)&&aa(n.name)&&t(n,n.name.text)}var NBe=Dt({"src/services/getEditsForFileRename.ts"(){qn()}});function cP(e,t){return{kind:e,isCaseSensitive:t}}function Mce(e){const t=new Map,n=e.trim().split(".").map(i=>LBe(i.trim()));if(n.length===1&&n[0].totalTextChunk.text==="")return{getMatchForLastSegmentOfPattern:()=>cP(2,!0),getFullMatch:()=>cP(2,!0),patternContainsDots:!1};if(!n.some(i=>!i.subWordTextChunks.length))return{getFullMatch:(i,s)=>IBe(i,s,n,t),getMatchForLastSegmentOfPattern:i=>Rce(i,ka(n),t),patternContainsDots:n.length>1}}function IBe(e,t,n,i){if(!Rce(t,ka(n),i)||n.length-1>e.length)return;let o;for(let c=n.length-2,u=e.length-1;c>=0;c-=1,u-=1)o=$Te(o,Rce(e[u],n[c],i));return o}function HTe(e,t){let n=t.get(e);return n||t.set(e,n=Vce(e)),n}function GTe(e,t,n){const i=MBe(e,t.textLowerCase);if(i===0)return cP(t.text.length===e.length?0:1,Vi(e,t.text));if(t.isLowerCase){if(i===-1)return;const s=HTe(e,n);for(const o of s)if(jce(e,o,t.text,!0))return cP(2,jce(e,o,t.text,!1));if(t.text.length0)return cP(2,!0);if(t.characterSpans.length>0){const s=HTe(e,n),o=XTe(e,s,t,!1)?!0:XTe(e,s,t,!0)?!1:void 0;if(o!==void 0)return cP(3,o)}}}function Rce(e,t,n){if(t$(t.totalTextChunk.text,o=>o!==32&&o!==42)){const o=GTe(e,t.totalTextChunk,n);if(o)return o}const i=t.subWordTextChunks;let s;for(const o of i)s=$Te(s,GTe(e,o,n));return s}function $Te(e,t){return dB([e,t],FBe)}function FBe(e,t){return e===void 0?1:t===void 0?-1:Ao(e.kind,t.kind)||B0(!e.isCaseSensitive,!t.isCaseSensitive)}function jce(e,t,n,i,s={start:0,length:n.length}){return s.length<=t.length&&KTe(0,s.length,o=>OBe(n.charCodeAt(s.start+o),e.charCodeAt(t.start+o),i))}function OBe(e,t,n){return n?Bce(e)===Bce(t):e===t}function XTe(e,t,n,i){const s=n.characterSpans;let o=0,c=0;for(;;){if(c===s.length)return!0;if(o===t.length)return!1;let u=t[o],f=!1;for(;c=65&&e<=90)return!0;if(e<127||!N7(e,99))return!1;const t=String.fromCharCode(e);return t===t.toUpperCase()}function QTe(e){if(e>=97&&e<=122)return!0;if(e<127||!N7(e,99))return!1;const t=String.fromCharCode(e);return t===t.toLowerCase()}function MBe(e,t){const n=e.length-t.length;for(let i=0;i<=n;i++)if(t$(t,(s,o)=>Bce(e.charCodeAt(o+i))===s))return i;return-1}function Bce(e){return e>=65&&e<=90?97+(e-65):e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function Jce(e){return e>=48&&e<=57}function RBe(e){return k6(e)||QTe(e)||Jce(e)||e===95||e===36}function jBe(e){const t=[];let n=0,i=0;for(let s=0;s0&&(t.push(zce(e.substr(n,i))),i=0)}return i>0&&t.push(zce(e.substr(n,i))),t}function zce(e){const t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:Wce(e)}}function Wce(e){return YTe(e,!1)}function Vce(e){return YTe(e,!0)}function YTe(e,t){const n=[];let i=0;for(let s=1;sUce(i)&&i!==95,t,n)}function BBe(e,t,n){return t!==n&&t+1t(e.charCodeAt(s),s))}var aM,zBe=Dt({"src/services/patternMatcher.ts"(){qn(),aM=(e=>(e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase",e))(aM||{})}});function exe(e,t=!0,n=!1){const i={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},s=[];let o,c,u,f=0,g=!1;function d(){return c=u,u=xu.scan(),u===19?f++:u===20&&f--,u}function y(){const j=xu.getTokenValue(),re=xu.getTokenStart();return{fileName:j,pos:re,end:re+j.length}}function S(){o||(o=[]),o.push({ref:y(),depth:f})}function T(){s.push(y()),k()}function k(){f===0&&(g=!0)}function w(){let j=xu.getToken();return j===138?(j=d(),j===144&&(j=d(),j===11&&S()),!0):!1}function P(){if(c===25)return!1;let j=xu.getToken();if(j===102){if(j=d(),j===21){if(j=d(),j===11||j===15)return T(),!0}else{if(j===11)return T(),!0;if(j===156&&xu.lookAhead(()=>{const R=xu.scan();return R!==161&&(R===42||R===19||R===80||c_(R))})&&(j=d()),j===80||c_(j))if(j=d(),j===161){if(j=d(),j===11)return T(),!0}else if(j===64){if(J(!0))return!0}else if(j===28)j=d();else return!0;if(j===19){for(j=d();j!==20&&j!==1;)j=d();j===20&&(j=d(),j===161&&(j=d(),j===11&&T()))}else j===42&&(j=d(),j===130&&(j=d(),(j===80||c_(j))&&(j=d(),j===161&&(j=d(),j===11&&T()))))}return!0}return!1}function F(){let j=xu.getToken();if(j===95){if(k(),j=d(),j===156&&xu.lookAhead(()=>{const R=xu.scan();return R===42||R===19})&&(j=d()),j===19){for(j=d();j!==20&&j!==1;)j=d();j===20&&(j=d(),j===161&&(j=d(),j===11&&T()))}else if(j===42)j=d(),j===161&&(j=d(),j===11&&T());else if(j===102&&(j=d(),j===156&&xu.lookAhead(()=>{const R=xu.scan();return R===80||c_(R)})&&(j=d()),(j===80||c_(j))&&(j=d(),j===64&&J(!0))))return!0;return!0}return!1}function J(j,re=!1){let R=j?d():xu.getToken();return R===149?(R=d(),R===21&&(R=d(),(R===11||re&&R===15)&&T()),!0):!1}function U(){let j=xu.getToken();if(j===80&&xu.getTokenValue()==="define"){if(j=d(),j!==21)return!0;if(j=d(),j===11||j===15)if(j=d(),j===28)j=d();else return!0;if(j!==23)return!0;for(j=d();j!==24&&j!==1;)(j===11||j===15)&&T(),j=d();return!0}return!1}function $(){for(xu.setText(e),d();xu.getToken()!==1;){if(xu.getToken()===16){const j=[xu.getToken()];e:for(;mr(j);){const re=xu.scan();switch(re){case 1:break e;case 102:P();break;case 16:j.push(re);break;case 19:mr(j)&&j.push(re);break;case 20:mr(j)&&(Do(j)===16?xu.reScanTemplateToken(!1)===18&&j.pop():j.pop());break}}d()}w()||P()||F()||n&&(J(!1,!0)||U())||d()}xu.setText(void 0)}if(t&&$(),tU(i,e),rU(i,Ca),g){if(o)for(const j of o)s.push(j.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:s,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:void 0}}else{let j;if(o)for(const re of o)re.depth===0?(j||(j=[]),j.push(re.ref.fileName)):s.push(re.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:s,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:j}}}var WBe=Dt({"src/services/preProcess.ts"(){qn()}});function qce(e){const t=nu(e.useCaseSensitiveFileNames()),n=e.getCurrentDirectory(),i=new Map,s=new Map;return{tryGetSourcePosition:u,tryGetGeneratedPosition:f,toLineColumnOffset:S,clearCache:T};function o(k){return Io(k,n,t)}function c(k,w){const P=o(k),F=s.get(P);if(F)return F;let J;if(e.getDocumentPositionMapper)J=e.getDocumentPositionMapper(k,w);else if(e.readFile){const U=y(k);J=U&&r$({getSourceFileLike:y,getCanonicalFileName:t,log:$=>e.log($)},k,XU(U.text,$g(U)),$=>!e.fileExists||e.fileExists($)?e.readFile($):void 0)}return s.set(P,J||b9),J||b9}function u(k){if(!Hl(k.fileName)||!g(k.fileName))return;const P=c(k.fileName).getSourcePosition(k);return!P||P===k?void 0:u(P)||P}function f(k){if(Hl(k.fileName))return;const w=g(k.fileName);if(!w)return;const P=e.getProgram();if(P.isSourceOfProjectReferenceRedirect(w.fileName))return;const F=P.getCompilerOptions(),J=io(F),U=J?$u(J)+".d.ts":W5(k.fileName,P.getCompilerOptions(),n,P.getCommonSourceDirectory(),t);if(U===void 0)return;const $=c(U,k.fileName).getGeneratedPosition(k);return $===k?void 0:$}function g(k){const w=e.getProgram();if(!w)return;const P=o(k),F=w.getSourceFileByPath(P);return F&&F.resolvedPath===P?F:void 0}function d(k){const w=o(k),P=i.get(w);if(P!==void 0)return P||void 0;if(!e.readFile||e.fileExists&&!e.fileExists(k)){i.set(w,!1);return}const F=e.readFile(k),J=F?VBe(F):!1;return i.set(w,J),J||void 0}function y(k){return e.getSourceFileLike?e.getSourceFileLike(k):g(k)||d(k)}function S(k,w){return y(k).getLineAndCharacterOfPosition(w)}function T(){i.clear(),s.clear()}}function r$(e,t,n,i){let s=Rse(n);if(s){const u=rxe.exec(s);if(u){if(u[1]){const f=u[1];return txe(e,Rre(zl,f),t)}s=void 0}}const o=[];s&&o.push(s),o.push(t+".map");const c=s&&Xi(s,Un(t));for(const u of o){const f=Xi(u,Un(t)),g=i(f,c);if(ls(g))return txe(e,g,f);if(g!==void 0)return g||void 0}}function txe(e,t,n){const i=QU(t);if(!(!i||!i.sources||!i.file||!i.mappings)&&!(i.sourcesContent&&i.sourcesContent.some(ls)))return Jse(e,i,n)}function VBe(e,t){return{text:e,lineMap:t,getLineAndCharacterOfPosition(n){return Bk($g(this),n)}}}var rxe,UBe=Dt({"src/services/sourcemaps.ts"(){qn(),rxe=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+/=]+)$)?/}});function n$(e,t,n){var i;t.getSemanticDiagnostics(e,n);const s=[],o=t.getTypeChecker();!(e.impliedNodeFormat===1||$c(e.fileName,[".cts",".cjs"]))&&e.commonJsModuleIndicator&&(nce(t)||fG(t.getCompilerOptions()))&&qBe(e)&&s.push(yn(XBe(e.commonJsModuleIndicator),p.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));const u=Ou(e);if(o$.clear(),f(e),Bb(t.getCompilerOptions()))for(const g of e.imports){const d=SE(g),y=HBe(d);if(!y)continue;const S=(i=t.getResolvedModuleFromModuleSpecifier(g))==null?void 0:i.resolvedModule,T=S&&t.getSourceFile(S.resolvedFileName);T&&T.externalModuleIndicator&&T.externalModuleIndicator!==!0&&oc(T.externalModuleIndicator)&&T.externalModuleIndicator.isExportEquals&&s.push(yn(y,p.Import_may_be_converted_to_a_default_import))}return Nn(s,e.bindSuggestionDiagnostics),Nn(s,t.getSuggestionDiagnostics(e,n)),s.sort((g,d)=>g.start-d.start);function f(g){if(u)YBe(g,o)&&s.push(yn(hi(g.parent)?g.parent.name:g,p.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(ac(g)&&g.parent===e&&g.declarationList.flags&2&&g.declarationList.declarations.length===1){const y=g.declarationList.declarations[0].initializer;y&&Gu(y,!0)&&s.push(yn(y,p.require_call_may_be_converted_to_an_import))}const d=lu.getJSDocTypedefNodes(g);for(const y of d)s.push(yn(y,p.JSDoc_typedef_may_be_converted_to_TypeScript_type));lu.parameterShouldGetTypeFromJSDoc(g)&&s.push(yn(g.name||g,p.JSDoc_types_may_be_moved_to_TypeScript_types))}a$(g)&&GBe(g,o,s),g.forEachChild(f)}}function qBe(e){return e.statements.some(t=>{switch(t.kind){case 243:return t.declarationList.declarations.some(n=>!!n.initializer&&Gu(nxe(n.initializer),!0));case 244:{const{expression:n}=t;if(!Zr(n))return Gu(n,!0);const i=fc(n);return i===1||i===2}default:return!1}})}function nxe(e){return Sn(e)?nxe(e.expression):e}function HBe(e){switch(e.kind){case 272:const{importClause:t,moduleSpecifier:n}=e;return t&&!t.name&&t.namedBindings&&t.namedBindings.kind===274&&aa(n)?t.namedBindings.name:void 0;case 271:return e.name;default:return}}function GBe(e,t,n){$Be(e,t)&&!o$.has(oxe(e))&&n.push(yn(!e.name&&hi(e.parent)&&Ie(e.parent.name)?e.parent.name:e,p.This_may_be_converted_to_an_async_function))}function $Be(e,t){return!CE(e)&&e.body&&Cs(e.body)&&QBe(e.body,t)&&i$(e,t)}function i$(e,t){const n=t.getSignatureFromDeclaration(e),i=n?t.getReturnTypeOfSignature(n):void 0;return!!i&&!!t.getPromisedTypeOfPromise(i)}function XBe(e){return Zr(e)?e.left:e}function QBe(e,t){return!!Wv(e,n=>oM(n,t))}function oM(e,t){return Up(e)&&!!e.expression&&s$(e.expression,t)}function s$(e,t){if(!ixe(e)||!sxe(e)||!e.arguments.every(i=>axe(i,t)))return!1;let n=e.expression.expression;for(;ixe(n)||Sn(n);)if(Rs(n)){if(!sxe(n)||!n.arguments.every(i=>axe(i,t)))return!1;n=n.expression.expression}else n=n.expression;return!0}function ixe(e){return Rs(e)&&(BA(e,"then")||BA(e,"catch")||BA(e,"finally"))}function sxe(e){const t=e.expression.name.text,n=t==="then"?2:t==="catch"||t==="finally"?1:0;return e.arguments.length>n?!1:e.arguments.lengthi.kind===106||Ie(i)&&i.text==="undefined")}function axe(e,t){switch(e.kind){case 262:case 218:if(pl(e)&1)return!1;case 219:o$.set(oxe(e),!0);case 106:return!0;case 80:case 211:{const i=t.getSymbolAtLocation(e);return i?t.isUndefinedSymbol(i)||ct(Ul(i,t).declarations,s=>As(s)||Y0(s)&&!!s.initializer&&As(s.initializer)):!1}default:return!1}}function oxe(e){return`${e.pos.toString()}:${e.end.toString()}`}function YBe(e,t){var n,i,s,o;if(lo(e)){if(hi(e.parent)&&((n=e.symbol.members)!=null&&n.size))return!0;const c=t.getSymbolOfExpando(e,!1);return!!(c&&((i=c.exports)!=null&&i.size||(s=c.members)!=null&&s.size))}return Xc(e)?!!((o=e.symbol.members)!=null&&o.size):!1}function a$(e){switch(e.kind){case 262:case 174:case 218:case 219:return!0;default:return!1}}var o$,ZBe=Dt({"src/services/suggestionDiagnostics.ts"(){qn(),o$=new Map}});function Hce(e,t){const n=[],i=t.compilerOptions?c$(t.compilerOptions,n):{},s=wM();for(const S in s)Ka(s,S)&&i[S]===void 0&&(i[S]=s[S]);for(const S of SU)i.verbatimModuleSyntax&&lxe.has(S.name)||(i[S.name]=S.transpileOptionValue);i.suppressOutputPathCheck=!0,i.allowNonTsExtensions=!0;const o=t0(i),c={getSourceFile:S=>S===Hs(u)?f:void 0,writeFile:(S,T)=>{Zo(S,".map")?(E.assertEqual(d,void 0,"Unexpected multiple source map outputs, file:",S),d=T):(E.assertEqual(g,void 0,"Unexpected multiple outputs, file:",S),g=T)},getDefaultLibFileName:()=>"lib.d.ts",useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:S=>S,getCurrentDirectory:()=>"",getNewLine:()=>o,fileExists:S=>S===u,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},u=t.fileName||(t.compilerOptions&&t.compilerOptions.jsx?"module.tsx":"module.ts"),f=qw(u,e,{languageVersion:Fa(i),impliedNodeFormat:PA(Io(u,"",c.getCanonicalFileName),void 0,c,i),setExternalModuleIndicator:ew(i),jsDocParsingMode:t.jsDocParsingMode??0});t.moduleName&&(f.moduleName=t.moduleName),t.renamedDependencies&&(f.renamedDependencies=new Map(Object.entries(t.renamedDependencies)));let g,d;const y=W9([u],i,c);return t.reportDiagnostics&&(Nn(n,y.getSyntacticDiagnostics(f)),Nn(n,y.getOptionsDiagnostics())),y.emit(void 0,void 0,void 0,void 0,t.transformers),g===void 0?E.fail("Output generation failed"):{outputText:g,diagnostics:n,sourceMapText:d}}function cxe(e,t,n,i,s){const o=Hce(e,{compilerOptions:t,fileName:n,reportDiagnostics:!!i,moduleName:s});return Nn(i,o.diagnostics),o.outputText}function c$(e,t){Gce=Gce||An(Pg,n=>typeof n.type=="object"&&!fl(n.type,i=>typeof i!="number")),e=aG(e);for(const n of Gce){if(!Ka(e,n.name))continue;const i=e[n.name];ls(i)?e[n.name]=zO(n,i,t):fl(n.type,s=>s===i)||t.push(jie(n))}return e}var lxe,Gce,KBe=Dt({"src/services/transpile.ts"(){qn(),lxe=new Set(["isolatedModules","preserveValueImports","importsNotUsedAsValues"])}});function uxe(e,t,n,i,s,o,c){const u=Mce(i);if(!u)return Ve;const f=[],g=e.length===1?e[0]:void 0;for(const d of e)n.throwIfCancellationRequested(),!(o&&d.isDeclarationFile)&&(_xe(d,!!c,g)||d.getNamedDeclarations().forEach((y,S)=>{eJe(u,S,y,t,d.fileName,!!c,g,f)}));return f.sort(iJe),(s===void 0?f:f.slice(0,s)).map(sJe)}function _xe(e,t,n){return e!==n&&t&&(sN(e.path)||e.hasNoDefaultLib)}function eJe(e,t,n,i,s,o,c,u){const f=e.getMatchForLastSegmentOfPattern(t);if(f){for(const g of n)if(tJe(g,i,o,c))if(e.patternContainsDots){const d=e.getFullMatch(nJe(g),t);d&&u.push({name:t,fileName:s,matchKind:d.kind,isCaseSensitive:d.isCaseSensitive,declaration:g})}else u.push({name:t,fileName:s,matchKind:f.kind,isCaseSensitive:f.isCaseSensitive,declaration:g})}}function tJe(e,t,n,i){var s;switch(e.kind){case 273:case 276:case 271:const o=t.getSymbolAtLocation(e.name),c=t.getAliasedSymbol(o);return o.escapedName!==c.escapedName&&!((s=c.declarations)!=null&&s.every(u=>_xe(u.getSourceFile(),n,i)));default:return!0}}function rJe(e,t){const n=us(e);return!!n&&(fxe(n,t)||n.kind===167&&$ce(n.expression,t))}function $ce(e,t){return fxe(e,t)||Sn(e)&&(t.push(e.name.text),!0)&&$ce(e.expression,t)}function fxe(e,t){return Ud(e)&&(t.push(hp(e)),!0)}function nJe(e){const t=[],n=us(e);if(n&&n.kind===167&&!$ce(n.expression,t))return Ve;t.shift();let i=oS(e);for(;i;){if(!rJe(i,t))return Ve;i=oS(i)}return t.reverse()}function iJe(e,t){return Ao(e.matchKind,t.matchKind)||bD(e.name,t.name)}function sJe(e){const t=e.declaration,n=oS(t),i=n&&us(n);return{name:e.name,kind:T2(t),kindModifiers:Z3(t),matchKind:aM[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:Zu(t),containerName:i?i.text:"",containerKind:i?T2(n):""}}var aJe=Dt({"src/services/navigateTo.ts"(){qn()}}),Xce={};Gc(Xce,{getNavigateToItems:()=>uxe});var pxe=Dt({"src/services/_namespaces/ts.NavigateTo.ts"(){aJe()}});function dxe(e,t){f$=t,lN=e;try{return nr(_Je(yxe(e)),fJe)}finally{gxe()}}function mxe(e,t){f$=t,lN=e;try{return Pxe(yxe(e))}finally{gxe()}}function gxe(){lN=void 0,f$=void 0,uN=[],p0=void 0,p$=[]}function cM(e){return lP(e.getText(lN))}function l$(e){return e.node.kind}function hxe(e,t){e.children?e.children.push(t):e.children=[t]}function yxe(e){E.assert(!uN.length);const t={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};p0=t;for(const n of e.statements)Nx(n);return H1(),E.assert(!p0&&!uN.length),t}function C2(e,t){hxe(p0,Qce(e,t))}function Qce(e,t){return{node:e,name:t||(yu(e)||ot(e)?us(e):void 0),additionalNodes:void 0,parent:p0,children:void 0,indent:p0.indent+1}}function vxe(e){C6||(C6=new Map),C6.set(e,!0)}function bxe(e){for(let t=0;t0;i--){const s=n[i];E2(e,s)}return[n.length-1,n[0]]}function E2(e,t){const n=Qce(e,t);hxe(p0,n),uN.push(p0),ile.push(C6),C6=void 0,p0=n}function H1(){p0.children&&(u$(p0.children,p0),Kce(p0.children)),p0=uN.pop(),C6=ile.pop()}function G1(e,t,n){E2(e,n),Nx(t),H1()}function Txe(e){e.initializer&&dJe(e.initializer)?(E2(e),Ss(e.initializer,Nx),H1()):G1(e,e.initializer)}function Yce(e){const t=us(e);if(t===void 0)return!1;if(Pa(t)){const n=t.expression;return pc(n)||j_(n)||Sf(n)}return!!t}function Nx(e){if(f$.throwIfCancellationRequested(),!(!e||ET(e)))switch(e.kind){case 176:const t=e;G1(t,t.body);for(const c of t.parameters)O_(c,t)&&C2(c);break;case 174:case 177:case 178:case 173:Yce(e)&&G1(e,e.body);break;case 172:Yce(e)&&Txe(e);break;case 171:Yce(e)&&C2(e);break;case 273:const n=e;n.name&&C2(n.name);const{namedBindings:i}=n;if(i)if(i.kind===274)C2(i);else for(const c of i.elements)C2(c);break;case 304:G1(e,e.name);break;case 305:const{expression:s}=e;Ie(s)?C2(e,s):C2(e);break;case 208:case 303:case 260:{const c=e;Ns(c.name)?Nx(c.name):Txe(c);break}case 262:const o=e.name;o&&Ie(o)&&vxe(o.text),G1(e,e.body);break;case 219:case 218:G1(e,e.body);break;case 266:E2(e);for(const c of e.members)pJe(c)||C2(c);H1();break;case 263:case 231:case 264:E2(e);for(const c of e.members)Nx(c);H1();break;case 267:G1(e,wxe(e).body);break;case 277:{const c=e.expression,u=ua(c)||Rs(c)?c:mo(c)||lo(c)?c.body:void 0;u?(E2(e),Nx(u),H1()):C2(e);break}case 281:case 271:case 181:case 179:case 180:case 265:C2(e);break;case 213:case 226:{const c=fc(e);switch(c){case 1:case 2:G1(e,e.right);return;case 6:case 3:{const u=e,f=u.left,g=c===3?f.expression:f;let d=0,y;Ie(g.expression)?(vxe(g.expression.text),y=g.expression):[d,y]=Sxe(u,g.expression),c===6?ua(u.right)&&u.right.properties.length>0&&(E2(u,y),Ss(u.right,Nx),H1()):lo(u.right)||mo(u.right)?G1(e,u.right,y):(E2(u,y),G1(e,u.right,f.name),H1()),bxe(d);return}case 7:case 9:{const u=e,f=c===7?u.arguments[0]:u.arguments[0].expression,g=u.arguments[1],[d,y]=Sxe(e,f);E2(e,y),E2(e,Ke(I.createIdentifier(g.text),g)),Nx(e.arguments[2]),H1(),H1(),bxe(d);return}case 5:{const u=e,f=u.left,g=f.expression;if(Ie(g)&&Kg(f)!=="prototype"&&C6&&C6.has(g.text)){lo(u.right)||mo(u.right)?G1(e,u.right,g):qv(f)&&(E2(u,g),G1(u.left,u.right,P8(f)),H1());return}break}case 4:case 0:case 8:break;default:E.assertNever(c)}}default:sf(e)&&rr(e.jsDoc,c=>{rr(c.tags,u=>{gp(u)&&C2(u)})}),Ss(e,Nx)}}function u$(e,t){const n=new Map;eB(e,(i,s)=>{const o=i.name||us(i.node),c=o&&cM(o);if(!c)return!0;const u=n.get(c);if(!u)return n.set(c,i),!0;if(u instanceof Array){for(const f of u)if(xxe(f,i,s,t))return!1;return u.push(i),!0}else{const f=u;return xxe(f,i,s,t)?!1:(n.set(c,[f,i]),!0)}})}function oJe(e,t,n,i){function s(u){return lo(u)||Xc(u)||hi(u)}const o=Zr(t.node)||Rs(t.node)?fc(t.node):0,c=Zr(e.node)||Rs(e.node)?fc(e.node):0;if(uP[o]&&uP[c]||s(e.node)&&uP[o]||s(t.node)&&uP[c]||Qc(e.node)&&Zce(e.node)&&uP[o]||Qc(t.node)&&uP[c]||Qc(e.node)&&Zce(e.node)&&s(t.node)||Qc(t.node)&&s(e.node)&&Zce(e.node)){let u=e.additionalNodes&&Do(e.additionalNodes)||e.node;if(!Qc(e.node)&&!Qc(t.node)||s(e.node)||s(t.node)){const g=s(e.node)?e.node:s(t.node)?t.node:void 0;if(g!==void 0){const d=Ke(I.createConstructorDeclaration(void 0,[],void 0),g),y=Qce(d);y.indent=e.indent+1,y.children=e.node===g?e.children:t.children,e.children=e.node===g?es([y],t.children||[t]):es(e.children||[{...e}],[y])}else(e.children||t.children)&&(e.children=es(e.children||[{...e}],t.children||[t]),e.children&&(u$(e.children,e),Kce(e.children)));u=e.node=Ke(I.createClassDeclaration(void 0,e.name||I.createIdentifier("__class__"),void 0,void 0,[]),e.node)}else e.children=es(e.children,t.children),e.children&&u$(e.children,e);const f=t.node;return i.children[n-1].node.end===u.end?Ke(u,{pos:u.pos,end:f.end}):(e.additionalNodes||(e.additionalNodes=[]),e.additionalNodes.push(Ke(I.createClassDeclaration(void 0,e.name||I.createIdentifier("__class__"),void 0,void 0,[]),t.node))),!0}return o!==0}function xxe(e,t,n,i){return oJe(e,t,n,i)?!0:cJe(e.node,t.node,i)?(lJe(e,t),!0):!1}function cJe(e,t,n){if(e.kind!==t.kind||e.parent!==t.parent&&!(kxe(e,n)&&kxe(t,n)))return!1;switch(e.kind){case 172:case 174:case 177:case 178:return Ms(e)===Ms(t);case 267:return Cxe(e,t)&&rle(e)===rle(t);default:return!0}}function Zce(e){return!!(e.flags&16)}function kxe(e,t){const n=Yd(e.parent)?e.parent.parent:e.parent;return n===t.node||bs(t.additionalNodes,n)}function Cxe(e,t){return!e.body||!t.body?e.body===t.body:e.body.kind===t.body.kind&&(e.body.kind!==267||Cxe(e.body,t.body))}function lJe(e,t){e.additionalNodes=e.additionalNodes||[],e.additionalNodes.push(t.node),t.additionalNodes&&e.additionalNodes.push(...t.additionalNodes),e.children=es(e.children,t.children),e.children&&(u$(e.children,e),Kce(e.children))}function Kce(e){e.sort(uJe)}function uJe(e,t){return bD(Exe(e.node),Exe(t.node))||Ao(l$(e),l$(t))}function Exe(e){if(e.kind===267)return Dxe(e);const t=us(e);if(t&&Ac(t)){const n=Ib(t);return n&&xi(n)}switch(e.kind){case 218:case 219:case 231:return Nxe(e);default:return}}function ele(e,t){if(e.kind===267)return lP(Dxe(e));if(t){const n=Ie(t)?t.text:Co(t)?`[${cM(t.argumentExpression)}]`:cM(t);if(n.length>0)return lP(n)}switch(e.kind){case 312:const n=e;return Ic(n)?`"${bg(wc($u(Hs(n.fileName))))}"`:"";case 277:return oc(e)&&e.isExportEquals?"export=":"default";case 219:case 262:case 218:case 263:case 231:return ry(e)&2048?"default":Nxe(e);case 176:return"constructor";case 180:return"new()";case 179:return"()";case 181:return"[]";default:return""}}function _Je(e){const t=[];function n(s){if(i(s)&&(t.push(s),s.children))for(const o of s.children)n(o)}return n(e),t;function i(s){if(s.children)return!0;switch(l$(s)){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 o(s);default:return!1}function o(c){if(!c.node.body)return!1;switch(l$(c.parent)){case 268:case 312:case 174:case 176:return!0;default:return!1}}}}function Pxe(e){return{text:ele(e.node,e.name),kind:T2(e.node),kindModifiers:Axe(e.node),spans:tle(e),nameSpan:e.name&&nle(e.name),childItems:nr(e.children,Pxe)}}function fJe(e){return{text:ele(e.node,e.name),kind:T2(e.node),kindModifiers:Axe(e.node),spans:tle(e),childItems:nr(e.children,t)||p$,indent:e.indent,bolded:!1,grayed:!1};function t(n){return{text:ele(n.node,n.name),kind:T2(n.node),kindModifiers:Z3(n.node),spans:tle(n),childItems:p$,indent:0,bolded:!1,grayed:!1}}}function tle(e){const t=[nle(e.node)];if(e.additionalNodes)for(const n of e.additionalNodes)t.push(nle(n));return t}function Dxe(e){return su(e)?jc(e.name):rle(e)}function rle(e){const t=[hp(e.name)];for(;e.body&&e.body.kind===267;)e=e.body,t.push(hp(e.name));return t.join(".")}function wxe(e){return e.body&&Sc(e.body)?wxe(e.body):e}function pJe(e){return!e.name||e.name.kind===167}function nle(e){return e.kind===312?vy(e):Zu(e,lN)}function Axe(e){return e.parent&&e.parent.kind===260&&(e=e.parent),Z3(e)}function Nxe(e){const{parent:t}=e;if(e.name&&a8(e.name)>0)return lP(eo(e.name));if(hi(t))return lP(eo(t.name));if(Zr(t)&&t.operatorToken.kind===64)return cM(t.left).replace(Fxe,"");if(zc(t))return cM(t.name);if(ry(e)&2048)return"default";if($n(e))return"";if(Rs(t)){let n=Ixe(t.expression);if(n!==void 0){if(n=lP(n),n.length>_$)return`${n} callback`;const i=lP(Ri(t.arguments,s=>Ma(s)||AT(s)?s.getText(lN):void 0).join(", "));return`${n}(${i}) callback`}}return""}function Ixe(e){if(Ie(e))return e.text;if(Sn(e)){const t=Ixe(e.expression),n=e.name.text;return t===void 0?n:`${t}.${n}`}else return}function dJe(e){switch(e.kind){case 219:case 218:case 231:return!0;default:return!1}}function lP(e){return e=e.length>_$?e.substring(0,_$)+"...":e,e.replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}var Fxe,_$,f$,lN,uN,p0,ile,C6,p$,uP,mJe=Dt({"src/services/navigationBar.ts"(){qn(),Fxe=/\s+/g,_$=150,uN=[],ile=[],p$=[],uP={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1}}}),sle={};Gc(sle,{getNavigationBarItems:()=>dxe,getNavigationTree:()=>mxe});var Oxe=Dt({"src/services/_namespaces/ts.NavigationBar.ts"(){mJe()}});function Dg(e,t){d$.set(e,t)}function gJe(e,t){return gs(tB(d$.values(),n=>{var i;return e.cancellationToken&&e.cancellationToken.isCancellationRequested()||!((i=n.kinds)!=null&&i.some(s=>$1(s,e.kind)))?void 0:n.getAvailableActions(e,t)}))}function hJe(e,t,n,i){const s=d$.get(t);return s&&s.getEditsForAction(e,n,i)}var d$,Lxe=Dt({"src/services/refactorProvider.ts"(){qn(),Vm(),d$=new Map}});function Mxe(e,t=!0){const{file:n,program:i}=e,s=Ax(e),o=Ui(n,s.start),c=o.parent&&ry(o.parent)&32&&t?o.parent:ZA(o,n,s);if(!c||!Ni(c.parent)&&!(Yd(c.parent)&&su(c.parent.parent)))return{error:ds(p.Could_not_find_export_statement)};const u=i.getTypeChecker(),f=xJe(c.parent,u),g=ry(c)||(oc(c)&&!c.isExportEquals?2080:0),d=!!(g&2048);if(!(g&32)||!d&&f.exports.has("default"))return{error:ds(p.This_file_already_has_a_default_export)};const y=S=>Ie(S)&&u.getSymbolAtLocation(S)?void 0:{error:ds(p.Can_only_convert_named_export)};switch(c.kind){case 262:case 263:case 264:case 266:case 265:case 267:{const S=c;return S.name?y(S.name)||{exportNode:S,exportName:S.name,wasDefault:d,exportingModuleSymbol:f}:void 0}case 243:{const S=c;if(!(S.declarationList.flags&2)||S.declarationList.declarations.length!==1)return;const T=va(S.declarationList.declarations);return T.initializer?(E.assert(!d,"Can't have a default flag here"),y(T.name)||{exportNode:S,exportName:T.name,wasDefault:d,exportingModuleSymbol:f}):void 0}case 277:{const S=c;return S.isExportEquals?void 0:y(S.expression)||{exportNode:S,exportName:S.expression,wasDefault:d,exportingModuleSymbol:f}}default:return}}function yJe(e,t,n,i,s){vJe(e,n,i,t.getTypeChecker()),bJe(t,n,i,s)}function vJe(e,{wasDefault:t,exportNode:n,exportName:i},s,o){if(t)if(oc(n)&&!n.isExportEquals){const c=n.expression,u=Rxe(c.text,c.text);s.replaceNode(e,n,I.createExportDeclaration(void 0,!1,I.createNamedExports([u])))}else s.delete(e,E.checkDefined(v6(n,90),"Should find a default keyword in modifier list"));else{const c=E.checkDefined(v6(n,95),"Should find an export keyword in modifier list");switch(n.kind){case 262:case 263:case 264:s.insertNodeAfter(e,c,I.createToken(90));break;case 243:const u=va(n.declarationList.declarations);if(!uo.Core.isSymbolReferencedInFile(i,o,e)&&!u.type){s.replaceNode(e,n,I.createExportDefault(E.checkDefined(u.initializer,"Initializer was previously known to be present")));break}case 266:case 265:case 267:s.deleteModifier(e,c),s.insertNodeAfter(e,n,I.createExportDefault(I.createIdentifier(i.text)));break;default:E.fail(`Unexpected exportNode kind ${n.kind}`)}}}function bJe(e,{wasDefault:t,exportName:n,exportingModuleSymbol:i},s,o){const c=e.getTypeChecker(),u=E.checkDefined(c.getSymbolAtLocation(n),"Export name should resolve to a symbol");uo.Core.eachExportReference(e.getSourceFiles(),c,o,u,i,n.text,t,f=>{if(n===f)return;const g=f.getSourceFile();t?SJe(g,f,s,n.text):TJe(g,f,s)})}function SJe(e,t,n,i){const{parent:s}=t;switch(s.kind){case 211:n.replaceNode(e,t,I.createIdentifier(i));break;case 276:case 281:{const c=s;n.replaceNode(e,c,ale(i,c.name.text));break}case 273:{const c=s;E.assert(c.name===t,"Import clause name should match provided ref");const u=ale(i,t.text),{namedBindings:f}=c;if(!f)n.replaceNode(e,t,I.createNamedImports([u]));else if(f.kind===274){n.deleteRange(e,{pos:t.getStart(e),end:f.getStart(e)});const g=aa(c.parent.moduleSpecifier)?dG(c.parent.moduleSpecifier,e):1,d=_0(void 0,[ale(i,t.text)],c.parent.moduleSpecifier,g);n.insertNodeAfter(e,c.parent,d)}else n.delete(e,t),n.insertNodeAtEndOfList(e,f.elements,u);break}case 205:const o=s;n.replaceNode(e,s,I.createImportTypeNode(o.argument,o.attributes,I.createIdentifier(i),o.typeArguments,o.isTypeOf));break;default:E.failBadSyntaxKind(s)}}function TJe(e,t,n){const i=t.parent;switch(i.kind){case 211:n.replaceNode(e,t,I.createIdentifier("default"));break;case 276:{const s=I.createIdentifier(i.name.text);i.parent.elements.length===1?n.replaceNode(e,i.parent,s):(n.delete(e,i),n.insertNodeBefore(e,i.parent,s));break}case 281:{n.replaceNode(e,i,Rxe("default",i.name.text));break}default:E.assertNever(i,`Unexpected parent kind ${i.kind}`)}}function ale(e,t){return I.createImportSpecifier(!1,e===t?void 0:I.createIdentifier(e),I.createIdentifier(t))}function Rxe(e,t){return I.createExportSpecifier(!1,e===t?void 0:I.createIdentifier(e),I.createIdentifier(t))}function xJe(e,t){if(Ni(e))return e.symbol;const n=e.parent.symbol;return n.valueDeclaration&&Jv(n.valueDeclaration)?t.getMergedSymbol(n):n}var m$,lM,uM,kJe=Dt({"src/services/refactors/convertExport.ts"(){qn(),Vm(),m$="Convert export",lM={name:"Convert default export to named export",description:ds(p.Convert_default_export_to_named_export),kind:"refactor.rewrite.export.named"},uM={name:"Convert named export to default export",description:ds(p.Convert_named_export_to_default_export),kind:"refactor.rewrite.export.default"},Dg(m$,{kinds:[lM.kind,uM.kind],getAvailableActions:function(t){const n=Mxe(t,t.triggerReason==="invoked");if(!n)return Ve;if(!lh(n)){const i=n.wasDefault?lM:uM;return[{name:m$,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?[{name:m$,description:ds(p.Convert_default_export_to_named_export),actions:[{...lM,notApplicableReason:n.error},{...uM,notApplicableReason:n.error}]}]:Ve},getEditsForAction:function(t,n){E.assert(n===lM.name||n===uM.name,"Unexpected action name");const i=Mxe(t);return E.assert(i&&!lh(i),"Expected applicable refactor info"),{edits:Kr.ChangeTracker.with(t,o=>yJe(t.file,t.program,i,o,t.cancellationToken)),renameFilename:void 0,renameLocation:void 0}}})}});function jxe(e,t=!0){const{file:n}=e,i=Ax(e),s=Ui(n,i.start),o=t?Pr(s,sl):ZA(s,n,i);if(!o||!sl(o))return{error:"Selection is not an import declaration."};const c=i.start+i.length,u=x2(o,o.parent,n);if(u&&c>u.getStart())return;const{importClause:f}=o;return f?f.namedBindings?f.namedBindings.kind===274?{convertTo:0,import:f.namedBindings}:Bxe(e.program,f)?{convertTo:1,import:f.namedBindings}:{convertTo:2,import:f.namedBindings}:{error:ds(p.Could_not_find_namespace_import_or_named_imports)}:{error:ds(p.Could_not_find_import_clause)}}function Bxe(e,t){return Bb(e.getCompilerOptions())&&DJe(t.parent.moduleSpecifier,e.getTypeChecker())}function CJe(e,t,n,i){const s=t.getTypeChecker();i.convertTo===0?EJe(e,s,n,i.import,Bb(t.getCompilerOptions())):zxe(e,t,n,i.import,i.convertTo===1)}function EJe(e,t,n,i,s){let o=!1;const c=[],u=new Map;uo.Core.eachSymbolReferenceInFile(i.name,t,e,y=>{if(!ite(y.parent))o=!0;else{const S=Jxe(y.parent).text;t.resolveName(S,y,-1,!0)&&u.set(S,!0),E.assert(PJe(y.parent)===y,"Parent expression should match id"),c.push(y.parent)}});const f=new Map;for(const y of c){const S=Jxe(y).text;let T=f.get(S);T===void 0&&f.set(S,T=u.has(S)?uS(S,e):S),n.replaceNode(e,y,I.createIdentifier(T))}const g=[];f.forEach((y,S)=>{g.push(I.createImportSpecifier(!1,y===S?void 0:I.createIdentifier(S),I.createIdentifier(y)))});const d=i.parent.parent;o&&!s?n.insertNodeAfter(e,d,ole(d,void 0,g)):n.replaceNode(e,d,ole(d,o?I.createIdentifier(i.name.text):void 0,g))}function Jxe(e){return Sn(e)?e.name:e.right}function PJe(e){return Sn(e)?e.expression:e.left}function zxe(e,t,n,i,s=Bxe(t,i.parent)){const o=t.getTypeChecker(),c=i.parent.parent,{moduleSpecifier:u}=c,f=new Set;i.elements.forEach(k=>{const w=o.getSymbolAtLocation(k.name);w&&f.add(w)});const g=u&&aa(u)?lu.moduleSpecifierToValidIdentifier(u.text,99):"module";function d(k){return!!uo.Core.eachSymbolReferenceInFile(k.name,o,e,w=>{const P=o.resolveName(g,w,-1,!0);return P?f.has(P)?vu(w.parent):!0:!1})}const S=i.elements.some(d)?uS(g,e):g,T=new Set;for(const k of i.elements){const w=(k.propertyName||k.name).text;uo.Core.eachSymbolReferenceInFile(k.name,o,e,P=>{const F=I.createPropertyAccessExpression(I.createIdentifier(S),w);k_(P.parent)?n.replaceNode(e,P.parent,I.createPropertyAssignment(P.text,F)):vu(P.parent)?T.add(k):n.replaceNode(e,P,F)})}if(n.replaceNode(e,i,s?I.createIdentifier(S):I.createNamespaceImport(I.createIdentifier(S))),T.size){const k=gs(T.values(),w=>I.createImportSpecifier(w.isTypeOnly,w.propertyName&&I.createIdentifier(w.propertyName.text),I.createIdentifier(w.name.text)));n.insertNodeAfter(e,i.parent.parent,ole(c,void 0,k))}}function DJe(e,t){const n=t.resolveExternalModuleName(e);if(!n)return!1;const i=t.resolveExternalModuleSymbol(n);return n!==i}function ole(e,t,n){return I.createImportDeclaration(void 0,I.createImportClause(!1,t,n&&n.length?I.createNamedImports(n):void 0),e.moduleSpecifier,void 0)}var g$,_M,wJe=Dt({"src/services/refactors/convertImport.ts"(){qn(),Vm(),g$="Convert import",_M={0:{name:"Convert namespace import to named imports",description:ds(p.Convert_namespace_import_to_named_imports),kind:"refactor.rewrite.import.named"},2:{name:"Convert named imports to namespace import",description:ds(p.Convert_named_imports_to_namespace_import),kind:"refactor.rewrite.import.namespace"},1:{name:"Convert named imports to default import",description:ds(p.Convert_named_imports_to_default_import),kind:"refactor.rewrite.import.default"}},Dg(g$,{kinds:yT(_M).map(e=>e.kind),getAvailableActions:function(t){const n=jxe(t,t.triggerReason==="invoked");if(!n)return Ve;if(!lh(n)){const i=_M[n.convertTo];return[{name:g$,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?yT(_M).map(i=>({name:g$,description:i.description,actions:[{...i,notApplicableReason:n.error}]})):Ve},getEditsForAction:function(t,n){E.assert(ct(yT(_M),o=>o.name===n),"Unexpected action name");const i=jxe(t);return E.assert(i&&!lh(i),"Expected applicable refactor info"),{edits:Kr.ChangeTracker.with(t,o=>CJe(t.file,t.program,o,i)),renameFilename:void 0,renameLocation:void 0}}})}});function Wxe(e,t=!0){const{file:n,startPosition:i}=e,s=Ou(n),o=wL(Ax(e)),c=o.pos===o.end&&t,u=AJe(n,i,o,c);if(!u||!ki(u))return{error:ds(p.Selection_is_not_a_valid_type_node)};const f=e.program.getTypeChecker(),g=LJe(u,s);if(g===void 0)return{error:ds(p.No_type_could_be_extracted_from_this_type_node)};const d=MJe(u,g);if(!ki(d))return{error:ds(p.Selection_is_not_a_valid_type_node)};const y=[];(uy(d.parent)||ox(d.parent))&&o.end>u.end&&Nn(y,d.parent.types.filter(w=>vL(w,n,o.pos,o.end)));const S=y.length>1?y:d,T=NJe(f,S,g,n);if(!T)return{error:ds(p.No_type_could_be_extracted_from_this_type_node)};const k=h$(f,S);return{isJS:s,selection:S,enclosingNode:g,typeParameters:T,typeElements:k}}function AJe(e,t,n,i){const s=[()=>Ui(e,t),()=>h6(e,t,()=>!0)];for(const o of s){const c=o(),u=vL(c,e,n.pos,n.end),f=Pr(c,g=>g.parent&&ki(g)&&!P2(n,g.parent,e)&&(i||u));if(f)return f}}function h$(e,t){if(t){if(ts(t)){const n=[];for(const i of t){const s=h$(e,i);if(!s)return;Nn(n,s)}return n}if(ox(t)){const n=[],i=new Map;for(const s of t.types){const o=h$(e,s);if(!o||!o.every(c=>c.name&&Vp(i,QA(c.name))))return;Nn(n,o)}return n}else{if(Wb(t))return h$(e,t.type);if(z_(t))return t.members}}}function P2(e,t,n){return VA(e,ca(n.text,t.pos),t.end)}function NJe(e,t,n,i){const s=[],o=vT(t),c={pos:o[0].pos,end:o[o.length-1].end};for(const f of o)if(u(f))return;return s;function u(f){if(Gf(f)){if(Ie(f.typeName)){const g=f.typeName,d=e.resolveName(g.text,g,262144,!0);for(const y of(d==null?void 0:d.declarations)||Ve)if(Uo(y)&&y.getSourceFile()===i){if(y.name.escapedText===g.escapedText&&P2(y,c,i))return!0;if(P2(n,y,i)&&!P2(c,y,i)){Jf(s,y);break}}}}else if(zb(f)){const g=Pr(f,d=>cx(d)&&P2(d.extendsType,f,i));if(!g||!P2(c,g,i))return!0}else if(Dw(f)||Aw(f)){const g=Pr(f.parent,As);if(g&&g.type&&P2(g.type,f,i)&&!P2(c,g,i))return!0}else if(sx(f)){if(Ie(f.exprName)){const g=e.resolveName(f.exprName.text,f.exprName,111551,!1);if(g!=null&&g.valueDeclaration&&P2(n,g.valueDeclaration,i)&&!P2(c,g.valueDeclaration,i))return!0}else if(Yv(f.exprName.left)&&!P2(c,f.parent,i))return!0}return i&&ax(f)&&Ha(i,f.pos).line===Ha(i,f.end).line&&Qr(f,1),Ss(f,u)}}function IJe(e,t,n,i){const{enclosingNode:s,typeParameters:o}=i,{firstTypeNode:c,lastTypeNode:u,newTypeNode:f}=cle(i),g=I.createTypeAliasDeclaration(void 0,n,o.map(d=>I.updateTypeParameterDeclaration(d,d.modifiers,d.name,d.constraint,void 0)),f);e.insertNodeBefore(t,s,gV(g),!0),e.replaceNodeRange(t,c,u,I.createTypeReferenceNode(n,o.map(d=>I.createTypeReferenceNode(d.name,void 0))),{leadingTriviaOption:Kr.LeadingTriviaOption.Exclude,trailingTriviaOption:Kr.TrailingTriviaOption.ExcludeWhitespace})}function FJe(e,t,n,i){var s;const{enclosingNode:o,typeParameters:c,typeElements:u}=i,f=I.createInterfaceDeclaration(void 0,n,c,void 0,u);Ke(f,(s=u[0])==null?void 0:s.parent),e.insertNodeBefore(t,o,gV(f),!0);const{firstTypeNode:g,lastTypeNode:d}=cle(i);e.replaceNodeRange(t,g,d,I.createTypeReferenceNode(n,c.map(y=>I.createTypeReferenceNode(y.name,void 0))),{leadingTriviaOption:Kr.LeadingTriviaOption.Exclude,trailingTriviaOption:Kr.TrailingTriviaOption.ExcludeWhitespace})}function OJe(e,t,n,i,s){var o;vT(s.selection).forEach(k=>{Qr(k,7168)});const{enclosingNode:c,typeParameters:u}=s,{firstTypeNode:f,lastTypeNode:g,newTypeNode:d}=cle(s),y=I.createJSDocTypedefTag(I.createIdentifier("typedef"),I.createJSDocTypeExpression(d),I.createIdentifier(i)),S=[];rr(u,k=>{const w=Uk(k),P=I.createTypeParameterDeclaration(void 0,k.name),F=I.createJSDocTemplateTag(I.createIdentifier("template"),w&&Ls(w,d2),[P]);S.push(F)});const T=I.createJSDocComment(void 0,I.createNodeArray(es(S,[y])));if(yd(c)){const k=c.getStart(n),w=f0(t.host,(o=t.formatContext)==null?void 0:o.options);e.insertNodeAt(n,c.getStart(n),T,{suffix:w+w+n.text.slice(BL(n.text,k-1),k)})}else e.insertNodeBefore(n,c,T,!0);e.replaceNodeRange(n,f,g,I.createTypeReferenceNode(i,u.map(k=>I.createTypeReferenceNode(k.name,void 0))))}function cle(e){return ts(e.selection)?{firstTypeNode:e.selection[0],lastTypeNode:e.selection[e.selection.length-1],newTypeNode:uy(e.selection[0].parent)?I.createUnionTypeNode(e.selection):I.createIntersectionTypeNode(e.selection)}:{firstTypeNode:e.selection,lastTypeNode:e.selection,newTypeNode:e.selection}}function LJe(e,t){return Pr(e,Ei)||(t?Pr(e,yd):void 0)}function MJe(e,t){return Pr(e,n=>n===t?"quit":!!(uy(n.parent)||ox(n.parent)))??e}var y$,fM,pM,dM,RJe=Dt({"src/services/refactors/extractType.ts"(){qn(),Vm(),y$="Extract type",fM={name:"Extract to type alias",description:ds(p.Extract_to_type_alias),kind:"refactor.extract.type"},pM={name:"Extract to interface",description:ds(p.Extract_to_interface),kind:"refactor.extract.interface"},dM={name:"Extract to typedef",description:ds(p.Extract_to_typedef),kind:"refactor.extract.typedef"},Dg(y$,{kinds:[fM.kind,pM.kind,dM.kind],getAvailableActions:function(t){const n=Wxe(t,t.triggerReason==="invoked");return n?lh(n)?t.preferences.provideRefactorNotApplicableReason?[{name:y$,description:ds(p.Extract_type),actions:[{...dM,notApplicableReason:n.error},{...fM,notApplicableReason:n.error},{...pM,notApplicableReason:n.error}]}]:Ve:[{name:y$,description:ds(p.Extract_type),actions:n.isJS?[dM]:_r([fM],n.typeElements&&pM)}]:Ve},getEditsForAction:function(t,n){const{file:i}=t,s=Wxe(t);E.assert(s&&!lh(s),"Expected to find a range to extract");const o=uS("NewType",i),c=Kr.ChangeTracker.with(t,g=>{switch(n){case fM.name:return E.assert(!s.isJS,"Invalid actionName/JS combo"),IJe(g,i,o,s);case dM.name:return E.assert(s.isJS,"Invalid actionName/JS combo"),OJe(g,t,i,o,s);case pM.name:return E.assert(!s.isJS&&!!s.typeElements,"Invalid actionName/JS combo"),FJe(g,i,o,s);default:E.fail("Unexpected action name")}}),u=i.fileName,f=tN(c,u,o,!1);return{edits:c,renameFilename:u,renameLocation:f}}})}});function lh(e){return e.error!==void 0}function $1(e,t){return t?e.substr(0,t.length)===t:!0}var jJe=Dt({"src/services/refactors/helpers.ts"(){}});function Vxe(e,t,n,i){var s,o;const c=i.getTypeChecker(),u=u_(e,t),f=u.parent;if(Ie(u)){if(Z8(f)&&gE(f)&&Ie(f.name)){if(((s=c.getMergedSymbol(f.symbol).declarations)==null?void 0:s.length)!==1)return{error:ds(p.Variables_with_multiple_declarations_cannot_be_inlined)};if(Uxe(f))return;const g=qxe(f,c,e);return g&&{references:g,declaration:f,replacement:f.initializer}}if(n){let g=c.resolveName(u.text,u,111551,!1);if(g=g&&c.getMergedSymbol(g),((o=g==null?void 0:g.declarations)==null?void 0:o.length)!==1)return{error:ds(p.Variables_with_multiple_declarations_cannot_be_inlined)};const d=g.declarations[0];if(!Z8(d)||!gE(d)||!Ie(d.name)||Uxe(d))return;const y=qxe(d,c,e);return y&&{references:y,declaration:d,replacement:d.initializer}}return{error:ds(p.Could_not_find_variable_to_inline)}}}function Uxe(e){const t=Ls(e.parent.parent,ac);return ct(t.modifiers,rx)}function qxe(e,t,n){const i=[],s=uo.Core.eachSymbolReferenceInFile(e.name,t,n,o=>{if(uo.isWriteAccessForReference(o)&&!k_(o.parent)||vu(o.parent)||oc(o.parent)||sx(o.parent)||zD(e,o.pos))return!0;i.push(o)});return i.length===0||s?void 0:i}function BJe(e,t){t=Mo(t);const{parent:n}=e;return ot(n)&&(DE(t){for(const y of c)d.replaceNode(n,y,BJe(y,f));d.delete(n,u)})}}})}});function zJe(e,t,n,i,s,o){const c=t.getTypeChecker(),u=hM(e,n.all,c),f=vle(e,t,s,n);i.createNewFile(e,f,WJe(e,u,i,n,t,s,f,o)),lle(t,i,e.fileName,f,Zh(s))}function WJe(e,t,n,i,s,o,c,u){const f=s.getTypeChecker(),g=o7(e.statements,zp);if(e.externalModuleIndicator===void 0&&e.commonJsModuleIndicator===void 0&&t.oldImportsNeededByTargetFile.size===0)return mM(e,i.ranges,n),[...g,...i.all];const d=!JG(c,s,o,!!e.commonJsModuleIndicator),y=Df(e,u),S=ple(e,t.oldFileImportsFromTargetFile,c,s,o,d,y);S&&eP(n,e,S,!0,u),ule(e,i.all,n,t.unusedImportsFromOldFile,f),mM(e,i.ranges,n),_le(n,s,o,e,t.movedSymbols,c,y);const T=VJe(e,t.oldImportsNeededByTargetFile,t.targetFileImportsFromOldFile,n,f,s,o,d,y),k=dle(e,i.all,t.oldFileImportsFromTargetFile,d);return T.length&&k.length?[...g,...T,4,...k]:[...g,...T,...k]}function VJe(e,t,n,i,s,o,c,u,f){const g=[];for(const T of e.statements)dN(T,k=>{_r(g,mN(k,pN(k),w=>t.has(s.getSymbolAtLocation(w))))});let d;const y=[],S=Dx();return n.forEach(T=>{if(T.declarations)for(const k of T.declarations){if(!yM(k))continue;const w=hle(k);if(!w)continue;const P=x$(k);S(P)&&yle(e,P,w,i,u),Rn(k,2048)?d=w:y.push(w.text)}}),_r(g,gM(e,d,y,wc(e.fileName),o,c,u,f)),g}var fN,S$,T$,UJe=Dt({"src/services/refactors/moveToNewFile.ts"(){qn(),Vm(),fN="Move to a new file",S$=ds(p.Move_to_a_new_file),T$={name:fN,description:S$,kind:"refactor.move.newFile"},Dg(fN,{kinds:[T$.kind],getAvailableActions:function(t){const n=gN(t);return t.preferences.allowTextChangesInNewFiles&&n?[{name:fN,description:S$,actions:[T$]}]:t.preferences.provideRefactorNotApplicableReason?[{name:fN,description:S$,actions:[{...T$,notApplicableReason:ds(p.Selection_is_not_a_valid_statement_or_statements)}]}]:Ve},getEditsForAction:function(t,n){E.assert(n===fN,"Wrong refactor invoked");const i=E.checkDefined(gN(t));return{edits:Kr.ChangeTracker.with(t,o=>zJe(t.file,t.program,i,o,t.host,t.preferences)),renameFilename:void 0,renameLocation:void 0}}})}});function Hxe(e){return{edits:[],renameFilename:void 0,renameLocation:void 0,notApplicableReason:e}}function qJe(e,t,n,i,s,o,c,u){const f=i.getTypeChecker();if(!c.fileExists(n))o.createNewFile(t,n,Gxe(t,n,hM(t,s.all,f),o,s,i,c,u)),lle(i,o,t.fileName,n,Zh(c));else{const g=E.checkDefined(i.getSourceFile(n)),d=lu.createImportAdder(g,e.program,e.preferences,e.host);Gxe(t,g,hM(t,s.all,f,uze(g,s.all,f)),o,s,i,c,u,d)}}function Gxe(e,t,n,i,s,o,c,u,f){const g=o.getTypeChecker(),d=o7(e.statements,zp);if(e.externalModuleIndicator===void 0&&e.commonJsModuleIndicator===void 0&&n.oldImportsNeededByTargetFile.size===0&&n.targetFileImportsFromOldFile.size===0&&typeof t=="string")return mM(e,s.ranges,i),[...d,...s.all];const y=typeof t=="string"?t:t.fileName,S=!JG(y,o,c,!!e.commonJsModuleIndicator),T=Df(e,u),k=ple(e,n.oldFileImportsFromTargetFile,y,o,c,S,T);k&&eP(i,e,k,!0,u),ule(e,s.all,i,n.unusedImportsFromOldFile,g),mM(e,s.ranges,i),_le(i,o,c,e,n.movedSymbols,y,T);const w=HJe(e,y,n.oldImportsNeededByTargetFile,n.targetFileImportsFromOldFile,i,g,o,c,S,T,f),P=dle(e,s.all,n.oldFileImportsFromTargetFile,S);return typeof t!="string"&&(t.statements.length>0?lze(i,o,P,t,s):i.insertNodesAtEndOfFile(t,P,!1),w.length>0&&eP(i,t,w,!0,u)),f&&f.writeFixes(i,T),w.length&&P.length?[...d,...w,4,...P]:[...d,...w,...P]}function HJe(e,t,n,i,s,o,c,u,f,g,d){const y=[];if(d)n.forEach((P,F)=>{try{d.addImportFromExportedSymbol(Ul(F,o),P)}catch{for(const J of e.statements)dN(J,U=>{_r(y,mN(U,I.createStringLiteral(pN(U).text),$=>n.has(o.getSymbolAtLocation($))))})}});else{const P=c.getSourceFile(t);for(const F of e.statements)dN(F,J=>{var U;const $=pN(J),j=c.getCompilerOptions(),re=c.getResolvedModuleFromModuleSpecifier($),R=(U=re==null?void 0:re.resolvedModule)==null?void 0:U.resolvedFileName;if(R&&P){const Y=l9(j,P,P.fileName,R,cS(c,u));_r(y,mN(J,wx(Y,g),ue=>n.has(o.getSymbolAtLocation(ue))))}else _r(y,mN(J,I.createStringLiteral(pN(J).text),Y=>n.has(o.getSymbolAtLocation(Y))))})}const S=c.getSourceFile(t);let T;const k=[],w=Dx();return i.forEach(P=>{if(P.declarations)for(const F of P.declarations){if(!yM(F))continue;const J=hle(F);if(!J)continue;const U=x$(F);w(U)&&yle(e,U,J,s,f),d&&o.isUnknownSymbol(P)?d.addImportFromExportedSymbol(Ul(P,o)):Rn(F,2048)?T=J:k.push(J.text)}}),S?_r(y,gM(S,T,k,e.fileName,c,u,f,g)):_r(y,gM(e,T,k,e.fileName,c,u,f,g))}function lle(e,t,n,i,s){const o=e.getCompilerOptions().configFile;if(!o)return;const c=Hs(Mn(n,"..",i)),u=ID(o.fileName,c,s),f=o.statements[0]&&Wn(o.statements[0].expression,ua),g=f&&wn(f.properties,d=>zc(d)&&aa(d.name)&&d.name.text==="files");g&&ju(g.initializer)&&t.insertNodeInListAfter(o,ka(g.initializer.elements),I.createStringLiteral(u),g.initializer.elements)}function mM(e,t,n){for(const{first:i,afterLast:s}of t)n.deleteNodeRangeExcludingEnd(e,i,s)}function ule(e,t,n,i,s){for(const o of e.statements)bs(t,o)||dN(o,c=>mle(e,c,n,u=>i.has(s.getSymbolAtLocation(u))))}function _le(e,t,n,i,s,o,c){const u=t.getTypeChecker();for(const f of t.getSourceFiles())if(f!==i)for(const g of f.statements)dN(g,d=>{if(u.getSymbolAtLocation(pN(d))!==i.symbol)return;const y=P=>{const F=Ea(P.parent)?ML(u,P.parent):Ul(u.getSymbolAtLocation(P),u);return!!F&&s.has(F)};mle(f,d,e,y);const S=V0(Un(i.path),o),T=l9(t.getCompilerOptions(),f,f.fileName,S,cS(t,n)),k=mN(d,wx(T,c),y);k&&e.insertNodeAfter(f,g,k);const w=GJe(d);w&&$Je(e,f,u,s,T,w,d,c)})}function GJe(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 Wn(e.name,Ie);default:return E.assertNever(e,`Unexpected node kind ${e.kind}`)}}function $Je(e,t,n,i,s,o,c,u){const f=lu.moduleSpecifierToValidIdentifier(s,99);let g=!1;const d=[];if(uo.Core.eachSymbolReferenceInFile(o,n,t,y=>{Sn(y.parent)&&(g=g||!!n.resolveName(f,y,-1,!0),i.has(n.getSymbolAtLocation(y.parent.name))&&d.push(y))}),d.length){const y=g?uS(f,t):f;for(const S of d)e.replaceNode(t,S,I.createIdentifier(y));e.insertNodeAfter(t,c,XJe(c,f,s,u))}}function XJe(e,t,n,i){const s=I.createIdentifier(t),o=wx(n,i);switch(e.kind){case 272:return I.createImportDeclaration(void 0,I.createImportClause(!1,void 0,I.createNamespaceImport(s)),o,void 0);case 271:return I.createImportEqualsDeclaration(void 0,!1,s,I.createExternalModuleReference(o));case 260:return I.createVariableDeclaration(s,void 0,void 0,fle(o));default:return E.assertNever(e,`Unexpected node kind ${e.kind}`)}}function fle(e){return I.createCallExpression(I.createIdentifier("require"),void 0,[e])}function pN(e){return e.kind===272?e.moduleSpecifier:e.kind===271?e.moduleReference.expression:e.initializer.arguments[0]}function dN(e,t){if(sl(e))aa(e.moduleSpecifier)&&t(e);else if(El(e))Bm(e.moduleReference)&&Ma(e.moduleReference.expression)&&t(e);else if(ac(e))for(const n of e.declarationList.declarations)n.initializer&&Gu(n.initializer,!0)&&t(n)}function ple(e,t,n,i,s,o,c){let u;const f=[];return t.forEach(g=>{g.escapedName==="default"?u=I.createIdentifier(FL(g)):f.push(g.name)}),gM(e,u,f,n,i,s,o,c)}function gM(e,t,n,i,s,o,c,u){const f=V0(Un(e.path),i),g=l9(s.getCompilerOptions(),e,e.fileName,f,cS(s,o));if(c){const d=n.map(y=>I.createImportSpecifier(!1,void 0,I.createIdentifier(y)));return ice(t,d,g,u)}else{E.assert(!t,"No default import should exist");const d=n.map(y=>I.createBindingElement(void 0,void 0,y));return d.length?$xe(I.createObjectBindingPattern(d),void 0,fle(wx(g,u))):void 0}}function $xe(e,t,n,i=2){return I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(e,void 0,t,n)],i))}function dle(e,t,n,i){return Zs(t,s=>{if(Qxe(s)&&!Xxe(e,s,i)&&Tle(s,o=>{var c;return n.has(E.checkDefined((c=Wn(o,zd))==null?void 0:c.symbol))})){const o=ZJe(Mo(s),i);if(o)return o}return Mo(s)})}function Xxe(e,t,n,i){var s;return n?!Cl(t)&&Rn(t,32)||!!(i&&e.symbol&&((s=e.symbol.exports)!=null&&s.has(i.escapedText))):!!e.symbol&&!!e.symbol.exports&&gle(t).some(o=>e.symbol.exports.has(Vo(o)))}function mle(e,t,n,i){switch(t.kind){case 272:QJe(e,t,n,i);break;case 271:i(t.name)&&n.delete(e,t);break;case 260:YJe(e,t,n,i);break;default:E.assertNever(t,`Unexpected import decl kind ${t.kind}`)}}function QJe(e,t,n,i){if(!t.importClause)return;const{name:s,namedBindings:o}=t.importClause,c=!s||i(s),u=!o||(o.kind===274?i(o.name):o.elements.length!==0&&o.elements.every(f=>i(f.name)));if(c&&u)n.delete(e,t);else if(s&&c&&n.delete(e,s),o){if(u)n.replaceNode(e,t.importClause,I.updateImportClause(t.importClause,t.importClause.isTypeOnly,s,void 0));else if(o.kind===275)for(const f of o.elements)i(f.name)&&n.delete(e,f)}}function YJe(e,t,n,i){const{name:s}=t;switch(s.kind){case 80:i(s)&&(t.initializer&&Gu(t.initializer,!0)?n.delete(e,ml(t.parent)&&mr(t.parent.declarations)===1?t.parent.parent:t):n.delete(e,s));break;case 207:break;case 206:if(s.elements.every(o=>Ie(o.name)&&i(o.name)))n.delete(e,ml(t.parent)&&t.parent.declarations.length===1?t.parent.parent:t);else for(const o of s.elements)Ie(o.name)&&i(o.name)&&n.delete(e,o.name);break}}function Qxe(e){return E.assert(Ni(e.parent),"Node parent should be a SourceFile"),tke(e)||ac(e)}function ZJe(e,t){return t?[KJe(e)]:eze(e)}function KJe(e){const t=Hp(e)?es([I.createModifier(95)],Lv(e)):void 0;switch(e.kind){case 262:return I.updateFunctionDeclaration(e,t,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);case 263:const n=Kb(e)?q0(e):void 0;return I.updateClassDeclaration(e,es(n,t),e.name,e.typeParameters,e.heritageClauses,e.members);case 243:return I.updateVariableStatement(e,t,e.declarationList);case 267:return I.updateModuleDeclaration(e,t,e.name,e.body);case 266:return I.updateEnumDeclaration(e,t,e.name,e.members);case 265:return I.updateTypeAliasDeclaration(e,t,e.name,e.typeParameters,e.type);case 264:return I.updateInterfaceDeclaration(e,t,e.name,e.typeParameters,e.heritageClauses,e.members);case 271:return I.updateImportEqualsDeclaration(e,t,e.isTypeOnly,e.name,e.moduleReference);case 244:return E.fail();default:return E.assertNever(e,`Unexpected declaration kind ${e.kind}`)}}function eze(e){return[e,...gle(e).map(Yxe)]}function Yxe(e){return I.createExpressionStatement(I.createBinaryExpression(I.createPropertyAccessExpression(I.createIdentifier("exports"),I.createIdentifier(e)),64,I.createIdentifier(e)))}function gle(e){switch(e.kind){case 262:case 263:return[e.name.text];case 243:return Ri(e.declarationList.declarations,t=>Ie(t.name)?t.name.text:void 0);case 267:case 266:case 265:case 264:case 271:return Ve;case 244:return E.fail("Can't export an ExpressionStatement");default:return E.assertNever(e,`Unexpected decl kind ${e.kind}`)}}function mN(e,t,n){switch(e.kind){case 272:{const i=e.importClause;if(!i)return;const s=i.name&&n(i.name)?i.name:void 0,o=i.namedBindings&&tze(i.namedBindings,n);return s||o?I.createImportDeclaration(void 0,I.createImportClause(i.isTypeOnly,s,o),Mo(t),void 0):void 0}case 271:return n(e.name)?e:void 0;case 260:{const i=rze(e.name,n);return i?$xe(i,e.type,fle(t),e.parent.flags):void 0}default:return E.assertNever(e,`Unexpected import kind ${e.kind}`)}}function tze(e,t){if(e.kind===274)return t(e.name)?e:void 0;{const n=e.elements.filter(i=>t(i.name));return n.length?I.createNamedImports(n):void 0}}function rze(e,t){switch(e.kind){case 80:return t(e)?e:void 0;case 207:return e;case 206:{const n=e.elements.filter(i=>i.propertyName||!Ie(i.name)||t(i.name));return n.length?I.createObjectBindingPattern(n):void 0}}}function hle(e){return Cl(e)?Wn(e.expression.left.name,Ie):Wn(e.name,Ie)}function x$(e){switch(e.kind){case 260:return e.parent.parent;case 208:return x$(Ls(e.parent.parent,t=>hi(t)||Ea(t)));default:return e}}function yle(e,t,n,i,s){if(!Xxe(e,t,s,n))if(s)Cl(t)||i.insertExportModifier(e,t);else{const o=gle(t);o.length!==0&&i.insertNodesAfter(e,t,o.map(Yxe))}}function vle(e,t,n,i){const s=t.getTypeChecker();if(i){const o=hM(e,i.all,s),c=Un(e.fileName),u=qE(e.fileName);return Mn(c,aze(oze(o.oldFileImportsFromTargetFile,o.movedSymbols),u,c,n))+u}return""}function nze(e){const{file:t}=e,n=wL(Ax(e)),{statements:i}=t;let s=vc(i,g=>g.end>n.pos);if(s===-1)return;const o=i[s],c=rke(t,o);c&&(s=c.start);let u=vc(i,g=>g.end>=n.end,s);u!==-1&&n.end<=i[u].getStart()&&u--;const f=rke(t,i[u]);return f&&(u=f.end),{toMove:i.slice(s,u===-1?i.length:u+1),afterLast:u===-1?void 0:i[u+1]}}function gN(e){const t=nze(e);if(t===void 0)return;const n=[],i=[],{toMove:s,afterLast:o}=t;return iB(s,ize,(c,u)=>{for(let f=c;f!!(t.transformFlags&2))}function ize(e){return!sze(e)&&!zp(e)}function sze(e){switch(e.kind){case 272:return!0;case 271:return!Rn(e,32);case 243:return e.declarationList.declarations.every(t=>!!t.initializer&&Gu(t.initializer,!0));default:return!1}}function hM(e,t,n,i=new Set){const s=new Set,o=new Map,c=new Set,u=d(ble(t));u&&o.set(u,!1);for(const y of t)Tle(y,S=>{s.add(E.checkDefined(Cl(S)?n.getSymbolAtLocation(S.expression.left):S.symbol,"Need a symbol here"))});const f=new Set;for(const y of t)Sle(y,n,(S,T)=>{if(S.declarations){if(i.has(Ul(S,n))){f.add(S);return}for(const k of S.declarations)if(Zxe(k)){const w=o.get(S);o.set(S,(w===void 0||w)&&T)}else yM(k)&&cze(k)===e&&!s.has(S)&&c.add(S)}});for(const y of o.keys())f.add(y);const g=new Set;for(const y of e.statements)bs(t,y)||(u&&y.transformFlags&2&&f.delete(u),Sle(y,n,S=>{s.has(S)&&g.add(S),f.delete(S)}));return{movedSymbols:s,targetFileImportsFromOldFile:c,oldFileImportsFromTargetFile:g,oldImportsNeededByTargetFile:o,unusedImportsFromOldFile:f};function d(y){if(y===void 0)return;const S=n.getJsxNamespace(y),T=n.resolveName(S,y,1920,!0);return T&&ct(T.declarations,Zxe)?T:void 0}}function aze(e,t,n,i){let s=e;for(let o=1;;o++){const c=Mn(n,s+t);if(!i.fileExists(c))return s;s=`${e}.${o}`}}function oze(e,t){return Am(e,FL)||Am(t,FL)||"newFile"}function Sle(e,t,n){e.forEachChild(function i(s){if(Ie(s)&&!eh(s)){const o=t.getSymbolAtLocation(s);o&&n(o,I1(s))}else s.forEachChild(i)})}function Tle(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 Qa(e.declarationList.declarations,n=>eke(n.name,t));case 244:{const{expression:n}=e;return Zr(n)&&fc(n)===1?t(e):void 0}}}function Zxe(e){switch(e.kind){case 271:case 276:case 273:case 274:return!0;case 260:return Kxe(e);case 208:return hi(e.parent.parent)&&Kxe(e.parent.parent);default:return!1}}function Kxe(e){return Ni(e.parent.parent.parent)&&!!e.initializer&&Gu(e.initializer,!0)}function yM(e){return tke(e)&&Ni(e.parent)||hi(e)&&Ni(e.parent.parent.parent)}function cze(e){return hi(e)?e.parent.parent.parent:e.parent}function eke(e,t){switch(e.kind){case 80:return t(Ls(e.parent,n=>hi(n)||Ea(n)));case 207:case 206:return Qa(e.elements,n=>dl(n)?void 0:eke(n.name,t));default:return E.assertNever(e,`Unexpected name kind ${e.kind}`)}}function tke(e){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return!0;default:return!1}}function lze(e,t,n,i,s){var o;const c=new Set,u=(o=i.symbol)==null?void 0:o.exports;if(u){const g=t.getTypeChecker(),d=new Map;for(const y of s.all)Qxe(y)&&Rn(y,32)&&Tle(y,S=>{var T;const k=zd(S)?(T=u.get(S.symbol.escapedName))==null?void 0:T.declarations:void 0,w=Qa(k,P=>Tc(P)?P:vu(P)?Wn(P.parent.parent,Tc):void 0);w&&w.moduleSpecifier&&d.set(w,(d.get(w)||new Set).add(S))});for(const[y,S]of gs(d))if(y.exportClause&&$f(y.exportClause)&&mr(y.exportClause.elements)){const T=y.exportClause.elements,k=An(T,w=>wn(Ul(w.symbol,g).declarations,P=>yM(P)&&S.has(P))===void 0);if(mr(k)===0){e.deleteNode(i,y),c.add(y);continue}mr(k)Tc(g)&&!!g.moduleSpecifier&&!c.has(g));f?e.insertNodesBefore(i,f,n,!0):e.insertNodesAfter(i,i.statements[i.statements.length-1],n)}function rke(e,t){if(po(t)){const n=t.symbol.declarations;if(n===void 0||mr(n)<=1||!bs(n,t))return;const i=n[0],s=n[mr(n)-1],o=Ri(n,f=>wr(f)===e&&Ei(f)?f:void 0),c=vc(e.statements,f=>f.end>=s.end),u=vc(e.statements,f=>f.end>=i.end);return{toMove:o,start:u,end:c}}}function uze(e,t,n){const i=new Set;for(const s of e.imports){const o=SE(s);if(sl(o)&&o.importClause&&o.importClause.namedBindings&&sh(o.importClause.namedBindings))for(const c of o.importClause.namedBindings.elements){const u=n.getSymbolAtLocation(c.propertyName||c.name);u&&i.add(Ul(u,n))}if(w5(o.parent)&&xp(o.parent.name))for(const c of o.parent.name.elements){const u=n.getSymbolAtLocation(c.propertyName||c.name);u&&i.add(Ul(u,n))}}for(const s of t)Sle(s,n,o=>{const c=Ul(o,n);c.valueDeclaration&&wr(c.valueDeclaration)===e&&i.add(c)});return i}var vM,k$,C$,_ze=Dt({"src/services/refactors/moveToFile.ts"(){Dse(),qn(),Lxe(),vM="Move to file",k$=ds(p.Move_to_file),C$={name:"Move to file",description:k$,kind:"refactor.move.file"},Dg(vM,{kinds:[C$.kind],getAvailableActions:function(t,n){const i=gN(t);return n?t.preferences.allowTextChangesInNewFiles&&i?[{name:vM,description:k$,actions:[C$]}]:t.preferences.provideRefactorNotApplicableReason?[{name:vM,description:k$,actions:[{...C$,notApplicableReason:ds(p.Selection_is_not_a_valid_statement_or_statements)}]}]:Ve:Ve},getEditsForAction:function(t,n,i){E.assert(n===vM,"Wrong refactor invoked");const s=E.checkDefined(gN(t)),{host:o,program:c}=t;E.assert(i,"No interactive refactor arguments available");const u=i.targetFile;return Kv(u)||HT(u)?o.fileExists(u)&&c.getSourceFile(u)===void 0?Hxe(ds(p.Cannot_move_statements_to_the_selected_file)):{edits:Kr.ChangeTracker.with(t,g=>qJe(t,t.file,i.targetFile,t.program,s,g,t.host,t.preferences)),renameFilename:void 0,renameLocation:void 0}:Hxe(ds(p.Cannot_move_to_file_selected_file_is_invalid))}})}});function fze(e){const{file:t,startPosition:n,program:i}=e;return ike(t,n,i)?[{name:E$,description:xle,actions:[kle]}]:Ve}function pze(e){const{file:t,startPosition:n,program:i}=e,s=ike(t,n,i);if(!s)return;const o=i.getTypeChecker(),c=s[s.length-1];let u=c;switch(c.kind){case 173:{u=I.updateMethodSignature(c,c.modifiers,c.name,c.questionToken,c.typeParameters,g(s),c.type);break}case 174:{u=I.updateMethodDeclaration(c,c.modifiers,c.asteriskToken,c.name,c.questionToken,c.typeParameters,g(s),c.type,c.body);break}case 179:{u=I.updateCallSignature(c,c.typeParameters,g(s),c.type);break}case 176:{u=I.updateConstructorDeclaration(c,c.modifiers,g(s),c.body);break}case 180:{u=I.updateConstructSignature(c,c.typeParameters,g(s),c.type);break}case 262:{u=I.updateFunctionDeclaration(c,c.modifiers,c.asteriskToken,c.name,c.typeParameters,g(s),c.type,c.body);break}default:return E.failBadSyntaxKind(c,"Unhandled signature kind in overload list conversion refactoring")}if(u===c)return;return{renameFilename:void 0,renameLocation:void 0,edits:Kr.ChangeTracker.with(e,S=>{S.replaceNodeRange(t,s[0],s[s.length-1],u)})};function g(S){const T=S[S.length-1];return po(T)&&T.body&&(S=S.slice(0,S.length-1)),I.createNodeArray([I.createParameterDeclaration(void 0,I.createToken(26),"args",void 0,I.createUnionTypeNode(nr(S,d)))])}function d(S){const T=nr(S.parameters,y);return Qr(I.createTupleTypeNode(T),ct(T,k=>!!mr(OC(k)))?0:1)}function y(S){E.assert(Ie(S.name));const T=Ke(I.createNamedTupleMember(S.dotDotDotToken,S.name,S.questionToken,S.type||I.createKeywordTypeNode(133)),S),k=S.symbol&&S.symbol.getDocumentationComment(o);if(k){const w=xN(k);w.length&&O1(T,[{text:`* ${w.split(` `).map(P=>` * ${P}`).join(` `)} - `,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return T}}function nke(e){switch(e.kind){case 173:case 174:case 179:case 176:case 180:case 262:return!0}return!1}function ike(e,t,n){const i=Ui(e,t),s=Pr(i,nke);if(!s||fo(s)&&s.body&&WA(s.body,t))return;const o=n.getTypeChecker(),c=s.symbol;if(!c)return;const u=c.declarations;if(gr(u)<=1||!Wi(u,S=>wr(S)===e)||!nke(u[0]))return;const f=u[0].kind;if(!Wi(u,S=>S.kind===f))return;const g=u;if(ct(g,S=>!!S.typeParameters||ct(S.parameters,T=>!!T.modifiers||!Ie(T.name))))return;const d=Ri(g,S=>o.getSignatureFromDeclaration(S));if(gr(d)!==gr(u))return;const y=o.getReturnTypeOfSignature(d[0]);if(Wi(d,S=>o.getReturnTypeOfSignature(S)===y))return g}var D$,kle,Cle,dze=wt({"src/services/refactors/convertOverloadListToSingleSignature.ts"(){qn(),Vm(),D$="Convert overload list to single signature",kle=ds(p.Convert_overload_list_to_single_signature),Cle={name:D$,description:kle,kind:"refactor.rewrite.function.overloadList"},Dg(D$,{kinds:[Cle.kind],getEditsForAction:pze,getAvailableActions:fze})}});function mze(e){const{file:t,startPosition:n,triggerReason:i}=e,s=ske(t,n,i==="invoked");return s?lh(s)?e.preferences.provideRefactorNotApplicableReason?[{name:w$,description:Ele,actions:[{...xM,notApplicableReason:s.error},{...yN,notApplicableReason:s.error}]}]:Ve:[{name:w$,description:Ele,actions:[s.addBraces?xM:yN]}]:Ve}function gze(e,t){const{file:n,startPosition:i}=e,s=ske(n,i);E.assert(s&&!lh(s),"Expected applicable refactor info");const{expression:o,returnStatement:c,func:u}=s;let f;if(t===xM.name){const d=I.createReturnStatement(o);f=I.createBlock([d],!0),T6(o,d,n,3,!0)}else if(t===yN.name&&c){const d=o||I.createVoidZero();f=VL(d)?I.createParenthesizedExpression(d):d,nN(c,f,n,3,!1),T6(c,f,n,3,!1),sP(c,f,n,3,!1)}else E.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:Kr.ChangeTracker.with(e,d=>{d.replaceNode(n,u.body,f)})}}function ske(e,t,n=!0,i){const s=Ui(e,t),o=cf(s);if(!o)return{error:ds(p.Could_not_find_a_containing_arrow_function)};if(!po(o))return{error:ds(p.Containing_function_is_not_an_arrow_function)};if(!(!Df(o,s)||Df(o.body,s)&&!n)){if($1(xM.kind,i)&&ot(o.body))return{func:o,addBraces:!0,expression:o.body};if($1(yN.kind,i)&&Cs(o.body)&&o.body.statements.length===1){const c=va(o.body.statements);if(Hp(c)){const u=c.expression&&ua(EC(c.expression,!1))?I.createParenthesizedExpression(c.expression):c.expression;return{func:o,addBraces:!1,expression:u,returnStatement:c}}}}}var w$,Ele,xM,yN,hze=wt({"src/services/refactors/addOrRemoveBracesToArrowFunction.ts"(){qn(),Vm(),w$="Add or remove braces in an arrow function",Ele=ds(p.Add_or_remove_braces_in_an_arrow_function),xM={name:"Add braces to arrow function",description:ds(p.Add_braces_to_arrow_function),kind:"refactor.rewrite.arrow.braces.add"},yN={name:"Remove braces from arrow function",description:ds(p.Remove_braces_from_arrow_function),kind:"refactor.rewrite.arrow.braces.remove"},Dg(w$,{kinds:[yN.kind],getEditsForAction:gze,getAvailableActions:mze})}}),yze={},vze=wt({"src/services/_namespaces/ts.refactor.addOrRemoveBracesToArrowFunction.ts"(){dze(),hze()}});function bze(e){const{file:t,startPosition:n,program:i,kind:s}=e,o=oke(t,n,i);if(!o)return Ve;const{selectedVariableDeclaration:c,func:u}=o,f=[],g=[];if($1(bN.kind,s)){const d=c||po(u)&&hi(u.parent)?void 0:ds(p.Could_not_convert_to_named_function);d?g.push({...bN,notApplicableReason:d}):f.push(bN)}if($1(vN.kind,s)){const d=!c&&po(u)?void 0:ds(p.Could_not_convert_to_anonymous_function);d?g.push({...vN,notApplicableReason:d}):f.push(vN)}if($1(SN.kind,s)){const d=co(u)?void 0:ds(p.Could_not_convert_to_arrow_function);d?g.push({...SN,notApplicableReason:d}):f.push(SN)}return[{name:Ple,description:uke,actions:f.length===0&&e.preferences.provideRefactorNotApplicableReason?g:f}]}function Sze(e,t){const{file:n,startPosition:i,program:s}=e,o=oke(n,i,s);if(!o)return;const{func:c}=o,u=[];switch(t){case vN.name:u.push(...Cze(e,c));break;case bN.name:const f=kze(c);if(!f)return;u.push(...Eze(e,c,f));break;case SN.name:if(!co(c))return;u.push(...Pze(e,c));break;default:return E.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:u}}function ake(e){let t=!1;return e.forEachChild(function n(i){if(g6(i)){t=!0;return}!$n(i)&&!$c(i)&&!co(i)&&Ss(i,n)}),t}function oke(e,t,n){const i=Ui(e,t),s=n.getTypeChecker(),o=xze(e,s,i.parent);if(o&&!ake(o.body)&&!s.containsArgumentsReference(o))return{selectedVariableDeclaration:!0,func:o};const c=cf(i);if(c&&(co(c)||po(c))&&!Df(c.body,i)&&!ake(c.body)&&!s.containsArgumentsReference(c))return co(c)&&lke(e,s,c)?void 0:{selectedVariableDeclaration:!1,func:c}}function Tze(e){return hi(e)||dl(e)&&e.declarations.length===1}function xze(e,t,n){if(!Tze(n))return;const s=(hi(n)?n:va(n.declarations)).initializer;if(s&&(po(s)||co(s)&&!lke(e,t,s)))return s}function cke(e){if(ot(e)){const t=I.createReturnStatement(e),n=e.getSourceFile();return Ke(t,e),U_(t),nN(e,t,n,void 0,!0),I.createBlock([t],!0)}else return e}function kze(e){const t=e.parent;if(!hi(t)||!hE(t))return;const n=t.parent,i=n.parent;if(!(!dl(n)||!ac(i)||!Ie(t.name)))return{variableDeclaration:t,variableDeclarationList:n,statement:i,name:t.name}}function Cze(e,t){const{file:n}=e,i=cke(t.body),s=I.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,t.typeParameters,t.parameters,t.type,i);return Kr.ChangeTracker.with(e,o=>o.replaceNode(n,t,s))}function Eze(e,t,n){const{file:i}=e,s=cke(t.body),{variableDeclaration:o,variableDeclarationList:c,statement:u,name:f}=n;AG(u);const g=y1(o)&32|Lu(t),d=I.createModifiersFromModifierFlags(g),y=I.createFunctionDeclaration(gr(d)?d:void 0,t.asteriskToken,f,t.typeParameters,t.parameters,t.type,s);return c.declarations.length===1?Kr.ChangeTracker.with(e,S=>S.replaceNode(i,u,y)):Kr.ChangeTracker.with(e,S=>{S.delete(i,o),S.insertNodeAfter(i,u,y)})}function Pze(e,t){const{file:n}=e,s=t.body.statements[0];let o;Dze(t.body,s)?(o=s.expression,U_(o),uS(s,o)):o=t.body;const c=I.createArrowFunction(t.modifiers,t.typeParameters,t.parameters,t.type,I.createToken(39),o);return Kr.ChangeTracker.with(e,u=>u.replaceNode(n,t,c))}function Dze(e,t){return e.statements.length===1&&Hp(t)&&!!t.expression}function lke(e,t,n){return!!n.name&&lo.Core.isSymbolReferencedInFile(n.name,t,e)}var Ple,uke,vN,bN,SN,wze=wt({"src/services/refactors/convertArrowFunctionOrFunctionExpression.ts"(){qn(),Vm(),Ple="Convert arrow function or function expression",uke=ds(p.Convert_arrow_function_or_function_expression),vN={name:"Convert to anonymous function",description:ds(p.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},bN={name:"Convert to named function",description:ds(p.Convert_to_named_function),kind:"refactor.rewrite.function.named"},SN={name:"Convert to arrow function",description:ds(p.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"},Dg(Ple,{kinds:[vN.kind,bN.kind,SN.kind],getEditsForAction:Sze,getAvailableActions:bze})}}),Aze={},Nze=wt({"src/services/_namespaces/ts.refactor.convertArrowFunctionOrFunctionExpression.ts"(){wze()}});function Ize(e){const{file:t,startPosition:n}=e;return Ou(t)||!pke(t,n,e.program.getTypeChecker())?Ve:[{name:CM,description:Nle,actions:[Ile]}]}function Fze(e,t){E.assert(t===CM,"Unexpected action name");const{file:n,startPosition:i,program:s,cancellationToken:o,host:c}=e,u=pke(n,i,s.getTypeChecker());if(!u||!o)return;const f=Lze(u,s,o);return f.valid?{renameFilename:void 0,renameLocation:void 0,edits:Kr.ChangeTracker.with(e,d=>Oze(n,s,c,d,u,f))}:{edits:[]}}function Oze(e,t,n,i,s,o){const c=o.signature,u=nr(hke(s,t,n),d=>Lo(d));if(c){const d=nr(hke(c,t,n),y=>Lo(y));g(c,d)}g(s,u);const f=W4(o.functionCalls,(d,y)=>wo(d.pos,y.pos));for(const d of f)if(d.arguments&&d.arguments.length){const y=Lo(qze(s,d.arguments),!0);i.replaceNodeRange(wr(d),va(d.arguments),ka(d.arguments),y,{leadingTriviaOption:Kr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Kr.TrailingTriviaOption.Include})}function g(d,y){i.replaceNodeRangeWithNodes(e,va(d.parameters),ka(d.parameters),y,{joiner:", ",indentation:0,leadingTriviaOption:Kr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Kr.TrailingTriviaOption.Include})}}function Lze(e,t,n){const i=Gze(e),s=sc(e)?Hze(e):[],o=Nv([...i,...s],Vh),c=t.getTypeChecker(),u=Zs(o,y=>lo.getReferenceEntriesForNode(-1,y,t,t.getSourceFiles(),n)),f=g(u);return Wi(f.declarations,y=>bs(o,y))||(f.valid=!1),f;function g(y){const S={accessExpressions:[],typeUsages:[]},T={functionCalls:[],declarations:[],classReferences:S,valid:!0},k=nr(i,d),w=nr(s,d),P=sc(e),F=nr(i,J=>Dle(J,c));for(const J of y){if(J.kind===lo.EntryKind.Span){T.valid=!1;continue}if(bs(F,d(J.node))){if(Bze(J.node.parent)){T.signature=J.node.parent;continue}const $=fke(J);if($){T.functionCalls.push($);continue}}const U=Dle(J.node,c);if(U&&bs(F,U)){const $=wle(J);if($){T.declarations.push($);continue}}if(bs(k,d(J.node))||Y3(J.node)){if(_ke(J))continue;const j=wle(J);if(j){T.declarations.push(j);continue}const re=fke(J);if(re){T.functionCalls.push(re);continue}}if(P&&bs(w,d(J.node))){if(_ke(J))continue;const j=wle(J);if(j){T.declarations.push(j);continue}const re=Mze(J);if(re){S.accessExpressions.push(re);continue}if(Xc(e.parent)){const R=Rze(J);if(R){S.typeUsages.push(R);continue}}}T.valid=!1}return T}function d(y){const S=c.getSymbolAtLocation(y);return S&&DG(S,c)}}function Dle(e,t){const n=CN(e);if(n){const i=t.getContextualTypeForObjectLiteralElement(n),s=i==null?void 0:i.getSymbol();if(s&&!(Ko(s)&6))return s}}function _ke(e){const t=e.node;if(x_(t.parent)||Rm(t.parent)||El(t.parent)||my(t.parent)||vu(t.parent)||oc(t.parent))return t}function wle(e){if(yu(e.node.parent))return e.node}function fke(e){if(e.node.parent){const t=e.node,n=t.parent;switch(n.kind){case 213:case 214:const i=Wn(n,zd);if(i&&i.expression===t)return i;break;case 211:const s=Wn(n,Sn);if(s&&s.parent&&s.name===t){const c=Wn(s.parent,zd);if(c&&c.expression===s)return c}break;case 212:const o=Wn(n,ko);if(o&&o.parent&&o.argumentExpression===t){const c=Wn(o.parent,zd);if(c&&c.expression===o)return c}break}}}function Mze(e){if(e.node.parent){const t=e.node,n=t.parent;switch(n.kind){case 211:const i=Wn(n,Sn);if(i&&i.expression===t)return i;break;case 212:const s=Wn(n,ko);if(s&&s.expression===t)return s;break}}}function Rze(e){const t=e.node;if(oS(t)===2||K5(t.parent))return t}function pke(e,t,n){const i=h6(e,t),s=Xte(i);if(!jze(i)&&s&&Jze(s,n)&&Df(s,i)&&!(s.body&&Df(s.body,i)))return s}function jze(e){const t=Pr(e,$k);if(t){const n=Pr(t,i=>!$k(i));return!!n&&fo(n)}return!1}function Bze(e){return Lm(e)&&(Bu(e.parent)||z_(e.parent))}function Jze(e,t){var n;if(!zze(e.parameters,t))return!1;switch(e.kind){case 262:return dke(e)&&kM(e,t);case 174:if(ua(e.parent)){const i=Dle(e.name,t);return((n=i==null?void 0:i.declarations)==null?void 0:n.length)===1&&kM(e,t)}return kM(e,t);case 176:return Xc(e.parent)?dke(e.parent)&&kM(e,t):mke(e.parent.parent)&&kM(e,t);case 218:case 219:return mke(e.parent)}return!1}function kM(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function dke(e){return e.name?!0:!!v6(e,90)}function zze(e,t){return Vze(e)>=yke&&Wi(e,n=>Wze(n,t))}function Wze(e,t){if(dg(e)){const n=t.getTypeAtLocation(e);if(!t.isArrayType(n)&&!t.isTupleType(n))return!1}return!e.modifiers&&Ie(e.name)}function mke(e){return hi(e)&&tC(e)&&Ie(e.name)&&!e.type}function Ale(e){return e.length>0&&g6(e[0].name)}function Vze(e){return Ale(e)?e.length-1:e.length}function gke(e){return Ale(e)&&(e=I.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function Uze(e,t){return Ie(t)&&yp(t)===e?I.createShorthandPropertyAssignment(e):I.createPropertyAssignment(e,t)}function qze(e,t){const n=gke(e.parameters),i=dg(ka(n)),s=i?t.slice(0,n.length-1):t,o=nr(s,(u,f)=>{const g=A$(n[f]),d=Uze(g,u);return U_(d.name),zc(d)&&U_(d.initializer),uS(u,d),d});if(i&&t.length>=n.length){const u=t.slice(n.length-1),f=I.createPropertyAssignment(A$(ka(n)),I.createArrayLiteralExpression(u));o.push(f)}return I.createObjectLiteralExpression(o,!1)}function hke(e,t,n){const i=t.getTypeChecker(),s=gke(e.parameters),o=nr(s,d),c=I.createObjectBindingPattern(o),u=y(s);let f;Wi(s,k)&&(f=I.createObjectLiteralExpression());const g=I.createParameterDeclaration(void 0,void 0,c,void 0,u,f);if(Ale(e.parameters)){const w=e.parameters[0],P=I.createParameterDeclaration(void 0,void 0,w.name,void 0,w.type);return U_(P.name),uS(w.name,P.name),w.type&&(U_(P.type),uS(w.type,P.type)),I.createNodeArray([P,g])}return I.createNodeArray([g]);function d(w){const P=I.createBindingElement(void 0,void 0,A$(w),dg(w)&&k(w)?I.createArrayLiteralExpression():w.initializer);return U_(P),w.initializer&&P.initializer&&uS(w.initializer,P.initializer),P}function y(w){const P=nr(w,S);return Qd(I.createTypeLiteralNode(P),1)}function S(w){let P=w.type;!P&&(w.initializer||dg(w))&&(P=T(w));const F=I.createPropertySignature(void 0,A$(w),k(w)?I.createToken(58):w.questionToken,P);return U_(F),uS(w.name,F.name),w.type&&F.type&&uS(w.type,F.type),F}function T(w){const P=i.getTypeAtLocation(w);return oP(P,w,t,n)}function k(w){if(dg(w)){const P=i.getTypeAtLocation(w);return!i.isTupleType(P)}return i.isOptionalParameter(w)}}function A$(e){return yp(e.name)}function Hze(e){switch(e.parent.kind){case 263:const t=e.parent;return t.name?[t.name]:[E.checkDefined(v6(t,90),"Nameless class declaration should be a default export")];case 231:const i=e.parent,s=e.parent.parent,o=i.name;return o?[o,s.name]:[s.name]}}function Gze(e){switch(e.kind){case 262:return e.name?[e.name]:[E.checkDefined(v6(e,90),"Nameless function declaration should be a default export")];case 174:return[e.name];case 176:const n=E.checkDefined(qa(e,137,e.getSourceFile()),"Constructor declaration should have constructor keyword");return e.parent.kind===231?[e.parent.parent.name,n]:[n];case 219:return[e.parent.name];case 218:return e.name?[e.name,e.parent.name]:[e.parent.name];default:return E.assertNever(e,`Unexpected function declaration kind ${e.kind}`)}}var CM,yke,Nle,Ile,$ze=wt({"src/services/refactors/convertParamsToDestructuredObject.ts"(){qn(),Vm(),CM="Convert parameters to destructured object",yke=1,Nle=ds(p.Convert_parameters_to_destructured_object),Ile={name:CM,description:Nle,kind:"refactor.rewrite.parameters.toDestructured"},Dg(CM,{kinds:[Ile.kind],getEditsForAction:Fze,getAvailableActions:Ize})}}),Xze={},Qze=wt({"src/services/_namespaces/ts.refactor.convertParamsToDestructuredObject.ts"(){$ze()}});function Yze(e){const{file:t,startPosition:n}=e,i=vke(t,n),s=Fle(i),o=aa(s),c={name:N$,description:I$,actions:[]};return o&&e.triggerReason!=="invoked"?Ve:hg(s)&&(o||Zr(s)&&Ole(s).isValidConcatenation)?(c.actions.push(F$),[c]):e.preferences.provideRefactorNotApplicableReason?(c.actions.push({...F$,notApplicableReason:ds(p.Can_only_convert_string_concatenations_and_string_literals)}),[c]):Ve}function vke(e,t){const n=Ui(e,t),i=Fle(n);return!Ole(i).isValidConcatenation&&l_(i.parent)&&Zr(i.parent.parent)?i.parent.parent:n}function Zze(e,t){const{file:n,startPosition:i}=e,s=vke(n,i);switch(t){case I$:return{edits:Kze(e,s)};default:return E.fail("invalid action")}}function Kze(e,t){const n=Fle(t),i=e.file,s=rWe(Ole(n),i),o=m1(i.text,n.end);if(o){const c=o[o.length-1],u={pos:o[0].pos,end:c.end};return Kr.ChangeTracker.with(e,f=>{f.deleteRange(i,u),f.replaceNode(i,n,s)})}else return Kr.ChangeTracker.with(e,c=>c.replaceNode(i,n,s))}function eWe(e){return!(e.operatorToken.kind===64||e.operatorToken.kind===65)}function Fle(e){return Pr(e.parent,n=>{switch(n.kind){case 211:case 212:return!1;case 228:case 226:return!(Zr(n.parent)&&eWe(n.parent));default:return"quit"}})||e}function Ole(e){const t=c=>{if(!Zr(c))return{nodes:[c],operators:[],validOperators:!0,hasString:aa(c)||tx(c)};const{nodes:u,operators:f,hasString:g,validOperators:d}=t(c.left);if(!(g||aa(c.right)||kO(c.right)))return{nodes:[c],operators:[],hasString:!1,validOperators:!0};const y=c.operatorToken.kind===40,S=d&&y;return u.push(c.right),f.push(c.operatorToken),{nodes:u,operators:f,hasString:!0,validOperators:S}},{nodes:n,operators:i,validOperators:s,hasString:o}=t(e);return{nodes:n,operators:i,isValidConcatenation:s&&o}}function tWe(e){return e.replace(/\\.|[$`]/g,t=>t[0]==="\\"?t:"\\"+t)}function bke(e){const t=rx(e)||xV(e)?-2:-1;return jc(e).slice(1,t)}function Ske(e,t){const n=[];let i="",s="";for(;e{Tke(U);const j=$===S.templateSpans.length-1,re=U.literal.text+(j?k:""),R=bke(U.literal)+(j?w:"");return I.createTemplateSpan(U.expression,F&&j?I.createTemplateTail(re,R):I.createTemplateMiddle(re,R))});g.push(...J)}else{const J=F?I.createTemplateTail(k,w):I.createTemplateMiddle(k,w);s(P,J),g.push(I.createTemplateSpan(S,J))}}return I.createTemplateExpression(d,g)}function Tke(e){const t=e.getSourceFile();sP(e,e.expression,t,3,!1),nN(e.expression,e.expression,t,3,!1)}function nWe(e){return l_(e)&&(Tke(e),e=e.expression),e}var N$,I$,F$,xke,kke,iWe=wt({"src/services/refactors/convertStringOrTemplateLiteral.ts"(){qn(),Vm(),N$="Convert to template string",I$=ds(p.Convert_to_template_string),F$={name:N$,description:I$,kind:"refactor.rewrite.string"},Dg(N$,{kinds:[F$.kind],getEditsForAction:Zze,getAvailableActions:Yze}),xke=(e,t)=>(n,i)=>{n(i,s)=>{for(;i.length>0;){const o=i.shift();sP(e[o],s,t,3,!1),n(o,s)}}}}),sWe={},aWe=wt({"src/services/_namespaces/ts.refactor.convertStringOrTemplateLiteral.ts"(){iWe()}});function oWe(e){const t=Cke(e,e.triggerReason==="invoked");return t?lh(t)?e.preferences.provideRefactorNotApplicableReason?[{name:EM,description:M$,actions:[{...R$,notApplicableReason:t.error}]}]:Ve:[{name:EM,description:M$,actions:[R$]}]:Ve}function cWe(e,t){const n=Cke(e);return E.assert(n&&!lh(n),"Expected applicable refactor info"),{edits:Kr.ChangeTracker.with(e,s=>gWe(e.file,e.program.getTypeChecker(),s,n)),renameFilename:void 0,renameLocation:void 0}}function O$(e){return Zr(e)||JC(e)}function lWe(e){return Cl(e)||Hp(e)||ac(e)}function L$(e){return O$(e)||lWe(e)}function Cke(e,t=!0){const{file:n,program:i}=e,s=Nx(e),o=s.length===0;if(o&&!t)return;const c=Ui(n,s.start),u=PL(n,s.start+s.length),f=Rc(c.pos,u&&u.end>=c.pos?u.getEnd():c.getEnd()),g=o?dWe(c):pWe(c,f),d=g&&L$(g)?mWe(g):void 0;if(!d)return{error:ds(p.Could_not_find_convertible_access_expression)};const y=i.getTypeChecker();return JC(d)?uWe(d,y):_We(d)}function uWe(e,t){const n=e.condition,i=Mle(e.whenTrue);if(!i||t.isNullableType(t.getTypeAtLocation(i)))return{error:ds(p.Could_not_find_convertible_access_expression)};if((Sn(n)||Ie(n))&&Lle(n,i.expression))return{finalExpression:i,occurrences:[n],expression:e};if(Zr(n)){const s=Eke(i.expression,n);return s?{finalExpression:i,occurrences:s,expression:e}:{error:ds(p.Could_not_find_matching_access_expressions)}}}function _We(e){if(e.operatorToken.kind!==56)return{error:ds(p.Can_only_convert_logical_AND_access_chains)};const t=Mle(e.right);if(!t)return{error:ds(p.Could_not_find_convertible_access_expression)};const n=Eke(t.expression,e.left);return n?{finalExpression:t,occurrences:n,expression:e}:{error:ds(p.Could_not_find_matching_access_expressions)}}function Eke(e,t){const n=[];for(;Zr(t)&&t.operatorToken.kind===56;){const s=Lle(Va(e),Va(t.right));if(!s)break;n.push(s),e=s,t=t.left}const i=Lle(e,t);return i&&n.push(i),n.length>0?n:void 0}function Lle(e,t){if(!(!Ie(t)&&!Sn(t)&&!ko(t)))return fWe(e,t)?t:void 0}function fWe(e,t){for(;(Rs(e)||Sn(e)||ko(e))&&TN(e)!==TN(t);)e=e.expression;for(;Sn(e)&&Sn(t)||ko(e)&&ko(t);){if(TN(e)!==TN(t))return!1;e=e.expression,t=t.expression}return Ie(e)&&Ie(t)&&e.getText()===t.getText()}function TN(e){if(Ie(e)||Tf(e))return e.getText();if(Sn(e))return TN(e.name);if(ko(e))return TN(e.argumentExpression)}function pWe(e,t){for(;e.parent;){if(L$(e)&&t.length!==0&&e.end>=t.start+t.length)return e;e=e.parent}}function dWe(e){for(;e.parent;){if(L$(e)&&!L$(e.parent))return e;e=e.parent}}function mWe(e){if(O$(e))return e;if(ac(e)){const t=RT(e),n=t==null?void 0:t.initializer;return n&&O$(n)?n:void 0}return e.expression&&O$(e.expression)?e.expression:void 0}function Mle(e){if(e=Va(e),Zr(e))return Mle(e.left);if((Sn(e)||ko(e)||Rs(e))&&!hu(e))return e}function Pke(e,t,n){if(Sn(t)||ko(t)||Rs(t)){const i=Pke(e,t.expression,n),s=n.length>0?n[n.length-1]:void 0,o=(s==null?void 0:s.getText())===t.expression.getText();if(o&&n.pop(),Rs(t))return o?I.createCallChain(i,I.createToken(29),t.typeArguments,t.arguments):I.createCallChain(i,t.questionDotToken,t.typeArguments,t.arguments);if(Sn(t))return o?I.createPropertyAccessChain(i,I.createToken(29),t.name):I.createPropertyAccessChain(i,t.questionDotToken,t.name);if(ko(t))return o?I.createElementAccessChain(i,I.createToken(29),t.argumentExpression):I.createElementAccessChain(i,t.questionDotToken,t.argumentExpression)}return t}function gWe(e,t,n,i,s){const{finalExpression:o,occurrences:c,expression:u}=i,f=c[c.length-1],g=Pke(t,o,c);g&&(Sn(g)||ko(g)||Rs(g))&&(Zr(u)?n.replaceNodeRange(e,f,o,g):JC(u)&&n.replaceNode(e,u,I.createBinaryExpression(g,I.createToken(61),u.whenFalse)))}var EM,M$,R$,hWe=wt({"src/services/refactors/convertToOptionalChainExpression.ts"(){qn(),Vm(),EM="Convert to optional chain expression",M$=ds(p.Convert_to_optional_chain_expression),R$={name:EM,description:M$,kind:"refactor.rewrite.expression.optionalChain"},Dg(EM,{kinds:[R$.kind],getEditsForAction:cWe,getAvailableActions:oWe})}}),yWe={},vWe=wt({"src/services/_namespaces/ts.refactor.convertToOptionalChainExpression.ts"(){hWe()}});function Dke(e){const t=e.kind,n=Rle(e.file,Nx(e),e.triggerReason==="invoked"),i=n.targetRange;if(i===void 0){if(!n.errors||n.errors.length===0||!e.preferences.provideRefactorNotApplicableReason)return Ve;const k=[];return $1(D6.kind,t)&&k.push({name:E6,description:D6.description,actions:[{...D6,notApplicableReason:T(n.errors)}]}),$1(P6.kind,t)&&k.push({name:E6,description:P6.description,actions:[{...P6,notApplicableReason:T(n.errors)}]}),k}const s=CWe(i,e);if(s===void 0)return Ve;const o=[],c=new Map;let u;const f=[],g=new Map;let d,y=0;for(const{functionExtraction:k,constantExtraction:w}of s){if($1(D6.kind,t)){const P=k.description;k.errors.length===0?c.has(P)||(c.set(P,!0),o.push({description:P,name:`function_scope_${y}`,kind:D6.kind})):u||(u={description:P,name:`function_scope_${y}`,notApplicableReason:T(k.errors),kind:D6.kind})}if($1(P6.kind,t)){const P=w.description;w.errors.length===0?g.has(P)||(g.set(P,!0),f.push({description:P,name:`constant_scope_${y}`,kind:P6.kind})):d||(d={description:P,name:`constant_scope_${y}`,notApplicableReason:T(w.errors),kind:P6.kind})}y++}const S=[];return o.length?S.push({name:E6,description:ds(p.Extract_function),actions:o}):e.preferences.provideRefactorNotApplicableReason&&u&&S.push({name:E6,description:ds(p.Extract_function),actions:[u]}),f.length?S.push({name:E6,description:ds(p.Extract_constant),actions:f}):e.preferences.provideRefactorNotApplicableReason&&d&&S.push({name:E6,description:ds(p.Extract_constant),actions:[d]}),S.length?S:Ve;function T(k){let w=k[0].messageText;return typeof w!="string"&&(w=w.messageText),w}}function wke(e,t){const i=Rle(e.file,Nx(e)).targetRange,s=/^function_scope_(\d+)$/.exec(t);if(s){const c=+s[1];return E.assert(isFinite(c),"Expected to parse a finite number from the function scope index"),xWe(i,e,c)}const o=/^constant_scope_(\d+)$/.exec(t);if(o){const c=+o[1];return E.assert(isFinite(c),"Expected to parse a finite number from the constant scope index"),kWe(i,e,c)}E.fail("Unrecognized action name")}function Rle(e,t,n=!0){const{length:i}=t;if(i===0&&!n)return{errors:[xl(e,t.start,i,Gl.cannotExtractEmpty)]};const s=i===0&&n,o=qoe(e,t.start),c=PL(e,bc(t)),u=o&&c&&n?bWe(o,c,e):t,f=s?qWe(o):KA(o,e,u),g=s?f:KA(c,e,u);let d=0,y;if(!f||!g)return{errors:[xl(e,t.start,i,Gl.cannotExtractRange)]};if(f.flags&16777216)return{errors:[xl(e,t.start,i,Gl.cannotExtractJSDoc)]};if(f.parent!==g.parent)return{errors:[xl(e,t.start,i,Gl.cannotExtractRange)]};if(f!==g){if(!Nke(f.parent))return{errors:[xl(e,t.start,i,Gl.cannotExtractRange)]};const J=[];for(const U of f.parent.statements){if(U===f||J.length){const $=F(U);if($)return{errors:$};J.push(U)}if(U===g)break}return J.length?{targetRange:{range:J,facts:d,thisNode:y}}:{errors:[xl(e,t.start,i,Gl.cannotExtractRange)]}}if(Hp(f)&&!f.expression)return{errors:[xl(e,t.start,i,Gl.cannotExtractRange)]};const S=k(f),T=w(S)||F(S);if(T)return{errors:T};return{targetRange:{range:SWe(S),facts:d,thisNode:y}};function k(J){if(Hp(J)){if(J.expression)return J.expression}else if(ac(J)||dl(J)){const U=ac(J)?J.declarationList.declarations:J.declarations;let $=0,j;for(const re of U)re.initializer&&($++,j=re.initializer);if($===1)return j}else if(hi(J)&&J.initializer)return J.initializer;return J}function w(J){if(Ie(Cl(J)?J.expression:J))return[yn(J,Gl.cannotExtractIdentifier)]}function P(J,U){let $=J;for(;$!==U;){if($.kind===172){Ms($)&&(d|=32);break}else if($.kind===169){cf($).kind===176&&(d|=32);break}else $.kind===174&&Ms($)&&(d|=32);$=$.parent}}function F(J){let U;if((ue=>{ue[ue.None=0]="None",ue[ue.Break=1]="Break",ue[ue.Continue=2]="Continue",ue[ue.Return=4]="Return"})(U||(U={})),E.assert(J.pos<=J.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),E.assert(!gd(J.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!Ei(J)&&!(hg(J)&&Ake(J))&&!Wle(J))return[yn(J,Gl.statementOrExpressionExpected)];if(J.flags&33554432)return[yn(J,Gl.cannotExtractAmbientBlock)];const $=Nl(J);$&&P(J,$);let j,re=4,R;if(Y(J),d&8){const ue=a_(J,!1,!1);(ue.kind===262||ue.kind===174&&ue.parent.kind===210||ue.kind===218)&&(d|=16)}return j;function Y(ue){if(j)return!0;if(yu(ue)){const H=ue.kind===260?ue.parent.parent:ue;if(Rn(H,32))return(j||(j=[])).push(yn(ue,Gl.cannotExtractExportedEntity)),!0}switch(ue.kind){case 272:return(j||(j=[])).push(yn(ue,Gl.cannotExtractImport)),!0;case 277:return(j||(j=[])).push(yn(ue,Gl.cannotExtractExportedEntity)),!0;case 108:if(ue.parent.kind===213){const H=Nl(ue);if(H===void 0||H.pos=t.start+t.length)return(j||(j=[])).push(yn(ue,Gl.cannotExtractSuper)),!0}else d|=8,y=ue;break;case 219:Ss(ue,function H(q){if(g6(q))d|=8,y=ue;else{if($n(q)||As(q)&&!po(q))return!1;Ss(q,H)}});case 263:case 262:Ni(ue.parent)&&ue.parent.externalModuleIndicator===void 0&&(j||(j=[])).push(yn(ue,Gl.functionWillNotBeVisibleInTheNewScope));case 231:case 218:case 174:case 176:case 177:case 178:return!1}const pe=re;switch(ue.kind){case 245:re&=-5;break;case 258:re=0;break;case 241:ue.parent&&ue.parent.kind===258&&ue.parent.finallyBlock===ue&&(re=4);break;case 297:case 296:re|=1;break;default:Q0(ue,!1)&&(re|=3);break}switch(ue.kind){case 197:case 110:d|=8,y=ue;break;case 256:{const H=ue.label;(R||(R=[])).push(H.escapedText),Ss(ue,Y),R.pop();break}case 252:case 251:{const H=ue.label;H?bs(R,H.escapedText)||(j||(j=[])).push(yn(ue,Gl.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):re&(ue.kind===252?1:2)||(j||(j=[])).push(yn(ue,Gl.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 223:d|=4;break;case 229:d|=2;break;case 253:re&4?d|=1:(j||(j=[])).push(yn(ue,Gl.cannotExtractRangeContainingConditionalReturnStatement));break;default:Ss(ue,Y);break}re=pe}}}function bWe(e,t,n){const i=e.getStart(n);let s=t.getEnd();return n.text.charCodeAt(s)===59&&s++,{start:i,length:s-i}}function SWe(e){if(Ei(e))return[e];if(hg(e))return Cl(e.parent)?[e.parent]:e;if(Wle(e))return e}function jle(e){return po(e)?cz(e.body):fo(e)||Ni(e)||Zd(e)||$n(e)}function TWe(e){let t=d0(e.range)?va(e.range):e.range;if(e.facts&8&&!(e.facts&16)){const i=Nl(t);if(i){const s=Pr(t,fo);return s?[s,i]:[i]}}const n=[];for(;;)if(t=t.parent,t.kind===169&&(t=Pr(t,i=>fo(i)).parent),jle(t)&&(n.push(t),t.kind===312))return n}function xWe(e,t,n){const{scopes:i,readsAndWrites:{target:s,usagesPerScope:o,functionErrorsPerScope:c,exposedVariableDeclarations:u}}=Ble(e,t);return E.assert(!c[n].length,"The extraction went missing? How?"),t.cancellationToken.throwIfCancellationRequested(),NWe(s,i[n],o[n],u,e,t)}function kWe(e,t,n){const{scopes:i,readsAndWrites:{target:s,usagesPerScope:o,constantErrorsPerScope:c,exposedVariableDeclarations:u}}=Ble(e,t);E.assert(!c[n].length,"The extraction went missing? How?"),E.assert(u.length===0,"Extract constant accepted a range containing a variable declaration?"),t.cancellationToken.throwIfCancellationRequested();const f=ot(s)?s:s.statements[0].expression;return IWe(f,i[n],o[n],e.facts,t)}function CWe(e,t){const{scopes:n,readsAndWrites:{functionErrorsPerScope:i,constantErrorsPerScope:s}}=Ble(e,t);return n.map((c,u)=>{const f=EWe(c),g=PWe(c),d=fo(c)?DWe(c):$n(c)?wWe(c):AWe(c);let y,S;return d===1?(y=xg(ds(p.Extract_to_0_in_1_scope),[f,"global"]),S=xg(ds(p.Extract_to_0_in_1_scope),[g,"global"])):d===0?(y=xg(ds(p.Extract_to_0_in_1_scope),[f,"module"]),S=xg(ds(p.Extract_to_0_in_1_scope),[g,"module"])):(y=xg(ds(p.Extract_to_0_in_1),[f,d]),S=xg(ds(p.Extract_to_0_in_1),[g,d])),u===0&&!$n(c)&&(S=xg(ds(p.Extract_to_0_in_enclosing_scope),[g])),{functionExtraction:{description:y,errors:i[u]},constantExtraction:{description:S,errors:s[u]}}})}function Ble(e,t){const{file:n}=t,i=TWe(e),s=VWe(e,n),o=UWe(e,i,s,n,t.program.getTypeChecker(),t.cancellationToken);return{scopes:i,readsAndWrites:o}}function EWe(e){return fo(e)?"inner function":$n(e)?"method":"function"}function PWe(e){return $n(e)?"readonly field":"constant"}function DWe(e){switch(e.kind){case 176:return"constructor";case 218:case 262:return e.name?`function '${e.name.text}'`:sM;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:E.assertNever(e,`Unexpected scope kind ${e.kind}`)}}function wWe(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 AWe(e){return e.kind===268?`namespace '${e.parent.name.getText()}'`:e.externalModuleIndicator?0:1}function NWe(e,t,{usages:n,typeParameterUsages:i,substitutions:s},o,c,u){const f=u.program.getTypeChecker(),g=Fa(u.program.getCompilerOptions()),d=lu.createImportAdder(u.file,u.program,u.preferences,u.host),y=t.getSourceFile(),S=_S($n(t)?"newMethod":"newFunction",y),T=Hr(t),k=I.createIdentifier(S);let w;const P=[],F=[];let J;n.forEach((be,xe)=>{let De;if(!T){let ge=f.getTypeOfSymbolAtLocation(be.symbol,be.node);ge=f.getBaseTypeOfLiteralType(ge),De=lu.typeToAutoImportableTypeNode(f,d,ge,t,g,1)}const ft=I.createParameterDeclaration(void 0,void 0,xe,void 0,De);P.push(ft),be.usage===2&&(J||(J=[])).push(be),F.push(I.createIdentifier(xe))});const $=gs(i.values(),be=>({type:be,declaration:OWe(be,u.startPosition)})).sort(LWe),j=$.length===0?void 0:Ri($,({declaration:be})=>be),re=j!==void 0?j.map(be=>I.createTypeReferenceNode(be.name,void 0)):void 0;if(ot(e)&&!T){const be=f.getContextualType(e);w=f.typeToTypeNode(be,t,1)}const{body:R,returnValueProperty:Y}=RWe(e,o,J,s,!!(c.facts&1));U_(R);let ue;const pe=!!(c.facts&16);if($n(t)){const be=T?[]:[I.createModifier(123)];c.facts&32&&be.push(I.createModifier(126)),c.facts&4&&be.push(I.createModifier(134)),ue=I.createMethodDeclaration(be.length?be:void 0,c.facts&2?I.createToken(42):void 0,k,void 0,j,P,w,R)}else pe&&P.unshift(I.createParameterDeclaration(void 0,void 0,"this",void 0,f.typeToTypeNode(f.getTypeAtLocation(c.thisNode),t,1),void 0)),ue=I.createFunctionDeclaration(c.facts&4?[I.createToken(134)]:void 0,c.facts&2?I.createToken(42):void 0,k,j,P,w,R);const H=Kr.ChangeTracker.fromContext(u),q=(d0(c.range)?ka(c.range):c.range).end,ee=JWe(q,t);ee?H.insertNodeBefore(u.file,ee,ue,!0):H.insertNodeAtEndOfScope(u.file,t,ue),d.writeFixes(H);const oe=[],Se=MWe(t,c,S);pe&&F.unshift(I.createIdentifier("this"));let ae=I.createCallExpression(pe?I.createPropertyAccessExpression(Se,"call"):Se,re,F);if(c.facts&2&&(ae=I.createYieldExpression(I.createToken(42),ae)),c.facts&4&&(ae=I.createAwaitExpression(ae)),zle(e)&&(ae=I.createJsxExpression(void 0,ae)),o.length&&!J)if(E.assert(!Y,"Expected no returnValueProperty"),E.assert(!(c.facts&1),"Expected RangeFacts.HasReturn flag to be unset"),o.length===1){const be=o[0];oe.push(I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(Lo(be.name),void 0,Lo(be.type),ae)],be.parent.flags)))}else{const be=[],xe=[];let De=o[0].parent.flags,ft=!1;for(const Fe of o){be.push(I.createBindingElement(void 0,void 0,Lo(Fe.name)));const $e=f.typeToTypeNode(f.getBaseTypeOfLiteralType(f.getTypeAtLocation(Fe)),t,1);xe.push(I.createPropertySignature(void 0,Fe.symbol.name,void 0,$e)),ft=ft||Fe.type!==void 0,De=De&Fe.parent.flags}const ge=ft?I.createTypeLiteralNode(xe):void 0;ge&&Qr(ge,1),oe.push(I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(I.createObjectBindingPattern(be),void 0,ge,ae)],De)))}else if(o.length||J){if(o.length)for(const xe of o){let De=xe.parent.flags;De&2&&(De=De&-3|1),oe.push(I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(xe.symbol.name,void 0,me(xe.type))],De)))}Y&&oe.push(I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(Y,void 0,me(w))],1)));const be=Jle(o,J);Y&&be.unshift(I.createShorthandPropertyAssignment(Y)),be.length===1?(E.assert(!Y,"Shouldn't have returnValueProperty here"),oe.push(I.createExpressionStatement(I.createAssignment(be[0].name,ae))),c.facts&1&&oe.push(I.createReturnStatement())):(oe.push(I.createExpressionStatement(I.createAssignment(I.createObjectLiteralExpression(be),ae))),Y&&oe.push(I.createReturnStatement(I.createIdentifier(Y))))}else c.facts&1?oe.push(I.createReturnStatement(ae)):d0(c.range)?oe.push(I.createExpressionStatement(ae)):oe.push(ae);d0(c.range)?H.replaceNodeRangeWithNodes(u.file,va(c.range),ka(c.range),oe):H.replaceNodeWithNodes(u.file,c.range,oe);const K=H.getChanges(),ke=(d0(c.range)?va(c.range):c.range).getSourceFile().fileName,Oe=rN(K,ke,S,!1);return{renameFilename:ke,renameLocation:Oe,edits:K};function me(be){if(be===void 0)return;const xe=Lo(be);let De=xe;for(;Vb(De);)De=De.type;return _y(De)&&wn(De.types,ft=>ft.kind===157)?xe:I.createUnionTypeNode([xe,I.createKeywordTypeNode(157)])}}function IWe(e,t,{substitutions:n},i,s){const o=s.program.getTypeChecker(),c=t.getSourceFile(),u=Sn(e)&&!$n(t)&&!o.resolveName(e.name.text,e,111551,!1)&&!Pi(e.name)&&!v1(e.name)?e.name.text:_S($n(t)?"newProperty":"newLocal",c),f=Hr(t);let g=f||!o.isContextSensitive(e)?void 0:o.typeToTypeNode(o.getContextualType(e),t,1),d=jWe(Va(e),n);({variableType:g,initializer:d}=w(g,d)),U_(d);const y=Kr.ChangeTracker.fromContext(s);if($n(t)){E.assert(!f,"Cannot extract to a JS class");const P=[];P.push(I.createModifier(123)),i&32&&P.push(I.createModifier(126)),P.push(I.createModifier(148));const F=I.createPropertyDeclaration(P,u,void 0,g,d);let J=I.createPropertyAccessExpression(i&32?I.createIdentifier(t.name.getText()):I.createThis(),I.createIdentifier(u));zle(e)&&(J=I.createJsxExpression(void 0,J));const U=e.pos,$=zWe(U,t);y.insertNodeBefore(s.file,$,F,!0),y.replaceNode(s.file,e,J)}else{const P=I.createVariableDeclaration(u,void 0,g,d),F=FWe(e,t);if(F){y.insertNodeBefore(s.file,F,P);const J=I.createIdentifier(u);y.replaceNode(s.file,e,J)}else if(e.parent.kind===244&&t===Pr(e,jle)){const J=I.createVariableStatement(void 0,I.createVariableDeclarationList([P],2));y.replaceNode(s.file,e.parent,J)}else{const J=I.createVariableStatement(void 0,I.createVariableDeclarationList([P],2)),U=WWe(e,t);if(U.pos===0?y.insertNodeAtTopOfFile(s.file,J,!1):y.insertNodeBefore(s.file,U,J,!1),e.parent.kind===244)y.delete(s.file,e.parent);else{let $=I.createIdentifier(u);zle(e)&&($=I.createJsxExpression(void 0,$)),y.replaceNode(s.file,e,$)}}}const S=y.getChanges(),T=e.getSourceFile().fileName,k=rN(S,T,u,!0);return{renameFilename:T,renameLocation:k,edits:S};function w(P,F){if(P===void 0)return{variableType:P,initializer:F};if(!co(F)&&!po(F)||F.typeParameters)return{variableType:P,initializer:F};const J=o.getTypeAtLocation(e),U=Tm(o.getSignaturesOfType(J,0));if(!U)return{variableType:P,initializer:F};if(U.getTypeParameters())return{variableType:P,initializer:F};const $=[];let j=!1;for(const re of F.parameters)if(re.type)$.push(re);else{const R=o.getTypeAtLocation(re);R===o.getAnyType()&&(j=!0),$.push(I.updateParameterDeclaration(re,re.modifiers,re.dotDotDotToken,re.name,re.questionToken,re.type||o.typeToTypeNode(R,t,1),re.initializer))}if(j)return{variableType:P,initializer:F};if(P=void 0,po(F))F=I.updateArrowFunction(F,$p(e)?Lv(e):void 0,F.typeParameters,$,F.type||o.typeToTypeNode(U.getReturnType(),t,1),F.equalsGreaterThanToken,F.body);else{if(U&&U.thisParameter){const re=bl($);if(!re||Ie(re.name)&&re.name.escapedText!=="this"){const R=o.getTypeOfSymbolAtLocation(U.thisParameter,e);$.splice(0,0,I.createParameterDeclaration(void 0,void 0,"this",void 0,o.typeToTypeNode(R,t,1)))}}F=I.updateFunctionExpression(F,$p(e)?Lv(e):void 0,F.asteriskToken,F.name,F.typeParameters,$,F.type||o.typeToTypeNode(U.getReturnType(),t,1),F.body)}return{variableType:P,initializer:F}}}function FWe(e,t){let n;for(;e!==void 0&&e!==t;){if(hi(e)&&e.initializer===n&&dl(e.parent)&&e.parent.declarations.length>1)return e;n=e,e=e.parent}}function OWe(e,t){let n;const i=e.symbol;if(i&&i.declarations)for(const s of i.declarations)(n===void 0||s.pos0;if(Cs(e)&&!o&&i.size===0)return{body:I.createBlock(e.statements,!0),returnValueProperty:void 0};let c,u=!1;const f=I.createNodeArray(Cs(e)?e.statements.slice(0):[Ei(e)?e:I.createReturnStatement(Va(e))]);if(o||i.size){const d=Dr(f,g,Ei).slice();if(o&&!s&&Ei(e)){const y=Jle(t,n);y.length===1?d.push(I.createReturnStatement(y[0].name)):d.push(I.createReturnStatement(I.createObjectLiteralExpression(y)))}return{body:I.createBlock(d,!0),returnValueProperty:c}}else return{body:I.createBlock(f,!0),returnValueProperty:void 0};function g(d){if(!u&&Hp(d)&&o){const y=Jle(t,n);return d.expression&&(c||(c="__return"),y.unshift(I.createPropertyAssignment(c,qe(d.expression,g,ot)))),y.length===1?I.createReturnStatement(y[0].name):I.createReturnStatement(I.createObjectLiteralExpression(y))}else{const y=u;u=u||fo(d)||$n(d);const S=i.get(Oa(d).toString()),T=S?Lo(S):ur(d,g,void 0);return u=y,T}}}function jWe(e,t){return t.size?n(e):e;function n(i){const s=t.get(Oa(i).toString());return s?Lo(s):ur(i,n,void 0)}}function BWe(e){if(fo(e)){const t=e.body;if(Cs(t))return t.statements}else{if(Zd(e)||Ni(e))return e.statements;if($n(e))return e.members}return Ve}function JWe(e,t){return wn(BWe(t),n=>n.pos>=e&&fo(n)&&!sc(n))}function zWe(e,t){const n=t.members;E.assert(n.length>0,"Found no members");let i,s=!0;for(const o of n){if(o.pos>e)return i||n[0];if(s&&!xs(o)){if(i!==void 0)return o;s=!1}i=o}return i===void 0?E.fail():i}function WWe(e,t){E.assert(!$n(t));let n;for(let i=e;i!==t;i=i.parent)jle(i)&&(n=i);for(let i=(n||e).parent;;i=i.parent){if(Nke(i)){let s;for(const o of i.statements){if(o.pos>e.pos)break;s=o}return!s&&zC(i)?(E.assert(m3(i.parent.parent),"Grandparent isn't a switch statement"),i.parent.parent):E.checkDefined(s,"prevStatement failed to get set")}E.assert(i!==t,"Didn't encounter a block-like before encountering scope")}}function Jle(e,t){const n=nr(e,s=>I.createShorthandPropertyAssignment(s.symbol.name)),i=nr(t,s=>I.createShorthandPropertyAssignment(s.symbol.name));return n===void 0?i:i===void 0?n:n.concat(i)}function d0(e){return ts(e)}function VWe(e,t){return d0(e.range)?{pos:va(e.range).getStart(t),end:ka(e.range).getEnd()}:e.range}function UWe(e,t,n,i,s,o){const c=new Map,u=[],f=[],g=[],d=[],y=[],S=new Map,T=[];let k;const w=d0(e.range)?e.range.length===1&&Cl(e.range[0])?e.range[0].expression:void 0:e.range;let P;if(w===void 0){const ee=e.range,oe=va(ee).getStart(),Se=ka(ee).end;P=xl(i,oe,Se-oe,Gl.expressionExpected)}else s.getTypeAtLocation(w).flags&147456&&(P=yn(w,Gl.uselessConstantType));for(const ee of t){u.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),f.push(new Map),g.push([]);const oe=[];P&&oe.push(P),$n(ee)&&Hr(ee)&&oe.push(yn(ee,Gl.cannotExtractToJSClass)),po(ee)&&!Cs(ee.body)&&oe.push(yn(ee,Gl.cannotExtractToExpressionArrowFunction)),d.push(oe)}const F=new Map,J=d0(e.range)?I.createBlock(e.range):e.range,U=d0(e.range)?va(e.range):e.range,$=j(U);if(R(J),$&&!d0(e.range)&&!em(e.range)){const ee=s.getContextualType(e.range);re(ee)}if(c.size>0){const ee=new Map;let oe=0;for(let Se=U;Se!==void 0&&oe{u[oe].typeParameterUsages.set(K,ae)}),oe++),Pz(Se))for(const ae of G0(Se)){const K=s.getTypeAtLocation(ae);c.has(K.id.toString())&&ee.set(K.id.toString(),K)}E.assert(oe===t.length,"Should have iterated all scopes")}if(y.length){const ee=Ez(t[0],t[0].parent)?t[0]:Nm(t[0]);Ss(ee,pe)}for(let ee=0;ee0&&(oe.usages.size>0||oe.typeParameterUsages.size>0)){const K=d0(e.range)?e.range[0]:e.range;d[ee].push(yn(K,Gl.cannotAccessVariablesFromNestedScopes))}e.facts&16&&$n(t[ee])&&g[ee].push(yn(e.thisNode,Gl.cannotExtractFunctionsContainingThisToMethod));let Se=!1,ae;if(u[ee].usages.forEach(K=>{K.usage===2&&(Se=!0,K.symbol.flags&106500&&K.symbol.valueDeclaration&&R_(K.symbol.valueDeclaration,8)&&(ae=K.symbol.valueDeclaration))}),E.assert(d0(e.range)||T.length===0,"No variable declarations expected if something was extracted"),Se&&!d0(e.range)){const K=yn(e.range,Gl.cannotWriteInExpression);g[ee].push(K),d[ee].push(K)}else if(ae&&ee>0){const K=yn(ae,Gl.cannotExtractReadonlyPropertyInitializerOutsideConstructor);g[ee].push(K),d[ee].push(K)}else if(k){const K=yn(k,Gl.cannotExtractExportedEntity);g[ee].push(K),d[ee].push(K)}}return{target:J,usagesPerScope:u,functionErrorsPerScope:g,constantErrorsPerScope:d,exposedVariableDeclarations:T};function j(ee){return!!Pr(ee,oe=>Pz(oe)&&G0(oe).length!==0)}function re(ee){const oe=s.getSymbolWalker(()=>(o.throwIfCancellationRequested(),!0)),{visitedTypes:Se}=oe.walkType(ee);for(const ae of Se)ae.isTypeParameter()&&c.set(ae.id.toString(),ae)}function R(ee,oe=1){if($){const Se=s.getTypeAtLocation(ee);re(Se)}if(yu(ee)&&ee.symbol&&y.push(ee),nl(ee))R(ee.left,2),R(ee.right);else if(ate(ee))R(ee.operand,2);else if(Sn(ee)||ko(ee))Ss(ee,R);else if(Ie(ee)){if(!ee.parent||Xu(ee.parent)&&ee!==ee.parent.left||Sn(ee.parent)&&ee!==ee.parent.expression)return;Y(ee,oe,gg(ee))}else Ss(ee,R)}function Y(ee,oe,Se){const ae=ue(ee,oe,Se);if(ae)for(let K=0;K=oe)return K;if(F.set(K,oe),fe){for(const me of u)me.usages.get(ee.text)&&me.usages.set(ee.text,{usage:oe,symbol:ae,node:ee});return K}const ke=ae.getDeclarations(),Oe=ke&&wn(ke,me=>me.getSourceFile()===i);if(Oe&&!UA(n,Oe.getStart(),Oe.end)){if(e.facts&2&&oe===2){const me=yn(ee,Gl.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(const be of g)be.push(me);for(const be of d)be.push(me)}for(let me=0;meae.symbol===oe);if(Se)if(hi(Se)){const ae=Se.symbol.id.toString();S.has(ae)||(T.push(Se),S.set(ae,!0))}else k=k||Se}Ss(ee,pe)}function H(ee){return ee.parent&&k_(ee.parent)&&ee.parent.name===ee?s.getShorthandAssignmentValueSymbol(ee.parent):s.getSymbolAtLocation(ee)}function q(ee,oe,Se){if(!ee)return;const ae=ee.getDeclarations();if(ae&&ae.some(fe=>fe.parent===oe))return I.createIdentifier(ee.name);const K=q(ee.parent,oe,Se);if(K!==void 0)return Se?I.createQualifiedName(K,I.createIdentifier(ee.name)):I.createPropertyAccessExpression(K,ee.name)}}function qWe(e){return Pr(e,t=>t.parent&&Ake(t)&&!Zr(t.parent))}function Ake(e){const{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 Nke(e){switch(e.kind){case 241:case 312:case 268:case 296:return!0;default:return!1}}function zle(e){return Wle(e)||(Eg(e)||Xb(e)||u2(e))&&(Eg(e.parent)||u2(e.parent))}function Wle(e){return aa(e)&&e.parent&&em(e.parent)}var E6,P6,D6,Gl,Vle,HWe=wt({"src/services/refactors/extractSymbol.ts"(){qn(),Vm(),E6="Extract Symbol",P6={name:"Extract Constant",description:ds(p.Extract_constant),kind:"refactor.extract.constant"},D6={name:"Extract Function",description:ds(p.Extract_function),kind:"refactor.extract.function"},Dg(E6,{kinds:[P6.kind,D6.kind],getEditsForAction:wke,getAvailableActions:Dke}),(e=>{function t(n){return{message:n,code:0,category:3,key:n}}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")})(Gl||(Gl={})),Vle=(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))(Vle||{})}}),Ike={};vl(Ike,{Messages:()=>Gl,RangeFacts:()=>Vle,getRangeToExtract:()=>Rle,getRefactorActionsToExtractSymbol:()=>Dke,getRefactorEditsToExtractSymbol:()=>wke});var GWe=wt({"src/services/_namespaces/ts.refactor.extractSymbol.ts"(){HWe()}}),PM,j$,B$,$We=wt({"src/services/refactors/generateGetAccessorAndSetAccessor.ts"(){qn(),Vm(),PM="Generate 'get' and 'set' accessors",j$=ds(p.Generate_get_and_set_accessors),B$={name:PM,description:j$,kind:"refactor.rewrite.property.generateAccessors"},Dg(PM,{kinds:[B$.kind],getEditsForAction:function(t,n){if(!t.endPosition)return;const i=lu.getAccessorConvertiblePropertyAtPosition(t.file,t.program,t.startPosition,t.endPosition);E.assert(i&&!lh(i),"Expected applicable refactor info");const s=lu.generateAccessorFromProperty(t.file,t.program,t.startPosition,t.endPosition,t,n);if(!s)return;const o=t.file.fileName,c=i.renameAccessor?i.accessorName:i.fieldName,f=(Ie(c)?0:-1)+rN(s,o,c.text,rs(i.declaration));return{renameFilename:o,renameLocation:f,edits:s}},getAvailableActions(e){if(!e.endPosition)return Ve;const t=lu.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition,e.triggerReason==="invoked");return t?lh(t)?e.preferences.provideRefactorNotApplicableReason?[{name:PM,description:j$,actions:[{...B$,notApplicableReason:t.error}]}]:Ve:[{name:PM,description:j$,actions:[B$]}]:Ve}})}}),XWe={},QWe=wt({"src/services/_namespaces/ts.refactor.generateGetAccessorAndSetAccessor.ts"(){$We()}});function YWe(e){const t=Fke(e);if(t&&!lh(t))return{renameFilename:void 0,renameLocation:void 0,edits:Kr.ChangeTracker.with(e,i=>KWe(e.file,i,t.declaration,t.returnTypeNode))}}function ZWe(e){const t=Fke(e);return t?lh(t)?e.preferences.provideRefactorNotApplicableReason?[{name:DM,description:J$,actions:[{...wM,notApplicableReason:t.error}]}]:Ve:[{name:DM,description:J$,actions:[wM]}]:Ve}function KWe(e,t,n,i){const s=qa(n,22,e),o=po(n)&&s===void 0,c=o?va(n.parameters):s;c&&(o&&(t.insertNodeBefore(e,c,I.createToken(21)),t.insertNodeAfter(e,c,I.createToken(22))),t.insertNodeAt(e,c.end,i,{prefix:": "}))}function Fke(e){if(Hr(e.file)||!$1(wM.kind,e.kind))return;const t=u_(e.file,e.startPosition),n=Pr(t,c=>Cs(c)||c.parent&&po(c.parent)&&(c.kind===39||c.parent.body===c)?"quit":eVe(c));if(!n||!n.body||n.type)return{error:ds(p.Return_type_must_be_inferred_from_a_function)};const i=e.program.getTypeChecker(),s=tVe(i,n);if(!s)return{error:ds(p.Could_not_determine_function_return_type)};const o=i.typeToTypeNode(s,n,1);if(o)return{declaration:n,returnTypeNode:o}}function eVe(e){switch(e.kind){case 262:case 218:case 219:case 174:return!0;default:return!1}}function tVe(e,t){if(e.isImplementationOfOverload(t)){const i=e.getTypeAtLocation(t).getCallSignatures();if(i.length>1)return e.getUnionType(Ri(i,s=>s.getReturnType()))}const n=e.getSignatureFromDeclaration(t);if(n)return e.getReturnTypeOfSignature(n)}var DM,J$,wM,rVe=wt({"src/services/refactors/inferFunctionReturnType.ts"(){qn(),Vm(),DM="Infer function return type",J$=ds(p.Infer_function_return_type),wM={name:DM,description:J$,kind:"refactor.rewrite.function.returnType"},Dg(DM,{kinds:[wM.kind],getEditsForAction:YWe,getAvailableActions:ZWe})}}),nVe={},iVe=wt({"src/services/_namespaces/ts.refactor.inferFunctionReturnType.ts"(){rVe()}}),Fx={};vl(Fx,{addExportToChanges:()=>vle,addExports:()=>mle,addNewFileToTsconfig:()=>ule,addOrRemoveBracesToArrowFunction:()=>yze,containsJsx:()=>Sle,convertArrowFunctionOrFunctionExpression:()=>Aze,convertParamsToDestructuredObject:()=>Xze,convertStringOrTemplateLiteral:()=>sWe,convertToOptionalChainExpression:()=>yWe,createNewFileName:()=>ble,createOldFileImportsFromTargetFile:()=>dle,deleteMovedStatements:()=>yM,deleteUnusedImports:()=>gle,deleteUnusedOldImports:()=>_le,doChangeNamedToNamespaceOrDefault:()=>zxe,extractSymbol:()=>Ike,filterImport:()=>gN,forEachImportInStatement:()=>mN,generateGetAccessorAndSetAccessor:()=>XWe,getApplicableRefactors:()=>gJe,getEditsForRefactor:()=>hJe,getStatementsToMove:()=>hN,getTopLevelDeclarationStatement:()=>C$,getUsageInfo:()=>bM,inferFunctionReturnType:()=>nVe,isRefactorErrorInfo:()=>lh,isTopLevelDeclaration:()=>SM,makeImportOrRequire:()=>vM,moduleSpecifierFromImport:()=>dN,nameOfTopLevelDeclaration:()=>yle,refactorKindBeginsWith:()=>$1,registerRefactor:()=>Dg,updateImportsInOtherFiles:()=>fle});var Vm=wt({"src/services/_namespaces/ts.refactor.ts"(){Lxe(),kJe(),wJe(),RJe(),jJe(),JJe(),UJe(),_ze(),vze(),Nze(),Qze(),aWe(),vWe(),GWe(),QWe(),iVe()}});function Oke(e,t,n,i){const s=Ule(e,t,n,i);E.assert(s.spans.length%3===0);const o=s.spans,c=[];for(let u=0;u{s.push(c.getStart(t),c.getWidth(t),(u+1<<8)+f)},i),s}function aVe(e,t,n,i,s){const o=e.getTypeChecker();let c=!1;function u(f){switch(f.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 219:s.throwIfCancellationRequested()}if(!f||!B7(n,f.pos,f.getFullWidth())||f.getFullWidth()===0)return;const g=c;if((Eg(f)||Xb(f))&&(c=!0),h3(f)&&(c=!1),Ie(f)&&!c&&!uVe(f)&&!ZE(f.escapedText)){let d=o.getSymbolAtLocation(f);if(d){d.flags&2097152&&(d=o.getAliasedSymbol(d));let y=oVe(d,oS(f));if(y!==void 0){let S=0;f.parent&&(Ea(f.parent)||$le.get(f.parent.kind)===y)&&f.parent.name===f&&(S=1),y===6&&Mke(f)&&(y=9),y=cVe(o,f,y);const T=d.valueDeclaration;if(T){const k=y1(T),w=Gh(T);k&256&&(S|=2),k&1024&&(S|=4),y!==0&&y!==2&&(k&8||w&2||d.getFlags()&8)&&(S|=8),(y===7||y===10)&&lVe(T,t)&&(S|=32),e.isSourceFileDefaultLibrary(T.getSourceFile())&&(S|=16)}else d.declarations&&d.declarations.some(k=>e.isSourceFileDefaultLibrary(k.getSourceFile()))&&(S|=16);i(f,y,S)}}}Ss(f,u),c=g}u(t)}function oVe(e,t){const n=e.getFlags();if(n&32)return 0;if(n&384)return 1;if(n&524288)return 5;if(n&64){if(t&2)return 2}else if(n&262144)return 4;let i=e.valueDeclaration||e.declarations&&e.declarations[0];return i&&Ea(i)&&(i=Lke(i)),i&&$le.get(i.kind)}function cVe(e,t,n){if(n===7||n===9||n===6){const i=e.getTypeAtLocation(t);if(i){const s=o=>o(i)||i.isUnion()&&i.types.some(o);if(n!==6&&s(o=>o.getConstructSignatures().length>0))return 0;if(s(o=>o.getCallSignatures().length>0)&&!s(o=>o.getProperties().length>0)||_Ve(t))return n===9?11:10}}return n}function lVe(e,t){return Ea(e)&&(e=Lke(e)),hi(e)?(!Ni(e.parent.parent.parent)||f2(e.parent))&&e.getSourceFile()===t:$c(e)?!Ni(e.parent)&&e.getSourceFile()===t:!1}function Lke(e){for(;;)if(Ea(e.parent.parent))e=e.parent.parent;else return e.parent.parent}function uVe(e){const t=e.parent;return t&&(Rm(t)||x_(t)||my(t))}function _Ve(e){for(;Mke(e);)e=e.parent;return Rs(e.parent)&&e.parent.expression===e}function Mke(e){return Xu(e.parent)&&e.parent.right===e||Sn(e.parent)&&e.parent.name===e}var qle,Hle,Gle,$le,Rke=wt({"src/services/classifier2020.ts"(){qn(),qle=(e=>(e[e.typeOffset=8]="typeOffset",e[e.modifierMask=255]="modifierMask",e))(qle||{}),Hle=(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))(Hle||{}),Gle=(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))(Gle||{}),$le=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 jke(e,t,n,i){const s=XD(e)?new q$(e,t,n):e===80?new G$(80,t,n):e===81?new $$(81,t,n):new Zle(e,t,n);return s.parent=i,s.flags=i.flags&101441536,s}function fVe(e,t){if(!XD(e.kind))return Ve;const n=[];if(t5(e))return e.forEachChild(c=>{n.push(c)}),n;xu.setText((t||e.getSourceFile()).text);let i=e.pos;const s=c=>{AM(n,i,c.pos,e),n.push(c),i=c.end},o=c=>{AM(n,i,c.pos,e),n.push(pVe(c,e)),i=c.end};return er(e.jsDoc,s),i=e.pos,e.forEachChild(s,o),AM(n,i,e.end,e),xu.setText(void 0),n}function AM(e,t,n,i){for(xu.resetTokenState(t);tt.tagName.text==="inheritDoc"||t.tagName.text==="inheritdoc")}function z$(e,t){if(!e)return Ve;let n=Q1.getJsDocTagsFromDeclarations(e,t);if(t&&(n.length===0||e.some(Bke))){const i=new Set;for(const s of e){const o=Jke(t,s,c=>{var u;if(!i.has(c))return i.add(c),s.kind===177||s.kind===178?c.getContextualJsDocTags(s,t):((u=c.declarations)==null?void 0:u.length)===1?c.getJsDocTags():void 0});o&&(n=[...o,...n])}}return n}function NM(e,t){if(!e)return Ve;let n=Q1.getJsDocCommentsFromDeclarations(e,t);if(t&&(n.length===0||e.some(Bke))){const i=new Set;for(const s of e){const o=Jke(t,s,c=>{if(!i.has(c))return i.add(c),s.kind===177||s.kind===178?c.getContextualDocumentationComment(s,t):c.getDocumentationComment(t)});o&&(n=n.length===0?o.slice():o.concat(S6(),n))}}return n}function Jke(e,t,n){var i;const s=((i=t.parent)==null?void 0:i.kind)===176?t.parent.parent:t.parent;if(!s)return;const o=Bc(t);return $o(kE(s),c=>{const u=e.getTypeAtLocation(c),f=o&&u.symbol?e.getTypeOfSymbol(u.symbol):u,g=e.getPropertyOfType(f,t.symbol.name);return g?n(g):void 0})}function dVe(){return{getNodeConstructor:()=>q$,getTokenConstructor:()=>Zle,getIdentifierConstructor:()=>G$,getPrivateIdentifierConstructor:()=>$$,getSourceFileConstructor:()=>Hke,getSymbolConstructor:()=>Vke,getTypeConstructor:()=>Uke,getSignatureConstructor:()=>qke,getSourceMapSourceConstructor:()=>Gke}}function xN(e){let t=!0;for(const i in e)if(Za(e,i)&&!zke(i)){t=!1;break}if(t)return e;const n={};for(const i in e)if(Za(e,i)){const s=zke(i)?i:i.charAt(0).toLowerCase()+i.substr(1);n[s]=e[i]}return n}function zke(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function kN(e){return e?nr(e,t=>t.text).join(""):""}function IM(){return{target:1,jsx:1}}function W$(){return lu.getSupportedErrorCodes()}function Wke(e,t,n){e.version=n,e.scriptSnapshot=t}function FM(e,t,n,i,s,o){const c=Hw(e,y6(t),n,s,o);return Wke(c,t,i),c}function V$(e,t,n,i,s){if(i&&n!==e.version){let c;const u=i.span.start!==0?e.text.substr(0,i.span.start):"",f=bc(i.span)!==e.text.length?e.text.substr(bc(i.span)):"";if(i.newLength===0)c=u&&f?u+f:u||f;else{const d=t.getText(i.span.start,i.span.start+i.newLength);c=u&&f?u+d+f:u?u+d:d+f}const g=tU(e,c,i,s);return Wke(g,t,n),g.nameTable=void 0,e!==g&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),g}const o={languageVersion:e.languageVersion,impliedNodeFormat:e.impliedNodeFormat,setExternalModuleIndicator:e.setExternalModuleIndicator,jsDocParsingMode:e.jsDocParsingMode};return FM(e.fileName,t,o,n,!0,e.scriptKind)}function Xle(e,t=Ice(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory()),n){var i;let s;n===void 0?s=0:typeof n=="boolean"?s=n?2:0:s=n;const o=new $ke(e);let c,u,f=0;const g=e.getCancellationToken?new Qke(e.getCancellationToken()):Xke,d=e.getCurrentDirectory();Zre((i=e.getLocalizedDiagnosticMessages)==null?void 0:i.bind(e));function y(A){e.log&&e.log(A)}const S=SC(e),T=nu(S),k=Hce({useCaseSensitiveFileNames:()=>S,getCurrentDirectory:()=>d,getProgram:J,fileExists:Os(e,e.fileExists),readFile:Os(e,e.readFile),getDocumentPositionMapper:Os(e,e.getDocumentPositionMapper),getSourceFileLike:Os(e,e.getSourceFileLike),log:y});function w(A){const le=c.getSourceFile(A);if(!le){const V=new Error(`Could not find source file: '${A}'.`);throw V.ProgramFiles=c.getSourceFiles().map(ce=>ce.fileName),V}return le}function P(){e.updateFromProject&&!e.updateFromProjectInProgress?e.updateFromProject():F()}function F(){var A,le,V;if(E.assert(s!==2),e.getProjectVersion){const _s=e.getProjectVersion();if(_s){if(u===_s&&!((A=e.hasChangedAutomaticTypeDirectiveNames)!=null&&A.call(e)))return;u=_s}}const ce=e.getTypeRootsVersion?e.getTypeRootsVersion():0;f!==ce&&(y("TypeRoots version has changed; provide new program"),c=void 0,f=ce);const Ne=e.getScriptFileNames().slice(),Ce=e.getCompilationSettings()||IM(),_t=e.hasInvalidatedResolutions||fd,Tt=Os(e,e.hasInvalidatedLibResolutions)||fd,Jt=Os(e,e.hasChangedAutomaticTypeDirectiveNames),ar=(le=e.getProjectReferences)==null?void 0:le.call(e);let Er,Nr={getSourceFile:uo,getSourceFileByPath:kc,getCancellationToken:()=>g,getCanonicalFileName:T,useCaseSensitiveFileNames:()=>S,getNewLine:()=>t0(Ce),getDefaultLibFileName:_s=>e.getDefaultLibFileName(_s),writeFile:Ca,getCurrentDirectory:()=>d,fileExists:_s=>e.fileExists(_s),readFile:_s=>e.readFile&&e.readFile(_s),getSymlinkCache:Os(e,e.getSymlinkCache),realpath:Os(e,e.realpath),directoryExists:_s=>dd(_s,e),getDirectories:_s=>e.getDirectories?e.getDirectories(_s):[],readDirectory:(_s,Ra,mo,Uo,Ol)=>(E.checkDefined(e.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),e.readDirectory(_s,Ra,mo,Uo,Ol)),onReleaseOldSourceFile:pr,onReleaseParsedCommandLine:is,hasInvalidatedResolutions:_t,hasInvalidatedLibResolutions:Tt,hasChangedAutomaticTypeDirectiveNames:Jt,trace:Os(e,e.trace),resolveModuleNames:Os(e,e.resolveModuleNames),getModuleResolutionCache:Os(e,e.getModuleResolutionCache),createHash:Os(e,e.createHash),resolveTypeReferenceDirectives:Os(e,e.resolveTypeReferenceDirectives),resolveModuleNameLiterals:Os(e,e.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:Os(e,e.resolveTypeReferenceDirectiveReferences),resolveLibrary:Os(e,e.resolveLibrary),useSourceOfProjectReferenceRedirect:Os(e,e.useSourceOfProjectReferenceRedirect),getParsedCommandLine:ci,jsDocParsingMode:e.jsDocParsingMode};const fi=Nr.getSourceFile,{getSourceFileWithCache:oi}=CA(Nr,_s=>No(_s,d,T),(..._s)=>fi.call(Nr,..._s));Nr.getSourceFile=oi,(V=e.setCompilerHost)==null||V.call(e,Nr);const Wr={useCaseSensitiveFileNames:S,fileExists:_s=>Nr.fileExists(_s),readFile:_s=>Nr.readFile(_s),directoryExists:_s=>Nr.directoryExists(_s),getDirectories:_s=>Nr.getDirectories(_s),realpath:Nr.realpath,readDirectory:(..._s)=>Nr.readDirectory(..._s),trace:Nr.trace,getCurrentDirectory:Nr.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:Ca},Cn=t.getKeyForCompilationSettings(Ce);let Qi=new Set;if(zq(c,Ne,Ce,(_s,Ra)=>e.getScriptVersion(Ra),_s=>Nr.fileExists(_s),_t,Tt,Jt,ci,ar)){Nr=void 0,Er=void 0,Qi=void 0;return}c=q9({rootNames:Ne,options:Ce,host:Nr,oldProgram:c,projectReferences:ar}),Nr=void 0,Er=void 0,Qi=void 0,k.clearCache(),c.getTypeChecker();return;function ci(_s){const Ra=No(_s,d,T),mo=Er==null?void 0:Er.get(Ra);if(mo!==void 0)return mo||void 0;const Uo=e.getParsedCommandLine?e.getParsedCommandLine(_s):In(_s);return(Er||(Er=new Map)).set(Ra,Uo||!1),Uo}function In(_s){const Ra=uo(_s,100);if(Ra)return Ra.path=No(_s,d,T),Ra.resolvedPath=Ra.path,Ra.originalFileName=Ra.fileName,Yw(Ra,Wr,Xi(Un(_s),d),void 0,Xi(_s,d))}function is(_s,Ra,mo){var Uo;e.getParsedCommandLine?(Uo=e.onReleaseParsedCommandLine)==null||Uo.call(e,_s,Ra,mo):Ra&&pr(Ra.sourceFile,mo)}function pr(_s,Ra){const mo=t.getKeyForCompilationSettings(Ra);t.releaseDocumentWithKey(_s.resolvedPath,mo,_s.scriptKind,_s.impliedNodeFormat)}function uo(_s,Ra,mo,Uo){return kc(_s,No(_s,d,T),Ra,mo,Uo)}function kc(_s,Ra,mo,Uo,Ol){E.assert(Nr,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");const $i=e.getScriptSnapshot(_s);if(!$i)return;const zs=PG(_s,e),Ll=e.getScriptVersion(_s);if(!Ol){const Qa=c&&c.getSourceFileByPath(Ra);if(Qa){if(zs===Qa.scriptKind||Qi.has(Qa.resolvedPath))return t.updateDocumentWithKey(_s,Ra,e,Cn,$i,Ll,zs,mo);t.releaseDocumentWithKey(Qa.resolvedPath,t.getKeyForCompilationSettings(c.getCompilerOptions()),Qa.scriptKind,Qa.impliedNodeFormat),Qi.add(Qa.resolvedPath)}}return t.acquireDocumentWithKey(_s,Ra,e,Cn,$i,Ll,zs,mo)}}function J(){if(s===2){E.assert(c===void 0);return}return P(),c}function U(){var A;return(A=e.getPackageJsonAutoImportProvider)==null?void 0:A.call(e)}function $(A,le){const V=c.getTypeChecker(),ce=Ne();if(!ce)return!1;for(const _t of A)for(const Tt of _t.references){const Jt=Ce(Tt);if(E.assertIsDefined(Jt),le.has(Tt)||lo.isDeclarationOfSymbol(Jt,ce)){le.add(Tt),Tt.isDefinition=!0;const ar=JL(Tt,k,Os(e,e.fileExists));ar&&le.add(ar)}else Tt.isDefinition=!1}return!0;function Ne(){for(const _t of A)for(const Tt of _t.references){if(le.has(Tt)){const ar=Ce(Tt);return E.assertIsDefined(ar),V.getSymbolAtLocation(ar)}const Jt=JL(Tt,k,Os(e,e.fileExists));if(Jt&&le.has(Jt)){const ar=Ce(Jt);if(ar)return V.getSymbolAtLocation(ar)}}}function Ce(_t){const Tt=c.getSourceFile(_t.fileName);if(!Tt)return;const Jt=u_(Tt,_t.textSpan.start);return lo.Core.getAdjustedNode(Jt,{use:lo.FindReferencesUse.References})}}function j(){if(c){const A=t.getKeyForCompilationSettings(c.getCompilerOptions());er(c.getSourceFiles(),le=>t.releaseDocumentWithKey(le.resolvedPath,A,le.scriptKind,le.impliedNodeFormat)),c=void 0}}function re(){j(),e=void 0}function R(A){return P(),c.getSyntacticDiagnostics(w(A),g).slice()}function Y(A){P();const le=w(A),V=c.getSemanticDiagnostics(le,g);if(!Gf(c.getCompilerOptions()))return V.slice();const ce=c.getDeclarationDiagnostics(le,g);return[...V,...ce]}function ue(A){return P(),s$(w(A),c,g)}function pe(){return P(),[...c.getOptionsDiagnostics(g),...c.getGlobalDiagnostics(g)]}function H(A,le,V=Zf,ce){const Ne={...V,includeCompletionsForModuleExports:V.includeCompletionsForModuleExports||V.includeExternalModuleExports,includeCompletionsWithInsertText:V.includeCompletionsWithInsertText||V.includeInsertTextCompletions};return P(),Bx.getCompletionsAtPosition(e,c,y,w(A),le,Ne,V.triggerCharacter,V.triggerKind,g,ce&&al.getFormatContext(ce,e),V.includeSymbol)}function q(A,le,V,ce,Ne,Ce=Zf,_t){return P(),Bx.getCompletionEntryDetails(c,y,w(A),le,{name:V,source:Ne,data:_t},e,ce&&al.getFormatContext(ce,e),Ce,g)}function ee(A,le,V,ce,Ne=Zf){return P(),Bx.getCompletionEntrySymbol(c,y,w(A),le,{name:V,source:ce},e,Ne)}function oe(A,le){P();const V=w(A),ce=u_(V,le);if(ce===V)return;const Ne=c.getTypeChecker(),Ce=Se(ce),_t=yVe(Ce,Ne);if(!_t||Ne.isUnknownSymbol(_t)){const Nr=ae(V,Ce,le)?Ne.getTypeAtLocation(Ce):void 0;return Nr&&{kind:"",kindModifiers:"",textSpan:Zu(Ce,V),displayParts:Ne.runWithCancellationToken(g,fi=>eN(fi,Nr,cS(Ce))),documentation:Nr.symbol?Nr.symbol.getDocumentationComment(Ne):void 0,tags:Nr.symbol?Nr.symbol.getJsDocTags(Ne):void 0}}const{symbolKind:Tt,displayParts:Jt,documentation:ar,tags:Er}=Ne.runWithCancellationToken(g,Nr=>m0.getSymbolDisplayPartsDocumentationAndSymbolKind(Nr,_t,V,cS(Ce),Ce));return{kind:Tt,kindModifiers:m0.getSymbolModifiers(Ne,_t),textSpan:Zu(Ce,V),displayParts:Jt,documentation:ar,tags:Er}}function Se(A){return a2(A.parent)&&A.pos===A.parent.pos?A.parent.expression:RC(A.parent)&&A.pos===A.parent.pos||rC(A.parent)&&A.parent.name===A||yd(A.parent)?A.parent:A}function ae(A,le,V){switch(le.kind){case 80:return!$H(le)&&!XH(le)&&!Qg(le.parent);case 211:case 166:return!l0(A,V);case 110:case 197:case 108:case 202:return!0;case 236:return rC(le);default:return!1}}function K(A,le,V,ce){return P(),L6.getDefinitionAtPosition(c,w(A),le,V,ce)}function fe(A,le){return P(),L6.getDefinitionAndBoundSpan(c,w(A),le)}function ke(A,le){return P(),L6.getTypeDefinitionAtPosition(c.getTypeChecker(),w(A),le)}function Oe(A,le){return P(),lo.getImplementationsAtPosition(c,g,c.getSourceFiles(),w(A),le)}function me(A,le,V){const ce=Hs(A);E.assert(V.some(_t=>Hs(_t)===ce)),P();const Ne=Ri(V,_t=>c.getSourceFile(_t)),Ce=w(A);return cM.getDocumentHighlights(c,g,Ce,le,Ne)}function be(A,le,V,ce,Ne){P();const Ce=w(A),_t=EL(u_(Ce,le));if(aR.nodeIsEligibleForRename(_t))if(Ie(_t)&&(Kd(_t.parent)||l2(_t.parent))&&vC(_t.escapedText)){const{openingElement:Tt,closingElement:Jt}=_t.parent.parent;return[Tt,Jt].map(ar=>{const Er=Zu(ar.tagName,Ce);return{fileName:Ce.fileName,textSpan:Er,...lo.toContextSpan(Er,Ce,ar.parent)}})}else{const Tt=wf(Ce,Ne??Zf),Jt=typeof Ne=="boolean"?Ne:Ne==null?void 0:Ne.providePrefixAndSuffixTextForRename;return De(_t,le,{findInStrings:V,findInComments:ce,providePrefixAndSuffixTextForRename:Jt,use:lo.FindReferencesUse.Rename},(ar,Er,Nr)=>lo.toRenameLocation(ar,Er,Nr,Jt||!1,Tt))}}function xe(A,le){return P(),De(u_(w(A),le),le,{use:lo.FindReferencesUse.References},lo.toReferenceEntry)}function De(A,le,V,ce){P();const Ne=V&&V.use===lo.FindReferencesUse.Rename?c.getSourceFiles().filter(Ce=>!c.isSourceFileDefaultLibrary(Ce)):c.getSourceFiles();return lo.findReferenceOrRenameEntries(c,g,Ne,A,le,V,ce)}function ft(A,le){return P(),lo.findReferencedSymbols(c,g,c.getSourceFiles(),w(A),le)}function ge(A){return P(),lo.Core.getReferencesForFileName(A,c,c.getSourceFiles()).map(lo.toReferenceEntry)}function Fe(A,le,V,ce=!1,Ne=!1){P();const Ce=V?[w(V)]:c.getSourceFiles();return uxe(Ce,c.getTypeChecker(),g,A,le,ce,Ne)}function $e(A,le,V){P();const ce=w(A),Ne=e.getCustomTransformers&&e.getCustomTransformers();return zae(c,ce,!!le,g,Ne,V)}function Pt(A,le,{triggerReason:V}=Zf){P();const ce=w(A);return JN.getSignatureHelpItems(c,ce,le,V,g)}function at(A){return o.getCurrentSourceFile(A)}function Je(A,le,V){const ce=o.getCurrentSourceFile(A),Ne=u_(ce,le);if(Ne===ce)return;switch(Ne.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 Ce=Ne;for(;;)if(m6(Ce)||zoe(Ce))Ce=Ce.parent;else if(YH(Ce))if(Ce.parent.parent.kind===267&&Ce.parent.parent.body===Ce.parent)Ce=Ce.parent.parent.name;else break;else break;return Rc(Ce.getStart(),Ne.getEnd())}function pt(A,le){const V=o.getCurrentSourceFile(A);return Q$.spanInSourceFileAtLocation(V,le)}function zt(A){return dxe(o.getCurrentSourceFile(A),g)}function Vt(A){return mxe(o.getCurrentSourceFile(A),g)}function hr(A,le,V){return P(),(V||"original")==="2020"?Oke(c,g,w(A),le):Ace(c.getTypeChecker(),g,w(A),c.getClassifiableNames(),le)}function Lr(A,le,V){return P(),(V||"original")==="original"?ZG(c.getTypeChecker(),g,w(A),c.getClassifiableNames(),le):Ule(c,g,w(A),le)}function tr(A,le){return Nce(g,o.getCurrentSourceFile(A),le)}function jt(A,le){return KG(g,o.getCurrentSourceFile(A),le)}function Rt(A){const le=o.getCurrentSourceFile(A);return HQ.collectElements(le,g)}const Kn=new Map(Object.entries({19:20,21:22,23:24,32:30}));Kn.forEach((A,le)=>Kn.set(A.toString(),Number(le)));function Ji(A,le){const V=o.getCurrentSourceFile(A),ce=h6(V,le),Ne=ce.getStart(V)===le?Kn.get(ce.kind.toString()):void 0,Ce=Ne&&qa(ce.parent,Ne,V);return Ce?[Zu(ce,V),Zu(Ce,V)].sort((_t,Tt)=>_t.start-Tt.start):Ve}function yi(A,le,V){let ce=To();const Ne=xN(V),Ce=o.getCurrentSourceFile(A);y("getIndentationAtPosition: getCurrentSourceFile: "+(To()-ce)),ce=To();const _t=al.SmartIndenter.getIndentation(le,Ce,Ne);return y("getIndentationAtPosition: computeIndentation : "+(To()-ce)),_t}function os(A,le,V,ce){const Ne=o.getCurrentSourceFile(A);return al.formatSelection(le,V,Ne,al.getFormatContext(xN(ce),e))}function yr(A,le){return al.formatDocument(o.getCurrentSourceFile(A),al.getFormatContext(xN(le),e))}function _i(A,le,V,ce){const Ne=o.getCurrentSourceFile(A),Ce=al.getFormatContext(xN(ce),e);if(!l0(Ne,le))switch(V){case"{":return al.formatOnOpeningCurly(le,Ne,Ce);case"}":return al.formatOnClosingCurly(le,Ne,Ce);case";":return al.formatOnSemicolon(le,Ne,Ce);case` -`:return al.formatOnEnter(le,Ne,Ce)}return[]}function ln(A,le,V,ce,Ne,Ce=Zf){P();const _t=w(A),Tt=Rc(le,V),Jt=al.getFormatContext(Ne,e);return Zs(Nv(ce,Vh,wo),ar=>(g.throwIfCancellationRequested(),lu.getFixes({errorCode:ar,sourceFile:_t,span:Tt,program:c,host:e,cancellationToken:g,formatContext:Jt,preferences:Ce})))}function Ht(A,le,V,ce=Zf){P(),E.assert(A.type==="file");const Ne=w(A.fileName),Ce=al.getFormatContext(V,e);return lu.getAllFixes({fixId:le,sourceFile:Ne,program:c,host:e,cancellationToken:g,formatContext:Ce,preferences:ce})}function Ue(A,le,V=Zf){P(),E.assert(A.type==="file");const ce=w(A.fileName),Ne=al.getFormatContext(le,e),Ce=A.mode??(A.skipDestructiveCodeActions?"SortAndCombine":"All");return Yp.organizeImports(ce,Ne,e,c,V,Ce)}function Et(A,le,V,ce=Zf){return Oce(J(),A,le,e,al.getFormatContext(V,e),ce,k)}function fr(A,le){const V=typeof A=="string"?le:A;return ts(V)?Promise.all(V.map(ce=>Hn(ce))):Hn(V)}function Hn(A){const le=V=>No(V,d,T);return E.assertEqual(A.type,"install package"),e.installPackage?e.installPackage({fileName:le(A.file),packageName:A.packageName}):Promise.reject("Host does not implement `installPackage`")}function ei(A,le,V,ce){const Ne=ce?al.getFormatContext(ce,e).options:void 0;return Q1.getDocCommentTemplateAtPosition(f0(e,Ne),o.getCurrentSourceFile(A),le,V)}function Ii(A,le,V){if(V===60)return!1;const ce=o.getCurrentSourceFile(A);if(Dx(ce,le))return!1;if($oe(ce,le))return V===123;if(nG(ce,le))return!1;switch(V){case 39:case 34:case 96:return!l0(ce,le)}return!0}function ns(A,le){const V=o.getCurrentSourceFile(A),ce=Qc(le,V);if(!ce)return;const Ne=ce.kind===32&&Kd(ce.parent)?ce.parent.parent:ex(ce)&&Eg(ce.parent)?ce.parent:void 0;if(Ne&&tt(Ne))return{newText:``};const Ce=ce.kind===32&&dx(ce.parent)?ce.parent.parent:ex(ce)&&u2(ce.parent)?ce.parent:void 0;if(Ce&&yt(Ce))return{newText:""}}function Vs(A,le){const V=o.getCurrentSourceFile(A),ce=Qc(le,V);if(!ce||ce.parent.kind===312)return;const Ne="[a-zA-Z0-9:\\-\\._$]*";if(u2(ce.parent.parent)){const Ce=ce.parent.parent.openingFragment,_t=ce.parent.parent.closingFragment;if(Yk(Ce)||Yk(_t))return;const Tt=Ce.getStart(V)+1,Jt=_t.getStart(V)+2;return le!==Tt&&le!==Jt?void 0:{ranges:[{start:Tt,length:0},{start:Jt,length:0}],wordPattern:Ne}}else{const Ce=Pr(ce.parent,oi=>!!(Kd(oi)||l2(oi)));if(!Ce)return;E.assert(Kd(Ce)||l2(Ce),"tag should be opening or closing element");const _t=Ce.parent.openingElement,Tt=Ce.parent.closingElement,Jt=_t.tagName.getStart(V),ar=_t.tagName.end,Er=Tt.tagName.getStart(V),Nr=Tt.tagName.end;return Jt===_t.getStart(V)||Er===Tt.getStart(V)||ar===_t.getEnd()||Nr===Tt.getEnd()||!(Jt<=le&&le<=ar||Er<=le&&le<=Nr)||_t.tagName.getText(V)!==Tt.tagName.getText(V)?void 0:{ranges:[{start:Jt,length:ar-Jt},{start:Er,length:Nr-Er}],wordPattern:Ne}}}function _a(A,le){return{lineStarts:A.getLineStarts(),firstLine:A.getLineAndCharacterOfPosition(le.pos).line,lastLine:A.getLineAndCharacterOfPosition(le.end).line}}function cr(A,le,V){const ce=o.getCurrentSourceFile(A),Ne=[],{lineStarts:Ce,firstLine:_t,lastLine:Tt}=_a(ce,le);let Jt=V||!1,ar=Number.MAX_VALUE;const Er=new Map,Nr=new RegExp(/\S/),fi=wL(ce,Ce[_t]),oi=fi?"{/*":"//";for(let Wr=_t;Wr<=Tt;Wr++){const Cn=ce.text.substring(Ce[Wr],ce.getLineEndOfPosition(Ce[Wr])),Qi=Nr.exec(Cn);Qi&&(ar=Math.min(ar,Qi.index),Er.set(Wr.toString(),Qi.index),Cn.substr(Qi.index,oi.length)!==oi&&(Jt=V===void 0||V))}for(let Wr=_t;Wr<=Tt;Wr++){if(_t!==Tt&&Ce[Wr]===le.end)continue;const Cn=Er.get(Wr.toString());Cn!==void 0&&(fi?Ne.push(...br(A,{pos:Ce[Wr]+ar,end:ce.getLineEndOfPosition(Ce[Wr])},Jt,fi)):Jt?Ne.push({newText:oi,span:{length:0,start:Ce[Wr]+ar}}):ce.text.substr(Ce[Wr]+Cn,oi.length)===oi&&Ne.push({newText:"",span:{length:oi.length,start:Ce[Wr]+Cn}}))}return Ne}function br(A,le,V,ce){var Ne;const Ce=o.getCurrentSourceFile(A),_t=[],{text:Tt}=Ce;let Jt=!1,ar=V||!1;const Er=[];let{pos:Nr}=le;const fi=ce!==void 0?ce:wL(Ce,Nr),oi=fi?"{/*":"/*",Wr=fi?"*/}":"*/",Cn=fi?"\\{\\/\\*":"\\/\\*",Qi=fi?"\\*\\/\\}":"\\*\\/";for(;Nr<=le.end;){const pi=Tt.substr(Nr,oi.length)===oi?oi.length:0,ci=l0(Ce,Nr+pi);if(ci)fi&&(ci.pos--,ci.end++),Er.push(ci.pos),ci.kind===3&&Er.push(ci.end),Jt=!0,Nr=ci.end+1;else{const In=Tt.substring(Nr,le.end).search(`(${Cn})|(${Qi})`);ar=V!==void 0?V:ar||!ace(Tt,Nr,In===-1?le.end:Nr+In),Nr=In===-1?le.end+1:Nr+In+Wr.length}}if(ar||!Jt){((Ne=l0(Ce,le.pos))==null?void 0:Ne.kind)!==2&&B0(Er,le.pos,wo),B0(Er,le.end,wo);const pi=Er[0];Tt.substr(pi,oi.length)!==oi&&_t.push({newText:oi,span:{length:0,start:pi}});for(let ci=1;ci0?pi-Wr.length:0,In=Tt.substr(ci,Wr.length)===Wr?Wr.length:0;_t.push({newText:"",span:{length:oi.length,start:pi-In}})}return _t}function Le(A,le){const V=o.getCurrentSourceFile(A),{firstLine:ce,lastLine:Ne}=_a(V,le);return ce===Ne&&le.pos!==le.end?br(A,le,!0):cr(A,le,!0)}function rt(A,le){const V=o.getCurrentSourceFile(A),ce=[],{pos:Ne}=le;let{end:Ce}=le;Ne===Ce&&(Ce+=wL(V,Ne)?2:1);for(let _t=Ne;_t<=Ce;_t++){const Tt=l0(V,_t);if(Tt){switch(Tt.kind){case 2:ce.push(...cr(A,{end:Tt.end,pos:Tt.pos+1},!1));break;case 3:ce.push(...br(A,{end:Tt.end,pos:Tt.pos+1},!1))}_t=Tt.end+1}}return ce}function tt({openingElement:A,closingElement:le,parent:V}){return!B1(A.tagName,le.tagName)||Eg(V)&&B1(A.tagName,V.openingElement.tagName)&&tt(V)}function yt({closingFragment:A,parent:le}){return!!(A.flags&262144)||u2(le)&&yt(le)}function ne(A,le,V){const ce=o.getCurrentSourceFile(A),Ne=al.getRangeOfEnclosingComment(ce,le);return Ne&&(!V||Ne.kind===3)?by(Ne):void 0}function we(A,le){P();const V=w(A);g.throwIfCancellationRequested();const ce=V.text,Ne=[];if(le.length>0&&!Jt(V.fileName)){const ar=_t();let Er;for(;Er=ar.exec(ce);){g.throwIfCancellationRequested();const Nr=3;E.assert(Er.length===le.length+Nr);const fi=Er[1],oi=Er.index+fi.length;if(!l0(V,oi))continue;let Wr;for(let Qi=0;Qi"("+Ce(ci.text)+")").join("|")+")",Wr=/(?:$|\*\/)/.source,Cn=/(?:.*?)/.source,Qi="("+oi+Cn+")",pi=fi+Qi+Wr;return new RegExp(pi,"gim")}function Tt(ar){return ar>=97&&ar<=122||ar>=65&&ar<=90||ar>=48&&ar<=57}function Jt(ar){return ar.includes("/node_modules/")}}function et(A,le,V){return P(),aR.getRenameInfo(c,w(A),le,V||{})}function B(A,le,V,ce,Ne,Ce){const[_t,Tt]=typeof le=="number"?[le,void 0]:[le.pos,le.end];return{file:A,startPosition:_t,endPosition:Tt,program:J(),host:e,formatContext:al.getFormatContext(ce,e),cancellationToken:g,preferences:V,triggerReason:Ne,kind:Ce}}function Ge(A,le,V){return{file:A,program:J(),host:e,span:le,preferences:V,cancellationToken:g}}function mt(A,le){return XQ.getSmartSelectionRange(le,o.getCurrentSourceFile(A))}function Be(A,le,V=Zf,ce,Ne,Ce){P();const _t=w(A);return Fx.getApplicableRefactors(B(_t,le,V,Zf,ce,Ne),Ce)}function nt(A,le,V=Zf){P();const ce=w(A),Ne=E.checkDefined(c.getSourceFiles()),Ce=HE(A),_t=hN(B(ce,le,V,Zf)),Tt=Sle(_t==null?void 0:_t.all),Jt=Ri(Ne,ar=>{const Er=HE(ar.fileName);return!(c!=null&&c.isSourceFileFromExternalLibrary(ce))&&!(ce===w(ar.fileName)||Ce===".ts"&&Er===".d.ts"||Ce===".d.ts"&&Vi(wc(ar.fileName),"lib.")&&Er===".d.ts")&&(Ce===Er||(Ce===".tsx"&&Er===".ts"||Ce===".jsx"&&Er===".js")&&!Tt)?ar.fileName:void 0});return{newFileName:ble(ce,c,e,_t),files:Jt}}function Dt(A,le,V,ce,Ne,Ce=Zf,_t){P();const Tt=w(A);return Fx.getEditsForRefactor(B(Tt,V,Ce,le),ce,Ne,_t)}function ir(A,le){return le===0?{line:0,character:0}:k.toLineColumnOffset(A,le)}function Yt(A,le){P();const V=Ox.resolveCallHierarchyDeclaration(c,u_(w(A),le));return V&&jG(V,ce=>Ox.createCallHierarchyItem(c,ce))}function Kt(A,le){P();const V=w(A),ce=BG(Ox.resolveCallHierarchyDeclaration(c,le===0?V:u_(V,le)));return ce?Ox.getIncomingCalls(c,ce,g):[]}function W(A,le){P();const V=w(A),ce=BG(Ox.resolveCallHierarchyDeclaration(c,le===0?V:u_(V,le)));return ce?Ox.getOutgoingCalls(c,ce):[]}function Pe(A,le,V=Zf){P();const ce=w(A);return WQ.provideInlayHints(Ge(ce,le,V))}const St={dispose:re,cleanupSemanticCache:j,getSyntacticDiagnostics:R,getSemanticDiagnostics:Y,getSuggestionDiagnostics:ue,getCompilerOptionsDiagnostics:pe,getSyntacticClassifications:tr,getSemanticClassifications:hr,getEncodedSyntacticClassifications:jt,getEncodedSemanticClassifications:Lr,getCompletionsAtPosition:H,getCompletionEntryDetails:q,getCompletionEntrySymbol:ee,getSignatureHelpItems:Pt,getQuickInfoAtPosition:oe,getDefinitionAtPosition:K,getDefinitionAndBoundSpan:fe,getImplementationAtPosition:Oe,getTypeDefinitionAtPosition:ke,getReferencesAtPosition:xe,findReferences:ft,getFileReferences:ge,getDocumentHighlights:me,getNameOrDottedNameSpan:Je,getBreakpointStatementAtPosition:pt,getNavigateToItems:Fe,getRenameInfo:et,getSmartSelectionRange:mt,findRenameLocations:be,getNavigationBarItems:zt,getNavigationTree:Vt,getOutliningSpans:Rt,getTodoComments:we,getBraceMatchingAtPosition:Ji,getIndentationAtPosition:yi,getFormattingEditsForRange:os,getFormattingEditsForDocument:yr,getFormattingEditsAfterKeystroke:_i,getDocCommentTemplateAtPosition:ei,isValidBraceCompletionAtPosition:Ii,getJsxClosingTagAtPosition:ns,getLinkedEditingRangeAtPosition:Vs,getSpanOfEnclosingComment:ne,getCodeFixesAtPosition:ln,getCombinedCodeFix:Ht,applyCodeActionCommand:fr,organizeImports:Ue,getEditsForFileRename:Et,getEmitOutput:$e,getNonBoundSourceFile:at,getProgram:J,getCurrentProgram:()=>c,getAutoImportProvider:U,updateIsDefinitionOfReferencedSymbols:$,getApplicableRefactors:Be,getEditsForRefactor:Dt,getMoveToRefactoringFileSuggestions:nt,toLineColumnOffset:ir,getSourceMapper:()=>k,clearSourceMapperCache:()=>k.clearCache(),prepareCallHierarchy:Yt,provideCallHierarchyIncomingCalls:Kt,provideCallHierarchyOutgoingCalls:W,toggleLineComment:cr,toggleMultilineComment:br,commentSelection:Le,uncommentSelection:rt,provideInlayHints:Pe,getSupportedCodeFixes:W$};switch(s){case 0:break;case 1:Kle.forEach(A=>St[A]=()=>{throw new Error(`LanguageService Operation: ${A} not allowed in LanguageServiceMode.PartialSemantic`)});break;case 2:Yke.forEach(A=>St[A]=()=>{throw new Error(`LanguageService Operation: ${A} not allowed in LanguageServiceMode.Syntactic`)});break;default:E.assertNever(s)}return St}function U$(e){return e.nameTable||mVe(e),e.nameTable}function mVe(e){const t=e.nameTable=new Map;e.forEachChild(function n(i){if(Ie(i)&&!XH(i)&&i.escapedText||Tf(i)&&gVe(i)){const s=PE(i);t.set(s,t.get(s)===void 0?i.pos:-1)}else if(Pi(i)){const s=i.escapedText;t.set(s,t.get(s)===void 0?i.pos:-1)}if(Ss(i,n),sf(i))for(const s of i.jsDoc)Ss(s,n)})}function gVe(e){return eh(e)||e.parent.kind===283||vVe(e)||B8(e)}function CN(e){const t=hVe(e);return t&&(ua(t.parent)||_2(t.parent))?t:void 0}function hVe(e){switch(e.kind){case 11:case 15:case 9:if(e.parent.kind===167)return uz(e.parent.parent)?e.parent.parent:void 0;case 80:return uz(e.parent)&&(e.parent.parent.kind===210||e.parent.parent.kind===292)&&e.parent.name===e?e.parent:void 0}}function yVe(e,t){const n=CN(e);if(n){const i=t.getContextualType(n.parent),s=i&&OM(n,t,i,!1);if(s&&s.length===1)return va(s)}return t.getSymbolAtLocation(e)}function OM(e,t,n,i){const s=YA(e.name);if(!s)return Ve;if(!n.isUnion()){const u=n.getProperty(s);return u?[u]:Ve}const o=ua(e.parent)||_2(e.parent)?An(n.types,u=>!t.isTypeInvalidDueToUnionDiscriminant(u,e.parent)):n.types,c=Ri(o,u=>u.getProperty(s));if(i&&(c.length===0||c.length===n.types.length)){const u=n.getProperty(s);if(u)return[u]}return!o.length&&!c.length?Ri(n.types,u=>u.getProperty(s)):Nv(c,Vh)}function vVe(e){return e&&e.parent&&e.parent.kind===212&&e.parent.argumentExpression===e}function Qle(e){if(zl)return Mn(Un(Hs(zl.getExecutingFilePath())),zD(e));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}var Yle,q$,H$,Vke,Zle,G$,$$,Uke,qke,Hke,Gke,$ke,Xke,Qke,X$,Kle,Yke,bVe=wt({"src/services/services.ts"(){qn(),pxe(),Oxe(),Vm(),VTe(),Rke(),Yle="0.8",q$=class{constructor(e,t,n){this.pos=t,this.end=n,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=e}assertHasRealPosition(e){E.assert(!gd(this.pos)&&!gd(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return wr(this)}getStart(e,t){return this.assertHasRealPosition(),k1(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=fVe(this,e))}getFirstToken(e){this.assertHasRealPosition();const t=this.getChildren(e);if(!t.length)return;const n=wn(t,i=>i.kind<316||i.kind>357);return n.kind<166?n:n.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();const t=this.getChildren(e),n=Po(t);if(n)return n.kind<166?n:n.getLastToken(e)}forEachChild(e,t){return Ss(this,e,t)}},H$=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 wr(this)}getStart(e,t){return k1(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||Ve}getFirstToken(){}getLastToken(){}forEachChild(){}},Vke=class{constructor(e,t){this.id=0,this.mergeId=0,this.flags=e,this.escapedName=t}getFlags(){return this.flags}get name(){return Xo(this)}getEscapedName(){return this.escapedName}getName(){return this.name}getDeclarations(){return this.declarations}getDocumentationComment(e){if(!this.documentationComment)if(this.documentationComment=Ve,!this.declarations&&wm(this)&&this.links.target&&wm(this.links.target)&&this.links.target.links.tupleLabelDeclaration){const t=this.links.target.links.tupleLabelDeclaration;this.documentationComment=NM([t],e)}else this.documentationComment=NM(this.declarations,e);return this.documentationComment}getContextualDocumentationComment(e,t){if(e){if(Y0(e)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=NM(An(this.declarations,Y0),t)),gr(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if(Xh(e)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=NM(An(this.declarations,Xh),t)),gr(this.contextualSetAccessorDocumentationComment)))return this.contextualSetAccessorDocumentationComment}return this.getDocumentationComment(t)}getJsDocTags(e){return this.tags===void 0&&(this.tags=z$(this.declarations,e)),this.tags}getContextualJsDocTags(e,t){if(e){if(Y0(e)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=z$(An(this.declarations,Y0),t)),gr(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if(Xh(e)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=z$(An(this.declarations,Xh),t)),gr(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(t)}},Zle=class extends H${constructor(e,t,n){super(t,n),this.kind=e}},G$=class extends H${constructor(e,t,n){super(t,n),this.kind=80}get text(){return on(this)}},G$.prototype.kind=80,$$=class extends H${constructor(e,t,n){super(t,n),this.kind=81}get text(){return on(this)}},$$.prototype.kind=81,Uke=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!!(bn(this)&3)}isClass(){return!!(bn(this)&1)}isIndexType(){return!!(this.flags&4194304)}get typeArguments(){if(bn(this)&4)return this.checker.getTypeArguments(this)}},qke=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){const t=this.checker.getParameterType(this,e);if(t.isIndexType()&&KE(t.type)){const n=t.type.getConstraint();if(n)return this.checker.getIndexType(n)}return t}getDocumentationComment(){return this.documentationComment||(this.documentationComment=NM(TT(this.declaration),this.checker))}getJsDocTags(){return this.jsDocTags||(this.jsDocTags=z$(TT(this.declaration),this.checker))}},Hke=class extends q${constructor(e,t,n){super(e,t,n),this.kind=312}update(e,t){return tU(this,e,t)}getLineAndCharacterOfPosition(e){return Ha(this,e)}getLineStarts(){return $g(this)}getPositionOfLineAndCharacter(e,t,n){return L7($g(this),e,t,this.text,n)}getLineEndOfPosition(e){const{line:t}=this.getLineAndCharacterOfPosition(e),n=this.getLineStarts();let i;t+1>=n.length&&(i=this.getEnd()),i||(i=n[t+1]-1);const s=this.getFullText();return s[i]===` -`&&s[i-1]==="\r"?i-1:i}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){const e=vf();return this.forEachChild(s),e;function t(o){const c=i(o);c&&e.add(c,o)}function n(o){let c=e.get(o);return c||e.set(o,c=[]),c}function i(o){const c=J7(o);return c&&(Pa(c)&&Sn(c.expression)?c.expression.name.text:Ac(c)?YA(c):void 0)}function s(o){switch(o.kind){case 262:case 218:case 174:case 173:const c=o,u=i(c);if(u){const d=n(u),y=Po(d);y&&c.parent===y.parent&&c.symbol===y.symbol?c.body&&!y.body&&(d[d.length-1]=c):d.push(c)}Ss(o,s);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(o),Ss(o,s);break;case 169:if(!Rn(o,31))break;case 260:case 208:{const d=o;if(Ns(d.name)){Ss(d.name,s);break}d.initializer&&s(d.initializer)}case 306:case 172:case 171:t(o);break;case 278:const f=o;f.exportClause&&(Xf(f.exportClause)?er(f.exportClause.elements,s):s(f.exportClause.name));break;case 272:const g=o.importClause;g&&(g.name&&t(g.name),g.namedBindings&&(g.namedBindings.kind===274?t(g.namedBindings):er(g.namedBindings.elements,s)));break;case 226:fc(o)!==0&&t(o);default:Ss(o,s)}}}},Gke=class{constructor(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n}getLineAndCharacterOfPosition(e){return Ha(this,e)}},$ke=class{constructor(e){this.host=e}getCurrentSourceFile(e){var t,n,i,s,o,c,u,f;const g=this.host.getScriptSnapshot(e);if(!g)throw new Error("Could not find file: '"+e+"'.");const d=PG(e,this.host),y=this.host.getScriptVersion(e);let S;if(this.currentFileName!==e){const T={languageVersion:99,impliedNodeFormat:DA(No(e,this.host.getCurrentDirectory(),((i=(n=(t=this.host).getCompilerHost)==null?void 0:n.call(t))==null?void 0:i.getCanonicalFileName)||Zh(this.host)),(f=(u=(c=(o=(s=this.host).getCompilerHost)==null?void 0:o.call(s))==null?void 0:c.getModuleResolutionCache)==null?void 0:u.call(c))==null?void 0:f.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:tw(this.host.getCompilationSettings()),jsDocParsingMode:0};S=FM(e,g,T,y,!0,d)}else if(this.currentFileVersion!==y){const T=g.getChangeRange(this.currentFileScriptSnapshot);S=V$(this.currentSourceFile,g,y,T)}return S&&(this.currentFileVersion=y,this.currentFileName=e,this.currentFileScriptSnapshot=g,this.currentSourceFile=S),this.currentSourceFile}},Xke={isCancellationRequested:fd,throwIfCancellationRequested:Ca},Qke=class{constructor(e){this.cancellationToken=e}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=qr)==null||e.instant(qr.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new Mk}},X$=class{constructor(e,t=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}isCancellationRequested(){const e=To();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested()):!1}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=qr)==null||e.instant(qr.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new Mk}},Kle=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes"],Yke=[...Kle,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],Qre(dVe())}});function Zke(e,t,n){const i=[];n=u$(n,i);const s=ts(e)?e:[e],o=vA(void 0,void 0,I,n,s,t,!0);return o.diagnostics=es(o.diagnostics,i),o}var SVe=wt({"src/services/transform.ts"(){qn()}});function TVe(e,t){if(e.isDeclarationFile)return;let n=Ui(e,t);const i=e.getLineAndCharacterOfPosition(t).line;if(e.getLineAndCharacterOfPosition(n.getStart(e)).line>i){const y=Qc(n.pos,e);if(!y||e.getLineAndCharacterOfPosition(y.getEnd()).line!==i)return;n=y}if(n.flags&33554432)return;return d(n);function s(y,S){const T=eS(y)?hT(y.modifiers,ql):void 0,k=T?ca(e.text,T.end):y.getStart(e);return Rc(k,(S||y).getEnd())}function o(y,S){return s(y,x2(S,S.parent,e))}function c(y,S){return y&&i===e.getLineAndCharacterOfPosition(y.getStart(e)).line?d(y):d(S)}function u(y,S,T){if(y){const k=y.indexOf(S);if(k>=0){let w=k,P=k+1;for(;w>0&&T(y[w-1]);)w--;for(;P0)return d(fe.declarations[0])}else return d(K.initializer)}function j(K){if(K.initializer)return $(K);if(K.condition)return s(K.condition);if(K.incrementor)return s(K.incrementor)}function re(K){const fe=er(K.elements,ke=>ke.kind!==232?ke:void 0);return fe?d(fe):K.parent.kind===208?s(K.parent):S(K.parent)}function R(K){E.assert(K.kind!==207&&K.kind!==206);const fe=K.kind===209?K.elements:K.properties,ke=er(fe,Oe=>Oe.kind!==232?Oe:void 0);return ke?d(ke):s(K.parent.kind===226?K.parent:K)}function Y(K){switch(K.parent.kind){case 266:const fe=K.parent;return c(Qc(K.pos,e,K.parent),fe.members.length?fe.members[0]:fe.getLastToken(e));case 263:const ke=K.parent;return c(Qc(K.pos,e,K.parent),ke.members.length?ke.members[0]:ke.getLastToken(e));case 269:return c(K.parent.parent,K.parent.clauses[0])}return d(K.parent)}function ue(K){switch(K.parent.kind){case 268:if(ch(K.parent.parent)!==1)return;case 266:case 263:return s(K);case 241:if(Vv(K.parent))return s(K);case 299:return d(Po(K.parent.statements));case 269:const fe=K.parent,ke=Po(fe.clauses);return ke?d(Po(ke.statements)):void 0;case 206:const Oe=K.parent;return d(Po(Oe.elements)||Oe);default:if(u0(K.parent)){const me=K.parent;return s(Po(me.properties)||me)}return d(K.parent)}}function pe(K){switch(K.parent.kind){case 207:const fe=K.parent;return s(Po(fe.elements)||fe);default:if(u0(K.parent)){const ke=K.parent;return s(Po(ke.elements)||ke)}return d(K.parent)}}function H(K){return K.parent.kind===246||K.parent.kind===213||K.parent.kind===214?f(K):K.parent.kind===217?g(K):d(K.parent)}function q(K){switch(K.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 f(K);default:return d(K.parent)}}function ee(K){return As(K.parent)||K.parent.kind===303||K.parent.kind===169?f(K):d(K.parent)}function oe(K){return K.parent.kind===216?g(K):d(K.parent)}function Se(K){return K.parent.kind===246?o(K,K.parent.expression):d(K.parent)}function ae(K){return K.parent.kind===250?g(K):d(K.parent)}}}var xVe=wt({"src/services/breakpoints.ts"(){qn()}}),Q$={};vl(Q$,{spanInSourceFileAtLocation:()=>TVe});var kVe=wt({"src/services/_namespaces/ts.BreakpointResolver.ts"(){xVe()}});function CVe(e){return(co(e)||kl(e))&&Nu(e)}function Kke(e){return xs(e)||hi(e)}function EN(e){return(co(e)||po(e)||kl(e))&&Kke(e.parent)&&e===e.parent.initializer&&Ie(e.parent.name)&&(!!(Gh(e.parent)&2)||xs(e.parent))}function eCe(e){return Ni(e)||Sc(e)||$c(e)||co(e)||Xc(e)||kl(e)||ec(e)||hc(e)||Lm(e)||xf(e)||J_(e)}function w6(e){return Ni(e)||Sc(e)&&Ie(e.name)||$c(e)||Xc(e)||ec(e)||hc(e)||Lm(e)||xf(e)||J_(e)||CVe(e)||EN(e)}function tCe(e){return Ni(e)?e:Nu(e)?e.name:EN(e)?e.parent.name:E.checkDefined(e.modifiers&&wn(e.modifiers,rCe))}function rCe(e){return e.kind===90}function nCe(e,t){const n=tCe(t);return n&&e.getSymbolAtLocation(n)}function EVe(e,t){if(Ni(t))return{text:t.fileName,pos:0,end:0};if(($c(t)||Xc(t))&&!Nu(t)){const s=t.modifiers&&wn(t.modifiers,rCe);if(s)return{text:"default",pos:s.getStart(),end:s.getEnd()}}if(ec(t)){const s=t.getSourceFile(),o=ca(s.text,Xd(t).pos),c=o+6,u=e.getTypeChecker(),f=u.getSymbolAtLocation(t.parent);return{text:`${f?`${u.symbolToString(f,t.parent)} `:""}static {}`,pos:o,end:c}}const n=EN(t)?t.parent.name:E.checkDefined(us(t),"Expected call hierarchy item to have a name");let i=Ie(n)?on(n):Tf(n)?n.text:Pa(n)&&Tf(n.expression)?n.expression.text:void 0;if(i===void 0){const s=e.getTypeChecker(),o=s.getSymbolAtLocation(n);o&&(i=s.symbolToString(o,t))}if(i===void 0){const s=SA();i=pE(o=>s.writeNode(4,t,t.getSourceFile(),o))}return{text:i,pos:n.getStart(),end:n.getEnd()}}function PVe(e){var t,n,i,s;if(EN(e))return xs(e.parent)&&$n(e.parent.parent)?kl(e.parent.parent)?(t=z7(e.parent.parent))==null?void 0:t.getText():(n=e.parent.parent.name)==null?void 0:n.getText():Zd(e.parent.parent.parent.parent)&&Ie(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=z7(e.parent))==null?void 0:i.getText():(s=us(e.parent))==null?void 0:s.getText();case 262:case 263:case 267:if(Zd(e.parent)&&Ie(e.parent.parent.name))return e.parent.parent.name.getText()}}function iCe(e,t){if(t.body)return t;if(sc(t))return Sg(t.parent);if($c(t)||hc(t)){const n=nCe(e,t);return n&&n.valueDeclaration&&fo(n.valueDeclaration)&&n.valueDeclaration.body?n.valueDeclaration:void 0}return t}function sCe(e,t){const n=nCe(e,t);let i;if(n&&n.declarations){const s=hD(n.declarations),o=nr(n.declarations,f=>({file:f.getSourceFile().fileName,pos:f.pos}));s.sort((f,g)=>mu(o[f].file,o[g].file)||o[f].pos-o[g].pos);const c=nr(s,f=>n.declarations[f]);let u;for(const f of c)w6(f)&&((!u||u.parent!==f.parent||u.end!==f.pos)&&(i=_r(i,f)),u=f)}return i}function Y$(e,t){return ec(t)?t:fo(t)?iCe(e,t)??sCe(e,t)??t:sCe(e,t)??t}function aCe(e,t){const n=e.getTypeChecker();let i=!1;for(;;){if(w6(t))return Y$(n,t);if(eCe(t)){const s=Pr(t,w6);return s&&Y$(n,s)}if(eh(t)){if(w6(t.parent))return Y$(n,t.parent);if(eCe(t.parent)){const s=Pr(t.parent,w6);return s&&Y$(n,s)}return Kke(t.parent)&&t.parent.initializer&&EN(t.parent.initializer)?t.parent.initializer:void 0}if(sc(t))return w6(t.parent)?t.parent:void 0;if(t.kind===126&&ec(t.parent)){t=t.parent;continue}if(hi(t)&&t.initializer&&EN(t.initializer))return t.initializer;if(!i){let s=n.getSymbolAtLocation(t);if(s&&(s.flags&2097152&&(s=n.getAliasedSymbol(s)),s.valueDeclaration)){i=!0,t=s.valueDeclaration;continue}}return}}function eue(e,t){const n=t.getSourceFile(),i=EVe(e,t),s=PVe(t),o=T2(t),c=K3(t),u=Rc(ca(n.text,t.getFullStart(),!1,!0),t.getEnd()),f=Rc(i.pos,i.end);return{file:n.fileName,kind:o,kindModifiers:c,name:i.text,containerName:s,span:u,selectionSpan:f}}function DVe(e){return e!==void 0}function wVe(e){if(e.kind===lo.EntryKind.Node){const{node:t}=e;if(qH(t,!0,!0)||Roe(t,!0,!0)||joe(t,!0,!0)||Boe(t,!0,!0)||m6(t)||QH(t)){const n=t.getSourceFile();return{declaration:Pr(t,w6)||n,range:_G(t,n)}}}}function oCe(e){return Oa(e.declaration)}function AVe(e,t){return{from:e,fromSpans:t}}function NVe(e,t){return AVe(eue(e,t[0].declaration),nr(t,n=>by(n.range)))}function IVe(e,t,n){if(Ni(t)||Sc(t)||ec(t))return[];const i=tCe(t),s=An(lo.findReferenceOrRenameEntries(e,n,e.getSourceFiles(),i,0,{use:lo.FindReferencesUse.References},wVe),DVe);return s?U4(s,oCe,o=>NVe(e,o)):[]}function FVe(e,t){function n(s){const o=o2(s)?s.tag:Fu(s)?s.tagName:oo(s)||ec(s)?s:s.expression,c=aCe(e,o);if(c){const u=_G(o,s.getSourceFile());if(ts(c))for(const f of c)t.push({declaration:f,range:u});else t.push({declaration:c,range:u})}}function i(s){if(s&&!(s.flags&33554432)){if(w6(s)){if($n(s))for(const o of s.members)o.name&&Pa(o.name)&&i(o.name.expression);return}switch(s.kind){case 80:case 271:case 272:case 278:case 264:case 265:return;case 175:n(s);return;case 216:case 234:i(s.expression);return;case 260:case 169:i(s.name),i(s.initializer);return;case 213:n(s),i(s.expression),er(s.arguments,i);return;case 214:n(s),i(s.expression),er(s.arguments,i);return;case 215:n(s),i(s.tag),i(s.template);return;case 286:case 285:n(s),i(s.tagName),i(s.attributes);return;case 170:n(s),i(s.expression);return;case 211:case 212:n(s),Ss(s,i);break;case 238:i(s.expression);return}gg(s)||Ss(s,i)}}return i}function OVe(e,t){er(e.statements,t)}function LVe(e,t){!Rn(e,128)&&e.body&&Zd(e.body)&&er(e.body.statements,t)}function MVe(e,t,n){const i=iCe(e,t);i&&(er(i.parameters,n),n(i.body))}function RVe(e,t){t(e.body)}function jVe(e,t){er(e.modifiers,t);const n=Gv(e);n&&t(n.expression);for(const i of e.members)$p(i)&&er(i.modifiers,t),xs(i)?t(i.initializer):sc(i)&&i.body?(er(i.parameters,t),t(i.body)):ec(i)&&t(i)}function BVe(e,t){const n=[],i=FVe(e,n);switch(t.kind){case 312:OVe(t,i);break;case 267:LVe(t,i);break;case 262:case 218:case 219:case 174:case 177:case 178:MVe(e.getTypeChecker(),t,i);break;case 263:case 231:jVe(t,i);break;case 175:RVe(t,i);break;default:E.assertNever(t)}return n}function JVe(e,t){return{to:e,fromSpans:t}}function zVe(e,t){return JVe(eue(e,t[0].declaration),nr(t,n=>by(n.range)))}function WVe(e,t){return t.flags&33554432||Lm(t)?[]:U4(BVe(e,t),oCe,n=>zVe(e,n))}var VVe=wt({"src/services/callHierarchy.ts"(){qn()}}),Ox={};vl(Ox,{createCallHierarchyItem:()=>eue,getIncomingCalls:()=>IVe,getOutgoingCalls:()=>WVe,resolveCallHierarchyDeclaration:()=>aCe});var UVe=wt({"src/services/_namespaces/ts.CallHierarchy.ts"(){VVe()}}),cCe={};vl(cCe,{TokenEncodingConsts:()=>qle,TokenModifier:()=>Gle,TokenType:()=>Hle,getEncodedSemanticClassifications:()=>Ule,getSemanticClassifications:()=>Oke});var qVe=wt({"src/services/_namespaces/ts.classifier.v2020.ts"(){Rke()}}),tue={};vl(tue,{v2020:()=>cCe});var HVe=wt({"src/services/_namespaces/ts.classifier.ts"(){qVe()}});function Td(e,t,n){return nue(e,fS(n),t,void 0,void 0)}function js(e,t,n,i,s,o){return nue(e,fS(n),t,i,fS(s),o)}function rue(e,t,n,i,s,o){return nue(e,fS(n),t,i,s&&fS(s),o)}function nue(e,t,n,i,s,o){return{fixName:e,description:t,changes:n,fixId:i,fixAllDescription:s,commands:o?[o]:void 0}}function ea(e){for(const t of e.errorCodes)iue=void 0,Z$.add(String(t),e);if(e.fixIds)for(const t of e.fixIds)E.assert(!K$.has(t)),K$.set(t,e)}function GVe(){return iue??(iue=gs(Z$.keys()))}function $Ve(e,t){const{errorCodes:n}=e;let i=0;for(const o of t)if(bs(n,o.code)&&i++,i>1)break;const s=i<2;return({fixId:o,fixAllDescription:c,...u})=>s?u:{...u,fixId:o,fixAllDescription:c}}function XVe(e){const t=uCe(e),n=Z$.get(String(e.errorCode));return Zs(n,i=>nr(i.getCodeActions(e),$Ve(i,t)))}function QVe(e){return K$.get(Ls(e.fixId,ls)).getAllCodeActions(e)}function A6(e,t){return{changes:e,commands:t}}function lCe(e,t){return{fileName:e,textChanges:t}}function Ga(e,t,n){const i=[],s=Kr.ChangeTracker.with(e,o=>N6(e,t,c=>n(o,c,i)));return A6(s,i.length===0?void 0:i)}function N6(e,t,n){for(const i of uCe(e))bs(t,i.code)&&n(i)}function uCe({program:e,sourceFile:t,cancellationToken:n}){return[...e.getSemanticDiagnostics(t,n),...e.getSyntacticDiagnostics(t,n),...s$(t,e,n)]}var Z$,K$,iue,YVe=wt({"src/services/codeFixProvider.ts"(){qn(),Z$=vf(),K$=new Map}});function _Ce(e,t,n){const i=Iw(n)?I.createAsExpression(n.expression,I.createKeywordTypeNode(159)):I.createTypeAssertion(I.createKeywordTypeNode(159),n.expression);e.replaceNode(t,n.expression,i)}function fCe(e,t){if(!Hr(e))return Pr(Ui(e,t),n=>Iw(n)||rie(n))}var eX,sue,ZVe=wt({"src/services/codefixes/addConvertToUnknownForNonOverlappingTypes.ts"(){qn(),ra(),eX="addConvertToUnknownForNonOverlappingTypes",sue=[p.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:sue,getCodeActions:function(t){const n=fCe(t.sourceFile,t.span.start);if(n===void 0)return;const i=Kr.ChangeTracker.with(t,s=>_Ce(s,t.sourceFile,n));return[js(eX,i,p.Add_unknown_conversion_for_non_overlapping_types,eX,p.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[eX],getAllCodeActions:e=>Ga(e,sue,(t,n)=>{const i=fCe(n.file,n.start);i&&_Ce(t,n.file,i)})})}}),KVe=wt({"src/services/codefixes/addEmptyExportDeclaration.ts"(){qn(),ra(),ea({errorCodes:[p.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,p.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,p.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){const{sourceFile:n}=t,i=Kr.ChangeTracker.with(t,s=>{const o=I.createExportDeclaration(void 0,!1,I.createNamedExports([]),void 0);s.insertNodeAtEndOfScope(n,n,o)});return[Td("addEmptyExportDeclaration",i,p.Add_export_to_make_this_file_into_a_module)]}})}});function pCe(e,t,n,i){const s=n(o=>eUe(o,e.sourceFile,t,i));return js(tX,s,p.Add_async_modifier_to_containing_function,tX,p.Add_all_missing_async_modifiers)}function eUe(e,t,n,i){if(i&&i.has(Oa(n)))return;i==null||i.add(Oa(n));const s=I.replaceModifiers(Lo(n,!0),I.createNodeArray(I.createModifiersFromModifierFlags(ny(n)|1024)));e.replaceNode(t,n,s)}function dCe(e,t){if(!t)return;const n=Ui(e,t.start);return Pr(n,s=>s.getStart(e)bc(t)?"quit":(po(s)||hc(s)||co(s)||$c(s))&&b6(t,Zu(s,e)))}function tUe(e,t){return({start:n,length:i,relatedInformation:s,code:o})=>zh(n)&&zh(i)&&b6({start:n,length:i},e)&&o===t&&!!s&&ct(s,c=>c.code===p.Did_you_mean_to_mark_this_function_as_async.code)}var tX,aue,rUe=wt({"src/services/codefixes/addMissingAsync.ts"(){qn(),ra(),tX="addMissingAsync",aue=[p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,p.Type_0_is_not_assignable_to_type_1.code,p.Type_0_is_not_comparable_to_type_1.code],ea({fixIds:[tX],errorCodes:aue,getCodeActions:function(t){const{sourceFile:n,errorCode:i,cancellationToken:s,program:o,span:c}=t,u=wn(o.getTypeChecker().getDiagnostics(n,s),tUe(c,i)),f=u&&u.relatedInformation&&wn(u.relatedInformation,y=>y.code===p.Did_you_mean_to_mark_this_function_as_async.code),g=dCe(n,f);return g?[pCe(t,g,y=>Kr.ChangeTracker.with(t,y))]:void 0},getAllCodeActions:e=>{const{sourceFile:t}=e,n=new Set;return Ga(e,aue,(i,s)=>{const o=s.relatedInformation&&wn(s.relatedInformation,f=>f.code===p.Did_you_mean_to_mark_this_function_as_async.code),c=dCe(t,o);return c?pCe(e,c,f=>(f(i),[]),n):void 0})}})}});function mCe(e,t,n,i,s){const o=RG(e,n);return o&&nUe(e,t,n,i,s)&&yCe(o)?o:void 0}function gCe(e,t,n,i,s,o){const{sourceFile:c,program:u,cancellationToken:f}=e,g=iUe(t,c,f,u,i);if(g){const d=s(y=>{er(g.initializers,({expression:S})=>oue(y,n,c,i,S,o)),o&&g.needsSecondPassForFixAll&&oue(y,n,c,i,t,o)});return Td("addMissingAwaitToInitializer",d,g.initializers.length===1?[p.Add_await_to_initializer_for_0,g.initializers[0].declarationSymbol.name]:p.Add_await_to_initializers)}}function hCe(e,t,n,i,s,o){const c=s(u=>oue(u,n,e.sourceFile,i,t,o));return js(rX,c,p.Add_await,rX,p.Fix_all_expressions_possibly_missing_await)}function nUe(e,t,n,i,s){const c=s.getTypeChecker().getDiagnostics(e,i);return ct(c,({start:u,length:f,relatedInformation:g,code:d})=>zh(u)&&zh(f)&&b6({start:u,length:f},n)&&d===t&&!!g&&ct(g,y=>y.code===p.Did_you_forget_to_use_await.code))}function iUe(e,t,n,i,s){const o=sUe(e,s);if(!o)return;let c=o.isCompleteFix,u;for(const f of o.identifiers){const g=s.getSymbolAtLocation(f);if(!g)continue;const d=Wn(g.valueDeclaration,hi),y=d&&Wn(d.name,Ie),S=w1(d,243);if(!d||!S||d.type||!d.initializer||S.getSourceFile()!==t||Rn(S,32)||!y||!yCe(d.initializer)){c=!1;continue}const T=i.getSemanticDiagnostics(t,n);if(lo.Core.eachSymbolReferenceInFile(y,s,t,w=>f!==w&&!aUe(w,T,t,s))){c=!1;continue}(u||(u=[])).push({expression:d.initializer,declarationSymbol:g})}return u&&{initializers:u,needsSecondPassForFixAll:!c}}function sUe(e,t){if(Sn(e.parent)&&Ie(e.parent.expression))return{identifiers:[e.parent.expression],isCompleteFix:!0};if(Ie(e))return{identifiers:[e],isCompleteFix:!0};if(Zr(e)){let n,i=!0;for(const s of[e.left,e.right]){const o=t.getTypeAtLocation(s);if(t.getPromisedTypeOfPromise(o)){if(!Ie(s)){i=!1;continue}(n||(n=[])).push(s)}}return n&&{identifiers:n,isCompleteFix:i}}}function aUe(e,t,n,i){const s=Sn(e.parent)?e.parent.name:Zr(e.parent)?e.parent:e,o=wn(t,c=>c.start===s.getStart(n)&&c.start+c.length===s.getEnd());return o&&bs(nX,o.code)||i.getTypeAtLocation(s).flags&1}function yCe(e){return e.flags&65536||!!Pr(e,t=>t.parent&&po(t.parent)&&t.parent.body===t||Cs(t)&&(t.parent.kind===262||t.parent.kind===218||t.parent.kind===219||t.parent.kind===174))}function oue(e,t,n,i,s,o){if(Fw(s.parent)&&!s.parent.awaitModifier){const c=i.getTypeAtLocation(s),u=i.getAsyncIterableType();if(u&&i.isTypeAssignableTo(c,u)){const f=s.parent;e.replaceNode(n,f,I.updateForOfStatement(f,I.createToken(135),f.initializer,f.expression,f.statement));return}}if(Zr(s))for(const c of[s.left,s.right]){if(o&&Ie(c)){const g=i.getSymbolAtLocation(c);if(g&&o.has(Ks(g)))continue}const u=i.getTypeAtLocation(c),f=i.getPromisedTypeOfPromise(u)?I.createAwaitExpression(c):c;e.replaceNode(n,c,f)}else if(t===cue&&Sn(s.parent)){if(o&&Ie(s.parent.expression)){const c=i.getSymbolAtLocation(s.parent.expression);if(c&&o.has(Ks(c)))return}e.replaceNode(n,s.parent.expression,I.createParenthesizedExpression(I.createAwaitExpression(s.parent.expression))),vCe(e,s.parent.expression,n)}else if(bs(lue,t)&&zd(s.parent)){if(o&&Ie(s)){const c=i.getSymbolAtLocation(s);if(c&&o.has(Ks(c)))return}e.replaceNode(n,s,I.createParenthesizedExpression(I.createAwaitExpression(s))),vCe(e,s,n)}else{if(o&&hi(s.parent)&&Ie(s.parent.name)){const c=i.getSymbolAtLocation(s.parent.name);if(c&&!_1(o,Ks(c)))return}e.replaceNode(n,s,I.createAwaitExpression(s))}}function vCe(e,t,n){const i=Qc(t.pos,n);i&&GL(i.end,i.parent,n)&&e.insertText(n,t.getStart(n),";")}var rX,cue,lue,nX,oUe=wt({"src/services/codefixes/addMissingAwait.ts"(){qn(),ra(),rX="addMissingAwait",cue=p.Property_0_does_not_exist_on_type_1.code,lue=[p.This_expression_is_not_callable.code,p.This_expression_is_not_constructable.code],nX=[p.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,p.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,p.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,p.Operator_0_cannot_be_applied_to_type_1.code,p.Operator_0_cannot_be_applied_to_types_1_and_2.code,p.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,p.This_condition_will_always_return_true_since_this_0_is_always_defined.code,p.Type_0_is_not_an_array_type.code,p.Type_0_is_not_an_array_type_or_a_string_type.code,p.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,p.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,p.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,p.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,p.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,cue,...lue],ea({fixIds:[rX],errorCodes:nX,getCodeActions:function(t){const{sourceFile:n,errorCode:i,span:s,cancellationToken:o,program:c}=t,u=mCe(n,i,s,o,c);if(!u)return;const f=t.program.getTypeChecker(),g=d=>Kr.ChangeTracker.with(t,d);return yD([gCe(t,u,i,f,g),hCe(t,u,i,f,g)])},getAllCodeActions:e=>{const{sourceFile:t,program:n,cancellationToken:i}=e,s=e.program.getTypeChecker(),o=new Set;return Ga(e,nX,(c,u)=>{const f=mCe(t,u.code,u,i,n);if(!f)return;const g=d=>(d(c),[]);return gCe(e,f,u.code,s,g,o)||hCe(e,f,u.code,s,g,o)})}})}});function bCe(e,t,n,i,s){const o=Ui(t,n),c=Pr(o,g=>Gk(g.parent)?g.parent.initializer===g:cUe(g)?!1:"quit");if(c)return iX(e,c,t,s);const u=o.parent;if(Zr(u)&&u.operatorToken.kind===64&&Cl(u.parent))return iX(e,o,t,s);if(ju(u)){const g=i.getTypeChecker();return Wi(u.elements,d=>lUe(d,g))?iX(e,u,t,s):void 0}const f=Pr(o,g=>Cl(g.parent)?!0:uUe(g)?!1:"quit");if(f){const g=i.getTypeChecker();return SCe(f,g)?iX(e,f,t,s):void 0}}function iX(e,t,n,i){(!i||_1(i,t))&&e.insertModifierBefore(n,87,t)}function cUe(e){switch(e.kind){case 80:case 209:case 210:case 303:case 304:return!0;default:return!1}}function lUe(e,t){const n=Ie(e)?e:nl(e,!0)&&Ie(e.left)?e.left:void 0;return!!n&&!t.getSymbolAtLocation(n)}function uUe(e){switch(e.kind){case 80:case 226:case 28:return!0;default:return!1}}function SCe(e,t){return Zr(e)?e.operatorToken.kind===28?Wi([e.left,e.right],n=>SCe(n,t)):e.operatorToken.kind===64&&Ie(e.left)&&!t.getSymbolAtLocation(e.left):!1}var sX,uue,_Ue=wt({"src/services/codefixes/addMissingConst.ts"(){qn(),ra(),sX="addMissingConst",uue=[p.Cannot_find_name_0.code,p.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code],ea({errorCodes:uue,getCodeActions:function(t){const n=Kr.ChangeTracker.with(t,i=>bCe(i,t.sourceFile,t.span.start,t.program));if(n.length>0)return[js(sX,n,p.Add_const_to_unresolved_variable,sX,p.Add_const_to_all_unresolved_variables)]},fixIds:[sX],getAllCodeActions:e=>{const t=new Set;return Ga(e,uue,(n,i)=>bCe(n,i.file,i.start,e.program,t))}})}});function TCe(e,t,n,i){const s=Ui(t,n);if(!Ie(s))return;const o=s.parent;o.kind===172&&(!i||_1(i,o))&&e.insertModifierBefore(t,138,o)}var aX,_ue,fUe=wt({"src/services/codefixes/addMissingDeclareProperty.ts"(){qn(),ra(),aX="addMissingDeclareProperty",_ue=[p.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:_ue,getCodeActions:function(t){const n=Kr.ChangeTracker.with(t,i=>TCe(i,t.sourceFile,t.span.start));if(n.length>0)return[js(aX,n,p.Prefix_with_declare,aX,p.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[aX],getAllCodeActions:e=>{const t=new Set;return Ga(e,_ue,(n,i)=>TCe(n,i.file,i.start,t))}})}});function xCe(e,t,n){const i=Ui(t,n),s=Pr(i,ql);E.assert(!!s,"Expected position to be owned by a decorator.");const o=I.createCallExpression(s.expression,void 0,void 0);e.replaceNode(t,s.expression,o)}var oX,fue,pUe=wt({"src/services/codefixes/addMissingInvocationForDecorator.ts"(){qn(),ra(),oX="addMissingInvocationForDecorator",fue=[p._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:fue,getCodeActions:function(t){const n=Kr.ChangeTracker.with(t,i=>xCe(i,t.sourceFile,t.span.start));return[js(oX,n,p.Call_decorator_expression,oX,p.Add_to_all_uncalled_decorators)]},fixIds:[oX],getAllCodeActions:e=>Ga(e,fue,(t,n)=>xCe(t,n.file,n.start))})}});function kCe(e,t,n){const i=Ui(t,n),s=i.parent;if(!rs(s))return E.fail("Tried to add a parameter name to a non-parameter: "+E.formatSyntaxKind(i.kind));const o=s.parent.parameters.indexOf(s);E.assert(!s.type,"Tried to add a parameter name to a parameter that already had one."),E.assert(o>-1,"Parameter not found in parent parameter list.");let c=s.name.getEnd(),u=I.createTypeReferenceNode(s.name,void 0),f=CCe(t,s);for(;f;)u=I.createArrayTypeNode(u),c=f.getEnd(),f=CCe(t,f);const g=I.createParameterDeclaration(s.modifiers,s.dotDotDotToken,"arg"+o,s.questionToken,s.dotDotDotToken&&!Aw(u)?I.createArrayTypeNode(u):u,s.initializer);e.replaceRange(t,Uf(s.getStart(t),c),g)}function CCe(e,t){const n=x2(t.name,t.parent,e);if(n&&n.kind===23&&s2(n.parent)&&rs(n.parent.parent))return n.parent.parent}var cX,pue,dUe=wt({"src/services/codefixes/addNameToNamelessParameter.ts"(){qn(),ra(),cX="addNameToNamelessParameter",pue=[p.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code],ea({errorCodes:pue,getCodeActions:function(t){const n=Kr.ChangeTracker.with(t,i=>kCe(i,t.sourceFile,t.span.start));return[js(cX,n,p.Add_parameter_name,cX,p.Add_names_to_all_parameters_without_names)]},fixIds:[cX],getAllCodeActions:e=>Ga(e,pue,(t,n)=>kCe(t,n.file,n.start))})}});function mUe(e,t,n){var i,s;const o=ECe(RG(e,t),n);if(!o)return Ve;const{source:c,target:u}=o,f=gUe(c,u,n)?n.getTypeAtLocation(u.expression):n.getTypeAtLocation(u);return(s=(i=f.symbol)==null?void 0:i.declarations)!=null&&s.some(g=>wr(g).fileName.match(/\.d\.ts$/))?Ve:n.getExactOptionalProperties(f)}function gUe(e,t,n){return Sn(t)&&!!n.getExactOptionalProperties(n.getTypeAtLocation(t.expression)).length&&n.getTypeAtLocation(e)===n.getUndefinedType()}function ECe(e,t){var n;if(e){if(Zr(e.parent)&&e.parent.operatorToken.kind===64)return{source:e.parent.right,target:e.parent.left};if(hi(e.parent)&&e.parent.initializer)return{source:e.parent.initializer,target:e.parent.name};if(Rs(e.parent)){const i=t.getSymbolAtLocation(e.parent.expression);if(!(i!=null&&i.valueDeclaration)||!wT(i.valueDeclaration.kind)||!ot(e))return;const s=e.parent.arguments.indexOf(e);if(s===-1)return;const o=i.valueDeclaration.parameters[s].name;if(Ie(o))return{source:e,target:o}}else if(zc(e.parent)&&Ie(e.parent.name)||k_(e.parent)){const i=ECe(e.parent.parent,t);if(!i)return;const s=t.getPropertyOfType(t.getTypeAtLocation(i.target),e.parent.name.text),o=(n=s==null?void 0:s.declarations)==null?void 0:n[0];return o?{source:zc(e.parent)?e.parent.initializer:e.parent.name,target:o}:void 0}}else return}function hUe(e,t){for(const n of t){const i=n.valueDeclaration;if(i&&(B_(i)||xs(i))&&i.type){const s=I.createUnionTypeNode([...i.type.kind===192?i.type.types:[i.type],I.createTypeReferenceNode("undefined")]);e.replaceNode(i.getSourceFile(),i.type,s)}}}var due,PCe,yUe=wt({"src/services/codefixes/addOptionalPropertyUndefined.ts"(){qn(),ra(),due="addOptionalPropertyUndefined",PCe=[p.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,p.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,p.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:PCe,getCodeActions(e){const t=e.program.getTypeChecker(),n=mUe(e.sourceFile,e.span,t);if(!n.length)return;const i=Kr.ChangeTracker.with(e,s=>hUe(s,n));return[Td(due,i,p.Add_undefined_to_optional_property_type)]},fixIds:[due]})}});function DCe(e,t){const n=Ui(e,t);return Wn(rs(n.parent)?n.parent.parent:n.parent,wCe)}function wCe(e){return vUe(e)&&ACe(e)}function ACe(e){return fo(e)?e.parameters.some(ACe)||!e.type&&!!HD(e):!e.type&&!!S1(e)}function NCe(e,t,n){if(fo(n)&&(HD(n)||n.parameters.some(i=>!!S1(i)))){if(!n.typeParameters){const s=Q5(n);s.length&&e.insertTypeParameters(t,n,s)}const i=po(n)&&!qa(n,21,t);i&&e.insertNodeBefore(t,va(n.parameters),I.createToken(21));for(const s of n.parameters)if(!s.type){const o=S1(s);o&&e.tryInsertTypeAnnotation(t,s,qe(o,D2,ki))}if(i&&e.insertNodeAfter(t,ka(n.parameters),I.createToken(22)),!n.type){const s=HD(n);s&&e.tryInsertTypeAnnotation(t,n,qe(s,D2,ki))}}else{const i=E.checkDefined(S1(n),"A JSDocType for this declaration should exist");E.assert(!n.type,"The JSDocType decl should have a type"),e.tryInsertTypeAnnotation(t,n,qe(i,D2,ki))}}function vUe(e){return fo(e)||e.kind===260||e.kind===171||e.kind===172}function D2(e){switch(e.kind){case 319:case 320:return I.createTypeReferenceNode("any",Ve);case 323:return SUe(e);case 322:return D2(e.type);case 321:return TUe(e);case 325:return xUe(e);case 324:return kUe(e);case 183:return EUe(e);case 329:return bUe(e);default:const t=ur(e,D2,void 0);return Qr(t,1),t}}function bUe(e){const t=I.createTypeLiteralNode(nr(e.jsDocPropertyTags,n=>I.createPropertySignature(void 0,Ie(n.name)?n.name:n.name.right,ow(n)?I.createToken(58):void 0,n.typeExpression&&qe(n.typeExpression.type,D2,ki)||I.createKeywordTypeNode(133))));return Qr(t,1),t}function SUe(e){return I.createUnionTypeNode([qe(e.type,D2,ki),I.createTypeReferenceNode("undefined",Ve)])}function TUe(e){return I.createUnionTypeNode([qe(e.type,D2,ki),I.createTypeReferenceNode("null",Ve)])}function xUe(e){return I.createArrayTypeNode(qe(e.type,D2,ki))}function kUe(e){return I.createFunctionTypeNode(Ve,e.parameters.map(CUe),e.type??I.createKeywordTypeNode(133))}function CUe(e){const t=e.parent.parameters.indexOf(e),n=e.type.kind===325&&t===e.parent.parameters.length-1,i=e.name||(n?"rest":"arg"+t),s=n?I.createToken(26):e.dotDotDotToken;return I.createParameterDeclaration(e.modifiers,s,i,e.questionToken,qe(e.type,D2,ki),e.initializer)}function EUe(e){let t=e.typeName,n=e.typeArguments;if(Ie(e.typeName)){if(N5(e))return PUe(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=I.createIdentifier(i),(i==="Array"||i==="Promise")&&!e.typeArguments?n=I.createNodeArray([I.createTypeReferenceNode("any",Ve)]):n=Dr(e.typeArguments,D2,ki)}return I.createTypeReferenceNode(t,n)}function PUe(e){const t=I.createParameterDeclaration(void 0,void 0,e.typeArguments[0].kind===150?"n":"s",void 0,I.createTypeReferenceNode(e.typeArguments[0].kind===150?"number":"string",[]),void 0),n=I.createTypeLiteralNode([I.createIndexSignature(void 0,[t],e.typeArguments[1])]);return Qr(n,1),n}var lX,mue,DUe=wt({"src/services/codefixes/annotateWithTypeFromJSDoc.ts"(){qn(),ra(),lX="annotateWithTypeFromJSDoc",mue=[p.JSDoc_types_may_be_moved_to_TypeScript_types.code],ea({errorCodes:mue,getCodeActions(e){const t=DCe(e.sourceFile,e.span.start);if(!t)return;const n=Kr.ChangeTracker.with(e,i=>NCe(i,e.sourceFile,t));return[js(lX,n,p.Annotate_with_type_from_JSDoc,lX,p.Annotate_everything_with_types_from_JSDoc)]},fixIds:[lX],getAllCodeActions:e=>Ga(e,mue,(t,n)=>{const i=DCe(n.file,n.start);i&&NCe(t,n.file,i)})})}});function ICe(e,t,n,i,s,o){const c=i.getSymbolAtLocation(Ui(t,n));if(!c||!c.valueDeclaration||!(c.flags&19))return;const u=c.valueDeclaration;if($c(u)||co(u))e.replaceNode(t,u,d(u));else if(hi(u)){const y=g(u);if(!y)return;const S=u.parent.parent;dl(u.parent)&&u.parent.declarations.length>1?(e.delete(t,u),e.insertNodeAfter(t,S,y)):e.replaceNode(t,S,y)}function f(y){const S=[];return y.exports&&y.exports.forEach(w=>{if(w.name==="prototype"&&w.declarations){const P=w.declarations[0];if(w.declarations.length===1&&Sn(P)&&Zr(P.parent)&&P.parent.operatorToken.kind===64&&ua(P.parent.right)){const F=P.parent.right;k(F.symbol,void 0,S)}}else k(w,[I.createToken(126)],S)}),y.members&&y.members.forEach((w,P)=>{var F,J,U,$;if(P==="constructor"&&w.valueDeclaration){const j=($=(U=(J=(F=y.exports)==null?void 0:F.get("prototype"))==null?void 0:J.declarations)==null?void 0:U[0])==null?void 0:$.parent;j&&Zr(j)&&ua(j.right)&&ct(j.right.properties,_X)||e.delete(t,w.valueDeclaration.parent);return}k(w,void 0,S)}),S;function T(w,P){return oo(w)?Sn(w)&&_X(w)?!0:As(P):Wi(w.properties,F=>!!(hc(F)||U7(F)||zc(F)&&co(F.initializer)&&F.name||_X(F)))}function k(w,P,F){if(!(w.flags&8192)&&!(w.flags&4096))return;const J=w.valueDeclaration,U=J.parent,$=U.right;if(!T(J,$)||ct(F,ue=>{const pe=us(ue);return!!(pe&&Ie(pe)&&on(pe)===Xo(w))}))return;const j=U.parent&&U.parent.kind===244?U.parent:U;if(e.delete(t,j),!$){F.push(I.createPropertyDeclaration(P,w.name,void 0,void 0,void 0));return}if(oo(J)&&(co($)||po($))){const ue=wf(t,s),pe=wUe(J,o,ue);pe&&re(F,$,pe);return}else if(ua($)){er($.properties,ue=>{(hc(ue)||U7(ue))&&F.push(ue),zc(ue)&&co(ue.initializer)&&re(F,ue.initializer,ue.name),_X(ue)});return}else{if(Ou(t)||!Sn(J))return;const ue=I.createPropertyDeclaration(P,J.name,void 0,void 0,$);T6(U.parent,ue,t),F.push(ue);return}function re(ue,pe,H){return co(pe)?R(ue,pe,H):Y(ue,pe,H)}function R(ue,pe,H){const q=es(P,uX(pe,134)),ee=I.createMethodDeclaration(q,void 0,H,void 0,void 0,pe.parameters,void 0,pe.body);T6(U,ee,t),ue.push(ee)}function Y(ue,pe,H){const q=pe.body;let ee;q.kind===241?ee=q:ee=I.createBlock([I.createReturnStatement(q)]);const oe=es(P,uX(pe,134)),Se=I.createMethodDeclaration(oe,void 0,H,void 0,void 0,pe.parameters,void 0,ee);T6(U,Se,t),ue.push(Se)}}}function g(y){const S=y.initializer;if(!S||!co(S)||!Ie(y.name))return;const T=f(y.symbol);S.body&&T.unshift(I.createConstructorDeclaration(void 0,S.parameters,S.body));const k=uX(y.parent.parent,95);return I.createClassDeclaration(k,y.name,void 0,void 0,T)}function d(y){const S=f(c);y.body&&S.unshift(I.createConstructorDeclaration(void 0,y.parameters,y.body));const T=uX(y,95);return I.createClassDeclaration(T,y.name,void 0,void 0,S)}}function uX(e,t){return $p(e)?An(e.modifiers,n=>n.kind===t):void 0}function _X(e){return e.name?!!(Ie(e.name)&&e.name.text==="constructor"):!1}function wUe(e,t,n){if(Sn(e))return e.name;const i=e.argumentExpression;if(j_(i))return i;if(Ma(i))return Sf(i.text,Fa(t))?I.createIdentifier(i.text):tx(i)?I.createStringLiteral(i.text,n===0):i}var fX,gue,AUe=wt({"src/services/codefixes/convertFunctionToEs6Class.ts"(){qn(),ra(),fX="convertFunctionToEs6Class",gue=[p.This_constructor_function_may_be_converted_to_a_class_declaration.code],ea({errorCodes:gue,getCodeActions(e){const t=Kr.ChangeTracker.with(e,n=>ICe(n,e.sourceFile,e.span.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()));return[js(fX,t,p.Convert_function_to_an_ES2015_class,fX,p.Convert_all_constructor_functions_to_classes)]},fixIds:[fX],getAllCodeActions:e=>Ga(e,gue,(t,n)=>ICe(t,n.file,n.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()))})}});function FCe(e,t,n,i){const s=Ui(t,n);let o;if(Ie(s)&&hi(s.parent)&&s.parent.initializer&&fo(s.parent.initializer)?o=s.parent.initializer:o=Wn(cf(Ui(t,n)),c$),!o)return;const c=new Map,u=Hr(o),f=IUe(o,i),g=FUe(o,i,c);if(!a$(g,i))return;const d=g.body&&Cs(g.body)?NUe(g.body,i):Ve,y={checker:i,synthNamesMap:c,setOfExpressionsToReturn:f,isInJSFile:u};if(!d.length)return;const S=ca(t.text,Xd(o).pos);e.insertModifierAt(t,S,134,{suffix:" "});for(const T of d)if(Ss(T,function k(w){if(Rs(w)){const P=I6(w,w,y,!1);if(Lx())return!0;e.replaceNodeWithNodes(t,T,P)}else if(!As(w)&&(Ss(w,k),Lx()))return!0}),Lx())return}function NUe(e,t){const n=[];return Wv(e,i=>{uM(i,t)&&n.push(i)}),n}function IUe(e,t){if(!e.body)return new Set;const n=new Set;return Ss(e.body,function i(s){PN(s,t,"then")?(n.add(Oa(s)),er(s.arguments,i)):PN(s,t,"catch")||PN(s,t,"finally")?(n.add(Oa(s)),Ss(s,i)):LCe(s,t)?n.add(Oa(s)):Ss(s,i)}),n}function PN(e,t,n){if(!Rs(e))return!1;const s=JA(e,n)&&t.getTypeAtLocation(e);return!!(s&&t.getPromisedTypeOfPromise(s))}function OCe(e,t){return(bn(e)&4)!==0&&e.target===t}function pX(e,t,n){if(e.expression.name.escapedText==="finally")return;const i=n.getTypeAtLocation(e.expression.expression);if(OCe(i,n.getPromiseType())||OCe(i,n.getPromiseLikeType()))if(e.expression.name.escapedText==="then"){if(t===Uh(e.arguments,0))return Uh(e.typeArguments,0);if(t===Uh(e.arguments,1))return Uh(e.typeArguments,1)}else return Uh(e.typeArguments,0)}function LCe(e,t){return ot(e)?!!t.getPromisedTypeOfPromise(t.getTypeAtLocation(e)):!1}function FUe(e,t,n){const i=new Map,s=vf();return Ss(e,function o(c){if(!Ie(c)){Ss(c,o);return}const u=t.getSymbolAtLocation(c);if(u){const f=t.getTypeAtLocation(c),g=zCe(f,t),d=Ks(u).toString();if(g&&!rs(c.parent)&&!fo(c.parent)&&!n.has(d)){const y=bl(g.parameters),S=(y==null?void 0:y.valueDeclaration)&&rs(y.valueDeclaration)&&Wn(y.valueDeclaration.name,Ie)||I.createUniqueName("result",16),T=MCe(S,s);n.set(d,T),s.add(S.text,u)}else if(c.parent&&(rs(c.parent)||hi(c.parent)||Ea(c.parent))){const y=c.text,S=s.get(y);if(S&&S.some(T=>T!==u)){const T=MCe(c,s);i.set(d,T.identifier),n.set(d,T),s.add(y,u)}else{const T=Lo(c);n.set(d,fP(T)),s.add(y,u)}}}}),tN(e,!0,o=>{if(Ea(o)&&Ie(o.name)&&kp(o.parent)){const c=t.getSymbolAtLocation(o.name),u=c&&i.get(String(Ks(c)));if(u&&u.text!==(o.name||o.propertyName).getText())return I.createBindingElement(o.dotDotDotToken,o.propertyName||o.name,u,o.initializer)}else if(Ie(o)){const c=t.getSymbolAtLocation(o),u=c&&i.get(String(Ks(c)));if(u)return I.createIdentifier(u.text)}})}function MCe(e,t){const n=(t.get(e.text)||Ve).length,i=n===0?e:I.createIdentifier(e.text+"_"+n);return fP(i)}function Lx(){return!MM}function X1(){return MM=!1,Ve}function I6(e,t,n,i,s){if(PN(t,n.checker,"then"))return MUe(t,Uh(t.arguments,0),Uh(t.arguments,1),n,i,s);if(PN(t,n.checker,"catch"))return BCe(t,Uh(t.arguments,0),n,i,s);if(PN(t,n.checker,"finally"))return LUe(t,Uh(t.arguments,0),n,i,s);if(Sn(t))return I6(e,t.expression,n,i,s);const o=n.checker.getTypeAtLocation(t);return o&&n.checker.getPromisedTypeOfPromise(o)?(E.assertNode(ic(t).parent,Sn),RUe(e,t,n,i,s)):X1()}function dX({checker:e},t){if(t.kind===106)return!0;if(Ie(t)&&!Fo(t)&&on(t)==="undefined"){const n=e.getSymbolAtLocation(t);return!n||e.isUndefinedSymbol(n)}return!1}function OUe(e){const t=I.createUniqueName(e.identifier.text,16);return fP(t)}function RCe(e,t,n){let i;return n&&!wN(e,t)&&(DN(n)?(i=n,t.synthNamesMap.forEach((s,o)=>{if(s.identifier.text===n.identifier.text){const c=OUe(n);t.synthNamesMap.set(o,c)}})):i=fP(I.createUniqueName("result",16),n.types),bue(i)),i}function jCe(e,t,n,i,s){const o=[];let c;if(i&&!wN(e,t)){c=Lo(bue(i));const u=i.types,f=t.checker.getUnionType(u,2),g=t.isInJSFile?void 0:t.checker.typeToTypeNode(f,void 0,void 0),d=[I.createVariableDeclaration(c,void 0,g)],y=I.createVariableStatement(void 0,I.createVariableDeclarationList(d,1));o.push(y)}return o.push(n),s&&c&&JUe(s)&&o.push(I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(Lo(qCe(s)),void 0,void 0,c)],2))),o}function LUe(e,t,n,i,s){if(!t||dX(n,t))return I6(e,e.expression.expression,n,i,s);const o=RCe(e,n,s),c=I6(e,e.expression.expression,n,!0,o);if(Lx())return X1();const u=yue(t,i,void 0,void 0,e,n);if(Lx())return X1();const f=I.createBlock(c),g=I.createBlock(u),d=I.createTryStatement(f,void 0,g);return jCe(e,n,d,o,s)}function BCe(e,t,n,i,s){if(!t||dX(n,t))return I6(e,e.expression.expression,n,i,s);const o=VCe(t,n),c=RCe(e,n,s),u=I6(e,e.expression.expression,n,!0,c);if(Lx())return X1();const f=yue(t,i,c,o,e,n);if(Lx())return X1();const g=I.createBlock(u),d=I.createCatchClause(o&&Lo(LM(o)),I.createBlock(f)),y=I.createTryStatement(g,d,void 0);return jCe(e,n,y,c,s)}function MUe(e,t,n,i,s,o){if(!t||dX(i,t))return BCe(e,n,i,s,o);if(n&&!dX(i,n))return X1();const c=VCe(t,i),u=I6(e.expression.expression,e.expression.expression,i,!0,c);if(Lx())return X1();const f=yue(t,s,o,c,e,i);return Lx()?X1():es(u,f)}function RUe(e,t,n,i,s){if(wN(e,n)){let o=Lo(t);return i&&(o=I.createAwaitExpression(o)),[I.createReturnStatement(o)]}return mX(s,I.createAwaitExpression(t),void 0)}function mX(e,t,n){return!e||UCe(e)?[I.createExpressionStatement(t)]:DN(e)&&e.hasBeenDeclared?[I.createExpressionStatement(I.createAssignment(Lo(vue(e)),t))]:[I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(Lo(LM(e)),void 0,n,t)],2))]}function hue(e,t){if(t&&e){const n=I.createUniqueName("result",16);return[...mX(fP(n),e,t),I.createReturnStatement(n)]}return[I.createReturnStatement(e)]}function yue(e,t,n,i,s,o){var c;switch(e.kind){case 106:break;case 211:case 80:if(!i)break;const u=I.createCallExpression(Lo(e),void 0,DN(i)?[vue(i)]:[]);if(wN(s,o))return hue(u,pX(s,e,o.checker));const f=o.checker.getTypeAtLocation(e),g=o.checker.getSignaturesOfType(f,0);if(!g.length)return X1();const d=g[0].getReturnType(),y=mX(n,I.createAwaitExpression(u),pX(s,e,o.checker));return n&&n.types.push(o.checker.getAwaitedType(d)||d),y;case 218:case 219:{const S=e.body,T=(c=zCe(o.checker.getTypeAtLocation(e),o.checker))==null?void 0:c.getReturnType();if(Cs(S)){let k=[],w=!1;for(const P of S.statements)if(Hp(P))if(w=!0,uM(P,o.checker))k=k.concat(WCe(o,P,t,n));else{const F=T&&P.expression?JCe(o.checker,T,P.expression):P.expression;k.push(...hue(F,pX(s,e,o.checker)))}else{if(t&&Wv(P,Wh))return X1();k.push(P)}return wN(s,o)?k.map(P=>Lo(P)):jUe(k,n,o,w)}else{const k=o$(S,o.checker)?WCe(o,I.createReturnStatement(S),t,n):Ve;if(k.length>0)return k;if(T){const w=JCe(o.checker,T,S);if(wN(s,o))return hue(w,pX(s,e,o.checker));{const P=mX(n,w,void 0);return n&&n.types.push(o.checker.getAwaitedType(T)||T),P}}else return X1()}}default:return X1()}return Ve}function JCe(e,t,n){const i=Lo(n);return e.getPromisedTypeOfPromise(t)?I.createAwaitExpression(i):i}function zCe(e,t){const n=t.getSignaturesOfType(e,0);return Po(n)}function jUe(e,t,n,i){const s=[];for(const o of e)if(Hp(o)){if(o.expression){const c=LCe(o.expression,n.checker)?I.createAwaitExpression(o.expression):o.expression;t===void 0?s.push(I.createExpressionStatement(c)):DN(t)&&t.hasBeenDeclared?s.push(I.createExpressionStatement(I.createAssignment(vue(t),c))):s.push(I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(LM(t),void 0,void 0,c)],2)))}}else s.push(Lo(o));return!i&&t!==void 0&&s.push(I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(LM(t),void 0,void 0,I.createIdentifier("undefined"))],2))),s}function WCe(e,t,n,i){let s=[];return Ss(t,function o(c){if(Rs(c)){const u=I6(c,c,e,n,i);if(s=s.concat(u),s.length>0)return}else As(c)||Ss(c,o)}),s}function VCe(e,t){const n=[];let i;if(fo(e)){if(e.parameters.length>0){const f=e.parameters[0].name;i=s(f)}}else Ie(e)?i=o(e):Sn(e)&&Ie(e.name)&&(i=o(e.name));if(!i||"identifier"in i&&i.identifier.text==="undefined")return;return i;function s(f){if(Ie(f))return o(f);const g=Zs(f.elements,d=>pl(d)?[]:[s(d.name)]);return BUe(f,g)}function o(f){const g=u(f),d=c(g);return d&&t.synthNamesMap.get(Ks(d).toString())||fP(f,n)}function c(f){var g;return((g=Wn(f,Wd))==null?void 0:g.symbol)??t.checker.getSymbolAtLocation(f)}function u(f){return f.original?f.original:f}}function UCe(e){return e?DN(e)?!e.identifier.text:Wi(e.elements,UCe):!0}function fP(e,t=[]){return{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function BUe(e,t=Ve,n=[]){return{kind:1,bindingPattern:e,elements:t,types:n}}function vue(e){return e.hasBeenReferenced=!0,e.identifier}function LM(e){return DN(e)?bue(e):qCe(e)}function qCe(e){for(const t of e.elements)LM(t);return e.bindingPattern}function bue(e){return e.hasBeenDeclared=!0,e.identifier}function DN(e){return e.kind===0}function JUe(e){return e.kind===1}function wN(e,t){return!!e.original&&t.setOfExpressionsToReturn.has(Oa(e.original))}var gX,Sue,MM,zUe=wt({"src/services/codefixes/convertToAsyncFunction.ts"(){qn(),ra(),gX="convertToAsyncFunction",Sue=[p.This_may_be_converted_to_an_async_function.code],MM=!0,ea({errorCodes:Sue,getCodeActions(e){MM=!0;const t=Kr.ChangeTracker.with(e,n=>FCe(n,e.sourceFile,e.span.start,e.program.getTypeChecker()));return MM?[js(gX,t,p.Convert_to_async_function,gX,p.Convert_all_to_async_functions)]:[]},fixIds:[gX],getAllCodeActions:e=>Ga(e,Sue,(t,n)=>FCe(t,n.file,n.start,e.program.getTypeChecker()))})}});function WUe(e,t,n,i,s){var o;for(const c of e.imports){const u=(o=n.getResolvedModuleFromModuleSpecifier(c))==null?void 0:o.resolvedModule;if(!u||u.resolvedFileName!==t.fileName)continue;const f=TE(c);switch(f.kind){case 271:i.replaceNode(e,f,_0(f.name,void 0,c,s));break;case 213:Gu(f,!1)&&i.replaceNode(e,f,I.createPropertyAccessExpression(Lo(f),"default"));break}}}function VUe(e,t,n,i,s){const o={original:rqe(e),additional:new Set},c=UUe(e,t,o);qUe(e,c,n);let u=!1,f;for(const g of An(e.statements,ac)){const d=GCe(e,g,n,t,o,i,s);d&&s5(d,f??(f=new Map))}for(const g of An(e.statements,d=>!ac(d))){const d=HUe(e,g,t,n,o,i,c,f,s);u=u||d}return f==null||f.forEach((g,d)=>{n.replaceNode(e,d,g)}),u}function UUe(e,t,n){const i=new Map;return HCe(e,s=>{const{text:o}=s.name;!i.has(o)&&(Kz(s.name)||t.resolveName(o,s,111551,!0))&&i.set(o,hX(`_${o}`,n))}),i}function qUe(e,t,n){HCe(e,(i,s)=>{if(s)return;const{text:o}=i.name;n.replaceNode(e,i,I.createIdentifier(t.get(o)||o))})}function HCe(e,t){e.forEachChild(function n(i){if(Sn(i)&&g2(e,i.expression)&&Ie(i.name)){const{parent:s}=i;t(i,Zr(s)&&s.left===i&&s.operatorToken.kind===64)}i.forEachChild(n)})}function HUe(e,t,n,i,s,o,c,u,f){switch(t.kind){case 243:return GCe(e,t,i,n,s,o,f),!1;case 244:{const{expression:g}=t;switch(g.kind){case 213:return Gu(g,!0)&&i.replaceNode(e,t,_0(void 0,void 0,g.arguments[0],f)),!1;case 226:{const{operatorToken:d}=g;return d.kind===64&&$Ue(e,n,g,i,c,u)}}}default:return!1}}function GCe(e,t,n,i,s,o,c){const{declarationList:u}=t;let f=!1;const g=nr(u.declarations,d=>{const{name:y,initializer:S}=d;if(S){if(g2(e,S))return f=!0,pP([]);if(Gu(S,!0))return f=!0,eqe(y,S.arguments[0],i,s,o,c);if(Sn(S)&&Gu(S.expression,!0))return f=!0,GUe(y,S.name.text,S.expression.arguments[0],s,c)}return pP([I.createVariableStatement(void 0,I.createVariableDeclarationList([d],u.flags))])});if(f){n.replaceNodeWithNodes(e,t,Zs(g,y=>y.newImports));let d;return er(g,y=>{y.useSitesToUnqualify&&s5(y.useSitesToUnqualify,d??(d=new Map))}),d}}function GUe(e,t,n,i,s){switch(e.kind){case 206:case 207:{const o=hX(t,i);return pP([YCe(o,t,n,s),yX(void 0,e,I.createIdentifier(o))])}case 80:return pP([YCe(e.text,t,n,s)]);default:return E.assertNever(e,`Convert to ES module got invalid syntax form ${e.kind}`)}}function $Ue(e,t,n,i,s,o){const{left:c,right:u}=n;if(!Sn(c))return!1;if(g2(e,c))if(g2(e,u))i.delete(e,n.parent);else{const f=ua(u)?XUe(u,o):Gu(u,!0)?YUe(u.arguments[0],t):void 0;return f?(i.replaceNodeWithNodes(e,n.parent,f[0]),f[1]):(i.replaceRangeWithText(e,Uf(c.getStart(e),u.pos),"export default"),!0)}else g2(e,c.expression)&&QUe(e,n,i,s);return!1}function XUe(e,t){const n=iB(e.properties,i=>{switch(i.kind){case 177:case 178:case 304:case 305:return;case 303:return Ie(i.name)?KUe(i.name.text,i.initializer,t):void 0;case 174:return Ie(i.name)?QCe(i.name.text,[I.createToken(95)],i,t):void 0;default:E.assertNever(i,`Convert to ES6 got invalid prop kind ${i.kind}`)}});return n&&[n,!1]}function QUe(e,t,n,i){const{text:s}=t.left.name,o=i.get(s);if(o!==void 0){const c=[yX(void 0,o,t.right),kue([I.createExportSpecifier(!1,o,s)])];n.replaceNodeWithNodes(e,t.parent,c)}else ZUe(t,e,n)}function YUe(e,t){const n=e.text,i=t.getSymbolAtLocation(e),s=i?i.exports:_7;return s.has("export=")?[[Tue(n)],!0]:s.has("default")?s.size>1?[[$Ce(n),Tue(n)],!0]:[[Tue(n)],!0]:[[$Ce(n)],!1]}function $Ce(e){return kue(void 0,e)}function Tue(e){return kue([I.createExportSpecifier(!1,void 0,"default")],e)}function ZUe({left:e,right:t,parent:n},i,s){const o=e.name.text;if((co(t)||po(t)||kl(t))&&(!t.name||t.name.text===o)){s.replaceRange(i,{pos:e.getStart(i),end:t.getStart(i)},I.createToken(95),{suffix:" "}),t.name||s.insertName(i,t,o);const c=qa(n,27,i);c&&s.delete(i,c)}else s.replaceNodeRangeWithNodes(i,e.expression,qa(e,25,i),[I.createToken(95),I.createToken(87)],{joiner:" ",suffix:" "})}function KUe(e,t,n){const i=[I.createToken(95)];switch(t.kind){case 218:{const{name:o}=t;if(o&&o.text!==e)return s()}case 219:return QCe(e,i,t,n);case 231:return iqe(e,i,t,n);default:return s()}function s(){return yX(i,I.createIdentifier(e),xue(t,n))}}function xue(e,t){if(!t||!ct(gs(t.keys()),i=>Df(e,i)))return e;return ts(e)?wG(e,!0,n):tN(e,!0,n);function n(i){if(i.kind===211){const s=t.get(i);return t.delete(i),s}}}function eqe(e,t,n,i,s,o){switch(e.kind){case 206:{const c=iB(e.elements,u=>u.dotDotDotToken||u.initializer||u.propertyName&&!Ie(u.propertyName)||!Ie(u.name)?void 0:ZCe(u.propertyName&&u.propertyName.text,u.name.text));if(c)return pP([_0(void 0,c,t,o)])}case 207:{const c=hX(Rue(t.text,s),i);return pP([_0(I.createIdentifier(c),void 0,t,o),yX(void 0,Lo(e),I.createIdentifier(c))])}case 80:return tqe(e,t,n,i,o);default:return E.assertNever(e,`Convert to ES module got invalid name kind ${e.kind}`)}}function tqe(e,t,n,i,s){const o=n.getSymbolAtLocation(e),c=new Map;let u=!1,f;for(const d of i.original.get(e.text)){if(n.getSymbolAtLocation(d)!==o||d===e)continue;const{parent:y}=d;if(Sn(y)){const{name:{text:S}}=y;if(S==="default"){u=!0;const T=d.getText();(f??(f=new Map)).set(y,I.createIdentifier(T))}else{E.assert(y.expression===d,"Didn't expect expression === use");let T=c.get(S);T===void 0&&(T=hX(S,i),c.set(S,T)),(f??(f=new Map)).set(y,I.createIdentifier(T))}}else u=!0}const g=c.size===0?void 0:gs(j4(c.entries(),([d,y])=>I.createImportSpecifier(!1,d===y?void 0:I.createIdentifier(d),I.createIdentifier(y))));return g||(u=!0),pP([_0(u?Lo(e):void 0,g,t,s)],f)}function hX(e,t){for(;t.original.has(e)||t.additional.has(e);)e=`_${e}`;return t.additional.add(e),e}function rqe(e){const t=vf();return XCe(e,n=>t.add(n.text,n)),t}function XCe(e,t){Ie(e)&&nqe(e)&&t(e),e.forEachChild(n=>XCe(n,t))}function nqe(e){const{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,n,i){return I.createFunctionDeclaration(es(t,k2(n.modifiers)),Lo(n.asteriskToken),e,k2(n.typeParameters),k2(n.parameters),Lo(n.type),I.converters.convertToFunctionBlock(xue(n.body,i)))}function iqe(e,t,n,i){return I.createClassDeclaration(es(t,k2(n.modifiers)),e,k2(n.typeParameters),k2(n.heritageClauses),xue(n.members,i))}function YCe(e,t,n,i){return t==="default"?_0(I.createIdentifier(e),void 0,n,i):_0(void 0,[ZCe(t,e)],n,i)}function ZCe(e,t){return I.createImportSpecifier(!1,e!==void 0&&e!==t?I.createIdentifier(e):void 0,I.createIdentifier(t))}function yX(e,t,n){return I.createVariableStatement(e,I.createVariableDeclarationList([I.createVariableDeclaration(t,void 0,void 0,n)],2))}function kue(e,t){return I.createExportDeclaration(void 0,!1,e&&I.createNamedExports(e),t===void 0?void 0:I.createStringLiteral(t))}function pP(e,t){return{newImports:e,useSitesToUnqualify:t}}var sqe=wt({"src/services/codefixes/convertToEsModule.ts"(){qn(),ra(),ea({errorCodes:[p.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(e){const{sourceFile:t,program:n,preferences:i}=e,s=Kr.ChangeTracker.with(e,o=>{if(VUe(t,n.getTypeChecker(),o,Fa(n.getCompilerOptions()),wf(t,i)))for(const u of n.getSourceFiles())WUe(u,t,n,o,wf(u,i))});return[Td("convertToEsModule",s,p.Convert_to_ES_module)]}})}});function KCe(e,t){const n=Pr(Ui(e,t),Xu);return E.assert(!!n,"Expected position to be owned by a qualified name."),Ie(n.left)?n:void 0}function e6e(e,t,n){const i=n.right.text,s=I.createIndexedAccessTypeNode(I.createTypeReferenceNode(n.left,void 0),I.createLiteralTypeNode(I.createStringLiteral(i)));e.replaceNode(t,n,s)}var vX,Cue,aqe=wt({"src/services/codefixes/correctQualifiedNameToIndexedAccessType.ts"(){qn(),ra(),vX="correctQualifiedNameToIndexedAccessType",Cue=[p.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:Cue,getCodeActions(e){const t=KCe(e.sourceFile,e.span.start);if(!t)return;const n=Kr.ChangeTracker.with(e,s=>e6e(s,e.sourceFile,t)),i=`${t.left.text}["${t.right.text}"]`;return[js(vX,n,[p.Rewrite_as_the_indexed_access_type_0,i],vX,p.Rewrite_all_as_indexed_access_types)]},fixIds:[vX],getAllCodeActions:e=>Ga(e,Cue,(t,n)=>{const i=KCe(n.file,n.start);i&&e6e(t,n.file,i)})})}});function t6e(e,t){return Wn(Ui(t,e.start).parent,vu)}function r6e(e,t,n){if(!t)return;const i=t.parent,s=i.parent,o=oqe(t,n);if(o.length===i.elements.length)e.insertModifierBefore(n.sourceFile,156,i);else{const c=I.updateExportDeclaration(s,s.modifiers,!1,I.updateNamedExports(i,An(i.elements,f=>!bs(o,f))),s.moduleSpecifier,void 0),u=I.createExportDeclaration(void 0,!0,I.createNamedExports(o),s.moduleSpecifier,void 0);e.replaceNode(n.sourceFile,s,c,{leadingTriviaOption:Kr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Kr.TrailingTriviaOption.Exclude}),e.insertNodeAfter(n.sourceFile,s,u)}}function oqe(e,t){const n=e.parent;if(n.elements.length===1)return n.elements;const i=Cce(Zu(n),t.program.getSemanticDiagnostics(t.sourceFile,t.cancellationToken));return An(n.elements,s=>{var o;return s===e||((o=kce(s,i))==null?void 0:o.code)===bX[0]})}var bX,SX,cqe=wt({"src/services/codefixes/convertToTypeOnlyExport.ts"(){qn(),ra(),bX=[p.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],SX="convertToTypeOnlyExport",ea({errorCodes:bX,getCodeActions:function(t){const n=Kr.ChangeTracker.with(t,i=>r6e(i,t6e(t.span,t.sourceFile),t));if(n.length)return[js(SX,n,p.Convert_to_type_only_export,SX,p.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[SX],getAllCodeActions:function(t){const n=new Map;return Ga(t,bX,(i,s)=>{const o=t6e(s,t.sourceFile);o&&qp(n,Oa(o.parent.parent))&&r6e(i,o,t)})}})}});function n6e(e,t){const{parent:n}=Ui(e,t);return x_(n)||il(n)&&n.importClause?n:void 0}function i6e(e,t,n){if(e.parent.parent.name)return!1;const i=e.parent.elements.filter(o=>!o.isTypeOnly);if(i.length===1)return!0;const s=n.getTypeChecker();for(const o of i)if(lo.Core.eachSymbolReferenceInFile(o.name,s,t,u=>!I1(u)))return!1;return!0}function RM(e,t,n){var i;if(x_(n))e.replaceNode(t,n,I.updateImportSpecifier(n,!0,n.propertyName,n.name));else{const s=n.importClause;if(s.name&&s.namedBindings)e.replaceNodeWithNodes(t,n,[I.createImportDeclaration(k2(n.modifiers,!0),I.createImportClause(!0,Lo(s.name,!0),void 0),Lo(n.moduleSpecifier,!0),Lo(n.attributes,!0)),I.createImportDeclaration(k2(n.modifiers,!0),I.createImportClause(!0,void 0,Lo(s.namedBindings,!0)),Lo(n.moduleSpecifier,!0),Lo(n.attributes,!0))]);else{const o=((i=s.namedBindings)==null?void 0:i.kind)===275?I.updateNamedImports(s.namedBindings,rl(s.namedBindings.elements,u=>I.updateImportSpecifier(u,!1,u.propertyName,u.name))):s.namedBindings,c=I.updateImportDeclaration(n,n.modifiers,I.updateImportClause(s,!0,s.name,o),n.moduleSpecifier,n.attributes);e.replaceNode(t,n,c)}}}var Eue,jM,lqe=wt({"src/services/codefixes/convertToTypeOnlyImport.ts"(){qn(),ra(),Eue=[p.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error.code,p._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code,p._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code],jM="convertToTypeOnlyImport",ea({errorCodes:Eue,getCodeActions:function(t){var n;const i=n6e(t.sourceFile,t.span.start);if(i){const s=Kr.ChangeTracker.with(t,u=>RM(u,t.sourceFile,i)),o=i.kind===276&&i6e(i,t.sourceFile,t.program)?Kr.ChangeTracker.with(t,u=>RM(u,t.sourceFile,i.parent.parent.parent)):void 0,c=js(jM,s,i.kind===276?[p.Use_type_0,((n=i.propertyName)==null?void 0:n.text)??i.name.text]:p.Use_import_type,jM,p.Fix_all_with_type_only_imports);return ct(o)?[Td(jM,o,p.Use_import_type),c]:[c]}},fixIds:[jM],getAllCodeActions:function(t){const n=new Set;return Ga(t,Eue,(i,s)=>{const o=n6e(s.file,s.start);(o==null?void 0:o.kind)===272&&!n.has(o)?(RM(i,s.file,o),n.add(o)):(o==null?void 0:o.kind)===276&&!n.has(o.parent.parent.parent)&&i6e(o,s.file,t.program)?(RM(i,s.file,o.parent.parent.parent),n.add(o.parent.parent.parent)):(o==null?void 0:o.kind)===276&&RM(i,s.file,o)})}})}});function s6e(e,t,n,i,s=!1){if(!Zb(t))return;const o=_qe(t);if(!o)return;const c=t.parent,{leftSibling:u,rightSibling:f}=uqe(t);let g=c.getStart(),d="";!u&&c.comment&&(g=a6e(c,c.getStart(),t.getStart()),d=`${i} */${i}`),u&&(s&&Zb(u)?(g=t.getStart(),d=""):(g=a6e(c,u.getStart(),t.getStart()),d=`${i} */${i}`));let y=c.getEnd(),S="";f&&(s&&Zb(f)?(y=f.getStart(),S=`${i}${i}`):(y=f.getStart(),S=`${i}/**${i} * `)),e.replaceRange(n,{pos:g,end:y},o,{prefix:d,suffix:S})}function uqe(e){const t=e.parent,n=t.getChildCount()-1,i=t.getChildren().findIndex(c=>c.getStart()===e.getStart()&&c.getEnd()===e.getEnd()),s=i>0?t.getChildAt(i-1):void 0,o=i0;s--)if(!/[*/\s]/g.test(i.substring(s-1,s)))return t+s;return n}function _qe(e){var t;const{typeExpression:n}=e;if(!n)return;const i=(t=e.name)==null?void 0:t.getText();if(i){if(n.kind===329)return fqe(i,n);if(n.kind===316)return pqe(i,n)}}function fqe(e,t){const n=o6e(t);if(ct(n))return I.createInterfaceDeclaration(void 0,e,void 0,void 0,n)}function pqe(e,t){const n=Lo(t.type);if(n)return I.createTypeAliasDeclaration(void 0,I.createIdentifier(e),void 0,n)}function o6e(e){const t=e.jsDocPropertyTags;return ct(t)?Ri(t,i=>{var s;const o=dqe(i),c=(s=i.typeExpression)==null?void 0:s.type,u=i.isBracketed;let f;if(c&&Yb(c)){const g=o6e(c);f=I.createTypeLiteralNode(g)}else c&&(f=Lo(c));if(f&&o){const g=u?I.createToken(58):void 0;return I.createPropertySignature(void 0,o,g,f)}}):void 0}function dqe(e){return e.name.kind===80?e.name.text:e.name.right.text}function mqe(e){return sf(e)?Zs(e.jsDoc,t=>{var n;return(n=t.tags)==null?void 0:n.filter(i=>Zb(i))}):[]}var TX,Pue,gqe=wt({"src/services/codefixes/convertTypedefToType.ts"(){qn(),ra(),TX="convertTypedefToType",Pue=[p.JSDoc_typedef_may_be_converted_to_TypeScript_type.code],ea({fixIds:[TX],errorCodes:Pue,getCodeActions(e){const t=f0(e.host,e.formatContext.options),n=Ui(e.sourceFile,e.span.start);if(!n)return;const i=Kr.ChangeTracker.with(e,s=>s6e(s,n,e.sourceFile,t));if(i.length>0)return[js(TX,i,p.Convert_typedef_to_TypeScript_type,TX,p.Convert_all_typedef_to_TypeScript_types)]},getAllCodeActions:e=>Ga(e,Pue,(t,n)=>{const i=f0(e.host,e.formatContext.options),s=Ui(n.file,n.start);s&&s6e(t,s,n.file,i,!0)})})}});function c6e(e,t){const n=Ui(e,t);if(Ie(n)){const i=Ls(n.parent.parent,B_),s=n.getText(e);return{container:Ls(i.parent,z_),typeNode:i.type,constraint:s,name:s==="K"?"P":"K"}}}function l6e(e,t,{container:n,typeNode:i,constraint:s,name:o}){e.replaceNode(t,n,I.createMappedTypeNode(void 0,I.createTypeParameterDeclaration(void 0,o,I.createTypeReferenceNode(s)),void 0,void 0,i,void 0))}var xX,Due,hqe=wt({"src/services/codefixes/convertLiteralTypeToMappedType.ts"(){qn(),ra(),xX="convertLiteralTypeToMappedType",Due=[p._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:Due,getCodeActions:function(t){const{sourceFile:n,span:i}=t,s=c6e(n,i.start);if(!s)return;const{name:o,constraint:c}=s,u=Kr.ChangeTracker.with(t,f=>l6e(f,n,s));return[js(xX,u,[p.Convert_0_to_1_in_0,c,o],xX,p.Convert_all_type_literals_to_mapped_type)]},fixIds:[xX],getAllCodeActions:e=>Ga(e,Due,(t,n)=>{const i=c6e(n.file,n.start);i&&l6e(t,n.file,i)})})}});function u6e(e,t){return E.checkDefined(Nl(Ui(e,t)),"There should be a containing class")}function _6e(e){return!e.valueDeclaration||!(Lu(e.valueDeclaration)&2)}function f6e(e,t,n,i,s,o){const c=e.program.getTypeChecker(),u=yqe(i,c),f=c.getTypeAtLocation(t),d=c.getPropertiesOfType(f).filter(o7(_6e,P=>!u.has(P.escapedName))),y=c.getTypeAtLocation(i),S=wn(i.members,P=>sc(P));y.getNumberIndexType()||k(f,1),y.getStringIndexType()||k(f,0);const T=Mx(n,e.program,o,e.host);M_e(i,d,n,e,o,T,P=>w(n,i,P)),T.writeFixes(s);function k(P,F){const J=c.getIndexInfoOfType(P,F);J&&w(n,i,c.indexInfoToIndexSignatureDeclaration(J,i,void 0,F6(e)))}function w(P,F,J){S?s.insertNodeAfter(P,S,J):s.insertMemberAtStart(P,F,J)}}function yqe(e,t){const n=Ud(e);if(!n)return Bs();const i=t.getTypeAtLocation(n),s=t.getPropertiesOfType(i);return Bs(s.filter(_6e))}var wue,kX,vqe=wt({"src/services/codefixes/fixClassIncorrectlyImplementsInterface.ts"(){qn(),ra(),wue=[p.Class_0_incorrectly_implements_interface_1.code,p.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],kX="fixClassIncorrectlyImplementsInterface",ea({errorCodes:wue,getCodeActions(e){const{sourceFile:t,span:n}=e,i=u6e(t,n.start);return Ri(mC(i),s=>{const o=Kr.ChangeTracker.with(e,c=>f6e(e,s,t,i,c,e.preferences));return o.length===0?void 0:js(kX,o,[p.Implement_interface_0,s.getText(t)],kX,p.Implement_all_unimplemented_interfaces)})},fixIds:[kX],getAllCodeActions(e){const t=new Map;return Ga(e,wue,(n,i)=>{const s=u6e(i.file,i.start);if(qp(t,Oa(s)))for(const o of mC(s))f6e(e,o,i.file,s,n,e.preferences)})}})}});function Mx(e,t,n,i,s){return p6e(e,t,!1,n,i,s)}function p6e(e,t,n,i,s,o){const c=t.getCompilerOptions(),u=[],f=[],g=new Map,d=new Map;return{addImportFromDiagnostic:y,addImportFromExportedSymbol:S,writeFixes:k,hasFixes:w};function y(P,F){const J=v6e(F,P.code,P.start,n);!J||!J.length||T(va(J))}function S(P,F){const J=E.checkDefined(P.parent),U=KL(P,Fa(c)),$=t.getTypeChecker(),j=$.getMergedSymbol(Ul(P,$)),re=g6e(e,j,U,J,!1,t,s,i,o),R=EX(e,t),Y=d6e(e,E.checkDefined(re),t,void 0,!!F,R,s,i);Y&&T({fix:Y,symbolName:U,errorIdentifierText:void 0})}function T(P){var F,J;const{fix:U,symbolName:$}=P;switch(U.kind){case 0:u.push(U);break;case 1:f.push(U);break;case 2:{const{importClauseOrBindingPattern:Y,importKind:ue,addAsTypeOnly:pe}=U,H=String(Oa(Y));let q=g.get(H);if(q||g.set(H,q={importClauseOrBindingPattern:Y,defaultImport:void 0,namedImports:new Map}),ue===0){const ee=q==null?void 0:q.namedImports.get($);q.namedImports.set($,j(ee,pe))}else E.assert(q.defaultImport===void 0||q.defaultImport.name===$,"(Add to Existing) Default import should be missing or match symbolName"),q.defaultImport={name:$,addAsTypeOnly:j((F=q.defaultImport)==null?void 0:F.addAsTypeOnly,pe)};break}case 3:{const{moduleSpecifier:Y,importKind:ue,useRequire:pe,addAsTypeOnly:H}=U,q=re(Y,ue,pe,H);switch(E.assert(q.useRequire===pe,"(Add new) Tried to add an `import` and a `require` for the same module"),ue){case 1:E.assert(q.defaultImport===void 0||q.defaultImport.name===$,"(Add new) Default import should be missing or match symbolName"),q.defaultImport={name:$,addAsTypeOnly:j((J=q.defaultImport)==null?void 0:J.addAsTypeOnly,H)};break;case 0:const ee=(q.namedImports||(q.namedImports=new Map)).get($);q.namedImports.set($,j(ee,H));break;case 3:case 2:E.assert(q.namespaceLikeImport===void 0||q.namespaceLikeImport.name===$,"Namespacelike import shoudl be missing or match symbolName"),q.namespaceLikeImport={importKind:ue,name:$,addAsTypeOnly:H};break}break}case 4:break;default:E.assertNever(U,`fix wasn't never - got kind ${U.kind}`)}function j(Y,ue){return Math.max(Y??0,ue)}function re(Y,ue,pe,H){const q=R(Y,!0),ee=R(Y,!1),oe=d.get(q),Se=d.get(ee),ae={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:pe};return ue===1&&H===2?oe||(d.set(q,ae),ae):H===1&&(oe||Se)?oe||Se:Se||(d.set(ee,ae),ae)}function R(Y,ue){return`${ue?1:0}|${Y}`}}function k(P,F){let J;e.imports.length===0&&F!==void 0?J=F:J=wf(e,i);for(const $ of u)Oue(P,e,$);for(const $ of f)E6e(P,e,$,J);g.forEach(({importClauseOrBindingPattern:$,defaultImport:j,namedImports:re})=>{C6e(P,e,$,j,gs(re.entries(),([R,Y])=>({addAsTypeOnly:Y,name:R})),i)});let U;d.forEach(({useRequire:$,defaultImport:j,namedImports:re,namespaceLikeImport:R},Y)=>{const ue=Y.slice(2),H=($?w6e:D6e)(ue,J,j,re&&gs(re.entries(),([q,ee])=>({addAsTypeOnly:ee,name:q})),R,c,i);U=Dk(U,H)}),U&&tP(P,e,U,!0,i)}function w(){return u.length>0||f.length>0||g.size>0||d.size>0}}function bqe(e,t,n,i){const s=cP(e,i,n),o=h6e(t.getTypeChecker(),e,t.getCompilerOptions());return{getModuleSpecifierForBestExportInfo:c};function c(u,f,g,d){const{fixes:y,computedWithoutCacheCount:S}=CX(u,f,g,!1,t,e,n,i,o,d),T=b6e(y,e,t,s,n);return T&&{...T,computedWithoutCacheCount:S}}}function Sqe(e,t,n,i,s,o,c,u,f,g,d,y){let S;n?(S=cN(i,c,u,d,y).get(i.path,n),E.assertIsDefined(S,"Some exportInfo should match the specified exportMapKey")):(S=OJ(vp(t.name))?[xqe(e,s,t,u,c)]:g6e(i,e,s,t,o,u,c,d,y),E.assertIsDefined(S,"Some exportInfo should match the specified symbol / moduleSymbol"));const T=EX(i,u),k=I1(Ui(i,g)),w=E.checkDefined(d6e(i,S,u,g,k,T,c,d));return{moduleSpecifier:w.moduleSpecifier,codeAction:m6e(Fue({host:c,formatContext:f,preferences:d},i,s,w,!1,u,d))}}function Tqe(e,t,n,i,s,o){const c=n.getCompilerOptions(),u=_B(Iue(e,n.getTypeChecker(),t,c)),f=x6e(e,t,u,n),g=u!==t.text;return f&&m6e(Fue({host:i,formatContext:s,preferences:o},e,u,f,g,n,o))}function d6e(e,t,n,i,s,o,c,u){const f=cP(e,u,c);return b6e(CX(t,i,s,o,n,e,c,u).fixes,e,n,f,c)}function m6e({description:e,changes:t,commands:n}){return{description:e,changes:t,commands:n}}function g6e(e,t,n,i,s,o,c,u,f){const g=y6e(o,c);return cN(e,c,o,u,f).search(e.path,s,d=>d===n,d=>{if(Ul(d[0].symbol,g(d[0].isFromPackageJson))===t&&d.some(y=>y.moduleSymbol===i||y.symbol.parent===i))return d})}function xqe(e,t,n,i,s){var o,c;const u=i.getCompilerOptions(),f=d(i.getTypeChecker(),!1);if(f)return f;const g=(c=(o=s.getPackageJsonAutoImportProvider)==null?void 0:o.call(s))==null?void 0:c.getTypeChecker();return E.checkDefined(g&&d(g,!0),"Could not find symbol in specified module for code actions");function d(y,S){const T=aM(n,y,u);if(T&&Ul(T.symbol,y)===e)return{symbol:T.symbol,moduleSymbol:n,moduleFileName:void 0,exportKind:T.exportKind,targetFlags:Ul(e,y).flags,isFromPackageJson:S};const k=y.tryGetMemberInModuleExportsAndProperties(t,n);if(k&&Ul(k,y)===e)return{symbol:k,moduleSymbol:n,moduleFileName:void 0,exportKind:0,targetFlags:Ul(e,y).flags,isFromPackageJson:S}}}function CX(e,t,n,i,s,o,c,u,f=h6e(s.getTypeChecker(),o,s.getCompilerOptions()),g){const d=s.getTypeChecker(),y=Zs(e,f.getImportsForExportInfo),S=t!==void 0&&kqe(y,t),T=Eqe(y,n,d,s.getCompilerOptions());if(T)return{computedWithoutCacheCount:0,fixes:[...S?[S]:Ve,T]};const{fixes:k,computedWithoutCacheCount:w=0}=Dqe(e,y,s,o,t,n,i,c,u,g);return{computedWithoutCacheCount:w,fixes:[...S?[S]:Ve,...k]}}function kqe(e,t){return $o(e,({declaration:n,importKind:i})=>{var s;if(i!==0)return;const o=Cqe(n),c=o&&((s=lC(n))==null?void 0:s.text);if(c)return{kind:0,namespacePrefix:o,usagePosition:t,moduleSpecifier:c}})}function Cqe(e){var t,n,i;switch(e.kind){case 260:return(t=Wn(e.name,Ie))==null?void 0:t.text;case 271:return e.name.text;case 272:return(i=Wn((n=e.importClause)==null?void 0:n.namedBindings,my))==null?void 0:i.name.text;default:return E.assertNever(e)}}function Aue(e,t,n,i,s,o){return e?t&&o.importsNotUsedAsValues===2||AW(o)&&(!(i&111551)||s.getTypeOnlyAliasDeclaration(n))?2:1:4}function Eqe(e,t,n,i){let s;for(const c of e){const u=o(c);if(!u)continue;const f=QD(u.importClauseOrBindingPattern);if(u.addAsTypeOnly!==4&&f||u.addAsTypeOnly===4&&!f)return u;s??(s=u)}return s;function o({declaration:c,importKind:u,symbol:f,targetFlags:g}){if(u===3||u===2||c.kind===271)return;if(c.kind===260)return(u===0||u===1)&&c.name.kind===206?{kind:2,importClauseOrBindingPattern:c.name,importKind:u,moduleSpecifier:c.initializer.arguments[0].text,addAsTypeOnly:4}:void 0;const{importClause:d}=c;if(!d||!Ma(c.moduleSpecifier))return;const{name:y,namedBindings:S}=d;if(d.isTypeOnly&&!(u===0&&S))return;const T=Aue(t,!1,f,g,n,i);if(!(u===1&&(y||T===2&&S))&&!(u===0&&(S==null?void 0:S.kind)===274))return{kind:2,importClauseOrBindingPattern:d,importKind:u,moduleSpecifier:c.moduleSpecifier.text,addAsTypeOnly:T}}}function h6e(e,t,n){let i;for(const s of t.imports){const o=TE(s);if(I5(o.parent)){const c=e.resolveExternalModuleName(s);c&&(i||(i=vf())).add(Ks(c),o.parent)}else if(o.kind===272||o.kind===271){const c=e.getSymbolAtLocation(s);c&&(i||(i=vf())).add(Ks(c),o)}}return{getImportsForExportInfo:({moduleSymbol:s,exportKind:o,targetFlags:c,symbol:u})=>{if(!(c&111551)&&Ou(t))return Ve;const f=i==null?void 0:i.get(Ks(s));if(!f)return Ve;const g=Nue(t,o,n);return f.map(d=>({declaration:d,importKind:g,symbol:u,targetFlags:c}))}}}function EX(e,t){if(!Ou(e))return!1;if(e.commonJsModuleIndicator&&!e.externalModuleIndicator)return!0;if(e.externalModuleIndicator&&!e.commonJsModuleIndicator)return!1;const n=t.getCompilerOptions();if(n.configFile)return au(n)<5;if(e.impliedNodeFormat===1)return!0;if(e.impliedNodeFormat===99)return!1;for(const i of t.getSourceFiles())if(!(i===e||!Ou(i)||t.isSourceFileFromExternalLibrary(i))){if(i.commonJsModuleIndicator&&!i.externalModuleIndicator)return!0;if(i.externalModuleIndicator&&!i.commonJsModuleIndicator)return!1}return!0}function y6e(e,t){return Cm(n=>n?t.getPackageJsonAutoImportProvider().getTypeChecker():e.getTypeChecker())}function Pqe(e,t,n,i,s,o,c,u,f){const g=Ou(t),d=e.getCompilerOptions(),y=lS(e,c),S=y6e(e,c),T=Ru(d),k=LL(T),w=f?J=>({moduleSpecifiers:h2.tryGetModuleSpecifiersFromCache(J,t,y,u),computedWithoutCache:!1}):(J,U)=>h2.getModuleSpecifiersWithCacheInfo(J,U,d,t,y,u,void 0,!0);let P=0;const F=Zs(o,(J,U)=>{const $=S(J.isFromPackageJson),{computedWithoutCache:j,moduleSpecifiers:re}=w(J.moduleSymbol,$),R=!!(J.targetFlags&111551),Y=Aue(i,!0,J.symbol,J.targetFlags,$,d);return P+=j?1:0,Ri(re,ue=>{var pe;if(k&&W1(ue))return;if(!R&&g&&n!==void 0)return{kind:1,moduleSpecifier:ue,usagePosition:n,exportInfo:J,isReExport:U>0};const H=Nue(t,J.exportKind,d);let q;if(n!==void 0&&H===3&&J.exportKind===0){const ee=$.resolveExternalModuleSymbol(J.moduleSymbol);let oe;ee!==J.moduleSymbol&&(oe=(pe=oM(ee,$,d))==null?void 0:pe.name),oe||(oe=Mue(J.moduleSymbol,Fa(d),!1)),q={namespacePrefix:oe,usagePosition:n}}return{kind:3,moduleSpecifier:ue,importKind:H,useRequire:s,addAsTypeOnly:Y,exportInfo:J,isReExport:U>0,qualification:q}})});return{computedWithoutCacheCount:P,fixes:F}}function Dqe(e,t,n,i,s,o,c,u,f,g){const d=$o(t,y=>wqe(y,o,c,n.getTypeChecker(),n.getCompilerOptions()));return d?{fixes:[d]}:Pqe(n,i,s,o,c,e,u,f,g)}function wqe({declaration:e,importKind:t,symbol:n,targetFlags:i},s,o,c,u){var f;const g=(f=lC(e))==null?void 0:f.text;if(g){const d=o?4:Aue(s,!0,n,i,c,u);return{kind:3,moduleSpecifier:g,importKind:t,addAsTypeOnly:d,useRequire:o}}}function v6e(e,t,n,i){const s=Ui(e.sourceFile,n);let o;if(t===p._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)o=Fqe(e,s);else if(Ie(s))if(t===p._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){const u=_B(Iue(e.sourceFile,e.program.getTypeChecker(),s,e.program.getCompilerOptions())),f=x6e(e.sourceFile,s,u,e.program);return f&&[{fix:f,symbolName:u,errorIdentifierText:s.text}]}else o=Mqe(e,s,i);else return;const c=cP(e.sourceFile,e.preferences,e.host);return o&&Aqe(o,e.sourceFile,e.program,c,e.host)}function Aqe(e,t,n,i,s){const o=c=>No(c,s.getCurrentDirectory(),Zh(s));return fb(e,(c,u)=>J0(!!c.isJsxNamespaceFix,!!u.isJsxNamespaceFix)||wo(c.fix.kind,u.fix.kind)||S6e(c.fix,u.fix,t,n,i.allowsImportingSpecifier,o))}function b6e(e,t,n,i,s){if(ct(e))return e[0].kind===0||e[0].kind===2?e[0]:e.reduce((o,c)=>S6e(c,o,t,n,i.allowsImportingSpecifier,u=>No(u,s.getCurrentDirectory(),Zh(s)))===-1?c:o)}function S6e(e,t,n,i,s,o){return e.kind!==0&&t.kind!==0?J0(s(t.moduleSpecifier),s(e.moduleSpecifier))||Iqe(e.moduleSpecifier,t.moduleSpecifier,n,i)||J0(T6e(e,n,i.getCompilerOptions(),o),T6e(t,n,i.getCompilerOptions(),o))||nw(e.moduleSpecifier,t.moduleSpecifier):0}function T6e(e,t,n,i){var s;if(e.isReExport&&((s=e.exportInfo)!=null&&s.moduleFileName)&&Nqe(e.exportInfo.moduleFileName)){const o=i(Un(e.exportInfo.moduleFileName));return Vi(t.path,o)}return!1}function Nqe(e){return wc(e,[".js",".jsx",".d.ts",".ts",".tsx"],!0)==="index"}function Iqe(e,t,n,i){return Vi(e,"node:")&&!Vi(t,"node:")?tM(n,i)?-1:1:Vi(t,"node:")&&!Vi(e,"node:")?tM(n,i)?1:-1:0}function Fqe({sourceFile:e,program:t,host:n,preferences:i},s){const o=t.getTypeChecker(),c=Oqe(s,o);if(!c)return;const u=o.getAliasedSymbol(c),f=c.name,g=[{symbol:c,moduleSymbol:u,moduleFileName:void 0,exportKind:3,targetFlags:u.flags,isFromPackageJson:!1}],d=EX(e,t);return CX(g,void 0,!1,d,t,e,n,i).fixes.map(S=>{var T;return{fix:S,symbolName:f,errorIdentifierText:(T=Wn(s,Ie))==null?void 0:T.text}})}function Oqe(e,t){const n=Ie(e)?t.getSymbolAtLocation(e):void 0;if(aF(n))return n;const{parent:i}=e;if(Fu(i)&&i.tagName===e||dx(i)){const s=t.resolveName(t.getJsxNamespace(i),Fu(i)?e:i,111551,!1);if(aF(s))return s}}function Nue(e,t,n,i){if(n.verbatimModuleSyntax&&(au(n)===1||e.impliedNodeFormat===1))return 3;switch(t){case 0:return 0;case 1:return 1;case 2:return Bqe(e,n,!!i);case 3:return Lqe(e,n,!!i);default:return E.assertNever(t)}}function Lqe(e,t,n){if(Jb(t))return 1;const i=au(t);switch(i){case 2:case 1:case 3:return Hr(e)&&(Ic(e)||n)?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 E.assertNever(i,`Unexpected moduleKind ${i}`)}}function Mqe({sourceFile:e,program:t,cancellationToken:n,host:i,preferences:s},o,c){const u=t.getTypeChecker(),f=t.getCompilerOptions();return Zs(Iue(e,u,o,f),g=>{if(g==="default")return;const d=I1(o),y=EX(e,t),S=jqe(g,aC(o),oS(o),n,e,t,c,i,s);return gs(nB(S.values(),T=>CX(T,o.getStart(e),d,y,t,e,i,s).fixes),T=>({fix:T,symbolName:g,errorIdentifierText:o.text,isJsxNamespaceFix:g!==o.text}))})}function x6e(e,t,n,i){const s=i.getTypeChecker(),o=s.resolveName(n,t,111551,!0);if(!o)return;const c=s.getTypeOnlyAliasDeclaration(o);if(!(!c||wr(c)!==e))return{kind:4,typeOnlyAliasDeclaration:c}}function Iue(e,t,n,i){const s=n.parent;if((Fu(s)||l2(s))&&s.tagName===n&&zG(i.jsx)){const o=t.getJsxNamespace(e);if(Rqe(o,n,t))return!vC(n.text)&&!t.resolveName(n.text,n,111551,!1)?[n.text,o]:[o]}return[n.text]}function Rqe(e,t,n){if(vC(t.text))return!0;const i=n.resolveName(e,t,111551,!0);return!i||ct(i.declarations,x1)&&!(i.flags&111551)}function jqe(e,t,n,i,s,o,c,u,f){var g;const d=vf(),y=cP(s,f,u),S=(g=u.getModuleSpecifierCache)==null?void 0:g.call(u),T=Cm(w=>lS(w?u.getPackageJsonAutoImportProvider():o,u));function k(w,P,F,J,U,$){const j=T($);if(P&&$G(U,s,P,f,y,j,S)||!P&&y.allowsImportingAmbientModule(w,j)){const re=U.getTypeChecker();d.add(mce(F,re).toString(),{symbol:F,moduleSymbol:w,moduleFileName:P==null?void 0:P.fileName,exportKind:J,targetFlags:Ul(F,re).flags,isFromPackageJson:$})}}return XG(o,u,f,c,(w,P,F,J)=>{const U=F.getTypeChecker();i.throwIfCancellationRequested();const $=F.getCompilerOptions(),j=aM(w,U,$);j&&(j.name===e||Mue(w,Fa($),t)===e)&&N6e(j.resolvedSymbol,n)&&k(w,P,j.symbol,j.exportKind,F,J);const re=U.tryGetMemberInModuleExportsAndProperties(e,w);re&&N6e(re,n)&&k(w,P,re,0,F,J)}),d}function Bqe(e,t,n){const i=Jb(t),s=Hr(e);if(!s&&au(t)>=5)return i?1:2;if(s)return Ic(e)||n?i?1:2:3;for(const o of e.statements)if(El(o)&&!_c(o.moduleReference))return 3;return i?1:3}function Fue(e,t,n,i,s,o,c){let u;const f=Kr.ChangeTracker.with(e,g=>{u=Jqe(g,t,n,i,s,o,c)});return js(jue,f,u,Bue,p.Add_all_missing_imports)}function Jqe(e,t,n,i,s,o,c){const u=wf(t,c);switch(i.kind){case 0:return Oue(e,t,i),[p.Change_0_to_1,n,`${i.namespacePrefix}.${n}`];case 1:return E6e(e,t,i,u),[p.Change_0_to_1,n,P6e(i.moduleSpecifier,u)+n];case 2:{const{importClauseOrBindingPattern:f,importKind:g,addAsTypeOnly:d,moduleSpecifier:y}=i;C6e(e,t,f,g===1?{name:n,addAsTypeOnly:d}:void 0,g===0?[{name:n,addAsTypeOnly:d}]:Ve,c);const S=vp(y);return s?[p.Import_0_from_1,n,S]:[p.Update_import_from_0,S]}case 3:{const{importKind:f,moduleSpecifier:g,addAsTypeOnly:d,useRequire:y,qualification:S}=i,T=y?w6e:D6e,k=f===1?{name:n,addAsTypeOnly:d}:void 0,w=f===0?[{name:n,addAsTypeOnly:d}]:void 0,P=f===2||f===3?{importKind:f,name:(S==null?void 0:S.namespacePrefix)||n,addAsTypeOnly:d}:void 0;return tP(e,t,T(g,u,k,w,P,o.getCompilerOptions(),c),!0,c),S&&Oue(e,t,S),s?[p.Import_0_from_1,n,g]:[p.Add_import_from_0,g]}case 4:{const{typeOnlyAliasDeclaration:f}=i,g=zqe(e,f,o,t,c);return g.kind===276?[p.Remove_type_from_import_of_0_from_1,n,k6e(g.parent.parent)]:[p.Remove_type_from_import_declaration_from_0,k6e(g)]}default:return E.assertNever(i,`Unexpected fix kind ${i.kind}`)}}function k6e(e){var t,n;return e.kind===271?((n=Wn((t=Wn(e.moduleReference,Bm))==null?void 0:t.expression,Ma))==null?void 0:n.text)||e.moduleReference.getText():Ls(e.parent.moduleSpecifier,aa).text}function zqe(e,t,n,i,s){const o=n.getCompilerOptions(),c=AW(o);switch(t.kind){case 276:if(t.isTypeOnly){const f=Yp.detectImportSpecifierSorting(t.parent.elements,s);if(t.parent.elements.length>1&&f){const g=I.updateImportSpecifier(t,!1,t.propertyName,t.name),d=Yp.getOrganizeImportsComparer(s,f===2),y=Yp.getImportSpecifierInsertionIndex(t.parent.elements,g,d,s);if(y!==t.parent.elements.indexOf(t))return e.delete(i,t),e.insertImportSpecifierAtIndex(i,g,t.parent,y),t}return e.deleteRange(i,{pos:k1(t.getFirstToken()),end:k1(t.propertyName??t.name)}),t}else return E.assert(t.parent.parent.isTypeOnly),u(t.parent.parent),t.parent.parent;case 273:return u(t),t;case 274:return u(t.parent),t.parent;case 271:return e.deleteRange(i,t.getChildAt(1)),t;default:E.failBadSyntaxKind(t)}function u(f){var g;if(e.delete(i,yG(f,i)),!o.allowImportingTsExtensions){const d=lC(f.parent),y=d&&((g=n.getResolvedModuleFromModuleSpecifier(d))==null?void 0:g.resolvedModule);if(y!=null&&y.resolvedUsingTsExtension){const S=ID(d.text,F9(d.text,o));e.replaceNode(i,d,I.createStringLiteral(S))}}if(c){const d=Wn(f.namedBindings,sh);if(d&&d.elements.length>1){Yp.detectImportSpecifierSorting(d.elements,s)&&t.kind===276&&d.elements.indexOf(t)!==0&&(e.delete(i,t),e.insertImportSpecifierAtIndex(i,t,d,0));for(const y of d.elements)y!==t&&!y.isTypeOnly&&e.insertModifierBefore(i,156,y)}}}}function C6e(e,t,n,i,s,o){var c;if(n.kind===206){i&&g(n,i.name,"default");for(const d of s)g(n,d.name,void 0);return}const u=n.isTypeOnly&&ct([i,...s],d=>(d==null?void 0:d.addAsTypeOnly)===4),f=n.namedBindings&&((c=Wn(n.namedBindings,sh))==null?void 0:c.elements);if(i&&(E.assert(!n.name,"Cannot add a default import to an import clause that already has one"),e.insertNodeAt(t,n.getStart(t),I.createIdentifier(i.name),{suffix:", "})),s.length){let d;if(typeof o.organizeImportsIgnoreCase=="boolean")d=o.organizeImportsIgnoreCase;else if(f){const k=Yp.detectImportSpecifierSorting(f,o);k!==3&&(d=k===2)}d===void 0&&(d=Yp.detectSorting(t,o)===2);const y=Yp.getOrganizeImportsComparer(o,d),S=Bh(s.map(k=>I.createImportSpecifier((!n.isTypeOnly||u)&&PX(k,o),void 0,I.createIdentifier(k.name))),(k,w)=>Yp.compareImportOrExportSpecifiers(k,w,y)),T=(f==null?void 0:f.length)&&Yp.detectImportSpecifierSorting(f,o);if(T&&!(d&&T===1))for(const k of S){const w=u&&!k.isTypeOnly?0:Yp.getImportSpecifierInsertionIndex(f,k,y,o);e.insertImportSpecifierAtIndex(t,k,n.namedBindings,w)}else if(f!=null&&f.length)for(const k of S)e.insertNodeInListAfter(t,ka(f),k,f);else if(S.length){const k=I.createNamedImports(S);n.namedBindings?e.replaceNode(t,n.namedBindings,k):e.insertNodeAfter(t,E.checkDefined(n.name,"Import clause must have either named imports or a default import"),k)}}if(u&&(e.delete(t,yG(n,t)),f))for(const d of f)e.insertModifierBefore(t,156,d);function g(d,y,S){const T=I.createBindingElement(void 0,S,y);d.elements.length?e.insertNodeInListAfter(t,ka(d.elements),T):e.replaceNode(t,d,I.createObjectBindingPattern([T]))}}function Oue(e,t,{namespacePrefix:n,usagePosition:i}){e.insertText(t,i,n+".")}function E6e(e,t,{moduleSpecifier:n,usagePosition:i},s){e.insertText(t,i,P6e(n,s))}function P6e(e,t){const n=hG(t);return`import(${n}${e}${n}).`}function Lue({addAsTypeOnly:e}){return e===2}function PX(e,t){return Lue(e)||!!t.preferTypeOnlyAutoImports&&e.addAsTypeOnly!==4}function D6e(e,t,n,i,s,o,c){const u=Ax(e,t);let f;if(n!==void 0||i!=null&&i.length){const g=(!n||Lue(n))&&Wi(i,Lue)||(o.verbatimModuleSyntax||c.preferTypeOnlyAutoImports)&&(n==null?void 0:n.addAsTypeOnly)!==4&&!ct(i,d=>d.addAsTypeOnly===4);f=Dk(f,_0(n&&I.createIdentifier(n.name),i==null?void 0:i.map(d=>I.createImportSpecifier(!g&&PX(d,c),void 0,I.createIdentifier(d.name))),e,t,g))}if(s){const g=s.importKind===3?I.createImportEqualsDeclaration(void 0,PX(s,c),I.createIdentifier(s.name),I.createExternalModuleReference(u)):I.createImportDeclaration(void 0,I.createImportClause(PX(s,c),void 0,I.createNamespaceImport(I.createIdentifier(s.name))),u,void 0);f=Dk(f,g)}return E.checkDefined(f)}function w6e(e,t,n,i,s){const o=Ax(e,t);let c;if(n||i!=null&&i.length){const u=(i==null?void 0:i.map(({name:g})=>I.createBindingElement(void 0,void 0,g)))||[];n&&u.unshift(I.createBindingElement(void 0,"default",n.name));const f=A6e(I.createObjectBindingPattern(u),o);c=Dk(c,f)}if(s){const u=A6e(s.name,o);c=Dk(c,u)}return E.checkDefined(c)}function A6e(e,t){return I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(typeof e=="string"?I.createIdentifier(e):e,void 0,void 0,I.createCallExpression(I.createIdentifier("require"),void 0,[t]))],2))}function N6e({declarations:e},t){return ct(e,n=>!!(jA(n)&t))}function Mue(e,t,n){return Rue($u(vp(e.name)),t,n)}function Rue(e,t,n){const i=wc(Nk(e,"/index"));let s="",o=!0;const c=i.charCodeAt(0);fg(c,t)?(s+=String.fromCharCode(c),n&&(s=s.toUpperCase())):o=!1;for(let u=1;uFue(e,i,f,u,f!==g,o,n))},fixIds:[Bue],getAllCodeActions:e=>{const{sourceFile:t,program:n,preferences:i,host:s,cancellationToken:o}=e,c=p6e(t,n,!0,i,s,o);return N6(e,Jue,u=>c.addImportFromDiagnostic(u,e)),A6(Kr.ChangeTracker.with(e,c.writeFixes))}})}});function I6e(e,t,n){const i=wn(e.getSemanticDiagnostics(t),c=>c.start===n.start&&c.length===n.length);if(i===void 0||i.relatedInformation===void 0)return;const s=wn(i.relatedInformation,c=>c.code===p.This_type_parameter_might_need_an_extends_0_constraint.code);if(s===void 0||s.file===void 0||s.start===void 0||s.length===void 0)return;let o=V_e(s.file,Wl(s.start,s.length));if(o!==void 0&&(Ie(o)&&Vo(o.parent)&&(o=o.parent),Vo(o))){if(jC(o.parent))return;const c=Ui(t,n.start),u=e.getTypeChecker();return{constraint:Uqe(u,c)||Vqe(s.messageText),declaration:o,token:c}}}function F6e(e,t,n,i,s,o){const{declaration:c,constraint:u}=o,f=t.getTypeChecker();if(ls(u))e.insertText(s,c.name.end,` extends ${u}`);else{const g=Fa(t.getCompilerOptions()),d=F6({program:t,host:i}),y=Mx(s,t,n,i),S=_Q(f,y,u,void 0,g,void 0,d);S&&(e.replaceNode(s,c,I.updateTypeParameterDeclaration(c,void 0,c.name,S,c.default)),y.writeFixes(e))}}function Vqe(e){const[,t]=tm(e,` -`,0).match(/`extends (.*)`/)||[];return t}function Uqe(e,t){return ki(t.parent)?e.getTypeArgumentConstraint(t.parent):(ot(t)?e.getContextualType(t):void 0)||e.getTypeAtLocation(t)}var DX,zue,qqe=wt({"src/services/codefixes/fixAddMissingConstraint.ts"(){qn(),ra(),DX="addMissingConstraint",zue=[p.Type_0_is_not_comparable_to_type_1.code,p.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,p.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,p.Type_0_is_not_assignable_to_type_1.code,p.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,p.Property_0_is_incompatible_with_index_signature.code,p.Property_0_in_type_1_is_not_assignable_to_type_2.code,p.Type_0_does_not_satisfy_the_constraint_1.code],ea({errorCodes:zue,getCodeActions(e){const{sourceFile:t,span:n,program:i,preferences:s,host:o}=e,c=I6e(i,t,n);if(c===void 0)return;const u=Kr.ChangeTracker.with(e,f=>F6e(f,i,s,o,t,c));return[js(DX,u,p.Add_extends_constraint,DX,p.Add_extends_constraint_to_all_type_parameters)]},fixIds:[DX],getAllCodeActions:e=>{const{program:t,preferences:n,host:i}=e,s=new Map;return A6(Kr.ChangeTracker.with(e,o=>{N6(e,zue,c=>{const u=I6e(t,c.file,Wl(c.start,c.length));if(u&&qp(s,Oa(u.declaration)))return F6e(o,t,n,i,c.file,u)})}))}})}});function O6e(e,t,n,i){switch(n){case p.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case p.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case p.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case p.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case p.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return Hqe(e,t.sourceFile,i);case p.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case p.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return Gqe(e,t.sourceFile,i);default:E.fail("Unexpected error code: "+n)}}function Hqe(e,t,n){const i=M6e(t,n);if(Ou(t)){e.addJSDocTags(t,i,[I.createJSDocOverrideTag(I.createIdentifier("override"))]);return}const s=i.modifiers||Ve,o=wn(s,ix),c=wn(s,Yne),u=wn(s,y=>oG(y.kind)),f=hT(s,ql),g=c?c.end:o?o.end:u?u.end:f?ca(t.text,f.end):i.getStart(t),d=u||o||c?{prefix:" "}:{suffix:" "};e.insertModifierAt(t,g,164,d)}function Gqe(e,t,n){const i=M6e(t,n);if(Ou(t)){e.filterJSDocTags(t,i,c7(AO));return}const s=wn(i.modifiers,Zne);E.assertIsDefined(s),e.deleteModifier(t,s)}function L6e(e){switch(e.kind){case 176:case 172:case 174:case 177:case 178:return!0;case 169:return O_(e,e.parent);default:return!1}}function M6e(e,t){const n=Ui(e,t),i=Pr(n,s=>$n(s)?"quit":L6e(s));return E.assert(i&&L6e(i)),i}var Wue,dP,AN,Vue,Uue,$qe=wt({"src/services/codefixes/fixOverrideModifier.ts"(){qn(),ra(),Wue="fixOverrideModifier",dP="fixAddOverrideModifier",AN="fixRemoveOverrideModifier",Vue=[p.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,p.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,p.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,p.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,p.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,p.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,p.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],Uue={[p.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:p.Add_override_modifier,fixId:dP,fixAllDescriptions:p.Add_all_missing_override_modifiers},[p.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:p.Add_override_modifier,fixId:dP,fixAllDescriptions:p.Add_all_missing_override_modifiers},[p.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:p.Remove_override_modifier,fixId:AN,fixAllDescriptions:p.Remove_all_unnecessary_override_modifiers},[p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:p.Remove_override_modifier,fixId:AN,fixAllDescriptions:p.Remove_override_modifier},[p.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]:{descriptions:p.Add_override_modifier,fixId:dP,fixAllDescriptions:p.Add_all_missing_override_modifiers},[p.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:p.Add_override_modifier,fixId:dP,fixAllDescriptions:p.Add_all_missing_override_modifiers},[p.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]:{descriptions:p.Add_override_modifier,fixId:dP,fixAllDescriptions:p.Remove_all_unnecessary_override_modifiers},[p.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:p.Remove_override_modifier,fixId:AN,fixAllDescriptions:p.Remove_all_unnecessary_override_modifiers},[p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:p.Remove_override_modifier,fixId:AN,fixAllDescriptions:p.Remove_all_unnecessary_override_modifiers}},ea({errorCodes:Vue,getCodeActions:function(t){const{errorCode:n,span:i}=t,s=Uue[n];if(!s)return Ve;const{descriptions:o,fixId:c,fixAllDescriptions:u}=s,f=Kr.ChangeTracker.with(t,g=>O6e(g,t,n,i.start));return[rue(Wue,f,o,c,u)]},fixIds:[Wue,dP,AN],getAllCodeActions:e=>Ga(e,Vue,(t,n)=>{const{code:i,start:s}=n,o=Uue[i];!o||o.fixId!==e.fixId||O6e(t,e,i,s)})})}});function R6e(e,t,n,i){const s=wf(t,i),o=I.createStringLiteral(n.name.text,s===0);e.replaceNode(t,n,q7(n)?I.createElementAccessChain(n.expression,n.questionDotToken,o):I.createElementAccessExpression(n.expression,o))}function j6e(e,t){return Ls(Ui(e,t).parent,Sn)}var wX,que,Xqe=wt({"src/services/codefixes/fixNoPropertyAccessFromIndexSignature.ts"(){qn(),ra(),wX="fixNoPropertyAccessFromIndexSignature",que=[p.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code],ea({errorCodes:que,fixIds:[wX],getCodeActions(e){const{sourceFile:t,span:n,preferences:i}=e,s=j6e(t,n.start),o=Kr.ChangeTracker.with(e,c=>R6e(c,e.sourceFile,s,i));return[js(wX,o,[p.Use_element_access_for_0,s.name.text],wX,p.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:e=>Ga(e,que,(t,n)=>R6e(t,n.file,j6e(n.file,n.start),e.preferences))})}});function B6e(e,t,n,i){const s=Ui(t,n);if(!g6(s))return;const o=a_(s,!1,!1);if(!(!$c(o)&&!co(o))&&!Ni(a_(o,!1,!1))){const c=E.checkDefined(qa(o,100,t)),{name:u}=o,f=E.checkDefined(o.body);return co(o)?u&&lo.Core.isSymbolReferencedInFile(u,i,t,f)?void 0:(e.delete(t,c),u&&e.delete(t,u),e.insertText(t,f.pos," =>"),[p.Convert_function_expression_0_to_arrow_function,u?u.text:sM]):(e.replaceNode(t,c,I.createToken(87)),e.insertText(t,u.end," = "),e.insertText(t,f.pos," =>"),[p.Convert_function_declaration_0_to_arrow_function,u.text])}}var AX,Hue,Qqe=wt({"src/services/codefixes/fixImplicitThis.ts"(){qn(),ra(),AX="fixImplicitThis",Hue=[p.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],ea({errorCodes:Hue,getCodeActions:function(t){const{sourceFile:n,program:i,span:s}=t;let o;const c=Kr.ChangeTracker.with(t,u=>{o=B6e(u,n,s.start,i.getTypeChecker())});return o?[js(AX,c,o,AX,p.Fix_all_implicit_this_errors)]:Ve},fixIds:[AX],getAllCodeActions:e=>Ga(e,Hue,(t,n)=>{B6e(t,n.file,n.start,e.program.getTypeChecker())})})}});function J6e(e,t,n){var i,s;const o=Ui(e,t);if(Ie(o)){const c=Pr(o,il);if(c===void 0)return;const u=aa(c.moduleSpecifier)?c.moduleSpecifier:void 0;if(u===void 0)return;const f=(i=n.getResolvedModuleFromModuleSpecifier(u))==null?void 0:i.resolvedModule;if(f===void 0)return;const g=n.getSourceFile(f.resolvedFileName);if(g===void 0||x6(n,g))return;const d=g.symbol,y=(s=Wn(d.valueDeclaration,Dm))==null?void 0:s.locals;if(y===void 0)return;const S=y.get(o.escapedText);if(S===void 0)return;const T=Zqe(S);return T===void 0?void 0:{exportName:{node:o,isTypeOnly:NC(T)},node:T,moduleSourceFile:g,moduleSpecifier:u.text}}}function Yqe(e,t,{exportName:n,node:i,moduleSourceFile:s}){const o=NX(s,n.isTypeOnly);o?z6e(e,t,s,o,[n]):aw(i)?e.insertExportModifier(s,i):W6e(e,t,s,[n])}function Gue(e,t,n,i,s){gr(i)&&(s?z6e(e,t,n,s,i):W6e(e,t,n,i))}function NX(e,t){const n=i=>Tc(i)&&(t&&i.isTypeOnly||!i.isTypeOnly);return hT(e.statements,n)}function z6e(e,t,n,i,s){const o=i.exportClause&&Xf(i.exportClause)?i.exportClause.elements:I.createNodeArray([]),c=!i.isTypeOnly&&!!(xp(t.getCompilerOptions())||wn(o,u=>u.isTypeOnly));e.replaceNode(n,i,I.updateExportDeclaration(i,i.modifiers,i.isTypeOnly,I.createNamedExports(I.createNodeArray([...o,...V6e(s,c)],o.hasTrailingComma)),i.moduleSpecifier,i.attributes))}function W6e(e,t,n,i){e.insertNodeAtEndOfScope(n,n,I.createExportDeclaration(void 0,!1,I.createNamedExports(V6e(i,xp(t.getCompilerOptions()))),void 0,void 0))}function V6e(e,t){return I.createNodeArray(nr(e,n=>I.createExportSpecifier(t&&n.isTypeOnly,void 0,n.node)))}function Zqe(e){if(e.valueDeclaration===void 0)return bl(e.declarations);const t=e.valueDeclaration,n=hi(t)?Wn(t.parent.parent,ac):void 0;return n&&gr(n.declarationList.declarations)===1?n:t}var IX,$ue,Kqe=wt({"src/services/codefixes/fixImportNonExportedMember.ts"(){qn(),ra(),IX="fixImportNonExportedMember",$ue=[p.Module_0_declares_1_locally_but_it_is_not_exported.code],ea({errorCodes:$ue,fixIds:[IX],getCodeActions(e){const{sourceFile:t,span:n,program:i}=e,s=J6e(t,n.start,i);if(s===void 0)return;const o=Kr.ChangeTracker.with(e,c=>Yqe(c,i,s));return[js(IX,o,[p.Export_0_from_module_1,s.exportName.node.text,s.moduleSpecifier],IX,p.Export_all_referenced_locals)]},getAllCodeActions(e){const{program:t}=e;return A6(Kr.ChangeTracker.with(e,n=>{const i=new Map;N6(e,$ue,s=>{const o=J6e(s.file,s.start,t);if(o===void 0)return;const{exportName:c,node:u,moduleSourceFile:f}=o;if(NX(f,c.isTypeOnly)===void 0&&aw(u))n.insertExportModifier(f,u);else{const g=i.get(f)||{typeOnlyExports:[],exports:[]};c.isTypeOnly?g.typeOnlyExports.push(c):g.exports.push(c),i.set(f,g)}}),i.forEach((s,o)=>{const c=NX(o,!0);c&&c.isTypeOnly?(Gue(n,t,o,s.typeOnlyExports,c),Gue(n,t,o,s.exports,NX(o,!1))):Gue(n,t,o,[...s.exports,...s.typeOnlyExports],c)})}))}})}});function eHe(e,t){const n=Ui(e,t);return Pr(n,i=>i.kind===202)}function tHe(e,t,n){if(!n)return;let i=n.type,s=!1,o=!1;for(;i.kind===190||i.kind===191||i.kind===196;)i.kind===190?s=!0:i.kind===191&&(o=!0),i=i.type;const c=I.updateNamedTupleMember(n,n.dotDotDotToken||(o?I.createToken(26):void 0),n.name,n.questionToken||(s?I.createToken(58):void 0),i);c!==n&&e.replaceNode(t,n,c)}var FX,U6e,rHe=wt({"src/services/codefixes/fixIncorrectNamedTupleSyntax.ts"(){qn(),ra(),FX="fixIncorrectNamedTupleSyntax",U6e=[p.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,p.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code],ea({errorCodes:U6e,getCodeActions:function(t){const{sourceFile:n,span:i}=t,s=eHe(n,i.start),o=Kr.ChangeTracker.with(t,c=>tHe(c,n,s));return[js(FX,o,p.Move_labeled_tuple_element_modifiers_to_labels,FX,p.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[FX]})}});function q6e(e,t,n,i){const s=Ui(e,t),o=s.parent;if((i===p.No_overload_matches_this_call.code||i===p.Type_0_is_not_assignable_to_type_1.code)&&!em(o))return;const c=n.program.getTypeChecker();let u;if(Sn(o)&&o.name===s){E.assert(pg(s),"Expected an identifier for spelling (property access)");let f=c.getTypeAtLocation(o.expression);o.flags&64&&(f=c.getNonNullableType(f)),u=c.getSuggestedSymbolForNonexistentProperty(s,f)}else if(Zr(o)&&o.operatorToken.kind===103&&o.left===s&&Pi(s)){const f=c.getTypeAtLocation(o.right);u=c.getSuggestedSymbolForNonexistentProperty(s,f)}else if(Xu(o)&&o.right===s){const f=c.getSymbolAtLocation(o.left);f&&f.flags&1536&&(u=c.getSuggestedSymbolForNonexistentModule(o.right,f))}else if(x_(o)&&o.name===s){E.assertNode(s,Ie,"Expected an identifier for spelling (import)");const f=Pr(s,il),g=iHe(n,f);g&&g.symbol&&(u=c.getSuggestedSymbolForNonexistentModule(s,g.symbol))}else if(em(o)&&o.name===s){E.assertNode(s,Ie,"Expected an identifier for JSX attribute");const f=Pr(s,Fu),g=c.getContextualTypeForArgumentAtIndex(f,0);u=c.getSuggestedSymbolForNonexistentJSXAttribute(s,g)}else if(Z5(o)&&Tl(o)&&o.name===s){const f=Pr(s,$n),g=f?Ud(f):void 0,d=g?c.getTypeAtLocation(g):void 0;d&&(u=c.getSuggestedSymbolForNonexistentClassMember(jc(s),d))}else{const f=oS(s),g=jc(s);E.assert(g!==void 0,"name should be defined"),u=c.getSuggestedSymbolForNonexistentSymbol(s,g,nHe(f))}return u===void 0?void 0:{node:s,suggestedSymbol:u}}function H6e(e,t,n,i,s){const o=Xo(i);if(!Sf(o,s)&&Sn(n.parent)){const c=i.valueDeclaration;c&&Nu(c)&&Pi(c.name)?e.replaceNode(t,n,I.createIdentifier(o)):e.replaceNode(t,n.parent,I.createElementAccessExpression(n.parent.expression,I.createStringLiteral(o)))}else e.replaceNode(t,n,I.createIdentifier(o))}function nHe(e){let t=0;return e&4&&(t|=1920),e&2&&(t|=788968),e&1&&(t|=111551),t}function iHe(e,t){var n;if(!t||!Ma(t.moduleSpecifier))return;const i=(n=e.program.getResolvedModuleFromModuleSpecifier(t.moduleSpecifier))==null?void 0:n.resolvedModule;if(i)return e.program.getSourceFile(i.resolvedFileName)}var Xue,Que,sHe=wt({"src/services/codefixes/fixSpelling.ts"(){qn(),ra(),Xue="fixSpelling",Que=[p.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,p.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,p.Cannot_find_name_0_Did_you_mean_1.code,p.Could_not_find_name_0_Did_you_mean_1.code,p.Cannot_find_namespace_0_Did_you_mean_1.code,p.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,p.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,p._0_has_no_exported_member_named_1_Did_you_mean_2.code,p.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,p.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,p.No_overload_matches_this_call.code,p.Type_0_is_not_assignable_to_type_1.code],ea({errorCodes:Que,getCodeActions(e){const{sourceFile:t,errorCode:n}=e,i=q6e(t,e.span.start,e,n);if(!i)return;const{node:s,suggestedSymbol:o}=i,c=Fa(e.host.getCompilationSettings()),u=Kr.ChangeTracker.with(e,f=>H6e(f,t,s,o,c));return[js("spelling",u,[p.Change_spelling_to_0,Xo(o)],Xue,p.Fix_all_detected_spelling_errors)]},fixIds:[Xue],getAllCodeActions:e=>Ga(e,Que,(t,n)=>{const i=q6e(n.file,n.start,e,n.code),s=Fa(e.host.getCompilationSettings());i&&H6e(t,e.sourceFile,i.node,i.suggestedSymbol,s)})})}});function G6e(e,t,n){const i=e.createSymbol(4,t.escapedText);i.links.type=e.getTypeAtLocation(n);const s=Bs([i]);return e.createAnonymousType(void 0,s,[],[],[])}function Yue(e,t,n,i){if(!t.body||!Cs(t.body)||gr(t.body.statements)!==1)return;const s=va(t.body.statements);if(Cl(s)&&Zue(e,t,e.getTypeAtLocation(s.expression),n,i))return{declaration:t,kind:0,expression:s.expression,statement:s,commentSource:s.expression};if(c2(s)&&Cl(s.statement)){const o=I.createObjectLiteralExpression([I.createPropertyAssignment(s.label,s.statement.expression)]),c=G6e(e,s.label,s.statement.expression);if(Zue(e,t,c,n,i))return po(t)?{declaration:t,kind:1,expression:o,statement:s,commentSource:s.statement.expression}:{declaration:t,kind:0,expression:o,statement:s,commentSource:s.statement.expression}}else if(Cs(s)&&gr(s.statements)===1){const o=va(s.statements);if(c2(o)&&Cl(o.statement)){const c=I.createObjectLiteralExpression([I.createPropertyAssignment(o.label,o.statement.expression)]),u=G6e(e,o.label,o.statement.expression);if(Zue(e,t,u,n,i))return{declaration:t,kind:0,expression:c,statement:s,commentSource:o}}}}function Zue(e,t,n,i,s){if(s){const o=e.getSignatureFromDeclaration(t);if(o){Rn(t,1024)&&(n=e.createPromiseType(n));const c=e.createSignature(t,o.typeParameters,o.thisParameter,o.parameters,n,void 0,o.minArgumentCount,o.flags);n=e.createAnonymousType(void 0,Bs(),[c],[],[])}else n=e.getAnyType()}return e.isTypeAssignableTo(n,i)}function $6e(e,t,n,i){const s=Ui(t,n);if(!s.parent)return;const o=Pr(s.parent,fo);switch(i){case p.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code:return!o||!o.body||!o.type||!Df(o.type,s)?void 0:Yue(e,o,e.getTypeFromTypeNode(o.type),!1);case p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!o||!Rs(o.parent)||!o.body)return;const c=o.parent.arguments.indexOf(o);if(c===-1)return;const u=e.getContextualTypeForArgumentAtIndex(o.parent,c);return u?Yue(e,o,u,!0):void 0;case p.Type_0_is_not_assignable_to_type_1.code:if(!eh(s)||!nC(s.parent)&&!em(s.parent))return;const f=aHe(s.parent);return!f||!fo(f)||!f.body?void 0:Yue(e,f,e.getTypeAtLocation(s.parent),!0)}}function aHe(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:return e.initializer;case 291:return e.initializer&&(h3(e.initializer)?e.initializer.expression:void 0);case 304:case 171:case 306:case 355:case 348:return}}function X6e(e,t,n,i){U_(n);const s=iN(t);e.replaceNode(t,i,I.createReturnStatement(n),{leadingTriviaOption:Kr.LeadingTriviaOption.Exclude,trailingTriviaOption:Kr.TrailingTriviaOption.Exclude,suffix:s?";":void 0})}function Q6e(e,t,n,i,s,o){const c=VL(i)?I.createParenthesizedExpression(i):i;U_(s),uS(s,c),e.replaceNode(t,n.body,c)}function Y6e(e,t,n,i){e.replaceNode(t,n.body,I.createParenthesizedExpression(i))}function oHe(e,t,n){const i=Kr.ChangeTracker.with(e,s=>X6e(s,e.sourceFile,t,n));return js(OX,i,p.Add_a_return_statement,LX,p.Add_all_missing_return_statement)}function cHe(e,t,n,i){const s=Kr.ChangeTracker.with(e,o=>Q6e(o,e.sourceFile,t,n,i));return js(OX,s,p.Remove_braces_from_arrow_function_body,MX,p.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function lHe(e,t,n){const i=Kr.ChangeTracker.with(e,s=>Y6e(s,e.sourceFile,t,n));return js(OX,i,p.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,RX,p.Wrap_all_object_literal_with_parentheses)}var OX,LX,MX,RX,Kue,uHe=wt({"src/services/codefixes/returnValueCorrect.ts"(){qn(),ra(),OX="returnValueCorrect",LX="fixAddReturnStatement",MX="fixRemoveBracesFromArrowFunctionBody",RX="fixWrapTheBlockWithParen",Kue=[p.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code,p.Type_0_is_not_assignable_to_type_1.code,p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code],ea({errorCodes:Kue,fixIds:[LX,MX,RX],getCodeActions:function(t){const{program:n,sourceFile:i,span:{start:s},errorCode:o}=t,c=$6e(n.getTypeChecker(),i,s,o);if(c)return c.kind===0?_r([oHe(t,c.expression,c.statement)],po(c.declaration)?cHe(t,c.declaration,c.expression,c.commentSource):void 0):[lHe(t,c.declaration,c.expression)]},getAllCodeActions:e=>Ga(e,Kue,(t,n)=>{const i=$6e(e.program.getTypeChecker(),n.file,n.start,n.code);if(i)switch(e.fixId){case LX:X6e(t,n.file,i.expression,i.statement);break;case MX:if(!po(i.declaration))return;Q6e(t,n.file,i.declaration,i.expression,i.commentSource);break;case RX:if(!po(i.declaration))return;Y6e(t,n.file,i.declaration,i.expression);break;default:E.fail(JSON.stringify(e.fixId))}})})}});function Z6e(e,t,n,i,s){var o;const c=Ui(e,t),u=c.parent;if(n===p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(!(c.kind===19&&ua(u)&&Rs(u.parent)))return;const T=vc(u.parent.arguments,F=>F===u);if(T<0)return;const k=i.getResolvedSignature(u.parent);if(!(k&&k.declaration&&k.parameters[T]))return;const w=k.parameters[T].valueDeclaration;if(!(w&&rs(w)&&Ie(w.name)))return;const P=gs(i.getUnmatchedProperties(i.getTypeAtLocation(u),i.getParameterType(k,T),!1,!1));return gr(P)?{kind:3,token:w.name,identifier:w.name.text,properties:P,parentDeclaration:u}:void 0}if(c.kind===19&&ua(u)){const T=i.getContextualType(u)||i.getTypeAtLocation(u),k=gs(i.getUnmatchedProperties(i.getTypeAtLocation(u),T,!1,!1));return gr(k)?{kind:3,token:u,identifier:"",properties:k,parentDeclaration:u}:void 0}if(!pg(c))return;if(Ie(c)&&Z0(u)&&u.initializer&&ua(u.initializer)){const T=i.getContextualType(c)||i.getTypeAtLocation(c),k=gs(i.getUnmatchedProperties(i.getTypeAtLocation(u.initializer),T,!1,!1));return gr(k)?{kind:3,token:c,identifier:c.text,properties:k,parentDeclaration:u.initializer}:void 0}if(Ie(c)&&Fu(c.parent)){const T=Fa(s.getCompilerOptions()),k=hHe(i,T,c.parent);return gr(k)?{kind:4,token:c,attributes:k,parentDeclaration:c.parent}:void 0}if(Ie(c)){const T=(o=i.getContextualType(c))==null?void 0:o.getNonNullableType();if(T&&bn(T)&16){const k=bl(i.getSignaturesOfType(T,0));return k===void 0?void 0:{kind:5,token:c,signature:k,sourceFile:e,parentDeclaration:l4e(c)}}if(Rs(u)&&u.expression===c)return{kind:2,token:c,call:u,sourceFile:e,modifierFlags:0,parentDeclaration:l4e(c)}}if(!Sn(u))return;const f=pG(i.getTypeAtLocation(u.expression)),g=f.symbol;if(!g||!g.declarations)return;if(Ie(c)&&Rs(u.parent)){const T=wn(g.declarations,Sc),k=T==null?void 0:T.getSourceFile();if(T&&k&&!x6(s,k))return{kind:2,token:c,call:u.parent,sourceFile:e,modifierFlags:32,parentDeclaration:T};const w=wn(g.declarations,Ni);if(e.commonJsModuleIndicator)return;if(w&&!x6(s,w))return{kind:2,token:c,call:u.parent,sourceFile:w,modifierFlags:32,parentDeclaration:w}}const d=wn(g.declarations,$n);if(!d&&Pi(c))return;const y=d||wn(g.declarations,T=>Bu(T)||z_(T));if(y&&!x6(s,y.getSourceFile())){const T=!z_(y)&&(f.target||f)!==i.getDeclaredTypeOfSymbol(g);if(T&&(Pi(c)||Bu(y)))return;const k=y.getSourceFile(),w=z_(y)?0:(T?256:0)|(JG(c.text)?2:0),P=Ou(k),F=Wn(u.parent,Rs);return{kind:0,token:c,call:F,modifierFlags:w,parentDeclaration:y,declSourceFile:k,isJSFile:P}}const S=wn(g.declarations,L1);if(S&&!(f.flags&1056)&&!Pi(c)&&!x6(s,S.getSourceFile()))return{kind:1,token:c,parentDeclaration:S}}function _He(e,t){return t.isJSFile?TT(fHe(e,t)):pHe(e,t)}function fHe(e,{parentDeclaration:t,declSourceFile:n,modifierFlags:i,token:s}){if(Bu(t)||z_(t))return;const o=Kr.ChangeTracker.with(e,u=>K6e(u,n,t,s,!!(i&256)));if(o.length===0)return;const c=i&256?p.Initialize_static_property_0:Pi(s)?p.Declare_a_private_field_named_0:p.Initialize_property_0_in_the_constructor;return js(Ty,o,[c,s.text],Ty,p.Add_all_missing_members)}function K6e(e,t,n,i,s){const o=i.text;if(s){if(n.kind===231)return;const c=n.name.getText(),u=e4e(I.createIdentifier(c),o);e.insertNodeAfter(t,n,u)}else if(Pi(i)){const c=I.createPropertyDeclaration(void 0,o,void 0,void 0,void 0),u=n4e(n);u?e.insertNodeAfter(t,u,c):e.insertMemberAtStart(t,n,c)}else{const c=Sg(n);if(!c)return;const u=e4e(I.createThis(),o);e.insertNodeAtConstructorEnd(t,c,u)}}function e4e(e,t){return I.createExpressionStatement(I.createAssignment(I.createPropertyAccessExpression(e,t),Rx()))}function pHe(e,{parentDeclaration:t,declSourceFile:n,modifierFlags:i,token:s}){const o=s.text,c=i&256,u=t4e(e.program.getTypeChecker(),t,s),f=d=>Kr.ChangeTracker.with(e,y=>r4e(y,n,t,o,u,d)),g=[js(Ty,f(i&256),[c?p.Declare_static_property_0:p.Declare_property_0,o],Ty,p.Add_all_missing_members)];return c||Pi(s)||(i&2&&g.unshift(Td(Ty,f(2),[p.Declare_private_property_0,o])),g.push(dHe(e,n,t,s.text,u))),g}function t4e(e,t,n){let i;if(n.parent.parent.kind===226){const s=n.parent.parent,o=n.parent===s.left?s.right:s.left,c=e.getWidenedType(e.getBaseTypeOfLiteralType(e.getTypeAtLocation(o)));i=e.typeToTypeNode(c,t,1)}else{const s=e.getContextualType(n.parent);i=s?e.typeToTypeNode(s,void 0,1):void 0}return i||I.createKeywordTypeNode(133)}function r4e(e,t,n,i,s,o){const c=o?I.createNodeArray(I.createModifiersFromModifierFlags(o)):void 0,u=$n(n)?I.createPropertyDeclaration(c,i,void 0,s,void 0):I.createPropertySignature(void 0,i,void 0,s),f=n4e(n);f?e.insertNodeAfter(t,f,u):e.insertMemberAtStart(t,n,u)}function n4e(e){let t;for(const n of e.members){if(!xs(n))break;t=n}return t}function dHe(e,t,n,i,s){const o=I.createKeywordTypeNode(154),c=I.createParameterDeclaration(void 0,void 0,"x",void 0,o,void 0),u=I.createIndexSignature(void 0,[c],s),f=Kr.ChangeTracker.with(e,g=>g.insertMemberAtStart(t,n,u));return Td(Ty,f,[p.Add_index_signature_for_property_0,i])}function mHe(e,t){const{parentDeclaration:n,declSourceFile:i,modifierFlags:s,token:o,call:c}=t;if(c===void 0)return;const u=o.text,f=d=>Kr.ChangeTracker.with(e,y=>i4e(e,y,c,o,d,n,i)),g=[js(Ty,f(s&256),[s&256?p.Declare_static_method_0:p.Declare_method_0,u],Ty,p.Add_all_missing_members)];return s&2&&g.unshift(Td(Ty,f(2),[p.Declare_private_method_0,u])),g}function i4e(e,t,n,i,s,o,c){const u=Mx(c,e.program,e.preferences,e.host),f=$n(o)?174:173,g=R_e(f,e,u,n,i,s,o),d=yHe(o,n);d?t.insertNodeAfter(c,d,g):t.insertMemberAtStart(c,o,g),u.writeFixes(t)}function s4e(e,t,{token:n,parentDeclaration:i}){const s=ct(i.members,f=>{const g=t.getTypeAtLocation(f);return!!(g&&g.flags&402653316)}),o=i.getSourceFile(),c=I.createEnumMember(n,s?I.createStringLiteral(n.text):void 0),u=Po(i.members);u?e.insertNodeInListAfter(o,u,c,i.members):e.insertMemberAtStart(o,i,c)}function a4e(e,t,n){const i=wf(t.sourceFile,t.preferences),s=Mx(t.sourceFile,t.program,t.preferences,t.host),o=n.kind===2?R_e(262,t,s,n.call,on(n.token),n.modifierFlags,n.parentDeclaration):uQ(262,t,i,n.signature,GM(p.Function_not_implemented.message,i),n.token,void 0,void 0,void 0,s);o===void 0&&E.fail("fixMissingFunctionDeclaration codefix got unexpected error."),Hp(n.parentDeclaration)?e.insertNodeBefore(n.sourceFile,n.parentDeclaration,o,!0):e.insertNodeAtEndOfScope(n.sourceFile,n.parentDeclaration,o),s.writeFixes(e)}function o4e(e,t,n){const i=Mx(t.sourceFile,t.program,t.preferences,t.host),s=wf(t.sourceFile,t.preferences),o=t.program.getTypeChecker(),c=n.parentDeclaration.attributes,u=ct(c.properties,mx),f=nr(n.attributes,y=>{const S=jX(t,o,i,s,o.getTypeOfSymbol(y),n.parentDeclaration),T=I.createIdentifier(y.name),k=I.createJsxAttribute(T,I.createJsxExpression(void 0,S));return ba(T,k),k}),g=I.createJsxAttributes(u?[...f,...c.properties]:[...c.properties,...f]),d={prefix:c.pos===c.end?" ":void 0};e.replaceNode(t.sourceFile,c,g,d),i.writeFixes(e)}function c4e(e,t,n){const i=Mx(t.sourceFile,t.program,t.preferences,t.host),s=wf(t.sourceFile,t.preferences),o=Fa(t.program.getCompilerOptions()),c=t.program.getTypeChecker(),u=nr(n.properties,g=>{const d=jX(t,c,i,s,c.getTypeOfSymbol(g),n.parentDeclaration);return I.createPropertyAssignment(vHe(g,o,s,c),d)}),f={leadingTriviaOption:Kr.LeadingTriviaOption.Exclude,trailingTriviaOption:Kr.TrailingTriviaOption.Exclude,indentation:n.indentation};e.replaceNode(t.sourceFile,n.parentDeclaration,I.createObjectLiteralExpression([...n.parentDeclaration.properties,...u],!0),f),i.writeFixes(e)}function jX(e,t,n,i,s,o){if(s.flags&3)return Rx();if(s.flags&134217732)return I.createStringLiteral("",i===0);if(s.flags&8)return I.createNumericLiteral(0);if(s.flags&64)return I.createBigIntLiteral("0n");if(s.flags&16)return I.createFalse();if(s.flags&1056){const c=s.symbol.exports?e7(s.symbol.exports.values()):s.symbol,u=t.symbolToExpression(s.symbol.parent?s.symbol.parent:s.symbol,111551,void 0,64);return c===void 0||u===void 0?I.createNumericLiteral(0):I.createPropertyAccessExpression(u,t.symbolToString(c))}if(s.flags&256)return I.createNumericLiteral(s.value);if(s.flags&2048)return I.createBigIntLiteral(s.value);if(s.flags&128)return I.createStringLiteral(s.value,i===0);if(s.flags&512)return s===t.getFalseType()||s===t.getFalseType(!0)?I.createFalse():I.createTrue();if(s.flags&65536)return I.createNull();if(s.flags&1048576)return $o(s.types,u=>jX(e,t,n,i,u,o))??Rx();if(t.isArrayLikeType(s))return I.createArrayLiteralExpression();if(gHe(s)){const c=nr(t.getPropertiesOfType(s),u=>{const f=jX(e,t,n,i,t.getTypeOfSymbol(u),o);return I.createPropertyAssignment(u.name,f)});return I.createObjectLiteralExpression(c,!0)}if(bn(s)&16){if(wn(s.symbol.declarations||Ve,pd(Mm,Lm,hc))===void 0)return Rx();const u=t.getSignaturesOfType(s,0);return u===void 0?Rx():uQ(218,e,i,u[0],GM(p.Function_not_implemented.message,i),void 0,void 0,void 0,o,n)??Rx()}if(bn(s)&1){const c=rh(s.symbol);if(c===void 0||Zv(c))return Rx();const u=Sg(c);return u&&gr(u.parameters)?Rx():I.createNewExpression(I.createIdentifier(s.symbol.name),void 0,void 0)}return Rx()}function Rx(){return I.createIdentifier("undefined")}function gHe(e){return e.flags&524288&&(bn(e)&128||e.symbol&&Wn(Tm(e.symbol.declarations),z_))}function hHe(e,t,n){const i=e.getContextualType(n.attributes);if(i===void 0)return Ve;const s=i.getProperties();if(!gr(s))return Ve;const o=new Set;for(const c of n.attributes.properties)if(em(c)&&o.add(t3(c.name)),mx(c)){const u=e.getTypeAtLocation(c.expression);for(const f of u.getProperties())o.add(f.escapedName)}return An(s,c=>Sf(c.name,t,1)&&!(c.flags&16777216||Ko(c)&48||o.has(c.escapedName)))}function yHe(e,t){if(z_(e))return;const n=Pr(t,i=>hc(i)||sc(i));return n&&n.parent===e?n:void 0}function vHe(e,t,n,i){if(wm(e)){const s=i.symbolToNode(e,111551,void 0,1073741824);if(s&&Pa(s))return s}return EF(e.name,t,n===0,!1,!1)}function l4e(e){if(Pr(e,h3)){const t=Pr(e.parent,Hp);if(t)return t}return wr(e)}var Ty,BM,JM,zM,e_e,bHe=wt({"src/services/codefixes/fixAddMissingMember.ts"(){qn(),ra(),Ty="fixMissingMember",BM="fixMissingProperties",JM="fixMissingAttributes",zM="fixMissingFunctionDeclaration",e_e=[p.Property_0_does_not_exist_on_type_1.code,p.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,p.Property_0_is_missing_in_type_1_but_required_in_type_2.code,p.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,p.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,p.Cannot_find_name_0.code],ea({errorCodes:e_e,getCodeActions(e){const t=e.program.getTypeChecker(),n=Z6e(e.sourceFile,e.span.start,e.errorCode,t,e.program);if(n){if(n.kind===3){const i=Kr.ChangeTracker.with(e,s=>c4e(s,e,n));return[js(BM,i,p.Add_missing_properties,BM,p.Add_all_missing_properties)]}if(n.kind===4){const i=Kr.ChangeTracker.with(e,s=>o4e(s,e,n));return[js(JM,i,p.Add_missing_attributes,JM,p.Add_all_missing_attributes)]}if(n.kind===2||n.kind===5){const i=Kr.ChangeTracker.with(e,s=>a4e(s,e,n));return[js(zM,i,[p.Add_missing_function_declaration_0,n.token.text],zM,p.Add_all_missing_function_declarations)]}if(n.kind===1){const i=Kr.ChangeTracker.with(e,s=>s4e(s,e.program.getTypeChecker(),n));return[js(Ty,i,[p.Add_missing_enum_member_0,n.token.text],Ty,p.Add_all_missing_members)]}return es(mHe(e,n),_He(e,n))}},fixIds:[Ty,zM,BM,JM],getAllCodeActions:e=>{const{program:t,fixId:n}=e,i=t.getTypeChecker(),s=new Map,o=new Map;return A6(Kr.ChangeTracker.with(e,c=>{N6(e,e_e,u=>{const f=Z6e(u.file,u.start,u.code,i,e.program);if(!(!f||!qp(s,Oa(f.parentDeclaration)+"#"+(f.kind===3?f.identifier:f.token.text)))){if(n===zM&&(f.kind===2||f.kind===5))a4e(c,e,f);else if(n===BM&&f.kind===3)c4e(c,e,f);else if(n===JM&&f.kind===4)o4e(c,e,f);else if(f.kind===1&&s4e(c,i,f),f.kind===0){const{parentDeclaration:g,token:d}=f,y=z4(o,g,()=>[]);y.some(S=>S.token.text===d.text)||y.push(f)}}}),o.forEach((u,f)=>{const g=z_(f)?void 0:q_e(f,i);for(const d of u){if(g!=null&&g.some(F=>{const J=o.get(F);return!!J&&J.some(({token:U})=>U.text===d.token.text)}))continue;const{parentDeclaration:y,declSourceFile:S,modifierFlags:T,token:k,call:w,isJSFile:P}=d;if(w&&!Pi(k))i4e(e,c,w,k,T&256,y,S);else if(P&&!Bu(y)&&!z_(y))K6e(c,S,y,k,!!(T&256));else{const F=t4e(i,y,k);r4e(c,S,y,k.text,F,T&256)}}})}))}})}});function u4e(e,t,n){const i=Ls(SHe(t,n),Rs),s=I.createNewExpression(i.expression,i.typeArguments,i.arguments);e.replaceNode(t,i,s)}function SHe(e,t){let n=Ui(e,t.start);const i=bc(t);for(;n.endu4e(s,t,n));return[js(BX,i,p.Add_missing_new_operator_to_call,BX,p.Add_missing_new_operator_to_all_calls)]},fixIds:[BX],getAllCodeActions:e=>Ga(e,t_e,(t,n)=>u4e(t,e.sourceFile,n))})}});function _4e(e,t,n){const i=Ui(e,n),s=Pr(i,Rs);if(s===void 0||gr(s.arguments)===0)return;const o=t.getTypeChecker(),c=o.getTypeAtLocation(s.expression),u=An(c.symbol.declarations,f4e);if(u===void 0)return;const f=Po(u);if(f===void 0||f.body===void 0||x6(t,f.getSourceFile()))return;const g=xHe(f);if(g===void 0)return;const d=[],y=[],S=gr(f.parameters),T=gr(s.arguments);if(S>T)return;const k=[f,...CHe(f,u)];for(let w=0,P=0,F=0;w{gr(s.parameters)?e.replaceNodeRangeWithNodes(t,va(s.parameters),ka(s.parameters),p4e(s,i),{joiner:", ",indentation:0,leadingTriviaOption:Kr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Kr.TrailingTriviaOption.Include}):er(p4e(s,i),(o,c)=>{gr(s.parameters)===0&&c===0?e.insertNodeAt(t,s.parameters.end,o):e.insertNodeAtEndOfList(t,s.parameters,o)})})}function f4e(e){switch(e.kind){case 262:case 218:case 174:case 219:return!0;default:return!1}}function p4e(e,t){const n=nr(e.parameters,i=>I.createParameterDeclaration(i.modifiers,i.dotDotDotToken,i.name,i.questionToken,i.type,i.initializer));for(const{pos:i,declaration:s}of t){const o=i>0?n[i-1]:void 0;n.splice(i,0,I.updateParameterDeclaration(s,s.modifiers,s.dotDotDotToken,s.name,o&&o.questionToken?I.createToken(58):s.questionToken,s.type,s.initializer))}return n}function CHe(e,t){const n=[];for(const i of t)if(EHe(i)){if(gr(i.parameters)===gr(e.parameters)){n.push(i);continue}if(gr(i.parameters)>gr(e.parameters))return[]}return n}function EHe(e){return f4e(e)&&e.body===void 0}function d4e(e,t,n){return I.createParameterDeclaration(void 0,void 0,e,n,t,void 0)}function PHe(e,t){return gr(e)&&ct(e,n=>tJX(u,e.sourceFile,i,s)),[gr(s)>1?p.Add_missing_parameters_to_0:p.Add_missing_parameter_to_0,n],WM,p.Add_all_missing_parameters)),gr(o)&&_r(c,js(VM,Kr.ChangeTracker.with(e,u=>JX(u,e.sourceFile,i,o)),[gr(o)>1?p.Add_optional_parameters_to_0:p.Add_optional_parameter_to_0,n],VM,p.Add_all_optional_parameters)),c},getAllCodeActions:e=>Ga(e,r_e,(t,n)=>{const i=_4e(e.sourceFile,e.program,n.start);if(i){const{declarations:s,newParameters:o,newOptionalParameters:c}=i;e.fixId===WM&&JX(t,e.sourceFile,s,o),e.fixId===VM&&JX(t,e.sourceFile,s,c)}})})}});function m4e(e,t){return{type:"install package",file:e,packageName:t}}function g4e(e,t){const n=Wn(Ui(e,t),aa);if(!n)return;const i=n.text,{packageName:s}=uA(i);return Sl(s)?void 0:s}function h4e(e,t,n){var i;return n===n_e?nm.nodeCoreModules.has(e)?"@types/node":void 0:(i=t.isKnownTypesPackageName)!=null&&i.call(t,e)?u9(e):void 0}var y4e,zX,n_e,i_e,wHe=wt({"src/services/codefixes/fixCannotFindModule.ts"(){qn(),ra(),y4e="fixCannotFindModule",zX="installTypesPackage",n_e=p.Cannot_find_module_0_or_its_corresponding_type_declarations.code,i_e=[n_e,p.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code],ea({errorCodes:i_e,getCodeActions:function(t){const{host:n,sourceFile:i,span:{start:s}}=t,o=g4e(i,s);if(o===void 0)return;const c=h4e(o,n,t.errorCode);return c===void 0?[]:[js(y4e,[],[p.Install_0,c],zX,p.Install_all_missing_types_packages,m4e(i.fileName,c))]},fixIds:[zX],getAllCodeActions:e=>Ga(e,i_e,(t,n,i)=>{const s=g4e(n.file,n.start);if(s!==void 0)switch(e.fixId){case zX:{const o=h4e(s,e.host,n.code);o&&i.push(m4e(n.file.fileName,o));break}default:E.fail(`Bad fixId: ${e.fixId}`)}})})}});function v4e(e,t){const n=Ui(e,t);return Ls(n.parent,$n)}function b4e(e,t,n,i,s){const o=Ud(e),c=n.program.getTypeChecker(),u=c.getTypeAtLocation(o),f=c.getPropertiesOfType(u).filter(AHe),g=Mx(t,n.program,s,n.host);M_e(e,f,t,n,s,g,d=>i.insertMemberAtStart(t,e,d)),g.writeFixes(i)}function AHe(e){const t=ny(va(e.getDeclarations()));return!(t&2)&&!!(t&64)}var s_e,WX,NHe=wt({"src/services/codefixes/fixClassDoesntImplementInheritedAbstractMember.ts"(){qn(),ra(),s_e=[p.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1.code],WX="fixClassDoesntImplementInheritedAbstractMember",ea({errorCodes:s_e,getCodeActions:function(t){const{sourceFile:n,span:i}=t,s=Kr.ChangeTracker.with(t,o=>b4e(v4e(n,i.start),n,t,o,t.preferences));return s.length===0?void 0:[js(WX,s,p.Implement_inherited_abstract_class,WX,p.Implement_all_inherited_abstract_classes)]},fixIds:[WX],getAllCodeActions:function(t){const n=new Map;return Ga(t,s_e,(i,s)=>{const o=v4e(s.file,s.start);qp(n,Oa(o))&&b4e(o,t.sourceFile,t,i,t.preferences)})}})}});function S4e(e,t,n,i){e.insertNodeAtConstructorStart(t,n,i),e.delete(t,i)}function T4e(e,t){const n=Ui(e,t);if(n.kind!==110)return;const i=cf(n),s=x4e(i.body);return s&&!s.expression.arguments.some(o=>Sn(o)&&o.expression===n)?{constructor:i,superCall:s}:void 0}function x4e(e){return Cl(e)&&Pb(e.expression)?e:As(e)?void 0:Ss(e,x4e)}var VX,a_e,IHe=wt({"src/services/codefixes/fixClassSuperMustPrecedeThisAccess.ts"(){qn(),ra(),VX="classSuperMustPrecedeThisAccess",a_e=[p.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code],ea({errorCodes:a_e,getCodeActions(e){const{sourceFile:t,span:n}=e,i=T4e(t,n.start);if(!i)return;const{constructor:s,superCall:o}=i,c=Kr.ChangeTracker.with(e,u=>S4e(u,t,s,o));return[js(VX,c,p.Make_super_call_the_first_statement_in_the_constructor,VX,p.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[VX],getAllCodeActions(e){const{sourceFile:t}=e,n=new Map;return Ga(e,a_e,(i,s)=>{const o=T4e(s.file,s.start);if(!o)return;const{constructor:c,superCall:u}=o;qp(n,Oa(c.parent))&&S4e(i,t,c,u)})}})}});function k4e(e,t){const n=Ui(e,t);return E.assert(sc(n.parent),"token should be at the constructor declaration"),n.parent}function C4e(e,t,n){const i=I.createExpressionStatement(I.createCallExpression(I.createSuper(),void 0,Ve));e.insertNodeAtConstructorStart(t,n,i)}var UX,o_e,FHe=wt({"src/services/codefixes/fixConstructorForDerivedNeedSuperCall.ts"(){qn(),ra(),UX="constructorForDerivedNeedSuperCall",o_e=[p.Constructors_for_derived_classes_must_contain_a_super_call.code],ea({errorCodes:o_e,getCodeActions(e){const{sourceFile:t,span:n}=e,i=k4e(t,n.start),s=Kr.ChangeTracker.with(e,o=>C4e(o,t,i));return[js(UX,s,p.Add_missing_super_call,UX,p.Add_all_missing_super_calls)]},fixIds:[UX],getAllCodeActions:e=>Ga(e,o_e,(t,n)=>C4e(t,e.sourceFile,k4e(n.file,n.start)))})}});function E4e(e,t){z_e(e,t,"jsx",I.createStringLiteral("react"))}var c_e,l_e,OHe=wt({"src/services/codefixes/fixEnableJsxFlag.ts"(){qn(),ra(),c_e="fixEnableJsxFlag",l_e=[p.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code],ea({errorCodes:l_e,getCodeActions:function(t){const{configFile:n}=t.program.getCompilerOptions();if(n===void 0)return;const i=Kr.ChangeTracker.with(t,s=>E4e(s,n));return[Td(c_e,i,p.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[c_e],getAllCodeActions:e=>Ga(e,l_e,t=>{const{configFile:n}=e.program.getCompilerOptions();n!==void 0&&E4e(t,n)})})}});function P4e(e,t,n){const i=wn(e.getSemanticDiagnostics(t),c=>c.start===n.start&&c.length===n.length);if(i===void 0||i.relatedInformation===void 0)return;const s=wn(i.relatedInformation,c=>c.code===p.Did_you_mean_0.code);if(s===void 0||s.file===void 0||s.start===void 0||s.length===void 0)return;const o=V_e(s.file,Wl(s.start,s.length));if(o!==void 0&&ot(o)&&Zr(o.parent))return{suggestion:LHe(s.messageText),expression:o.parent,arg:o}}function D4e(e,t,n,i){const s=I.createCallExpression(I.createPropertyAccessExpression(I.createIdentifier("Number"),I.createIdentifier("isNaN")),void 0,[n]),o=i.operatorToken.kind;e.replaceNode(t,i,o===38||o===36?I.createPrefixUnaryExpression(54,s):s)}function LHe(e){const[,t]=tm(e,` -`,0).match(/'(.*)'/)||[];return t}var qX,u_e,MHe=wt({"src/services/codefixes/fixNaNEquality.ts"(){qn(),ra(),qX="fixNaNEquality",u_e=[p.This_condition_will_always_return_0.code],ea({errorCodes:u_e,getCodeActions(e){const{sourceFile:t,span:n,program:i}=e,s=P4e(i,t,n);if(s===void 0)return;const{suggestion:o,expression:c,arg:u}=s,f=Kr.ChangeTracker.with(e,g=>D4e(g,t,u,c));return[js(qX,f,[p.Use_0,o],qX,p.Use_Number_isNaN_in_all_conditions)]},fixIds:[qX],getAllCodeActions:e=>Ga(e,u_e,(t,n)=>{const i=P4e(e.program,n.file,Wl(n.start,n.length));i&&D4e(t,n.file,i.arg,i.expression)})})}}),RHe=wt({"src/services/codefixes/fixModuleAndTargetOptions.ts"(){qn(),ra(),ea({errorCodes:[p.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,p.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,p.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){const n=t.program.getCompilerOptions(),{configFile:i}=n;if(i===void 0)return;const s=[],o=au(n);if(o>=5&&o<99){const g=Kr.ChangeTracker.with(t,d=>{z_e(d,i,"module",I.createStringLiteral("esnext"))});s.push(Td("fixModuleOption",g,[p.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}const u=Fa(n);if(u<4||u>99){const g=Kr.ChangeTracker.with(t,d=>{if(!yE(i))return;const S=[["target",I.createStringLiteral("es2017")]];o===1&&S.push(["module",I.createStringLiteral("commonjs")]),J_e(d,i,S)});s.push(Td("fixTargetOption",g,[p.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return s.length?s:void 0}})}});function w4e(e,t,n){e.replaceNode(t,n,I.createPropertyAssignment(n.name,n.objectAssignmentInitializer))}function A4e(e,t){return Ls(Ui(e,t).parent,k_)}var HX,__e,jHe=wt({"src/services/codefixes/fixPropertyAssignment.ts"(){qn(),ra(),HX="fixPropertyAssignment",__e=[p.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:__e,fixIds:[HX],getCodeActions(e){const{sourceFile:t,span:n}=e,i=A4e(t,n.start),s=Kr.ChangeTracker.with(e,o=>w4e(o,e.sourceFile,i));return[js(HX,s,[p.Change_0_to_1,"=",":"],HX,[p.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:e=>Ga(e,__e,(t,n)=>w4e(t,n.file,A4e(n.file,n.start)))})}});function N4e(e,t){const n=Ui(e,t),i=Nl(n).heritageClauses,s=i[0].getFirstToken();return s.kind===96?{extendsToken:s,heritageClauses:i}:void 0}function I4e(e,t,n,i){if(e.replaceNode(t,n,I.createToken(119)),i.length===2&&i[0].token===96&&i[1].token===119){const s=i[1].getFirstToken(),o=s.getFullStart();e.replaceRange(t,{pos:o,end:o},I.createToken(28));const c=t.text;let u=s.end;for(;uI4e(c,t,i,s));return[js(GX,o,p.Change_extends_to_implements,GX,p.Change_all_extended_interfaces_to_implements)]},fixIds:[GX],getAllCodeActions:e=>Ga(e,f_e,(t,n)=>{const i=N4e(n.file,n.start);i&&I4e(t,n.file,i.extendsToken,i.heritageClauses)})})}});function F4e(e,t,n){const i=Ui(e,t);if(Ie(i)||Pi(i))return{node:i,className:n===p_e?Nl(i).name.text:void 0}}function O4e(e,t,{node:n,className:i}){U_(n),e.replaceNode(t,n,I.createPropertyAccessExpression(i?I.createIdentifier(i):I.createThis(),n))}var $X,p_e,d_e,JHe=wt({"src/services/codefixes/fixForgottenThisPropertyAccess.ts"(){qn(),ra(),$X="forgottenThisPropertyAccess",p_e=p.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,d_e=[p.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,p.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,p_e],ea({errorCodes:d_e,getCodeActions(e){const{sourceFile:t}=e,n=F4e(t,e.span.start,e.errorCode);if(!n)return;const i=Kr.ChangeTracker.with(e,s=>O4e(s,t,n));return[js($X,i,[p.Add_0_to_unresolved_variable,n.className||"this"],$X,p.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[$X],getAllCodeActions:e=>Ga(e,d_e,(t,n)=>{const i=F4e(n.file,n.start,n.code);i&&O4e(t,e.sourceFile,i)})})}});function zHe(e){return Za(h_e,e)}function m_e(e,t,n,i,s){const o=n.getText()[i];if(!zHe(o))return;const c=s?h_e[o]:`{${aP(n,t,o)}}`;e.replaceRangeWithText(n,{pos:i,end:i+1},c)}var XX,UM,g_e,h_e,WHe=wt({"src/services/codefixes/fixInvalidJsxCharacters.ts"(){qn(),ra(),XX="fixInvalidJsxCharacters_expression",UM="fixInvalidJsxCharacters_htmlEntity",g_e=[p.Unexpected_token_Did_you_mean_or_gt.code,p.Unexpected_token_Did_you_mean_or_rbrace.code],ea({errorCodes:g_e,fixIds:[XX,UM],getCodeActions(e){const{sourceFile:t,preferences:n,span:i}=e,s=Kr.ChangeTracker.with(e,c=>m_e(c,n,t,i.start,!1)),o=Kr.ChangeTracker.with(e,c=>m_e(c,n,t,i.start,!0));return[js(XX,s,p.Wrap_invalid_character_in_an_expression_container,XX,p.Wrap_all_invalid_characters_in_an_expression_container),js(UM,o,p.Convert_invalid_character_to_its_html_entity_code,UM,p.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions(e){return Ga(e,g_e,(t,n)=>m_e(t,e.preferences,n.file,n.start,e.fixId===UM))}}),h_e={">":">","}":"}"}}});function VHe(e,{name:t,jsDocHost:n,jsDocParameterTag:i}){const s=Kr.ChangeTracker.with(e,o=>o.filterJSDocTags(e.sourceFile,n,c=>c!==i));return js(qM,s,[p.Delete_unused_param_tag_0,t.getText(e.sourceFile)],qM,p.Delete_all_unused_param_tags)}function UHe(e,{name:t,jsDocHost:n,signature:i,jsDocParameterTag:s}){if(!gr(i.parameters))return;const o=e.sourceFile,c=T1(i),u=new Set;for(const y of c)bd(y)&&Ie(y.name)&&u.add(y.name.escapedText);const f=$o(i.parameters,y=>Ie(y.name)&&!u.has(y.name.escapedText)?y.name.getText(o):void 0);if(f===void 0)return;const g=I.updateJSDocParameterTag(s,s.tagName,I.createIdentifier(f),s.isBracketed,s.typeExpression,s.isNameFirst,s.comment),d=Kr.ChangeTracker.with(e,y=>y.replaceJSDocComment(o,n,nr(c,S=>S===s?g:S)));return Td(y_e,d,[p.Rename_param_tag_name_0_to_1,t.getText(o),f])}function L4e(e,t){const n=Ui(e,t);if(n.parent&&bd(n.parent)&&Ie(n.parent.name)){const i=n.parent,s=Ib(i),o=P1(i);if(s&&o)return{jsDocHost:s,signature:o,name:n.parent.name,jsDocParameterTag:i}}}var qM,y_e,v_e,qHe=wt({"src/services/codefixes/fixUnmatchedParameter.ts"(){qn(),ra(),qM="deleteUnmatchedParameter",y_e="renameUnmatchedParameter",v_e=[p.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code],ea({fixIds:[qM,y_e],errorCodes:v_e,getCodeActions:function(t){const{sourceFile:n,span:i}=t,s=[],o=L4e(n,i.start);if(o)return _r(s,VHe(t,o)),_r(s,UHe(t,o)),s},getAllCodeActions:function(t){const n=new Map;return A6(Kr.ChangeTracker.with(t,i=>{N6(t,v_e,({file:s,start:o})=>{const c=L4e(s,o);c&&n.set(c.signature,_r(n.get(c.signature),c.jsDocParameterTag))}),n.forEach((s,o)=>{if(t.fixId===qM){const c=new Set(s);i.filterJSDocTags(o.getSourceFile(),o,u=>!c.has(u))}})}))}})}});function HHe(e,t,n){const i=Wn(Ui(e,n),Ie);if(!i||i.parent.kind!==183)return;const o=t.getTypeChecker().getSymbolAtLocation(i);return wn((o==null?void 0:o.declarations)||Ve,pd(Rm,x_,El))}function GHe(e,t,n,i){if(n.kind===271){e.insertModifierBefore(t,156,n.name);return}const s=n.kind===273?n:n.parent.parent;if(s.name&&s.namedBindings)return;const o=i.getTypeChecker();R5(s,u=>{if(Ul(u.symbol,o).flags&111551)return!0})||e.insertModifierBefore(t,156,s)}function $He(e,t,n,i){Fx.doChangeNamedToNamespaceOrDefault(t,i,e,n.parent)}var QX,M4e,XHe=wt({"src/services/codefixes/fixUnreferenceableDecoratorMetadata.ts"(){qn(),ra(),QX="fixUnreferenceableDecoratorMetadata",M4e=[p.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:M4e,getCodeActions:e=>{const t=HHe(e.sourceFile,e.program,e.span.start);if(!t)return;const n=Kr.ChangeTracker.with(e,o=>t.kind===276&&$He(o,e.sourceFile,t,e.program)),i=Kr.ChangeTracker.with(e,o=>GHe(o,e.sourceFile,t,e.program));let s;return n.length&&(s=_r(s,Td(QX,n,p.Convert_named_imports_to_namespace_import))),i.length&&(s=_r(s,Td(QX,i,p.Use_import_type))),s},fixIds:[QX]})}});function R4e(e,t,n){e.replaceNode(t,n.parent,I.createKeywordTypeNode(159))}function NN(e,t){return js(IN,e,t,KX,p.Delete_all_unused_declarations)}function j4e(e,t,n){e.delete(t,E.checkDefined(Ls(n.parent,Dz).typeParameters,"The type parameter to delete should exist"))}function b_e(e){return e.kind===102||e.kind===80&&(e.parent.kind===276||e.parent.kind===273)}function B4e(e){return e.kind===102?Wn(e.parent,il):void 0}function J4e(e,t){return dl(t.parent)&&va(t.parent.getChildren(e))===t}function z4e(e,t,n){e.delete(t,n.parent.kind===243?n.parent:n)}function QHe(e,t,n){er(n.elements,i=>e.delete(t,i))}function YHe(e,t,n,{parent:i}){if(hi(i)&&i.initializer&&jv(i.initializer))if(dl(i.parent)&&gr(i.parent.declarations)>1){const s=i.parent.parent,o=s.getStart(n),c=s.end;t.delete(n,i),t.insertNodeAt(n,c,i.initializer,{prefix:f0(e.host,e.formatContext.options)+n.text.slice(WL(n.text,o-1),o),suffix:iN(n)?";":""})}else t.replaceNode(n,i.parent,i.initializer);else t.delete(n,i)}function W4e(e,t,n,i){t!==p.Property_0_is_declared_but_its_value_is_never_read.code&&(i.kind===140&&(i=Ls(i.parent,Wb).typeParameter.name),Ie(i)&&ZHe(i)&&(e.replaceNode(n,i,I.createIdentifier(`_${i.text}`)),rs(i.parent)&&Vk(i.parent).forEach(s=>{Ie(s.name)&&e.replaceNode(n,s.name,I.createIdentifier(`_${s.name.text}`))})))}function ZHe(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 YX(e,t,n,i,s,o,c,u){KHe(t,n,e,i,s,o,c,u),Ie(t)&&lo.Core.eachSymbolReferenceInFile(t,i,e,f=>{Sn(f.parent)&&f.parent.name===f&&(f=f.parent),!u&&nGe(f)&&n.delete(e,f.parent.parent)})}function KHe(e,t,n,i,s,o,c,u){const{parent:f}=e;if(rs(f))eGe(t,n,f,i,s,o,c,u);else if(!(u&&Ie(e)&&lo.Core.isSymbolReferencedInFile(e,i,n))){const g=Rm(f)?e:Pa(f)?f.parent:f;E.assert(g!==n,"should not delete whole source file"),t.delete(n,g)}}function eGe(e,t,n,i,s,o,c,u=!1){if(tGe(i,t,n,s,o,c,u))if(n.modifiers&&n.modifiers.length>0&&(!Ie(n.name)||lo.Core.isSymbolReferencedInFile(n.name,i,t)))for(const f of n.modifiers)ta(f)&&e.deleteModifier(t,f);else!n.initializer&&V4e(n,i,s)&&e.delete(t,n)}function V4e(e,t,n){const i=e.parent.parameters.indexOf(e);return!lo.Core.someSignatureUsage(e.parent,n,t,(s,o)=>!o||o.arguments.length>i)}function tGe(e,t,n,i,s,o,c){const{parent:u}=n;switch(u.kind){case 174:case 176:const f=u.parameters.indexOf(n),g=hc(u)?u.name:u,d=lo.Core.getReferencedSymbolsForNode(u.pos,g,s,i,o);if(d){for(const y of d)for(const S of y.references)if(S.kind===lo.EntryKind.Node){const T=u3(S.node)&&Rs(S.node.parent)&&S.node.parent.arguments.length>f,k=Sn(S.node.parent)&&u3(S.node.parent.expression)&&Rs(S.node.parent.parent)&&S.node.parent.parent.arguments.length>f,w=(hc(S.node.parent)||Lm(S.node.parent))&&S.node.parent!==n.parent&&S.node.parent.parameters.length>f;if(T||k||w)return!1}}return!0;case 262:return u.name&&rGe(e,t,u.name)?U4e(u,n,c):!0;case 218:case 219:return U4e(u,n,c);case 178:return!1;case 177:return!0;default:return E.failBadSyntaxKind(u)}}function rGe(e,t,n){return!!lo.Core.eachSymbolReferenceInFile(n,e,t,i=>Ie(i)&&Rs(i.parent)&&i.parent.arguments.includes(i))}function U4e(e,t,n){const i=e.parameters,s=i.indexOf(t);return E.assert(s!==-1,"The parameter should already be in the list"),n?i.slice(s+1).every(o=>Ie(o.name)&&!o.symbol.isReferenced):s===i.length-1}function nGe(e){return(Zr(e.parent)&&e.parent.left===e||(DV(e.parent)||dy(e.parent))&&e.parent.operand===e)&&Cl(e.parent.parent)}var IN,ZX,KX,HM,eQ,S_e,iGe=wt({"src/services/codefixes/fixUnusedIdentifier.ts"(){qn(),ra(),IN="unusedIdentifier",ZX="unusedIdentifier_prefix",KX="unusedIdentifier_delete",HM="unusedIdentifier_deleteImports",eQ="unusedIdentifier_infer",S_e=[p._0_is_declared_but_its_value_is_never_read.code,p._0_is_declared_but_never_used.code,p.Property_0_is_declared_but_its_value_is_never_read.code,p.All_imports_in_import_declaration_are_unused.code,p.All_destructured_elements_are_unused.code,p.All_variables_are_unused.code,p.All_type_parameters_are_unused.code],ea({errorCodes:S_e,getCodeActions(e){const{errorCode:t,sourceFile:n,program:i,cancellationToken:s}=e,o=i.getTypeChecker(),c=i.getSourceFiles(),u=Ui(n,e.span.start);if(Cp(u))return[NN(Kr.ChangeTracker.with(e,y=>y.delete(n,u)),p.Remove_template_tag)];if(u.kind===30){const y=Kr.ChangeTracker.with(e,S=>j4e(S,n,u));return[NN(y,p.Remove_type_parameters)]}const f=B4e(u);if(f){const y=Kr.ChangeTracker.with(e,S=>S.delete(n,f));return[js(IN,y,[p.Remove_import_from_0,qre(f)],HM,p.Delete_all_unused_imports)]}else if(b_e(u)){const y=Kr.ChangeTracker.with(e,S=>YX(n,u,S,o,c,i,s,!1));if(y.length)return[js(IN,y,[p.Remove_unused_declaration_for_Colon_0,u.getText(n)],HM,p.Delete_all_unused_imports)]}if(kp(u.parent)||s2(u.parent)){if(rs(u.parent.parent)){const y=u.parent.elements,S=[y.length>1?p.Remove_unused_declarations_for_Colon_0:p.Remove_unused_declaration_for_Colon_0,nr(y,T=>T.getText(n)).join(", ")];return[NN(Kr.ChangeTracker.with(e,T=>QHe(T,n,u.parent)),S)]}return[NN(Kr.ChangeTracker.with(e,y=>YHe(e,y,n,u.parent)),p.Remove_unused_destructuring_declaration)]}if(J4e(n,u))return[NN(Kr.ChangeTracker.with(e,y=>z4e(y,n,u.parent)),p.Remove_variable_statement)];const g=[];if(u.kind===140){const y=Kr.ChangeTracker.with(e,T=>R4e(T,n,u)),S=Ls(u.parent,Wb).typeParameter.name.text;g.push(js(IN,y,[p.Replace_infer_0_with_unknown,S],eQ,p.Replace_all_unused_infer_with_unknown))}else{const y=Kr.ChangeTracker.with(e,S=>YX(n,u,S,o,c,i,s,!1));if(y.length){const S=Pa(u.parent)?u.parent:u;g.push(NN(y,[p.Remove_unused_declaration_for_Colon_0,S.getText(n)]))}}const d=Kr.ChangeTracker.with(e,y=>W4e(y,t,n,u));return d.length&&g.push(js(IN,d,[p.Prefix_0_with_an_underscore,u.getText(n)],ZX,p.Prefix_all_unused_declarations_with_where_possible)),g},fixIds:[ZX,KX,HM,eQ],getAllCodeActions:e=>{const{sourceFile:t,program:n,cancellationToken:i}=e,s=n.getTypeChecker(),o=n.getSourceFiles();return Ga(e,S_e,(c,u)=>{const f=Ui(t,u.start);switch(e.fixId){case ZX:W4e(c,u.code,t,f);break;case HM:{const g=B4e(f);g?c.delete(t,g):b_e(f)&&YX(t,f,c,s,o,n,i,!0);break}case KX:{if(f.kind===140||b_e(f))break;if(Cp(f))c.delete(t,f);else if(f.kind===30)j4e(c,t,f);else if(kp(f.parent)){if(f.parent.parent.initializer)break;(!rs(f.parent.parent)||V4e(f.parent.parent,s,o))&&c.delete(t,f.parent.parent)}else{if(s2(f.parent.parent)&&f.parent.parent.parent.initializer)break;J4e(t,f)?z4e(c,t,f.parent):YX(t,f,c,s,o,n,i,!0)}break}case eQ:f.kind===140&&R4e(c,t,f);break;default:E.fail(JSON.stringify(e.fixId))}})}})}});function q4e(e,t,n,i,s){const o=Ui(t,n),c=Pr(o,Ei);if(c.getStart(t)!==o.getStart(t)){const f=JSON.stringify({statementKind:E.formatSyntaxKind(c.kind),tokenKind:E.formatSyntaxKind(o.kind),errorCode:s,start:n,length:i});E.fail("Token and statement should start at the same point. "+f)}const u=(Cs(c.parent)?c.parent:c).parent;if(!Cs(c.parent)||c===va(c.parent.statements))switch(u.kind){case 245:if(u.elseStatement){if(Cs(c.parent))break;e.replaceNode(t,c,I.createBlock(Ve));return}case 247:case 248:e.delete(t,u);return}if(Cs(c.parent)){const f=n+i,g=E.checkDefined(sGe(RW(c.parent.statements,c),d=>d.posq4e(i,e.sourceFile,e.span.start,e.span.length,e.errorCode));return[js(tQ,n,p.Remove_unreachable_code,tQ,p.Remove_all_unreachable_code)]},fixIds:[tQ],getAllCodeActions:e=>Ga(e,T_e,(t,n)=>q4e(t,n.file,n.start,n.length,n.code))})}});function H4e(e,t,n){const i=Ui(t,n),s=Ls(i.parent,c2),o=i.getStart(t),c=s.statement.getStart(t),u=qf(o,c,t)?c:ca(t.text,qa(s,59,t).end,!0);e.deleteRange(t,{pos:o,end:u})}var rQ,x_e,oGe=wt({"src/services/codefixes/fixUnusedLabel.ts"(){qn(),ra(),rQ="fixUnusedLabel",x_e=[p.Unused_label.code],ea({errorCodes:x_e,getCodeActions(e){const t=Kr.ChangeTracker.with(e,n=>H4e(n,e.sourceFile,e.span.start));return[js(rQ,t,p.Remove_unused_label,rQ,p.Remove_all_unused_labels)]},fixIds:[rQ],getAllCodeActions:e=>Ga(e,x_e,(t,n)=>H4e(t,n.file,n.start))})}});function G4e(e,t,n,i,s){e.replaceNode(t,n,s.typeToTypeNode(i,n,void 0))}function $4e(e,t,n){const i=Pr(Ui(e,t),cGe),s=i&&i.type;return s&&{typeNode:s,type:lGe(n,s)}}function cGe(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 lGe(e,t){if(WC(t)){const n=e.getTypeFromTypeNode(t.type);return n===e.getNeverType()||n===e.getVoidType()?n:e.getUnionType(_r([n,e.getUndefinedType()],t.postfix?void 0:e.getNullType()))}return e.getTypeFromTypeNode(t)}var k_e,nQ,C_e,uGe=wt({"src/services/codefixes/fixJSDocTypes.ts"(){qn(),ra(),k_e="fixJSDocTypes_plain",nQ="fixJSDocTypes_nullable",C_e=[p.JSDoc_types_can_only_be_used_inside_documentation_comments.code,p._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code,p._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code],ea({errorCodes:C_e,getCodeActions(e){const{sourceFile:t}=e,n=e.program.getTypeChecker(),i=$4e(t,e.span.start,n);if(!i)return;const{typeNode:s,type:o}=i,c=s.getText(t),u=[f(o,k_e,p.Change_all_jsdoc_style_types_to_TypeScript)];return s.kind===321&&u.push(f(o,nQ,p.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),u;function f(g,d,y){const S=Kr.ChangeTracker.with(e,T=>G4e(T,t,s,g,n));return js("jdocTypes",S,[p.Change_0_to_1,c,n.typeToString(g)],d,y)}},fixIds:[k_e,nQ],getAllCodeActions(e){const{fixId:t,program:n,sourceFile:i}=e,s=n.getTypeChecker();return Ga(e,C_e,(o,c)=>{const u=$4e(c.file,c.start,s);if(!u)return;const{typeNode:f,type:g}=u,d=f.kind===321&&t===nQ?s.getNullableType(g,32768):g;G4e(o,i,f,d,s)})}})}});function X4e(e,t,n){e.replaceNodeWithText(t,n,`${n.text}()`)}function Q4e(e,t){const n=Ui(e,t);if(Sn(n.parent)){let i=n.parent;for(;Sn(i.parent);)i=i.parent;return i.name}if(Ie(n))return n}var iQ,E_e,_Ge=wt({"src/services/codefixes/fixMissingCallParentheses.ts"(){qn(),ra(),iQ="fixMissingCallParentheses",E_e=[p.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code],ea({errorCodes:E_e,fixIds:[iQ],getCodeActions(e){const{sourceFile:t,span:n}=e,i=Q4e(t,n.start);if(!i)return;const s=Kr.ChangeTracker.with(e,o=>X4e(o,e.sourceFile,i));return[js(iQ,s,p.Add_missing_call_parentheses,iQ,p.Add_all_missing_call_parentheses)]},getAllCodeActions:e=>Ga(e,E_e,(t,n)=>{const i=Q4e(n.file,n.start);i&&X4e(t,n.file,i)})})}});function fGe(e){if(e.type)return e.type;if(hi(e.parent)&&e.parent.type&&Mm(e.parent.type))return e.parent.type.type}function Y4e(e,t){const n=Ui(e,t),i=cf(n);if(!i)return;let s;switch(i.kind){case 174:s=i.name;break;case 262:case 218:s=qa(i,100,e);break;case 219:const o=i.typeParameters?30:21;s=qa(i,o,e)||va(i.parameters);break;default:return}return s&&{insertBefore:s,returnType:fGe(i)}}function Z4e(e,t,{insertBefore:n,returnType:i}){if(i){const s=b8(i);(!s||s.kind!==80||s.text!=="Promise")&&e.replaceNode(t,i,I.createTypeReferenceNode("Promise",I.createNodeArray([i])))}e.insertModifierBefore(t,134,n)}var sQ,P_e,pGe=wt({"src/services/codefixes/fixAwaitInSyncFunction.ts"(){qn(),ra(),sQ="fixAwaitInSyncFunction",P_e=[p.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,p.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,p.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,p.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code],ea({errorCodes:P_e,getCodeActions(e){const{sourceFile:t,span:n}=e,i=Y4e(t,n.start);if(!i)return;const s=Kr.ChangeTracker.with(e,o=>Z4e(o,t,i));return[js(sQ,s,p.Add_async_modifier_to_containing_function,sQ,p.Add_all_missing_async_modifiers)]},fixIds:[sQ],getAllCodeActions:function(t){const n=new Map;return Ga(t,P_e,(i,s)=>{const o=Y4e(s.file,s.start);!o||!qp(n,Oa(o.insertBefore))||Z4e(i,t.sourceFile,o)})}})}});function K4e(e,t,n,i,s){let o,c;if(i===p._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)o=t,c=t+n;else if(i===p._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){const u=s.program.getTypeChecker(),f=Ui(e,t).parent;E.assert(X0(f),"error span of fixPropertyOverrideAccessor should only be on an accessor");const g=f.parent;E.assert($n(g),"erroneous accessors should only be inside classes");const d=Tm(q_e(g,u));if(!d)return[];const y=xi(Kk(f.name)),S=u.getPropertyOfType(u.getTypeAtLocation(d),y);if(!S||!S.valueDeclaration)return[];o=S.valueDeclaration.pos,c=S.valueDeclaration.end,e=wr(S.valueDeclaration)}else E.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+i);return dEe(e,s.program,o,c,s,p.Generate_get_and_set_accessors.message)}var D_e,aQ,dGe=wt({"src/services/codefixes/fixPropertyOverrideAccessor.ts"(){qn(),ra(),D_e=[p._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,p._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],aQ="fixPropertyOverrideAccessor",ea({errorCodes:D_e,getCodeActions(e){const t=K4e(e.sourceFile,e.span.start,e.span.length,e.errorCode,e);if(t)return[js(aQ,t,p.Generate_get_and_set_accessors,aQ,p.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[aQ],getAllCodeActions:e=>Ga(e,D_e,(t,n)=>{const i=K4e(n.file,n.start,n.length,n.code,e);if(i)for(const s of i)t.pushRaw(e.sourceFile,s)})})}});function mGe(e,t){switch(e){case p.Parameter_0_implicitly_has_an_1_type.code:case p.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return J_(cf(t))?p.Infer_type_of_0_from_usage:p.Infer_parameter_types_from_usage;case p.Rest_parameter_0_implicitly_has_an_any_type.code:case p.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return p.Infer_parameter_types_from_usage;case p.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return p.Infer_this_type_of_0_from_usage;default:return p.Infer_type_of_0_from_usage}}function gGe(e){switch(e){case p.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return p.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case p.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return p.Variable_0_implicitly_has_an_1_type.code;case p.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return p.Parameter_0_implicitly_has_an_1_type.code;case p.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return p.Rest_parameter_0_implicitly_has_an_any_type.code;case p.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return p.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case p._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return p._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case p.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return p.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case p.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return p.Member_0_implicitly_has_an_1_type.code}return e}function eEe(e,t,n,i,s,o,c,u,f){if(!lE(n.kind)&&n.kind!==80&&n.kind!==26&&n.kind!==110)return;const{parent:g}=n,d=Mx(t,s,f,u);switch(i=gGe(i),i){case p.Member_0_implicitly_has_an_1_type.code:case p.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(hi(g)&&c(g)||xs(g)||B_(g))return tEe(e,d,t,g,s,u,o),d.writeFixes(e),g;if(Sn(g)){const T=FN(g.name,s,o),k=oP(T,g,s,u);if(k){const w=I.createJSDocTypeTag(void 0,I.createJSDocTypeExpression(k),void 0);e.addJSDocTags(t,Ls(g.parent.parent,Cl),[w])}return d.writeFixes(e),g}return;case p.Variable_0_implicitly_has_an_1_type.code:{const T=s.getTypeChecker().getSymbolAtLocation(n);return T&&T.valueDeclaration&&hi(T.valueDeclaration)&&c(T.valueDeclaration)?(tEe(e,d,wr(T.valueDeclaration),T.valueDeclaration,s,u,o),d.writeFixes(e),T.valueDeclaration):void 0}}const y=cf(n);if(y===void 0)return;let S;switch(i){case p.Parameter_0_implicitly_has_an_1_type.code:if(J_(y)){rEe(e,d,t,y,s,u,o),S=y;break}case p.Rest_parameter_0_implicitly_has_an_any_type.code:if(c(y)){const T=Ls(g,rs);hGe(e,d,t,T,y,s,u,o),S=T}break;case p.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case p._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:xf(y)&&Ie(y.name)&&(oQ(e,d,t,y,FN(y.name,s,o),s,u),S=y);break;case p.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:J_(y)&&(rEe(e,d,t,y,s,u,o),S=y);break;case p.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:Kr.isThisTypeAnnotatable(y)&&c(y)&&(yGe(e,t,y,s,u,o),S=y);break;default:return E.fail(String(i))}return d.writeFixes(e),S}function tEe(e,t,n,i,s,o,c){Ie(i.name)&&oQ(e,t,n,i,FN(i.name,s,c),s,o)}function hGe(e,t,n,i,s,o,c,u){if(!Ie(i.name))return;const f=SGe(s,n,o,u);if(E.assert(s.parameters.length===f.length,"Parameter count and inference count should match"),Hr(s))nEe(e,n,f,o,c);else{const g=po(s)&&!qa(s,21,n);g&&e.insertNodeBefore(n,va(s.parameters),I.createToken(21));for(const{declaration:d,type:y}of f)d&&!d.type&&!d.initializer&&oQ(e,t,n,d,y,o,c);g&&e.insertNodeAfter(n,ka(s.parameters),I.createToken(22))}}function yGe(e,t,n,i,s,o){const c=iEe(n,t,i,o);if(!c||!c.length)return;const u=A_e(i,c,o).thisParameter(),f=oP(u,n,i,s);f&&(Hr(n)?vGe(e,t,n,f):e.tryInsertThisTypeAnnotation(t,n,f))}function vGe(e,t,n,i){e.addJSDocTags(t,n,[I.createJSDocThisTag(void 0,I.createJSDocTypeExpression(i))])}function rEe(e,t,n,i,s,o,c){const u=bl(i.parameters);if(u&&Ie(i.name)&&Ie(u.name)){let f=FN(i.name,s,c);f===s.getTypeChecker().getAnyType()&&(f=FN(u.name,s,c)),Hr(i)?nEe(e,n,[{declaration:u,type:f}],s,o):oQ(e,t,n,u,f,s,o)}}function oQ(e,t,n,i,s,o,c){const u=oP(s,i,o,c);if(u)if(Hr(n)&&i.kind!==171){const f=hi(i)?Wn(i.parent.parent,ac):i;if(!f)return;const g=I.createJSDocTypeExpression(u),d=xf(i)?I.createJSDocReturnTag(void 0,g,void 0):I.createJSDocTypeTag(void 0,g,void 0);e.addJSDocTags(n,f,[d])}else bGe(u,i,n,e,t,Fa(o.getCompilerOptions()))||e.tryInsertTypeAnnotation(n,i,u)}function bGe(e,t,n,i,s,o){const c=jx(e,o);return c&&i.tryInsertTypeAnnotation(n,t,c.typeNode)?(er(c.symbols,u=>s.addImportFromExportedSymbol(u,!0)),!0):!1}function nEe(e,t,n,i,s){const o=n.length&&n[0].declaration.parent;if(!o)return;const c=Ri(n,u=>{const f=u.declaration;if(f.initializer||S1(f)||!Ie(f.name))return;const g=u.type&&oP(u.type,f,i,s);if(g){const d=I.cloneNode(f.name);return Qr(d,7168),{name:I.cloneNode(f.name),param:f,isOptional:!!u.isOptional,typeNode:g}}});if(c.length)if(po(o)||co(o)){const u=po(o)&&!qa(o,21,t);u&&e.insertNodeBefore(t,va(o.parameters),I.createToken(21)),er(c,({typeNode:f,param:g})=>{const d=I.createJSDocTypeTag(void 0,I.createJSDocTypeExpression(f)),y=I.createJSDocComment(void 0,[d]);e.insertNodeAt(t,g.getStart(t),y,{suffix:" "})}),u&&e.insertNodeAfter(t,ka(o.parameters),I.createToken(22))}else{const u=nr(c,({name:f,typeNode:g,isOptional:d})=>I.createJSDocParameterTag(void 0,f,!!d,I.createJSDocTypeExpression(g),!1,void 0));e.addJSDocTags(t,o,u)}}function w_e(e,t,n){return Ri(lo.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),n),i=>i.kind!==lo.EntryKind.Span?Wn(i.node,Ie):void 0)}function FN(e,t,n){const i=w_e(e,t,n);return A_e(t,i,n).single()}function SGe(e,t,n,i){const s=iEe(e,t,n,i);return s&&A_e(n,s,i).parameters(e)||e.parameters.map(o=>({declaration:o,type:Ie(o.name)?FN(o.name,n,i):n.getTypeChecker().getAnyType()}))}function iEe(e,t,n,i){let s;switch(e.kind){case 176:s=qa(e,137,t);break;case 219:case 218:const o=e.parent;s=(hi(o)||xs(o))&&Ie(o.name)?o.name:e.name;break;case 262:case 174:case 173:s=e.name;break}if(s)return w_e(s,n,i)}function A_e(e,t,n){const i=e.getTypeChecker(),s={string:()=>i.getStringType(),number:()=>i.getNumberType(),Array:be=>i.createArrayType(be),Promise:be=>i.createPromiseType(be)},o=[i.getStringType(),i.getNumberType(),i.createArrayType(i.getAnyType()),i.createPromiseType(i.getAnyType())];return{single:f,parameters:g,thisParameter:d};function c(){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 u(be){const xe=new Map;for(const ft of be)ft.properties&&ft.properties.forEach((ge,Fe)=>{xe.has(Fe)||xe.set(Fe,[]),xe.get(Fe).push(ge)});const De=new Map;return xe.forEach((ft,ge)=>{De.set(ge,u(ft))}),{isNumber:be.some(ft=>ft.isNumber),isString:be.some(ft=>ft.isString),isNumberOrString:be.some(ft=>ft.isNumberOrString),candidateTypes:Zs(be,ft=>ft.candidateTypes),properties:De,calls:Zs(be,ft=>ft.calls),constructs:Zs(be,ft=>ft.constructs),numberIndex:er(be,ft=>ft.numberIndex),stringIndex:er(be,ft=>ft.stringIndex),candidateThisTypes:Zs(be,ft=>ft.candidateThisTypes),inferredTypes:void 0}}function f(){return ue(y(t))}function g(be){if(t.length===0||!be.parameters)return;const xe=c();for(const ft of t)n.throwIfCancellationRequested(),S(ft,xe);const De=[...xe.constructs||[],...xe.calls||[]];return be.parameters.map((ft,ge)=>{const Fe=[],$e=dg(ft);let Pt=!1;for(const Je of De)if(Je.argumentTypes.length<=ge)Pt=Hr(be),Fe.push(i.getUndefinedType());else if($e)for(let pt=ge;ptDe.every(ge=>!ge(ft)))}function Y(be){return ue(H(be))}function ue(be){if(!be.length)return i.getAnyType();const xe=i.getUnionType([i.getStringType(),i.getNumberType()]);let ft=R(be,[{high:Fe=>Fe===i.getStringType()||Fe===i.getNumberType(),low:Fe=>Fe===xe},{high:Fe=>!(Fe.flags&16385),low:Fe=>!!(Fe.flags&16385)},{high:Fe=>!(Fe.flags&114689)&&!(bn(Fe)&16),low:Fe=>!!(bn(Fe)&16)}]);const ge=ft.filter(Fe=>bn(Fe)&16);return ge.length&&(ft=ft.filter(Fe=>!(bn(Fe)&16)),ft.push(pe(ge))),i.getWidenedType(i.getUnionType(ft.map(i.getBaseTypeOfLiteralType),2))}function pe(be){if(be.length===1)return be[0];const xe=[],De=[],ft=[],ge=[];let Fe=!1,$e=!1;const Pt=vf();for(const pt of be){for(const hr of i.getPropertiesOfType(pt))Pt.add(hr.escapedName,hr.valueDeclaration?i.getTypeOfSymbolAtLocation(hr,hr.valueDeclaration):i.getAnyType());xe.push(...i.getSignaturesOfType(pt,0)),De.push(...i.getSignaturesOfType(pt,1));const zt=i.getIndexInfoOfType(pt,0);zt&&(ft.push(zt.type),Fe=Fe||zt.isReadonly);const Vt=i.getIndexInfoOfType(pt,1);Vt&&(ge.push(Vt.type),$e=$e||Vt.isReadonly)}const at=BK(Pt,(pt,zt)=>{const Vt=zt.lengthi.getBaseTypeOfLiteralType(Pt)),$e=(ft=be.calls)!=null&&ft.length?q(be):void 0;return $e&&Fe?ge.push(i.getUnionType([$e,...Fe],2)):($e&&ge.push($e),gr(Fe)&&ge.push(...Fe)),ge.push(...ee(be)),ge}function q(be){const xe=new Map;be.properties&&be.properties.forEach((Fe,$e)=>{const Pt=i.createSymbol(4,$e);Pt.links.type=Y(Fe),xe.set($e,Pt)});const De=be.calls?[ke(be.calls)]:[],ft=be.constructs?[ke(be.constructs)]:[],ge=be.stringIndex?[i.createIndexInfo(i.getStringType(),Y(be.stringIndex),!1)]:[];return i.createAnonymousType(void 0,xe,De,ft,ge)}function ee(be){if(!be.properties||!be.properties.size)return[];const xe=o.filter(De=>oe(De,be));return 0Se(De,be)):[]}function oe(be,xe){return xe.properties?!_l(xe.properties,(De,ft)=>{const ge=i.getTypeOfPropertyOfType(be,ft);return ge?De.calls?!i.getSignaturesOfType(ge,0).length||!i.isTypeAssignableTo(ge,fe(De.calls)):!i.isTypeAssignableTo(ge,Y(De)):!0}):!1}function Se(be,xe){if(!(bn(be)&4)||!xe.properties)return be;const De=be.target,ft=Tm(De.typeParameters);if(!ft)return be;const ge=[];return xe.properties.forEach((Fe,$e)=>{const Pt=i.getTypeOfPropertyOfType(De,$e);E.assert(!!Pt,"generic should have all the properties of its reference."),ge.push(...ae(Pt,Y(Fe),ft))}),s[be.symbol.escapedName](ue(ge))}function ae(be,xe,De){if(be===De)return[xe];if(be.flags&3145728)return Zs(be.types,Fe=>ae(Fe,xe,De));if(bn(be)&4&&bn(xe)&4){const Fe=i.getTypeArguments(be),$e=i.getTypeArguments(xe),Pt=[];if(Fe&&$e)for(let at=0;atge.argumentTypes.length));for(let ge=0;ge$e.argumentTypes[ge]||i.getUndefinedType())),be.some($e=>$e.argumentTypes[ge]===void 0)&&(Fe.flags|=16777216),xe.push(Fe)}const ft=Y(u(be.map(ge=>ge.return_)));return i.createSignature(void 0,void 0,void 0,xe,ft,void 0,De,0)}function Oe(be,xe){xe&&!(xe.flags&1)&&!(xe.flags&131072)&&(be.candidateTypes||(be.candidateTypes=[])).push(xe)}function me(be,xe){xe&&!(xe.flags&1)&&!(xe.flags&131072)&&(be.candidateThisTypes||(be.candidateThisTypes=[])).push(xe)}}var cQ,N_e,TGe=wt({"src/services/codefixes/inferFromUsage.ts"(){qn(),ra(),cQ="inferFromUsage",N_e=[p.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,p.Variable_0_implicitly_has_an_1_type.code,p.Parameter_0_implicitly_has_an_1_type.code,p.Rest_parameter_0_implicitly_has_an_any_type.code,p.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,p._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,p.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,p.Member_0_implicitly_has_an_1_type.code,p.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,p.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,p.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,p.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,p.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,p._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,p.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,p.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,p.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],ea({errorCodes:N_e,getCodeActions(e){const{sourceFile:t,program:n,span:{start:i},errorCode:s,cancellationToken:o,host:c,preferences:u}=e,f=Ui(t,i);let g;const d=Kr.ChangeTracker.with(e,S=>{g=eEe(S,t,f,s,n,o,Wh,c,u)}),y=g&&us(g);return!y||d.length===0?void 0:[js(cQ,d,[mGe(s,f),jc(y)],cQ,p.Infer_all_types_from_usage)]},fixIds:[cQ],getAllCodeActions(e){const{sourceFile:t,program:n,cancellationToken:i,host:s,preferences:o}=e,c=wx();return Ga(e,N_e,(u,f)=>{eEe(u,t,Ui(f.file,f.start),f.code,n,i,c,s,o)})}})}});function sEe(e,t,n){if(Hr(e))return;const i=Ui(e,n),s=Pr(i,fo),o=s==null?void 0:s.type;if(!o)return;const c=t.getTypeFromTypeNode(o),u=t.getAwaitedType(c)||t.getVoidType(),f=t.typeToTypeNode(u,o,void 0);if(f)return{returnTypeNode:o,returnType:c,promisedTypeNode:f,promisedType:u}}function aEe(e,t,n,i){e.replaceNode(t,n,I.createTypeReferenceNode("Promise",[i]))}var lQ,I_e,xGe=wt({"src/services/codefixes/fixReturnTypeInAsyncFunction.ts"(){qn(),ra(),lQ="fixReturnTypeInAsyncFunction",I_e=[p.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:I_e,fixIds:[lQ],getCodeActions:function(t){const{sourceFile:n,program:i,span:s}=t,o=i.getTypeChecker(),c=sEe(n,i.getTypeChecker(),s.start);if(!c)return;const{returnTypeNode:u,returnType:f,promisedTypeNode:g,promisedType:d}=c,y=Kr.ChangeTracker.with(t,S=>aEe(S,n,u,g));return[js(lQ,y,[p.Replace_0_with_Promise_1,o.typeToString(f),o.typeToString(d)],lQ,p.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:e=>Ga(e,I_e,(t,n)=>{const i=sEe(n.file,e.program.getTypeChecker(),n.start);i&&aEe(t,n.file,i.returnTypeNode,i.promisedTypeNode)})})}});function oEe(e,t,n,i){const{line:s}=Ha(t,n);(!i||_1(i,s))&&e.insertCommentBeforeLine(t,s,n," @ts-ignore")}var F_e,O_e,L_e,kGe=wt({"src/services/codefixes/disableJsDiagnostics.ts"(){qn(),ra(),F_e="disableJsDiagnostics",O_e="disableJsDiagnostics",L_e=Ri(Object.keys(p),e=>{const t=p[e];return t.category===1?t.code:void 0}),ea({errorCodes:L_e,getCodeActions:function(t){const{sourceFile:n,program:i,span:s,host:o,formatContext:c}=t;if(!Hr(n)||!sw(n,i.getCompilerOptions()))return;const u=n.checkJsDirective?"":f0(o,c.options),f=[Td(F_e,[lCe(n.fileName,[$A(n.checkJsDirective?Rc(n.checkJsDirective.pos,n.checkJsDirective.end):Wl(0,0),`// @ts-nocheck${u}`)])],p.Disable_checking_for_this_file)];return Kr.isValidLocationToAddComment(n,s.start)&&f.unshift(js(F_e,Kr.ChangeTracker.with(t,g=>oEe(g,n,s.start)),p.Ignore_this_error_message,O_e,p.Add_ts_ignore_to_all_error_messages)),f},fixIds:[O_e],getAllCodeActions:e=>{const t=new Set;return Ga(e,L_e,(n,i)=>{Kr.isValidLocationToAddComment(i.file,i.start)&&oEe(n,i.file,i.start,t)})}})}});function M_e(e,t,n,i,s,o,c){const u=e.symbol.members;for(const f of t)u.has(f.escapedName)||cEe(f,e,n,i,s,o,c,void 0)}function F6(e){return{trackSymbol:()=>!1,moduleResolverHost:mG(e.program,e.host)}}function cEe(e,t,n,i,s,o,c,u,f=3,g=!1){const d=e.getDeclarations(),y=bl(d),S=i.program.getTypeChecker(),T=Fa(i.program.getCompilerOptions()),k=(y==null?void 0:y.kind)??171,w=ee(e,y),P=y?Lu(y):0;let F=P&256;F|=P&1?1:P&4?4:0,y&&s_(y)&&(F|=512);const J=Y(),U=S.getWidenedType(S.getTypeOfSymbolAtLocation(e,t)),$=!!(e.flags&16777216),j=!!(t.flags&33554432)||g,re=wf(n,s);switch(k){case 171:case 172:const oe=re===0?268435456:void 0;let Se=S.typeToTypeNode(U,t,oe,F6(i));if(o){const K=jx(Se,T);K&&(Se=K.typeNode,O6(o,K.symbols))}c(I.createPropertyDeclaration(J,y?pe(w):e.getName(),$&&f&2?I.createToken(58):void 0,Se,void 0));break;case 177:case 178:{E.assertIsDefined(d);let K=S.typeToTypeNode(U,t,void 0,F6(i));const fe=Rb(d,y),ke=fe.secondAccessor?[fe.firstAccessor,fe.secondAccessor]:[fe.firstAccessor];if(o){const Oe=jx(K,T);Oe&&(K=Oe.typeNode,O6(o,Oe.symbols))}for(const Oe of ke)if(xf(Oe))c(I.createGetAccessorDeclaration(J,pe(w),Ve,q(K),H(u,re,j)));else{E.assertNode(Oe,J_,"The counterpart to a getter should be a setter");const me=IE(Oe),be=me&&Ie(me.name)?on(me.name):void 0;c(I.createSetAccessorDeclaration(J,pe(w),j_e(1,[be],[q(K)],1,!1),H(u,re,j)))}break}case 173:case 174:E.assertIsDefined(d);const ae=U.isUnion()?Zs(U.types,K=>K.getCallSignatures()):U.getCallSignatures();if(!ct(ae))break;if(d.length===1){E.assert(ae.length===1,"One declaration implies one signature");const K=ae[0];R(re,K,J,pe(w),H(u,re,j));break}for(const K of ae)R(re,K,J,pe(w));if(!j)if(d.length>ae.length){const K=S.getSignatureFromDeclaration(d[d.length-1]);R(re,K,J,pe(w),H(u,re))}else E.assert(d.length===ae.length,"Declarations and signatures should match count"),c(PGe(S,i,t,ae,pe(w),$&&!!(f&1),J,re,u));break}function R(oe,Se,ae,K,fe){const ke=uQ(174,i,oe,Se,fe,K,ae,$&&!!(f&1),t,o);ke&&c(ke)}function Y(){let oe;return F&&(oe=Dk(oe,I.createModifiersFromModifierFlags(F))),ue()&&(oe=_r(oe,I.createToken(164))),oe&&I.createNodeArray(oe)}function ue(){return!!(i.program.getCompilerOptions().noImplicitOverride&&y&&Zv(y))}function pe(oe){return Ie(oe)&&oe.escapedText==="constructor"?I.createComputedPropertyName(I.createStringLiteral(on(oe),re===0)):Lo(oe,!1)}function H(oe,Se,ae){return ae?void 0:Lo(oe,!1)||B_e(Se)}function q(oe){return Lo(oe,!1)}function ee(oe,Se){if(Ko(oe)&262144){const ae=oe.links.nameType;if(ae&&Sp(ae))return I.createIdentifier(xi(Tp(ae)))}return Lo(us(Se),!1)}}function uQ(e,t,n,i,s,o,c,u,f,g){const d=t.program,y=d.getTypeChecker(),S=Fa(d.getCompilerOptions()),T=Hr(f),k=524545|(n===0?268435456:0),w=y.signatureToSignatureDeclaration(i,e,f,k,F6(t));if(!w)return;let P=T?void 0:w.typeParameters,F=w.parameters,J=T?void 0:w.type;if(g){if(P){const re=rl(P,R=>{let Y=R.constraint,ue=R.default;if(Y){const pe=jx(Y,S);pe&&(Y=pe.typeNode,O6(g,pe.symbols))}if(ue){const pe=jx(ue,S);pe&&(ue=pe.typeNode,O6(g,pe.symbols))}return I.updateTypeParameterDeclaration(R,R.modifiers,R.name,Y,ue)});P!==re&&(P=Ke(I.createNodeArray(re,P.hasTrailingComma),P))}const j=rl(F,re=>{let R=T?void 0:re.type;if(R){const Y=jx(R,S);Y&&(R=Y.typeNode,O6(g,Y.symbols))}return I.updateParameterDeclaration(re,re.modifiers,re.dotDotDotToken,re.name,T?void 0:re.questionToken,R,re.initializer)});if(F!==j&&(F=Ke(I.createNodeArray(j,F.hasTrailingComma),F)),J){const re=jx(J,S);re&&(J=re.typeNode,O6(g,re.symbols))}}const U=u?I.createToken(58):void 0,$=w.asteriskToken;if(co(w))return I.updateFunctionExpression(w,c,w.asteriskToken,Wn(o,Ie),P,F,J,s??w.body);if(po(w))return I.updateArrowFunction(w,c,P,F,J,w.equalsGreaterThanToken,s??w.body);if(hc(w))return I.updateMethodDeclaration(w,c,$,o??I.createIdentifier(""),U,P,F,J,s);if($c(w))return I.updateFunctionDeclaration(w,c,w.asteriskToken,Wn(o,Ie),P,F,J,s??w.body)}function R_e(e,t,n,i,s,o,c){const u=wf(t.sourceFile,t.preferences),f=Fa(t.program.getCompilerOptions()),g=F6(t),d=t.program.getTypeChecker(),y=Hr(c),{typeArguments:S,arguments:T,parent:k}=i,w=y?void 0:d.getContextualType(i),P=nr(T,ue=>Ie(ue)?ue.text:Sn(ue)&&Ie(ue.name)?ue.name.text:void 0),F=y?[]:nr(T,ue=>d.getTypeAtLocation(ue)),{argumentTypeNodes:J,argumentTypeParameters:U}=_Ee(d,n,F,c,f,1,g),$=o?I.createNodeArray(I.createModifiersFromModifierFlags(o)):void 0,j=CO(k)?I.createToken(42):void 0,re=y?void 0:CGe(d,U,S),R=j_e(T.length,P,J,void 0,y),Y=y||w===void 0?void 0:d.typeToTypeNode(w,c,void 0,g);switch(e){case 174:return I.createMethodDeclaration($,j,s,void 0,re,R,Y,B_e(u));case 173:return I.createMethodSignature($,s,void 0,re,R,Y===void 0?I.createKeywordTypeNode(159):Y);case 262:return E.assert(typeof s=="string"||Ie(s),"Unexpected name"),I.createFunctionDeclaration($,j,s,re,R,Y,GM(p.Function_not_implemented.message,u));default:E.fail("Unexpected kind")}}function CGe(e,t,n){const i=new Set(t.map(o=>o[0])),s=new Map(t);if(n){const o=n.filter(u=>!t.some(f=>{var g;return e.getTypeAtLocation(u)===((g=f[1])==null?void 0:g.argumentType)})),c=i.size+o.length;for(let u=0;i.size{var c;return I.createTypeParameterDeclaration(void 0,o,(c=s.get(o))==null?void 0:c.constraint)})}function lEe(e){return 84+e<=90?String.fromCharCode(84+e):`T${e}`}function _Q(e,t,n,i,s,o,c){let u=e.typeToTypeNode(n,i,o,c);if(u&&Cg(u)){const f=jx(u,s);f&&(O6(t,f.symbols),u=f.typeNode)}return Lo(u)}function uEe(e){return e.isUnionOrIntersection()?e.types.some(uEe):e.flags&262144}function _Ee(e,t,n,i,s,o,c){const u=[],f=new Map;for(let g=0;g=i?I.createToken(58):void 0,s?void 0:(n==null?void 0:n[u])||I.createKeywordTypeNode(159),void 0);o.push(d)}return o}function PGe(e,t,n,i,s,o,c,u,f){let g=i[0],d=i[0].minArgumentCount,y=!1;for(const w of i)d=Math.min(w.minArgumentCount,d),Su(w)&&(y=!0),w.parameters.length>=g.parameters.length&&(!Su(w)||Su(g))&&(g=w);const S=g.parameters.length-(Su(g)?1:0),T=g.parameters.map(w=>w.name),k=j_e(S,T,void 0,d,!1);if(y){const w=I.createParameterDeclaration(void 0,I.createToken(26),T[S]||"rest",S>=d?I.createToken(58):void 0,I.createArrayTypeNode(I.createKeywordTypeNode(159)),void 0);k.push(w)}return wGe(c,s,o,void 0,k,DGe(i,e,t,n),u,f)}function DGe(e,t,n,i){if(gr(e)){const s=t.getUnionType(nr(e,t.getReturnTypeOfSignature));return t.typeToTypeNode(s,i,1,F6(n))}}function wGe(e,t,n,i,s,o,c,u){return I.createMethodDeclaration(e,void 0,t,n?I.createToken(58):void 0,i,s,o,u||B_e(c))}function B_e(e){return GM(p.Method_not_implemented.message,e)}function GM(e,t){return I.createBlock([I.createThrowStatement(I.createNewExpression(I.createIdentifier("Error"),void 0,[I.createStringLiteral(e,t===0)]))],!0)}function J_e(e,t,n){const i=yE(t);if(!i)return;const s=W_e(i,"compilerOptions");if(s===void 0){e.insertNodeAtObjectStart(t,i,fQ("compilerOptions",I.createObjectLiteralExpression(n.map(([c,u])=>fQ(c,u)),!0)));return}const o=s.initializer;if(ua(o))for(const[c,u]of n){const f=W_e(o,c);f===void 0?e.insertNodeAtObjectStart(t,o,fQ(c,u)):e.replaceNode(t,f.initializer,u)}}function z_e(e,t,n,i){J_e(e,t,[[n,i]])}function fQ(e,t){return I.createPropertyAssignment(I.createStringLiteral(e),t)}function W_e(e,t){return wn(e.properties,n=>zc(n)&&!!n.name&&aa(n.name)&&n.name.text===t)}function jx(e,t){let n;const i=qe(e,s,ki);if(n&&i)return{typeNode:i,symbols:n};function s(o){if(ty(o)&&o.qualifier){const c=lf(o.qualifier),u=KL(c.symbol,t),f=u!==c.text?pEe(o.qualifier,I.createIdentifier(u)):o.qualifier;n=_r(n,c.symbol);const g=Dr(o.typeArguments,s,ki);return I.createTypeReferenceNode(f,g)}return ur(o,s,void 0)}}function pEe(e,t){return e.kind===80?t:I.createQualifiedName(pEe(e.left,t),e.right)}function O6(e,t){t.forEach(n=>e.addImportFromExportedSymbol(n,!0))}function V_e(e,t){const n=bc(t);let i=Ui(e,t.start);for(;i.end(e[e.Method=1]="Method",e[e.Property=2]="Property",e[e.All=3]="All",e))(U_e||{})}});function dEe(e,t,n,i,s,o){const c=hEe(e,t,n,i);if(!c||Fx.isRefactorErrorInfo(c))return;const u=Kr.ChangeTracker.fromContext(s),{isStatic:f,isReadonly:g,fieldName:d,accessorName:y,originalName:S,type:T,container:k,declaration:w}=c;U_(d),U_(y),U_(w),U_(k);let P,F;if($n(k)){const U=Lu(w);if(Ou(e)){const $=I.createModifiersFromModifierFlags(U);P=$,F=$}else P=I.createModifiersFromModifierFlags(FGe(U)),F=I.createModifiersFromModifierFlags(OGe(U));eS(w)&&(F=es(H0(w),F))}BGe(u,e,w,T,d,F);const J=LGe(d,y,T,P,f,k);if(U_(J),yEe(u,e,J,w,k),g){const U=Sg(k);U&&JGe(u,e,U,d.text,S)}else{const U=MGe(d,y,T,P,f,k);U_(U),yEe(u,e,U,w,k)}return u.getChanges()}function NGe(e){return Ie(e)||aa(e)}function IGe(e){return O_(e,e.parent)||xs(e)||zc(e)}function mEe(e,t){return Ie(t)?I.createIdentifier(e):I.createStringLiteral(e)}function gEe(e,t,n){const i=t?n.name:I.createThis();return Ie(e)?I.createPropertyAccessExpression(i,e):I.createElementAccessExpression(i,I.createStringLiteralFromNode(e))}function FGe(e){return e&=-9,e&=-3,e&4||(e|=1),e}function OGe(e){return e&=-2,e&=-5,e|=2,e}function hEe(e,t,n,i,s=!0){const o=Ui(e,n),c=n===i&&s,u=Pr(o.parent,IGe),f=271;if(!u||!(TL(u.name,e,n,i)||c))return{error:ds(p.Could_not_find_property_for_which_to_generate_accessor)};if(!NGe(u.name))return{error:ds(p.Name_is_not_valid)};if((Lu(u)&98303|f)!==f)return{error:ds(p.Can_only_convert_property_with_modifier)};const g=u.name.text,d=JG(g),y=mEe(d?g:_S(`_${g}`,e),u.name),S=mEe(d?_S(g.substring(1),e):g,u.name);return{isStatic:Bc(u),isReadonly:FE(u),type:zGe(u,t),container:u.kind===169?u.parent.parent:u.parent,originalName:u.name.text,declaration:u,fieldName:y,accessorName:S,renameAccessor:d}}function LGe(e,t,n,i,s,o){return I.createGetAccessorDeclaration(i,t,[],n,I.createBlock([I.createReturnStatement(gEe(e,s,o))],!0))}function MGe(e,t,n,i,s,o){return I.createSetAccessorDeclaration(i,t,[I.createParameterDeclaration(void 0,void 0,I.createIdentifier("value"),void 0,n)],I.createBlock([I.createExpressionStatement(I.createAssignment(gEe(e,s,o),I.createIdentifier("value")))],!0))}function RGe(e,t,n,i,s,o){const c=I.updatePropertyDeclaration(n,o,s,n.questionToken||n.exclamationToken,i,n.initializer);e.replaceNode(t,n,c)}function jGe(e,t,n,i){let s=I.updatePropertyAssignment(n,i,n.initializer);(s.modifiers||s.questionToken||s.exclamationToken)&&(s===n&&(s=I.cloneNode(s)),s.modifiers=void 0,s.questionToken=void 0,s.exclamationToken=void 0),e.replacePropertyAssignment(t,n,s)}function BGe(e,t,n,i,s,o){xs(n)?RGe(e,t,n,i,s,o):zc(n)?jGe(e,t,n,s):e.replaceNode(t,n,I.updateParameterDeclaration(n,o,n.dotDotDotToken,Ls(s,Ie),n.questionToken,n.type,n.initializer))}function yEe(e,t,n,i,s){O_(i,i.parent)?e.insertMemberAtStart(t,s,n):zc(i)?e.insertNodeAfterComma(t,i,n):e.insertNodeAfter(t,i,n)}function JGe(e,t,n,i,s){n.body&&n.body.forEachChild(function o(c){ko(c)&&c.expression.kind===110&&aa(c.argumentExpression)&&c.argumentExpression.text===s&&VT(c)&&e.replaceNode(t,c.argumentExpression,I.createStringLiteral(i)),Sn(c)&&c.expression.kind===110&&c.name.text===s&&VT(c)&&e.replaceNode(t,c.name,I.createIdentifier(i)),!As(c)&&!$n(c)&&c.forEachChild(o)})}function zGe(e,t){const n=bre(e);if(xs(e)&&n&&e.questionToken){const i=t.getTypeChecker(),s=i.getTypeFromTypeNode(n);if(!i.isTypeAssignableTo(i.getUndefinedType(),s)){const o=_y(n)?n.types:[n];return I.createUnionTypeNode([...o,I.createKeywordTypeNode(157)])}}return n}function q_e(e,t){const n=[];for(;e;){const i=Gv(e),s=i&&t.getSymbolAtLocation(i.expression);if(!s)break;const o=s.flags&2097152?t.getAliasedSymbol(s):s,c=o.declarations&&wn(o.declarations,$n);if(!c)break;n.push(c),e=c}return n}var WGe=wt({"src/services/codefixes/generateAccessors.ts"(){qn()}});function VGe(e,t){const n=wr(t),i=_C(t),s=e.program.getCompilerOptions(),o=[];return o.push(vEe(e,n,t,_0(i.name,void 0,t.moduleSpecifier,wf(n,e.preferences)))),au(s)===1&&o.push(vEe(e,n,t,I.createImportEqualsDeclaration(void 0,!1,i.name,I.createExternalModuleReference(t.moduleSpecifier)))),o}function vEe(e,t,n,i){const s=Kr.ChangeTracker.with(e,o=>o.replaceNode(t,n,i));return Td(H_e,s,[p.Replace_import_with_0,s[0].textChanges[0].newText])}function UGe(e){const t=e.sourceFile,n=p.This_expression_is_not_callable.code===e.errorCode?213:214,i=Pr(Ui(t,e.span.start),o=>o.kind===n);if(!i)return[];const s=i.expression;return bEe(e,s)}function qGe(e){const t=e.sourceFile,n=Pr(Ui(t,e.span.start),i=>i.getStart()===e.span.start&&i.getEnd()===e.span.start+e.span.length);return n?bEe(e,n):[]}function bEe(e,t){const n=e.program.getTypeChecker().getTypeAtLocation(t);if(!(n.symbol&&wm(n.symbol)&&n.symbol.links.originatingImport))return[];const i=[],s=n.symbol.links.originatingImport;if(of(s)||Nn(i,VGe(e,s)),ot(t)&&!(Nu(t.parent)&&t.parent.name===t)){const o=e.sourceFile,c=Kr.ChangeTracker.with(e,u=>u.replaceNode(o,t,I.createPropertyAccessExpression(t,"default"),{}));i.push(Td(H_e,c,p.Use_synthetic_default_member))}return i}var H_e,HGe=wt({"src/services/codefixes/fixInvalidImportSyntax.ts"(){qn(),ra(),H_e="invalidImportSyntax",ea({errorCodes:[p.This_expression_is_not_callable.code,p.This_expression_is_not_constructable.code],getCodeActions:UGe}),ea({errorCodes:[p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,p.Type_0_does_not_satisfy_the_constraint_1.code,p.Type_0_is_not_assignable_to_type_1.code,p.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,p.Type_predicate_0_is_not_assignable_to_1.code,p.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,p._0_index_type_1_is_not_assignable_to_2_index_type_3.code,p.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,p.Property_0_in_type_1_is_not_assignable_to_type_2.code,p.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,p.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:qGe})}});function SEe(e,t){const n=Ui(e,t);if(Ie(n)&&xs(n.parent)){const i=Vl(n.parent);if(i)return{type:i,prop:n.parent,isJs:Hr(n.parent)}}}function GGe(e,t){if(t.isJs)return;const n=Kr.ChangeTracker.with(e,i=>TEe(i,e.sourceFile,t.prop));return js(pQ,n,[p.Add_definite_assignment_assertion_to_property_0,t.prop.getText()],dQ,p.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function TEe(e,t,n){U_(n);const i=I.updatePropertyDeclaration(n,n.modifiers,n.name,I.createToken(54),n.type,n.initializer);e.replaceNode(t,n,i)}function $Ge(e,t){const n=Kr.ChangeTracker.with(e,i=>xEe(i,e.sourceFile,t));return js(pQ,n,[p.Add_undefined_type_to_property_0,t.prop.name.getText()],mQ,p.Add_undefined_type_to_all_uninitialized_properties)}function xEe(e,t,n){const i=I.createKeywordTypeNode(157),s=_y(n.type)?n.type.types.concat(i):[n.type,i],o=I.createUnionTypeNode(s);n.isJs?e.addJSDocTags(t,n.prop,[I.createJSDocTypeTag(void 0,I.createJSDocTypeExpression(o))]):e.replaceNode(t,n.type,o)}function XGe(e,t){if(t.isJs)return;const n=e.program.getTypeChecker(),i=CEe(n,t.prop);if(!i)return;const s=Kr.ChangeTracker.with(e,o=>kEe(o,e.sourceFile,t.prop,i));return js(pQ,s,[p.Add_initializer_to_property_0,t.prop.name.getText()],gQ,p.Add_initializers_to_all_uninitialized_properties)}function kEe(e,t,n,i){U_(n);const s=I.updatePropertyDeclaration(n,n.modifiers,n.name,n.questionToken,n.type,i);e.replaceNode(t,n,s)}function CEe(e,t){return EEe(e,e.getTypeFromTypeNode(t.type))}function EEe(e,t){if(t.flags&512)return t===e.getFalseType()||t===e.getFalseType(!0)?I.createFalse():I.createTrue();if(t.isStringLiteral())return I.createStringLiteral(t.value);if(t.isNumberLiteral())return I.createNumericLiteral(t.value);if(t.flags&2048)return I.createBigIntLiteral(t.value);if(t.isUnion())return $o(t.types,n=>EEe(e,n));if(t.isClass()){const n=rh(t.symbol);if(!n||Rn(n,64))return;const i=Sg(n);return i&&i.parameters.length?void 0:I.createNewExpression(I.createIdentifier(t.symbol.name),void 0,void 0)}else if(e.isArrayLikeType(t))return I.createArrayLiteralExpression()}var pQ,dQ,mQ,gQ,G_e,QGe=wt({"src/services/codefixes/fixStrictClassInitialization.ts"(){qn(),ra(),pQ="strictClassInitialization",dQ="addMissingPropertyDefiniteAssignmentAssertions",mQ="addMissingPropertyUndefinedType",gQ="addMissingPropertyInitializer",G_e=[p.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code],ea({errorCodes:G_e,getCodeActions:function(t){const n=SEe(t.sourceFile,t.span.start);if(!n)return;const i=[];return _r(i,$Ge(t,n)),_r(i,GGe(t,n)),_r(i,XGe(t,n)),i},fixIds:[dQ,mQ,gQ],getAllCodeActions:e=>Ga(e,G_e,(t,n)=>{const i=SEe(n.file,n.start);if(i)switch(e.fixId){case dQ:TEe(t,n.file,i.prop);break;case mQ:xEe(t,n.file,i);break;case gQ:const s=e.program.getTypeChecker(),o=CEe(s,i.prop);if(!o)return;kEe(t,n.file,i.prop,o);break;default:E.fail(JSON.stringify(e.fixId))}})})}});function PEe(e,t,n){const{allowSyntheticDefaults:i,defaultImportName:s,namedImports:o,statement:c,required:u}=n;e.replaceNode(t,c,s&&!i?I.createImportEqualsDeclaration(void 0,!1,s,I.createExternalModuleReference(u)):I.createImportDeclaration(void 0,I.createImportClause(!1,s,o),u,void 0))}function DEe(e,t,n){const{parent:i}=Ui(e,n);Gu(i,!0)||E.failBadSyntaxKind(i);const s=Ls(i.parent,hi),o=Wn(s.name,Ie),c=kp(s.name)?YGe(s.name):void 0;if(o||c)return{allowSyntheticDefaults:Jb(t.getCompilerOptions()),defaultImportName:o,namedImports:c,statement:Ls(s.parent.parent,ac),required:va(i.arguments)}}function YGe(e){const t=[];for(const n of e.elements){if(!Ie(n.name)||n.initializer)return;t.push(I.createImportSpecifier(!1,Wn(n.propertyName,Ie),n.name))}if(t.length)return I.createNamedImports(t)}var hQ,$_e,ZGe=wt({"src/services/codefixes/requireInTs.ts"(){qn(),ra(),hQ="requireInTs",$_e=[p.require_call_may_be_converted_to_an_import.code],ea({errorCodes:$_e,getCodeActions(e){const t=DEe(e.sourceFile,e.program,e.span.start);if(!t)return;const n=Kr.ChangeTracker.with(e,i=>PEe(i,e.sourceFile,t));return[js(hQ,n,p.Convert_require_to_import,hQ,p.Convert_all_require_to_import)]},fixIds:[hQ],getAllCodeActions:e=>Ga(e,$_e,(t,n)=>{const i=DEe(n.file,e.program,n.start);i&&PEe(t,e.sourceFile,i)})})}});function wEe(e,t){const n=Ui(e,t);if(!Ie(n))return;const{parent:i}=n;if(El(i)&&Bm(i.moduleReference))return{importNode:i,name:n,moduleSpecifier:i.moduleReference.expression};if(my(i)){const s=i.parent.parent;return{importNode:s,name:n,moduleSpecifier:s.moduleSpecifier}}}function AEe(e,t,n,i){e.replaceNode(t,n.importNode,_0(n.name,void 0,n.moduleSpecifier,wf(t,i)))}var yQ,X_e,KGe=wt({"src/services/codefixes/useDefaultImport.ts"(){qn(),ra(),yQ="useDefaultImport",X_e=[p.Import_may_be_converted_to_a_default_import.code],ea({errorCodes:X_e,getCodeActions(e){const{sourceFile:t,span:{start:n}}=e,i=wEe(t,n);if(!i)return;const s=Kr.ChangeTracker.with(e,o=>AEe(o,t,i,e.preferences));return[js(yQ,s,p.Convert_to_default_import,yQ,p.Convert_all_to_default_imports)]},fixIds:[yQ],getAllCodeActions:e=>Ga(e,X_e,(t,n)=>{const i=wEe(n.file,n.start);i&&AEe(t,n.file,i,e.preferences)})})}});function NEe(e,t,n){const i=Wn(Ui(t,n.start),j_);if(!i)return;const s=i.getText(t)+"n";e.replaceNode(t,i,I.createBigIntLiteral(s))}var vQ,Q_e,e$e=wt({"src/services/codefixes/useBigintLiteral.ts"(){qn(),ra(),vQ="useBigintLiteral",Q_e=[p.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code],ea({errorCodes:Q_e,getCodeActions:function(t){const n=Kr.ChangeTracker.with(t,i=>NEe(i,t.sourceFile,t.span));if(n.length>0)return[js(vQ,n,p.Convert_to_a_bigint_numeric_literal,vQ,p.Convert_all_to_bigint_numeric_literals)]},fixIds:[vQ],getAllCodeActions:e=>Ga(e,Q_e,(t,n)=>NEe(t,n.file,n))})}});function IEe(e,t){const n=Ui(e,t);return E.assert(n.kind===102,"This token should be an ImportKeyword"),E.assert(n.parent.kind===205,"Token parent should be an ImportType"),n.parent}function FEe(e,t,n){const i=I.updateImportTypeNode(n,n.argument,n.attributes,n.qualifier,n.typeArguments,!0);e.replaceNode(t,n,i)}var OEe,bQ,Y_e,t$e=wt({"src/services/codefixes/fixAddModuleReferTypeMissingTypeof.ts"(){qn(),ra(),OEe="fixAddModuleReferTypeMissingTypeof",bQ=OEe,Y_e=[p.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code],ea({errorCodes:Y_e,getCodeActions:function(t){const{sourceFile:n,span:i}=t,s=IEe(n,i.start),o=Kr.ChangeTracker.with(t,c=>FEe(c,n,s));return[js(bQ,o,p.Add_missing_typeof,bQ,p.Add_missing_typeof)]},fixIds:[bQ],getAllCodeActions:e=>Ga(e,Y_e,(t,n)=>FEe(t,e.sourceFile,IEe(n.file,n.start)))})}});function LEe(e,t){let s=Ui(e,t).parent.parent;if(!(!Zr(s)&&(s=s.parent,!Zr(s)))&&_c(s.operatorToken))return s}function MEe(e,t,n){const i=r$e(n);i&&e.replaceNode(t,n,I.createJsxFragment(I.createJsxOpeningFragment(),i,I.createJsxJsxClosingFragment()))}function r$e(e){const t=[];let n=e;for(;;)if(Zr(n)&&_c(n.operatorToken)&&n.operatorToken.kind===28){if(t.push(n.left),s8(n.right))return t.push(n.right),t;if(Zr(n.right)){n=n.right;continue}else return}else return}var SQ,Z_e,n$e=wt({"src/services/codefixes/wrapJsxInFragment.ts"(){qn(),ra(),SQ="wrapJsxInFragment",Z_e=[p.JSX_expressions_must_have_one_parent_element.code],ea({errorCodes:Z_e,getCodeActions:function(t){const{sourceFile:n,span:i}=t,s=LEe(n,i.start);if(!s)return;const o=Kr.ChangeTracker.with(t,c=>MEe(c,n,s));return[js(SQ,o,p.Wrap_in_JSX_fragment,SQ,p.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[SQ],getAllCodeActions:e=>Ga(e,Z_e,(t,n)=>{const i=LEe(e.sourceFile,n.start);i&&MEe(t,e.sourceFile,i)})})}});function REe(e,t){const n=Ui(e,t),i=Wn(n.parent.parent,i2);if(!i)return;const s=Bu(i.parent)?i.parent:Wn(i.parent.parent,Gp);if(s)return{indexSignature:i,container:s}}function i$e(e,t){return I.createTypeAliasDeclaration(e.modifiers,e.name,e.typeParameters,t)}function jEe(e,t,{indexSignature:n,container:i}){const o=(Bu(i)?i.members:i.type.members).filter(d=>!i2(d)),c=va(n.parameters),u=I.createTypeParameterDeclaration(void 0,Ls(c.name,Ie),c.type),f=I.createMappedTypeNode(FE(n)?I.createModifier(148):void 0,u,void 0,n.questionToken,n.type,void 0),g=I.createIntersectionTypeNode([...kE(i),f,...o.length?[I.createTypeLiteralNode(o)]:Ve]);e.replaceNode(t,i,i$e(i,g))}var TQ,K_e,s$e=wt({"src/services/codefixes/convertToMappedObjectType.ts"(){qn(),ra(),TQ="fixConvertToMappedObjectType",K_e=[p.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code],ea({errorCodes:K_e,getCodeActions:function(t){const{sourceFile:n,span:i}=t,s=REe(n,i.start);if(!s)return;const o=Kr.ChangeTracker.with(t,u=>jEe(u,n,s)),c=on(s.container.name);return[js(TQ,o,[p.Convert_0_to_mapped_object_type,c],TQ,[p.Convert_0_to_mapped_object_type,c])]},fixIds:[TQ],getAllCodeActions:e=>Ga(e,K_e,(t,n)=>{const i=REe(n.file,n.start);i&&jEe(t,n.file,i)})})}}),efe,BEe,a$e=wt({"src/services/codefixes/removeAccidentalCallParentheses.ts"(){qn(),ra(),efe="removeAccidentalCallParentheses",BEe=[p.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],ea({errorCodes:BEe,getCodeActions(e){const t=Pr(Ui(e.sourceFile,e.span.start),Rs);if(!t)return;const n=Kr.ChangeTracker.with(e,i=>{i.deleteRange(e.sourceFile,{pos:t.expression.end,end:t.end})});return[Td(efe,n,p.Remove_parentheses)]},fixIds:[efe]})}});function JEe(e,t,n){const i=Wn(Ui(t,n.start),u=>u.kind===135),s=i&&Wn(i.parent,py);if(!s)return;let o=s;if(l_(s.parent)){const u=EC(s.expression,!1);if(Ie(u)){const f=Qc(s.parent.pos,t);f&&f.kind!==105&&(o=s.parent)}}e.replaceNode(t,o,s.expression)}var xQ,tfe,o$e=wt({"src/services/codefixes/removeUnnecessaryAwait.ts"(){qn(),ra(),xQ="removeUnnecessaryAwait",tfe=[p.await_has_no_effect_on_the_type_of_this_expression.code],ea({errorCodes:tfe,getCodeActions:function(t){const n=Kr.ChangeTracker.with(t,i=>JEe(i,t.sourceFile,t.span));if(n.length>0)return[js(xQ,n,p.Remove_unnecessary_await,xQ,p.Remove_all_unnecessary_uses_of_await)]},fixIds:[xQ],getAllCodeActions:e=>Ga(e,tfe,(t,n)=>JEe(t,n.file,n))})}});function zEe(e,t){return Pr(Ui(e,t.start),il)}function WEe(e,t,n){if(!t)return;const i=E.checkDefined(t.importClause);e.replaceNode(n.sourceFile,t,I.updateImportDeclaration(t,t.modifiers,I.updateImportClause(i,i.isTypeOnly,i.name,void 0),t.moduleSpecifier,t.attributes)),e.insertNodeAfter(n.sourceFile,t,I.createImportDeclaration(void 0,I.updateImportClause(i,i.isTypeOnly,void 0,i.namedBindings),t.moduleSpecifier,t.attributes))}var rfe,kQ,c$e=wt({"src/services/codefixes/splitTypeOnlyImport.ts"(){qn(),ra(),rfe=[p.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],kQ="splitTypeOnlyImport",ea({errorCodes:rfe,fixIds:[kQ],getCodeActions:function(t){const n=Kr.ChangeTracker.with(t,i=>WEe(i,zEe(t.sourceFile,t.span),t));if(n.length)return[js(kQ,n,p.Split_into_two_separate_import_declarations,kQ,p.Split_all_invalid_type_only_imports)]},getAllCodeActions:e=>Ga(e,rfe,(t,n)=>{WEe(t,zEe(e.sourceFile,n),e)})})}});function VEe(e,t,n){var i;const o=n.getTypeChecker().getSymbolAtLocation(Ui(e,t));if(o===void 0)return;const c=Wn((i=o==null?void 0:o.valueDeclaration)==null?void 0:i.parent,dl);if(c===void 0)return;const u=qa(c,87,e);if(u!==void 0)return{symbol:o,token:u}}function UEe(e,t,n){e.replaceNode(t,n,I.createToken(121))}var CQ,nfe,l$e=wt({"src/services/codefixes/convertConstToLet.ts"(){qn(),ra(),CQ="fixConvertConstToLet",nfe=[p.Cannot_assign_to_0_because_it_is_a_constant.code],ea({errorCodes:nfe,getCodeActions:function(t){const{sourceFile:n,span:i,program:s}=t,o=VEe(n,i.start,s);if(o===void 0)return;const c=Kr.ChangeTracker.with(t,u=>UEe(u,n,o.token));return[rue(CQ,c,p.Convert_const_to_let,CQ,p.Convert_all_const_to_let)]},getAllCodeActions:e=>{const{program:t}=e,n=new Map;return A6(Kr.ChangeTracker.with(e,i=>{N6(e,nfe,s=>{const o=VEe(s.file,s.start,t);if(o&&qp(n,Ks(o.symbol)))return UEe(i,s.file,o.token)})}))},fixIds:[CQ]})}});function qEe(e,t,n){const i=Ui(e,t);return i.kind===27&&i.parent&&(ua(i.parent)||ju(i.parent))?{node:i}:void 0}function HEe(e,t,{node:n}){const i=I.createToken(28);e.replaceNode(t,n,i)}var EQ,GEe,ife,u$e=wt({"src/services/codefixes/fixExpectedComma.ts"(){qn(),ra(),EQ="fixExpectedComma",GEe=p._0_expected.code,ife=[GEe],ea({errorCodes:ife,getCodeActions(e){const{sourceFile:t}=e,n=qEe(t,e.span.start,e.errorCode);if(!n)return;const i=Kr.ChangeTracker.with(e,s=>HEe(s,t,n));return[js(EQ,i,[p.Change_0_to_1,";",","],EQ,[p.Change_0_to_1,";",","])]},fixIds:[EQ],getAllCodeActions:e=>Ga(e,ife,(t,n)=>{const i=qEe(n.file,n.start,n.code);i&&HEe(t,e.sourceFile,i)})})}});function $Ee(e,t,n,i,s){const o=Ui(t,n.start);if(!Ie(o)||!Rs(o.parent)||o.parent.expression!==o||o.parent.arguments.length!==0)return;const c=i.getTypeChecker(),u=c.getSymbolAtLocation(o),f=u==null?void 0:u.valueDeclaration;if(!f||!rs(f)||!a2(f.parent.parent)||s!=null&&s.has(f))return;s==null||s.add(f);const g=_$e(f.parent.parent);if(ct(g)){const d=g[0],y=!_y(d)&&!Vb(d)&&Vb(I.createUnionTypeNode([d,I.createKeywordTypeNode(116)]).types[0]);y&&e.insertText(t,d.pos,"("),e.insertText(t,d.end,y?") | void":" | void")}else{const d=c.getResolvedSignature(o.parent),y=d==null?void 0:d.parameters[0],S=y&&c.getTypeOfSymbolAtLocation(y,f.parent.parent);Hr(f)?(!S||S.flags&3)&&(e.insertText(t,f.parent.parent.end,")"),e.insertText(t,ca(t.text,f.parent.parent.pos),"/** @type {Promise} */(")):(!S||S.flags&2)&&e.insertText(t,f.parent.parent.expression.end,"")}}function _$e(e){var t;if(Hr(e)){if(l_(e.parent)){const n=(t=b1(e.parent))==null?void 0:t.typeExpression.type;if(n&&$f(n)&&Ie(n.typeName)&&on(n.typeName)==="Promise")return n.typeArguments}}else return e.typeArguments}var XEe,sfe,afe,f$e=wt({"src/services/codefixes/fixAddVoidToPromise.ts"(){qn(),ra(),XEe="addVoidToPromise",sfe="addVoidToPromise",afe=[p.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,p.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code],ea({errorCodes:afe,fixIds:[sfe],getCodeActions(e){const t=Kr.ChangeTracker.with(e,n=>$Ee(n,e.sourceFile,e.span,e.program));if(t.length>0)return[js(XEe,t,p.Add_void_to_Promise_resolved_without_a_value,sfe,p.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions(e){return Ga(e,afe,(t,n)=>$Ee(t,n.file,n,e.program,new Set))}})}}),lu={};vl(lu,{PreserveOptionalFlags:()=>U_e,addNewNodeForMemberSymbol:()=>cEe,codeFixAll:()=>Ga,createCodeFixAction:()=>js,createCodeFixActionMaybeFixAll:()=>rue,createCodeFixActionWithoutFixAll:()=>Td,createCombinedCodeActions:()=>A6,createFileTextChanges:()=>lCe,createImportAdder:()=>Mx,createImportSpecifierResolver:()=>bqe,createJsonPropertyAssignment:()=>fQ,createMissingMemberNodes:()=>M_e,createSignatureDeclarationFromCallExpression:()=>R_e,createSignatureDeclarationFromSignature:()=>uQ,createStubbedBody:()=>GM,eachDiagnostic:()=>N6,findAncestorMatchingSpan:()=>V_e,findJsonProperty:()=>W_e,generateAccessorFromProperty:()=>dEe,getAccessorConvertiblePropertyAtPosition:()=>hEe,getAllFixes:()=>QVe,getAllSupers:()=>q_e,getArgumentTypesAndTypeParameters:()=>_Ee,getFixes:()=>XVe,getImportCompletionAction:()=>Sqe,getImportKind:()=>Nue,getJSDocTypedefNodes:()=>mqe,getNoopSymbolTrackerWithResolver:()=>F6,getPromoteTypeOnlyCompletionAction:()=>Tqe,getSupportedErrorCodes:()=>GVe,importFixName:()=>jue,importSymbols:()=>O6,moduleSpecifierToValidIdentifier:()=>Rue,moduleSymbolToValidIdentifier:()=>Mue,parameterShouldGetTypeFromJSDoc:()=>wCe,registerCodeFix:()=>ea,setJsonCompilerOptionValue:()=>z_e,setJsonCompilerOptionValues:()=>J_e,tryGetAutoImportableReferenceFromTypeNode:()=>jx,typeToAutoImportableTypeNode:()=>_Q});var ra=wt({"src/services/_namespaces/ts.codefix.ts"(){YVe(),ZVe(),KVe(),rUe(),oUe(),_Ue(),fUe(),pUe(),dUe(),yUe(),DUe(),AUe(),zUe(),sqe(),aqe(),cqe(),lqe(),gqe(),hqe(),vqe(),Wqe(),qqe(),$qe(),Xqe(),Qqe(),Kqe(),rHe(),sHe(),uHe(),bHe(),THe(),DHe(),wHe(),NHe(),IHe(),FHe(),OHe(),MHe(),RHe(),jHe(),BHe(),JHe(),WHe(),qHe(),XHe(),iGe(),aGe(),oGe(),uGe(),_Ge(),pGe(),dGe(),TGe(),xGe(),kGe(),AGe(),WGe(),HGe(),QGe(),ZGe(),KGe(),e$e(),t$e(),n$e(),s$e(),a$e(),o$e(),c$e(),l$e(),u$e(),f$e()}});function p$e(e){return!!(e.kind&1)}function d$e(e){return!!(e.kind&2)}function $M(e){return!!(e&&e.kind&4)}function mP(e){return!!(e&&e.kind===32)}function m$e(e){return $M(e)||mP(e)||ofe(e)}function g$e(e){return($M(e)||mP(e))&&!!e.isFromPackageJson}function h$e(e){return!!(e.kind&8)}function y$e(e){return!!(e.kind&16)}function QEe(e){return!!(e&&e.kind&64)}function YEe(e){return!!(e&&e.kind&128)}function v$e(e){return!!(e&&e.kind&256)}function ofe(e){return!!(e&&e.kind&512)}function ZEe(e,t,n,i,s,o,c,u,f){var g,d,y;const S=To(),T=c||HT(Ru(i.getCompilerOptions()));let k=!1,w=0,P=0,F=0,J=0;const U=f({tryResolve:j,skippedAny:()=>k,resolvedAny:()=>P>0,resolvedBeyondLimit:()=>P>MQ}),$=J?` (${(F/J*100).toFixed(1)}% hit rate)`:"";return(g=t.log)==null||g.call(t,`${e}: resolved ${P} module specifiers, plus ${w} ambient and ${F} from cache${$}`),(d=t.log)==null||d.call(t,`${e}: response is ${k?"incomplete":"complete"}`),(y=t.log)==null||y.call(t,`${e}: ${To()-S}`),U;function j(re,R){if(R){const H=n.getModuleSpecifierForBestExportInfo(re,s,u);return H&&w++,H||"failed"}const Y=T||o.allowIncompleteCompletions&&P{const k=Ri(f.entries,w=>{var P;if(!w.hasAction||!w.source||!w.data||KEe(w.data))return w;if(!k3e(w.name,d))return;const{origin:F}=E.checkDefined(_3e(w.name,w.data,i,s)),J=y.get(t.path,w.data.exportMapKey),U=J&&T.tryResolve(J,!Sl(vp(F.moduleSymbol.name)));if(U==="skipped")return w;if(!U||U==="failed"){(P=s.log)==null||P.call(s,`Unexpected failure resolving auto import for '${w.name}' from '${w.source}'`);return}const $={...F,kind:32,moduleSpecifier:U.moduleSpecifier};return w.data=o3e($),w.source=ufe($),w.sourceDisplay=[Af($.moduleSpecifier)],w});return T.skippedAny()||(f.isIncomplete=void 0),k});return f.entries=S,f.flags=(f.flags||0)|4,f.optionalReplacementSpan=n3e(g),f}function cfe(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function e3e(e,t,n,i,s,o){const c=Ui(e,t);if(!Xk(c)&&!vd(c))return[];const u=vd(c)?c:c.parent;if(!vd(u))return[];const f=u.parent;if(!As(f))return[];const g=Ou(e),d=s.includeCompletionsWithSnippetText||void 0,y=j0(u.tags,S=>bd(S)&&S.getEnd()<=t);return Ri(f.parameters,S=>{if(!Vk(S).length){if(Ie(S.name)){const T={tabstop:1},k=S.name.text;let w=ON(k,S.initializer,S.dotDotDotToken,g,!1,!1,n,i,s),P=d?ON(k,S.initializer,S.dotDotDotToken,g,!1,!0,n,i,s,T):void 0;return o&&(w=w.slice(1),P&&(P=P.slice(1))),{name:w,kind:"parameter",sortText:uu.LocationPriority,insertText:d?P:void 0,isSnippet:d}}else if(S.parent.parameters.indexOf(S)===y){const T=`param${y}`,k=t3e(T,S.name,S.initializer,S.dotDotDotToken,g,!1,n,i,s),w=d?t3e(T,S.name,S.initializer,S.dotDotDotToken,g,!0,n,i,s):void 0;let P=k.join(t0(i)+"* "),F=w==null?void 0:w.join(t0(i)+"* ");return o&&(P=P.slice(1),F&&(F=F.slice(1))),{name:P,kind:"parameter",sortText:uu.LocationPriority,insertText:d?F:void 0,isSnippet:d}}}})}function t3e(e,t,n,i,s,o,c,u,f){if(!s)return[ON(e,n,i,s,!1,o,c,u,f,{tabstop:1})];return g(e,t,n,i,{tabstop:1});function g(y,S,T,k,w){if(kp(S)&&!k){const F={tabstop:w.tabstop},J=ON(y,T,k,s,!0,o,c,u,f,F);let U=[];for(const $ of S.elements){const j=d(y,$,F);if(j)U.push(...j);else{U=void 0;break}}if(U)return w.tabstop=F.tabstop,[J,...U]}return[ON(y,T,k,s,!1,o,c,u,f,w)]}function d(y,S,T){if(!S.propertyName&&Ie(S.name)||Ie(S.name)){const k=S.propertyName?gE(S.propertyName):S.name.text;if(!k)return;const w=`${y}.${k}`;return[ON(w,S.initializer,S.dotDotDotToken,s,!1,o,c,u,f,T)]}else if(S.propertyName){const k=gE(S.propertyName);return k&&g(`${y}.${k}`,S.name,S.initializer,S.dotDotDotToken,T)}}}function ON(e,t,n,i,s,o,c,u,f,g){if(o&&E.assertIsDefined(g),t&&(e=T$e(e,t)),o&&(e=r2(e)),i){let d="*";if(s)E.assert(!n,"Cannot annotate a rest parameter with type 'Object'."),d="Object";else{if(t){const T=c.getTypeAtLocation(t.parent);if(!(T.flags&16385)){const k=t.getSourceFile(),P=wf(k,f)===0?268435456:0,F=c.typeToTypeNode(T,Pr(t,As),P);if(F){const J=o?wQ({removeComments:!0,module:u.module,target:u.target}):V1({removeComments:!0,module:u.module,target:u.target});Qr(F,1),d=J.printNode(4,F,k)}}}o&&d==="*"&&(d=`\${${g.tabstop++}:${d}}`)}const y=!s&&n?"...":"",S=o?`\${${g.tabstop++}}`:"";return`@param {${y}${d}} ${e} ${S}`}else{const d=o?`\${${g.tabstop++}}`:"";return`@param ${e} ${d}`}}function T$e(e,t){const n=t.getText().trim();return n.includes(` -`)||n.length>80?`[${e}]`:`[${e}=${n}]`}function x$e(e){return{name:Ws(e),kind:"keyword",kindModifiers:"",sortText:uu.GlobalsOrKeywords}}function k$e(e,t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t,entries:e.slice()}}function r3e(e,t,n){return{kind:4,keywordCompletions:f3e(e,t),isNewIdentifierLocation:n}}function C$e(e){switch(e){case 156:return 8;default:E.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}}function n3e(e){return(e==null?void 0:e.kind)===80?Zu(e):void 0}function E$e(e,t,n,i,s,o,c,u,f,g){const{symbols:d,contextToken:y,completionKind:S,isInSnippetScope:T,isNewIdentifierLocation:k,location:w,propertyAccessToConvert:P,keywordFilters:F,symbolToOriginInfoMap:J,recommendedCompletion:U,isJsxInitializer:$,isTypeOnlyLocation:j,isJsxIdentifierExpected:re,isRightOfOpenTag:R,isRightOfDotOrQuestionDot:Y,importStatementCompletion:ue,insideJsDocTagTypeExpression:pe,symbolToSortTextMap:H,hasUnresolvedAutoImports:q}=o;let ee=o.literals;const oe=n.getTypeChecker();if(ew(e.scriptKind)===1){const Oe=D$e(w,e);if(Oe)return Oe}const Se=Pr(y,zC);if(Se&&(eie(y)||Hv(y,Se.expression))){const Oe=nM(oe,Se.parent.clauses);ee=ee.filter(me=>!Oe.hasValue(me)),d.forEach((me,be)=>{if(me.valueDeclaration&&p2(me.valueDeclaration)){const xe=oe.getConstantValue(me.valueDeclaration);xe!==void 0&&Oe.hasValue(xe)&&(J[be]={kind:256})}})}const ae=oB(),K=i3e(e,i);if(K&&!k&&(!d||d.length===0)&&F===0)return;const fe=_fe(d,ae,void 0,y,w,f,e,t,n,Fa(i),s,S,c,i,u,j,P,re,$,ue,U,J,H,re,R,g);if(F!==0)for(const Oe of f3e(F,!pe&&Ou(e)))(j&&eP(Ov(Oe.name))||!j&&lXe(Oe.name)||!fe.has(Oe.name))&&(fe.add(Oe.name),B0(ae,Oe,XM,!0));for(const Oe of Q$e(y,f))fe.has(Oe.name)||(fe.add(Oe.name),B0(ae,Oe,XM,!0));for(const Oe of ee){const me=A$e(e,c,Oe);fe.add(me.name),B0(ae,me,XM,!0)}K||w$e(e,w.pos,fe,Fa(i),ae);let ke;if(c.includeCompletionsWithInsertText&&y&&!R&&!Y&&(ke=Pr(y,g3))){const Oe=s3e(ke,e,c,i,t,n,u);Oe&&ae.push(Oe.entry)}return{flags:o.flags,isGlobalCompletion:T,isIncomplete:c.allowIncompleteCompletions&&q?!0:void 0,isMemberCompletion:P$e(S),isNewIdentifierLocation:k,optionalReplacementSpan:n3e(w),entries:ae}}function i3e(e,t){return!Ou(e)||!!sw(e,t)}function s3e(e,t,n,i,s,o,c){const u=e.clauses,f=o.getTypeChecker(),g=f.getTypeAtLocation(e.parent.expression);if(g&&g.isUnion()&&Wi(g.types,d=>d.isLiteral())){const d=nM(f,u),y=Fa(i),S=wf(t,n),T=lu.createImportAdder(t,o,n,s),k=[];for(const j of g.types)if(j.flags&1024){E.assert(j.symbol,"An enum member type should have a symbol"),E.assert(j.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");const re=j.symbol.valueDeclaration&&f.getConstantValue(j.symbol.valueDeclaration);if(re!==void 0){if(d.hasValue(re))continue;d.addValue(re)}const R=lu.typeToAutoImportableTypeNode(f,T,j,e,y);if(!R)return;const Y=PQ(R,y,S);if(!Y)return;k.push(Y)}else if(!d.hasValue(j.value))switch(typeof j.value){case"object":k.push(j.value.negative?I.createPrefixUnaryExpression(41,I.createBigIntLiteral({negative:!1,base10Value:j.value.base10Value})):I.createBigIntLiteral(j.value));break;case"number":k.push(j.value<0?I.createPrefixUnaryExpression(41,I.createNumericLiteral(-j.value)):I.createNumericLiteral(j.value));break;case"string":k.push(I.createStringLiteral(j.value,S===0));break}if(k.length===0)return;const w=nr(k,j=>I.createCaseClause(j,[])),P=f0(s,c==null?void 0:c.options),F=wQ({removeComments:!0,module:i.module,target:i.target,newLine:oN(P)}),J=c?j=>F.printAndFormatNode(4,j,t,c):j=>F.printNode(4,j,t),U=nr(w,(j,re)=>n.includeCompletionsWithSnippetText?`${J(j)}$${re+1}`:`${J(j)}`).join(P);return{entry:{name:`${F.printNode(4,w[0],t)} ...`,kind:"",sortText:uu.GlobalsOrKeywords,insertText:U,hasAction:T.hasFixes()||void 0,source:"SwitchCases/",isSnippet:n.includeCompletionsWithSnippetText?!0:void 0},importAdder:T}}}function PQ(e,t,n){switch(e.kind){case 183:const i=e.typeName;return DQ(i,t,n);case 199:const s=PQ(e.objectType,t,n),o=PQ(e.indexType,t,n);return s&&o&&I.createElementAccessExpression(s,o);case 201:const c=e.literal;switch(c.kind){case 11:return I.createStringLiteral(c.text,n===0);case 9:return I.createNumericLiteral(c.text,c.numericLiteralFlags)}return;case 196:const u=PQ(e.type,t,n);return u&&(Ie(u)?u:I.createParenthesizedExpression(u));case 186:return DQ(e.exprName,t,n);case 205:E.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function DQ(e,t,n){if(Ie(e))return e;const i=xi(e.right.escapedText);return WW(i,t)?I.createPropertyAccessExpression(DQ(e.left,t,n),i):I.createElementAccessExpression(DQ(e.left,t,n),I.createStringLiteral(i,n===0))}function P$e(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function D$e(e,t){const n=Pr(e,i=>{switch(i.kind){case 287:return!0;case 44:case 32:case 80:case 211:return!1;default:return"quit"}});if(n){const i=!!qa(n,32,t),c=n.parent.openingElement.tagName.getText(t)+(i?"":">"),u=Zu(n.tagName),f={name:c,kind:"class",kindModifiers:void 0,sortText:uu.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:u,entries:[f]}}}function w$e(e,t,n,i,s){U$(e).forEach((o,c)=>{if(o===t)return;const u=xi(c);!n.has(u)&&Sf(u,i)&&(n.add(u),B0(s,{name:u,kind:"warning",kindModifiers:"",sortText:uu.JavascriptIdentifiers,isFromUncheckedFile:!0},XM))})}function lfe(e,t,n){return typeof n=="object"?e2(n)+"n":ls(n)?aP(e,t,n):JSON.stringify(n)}function A$e(e,t,n){return{name:lfe(e,t,n),kind:"string",kindModifiers:"",sortText:uu.LocationPriority}}function N$e(e,t,n,i,s,o,c,u,f,g,d,y,S,T,k,w,P,F,J,U,$,j,re,R){var Y,ue;let pe,H,q=lG(n),ee,oe,Se=ufe(y),ae,K,fe;const ke=f.getTypeChecker(),Oe=y&&y$e(y),me=y&&d$e(y)||d;if(y&&p$e(y))pe=d?`this${Oe?"?.":""}[${c3e(c,J,g)}]`:`this${Oe?"?.":"."}${g}`;else if((me||Oe)&&T){pe=me?d?`[${c3e(c,J,g)}]`:`[${g}]`:g,(Oe||T.questionDotToken)&&(pe=`?.${pe}`);const xe=qa(T,25,c)||qa(T,29,c);if(!xe)return;const De=Vi(g,T.name.text)?T.name.end:xe.end;q=Rc(xe.getStart(c),De)}if(k&&(pe===void 0&&(pe=g),pe=`{${pe}}`,typeof k!="boolean"&&(q=Zu(k,c))),y&&h$e(y)&&T){pe===void 0&&(pe=g);const xe=Qc(T.pos,c);let De="";xe&&GL(xe.end,xe.parent,c)&&(De=";"),De+=`(await ${T.expression.getText()})`,pe=d?`${De}${pe}`:`${De}${Oe?"?.":"."}${pe}`;const ge=Wn(T.parent,py)?T.parent:T.expression;q=Rc(ge.getStart(c),T.end)}if(mP(y)&&(ae=[Af(y.moduleSpecifier)],w&&({insertText:pe,replacementSpan:q}=j$e(g,w,y,P,c,F,J),oe=J.includeCompletionsWithSnippetText?!0:void 0)),(y==null?void 0:y.kind)===64&&(K=!0),U===0&&i&&((Y=Qc(i.pos,c,i))==null?void 0:Y.kind)!==28&&(hc(i.parent.parent)||xf(i.parent.parent)||J_(i.parent.parent)||a0(i.parent)||((ue=Pr(i.parent,zc))==null?void 0:ue.getLastToken(c))===i||k_(i.parent)&&Ha(c,i.getEnd()).line!==Ha(c,o).line)&&(Se="ObjectLiteralMemberWithComma/",K=!0),J.includeCompletionsWithClassMemberSnippets&&J.includeCompletionsWithInsertText&&U===3&&I$e(e,s,c)){let xe;const De=a3e(u,f,F,J,g,e,s,o,i,$);if(De)({insertText:pe,filterText:H,isSnippet:oe,importAdder:xe}=De),xe!=null&&xe.hasFixes()&&(K=!0,Se="ClassMemberSnippet/");else return}if(y&&YEe(y)&&({insertText:pe,isSnippet:oe,labelDetails:fe}=y,J.useLabelDetailsInCompletionEntries||(g=g+fe.detail,fe=void 0),Se="ObjectLiteralMethodSnippet/",t=uu.SortBelow(t)),j&&!re&&J.includeCompletionsWithSnippetText&&J.jsxAttributeCompletionStyle&&J.jsxAttributeCompletionStyle!=="none"&&!(em(s.parent)&&s.parent.initializer)){let xe=J.jsxAttributeCompletionStyle==="braces";const De=ke.getTypeOfSymbolAtLocation(e,s);J.jsxAttributeCompletionStyle==="auto"&&!(De.flags&528)&&!(De.flags&1048576&&wn(De.types,ft=>!!(ft.flags&528)))&&(De.flags&402653316||De.flags&1048576&&Wi(De.types,ft=>!!(ft.flags&402686084||ece(ft)))?(pe=`${r2(g)}=${aP(c,J,"$1")}`,oe=!0):xe=!0),xe&&(pe=`${r2(g)}={$1}`,oe=!0)}if(pe!==void 0&&!J.includeCompletionsWithInsertText)return;($M(y)||mP(y))&&(ee=o3e(y),K=!w);const be=Pr(s,oF);if((be==null?void 0:be.kind)===275){const xe=Ov(g);be&&xe&&(xe===135||Zz(xe))&&(pe=`${g} as ${g}_`)}return{name:g,kind:m0.getSymbolKind(ke,e,s),kindModifiers:m0.getSymbolModifiers(ke,e),sortText:t,source:Se,hasAction:K?!0:void 0,isRecommended:B$e(e,S,ke)||void 0,insertText:pe,filterText:H,replacementSpan:q,sourceDisplay:ae,labelDetails:fe,isSnippet:oe,isPackageJsonImport:g$e(y)||void 0,isImportStatementCompletion:!!w||void 0,data:ee,...R?{symbol:e}:void 0}}function I$e(e,t,n){return Hr(t)?!1:!!(e.flags&106500)&&($n(t)||t.parent&&t.parent.parent&&Tl(t.parent)&&t===t.parent.name&&t.parent.getLastToken(n)===t.parent.name&&$n(t.parent.parent)||t.parent&&qC(t)&&$n(t.parent))}function a3e(e,t,n,i,s,o,c,u,f,g){const d=Pr(c,$n);if(!d)return;let y,S=s;const T=s,k=t.getTypeChecker(),w=c.getSourceFile(),P=wQ({removeComments:!0,module:n.module,target:n.target,omitTrailingSemicolon:!1,newLine:oN(f0(e,g==null?void 0:g.options))}),F=lu.createImportAdder(w,t,i,e);let J;if(i.includeCompletionsWithSnippetText){y=!0;const ue=I.createEmptyStatement();J=I.createBlock([ue],!0),hV(ue,{kind:0,order:0})}else J=I.createBlock([],!0);let U=0;const{modifiers:$,range:j,decorators:re}=F$e(f,w,u),R=$&64&&d.modifierFlagsCache&64;let Y=[];if(lu.addNewNodeForMemberSymbol(o,d,w,{program:t,host:e},i,F,ue=>{let pe=0;R&&(pe|=64),Tl(ue)&&k.getMemberOverrideModifierStatus(d,ue,o)===1&&(pe|=16),Y.length||(U=ue.modifierFlagsCache|pe),ue=I.replaceModifiers(ue,U),Y.push(ue)},J,lu.PreserveOptionalFlags.Property,!!R),Y.length){const ue=o.flags&8192;let pe=U|16|1;ue?pe|=1024:pe|=136;const H=$&pe;if($&~pe)return;if(U&4&&H&1&&(U&=-5),H!==0&&!(H&1)&&(U&=-2),U|=H,Y=Y.map(ee=>I.replaceModifiers(ee,U)),re!=null&&re.length){const ee=Y[Y.length-1];eS(ee)&&(Y[Y.length-1]=I.replaceDecoratorsAndModifiers(ee,re.concat(Lv(ee)||[])))}const q=131073;g?S=P.printAndFormatSnippetList(q,I.createNodeArray(Y),w,g):S=P.printSnippetList(q,I.createNodeArray(Y),w)}return{insertText:S,filterText:T,isSnippet:y,importAdder:F,eraseRange:j}}function F$e(e,t,n){if(!e||Ha(t,n).line>Ha(t,e.getEnd()).line)return{modifiers:0};let i=0,s,o;const c={pos:n,end:n};if(xs(e.parent)&&e.parent.modifiers&&(i|=$d(e.parent.modifiers)&98303,s=e.parent.modifiers.filter(ql)||[],c.pos=Math.min(c.pos,e.parent.modifiers.pos)),o=O$e(e)){const u=WT(o);i&u||(i|=u,c.pos=Math.min(c.pos,e.pos))}return{modifiers:i,decorators:s,range:c.pos!==n?c:void 0}}function O$e(e){if(ta(e))return e.kind;if(Ie(e)){const t=v1(e);if(t&&$h(t))return t}}function L$e(e,t,n,i,s,o,c,u){const f=c.includeCompletionsWithSnippetText||void 0;let g=t;const d=n.getSourceFile(),y=M$e(e,n,d,i,s,c);if(!y)return;const S=wQ({removeComments:!0,module:o.module,target:o.target,omitTrailingSemicolon:!1,newLine:oN(f0(s,u==null?void 0:u.options))});u?g=S.printAndFormatSnippetList(80,I.createNodeArray([y],!0),d,u):g=S.printSnippetList(80,I.createNodeArray([y],!0),d);const T=V1({removeComments:!0,module:o.module,target:o.target,omitTrailingSemicolon:!0}),k=I.createMethodSignature(void 0,"",y.questionToken,y.typeParameters,y.parameters,y.type),w={detail:T.printNode(4,k,d)};return{isSnippet:f,insertText:g,labelDetails:w}}function M$e(e,t,n,i,s,o){const c=e.getDeclarations();if(!(c&&c.length))return;const u=i.getTypeChecker(),f=c[0],g=Lo(us(f),!1),d=u.getWidenedType(u.getTypeOfSymbolAtLocation(e,t)),S=33554432|(wf(n,o)===0?268435456:0);switch(f.kind){case 171:case 172:case 173:case 174:{let T=d.flags&1048576&&d.types.length<10?u.getUnionType(d.types,2):d;if(T.flags&1048576){const J=An(T.types,U=>u.getSignaturesOfType(U,0).length>0);if(J.length===1)T=J[0];else return}if(u.getSignaturesOfType(T,0).length!==1)return;const w=u.typeToTypeNode(T,t,S,lu.getNoopSymbolTrackerWithResolver({program:i,host:s}));if(!w||!Mm(w))return;let P;if(o.includeCompletionsWithSnippetText){const J=I.createEmptyStatement();P=I.createBlock([J],!0),hV(J,{kind:0,order:0})}else P=I.createBlock([],!0);const F=w.parameters.map(J=>I.createParameterDeclaration(void 0,J.dotDotDotToken,J.name,void 0,void 0,J.initializer));return I.createMethodDeclaration(void 0,void 0,g,void 0,void 0,F,void 0,P)}default:return}}function wQ(e){let t;const n=Kr.createWriter(t0(e)),i=V1(e,n),s={...n,write:S=>o(S,()=>n.write(S)),nonEscapingWrite:n.write,writeLiteral:S=>o(S,()=>n.writeLiteral(S)),writeStringLiteral:S=>o(S,()=>n.writeStringLiteral(S)),writeSymbol:(S,T)=>o(S,()=>n.writeSymbol(S,T)),writeParameter:S=>o(S,()=>n.writeParameter(S)),writeComment:S=>o(S,()=>n.writeComment(S)),writeProperty:S=>o(S,()=>n.writeProperty(S))};return{printSnippetList:c,printAndFormatSnippetList:f,printNode:g,printAndFormatNode:y};function o(S,T){const k=r2(S);if(k!==S){const w=n.getTextPos();T();const P=n.getTextPos();t=_r(t||(t=[]),{newText:k,span:{start:w,length:P-w}})}else T()}function c(S,T,k){const w=u(S,T,k);return t?Kr.applyChanges(w,t):w}function u(S,T,k){return t=void 0,s.clear(),i.writeList(S,T,k,s),s.getText()}function f(S,T,k,w){const P={text:u(S,T,k),getLineAndCharacterOfPosition($){return Ha(this,$)}},F=rM(w,k),J=Zs(T,$=>{const j=Kr.assignPositionsToNode($);return al.formatNodeGivenIndentation(j,P,k.languageVariant,0,0,{...w,options:F})}),U=t?Bh(es(J,t),($,j)=>i7($.span,j.span)):J;return Kr.applyChanges(P.text,U)}function g(S,T,k){const w=d(S,T,k);return t?Kr.applyChanges(w,t):w}function d(S,T,k){return t=void 0,s.clear(),i.writeNode(S,T,k,s),s.getText()}function y(S,T,k,w){const P={text:d(S,T,k),getLineAndCharacterOfPosition(j){return Ha(this,j)}},F=rM(w,k),J=Kr.assignPositionsToNode(T),U=al.formatNodeGivenIndentation(J,P,k.languageVariant,0,0,{...w,options:F}),$=t?Bh(es(U,t),(j,re)=>i7(j.span,re.span)):U;return Kr.applyChanges(P.text,$)}}function o3e(e){const t=e.fileName?void 0:vp(e.moduleSymbol.name),n=e.isFromPackageJson?!0:void 0;return mP(e)?{exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,ambientModuleName:t,fileName:e.fileName,isPackageJsonImport:n}:{exportName:e.exportName,exportMapKey:e.exportMapKey,fileName:e.fileName,ambientModuleName:e.fileName?void 0:vp(e.moduleSymbol.name),isPackageJsonImport:e.isFromPackageJson?!0:void 0}}function R$e(e,t,n){const i=e.exportName==="default",s=!!e.isPackageJsonImport;return KEe(e)?{kind:32,exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,symbolName:t,fileName:e.fileName,moduleSymbol:n,isDefaultExport:i,isFromPackageJson:s}:{kind:4,exportName:e.exportName,exportMapKey:e.exportMapKey,symbolName:t,fileName:e.fileName,moduleSymbol:n,isDefaultExport:i,isFromPackageJson:s}}function j$e(e,t,n,i,s,o,c){const u=t.replacementSpan,f=r2(aP(s,c,n.moduleSpecifier)),g=n.isDefaultExport?1:n.exportName==="export="?2:0,d=c.includeCompletionsWithSnippetText?"$1":"",y=lu.getImportKind(s,g,o,!0),S=t.couldBeTypeOnlyImportSpecifier,T=t.isTopLevelTypeOnly?` ${Ws(156)} `:" ",k=S?`${Ws(156)} `:"",w=i?";":"";switch(y){case 3:return{replacementSpan:u,insertText:`import${T}${r2(e)}${d} = require(${f})${w}`};case 1:return{replacementSpan:u,insertText:`import${T}${r2(e)}${d} from ${f}${w}`};case 2:return{replacementSpan:u,insertText:`import${T}* as ${r2(e)} from ${f}${w}`};case 0:return{replacementSpan:u,insertText:`import${T}{ ${k}${r2(e)}${d} } from ${f}${w}`}}}function c3e(e,t,n){return/^\d+$/.test(n)?n:aP(e,t,n)}function B$e(e,t,n){return e===t||!!(e.flags&1048576)&&n.getExportSymbolOfSymbol(e)===t}function ufe(e){if($M(e))return vp(e.moduleSymbol.name);if(mP(e))return e.moduleSpecifier;if((e==null?void 0:e.kind)===1)return"ThisProperty/";if((e==null?void 0:e.kind)===64)return"TypeOnlyAlias/"}function _fe(e,t,n,i,s,o,c,u,f,g,d,y,S,T,k,w,P,F,J,U,$,j,re,R,Y,ue=!1){const pe=To(),H=aXe(i,s),q=iN(c),ee=f.getTypeChecker(),oe=new Map;for(let K=0;KFe.getSourceFile()===s.getSourceFile()));oe.set(me,ge),B0(t,ft,XM,!0)}return d("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(To()-pe)),{has:K=>oe.has(K),add:K=>oe.set(K,!0)};function Se(K,fe){var ke;let Oe=K.flags;if(!Ni(s)){if(oc(s.parent))return!0;if(Wn(H,hi)&&K.valueDeclaration===H)return!1;const me=K.valueDeclaration??((ke=K.declarations)==null?void 0:ke[0]);if(H&&me&&(Vo(H)&&Vo(me)||rs(H)&&rs(me))){const xe=me.pos,De=rs(H)?H.parent.parameters:Wb(H.parent)?void 0:H.parent.typeParameters;if(xe>=H.pos&&De&&xelfe(n,c,U)===s.name);return J!==void 0?{type:"literal",literal:J}:$o(g,(U,$)=>{const j=T[$],re=NQ(U,Fa(u),j,S,f.isJsxIdentifierExpected);return re&&re.name===s.name&&(s.source==="ClassMemberSnippet/"&&U.flags&106500||s.source==="ObjectLiteralMethodSnippet/"&&U.flags&8196||ufe(j)===s.source||s.source==="ObjectLiteralMemberWithComma/")?{type:"symbol",symbol:U,location:y,origin:j,contextToken:k,previousToken:w,isJsxInitializer:P,isTypeOnlyLocation:F}:void 0})||{type:"none"}}function W$e(e,t,n,i,s,o,c,u,f){const g=e.getTypeChecker(),d=e.getCompilerOptions(),{name:y,source:S,data:T}=s,{previousToken:k,contextToken:w}=AQ(i,n);if(Dx(n,i,k))return jQ.getStringLiteralCompletionDetails(y,n,i,k,e,o,f,u);const P=l3e(e,t,n,i,s,o,u);switch(P.type){case"request":{const{request:F}=P;switch(F.kind){case 1:return Q1.getJSDocTagNameCompletionDetails(y);case 2:return Q1.getJSDocTagCompletionDetails(y);case 3:return Q1.getJSDocParameterNameCompletionDetails(y);case 4:return ct(F.keywordCompletions,J=>J.name===y)?ffe(y,"keyword",5):void 0;default:return E.assertNever(F)}}case"symbol":{const{symbol:F,location:J,contextToken:U,origin:$,previousToken:j}=P,{codeActions:re,sourceDisplay:R}=V$e(y,J,U,$,F,e,o,d,n,i,j,c,u,T,S,f),Y=ofe($)?$.symbolName:F.name;return pfe(F,Y,g,n,J,f,re,R)}case"literal":{const{literal:F}=P;return ffe(lfe(n,u,F),"string",typeof F=="string"?8:7)}case"cases":{const F=s3e(w.parent,n,u,e.getCompilerOptions(),o,e,void 0);if(F!=null&&F.importAdder.hasFixes()){const{entry:J,importAdder:U}=F,$=Kr.ChangeTracker.with({host:o,formatContext:c,preferences:u},U.writeFixes);return{name:J.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:$,description:fS([p.Includes_imports_of_types_referenced_by_0,y])}]}}return{name:y,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return Sfe().some(F=>F.name===y)?ffe(y,"keyword",5):void 0;default:E.assertNever(P)}}function ffe(e,t,n){return QM(e,"",t,[C_(e,n)])}function pfe(e,t,n,i,s,o,c,u){const{displayParts:f,documentation:g,symbolKind:d,tags:y}=n.runWithCancellationToken(o,S=>m0.getSymbolDisplayPartsDocumentationAndSymbolKind(S,e,i,s,s,7));return QM(t,m0.getSymbolModifiers(n,e),d,f,g,y,c,u)}function QM(e,t,n,i,s,o,c,u){return{name:e,kindModifiers:t,kind:n,displayParts:i,documentation:s,tags:o,codeActions:c,source:u,sourceDisplay:u}}function V$e(e,t,n,i,s,o,c,u,f,g,d,y,S,T,k,w){if(T!=null&&T.moduleSpecifier&&d&&v3e(n||d,f).replacementSpan)return{codeActions:void 0,sourceDisplay:[Af(T.moduleSpecifier)]};if(k==="ClassMemberSnippet/"){const{importAdder:re,eraseRange:R}=a3e(c,o,u,S,e,s,t,g,n,y);if(re||R)return{sourceDisplay:void 0,codeActions:[{changes:Kr.ChangeTracker.with({host:c,formatContext:y,preferences:S},ue=>{re&&re.writeFixes(ue),R&&ue.deleteRange(f,R)}),description:fS([p.Includes_imports_of_types_referenced_by_0,e])}]}}if(QEe(i)){const re=lu.getPromoteTypeOnlyCompletionAction(f,i.declaration.name,o,c,y,S);return E.assertIsDefined(re,"Expected to have a code action for promoting type-only alias"),{codeActions:[re],sourceDisplay:void 0}}if(k==="ObjectLiteralMemberWithComma/"&&n){const re=Kr.ChangeTracker.with({host:c,formatContext:y,preferences:S},R=>R.insertText(f,n.end,","));if(re)return{sourceDisplay:void 0,codeActions:[{changes:re,description:fS([p.Add_missing_comma_for_object_member_completion_0,e])}]}}if(!i||!($M(i)||mP(i)))return{codeActions:void 0,sourceDisplay:void 0};const P=i.isFromPackageJson?c.getPackageJsonAutoImportProvider().getTypeChecker():o.getTypeChecker(),{moduleSymbol:F}=i,J=P.getMergedSymbol(Ul(s.exportSymbol||s,P)),U=(n==null?void 0:n.kind)===30&&Fu(n.parent),{moduleSpecifier:$,codeAction:j}=lu.getImportCompletionAction(J,F,T==null?void 0:T.exportMapKey,f,e,U,c,o,y,d&&Ie(d)?d.getStart(f):g,S,w);return E.assert(!(T!=null&&T.moduleSpecifier)||$===T.moduleSpecifier),{sourceDisplay:[Af($)],codeActions:[j]}}function U$e(e,t,n,i,s,o,c){const u=l3e(e,t,n,i,s,o,c);return u.type==="symbol"?u.symbol:void 0}function q$e(e,t,n){return $o(t&&(t.isUnion()?t.types:[t]),i=>{const s=i&&i.symbol;return s&&s.flags&424&&!Ure(s)?dfe(s,e,n):void 0})}function H$e(e,t,n,i){const{parent:s}=e;switch(e.kind){case 80:return UL(e,i);case 64:switch(s.kind){case 260:return i.getContextualType(s.initializer);case 226:return i.getTypeAtLocation(s.left);case 291:return i.getContextualTypeForJsxAttribute(s);default:return}case 105:return i.getContextualType(s);case 84:const o=Wn(s,zC);return o?IG(o,i):void 0;case 19:return h3(s)&&!Eg(s.parent)&&!u2(s.parent)?i.getContextualTypeForJsxAttribute(s.parent):void 0;default:const c=JN.getArgumentInfoForCompletions(e,t,n,i);return c?i.getContextualTypeForArgumentAtIndex(c.invocation,c.argumentIndex):qL(e.kind)&&Zr(s)&&qL(s.operatorToken.kind)?i.getTypeAtLocation(s.left):i.getContextualType(e,4)||i.getContextualType(e)}}function dfe(e,t,n){const i=n.getAccessibleSymbolChain(e,t,-1,!1);return i?va(i):e.parent&&(G$e(e.parent)?e:dfe(e.parent,t,n))}function G$e(e){var t;return!!((t=e.declarations)!=null&&t.some(n=>n.kind===312))}function u3e(e,t,n,i,s,o,c,u,f,g){const d=e.getTypeChecker(),y=i3e(n,i);let S=To(),T=Ui(n,s);t("getCompletionData: Get current token: "+(To()-S)),S=To();const k=l0(n,s,T);t("getCompletionData: Is inside comment: "+(To()-S));let w=!1,P=!1;if(k){if(Yoe(n,s)){if(n.text.charCodeAt(s-1)===64)return{kind:1};{const Ne=Ep(s,n);if(!/[^*|\s(/)]/.test(n.text.substring(Ne,s)))return{kind:2}}}const ce=Y$e(T,s);if(ce){if(ce.tagName.pos<=s&&s<=ce.tagName.end)return{kind:1};const Ne=zt(ce);if(Ne&&(T=Ui(n,s),(!T||!eh(T)&&(T.parent.kind!==355||T.parent.name!==T))&&(w=V(Ne))),!w&&bd(ce)&&(_c(ce.name)||ce.name.pos<=s&&s<=ce.name.end))return{kind:3,tag:ce}}if(!w){t("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return}}S=To();const F=!w&&Ou(n),J=AQ(s,n),U=J.previousToken;let $=J.contextToken;t("getCompletionData: Get previous token: "+(To()-S));let j=T,re,R=!1,Y=!1,ue=!1,pe=!1,H=!1,q=!1,ee,oe=u_(n,s),Se=0,ae=!1,K=0;if($){const ce=v3e($,n);if(ce.keywordCompletion){if(ce.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[x$e(ce.keywordCompletion)],isNewIdentifierLocation:ce.isNewIdentifierLocation};Se=C$e(ce.keywordCompletion)}if(ce.replacementSpan&&o.includeCompletionsForImportStatements&&o.includeCompletionsWithInsertText&&(K|=2,ee=ce,ae=ce.isNewIdentifierLocation),!ce.replacementSpan&&Ii($))return t("Returning an empty list because completion was requested in an invalid position."),Se?r3e(Se,F,Vs()):void 0;let Ne=$.parent;if($.kind===25||$.kind===29)switch(R=$.kind===25,Y=$.kind===29,Ne.kind){case 211:re=Ne,j=re.expression;const Ce=CC(re);if(_c(Ce)||(Rs(j)||As(j))&&j.end===$.pos&&j.getChildCount(n)&&ka(j.getChildren(n)).kind!==22)return;break;case 166:j=Ne.left;break;case 267:j=Ne.name;break;case 205:j=Ne;break;case 236:j=Ne.getFirstToken(n),E.assert(j.kind===102||j.kind===105);break;default:return}else if(!ee){if(Ne&&Ne.kind===211&&($=Ne,Ne=Ne.parent),T.parent===oe)switch(T.kind){case 32:(T.parent.kind===284||T.parent.kind===286)&&(oe=T);break;case 44:T.parent.kind===285&&(oe=T);break}switch(Ne.kind){case 287:$.kind===44&&(pe=!0,oe=$);break;case 226:if(!y3e(Ne))break;case 285:case 284:case 286:q=!0,$.kind===30&&(ue=!0,oe=$);break;case 294:case 293:(U.kind===20||U.kind===80&&U.parent.kind===291)&&(q=!0);break;case 291:if(Ne.initializer===U&&U.endlS(ce?u.getPackageJsonAutoImportProvider():e,u));if(R||Y)Vt();else if(ue)me=d.getJsxIntrinsicTagNamesAt(oe),E.assertEachIsDefined(me,"getJsxIntrinsicTagNames() should all be defined"),jt(),ke=1,Se=0;else if(pe){const ce=$.parent.parent.openingElement.tagName,Ne=d.getSymbolAtLocation(ce);Ne&&(me=[Ne]),ke=1,Se=0}else if(!jt())return Se?r3e(Se,F,ae):void 0;t("getCompletionData: Semantic work: "+(To()-fe));const $e=U&&H$e(U,s,n,d),at=!Wn(U,Ma)&&!q?Ri($e&&($e.isUnion()?$e.types:[$e]),ce=>ce.isLiteral()&&!(ce.flags&1024)?ce.value:void 0):[],Je=U&&$e&&q$e(U,$e,d);return{kind:0,symbols:me,completionKind:ke,isInSnippetScope:P,propertyAccessToConvert:re,isNewIdentifierLocation:ae,location:oe,keywordFilters:Se,literals:at,symbolToOriginInfoMap:xe,recommendedCompletion:Je,previousToken:U,contextToken:$,isJsxInitializer:H,insideJsDocTagTypeExpression:w,symbolToSortTextMap:De,isTypeOnlyLocation:ge,isJsxIdentifierExpected:q,isRightOfOpenTag:ue,isRightOfDotOrQuestionDot:R||Y,importStatementCompletion:ee,hasUnresolvedAutoImports:Oe,flags:K};function pt(ce){switch(ce.kind){case 348:case 355:case 349:case 351:case 353:case 356:case 357:return!0;case 352:return!!ce.constraint;default:return!1}}function zt(ce){if(pt(ce)){const Ne=Cp(ce)?ce.constraint:ce.typeExpression;return Ne&&Ne.kind===316?Ne:void 0}if(gx(ce)||IO(ce))return ce.class}function Vt(){ke=2;const ce=ty(j),Ne=ce&&!j.isTypeOf||gg(j.parent)||HA($,n,d),Ce=yL(j);if(b_(j)||ce||Sn(j)){const _t=Sc(j.parent);_t&&(ae=!0);let Tt=d.getSymbolAtLocation(j);if(Tt&&(Tt=Ul(Tt,d),Tt.flags&1920)){const Jt=d.getExportsOfModule(Tt);E.assertEachIsDefined(Jt,"getExportsOfModule() should all be defined");const ar=fi=>d.isValidPropertyAccess(ce?j:j.parent,fi.name),Er=fi=>gfe(fi,d),Nr=_t?fi=>{var oi;return!!(fi.flags&1920)&&!((oi=fi.declarations)!=null&&oi.every(Wr=>Wr.parent===j.parent))}:Ce?fi=>Er(fi)||ar(fi):Ne||w?Er:ar;for(const fi of Jt)Nr(fi)&&me.push(fi);if(!Ne&&!w&&Tt.declarations&&Tt.declarations.some(fi=>fi.kind!==312&&fi.kind!==267&&fi.kind!==266)){let fi=d.getTypeOfSymbolAtLocation(Tt,j).getNonOptionalType(),oi=!1;if(fi.isNullableType()){const Wr=R&&!Y&&o.includeAutomaticOptionalChainCompletions!==!1;(Wr||Y)&&(fi=fi.getNonNullableType(),Wr&&(oi=!0))}hr(fi,!!(j.flags&65536),oi)}return}}if(!Ne||Mb(j)){d.tryGetThisTypeAt(j,!1);let _t=d.getTypeAtLocation(j).getNonOptionalType();if(Ne)hr(_t.getNonNullableType(),!1,!1);else{let Tt=!1;if(_t.isNullableType()){const Jt=R&&!Y&&o.includeAutomaticOptionalChainCompletions!==!1;(Jt||Y)&&(_t=_t.getNonNullableType(),Jt&&(Tt=!0))}hr(_t,!!(j.flags&65536),Tt)}}}function hr(ce,Ne,Ce){ae=!!ce.getStringIndexType(),Y&&ct(ce.getCallSignatures())&&(ae=!0);const _t=j.kind===205?j:j.parent;if(y)for(const Tt of ce.getApparentProperties())d.isValidPropertyAccessForCompletions(_t,ce,Tt)&&Lr(Tt,!1,Ce);else me.push(...An(OQ(ce,d),Tt=>d.isValidPropertyAccessForCompletions(_t,ce,Tt)));if(Ne&&o.includeCompletionsWithInsertText){const Tt=d.getPromisedTypeOfPromise(ce);if(Tt)for(const Jt of Tt.getApparentProperties())d.isValidPropertyAccessForCompletions(_t,Tt,Jt)&&Lr(Jt,!0,Ce)}}function Lr(ce,Ne,Ce){var _t;const Tt=$o(ce.declarations,Nr=>Wn(us(Nr),Pa));if(Tt){const Nr=tr(Tt.expression),fi=Nr&&d.getSymbolAtLocation(Nr),oi=fi&&dfe(fi,$,d),Wr=oi&&Ks(oi);if(Wr&&qp(ft,Wr)){const Cn=me.length;me.push(oi);const Qi=oi.parent;if(!Qi||!XA(Qi)||d.tryGetMemberInModuleExportsAndProperties(oi.name,Qi)!==oi)xe[Cn]={kind:Er(2)};else{const pi=Sl(vp(Qi.name))?(_t=c5(Qi))==null?void 0:_t.fileName:void 0,{moduleSpecifier:ci}=(be||(be=lu.createImportSpecifierResolver(n,e,u,o))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:pi,isFromPackageJson:!1,moduleSymbol:Qi,symbol:oi,targetFlags:Ul(oi,d).flags}],s,I1(oe))||{};if(ci){const In={kind:Er(6),moduleSymbol:Qi,isDefaultExport:!1,symbolName:oi.name,exportName:oi.name,fileName:pi,moduleSpecifier:ci};xe[Cn]=In}}}else if(o.includeCompletionsWithInsertText){if(Wr&&ft.has(Wr))return;ar(ce),Jt(ce),me.push(ce)}}else ar(ce),Jt(ce),me.push(ce);function Jt(Nr){nXe(Nr)&&(De[Ks(Nr)]=uu.LocalDeclarationPriority)}function ar(Nr){o.includeCompletionsWithInsertText&&(Ne&&qp(ft,Ks(Nr))?xe[me.length]={kind:Er(8)}:Ce&&(xe[me.length]={kind:16}))}function Er(Nr){return Ce?Nr|16:Nr}}function tr(ce){return Ie(ce)?ce:Sn(ce)?tr(ce.expression):void 0}function jt(){return(cr()||br()||Ji()||Le()||rt()||tt()||Rt()||yt()||Kn()||(yi(),1))===1}function Rt(){return we($)?(ke=5,ae=!0,Se=4,1):0}function Kn(){const ce=B($),Ne=ce&&d.getContextualType(ce.attributes);if(!Ne)return 0;const Ce=ce&&d.getContextualType(ce.attributes,4);return me=es(me,le(FQ(Ne,Ce,ce.attributes,d),ce.attributes.properties)),W(),ke=3,ae=!1,1}function Ji(){return ee?(ae=!0,Ue(),1):0}function yi(){Se=et($)?5:1,ke=1,ae=Vs(),U!==$&&E.assert(!!U,"Expected 'contextToken' to be defined when different from 'previousToken'.");const ce=U!==$?U.getStart():s,Ne=ei($,ce,n)||n;P=yr(Ne);const Ce=(ge?0:111551)|788968|1920|2097152,_t=U&&!I1(U);me=es(me,d.getSymbolsInScope(Ne,Ce)),E.assertEachIsDefined(me,"getSymbolsInScope() should all be defined");for(let Tt=0;Ttar.getSourceFile()===n)&&(De[Ks(Jt)]=uu.GlobalsOrKeywords),_t&&!(Jt.flags&111551)){const ar=Jt.declarations&&wn(Jt.declarations,QD);if(ar){const Er={kind:64,declaration:ar};xe[Tt]=Er}}}if(o.includeCompletionsWithInsertText&&Ne.kind!==312){const Tt=d.tryGetThisTypeAt(Ne,!1,$n(Ne.parent)?Ne:void 0);if(Tt&&!rXe(Tt,n,d))for(const Jt of OQ(Tt,d))xe[me.length]={kind:1},me.push(Jt),De[Ks(Jt)]=uu.SuggestedClassMembers}Ue(),ge&&(Se=$&&Tb($.parent)?6:7)}function os(){return ee?!0:o.includeCompletionsForModuleExports?n.externalModuleIndicator||n.commonJsModuleIndicator||dG(e.getCompilerOptions())?!0:nce(e):!1}function yr(ce){switch(ce.kind){case 312:case 228:case 294:case 241:return!0;default:return Ei(ce)}}function _i(){return w||!!ee&&x1(oe.parent)||!ln($)&&(HA($,n,d)||gg(oe)||Ht($))}function ln(ce){return ce&&(ce.kind===114&&(ce.parent.kind===186||BC(ce.parent))||ce.kind===131&&ce.parent.kind===182)}function Ht(ce){if(ce){const Ne=ce.parent.kind;switch(ce.kind){case 59:return Ne===172||Ne===171||Ne===169||Ne===260||wT(Ne);case 64:return Ne===265||Ne===168;case 130:return Ne===234;case 30:return Ne===183||Ne===216;case 96:return Ne===168;case 152:return Ne===238}}return!1}function Ue(){var ce,Ne;if(!os()||(E.assert(!(c!=null&&c.data),"Should not run 'collectAutoImports' when faster path is available via `data`"),c&&!c.source))return;K|=1;const _t=U===$&&ee?"":U&&Ie(U)?U.text.toLowerCase():"",Tt=(ce=u.getModuleSpecifierCache)==null?void 0:ce.call(u),Jt=cN(n,u,e,o,g),ar=(Ne=u.getPackageJsonAutoImportProvider)==null?void 0:Ne.call(u),Er=c?void 0:cP(n,o,u);ZEe("collectAutoImports",u,be||(be=lu.createImportSpecifierResolver(n,e,u,o)),e,s,o,!!ee,I1(oe),fi=>{Jt.search(n.path,ue,(oi,Wr)=>{if(!Sf(oi,Fa(u.getCompilationSettings()))||!c&&BT(oi)||!ge&&!ee&&!(Wr&111551)||ge&&!(Wr&790504))return!1;const Cn=oi.charCodeAt(0);return ue&&(Cn<65||Cn>90)?!1:c?!0:k3e(oi,_t)},(oi,Wr,Cn,Qi)=>{if(c&&!ct(oi,uo=>c.source===vp(uo.moduleSymbol.name))||(oi=An(oi,Nr),!oi.length))return;const pi=fi.tryResolve(oi,Cn)||{};if(pi==="failed")return;let ci=oi[0],In;pi!=="skipped"&&({exportInfo:ci=oi[0],moduleSpecifier:In}=pi);const is=ci.exportKind===1,pr=is&&xC(ci.symbol)||ci.symbol;Et(pr,{kind:In?32:4,moduleSpecifier:In,symbolName:Wr,exportMapKey:Qi,exportName:ci.exportKind===2?"export=":ci.symbol.name,fileName:ci.moduleFileName,isDefaultExport:is,moduleSymbol:ci.moduleSymbol,isFromPackageJson:ci.isFromPackageJson})}),Oe=fi.skippedAny(),K|=fi.resolvedAny()?8:0,K|=fi.resolvedBeyondLimit()?16:0});function Nr(fi){const oi=Wn(fi.moduleSymbol.valueDeclaration,Ni);if(!oi){const Wr=vp(fi.moduleSymbol.name);return nm.nodeCoreModules.has(Wr)&&Vi(Wr,"node:")!==tM(n,e)?!1:Er?Er.allowsImportingAmbientModule(fi.moduleSymbol,Fe(fi.isFromPackageJson)):!0}return $G(fi.isFromPackageJson?ar:e,n,oi,o,Er,Fe(fi.isFromPackageJson),Tt)}}function Et(ce,Ne){const Ce=Ks(ce);De[Ce]!==uu.GlobalsOrKeywords&&(xe[me.length]=Ne,De[Ce]=ee?uu.LocationPriority:uu.AutoImportSuggestions,me.push(ce))}function fr(ce,Ne){Hr(oe)||ce.forEach(Ce=>{if(!Hn(Ce))return;const _t=NQ(Ce,Fa(i),void 0,0,!1);if(!_t)return;const{name:Tt}=_t,Jt=L$e(Ce,Tt,Ne,e,u,i,o,f);if(!Jt)return;const ar={kind:128,...Jt};K|=32,xe[me.length]=ar,me.push(Ce)})}function Hn(ce){return!!(ce.flags&8196)}function ei(ce,Ne,Ce){let _t=ce;for(;_t&&!eG(_t,Ne,Ce);)_t=_t.parent;return _t}function Ii(ce){const Ne=To(),Ce=_a(ce)||mt(ce)||Dt(ce)||ns(ce)||hO(ce);return t("getCompletionsAtPosition: isCompletionListBlocker: "+(To()-Ne)),Ce}function ns(ce){if(ce.kind===12)return!0;if(ce.kind===32&&ce.parent){if(oe===ce.parent&&(oe.kind===286||oe.kind===285))return!1;if(ce.parent.kind===286)return oe.parent.kind!==286;if(ce.parent.kind===287||ce.parent.kind===285)return!!ce.parent.parent&&ce.parent.parent.kind===284}return!1}function Vs(){if($){const ce=$.parent.kind,Ne=IQ($);switch(Ne){case 28:return ce===213||ce===176||ce===214||ce===209||ce===226||ce===184||ce===210;case 21:return ce===213||ce===176||ce===214||ce===217||ce===196;case 23:return ce===209||ce===181||ce===167;case 144:case 145:case 102:return!0;case 25:return ce===267;case 19:return ce===263||ce===210;case 64:return ce===260||ce===226;case 16:return ce===228;case 17:return ce===239;case 134:return ce===174||ce===304;case 42:return ce===174}if(YM(Ne))return!0}return!1}function _a(ce){return(TV(ce)||tz(ce))&&(VA(ce,s)||s===ce.end&&(!!ce.isUnterminated||TV(ce)))}function cr(){const ce=eXe($);if(!ce)return 0;const Ce=(cx(ce.parent)?ce.parent:void 0)||ce,_t=h3e(Ce,d);if(!_t)return 0;const Tt=d.getTypeFromTypeNode(Ce),Jt=OQ(_t,d),ar=OQ(Tt,d),Er=new Set;return ar.forEach(Nr=>Er.add(Nr.escapedName)),me=es(me,An(Jt,Nr=>!Er.has(Nr.escapedName))),ke=0,ae=!0,1}function br(){const ce=me.length,Ne=$$e($,s,n);if(!Ne)return 0;ke=0;let Ce,_t;if(Ne.kind===210){const Tt=iXe(Ne,d);if(Tt===void 0)return Ne.flags&67108864?2:0;const Jt=d.getContextualType(Ne,4),ar=(Jt||Tt).getStringIndexType(),Er=(Jt||Tt).getNumberIndexType();if(ae=!!ar||!!Er,Ce=FQ(Tt,Jt,Ne,d),_t=Ne.properties,Ce.length===0&&!Er)return 0}else{E.assert(Ne.kind===206),ae=!1;const Tt=Hd(Ne.parent);if(!nC(Tt))return E.fail("Root declaration is not variable-like.");let Jt=Z0(Tt)||!!Vl(Tt)||Tt.parent.parent.kind===250;if(!Jt&&Tt.kind===169&&(ot(Tt.parent)?Jt=!!d.getContextualType(Tt.parent):(Tt.parent.kind===174||Tt.parent.kind===178)&&(Jt=ot(Tt.parent.parent)&&!!d.getContextualType(Tt.parent.parent))),Jt){const ar=d.getTypeAtLocation(Ne);if(!ar)return 2;Ce=d.getPropertiesOfType(ar).filter(Er=>d.isPropertyAccessible(Ne,!1,!1,ar,Er)),_t=Ne.elements}}if(Ce&&Ce.length>0){const Tt=Yt(Ce,E.checkDefined(_t));me=es(me,Tt),W(),Ne.kind===210&&o.includeCompletionsWithObjectLiteralMethodSnippets&&o.includeCompletionsWithInsertText&&(St(ce),fr(Tt,Ne))}return 1}function Le(){if(!$)return 0;const ce=$.kind===19||$.kind===28?Wn($.parent,oF):OL($)?Wn($.parent.parent,oF):void 0;if(!ce)return 0;OL($)||(Se=8);const{moduleSpecifier:Ne}=ce.kind===275?ce.parent.parent:ce.parent;if(!Ne)return ae=!0,ce.kind===275?2:0;const Ce=d.getSymbolAtLocation(Ne);if(!Ce)return ae=!0,2;ke=3,ae=!1;const _t=d.getExportsAndPropertiesOfModule(Ce),Tt=new Set(ce.elements.filter(ar=>!V(ar)).map(ar=>(ar.propertyName||ar.name).escapedText)),Jt=_t.filter(ar=>ar.escapedName!=="default"&&!Tt.has(ar.escapedName));return me=es(me,Jt),Jt.length||(Se=0),1}function rt(){if($===void 0)return 0;const ce=$.kind===19||$.kind===28?Wn($.parent,fx):$.kind===59?Wn($.parent.parent,fx):void 0;if(ce===void 0)return 0;const Ne=new Set(ce.elements.map(AF));return me=An(d.getTypeAtLocation(ce).getApparentProperties(),Ce=>!Ne.has(Ce.escapedName)),1}function tt(){var ce;const Ne=$&&($.kind===19||$.kind===28)?Wn($.parent,Xf):void 0;if(!Ne)return 0;const Ce=Pr(Ne,pd(Ni,Sc));return ke=5,ae=!1,(ce=Ce.locals)==null||ce.forEach((_t,Tt)=>{var Jt,ar;me.push(_t),(ar=(Jt=Ce.symbol)==null?void 0:Jt.exports)!=null&&ar.has(Tt)&&(De[Ks(_t)]=uu.OptionalMember)}),1}function yt(){const ce=K$e(n,$,oe,s);if(!ce)return 0;if(ke=3,ae=!0,Se=$.kind===42?0:$n(ce)?2:3,!$n(ce))return 1;const Ne=$.kind===27?$.parent.parent:$.parent;let Ce=Tl(Ne)?Lu(Ne):0;if($.kind===80&&!V($))switch($.getText()){case"private":Ce=Ce|2;break;case"static":Ce=Ce|256;break;case"override":Ce=Ce|16;break}if(ec(Ne)&&(Ce|=256),!(Ce&2)){const _t=$n(ce)&&Ce&16?TT(Ud(ce)):kE(ce),Tt=Zs(_t,Jt=>{const ar=d.getTypeAtLocation(Jt);return Ce&256?(ar==null?void 0:ar.symbol)&&d.getPropertiesOfType(d.getTypeOfSymbolAtLocation(ar.symbol,ce)):ar&&d.getPropertiesOfType(ar)});me=es(me,A(Tt,ce.members,Ce)),er(me,(Jt,ar)=>{const Er=Jt==null?void 0:Jt.valueDeclaration;if(Er&&Tl(Er)&&Er.name&&Pa(Er.name)){const Nr={kind:512,symbolName:d.symbolToString(Jt)};xe[ar]=Nr}})}return 1}function ne(ce){return!!ce.parent&&rs(ce.parent)&&sc(ce.parent.parent)&&(lE(ce.kind)||eh(ce))}function we(ce){if(ce){const Ne=ce.parent;switch(ce.kind){case 21:case 28:return sc(ce.parent)?ce.parent:void 0;default:if(ne(ce))return Ne.parent}}}function et(ce){if(ce){let Ne;const Ce=Pr(ce.parent,_t=>$n(_t)?"quit":fo(_t)&&Ne===_t.body?!0:(Ne=_t,!1));return Ce&&Ce}}function B(ce){if(ce){const Ne=ce.parent;switch(ce.kind){case 32:case 31:case 44:case 80:case 211:case 292:case 291:case 293:if(Ne&&(Ne.kind===285||Ne.kind===286)){if(ce.kind===32){const Ce=Qc(ce.pos,n,void 0);if(!Ne.typeArguments||Ce&&Ce.kind===44)break}return Ne}else if(Ne.kind===291)return Ne.parent.parent;break;case 11:if(Ne&&(Ne.kind===291||Ne.kind===293))return Ne.parent.parent;break;case 20:if(Ne&&Ne.kind===294&&Ne.parent&&Ne.parent.kind===291)return Ne.parent.parent.parent;if(Ne&&Ne.kind===293)return Ne.parent.parent;break}}}function Ge(ce,Ne){return n.getLineEndOfPosition(ce.getEnd())=ce.pos;case 25:return Ce===207;case 59:return Ce===208;case 23:return Ce===207;case 21:return Ce===299||nt(Ce);case 19:return Ce===266;case 30:return Ce===263||Ce===231||Ce===264||Ce===265||wT(Ce);case 126:return Ce===172&&!$n(Ne.parent);case 26:return Ce===169||!!Ne.parent&&Ne.parent.kind===207;case 125:case 123:case 124:return Ce===169&&!sc(Ne.parent);case 130:return Ce===276||Ce===281||Ce===274;case 139:case 153:return!LQ(ce);case 80:{if(Ce===276&&ce===Ne.name&&ce.text==="type"||Pr(ce.parent,hi)&&Ge(ce,s))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 Ce!==276;case 42:return As(ce.parent)&&!hc(ce.parent)}if(YM(IQ(ce))&&LQ(ce)||ne(ce)&&(!Ie(ce)||lE(IQ(ce))||V(ce)))return!1;switch(IQ(ce)){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 xs(ce.parent)}if(Pr(ce.parent,$n)&&ce===U&&Be(ce,s))return!1;const Tt=w1(ce.parent,172);if(Tt&&ce!==U&&$n(U.parent.parent)&&s<=U.end){if(Be(ce,U.end))return!1;if(ce.kind!==64&&(gA(Tt)||r5(Tt)))return!0}return eh(ce)&&!k_(ce.parent)&&!em(ce.parent)&&!(($n(ce.parent)||Bu(ce.parent)||Vo(ce.parent))&&(ce!==U||s>U.end))}function Be(ce,Ne){return ce.kind!==64&&(ce.kind===27||!qf(ce.end,Ne,n))}function nt(ce){return wT(ce)&&ce!==176}function Dt(ce){if(ce.kind===9){const Ne=ce.getFullText();return Ne.charAt(Ne.length-1)==="."}return!1}function ir(ce){return ce.parent.kind===261&&!HA(ce,n,d)}function Yt(ce,Ne){if(Ne.length===0)return ce;const Ce=new Set,_t=new Set;for(const Jt of Ne){if(Jt.kind!==303&&Jt.kind!==304&&Jt.kind!==208&&Jt.kind!==174&&Jt.kind!==177&&Jt.kind!==178&&Jt.kind!==305||V(Jt))continue;let ar;if(a0(Jt))Kt(Jt,Ce);else if(Ea(Jt)&&Jt.propertyName)Jt.propertyName.kind===80&&(ar=Jt.propertyName.escapedText);else{const Er=us(Jt);ar=Er&&qd(Er)?PE(Er):void 0}ar!==void 0&&_t.add(ar)}const Tt=ce.filter(Jt=>!_t.has(Jt.escapedName));return Pe(Ce,Tt),Tt}function Kt(ce,Ne){const Ce=ce.expression,_t=d.getSymbolAtLocation(Ce),Tt=_t&&d.getTypeOfSymbolAtLocation(_t,Ce),Jt=Tt&&Tt.properties;Jt&&Jt.forEach(ar=>{Ne.add(ar.name)})}function W(){me.forEach(ce=>{if(ce.flags&16777216){const Ne=Ks(ce);De[Ne]=De[Ne]??uu.OptionalMember}})}function Pe(ce,Ne){if(ce.size!==0)for(const Ce of Ne)ce.has(Ce.name)&&(De[Ks(Ce)]=uu.MemberDeclaredBySpreadAssignment)}function St(ce){for(let Ne=ce;Ne!_t.has(Tt.escapedName)&&!!Tt.declarations&&!(Hf(Tt)&2)&&!(Tt.valueDeclaration&&Iu(Tt.valueDeclaration)))}function le(ce,Ne){const Ce=new Set,_t=new Set;for(const Jt of Ne)V(Jt)||(Jt.kind===291?Ce.add(t3(Jt.name)):mx(Jt)&&Kt(Jt,_t));const Tt=ce.filter(Jt=>!Ce.has(Jt.escapedName));return Pe(_t,Tt),Tt}function V(ce){return ce.getStart(n)<=s&&s<=ce.getEnd()}}function $$e(e,t,n){var i;if(e){const{parent:s}=e;switch(e.kind){case 19:case 28:if(ua(s)||kp(s))return s;break;case 42:return hc(s)?Wn(s.parent,ua):void 0;case 134:return Wn(s.parent,ua);case 80:if(e.text==="async"&&k_(e.parent))return e.parent.parent;{if(ua(e.parent.parent)&&(a0(e.parent)||k_(e.parent)&&Ha(n,e.getEnd()).line!==Ha(n,t).line))return e.parent.parent;const c=Pr(s,zc);if((c==null?void 0:c.getLastToken(n))===e&&ua(c.parent))return c.parent}break;default:if((i=s.parent)!=null&&i.parent&&(hc(s.parent)||xf(s.parent)||J_(s.parent))&&ua(s.parent.parent))return s.parent.parent;if(a0(s)&&ua(s.parent))return s.parent;const o=Pr(s,zc);if(e.kind!==59&&(o==null?void 0:o.getLastToken(n))===e&&ua(o.parent))return o.parent}}}function AQ(e,t){const n=Qc(e,t);return n&&e<=n.end&&(pg(n)||c_(n.kind))?{contextToken:Qc(n.getFullStart(),t,void 0),previousToken:n}:{contextToken:n,previousToken:n}}function _3e(e,t,n,i){const s=t.isPackageJsonImport?i.getPackageJsonAutoImportProvider():n,o=s.getTypeChecker(),c=t.ambientModuleName?o.tryFindAmbientModule(t.ambientModuleName):t.fileName?o.getMergedSymbol(E.checkDefined(s.getSourceFile(t.fileName)).symbol):void 0;if(!c)return;let u=t.exportName==="export="?o.resolveExternalModuleSymbol(c):o.tryGetMemberInModuleExportsAndProperties(t.exportName,c);return u?(u=t.exportName==="default"&&xC(u)||u,{symbol:u,origin:R$e(t,e,c)}):void 0}function NQ(e,t,n,i,s){if(v$e(n))return;const o=m$e(n)?n.symbolName:e.name;if(o===void 0||e.flags&1536&&x8(o.charCodeAt(0))||V8(e))return;const c={name:o,needsConvertPropertyAccess:!1};if(Sf(o,t,s?1:0)||e.valueDeclaration&&Iu(e.valueDeclaration))return c;switch(i){case 3:return ofe(n)?{name:n.symbolName,needsConvertPropertyAccess:!1}:void 0;case 0:return{name:JSON.stringify(o),needsConvertPropertyAccess:!1};case 2:case 1:return o.charCodeAt(0)===32?void 0:{name:o,needsConvertPropertyAccess:!0};case 5:case 4:return c;default:E.assertNever(i)}}function f3e(e,t){if(!t)return p3e(e);const n=e+8+1;return ZM[n]||(ZM[n]=p3e(e).filter(i=>!X$e(Ov(i.name))))}function p3e(e){return ZM[e]||(ZM[e]=Sfe().filter(t=>{const n=Ov(t.name);switch(e){case 0:return!1;case 1:return m3e(n)||n===138||n===144||n===156||n===145||n===128||eP(n)&&n!==157;case 5:return m3e(n);case 2:return YM(n);case 3:return d3e(n);case 4:return lE(n);case 6:return eP(n)||n===87;case 7:return eP(n);case 8:return n===156;default:return E.assertNever(e)}}))}function X$e(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 d3e(e){return e===148}function YM(e){switch(e){case 128:case 129:case 137:case 139:case 153:case 134:case 138:case 164:return!0;default:return rz(e)}}function m3e(e){return e===134||e===135||e===160||e===130||e===152||e===156||!J5(e)&&!YM(e)}function IQ(e){return Ie(e)?v1(e)??0:e.kind}function Q$e(e,t){const n=[];if(e){const i=e.getSourceFile(),s=e.parent,o=i.getLineAndCharacterOfPosition(e.end).line,c=i.getLineAndCharacterOfPosition(t).line;(il(s)||Tc(s)&&s.moduleSpecifier)&&e===s.moduleSpecifier&&o===c&&n.push({name:Ws(132),kind:"keyword",kindModifiers:"",sortText:uu.GlobalsOrKeywords})}return n}function Y$e(e,t){return Pr(e,n=>Xk(n)&&WA(n,t)?!0:vd(n)?"quit":!1)}function FQ(e,t,n,i){const s=t&&t!==e,o=s&&!(t.flags&3)?i.getUnionType([e,t]):e,c=Z$e(o,n,i);return o.isClass()&&g3e(c)?[]:s?An(c,u):c;function u(f){return gr(f.declarations)?ct(f.declarations,g=>g.parent!==n):!0}}function Z$e(e,t,n){return e.isUnion()?n.getAllPossiblePropertiesOfTypes(An(e.types,i=>!(i.flags&402784252||n.isArrayLikeType(i)||n.isTypeInvalidDueToUnionDiscriminant(i,t)||n.typeHasCallOrConstructSignatures(i)||i.isClass()&&g3e(i.getApparentProperties())))):e.getApparentProperties()}function g3e(e){return ct(e,t=>!!(Hf(t)&6))}function OQ(e,t){return e.isUnion()?E.checkEachDefined(t.getAllPossiblePropertiesOfTypes(e.types),"getAllPossiblePropertiesOfTypes() should all be defined"):E.checkEachDefined(e.getApparentProperties(),"getApparentProperties() should all be defined")}function K$e(e,t,n,i){switch(n.kind){case 358:return Wn(n.parent,UT);case 1:const s=Wn(Po(Ls(n.parent,Ni).statements),UT);if(s&&!qa(s,20,e))return s;break;case 81:if(Wn(n.parent,xs))return Pr(n,$n);break;case 80:{if(v1(n)||xs(n.parent)&&n.parent.initializer===n)return;if(LQ(n))return Pr(n,UT)}}if(t){if(n.kind===137||Ie(t)&&xs(t.parent)&&$n(n))return Pr(t,$n);switch(t.kind){case 64:return;case 27:case 20:return LQ(n)&&n.parent.name===n?n.parent.parent:Wn(n,UT);case 19:case 28:return Wn(t.parent,UT);default:if(UT(n)){if(Ha(e,t.getEnd()).line!==Ha(e,i).line)return n;const s=$n(t.parent.parent)?YM:d3e;return s(t.kind)||t.kind===42||Ie(t)&&s(v1(t)??0)?t.parent.parent:void 0}return}}}function eXe(e){if(!e)return;const t=e.parent;switch(e.kind){case 19:if(z_(t))return t;break;case 27:case 28:case 80:if(t.kind===171&&z_(t.parent))return t.parent;break}}function h3e(e,t){if(!e)return;if(ki(e)&&n5(e.parent))return t.getTypeArgumentConstraint(e);const n=h3e(e.parent,t);if(n)switch(e.kind){case 171:return t.getTypeOfPropertyOfContextualType(n,e.symbol.escapedName);case 193:case 187:case 192:return n}}function LQ(e){return e.parent&&X7(e.parent)&&UT(e.parent.parent)}function tXe(e,t,n,i){switch(t){case".":case"@":return!0;case'"':case"'":case"`":return!!n&&bce(n)&&i===n.getStart(e)+1;case"#":return!!n&&Pi(n)&&!!Nl(n);case"<":return!!n&&n.kind===30&&(!Zr(n.parent)||y3e(n.parent));case"/":return!!n&&(Ma(n)?!!I8(n):n.kind===44&&l2(n.parent));case" ":return!!n&&_3(n)&&n.parent.kind===312;default:return E.assertNever(t)}}function y3e({left:e}){return _c(e)}function rXe(e,t,n){const i=n.resolveName("self",void 0,111551,!1);if(i&&n.getTypeOfSymbolAtLocation(i,t)===e)return!0;const s=n.resolveName("global",void 0,111551,!1);if(s&&n.getTypeOfSymbolAtLocation(s,t)===e)return!0;const o=n.resolveName("globalThis",void 0,111551,!1);return!!(o&&n.getTypeOfSymbolAtLocation(o,t)===e)}function nXe(e){return!!(e.valueDeclaration&&Lu(e.valueDeclaration)&256&&$n(e.valueDeclaration.parent))}function iXe(e,t){const n=t.getContextualType(e);if(n)return n;const i=Yh(e.parent);if(Zr(i)&&i.operatorToken.kind===64&&e===i.left)return t.getTypeAtLocation(i);if(ot(i))return t.getContextualType(i)}function v3e(e,t){var n,i,s;let o,c=!1;const u=f();return{isKeywordOnlyCompletion:c,keywordCompletion:o,isNewIdentifierLocation:!!(u||o===156),isTopLevelTypeOnly:!!((i=(n=Wn(u,il))==null?void 0:n.importClause)!=null&&i.isTypeOnly)||!!((s=Wn(u,El))!=null&&s.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!u&&S3e(u,e),replacementSpan:sXe(u)};function f(){const g=e.parent;if(El(g)){const d=g.getLastToken(t);if(Ie(e)&&d!==e){o=161,c=!0;return}return o=e.kind===156?void 0:156,mfe(g.moduleReference)?g:void 0}if(S3e(g,e)&&T3e(g.parent))return g;if(sh(g)||my(g)){if(!g.parent.isTypeOnly&&(e.kind===19||e.kind===102||e.kind===28)&&(o=156),T3e(g))if(e.kind===20||e.kind===80)c=!0,o=161;else return g.parent.parent;return}if(Tc(g)&&e.kind===42||Xf(g)&&e.kind===20){c=!0,o=161;return}if(_3(e)&&Ni(g))return o=156,e;if(_3(e)&&il(g))return o=156,mfe(g.moduleSpecifier)?g:void 0}}function sXe(e){var t;if(!e)return;const n=Pr(e,pd(il,El))??e,i=n.getSourceFile();if(jb(n,i))return Zu(n,i);E.assert(n.kind!==102&&n.kind!==276);const s=n.kind===272?b3e((t=n.importClause)==null?void 0:t.namedBindings)??n.moduleSpecifier:n.moduleReference,o={pos:n.getFirstToken().getStart(),end:s.pos};if(jb(o,i))return by(o)}function b3e(e){var t;return wn((t=Wn(e,sh))==null?void 0:t.elements,n=>{var i;return!n.propertyName&&BT(n.name.text)&&((i=Qc(n.name.pos,e.getSourceFile(),e))==null?void 0:i.kind)!==28})}function S3e(e,t){return x_(e)&&(e.isTypeOnly||t===e.name&&OL(t))}function T3e(e){if(!mfe(e.parent.parent.moduleSpecifier)||e.parent.name)return!1;if(sh(e)){const t=b3e(e);return(t?e.elements.indexOf(t):e.elements.length)<2}return!0}function mfe(e){var t;return _c(e)?!0:!((t=Wn(Bm(e)?e.expression:e,Ma))!=null&&t.text)}function aXe(e,t){if(!e)return;const n=Pr(e,s=>Vv(s)||x3e(s)||Ns(s)?"quit":(rs(s)||Vo(s))&&!i2(s.parent)),i=Pr(t,s=>Vv(s)||x3e(s)||Ns(s)?"quit":hi(s));return n||i}function x3e(e){return e.parent&&po(e.parent)&&(e.parent.body===e||e.kind===39)}function gfe(e,t,n=new Map){return i(e)||i(Ul(e.exportSymbol||e,t));function i(s){return!!(s.flags&788968)||t.isUnknownSymbol(s)||!!(s.flags&1536)&&qp(n,Ks(s))&&t.getExportsOfModule(s).some(o=>gfe(o,t,n))}}function oXe(e,t){const n=Ul(e,t).declarations;return!!gr(n)&&Wi(n,eM)}function k3e(e,t){if(t.length===0)return!0;let n=!1,i,s=0;const o=e.length;for(let c=0;c(e.ThisProperty="ThisProperty/",e.ClassMemberSnippet="ClassMemberSnippet/",e.TypeOnlyAlias="TypeOnlyAlias/",e.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",e.SwitchCases="SwitchCases/",e.ObjectLiteralMemberWithComma="ObjectLiteralMemberWithComma/",e))(yfe||{}),vfe=(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))(vfe||{}),bfe=(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))(bfe||{}),ZM=[],Sfe=Hu(()=>{const e=[];for(let t=83;t<=165;t++)e.push({name:Ws(t),kind:"keyword",kindModifiers:"",sortText:uu.GlobalsOrKeywords});return e})}});function Tfe(){const e=new Map;function t(n){const i=e.get(n.name);(!i||Pfe[i.kind]({name:bg(T.value,y),kindModifiers:"",kind:"string",sortText:uu.LocationPriority,replacementSpan:lG(t)}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,optionalReplacementSpan:d,entries:S}}default:return E.assertNever(e)}}function pXe(e,t,n,i,s,o,c,u){if(!i||!Ma(i))return;const f=P3e(t,i,n,s,o,u);return f&&dXe(e,i,f,t,s.getTypeChecker(),c)}function dXe(e,t,n,i,s,o){switch(n.kind){case 0:{const c=wn(n.paths,u=>u.name===e);return c&&QM(e,E3e(c.extension),c.kind,[Af(e)])}case 1:{const c=wn(n.symbols,u=>u.name===e);return c&&pfe(c,c.name,s,i,t,o)}case 2:return wn(n.types,c=>c.value===e)?QM(e,"","string",[Af(e)]):void 0;default:return E.assertNever(n)}}function C3e(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map(({name:s,kind:o,span:c,extension:u})=>({name:s,kind:o,kindModifiers:E3e(u),sortText:uu.LocationPriority,replacementSpan:c}))}}function E3e(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 E.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return E.assertNever(e)}}function P3e(e,t,n,i,s,o){const c=i.getTypeChecker(),u=xfe(t.parent);switch(u.kind){case 201:{const T=xfe(u.parent);return T.kind===205?{kind:0,paths:A3e(e,t,i,s,o)}:f(T)}case 303:return ua(u.parent)&&u.name===t?hXe(c,u.parent):g()||g(0);case 212:{const{expression:T,argumentExpression:k}=u;return t===Va(k)?D3e(c.getTypeAtLocation(T)):void 0}case 213:case 214:case 291:if(!NXe(t)&&!of(u)){const T=JN.getArgumentInfoForCompletions(u.kind===291?u.parent:t,n,e,c);return T&&gXe(T.invocation,t,T,c)||g(0)}case 272:case 278:case 283:return{kind:0,paths:A3e(e,t,i,s,o)};case 296:const d=nM(c,u.parent.clauses),y=g();return y?{kind:2,types:y.types.filter(T=>!d.hasValue(T.value)),isNewIdentifier:!1}:void 0;default:return g()||g(0)}function f(d){switch(d.kind){case 233:case 183:{const T=Pr(u,k=>k.parent===d);return T?{kind:2,types:RQ(c.getTypeArgumentConstraint(T)),isNewIdentifier:!1}:void 0}case 199:const{indexType:y,objectType:S}=d;return WA(y,n)?D3e(c.getTypeFromTypeNode(S)):void 0;case 192:{const T=f(xfe(d.parent));if(!T)return;const k=mXe(d,u);return T.kind===1?{kind:1,symbols:T.symbols.filter(w=>!bs(k,w.name)),hasIndexSignature:T.hasIndexSignature}:{kind:2,types:T.types.filter(w=>!bs(k,w.value)),isNewIdentifier:!1}}default:return}}function g(d=4){const y=RQ(UL(t,c,d));if(y.length)return{kind:2,types:y,isNewIdentifier:!1}}}function xfe(e){switch(e.kind){case 196:return R8(e);case 217:return Yh(e);default:return e}}function mXe(e,t){return Ri(e.types,n=>n!==t&&fy(n)&&aa(n.literal)?n.literal.text:void 0)}function gXe(e,t,n,i){let s=!1;const o=new Map,c=Fu(e)?E.checkDefined(Pr(t.parent,em)):t,u=i.getCandidateSignaturesForStringLiteralCompletions(e,c),f=Zs(u,g=>{if(!Su(g)&&n.argumentCount>g.parameters.length)return;let d=g.getTypeParameterAtPosition(n.argumentIndex);if(Fu(e)){const y=i.getTypeOfPropertyOfType(d,lw(c.name));y&&(d=y)}return s=s||!!(d.flags&4),RQ(d,o)});return gr(f)?{kind:2,types:f,isNewIdentifier:s}:void 0}function D3e(e){return e&&{kind:1,symbols:An(e.getApparentProperties(),t=>!(t.valueDeclaration&&Iu(t.valueDeclaration))),hasIndexSignature:NG(e)}}function hXe(e,t){const n=e.getContextualType(t);if(!n)return;const i=e.getContextualType(t,4);return{kind:1,symbols:FQ(n,i,t,e),hasIndexSignature:NG(n)}}function RQ(e,t=new Map){return e?(e=pG(e),e.isUnion()?Zs(e.types,n=>RQ(n,t)):e.isStringLiteral()&&!(e.flags&1024)&&qp(t,e.value)?[e]:Ve):Ve}function gP(e,t,n){return{name:e,kind:t,extension:n}}function kfe(e){return gP(e,"directory",void 0)}function w3e(e,t,n){const i=wXe(e,t),s=e.length===0?void 0:Wl(t,e.length);return n.map(({name:o,kind:c,extension:u})=>o.includes(Io)||o.includes(OD)?{name:o,kind:c,extension:u,span:s}:{name:o,kind:c,extension:u,span:i})}function A3e(e,t,n,i,s){return w3e(t.text,t.getStart(e)+1,yXe(e,t,n,i,s))}function yXe(e,t,n,i,s){const o=iu(t.text),c=Ma(t)?n.getModeForUsageLocation(e,t):void 0,u=e.path,f=Un(u),g=n.getCompilerOptions(),d=n.getTypeChecker(),y=Cfe(g,1,e,d,s,c);return AXe(o)||!g.baseUrl&&!g.paths&&(F_(o)||yee(o))?vXe(o,f,g,i,u,y):xXe(o,f,c,g,i,y,d)}function Cfe(e,t,n,i,s,o){return{extensionsToSearch:Mp(bXe(e,i)),referenceKind:t,importingSourceFile:n,endingPreference:s==null?void 0:s.importModuleSpecifierEnding,resolutionMode:o}}function vXe(e,t,n,i,s,o){return n.rootDirs?TXe(n.rootDirs,e,t,o,n,i,s):gs(LN(e,t,o,i,!0,s).values())}function bXe(e,t){const n=t?Ri(t.getAmbientModules(),o=>{const c=o.name.slice(1,-1);if(!(!c.startsWith("*.")||c.includes("/")))return c.slice(1)}):[],i=[...UE(e),n],s=Ru(e);return LL(s)?rw(e,i):i}function SXe(e,t,n,i){e=e.map(o=>ul(Hs(F_(o)?o:Mn(t,o))));const s=$o(e,o=>jp(o,n,t,i)?n.substr(o.length):void 0);return Nv([...e.map(o=>Mn(o,s)),n].map(o=>d1(o)),pb,mu)}function TXe(e,t,n,i,s,o,c){const u=s.project||o.getCurrentDirectory(),f=!(o.useCaseSensitiveFileNames&&o.useCaseSensitiveFileNames()),g=SXe(e,u,n,f);return Nv(Zs(g,d=>gs(LN(t,d,i,o,!0,c).values())),(d,y)=>d.name===y.name&&d.kind===y.kind&&d.extension===y.extension)}function LN(e,t,n,i,s,o,c=Tfe()){var u;e===void 0&&(e=""),e=iu(e),qh(e)||(e=Un(e)),e===""&&(e="."+Io),e=ul(e);const f=U0(t,e),g=qh(f)?f:Un(f);if(!s){const T=Tce(g,i);if(T){const w=RE(T,i).typesVersions;if(typeof w=="object"){const P=(u=n9(w))==null?void 0:u.paths;if(P){const F=Un(T),J=f.slice(ul(F).length);if(I3e(c,J,F,n,i,P))return c}}}}const d=!(i.useCaseSensitiveFileNames&&i.useCaseSensitiveFileNames());if(!XL(i,g))return c;const y=FG(i,g,n.extensionsToSearch,void 0,["./*"]);if(y)for(let T of y){if(T=Hs(T),o&&Gg(T,o,t,d)===0)continue;const{name:k,extension:w}=N3e(wc(T),i.getCompilationSettings(),n,!1);c.add(gP(k,"script",w))}const S=$L(i,g);if(S)for(const T of S){const k=wc(Hs(T));k!=="@types"&&c.add(kfe(k))}return c}function N3e(e,t,n,i){const s=h2.tryGetRealFileNameForNonJsDeclarationFileName(e);if(s)return{name:s,extension:nh(s)};if(n.referenceKind===0)return{name:e,extension:nh(e)};let o=pA({importModuleSpecifierEnding:n.endingPreference},t,n.importingSourceFile).getAllowedEndingsInPreferredOrder(n.resolutionMode);if(i&&(o=o.filter(u=>u!==0&&u!==1)),o[0]===3){if(Gc(e,dw))return{name:e,extension:nh(e)};const u=h2.tryGetJSExtensionForFile(e,t);return u?{name:N1(e,u),extension:u}:{name:e,extension:nh(e)}}if(!i&&(o[0]===0||o[0]===1)&&Gc(e,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:$u(e),extension:nh(e)};const c=h2.tryGetJSExtensionForFile(e,t);return c?{name:N1(e,c),extension:c}:{name:e,extension:nh(e)}}function I3e(e,t,n,i,s,o){const c=f=>o[f],u=(f,g)=>{const d=DC(f),y=DC(g),S=typeof d=="object"?d.prefix.length:f.length,T=typeof y=="object"?y.prefix.length:g.length;return wo(T,S)};return F3e(e,!1,t,n,i,s,ug(o),c,u)}function F3e(e,t,n,i,s,o,c,u,f){let g=[],d;for(const y of c){if(y===".")continue;const S=y.replace(/^\.\//,""),T=u(y);if(T){const k=DC(S);if(!k)continue;const w=typeof k=="object"&&a7(k,n);w&&(d===void 0||f(y,d)===-1)&&(d=y,g=g.filter(F=>!F.matchedPattern)),(typeof k=="string"||d===void 0||f(y,d)!==1)&&g.push({matchedPattern:w,results:kXe(S,T,n,i,s,t&&w,o).map(({name:F,kind:J,extension:U})=>gP(F,J,U))})}}return g.forEach(y=>y.results.forEach(S=>e.add(S))),d!==void 0}function xXe(e,t,n,i,s,o,c){const{baseUrl:u,paths:f}=i,g=Tfe(),d=Ru(i);if(u){const S=Hs(Mn(s.getCurrentDirectory(),u));LN(e,S,o,s,!1,void 0,g)}if(f){const S=G5(i,s);I3e(g,e,S,o,s,f)}const y=L3e(e);for(const S of EXe(e,y,c))g.add(gP(S,"external module name",void 0));if(j3e(s,i,t,y,o,g),LL(d)){let S=!1;if(y===void 0)for(const T of DXe(s,t)){const k=gP(T,"external module name",void 0);g.has(k.name)||(S=!0,g.add(k))}if(!S){let T=k=>{const w=Mn(k,"node_modules");XL(s,w)&&LN(e,w,o,s,!1,void 0,g)};if(y&&LF(i)){const k=T;T=w=>{const P=ll(e);P.shift();let F=P.shift();if(!F)return k(w);if(Vi(F,"@")){const $=P.shift();if(!$)return k(w);F=Mn(F,$)}const J=Mn(w,"node_modules",F),U=Mn(J,"package.json");if(sN(s,U)){const j=RE(U,s).exports;if(j){if(typeof j!="object"||j===null)return;const re=ug(j),R=P.join("/")+(P.length&&qh(e)?"/":""),Y=hy(i,n);F3e(g,!0,R,J,o,s,re,ue=>TT(O3e(j[ue],Y)),RU);return}}return k(w)}}Jp(t,T)}}return gs(g.values())}function O3e(e,t){if(typeof e=="string")return e;if(e&&typeof e=="object"&&!ts(e)){for(const n in e)if(n==="default"||t.includes(n)||_A(t,n)){const i=e[n];return O3e(i,t)}}}function L3e(e){return Efe(e)?qh(e)?e:Un(e):void 0}function kXe(e,t,n,i,s,o,c){if(!Yo(e,"*"))return e.includes("*")?Ve:g(e,"script");const u=e.slice(0,e.length-1),f=bB(n,u);if(f===void 0)return e[e.length-2]==="/"?g(u,"directory"):Zs(t,y=>{var S;return(S=M3e("",i,y,s,o,c))==null?void 0:S.map(({name:T,...k})=>({name:u+T,...k}))});return Zs(t,d=>M3e(f,i,d,s,o,c));function g(d,y){return Vi(d,n)?[{name:d1(d),kind:y,extension:void 0}]:Ve}}function M3e(e,t,n,i,s,o){if(!o.readDirectory)return;const c=DC(n);if(c===void 0||ls(c))return;const u=U0(c.prefix),f=qh(c.prefix)?u:Un(u),g=qh(c.prefix)?"":wc(u),d=Efe(e),y=d?qh(e)?e:Un(e):void 0,S=d?Mn(f,g+y):f,T=Hs(c.suffix),k=T&&H5("_"+T),w=k?[N1(T,k),T]:[T],P=Hs(Mn(t,S)),F=d?P:ul(P)+g,J=T?w.map(re=>"**/*"+re):["./*"],U=Ri(FG(o,P,i.extensionsToSearch,void 0,J),re=>{const R=j(re);if(R){if(Efe(R))return kfe(ll(R3e(R))[1]);const{name:Y,extension:ue}=N3e(R,o.getCompilationSettings(),i,s);return gP(Y,"script",ue)}}),$=T?Ve:Ri($L(o,P),re=>re==="node_modules"?void 0:kfe(re));return[...U,...$];function j(re){return $o(w,R=>{const Y=CXe(Hs(re),F,R);return Y===void 0?void 0:R3e(Y)})}}function CXe(e,t,n){return Vi(e,t)&&Yo(e,n)?e.slice(t.length,e.length-n.length):void 0}function R3e(e){return e[0]===Io?e.slice(1):e}function EXe(e,t,n){const s=n.getAmbientModules().map(o=>vp(o.name)).filter(o=>Vi(o,e)&&!o.includes("*"));if(t!==void 0){const o=ul(t);return s.map(c=>H4(c,o))}return s}function PXe(e,t,n,i){const s=Ui(e,t),o=_g(e.text,s.pos),c=o&&wn(o,k=>t>=k.pos&&t<=k.end);if(!c)return;const u=e.text.slice(c.pos,t),f=B3e.exec(u);if(!f)return;const[,g,d,y]=f,S=Un(e.path),T=d==="path"?LN(y,S,Cfe(n,0,e),i,!0,e.path):d==="types"?j3e(i,n,S,L3e(y),Cfe(n,1,e)):E.fail();return w3e(y,c.pos+g.length,gs(T.values()))}function j3e(e,t,n,i,s,o=Tfe()){const c=new Map,u=QL(()=>A3(t,e))||Ve;for(const g of u)f(g);for(const g of OG(n,e)){const d=Mn(Un(g),"node_modules/@types");f(d)}return o;function f(g){if(XL(e,g))for(const d of $L(e,g)){const y=fA(d);if(!(t.types&&!bs(t.types,y)))if(i===void 0)c.has(y)||(o.add(gP(y,"external module name",void 0)),c.set(y,!0));else{const S=Mn(g,d),T=FW(i,y,Zh(e));T!==void 0&&LN(T,S,s,e,!1,void 0,o)}}}}function DXe(e,t){if(!e.readFile||!e.fileExists)return Ve;const n=[];for(const i of OG(t,e)){const s=RE(i,e);for(const o of J3e){const c=s[o];if(c)for(const u in c)Za(c,u)&&!Vi(u,"@types/")&&n.push(u)}}return n}function wXe(e,t){const n=Math.max(e.lastIndexOf(Io),e.lastIndexOf(OD)),i=n!==-1?n+1:0,s=e.length-i;return s===0||Sf(e.substr(i,s),99)?void 0:Wl(t+i,s)}function AXe(e){if(e&&e.length>=2&&e.charCodeAt(0)===46){const t=e.length>=3&&e.charCodeAt(1)===46?2:1,n=e.charCodeAt(t);return n===47||n===92}return!1}function Efe(e){return e.includes(Io)}function NXe(e){return Rs(e.parent)&&bl(e.parent.arguments)===e&&Ie(e.parent.expression)&&e.parent.expression.escapedText==="require"}var Pfe,B3e,J3e,IXe=wt({"src/services/stringCompletions.ts"(){wse(),qn(),Dfe(),Pfe={directory:0,script:1,"external module name":2},B3e=/^(\/\/\/\s*pXe,getStringLiteralCompletions:()=>_Xe});var FXe=wt({"src/services/_namespaces/ts.Completions.StringCompletions.ts"(){IXe()}}),Bx={};vl(Bx,{CompletionKind:()=>bfe,CompletionSource:()=>yfe,SortText:()=>uu,StringCompletions:()=>jQ,SymbolOriginInfoKind:()=>vfe,createCompletionDetails:()=>QM,createCompletionDetailsForSymbol:()=>pfe,getCompletionEntriesFromSymbols:()=>_fe,getCompletionEntryDetails:()=>W$e,getCompletionEntrySymbol:()=>U$e,getCompletionsAtPosition:()=>b$e,getPropertiesForObjectExpression:()=>FQ,moduleSpecifierResolutionCacheAttemptLimit:()=>hfe,moduleSpecifierResolutionLimit:()=>MQ});var Dfe=wt({"src/services/_namespaces/ts.Completions.ts"(){uXe(),FXe()}});function wfe(e,t,n,i){const s=RXe(e,n,i);return(o,c,u)=>{const{directImports:f,indirectUsers:g}=OXe(e,t,s,c,n,i);return{indirectUsers:g,...LXe(f,o,c.exportKind,n,u)}}}function OXe(e,t,n,{exportingModuleSymbol:i,exportKind:s},o,c){const u=wx(),f=wx(),g=[],d=!!i.globalExports,y=d?void 0:[];return T(i),{directImports:g,indirectUsers:S()};function S(){if(d)return e;if(i.declarations)for(const U of i.declarations)Jv(U)&&t.has(U.getSourceFile().fileName)&&F(U);return y.map(wr)}function T(U){const $=J(U);if($){for(const j of $)if(u(j))switch(c&&c.throwIfCancellationRequested(),j.kind){case 213:if(of(j)){k(j);break}if(!d){const R=j.parent;if(s===2&&R.kind===260){const{name:Y}=R;if(Y.kind===80){g.push(Y);break}}}break;case 80:break;case 271:P(j,j.name,Rn(j,32),!1);break;case 272:g.push(j);const re=j.importClause&&j.importClause.namedBindings;re&&re.kind===274?P(j,re.name,!1,!0):!d&<(j)&&F(KM(j));break;case 278:j.exportClause?j.exportClause.kind===280?F(KM(j),!0):g.push(j):T(WXe(j,o));break;case 205:!d&&j.isTypeOf&&!j.qualifier&&w(j)&&F(j.getSourceFile(),!0),g.push(j);break;default:E.failBadSyntaxKind(j,"Unexpected import kind.")}}}function k(U){const $=Pr(U,BQ)||U.getSourceFile();F($,!!w(U,!0))}function w(U,$=!1){return Pr(U,j=>$&&BQ(j)?"quit":$p(j)&&ct(j.modifiers,nx))}function P(U,$,j,re){if(s===2)re||g.push(U);else if(!d){const R=KM(U);E.assert(R.kind===312||R.kind===267),j||MXe(R,$,o)?F(R,!0):F(R)}}function F(U,$=!1){if(E.assert(!d),!f(U)||(y.push(U),!$))return;const re=o.getMergedSymbol(U.symbol);if(!re)return;E.assert(!!(re.flags&1536));const R=J(re);if(R)for(const Y of R)Cg(Y)||F(KM(Y),!0)}function J(U){return n.get(Ks(U).toString())}}function LXe(e,t,n,i,s){const o=[],c=[];function u(S,T){o.push([S,T])}if(e)for(const S of e)f(S);return{importSearches:o,singleReferences:c};function f(S){if(S.kind===271){Nfe(S)&&g(S.name);return}if(S.kind===80){g(S);return}if(S.kind===205){if(S.qualifier){const w=lf(S.qualifier);w.escapedText===Xo(t)&&c.push(w)}else n===2&&c.push(S.argument.literal);return}if(S.moduleSpecifier.kind!==11)return;if(S.kind===278){S.exportClause&&Xf(S.exportClause)&&d(S.exportClause);return}const{name:T,namedBindings:k}=S.importClause||{name:void 0,namedBindings:void 0};if(k)switch(k.kind){case 274:g(k.name);break;case 275:(n===0||n===1)&&d(k);break;default:E.assertNever(k)}if(T&&(n===1||n===2)&&(!s||T.escapedText===RL(t))){const w=i.getSymbolAtLocation(T);u(T,w)}}function g(S){n===2&&(!s||y(S.escapedText))&&u(S,i.getSymbolAtLocation(S))}function d(S){if(S)for(const T of S.elements){const{name:k,propertyName:w}=T;if(y((w||k).escapedText))if(w)c.push(w),(!s||k.escapedText===t.escapedName)&&u(k,i.getSymbolAtLocation(k));else{const P=T.kind===281&&T.propertyName?i.getExportSpecifierLocalTargetSymbol(T):i.getSymbolAtLocation(k);u(k,P)}}}function y(S){return S===t.escapedName||n!==0&&S==="default"}}function MXe(e,t,n){const i=n.getSymbolAtLocation(t);return!!W3e(e,s=>{if(!Tc(s))return;const{exportClause:o,moduleSpecifier:c}=s;return!c&&o&&Xf(o)&&o.elements.some(u=>n.getExportSpecifierLocalTargetSymbol(u)===i)})}function z3e(e,t,n){var i;const s=[],o=e.getTypeChecker();for(const c of t){const u=n.valueDeclaration;if((u==null?void 0:u.kind)===312){for(const f of c.referencedFiles)e.getSourceFileFromReference(c,f)===u&&s.push({kind:"reference",referencingFile:c,ref:f});for(const f of c.typeReferenceDirectives){const g=(i=e.getResolvedTypeReferenceDirectives().get(f.fileName,f.resolutionMode||c.impliedNodeFormat))==null?void 0:i.resolvedTypeReferenceDirective;g!==void 0&&g.resolvedFileName===u.fileName&&s.push({kind:"reference",referencingFile:c,ref:f})}}V3e(c,(f,g)=>{o.getSymbolAtLocation(g)===n&&s.push(xo(f)?{kind:"implicit",literal:g,referencingFile:c}:{kind:"import",literal:g})})}return s}function RXe(e,t,n){const i=new Map;for(const s of e)n&&n.throwIfCancellationRequested(),V3e(s,(o,c)=>{const u=t.getSymbolAtLocation(c);if(u){const f=Ks(u).toString();let g=i.get(f);g||i.set(f,g=[]),g.push(o)}});return i}function W3e(e,t){return er(e.kind===312?e.statements:e.body.statements,n=>t(n)||BQ(n)&&er(n.body&&n.body.statements,t))}function V3e(e,t){if(e.externalModuleIndicator||e.imports!==void 0)for(const n of e.imports)t(TE(n),n);else W3e(e,n=>{switch(n.kind){case 278:case 272:{const i=n;i.moduleSpecifier&&aa(i.moduleSpecifier)&&t(i,i.moduleSpecifier);break}case 271:{const i=n;Nfe(i)&&t(i,i.moduleReference.expression);break}}})}function U3e(e,t,n,i){return i?s():s()||o();function s(){var f;const{parent:g}=e,d=g.parent;if(t.exportSymbol)return g.kind===211?(f=t.declarations)!=null&&f.some(T=>T===g)&&Zr(d)?S(d,!1):void 0:c(t.exportSymbol,u(g));{const T=BXe(g,e);if(T&&Rn(T,32))return El(T)&&T.moduleReference===e?i?void 0:{kind:0,symbol:n.getSymbolAtLocation(T.name)}:c(t,u(T));if(jm(g))return c(t,0);if(oc(g))return y(g);if(oc(d))return y(d);if(Zr(g))return S(g,!0);if(Zr(d))return S(d,!0);if(Zb(g)||LV(g))return c(t,0)}function y(T){if(!T.symbol.parent)return;const k=T.isExportEquals?2:1;return{kind:1,symbol:t,exportInfo:{exportingModuleSymbol:T.symbol.parent,exportKind:k}}}function S(T,k){let w;switch(fc(T)){case 1:w=0;break;case 2:w=2;break;default:return}const P=k?n.getSymbolAtLocation(DW(Ls(T.left,oo))):t;return P&&c(P,w)}}function o(){if(!JXe(e))return;let g=n.getImmediateAliasedSymbol(t);if(!g||(g=zXe(g,n),g.escapedName==="export="&&(g=jXe(g,n),g===void 0)))return;const d=RL(g);if(d===void 0||d==="default"||d===t.escapedName)return{kind:0,symbol:g}}function c(f,g){const d=Afe(f,g,n);return d&&{kind:1,symbol:f,exportInfo:d}}function u(f){return Rn(f,2048)?1:0}}function jXe(e,t){var n,i;if(e.flags&2097152)return t.getImmediateAliasedSymbol(e);const s=E.checkDefined(e.valueDeclaration);if(oc(s))return(n=Wn(s.expression,Wd))==null?void 0:n.symbol;if(Zr(s))return(i=Wn(s.right,Wd))==null?void 0:i.symbol;if(Ni(s))return s.symbol}function BXe(e,t){const n=hi(e)?e:Ea(e)?Wk(e):void 0;return n?e.name!==t||f2(n.parent)?void 0:ac(n.parent.parent)?n.parent.parent:void 0:e}function JXe(e){const{parent:t}=e;switch(t.kind){case 271:return t.name===e&&Nfe(t);case 276:return!t.propertyName;case 273:case 274:return E.assert(t.name===e),!0;case 208:return Hr(e)&&Uv(t.parent.parent);default:return!1}}function Afe(e,t,n){const i=e.parent;if(!i)return;const s=n.getMergedSymbol(i);return XA(s)?{exportingModuleSymbol:s,exportKind:t}:void 0}function zXe(e,t){if(e.declarations)for(const n of e.declarations){if(vu(n)&&!n.propertyName&&!n.parent.parent.moduleSpecifier)return t.getExportSpecifierLocalTargetSymbol(n)||e;if(Sn(n)&&yg(n.expression)&&!Pi(n.name))return t.getSymbolAtLocation(n);if(k_(n)&&Zr(n.parent.parent)&&fc(n.parent.parent)===2)return t.getExportSpecifierLocalTargetSymbol(n.name)}return e}function WXe(e,t){return t.getMergedSymbol(KM(e).symbol)}function KM(e){if(e.kind===213)return e.getSourceFile();const{parent:t}=e;return t.kind===312?t:(E.assert(t.kind===268),Ls(t.parent,BQ))}function BQ(e){return e.kind===267&&e.name.kind===11}function Nfe(e){return e.moduleReference.kind===283&&e.moduleReference.expression.kind===11}var Ife,Ffe,VXe=wt({"src/services/importTracker.ts"(){qn(),Ife=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e))(Ife||{}),Ffe=(e=>(e[e.Import=0]="Import",e[e.Export=1]="Export",e))(Ffe||{})}});function wg(e,t=1){return{kind:t,node:e.name||e,context:UXe(e)}}function Ofe(e){return e&&e.kind===void 0}function UXe(e){if(yu(e))return pS(e);if(e.parent){if(!yu(e.parent)&&!oc(e.parent)){if(Hr(e)){const n=Zr(e.parent)?e.parent:oo(e.parent)&&Zr(e.parent.parent)&&e.parent.parent.left===e.parent?e.parent.parent:void 0;if(n&&fc(n)!==0)return pS(n)}if(Kd(e.parent)||l2(e.parent))return e.parent.parent;if(Xb(e.parent)||c2(e.parent)||aE(e.parent))return e.parent;if(Ma(e)){const n=I8(e);if(n){const i=Pr(n,s=>yu(s)||Ei(s)||Xk(s));return yu(i)?pS(i):i}}const t=Pr(e,Pa);return t?pS(t.parent):void 0}if(e.parent.name===e||sc(e.parent)||oc(e.parent)||(DT(e.parent)||Ea(e.parent))&&e.parent.propertyName===e||e.kind===90&&Rn(e.parent,2080))return pS(e.parent)}}function pS(e){if(e)switch(e.kind){case 260:return!dl(e.parent)||e.parent.declarations.length!==1?e:ac(e.parent.parent)?e.parent.parent:Gk(e.parent.parent)?pS(e.parent.parent):e.parent;case 208:return pS(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 Cl(e.parent)?e.parent:e;case 250:case 249:return{start:e.initializer,end:e.expression};case 303:case 304:return u0(e.parent)?pS(Pr(e.parent,t=>Zr(t)||Gk(t))):e;case 255:return{start:wn(e.getChildren(e.getSourceFile()),t=>t.kind===109),end:e.caseBlock};default:return e}}function Lfe(e,t,n){if(!n)return;const i=Ofe(n)?tR(n.start,t,n.end):tR(n,t);return i.start!==e.start||i.length!==e.length?{contextSpan:i}:void 0}function qXe(e,t,n,i,s){const o=u_(i,s),c={use:1},u=Jx.getReferencedSymbolsForNode(s,o,e,n,t,c),f=e.getTypeChecker(),g=Jx.getAdjustedNode(o,c),d=HXe(g)?f.getSymbolAtLocation(g):void 0;return!u||!u.length?void 0:Ri(u,({definition:y,references:S})=>y&&{definition:f.runWithCancellationToken(t,T=>XXe(y,T,o)),references:S.map(T=>YXe(T,d))})}function HXe(e){return e.kind===90||!!xE(e)||B8(e)||e.kind===137&&sc(e.parent)}function GXe(e,t,n,i,s){const o=u_(i,s);let c;const u=q3e(e,t,n,o,s);if(o.parent.kind===211||o.parent.kind===208||o.parent.kind===212||o.kind===108)c=u&&[...u];else if(u){const g=bD(u),d=new Map;for(;!g.isEmpty();){const y=g.dequeue();if(!qp(d,Oa(y.node)))continue;c=_r(c,y);const S=q3e(e,t,n,y.node,y.node.pos);S&&g.enqueue(...S)}}const f=e.getTypeChecker();return nr(c,g=>KXe(g,f))}function q3e(e,t,n,i,s){if(i.kind===312)return;const o=e.getTypeChecker();if(i.parent.kind===304){const c=[];return Jx.getReferenceEntriesForShorthandPropertyAssignment(i,o,u=>c.push(wg(u))),c}else if(i.kind===108||o_(i.parent)){const c=o.getSymbolAtLocation(i);return c.valueDeclaration&&[wg(c.valueDeclaration)]}else return H3e(s,i,e,n,t,{implementations:!0,use:1})}function $Xe(e,t,n,i,s,o,c){return nr(G3e(Jx.getReferencedSymbolsForNode(s,i,e,n,t,o)),u=>c(u,i,e.getTypeChecker()))}function H3e(e,t,n,i,s,o={},c=new Set(i.map(u=>u.fileName))){return G3e(Jx.getReferencedSymbolsForNode(e,t,n,i,s,o,c))}function G3e(e){return e&&Zs(e,t=>t.references)}function XXe(e,t,n){const i=(()=>{switch(e.type){case 0:{const{symbol:d}=e,{displayParts:y,kind:S}=$3e(d,t,n),T=y.map(P=>P.text).join(""),k=d.declarations&&bl(d.declarations),w=k?us(k)||k:n;return{...eR(w),name:T,kind:S,displayParts:y,context:pS(k)}}case 1:{const{node:d}=e;return{...eR(d),name:d.text,kind:"label",displayParts:[C_(d.text,17)]}}case 2:{const{node:d}=e,y=Ws(d.kind);return{...eR(d),name:y,kind:"keyword",displayParts:[{text:y,kind:"keyword"}]}}case 3:{const{node:d}=e,y=t.getSymbolAtLocation(d),S=y&&m0.getSymbolDisplayPartsDocumentationAndSymbolKind(t,y,d.getSourceFile(),cS(d),d).displayParts||[Af("this")];return{...eR(d),name:"this",kind:"var",displayParts:S}}case 4:{const{node:d}=e;return{...eR(d),name:d.text,kind:"var",displayParts:[C_(jc(d),8)]}}case 5:return{textSpan:by(e.reference),sourceFile:e.file,name:e.reference.fileName,kind:"string",displayParts:[C_(`"${e.reference.fileName}"`,8)]};default:return E.assertNever(e)}})(),{sourceFile:s,textSpan:o,name:c,kind:u,displayParts:f,context:g}=i;return{containerKind:"",containerName:"",fileName:s.fileName,kind:u,name:c,textSpan:o,displayParts:f,...Lfe(o,s,g)}}function eR(e){const t=e.getSourceFile();return{sourceFile:t,textSpan:tR(Pa(e)?e.expression:e,t)}}function $3e(e,t,n){const i=Jx.getIntersectingMeaningFromDeclarations(n,e),s=e.declarations&&bl(e.declarations)||n,{displayParts:o,symbolKind:c}=m0.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,s.getSourceFile(),s,s,i);return{displayParts:o,kind:c}}function QXe(e,t,n,i,s){return{...JQ(e),...i&&ZXe(e,t,n,s)}}function YXe(e,t){const n=X3e(e);return t?{...n,isDefinition:e.kind!==0&&Q3e(e.node,t)}:n}function X3e(e){const t=JQ(e);if(e.kind===0)return{...t,isWriteAccess:!1};const{kind:n,node:i}=e;return{...t,isWriteAccess:Rfe(i),isInString:n===2?!0:void 0}}function JQ(e){if(e.kind===0)return{textSpan:e.textSpan,fileName:e.fileName};{const t=e.node.getSourceFile(),n=tR(e.node,t);return{textSpan:n,fileName:t.fileName,...Lfe(n,t,e.context)}}}function ZXe(e,t,n,i){if(e.kind!==0&&Ie(t)){const{node:s,kind:o}=e,c=s.parent,u=t.text,f=k_(c);if(f||ZA(c)&&c.name===s&&c.dotDotDotToken===void 0){const g={prefixText:u+": "},d={suffixText:": "+u};if(o===3)return g;if(o===4)return d;if(f){const y=c.parent;return ua(y)&&Zr(y.parent)&&yg(y.parent.left)?g:d}else return g}else if(x_(c)&&!c.propertyName){const g=vu(t.parent)?n.getExportSpecifierLocalTargetSymbol(t.parent):n.getSymbolAtLocation(t);return bs(g.declarations,c)?{prefixText:u+" as "}:Zf}else if(vu(c)&&!c.propertyName)return t===e.node||n.getSymbolAtLocation(t)===n.getSymbolAtLocation(e.node)?{prefixText:u+" as "}:{suffixText:" as "+u}}if(e.kind!==0&&j_(e.node)&&oo(e.node.parent)){const s=hG(i);return{prefixText:s,suffixText:s}}return Zf}function KXe(e,t){const n=JQ(e);if(e.kind!==0){const{node:i}=e;return{...n,...eQe(i,t)}}else return{...n,kind:"",displayParts:[]}}function eQe(e,t){const n=t.getSymbolAtLocation(yu(e)&&e.name?e.name:e);return n?$3e(n,t,e):e.kind===210?{kind:"interface",displayParts:[Tu(21),Af("object literal"),Tu(22)]}:e.kind===231?{kind:"local class",displayParts:[Tu(21),Af("anonymous local class"),Tu(22)]}:{kind:T2(e),displayParts:[]}}function tQe(e){const t=JQ(e);if(e.kind===0)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};const n=Rfe(e.node),i={textSpan:t.textSpan,kind:n?"writtenReference":"reference",isInString:e.kind===2?!0:void 0,...t.contextSpan&&{contextSpan:t.contextSpan}};return{fileName:t.fileName,span:i}}function tR(e,t,n){let i=e.getStart(t),s=(n||e).getEnd();return Ma(e)&&s-i>2&&(E.assert(n===void 0),i+=1,s-=1),(n==null?void 0:n.kind)===269&&(s=n.getFullStart()),Rc(i,s)}function Mfe(e){return e.kind===0?e.textSpan:tR(e.node,e.node.getSourceFile())}function Rfe(e){const t=xE(e);return!!t&&rQe(t)||e.kind===90||VT(e)}function Q3e(e,t){var n;if(!t)return!1;const i=xE(e)||(e.kind===90?e.parent:B8(e)||e.kind===137&&sc(e.parent)?e.parent.parent:void 0),s=i&&Zr(i)?i.left:void 0;return!!(i&&((n=t.declarations)!=null&&n.some(o=>o===i||o===s)))}function rQe(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!u0(e.parent);case 262:case 218:case 176:case 174:case 177:case 178:return!!e.body;case 260:case 172:return!!e.initializer||f2(e.parent);case 173:case 171:case 355:case 348:return!1;default:return E.failBadSyntaxKind(e)}}var jfe,Bfe,Jfe,Jx,nQe=wt({"src/services/findAllReferences.ts"(){qn(),zfe(),jfe=(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))(jfe||{}),Bfe=(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))(Bfe||{}),Jfe=(e=>(e[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename",e))(Jfe||{}),(e=>{function t(Le,rt,tt,yt,ne,we={},et=new Set(yt.map(B=>B.fileName))){var B,Ge;if(rt=n(rt,we),Ni(rt)){const Kt=L6.getReferenceAtPosition(rt,Le,tt);if(!(Kt!=null&&Kt.file))return;const W=tt.getTypeChecker().getMergedSymbol(Kt.file.symbol);if(W)return g(tt,W,!1,yt,et);const Pe=tt.getFileIncludeReasons();return Pe?[{definition:{type:5,reference:Kt.reference,file:rt},references:s(Kt.file,Pe,tt)||Ve}]:void 0}if(!we.implementations){const Kt=y(rt,yt,ne);if(Kt)return Kt}const mt=tt.getTypeChecker(),Be=mt.getSymbolAtLocation(sc(rt)&&rt.parent.name||rt);if(!Be){if(!we.implementations&&Ma(rt)){if(jL(rt)){const Kt=tt.getFileIncludeReasons(),W=(Ge=(B=tt.getResolvedModuleFromModuleSpecifier(rt))==null?void 0:B.resolvedModule)==null?void 0:Ge.resolvedFileName,Pe=W?tt.getSourceFile(W):void 0;if(Pe)return[{definition:{type:4,node:rt},references:s(Pe,Kt,tt)||Ve}]}return _i(rt,yt,mt,ne)}return}if(Be.escapedName==="export=")return g(tt,Be.parent,!1,yt,et);const nt=c(Be,tt,yt,ne,we,et);if(nt&&!(Be.flags&33554432))return nt;const Dt=o(rt,Be,mt),ir=Dt&&c(Dt,tt,yt,ne,we,et),Yt=S(Be,rt,yt,et,mt,ne,we);return u(tt,nt,Yt,ir)}e.getReferencedSymbolsForNode=t;function n(Le,rt){return rt.use===1?Le=rG(Le):rt.use===2&&(Le=EL(Le)),Le}e.getAdjustedNode=n;function i(Le,rt,tt,yt=new Set(tt.map(ne=>ne.fileName))){var ne,we;const et=(ne=rt.getSourceFile(Le))==null?void 0:ne.symbol;if(et)return((we=g(rt,et,!1,tt,yt)[0])==null?void 0:we.references)||Ve;const B=rt.getFileIncludeReasons(),Ge=rt.getSourceFile(Le);return Ge&&B&&s(Ge,B,rt)||Ve}e.getReferencesForFileName=i;function s(Le,rt,tt){let yt;const ne=rt.get(Le.path)||Ve;for(const we of ne)if(U1(we)){const et=tt.getSourceFileByPath(we.file),B=H3(tt,we);c6(B)&&(yt=_r(yt,{kind:0,fileName:et.fileName,textSpan:by(B)}))}return yt}function o(Le,rt,tt){if(Le.parent&&Ow(Le.parent)){const yt=tt.getAliasedSymbol(rt),ne=tt.getMergedSymbol(yt);if(yt!==ne)return ne}}function c(Le,rt,tt,yt,ne,we){const et=Le.flags&1536&&Le.declarations&&wn(Le.declarations,Ni);if(!et)return;const B=Le.exports.get("export="),Ge=g(rt,Le,!!B,tt,we);if(!B||!we.has(et.fileName))return Ge;const mt=rt.getTypeChecker();return Le=Ul(B,mt),u(rt,Ge,S(Le,void 0,tt,we,mt,yt,ne))}function u(Le,...rt){let tt;for(const yt of rt)if(!(!yt||!yt.length)){if(!tt){tt=yt;continue}for(const ne of yt){if(!ne.definition||ne.definition.type!==0){tt.push(ne);continue}const we=ne.definition.symbol,et=vc(tt,Ge=>!!Ge.definition&&Ge.definition.type===0&&Ge.definition.symbol===we);if(et===-1){tt.push(ne);continue}const B=tt[et];tt[et]={definition:B.definition,references:B.references.concat(ne.references).sort((Ge,mt)=>{const Be=f(Le,Ge),nt=f(Le,mt);if(Be!==nt)return wo(Be,nt);const Dt=Mfe(Ge),ir=Mfe(mt);return Dt.start!==ir.start?wo(Dt.start,ir.start):wo(Dt.length,ir.length)})}}}return tt}function f(Le,rt){const tt=rt.kind===0?Le.getSourceFile(rt.fileName):rt.node.getSourceFile();return Le.getSourceFiles().indexOf(tt)}function g(Le,rt,tt,yt,ne){E.assert(!!rt.valueDeclaration);const we=Ri(z3e(Le,yt,rt),B=>{if(B.kind==="import"){const Ge=B.literal.parent;if(fy(Ge)){const mt=Ls(Ge.parent,Cg);if(tt&&!mt.qualifier)return}return wg(B.literal)}else if(B.kind==="implicit"){const Ge=B.literal.text!==oy&&k3(B.referencingFile,mt=>mt.transformFlags&2?Eg(mt)||Xb(mt)||u2(mt)?mt:void 0:"skip")||B.referencingFile.statements[0]||B.referencingFile;return wg(Ge)}else return{kind:0,fileName:B.referencingFile.fileName,textSpan:by(B.ref)}});if(rt.declarations)for(const B of rt.declarations)switch(B.kind){case 312:break;case 267:ne.has(B.getSourceFile().fileName)&&we.push(wg(B.name));break;default:E.assert(!!(rt.flags&33554432),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}const et=rt.exports.get("export=");if(et!=null&&et.declarations)for(const B of et.declarations){const Ge=B.getSourceFile();if(ne.has(Ge.fileName)){const mt=Zr(B)&&Sn(B.left)?B.left.expression:oc(B)?E.checkDefined(qa(B,95,Ge)):us(B)||B;we.push(wg(mt))}}return we.length?[{definition:{type:0,symbol:rt},references:we}]:Ve}function d(Le){return Le.kind===148&&Ub(Le.parent)&&Le.parent.operator===148}function y(Le,rt,tt){if(eP(Le.kind))return Le.kind===116&&ux(Le.parent)||Le.kind===148&&!d(Le)?void 0:ke(rt,Le.kind,tt,Le.kind===148?d:void 0);if(rC(Le.parent)&&Le.parent.name===Le)return fe(rt,tt);if(ix(Le)&&ec(Le.parent))return[{definition:{type:2,node:Le},references:[wg(Le)]}];if(zA(Le)){const yt=bL(Le.parent,Le.text);return yt&&ae(yt.parent,yt)}else if(GH(Le))return ae(Le.parent,Le);if(g6(Le))return yr(Le,rt,tt);if(Le.kind===108)return yi(Le)}function S(Le,rt,tt,yt,ne,we,et){const B=rt&&w(Le,rt,ne,!br(et))||Le,Ge=rt?ei(rt,B):7,mt=[],Be=new J(tt,yt,rt?k(rt):0,ne,we,Ge,et,mt),nt=!br(et)||!B.declarations?void 0:wn(B.declarations,vu);if(nt)ft(nt.name,B,nt,Be.createSearch(rt,Le,void 0),Be,!0,!0);else if(rt&&rt.kind===90&&B.escapedName==="default"&&B.parent)at(rt,B,Be),U(rt,B,{exportingModuleSymbol:B.parent,exportKind:1},Be);else{const Dt=Be.createSearch(rt,B,void 0,{allSearchSymbols:rt?Ht(B,rt,ne,et.use===2,!!et.providePrefixAndSuffixTextForRename,!!et.implementations):[B]});T(B,Be,Dt)}return mt}function T(Le,rt,tt){const yt=ue(Le);if(yt)me(yt,yt.getSourceFile(),tt,rt,!(Ni(yt)&&!bs(rt.sourceFiles,yt)));else for(const ne of rt.sourceFiles)rt.cancellationToken.throwIfCancellationRequested(),R(ne,tt,rt)}function k(Le){switch(Le.kind){case 176:case 137:return 1;case 80:if($n(Le.parent))return E.assert(Le.parent.name===Le),2;default:return 0}}function w(Le,rt,tt,yt){const{parent:ne}=rt;return vu(ne)&&yt?ge(rt,Le,ne,tt):$o(Le.declarations,we=>{if(!we.parent){if(Le.flags&33554432)return;E.fail(`Unexpected symbol at ${E.formatSyntaxKind(rt.kind)}: ${E.formatSymbol(Le)}`)}return z_(we.parent)&&_y(we.parent.parent)?tt.getPropertyOfType(tt.getTypeFromTypeNode(we.parent.parent),Le.name):void 0})}let P;(Le=>{Le[Le.None=0]="None",Le[Le.Constructor=1]="Constructor",Le[Le.Class=2]="Class"})(P||(P={}));function F(Le){if(!(Le.flags&33555968))return;const rt=Le.declarations&&wn(Le.declarations,tt=>!Ni(tt)&&!Sc(tt));return rt&&rt.symbol}class J{constructor(rt,tt,yt,ne,we,et,B,Ge){this.sourceFiles=rt,this.sourceFilesSet=tt,this.specialSearchKind=yt,this.checker=ne,this.cancellationToken=we,this.searchMeaning=et,this.options=B,this.result=Ge,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=wx(),this.markSeenReExportRHS=wx(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(rt){return this.sourceFilesSet.has(rt.fileName)}getImportSearches(rt,tt){return this.importTracker||(this.importTracker=wfe(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(rt,tt,this.options.use===2)}createSearch(rt,tt,yt,ne={}){const{text:we=vp(Xo(xC(tt)||F(tt)||tt)),allSearchSymbols:et=[tt]}=ne,B=Wo(we),Ge=this.options.implementations&&rt?cr(rt,tt,this.checker):void 0;return{symbol:tt,comingFrom:yt,text:we,escapedText:B,parents:Ge,allSearchSymbols:et,includes:mt=>bs(et,mt)}}referenceAdder(rt){const tt=Ks(rt);let yt=this.symbolIdToReferences[tt];return yt||(yt=this.symbolIdToReferences[tt]=[],this.result.push({definition:{type:0,symbol:rt},references:yt})),(ne,we)=>yt.push(wg(ne,we))}addStringOrCommentReference(rt,tt){this.result.push({definition:void 0,references:[{kind:0,fileName:rt,textSpan:tt}]})}markSearchedSymbols(rt,tt){const yt=Oa(rt),ne=this.sourceFileToSeenSymbols[yt]||(this.sourceFileToSeenSymbols[yt]=new Set);let we=!1;for(const et of tt)we=_1(ne,Ks(et))||we;return we}}function U(Le,rt,tt,yt){const{importSearches:ne,singleReferences:we,indirectUsers:et}=yt.getImportSearches(rt,tt);if(we.length){const B=yt.referenceAdder(rt);for(const Ge of we)j(Ge,yt)&&B(Ge)}for(const[B,Ge]of ne)Oe(B.getSourceFile(),yt.createSearch(B,Ge,1),yt);if(et.length){let B;switch(tt.exportKind){case 0:B=yt.createSearch(Le,rt,1);break;case 1:B=yt.options.use===2?void 0:yt.createSearch(Le,rt,1,{text:"default"});break}if(B)for(const Ge of et)R(Ge,B,yt)}}function $(Le,rt,tt,yt,ne,we,et,B){const Ge=wfe(Le,new Set(Le.map(Dt=>Dt.fileName)),rt,tt),{importSearches:mt,indirectUsers:Be,singleReferences:nt}=Ge(yt,{exportKind:et?1:0,exportingModuleSymbol:ne},!1);for(const[Dt]of mt)B(Dt);for(const Dt of nt)Ie(Dt)&&Cg(Dt.parent)&&B(Dt);for(const Dt of Be)for(const ir of oe(Dt,et?"default":we)){const Yt=rt.getSymbolAtLocation(ir),Kt=ct(Yt==null?void 0:Yt.declarations,W=>!!Wn(W,oc));Ie(ir)&&!DT(ir.parent)&&(Yt===yt||Kt)&&B(ir)}}e.eachExportReference=$;function j(Le,rt){return be(Le,rt)?rt.options.use!==2?!0:Ie(Le)?!(DT(Le.parent)&&Le.escapedText==="default"):!1:!1}function re(Le,rt){if(Le.declarations)for(const tt of Le.declarations){const yt=tt.getSourceFile();Oe(yt,rt.createSearch(tt,Le,0),rt,rt.includesSourceFile(yt))}}function R(Le,rt,tt){U$(Le).get(rt.escapedText)!==void 0&&Oe(Le,rt,tt)}function Y(Le,rt){return u0(Le.parent.parent)?rt.getPropertySymbolOfDestructuringAssignment(Le):void 0}function ue(Le){const{declarations:rt,flags:tt,parent:yt,valueDeclaration:ne}=Le;if(ne&&(ne.kind===218||ne.kind===231))return ne;if(!rt)return;if(tt&8196){const B=wn(rt,Ge=>R_(Ge,2)||Iu(Ge));return B?w1(B,263):void 0}if(rt.some(ZA))return;const we=yt&&!(Le.flags&262144);if(we&&!(XA(yt)&&!yt.globalExports))return;let et;for(const B of rt){const Ge=cS(B);if(et&&et!==Ge||!Ge||Ge.kind===312&&!af(Ge))return;if(et=Ge,co(et)){let mt;for(;mt=qz(et);)et=mt}}return we?et.getSourceFile():et}function pe(Le,rt,tt,yt=tt){return H(Le,rt,tt,()=>!0,yt)||!1}e.isSymbolReferencedInFile=pe;function H(Le,rt,tt,yt,ne=tt){const we=O_(Le.parent,Le.parent.parent)?va(rt.getSymbolsOfParameterPropertyDeclaration(Le.parent,Le.text)):rt.getSymbolAtLocation(Le);if(we)for(const et of oe(tt,we.name,ne)){if(!Ie(et)||et===Le||et.escapedText!==Le.escapedText)continue;const B=rt.getSymbolAtLocation(et);if(B===we||rt.getShorthandAssignmentValueSymbol(et.parent)===we||vu(et.parent)&&ge(et,B,et.parent,rt)===we){const Ge=yt(et);if(Ge)return Ge}}}e.eachSymbolReferenceInFile=H;function q(Le,rt){return An(oe(rt,Le),ne=>!!xE(ne)).reduce((ne,we)=>{const et=yt(we);return!ct(ne.declarationNames)||et===ne.depth?(ne.declarationNames.push(we),ne.depth=et):etBe===ne)&&yt(et,Ge))return!0}return!1}e.someSignatureUsage=ee;function oe(Le,rt,tt=Le){return Ri(Se(Le,rt,tt),yt=>{const ne=u_(Le,yt);return ne===Le?void 0:ne})}function Se(Le,rt,tt=Le){const yt=[];if(!rt||!rt.length)return yt;const ne=Le.text,we=ne.length,et=rt.length;let B=ne.indexOf(rt,tt.pos);for(;B>=0&&!(B>tt.end);){const Ge=B+et;(B===0||!g1(ne.charCodeAt(B-1),99))&&(Ge===we||!g1(ne.charCodeAt(Ge),99))&&yt.push(B),B=ne.indexOf(rt,B+et+1)}return yt}function ae(Le,rt){const tt=Le.getSourceFile(),yt=rt.text,ne=Ri(oe(tt,yt,Le),we=>we===rt||zA(we)&&bL(we,yt)===rt?wg(we):void 0);return[{definition:{type:1,node:rt},references:ne}]}function K(Le,rt){switch(Le.kind){case 81:if(M1(Le.parent))return!0;case 80:return Le.text.length===rt.length;case 15:case 11:{const tt=Le;return(SL(tt)||YH(Le)||Woe(Le)||Rs(Le.parent)&&Ab(Le.parent)&&Le.parent.arguments[1]===Le)&&tt.text.length===rt.length}case 9:return SL(Le)&&Le.text.length===rt.length;case 90:return rt.length===7;default:return!1}}function fe(Le,rt){const tt=Zs(Le,yt=>(rt.throwIfCancellationRequested(),Ri(oe(yt,"meta",yt),ne=>{const we=ne.parent;if(rC(we))return wg(we)})));return tt.length?[{definition:{type:2,node:tt[0].node},references:tt}]:void 0}function ke(Le,rt,tt,yt){const ne=Zs(Le,we=>(tt.throwIfCancellationRequested(),Ri(oe(we,Ws(rt),we),et=>{if(et.kind===rt&&(!yt||yt(et)))return wg(et)})));return ne.length?[{definition:{type:2,node:ne[0].node},references:ne}]:void 0}function Oe(Le,rt,tt,yt=!0){return tt.cancellationToken.throwIfCancellationRequested(),me(Le,Le,rt,tt,yt)}function me(Le,rt,tt,yt,ne){if(yt.markSearchedSymbols(rt,tt.allSearchSymbols))for(const we of Se(rt,tt.text,Le))xe(rt,we,tt,yt,ne)}function be(Le,rt){return!!(oS(Le)&rt.searchMeaning)}function xe(Le,rt,tt,yt,ne){const we=u_(Le,rt);if(!K(we,tt.text)){!yt.options.implementations&&(yt.options.findInStrings&&Dx(Le,rt)||yt.options.findInComments&&rce(Le,rt))&&yt.addStringOrCommentReference(Le.fileName,Wl(rt,tt.text.length));return}if(!be(we,yt))return;let et=yt.checker.getSymbolAtLocation(we);if(!et)return;const B=we.parent;if(x_(B)&&B.propertyName===we)return;if(vu(B)){E.assert(we.kind===80),ft(we,et,B,tt,yt,ne);return}if(oE(B)&&B.isNameFirst&&B.typeExpression&&Yb(B.typeExpression.type)&&B.typeExpression.type.jsDocPropertyTags&&gr(B.typeExpression.type.jsDocPropertyTags)){De(B.typeExpression.type.jsDocPropertyTags,we,tt,yt);return}const Ge=Hn(tt,et,we,yt);if(!Ge){Pt(et,tt,yt);return}switch(yt.specialSearchKind){case 0:ne&&at(we,Ge,yt);break;case 1:Je(we,Le,tt,yt);break;case 2:pt(we,tt,yt);break;default:E.assertNever(yt.specialSearchKind)}Hr(we)&&Ea(we.parent)&&Uv(we.parent.parent.parent)&&(et=we.parent.symbol,!et)||$e(we,et,tt,yt)}function De(Le,rt,tt,yt){const ne=yt.referenceAdder(tt.symbol);at(rt,tt.symbol,yt),er(Le,we=>{Xu(we.name)&&ne(we.name.left)})}function ft(Le,rt,tt,yt,ne,we,et){E.assert(!et||!!ne.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");const{parent:B,propertyName:Ge,name:mt}=tt,Be=B.parent,nt=ge(Le,rt,tt,ne.checker);if(!et&&!yt.includes(nt))return;if(Ge?Le===Ge?(Be.moduleSpecifier||Dt(),we&&ne.options.use!==2&&ne.markSeenReExportRHS(mt)&&at(mt,E.checkDefined(tt.symbol),ne)):ne.markSeenReExportRHS(Le)&&Dt():ne.options.use===2&&mt.escapedText==="default"||Dt(),!br(ne.options)||et){const Yt=Le.escapedText==="default"||tt.name.escapedText==="default"?1:0,Kt=E.checkDefined(tt.symbol),W=Afe(Kt,Yt,ne.checker);W&&U(Le,Kt,W,ne)}if(yt.comingFrom!==1&&Be.moduleSpecifier&&!Ge&&!br(ne.options)){const ir=ne.checker.getExportSpecifierLocalTargetSymbol(tt);ir&&re(ir,ne)}function Dt(){we&&at(Le,nt,ne)}}function ge(Le,rt,tt,yt){return Fe(Le,tt)&&yt.getExportSpecifierLocalTargetSymbol(tt)||rt}function Fe(Le,rt){const{parent:tt,propertyName:yt,name:ne}=rt;return E.assert(yt===Le||ne===Le),yt?yt===Le:!tt.parent.moduleSpecifier}function $e(Le,rt,tt,yt){const ne=U3e(Le,rt,yt.checker,tt.comingFrom===1);if(!ne)return;const{symbol:we}=ne;ne.kind===0?br(yt.options)||re(we,yt):U(Le,we,ne.exportInfo,yt)}function Pt({flags:Le,valueDeclaration:rt},tt,yt){const ne=yt.checker.getShorthandAssignmentValueSymbol(rt),we=rt&&us(rt);!(Le&33554432)&&we&&tt.includes(ne)&&at(we,ne,yt)}function at(Le,rt,tt){const{kind:yt,symbol:ne}="kind"in rt?rt:{kind:void 0,symbol:rt};if(tt.options.use===2&&Le.kind===90)return;const we=tt.referenceAdder(ne);tt.options.implementations?jt(Le,we,tt):we(Le,yt)}function Je(Le,rt,tt,yt){Y3(Le)&&at(Le,tt.symbol,yt);const ne=()=>yt.referenceAdder(tt.symbol);if($n(Le.parent))E.assert(Le.kind===90||Le.parent.name===Le),zt(tt.symbol,rt,ne());else{const we=_a(Le);we&&(hr(we,ne()),tr(we,yt))}}function pt(Le,rt,tt){at(Le,rt.symbol,tt);const yt=Le.parent;if(tt.options.use===2||!$n(yt))return;E.assert(yt.name===Le);const ne=tt.referenceAdder(rt.symbol);for(const we of yt.members)AT(we)&&Ms(we)&&we.body&&we.body.forEachChild(function et(B){B.kind===110?ne(B):!As(B)&&!$n(B)&&B.forEachChild(et)})}function zt(Le,rt,tt){const yt=Vt(Le);if(yt&&yt.declarations)for(const ne of yt.declarations){const we=qa(ne,137,rt);E.assert(ne.kind===176&&!!we),tt(we)}Le.exports&&Le.exports.forEach(ne=>{const we=ne.valueDeclaration;if(we&&we.kind===174){const et=we.body;et&&Vs(et,110,B=>{Y3(B)&&tt(B)})}})}function Vt(Le){return Le.members&&Le.members.get("__constructor")}function hr(Le,rt){const tt=Vt(Le.symbol);if(tt&&tt.declarations)for(const yt of tt.declarations){E.assert(yt.kind===176);const ne=yt.body;ne&&Vs(ne,108,we=>{UH(we)&&rt(we)})}}function Lr(Le){return!!Vt(Le.symbol)}function tr(Le,rt){if(Lr(Le))return;const tt=Le.symbol,yt=rt.createSearch(void 0,tt,void 0);T(tt,rt,yt)}function jt(Le,rt,tt){if(eh(Le)&&Ii(Le.parent)){rt(Le);return}if(Le.kind!==80)return;Le.parent.kind===304&&ns(Le,tt.checker,rt);const yt=Rt(Le);if(yt){rt(yt);return}const ne=Pr(Le,B=>!Xu(B.parent)&&!ki(B.parent)&&!Sb(B.parent)),we=ne.parent;if(r5(we)&&we.type===ne&&tt.markSeenContainingTypeReference(we))if(Z0(we))et(we.initializer);else if(As(we)&&we.body){const B=we.body;B.kind===241?Wv(B,Ge=>{Ge.expression&&et(Ge.expression)}):et(B)}else Tb(we)&&et(we.expression);function et(B){Kn(B)&&rt(B)}}function Rt(Le){return Ie(Le)||Sn(Le)?Rt(Le.parent):s0(Le)?Wn(Le.parent.parent,pd($n,Bu)):void 0}function Kn(Le){switch(Le.kind){case 217:return Kn(Le.expression);case 219:case 218:case 210:case 231:case 209:return!0;default:return!1}}function Ji(Le,rt,tt,yt){if(Le===rt)return!0;const ne=Ks(Le)+","+Ks(rt),we=tt.get(ne);if(we!==void 0)return we;tt.set(ne,!1);const et=!!Le.declarations&&Le.declarations.some(B=>kE(B).some(Ge=>{const mt=yt.getTypeAtLocation(Ge);return!!mt&&!!mt.symbol&&Ji(mt.symbol,rt,tt,yt)}));return tt.set(ne,et),et}function yi(Le){let rt=y8(Le,!1);if(!rt)return;let tt=256;switch(rt.kind){case 172:case 171:case 174:case 173:case 176:case 177:case 178:tt&=ny(rt),rt=rt.parent;break;default:return}const yt=rt.getSourceFile(),ne=Ri(oe(yt,"super",rt),we=>{if(we.kind!==108)return;const et=y8(we,!1);return et&&Ms(et)===!!tt&&et.parent.symbol===rt.symbol?wg(we):void 0});return[{definition:{type:0,symbol:rt.symbol},references:ne}]}function os(Le){return Le.kind===80&&Le.parent.kind===169&&Le.parent.name===Le}function yr(Le,rt,tt){let yt=a_(Le,!1,!1),ne=256;switch(yt.kind){case 174:case 173:if(Up(yt)){ne&=ny(yt),yt=yt.parent;break}case 172:case 171:case 176:case 177:case 178:ne&=ny(yt),yt=yt.parent;break;case 312:if(Ic(yt)||os(Le))return;case 262:case 218:break;default:return}const we=Zs(yt.kind===312?rt:[yt.getSourceFile()],B=>(tt.throwIfCancellationRequested(),oe(B,"this",Ni(yt)?B:yt).filter(Ge=>{if(!g6(Ge))return!1;const mt=a_(Ge,!1,!1);if(!Wd(mt))return!1;switch(yt.kind){case 218:case 262:return yt.symbol===mt.symbol;case 174:case 173:return Up(yt)&&yt.symbol===mt.symbol;case 231:case 263:case 210:return mt.parent&&Wd(mt.parent)&&yt.symbol===mt.parent.symbol&&Ms(mt)===!!ne;case 312:return mt.kind===312&&!Ic(mt)&&!os(Ge)}}))).map(B=>wg(B));return[{definition:{type:3,node:$o(we,B=>rs(B.node.parent)?B.node:void 0)||Le},references:we}]}function _i(Le,rt,tt,yt){const ne=CL(Le,tt),we=Zs(rt,et=>(yt.throwIfCancellationRequested(),Ri(oe(et,Le.text),B=>{if(Ma(B)&&B.text===Le.text)if(ne){const Ge=CL(B,tt);if(ne!==tt.getStringType()&&(ne===Ge||ln(B,tt)))return wg(B,2)}else return tx(B)&&!jb(B,et)?void 0:wg(B,2)})));return[{definition:{type:4,node:Le},references:we}]}function ln(Le,rt){if(B_(Le.parent))return rt.getPropertyOfType(rt.getTypeAtLocation(Le.parent.parent),Le.text)}function Ht(Le,rt,tt,yt,ne,we){const et=[];return Ue(Le,rt,tt,yt,!(yt&&ne),(B,Ge,mt)=>{mt&&fr(Le)!==fr(mt)&&(mt=void 0),et.push(mt||Ge||B)},()=>!we),et}function Ue(Le,rt,tt,yt,ne,we,et){const B=CN(rt);if(B){const Yt=tt.getShorthandAssignmentValueSymbol(rt.parent);if(Yt&&yt)return we(Yt,void 0,void 0,3);const Kt=tt.getContextualType(B.parent),W=Kt&&$o(OM(B,tt,Kt,!0),le=>Dt(le,4));if(W)return W;const Pe=Y(rt,tt),St=Pe&&we(Pe,void 0,void 0,4);if(St)return St;const A=Yt&&we(Yt,void 0,void 0,3);if(A)return A}const Ge=o(rt,Le,tt);if(Ge){const Yt=we(Ge,void 0,void 0,1);if(Yt)return Yt}const mt=Dt(Le);if(mt)return mt;if(Le.valueDeclaration&&O_(Le.valueDeclaration,Le.valueDeclaration.parent)){const Yt=tt.getSymbolsOfParameterPropertyDeclaration(Ls(Le.valueDeclaration,rs),Le.name);return E.assert(Yt.length===2&&!!(Yt[0].flags&1)&&!!(Yt[1].flags&4)),Dt(Le.flags&1?Yt[1]:Yt[0])}const Be=Bo(Le,281);if(!yt||Be&&!Be.propertyName){const Yt=Be&&tt.getExportSpecifierLocalTargetSymbol(Be);if(Yt){const Kt=we(Yt,void 0,void 0,1);if(Kt)return Kt}}if(!yt){let Yt;return ne?Yt=ZA(rt.parent)?BL(tt,rt.parent):void 0:Yt=ir(Le,tt),Yt&&Dt(Yt,4)}if(E.assert(yt),ne){const Yt=ir(Le,tt);return Yt&&Dt(Yt,4)}function Dt(Yt,Kt){return $o(tt.getRootSymbols(Yt),W=>we(Yt,W,void 0,Kt)||(W.parent&&W.parent.flags&96&&et(W)?Et(W.parent,W.name,tt,Pe=>we(Yt,W,Pe,Kt)):void 0))}function ir(Yt,Kt){const W=Bo(Yt,208);if(W&&ZA(W))return BL(Kt,W)}}function Et(Le,rt,tt,yt){const ne=new Map;return we(Le);function we(et){if(!(!(et.flags&96)||!qp(ne,Ks(et))))return $o(et.declarations,B=>$o(kE(B),Ge=>{const mt=tt.getTypeAtLocation(Ge),Be=mt&&mt.symbol&&tt.getPropertyOfType(mt,rt);return mt&&Be&&($o(tt.getRootSymbols(Be),yt)||we(mt.symbol))}))}}function fr(Le){return Le.valueDeclaration?!!(Lu(Le.valueDeclaration)&256):!1}function Hn(Le,rt,tt,yt){const{checker:ne}=yt;return Ue(rt,tt,ne,!1,yt.options.use!==2||!!yt.options.providePrefixAndSuffixTextForRename,(we,et,B,Ge)=>(B&&fr(rt)!==fr(B)&&(B=void 0),Le.includes(B||et||we)?{symbol:et&&!(Ko(we)&6)?et:we,kind:Ge}:void 0),we=>!(Le.parents&&!Le.parents.some(et=>Ji(we.parent,et,yt.inheritsFromCache,ne))))}function ei(Le,rt){let tt=oS(Le);const{declarations:yt}=rt;if(yt){let ne;do{ne=tt;for(const we of yt){const et=jA(we);et&tt&&(tt|=et)}}while(tt!==ne)}return tt}e.getIntersectingMeaningFromDeclarations=ei;function Ii(Le){return Le.flags&33554432?!(Bu(Le)||Gp(Le)):nC(Le)?Z0(Le):fo(Le)?!!Le.body:$n(Le)||n8(Le)}function ns(Le,rt,tt){const yt=rt.getSymbolAtLocation(Le),ne=rt.getShorthandAssignmentValueSymbol(yt.valueDeclaration);if(ne)for(const we of ne.getDeclarations())jA(we)&1&&tt(we)}e.getReferenceEntriesForShorthandPropertyAssignment=ns;function Vs(Le,rt,tt){Ss(Le,yt=>{yt.kind===rt&&tt(yt),Vs(yt,rt,tt)})}function _a(Le){return hW(vL(Le).parent)}function cr(Le,rt,tt){const yt=m6(Le)?Le.parent:void 0,ne=yt&&tt.getTypeAtLocation(yt.expression),we=Ri(ne&&(ne.isUnionOrIntersection()?ne.types:ne.symbol===rt.parent?void 0:[ne]),et=>et.symbol&&et.symbol.flags&96?et.symbol:void 0);return we.length===0?void 0:we}function br(Le){return Le.use===2&&Le.providePrefixAndSuffixTextForRename}})(Jx||(Jx={}))}}),lo={};vl(lo,{Core:()=>Jx,DefinitionKind:()=>jfe,EntryKind:()=>Bfe,ExportKind:()=>Ife,FindReferencesUse:()=>Jfe,ImportExport:()=>Ffe,createImportTracker:()=>wfe,findModuleReferences:()=>z3e,findReferenceOrRenameEntries:()=>$Xe,findReferencedSymbols:()=>qXe,getContextNode:()=>pS,getExportInfo:()=>Afe,getImplementationsAtPosition:()=>GXe,getImportOrExportSymbol:()=>U3e,getReferenceEntriesForNode:()=>H3e,getTextSpanOfEntry:()=>Mfe,isContextWithStartAndEndNode:()=>Ofe,isDeclarationOfSymbol:()=>Q3e,isWriteAccessForReference:()=>Rfe,nodeEntry:()=>wg,toContextSpan:()=>Lfe,toHighlightSpan:()=>tQe,toReferenceEntry:()=>X3e,toRenameLocation:()=>QXe});var zfe=wt({"src/services/_namespaces/ts.FindAllReferences.ts"(){VXe(),nQe()}});function Y3e(e,t,n,i,s){var o;const c=K3e(t,n,e),u=c&&[mQe(c.reference.fileName,c.fileName,c.unverified)]||Ve;if(c!=null&&c.file)return u;const f=u_(t,n);if(f===t)return;const{parent:g}=f,d=e.getTypeChecker();if(f.kind===164||Ie(f)&&AO(g)&&g.tagName===f)return sQe(d,f)||Ve;if(zA(f)){const P=bL(f.parent,f.text);return P?[Wfe(d,P,"label",f.text,void 0)]:void 0}switch(f.kind){case 107:const P=Pr(f.parent,J=>ec(J)?"quit":fo(J));return P?[rR(d,P)]:void 0;case 90:if(!y3(f.parent))break;case 84:const F=Pr(f.parent,m3);if(F)return[dQe(F,t)];break}if(f.kind===135){const P=Pr(f,J=>fo(J));return P&&ct(P.modifiers,J=>J.kind===134)?[rR(d,P)]:void 0}if(f.kind===127){const P=Pr(f,J=>fo(J));return P&&P.asteriskToken?[rR(d,P)]:void 0}if(ix(f)&&ec(f.parent)){const P=f.parent.parent,{symbol:F,failedAliasResolution:J}=zQ(P,d,s),U=An(P.members,ec),$=F?d.symbolToString(F,P):"",j=f.getSourceFile();return nr(U,re=>{let{pos:R}=Xd(re);return R=ca(j.text,R),Wfe(d,re,"constructor","static {}",$,!1,J,{start:R,length:6})})}let{symbol:y,failedAliasResolution:S}=zQ(f,d,s),T=f;if(i&&S){const P=er([f,...(y==null?void 0:y.declarations)||Ve],J=>Pr(J,Fte)),F=P&&lC(P);F&&({symbol:y,failedAliasResolution:S}=zQ(F,d,s),T=F)}if(!y&&jL(T)){const P=(o=e.getResolvedModuleFromModuleSpecifier(T))==null?void 0:o.resolvedModule;if(P)return[{name:T.text,fileName:P.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:Wl(0,0),failedAliasResolution:S,isAmbient:Hl(P.resolvedFileName),unverified:T!==f}]}if(!y)return es(u,_Qe(f,d));if(i&&Wi(y.declarations,P=>P.getSourceFile().fileName===t.fileName))return;const k=hQe(d,f);if(k&&!(Fu(f.parent)&&yQe(k))){const P=rR(d,k,S);if(d.getRootSymbols(y).some(F=>iQe(F,k)))return[P];{const F=hP(d,y,f,S,k)||Ve;return f.kind===108?[P,...F]:[...F,P]}}if(f.parent.kind===304){const P=d.getShorthandAssignmentValueSymbol(y.valueDeclaration),F=P!=null&&P.declarations?P.declarations.map(J=>RN(J,d,P,f,!1,S)):Ve;return es(F,Z3e(d,f))}if(Ac(f)&&Ea(g)&&kp(g.parent)&&f===(g.propertyName||g.name)){const P=YA(f),F=d.getTypeAtLocation(g.parent);return P===void 0?Ve:Zs(F.isUnion()?F.types:[F],J=>{const U=J.getProperty(P);return U&&hP(d,U,f)})}const w=Z3e(d,f);return es(u,w.length?w:hP(d,y,f,S))}function iQe(e,t){var n;return e===t.symbol||e===t.symbol.parent||nl(t.parent)||!jv(t.parent)&&e===((n=Wn(t.parent,Wd))==null?void 0:n.symbol)}function Z3e(e,t){const n=CN(t);if(n){const i=n&&e.getContextualType(n.parent);if(i)return Zs(OM(n,e,i,!1),s=>hP(e,s,t))}return Ve}function sQe(e,t){const n=Pr(t,Tl);if(!(n&&n.name))return;const i=Pr(n,$n);if(!i)return;const s=Ud(i);if(!s)return;const o=Va(s.expression),c=kl(o)?o.symbol:e.getSymbolAtLocation(o);if(!c)return;const u=xi(Kk(n.name)),f=Bc(n)?e.getPropertyOfType(e.getTypeOfSymbol(c),u):e.getPropertyOfType(e.getDeclaredTypeOfSymbol(c),u);if(f)return hP(e,f,t)}function K3e(e,t,n){var i,s;const o=yP(e.referencedFiles,t);if(o){const f=n.getSourceFileFromReference(e,o);return f&&{reference:o,fileName:f.fileName,file:f,unverified:!1}}const c=yP(e.typeReferenceDirectives,t);if(c){const f=(i=n.getResolvedTypeReferenceDirectives().get(c.fileName,c.resolutionMode||e.impliedNodeFormat))==null?void 0:i.resolvedTypeReferenceDirective,g=f&&n.getSourceFile(f.resolvedFileName);return g&&{reference:c,fileName:g.fileName,file:g,unverified:!1}}const u=yP(e.libReferenceDirectives,t);if(u){const f=n.getLibFileFromReference(u);return f&&{reference:u,fileName:f.fileName,file:f,unverified:!1}}if(e.imports.length||e.moduleAugmentations.length){const f=h6(e,t);let g;if(jL(f)&&Sl(f.text)&&(g=n.getResolvedModuleFromModuleSpecifier(f))){const d=(s=g.resolvedModule)==null?void 0:s.resolvedFileName,y=d||U0(Un(e.fileName),f.text);return{file:n.getSourceFile(y),fileName:y,reference:{pos:f.getStart(),end:f.getEnd(),fileName:f.text},unverified:!d}}}}function aQe(e,t){const n=t.symbol.name;if(!Ufe.has(n))return!1;const i=e.resolveName(n,void 0,788968,!1);return!!i&&i===t.target.symbol}function ePe(e,t){if(!t.aliasSymbol)return!1;const n=t.aliasSymbol.name;if(!Ufe.has(n))return!1;const i=e.resolveName(n,void 0,788968,!1);return!!i&&i===t.aliasSymbol}function oQe(e,t,n,i){var s,o;if(bn(t)&4&&aQe(e,t))return MN(e.getTypeArguments(t)[0],e,n,i);if(ePe(e,t)&&t.aliasTypeArguments)return MN(t.aliasTypeArguments[0],e,n,i);if(bn(t)&32&&t.target&&ePe(e,t.target)){const c=(o=(s=t.aliasSymbol)==null?void 0:s.declarations)==null?void 0:o[0];if(c&&Gp(c)&&$f(c.type)&&c.type.typeArguments)return MN(e.getTypeAtLocation(c.type.typeArguments[0]),e,n,i)}return[]}function cQe(e,t,n){const i=u_(t,n);if(i===t)return;if(rC(i.parent)&&i.parent.name===i)return MN(e.getTypeAtLocation(i.parent),e,i.parent,!1);const{symbol:s,failedAliasResolution:o}=zQ(i,e,!1);if(!s)return;const c=e.getTypeOfSymbolAtLocation(s,i),u=lQe(s,c,e),f=u&&MN(u,e,i,o),[g,d]=f&&f.length!==0?[u,f]:[c,MN(c,e,i,o)];return d.length?[...oQe(e,g,i,o),...d]:!(s.flags&111551)&&s.flags&788968?hP(e,Ul(s,e),i,o):void 0}function MN(e,t,n,i){return Zs(e.isUnion()&&!(e.flags&32)?e.types:[e],s=>s.symbol&&hP(t,s.symbol,n,i))}function lQe(e,t,n){if(t.symbol===e||e.valueDeclaration&&t.symbol&&hi(e.valueDeclaration)&&e.valueDeclaration.initializer===t.symbol.valueDeclaration){const i=t.getCallSignatures();if(i.length===1)return n.getReturnTypeOfSignature(va(i))}}function uQe(e,t,n){const i=Y3e(e,t,n);if(!i||i.length===0)return;const s=yP(t.referencedFiles,n)||yP(t.typeReferenceDirectives,n)||yP(t.libReferenceDirectives,n);if(s)return{definitions:i,textSpan:by(s)};const o=u_(t,n),c=Wl(o.getStart(),o.getWidth());return{definitions:i,textSpan:c}}function _Qe(e,t){return Ri(t.getIndexInfosAtLocation(e),n=>n.declaration&&rR(t,n.declaration))}function zQ(e,t,n){const i=t.getSymbolAtLocation(e);let s=!1;if(i!=null&&i.declarations&&i.flags&2097152&&!n&&fQe(e,i.declarations[0])){const o=t.getAliasedSymbol(i);if(o.declarations)return{symbol:o};s=!0}return{symbol:i,failedAliasResolution:s}}function fQe(e,t){return e.kind!==80?!1:e.parent===t?!0:t.kind!==274}function pQe(e){if(!SE(e))return!1;const t=Pr(e,n=>nl(n)?!0:SE(n)?!1:"quit");return!!t&&fc(t)===5}function hP(e,t,n,i,s){const o=An(t.declarations,y=>y!==s),c=An(o,y=>!pQe(y)),u=ct(c)?c:o;return f()||g()||nr(u,y=>RN(y,e,t,n,!1,i));function f(){if(t.flags&32&&!(t.flags&19)&&(Y3(n)||n.kind===137)){const y=wn(o,$n)||E.fail("Expected declaration to have at least one class-like declaration");return d(y.members,!0)}}function g(){return qH(n)||ZH(n)?d(o,!1):void 0}function d(y,S){if(!y)return;const T=y.filter(S?sc:As),k=T.filter(w=>!!w.body);return T.length?k.length!==0?k.map(w=>RN(w,e,t,n)):[RN(ka(T),e,t,n,!1,i)]:void 0}}function RN(e,t,n,i,s,o){const c=t.symbolToString(n),u=m0.getSymbolKind(t,n,i),f=n.parent?t.symbolToString(n.parent,i):"";return Wfe(t,e,u,c,f,s,o)}function Wfe(e,t,n,i,s,o,c,u){const f=t.getSourceFile();if(!u){const g=us(t)||t;u=Zu(g,f)}return{fileName:f.fileName,textSpan:u,kind:n,name:i,containerKind:void 0,containerName:s,...lo.toContextSpan(u,f,lo.getContextNode(t)),isLocal:!Vfe(e,t),isAmbient:!!(t.flags&33554432),unverified:o,failedAliasResolution:c}}function dQe(e,t){const n=lo.getContextNode(e),i=Zu(Ofe(n)?n.start:n,t);return{fileName:t.fileName,textSpan:i,kind:"keyword",name:"switch",containerKind:void 0,containerName:"",...lo.toContextSpan(i,t,n),isLocal:!0,isAmbient:!1,unverified:!1,failedAliasResolution:void 0}}function Vfe(e,t){if(e.isDeclarationVisible(t))return!0;if(!t.parent)return!1;if(Z0(t.parent)&&t.parent.initializer===t)return Vfe(e,t.parent);switch(t.kind){case 172:case 177:case 178:case 174:if(R_(t,2))return!1;case 176:case 303:case 304:case 210:case 231:case 219:case 218:return Vfe(e,t.parent);default:return!1}}function rR(e,t,n){return RN(t,e,t.symbol,t,!1,n)}function yP(e,t){return wn(e,n=>WD(n,t))}function mQe(e,t,n){return{fileName:t,textSpan:Rc(0,0),kind:"script",name:e,containerName:void 0,containerKind:void 0,unverified:n}}function gQe(e){const t=Pr(e,i=>!m6(i)),n=t==null?void 0:t.parent;return n&&jv(n)&&E5(n)===t?n:void 0}function hQe(e,t){const n=gQe(t),i=n&&e.getResolvedSignature(n);return Wn(i&&i.declaration,s=>As(s)&&!Mm(s))}function yQe(e){switch(e.kind){case 176:case 185:case 180:return!0;default:return!1}}var Ufe,vQe=wt({"src/services/goToDefinition.ts"(){qn(),zfe(),Ufe=new Set(["Array","ArrayLike","ReadonlyArray","Promise","PromiseLike","Iterable","IterableIterator","AsyncIterable","Set","WeakSet","ReadonlySet","Map","WeakMap","ReadonlyMap","Partial","Required","Readonly","Pick","Omit"])}}),L6={};vl(L6,{createDefinitionInfo:()=>RN,findReferenceInPosition:()=>yP,getDefinitionAndBoundSpan:()=>uQe,getDefinitionAtPosition:()=>Y3e,getReferenceAtPosition:()=>K3e,getTypeDefinitionAtPosition:()=>cQe});var bQe=wt({"src/services/_namespaces/ts.GoToDefinition.ts"(){vQe()}});function SQe(e){return e.includeInlayParameterNameHints==="literals"||e.includeInlayParameterNameHints==="all"}function TQe(e){return e.includeInlayParameterNameHints==="literals"}function tPe(e){return e.interactiveInlayHints===!0}function xQe(e){const{file:t,program:n,span:i,cancellationToken:s,preferences:o}=e,c=t.text,u=n.getCompilerOptions(),f=wf(t,o),g=n.getTypeChecker(),d=[];return y(t),d;function y(ae){if(!(!ae||ae.getFullWidth()===0)){switch(ae.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 174:case 219:s.throwIfCancellationRequested()}if(B7(i,ae.pos,ae.getFullWidth())&&!(ki(ae)&&!s0(ae)))return o.includeInlayVariableTypeHints&&hi(ae)||o.includeInlayPropertyDeclarationTypeHints&&xs(ae)?J(ae):o.includeInlayEnumMemberValueHints&&p2(ae)?P(ae):SQe(o)&&(Rs(ae)||a2(ae))?U(ae):(o.includeInlayFunctionParameterTypeHints&&fo(ae)&&CF(ae)&&ue(ae),o.includeInlayFunctionLikeReturnTypeHints&&S(ae)&&R(ae)),Ss(ae,y)}}function S(ae){return po(ae)||co(ae)||$c(ae)||hc(ae)||xf(ae)}function T(ae,K,fe,ke){let Oe=`${ke?"...":""}${ae}`,me;tPe(o)?(me=[Se(Oe,K),{text:":"}],Oe=""):Oe+=":",d.push({text:Oe,position:fe,kind:"Parameter",whitespaceAfter:!0,displayParts:me})}function k(ae,K){d.push({text:typeof ae=="string"?`: ${ae}`:"",displayParts:typeof ae=="string"?void 0:[{text:": "},...ae],position:K,kind:"Type",whitespaceBefore:!0})}function w(ae,K){d.push({text:`= ${ae}`,position:K,kind:"Enum",whitespaceBefore:!0})}function P(ae){if(ae.initializer)return;const K=g.getConstantValue(ae);K!==void 0&&w(K.toString(),ae.end)}function F(ae){return ae.symbol&&ae.symbol.flags&1536}function J(ae){if(!ae.initializer||Ns(ae.name)||hi(ae)&&!oe(ae)||Vl(ae))return;const fe=g.getTypeAtLocation(ae);if(F(fe))return;const ke=q(fe);if(ke){const Oe=typeof ke=="string"?ke:ke.map(be=>be.text).join("");if(o.includeInlayVariableTypeHintsWhenTypeMatchesName===!1&&p1(ae.name.getText(),Oe))return;k(ke,ae.name.end)}}function U(ae){const K=ae.arguments;if(!K||!K.length)return;const fe=[],ke=g.getResolvedSignatureForSignatureHelp(ae,fe);if(!ke||!fe.length)return;let Oe=0;for(const me of K){const be=Va(me);if(TQe(o)&&!re(be)){Oe++;continue}let xe=0;if(hd(be)){const ft=g.getTypeAtLocation(be.expression);if(g.isTupleType(ft)){const{elementFlags:ge,fixedLength:Fe}=ft.target;if(Fe===0)continue;const $e=vc(ge,at=>!(at&1));($e<0?Fe:$e)>0&&(xe=$e<0?Fe:$e)}}const De=g.getParameterIdentifierInfoAtPosition(ke,Oe);if(Oe=Oe+(xe||1),De){const{parameter:ft,parameterName:ge,isRestParameter:Fe}=De;if(!(o.includeInlayParameterNameHintsWhenArgumentMatchesName||!$(be,ge))&&!Fe)continue;const Pt=xi(ge);if(j(be,Pt))continue;T(Pt,ft,me.getStart(),Fe)}}}function $(ae,K){return Ie(ae)?ae.text===K:Sn(ae)?ae.name.text===K:!1}function j(ae,K){if(!Sf(K,u.target,ew(t.scriptKind)))return!1;const fe=_g(c,ae.pos);if(!(fe!=null&&fe.length))return!1;const ke=rPe(K);return ct(fe,Oe=>ke.test(c.substring(Oe.pos,Oe.end)))}function re(ae){switch(ae.kind){case 224:{const K=ae.operand;return Rv(K)||Ie(K)&&ZE(K.escapedText)}case 112:case 97:case 106:case 15:case 228:return!0;case 80:{const K=ae.escapedText;return ee(K)||ZE(K)}}return Rv(ae)}function R(ae){if(po(ae)&&!qa(ae,21,t)||bp(ae)||!ae.body)return;const fe=g.getSignatureFromDeclaration(ae);if(!fe)return;const ke=g.getReturnTypeOfSignature(fe);if(F(ke))return;const Oe=q(ke);Oe&&k(Oe,Y(ae))}function Y(ae){const K=qa(ae,22,t);return K?K.end:ae.parameters.end}function ue(ae){const K=g.getSignatureFromDeclaration(ae);if(K)for(let fe=0;fe{const Oe=g.typeToTypeNode(ae,void 0,71286784);E.assertIsDefined(Oe,"should always get typenode"),fe.writeNode(4,Oe,t,ke)})}function q(ae){if(!tPe(o))return H(ae);const fe=g.typeToTypeNode(ae,void 0,71286784);E.assertIsDefined(fe,"should always get typenode");const ke=[];return Oe(fe),ke;function Oe(De){var ft,ge;if(!De)return;const Fe=Ws(De.kind);if(Fe){ke.push({text:Fe});return}if(Rv(De)){ke.push({text:xe(De)});return}switch(De.kind){case 80:E.assertNode(De,Ie);const $e=on(De),Pt=De.symbol&&De.symbol.declarations&&De.symbol.declarations.length&&us(De.symbol.declarations[0]);Pt?ke.push(Se($e,Pt)):ke.push({text:$e});break;case 166:E.assertNode(De,Xu),Oe(De.left),ke.push({text:"."}),Oe(De.right);break;case 182:E.assertNode(De,ww),De.assertsModifier&&ke.push({text:"asserts "}),Oe(De.parameterName),De.type&&(ke.push({text:" is "}),Oe(De.type));break;case 183:E.assertNode(De,$f),Oe(De.typeName),De.typeArguments&&(ke.push({text:"<"}),be(De.typeArguments,", "),ke.push({text:">"}));break;case 168:E.assertNode(De,Vo),De.modifiers&&be(De.modifiers," "),Oe(De.name),De.constraint&&(ke.push({text:" extends "}),Oe(De.constraint)),De.default&&(ke.push({text:" = "}),Oe(De.default));break;case 169:E.assertNode(De,rs),De.modifiers&&be(De.modifiers," "),De.dotDotDotToken&&ke.push({text:"..."}),Oe(De.name),De.questionToken&&ke.push({text:"?"}),De.type&&(ke.push({text:": "}),Oe(De.type));break;case 185:E.assertNode(De,MC),ke.push({text:"new "}),me(De),ke.push({text:" => "}),Oe(De.type);break;case 186:E.assertNode(De,ax),ke.push({text:"typeof "}),Oe(De.exprName),De.typeArguments&&(ke.push({text:"<"}),be(De.typeArguments,", "),ke.push({text:">"}));break;case 187:E.assertNode(De,z_),ke.push({text:"{"}),De.members.length&&(ke.push({text:" "}),be(De.members,"; "),ke.push({text:" "})),ke.push({text:"}"});break;case 188:E.assertNode(De,Aw),Oe(De.elementType),ke.push({text:"[]"});break;case 189:E.assertNode(De,ox),ke.push({text:"["}),be(De.elements,", "),ke.push({text:"]"});break;case 202:E.assertNode(De,RC),De.dotDotDotToken&&ke.push({text:"..."}),Oe(De.name),De.questionToken&&ke.push({text:"?"}),ke.push({text:": "}),Oe(De.type);break;case 190:E.assertNode(De,TO),Oe(De.type),ke.push({text:"?"});break;case 191:E.assertNode(De,xO),ke.push({text:"..."}),Oe(De.type);break;case 192:E.assertNode(De,_y),be(De.types," | ");break;case 193:E.assertNode(De,cx),be(De.types," & ");break;case 194:E.assertNode(De,lx),Oe(De.checkType),ke.push({text:" extends "}),Oe(De.extendsType),ke.push({text:" ? "}),Oe(De.trueType),ke.push({text:" : "}),Oe(De.falseType);break;case 195:E.assertNode(De,Wb),ke.push({text:"infer "}),Oe(De.typeParameter);break;case 196:E.assertNode(De,Vb),ke.push({text:"("}),Oe(De.type),ke.push({text:")"});break;case 198:E.assertNode(De,Ub),ke.push({text:`${Ws(De.operator)} `}),Oe(De.type);break;case 199:E.assertNode(De,qb),Oe(De.objectType),ke.push({text:"["}),Oe(De.indexType),ke.push({text:"]"});break;case 200:E.assertNode(De,jC),ke.push({text:"{ "}),De.readonlyToken&&(De.readonlyToken.kind===40?ke.push({text:"+"}):De.readonlyToken.kind===41&&ke.push({text:"-"}),ke.push({text:"readonly "})),ke.push({text:"["}),Oe(De.typeParameter),De.nameType&&(ke.push({text:" as "}),Oe(De.nameType)),ke.push({text:"]"}),De.questionToken&&(De.questionToken.kind===40?ke.push({text:"+"}):De.questionToken.kind===41&&ke.push({text:"-"}),ke.push({text:"?"})),ke.push({text:": "}),De.type&&Oe(De.type),ke.push({text:"; }"});break;case 201:E.assertNode(De,fy),Oe(De.literal);break;case 184:E.assertNode(De,Mm),me(De),ke.push({text:" => "}),Oe(De.type);break;case 205:E.assertNode(De,Cg),De.isTypeOf&&ke.push({text:"typeof "}),ke.push({text:"import("}),Oe(De.argument),De.assertions&&(ke.push({text:", { assert: "}),be(De.assertions.assertClause.elements,", "),ke.push({text:" }"})),ke.push({text:")"}),De.qualifier&&(ke.push({text:"."}),Oe(De.qualifier)),De.typeArguments&&(ke.push({text:"<"}),be(De.typeArguments,", "),ke.push({text:">"}));break;case 171:E.assertNode(De,B_),(ft=De.modifiers)!=null&&ft.length&&(be(De.modifiers," "),ke.push({text:" "})),Oe(De.name),De.questionToken&&ke.push({text:"?"}),De.type&&(ke.push({text:": "}),Oe(De.type));break;case 181:E.assertNode(De,i2),ke.push({text:"["}),be(De.parameters,", "),ke.push({text:"]"}),De.type&&(ke.push({text:": "}),Oe(De.type));break;case 173:E.assertNode(De,Lm),(ge=De.modifiers)!=null&&ge.length&&(be(De.modifiers," "),ke.push({text:" "})),Oe(De.name),De.questionToken&&ke.push({text:"?"}),me(De),De.type&&(ke.push({text:": "}),Oe(De.type));break;case 179:E.assertNode(De,sx),me(De),De.type&&(ke.push({text:": "}),Oe(De.type));break;case 207:E.assertNode(De,s2),ke.push({text:"["}),be(De.elements,", "),ke.push({text:"]"});break;case 206:E.assertNode(De,kp),ke.push({text:"{"}),De.elements.length&&(ke.push({text:" "}),be(De.elements,", "),ke.push({text:" "})),ke.push({text:"}"});break;case 208:E.assertNode(De,Ea),Oe(De.name);break;case 224:E.assertNode(De,dy),ke.push({text:Ws(De.operator)}),Oe(De.operand);break;case 203:E.assertNode(De,tie),Oe(De.head),De.templateSpans.forEach(Oe);break;case 16:E.assertNode(De,rx),ke.push({text:xe(De)});break;case 204:E.assertNode(De,PV),Oe(De.type),Oe(De.literal);break;case 17:E.assertNode(De,xV),ke.push({text:xe(De)});break;case 18:E.assertNode(De,yO),ke.push({text:xe(De)});break;case 197:E.assertNode(De,Nw),ke.push({text:"this"});break;default:E.failBadSyntaxKind(De)}}function me(De){De.typeParameters&&(ke.push({text:"<"}),be(De.typeParameters,", "),ke.push({text:">"})),ke.push({text:"("}),be(De.parameters,", "),ke.push({text:")"})}function be(De,ft){De.forEach((ge,Fe)=>{Fe>0&&ke.push({text:ft}),Oe(ge)})}function xe(De){switch(De.kind){case 11:return f===0?`'${bg(De.text,39)}'`:`"${bg(De.text,34)}"`;case 16:case 17:case 18:{const ft=De.rawText??aW(bg(De.text,96));switch(De.kind){case 16:return"`"+ft+"${";case 17:return"}"+ft+"${";case 18:return"}"+ft+"`"}}}return De.text}}function ee(ae){return ae==="undefined"}function oe(ae){if(($v(ae)||hi(ae)&&tC(ae))&&ae.initializer){const K=Va(ae.initializer);return!(re(K)||a2(K)||ua(K)||Tb(K))}return!0}function Se(ae,K){const fe=K.getSourceFile();return{text:ae,span:Zu(K,fe),file:fe.fileName}}}var rPe,kQe=wt({"src/services/inlayHints.ts"(){qn(),rPe=e=>new RegExp(`^\\s?/\\*\\*?\\s?${e}\\s?\\*\\/\\s?$`)}}),WQ={};vl(WQ,{provideInlayHints:()=>xQe});var CQe=wt({"src/services/_namespaces/ts.InlayHints.ts"(){kQe()}});function EQe(e,t){const n=[];return SG(e,i=>{for(const s of DQe(i)){const o=vd(s)&&s.tags&&wn(s.tags,u=>u.kind===334&&(u.tagName.escapedText==="inheritDoc"||u.tagName.escapedText==="inheritdoc"));if(s.comment===void 0&&!o||vd(s)&&i.kind!==353&&i.kind!==345&&s.tags&&s.tags.some(u=>u.kind===353||u.kind===345)&&!s.tags.some(u=>u.kind===348||u.kind===349))continue;let c=s.comment?M6(s.comment,t):[];o&&o.comment&&(c=c.concat(M6(o.comment,t))),bs(n,c,PQe)||n.push(c)}}),Mp(cg(n,[S6()]))}function PQe(e,t){return gD(e,t,(n,i)=>n.kind===i.kind&&n.text===i.text)}function DQe(e){switch(e.kind){case 348:case 355:return[e];case 345:case 353:return[e,e.parent];case 330:if(UC(e.parent))return[e.parent.parent];default:return Uz(e)}}function wQe(e,t){const n=[];return SG(e,i=>{const s=T1(i);if(!(s.some(o=>o.kind===353||o.kind===345)&&!s.some(o=>o.kind===348||o.kind===349)))for(const o of s)n.push({name:o.tagName.text,text:sPe(o,t)}),n.push(...nPe(iPe(o),t))}),n}function nPe(e,t){return Zs(e,n=>es([{name:n.tagName.text,text:sPe(n,t)}],nPe(iPe(n),t)))}function iPe(e){return oE(e)&&e.isNameFirst&&e.typeExpression&&Yb(e.typeExpression.type)?e.typeExpression.type.jsDocPropertyTags:void 0}function M6(e,t){return typeof e=="string"?[Af(e)]:Zs(e,n=>n.kind===328?[Af(n.text)]:pce(n,t))}function sPe(e,t){const{comment:n,kind:i}=e,s=AQe(i);switch(i){case 356:const u=e.typeExpression;return u?o(u):n===void 0?void 0:M6(n,t);case 336:return o(e.class);case 335:return o(e.class);case 352:const f=e,g=[];if(f.constraint&&g.push(Af(f.constraint.getText())),gr(f.typeParameters)){gr(g)&&g.push(cc());const y=f.typeParameters[f.typeParameters.length-1];er(f.typeParameters,S=>{g.push(s(S.getText())),y!==S&&g.push(Tu(28),cc())})}return n&&g.push(cc(),...M6(n,t)),g;case 351:case 357:return o(e.typeExpression);case 353:case 345:case 355:case 348:case 354:const{name:d}=e;return d?o(d):n===void 0?void 0:M6(n,t);default:return n===void 0?void 0:M6(n,t)}function o(u){return c(u.getText())}function c(u){return n?u.match(/^https?$/)?[Af(u),...M6(n,t)]:[s(u),cc(),...M6(n,t)]:[Af(u)]}}function AQe(e){switch(e){case 348:return cce;case 355:return lce;case 352:return _ce;case 353:case 345:return uce;default:return Af}}function NQe(){return oPe||(oPe=nr(Hfe,e=>({name:e,kind:"keyword",kindModifiers:"",sortText:Bx.SortText.LocationPriority})))}function IQe(){return cPe||(cPe=nr(Hfe,e=>({name:`@${e}`,kind:"keyword",kindModifiers:"",sortText:Bx.SortText.LocationPriority})))}function aPe(e){return{name:e,kind:"",kindModifiers:"",displayParts:[Af(e)],documentation:Ve,tags:void 0,codeActions:void 0}}function FQe(e){if(!Ie(e.name))return Ve;const t=e.name.text,n=e.parent,i=n.parent;return As(i)?Ri(i.parameters,s=>{if(!Ie(s.name))return;const o=s.name.text;if(!(n.tags.some(c=>c!==e&&bd(c)&&Ie(c.name)&&c.name.escapedText===o)||t!==void 0&&!Vi(o,t)))return{name:o,kind:"parameter",kindModifiers:"",sortText:Bx.SortText.LocationPriority}}):[]}function OQe(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[Af(e)],documentation:Ve,tags:void 0,codeActions:void 0}}function LQe(e,t,n,i){const s=Ui(t,n),o=Pr(s,vd);if(o&&(o.comment!==void 0||gr(o.tags)))return;const c=s.getStart(t);if(!o&&c0;if(w&&!J){const U=P+e+T+" * ",$=c===n?e+T:"";return{newText:U+e+w+T+F+$,caretOffset:U.length}}return{newText:P+F,caretOffset:3}}function MQe(e,t){const{text:n}=e,i=Ep(t,e);let s=i;for(;s<=t&&Jd(n.charCodeAt(s));s++);return n.slice(i,s)}function RQe(e,t,n,i){return e.map(({name:s,dotDotDotToken:o},c)=>{const u=s.kind===80?s.text:"param"+c;return`${n} * @param ${t?o?"{...any} ":"{any} ":""}${u}${i}`}).join("")}function jQe(e,t){return`${e} * @returns${t}`}function BQe(e,t){return Tte(e,n=>qfe(n,t))}function qfe(e,t){switch(e.kind){case 262:case 218:case 174:case 176:case 173:case 219:const n=e;return{commentOwner:e,parameters:n.parameters,hasReturn:nR(n,t)};case 303:return qfe(e.initializer,t);case 263:case 264:case 266:case 306:case 265:return{commentOwner:e};case 171:{const s=e;return s.type&&Mm(s.type)?{commentOwner:e,parameters:s.type.parameters,hasReturn:nR(s.type,t)}:{commentOwner:e}}case 243:{const o=e.declarationList.declarations,c=o.length===1&&o[0].initializer?JQe(o[0].initializer):void 0;return c?{commentOwner:e,parameters:c.parameters,hasReturn:nR(c,t)}:{commentOwner:e}}case 312:return"quit";case 267:return e.parent.kind===267?void 0:{commentOwner:e};case 244:return qfe(e.expression,t);case 226:{const s=e;return fc(s)===0?"quit":As(s.right)?{commentOwner:e,parameters:s.right.parameters,hasReturn:nR(s.right,t)}:{commentOwner:e}}case 172:const i=e.initializer;if(i&&(co(i)||po(i)))return{commentOwner:e,parameters:i.parameters,hasReturn:nR(i,t)}}}function nR(e,t){return!!(t!=null&&t.generateReturnInDocTemplate)&&(Mm(e)||po(e)&&ot(e.body)||fo(e)&&e.body&&Cs(e.body)&&!!Wv(e.body,n=>n))}function JQe(e){for(;e.kind===217;)e=e.expression;switch(e.kind){case 218:case 219:return e;case 231:return wn(e.members,sc)}}var Hfe,oPe,cPe,lPe,zQe=wt({"src/services/jsDoc.ts"(){qn(),Hfe=["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"],lPe=aPe}}),Q1={};vl(Q1,{getDocCommentTemplateAtPosition:()=>LQe,getJSDocParameterNameCompletionDetails:()=>OQe,getJSDocParameterNameCompletions:()=>FQe,getJSDocTagCompletionDetails:()=>aPe,getJSDocTagCompletions:()=>IQe,getJSDocTagNameCompletionDetails:()=>lPe,getJSDocTagNameCompletions:()=>NQe,getJsDocCommentsFromDeclarations:()=>EQe,getJsDocTagsFromDeclarations:()=>wQe});var WQe=wt({"src/services/_namespaces/ts.JsDoc.ts"(){zQe()}});function VQe(e,t,n,i,s,o){const c=Kr.ChangeTracker.fromContext({host:n,formatContext:t,preferences:s}),u=o==="SortAndCombine"||o==="All",f=u,g=o==="RemoveUnused"||o==="All",d=VQ(e,e.statements.filter(il)),y=aYe(s,u?()=>fPe(d,s)===2:void 0),S=k=>(g&&(k=qQe(k,e,i)),f&&(k=uPe(k,y,e,s)),u&&(k=Bh(k,(w,P)=>Yfe(w,P,y))),k);d.forEach(k=>T(k,S)),o!=="RemoveUnused"&&oYe(e).forEach(k=>T(k,w=>Gfe(w,y,s)));for(const k of e.statements.filter(su)){if(!k.body)continue;if(VQ(e,k.body.statements.filter(il)).forEach(P=>T(P,S)),o!=="RemoveUnused"){const P=k.body.statements.filter(Tc);T(P,F=>Gfe(F,y,s))}}return c.getChanges();function T(k,w){if(gr(k)===0)return;Qr(k[0],1024);const P=f?U4(k,U=>iR(U.moduleSpecifier)):[k],F=u?Bh(P,(U,$)=>Xfe(U[0].moduleSpecifier,$[0].moduleSpecifier,y)):P,J=Zs(F,U=>iR(U[0].moduleSpecifier)||U[0].moduleSpecifier===void 0?w(U):U);if(J.length===0)c.deleteNodes(e,k,{leadingTriviaOption:Kr.LeadingTriviaOption.Exclude,trailingTriviaOption:Kr.TrailingTriviaOption.Include},!0);else{const U={leadingTriviaOption:Kr.LeadingTriviaOption.Exclude,trailingTriviaOption:Kr.TrailingTriviaOption.Include,suffix:f0(n,t.options)};c.replaceNodeWithNodes(e,k[0],J,U);const $=c.nodeHasTrailingComment(e,k[0],U);c.deleteNodes(e,k.slice(1),{trailingTriviaOption:Kr.TrailingTriviaOption.Include},$)}}}function VQ(e,t){const n=Hh(e.languageVersion,!1,e.languageVariant),i=[];let s=0;for(const o of t)i[s]&&UQe(e,o,n)&&s++,i[s]||(i[s]=[]),i[s].push(o);return i}function UQe(e,t,n){const i=t.getFullStart(),s=t.getStart();n.setText(e.text,i,s-i);let o=0;for(;n.getTokenStart()=2))return!0;return!1}function qQe(e,t,n){const i=n.getTypeChecker(),s=n.getCompilerOptions(),o=i.getJsxNamespace(t),c=i.getJsxFragmentFactory(t),u=!!(t.transformFlags&2),f=[];for(const d of e){const{importClause:y,moduleSpecifier:S}=d;if(!y){f.push(d);continue}let{name:T,namedBindings:k}=y;if(T&&!g(T)&&(T=void 0),k)if(my(k))g(k.name)||(k=void 0);else{const w=k.elements.filter(P=>g(P.name));w.lengthaa(i)&&i.text===n)}function iR(e){return e!==void 0&&Ma(e)?e.text:void 0}function GQe(e,t,n,i){const s=UQ(t);return uPe(e,s,n,i)}function uPe(e,t,n,i){if(e.length===0)return e;const s=r7(e,c=>{if(c.attributes){let u=c.attributes.token+" ";for(const f of fb(c.attributes.elements,(g,d)=>mu(g.name.text,d.name.text)))u+=f.name.text+":",u+=Ma(f.value)?`"${f.value.text}"`:f.value.getText()+" ";return u}return""}),o=[];for(const c in s){const u=s[c],{importWithoutClause:f,typeOnlyImports:g,regularImports:d}=$Qe(u);f&&o.push(f);for(const y of[d,g]){const S=y===g,{defaultImports:T,namespaceImports:k,namedImports:w}=y;if(!S&&T.length===1&&k.length===1&&w.length===0){const Y=T[0];o.push(jN(Y,Y.importClause.name,k[0].importClause.namedBindings));continue}const P=Bh(k,(Y,ue)=>t(Y.importClause.namedBindings.name.text,ue.importClause.namedBindings.name.text));for(const Y of P)o.push(jN(Y,void 0,Y.importClause.namedBindings));const F=bl(T),J=bl(w),U=F??J;if(!U)continue;let $;const j=[];if(T.length===1)$=T[0].importClause.name;else for(const Y of T)j.push(I.createImportSpecifier(!1,I.createIdentifier("default"),Y.importClause.name));j.push(...rYe(w));const re=I.createNodeArray(_Pe(j,t,i),J==null?void 0:J.importClause.namedBindings.elements.hasTrailingComma),R=re.length===0?$?void 0:I.createNamedImports(Ve):J?I.updateNamedImports(J.importClause.namedBindings,re):I.createNamedImports(re);n&&R&&(J!=null&&J.importClause.namedBindings)&&!jb(J.importClause.namedBindings,n)&&Qr(R,2),S&&$&&R?(o.push(jN(U,$,void 0)),o.push(jN(J??U,void 0,R))):o.push(jN(U,$,R))}}return o}function $Qe(e){let t;const n={defaultImports:[],namespaceImports:[],namedImports:[]},i={defaultImports:[],namespaceImports:[],namedImports:[]};for(const s of e){if(s.importClause===void 0){t=t||s;continue}const o=s.importClause.isTypeOnly?n:i,{name:c,namedBindings:u}=s.importClause;c&&o.defaultImports.push(s),u&&(my(u)?o.namespaceImports.push(s):o.namedImports.push(s))}return{importWithoutClause:t,typeOnlyImports:n,regularImports:i}}function XQe(e,t,n){const i=UQ(t);return Gfe(e,i,n)}function Gfe(e,t,n){if(e.length===0)return e;const{exportWithoutClause:i,namedExports:s,typeOnlyExports:o}=u(e),c=[];i&&c.push(i);for(const f of[s,o]){if(f.length===0)continue;const g=[];g.push(...Zs(f,S=>S.exportClause&&Xf(S.exportClause)?S.exportClause.elements:Ve));const d=_Pe(g,t,n),y=f[0];c.push(I.updateExportDeclaration(y,y.modifiers,y.isTypeOnly,y.exportClause&&(Xf(y.exportClause)?I.updateNamedExports(y.exportClause,d):I.updateNamespaceExport(y.exportClause,y.exportClause.name)),y.moduleSpecifier,y.attributes))}return c;function u(f){let g;const d=[],y=[];for(const S of f)S.exportClause===void 0?g=g||S:S.isTypeOnly?y.push(S):d.push(S);return{exportWithoutClause:g,namedExports:d,typeOnlyExports:y}}}function jN(e,t,n){return I.updateImportDeclaration(e,e.modifiers,I.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,n),e.moduleSpecifier,e.attributes)}function _Pe(e,t,n){return Bh(e,(i,s)=>$fe(i,s,t,n))}function $fe(e,t,n,i){switch(i==null?void 0:i.organizeImportsTypeOrder){case"first":return J0(t.isTypeOnly,e.isTypeOnly)||n(e.name.text,t.name.text);case"inline":return n(e.name.text,t.name.text);default:return J0(e.isTypeOnly,t.isTypeOnly)||n(e.name.text,t.name.text)}}function QQe(e,t,n){const i=UQ(!!n);return Xfe(e,t,i)}function Xfe(e,t,n){const i=e===void 0?void 0:iR(e),s=t===void 0?void 0:iR(t);return J0(i===void 0,s===void 0)||J0(Sl(i),Sl(s))||n(i,s)}function Qfe(e){var t;switch(e.kind){case 271:return(t=Wn(e.moduleReference,Bm))==null?void 0:t.expression;case 272:return e.moduleSpecifier;case 243:return e.declarationList.declarations[0].initializer.arguments[0]}}function YQe(e,t){return fPe(VQ(e,e.statements.filter(il)),t)}function fPe(e,t){const n=R6(t,!1),i=R6(t,!0);let s=3,o=!1;for(const c of e){if(c.length>1){const f=V4(c,g=>{var d;return((d=Wn(g.moduleSpecifier,aa))==null?void 0:d.text)??""},n,i);if(f&&(s&=f,o=!0),!s)return s}const u=wn(c,f=>{var g,d;return((d=Wn((g=f.importClause)==null?void 0:g.namedBindings,sh))==null?void 0:d.elements.length)>1});if(u){const f=Zfe(u.importClause.namedBindings.elements,t);if(f&&(s&=f,o=!0),!s)return s}if(s!==3)return s}return o?0:s}function ZQe(e,t){const n=R6(t,!1),i=R6(t,!0);return V4(e,s=>iR(Qfe(s))||"",n,i)}function KQe(e,t,n){const i=Jh(e,t,Do,(s,o)=>Yfe(s,o,n));return i<0?~i:i}function eYe(e,t,n,i){const s=Jh(e,t,Do,(o,c)=>$fe(o,c,n,i));return s<0?~s:s}function Yfe(e,t,n){return Xfe(Qfe(e),Qfe(t),n)||tYe(e,t)}function tYe(e,t){return wo(pPe(e),pPe(t))}function pPe(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 rYe(e){return Zs(e,t=>nr(nYe(t),n=>n.name&&n.propertyName&&n.name.escapedText===n.propertyName.escapedText?I.updateImportSpecifier(n,n.isTypeOnly,void 0,n.name):n))}function nYe(e){var t;return(t=e.importClause)!=null&&t.namedBindings&&sh(e.importClause.namedBindings)?e.importClause.namedBindings.elements:void 0}function UQ(e){return e?GK:mu}function iYe(e,t){const n=sYe(t),i=t.organizeImportsCaseFirst??!1,s=t.organizeImportsNumericCollation??!1,o=t.organizeImportsAccentCollation??!0,c=e?o?"accent":"base":o?"variant":"case";return new Intl.Collator(n,{usage:"sort",caseFirst:i||"false",sensitivity:c,numeric:s}).compare}function sYe(e){let t=e.organizeImportsLocale;t==="auto"&&(t=$K()),t===void 0&&(t="en");const n=Intl.Collator.supportedLocalesOf(t);return n.length?n[0]:"en"}function R6(e,t){return(e.organizeImportsCollation??"ordinal")==="unicode"?iYe(t,e):UQ(t)}function aYe(e,t){const n=typeof e.organizeImportsIgnoreCase=="boolean"?e.organizeImportsIgnoreCase:(t==null?void 0:t())??!1;return R6(e,n)}function oYe(e){const t=[],n=e.statements,i=gr(n);let s=0,o=0;for(;sVQ(e,c))}var dPe,Zfe,cYe=wt({"src/services/organizeImports.ts"(){qn(),dPe=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],n){this._lastPreferences!==t&&(this._lastPreferences=t,this._cache=void 0),this._cache??(this._cache=new WeakMap),this._cache.set(e,n)}},Zfe=HK((e,t)=>{switch(t.organizeImportsTypeOrder){case"first":if(!KI(e,(s,o)=>J0(o.isTypeOnly,s.isTypeOnly)))return 0;break;case"inline":if(!KI(e,(s,o)=>Ak(!0)(s.name.text,o.name.text)))return 0;break;default:if(!KI(e,(s,o)=>J0(s.isTypeOnly,o.isTypeOnly)))return 0;break}const n=R6(t,!1),i=R6(t,!0);if(t.organizeImportsTypeOrder!=="inline"){const{type:s,regular:o}=r7(e,f=>f.isTypeOnly?"type":"regular"),c=s!=null&&s.length?V4(s,f=>f.name.text,n,i):void 0,u=o!=null&&o.length?V4(o,f=>f.name.text??"",n,i):void 0;return c===void 0?u??0:u===void 0?c:c===0||u===0?0:u&c}return V4(e,s=>s.name.text,n,i)},new dPe)}}),Yp={};vl(Yp,{coalesceExports:()=>XQe,coalesceImports:()=>GQe,compareImportOrExportSpecifiers:()=>$fe,compareImportsOrRequireStatements:()=>Yfe,compareModuleSpecifiers:()=>QQe,detectImportDeclarationSorting:()=>ZQe,detectImportSpecifierSorting:()=>Zfe,detectSorting:()=>YQe,getImportDeclarationInsertionIndex:()=>KQe,getImportSpecifierInsertionIndex:()=>eYe,getOrganizeImportsComparer:()=>R6,organizeImports:()=>VQe});var lYe=wt({"src/services/_namespaces/ts.OrganizeImports.ts"(){cYe()}});function uYe(e,t){const n=[];return _Ye(e,t,n),fYe(e,n),n.sort((i,s)=>i.textSpan.start-s.textSpan.start)}function _Ye(e,t,n){let i=40,s=0;const o=[...e.statements,e.endOfFileToken],c=o.length;for(;s1&&i.push(sR(o,c,"comment"))}}function gPe(e,t,n,i){ex(e)||Kfe(e.pos,t,n,i)}function sR(e,t,n){return zx(Rc(e,t),n)}function pYe(e,t){switch(e.kind){case 241:if(As(e.parent))return dYe(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 d(e.parent);case 258:const T=e.parent;if(T.tryBlock===e)return d(e.parent);if(T.finallyBlock===e){const k=qa(T,98,t);if(k)return d(k)}default:return zx(Zu(e,t),"code")}case 268:return d(e.parent);case 263:case 231:case 264:case 266:case 269:case 187:case 206:return d(e);case 189:return d(e,!1,!ox(e.parent),23);case 296:case 297:return y(e.statements);case 210:return g(e);case 209:return g(e,23);case 284:return o(e);case 288:return c(e);case 285:case 286:return u(e.attributes);case 228:case 15:return f(e);case 207:return d(e,!1,!Ea(e.parent),23);case 219:return s(e);case 213:return i(e);case 217:return S(e);case 275:case 279:case 300:return n(e)}function n(T){if(!T.elements.length)return;const k=qa(T,19,t),w=qa(T,20,t);if(!(!k||!w||qf(k.pos,w.pos,t)))return qQ(k,w,T,t,!1,!1)}function i(T){if(!T.arguments.length)return;const k=qa(T,21,t),w=qa(T,22,t);if(!(!k||!w||qf(k.pos,w.pos,t)))return qQ(k,w,T,t,!1,!0)}function s(T){if(Cs(T.body)||l_(T.body)||qf(T.body.getFullStart(),T.body.getEnd(),t))return;const k=Rc(T.body.getFullStart(),T.body.getEnd());return zx(k,"code",Zu(T))}function o(T){const k=Rc(T.openingElement.getStart(t),T.closingElement.getEnd()),w=T.openingElement.tagName.getText(t),P="<"+w+">...";return zx(k,"code",k,!1,P)}function c(T){const k=Rc(T.openingFragment.getStart(t),T.closingFragment.getEnd());return zx(k,"code",k,!1,"<>...")}function u(T){if(T.properties.length!==0)return sR(T.getStart(t),T.getEnd(),"code")}function f(T){if(!(T.kind===15&&T.text.length===0))return sR(T.getStart(t),T.getEnd(),"code")}function g(T,k=19){return d(T,!1,!ju(T.parent)&&!Rs(T.parent),k)}function d(T,k=!1,w=!0,P=19,F=P===19?20:24){const J=qa(e,P,t),U=qa(e,F,t);return J&&U&&qQ(J,U,T,t,k,w)}function y(T){return T.length?zx(by(T),"code"):void 0}function S(T){if(qf(T.getStart(),T.getEnd(),t))return;const k=Rc(T.getStart(),T.getEnd());return zx(k,"code",Zu(T))}}function dYe(e,t,n){const i=mYe(e,t,n),s=qa(t,20,n);return i&&s&&qQ(i,s,e,n,e.kind!==219)}function qQ(e,t,n,i,s=!1,o=!0){const c=Rc(o?e.getFullStart():e.getStart(i),t.getEnd());return zx(c,"code",Zu(n,i),s)}function zx(e,t,n=e,i=!1,s="..."){return{textSpan:e,kind:t,hintSpan:n,bannerText:s,autoCollapse:i}}function mYe(e,t,n){if(zre(e.parameters,n)){const i=qa(e,21,n);if(i)return i}return qa(t,19,n)}var hPe,gYe=wt({"src/services/outliningElementsCollector.ts"(){qn(),hPe=/^#(end)?region(?:\s+(.*))?(?:\r)?$/}}),HQ={};vl(HQ,{collectElements:()=>uYe});var hYe=wt({"src/services/_namespaces/ts.OutliningElementsCollector.ts"(){gYe()}});function yYe(e,t,n,i){const s=EL(u_(t,n));if(vPe(s)){const o=vYe(s,e.getTypeChecker(),t,e,i);if(o)return o}return GQ(p.You_cannot_rename_this_element)}function vYe(e,t,n,i,s){const o=t.getSymbolAtLocation(e);if(!o){if(Ma(e)){const S=CL(e,t);if(S&&(S.flags&128||S.flags&1048576&&Wi(S.types,T=>!!(T.flags&128))))return epe(e.text,e.text,"string","",e,n)}else if($H(e)){const S=jc(e);return epe(S,S,"label","",e,n)}return}const{declarations:c}=o;if(!c||c.length===0)return;if(c.some(S=>bYe(i,S)))return GQ(p.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(Ie(e)&&e.escapedText==="default"&&o.parent&&o.parent.flags&1536)return;if(Ma(e)&&I8(e))return s.allowRenameOfImportPath?TYe(e,n,o):void 0;const u=SYe(n,o,t,s);if(u)return GQ(u);const f=m0.getSymbolKind(t,o,e),g=dce(e)||Tf(e)&&e.parent.kind===167?vp(yp(e)):void 0,d=g||t.symbolToString(o),y=g||t.getFullyQualifiedName(o);return epe(d,y,f,m0.getSymbolModifiers(t,o),e,n)}function bYe(e,t){const n=t.getSourceFile();return e.isSourceFileDefaultLibrary(n)&&Zo(n.fileName,".d.ts")}function SYe(e,t,n,i){if(!i.providePrefixAndSuffixTextForRename&&t.flags&2097152){const c=t.declarations&&wn(t.declarations,u=>x_(u));c&&!c.propertyName&&(t=n.getAliasedSymbol(t))}const{declarations:s}=t;if(!s)return;const o=yPe(e.path);if(o===void 0)return ct(s,c=>aN(c.getSourceFile().path))?p.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(const c of s){const u=yPe(c.getSourceFile().path);if(u){const f=Math.min(o.length,u.length);for(let g=0;g<=f;g++)if(mu(o[g],u[g])!==0)return p.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}function yPe(e){const t=ll(e),n=t.lastIndexOf("node_modules");if(n!==-1)return t.slice(0,n+2)}function TYe(e,t,n){if(!Sl(e.text))return GQ(p.You_cannot_rename_a_module_via_a_global_import);const i=n.declarations&&wn(n.declarations,Ni);if(!i)return;const s=Yo(e.text,"/index")||Yo(e.text,"/index.js")?void 0:YK($u(i.fileName),"/index"),o=s===void 0?i.fileName:s,c=s===void 0?"module":"directory",u=e.text.lastIndexOf("/")+1,f=Wl(e.getStart(t)+1+u,e.text.length-u);return{canRename:!0,fileToRename:o,kind:c,displayName:o,fullDisplayName:e.text,kindModifiers:"",triggerSpan:f}}function epe(e,t,n,i,s,o){return{canRename:!0,fileToRename:void 0,kind:n,displayName:e,fullDisplayName:t,kindModifiers:i,triggerSpan:xYe(s,o)}}function GQ(e){return{canRename:!1,localizedErrorMessage:ds(e)}}function xYe(e,t){let n=e.getStart(t),i=e.getWidth(t);return Ma(e)&&(n+=1,i-=2),Wl(n,i)}function vPe(e){switch(e.kind){case 80:case 81:case 11:case 15:case 110:return!0;case 9:return SL(e);default:return!1}}var kYe=wt({"src/services/rename.ts"(){qn()}}),aR={};vl(aR,{getRenameInfo:()=>yYe,nodeIsEligibleForRename:()=>vPe});var CYe=wt({"src/services/_namespaces/ts.Rename.ts"(){kYe()}});function EYe(e,t,n,i,s){const o=e.getTypeChecker(),c=PL(t,n);if(!c)return;const u=!!i&&i.kind==="characterTyped";if(u&&(Dx(t,n,c)||l0(t,n)))return;const f=!!i&&i.kind==="invoked",g=VYe(c,n,t,o,f);if(!g)return;s.throwIfCancellationRequested();const d=PYe(g,o,t,c,u);return s.throwIfCancellationRequested(),d?o.runWithCancellationToken(s,y=>d.kind===0?PPe(d.candidates,d.resolvedSignature,g,t,y):qYe(d.symbol,g,t,y)):Ou(t)?wYe(g,e,s):void 0}function PYe({invocation:e,argumentCount:t},n,i,s,o){switch(e.kind){case 0:{if(o&&!DYe(s,e.node,i))return;const c=[],u=n.getResolvedSignatureForSignatureHelp(e.node,c,t);return c.length===0?void 0:{kind:0,candidates:c,resolvedSignature:u}}case 1:{const{called:c}=e;if(o&&!bPe(s,i,Ie(c)?c.parent:c))return;const u=iG(c,t,n);if(u.length!==0)return{kind:0,candidates:u,resolvedSignature:va(u)};const f=n.getSymbolAtLocation(c);return f&&{kind:1,symbol:f}}case 2:return{kind:0,candidates:[e.signature],resolvedSignature:e.signature};default:return E.assertNever(e)}}function DYe(e,t,n){if(!zd(t))return!1;const i=t.getChildren(n);switch(e.kind){case 21:return bs(i,e);case 28:{const s=kL(e);return!!s&&bs(i,s)}case 30:return bPe(e,n,t.expression);default:return!1}}function wYe(e,t,n){if(e.invocation.kind===2)return;const i=CPe(e.invocation),s=Sn(i)?i.name.text:void 0,o=t.getTypeChecker();return s===void 0?void 0:$o(t.getSourceFiles(),c=>$o(c.getNamedDeclarations().get(s),u=>{const f=u.symbol&&o.getTypeOfSymbolAtLocation(u.symbol,u),g=f&&f.getCallSignatures();if(g&&g.length)return o.runWithCancellationToken(n,d=>PPe(g,g[0],e,c,d,!0))}))}function bPe(e,t,n){const i=e.getFullStart();let s=e.parent;for(;s;){const o=Qc(i,t,s,!0);if(o)return Df(n,o);s=s.parent}return E.fail("Could not find preceding token")}function AYe(e,t,n,i){const s=TPe(e,t,n,i);return!s||s.isTypeParameterList||s.invocation.kind!==0?void 0:{invocation:s.invocation.node,argumentCount:s.argumentCount,argumentIndex:s.argumentIndex}}function SPe(e,t,n,i){const s=NYe(e,n,i);if(!s)return;const{list:o,argumentIndex:c}=s,u=BYe(i,o);c!==0&&E.assertLessThan(c,u);const f=zYe(o,n);return{list:o,argumentIndex:c,argumentCount:u,argumentsSpan:f}}function NYe(e,t,n){if(e.kind===30||e.kind===21)return{list:UYe(e.parent,e,t),argumentIndex:0};{const i=kL(e);return i&&{list:i,argumentIndex:jYe(n,i,e)}}}function TPe(e,t,n,i){const{parent:s}=e;if(zd(s)){const o=s,c=SPe(e,t,n,i);if(!c)return;const{list:u,argumentIndex:f,argumentCount:g,argumentsSpan:d}=c;return{isTypeParameterList:!!s.typeArguments&&s.typeArguments.pos===u.pos,invocation:{kind:0,node:o},argumentsSpan:d,argumentIndex:f,argumentCount:g}}else{if(tx(e)&&o2(s))return GA(e,t,n)?rpe(s,0,n):void 0;if(rx(e)&&s.parent.kind===215){const o=s,c=o.parent;E.assert(o.kind===228);const u=GA(e,t,n)?0:1;return rpe(c,u,n)}else if(d3(s)&&o2(s.parent.parent)){const o=s,c=s.parent.parent;if(yO(e)&&!GA(e,t,n))return;const u=o.parent.templateSpans.indexOf(o),f=JYe(u,e,t,n);return rpe(c,f,n)}else if(Fu(s)){const o=s.attributes.pos,c=ca(n.text,s.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:s},argumentsSpan:Wl(o,c-o),argumentIndex:0,argumentCount:1}}else{const o=sG(e,n);if(o){const{called:c,nTypeArguments:u}=o,f={kind:1,called:c},g=Rc(c.getStart(n),e.end);return{isTypeParameterList:!0,invocation:f,argumentsSpan:g,argumentIndex:u,argumentCount:u+1}}return}}}function IYe(e,t,n,i){return FYe(e,t,n,i)||TPe(e,t,n,i)}function xPe(e){return Zr(e.parent)?xPe(e.parent):e}function tpe(e){return Zr(e.left)?tpe(e.left)+1:2}function FYe(e,t,n,i){const s=OYe(e);if(s===void 0)return;const o=LYe(s,n,t,i);if(o===void 0)return;const{contextualType:c,argumentIndex:u,argumentCount:f,argumentsSpan:g}=o,d=c.getNonNullableType(),y=d.symbol;if(y===void 0)return;const S=Po(d.getCallSignatures());return S===void 0?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:S,node:e,symbol:MYe(y)},argumentsSpan:g,argumentIndex:u,argumentCount:f}}function OYe(e){switch(e.kind){case 21:case 28:return e;default:return Pr(e.parent,t=>rs(t)?!0:Ea(t)||kp(t)||s2(t)?!1:"quit")}}function LYe(e,t,n,i){const{parent:s}=e;switch(s.kind){case 217:case 174:case 218:case 219:const o=SPe(e,n,t,i);if(!o)return;const{argumentIndex:c,argumentCount:u,argumentsSpan:f}=o,g=hc(s)?i.getContextualTypeForObjectLiteralElement(s):i.getContextualType(s);return g&&{contextualType:g,argumentIndex:c,argumentCount:u,argumentsSpan:f};case 226:{const d=xPe(s),y=i.getContextualType(d),S=e.kind===21?0:tpe(s)-1,T=tpe(d);return y&&{contextualType:y,argumentIndex:S,argumentCount:T,argumentsSpan:Zu(s)}}default:return}}function MYe(e){return e.name==="__type"&&$o(e.declarations,t=>{var n;return Mm(t)?(n=Wn(t.parent,Wd))==null?void 0:n.symbol:void 0})||e}function RYe(e,t){const n=t.getTypeAtLocation(e.expression);if(t.isTupleType(n)){const{elementFlags:i,fixedLength:s}=n.target;if(s===0)return 0;const o=vc(i,c=>!(c&1));return o<0?s:o}return 0}function jYe(e,t,n){return kPe(e,t,n)}function BYe(e,t){return kPe(e,t,void 0)}function kPe(e,t,n){const i=t.getChildren();let s=0,o=!1;for(const c of i){if(n&&c===n)return!o&&c.kind===28&&s++,s;if(hd(c)){s+=RYe(c,e),o=!0;continue}if(c.kind!==28){s++,o=!0;continue}if(o){o=!1;continue}s++}return n?s:i.length&&ka(i).kind===28?s+1:s}function JYe(e,t,n,i){return E.assert(n>=t.getStart(),"Assumed 'position' could not occur before node."),Zee(t)?GA(t,n,i)?0:e+2:e+1}function rpe(e,t,n){const i=tx(e.template)?1:e.template.templateSpans.length+1;return t!==0&&E.assertLessThan(t,i),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:WYe(e,n),argumentIndex:t,argumentCount:i}}function zYe(e,t){const n=e.getFullStart(),i=ca(t.text,e.getEnd(),!1);return Wl(n,i-n)}function WYe(e,t){const n=e.template,i=n.getStart();let s=n.getEnd();return n.kind===228&&ka(n.templateSpans).literal.getFullWidth()===0&&(s=ca(t.text,s,!1)),Wl(i,s-i)}function VYe(e,t,n,i,s){for(let o=e;!Ni(o)&&(s||!Cs(o));o=o.parent){E.assert(Df(o.parent,o),"Not a subspan",()=>`Child: ${E.formatSyntaxKind(o.kind)}, parent: ${E.formatSyntaxKind(o.parent.kind)}`);const c=IYe(o,t,n,i);if(c)return c}}function UYe(e,t,n){const i=e.getChildren(n),s=i.indexOf(t);return E.assert(s>=0&&i.length>s+1),i[s+1]}function CPe(e){return e.kind===0?E5(e.node):e.called}function EPe(e){return e.kind===0?e.node:e.kind===1?e.called:e.node}function PPe(e,t,{isTypeParameterList:n,argumentCount:i,argumentsSpan:s,invocation:o,argumentIndex:c},u,f,g){var d;const y=EPe(o),S=o.kind===2?o.symbol:f.getSymbolAtLocation(CPe(o))||g&&((d=t.declaration)==null?void 0:d.symbol),T=S?iP(f,S,g?u:void 0,void 0):Ve,k=nr(e,U=>GYe(U,T,n,f,y,u));c!==0&&E.assertLessThan(c,i);let w=0,P=0;for(let U=0;U1)){let j=0;for(const re of $){if(re.isVariadic||re.parameters.length>=i){w=P+j;break}j++}}P+=$.length}E.assert(w!==-1);const F={items:B4(k,Do),applicableSpan:s,selectedItemIndex:w,argumentIndex:c,argumentCount:i},J=F.items[w];if(J.isVariadic){const U=vc(J.parameters,$=>!!$.isRest);-1DPe(y,n,i,s,c)),f=e.getDocumentationComment(n),g=e.getJsDocTags(n);return{isVariadic:!1,prefixDisplayParts:[...o,Tu(30)],suffixDisplayParts:[Tu(32)],separatorDisplayParts:npe,parameters:u,documentation:f,tags:g}}function GYe(e,t,n,i,s,o){const c=(n?XYe:QYe)(e,i,s,o);return nr(c,({isVariadic:u,parameters:f,prefix:g,suffix:d})=>{const y=[...t,...g],S=[...d,...$Ye(e,s,i)],T=e.getDocumentationComment(i),k=e.getJsDocTags();return{isVariadic:u,prefixDisplayParts:y,suffixDisplayParts:S,separatorDisplayParts:npe,parameters:f,documentation:T,tags:k}})}function $Ye(e,t,n){return Sy(i=>{i.writePunctuation(":"),i.writeSpace(" ");const s=n.getTypePredicateOfSignature(e);s?n.writeTypePredicate(s,t,void 0,i):n.writeType(n.getReturnTypeOfSignature(e),t,void 0,i)})}function XYe(e,t,n,i){const s=(e.target||e).typeParameters,o=b2(),c=(s||Ve).map(f=>DPe(f,t,n,i,o)),u=e.thisParameter?[t.symbolToParameterDeclaration(e.thisParameter,n,BN)]:[];return t.getExpandedParameters(e).map(f=>{const g=I.createNodeArray([...u,...nr(f,y=>t.symbolToParameterDeclaration(y,n,BN))]),d=Sy(y=>{o.writeList(2576,g,i,y)});return{isVariadic:!1,parameters:c,prefix:[Tu(30)],suffix:[Tu(32),...d]}})}function QYe(e,t,n,i){const s=b2(),o=Sy(f=>{if(e.typeParameters&&e.typeParameters.length){const g=I.createNodeArray(e.typeParameters.map(d=>t.typeParameterToDeclaration(d,n,BN)));s.writeList(53776,g,i,f)}}),c=t.getExpandedParameters(e),u=t.hasEffectiveRestParameter(e)?c.length===1?f=>!0:f=>{var g;return!!(f.length&&((g=Wn(f[f.length-1],wm))==null?void 0:g.links.checkFlags)&32768)}:f=>!1;return c.map(f=>({isVariadic:u(f),parameters:f.map(g=>YYe(g,t,n,i,s)),prefix:[...o,Tu(21)],suffix:[Tu(22)]}))}function YYe(e,t,n,i,s){const o=Sy(f=>{const g=t.symbolToParameterDeclaration(e,n,BN);s.writeNode(4,g,i,f)}),c=t.isOptionalParameter(e.valueDeclaration),u=wm(e)&&!!(e.links.checkFlags&32768);return{name:e.name,documentation:e.getDocumentationComment(t),displayParts:o,isOptional:c,isRest:u}}function DPe(e,t,n,i,s){const o=Sy(c=>{const u=t.typeParameterToDeclaration(e,n,BN);s.writeNode(4,u,i,c)});return{name:e.symbol.name,documentation:e.symbol.getDocumentationComment(t),displayParts:o,isOptional:!1,isRest:!1}}var BN,npe,ZYe=wt({"src/services/signatureHelp.ts"(){qn(),BN=70246400,npe=[Tu(28),cc()]}}),JN={};vl(JN,{getArgumentInfoForCompletions:()=>AYe,getSignatureHelpItems:()=>EYe});var KYe=wt({"src/services/_namespaces/ts.SignatureHelp.ts"(){ZYe()}});function eZe(e,t){var n,i;let s={textSpan:Rc(t.getFullStart(),t.getEnd())},o=t;e:for(;;){const f=rZe(o);if(!f.length)break;for(let g=0;ge)break e;const T=Tm(m1(t.text,y.end));if(T&&T.kind===2&&u(T.pos,T.end),tZe(t,e,y)){if(cz(y)&&fo(o)&&!qf(y.getStart(t),y.getEnd(),t)&&c(y.getStart(t),y.getEnd()),Cs(y)||d3(y)||rx(y)||yO(y)||d&&rx(d)||dl(y)&&ac(o)||qC(y)&&dl(o)||hi(y)&&qC(o)&&f.length===1||d2(y)||R1(y)||Yb(y)){o=y;break}if(d3(o)&&S&&$7(S)){const F=y.getFullStart()-2,J=S.getStart()+1;c(F,J)}const k=qC(y)&&nZe(d)&&iZe(S)&&!qf(d.getStart(),S.getStart(),t);let w=k?d.getEnd():y.getStart();const P=k?S.getStart():sZe(t,y);if(sf(y)&&((n=y.jsDoc)!=null&&n.length)&&c(va(y.jsDoc).getStart(),P),qC(y)){const F=y.getChildren()[0];F&&sf(F)&&((i=F.jsDoc)!=null&&i.length)&&F.getStart()!==y.pos&&(w=Math.min(w,va(F.jsDoc).getStart()))}c(w,P),(aa(y)||NT(y))&&c(w+1,P-1),o=y;break}if(g===f.length-1)break e}}return s;function c(f,g){if(f!==g){const d=Rc(f,g);(!s||!b6(d,s.textSpan)&&Aee(d,e))&&(s={textSpan:d,...s&&{parent:s}})}}function u(f,g){c(f,g);let d=f;for(;t.text.charCodeAt(d)===47;)d++;c(d,g)}}function tZe(e,t,n){return E.assert(n.pos<=t),tu===e.readonlyToken||u.kind===148||u===e.questionToken||u.kind===58),c=zN(o,({kind:u})=>u===23||u===168||u===24);return[n,WN($Q(c,({kind:u})=>u===59)),s]}if(B_(e)){const n=zN(e.getChildren(),c=>c===e.name||bs(e.modifiers,c)),i=((t=n[0])==null?void 0:t.kind)===327?n[0]:void 0,s=i?n.slice(1):n,o=$Q(s,({kind:c})=>c===59);return i?[i,WN(o)]:o}if(rs(e)){const n=zN(e.getChildren(),s=>s===e.dotDotDotToken||s===e.name),i=zN(n,s=>s===n[0]||s===e.questionToken);return $Q(i,({kind:s})=>s===64)}return Ea(e)?$Q(e.getChildren(),({kind:n})=>n===64):e.getChildren()}function zN(e,t){const n=[];let i;for(const s of e)t(s)?(i=i||[],i.push(s)):(i&&(n.push(WN(i)),i=void 0),n.push(s));return i&&n.push(WN(i)),n}function $Q(e,t,n=!0){if(e.length<2)return e;const i=vc(e,t);if(i===-1)return e;const s=e.slice(0,i),o=e[i],c=ka(e),u=n&&c.kind===27,f=e.slice(i+1,u?e.length-1:void 0),g=yD([s.length?WN(s):void 0,o,f.length?WN(f):void 0]);return u?g.concat(c):g}function WN(e){return E.assertGreaterThanOrEqual(e.length,1),Fm(Jm.createSyntaxList(e),e[0].pos,ka(e).end)}function nZe(e){const t=e&&e.kind;return t===19||t===23||t===21||t===286}function iZe(e){const t=e&&e.kind;return t===20||t===24||t===22||t===287}function sZe(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 wPe,aZe=wt({"src/services/smartSelection.ts"(){qn(),wPe=pd(il,El)}}),XQ={};vl(XQ,{getSmartSelectionRange:()=>eZe});var oZe=wt({"src/services/_namespaces/ts.SmartSelectionRange.ts"(){aZe()}});function APe(e,t,n){const i=NPe(e,t,n);if(i!=="")return i;const s=kC(t);return s&32?Bo(t,231)?"local class":"class":s&384?"enum":s&524288?"type":s&64?"interface":s&262144?"type parameter":s&8?"enum member":s&2097152?"alias":s&1536?"module":i}function NPe(e,t,n){const i=e.getRootSymbols(t);if(i.length===1&&va(i).flags&8192&&e.getTypeOfSymbolAtLocation(t,n).getNonNullableType().getCallSignatures().length!==0)return"method";if(e.isUndefinedSymbol(t))return"var";if(e.isArgumentsSymbol(t))return"local var";if(n.kind===110&&ot(n)||JT(n))return"parameter";const s=kC(t);if(s&3)return xG(t)?"parameter":t.valueDeclaration&&tC(t.valueDeclaration)?"const":t.valueDeclaration&&m8(t.valueDeclaration)?"using":t.valueDeclaration&&d8(t.valueDeclaration)?"await using":er(t.declarations,g5)?"let":OPe(t)?"local var":"var";if(s&16)return OPe(t)?"local function":"function";if(s&32768)return"getter";if(s&65536)return"setter";if(s&8192)return"method";if(s&16384)return"constructor";if(s&131072)return"index";if(s&4){if(s&33554432&&t.links.checkFlags&6){const o=er(e.getRootSymbols(t),c=>{if(c.getFlags()&98311)return"property"});return o||(e.getTypeOfSymbolAtLocation(t,n).getCallSignatures().length?"method":"property")}return"property"}return""}function IPe(e){if(e.declarations&&e.declarations.length){const[t,...n]=e.declarations,i=gr(n)&&eM(t)&&ct(n,o=>!eM(o))?65536:0,s=K3(t,i);if(s)return s.split(",")}return[]}function cZe(e,t){if(!t)return"";const n=new Set(IPe(t));if(t.flags&2097152){const i=e.getAliasedSymbol(t);i!==t&&er(IPe(i),s=>{n.add(s)})}return t.flags&16777216&&n.add("optional"),n.size>0?gs(n.values()).join(","):""}function FPe(e,t,n,i,s,o,c,u){var f;const g=[];let d=[],y=[];const S=kC(t);let T=c&1?NPe(e,t,s):"",k=!1;const w=s.kind===110&&D5(s)||JT(s);let P,F,J=!1;if(s.kind===110&&!w)return{displayParts:[V_(110)],documentation:[],symbolKind:"primitive type",tags:void 0};if(T!==""||S&32||S&2097152){if(T==="getter"||T==="setter"){const oe=wn(t.declarations,Se=>Se.name===s);if(oe)switch(oe.kind){case 177:T="getter";break;case 178:T="setter";break;case 172:T="accessor";break;default:E.assertNever(oe)}else T="property"}let q;if(o??(o=w?e.getTypeAtLocation(s):e.getTypeOfSymbolAtLocation(t,s)),s.parent&&s.parent.kind===211){const oe=s.parent.name;(oe===s||oe&&oe.getFullWidth()===0)&&(s=s.parent)}let ee;if(zd(s)?ee=s:(UH(s)||Y3(s)||s.parent&&(Fu(s.parent)||o2(s.parent))&&As(t.valueDeclaration))&&(ee=s.parent),ee){q=e.getResolvedSignature(ee);const oe=ee.kind===214||Rs(ee)&&ee.expression.kind===108,Se=oe?o.getConstructSignatures():o.getCallSignatures();if(q&&!bs(Se,q.target)&&!bs(Se,q)&&(q=Se.length?Se[0]:void 0),q){switch(oe&&S&32?(T="constructor",Y(o.symbol,T)):S&2097152?(T="alias",ue(T),g.push(cc()),oe&&(q.flags&4&&(g.push(V_(128)),g.push(cc())),g.push(V_(105)),g.push(cc())),R(t)):Y(t,T),T){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":g.push(Tu(59)),g.push(cc()),!(bn(o)&16)&&o.symbol&&(Nn(g,iP(e,o.symbol,i,void 0,5)),g.push(S6())),oe&&(q.flags&4&&(g.push(V_(128)),g.push(cc())),g.push(V_(105)),g.push(cc())),pe(q,Se,262144);break;default:pe(q,Se)}k=!0,J=Se.length>1}}else if(ZH(s)&&!(S&98304)||s.kind===137&&s.parent.kind===176){const oe=s.parent;if(t.declarations&&wn(t.declarations,ae=>ae===(s.kind===137?oe.parent:oe))){const ae=oe.kind===176?o.getNonNullableType().getConstructSignatures():o.getNonNullableType().getCallSignatures();e.isImplementationOfOverload(oe)?q=ae[0]:q=e.getSignatureFromDeclaration(oe),oe.kind===176?(T="constructor",Y(o.symbol,T)):Y(oe.kind===179&&!(o.symbol.flags&2048||o.symbol.flags&4096)?o.symbol:t,T),q&&pe(q,ae),k=!0,J=ae.length>1}}}if(S&32&&!k&&!w&&(j(),Bo(t,231)?ue("local class"):g.push(V_(86)),g.push(cc()),R(t),H(t,n)),S&64&&c&2&&($(),g.push(V_(120)),g.push(cc()),R(t),H(t,n)),S&524288&&c&2&&($(),g.push(V_(156)),g.push(cc()),R(t),H(t,n),g.push(cc()),g.push(nP(64)),g.push(cc()),Nn(g,eN(e,s.parent&&Qg(s.parent)?e.getTypeAtLocation(s.parent):e.getDeclaredTypeOfSymbol(t),i,8388608))),S&384&&($(),ct(t.declarations,q=>L1(q)&&zv(q))&&(g.push(V_(87)),g.push(cc())),g.push(V_(94)),g.push(cc()),R(t)),S&1536&&!w){$();const q=Bo(t,267),ee=q&&q.name&&q.name.kind===80;g.push(V_(ee?145:144)),g.push(cc()),R(t)}if(S&262144&&c&2)if($(),g.push(Tu(21)),g.push(Af("type parameter")),g.push(Tu(22)),g.push(cc()),R(t),t.parent)re(),R(t.parent,i),H(t.parent,i);else{const q=Bo(t,168);if(q===void 0)return E.fail();const ee=q.parent;if(ee)if(As(ee)){re();const oe=e.getSignatureFromDeclaration(ee);ee.kind===180?(g.push(V_(105)),g.push(cc())):ee.kind!==179&&ee.name&&R(ee.symbol),Nn(g,EG(e,oe,n,32))}else Gp(ee)&&(re(),g.push(V_(156)),g.push(cc()),R(ee.symbol),H(ee.symbol,n))}if(S&8){T="enum member",Y(t,"enum member");const q=(f=t.declarations)==null?void 0:f[0];if((q==null?void 0:q.kind)===306){const ee=e.getConstantValue(q);ee!==void 0&&(g.push(cc()),g.push(nP(64)),g.push(cc()),g.push(C_(wte(ee),typeof ee=="number"?7:8)))}}if(t.flags&2097152){if($(),!k||d.length===0&&y.length===0){const q=e.getAliasedSymbol(t);if(q!==t&&q.declarations&&q.declarations.length>0){const ee=q.declarations[0],oe=us(ee);if(oe&&!k){const Se=f5(ee)&&Rn(ee,128),ae=t.name!=="default"&&!Se,K=FPe(e,q,wr(ee),ee,oe,o,c,ae?t:q);g.push(...K.displayParts),g.push(S6()),P=K.documentation,F=K.tags}else P=q.getContextualDocumentationComment(ee,e),F=q.getJsDocTags(e)}}if(t.declarations)switch(t.declarations[0].kind){case 270:g.push(V_(95)),g.push(cc()),g.push(V_(145));break;case 277:g.push(V_(95)),g.push(cc()),g.push(V_(t.declarations[0].isExportEquals?64:90));break;case 281:g.push(V_(95));break;default:g.push(V_(102))}g.push(cc()),R(t),er(t.declarations,q=>{if(q.kind===271){const ee=q;if(C1(ee))g.push(cc()),g.push(nP(64)),g.push(cc()),g.push(V_(149)),g.push(Tu(21)),g.push(C_(jc(bE(ee)),8)),g.push(Tu(22));else{const oe=e.getSymbolAtLocation(ee.moduleReference);oe&&(g.push(cc()),g.push(nP(64)),g.push(cc()),R(oe,i))}return!0}})}if(!k)if(T!==""){if(o){if(w?($(),g.push(V_(110))):Y(t,T),T==="property"||T==="accessor"||T==="getter"||T==="setter"||T==="JSX attribute"||S&3||T==="local var"||T==="index"||T==="using"||T==="await using"||w){if(g.push(Tu(59)),g.push(cc()),o.symbol&&o.symbol.flags&262144&&T!=="index"){const q=Sy(ee=>{const oe=e.typeParameterToDeclaration(o,i,ipe);U().writeNode(4,oe,wr(as(i)),ee)});Nn(g,q)}else Nn(g,eN(e,o,i));if(wm(t)&&t.links.target&&wm(t.links.target)&&t.links.target.links.tupleLabelDeclaration){const q=t.links.target.links.tupleLabelDeclaration;E.assertNode(q.name,Ie),g.push(cc()),g.push(Tu(21)),g.push(Af(on(q.name))),g.push(Tu(22))}}else if(S&16||S&8192||S&16384||S&131072||S&98304||T==="method"){const q=o.getNonNullableType().getCallSignatures();q.length&&(pe(q[0],q),J=q.length>1)}}}else T=APe(e,t,s);if(d.length===0&&!J&&(d=t.getContextualDocumentationComment(i,e)),d.length===0&&S&4&&t.parent&&t.declarations&&er(t.parent.declarations,q=>q.kind===312))for(const q of t.declarations){if(!q.parent||q.parent.kind!==226)continue;const ee=e.getSymbolAtLocation(q.parent.right);if(ee&&(d=ee.getDocumentationComment(e),y=ee.getJsDocTags(e),d.length>0))break}if(d.length===0&&Ie(s)&&t.valueDeclaration&&Ea(t.valueDeclaration)){const q=t.valueDeclaration,ee=q.parent,oe=q.propertyName||q.name;if(Ie(oe)&&kp(ee)){const Se=yp(oe),ae=e.getTypeAtLocation(ee);d=$o(ae.isUnion()?ae.types:[ae],K=>{const fe=K.getProperty(Se);return fe?fe.getDocumentationComment(e):void 0})||Ve}}return y.length===0&&!J&&(y=t.getContextualJsDocTags(i,e)),d.length===0&&P&&(d=P),y.length===0&&F&&(y=F),{displayParts:g,documentation:d,symbolKind:T,tags:y.length===0?void 0:y};function U(){return b2()}function $(){g.length&&g.push(S6()),j()}function j(){u&&(ue("alias"),g.push(cc()))}function re(){g.push(cc()),g.push(V_(103)),g.push(cc())}function R(q,ee){let oe;u&&q===t&&(q=u),T==="index"&&(oe=e.getIndexInfosOfIndexSymbol(q));let Se=[];q.flags&131072&&oe?(q.parent&&(Se=iP(e,q.parent)),Se.push(Tu(23)),oe.forEach((ae,K)=>{Se.push(...eN(e,ae.keyType)),K!==oe.length-1&&(Se.push(cc()),Se.push(Tu(52)),Se.push(cc()))}),Se.push(Tu(24))):Se=iP(e,q,ee||n,void 0,7),Nn(g,Se),t.flags&16777216&&g.push(Tu(58))}function Y(q,ee){$(),ee&&(ue(ee),q&&!ct(q.declarations,oe=>po(oe)||(co(oe)||kl(oe))&&!oe.name)&&(g.push(cc()),R(q)))}function ue(q){switch(q){case"var":case"function":case"let":case"const":case"constructor":case"using":case"await using":g.push(kG(q));return;default:g.push(Tu(21)),g.push(kG(q)),g.push(Tu(22));return}}function pe(q,ee,oe=0){Nn(g,EG(e,q,i,oe|32)),ee.length>1&&(g.push(cc()),g.push(Tu(21)),g.push(nP(40)),g.push(C_((ee.length-1).toString(),7)),g.push(cc()),g.push(Af(ee.length===2?"overload":"overloads")),g.push(Tu(22))),d=q.getDocumentationComment(e),y=q.getJsDocTags(),ee.length>1&&d.length===0&&y.length===0&&(d=ee[0].getDocumentationComment(e),y=ee[0].getJsDocTags().filter(Se=>Se.name!=="deprecated"))}function H(q,ee){const oe=Sy(Se=>{const ae=e.symbolToTypeParameterDeclarations(q,ee,ipe);U().writeList(53776,ae,wr(as(ee)),Se)});Nn(g,oe)}}function lZe(e,t,n,i,s,o=oS(s),c){return FPe(e,t,n,i,s,void 0,o,c)}function OPe(e){return e.parent?!1:er(e.declarations,t=>{if(t.kind===218)return!0;if(t.kind!==260&&t.kind!==262)return!1;for(let n=t.parent;!Vv(n);n=n.parent)if(n.kind===312||n.kind===268)return!1;return!0})}var ipe,uZe=wt({"src/services/symbolDisplay.ts"(){qn(),ipe=70246400}}),m0={};vl(m0,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>lZe,getSymbolKind:()=>APe,getSymbolModifiers:()=>cZe});var _Ze=wt({"src/services/_namespaces/ts.SymbolDisplay.ts"(){uZe()}});function LPe(e){const t=e.__pos;return E.assert(typeof t=="number"),t}function spe(e,t){E.assert(typeof t=="number"),e.__pos=t}function MPe(e){const t=e.__end;return E.assert(typeof t=="number"),t}function ape(e,t){E.assert(typeof t=="number"),e.__end=t}function RPe(e,t){return ca(e,t,!1,!0)}function fZe(e,t){let n=t;for(;n0?1:0;let S=ey(NE(e,g)+y,e);return S=RPe(e.text,S),ey(NE(e,S),e)}function ope(e,t,n){const{end:i}=t,{trailingTriviaOption:s}=n;if(s===2){const o=m1(e.text,i);if(o){const c=NE(e,t.end);for(const u of o){if(u.kind===2||NE(e,u.pos)>c)break;if(NE(e,u.end)>c)return ca(e.text,u.end,!0,!0)}}}}function j6(e,t,n){var i;const{end:s}=t,{trailingTriviaOption:o}=n;if(o===0)return s;if(o===1){const f=es(m1(e.text,s),_g(e.text,s)),g=(i=f==null?void 0:f[f.length-1])==null?void 0:i.end;return g||s}const c=ope(e,t,n);if(c)return c;const u=ca(e.text,s,!0);return u!==s&&(o===2||gu(e.text.charCodeAt(u-1)))?u:s}function QQ(e,t){return!!t&&!!e.parent&&(t.kind===28||t.kind===27&&e.parent.kind===210)}function pZe(e){return co(e)||$c(e)}function dZe(e){if(e.kind!==219)return e;const t=e.parent.kind===172?e.parent:e.parent.parent;return t.jsDoc=e.jsDoc,t}function mZe(e,t){if(e.kind===t.kind)switch(e.kind){case 348:{const n=e,i=t;return Ie(n.name)&&Ie(i.name)&&n.name.escapedText===i.name.escapedText?I.createJSDocParameterTag(void 0,i.name,!1,i.typeExpression,i.isNameFirst,n.comment):void 0}case 349:return I.createJSDocReturnTag(void 0,t.typeExpression,e.comment);case 351:return I.createJSDocTypeTag(void 0,t.typeExpression,e.comment)}}function cpe(e,t){return ca(e.text,dS(e,t,{leadingTriviaOption:1}),!1,!0)}function gZe(e,t,n,i){const s=cpe(e,i);if(n===void 0||qf(j6(e,t,{}),s,e))return s;const o=Qc(i.getStart(e),e);if(QQ(t,o)){const c=Qc(t.getStart(e),e);if(QQ(n,c)){const u=ca(e.text,o.getEnd(),!0,!0);if(qf(c.getStart(e),o.getStart(e),e))return gu(e.text.charCodeAt(u-1))?u-1:u;if(gu(e.text.charCodeAt(u)))return u}}return s}function hZe(e,t){const n=qa(e,19,t),i=qa(e,20,t);return[n==null?void 0:n.end,i==null?void 0:i.end]}function YQ(e){return ua(e)?e.properties:e.members}function lpe(e,t){for(let n=t.length-1;n>=0;n--){const{span:i,newText:s}=t[n];e=`${e.substring(0,i.start)}${s}${e.substring(bc(i))}`}return e}function yZe(e){return ca(e,0)===e.length}function ZQ(e){const t=ur(e,ZQ,zPe,vZe,ZQ),n=xo(t)?t:Object.create(t);return Fm(n,LPe(e),MPe(e)),n}function vZe(e,t,n,i,s){const o=Dr(e,t,n,i,s);if(!o)return o;E.assert(e);const c=o===e?I.createNodeArray(o.slice(0)):o;return Fm(c,LPe(e),MPe(e)),c}function jPe(e){let t=0;const n=G8(e),i=K=>{K&&spe(K,t)},s=K=>{K&&ape(K,t)},o=K=>{K&&spe(K,t)},c=K=>{K&&ape(K,t)},u=K=>{K&&spe(K,t)},f=K=>{K&&ape(K,t)};function g(K,fe){if(fe||!yZe(K)){t=n.getTextPos();let ke=0;for(;Xg(K.charCodeAt(K.length-ke-1));)ke++;t-=ke}}function d(K){n.write(K),g(K,!1)}function y(K){n.writeComment(K)}function S(K){n.writeKeyword(K),g(K,!1)}function T(K){n.writeOperator(K),g(K,!1)}function k(K){n.writePunctuation(K),g(K,!1)}function w(K){n.writeTrailingSemicolon(K),g(K,!1)}function P(K){n.writeParameter(K),g(K,!1)}function F(K){n.writeProperty(K),g(K,!1)}function J(K){n.writeSpace(K),g(K,!1)}function U(K){n.writeStringLiteral(K),g(K,!1)}function $(K,fe){n.writeSymbol(K,fe),g(K,!1)}function j(K){n.writeLine(K)}function re(){n.increaseIndent()}function R(){n.decreaseIndent()}function Y(){return n.getText()}function ue(K){n.rawWrite(K),g(K,!1)}function pe(K){n.writeLiteral(K),g(K,!0)}function H(){return n.getTextPos()}function q(){return n.getLine()}function ee(){return n.getColumn()}function oe(){return n.getIndent()}function Se(){return n.isAtStartOfLine()}function ae(){n.clear(),t=0}return{onBeforeEmitNode:i,onAfterEmitNode:s,onBeforeEmitNodeArray:o,onAfterEmitNodeArray:c,onBeforeEmitToken:u,onAfterEmitToken:f,write:d,writeComment:y,writeKeyword:S,writeOperator:T,writePunctuation:k,writeTrailingSemicolon:w,writeParameter:P,writeProperty:F,writeSpace:J,writeStringLiteral:U,writeSymbol:$,writeLine:j,increaseIndent:re,decreaseIndent:R,getText:Y,rawWrite:ue,writeLiteral:pe,getTextPos:H,getLine:q,getColumn:ee,getIndent:oe,isAtStartOfLine:Se,hasTrailingComment:()=>n.hasTrailingComment(),hasTrailingWhitespace:()=>n.hasTrailingWhitespace(),clear:ae}}function bZe(e){let t;for(const g of e.statements)if(Vp(g))t=g;else break;let n=0;const i=e.text;if(t)return n=t.end,f(),n;const s=R7(i);s!==void 0&&(n=s.length,f());const o=_g(i,n);if(!o)return n;let c,u;for(const g of o){if(g.kind===3){if(u5(i,g.pos)){c={range:g,pinnedOrTripleSlash:!0};continue}}else if(hz(i,g.pos,g.end)){c={range:g,pinnedOrTripleSlash:!0};continue}if(c){if(c.pinnedOrTripleSlash)break;const d=e.getLineAndCharacterOfPosition(g.pos).line,y=e.getLineAndCharacterOfPosition(c.range.end).line;if(d>=y+2)break}if(e.statements.length){u===void 0&&(u=e.getLineAndCharacterOfPosition(e.statements[0].getStart()).line);const d=e.getLineAndCharacterOfPosition(g.end).line;if(u(e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine",e))(upe||{}),_pe=(e=>(e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include",e))(_pe||{}),vP={leadingTriviaOption:0,trailingTriviaOption:0},JPe=class s0e{constructor(t,n){this.newLineCharacter=t,this.formatContext=n,this.changes=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(t){return new s0e(f0(t.host,t.formatContext.options),t.formatContext)}static with(t,n){const i=s0e.fromContext(t);return n(i),i.getChanges()}pushRaw(t,n){E.assertEqual(t.fileName,n.fileName);for(const i of n.textChanges)this.changes.push({kind:3,sourceFile:t,text:i.newText,range:IL(i.span)})}deleteRange(t,n){this.changes.push({kind:0,sourceFile:t,range:n})}delete(t,n){this.deletedNodes.push({sourceFile:t,node:n})}deleteNode(t,n,i={leadingTriviaOption:1}){this.deleteRange(t,VN(t,n,n,i))}deleteNodes(t,n,i={leadingTriviaOption:1},s){for(const o of n){const c=dS(t,o,i,s),u=j6(t,o,i);this.deleteRange(t,{pos:c,end:u}),s=!!ope(t,o,i)}}deleteModifier(t,n){this.deleteRange(t,{pos:n.getStart(t),end:ca(t.text,n.end,!0)})}deleteNodeRange(t,n,i,s={leadingTriviaOption:1}){const o=dS(t,n,s),c=j6(t,i,s);this.deleteRange(t,{pos:o,end:c})}deleteNodeRangeExcludingEnd(t,n,i,s={leadingTriviaOption:1}){const o=dS(t,n,s),c=i===void 0?t.text.length:dS(t,i,s);this.deleteRange(t,{pos:o,end:c})}replaceRange(t,n,i,s={}){this.changes.push({kind:1,sourceFile:t,range:n,options:s,node:i})}replaceNode(t,n,i,s=vP){this.replaceRange(t,VN(t,n,n,s),i,s)}replaceNodeRange(t,n,i,s,o=vP){this.replaceRange(t,VN(t,n,i,o),s,o)}replaceRangeWithNodes(t,n,i,s={}){this.changes.push({kind:2,sourceFile:t,range:n,options:s,nodes:i})}replaceNodeWithNodes(t,n,i,s=vP){this.replaceRangeWithNodes(t,VN(t,n,n,s),i,s)}replaceNodeWithText(t,n,i){this.replaceRangeWithText(t,VN(t,n,n,vP),i)}replaceNodeRangeWithNodes(t,n,i,s,o=vP){this.replaceRangeWithNodes(t,VN(t,n,i,o),s,o)}nodeHasTrailingComment(t,n,i=vP){return!!ope(t,n,i)}nextCommaToken(t,n){const i=x2(n,n.parent,t);return i&&i.kind===28?i:void 0}replacePropertyAssignment(t,n,i){const s=this.nextCommaToken(t,n)?"":","+this.newLineCharacter;this.replaceNode(t,n,i,{suffix:s})}insertNodeAt(t,n,i,s={}){this.replaceRange(t,Uf(n),i,s)}insertNodesAt(t,n,i,s={}){this.replaceRangeWithNodes(t,Uf(n),i,s)}insertNodeAtTopOfFile(t,n,i){this.insertAtTopOfFile(t,n,i)}insertNodesAtTopOfFile(t,n,i){this.insertAtTopOfFile(t,n,i)}insertAtTopOfFile(t,n,i){const s=bZe(t),o={prefix:s===0?void 0:this.newLineCharacter,suffix:(gu(t.text.charCodeAt(s))?"":this.newLineCharacter)+(i?this.newLineCharacter:"")};ts(n)?this.insertNodesAt(t,s,n,o):this.insertNodeAt(t,s,n,o)}insertNodesAtEndOfFile(t,n,i){this.insertAtEndOfFile(t,n,i)}insertAtEndOfFile(t,n,i){const s=t.end+1,o={prefix:this.newLineCharacter,suffix:this.newLineCharacter+(i?this.newLineCharacter:"")};this.insertNodesAt(t,s,n,o)}insertStatementsInNewFile(t,n,i){this.newFileChanges||(this.newFileChanges=vf()),this.newFileChanges.add(t,{oldFile:i,statements:n})}insertFirstParameter(t,n,i){const s=bl(n);s?this.insertNodeBefore(t,s,i):this.insertNodeAt(t,n.pos,i)}insertNodeBefore(t,n,i,s=!1,o={}){this.insertNodeAt(t,dS(t,n,o),i,this.getOptionsForInsertNodeBefore(n,i,s))}insertNodesBefore(t,n,i,s=!1,o={}){this.insertNodesAt(t,dS(t,n,o),i,this.getOptionsForInsertNodeBefore(n,va(i),s))}insertModifierAt(t,n,i,s={}){this.insertNodeAt(t,n,I.createToken(i),s)}insertModifierBefore(t,n,i){return this.insertModifierAt(t,i.getStart(t),n,{suffix:" "})}insertCommentBeforeLine(t,n,i,s){const o=ey(n,t),c=gce(t.text,o),u=BPe(t,c),f=h6(t,u?c:i),g=t.text.slice(o,c),d=`${u?"":this.newLineCharacter}//${s}${this.newLineCharacter}${g}`;this.insertText(t,f.getStart(t),d)}insertJsdocCommentBefore(t,n,i){const s=n.getStart(t);if(n.jsDoc)for(const u of n.jsDoc)this.deleteRange(t,{pos:Ep(u.getStart(t),t),end:j6(t,u,{})});const o=WL(t.text,s-1),c=t.text.slice(o,s);this.insertNodeAt(t,s,i,{suffix:this.newLineCharacter+c})}createJSDocText(t,n){const i=Zs(n.jsDoc,o=>ls(o.comment)?I.createJSDocText(o.comment):o.comment),s=Tm(n.jsDoc);return s&&qf(s.pos,s.end,t)&&gr(i)===0?void 0:I.createNodeArray(cg(i,I.createJSDocText(` -`)))}replaceJSDocComment(t,n,i){this.insertJsdocCommentBefore(t,dZe(n),I.createJSDocComment(this.createJSDocText(t,n),I.createNodeArray(i)))}addJSDocTags(t,n,i){const s=B4(n.jsDoc,c=>c.tags),o=i.filter(c=>!s.some((u,f)=>{const g=mZe(u,c);return g&&(s[f]=g),!!g}));this.replaceJSDocComment(t,n,[...s,...o])}filterJSDocTags(t,n,i){this.replaceJSDocComment(t,n,An(B4(n.jsDoc,s=>s.tags),i))}replaceRangeWithText(t,n,i){this.changes.push({kind:3,sourceFile:t,range:n,text:i})}insertText(t,n,i){this.replaceRangeWithText(t,Uf(n),i)}tryInsertTypeAnnotation(t,n,i){let s;if(As(n)){if(s=qa(n,22,t),!s){if(!po(n))return!1;s=va(n.parameters)}}else s=(n.kind===260?n.exclamationToken:n.questionToken)??n.name;return this.insertNodeAt(t,s.end,i,{prefix:": "}),!0}tryInsertThisTypeAnnotation(t,n,i){const s=qa(n,21,t).getStart(t)+1,o=n.parameters.length?", ":"";this.insertNodeAt(t,s,i,{prefix:"this: ",suffix:o})}insertTypeParameters(t,n,i){const s=(qa(n,21,t)||va(n.parameters)).getStart(t);this.insertNodesAt(t,s,i,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(t,n,i){return Ei(t)||Tl(t)?{suffix:i?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:hi(t)?{suffix:", "}:rs(t)?rs(n)?{suffix:", "}:{}:aa(t)&&il(t.parent)||sh(t)?{suffix:", "}:x_(t)?{suffix:","+(i?this.newLineCharacter:" ")}:E.failBadSyntaxKind(t)}insertNodeAtConstructorStart(t,n,i){const s=bl(n.body.statements);!s||!n.body.multiLine?this.replaceConstructorBody(t,n,[i,...n.body.statements]):this.insertNodeBefore(t,s,i)}insertNodeAtConstructorStartAfterSuperCall(t,n,i){const s=wn(n.body.statements,o=>Cl(o)&&Pb(o.expression));!s||!n.body.multiLine?this.replaceConstructorBody(t,n,[...n.body.statements,i]):this.insertNodeAfter(t,s,i)}insertNodeAtConstructorEnd(t,n,i){const s=Po(n.body.statements);!s||!n.body.multiLine?this.replaceConstructorBody(t,n,[...n.body.statements,i]):this.insertNodeAfter(t,s,i)}replaceConstructorBody(t,n,i){this.replaceNode(t,n.body,I.createBlock(i,!0))}insertNodeAtEndOfScope(t,n,i){const s=dS(t,n.getLastToken(),{});this.insertNodeAt(t,s,i,{prefix:gu(t.text.charCodeAt(n.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})}insertMemberAtStart(t,n,i){this.insertNodeAtStartWorker(t,n,i)}insertNodeAtObjectStart(t,n,i){this.insertNodeAtStartWorker(t,n,i)}insertNodeAtStartWorker(t,n,i){const s=this.guessIndentationFromExistingMembers(t,n)??this.computeIndentationForNewMember(t,n);this.insertNodeAt(t,YQ(n).pos,i,this.getInsertNodeAtStartInsertOptions(t,n,s))}guessIndentationFromExistingMembers(t,n){let i,s=n;for(const o of YQ(n)){if(iF(s,o,t))return;const c=o.getStart(t),u=al.SmartIndenter.findFirstNonWhitespaceColumn(Ep(c,t),c,t,this.formatContext.options);if(i===void 0)i=u;else if(u!==i)return;s=o}return i}computeIndentationForNewMember(t,n){const i=n.getStart(t);return al.SmartIndenter.findFirstNonWhitespaceColumn(Ep(i,t),i,t,this.formatContext.options)+(this.formatContext.options.indentSize??4)}getInsertNodeAtStartInsertOptions(t,n,i){const o=YQ(n).length===0,c=qp(this.classesWithNodesInsertedAtStart,Oa(n),{node:n,sourceFile:t}),u=ua(n)&&(!gp(t)||!o),f=ua(n)&&gp(t)&&o&&!c;return{indentation:i,prefix:(f?",":"")+this.newLineCharacter,suffix:u?",":Bu(n)&&o?";":""}}insertNodeAfterComma(t,n,i){const s=this.insertNodeAfterWorker(t,this.nextCommaToken(t,n)||n,i);this.insertNodeAt(t,s,i,this.getInsertNodeAfterOptions(t,n))}insertNodeAfter(t,n,i){const s=this.insertNodeAfterWorker(t,n,i);this.insertNodeAt(t,s,i,this.getInsertNodeAfterOptions(t,n))}insertNodeAtEndOfList(t,n,i){this.insertNodeAt(t,n.end,i,{prefix:", "})}insertNodesAfter(t,n,i){const s=this.insertNodeAfterWorker(t,n,va(i));this.insertNodesAt(t,s,i,this.getInsertNodeAfterOptions(t,n))}insertNodeAfterWorker(t,n,i){return SZe(n,i)&&t.text.charCodeAt(n.end-1)!==59&&this.replaceRange(t,Uf(n.end),I.createToken(27)),j6(t,n,{})}getInsertNodeAfterOptions(t,n){const i=this.getInsertNodeAfterOptionsWorker(n);return{...i,prefix:n.end===t.end&&Ei(n)?i.prefix?` + `,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return T}}function nke(e){switch(e.kind){case 173:case 174:case 179:case 176:case 180:case 262:return!0}return!1}function ike(e,t,n){const i=Ui(e,t),s=Pr(i,nke);if(!s||po(s)&&s.body&&zA(s.body,t))return;const o=n.getTypeChecker(),c=s.symbol;if(!c)return;const u=c.declarations;if(mr(u)<=1||!Wi(u,S=>wr(S)===e)||!nke(u[0]))return;const f=u[0].kind;if(!Wi(u,S=>S.kind===f))return;const g=u;if(ct(g,S=>!!S.typeParameters||ct(S.parameters,T=>!!T.modifiers||!Ie(T.name))))return;const d=Ri(g,S=>o.getSignatureFromDeclaration(S));if(mr(d)!==mr(u))return;const y=o.getReturnTypeOfSignature(d[0]);if(Wi(d,S=>o.getReturnTypeOfSignature(S)===y))return g}var E$,xle,kle,dze=Dt({"src/services/refactors/convertOverloadListToSingleSignature.ts"(){qn(),Vm(),E$="Convert overload list to single signature",xle=ds(p.Convert_overload_list_to_single_signature),kle={name:E$,description:xle,kind:"refactor.rewrite.function.overloadList"},Dg(E$,{kinds:[kle.kind],getEditsForAction:pze,getAvailableActions:fze})}});function mze(e){const{file:t,startPosition:n,triggerReason:i}=e,s=ske(t,n,i==="invoked");return s?lh(s)?e.preferences.provideRefactorNotApplicableReason?[{name:P$,description:Cle,actions:[{...bM,notApplicableReason:s.error},{...hN,notApplicableReason:s.error}]}]:Ve:[{name:P$,description:Cle,actions:[s.addBraces?bM:hN]}]:Ve}function gze(e,t){const{file:n,startPosition:i}=e,s=ske(n,i);E.assert(s&&!lh(s),"Expected applicable refactor info");const{expression:o,returnStatement:c,func:u}=s;let f;if(t===bM.name){const d=I.createReturnStatement(o);f=I.createBlock([d],!0),T6(o,d,n,3,!0)}else if(t===hN.name&&c){const d=o||I.createVoidZero();f=JL(d)?I.createParenthesizedExpression(d):d,rN(c,f,n,3,!1),T6(c,f,n,3,!1),iP(c,f,n,3,!1)}else E.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:Kr.ChangeTracker.with(e,d=>{d.replaceNode(n,u.body,f)})}}function ske(e,t,n=!0,i){const s=Ui(e,t),o=cf(s);if(!o)return{error:ds(p.Could_not_find_a_containing_arrow_function)};if(!mo(o))return{error:ds(p.Containing_function_is_not_an_arrow_function)};if(!(!Pf(o,s)||Pf(o.body,s)&&!n)){if($1(bM.kind,i)&&ot(o.body))return{func:o,addBraces:!0,expression:o.body};if($1(hN.kind,i)&&Cs(o.body)&&o.body.statements.length===1){const c=va(o.body.statements);if(Up(c)){const u=c.expression&&ua(EC(c.expression,!1))?I.createParenthesizedExpression(c.expression):c.expression;return{func:o,addBraces:!1,expression:u,returnStatement:c}}}}}var P$,Cle,bM,hN,hze=Dt({"src/services/refactors/addOrRemoveBracesToArrowFunction.ts"(){qn(),Vm(),P$="Add or remove braces in an arrow function",Cle=ds(p.Add_or_remove_braces_in_an_arrow_function),bM={name:"Add braces to arrow function",description:ds(p.Add_braces_to_arrow_function),kind:"refactor.rewrite.arrow.braces.add"},hN={name:"Remove braces from arrow function",description:ds(p.Remove_braces_from_arrow_function),kind:"refactor.rewrite.arrow.braces.remove"},Dg(P$,{kinds:[hN.kind],getEditsForAction:gze,getAvailableActions:mze})}}),yze={},vze=Dt({"src/services/_namespaces/ts.refactor.addOrRemoveBracesToArrowFunction.ts"(){dze(),hze()}});function bze(e){const{file:t,startPosition:n,program:i,kind:s}=e,o=oke(t,n,i);if(!o)return Ve;const{selectedVariableDeclaration:c,func:u}=o,f=[],g=[];if($1(vN.kind,s)){const d=c||mo(u)&&hi(u.parent)?void 0:ds(p.Could_not_convert_to_named_function);d?g.push({...vN,notApplicableReason:d}):f.push(vN)}if($1(yN.kind,s)){const d=!c&&mo(u)?void 0:ds(p.Could_not_convert_to_anonymous_function);d?g.push({...yN,notApplicableReason:d}):f.push(yN)}if($1(bN.kind,s)){const d=lo(u)?void 0:ds(p.Could_not_convert_to_arrow_function);d?g.push({...bN,notApplicableReason:d}):f.push(bN)}return[{name:Ele,description:uke,actions:f.length===0&&e.preferences.provideRefactorNotApplicableReason?g:f}]}function Sze(e,t){const{file:n,startPosition:i,program:s}=e,o=oke(n,i,s);if(!o)return;const{func:c}=o,u=[];switch(t){case yN.name:u.push(...Cze(e,c));break;case vN.name:const f=kze(c);if(!f)return;u.push(...Eze(e,c,f));break;case bN.name:if(!lo(c))return;u.push(...Pze(e,c));break;default:return E.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:u}}function ake(e){let t=!1;return e.forEachChild(function n(i){if(g6(i)){t=!0;return}!$n(i)&&!Xc(i)&&!lo(i)&&Ss(i,n)}),t}function oke(e,t,n){const i=Ui(e,t),s=n.getTypeChecker(),o=xze(e,s,i.parent);if(o&&!ake(o.body)&&!s.containsArgumentsReference(o))return{selectedVariableDeclaration:!0,func:o};const c=cf(i);if(c&&(lo(c)||mo(c))&&!Pf(c.body,i)&&!ake(c.body)&&!s.containsArgumentsReference(c))return lo(c)&&lke(e,s,c)?void 0:{selectedVariableDeclaration:!1,func:c}}function Tze(e){return hi(e)||ml(e)&&e.declarations.length===1}function xze(e,t,n){if(!Tze(n))return;const s=(hi(n)?n:va(n.declarations)).initializer;if(s&&(mo(s)||lo(s)&&!lke(e,t,s)))return s}function cke(e){if(ot(e)){const t=I.createReturnStatement(e),n=e.getSourceFile();return Ke(t,e),U_(t),rN(e,t,n,void 0,!0),I.createBlock([t],!0)}else return e}function kze(e){const t=e.parent;if(!hi(t)||!gE(t))return;const n=t.parent,i=n.parent;if(!(!ml(n)||!ac(i)||!Ie(t.name)))return{variableDeclaration:t,variableDeclarationList:n,statement:i,name:t.name}}function Cze(e,t){const{file:n}=e,i=cke(t.body),s=I.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,t.typeParameters,t.parameters,t.type,i);return Kr.ChangeTracker.with(e,o=>o.replaceNode(n,t,s))}function Eze(e,t,n){const{file:i}=e,s=cke(t.body),{variableDeclaration:o,variableDeclarationList:c,statement:u,name:f}=n;DG(u);const g=y1(o)&32|Lu(t),d=I.createModifiersFromModifierFlags(g),y=I.createFunctionDeclaration(mr(d)?d:void 0,t.asteriskToken,f,t.typeParameters,t.parameters,t.type,s);return c.declarations.length===1?Kr.ChangeTracker.with(e,S=>S.replaceNode(i,u,y)):Kr.ChangeTracker.with(e,S=>{S.delete(i,o),S.insertNodeAfter(i,u,y)})}function Pze(e,t){const{file:n}=e,s=t.body.statements[0];let o;Dze(t.body,s)?(o=s.expression,U_(o),lS(s,o)):o=t.body;const c=I.createArrowFunction(t.modifiers,t.typeParameters,t.parameters,t.type,I.createToken(39),o);return Kr.ChangeTracker.with(e,u=>u.replaceNode(n,t,c))}function Dze(e,t){return e.statements.length===1&&Up(t)&&!!t.expression}function lke(e,t,n){return!!n.name&&uo.Core.isSymbolReferencedInFile(n.name,t,e)}var Ele,uke,yN,vN,bN,wze=Dt({"src/services/refactors/convertArrowFunctionOrFunctionExpression.ts"(){qn(),Vm(),Ele="Convert arrow function or function expression",uke=ds(p.Convert_arrow_function_or_function_expression),yN={name:"Convert to anonymous function",description:ds(p.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},vN={name:"Convert to named function",description:ds(p.Convert_to_named_function),kind:"refactor.rewrite.function.named"},bN={name:"Convert to arrow function",description:ds(p.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"},Dg(Ele,{kinds:[yN.kind,vN.kind,bN.kind],getEditsForAction:Sze,getAvailableActions:bze})}}),Aze={},Nze=Dt({"src/services/_namespaces/ts.refactor.convertArrowFunctionOrFunctionExpression.ts"(){wze()}});function Ize(e){const{file:t,startPosition:n}=e;return Ou(t)||!pke(t,n,e.program.getTypeChecker())?Ve:[{name:TM,description:Ale,actions:[Nle]}]}function Fze(e,t){E.assert(t===TM,"Unexpected action name");const{file:n,startPosition:i,program:s,cancellationToken:o,host:c}=e,u=pke(n,i,s.getTypeChecker());if(!u||!o)return;const f=Lze(u,s,o);return f.valid?{renameFilename:void 0,renameLocation:void 0,edits:Kr.ChangeTracker.with(e,d=>Oze(n,s,c,d,u,f))}:{edits:[]}}function Oze(e,t,n,i,s,o){const c=o.signature,u=nr(hke(s,t,n),d=>Mo(d));if(c){const d=nr(hke(c,t,n),y=>Mo(y));g(c,d)}g(s,u);const f=z4(o.functionCalls,(d,y)=>Ao(d.pos,y.pos));for(const d of f)if(d.arguments&&d.arguments.length){const y=Mo(qze(s,d.arguments),!0);i.replaceNodeRange(wr(d),va(d.arguments),ka(d.arguments),y,{leadingTriviaOption:Kr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Kr.TrailingTriviaOption.Include})}function g(d,y){i.replaceNodeRangeWithNodes(e,va(d.parameters),ka(d.parameters),y,{joiner:", ",indentation:0,leadingTriviaOption:Kr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Kr.TrailingTriviaOption.Include})}}function Lze(e,t,n){const i=Gze(e),s=sc(e)?Hze(e):[],o=Nv([...i,...s],Vh),c=t.getTypeChecker(),u=Zs(o,y=>uo.getReferenceEntriesForNode(-1,y,t,t.getSourceFiles(),n)),f=g(u);return Wi(f.declarations,y=>bs(o,y))||(f.valid=!1),f;function g(y){const S={accessExpressions:[],typeUsages:[]},T={functionCalls:[],declarations:[],classReferences:S,valid:!0},k=nr(i,d),w=nr(s,d),P=sc(e),F=nr(i,J=>Ple(J,c));for(const J of y){if(J.kind===uo.EntryKind.Span){T.valid=!1;continue}if(bs(F,d(J.node))){if(Bze(J.node.parent)){T.signature=J.node.parent;continue}const $=fke(J);if($){T.functionCalls.push($);continue}}const U=Ple(J.node,c);if(U&&bs(F,U)){const $=Dle(J);if($){T.declarations.push($);continue}}if(bs(k,d(J.node))||Q3(J.node)){if(_ke(J))continue;const j=Dle(J);if(j){T.declarations.push(j);continue}const re=fke(J);if(re){T.functionCalls.push(re);continue}}if(P&&bs(w,d(J.node))){if(_ke(J))continue;const j=Dle(J);if(j){T.declarations.push(j);continue}const re=Mze(J);if(re){S.accessExpressions.push(re);continue}if(Qc(e.parent)){const R=Rze(J);if(R){S.typeUsages.push(R);continue}}}T.valid=!1}return T}function d(y){const S=c.getSymbolAtLocation(y);return S&&EG(S,c)}}function Ple(e,t){const n=kN(e);if(n){const i=t.getContextualTypeForObjectLiteralElement(n),s=i==null?void 0:i.getSymbol();if(s&&!(Ko(s)&6))return s}}function _ke(e){const t=e.node;if(x_(t.parent)||Rm(t.parent)||El(t.parent)||dy(t.parent)||vu(t.parent)||oc(t.parent))return t}function Dle(e){if(yu(e.node.parent))return e.node}function fke(e){if(e.node.parent){const t=e.node,n=t.parent;switch(n.kind){case 213:case 214:const i=Wn(n,Jd);if(i&&i.expression===t)return i;break;case 211:const s=Wn(n,Sn);if(s&&s.parent&&s.name===t){const c=Wn(s.parent,Jd);if(c&&c.expression===s)return c}break;case 212:const o=Wn(n,Co);if(o&&o.parent&&o.argumentExpression===t){const c=Wn(o.parent,Jd);if(c&&c.expression===o)return c}break}}}function Mze(e){if(e.node.parent){const t=e.node,n=t.parent;switch(n.kind){case 211:const i=Wn(n,Sn);if(i&&i.expression===t)return i;break;case 212:const s=Wn(n,Co);if(s&&s.expression===t)return s;break}}}function Rze(e){const t=e.node;if(aS(t)===2||Q5(t.parent))return t}function pke(e,t,n){const i=h6(e,t),s=$te(i);if(!jze(i)&&s&&Jze(s,n)&&Pf(s,i)&&!(s.body&&Pf(s.body,i)))return s}function jze(e){const t=Pr(e,$k);if(t){const n=Pr(t,i=>!$k(i));return!!n&&po(n)}return!1}function Bze(e){return Lm(e)&&(Bu(e.parent)||z_(e.parent))}function Jze(e,t){var n;if(!zze(e.parameters,t))return!1;switch(e.kind){case 262:return dke(e)&&SM(e,t);case 174:if(ua(e.parent)){const i=Ple(e.name,t);return((n=i==null?void 0:i.declarations)==null?void 0:n.length)===1&&SM(e,t)}return SM(e,t);case 176:return Qc(e.parent)?dke(e.parent)&&SM(e,t):mke(e.parent.parent)&&SM(e,t);case 218:case 219:return mke(e.parent)}return!1}function SM(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function dke(e){return e.name?!0:!!v6(e,90)}function zze(e,t){return Vze(e)>=yke&&Wi(e,n=>Wze(n,t))}function Wze(e,t){if(dg(e)){const n=t.getTypeAtLocation(e);if(!t.isArrayType(n)&&!t.isTupleType(n))return!1}return!e.modifiers&&Ie(e.name)}function mke(e){return hi(e)&&tC(e)&&Ie(e.name)&&!e.type}function wle(e){return e.length>0&&g6(e[0].name)}function Vze(e){return wle(e)?e.length-1:e.length}function gke(e){return wle(e)&&(e=I.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function Uze(e,t){return Ie(t)&&hp(t)===e?I.createShorthandPropertyAssignment(e):I.createPropertyAssignment(e,t)}function qze(e,t){const n=gke(e.parameters),i=dg(ka(n)),s=i?t.slice(0,n.length-1):t,o=nr(s,(u,f)=>{const g=D$(n[f]),d=Uze(g,u);return U_(d.name),zc(d)&&U_(d.initializer),lS(u,d),d});if(i&&t.length>=n.length){const u=t.slice(n.length-1),f=I.createPropertyAssignment(D$(ka(n)),I.createArrayLiteralExpression(u));o.push(f)}return I.createObjectLiteralExpression(o,!1)}function hke(e,t,n){const i=t.getTypeChecker(),s=gke(e.parameters),o=nr(s,d),c=I.createObjectBindingPattern(o),u=y(s);let f;Wi(s,k)&&(f=I.createObjectLiteralExpression());const g=I.createParameterDeclaration(void 0,void 0,c,void 0,u,f);if(wle(e.parameters)){const w=e.parameters[0],P=I.createParameterDeclaration(void 0,void 0,w.name,void 0,w.type);return U_(P.name),lS(w.name,P.name),w.type&&(U_(P.type),lS(w.type,P.type)),I.createNodeArray([P,g])}return I.createNodeArray([g]);function d(w){const P=I.createBindingElement(void 0,void 0,D$(w),dg(w)&&k(w)?I.createArrayLiteralExpression():w.initializer);return U_(P),w.initializer&&P.initializer&&lS(w.initializer,P.initializer),P}function y(w){const P=nr(w,S);return Xd(I.createTypeLiteralNode(P),1)}function S(w){let P=w.type;!P&&(w.initializer||dg(w))&&(P=T(w));const F=I.createPropertySignature(void 0,D$(w),k(w)?I.createToken(58):w.questionToken,P);return U_(F),lS(w.name,F.name),w.type&&F.type&&lS(w.type,F.type),F}function T(w){const P=i.getTypeAtLocation(w);return aP(P,w,t,n)}function k(w){if(dg(w)){const P=i.getTypeAtLocation(w);return!i.isTupleType(P)}return i.isOptionalParameter(w)}}function D$(e){return hp(e.name)}function Hze(e){switch(e.parent.kind){case 263:const t=e.parent;return t.name?[t.name]:[E.checkDefined(v6(t,90),"Nameless class declaration should be a default export")];case 231:const i=e.parent,s=e.parent.parent,o=i.name;return o?[o,s.name]:[s.name]}}function Gze(e){switch(e.kind){case 262:return e.name?[e.name]:[E.checkDefined(v6(e,90),"Nameless function declaration should be a default export")];case 174:return[e.name];case 176:const n=E.checkDefined(qa(e,137,e.getSourceFile()),"Constructor declaration should have constructor keyword");return e.parent.kind===231?[e.parent.parent.name,n]:[n];case 219:return[e.parent.name];case 218:return e.name?[e.name,e.parent.name]:[e.parent.name];default:return E.assertNever(e,`Unexpected function declaration kind ${e.kind}`)}}var TM,yke,Ale,Nle,$ze=Dt({"src/services/refactors/convertParamsToDestructuredObject.ts"(){qn(),Vm(),TM="Convert parameters to destructured object",yke=1,Ale=ds(p.Convert_parameters_to_destructured_object),Nle={name:TM,description:Ale,kind:"refactor.rewrite.parameters.toDestructured"},Dg(TM,{kinds:[Nle.kind],getEditsForAction:Fze,getAvailableActions:Ize})}}),Xze={},Qze=Dt({"src/services/_namespaces/ts.refactor.convertParamsToDestructuredObject.ts"(){$ze()}});function Yze(e){const{file:t,startPosition:n}=e,i=vke(t,n),s=Ile(i),o=aa(s),c={name:w$,description:A$,actions:[]};return o&&e.triggerReason!=="invoked"?Ve:hg(s)&&(o||Zr(s)&&Fle(s).isValidConcatenation)?(c.actions.push(N$),[c]):e.preferences.provideRefactorNotApplicableReason?(c.actions.push({...N$,notApplicableReason:ds(p.Can_only_convert_string_concatenations_and_string_literals)}),[c]):Ve}function vke(e,t){const n=Ui(e,t),i=Ile(n);return!Fle(i).isValidConcatenation&&l_(i.parent)&&Zr(i.parent.parent)?i.parent.parent:n}function Zze(e,t){const{file:n,startPosition:i}=e,s=vke(n,i);switch(t){case A$:return{edits:Kze(e,s)};default:return E.fail("invalid action")}}function Kze(e,t){const n=Ile(t),i=e.file,s=rWe(Fle(n),i),o=m1(i.text,n.end);if(o){const c=o[o.length-1],u={pos:o[0].pos,end:c.end};return Kr.ChangeTracker.with(e,f=>{f.deleteRange(i,u),f.replaceNode(i,n,s)})}else return Kr.ChangeTracker.with(e,c=>c.replaceNode(i,n,s))}function eWe(e){return!(e.operatorToken.kind===64||e.operatorToken.kind===65)}function Ile(e){return Pr(e.parent,n=>{switch(n.kind){case 211:case 212:return!1;case 228:case 226:return!(Zr(n.parent)&&eWe(n.parent));default:return"quit"}})||e}function Fle(e){const t=c=>{if(!Zr(c))return{nodes:[c],operators:[],validOperators:!0,hasString:aa(c)||ex(c)};const{nodes:u,operators:f,hasString:g,validOperators:d}=t(c.left);if(!(g||aa(c.right)||SO(c.right)))return{nodes:[c],operators:[],hasString:!1,validOperators:!0};const y=c.operatorToken.kind===40,S=d&&y;return u.push(c.right),f.push(c.operatorToken),{nodes:u,operators:f,hasString:!0,validOperators:S}},{nodes:n,operators:i,validOperators:s,hasString:o}=t(e);return{nodes:n,operators:i,isValidConcatenation:s&&o}}function tWe(e){return e.replace(/\\.|[$`]/g,t=>t[0]==="\\"?t:"\\"+t)}function bke(e){const t=tx(e)||SV(e)?-2:-1;return jc(e).slice(1,t)}function Ske(e,t){const n=[];let i="",s="";for(;e{Tke(U);const j=$===S.templateSpans.length-1,re=U.literal.text+(j?k:""),R=bke(U.literal)+(j?w:"");return I.createTemplateSpan(U.expression,F&&j?I.createTemplateTail(re,R):I.createTemplateMiddle(re,R))});g.push(...J)}else{const J=F?I.createTemplateTail(k,w):I.createTemplateMiddle(k,w);s(P,J),g.push(I.createTemplateSpan(S,J))}}return I.createTemplateExpression(d,g)}function Tke(e){const t=e.getSourceFile();iP(e,e.expression,t,3,!1),rN(e.expression,e.expression,t,3,!1)}function nWe(e){return l_(e)&&(Tke(e),e=e.expression),e}var w$,A$,N$,xke,kke,iWe=Dt({"src/services/refactors/convertStringOrTemplateLiteral.ts"(){qn(),Vm(),w$="Convert to template string",A$=ds(p.Convert_to_template_string),N$={name:w$,description:A$,kind:"refactor.rewrite.string"},Dg(w$,{kinds:[N$.kind],getEditsForAction:Zze,getAvailableActions:Yze}),xke=(e,t)=>(n,i)=>{n(i,s)=>{for(;i.length>0;){const o=i.shift();iP(e[o],s,t,3,!1),n(o,s)}}}}),sWe={},aWe=Dt({"src/services/_namespaces/ts.refactor.convertStringOrTemplateLiteral.ts"(){iWe()}});function oWe(e){const t=Cke(e,e.triggerReason==="invoked");return t?lh(t)?e.preferences.provideRefactorNotApplicableReason?[{name:xM,description:O$,actions:[{...L$,notApplicableReason:t.error}]}]:Ve:[{name:xM,description:O$,actions:[L$]}]:Ve}function cWe(e,t){const n=Cke(e);return E.assert(n&&!lh(n),"Expected applicable refactor info"),{edits:Kr.ChangeTracker.with(e,s=>gWe(e.file,e.program.getTypeChecker(),s,n)),renameFilename:void 0,renameLocation:void 0}}function I$(e){return Zr(e)||JC(e)}function lWe(e){return Cl(e)||Up(e)||ac(e)}function F$(e){return I$(e)||lWe(e)}function Cke(e,t=!0){const{file:n,program:i}=e,s=Ax(e),o=s.length===0;if(o&&!t)return;const c=Ui(n,s.start),u=kL(n,s.start+s.length),f=Rc(c.pos,u&&u.end>=c.pos?u.getEnd():c.getEnd()),g=o?dWe(c):pWe(c,f),d=g&&F$(g)?mWe(g):void 0;if(!d)return{error:ds(p.Could_not_find_convertible_access_expression)};const y=i.getTypeChecker();return JC(d)?uWe(d,y):_We(d)}function uWe(e,t){const n=e.condition,i=Lle(e.whenTrue);if(!i||t.isNullableType(t.getTypeAtLocation(i)))return{error:ds(p.Could_not_find_convertible_access_expression)};if((Sn(n)||Ie(n))&&Ole(n,i.expression))return{finalExpression:i,occurrences:[n],expression:e};if(Zr(n)){const s=Eke(i.expression,n);return s?{finalExpression:i,occurrences:s,expression:e}:{error:ds(p.Could_not_find_matching_access_expressions)}}}function _We(e){if(e.operatorToken.kind!==56)return{error:ds(p.Can_only_convert_logical_AND_access_chains)};const t=Lle(e.right);if(!t)return{error:ds(p.Could_not_find_convertible_access_expression)};const n=Eke(t.expression,e.left);return n?{finalExpression:t,occurrences:n,expression:e}:{error:ds(p.Could_not_find_matching_access_expressions)}}function Eke(e,t){const n=[];for(;Zr(t)&&t.operatorToken.kind===56;){const s=Ole(Va(e),Va(t.right));if(!s)break;n.push(s),e=s,t=t.left}const i=Ole(e,t);return i&&n.push(i),n.length>0?n:void 0}function Ole(e,t){if(!(!Ie(t)&&!Sn(t)&&!Co(t)))return fWe(e,t)?t:void 0}function fWe(e,t){for(;(Rs(e)||Sn(e)||Co(e))&&SN(e)!==SN(t);)e=e.expression;for(;Sn(e)&&Sn(t)||Co(e)&&Co(t);){if(SN(e)!==SN(t))return!1;e=e.expression,t=t.expression}return Ie(e)&&Ie(t)&&e.getText()===t.getText()}function SN(e){if(Ie(e)||Sf(e))return e.getText();if(Sn(e))return SN(e.name);if(Co(e))return SN(e.argumentExpression)}function pWe(e,t){for(;e.parent;){if(F$(e)&&t.length!==0&&e.end>=t.start+t.length)return e;e=e.parent}}function dWe(e){for(;e.parent;){if(F$(e)&&!F$(e.parent))return e;e=e.parent}}function mWe(e){if(I$(e))return e;if(ac(e)){const t=MT(e),n=t==null?void 0:t.initializer;return n&&I$(n)?n:void 0}return e.expression&&I$(e.expression)?e.expression:void 0}function Lle(e){if(e=Va(e),Zr(e))return Lle(e.left);if((Sn(e)||Co(e)||Rs(e))&&!hu(e))return e}function Pke(e,t,n){if(Sn(t)||Co(t)||Rs(t)){const i=Pke(e,t.expression,n),s=n.length>0?n[n.length-1]:void 0,o=(s==null?void 0:s.getText())===t.expression.getText();if(o&&n.pop(),Rs(t))return o?I.createCallChain(i,I.createToken(29),t.typeArguments,t.arguments):I.createCallChain(i,t.questionDotToken,t.typeArguments,t.arguments);if(Sn(t))return o?I.createPropertyAccessChain(i,I.createToken(29),t.name):I.createPropertyAccessChain(i,t.questionDotToken,t.name);if(Co(t))return o?I.createElementAccessChain(i,I.createToken(29),t.argumentExpression):I.createElementAccessChain(i,t.questionDotToken,t.argumentExpression)}return t}function gWe(e,t,n,i,s){const{finalExpression:o,occurrences:c,expression:u}=i,f=c[c.length-1],g=Pke(t,o,c);g&&(Sn(g)||Co(g)||Rs(g))&&(Zr(u)?n.replaceNodeRange(e,f,o,g):JC(u)&&n.replaceNode(e,u,I.createBinaryExpression(g,I.createToken(61),u.whenFalse)))}var xM,O$,L$,hWe=Dt({"src/services/refactors/convertToOptionalChainExpression.ts"(){qn(),Vm(),xM="Convert to optional chain expression",O$=ds(p.Convert_to_optional_chain_expression),L$={name:xM,description:O$,kind:"refactor.rewrite.expression.optionalChain"},Dg(xM,{kinds:[L$.kind],getEditsForAction:cWe,getAvailableActions:oWe})}}),yWe={},vWe=Dt({"src/services/_namespaces/ts.refactor.convertToOptionalChainExpression.ts"(){hWe()}});function Dke(e){const t=e.kind,n=Mle(e.file,Ax(e),e.triggerReason==="invoked"),i=n.targetRange;if(i===void 0){if(!n.errors||n.errors.length===0||!e.preferences.provideRefactorNotApplicableReason)return Ve;const k=[];return $1(D6.kind,t)&&k.push({name:E6,description:D6.description,actions:[{...D6,notApplicableReason:T(n.errors)}]}),$1(P6.kind,t)&&k.push({name:E6,description:P6.description,actions:[{...P6,notApplicableReason:T(n.errors)}]}),k}const s=CWe(i,e);if(s===void 0)return Ve;const o=[],c=new Map;let u;const f=[],g=new Map;let d,y=0;for(const{functionExtraction:k,constantExtraction:w}of s){if($1(D6.kind,t)){const P=k.description;k.errors.length===0?c.has(P)||(c.set(P,!0),o.push({description:P,name:`function_scope_${y}`,kind:D6.kind})):u||(u={description:P,name:`function_scope_${y}`,notApplicableReason:T(k.errors),kind:D6.kind})}if($1(P6.kind,t)){const P=w.description;w.errors.length===0?g.has(P)||(g.set(P,!0),f.push({description:P,name:`constant_scope_${y}`,kind:P6.kind})):d||(d={description:P,name:`constant_scope_${y}`,notApplicableReason:T(w.errors),kind:P6.kind})}y++}const S=[];return o.length?S.push({name:E6,description:ds(p.Extract_function),actions:o}):e.preferences.provideRefactorNotApplicableReason&&u&&S.push({name:E6,description:ds(p.Extract_function),actions:[u]}),f.length?S.push({name:E6,description:ds(p.Extract_constant),actions:f}):e.preferences.provideRefactorNotApplicableReason&&d&&S.push({name:E6,description:ds(p.Extract_constant),actions:[d]}),S.length?S:Ve;function T(k){let w=k[0].messageText;return typeof w!="string"&&(w=w.messageText),w}}function wke(e,t){const i=Mle(e.file,Ax(e)).targetRange,s=/^function_scope_(\d+)$/.exec(t);if(s){const c=+s[1];return E.assert(isFinite(c),"Expected to parse a finite number from the function scope index"),xWe(i,e,c)}const o=/^constant_scope_(\d+)$/.exec(t);if(o){const c=+o[1];return E.assert(isFinite(c),"Expected to parse a finite number from the constant scope index"),kWe(i,e,c)}E.fail("Unrecognized action name")}function Mle(e,t,n=!0){const{length:i}=t;if(i===0&&!n)return{errors:[xl(e,t.start,i,Gl.cannotExtractEmpty)]};const s=i===0&&n,o=Uoe(e,t.start),c=kL(e,bc(t)),u=o&&c&&n?bWe(o,c,e):t,f=s?qWe(o):ZA(o,e,u),g=s?f:ZA(c,e,u);let d=0,y;if(!f||!g)return{errors:[xl(e,t.start,i,Gl.cannotExtractRange)]};if(f.flags&16777216)return{errors:[xl(e,t.start,i,Gl.cannotExtractJSDoc)]};if(f.parent!==g.parent)return{errors:[xl(e,t.start,i,Gl.cannotExtractRange)]};if(f!==g){if(!Nke(f.parent))return{errors:[xl(e,t.start,i,Gl.cannotExtractRange)]};const J=[];for(const U of f.parent.statements){if(U===f||J.length){const $=F(U);if($)return{errors:$};J.push(U)}if(U===g)break}return J.length?{targetRange:{range:J,facts:d,thisNode:y}}:{errors:[xl(e,t.start,i,Gl.cannotExtractRange)]}}if(Up(f)&&!f.expression)return{errors:[xl(e,t.start,i,Gl.cannotExtractRange)]};const S=k(f),T=w(S)||F(S);if(T)return{errors:T};return{targetRange:{range:SWe(S),facts:d,thisNode:y}};function k(J){if(Up(J)){if(J.expression)return J.expression}else if(ac(J)||ml(J)){const U=ac(J)?J.declarationList.declarations:J.declarations;let $=0,j;for(const re of U)re.initializer&&($++,j=re.initializer);if($===1)return j}else if(hi(J)&&J.initializer)return J.initializer;return J}function w(J){if(Ie(Cl(J)?J.expression:J))return[yn(J,Gl.cannotExtractIdentifier)]}function P(J,U){let $=J;for(;$!==U;){if($.kind===172){Ms($)&&(d|=32);break}else if($.kind===169){cf($).kind===176&&(d|=32);break}else $.kind===174&&Ms($)&&(d|=32);$=$.parent}}function F(J){let U;if((ue=>{ue[ue.None=0]="None",ue[ue.Break=1]="Break",ue[ue.Continue=2]="Continue",ue[ue.Return=4]="Return"})(U||(U={})),E.assert(J.pos<=J.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),E.assert(!md(J.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!Ei(J)&&!(hg(J)&&Ake(J))&&!zle(J))return[yn(J,Gl.statementOrExpressionExpected)];if(J.flags&33554432)return[yn(J,Gl.cannotExtractAmbientBlock)];const $=Nl(J);$&&P(J,$);let j,re=4,R;if(Y(J),d&8){const ue=a_(J,!1,!1);(ue.kind===262||ue.kind===174&&ue.parent.kind===210||ue.kind===218)&&(d|=16)}return j;function Y(ue){if(j)return!0;if(yu(ue)){const H=ue.kind===260?ue.parent.parent:ue;if(Rn(H,32))return(j||(j=[])).push(yn(ue,Gl.cannotExtractExportedEntity)),!0}switch(ue.kind){case 272:return(j||(j=[])).push(yn(ue,Gl.cannotExtractImport)),!0;case 277:return(j||(j=[])).push(yn(ue,Gl.cannotExtractExportedEntity)),!0;case 108:if(ue.parent.kind===213){const H=Nl(ue);if(H===void 0||H.pos=t.start+t.length)return(j||(j=[])).push(yn(ue,Gl.cannotExtractSuper)),!0}else d|=8,y=ue;break;case 219:Ss(ue,function H(q){if(g6(q))d|=8,y=ue;else{if($n(q)||As(q)&&!mo(q))return!1;Ss(q,H)}});case 263:case 262:Ni(ue.parent)&&ue.parent.externalModuleIndicator===void 0&&(j||(j=[])).push(yn(ue,Gl.functionWillNotBeVisibleInTheNewScope));case 231:case 218:case 174:case 176:case 177:case 178:return!1}const pe=re;switch(ue.kind){case 245:re&=-5;break;case 258:re=0;break;case 241:ue.parent&&ue.parent.kind===258&&ue.parent.finallyBlock===ue&&(re=4);break;case 297:case 296:re|=1;break;default:X0(ue,!1)&&(re|=3);break}switch(ue.kind){case 197:case 110:d|=8,y=ue;break;case 256:{const H=ue.label;(R||(R=[])).push(H.escapedText),Ss(ue,Y),R.pop();break}case 252:case 251:{const H=ue.label;H?bs(R,H.escapedText)||(j||(j=[])).push(yn(ue,Gl.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):re&(ue.kind===252?1:2)||(j||(j=[])).push(yn(ue,Gl.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 223:d|=4;break;case 229:d|=2;break;case 253:re&4?d|=1:(j||(j=[])).push(yn(ue,Gl.cannotExtractRangeContainingConditionalReturnStatement));break;default:Ss(ue,Y);break}re=pe}}}function bWe(e,t,n){const i=e.getStart(n);let s=t.getEnd();return n.text.charCodeAt(s)===59&&s++,{start:i,length:s-i}}function SWe(e){if(Ei(e))return[e];if(hg(e))return Cl(e.parent)?[e.parent]:e;if(zle(e))return e}function Rle(e){return mo(e)?az(e.body):po(e)||Ni(e)||Yd(e)||$n(e)}function TWe(e){let t=d0(e.range)?va(e.range):e.range;if(e.facts&8&&!(e.facts&16)){const i=Nl(t);if(i){const s=Pr(t,po);return s?[s,i]:[i]}}const n=[];for(;;)if(t=t.parent,t.kind===169&&(t=Pr(t,i=>po(i)).parent),Rle(t)&&(n.push(t),t.kind===312))return n}function xWe(e,t,n){const{scopes:i,readsAndWrites:{target:s,usagesPerScope:o,functionErrorsPerScope:c,exposedVariableDeclarations:u}}=jle(e,t);return E.assert(!c[n].length,"The extraction went missing? How?"),t.cancellationToken.throwIfCancellationRequested(),NWe(s,i[n],o[n],u,e,t)}function kWe(e,t,n){const{scopes:i,readsAndWrites:{target:s,usagesPerScope:o,constantErrorsPerScope:c,exposedVariableDeclarations:u}}=jle(e,t);E.assert(!c[n].length,"The extraction went missing? How?"),E.assert(u.length===0,"Extract constant accepted a range containing a variable declaration?"),t.cancellationToken.throwIfCancellationRequested();const f=ot(s)?s:s.statements[0].expression;return IWe(f,i[n],o[n],e.facts,t)}function CWe(e,t){const{scopes:n,readsAndWrites:{functionErrorsPerScope:i,constantErrorsPerScope:s}}=jle(e,t);return n.map((c,u)=>{const f=EWe(c),g=PWe(c),d=po(c)?DWe(c):$n(c)?wWe(c):AWe(c);let y,S;return d===1?(y=xg(ds(p.Extract_to_0_in_1_scope),[f,"global"]),S=xg(ds(p.Extract_to_0_in_1_scope),[g,"global"])):d===0?(y=xg(ds(p.Extract_to_0_in_1_scope),[f,"module"]),S=xg(ds(p.Extract_to_0_in_1_scope),[g,"module"])):(y=xg(ds(p.Extract_to_0_in_1),[f,d]),S=xg(ds(p.Extract_to_0_in_1),[g,d])),u===0&&!$n(c)&&(S=xg(ds(p.Extract_to_0_in_enclosing_scope),[g])),{functionExtraction:{description:y,errors:i[u]},constantExtraction:{description:S,errors:s[u]}}})}function jle(e,t){const{file:n}=t,i=TWe(e),s=VWe(e,n),o=UWe(e,i,s,n,t.program.getTypeChecker(),t.cancellationToken);return{scopes:i,readsAndWrites:o}}function EWe(e){return po(e)?"inner function":$n(e)?"method":"function"}function PWe(e){return $n(e)?"readonly field":"constant"}function DWe(e){switch(e.kind){case 176:return"constructor";case 218:case 262:return e.name?`function '${e.name.text}'`:rM;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:E.assertNever(e,`Unexpected scope kind ${e.kind}`)}}function wWe(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 AWe(e){return e.kind===268?`namespace '${e.parent.name.getText()}'`:e.externalModuleIndicator?0:1}function NWe(e,t,{usages:n,typeParameterUsages:i,substitutions:s},o,c,u){const f=u.program.getTypeChecker(),g=Fa(u.program.getCompilerOptions()),d=lu.createImportAdder(u.file,u.program,u.preferences,u.host),y=t.getSourceFile(),S=uS($n(t)?"newMethod":"newFunction",y),T=Hr(t),k=I.createIdentifier(S);let w;const P=[],F=[];let J;n.forEach((be,xe)=>{let De;if(!T){let ge=f.getTypeOfSymbolAtLocation(be.symbol,be.node);ge=f.getBaseTypeOfLiteralType(ge),De=lu.typeToAutoImportableTypeNode(f,d,ge,t,g,1)}const ft=I.createParameterDeclaration(void 0,void 0,xe,void 0,De);P.push(ft),be.usage===2&&(J||(J=[])).push(be),F.push(I.createIdentifier(xe))});const $=gs(i.values(),be=>({type:be,declaration:OWe(be,u.startPosition)})).sort(LWe),j=$.length===0?void 0:Ri($,({declaration:be})=>be),re=j!==void 0?j.map(be=>I.createTypeReferenceNode(be.name,void 0)):void 0;if(ot(e)&&!T){const be=f.getContextualType(e);w=f.typeToTypeNode(be,t,1)}const{body:R,returnValueProperty:Y}=RWe(e,o,J,s,!!(c.facts&1));U_(R);let ue;const pe=!!(c.facts&16);if($n(t)){const be=T?[]:[I.createModifier(123)];c.facts&32&&be.push(I.createModifier(126)),c.facts&4&&be.push(I.createModifier(134)),ue=I.createMethodDeclaration(be.length?be:void 0,c.facts&2?I.createToken(42):void 0,k,void 0,j,P,w,R)}else pe&&P.unshift(I.createParameterDeclaration(void 0,void 0,"this",void 0,f.typeToTypeNode(f.getTypeAtLocation(c.thisNode),t,1),void 0)),ue=I.createFunctionDeclaration(c.facts&4?[I.createToken(134)]:void 0,c.facts&2?I.createToken(42):void 0,k,j,P,w,R);const H=Kr.ChangeTracker.fromContext(u),q=(d0(c.range)?ka(c.range):c.range).end,ee=JWe(q,t);ee?H.insertNodeBefore(u.file,ee,ue,!0):H.insertNodeAtEndOfScope(u.file,t,ue),d.writeFixes(H);const oe=[],Se=MWe(t,c,S);pe&&F.unshift(I.createIdentifier("this"));let ae=I.createCallExpression(pe?I.createPropertyAccessExpression(Se,"call"):Se,re,F);if(c.facts&2&&(ae=I.createYieldExpression(I.createToken(42),ae)),c.facts&4&&(ae=I.createAwaitExpression(ae)),Jle(e)&&(ae=I.createJsxExpression(void 0,ae)),o.length&&!J)if(E.assert(!Y,"Expected no returnValueProperty"),E.assert(!(c.facts&1),"Expected RangeFacts.HasReturn flag to be unset"),o.length===1){const be=o[0];oe.push(I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(Mo(be.name),void 0,Mo(be.type),ae)],be.parent.flags)))}else{const be=[],xe=[];let De=o[0].parent.flags,ft=!1;for(const Fe of o){be.push(I.createBindingElement(void 0,void 0,Mo(Fe.name)));const $e=f.typeToTypeNode(f.getBaseTypeOfLiteralType(f.getTypeAtLocation(Fe)),t,1);xe.push(I.createPropertySignature(void 0,Fe.symbol.name,void 0,$e)),ft=ft||Fe.type!==void 0,De=De&Fe.parent.flags}const ge=ft?I.createTypeLiteralNode(xe):void 0;ge&&Qr(ge,1),oe.push(I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(I.createObjectBindingPattern(be),void 0,ge,ae)],De)))}else if(o.length||J){if(o.length)for(const xe of o){let De=xe.parent.flags;De&2&&(De=De&-3|1),oe.push(I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(xe.symbol.name,void 0,me(xe.type))],De)))}Y&&oe.push(I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(Y,void 0,me(w))],1)));const be=Ble(o,J);Y&&be.unshift(I.createShorthandPropertyAssignment(Y)),be.length===1?(E.assert(!Y,"Shouldn't have returnValueProperty here"),oe.push(I.createExpressionStatement(I.createAssignment(be[0].name,ae))),c.facts&1&&oe.push(I.createReturnStatement())):(oe.push(I.createExpressionStatement(I.createAssignment(I.createObjectLiteralExpression(be),ae))),Y&&oe.push(I.createReturnStatement(I.createIdentifier(Y))))}else c.facts&1?oe.push(I.createReturnStatement(ae)):d0(c.range)?oe.push(I.createExpressionStatement(ae)):oe.push(ae);d0(c.range)?H.replaceNodeRangeWithNodes(u.file,va(c.range),ka(c.range),oe):H.replaceNodeWithNodes(u.file,c.range,oe);const K=H.getChanges(),ke=(d0(c.range)?va(c.range):c.range).getSourceFile().fileName,Oe=tN(K,ke,S,!1);return{renameFilename:ke,renameLocation:Oe,edits:K};function me(be){if(be===void 0)return;const xe=Mo(be);let De=xe;for(;Wb(De);)De=De.type;return uy(De)&&wn(De.types,ft=>ft.kind===157)?xe:I.createUnionTypeNode([xe,I.createKeywordTypeNode(157)])}}function IWe(e,t,{substitutions:n},i,s){const o=s.program.getTypeChecker(),c=t.getSourceFile(),u=Sn(e)&&!$n(t)&&!o.resolveName(e.name.text,e,111551,!1)&&!Pi(e.name)&&!v1(e.name)?e.name.text:uS($n(t)?"newProperty":"newLocal",c),f=Hr(t);let g=f||!o.isContextSensitive(e)?void 0:o.typeToTypeNode(o.getContextualType(e),t,1),d=jWe(Va(e),n);({variableType:g,initializer:d}=w(g,d)),U_(d);const y=Kr.ChangeTracker.fromContext(s);if($n(t)){E.assert(!f,"Cannot extract to a JS class");const P=[];P.push(I.createModifier(123)),i&32&&P.push(I.createModifier(126)),P.push(I.createModifier(148));const F=I.createPropertyDeclaration(P,u,void 0,g,d);let J=I.createPropertyAccessExpression(i&32?I.createIdentifier(t.name.getText()):I.createThis(),I.createIdentifier(u));Jle(e)&&(J=I.createJsxExpression(void 0,J));const U=e.pos,$=zWe(U,t);y.insertNodeBefore(s.file,$,F,!0),y.replaceNode(s.file,e,J)}else{const P=I.createVariableDeclaration(u,void 0,g,d),F=FWe(e,t);if(F){y.insertNodeBefore(s.file,F,P);const J=I.createIdentifier(u);y.replaceNode(s.file,e,J)}else if(e.parent.kind===244&&t===Pr(e,Rle)){const J=I.createVariableStatement(void 0,I.createVariableDeclarationList([P],2));y.replaceNode(s.file,e.parent,J)}else{const J=I.createVariableStatement(void 0,I.createVariableDeclarationList([P],2)),U=WWe(e,t);if(U.pos===0?y.insertNodeAtTopOfFile(s.file,J,!1):y.insertNodeBefore(s.file,U,J,!1),e.parent.kind===244)y.delete(s.file,e.parent);else{let $=I.createIdentifier(u);Jle(e)&&($=I.createJsxExpression(void 0,$)),y.replaceNode(s.file,e,$)}}}const S=y.getChanges(),T=e.getSourceFile().fileName,k=tN(S,T,u,!0);return{renameFilename:T,renameLocation:k,edits:S};function w(P,F){if(P===void 0)return{variableType:P,initializer:F};if(!lo(F)&&!mo(F)||F.typeParameters)return{variableType:P,initializer:F};const J=o.getTypeAtLocation(e),U=Tm(o.getSignaturesOfType(J,0));if(!U)return{variableType:P,initializer:F};if(U.getTypeParameters())return{variableType:P,initializer:F};const $=[];let j=!1;for(const re of F.parameters)if(re.type)$.push(re);else{const R=o.getTypeAtLocation(re);R===o.getAnyType()&&(j=!0),$.push(I.updateParameterDeclaration(re,re.modifiers,re.dotDotDotToken,re.name,re.questionToken,re.type||o.typeToTypeNode(R,t,1),re.initializer))}if(j)return{variableType:P,initializer:F};if(P=void 0,mo(F))F=I.updateArrowFunction(F,Hp(e)?Lv(e):void 0,F.typeParameters,$,F.type||o.typeToTypeNode(U.getReturnType(),t,1),F.equalsGreaterThanToken,F.body);else{if(U&&U.thisParameter){const re=bl($);if(!re||Ie(re.name)&&re.name.escapedText!=="this"){const R=o.getTypeOfSymbolAtLocation(U.thisParameter,e);$.splice(0,0,I.createParameterDeclaration(void 0,void 0,"this",void 0,o.typeToTypeNode(R,t,1)))}}F=I.updateFunctionExpression(F,Hp(e)?Lv(e):void 0,F.asteriskToken,F.name,F.typeParameters,$,F.type||o.typeToTypeNode(U.getReturnType(),t,1),F.body)}return{variableType:P,initializer:F}}}function FWe(e,t){let n;for(;e!==void 0&&e!==t;){if(hi(e)&&e.initializer===n&&ml(e.parent)&&e.parent.declarations.length>1)return e;n=e,e=e.parent}}function OWe(e,t){let n;const i=e.symbol;if(i&&i.declarations)for(const s of i.declarations)(n===void 0||s.pos0;if(Cs(e)&&!o&&i.size===0)return{body:I.createBlock(e.statements,!0),returnValueProperty:void 0};let c,u=!1;const f=I.createNodeArray(Cs(e)?e.statements.slice(0):[Ei(e)?e:I.createReturnStatement(Va(e))]);if(o||i.size){const d=Dr(f,g,Ei).slice();if(o&&!s&&Ei(e)){const y=Ble(t,n);y.length===1?d.push(I.createReturnStatement(y[0].name)):d.push(I.createReturnStatement(I.createObjectLiteralExpression(y)))}return{body:I.createBlock(d,!0),returnValueProperty:c}}else return{body:I.createBlock(f,!0),returnValueProperty:void 0};function g(d){if(!u&&Up(d)&&o){const y=Ble(t,n);return d.expression&&(c||(c="__return"),y.unshift(I.createPropertyAssignment(c,qe(d.expression,g,ot)))),y.length===1?I.createReturnStatement(y[0].name):I.createReturnStatement(I.createObjectLiteralExpression(y))}else{const y=u;u=u||po(d)||$n(d);const S=i.get(Oa(d).toString()),T=S?Mo(S):ur(d,g,void 0);return u=y,T}}}function jWe(e,t){return t.size?n(e):e;function n(i){const s=t.get(Oa(i).toString());return s?Mo(s):ur(i,n,void 0)}}function BWe(e){if(po(e)){const t=e.body;if(Cs(t))return t.statements}else{if(Yd(e)||Ni(e))return e.statements;if($n(e))return e.members}return Ve}function JWe(e,t){return wn(BWe(t),n=>n.pos>=e&&po(n)&&!sc(n))}function zWe(e,t){const n=t.members;E.assert(n.length>0,"Found no members");let i,s=!0;for(const o of n){if(o.pos>e)return i||n[0];if(s&&!xs(o)){if(i!==void 0)return o;s=!1}i=o}return i===void 0?E.fail():i}function WWe(e,t){E.assert(!$n(t));let n;for(let i=e;i!==t;i=i.parent)Rle(i)&&(n=i);for(let i=(n||e).parent;;i=i.parent){if(Nke(i)){let s;for(const o of i.statements){if(o.pos>e.pos)break;s=o}return!s&&zC(i)?(E.assert(d3(i.parent.parent),"Grandparent isn't a switch statement"),i.parent.parent):E.checkDefined(s,"prevStatement failed to get set")}E.assert(i!==t,"Didn't encounter a block-like before encountering scope")}}function Ble(e,t){const n=nr(e,s=>I.createShorthandPropertyAssignment(s.symbol.name)),i=nr(t,s=>I.createShorthandPropertyAssignment(s.symbol.name));return n===void 0?i:i===void 0?n:n.concat(i)}function d0(e){return ts(e)}function VWe(e,t){return d0(e.range)?{pos:va(e.range).getStart(t),end:ka(e.range).getEnd()}:e.range}function UWe(e,t,n,i,s,o){const c=new Map,u=[],f=[],g=[],d=[],y=[],S=new Map,T=[];let k;const w=d0(e.range)?e.range.length===1&&Cl(e.range[0])?e.range[0].expression:void 0:e.range;let P;if(w===void 0){const ee=e.range,oe=va(ee).getStart(),Se=ka(ee).end;P=xl(i,oe,Se-oe,Gl.expressionExpected)}else s.getTypeAtLocation(w).flags&147456&&(P=yn(w,Gl.uselessConstantType));for(const ee of t){u.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),f.push(new Map),g.push([]);const oe=[];P&&oe.push(P),$n(ee)&&Hr(ee)&&oe.push(yn(ee,Gl.cannotExtractToJSClass)),mo(ee)&&!Cs(ee.body)&&oe.push(yn(ee,Gl.cannotExtractToExpressionArrowFunction)),d.push(oe)}const F=new Map,J=d0(e.range)?I.createBlock(e.range):e.range,U=d0(e.range)?va(e.range):e.range,$=j(U);if(R(J),$&&!d0(e.range)&&!Kd(e.range)){const ee=s.getContextualType(e.range);re(ee)}if(c.size>0){const ee=new Map;let oe=0;for(let Se=U;Se!==void 0&&oe{u[oe].typeParameterUsages.set(K,ae)}),oe++),Cz(Se))for(const ae of H0(Se)){const K=s.getTypeAtLocation(ae);c.has(K.id.toString())&&ee.set(K.id.toString(),K)}E.assert(oe===t.length,"Should have iterated all scopes")}if(y.length){const ee=kz(t[0],t[0].parent)?t[0]:Nm(t[0]);Ss(ee,pe)}for(let ee=0;ee0&&(oe.usages.size>0||oe.typeParameterUsages.size>0)){const K=d0(e.range)?e.range[0]:e.range;d[ee].push(yn(K,Gl.cannotAccessVariablesFromNestedScopes))}e.facts&16&&$n(t[ee])&&g[ee].push(yn(e.thisNode,Gl.cannotExtractFunctionsContainingThisToMethod));let Se=!1,ae;if(u[ee].usages.forEach(K=>{K.usage===2&&(Se=!0,K.symbol.flags&106500&&K.symbol.valueDeclaration&&R_(K.symbol.valueDeclaration,8)&&(ae=K.symbol.valueDeclaration))}),E.assert(d0(e.range)||T.length===0,"No variable declarations expected if something was extracted"),Se&&!d0(e.range)){const K=yn(e.range,Gl.cannotWriteInExpression);g[ee].push(K),d[ee].push(K)}else if(ae&&ee>0){const K=yn(ae,Gl.cannotExtractReadonlyPropertyInitializerOutsideConstructor);g[ee].push(K),d[ee].push(K)}else if(k){const K=yn(k,Gl.cannotExtractExportedEntity);g[ee].push(K),d[ee].push(K)}}return{target:J,usagesPerScope:u,functionErrorsPerScope:g,constantErrorsPerScope:d,exposedVariableDeclarations:T};function j(ee){return!!Pr(ee,oe=>Cz(oe)&&H0(oe).length!==0)}function re(ee){const oe=s.getSymbolWalker(()=>(o.throwIfCancellationRequested(),!0)),{visitedTypes:Se}=oe.walkType(ee);for(const ae of Se)ae.isTypeParameter()&&c.set(ae.id.toString(),ae)}function R(ee,oe=1){if($){const Se=s.getTypeAtLocation(ee);re(Se)}if(yu(ee)&&ee.symbol&&y.push(ee),il(ee))R(ee.left,2),R(ee.right);else if(ste(ee))R(ee.operand,2);else if(Sn(ee)||Co(ee))Ss(ee,R);else if(Ie(ee)){if(!ee.parent||Xu(ee.parent)&&ee!==ee.parent.left||Sn(ee.parent)&&ee!==ee.parent.expression)return;Y(ee,oe,gg(ee))}else Ss(ee,R)}function Y(ee,oe,Se){const ae=ue(ee,oe,Se);if(ae)for(let K=0;K=oe)return K;if(F.set(K,oe),fe){for(const me of u)me.usages.get(ee.text)&&me.usages.set(ee.text,{usage:oe,symbol:ae,node:ee});return K}const ke=ae.getDeclarations(),Oe=ke&&wn(ke,me=>me.getSourceFile()===i);if(Oe&&!VA(n,Oe.getStart(),Oe.end)){if(e.facts&2&&oe===2){const me=yn(ee,Gl.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(const be of g)be.push(me);for(const be of d)be.push(me)}for(let me=0;meae.symbol===oe);if(Se)if(hi(Se)){const ae=Se.symbol.id.toString();S.has(ae)||(T.push(Se),S.set(ae,!0))}else k=k||Se}Ss(ee,pe)}function H(ee){return ee.parent&&k_(ee.parent)&&ee.parent.name===ee?s.getShorthandAssignmentValueSymbol(ee.parent):s.getSymbolAtLocation(ee)}function q(ee,oe,Se){if(!ee)return;const ae=ee.getDeclarations();if(ae&&ae.some(fe=>fe.parent===oe))return I.createIdentifier(ee.name);const K=q(ee.parent,oe,Se);if(K!==void 0)return Se?I.createQualifiedName(K,I.createIdentifier(ee.name)):I.createPropertyAccessExpression(K,ee.name)}}function qWe(e){return Pr(e,t=>t.parent&&Ake(t)&&!Zr(t.parent))}function Ake(e){const{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 Nke(e){switch(e.kind){case 241:case 312:case 268:case 296:return!0;default:return!1}}function Jle(e){return zle(e)||(Eg(e)||$b(e)||u2(e))&&(Eg(e.parent)||u2(e.parent))}function zle(e){return aa(e)&&e.parent&&Kd(e.parent)}var E6,P6,D6,Gl,Wle,HWe=Dt({"src/services/refactors/extractSymbol.ts"(){qn(),Vm(),E6="Extract Symbol",P6={name:"Extract Constant",description:ds(p.Extract_constant),kind:"refactor.extract.constant"},D6={name:"Extract Function",description:ds(p.Extract_function),kind:"refactor.extract.function"},Dg(E6,{kinds:[P6.kind,D6.kind],getEditsForAction:wke,getAvailableActions:Dke}),(e=>{function t(n){return{message:n,code:0,category:3,key:n}}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")})(Gl||(Gl={})),Wle=(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))(Wle||{})}}),Ike={};Gc(Ike,{Messages:()=>Gl,RangeFacts:()=>Wle,getRangeToExtract:()=>Mle,getRefactorActionsToExtractSymbol:()=>Dke,getRefactorEditsToExtractSymbol:()=>wke});var GWe=Dt({"src/services/_namespaces/ts.refactor.extractSymbol.ts"(){HWe()}}),kM,M$,R$,$We=Dt({"src/services/refactors/generateGetAccessorAndSetAccessor.ts"(){qn(),Vm(),kM="Generate 'get' and 'set' accessors",M$=ds(p.Generate_get_and_set_accessors),R$={name:kM,description:M$,kind:"refactor.rewrite.property.generateAccessors"},Dg(kM,{kinds:[R$.kind],getEditsForAction:function(t,n){if(!t.endPosition)return;const i=lu.getAccessorConvertiblePropertyAtPosition(t.file,t.program,t.startPosition,t.endPosition);E.assert(i&&!lh(i),"Expected applicable refactor info");const s=lu.generateAccessorFromProperty(t.file,t.program,t.startPosition,t.endPosition,t,n);if(!s)return;const o=t.file.fileName,c=i.renameAccessor?i.accessorName:i.fieldName,f=(Ie(c)?0:-1)+tN(s,o,c.text,rs(i.declaration));return{renameFilename:o,renameLocation:f,edits:s}},getAvailableActions(e){if(!e.endPosition)return Ve;const t=lu.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition,e.triggerReason==="invoked");return t?lh(t)?e.preferences.provideRefactorNotApplicableReason?[{name:kM,description:M$,actions:[{...R$,notApplicableReason:t.error}]}]:Ve:[{name:kM,description:M$,actions:[R$]}]:Ve}})}}),XWe={},QWe=Dt({"src/services/_namespaces/ts.refactor.generateGetAccessorAndSetAccessor.ts"(){$We()}});function YWe(e){const t=Fke(e);if(t&&!lh(t))return{renameFilename:void 0,renameLocation:void 0,edits:Kr.ChangeTracker.with(e,i=>KWe(e.file,i,t.declaration,t.returnTypeNode))}}function ZWe(e){const t=Fke(e);return t?lh(t)?e.preferences.provideRefactorNotApplicableReason?[{name:CM,description:j$,actions:[{...EM,notApplicableReason:t.error}]}]:Ve:[{name:CM,description:j$,actions:[EM]}]:Ve}function KWe(e,t,n,i){const s=qa(n,22,e),o=mo(n)&&s===void 0,c=o?va(n.parameters):s;c&&(o&&(t.insertNodeBefore(e,c,I.createToken(21)),t.insertNodeAfter(e,c,I.createToken(22))),t.insertNodeAt(e,c.end,i,{prefix:": "}))}function Fke(e){if(Hr(e.file)||!$1(EM.kind,e.kind))return;const t=u_(e.file,e.startPosition),n=Pr(t,c=>Cs(c)||c.parent&&mo(c.parent)&&(c.kind===39||c.parent.body===c)?"quit":eVe(c));if(!n||!n.body||n.type)return{error:ds(p.Return_type_must_be_inferred_from_a_function)};const i=e.program.getTypeChecker(),s=tVe(i,n);if(!s)return{error:ds(p.Could_not_determine_function_return_type)};const o=i.typeToTypeNode(s,n,1);if(o)return{declaration:n,returnTypeNode:o}}function eVe(e){switch(e.kind){case 262:case 218:case 219:case 174:return!0;default:return!1}}function tVe(e,t){if(e.isImplementationOfOverload(t)){const i=e.getTypeAtLocation(t).getCallSignatures();if(i.length>1)return e.getUnionType(Ri(i,s=>s.getReturnType()))}const n=e.getSignatureFromDeclaration(t);if(n)return e.getReturnTypeOfSignature(n)}var CM,j$,EM,rVe=Dt({"src/services/refactors/inferFunctionReturnType.ts"(){qn(),Vm(),CM="Infer function return type",j$=ds(p.Infer_function_return_type),EM={name:CM,description:j$,kind:"refactor.rewrite.function.returnType"},Dg(CM,{kinds:[EM.kind],getEditsForAction:YWe,getAvailableActions:ZWe})}}),nVe={},iVe=Dt({"src/services/_namespaces/ts.refactor.inferFunctionReturnType.ts"(){rVe()}}),Ix={};Gc(Ix,{addExportToChanges:()=>yle,addExports:()=>dle,addNewFileToTsconfig:()=>lle,addOrRemoveBracesToArrowFunction:()=>yze,containsJsx:()=>ble,convertArrowFunctionOrFunctionExpression:()=>Aze,convertParamsToDestructuredObject:()=>Xze,convertStringOrTemplateLiteral:()=>sWe,convertToOptionalChainExpression:()=>yWe,createNewFileName:()=>vle,createOldFileImportsFromTargetFile:()=>ple,deleteMovedStatements:()=>mM,deleteUnusedImports:()=>mle,deleteUnusedOldImports:()=>ule,doChangeNamedToNamespaceOrDefault:()=>zxe,extractSymbol:()=>Ike,filterImport:()=>mN,forEachImportInStatement:()=>dN,generateGetAccessorAndSetAccessor:()=>XWe,getApplicableRefactors:()=>gJe,getEditsForRefactor:()=>hJe,getStatementsToMove:()=>gN,getTopLevelDeclarationStatement:()=>x$,getUsageInfo:()=>hM,inferFunctionReturnType:()=>nVe,isRefactorErrorInfo:()=>lh,isTopLevelDeclaration:()=>yM,makeImportOrRequire:()=>gM,moduleSpecifierFromImport:()=>pN,nameOfTopLevelDeclaration:()=>hle,refactorKindBeginsWith:()=>$1,registerRefactor:()=>Dg,updateImportsInOtherFiles:()=>_le});var Vm=Dt({"src/services/_namespaces/ts.refactor.ts"(){Lxe(),kJe(),wJe(),RJe(),jJe(),JJe(),UJe(),_ze(),vze(),Nze(),Qze(),aWe(),vWe(),GWe(),QWe(),iVe()}});function Oke(e,t,n,i){const s=Vle(e,t,n,i);E.assert(s.spans.length%3===0);const o=s.spans,c=[];for(let u=0;u{s.push(c.getStart(t),c.getWidth(t),(u+1<<8)+f)},i),s}function aVe(e,t,n,i,s){const o=e.getTypeChecker();let c=!1;function u(f){switch(f.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 219:s.throwIfCancellationRequested()}if(!f||!M7(n,f.pos,f.getFullWidth())||f.getFullWidth()===0)return;const g=c;if((Eg(f)||$b(f))&&(c=!0),g3(f)&&(c=!1),Ie(f)&&!c&&!uVe(f)&&!YE(f.escapedText)){let d=o.getSymbolAtLocation(f);if(d){d.flags&2097152&&(d=o.getAliasedSymbol(d));let y=oVe(d,aS(f));if(y!==void 0){let S=0;f.parent&&(Ea(f.parent)||Gle.get(f.parent.kind)===y)&&f.parent.name===f&&(S=1),y===6&&Mke(f)&&(y=9),y=cVe(o,f,y);const T=d.valueDeclaration;if(T){const k=y1(T),w=Gh(T);k&256&&(S|=2),k&1024&&(S|=4),y!==0&&y!==2&&(k&8||w&2||d.getFlags()&8)&&(S|=8),(y===7||y===10)&&lVe(T,t)&&(S|=32),e.isSourceFileDefaultLibrary(T.getSourceFile())&&(S|=16)}else d.declarations&&d.declarations.some(k=>e.isSourceFileDefaultLibrary(k.getSourceFile()))&&(S|=16);i(f,y,S)}}}Ss(f,u),c=g}u(t)}function oVe(e,t){const n=e.getFlags();if(n&32)return 0;if(n&384)return 1;if(n&524288)return 5;if(n&64){if(t&2)return 2}else if(n&262144)return 4;let i=e.valueDeclaration||e.declarations&&e.declarations[0];return i&&Ea(i)&&(i=Lke(i)),i&&Gle.get(i.kind)}function cVe(e,t,n){if(n===7||n===9||n===6){const i=e.getTypeAtLocation(t);if(i){const s=o=>o(i)||i.isUnion()&&i.types.some(o);if(n!==6&&s(o=>o.getConstructSignatures().length>0))return 0;if(s(o=>o.getCallSignatures().length>0)&&!s(o=>o.getProperties().length>0)||_Ve(t))return n===9?11:10}}return n}function lVe(e,t){return Ea(e)&&(e=Lke(e)),hi(e)?(!Ni(e.parent.parent.parent)||f2(e.parent))&&e.getSourceFile()===t:Xc(e)?!Ni(e.parent)&&e.getSourceFile()===t:!1}function Lke(e){for(;;)if(Ea(e.parent.parent))e=e.parent.parent;else return e.parent.parent}function uVe(e){const t=e.parent;return t&&(Rm(t)||x_(t)||dy(t))}function _Ve(e){for(;Mke(e);)e=e.parent;return Rs(e.parent)&&e.parent.expression===e}function Mke(e){return Xu(e.parent)&&e.parent.right===e||Sn(e.parent)&&e.parent.name===e}var Ule,qle,Hle,Gle,Rke=Dt({"src/services/classifier2020.ts"(){qn(),Ule=(e=>(e[e.typeOffset=8]="typeOffset",e[e.modifierMask=255]="modifierMask",e))(Ule||{}),qle=(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))(qle||{}),Hle=(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))(Hle||{}),Gle=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 jke(e,t,n,i){const s=$D(e)?new V$(e,t,n):e===80?new q$(80,t,n):e===81?new H$(81,t,n):new Yle(e,t,n);return s.parent=i,s.flags=i.flags&101441536,s}function fVe(e,t){if(!$D(e.kind))return Ve;const n=[];if(Z7(e))return e.forEachChild(c=>{n.push(c)}),n;xu.setText((t||e.getSourceFile()).text);let i=e.pos;const s=c=>{PM(n,i,c.pos,e),n.push(c),i=c.end},o=c=>{PM(n,i,c.pos,e),n.push(pVe(c,e)),i=c.end};return rr(e.jsDoc,s),i=e.pos,e.forEachChild(s,o),PM(n,i,e.end,e),xu.setText(void 0),n}function PM(e,t,n,i){for(xu.resetTokenState(t);tt.tagName.text==="inheritDoc"||t.tagName.text==="inheritdoc")}function B$(e,t){if(!e)return Ve;let n=Q1.getJsDocTagsFromDeclarations(e,t);if(t&&(n.length===0||e.some(Bke))){const i=new Set;for(const s of e){const o=Jke(t,s,c=>{var u;if(!i.has(c))return i.add(c),s.kind===177||s.kind===178?c.getContextualJsDocTags(s,t):((u=c.declarations)==null?void 0:u.length)===1?c.getJsDocTags():void 0});o&&(n=[...o,...n])}}return n}function DM(e,t){if(!e)return Ve;let n=Q1.getJsDocCommentsFromDeclarations(e,t);if(t&&(n.length===0||e.some(Bke))){const i=new Set;for(const s of e){const o=Jke(t,s,c=>{if(!i.has(c))return i.add(c),s.kind===177||s.kind===178?c.getContextualDocumentationComment(s,t):c.getDocumentationComment(t)});o&&(n=n.length===0?o.slice():o.concat(S6(),n))}}return n}function Jke(e,t,n){var i;const s=((i=t.parent)==null?void 0:i.kind)===176?t.parent.parent:t.parent;if(!s)return;const o=Bc(t);return Qa(xE(s),c=>{const u=e.getTypeAtLocation(c),f=o&&u.symbol?e.getTypeOfSymbol(u.symbol):u,g=e.getPropertyOfType(f,t.symbol.name);return g?n(g):void 0})}function dVe(){return{getNodeConstructor:()=>V$,getTokenConstructor:()=>Yle,getIdentifierConstructor:()=>q$,getPrivateIdentifierConstructor:()=>H$,getSourceFileConstructor:()=>Hke,getSymbolConstructor:()=>Vke,getTypeConstructor:()=>Uke,getSignatureConstructor:()=>qke,getSourceMapSourceConstructor:()=>Gke}}function TN(e){let t=!0;for(const i in e)if(Ka(e,i)&&!zke(i)){t=!1;break}if(t)return e;const n={};for(const i in e)if(Ka(e,i)){const s=zke(i)?i:i.charAt(0).toLowerCase()+i.substr(1);n[s]=e[i]}return n}function zke(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function xN(e){return e?nr(e,t=>t.text).join(""):""}function wM(){return{target:1,jsx:1}}function J$(){return lu.getSupportedErrorCodes()}function Wke(e,t,n){e.version=n,e.scriptSnapshot=t}function AM(e,t,n,i,s,o){const c=qw(e,y6(t),n,s,o);return Wke(c,t,i),c}function z$(e,t,n,i,s){if(i&&n!==e.version){let c;const u=i.span.start!==0?e.text.substr(0,i.span.start):"",f=bc(i.span)!==e.text.length?e.text.substr(bc(i.span)):"";if(i.newLength===0)c=u&&f?u+f:u||f;else{const d=t.getText(i.span.start,i.span.start+i.newLength);c=u&&f?u+d+f:u?u+d:d+f}const g=KV(e,c,i,s);return Wke(g,t,n),g.nameTable=void 0,e!==g&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),g}const o={languageVersion:e.languageVersion,impliedNodeFormat:e.impliedNodeFormat,setExternalModuleIndicator:e.setExternalModuleIndicator,jsDocParsingMode:e.jsDocParsingMode};return AM(e.fileName,t,o,n,!0,e.scriptKind)}function $le(e,t=Nce(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory()),n){var i;let s;n===void 0?s=0:typeof n=="boolean"?s=n?2:0:s=n;const o=new $ke(e);let c,u,f=0;const g=e.getCancellationToken?new Qke(e.getCancellationToken()):Xke,d=e.getCurrentDirectory();Yre((i=e.getLocalizedDiagnosticMessages)==null?void 0:i.bind(e));function y(A){e.log&&e.log(A)}const S=SC(e),T=nu(S),k=qce({useCaseSensitiveFileNames:()=>S,getCurrentDirectory:()=>d,getProgram:J,fileExists:Os(e,e.fileExists),readFile:Os(e,e.readFile),getDocumentPositionMapper:Os(e,e.getDocumentPositionMapper),getSourceFileLike:Os(e,e.getSourceFileLike),log:y});function w(A){const le=c.getSourceFile(A);if(!le){const V=new Error(`Could not find source file: '${A}'.`);throw V.ProgramFiles=c.getSourceFiles().map(ce=>ce.fileName),V}return le}function P(){e.updateFromProject&&!e.updateFromProjectInProgress?e.updateFromProject():F()}function F(){var A,le,V;if(E.assert(s!==2),e.getProjectVersion){const _s=e.getProjectVersion();if(_s){if(u===_s&&!((A=e.hasChangedAutomaticTypeDirectiveNames)!=null&&A.call(e)))return;u=_s}}const ce=e.getTypeRootsVersion?e.getTypeRootsVersion():0;f!==ce&&(y("TypeRoots version has changed; provide new program"),c=void 0,f=ce);const Ne=e.getScriptFileNames().slice(),Ce=e.getCompilationSettings()||wM(),_t=e.hasInvalidatedResolutions||_d,Tt=Os(e,e.hasInvalidatedLibResolutions)||_d,Jt=Os(e,e.hasChangedAutomaticTypeDirectiveNames),ar=(le=e.getProjectReferences)==null?void 0:le.call(e);let Er,Nr={getSourceFile:_o,getSourceFileByPath:kc,getCancellationToken:()=>g,getCanonicalFileName:T,useCaseSensitiveFileNames:()=>S,getNewLine:()=>t0(Ce),getDefaultLibFileName:_s=>e.getDefaultLibFileName(_s),writeFile:Ca,getCurrentDirectory:()=>d,fileExists:_s=>e.fileExists(_s),readFile:_s=>e.readFile&&e.readFile(_s),getSymlinkCache:Os(e,e.getSymlinkCache),realpath:Os(e,e.realpath),directoryExists:_s=>pd(_s,e),getDirectories:_s=>e.getDirectories?e.getDirectories(_s):[],readDirectory:(_s,Ra,go,qo,Ol)=>(E.checkDefined(e.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),e.readDirectory(_s,Ra,go,qo,Ol)),onReleaseOldSourceFile:pr,onReleaseParsedCommandLine:is,hasInvalidatedResolutions:_t,hasInvalidatedLibResolutions:Tt,hasChangedAutomaticTypeDirectiveNames:Jt,trace:Os(e,e.trace),resolveModuleNames:Os(e,e.resolveModuleNames),getModuleResolutionCache:Os(e,e.getModuleResolutionCache),createHash:Os(e,e.createHash),resolveTypeReferenceDirectives:Os(e,e.resolveTypeReferenceDirectives),resolveModuleNameLiterals:Os(e,e.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:Os(e,e.resolveTypeReferenceDirectiveReferences),resolveLibrary:Os(e,e.resolveLibrary),useSourceOfProjectReferenceRedirect:Os(e,e.useSourceOfProjectReferenceRedirect),getParsedCommandLine:ci,jsDocParsingMode:e.jsDocParsingMode};const fi=Nr.getSourceFile,{getSourceFileWithCache:oi}=kA(Nr,_s=>Io(_s,d,T),(..._s)=>fi.call(Nr,..._s));Nr.getSourceFile=oi,(V=e.setCompilerHost)==null||V.call(e,Nr);const Wr={useCaseSensitiveFileNames:S,fileExists:_s=>Nr.fileExists(_s),readFile:_s=>Nr.readFile(_s),directoryExists:_s=>Nr.directoryExists(_s),getDirectories:_s=>Nr.getDirectories(_s),realpath:Nr.realpath,readDirectory:(..._s)=>Nr.readDirectory(..._s),trace:Nr.trace,getCurrentDirectory:Nr.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:Ca},Cn=t.getKeyForCompilationSettings(Ce);let Qi=new Set;if(Bq(c,Ne,Ce,(_s,Ra)=>e.getScriptVersion(Ra),_s=>Nr.fileExists(_s),_t,Tt,Jt,ci,ar)){Nr=void 0,Er=void 0,Qi=void 0;return}c=W9({rootNames:Ne,options:Ce,host:Nr,oldProgram:c,projectReferences:ar}),Nr=void 0,Er=void 0,Qi=void 0,k.clearCache(),c.getTypeChecker();return;function ci(_s){const Ra=Io(_s,d,T),go=Er==null?void 0:Er.get(Ra);if(go!==void 0)return go||void 0;const qo=e.getParsedCommandLine?e.getParsedCommandLine(_s):In(_s);return(Er||(Er=new Map)).set(Ra,qo||!1),qo}function In(_s){const Ra=_o(_s,100);if(Ra)return Ra.path=Io(_s,d,T),Ra.resolvedPath=Ra.path,Ra.originalFileName=Ra.fileName,Qw(Ra,Wr,Xi(Un(_s),d),void 0,Xi(_s,d))}function is(_s,Ra,go){var qo;e.getParsedCommandLine?(qo=e.onReleaseParsedCommandLine)==null||qo.call(e,_s,Ra,go):Ra&&pr(Ra.sourceFile,go)}function pr(_s,Ra){const go=t.getKeyForCompilationSettings(Ra);t.releaseDocumentWithKey(_s.resolvedPath,go,_s.scriptKind,_s.impliedNodeFormat)}function _o(_s,Ra,go,qo){return kc(_s,Io(_s,d,T),Ra,go,qo)}function kc(_s,Ra,go,qo,Ol){E.assert(Nr,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");const $i=e.getScriptSnapshot(_s);if(!$i)return;const zs=CG(_s,e),Ll=e.getScriptVersion(_s);if(!Ol){const Ya=c&&c.getSourceFileByPath(Ra);if(Ya){if(zs===Ya.scriptKind||Qi.has(Ya.resolvedPath))return t.updateDocumentWithKey(_s,Ra,e,Cn,$i,Ll,zs,go);t.releaseDocumentWithKey(Ya.resolvedPath,t.getKeyForCompilationSettings(c.getCompilerOptions()),Ya.scriptKind,Ya.impliedNodeFormat),Qi.add(Ya.resolvedPath)}}return t.acquireDocumentWithKey(_s,Ra,e,Cn,$i,Ll,zs,go)}}function J(){if(s===2){E.assert(c===void 0);return}return P(),c}function U(){var A;return(A=e.getPackageJsonAutoImportProvider)==null?void 0:A.call(e)}function $(A,le){const V=c.getTypeChecker(),ce=Ne();if(!ce)return!1;for(const _t of A)for(const Tt of _t.references){const Jt=Ce(Tt);if(E.assertIsDefined(Jt),le.has(Tt)||uo.isDeclarationOfSymbol(Jt,ce)){le.add(Tt),Tt.isDefinition=!0;const ar=RL(Tt,k,Os(e,e.fileExists));ar&&le.add(ar)}else Tt.isDefinition=!1}return!0;function Ne(){for(const _t of A)for(const Tt of _t.references){if(le.has(Tt)){const ar=Ce(Tt);return E.assertIsDefined(ar),V.getSymbolAtLocation(ar)}const Jt=RL(Tt,k,Os(e,e.fileExists));if(Jt&&le.has(Jt)){const ar=Ce(Jt);if(ar)return V.getSymbolAtLocation(ar)}}}function Ce(_t){const Tt=c.getSourceFile(_t.fileName);if(!Tt)return;const Jt=u_(Tt,_t.textSpan.start);return uo.Core.getAdjustedNode(Jt,{use:uo.FindReferencesUse.References})}}function j(){if(c){const A=t.getKeyForCompilationSettings(c.getCompilerOptions());rr(c.getSourceFiles(),le=>t.releaseDocumentWithKey(le.resolvedPath,A,le.scriptKind,le.impliedNodeFormat)),c=void 0}}function re(){j(),e=void 0}function R(A){return P(),c.getSyntacticDiagnostics(w(A),g).slice()}function Y(A){P();const le=w(A),V=c.getSemanticDiagnostics(le,g);if(!Hf(c.getCompilerOptions()))return V.slice();const ce=c.getDeclarationDiagnostics(le,g);return[...V,...ce]}function ue(A){return P(),n$(w(A),c,g)}function pe(){return P(),[...c.getOptionsDiagnostics(g),...c.getGlobalDiagnostics(g)]}function H(A,le,V=Yf,ce){const Ne={...V,includeCompletionsForModuleExports:V.includeCompletionsForModuleExports||V.includeExternalModuleExports,includeCompletionsWithInsertText:V.includeCompletionsWithInsertText||V.includeInsertTextCompletions};return P(),jx.getCompletionsAtPosition(e,c,y,w(A),le,Ne,V.triggerCharacter,V.triggerKind,g,ce&&ol.getFormatContext(ce,e),V.includeSymbol)}function q(A,le,V,ce,Ne,Ce=Yf,_t){return P(),jx.getCompletionEntryDetails(c,y,w(A),le,{name:V,source:Ne,data:_t},e,ce&&ol.getFormatContext(ce,e),Ce,g)}function ee(A,le,V,ce,Ne=Yf){return P(),jx.getCompletionEntrySymbol(c,y,w(A),le,{name:V,source:ce},e,Ne)}function oe(A,le){P();const V=w(A),ce=u_(V,le);if(ce===V)return;const Ne=c.getTypeChecker(),Ce=Se(ce),_t=yVe(Ce,Ne);if(!_t||Ne.isUnknownSymbol(_t)){const Nr=ae(V,Ce,le)?Ne.getTypeAtLocation(Ce):void 0;return Nr&&{kind:"",kindModifiers:"",textSpan:Zu(Ce,V),displayParts:Ne.runWithCancellationToken(g,fi=>KA(fi,Nr,oS(Ce))),documentation:Nr.symbol?Nr.symbol.getDocumentationComment(Ne):void 0,tags:Nr.symbol?Nr.symbol.getJsDocTags(Ne):void 0}}const{symbolKind:Tt,displayParts:Jt,documentation:ar,tags:Er}=Ne.runWithCancellationToken(g,Nr=>m0.getSymbolDisplayPartsDocumentationAndSymbolKind(Nr,_t,V,oS(Ce),Ce));return{kind:Tt,kindModifiers:m0.getSymbolModifiers(Ne,_t),textSpan:Zu(Ce,V),displayParts:Jt,documentation:ar,tags:Er}}function Se(A){return a2(A.parent)&&A.pos===A.parent.pos?A.parent.expression:RC(A.parent)&&A.pos===A.parent.pos||rC(A.parent)&&A.parent.name===A||hd(A.parent)?A.parent:A}function ae(A,le,V){switch(le.kind){case 80:return!HH(le)&&!GH(le)&&!Qg(le.parent);case 211:case 166:return!l0(A,V);case 110:case 197:case 108:case 202:return!0;case 236:return rC(le);default:return!1}}function K(A,le,V,ce){return P(),L6.getDefinitionAtPosition(c,w(A),le,V,ce)}function fe(A,le){return P(),L6.getDefinitionAndBoundSpan(c,w(A),le)}function ke(A,le){return P(),L6.getTypeDefinitionAtPosition(c.getTypeChecker(),w(A),le)}function Oe(A,le){return P(),uo.getImplementationsAtPosition(c,g,c.getSourceFiles(),w(A),le)}function me(A,le,V){const ce=Hs(A);E.assert(V.some(_t=>Hs(_t)===ce)),P();const Ne=Ri(V,_t=>c.getSourceFile(_t)),Ce=w(A);return sM.getDocumentHighlights(c,g,Ce,le,Ne)}function be(A,le,V,ce,Ne){P();const Ce=w(A),_t=xL(u_(Ce,le));if(nR.nodeIsEligibleForRename(_t))if(Ie(_t)&&(Zd(_t.parent)||l2(_t.parent))&&vC(_t.escapedText)){const{openingElement:Tt,closingElement:Jt}=_t.parent.parent;return[Tt,Jt].map(ar=>{const Er=Zu(ar.tagName,Ce);return{fileName:Ce.fileName,textSpan:Er,...uo.toContextSpan(Er,Ce,ar.parent)}})}else{const Tt=Df(Ce,Ne??Yf),Jt=typeof Ne=="boolean"?Ne:Ne==null?void 0:Ne.providePrefixAndSuffixTextForRename;return De(_t,le,{findInStrings:V,findInComments:ce,providePrefixAndSuffixTextForRename:Jt,use:uo.FindReferencesUse.Rename},(ar,Er,Nr)=>uo.toRenameLocation(ar,Er,Nr,Jt||!1,Tt))}}function xe(A,le){return P(),De(u_(w(A),le),le,{use:uo.FindReferencesUse.References},uo.toReferenceEntry)}function De(A,le,V,ce){P();const Ne=V&&V.use===uo.FindReferencesUse.Rename?c.getSourceFiles().filter(Ce=>!c.isSourceFileDefaultLibrary(Ce)):c.getSourceFiles();return uo.findReferenceOrRenameEntries(c,g,Ne,A,le,V,ce)}function ft(A,le){return P(),uo.findReferencedSymbols(c,g,c.getSourceFiles(),w(A),le)}function ge(A){return P(),uo.Core.getReferencesForFileName(A,c,c.getSourceFiles()).map(uo.toReferenceEntry)}function Fe(A,le,V,ce=!1,Ne=!1){P();const Ce=V?[w(V)]:c.getSourceFiles();return uxe(Ce,c.getTypeChecker(),g,A,le,ce,Ne)}function $e(A,le,V){P();const ce=w(A),Ne=e.getCustomTransformers&&e.getCustomTransformers();return Jae(c,ce,!!le,g,Ne,V)}function Pt(A,le,{triggerReason:V}=Yf){P();const ce=w(A);return BN.getSignatureHelpItems(c,ce,le,V,g)}function at(A){return o.getCurrentSourceFile(A)}function Je(A,le,V){const ce=o.getCurrentSourceFile(A),Ne=u_(ce,le);if(Ne===ce)return;switch(Ne.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 Ce=Ne;for(;;)if(m6(Ce)||Joe(Ce))Ce=Ce.parent;else if(XH(Ce))if(Ce.parent.parent.kind===267&&Ce.parent.parent.body===Ce.parent)Ce=Ce.parent.parent.name;else break;else break;return Rc(Ce.getStart(),Ne.getEnd())}function pt(A,le){const V=o.getCurrentSourceFile(A);return $$.spanInSourceFileAtLocation(V,le)}function zt(A){return dxe(o.getCurrentSourceFile(A),g)}function Vt(A){return mxe(o.getCurrentSourceFile(A),g)}function hr(A,le,V){return P(),(V||"original")==="2020"?Oke(c,g,w(A),le):wce(c.getTypeChecker(),g,w(A),c.getClassifiableNames(),le)}function Lr(A,le,V){return P(),(V||"original")==="original"?QG(c.getTypeChecker(),g,w(A),c.getClassifiableNames(),le):Vle(c,g,w(A),le)}function er(A,le){return Ace(g,o.getCurrentSourceFile(A),le)}function jt(A,le){return YG(g,o.getCurrentSourceFile(A),le)}function Rt(A){const le=o.getCurrentSourceFile(A);return UQ.collectElements(le,g)}const Kn=new Map(Object.entries({19:20,21:22,23:24,32:30}));Kn.forEach((A,le)=>Kn.set(A.toString(),Number(le)));function Ji(A,le){const V=o.getCurrentSourceFile(A),ce=h6(V,le),Ne=ce.getStart(V)===le?Kn.get(ce.kind.toString()):void 0,Ce=Ne&&qa(ce.parent,Ne,V);return Ce?[Zu(ce,V),Zu(Ce,V)].sort((_t,Tt)=>_t.start-Tt.start):Ve}function yi(A,le,V){let ce=xo();const Ne=TN(V),Ce=o.getCurrentSourceFile(A);y("getIndentationAtPosition: getCurrentSourceFile: "+(xo()-ce)),ce=xo();const _t=ol.SmartIndenter.getIndentation(le,Ce,Ne);return y("getIndentationAtPosition: computeIndentation : "+(xo()-ce)),_t}function os(A,le,V,ce){const Ne=o.getCurrentSourceFile(A);return ol.formatSelection(le,V,Ne,ol.getFormatContext(TN(ce),e))}function yr(A,le){return ol.formatDocument(o.getCurrentSourceFile(A),ol.getFormatContext(TN(le),e))}function _i(A,le,V,ce){const Ne=o.getCurrentSourceFile(A),Ce=ol.getFormatContext(TN(ce),e);if(!l0(Ne,le))switch(V){case"{":return ol.formatOnOpeningCurly(le,Ne,Ce);case"}":return ol.formatOnClosingCurly(le,Ne,Ce);case";":return ol.formatOnSemicolon(le,Ne,Ce);case` +`:return ol.formatOnEnter(le,Ne,Ce)}return[]}function ln(A,le,V,ce,Ne,Ce=Yf){P();const _t=w(A),Tt=Rc(le,V),Jt=ol.getFormatContext(Ne,e);return Zs(Nv(ce,Vh,Ao),ar=>(g.throwIfCancellationRequested(),lu.getFixes({errorCode:ar,sourceFile:_t,span:Tt,program:c,host:e,cancellationToken:g,formatContext:Jt,preferences:Ce})))}function Ht(A,le,V,ce=Yf){P(),E.assert(A.type==="file");const Ne=w(A.fileName),Ce=ol.getFormatContext(V,e);return lu.getAllFixes({fixId:le,sourceFile:Ne,program:c,host:e,cancellationToken:g,formatContext:Ce,preferences:ce})}function Ue(A,le,V=Yf){P(),E.assert(A.type==="file");const ce=w(A.fileName),Ne=ol.getFormatContext(le,e),Ce=A.mode??(A.skipDestructiveCodeActions?"SortAndCombine":"All");return Xp.organizeImports(ce,Ne,e,c,V,Ce)}function Et(A,le,V,ce=Yf){return Fce(J(),A,le,e,ol.getFormatContext(V,e),ce,k)}function fr(A,le){const V=typeof A=="string"?le:A;return ts(V)?Promise.all(V.map(ce=>Hn(ce))):Hn(V)}function Hn(A){const le=V=>Io(V,d,T);return E.assertEqual(A.type,"install package"),e.installPackage?e.installPackage({fileName:le(A.file),packageName:A.packageName}):Promise.reject("Host does not implement `installPackage`")}function ei(A,le,V,ce){const Ne=ce?ol.getFormatContext(ce,e).options:void 0;return Q1.getDocCommentTemplateAtPosition(f0(e,Ne),o.getCurrentSourceFile(A),le,V)}function Ii(A,le,V){if(V===60)return!1;const ce=o.getCurrentSourceFile(A);if(Px(ce,le))return!1;if(Goe(ce,le))return V===123;if(tG(ce,le))return!1;switch(V){case 39:case 34:case 96:return!l0(ce,le)}return!0}function ns(A,le){const V=o.getCurrentSourceFile(A),ce=Yc(le,V);if(!ce)return;const Ne=ce.kind===32&&Zd(ce.parent)?ce.parent.parent:KT(ce)&&Eg(ce.parent)?ce.parent:void 0;if(Ne&&tt(Ne))return{newText:``};const Ce=ce.kind===32&&px(ce.parent)?ce.parent.parent:KT(ce)&&u2(ce.parent)?ce.parent:void 0;if(Ce&&yt(Ce))return{newText:""}}function Vs(A,le){const V=o.getCurrentSourceFile(A),ce=Yc(le,V);if(!ce||ce.parent.kind===312)return;const Ne="[a-zA-Z0-9:\\-\\._$]*";if(u2(ce.parent.parent)){const Ce=ce.parent.parent.openingFragment,_t=ce.parent.parent.closingFragment;if(Yk(Ce)||Yk(_t))return;const Tt=Ce.getStart(V)+1,Jt=_t.getStart(V)+2;return le!==Tt&&le!==Jt?void 0:{ranges:[{start:Tt,length:0},{start:Jt,length:0}],wordPattern:Ne}}else{const Ce=Pr(ce.parent,oi=>!!(Zd(oi)||l2(oi)));if(!Ce)return;E.assert(Zd(Ce)||l2(Ce),"tag should be opening or closing element");const _t=Ce.parent.openingElement,Tt=Ce.parent.closingElement,Jt=_t.tagName.getStart(V),ar=_t.tagName.end,Er=Tt.tagName.getStart(V),Nr=Tt.tagName.end;return Jt===_t.getStart(V)||Er===Tt.getStart(V)||ar===_t.getEnd()||Nr===Tt.getEnd()||!(Jt<=le&&le<=ar||Er<=le&&le<=Nr)||_t.tagName.getText(V)!==Tt.tagName.getText(V)?void 0:{ranges:[{start:Jt,length:ar-Jt},{start:Er,length:Nr-Er}],wordPattern:Ne}}}function _a(A,le){return{lineStarts:A.getLineStarts(),firstLine:A.getLineAndCharacterOfPosition(le.pos).line,lastLine:A.getLineAndCharacterOfPosition(le.end).line}}function cr(A,le,V){const ce=o.getCurrentSourceFile(A),Ne=[],{lineStarts:Ce,firstLine:_t,lastLine:Tt}=_a(ce,le);let Jt=V||!1,ar=Number.MAX_VALUE;const Er=new Map,Nr=new RegExp(/\S/),fi=EL(ce,Ce[_t]),oi=fi?"{/*":"//";for(let Wr=_t;Wr<=Tt;Wr++){const Cn=ce.text.substring(Ce[Wr],ce.getLineEndOfPosition(Ce[Wr])),Qi=Nr.exec(Cn);Qi&&(ar=Math.min(ar,Qi.index),Er.set(Wr.toString(),Qi.index),Cn.substr(Qi.index,oi.length)!==oi&&(Jt=V===void 0||V))}for(let Wr=_t;Wr<=Tt;Wr++){if(_t!==Tt&&Ce[Wr]===le.end)continue;const Cn=Er.get(Wr.toString());Cn!==void 0&&(fi?Ne.push(...br(A,{pos:Ce[Wr]+ar,end:ce.getLineEndOfPosition(Ce[Wr])},Jt,fi)):Jt?Ne.push({newText:oi,span:{length:0,start:Ce[Wr]+ar}}):ce.text.substr(Ce[Wr]+Cn,oi.length)===oi&&Ne.push({newText:"",span:{length:oi.length,start:Ce[Wr]+Cn}}))}return Ne}function br(A,le,V,ce){var Ne;const Ce=o.getCurrentSourceFile(A),_t=[],{text:Tt}=Ce;let Jt=!1,ar=V||!1;const Er=[];let{pos:Nr}=le;const fi=ce!==void 0?ce:EL(Ce,Nr),oi=fi?"{/*":"/*",Wr=fi?"*/}":"*/",Cn=fi?"\\{\\/\\*":"\\/\\*",Qi=fi?"\\*\\/\\}":"\\*\\/";for(;Nr<=le.end;){const pi=Tt.substr(Nr,oi.length)===oi?oi.length:0,ci=l0(Ce,Nr+pi);if(ci)fi&&(ci.pos--,ci.end++),Er.push(ci.pos),ci.kind===3&&Er.push(ci.end),Jt=!0,Nr=ci.end+1;else{const In=Tt.substring(Nr,le.end).search(`(${Cn})|(${Qi})`);ar=V!==void 0?V:ar||!sce(Tt,Nr,In===-1?le.end:Nr+In),Nr=In===-1?le.end+1:Nr+In+Wr.length}}if(ar||!Jt){((Ne=l0(Ce,le.pos))==null?void 0:Ne.kind)!==2&&j0(Er,le.pos,Ao),j0(Er,le.end,Ao);const pi=Er[0];Tt.substr(pi,oi.length)!==oi&&_t.push({newText:oi,span:{length:0,start:pi}});for(let ci=1;ci0?pi-Wr.length:0,In=Tt.substr(ci,Wr.length)===Wr?Wr.length:0;_t.push({newText:"",span:{length:oi.length,start:pi-In}})}return _t}function Le(A,le){const V=o.getCurrentSourceFile(A),{firstLine:ce,lastLine:Ne}=_a(V,le);return ce===Ne&&le.pos!==le.end?br(A,le,!0):cr(A,le,!0)}function rt(A,le){const V=o.getCurrentSourceFile(A),ce=[],{pos:Ne}=le;let{end:Ce}=le;Ne===Ce&&(Ce+=EL(V,Ne)?2:1);for(let _t=Ne;_t<=Ce;_t++){const Tt=l0(V,_t);if(Tt){switch(Tt.kind){case 2:ce.push(...cr(A,{end:Tt.end,pos:Tt.pos+1},!1));break;case 3:ce.push(...br(A,{end:Tt.end,pos:Tt.pos+1},!1))}_t=Tt.end+1}}return ce}function tt({openingElement:A,closingElement:le,parent:V}){return!B1(A.tagName,le.tagName)||Eg(V)&&B1(A.tagName,V.openingElement.tagName)&&tt(V)}function yt({closingFragment:A,parent:le}){return!!(A.flags&262144)||u2(le)&&yt(le)}function ne(A,le,V){const ce=o.getCurrentSourceFile(A),Ne=ol.getRangeOfEnclosingComment(ce,le);return Ne&&(!V||Ne.kind===3)?vy(Ne):void 0}function we(A,le){P();const V=w(A);g.throwIfCancellationRequested();const ce=V.text,Ne=[];if(le.length>0&&!Jt(V.fileName)){const ar=_t();let Er;for(;Er=ar.exec(ce);){g.throwIfCancellationRequested();const Nr=3;E.assert(Er.length===le.length+Nr);const fi=Er[1],oi=Er.index+fi.length;if(!l0(V,oi))continue;let Wr;for(let Qi=0;Qi"("+Ce(ci.text)+")").join("|")+")",Wr=/(?:$|\*\/)/.source,Cn=/(?:.*?)/.source,Qi="("+oi+Cn+")",pi=fi+Qi+Wr;return new RegExp(pi,"gim")}function Tt(ar){return ar>=97&&ar<=122||ar>=65&&ar<=90||ar>=48&&ar<=57}function Jt(ar){return ar.includes("/node_modules/")}}function et(A,le,V){return P(),nR.getRenameInfo(c,w(A),le,V||{})}function B(A,le,V,ce,Ne,Ce){const[_t,Tt]=typeof le=="number"?[le,void 0]:[le.pos,le.end];return{file:A,startPosition:_t,endPosition:Tt,program:J(),host:e,formatContext:ol.getFormatContext(ce,e),cancellationToken:g,preferences:V,triggerReason:Ne,kind:Ce}}function Ge(A,le,V){return{file:A,program:J(),host:e,span:le,preferences:V,cancellationToken:g}}function mt(A,le){return GQ.getSmartSelectionRange(le,o.getCurrentSourceFile(A))}function Be(A,le,V=Yf,ce,Ne,Ce){P();const _t=w(A);return Ix.getApplicableRefactors(B(_t,le,V,Yf,ce,Ne),Ce)}function nt(A,le,V=Yf){P();const ce=w(A),Ne=E.checkDefined(c.getSourceFiles()),Ce=qE(A),_t=gN(B(ce,le,V,Yf)),Tt=ble(_t==null?void 0:_t.all),Jt=Ri(Ne,ar=>{const Er=qE(ar.fileName);return!(c!=null&&c.isSourceFileFromExternalLibrary(ce))&&!(ce===w(ar.fileName)||Ce===".ts"&&Er===".d.ts"||Ce===".d.ts"&&Vi(wc(ar.fileName),"lib.")&&Er===".d.ts")&&(Ce===Er||(Ce===".tsx"&&Er===".ts"||Ce===".jsx"&&Er===".js")&&!Tt)?ar.fileName:void 0});return{newFileName:vle(ce,c,e,_t),files:Jt}}function wt(A,le,V,ce,Ne,Ce=Yf,_t){P();const Tt=w(A);return Ix.getEditsForRefactor(B(Tt,V,Ce,le),ce,Ne,_t)}function ir(A,le){return le===0?{line:0,character:0}:k.toLineColumnOffset(A,le)}function Yt(A,le){P();const V=Fx.resolveCallHierarchyDeclaration(c,u_(w(A),le));return V&&MG(V,ce=>Fx.createCallHierarchyItem(c,ce))}function Kt(A,le){P();const V=w(A),ce=RG(Fx.resolveCallHierarchyDeclaration(c,le===0?V:u_(V,le)));return ce?Fx.getIncomingCalls(c,ce,g):[]}function W(A,le){P();const V=w(A),ce=RG(Fx.resolveCallHierarchyDeclaration(c,le===0?V:u_(V,le)));return ce?Fx.getOutgoingCalls(c,ce):[]}function Pe(A,le,V=Yf){P();const ce=w(A);return JQ.provideInlayHints(Ge(ce,le,V))}const St={dispose:re,cleanupSemanticCache:j,getSyntacticDiagnostics:R,getSemanticDiagnostics:Y,getSuggestionDiagnostics:ue,getCompilerOptionsDiagnostics:pe,getSyntacticClassifications:er,getSemanticClassifications:hr,getEncodedSyntacticClassifications:jt,getEncodedSemanticClassifications:Lr,getCompletionsAtPosition:H,getCompletionEntryDetails:q,getCompletionEntrySymbol:ee,getSignatureHelpItems:Pt,getQuickInfoAtPosition:oe,getDefinitionAtPosition:K,getDefinitionAndBoundSpan:fe,getImplementationAtPosition:Oe,getTypeDefinitionAtPosition:ke,getReferencesAtPosition:xe,findReferences:ft,getFileReferences:ge,getDocumentHighlights:me,getNameOrDottedNameSpan:Je,getBreakpointStatementAtPosition:pt,getNavigateToItems:Fe,getRenameInfo:et,getSmartSelectionRange:mt,findRenameLocations:be,getNavigationBarItems:zt,getNavigationTree:Vt,getOutliningSpans:Rt,getTodoComments:we,getBraceMatchingAtPosition:Ji,getIndentationAtPosition:yi,getFormattingEditsForRange:os,getFormattingEditsForDocument:yr,getFormattingEditsAfterKeystroke:_i,getDocCommentTemplateAtPosition:ei,isValidBraceCompletionAtPosition:Ii,getJsxClosingTagAtPosition:ns,getLinkedEditingRangeAtPosition:Vs,getSpanOfEnclosingComment:ne,getCodeFixesAtPosition:ln,getCombinedCodeFix:Ht,applyCodeActionCommand:fr,organizeImports:Ue,getEditsForFileRename:Et,getEmitOutput:$e,getNonBoundSourceFile:at,getProgram:J,getCurrentProgram:()=>c,getAutoImportProvider:U,updateIsDefinitionOfReferencedSymbols:$,getApplicableRefactors:Be,getEditsForRefactor:wt,getMoveToRefactoringFileSuggestions:nt,toLineColumnOffset:ir,getSourceMapper:()=>k,clearSourceMapperCache:()=>k.clearCache(),prepareCallHierarchy:Yt,provideCallHierarchyIncomingCalls:Kt,provideCallHierarchyOutgoingCalls:W,toggleLineComment:cr,toggleMultilineComment:br,commentSelection:Le,uncommentSelection:rt,provideInlayHints:Pe,getSupportedCodeFixes:J$};switch(s){case 0:break;case 1:Zle.forEach(A=>St[A]=()=>{throw new Error(`LanguageService Operation: ${A} not allowed in LanguageServiceMode.PartialSemantic`)});break;case 2:Yke.forEach(A=>St[A]=()=>{throw new Error(`LanguageService Operation: ${A} not allowed in LanguageServiceMode.Syntactic`)});break;default:E.assertNever(s)}return St}function W$(e){return e.nameTable||mVe(e),e.nameTable}function mVe(e){const t=e.nameTable=new Map;e.forEachChild(function n(i){if(Ie(i)&&!GH(i)&&i.escapedText||Sf(i)&&gVe(i)){const s=EE(i);t.set(s,t.get(s)===void 0?i.pos:-1)}else if(Pi(i)){const s=i.escapedText;t.set(s,t.get(s)===void 0?i.pos:-1)}if(Ss(i,n),sf(i))for(const s of i.jsDoc)Ss(s,n)})}function gVe(e){return eh(e)||e.parent.kind===283||vVe(e)||j8(e)}function kN(e){const t=hVe(e);return t&&(ua(t.parent)||_2(t.parent))?t:void 0}function hVe(e){switch(e.kind){case 11:case 15:case 9:if(e.parent.kind===167)return cz(e.parent.parent)?e.parent.parent:void 0;case 80:return cz(e.parent)&&(e.parent.parent.kind===210||e.parent.parent.kind===292)&&e.parent.name===e?e.parent:void 0}}function yVe(e,t){const n=kN(e);if(n){const i=t.getContextualType(n.parent),s=i&&NM(n,t,i,!1);if(s&&s.length===1)return va(s)}return t.getSymbolAtLocation(e)}function NM(e,t,n,i){const s=QA(e.name);if(!s)return Ve;if(!n.isUnion()){const u=n.getProperty(s);return u?[u]:Ve}const o=ua(e.parent)||_2(e.parent)?An(n.types,u=>!t.isTypeInvalidDueToUnionDiscriminant(u,e.parent)):n.types,c=Ri(o,u=>u.getProperty(s));if(i&&(c.length===0||c.length===n.types.length)){const u=n.getProperty(s);if(u)return[u]}return!o.length&&!c.length?Ri(n.types,u=>u.getProperty(s)):Nv(c,Vh)}function vVe(e){return e&&e.parent&&e.parent.kind===212&&e.parent.argumentExpression===e}function Xle(e){if(zl)return Mn(Un(Hs(zl.getExecutingFilePath())),JD(e));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}var Qle,V$,U$,Vke,Yle,q$,H$,Uke,qke,Hke,Gke,$ke,Xke,Qke,G$,Zle,Yke,bVe=Dt({"src/services/services.ts"(){qn(),pxe(),Oxe(),Vm(),VTe(),Rke(),Qle="0.8",V$=class{constructor(e,t,n){this.pos=t,this.end=n,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=e}assertHasRealPosition(e){E.assert(!md(this.pos)&&!md(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return wr(this)}getStart(e,t){return this.assertHasRealPosition(),k1(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=fVe(this,e))}getFirstToken(e){this.assertHasRealPosition();const t=this.getChildren(e);if(!t.length)return;const n=wn(t,i=>i.kind<316||i.kind>357);return n.kind<166?n:n.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();const t=this.getChildren(e),n=Do(t);if(n)return n.kind<166?n:n.getLastToken(e)}forEachChild(e,t){return Ss(this,e,t)}},U$=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 wr(this)}getStart(e,t){return k1(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||Ve}getFirstToken(){}getLastToken(){}forEachChild(){}},Vke=class{constructor(e,t){this.id=0,this.mergeId=0,this.flags=e,this.escapedName=t}getFlags(){return this.flags}get name(){return Xo(this)}getEscapedName(){return this.escapedName}getName(){return this.name}getDeclarations(){return this.declarations}getDocumentationComment(e){if(!this.documentationComment)if(this.documentationComment=Ve,!this.declarations&&wm(this)&&this.links.target&&wm(this.links.target)&&this.links.target.links.tupleLabelDeclaration){const t=this.links.target.links.tupleLabelDeclaration;this.documentationComment=DM([t],e)}else this.documentationComment=DM(this.declarations,e);return this.documentationComment}getContextualDocumentationComment(e,t){if(e){if(Q0(e)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=DM(An(this.declarations,Q0),t)),mr(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if(Xh(e)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=DM(An(this.declarations,Xh),t)),mr(this.contextualSetAccessorDocumentationComment)))return this.contextualSetAccessorDocumentationComment}return this.getDocumentationComment(t)}getJsDocTags(e){return this.tags===void 0&&(this.tags=B$(this.declarations,e)),this.tags}getContextualJsDocTags(e,t){if(e){if(Q0(e)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=B$(An(this.declarations,Q0),t)),mr(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if(Xh(e)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=B$(An(this.declarations,Xh),t)),mr(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(t)}},Yle=class extends U${constructor(e,t,n){super(t,n),this.kind=e}},q$=class extends U${constructor(e,t,n){super(t,n),this.kind=80}get text(){return on(this)}},q$.prototype.kind=80,H$=class extends U${constructor(e,t,n){super(t,n),this.kind=81}get text(){return on(this)}},H$.prototype.kind=81,Uke=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!!(bn(this)&3)}isClass(){return!!(bn(this)&1)}isIndexType(){return!!(this.flags&4194304)}get typeArguments(){if(bn(this)&4)return this.checker.getTypeArguments(this)}},qke=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){const t=this.checker.getParameterType(this,e);if(t.isIndexType()&&ZE(t.type)){const n=t.type.getConstraint();if(n)return this.checker.getIndexType(n)}return t}getDocumentationComment(){return this.documentationComment||(this.documentationComment=DM(ST(this.declaration),this.checker))}getJsDocTags(){return this.jsDocTags||(this.jsDocTags=B$(ST(this.declaration),this.checker))}},Hke=class extends V${constructor(e,t,n){super(e,t,n),this.kind=312}update(e,t){return KV(this,e,t)}getLineAndCharacterOfPosition(e){return Ha(this,e)}getLineStarts(){return $g(this)}getPositionOfLineAndCharacter(e,t,n){return I7($g(this),e,t,this.text,n)}getLineEndOfPosition(e){const{line:t}=this.getLineAndCharacterOfPosition(e),n=this.getLineStarts();let i;t+1>=n.length&&(i=this.getEnd()),i||(i=n[t+1]-1);const s=this.getFullText();return s[i]===` +`&&s[i-1]==="\r"?i-1:i}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){const e=yf();return this.forEachChild(s),e;function t(o){const c=i(o);c&&e.add(c,o)}function n(o){let c=e.get(o);return c||e.set(o,c=[]),c}function i(o){const c=R7(o);return c&&(Pa(c)&&Sn(c.expression)?c.expression.name.text:Ac(c)?QA(c):void 0)}function s(o){switch(o.kind){case 262:case 218:case 174:case 173:const c=o,u=i(c);if(u){const d=n(u),y=Do(d);y&&c.parent===y.parent&&c.symbol===y.symbol?c.body&&!y.body&&(d[d.length-1]=c):d.push(c)}Ss(o,s);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(o),Ss(o,s);break;case 169:if(!Rn(o,31))break;case 260:case 208:{const d=o;if(Ns(d.name)){Ss(d.name,s);break}d.initializer&&s(d.initializer)}case 306:case 172:case 171:t(o);break;case 278:const f=o;f.exportClause&&($f(f.exportClause)?rr(f.exportClause.elements,s):s(f.exportClause.name));break;case 272:const g=o.importClause;g&&(g.name&&t(g.name),g.namedBindings&&(g.namedBindings.kind===274?t(g.namedBindings):rr(g.namedBindings.elements,s)));break;case 226:fc(o)!==0&&t(o);default:Ss(o,s)}}}},Gke=class{constructor(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n}getLineAndCharacterOfPosition(e){return Ha(this,e)}},$ke=class{constructor(e){this.host=e}getCurrentSourceFile(e){var t,n,i,s,o,c,u,f;const g=this.host.getScriptSnapshot(e);if(!g)throw new Error("Could not find file: '"+e+"'.");const d=CG(e,this.host),y=this.host.getScriptVersion(e);let S;if(this.currentFileName!==e){const T={languageVersion:99,impliedNodeFormat:PA(Io(e,this.host.getCurrentDirectory(),((i=(n=(t=this.host).getCompilerHost)==null?void 0:n.call(t))==null?void 0:i.getCanonicalFileName)||Zh(this.host)),(f=(u=(c=(o=(s=this.host).getCompilerHost)==null?void 0:o.call(s))==null?void 0:c.getModuleResolutionCache)==null?void 0:u.call(c))==null?void 0:f.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:ew(this.host.getCompilationSettings()),jsDocParsingMode:0};S=AM(e,g,T,y,!0,d)}else if(this.currentFileVersion!==y){const T=g.getChangeRange(this.currentFileScriptSnapshot);S=z$(this.currentSourceFile,g,y,T)}return S&&(this.currentFileVersion=y,this.currentFileName=e,this.currentFileScriptSnapshot=g,this.currentSourceFile=S),this.currentSourceFile}},Xke={isCancellationRequested:_d,throwIfCancellationRequested:Ca},Qke=class{constructor(e){this.cancellationToken=e}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=qr)==null||e.instant(qr.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new Mk}},G$=class{constructor(e,t=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}isCancellationRequested(){const e=xo();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested()):!1}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=qr)==null||e.instant(qr.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new Mk}},Zle=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes"],Yke=[...Zle,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],Xre(dVe())}});function Zke(e,t,n){const i=[];n=c$(n,i);const s=ts(e)?e:[e],o=yA(void 0,void 0,I,n,s,t,!0);return o.diagnostics=es(o.diagnostics,i),o}var SVe=Dt({"src/services/transform.ts"(){qn()}});function TVe(e,t){if(e.isDeclarationFile)return;let n=Ui(e,t);const i=e.getLineAndCharacterOfPosition(t).line;if(e.getLineAndCharacterOfPosition(n.getStart(e)).line>i){const y=Yc(n.pos,e);if(!y||e.getLineAndCharacterOfPosition(y.getEnd()).line!==i)return;n=y}if(n.flags&33554432)return;return d(n);function s(y,S){const T=Kb(y)?gT(y.modifiers,ql):void 0,k=T?ca(e.text,T.end):y.getStart(e);return Rc(k,(S||y).getEnd())}function o(y,S){return s(y,x2(S,S.parent,e))}function c(y,S){return y&&i===e.getLineAndCharacterOfPosition(y.getStart(e)).line?d(y):d(S)}function u(y,S,T){if(y){const k=y.indexOf(S);if(k>=0){let w=k,P=k+1;for(;w>0&&T(y[w-1]);)w--;for(;P0)return d(fe.declarations[0])}else return d(K.initializer)}function j(K){if(K.initializer)return $(K);if(K.condition)return s(K.condition);if(K.incrementor)return s(K.incrementor)}function re(K){const fe=rr(K.elements,ke=>ke.kind!==232?ke:void 0);return fe?d(fe):K.parent.kind===208?s(K.parent):S(K.parent)}function R(K){E.assert(K.kind!==207&&K.kind!==206);const fe=K.kind===209?K.elements:K.properties,ke=rr(fe,Oe=>Oe.kind!==232?Oe:void 0);return ke?d(ke):s(K.parent.kind===226?K.parent:K)}function Y(K){switch(K.parent.kind){case 266:const fe=K.parent;return c(Yc(K.pos,e,K.parent),fe.members.length?fe.members[0]:fe.getLastToken(e));case 263:const ke=K.parent;return c(Yc(K.pos,e,K.parent),ke.members.length?ke.members[0]:ke.getLastToken(e));case 269:return c(K.parent.parent,K.parent.clauses[0])}return d(K.parent)}function ue(K){switch(K.parent.kind){case 268:if(ch(K.parent.parent)!==1)return;case 266:case 263:return s(K);case 241:if(Vv(K.parent))return s(K);case 299:return d(Do(K.parent.statements));case 269:const fe=K.parent,ke=Do(fe.clauses);return ke?d(Do(ke.statements)):void 0;case 206:const Oe=K.parent;return d(Do(Oe.elements)||Oe);default:if(u0(K.parent)){const me=K.parent;return s(Do(me.properties)||me)}return d(K.parent)}}function pe(K){switch(K.parent.kind){case 207:const fe=K.parent;return s(Do(fe.elements)||fe);default:if(u0(K.parent)){const ke=K.parent;return s(Do(ke.elements)||ke)}return d(K.parent)}}function H(K){return K.parent.kind===246||K.parent.kind===213||K.parent.kind===214?f(K):K.parent.kind===217?g(K):d(K.parent)}function q(K){switch(K.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 f(K);default:return d(K.parent)}}function ee(K){return As(K.parent)||K.parent.kind===303||K.parent.kind===169?f(K):d(K.parent)}function oe(K){return K.parent.kind===216?g(K):d(K.parent)}function Se(K){return K.parent.kind===246?o(K,K.parent.expression):d(K.parent)}function ae(K){return K.parent.kind===250?g(K):d(K.parent)}}}var xVe=Dt({"src/services/breakpoints.ts"(){qn()}}),$$={};Gc($$,{spanInSourceFileAtLocation:()=>TVe});var kVe=Dt({"src/services/_namespaces/ts.BreakpointResolver.ts"(){xVe()}});function CVe(e){return(lo(e)||kl(e))&&Nu(e)}function Kke(e){return xs(e)||hi(e)}function CN(e){return(lo(e)||mo(e)||kl(e))&&Kke(e.parent)&&e===e.parent.initializer&&Ie(e.parent.name)&&(!!(Gh(e.parent)&2)||xs(e.parent))}function eCe(e){return Ni(e)||Sc(e)||Xc(e)||lo(e)||Qc(e)||kl(e)||ec(e)||hc(e)||Lm(e)||Tf(e)||J_(e)}function w6(e){return Ni(e)||Sc(e)&&Ie(e.name)||Xc(e)||Qc(e)||ec(e)||hc(e)||Lm(e)||Tf(e)||J_(e)||CVe(e)||CN(e)}function tCe(e){return Ni(e)?e:Nu(e)?e.name:CN(e)?e.parent.name:E.checkDefined(e.modifiers&&wn(e.modifiers,rCe))}function rCe(e){return e.kind===90}function nCe(e,t){const n=tCe(t);return n&&e.getSymbolAtLocation(n)}function EVe(e,t){if(Ni(t))return{text:t.fileName,pos:0,end:0};if((Xc(t)||Qc(t))&&!Nu(t)){const s=t.modifiers&&wn(t.modifiers,rCe);if(s)return{text:"default",pos:s.getStart(),end:s.getEnd()}}if(ec(t)){const s=t.getSourceFile(),o=ca(s.text,$d(t).pos),c=o+6,u=e.getTypeChecker(),f=u.getSymbolAtLocation(t.parent);return{text:`${f?`${u.symbolToString(f,t.parent)} `:""}static {}`,pos:o,end:c}}const n=CN(t)?t.parent.name:E.checkDefined(us(t),"Expected call hierarchy item to have a name");let i=Ie(n)?on(n):Sf(n)?n.text:Pa(n)&&Sf(n.expression)?n.expression.text:void 0;if(i===void 0){const s=e.getTypeChecker(),o=s.getSymbolAtLocation(n);o&&(i=s.symbolToString(o,t))}if(i===void 0){const s=bA();i=fE(o=>s.writeNode(4,t,t.getSourceFile(),o))}return{text:i,pos:n.getStart(),end:n.getEnd()}}function PVe(e){var t,n,i,s;if(CN(e))return xs(e.parent)&&$n(e.parent.parent)?kl(e.parent.parent)?(t=j7(e.parent.parent))==null?void 0:t.getText():(n=e.parent.parent.name)==null?void 0:n.getText():Yd(e.parent.parent.parent.parent)&&Ie(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=j7(e.parent))==null?void 0:i.getText():(s=us(e.parent))==null?void 0:s.getText();case 262:case 263:case 267:if(Yd(e.parent)&&Ie(e.parent.parent.name))return e.parent.parent.name.getText()}}function iCe(e,t){if(t.body)return t;if(sc(t))return Sg(t.parent);if(Xc(t)||hc(t)){const n=nCe(e,t);return n&&n.valueDeclaration&&po(n.valueDeclaration)&&n.valueDeclaration.body?n.valueDeclaration:void 0}return t}function sCe(e,t){const n=nCe(e,t);let i;if(n&&n.declarations){const s=gD(n.declarations),o=nr(n.declarations,f=>({file:f.getSourceFile().fileName,pos:f.pos}));s.sort((f,g)=>mu(o[f].file,o[g].file)||o[f].pos-o[g].pos);const c=nr(s,f=>n.declarations[f]);let u;for(const f of c)w6(f)&&((!u||u.parent!==f.parent||u.end!==f.pos)&&(i=_r(i,f)),u=f)}return i}function X$(e,t){return ec(t)?t:po(t)?iCe(e,t)??sCe(e,t)??t:sCe(e,t)??t}function aCe(e,t){const n=e.getTypeChecker();let i=!1;for(;;){if(w6(t))return X$(n,t);if(eCe(t)){const s=Pr(t,w6);return s&&X$(n,s)}if(eh(t)){if(w6(t.parent))return X$(n,t.parent);if(eCe(t.parent)){const s=Pr(t.parent,w6);return s&&X$(n,s)}return Kke(t.parent)&&t.parent.initializer&&CN(t.parent.initializer)?t.parent.initializer:void 0}if(sc(t))return w6(t.parent)?t.parent:void 0;if(t.kind===126&&ec(t.parent)){t=t.parent;continue}if(hi(t)&&t.initializer&&CN(t.initializer))return t.initializer;if(!i){let s=n.getSymbolAtLocation(t);if(s&&(s.flags&2097152&&(s=n.getAliasedSymbol(s)),s.valueDeclaration)){i=!0,t=s.valueDeclaration;continue}}return}}function Kle(e,t){const n=t.getSourceFile(),i=EVe(e,t),s=PVe(t),o=T2(t),c=Z3(t),u=Rc(ca(n.text,t.getFullStart(),!1,!0),t.getEnd()),f=Rc(i.pos,i.end);return{file:n.fileName,kind:o,kindModifiers:c,name:i.text,containerName:s,span:u,selectionSpan:f}}function DVe(e){return e!==void 0}function wVe(e){if(e.kind===uo.EntryKind.Node){const{node:t}=e;if(VH(t,!0,!0)||Moe(t,!0,!0)||Roe(t,!0,!0)||joe(t,!0,!0)||m6(t)||$H(t)){const n=t.getSourceFile();return{declaration:Pr(t,w6)||n,range:lG(t,n)}}}}function oCe(e){return Oa(e.declaration)}function AVe(e,t){return{from:e,fromSpans:t}}function NVe(e,t){return AVe(Kle(e,t[0].declaration),nr(t,n=>vy(n.range)))}function IVe(e,t,n){if(Ni(t)||Sc(t)||ec(t))return[];const i=tCe(t),s=An(uo.findReferenceOrRenameEntries(e,n,e.getSourceFiles(),i,0,{use:uo.FindReferencesUse.References},wVe),DVe);return s?V4(s,oCe,o=>NVe(e,o)):[]}function FVe(e,t){function n(s){const o=o2(s)?s.tag:Fu(s)?s.tagName:co(s)||ec(s)?s:s.expression,c=aCe(e,o);if(c){const u=lG(o,s.getSourceFile());if(ts(c))for(const f of c)t.push({declaration:f,range:u});else t.push({declaration:c,range:u})}}function i(s){if(s&&!(s.flags&33554432)){if(w6(s)){if($n(s))for(const o of s.members)o.name&&Pa(o.name)&&i(o.name.expression);return}switch(s.kind){case 80:case 271:case 272:case 278:case 264:case 265:return;case 175:n(s);return;case 216:case 234:i(s.expression);return;case 260:case 169:i(s.name),i(s.initializer);return;case 213:n(s),i(s.expression),rr(s.arguments,i);return;case 214:n(s),i(s.expression),rr(s.arguments,i);return;case 215:n(s),i(s.tag),i(s.template);return;case 286:case 285:n(s),i(s.tagName),i(s.attributes);return;case 170:n(s),i(s.expression);return;case 211:case 212:n(s),Ss(s,i);break;case 238:i(s.expression);return}gg(s)||Ss(s,i)}}return i}function OVe(e,t){rr(e.statements,t)}function LVe(e,t){!Rn(e,128)&&e.body&&Yd(e.body)&&rr(e.body.statements,t)}function MVe(e,t,n){const i=iCe(e,t);i&&(rr(i.parameters,n),n(i.body))}function RVe(e,t){t(e.body)}function jVe(e,t){rr(e.modifiers,t);const n=Gv(e);n&&t(n.expression);for(const i of e.members)Hp(i)&&rr(i.modifiers,t),xs(i)?t(i.initializer):sc(i)&&i.body?(rr(i.parameters,t),t(i.body)):ec(i)&&t(i)}function BVe(e,t){const n=[],i=FVe(e,n);switch(t.kind){case 312:OVe(t,i);break;case 267:LVe(t,i);break;case 262:case 218:case 219:case 174:case 177:case 178:MVe(e.getTypeChecker(),t,i);break;case 263:case 231:jVe(t,i);break;case 175:RVe(t,i);break;default:E.assertNever(t)}return n}function JVe(e,t){return{to:e,fromSpans:t}}function zVe(e,t){return JVe(Kle(e,t[0].declaration),nr(t,n=>vy(n.range)))}function WVe(e,t){return t.flags&33554432||Lm(t)?[]:V4(BVe(e,t),oCe,n=>zVe(e,n))}var VVe=Dt({"src/services/callHierarchy.ts"(){qn()}}),Fx={};Gc(Fx,{createCallHierarchyItem:()=>Kle,getIncomingCalls:()=>IVe,getOutgoingCalls:()=>WVe,resolveCallHierarchyDeclaration:()=>aCe});var UVe=Dt({"src/services/_namespaces/ts.CallHierarchy.ts"(){VVe()}}),cCe={};Gc(cCe,{TokenEncodingConsts:()=>Ule,TokenModifier:()=>Hle,TokenType:()=>qle,getEncodedSemanticClassifications:()=>Vle,getSemanticClassifications:()=>Oke});var qVe=Dt({"src/services/_namespaces/ts.classifier.v2020.ts"(){Rke()}}),eue={};Gc(eue,{v2020:()=>cCe});var HVe=Dt({"src/services/_namespaces/ts.classifier.ts"(){qVe()}});function Sd(e,t,n){return rue(e,_S(n),t,void 0,void 0)}function js(e,t,n,i,s,o){return rue(e,_S(n),t,i,_S(s),o)}function tue(e,t,n,i,s,o){return rue(e,_S(n),t,i,s&&_S(s),o)}function rue(e,t,n,i,s,o){return{fixName:e,description:t,changes:n,fixId:i,fixAllDescription:s,commands:o?[o]:void 0}}function ea(e){for(const t of e.errorCodes)nue=void 0,Q$.add(String(t),e);if(e.fixIds)for(const t of e.fixIds)E.assert(!Y$.has(t)),Y$.set(t,e)}function GVe(){return nue??(nue=gs(Q$.keys()))}function $Ve(e,t){const{errorCodes:n}=e;let i=0;for(const o of t)if(bs(n,o.code)&&i++,i>1)break;const s=i<2;return({fixId:o,fixAllDescription:c,...u})=>s?u:{...u,fixId:o,fixAllDescription:c}}function XVe(e){const t=uCe(e),n=Q$.get(String(e.errorCode));return Zs(n,i=>nr(i.getCodeActions(e),$Ve(i,t)))}function QVe(e){return Y$.get(Ls(e.fixId,ls)).getAllCodeActions(e)}function A6(e,t){return{changes:e,commands:t}}function lCe(e,t){return{fileName:e,textChanges:t}}function Ga(e,t,n){const i=[],s=Kr.ChangeTracker.with(e,o=>N6(e,t,c=>n(o,c,i)));return A6(s,i.length===0?void 0:i)}function N6(e,t,n){for(const i of uCe(e))bs(t,i.code)&&n(i)}function uCe({program:e,sourceFile:t,cancellationToken:n}){return[...e.getSemanticDiagnostics(t,n),...e.getSyntacticDiagnostics(t,n),...n$(t,e,n)]}var Q$,Y$,nue,YVe=Dt({"src/services/codeFixProvider.ts"(){qn(),Q$=yf(),Y$=new Map}});function _Ce(e,t,n){const i=Nw(n)?I.createAsExpression(n.expression,I.createKeywordTypeNode(159)):I.createTypeAssertion(I.createKeywordTypeNode(159),n.expression);e.replaceNode(t,n.expression,i)}function fCe(e,t){if(!Hr(e))return Pr(Ui(e,t),n=>Nw(n)||tie(n))}var Z$,iue,ZVe=Dt({"src/services/codefixes/addConvertToUnknownForNonOverlappingTypes.ts"(){qn(),ra(),Z$="addConvertToUnknownForNonOverlappingTypes",iue=[p.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:iue,getCodeActions:function(t){const n=fCe(t.sourceFile,t.span.start);if(n===void 0)return;const i=Kr.ChangeTracker.with(t,s=>_Ce(s,t.sourceFile,n));return[js(Z$,i,p.Add_unknown_conversion_for_non_overlapping_types,Z$,p.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[Z$],getAllCodeActions:e=>Ga(e,iue,(t,n)=>{const i=fCe(n.file,n.start);i&&_Ce(t,n.file,i)})})}}),KVe=Dt({"src/services/codefixes/addEmptyExportDeclaration.ts"(){qn(),ra(),ea({errorCodes:[p.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,p.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,p.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){const{sourceFile:n}=t,i=Kr.ChangeTracker.with(t,s=>{const o=I.createExportDeclaration(void 0,!1,I.createNamedExports([]),void 0);s.insertNodeAtEndOfScope(n,n,o)});return[Sd("addEmptyExportDeclaration",i,p.Add_export_to_make_this_file_into_a_module)]}})}});function pCe(e,t,n,i){const s=n(o=>eUe(o,e.sourceFile,t,i));return js(K$,s,p.Add_async_modifier_to_containing_function,K$,p.Add_all_missing_async_modifiers)}function eUe(e,t,n,i){if(i&&i.has(Oa(n)))return;i==null||i.add(Oa(n));const s=I.replaceModifiers(Mo(n,!0),I.createNodeArray(I.createModifiersFromModifierFlags(ry(n)|1024)));e.replaceNode(t,n,s)}function dCe(e,t){if(!t)return;const n=Ui(e,t.start);return Pr(n,s=>s.getStart(e)bc(t)?"quit":(mo(s)||hc(s)||lo(s)||Xc(s))&&b6(t,Zu(s,e)))}function tUe(e,t){return({start:n,length:i,relatedInformation:s,code:o})=>zh(n)&&zh(i)&&b6({start:n,length:i},e)&&o===t&&!!s&&ct(s,c=>c.code===p.Did_you_mean_to_mark_this_function_as_async.code)}var K$,sue,rUe=Dt({"src/services/codefixes/addMissingAsync.ts"(){qn(),ra(),K$="addMissingAsync",sue=[p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,p.Type_0_is_not_assignable_to_type_1.code,p.Type_0_is_not_comparable_to_type_1.code],ea({fixIds:[K$],errorCodes:sue,getCodeActions:function(t){const{sourceFile:n,errorCode:i,cancellationToken:s,program:o,span:c}=t,u=wn(o.getTypeChecker().getDiagnostics(n,s),tUe(c,i)),f=u&&u.relatedInformation&&wn(u.relatedInformation,y=>y.code===p.Did_you_mean_to_mark_this_function_as_async.code),g=dCe(n,f);return g?[pCe(t,g,y=>Kr.ChangeTracker.with(t,y))]:void 0},getAllCodeActions:e=>{const{sourceFile:t}=e,n=new Set;return Ga(e,sue,(i,s)=>{const o=s.relatedInformation&&wn(s.relatedInformation,f=>f.code===p.Did_you_mean_to_mark_this_function_as_async.code),c=dCe(t,o);return c?pCe(e,c,f=>(f(i),[]),n):void 0})}})}});function mCe(e,t,n,i,s){const o=LG(e,n);return o&&nUe(e,t,n,i,s)&&yCe(o)?o:void 0}function gCe(e,t,n,i,s,o){const{sourceFile:c,program:u,cancellationToken:f}=e,g=iUe(t,c,f,u,i);if(g){const d=s(y=>{rr(g.initializers,({expression:S})=>aue(y,n,c,i,S,o)),o&&g.needsSecondPassForFixAll&&aue(y,n,c,i,t,o)});return Sd("addMissingAwaitToInitializer",d,g.initializers.length===1?[p.Add_await_to_initializer_for_0,g.initializers[0].declarationSymbol.name]:p.Add_await_to_initializers)}}function hCe(e,t,n,i,s,o){const c=s(u=>aue(u,n,e.sourceFile,i,t,o));return js(eX,c,p.Add_await,eX,p.Fix_all_expressions_possibly_missing_await)}function nUe(e,t,n,i,s){const c=s.getTypeChecker().getDiagnostics(e,i);return ct(c,({start:u,length:f,relatedInformation:g,code:d})=>zh(u)&&zh(f)&&b6({start:u,length:f},n)&&d===t&&!!g&&ct(g,y=>y.code===p.Did_you_forget_to_use_await.code))}function iUe(e,t,n,i,s){const o=sUe(e,s);if(!o)return;let c=o.isCompleteFix,u;for(const f of o.identifiers){const g=s.getSymbolAtLocation(f);if(!g)continue;const d=Wn(g.valueDeclaration,hi),y=d&&Wn(d.name,Ie),S=w1(d,243);if(!d||!S||d.type||!d.initializer||S.getSourceFile()!==t||Rn(S,32)||!y||!yCe(d.initializer)){c=!1;continue}const T=i.getSemanticDiagnostics(t,n);if(uo.Core.eachSymbolReferenceInFile(y,s,t,w=>f!==w&&!aUe(w,T,t,s))){c=!1;continue}(u||(u=[])).push({expression:d.initializer,declarationSymbol:g})}return u&&{initializers:u,needsSecondPassForFixAll:!c}}function sUe(e,t){if(Sn(e.parent)&&Ie(e.parent.expression))return{identifiers:[e.parent.expression],isCompleteFix:!0};if(Ie(e))return{identifiers:[e],isCompleteFix:!0};if(Zr(e)){let n,i=!0;for(const s of[e.left,e.right]){const o=t.getTypeAtLocation(s);if(t.getPromisedTypeOfPromise(o)){if(!Ie(s)){i=!1;continue}(n||(n=[])).push(s)}}return n&&{identifiers:n,isCompleteFix:i}}}function aUe(e,t,n,i){const s=Sn(e.parent)?e.parent.name:Zr(e.parent)?e.parent:e,o=wn(t,c=>c.start===s.getStart(n)&&c.start+c.length===s.getEnd());return o&&bs(tX,o.code)||i.getTypeAtLocation(s).flags&1}function yCe(e){return e.flags&65536||!!Pr(e,t=>t.parent&&mo(t.parent)&&t.parent.body===t||Cs(t)&&(t.parent.kind===262||t.parent.kind===218||t.parent.kind===219||t.parent.kind===174))}function aue(e,t,n,i,s,o){if(Iw(s.parent)&&!s.parent.awaitModifier){const c=i.getTypeAtLocation(s),u=i.getAsyncIterableType();if(u&&i.isTypeAssignableTo(c,u)){const f=s.parent;e.replaceNode(n,f,I.updateForOfStatement(f,I.createToken(135),f.initializer,f.expression,f.statement));return}}if(Zr(s))for(const c of[s.left,s.right]){if(o&&Ie(c)){const g=i.getSymbolAtLocation(c);if(g&&o.has(Ks(g)))continue}const u=i.getTypeAtLocation(c),f=i.getPromisedTypeOfPromise(u)?I.createAwaitExpression(c):c;e.replaceNode(n,c,f)}else if(t===oue&&Sn(s.parent)){if(o&&Ie(s.parent.expression)){const c=i.getSymbolAtLocation(s.parent.expression);if(c&&o.has(Ks(c)))return}e.replaceNode(n,s.parent.expression,I.createParenthesizedExpression(I.createAwaitExpression(s.parent.expression))),vCe(e,s.parent.expression,n)}else if(bs(cue,t)&&Jd(s.parent)){if(o&&Ie(s)){const c=i.getSymbolAtLocation(s);if(c&&o.has(Ks(c)))return}e.replaceNode(n,s,I.createParenthesizedExpression(I.createAwaitExpression(s))),vCe(e,s,n)}else{if(o&&hi(s.parent)&&Ie(s.parent.name)){const c=i.getSymbolAtLocation(s.parent.name);if(c&&!_1(o,Ks(c)))return}e.replaceNode(n,s,I.createAwaitExpression(s))}}function vCe(e,t,n){const i=Yc(t.pos,n);i&&UL(i.end,i.parent,n)&&e.insertText(n,t.getStart(n),";")}var eX,oue,cue,tX,oUe=Dt({"src/services/codefixes/addMissingAwait.ts"(){qn(),ra(),eX="addMissingAwait",oue=p.Property_0_does_not_exist_on_type_1.code,cue=[p.This_expression_is_not_callable.code,p.This_expression_is_not_constructable.code],tX=[p.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,p.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,p.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,p.Operator_0_cannot_be_applied_to_type_1.code,p.Operator_0_cannot_be_applied_to_types_1_and_2.code,p.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,p.This_condition_will_always_return_true_since_this_0_is_always_defined.code,p.Type_0_is_not_an_array_type.code,p.Type_0_is_not_an_array_type_or_a_string_type.code,p.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,p.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,p.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,p.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,p.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,oue,...cue],ea({fixIds:[eX],errorCodes:tX,getCodeActions:function(t){const{sourceFile:n,errorCode:i,span:s,cancellationToken:o,program:c}=t,u=mCe(n,i,s,o,c);if(!u)return;const f=t.program.getTypeChecker(),g=d=>Kr.ChangeTracker.with(t,d);return hD([gCe(t,u,i,f,g),hCe(t,u,i,f,g)])},getAllCodeActions:e=>{const{sourceFile:t,program:n,cancellationToken:i}=e,s=e.program.getTypeChecker(),o=new Set;return Ga(e,tX,(c,u)=>{const f=mCe(t,u.code,u,i,n);if(!f)return;const g=d=>(d(c),[]);return gCe(e,f,u.code,s,g,o)||hCe(e,f,u.code,s,g,o)})}})}});function bCe(e,t,n,i,s){const o=Ui(t,n),c=Pr(o,g=>Gk(g.parent)?g.parent.initializer===g:cUe(g)?!1:"quit");if(c)return rX(e,c,t,s);const u=o.parent;if(Zr(u)&&u.operatorToken.kind===64&&Cl(u.parent))return rX(e,o,t,s);if(ju(u)){const g=i.getTypeChecker();return Wi(u.elements,d=>lUe(d,g))?rX(e,u,t,s):void 0}const f=Pr(o,g=>Cl(g.parent)?!0:uUe(g)?!1:"quit");if(f){const g=i.getTypeChecker();return SCe(f,g)?rX(e,f,t,s):void 0}}function rX(e,t,n,i){(!i||_1(i,t))&&e.insertModifierBefore(n,87,t)}function cUe(e){switch(e.kind){case 80:case 209:case 210:case 303:case 304:return!0;default:return!1}}function lUe(e,t){const n=Ie(e)?e:il(e,!0)&&Ie(e.left)?e.left:void 0;return!!n&&!t.getSymbolAtLocation(n)}function uUe(e){switch(e.kind){case 80:case 226:case 28:return!0;default:return!1}}function SCe(e,t){return Zr(e)?e.operatorToken.kind===28?Wi([e.left,e.right],n=>SCe(n,t)):e.operatorToken.kind===64&&Ie(e.left)&&!t.getSymbolAtLocation(e.left):!1}var nX,lue,_Ue=Dt({"src/services/codefixes/addMissingConst.ts"(){qn(),ra(),nX="addMissingConst",lue=[p.Cannot_find_name_0.code,p.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code],ea({errorCodes:lue,getCodeActions:function(t){const n=Kr.ChangeTracker.with(t,i=>bCe(i,t.sourceFile,t.span.start,t.program));if(n.length>0)return[js(nX,n,p.Add_const_to_unresolved_variable,nX,p.Add_const_to_all_unresolved_variables)]},fixIds:[nX],getAllCodeActions:e=>{const t=new Set;return Ga(e,lue,(n,i)=>bCe(n,i.file,i.start,e.program,t))}})}});function TCe(e,t,n,i){const s=Ui(t,n);if(!Ie(s))return;const o=s.parent;o.kind===172&&(!i||_1(i,o))&&e.insertModifierBefore(t,138,o)}var iX,uue,fUe=Dt({"src/services/codefixes/addMissingDeclareProperty.ts"(){qn(),ra(),iX="addMissingDeclareProperty",uue=[p.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:uue,getCodeActions:function(t){const n=Kr.ChangeTracker.with(t,i=>TCe(i,t.sourceFile,t.span.start));if(n.length>0)return[js(iX,n,p.Prefix_with_declare,iX,p.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[iX],getAllCodeActions:e=>{const t=new Set;return Ga(e,uue,(n,i)=>TCe(n,i.file,i.start,t))}})}});function xCe(e,t,n){const i=Ui(t,n),s=Pr(i,ql);E.assert(!!s,"Expected position to be owned by a decorator.");const o=I.createCallExpression(s.expression,void 0,void 0);e.replaceNode(t,s.expression,o)}var sX,_ue,pUe=Dt({"src/services/codefixes/addMissingInvocationForDecorator.ts"(){qn(),ra(),sX="addMissingInvocationForDecorator",_ue=[p._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:_ue,getCodeActions:function(t){const n=Kr.ChangeTracker.with(t,i=>xCe(i,t.sourceFile,t.span.start));return[js(sX,n,p.Call_decorator_expression,sX,p.Add_to_all_uncalled_decorators)]},fixIds:[sX],getAllCodeActions:e=>Ga(e,_ue,(t,n)=>xCe(t,n.file,n.start))})}});function kCe(e,t,n){const i=Ui(t,n),s=i.parent;if(!rs(s))return E.fail("Tried to add a parameter name to a non-parameter: "+E.formatSyntaxKind(i.kind));const o=s.parent.parameters.indexOf(s);E.assert(!s.type,"Tried to add a parameter name to a parameter that already had one."),E.assert(o>-1,"Parameter not found in parent parameter list.");let c=s.name.getEnd(),u=I.createTypeReferenceNode(s.name,void 0),f=CCe(t,s);for(;f;)u=I.createArrayTypeNode(u),c=f.getEnd(),f=CCe(t,f);const g=I.createParameterDeclaration(s.modifiers,s.dotDotDotToken,"arg"+o,s.questionToken,s.dotDotDotToken&&!ww(u)?I.createArrayTypeNode(u):u,s.initializer);e.replaceRange(t,Vf(s.getStart(t),c),g)}function CCe(e,t){const n=x2(t.name,t.parent,e);if(n&&n.kind===23&&s2(n.parent)&&rs(n.parent.parent))return n.parent.parent}var aX,fue,dUe=Dt({"src/services/codefixes/addNameToNamelessParameter.ts"(){qn(),ra(),aX="addNameToNamelessParameter",fue=[p.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code],ea({errorCodes:fue,getCodeActions:function(t){const n=Kr.ChangeTracker.with(t,i=>kCe(i,t.sourceFile,t.span.start));return[js(aX,n,p.Add_parameter_name,aX,p.Add_names_to_all_parameters_without_names)]},fixIds:[aX],getAllCodeActions:e=>Ga(e,fue,(t,n)=>kCe(t,n.file,n.start))})}});function mUe(e,t,n){var i,s;const o=ECe(LG(e,t),n);if(!o)return Ve;const{source:c,target:u}=o,f=gUe(c,u,n)?n.getTypeAtLocation(u.expression):n.getTypeAtLocation(u);return(s=(i=f.symbol)==null?void 0:i.declarations)!=null&&s.some(g=>wr(g).fileName.match(/\.d\.ts$/))?Ve:n.getExactOptionalProperties(f)}function gUe(e,t,n){return Sn(t)&&!!n.getExactOptionalProperties(n.getTypeAtLocation(t.expression)).length&&n.getTypeAtLocation(e)===n.getUndefinedType()}function ECe(e,t){var n;if(e){if(Zr(e.parent)&&e.parent.operatorToken.kind===64)return{source:e.parent.right,target:e.parent.left};if(hi(e.parent)&&e.parent.initializer)return{source:e.parent.initializer,target:e.parent.name};if(Rs(e.parent)){const i=t.getSymbolAtLocation(e.parent.expression);if(!(i!=null&&i.valueDeclaration)||!DT(i.valueDeclaration.kind)||!ot(e))return;const s=e.parent.arguments.indexOf(e);if(s===-1)return;const o=i.valueDeclaration.parameters[s].name;if(Ie(o))return{source:e,target:o}}else if(zc(e.parent)&&Ie(e.parent.name)||k_(e.parent)){const i=ECe(e.parent.parent,t);if(!i)return;const s=t.getPropertyOfType(t.getTypeAtLocation(i.target),e.parent.name.text),o=(n=s==null?void 0:s.declarations)==null?void 0:n[0];return o?{source:zc(e.parent)?e.parent.initializer:e.parent.name,target:o}:void 0}}else return}function hUe(e,t){for(const n of t){const i=n.valueDeclaration;if(i&&(B_(i)||xs(i))&&i.type){const s=I.createUnionTypeNode([...i.type.kind===192?i.type.types:[i.type],I.createTypeReferenceNode("undefined")]);e.replaceNode(i.getSourceFile(),i.type,s)}}}var pue,PCe,yUe=Dt({"src/services/codefixes/addOptionalPropertyUndefined.ts"(){qn(),ra(),pue="addOptionalPropertyUndefined",PCe=[p.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,p.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,p.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:PCe,getCodeActions(e){const t=e.program.getTypeChecker(),n=mUe(e.sourceFile,e.span,t);if(!n.length)return;const i=Kr.ChangeTracker.with(e,s=>hUe(s,n));return[Sd(pue,i,p.Add_undefined_to_optional_property_type)]},fixIds:[pue]})}});function DCe(e,t){const n=Ui(e,t);return Wn(rs(n.parent)?n.parent.parent:n.parent,wCe)}function wCe(e){return vUe(e)&&ACe(e)}function ACe(e){return po(e)?e.parameters.some(ACe)||!e.type&&!!qD(e):!e.type&&!!S1(e)}function NCe(e,t,n){if(po(n)&&(qD(n)||n.parameters.some(i=>!!S1(i)))){if(!n.typeParameters){const s=G5(n);s.length&&e.insertTypeParameters(t,n,s)}const i=mo(n)&&!qa(n,21,t);i&&e.insertNodeBefore(t,va(n.parameters),I.createToken(21));for(const s of n.parameters)if(!s.type){const o=S1(s);o&&e.tryInsertTypeAnnotation(t,s,qe(o,D2,ki))}if(i&&e.insertNodeAfter(t,ka(n.parameters),I.createToken(22)),!n.type){const s=qD(n);s&&e.tryInsertTypeAnnotation(t,n,qe(s,D2,ki))}}else{const i=E.checkDefined(S1(n),"A JSDocType for this declaration should exist");E.assert(!n.type,"The JSDocType decl should have a type"),e.tryInsertTypeAnnotation(t,n,qe(i,D2,ki))}}function vUe(e){return po(e)||e.kind===260||e.kind===171||e.kind===172}function D2(e){switch(e.kind){case 319:case 320:return I.createTypeReferenceNode("any",Ve);case 323:return SUe(e);case 322:return D2(e.type);case 321:return TUe(e);case 325:return xUe(e);case 324:return kUe(e);case 183:return EUe(e);case 329:return bUe(e);default:const t=ur(e,D2,void 0);return Qr(t,1),t}}function bUe(e){const t=I.createTypeLiteralNode(nr(e.jsDocPropertyTags,n=>I.createPropertySignature(void 0,Ie(n.name)?n.name:n.name.right,aw(n)?I.createToken(58):void 0,n.typeExpression&&qe(n.typeExpression.type,D2,ki)||I.createKeywordTypeNode(133))));return Qr(t,1),t}function SUe(e){return I.createUnionTypeNode([qe(e.type,D2,ki),I.createTypeReferenceNode("undefined",Ve)])}function TUe(e){return I.createUnionTypeNode([qe(e.type,D2,ki),I.createTypeReferenceNode("null",Ve)])}function xUe(e){return I.createArrayTypeNode(qe(e.type,D2,ki))}function kUe(e){return I.createFunctionTypeNode(Ve,e.parameters.map(CUe),e.type??I.createKeywordTypeNode(133))}function CUe(e){const t=e.parent.parameters.indexOf(e),n=e.type.kind===325&&t===e.parent.parameters.length-1,i=e.name||(n?"rest":"arg"+t),s=n?I.createToken(26):e.dotDotDotToken;return I.createParameterDeclaration(e.modifiers,s,i,e.questionToken,qe(e.type,D2,ki),e.initializer)}function EUe(e){let t=e.typeName,n=e.typeArguments;if(Ie(e.typeName)){if(D5(e))return PUe(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=I.createIdentifier(i),(i==="Array"||i==="Promise")&&!e.typeArguments?n=I.createNodeArray([I.createTypeReferenceNode("any",Ve)]):n=Dr(e.typeArguments,D2,ki)}return I.createTypeReferenceNode(t,n)}function PUe(e){const t=I.createParameterDeclaration(void 0,void 0,e.typeArguments[0].kind===150?"n":"s",void 0,I.createTypeReferenceNode(e.typeArguments[0].kind===150?"number":"string",[]),void 0),n=I.createTypeLiteralNode([I.createIndexSignature(void 0,[t],e.typeArguments[1])]);return Qr(n,1),n}var oX,due,DUe=Dt({"src/services/codefixes/annotateWithTypeFromJSDoc.ts"(){qn(),ra(),oX="annotateWithTypeFromJSDoc",due=[p.JSDoc_types_may_be_moved_to_TypeScript_types.code],ea({errorCodes:due,getCodeActions(e){const t=DCe(e.sourceFile,e.span.start);if(!t)return;const n=Kr.ChangeTracker.with(e,i=>NCe(i,e.sourceFile,t));return[js(oX,n,p.Annotate_with_type_from_JSDoc,oX,p.Annotate_everything_with_types_from_JSDoc)]},fixIds:[oX],getAllCodeActions:e=>Ga(e,due,(t,n)=>{const i=DCe(n.file,n.start);i&&NCe(t,n.file,i)})})}});function ICe(e,t,n,i,s,o){const c=i.getSymbolAtLocation(Ui(t,n));if(!c||!c.valueDeclaration||!(c.flags&19))return;const u=c.valueDeclaration;if(Xc(u)||lo(u))e.replaceNode(t,u,d(u));else if(hi(u)){const y=g(u);if(!y)return;const S=u.parent.parent;ml(u.parent)&&u.parent.declarations.length>1?(e.delete(t,u),e.insertNodeAfter(t,S,y)):e.replaceNode(t,S,y)}function f(y){const S=[];return y.exports&&y.exports.forEach(w=>{if(w.name==="prototype"&&w.declarations){const P=w.declarations[0];if(w.declarations.length===1&&Sn(P)&&Zr(P.parent)&&P.parent.operatorToken.kind===64&&ua(P.parent.right)){const F=P.parent.right;k(F.symbol,void 0,S)}}else k(w,[I.createToken(126)],S)}),y.members&&y.members.forEach((w,P)=>{var F,J,U,$;if(P==="constructor"&&w.valueDeclaration){const j=($=(U=(J=(F=y.exports)==null?void 0:F.get("prototype"))==null?void 0:J.declarations)==null?void 0:U[0])==null?void 0:$.parent;j&&Zr(j)&&ua(j.right)&&ct(j.right.properties,lX)||e.delete(t,w.valueDeclaration.parent);return}k(w,void 0,S)}),S;function T(w,P){return co(w)?Sn(w)&&lX(w)?!0:As(P):Wi(w.properties,F=>!!(hc(F)||z7(F)||zc(F)&&lo(F.initializer)&&F.name||lX(F)))}function k(w,P,F){if(!(w.flags&8192)&&!(w.flags&4096))return;const J=w.valueDeclaration,U=J.parent,$=U.right;if(!T(J,$)||ct(F,ue=>{const pe=us(ue);return!!(pe&&Ie(pe)&&on(pe)===Xo(w))}))return;const j=U.parent&&U.parent.kind===244?U.parent:U;if(e.delete(t,j),!$){F.push(I.createPropertyDeclaration(P,w.name,void 0,void 0,void 0));return}if(co(J)&&(lo($)||mo($))){const ue=Df(t,s),pe=wUe(J,o,ue);pe&&re(F,$,pe);return}else if(ua($)){rr($.properties,ue=>{(hc(ue)||z7(ue))&&F.push(ue),zc(ue)&&lo(ue.initializer)&&re(F,ue.initializer,ue.name),lX(ue)});return}else{if(Ou(t)||!Sn(J))return;const ue=I.createPropertyDeclaration(P,J.name,void 0,void 0,$);T6(U.parent,ue,t),F.push(ue);return}function re(ue,pe,H){return lo(pe)?R(ue,pe,H):Y(ue,pe,H)}function R(ue,pe,H){const q=es(P,cX(pe,134)),ee=I.createMethodDeclaration(q,void 0,H,void 0,void 0,pe.parameters,void 0,pe.body);T6(U,ee,t),ue.push(ee)}function Y(ue,pe,H){const q=pe.body;let ee;q.kind===241?ee=q:ee=I.createBlock([I.createReturnStatement(q)]);const oe=es(P,cX(pe,134)),Se=I.createMethodDeclaration(oe,void 0,H,void 0,void 0,pe.parameters,void 0,ee);T6(U,Se,t),ue.push(Se)}}}function g(y){const S=y.initializer;if(!S||!lo(S)||!Ie(y.name))return;const T=f(y.symbol);S.body&&T.unshift(I.createConstructorDeclaration(void 0,S.parameters,S.body));const k=cX(y.parent.parent,95);return I.createClassDeclaration(k,y.name,void 0,void 0,T)}function d(y){const S=f(c);y.body&&S.unshift(I.createConstructorDeclaration(void 0,y.parameters,y.body));const T=cX(y,95);return I.createClassDeclaration(T,y.name,void 0,void 0,S)}}function cX(e,t){return Hp(e)?An(e.modifiers,n=>n.kind===t):void 0}function lX(e){return e.name?!!(Ie(e.name)&&e.name.text==="constructor"):!1}function wUe(e,t,n){if(Sn(e))return e.name;const i=e.argumentExpression;if(j_(i))return i;if(Ma(i))return bf(i.text,Fa(t))?I.createIdentifier(i.text):ex(i)?I.createStringLiteral(i.text,n===0):i}var uX,mue,AUe=Dt({"src/services/codefixes/convertFunctionToEs6Class.ts"(){qn(),ra(),uX="convertFunctionToEs6Class",mue=[p.This_constructor_function_may_be_converted_to_a_class_declaration.code],ea({errorCodes:mue,getCodeActions(e){const t=Kr.ChangeTracker.with(e,n=>ICe(n,e.sourceFile,e.span.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()));return[js(uX,t,p.Convert_function_to_an_ES2015_class,uX,p.Convert_all_constructor_functions_to_classes)]},fixIds:[uX],getAllCodeActions:e=>Ga(e,mue,(t,n)=>ICe(t,n.file,n.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()))})}});function FCe(e,t,n,i){const s=Ui(t,n);let o;if(Ie(s)&&hi(s.parent)&&s.parent.initializer&&po(s.parent.initializer)?o=s.parent.initializer:o=Wn(cf(Ui(t,n)),a$),!o)return;const c=new Map,u=Hr(o),f=IUe(o,i),g=FUe(o,i,c);if(!i$(g,i))return;const d=g.body&&Cs(g.body)?NUe(g.body,i):Ve,y={checker:i,synthNamesMap:c,setOfExpressionsToReturn:f,isInJSFile:u};if(!d.length)return;const S=ca(t.text,$d(o).pos);e.insertModifierAt(t,S,134,{suffix:" "});for(const T of d)if(Ss(T,function k(w){if(Rs(w)){const P=I6(w,w,y,!1);if(Ox())return!0;e.replaceNodeWithNodes(t,T,P)}else if(!As(w)&&(Ss(w,k),Ox()))return!0}),Ox())return}function NUe(e,t){const n=[];return Wv(e,i=>{oM(i,t)&&n.push(i)}),n}function IUe(e,t){if(!e.body)return new Set;const n=new Set;return Ss(e.body,function i(s){EN(s,t,"then")?(n.add(Oa(s)),rr(s.arguments,i)):EN(s,t,"catch")||EN(s,t,"finally")?(n.add(Oa(s)),Ss(s,i)):LCe(s,t)?n.add(Oa(s)):Ss(s,i)}),n}function EN(e,t,n){if(!Rs(e))return!1;const s=BA(e,n)&&t.getTypeAtLocation(e);return!!(s&&t.getPromisedTypeOfPromise(s))}function OCe(e,t){return(bn(e)&4)!==0&&e.target===t}function _X(e,t,n){if(e.expression.name.escapedText==="finally")return;const i=n.getTypeAtLocation(e.expression.expression);if(OCe(i,n.getPromiseType())||OCe(i,n.getPromiseLikeType()))if(e.expression.name.escapedText==="then"){if(t===Uh(e.arguments,0))return Uh(e.typeArguments,0);if(t===Uh(e.arguments,1))return Uh(e.typeArguments,1)}else return Uh(e.typeArguments,0)}function LCe(e,t){return ot(e)?!!t.getPromisedTypeOfPromise(t.getTypeAtLocation(e)):!1}function FUe(e,t,n){const i=new Map,s=yf();return Ss(e,function o(c){if(!Ie(c)){Ss(c,o);return}const u=t.getSymbolAtLocation(c);if(u){const f=t.getTypeAtLocation(c),g=zCe(f,t),d=Ks(u).toString();if(g&&!rs(c.parent)&&!po(c.parent)&&!n.has(d)){const y=bl(g.parameters),S=(y==null?void 0:y.valueDeclaration)&&rs(y.valueDeclaration)&&Wn(y.valueDeclaration.name,Ie)||I.createUniqueName("result",16),T=MCe(S,s);n.set(d,T),s.add(S.text,u)}else if(c.parent&&(rs(c.parent)||hi(c.parent)||Ea(c.parent))){const y=c.text,S=s.get(y);if(S&&S.some(T=>T!==u)){const T=MCe(c,s);i.set(d,T.identifier),n.set(d,T),s.add(y,u)}else{const T=Mo(c);n.set(d,_P(T)),s.add(y,u)}}}}),eN(e,!0,o=>{if(Ea(o)&&Ie(o.name)&&xp(o.parent)){const c=t.getSymbolAtLocation(o.name),u=c&&i.get(String(Ks(c)));if(u&&u.text!==(o.name||o.propertyName).getText())return I.createBindingElement(o.dotDotDotToken,o.propertyName||o.name,u,o.initializer)}else if(Ie(o)){const c=t.getSymbolAtLocation(o),u=c&&i.get(String(Ks(c)));if(u)return I.createIdentifier(u.text)}})}function MCe(e,t){const n=(t.get(e.text)||Ve).length,i=n===0?e:I.createIdentifier(e.text+"_"+n);return _P(i)}function Ox(){return!FM}function X1(){return FM=!1,Ve}function I6(e,t,n,i,s){if(EN(t,n.checker,"then"))return MUe(t,Uh(t.arguments,0),Uh(t.arguments,1),n,i,s);if(EN(t,n.checker,"catch"))return BCe(t,Uh(t.arguments,0),n,i,s);if(EN(t,n.checker,"finally"))return LUe(t,Uh(t.arguments,0),n,i,s);if(Sn(t))return I6(e,t.expression,n,i,s);const o=n.checker.getTypeAtLocation(t);return o&&n.checker.getPromisedTypeOfPromise(o)?(E.assertNode(ic(t).parent,Sn),RUe(e,t,n,i,s)):X1()}function fX({checker:e},t){if(t.kind===106)return!0;if(Ie(t)&&!Oo(t)&&on(t)==="undefined"){const n=e.getSymbolAtLocation(t);return!n||e.isUndefinedSymbol(n)}return!1}function OUe(e){const t=I.createUniqueName(e.identifier.text,16);return _P(t)}function RCe(e,t,n){let i;return n&&!DN(e,t)&&(PN(n)?(i=n,t.synthNamesMap.forEach((s,o)=>{if(s.identifier.text===n.identifier.text){const c=OUe(n);t.synthNamesMap.set(o,c)}})):i=_P(I.createUniqueName("result",16),n.types),vue(i)),i}function jCe(e,t,n,i,s){const o=[];let c;if(i&&!DN(e,t)){c=Mo(vue(i));const u=i.types,f=t.checker.getUnionType(u,2),g=t.isInJSFile?void 0:t.checker.typeToTypeNode(f,void 0,void 0),d=[I.createVariableDeclaration(c,void 0,g)],y=I.createVariableStatement(void 0,I.createVariableDeclarationList(d,1));o.push(y)}return o.push(n),s&&c&&JUe(s)&&o.push(I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(Mo(qCe(s)),void 0,void 0,c)],2))),o}function LUe(e,t,n,i,s){if(!t||fX(n,t))return I6(e,e.expression.expression,n,i,s);const o=RCe(e,n,s),c=I6(e,e.expression.expression,n,!0,o);if(Ox())return X1();const u=hue(t,i,void 0,void 0,e,n);if(Ox())return X1();const f=I.createBlock(c),g=I.createBlock(u),d=I.createTryStatement(f,void 0,g);return jCe(e,n,d,o,s)}function BCe(e,t,n,i,s){if(!t||fX(n,t))return I6(e,e.expression.expression,n,i,s);const o=VCe(t,n),c=RCe(e,n,s),u=I6(e,e.expression.expression,n,!0,c);if(Ox())return X1();const f=hue(t,i,c,o,e,n);if(Ox())return X1();const g=I.createBlock(u),d=I.createCatchClause(o&&Mo(IM(o)),I.createBlock(f)),y=I.createTryStatement(g,d,void 0);return jCe(e,n,y,c,s)}function MUe(e,t,n,i,s,o){if(!t||fX(i,t))return BCe(e,n,i,s,o);if(n&&!fX(i,n))return X1();const c=VCe(t,i),u=I6(e.expression.expression,e.expression.expression,i,!0,c);if(Ox())return X1();const f=hue(t,s,o,c,e,i);return Ox()?X1():es(u,f)}function RUe(e,t,n,i,s){if(DN(e,n)){let o=Mo(t);return i&&(o=I.createAwaitExpression(o)),[I.createReturnStatement(o)]}return pX(s,I.createAwaitExpression(t),void 0)}function pX(e,t,n){return!e||UCe(e)?[I.createExpressionStatement(t)]:PN(e)&&e.hasBeenDeclared?[I.createExpressionStatement(I.createAssignment(Mo(yue(e)),t))]:[I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(Mo(IM(e)),void 0,n,t)],2))]}function gue(e,t){if(t&&e){const n=I.createUniqueName("result",16);return[...pX(_P(n),e,t),I.createReturnStatement(n)]}return[I.createReturnStatement(e)]}function hue(e,t,n,i,s,o){var c;switch(e.kind){case 106:break;case 211:case 80:if(!i)break;const u=I.createCallExpression(Mo(e),void 0,PN(i)?[yue(i)]:[]);if(DN(s,o))return gue(u,_X(s,e,o.checker));const f=o.checker.getTypeAtLocation(e),g=o.checker.getSignaturesOfType(f,0);if(!g.length)return X1();const d=g[0].getReturnType(),y=pX(n,I.createAwaitExpression(u),_X(s,e,o.checker));return n&&n.types.push(o.checker.getAwaitedType(d)||d),y;case 218:case 219:{const S=e.body,T=(c=zCe(o.checker.getTypeAtLocation(e),o.checker))==null?void 0:c.getReturnType();if(Cs(S)){let k=[],w=!1;for(const P of S.statements)if(Up(P))if(w=!0,oM(P,o.checker))k=k.concat(WCe(o,P,t,n));else{const F=T&&P.expression?JCe(o.checker,T,P.expression):P.expression;k.push(...gue(F,_X(s,e,o.checker)))}else{if(t&&Wv(P,Wh))return X1();k.push(P)}return DN(s,o)?k.map(P=>Mo(P)):jUe(k,n,o,w)}else{const k=s$(S,o.checker)?WCe(o,I.createReturnStatement(S),t,n):Ve;if(k.length>0)return k;if(T){const w=JCe(o.checker,T,S);if(DN(s,o))return gue(w,_X(s,e,o.checker));{const P=pX(n,w,void 0);return n&&n.types.push(o.checker.getAwaitedType(T)||T),P}}else return X1()}}default:return X1()}return Ve}function JCe(e,t,n){const i=Mo(n);return e.getPromisedTypeOfPromise(t)?I.createAwaitExpression(i):i}function zCe(e,t){const n=t.getSignaturesOfType(e,0);return Do(n)}function jUe(e,t,n,i){const s=[];for(const o of e)if(Up(o)){if(o.expression){const c=LCe(o.expression,n.checker)?I.createAwaitExpression(o.expression):o.expression;t===void 0?s.push(I.createExpressionStatement(c)):PN(t)&&t.hasBeenDeclared?s.push(I.createExpressionStatement(I.createAssignment(yue(t),c))):s.push(I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(IM(t),void 0,void 0,c)],2)))}}else s.push(Mo(o));return!i&&t!==void 0&&s.push(I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(IM(t),void 0,void 0,I.createIdentifier("undefined"))],2))),s}function WCe(e,t,n,i){let s=[];return Ss(t,function o(c){if(Rs(c)){const u=I6(c,c,e,n,i);if(s=s.concat(u),s.length>0)return}else As(c)||Ss(c,o)}),s}function VCe(e,t){const n=[];let i;if(po(e)){if(e.parameters.length>0){const f=e.parameters[0].name;i=s(f)}}else Ie(e)?i=o(e):Sn(e)&&Ie(e.name)&&(i=o(e.name));if(!i||"identifier"in i&&i.identifier.text==="undefined")return;return i;function s(f){if(Ie(f))return o(f);const g=Zs(f.elements,d=>dl(d)?[]:[s(d.name)]);return BUe(f,g)}function o(f){const g=u(f),d=c(g);return d&&t.synthNamesMap.get(Ks(d).toString())||_P(f,n)}function c(f){var g;return((g=Wn(f,zd))==null?void 0:g.symbol)??t.checker.getSymbolAtLocation(f)}function u(f){return f.original?f.original:f}}function UCe(e){return e?PN(e)?!e.identifier.text:Wi(e.elements,UCe):!0}function _P(e,t=[]){return{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function BUe(e,t=Ve,n=[]){return{kind:1,bindingPattern:e,elements:t,types:n}}function yue(e){return e.hasBeenReferenced=!0,e.identifier}function IM(e){return PN(e)?vue(e):qCe(e)}function qCe(e){for(const t of e.elements)IM(t);return e.bindingPattern}function vue(e){return e.hasBeenDeclared=!0,e.identifier}function PN(e){return e.kind===0}function JUe(e){return e.kind===1}function DN(e,t){return!!e.original&&t.setOfExpressionsToReturn.has(Oa(e.original))}var dX,bue,FM,zUe=Dt({"src/services/codefixes/convertToAsyncFunction.ts"(){qn(),ra(),dX="convertToAsyncFunction",bue=[p.This_may_be_converted_to_an_async_function.code],FM=!0,ea({errorCodes:bue,getCodeActions(e){FM=!0;const t=Kr.ChangeTracker.with(e,n=>FCe(n,e.sourceFile,e.span.start,e.program.getTypeChecker()));return FM?[js(dX,t,p.Convert_to_async_function,dX,p.Convert_all_to_async_functions)]:[]},fixIds:[dX],getAllCodeActions:e=>Ga(e,bue,(t,n)=>FCe(t,n.file,n.start,e.program.getTypeChecker()))})}});function WUe(e,t,n,i,s){var o;for(const c of e.imports){const u=(o=n.getResolvedModuleFromModuleSpecifier(c))==null?void 0:o.resolvedModule;if(!u||u.resolvedFileName!==t.fileName)continue;const f=SE(c);switch(f.kind){case 271:i.replaceNode(e,f,_0(f.name,void 0,c,s));break;case 213:Gu(f,!1)&&i.replaceNode(e,f,I.createPropertyAccessExpression(Mo(f),"default"));break}}}function VUe(e,t,n,i,s){const o={original:rqe(e),additional:new Set},c=UUe(e,t,o);qUe(e,c,n);let u=!1,f;for(const g of An(e.statements,ac)){const d=GCe(e,g,n,t,o,i,s);d&&r5(d,f??(f=new Map))}for(const g of An(e.statements,d=>!ac(d))){const d=HUe(e,g,t,n,o,i,c,f,s);u=u||d}return f==null||f.forEach((g,d)=>{n.replaceNode(e,d,g)}),u}function UUe(e,t,n){const i=new Map;return HCe(e,s=>{const{text:o}=s.name;!i.has(o)&&(Yz(s.name)||t.resolveName(o,s,111551,!0))&&i.set(o,mX(`_${o}`,n))}),i}function qUe(e,t,n){HCe(e,(i,s)=>{if(s)return;const{text:o}=i.name;n.replaceNode(e,i,I.createIdentifier(t.get(o)||o))})}function HCe(e,t){e.forEachChild(function n(i){if(Sn(i)&&g2(e,i.expression)&&Ie(i.name)){const{parent:s}=i;t(i,Zr(s)&&s.left===i&&s.operatorToken.kind===64)}i.forEachChild(n)})}function HUe(e,t,n,i,s,o,c,u,f){switch(t.kind){case 243:return GCe(e,t,i,n,s,o,f),!1;case 244:{const{expression:g}=t;switch(g.kind){case 213:return Gu(g,!0)&&i.replaceNode(e,t,_0(void 0,void 0,g.arguments[0],f)),!1;case 226:{const{operatorToken:d}=g;return d.kind===64&&$Ue(e,n,g,i,c,u)}}}default:return!1}}function GCe(e,t,n,i,s,o,c){const{declarationList:u}=t;let f=!1;const g=nr(u.declarations,d=>{const{name:y,initializer:S}=d;if(S){if(g2(e,S))return f=!0,fP([]);if(Gu(S,!0))return f=!0,eqe(y,S.arguments[0],i,s,o,c);if(Sn(S)&&Gu(S.expression,!0))return f=!0,GUe(y,S.name.text,S.expression.arguments[0],s,c)}return fP([I.createVariableStatement(void 0,I.createVariableDeclarationList([d],u.flags))])});if(f){n.replaceNodeWithNodes(e,t,Zs(g,y=>y.newImports));let d;return rr(g,y=>{y.useSitesToUnqualify&&r5(y.useSitesToUnqualify,d??(d=new Map))}),d}}function GUe(e,t,n,i,s){switch(e.kind){case 206:case 207:{const o=mX(t,i);return fP([YCe(o,t,n,s),gX(void 0,e,I.createIdentifier(o))])}case 80:return fP([YCe(e.text,t,n,s)]);default:return E.assertNever(e,`Convert to ES module got invalid syntax form ${e.kind}`)}}function $Ue(e,t,n,i,s,o){const{left:c,right:u}=n;if(!Sn(c))return!1;if(g2(e,c))if(g2(e,u))i.delete(e,n.parent);else{const f=ua(u)?XUe(u,o):Gu(u,!0)?YUe(u.arguments[0],t):void 0;return f?(i.replaceNodeWithNodes(e,n.parent,f[0]),f[1]):(i.replaceRangeWithText(e,Vf(c.getStart(e),u.pos),"export default"),!0)}else g2(e,c.expression)&&QUe(e,n,i,s);return!1}function XUe(e,t){const n=rB(e.properties,i=>{switch(i.kind){case 177:case 178:case 304:case 305:return;case 303:return Ie(i.name)?KUe(i.name.text,i.initializer,t):void 0;case 174:return Ie(i.name)?QCe(i.name.text,[I.createToken(95)],i,t):void 0;default:E.assertNever(i,`Convert to ES6 got invalid prop kind ${i.kind}`)}});return n&&[n,!1]}function QUe(e,t,n,i){const{text:s}=t.left.name,o=i.get(s);if(o!==void 0){const c=[gX(void 0,o,t.right),xue([I.createExportSpecifier(!1,o,s)])];n.replaceNodeWithNodes(e,t.parent,c)}else ZUe(t,e,n)}function YUe(e,t){const n=e.text,i=t.getSymbolAtLocation(e),s=i?i.exports:c7;return s.has("export=")?[[Sue(n)],!0]:s.has("default")?s.size>1?[[$Ce(n),Sue(n)],!0]:[[Sue(n)],!0]:[[$Ce(n)],!1]}function $Ce(e){return xue(void 0,e)}function Sue(e){return xue([I.createExportSpecifier(!1,void 0,"default")],e)}function ZUe({left:e,right:t,parent:n},i,s){const o=e.name.text;if((lo(t)||mo(t)||kl(t))&&(!t.name||t.name.text===o)){s.replaceRange(i,{pos:e.getStart(i),end:t.getStart(i)},I.createToken(95),{suffix:" "}),t.name||s.insertName(i,t,o);const c=qa(n,27,i);c&&s.delete(i,c)}else s.replaceNodeRangeWithNodes(i,e.expression,qa(e,25,i),[I.createToken(95),I.createToken(87)],{joiner:" ",suffix:" "})}function KUe(e,t,n){const i=[I.createToken(95)];switch(t.kind){case 218:{const{name:o}=t;if(o&&o.text!==e)return s()}case 219:return QCe(e,i,t,n);case 231:return iqe(e,i,t,n);default:return s()}function s(){return gX(i,I.createIdentifier(e),Tue(t,n))}}function Tue(e,t){if(!t||!ct(gs(t.keys()),i=>Pf(e,i)))return e;return ts(e)?PG(e,!0,n):eN(e,!0,n);function n(i){if(i.kind===211){const s=t.get(i);return t.delete(i),s}}}function eqe(e,t,n,i,s,o){switch(e.kind){case 206:{const c=rB(e.elements,u=>u.dotDotDotToken||u.initializer||u.propertyName&&!Ie(u.propertyName)||!Ie(u.name)?void 0:ZCe(u.propertyName&&u.propertyName.text,u.name.text));if(c)return fP([_0(void 0,c,t,o)])}case 207:{const c=mX(Mue(t.text,s),i);return fP([_0(I.createIdentifier(c),void 0,t,o),gX(void 0,Mo(e),I.createIdentifier(c))])}case 80:return tqe(e,t,n,i,o);default:return E.assertNever(e,`Convert to ES module got invalid name kind ${e.kind}`)}}function tqe(e,t,n,i,s){const o=n.getSymbolAtLocation(e),c=new Map;let u=!1,f;for(const d of i.original.get(e.text)){if(n.getSymbolAtLocation(d)!==o||d===e)continue;const{parent:y}=d;if(Sn(y)){const{name:{text:S}}=y;if(S==="default"){u=!0;const T=d.getText();(f??(f=new Map)).set(y,I.createIdentifier(T))}else{E.assert(y.expression===d,"Didn't expect expression === use");let T=c.get(S);T===void 0&&(T=mX(S,i),c.set(S,T)),(f??(f=new Map)).set(y,I.createIdentifier(T))}}else u=!0}const g=c.size===0?void 0:gs(R4(c.entries(),([d,y])=>I.createImportSpecifier(!1,d===y?void 0:I.createIdentifier(d),I.createIdentifier(y))));return g||(u=!0),fP([_0(u?Mo(e):void 0,g,t,s)],f)}function mX(e,t){for(;t.original.has(e)||t.additional.has(e);)e=`_${e}`;return t.additional.add(e),e}function rqe(e){const t=yf();return XCe(e,n=>t.add(n.text,n)),t}function XCe(e,t){Ie(e)&&nqe(e)&&t(e),e.forEachChild(n=>XCe(n,t))}function nqe(e){const{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,n,i){return I.createFunctionDeclaration(es(t,k2(n.modifiers)),Mo(n.asteriskToken),e,k2(n.typeParameters),k2(n.parameters),Mo(n.type),I.converters.convertToFunctionBlock(Tue(n.body,i)))}function iqe(e,t,n,i){return I.createClassDeclaration(es(t,k2(n.modifiers)),e,k2(n.typeParameters),k2(n.heritageClauses),Tue(n.members,i))}function YCe(e,t,n,i){return t==="default"?_0(I.createIdentifier(e),void 0,n,i):_0(void 0,[ZCe(t,e)],n,i)}function ZCe(e,t){return I.createImportSpecifier(!1,e!==void 0&&e!==t?I.createIdentifier(e):void 0,I.createIdentifier(t))}function gX(e,t,n){return I.createVariableStatement(e,I.createVariableDeclarationList([I.createVariableDeclaration(t,void 0,void 0,n)],2))}function xue(e,t){return I.createExportDeclaration(void 0,!1,e&&I.createNamedExports(e),t===void 0?void 0:I.createStringLiteral(t))}function fP(e,t){return{newImports:e,useSitesToUnqualify:t}}var sqe=Dt({"src/services/codefixes/convertToEsModule.ts"(){qn(),ra(),ea({errorCodes:[p.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(e){const{sourceFile:t,program:n,preferences:i}=e,s=Kr.ChangeTracker.with(e,o=>{if(VUe(t,n.getTypeChecker(),o,Fa(n.getCompilerOptions()),Df(t,i)))for(const u of n.getSourceFiles())WUe(u,t,n,o,Df(u,i))});return[Sd("convertToEsModule",s,p.Convert_to_ES_module)]}})}});function KCe(e,t){const n=Pr(Ui(e,t),Xu);return E.assert(!!n,"Expected position to be owned by a qualified name."),Ie(n.left)?n:void 0}function e6e(e,t,n){const i=n.right.text,s=I.createIndexedAccessTypeNode(I.createTypeReferenceNode(n.left,void 0),I.createLiteralTypeNode(I.createStringLiteral(i)));e.replaceNode(t,n,s)}var hX,kue,aqe=Dt({"src/services/codefixes/correctQualifiedNameToIndexedAccessType.ts"(){qn(),ra(),hX="correctQualifiedNameToIndexedAccessType",kue=[p.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:kue,getCodeActions(e){const t=KCe(e.sourceFile,e.span.start);if(!t)return;const n=Kr.ChangeTracker.with(e,s=>e6e(s,e.sourceFile,t)),i=`${t.left.text}["${t.right.text}"]`;return[js(hX,n,[p.Rewrite_as_the_indexed_access_type_0,i],hX,p.Rewrite_all_as_indexed_access_types)]},fixIds:[hX],getAllCodeActions:e=>Ga(e,kue,(t,n)=>{const i=KCe(n.file,n.start);i&&e6e(t,n.file,i)})})}});function t6e(e,t){return Wn(Ui(t,e.start).parent,vu)}function r6e(e,t,n){if(!t)return;const i=t.parent,s=i.parent,o=oqe(t,n);if(o.length===i.elements.length)e.insertModifierBefore(n.sourceFile,156,i);else{const c=I.updateExportDeclaration(s,s.modifiers,!1,I.updateNamedExports(i,An(i.elements,f=>!bs(o,f))),s.moduleSpecifier,void 0),u=I.createExportDeclaration(void 0,!0,I.createNamedExports(o),s.moduleSpecifier,void 0);e.replaceNode(n.sourceFile,s,c,{leadingTriviaOption:Kr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Kr.TrailingTriviaOption.Exclude}),e.insertNodeAfter(n.sourceFile,s,u)}}function oqe(e,t){const n=e.parent;if(n.elements.length===1)return n.elements;const i=kce(Zu(n),t.program.getSemanticDiagnostics(t.sourceFile,t.cancellationToken));return An(n.elements,s=>{var o;return s===e||((o=xce(s,i))==null?void 0:o.code)===yX[0]})}var yX,vX,cqe=Dt({"src/services/codefixes/convertToTypeOnlyExport.ts"(){qn(),ra(),yX=[p.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],vX="convertToTypeOnlyExport",ea({errorCodes:yX,getCodeActions:function(t){const n=Kr.ChangeTracker.with(t,i=>r6e(i,t6e(t.span,t.sourceFile),t));if(n.length)return[js(vX,n,p.Convert_to_type_only_export,vX,p.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[vX],getAllCodeActions:function(t){const n=new Map;return Ga(t,yX,(i,s)=>{const o=t6e(s,t.sourceFile);o&&Vp(n,Oa(o.parent.parent))&&r6e(i,o,t)})}})}});function n6e(e,t){const{parent:n}=Ui(e,t);return x_(n)||sl(n)&&n.importClause?n:void 0}function i6e(e,t,n){if(e.parent.parent.name)return!1;const i=e.parent.elements.filter(o=>!o.isTypeOnly);if(i.length===1)return!0;const s=n.getTypeChecker();for(const o of i)if(uo.Core.eachSymbolReferenceInFile(o.name,s,t,u=>!I1(u)))return!1;return!0}function OM(e,t,n){var i;if(x_(n))e.replaceNode(t,n,I.updateImportSpecifier(n,!0,n.propertyName,n.name));else{const s=n.importClause;if(s.name&&s.namedBindings)e.replaceNodeWithNodes(t,n,[I.createImportDeclaration(k2(n.modifiers,!0),I.createImportClause(!0,Mo(s.name,!0),void 0),Mo(n.moduleSpecifier,!0),Mo(n.attributes,!0)),I.createImportDeclaration(k2(n.modifiers,!0),I.createImportClause(!0,void 0,Mo(s.namedBindings,!0)),Mo(n.moduleSpecifier,!0),Mo(n.attributes,!0))]);else{const o=((i=s.namedBindings)==null?void 0:i.kind)===275?I.updateNamedImports(s.namedBindings,nl(s.namedBindings.elements,u=>I.updateImportSpecifier(u,!1,u.propertyName,u.name))):s.namedBindings,c=I.updateImportDeclaration(n,n.modifiers,I.updateImportClause(s,!0,s.name,o),n.moduleSpecifier,n.attributes);e.replaceNode(t,n,c)}}}var Cue,LM,lqe=Dt({"src/services/codefixes/convertToTypeOnlyImport.ts"(){qn(),ra(),Cue=[p.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error.code,p._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code,p._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code],LM="convertToTypeOnlyImport",ea({errorCodes:Cue,getCodeActions:function(t){var n;const i=n6e(t.sourceFile,t.span.start);if(i){const s=Kr.ChangeTracker.with(t,u=>OM(u,t.sourceFile,i)),o=i.kind===276&&i6e(i,t.sourceFile,t.program)?Kr.ChangeTracker.with(t,u=>OM(u,t.sourceFile,i.parent.parent.parent)):void 0,c=js(LM,s,i.kind===276?[p.Use_type_0,((n=i.propertyName)==null?void 0:n.text)??i.name.text]:p.Use_import_type,LM,p.Fix_all_with_type_only_imports);return ct(o)?[Sd(LM,o,p.Use_import_type),c]:[c]}},fixIds:[LM],getAllCodeActions:function(t){const n=new Set;return Ga(t,Cue,(i,s)=>{const o=n6e(s.file,s.start);(o==null?void 0:o.kind)===272&&!n.has(o)?(OM(i,s.file,o),n.add(o)):(o==null?void 0:o.kind)===276&&!n.has(o.parent.parent.parent)&&i6e(o,s.file,t.program)?(OM(i,s.file,o.parent.parent.parent),n.add(o.parent.parent.parent)):(o==null?void 0:o.kind)===276&&OM(i,s.file,o)})}})}});function s6e(e,t,n,i,s=!1){if(!Yb(t))return;const o=_qe(t);if(!o)return;const c=t.parent,{leftSibling:u,rightSibling:f}=uqe(t);let g=c.getStart(),d="";!u&&c.comment&&(g=a6e(c,c.getStart(),t.getStart()),d=`${i} */${i}`),u&&(s&&Yb(u)?(g=t.getStart(),d=""):(g=a6e(c,u.getStart(),t.getStart()),d=`${i} */${i}`));let y=c.getEnd(),S="";f&&(s&&Yb(f)?(y=f.getStart(),S=`${i}${i}`):(y=f.getStart(),S=`${i}/**${i} * `)),e.replaceRange(n,{pos:g,end:y},o,{prefix:d,suffix:S})}function uqe(e){const t=e.parent,n=t.getChildCount()-1,i=t.getChildren().findIndex(c=>c.getStart()===e.getStart()&&c.getEnd()===e.getEnd()),s=i>0?t.getChildAt(i-1):void 0,o=i0;s--)if(!/[*/\s]/g.test(i.substring(s-1,s)))return t+s;return n}function _qe(e){var t;const{typeExpression:n}=e;if(!n)return;const i=(t=e.name)==null?void 0:t.getText();if(i){if(n.kind===329)return fqe(i,n);if(n.kind===316)return pqe(i,n)}}function fqe(e,t){const n=o6e(t);if(ct(n))return I.createInterfaceDeclaration(void 0,e,void 0,void 0,n)}function pqe(e,t){const n=Mo(t.type);if(n)return I.createTypeAliasDeclaration(void 0,I.createIdentifier(e),void 0,n)}function o6e(e){const t=e.jsDocPropertyTags;return ct(t)?Ri(t,i=>{var s;const o=dqe(i),c=(s=i.typeExpression)==null?void 0:s.type,u=i.isBracketed;let f;if(c&&Qb(c)){const g=o6e(c);f=I.createTypeLiteralNode(g)}else c&&(f=Mo(c));if(f&&o){const g=u?I.createToken(58):void 0;return I.createPropertySignature(void 0,o,g,f)}}):void 0}function dqe(e){return e.name.kind===80?e.name.text:e.name.right.text}function mqe(e){return sf(e)?Zs(e.jsDoc,t=>{var n;return(n=t.tags)==null?void 0:n.filter(i=>Yb(i))}):[]}var bX,Eue,gqe=Dt({"src/services/codefixes/convertTypedefToType.ts"(){qn(),ra(),bX="convertTypedefToType",Eue=[p.JSDoc_typedef_may_be_converted_to_TypeScript_type.code],ea({fixIds:[bX],errorCodes:Eue,getCodeActions(e){const t=f0(e.host,e.formatContext.options),n=Ui(e.sourceFile,e.span.start);if(!n)return;const i=Kr.ChangeTracker.with(e,s=>s6e(s,n,e.sourceFile,t));if(i.length>0)return[js(bX,i,p.Convert_typedef_to_TypeScript_type,bX,p.Convert_all_typedef_to_TypeScript_types)]},getAllCodeActions:e=>Ga(e,Eue,(t,n)=>{const i=f0(e.host,e.formatContext.options),s=Ui(n.file,n.start);s&&s6e(t,s,n.file,i,!0)})})}});function c6e(e,t){const n=Ui(e,t);if(Ie(n)){const i=Ls(n.parent.parent,B_),s=n.getText(e);return{container:Ls(i.parent,z_),typeNode:i.type,constraint:s,name:s==="K"?"P":"K"}}}function l6e(e,t,{container:n,typeNode:i,constraint:s,name:o}){e.replaceNode(t,n,I.createMappedTypeNode(void 0,I.createTypeParameterDeclaration(void 0,o,I.createTypeReferenceNode(s)),void 0,void 0,i,void 0))}var SX,Pue,hqe=Dt({"src/services/codefixes/convertLiteralTypeToMappedType.ts"(){qn(),ra(),SX="convertLiteralTypeToMappedType",Pue=[p._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:Pue,getCodeActions:function(t){const{sourceFile:n,span:i}=t,s=c6e(n,i.start);if(!s)return;const{name:o,constraint:c}=s,u=Kr.ChangeTracker.with(t,f=>l6e(f,n,s));return[js(SX,u,[p.Convert_0_to_1_in_0,c,o],SX,p.Convert_all_type_literals_to_mapped_type)]},fixIds:[SX],getAllCodeActions:e=>Ga(e,Pue,(t,n)=>{const i=c6e(n.file,n.start);i&&l6e(t,n.file,i)})})}});function u6e(e,t){return E.checkDefined(Nl(Ui(e,t)),"There should be a containing class")}function _6e(e){return!e.valueDeclaration||!(Lu(e.valueDeclaration)&2)}function f6e(e,t,n,i,s,o){const c=e.program.getTypeChecker(),u=yqe(i,c),f=c.getTypeAtLocation(t),d=c.getPropertiesOfType(f).filter(i7(_6e,P=>!u.has(P.escapedName))),y=c.getTypeAtLocation(i),S=wn(i.members,P=>sc(P));y.getNumberIndexType()||k(f,1),y.getStringIndexType()||k(f,0);const T=Lx(n,e.program,o,e.host);L_e(i,d,n,e,o,T,P=>w(n,i,P)),T.writeFixes(s);function k(P,F){const J=c.getIndexInfoOfType(P,F);J&&w(n,i,c.indexInfoToIndexSignatureDeclaration(J,i,void 0,F6(e)))}function w(P,F,J){S?s.insertNodeAfter(P,S,J):s.insertMemberAtStart(P,F,J)}}function yqe(e,t){const n=Vd(e);if(!n)return Bs();const i=t.getTypeAtLocation(n),s=t.getPropertiesOfType(i);return Bs(s.filter(_6e))}var Due,TX,vqe=Dt({"src/services/codefixes/fixClassIncorrectlyImplementsInterface.ts"(){qn(),ra(),Due=[p.Class_0_incorrectly_implements_interface_1.code,p.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],TX="fixClassIncorrectlyImplementsInterface",ea({errorCodes:Due,getCodeActions(e){const{sourceFile:t,span:n}=e,i=u6e(t,n.start);return Ri(mC(i),s=>{const o=Kr.ChangeTracker.with(e,c=>f6e(e,s,t,i,c,e.preferences));return o.length===0?void 0:js(TX,o,[p.Implement_interface_0,s.getText(t)],TX,p.Implement_all_unimplemented_interfaces)})},fixIds:[TX],getAllCodeActions(e){const t=new Map;return Ga(e,Due,(n,i)=>{const s=u6e(i.file,i.start);if(Vp(t,Oa(s)))for(const o of mC(s))f6e(e,o,i.file,s,n,e.preferences)})}})}});function Lx(e,t,n,i,s){return p6e(e,t,!1,n,i,s)}function p6e(e,t,n,i,s,o){const c=t.getCompilerOptions(),u=[],f=[],g=new Map,d=new Map;return{addImportFromDiagnostic:y,addImportFromExportedSymbol:S,writeFixes:k,hasFixes:w};function y(P,F){const J=v6e(F,P.code,P.start,n);!J||!J.length||T(va(J))}function S(P,F){const J=E.checkDefined(P.parent),U=QL(P,Fa(c)),$=t.getTypeChecker(),j=$.getMergedSymbol(Ul(P,$)),re=g6e(e,j,U,J,!1,t,s,i,o),R=kX(e,t),Y=d6e(e,E.checkDefined(re),t,void 0,!!F,R,s,i);Y&&T({fix:Y,symbolName:U,errorIdentifierText:void 0})}function T(P){var F,J;const{fix:U,symbolName:$}=P;switch(U.kind){case 0:u.push(U);break;case 1:f.push(U);break;case 2:{const{importClauseOrBindingPattern:Y,importKind:ue,addAsTypeOnly:pe}=U,H=String(Oa(Y));let q=g.get(H);if(q||g.set(H,q={importClauseOrBindingPattern:Y,defaultImport:void 0,namedImports:new Map}),ue===0){const ee=q==null?void 0:q.namedImports.get($);q.namedImports.set($,j(ee,pe))}else E.assert(q.defaultImport===void 0||q.defaultImport.name===$,"(Add to Existing) Default import should be missing or match symbolName"),q.defaultImport={name:$,addAsTypeOnly:j((F=q.defaultImport)==null?void 0:F.addAsTypeOnly,pe)};break}case 3:{const{moduleSpecifier:Y,importKind:ue,useRequire:pe,addAsTypeOnly:H}=U,q=re(Y,ue,pe,H);switch(E.assert(q.useRequire===pe,"(Add new) Tried to add an `import` and a `require` for the same module"),ue){case 1:E.assert(q.defaultImport===void 0||q.defaultImport.name===$,"(Add new) Default import should be missing or match symbolName"),q.defaultImport={name:$,addAsTypeOnly:j((J=q.defaultImport)==null?void 0:J.addAsTypeOnly,H)};break;case 0:const ee=(q.namedImports||(q.namedImports=new Map)).get($);q.namedImports.set($,j(ee,H));break;case 3:case 2:E.assert(q.namespaceLikeImport===void 0||q.namespaceLikeImport.name===$,"Namespacelike import shoudl be missing or match symbolName"),q.namespaceLikeImport={importKind:ue,name:$,addAsTypeOnly:H};break}break}case 4:break;default:E.assertNever(U,`fix wasn't never - got kind ${U.kind}`)}function j(Y,ue){return Math.max(Y??0,ue)}function re(Y,ue,pe,H){const q=R(Y,!0),ee=R(Y,!1),oe=d.get(q),Se=d.get(ee),ae={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:pe};return ue===1&&H===2?oe||(d.set(q,ae),ae):H===1&&(oe||Se)?oe||Se:Se||(d.set(ee,ae),ae)}function R(Y,ue){return`${ue?1:0}|${Y}`}}function k(P,F){let J;e.imports.length===0&&F!==void 0?J=F:J=Df(e,i);for(const $ of u)Fue(P,e,$);for(const $ of f)E6e(P,e,$,J);g.forEach(({importClauseOrBindingPattern:$,defaultImport:j,namedImports:re})=>{C6e(P,e,$,j,gs(re.entries(),([R,Y])=>({addAsTypeOnly:Y,name:R})),i)});let U;d.forEach(({useRequire:$,defaultImport:j,namedImports:re,namespaceLikeImport:R},Y)=>{const ue=Y.slice(2),H=($?w6e:D6e)(ue,J,j,re&&gs(re.entries(),([q,ee])=>({addAsTypeOnly:ee,name:q})),R,c,i);U=Dk(U,H)}),U&&eP(P,e,U,!0,i)}function w(){return u.length>0||f.length>0||g.size>0||d.size>0}}function bqe(e,t,n,i){const s=oP(e,i,n),o=h6e(t.getTypeChecker(),e,t.getCompilerOptions());return{getModuleSpecifierForBestExportInfo:c};function c(u,f,g,d){const{fixes:y,computedWithoutCacheCount:S}=xX(u,f,g,!1,t,e,n,i,o,d),T=b6e(y,e,t,s,n);return T&&{...T,computedWithoutCacheCount:S}}}function Sqe(e,t,n,i,s,o,c,u,f,g,d,y){let S;n?(S=oN(i,c,u,d,y).get(i.path,n),E.assertIsDefined(S,"Some exportInfo should match the specified exportMapKey")):(S=IJ(yp(t.name))?[xqe(e,s,t,u,c)]:g6e(i,e,s,t,o,u,c,d,y),E.assertIsDefined(S,"Some exportInfo should match the specified symbol / moduleSymbol"));const T=kX(i,u),k=I1(Ui(i,g)),w=E.checkDefined(d6e(i,S,u,g,k,T,c,d));return{moduleSpecifier:w.moduleSpecifier,codeAction:m6e(Iue({host:c,formatContext:f,preferences:d},i,s,w,!1,u,d))}}function Tqe(e,t,n,i,s,o){const c=n.getCompilerOptions(),u=lB(Nue(e,n.getTypeChecker(),t,c)),f=x6e(e,t,u,n),g=u!==t.text;return f&&m6e(Iue({host:i,formatContext:s,preferences:o},e,u,f,g,n,o))}function d6e(e,t,n,i,s,o,c,u){const f=oP(e,u,c);return b6e(xX(t,i,s,o,n,e,c,u).fixes,e,n,f,c)}function m6e({description:e,changes:t,commands:n}){return{description:e,changes:t,commands:n}}function g6e(e,t,n,i,s,o,c,u,f){const g=y6e(o,c);return oN(e,c,o,u,f).search(e.path,s,d=>d===n,d=>{if(Ul(d[0].symbol,g(d[0].isFromPackageJson))===t&&d.some(y=>y.moduleSymbol===i||y.symbol.parent===i))return d})}function xqe(e,t,n,i,s){var o,c;const u=i.getCompilerOptions(),f=d(i.getTypeChecker(),!1);if(f)return f;const g=(c=(o=s.getPackageJsonAutoImportProvider)==null?void 0:o.call(s))==null?void 0:c.getTypeChecker();return E.checkDefined(g&&d(g,!0),"Could not find symbol in specified module for code actions");function d(y,S){const T=nM(n,y,u);if(T&&Ul(T.symbol,y)===e)return{symbol:T.symbol,moduleSymbol:n,moduleFileName:void 0,exportKind:T.exportKind,targetFlags:Ul(e,y).flags,isFromPackageJson:S};const k=y.tryGetMemberInModuleExportsAndProperties(t,n);if(k&&Ul(k,y)===e)return{symbol:k,moduleSymbol:n,moduleFileName:void 0,exportKind:0,targetFlags:Ul(e,y).flags,isFromPackageJson:S}}}function xX(e,t,n,i,s,o,c,u,f=h6e(s.getTypeChecker(),o,s.getCompilerOptions()),g){const d=s.getTypeChecker(),y=Zs(e,f.getImportsForExportInfo),S=t!==void 0&&kqe(y,t),T=Eqe(y,n,d,s.getCompilerOptions());if(T)return{computedWithoutCacheCount:0,fixes:[...S?[S]:Ve,T]};const{fixes:k,computedWithoutCacheCount:w=0}=Dqe(e,y,s,o,t,n,i,c,u,g);return{computedWithoutCacheCount:w,fixes:[...S?[S]:Ve,...k]}}function kqe(e,t){return Qa(e,({declaration:n,importKind:i})=>{var s;if(i!==0)return;const o=Cqe(n),c=o&&((s=lC(n))==null?void 0:s.text);if(c)return{kind:0,namespacePrefix:o,usagePosition:t,moduleSpecifier:c}})}function Cqe(e){var t,n,i;switch(e.kind){case 260:return(t=Wn(e.name,Ie))==null?void 0:t.text;case 271:return e.name.text;case 272:return(i=Wn((n=e.importClause)==null?void 0:n.namedBindings,dy))==null?void 0:i.name.text;default:return E.assertNever(e)}}function wue(e,t,n,i,s,o){return e?t&&o.importsNotUsedAsValues===2||DW(o)&&(!(i&111551)||s.getTypeOnlyAliasDeclaration(n))?2:1:4}function Eqe(e,t,n,i){let s;for(const c of e){const u=o(c);if(!u)continue;const f=XD(u.importClauseOrBindingPattern);if(u.addAsTypeOnly!==4&&f||u.addAsTypeOnly===4&&!f)return u;s??(s=u)}return s;function o({declaration:c,importKind:u,symbol:f,targetFlags:g}){if(u===3||u===2||c.kind===271)return;if(c.kind===260)return(u===0||u===1)&&c.name.kind===206?{kind:2,importClauseOrBindingPattern:c.name,importKind:u,moduleSpecifier:c.initializer.arguments[0].text,addAsTypeOnly:4}:void 0;const{importClause:d}=c;if(!d||!Ma(c.moduleSpecifier))return;const{name:y,namedBindings:S}=d;if(d.isTypeOnly&&!(u===0&&S))return;const T=wue(t,!1,f,g,n,i);if(!(u===1&&(y||T===2&&S))&&!(u===0&&(S==null?void 0:S.kind)===274))return{kind:2,importClauseOrBindingPattern:d,importKind:u,moduleSpecifier:c.moduleSpecifier.text,addAsTypeOnly:T}}}function h6e(e,t,n){let i;for(const s of t.imports){const o=SE(s);if(w5(o.parent)){const c=e.resolveExternalModuleName(s);c&&(i||(i=yf())).add(Ks(c),o.parent)}else if(o.kind===272||o.kind===271){const c=e.getSymbolAtLocation(s);c&&(i||(i=yf())).add(Ks(c),o)}}return{getImportsForExportInfo:({moduleSymbol:s,exportKind:o,targetFlags:c,symbol:u})=>{if(!(c&111551)&&Ou(t))return Ve;const f=i==null?void 0:i.get(Ks(s));if(!f)return Ve;const g=Aue(t,o,n);return f.map(d=>({declaration:d,importKind:g,symbol:u,targetFlags:c}))}}}function kX(e,t){if(!Ou(e))return!1;if(e.commonJsModuleIndicator&&!e.externalModuleIndicator)return!0;if(e.externalModuleIndicator&&!e.commonJsModuleIndicator)return!1;const n=t.getCompilerOptions();if(n.configFile)return au(n)<5;if(e.impliedNodeFormat===1)return!0;if(e.impliedNodeFormat===99)return!1;for(const i of t.getSourceFiles())if(!(i===e||!Ou(i)||t.isSourceFileFromExternalLibrary(i))){if(i.commonJsModuleIndicator&&!i.externalModuleIndicator)return!0;if(i.externalModuleIndicator&&!i.commonJsModuleIndicator)return!1}return!0}function y6e(e,t){return Cm(n=>n?t.getPackageJsonAutoImportProvider().getTypeChecker():e.getTypeChecker())}function Pqe(e,t,n,i,s,o,c,u,f){const g=Ou(t),d=e.getCompilerOptions(),y=cS(e,c),S=y6e(e,c),T=Ru(d),k=IL(T),w=f?J=>({moduleSpecifiers:h2.tryGetModuleSpecifiersFromCache(J,t,y,u),computedWithoutCache:!1}):(J,U)=>h2.getModuleSpecifiersWithCacheInfo(J,U,d,t,y,u,void 0,!0);let P=0;const F=Zs(o,(J,U)=>{const $=S(J.isFromPackageJson),{computedWithoutCache:j,moduleSpecifiers:re}=w(J.moduleSymbol,$),R=!!(J.targetFlags&111551),Y=wue(i,!0,J.symbol,J.targetFlags,$,d);return P+=j?1:0,Ri(re,ue=>{var pe;if(k&&W1(ue))return;if(!R&&g&&n!==void 0)return{kind:1,moduleSpecifier:ue,usagePosition:n,exportInfo:J,isReExport:U>0};const H=Aue(t,J.exportKind,d);let q;if(n!==void 0&&H===3&&J.exportKind===0){const ee=$.resolveExternalModuleSymbol(J.moduleSymbol);let oe;ee!==J.moduleSymbol&&(oe=(pe=iM(ee,$,d))==null?void 0:pe.name),oe||(oe=Lue(J.moduleSymbol,Fa(d),!1)),q={namespacePrefix:oe,usagePosition:n}}return{kind:3,moduleSpecifier:ue,importKind:H,useRequire:s,addAsTypeOnly:Y,exportInfo:J,isReExport:U>0,qualification:q}})});return{computedWithoutCacheCount:P,fixes:F}}function Dqe(e,t,n,i,s,o,c,u,f,g){const d=Qa(t,y=>wqe(y,o,c,n.getTypeChecker(),n.getCompilerOptions()));return d?{fixes:[d]}:Pqe(n,i,s,o,c,e,u,f,g)}function wqe({declaration:e,importKind:t,symbol:n,targetFlags:i},s,o,c,u){var f;const g=(f=lC(e))==null?void 0:f.text;if(g){const d=o?4:wue(s,!0,n,i,c,u);return{kind:3,moduleSpecifier:g,importKind:t,addAsTypeOnly:d,useRequire:o}}}function v6e(e,t,n,i){const s=Ui(e.sourceFile,n);let o;if(t===p._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)o=Fqe(e,s);else if(Ie(s))if(t===p._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){const u=lB(Nue(e.sourceFile,e.program.getTypeChecker(),s,e.program.getCompilerOptions())),f=x6e(e.sourceFile,s,u,e.program);return f&&[{fix:f,symbolName:u,errorIdentifierText:s.text}]}else o=Mqe(e,s,i);else return;const c=oP(e.sourceFile,e.preferences,e.host);return o&&Aqe(o,e.sourceFile,e.program,c,e.host)}function Aqe(e,t,n,i,s){const o=c=>Io(c,s.getCurrentDirectory(),Zh(s));return _b(e,(c,u)=>B0(!!c.isJsxNamespaceFix,!!u.isJsxNamespaceFix)||Ao(c.fix.kind,u.fix.kind)||S6e(c.fix,u.fix,t,n,i.allowsImportingSpecifier,o))}function b6e(e,t,n,i,s){if(ct(e))return e[0].kind===0||e[0].kind===2?e[0]:e.reduce((o,c)=>S6e(c,o,t,n,i.allowsImportingSpecifier,u=>Io(u,s.getCurrentDirectory(),Zh(s)))===-1?c:o)}function S6e(e,t,n,i,s,o){return e.kind!==0&&t.kind!==0?B0(s(t.moduleSpecifier),s(e.moduleSpecifier))||Iqe(e.moduleSpecifier,t.moduleSpecifier,n,i)||B0(T6e(e,n,i.getCompilerOptions(),o),T6e(t,n,i.getCompilerOptions(),o))||rw(e.moduleSpecifier,t.moduleSpecifier):0}function T6e(e,t,n,i){var s;if(e.isReExport&&((s=e.exportInfo)!=null&&s.moduleFileName)&&Nqe(e.exportInfo.moduleFileName)){const o=i(Un(e.exportInfo.moduleFileName));return Vi(t.path,o)}return!1}function Nqe(e){return wc(e,[".js",".jsx",".d.ts",".ts",".tsx"],!0)==="index"}function Iqe(e,t,n,i){return Vi(e,"node:")&&!Vi(t,"node:")?ZL(n,i)?-1:1:Vi(t,"node:")&&!Vi(e,"node:")?ZL(n,i)?1:-1:0}function Fqe({sourceFile:e,program:t,host:n,preferences:i},s){const o=t.getTypeChecker(),c=Oqe(s,o);if(!c)return;const u=o.getAliasedSymbol(c),f=c.name,g=[{symbol:c,moduleSymbol:u,moduleFileName:void 0,exportKind:3,targetFlags:u.flags,isFromPackageJson:!1}],d=kX(e,t);return xX(g,void 0,!1,d,t,e,n,i).fixes.map(S=>{var T;return{fix:S,symbolName:f,errorIdentifierText:(T=Wn(s,Ie))==null?void 0:T.text}})}function Oqe(e,t){const n=Ie(e)?t.getSymbolAtLocation(e):void 0;if(nF(n))return n;const{parent:i}=e;if(Fu(i)&&i.tagName===e||px(i)){const s=t.resolveName(t.getJsxNamespace(i),Fu(i)?e:i,111551,!1);if(nF(s))return s}}function Aue(e,t,n,i){if(n.verbatimModuleSyntax&&(au(n)===1||e.impliedNodeFormat===1))return 3;switch(t){case 0:return 0;case 1:return 1;case 2:return Bqe(e,n,!!i);case 3:return Lqe(e,n,!!i);default:return E.assertNever(t)}}function Lqe(e,t,n){if(Bb(t))return 1;const i=au(t);switch(i){case 2:case 1:case 3:return Hr(e)&&(Ic(e)||n)?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 E.assertNever(i,`Unexpected moduleKind ${i}`)}}function Mqe({sourceFile:e,program:t,cancellationToken:n,host:i,preferences:s},o,c){const u=t.getTypeChecker(),f=t.getCompilerOptions();return Zs(Nue(e,u,o,f),g=>{if(g==="default")return;const d=I1(o),y=kX(e,t),S=jqe(g,aC(o),aS(o),n,e,t,c,i,s);return gs(tB(S.values(),T=>xX(T,o.getStart(e),d,y,t,e,i,s).fixes),T=>({fix:T,symbolName:g,errorIdentifierText:o.text,isJsxNamespaceFix:g!==o.text}))})}function x6e(e,t,n,i){const s=i.getTypeChecker(),o=s.resolveName(n,t,111551,!0);if(!o)return;const c=s.getTypeOnlyAliasDeclaration(o);if(!(!c||wr(c)!==e))return{kind:4,typeOnlyAliasDeclaration:c}}function Nue(e,t,n,i){const s=n.parent;if((Fu(s)||l2(s))&&s.tagName===n&&BG(i.jsx)){const o=t.getJsxNamespace(e);if(Rqe(o,n,t))return!vC(n.text)&&!t.resolveName(n.text,n,111551,!1)?[n.text,o]:[o]}return[n.text]}function Rqe(e,t,n){if(vC(t.text))return!0;const i=n.resolveName(e,t,111551,!0);return!i||ct(i.declarations,x1)&&!(i.flags&111551)}function jqe(e,t,n,i,s,o,c,u,f){var g;const d=yf(),y=oP(s,f,u),S=(g=u.getModuleSpecifierCache)==null?void 0:g.call(u),T=Cm(w=>cS(w?u.getPackageJsonAutoImportProvider():o,u));function k(w,P,F,J,U,$){const j=T($);if(P&&HG(U,s,P,f,y,j,S)||!P&&y.allowsImportingAmbientModule(w,j)){const re=U.getTypeChecker();d.add(dce(F,re).toString(),{symbol:F,moduleSymbol:w,moduleFileName:P==null?void 0:P.fileName,exportKind:J,targetFlags:Ul(F,re).flags,isFromPackageJson:$})}}return GG(o,u,f,c,(w,P,F,J)=>{const U=F.getTypeChecker();i.throwIfCancellationRequested();const $=F.getCompilerOptions(),j=nM(w,U,$);j&&(j.name===e||Lue(w,Fa($),t)===e)&&N6e(j.resolvedSymbol,n)&&k(w,P,j.symbol,j.exportKind,F,J);const re=U.tryGetMemberInModuleExportsAndProperties(e,w);re&&N6e(re,n)&&k(w,P,re,0,F,J)}),d}function Bqe(e,t,n){const i=Bb(t),s=Hr(e);if(!s&&au(t)>=5)return i?1:2;if(s)return Ic(e)||n?i?1:2:3;for(const o of e.statements)if(El(o)&&!_c(o.moduleReference))return 3;return i?1:3}function Iue(e,t,n,i,s,o,c){let u;const f=Kr.ChangeTracker.with(e,g=>{u=Jqe(g,t,n,i,s,o,c)});return js(Rue,f,u,jue,p.Add_all_missing_imports)}function Jqe(e,t,n,i,s,o,c){const u=Df(t,c);switch(i.kind){case 0:return Fue(e,t,i),[p.Change_0_to_1,n,`${i.namespacePrefix}.${n}`];case 1:return E6e(e,t,i,u),[p.Change_0_to_1,n,P6e(i.moduleSpecifier,u)+n];case 2:{const{importClauseOrBindingPattern:f,importKind:g,addAsTypeOnly:d,moduleSpecifier:y}=i;C6e(e,t,f,g===1?{name:n,addAsTypeOnly:d}:void 0,g===0?[{name:n,addAsTypeOnly:d}]:Ve,c);const S=yp(y);return s?[p.Import_0_from_1,n,S]:[p.Update_import_from_0,S]}case 3:{const{importKind:f,moduleSpecifier:g,addAsTypeOnly:d,useRequire:y,qualification:S}=i,T=y?w6e:D6e,k=f===1?{name:n,addAsTypeOnly:d}:void 0,w=f===0?[{name:n,addAsTypeOnly:d}]:void 0,P=f===2||f===3?{importKind:f,name:(S==null?void 0:S.namespacePrefix)||n,addAsTypeOnly:d}:void 0;return eP(e,t,T(g,u,k,w,P,o.getCompilerOptions(),c),!0,c),S&&Fue(e,t,S),s?[p.Import_0_from_1,n,g]:[p.Add_import_from_0,g]}case 4:{const{typeOnlyAliasDeclaration:f}=i,g=zqe(e,f,o,t,c);return g.kind===276?[p.Remove_type_from_import_of_0_from_1,n,k6e(g.parent.parent)]:[p.Remove_type_from_import_declaration_from_0,k6e(g)]}default:return E.assertNever(i,`Unexpected fix kind ${i.kind}`)}}function k6e(e){var t,n;return e.kind===271?((n=Wn((t=Wn(e.moduleReference,Bm))==null?void 0:t.expression,Ma))==null?void 0:n.text)||e.moduleReference.getText():Ls(e.parent.moduleSpecifier,aa).text}function zqe(e,t,n,i,s){const o=n.getCompilerOptions(),c=DW(o);switch(t.kind){case 276:if(t.isTypeOnly){const f=Xp.detectImportSpecifierSorting(t.parent.elements,s);if(t.parent.elements.length>1&&f){const g=I.updateImportSpecifier(t,!1,t.propertyName,t.name),d=Xp.getOrganizeImportsComparer(s,f===2),y=Xp.getImportSpecifierInsertionIndex(t.parent.elements,g,d,s);if(y!==t.parent.elements.indexOf(t))return e.delete(i,t),e.insertImportSpecifierAtIndex(i,g,t.parent,y),t}return e.deleteRange(i,{pos:k1(t.getFirstToken()),end:k1(t.propertyName??t.name)}),t}else return E.assert(t.parent.parent.isTypeOnly),u(t.parent.parent),t.parent.parent;case 273:return u(t),t;case 274:return u(t.parent),t.parent;case 271:return e.deleteRange(i,t.getChildAt(1)),t;default:E.failBadSyntaxKind(t)}function u(f){var g;if(e.delete(i,gG(f,i)),!o.allowImportingTsExtensions){const d=lC(f.parent),y=d&&((g=n.getResolvedModuleFromModuleSpecifier(d))==null?void 0:g.resolvedModule);if(y!=null&&y.resolvedUsingTsExtension){const S=ND(d.text,A9(d.text,o));e.replaceNode(i,d,I.createStringLiteral(S))}}if(c){const d=Wn(f.namedBindings,sh);if(d&&d.elements.length>1){Xp.detectImportSpecifierSorting(d.elements,s)&&t.kind===276&&d.elements.indexOf(t)!==0&&(e.delete(i,t),e.insertImportSpecifierAtIndex(i,t,d,0));for(const y of d.elements)y!==t&&!y.isTypeOnly&&e.insertModifierBefore(i,156,y)}}}}function C6e(e,t,n,i,s,o){var c;if(n.kind===206){i&&g(n,i.name,"default");for(const d of s)g(n,d.name,void 0);return}const u=n.isTypeOnly&&ct([i,...s],d=>(d==null?void 0:d.addAsTypeOnly)===4),f=n.namedBindings&&((c=Wn(n.namedBindings,sh))==null?void 0:c.elements);if(i&&(E.assert(!n.name,"Cannot add a default import to an import clause that already has one"),e.insertNodeAt(t,n.getStart(t),I.createIdentifier(i.name),{suffix:", "})),s.length){let d;if(typeof o.organizeImportsIgnoreCase=="boolean")d=o.organizeImportsIgnoreCase;else if(f){const k=Xp.detectImportSpecifierSorting(f,o);k!==3&&(d=k===2)}d===void 0&&(d=Xp.detectSorting(t,o)===2);const y=Xp.getOrganizeImportsComparer(o,d),S=Bh(s.map(k=>I.createImportSpecifier((!n.isTypeOnly||u)&&CX(k,o),void 0,I.createIdentifier(k.name))),(k,w)=>Xp.compareImportOrExportSpecifiers(k,w,y)),T=(f==null?void 0:f.length)&&Xp.detectImportSpecifierSorting(f,o);if(T&&!(d&&T===1))for(const k of S){const w=u&&!k.isTypeOnly?0:Xp.getImportSpecifierInsertionIndex(f,k,y,o);e.insertImportSpecifierAtIndex(t,k,n.namedBindings,w)}else if(f!=null&&f.length)for(const k of S)e.insertNodeInListAfter(t,ka(f),k,f);else if(S.length){const k=I.createNamedImports(S);n.namedBindings?e.replaceNode(t,n.namedBindings,k):e.insertNodeAfter(t,E.checkDefined(n.name,"Import clause must have either named imports or a default import"),k)}}if(u&&(e.delete(t,gG(n,t)),f))for(const d of f)e.insertModifierBefore(t,156,d);function g(d,y,S){const T=I.createBindingElement(void 0,S,y);d.elements.length?e.insertNodeInListAfter(t,ka(d.elements),T):e.replaceNode(t,d,I.createObjectBindingPattern([T]))}}function Fue(e,t,{namespacePrefix:n,usagePosition:i}){e.insertText(t,i,n+".")}function E6e(e,t,{moduleSpecifier:n,usagePosition:i},s){e.insertText(t,i,P6e(n,s))}function P6e(e,t){const n=mG(t);return`import(${n}${e}${n}).`}function Oue({addAsTypeOnly:e}){return e===2}function CX(e,t){return Oue(e)||!!t.preferTypeOnlyAutoImports&&e.addAsTypeOnly!==4}function D6e(e,t,n,i,s,o,c){const u=wx(e,t);let f;if(n!==void 0||i!=null&&i.length){const g=(!n||Oue(n))&&Wi(i,Oue)||(o.verbatimModuleSyntax||c.preferTypeOnlyAutoImports)&&(n==null?void 0:n.addAsTypeOnly)!==4&&!ct(i,d=>d.addAsTypeOnly===4);f=Dk(f,_0(n&&I.createIdentifier(n.name),i==null?void 0:i.map(d=>I.createImportSpecifier(!g&&CX(d,c),void 0,I.createIdentifier(d.name))),e,t,g))}if(s){const g=s.importKind===3?I.createImportEqualsDeclaration(void 0,CX(s,c),I.createIdentifier(s.name),I.createExternalModuleReference(u)):I.createImportDeclaration(void 0,I.createImportClause(CX(s,c),void 0,I.createNamespaceImport(I.createIdentifier(s.name))),u,void 0);f=Dk(f,g)}return E.checkDefined(f)}function w6e(e,t,n,i,s){const o=wx(e,t);let c;if(n||i!=null&&i.length){const u=(i==null?void 0:i.map(({name:g})=>I.createBindingElement(void 0,void 0,g)))||[];n&&u.unshift(I.createBindingElement(void 0,"default",n.name));const f=A6e(I.createObjectBindingPattern(u),o);c=Dk(c,f)}if(s){const u=A6e(s.name,o);c=Dk(c,u)}return E.checkDefined(c)}function A6e(e,t){return I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(typeof e=="string"?I.createIdentifier(e):e,void 0,void 0,I.createCallExpression(I.createIdentifier("require"),void 0,[t]))],2))}function N6e({declarations:e},t){return ct(e,n=>!!(RA(n)&t))}function Lue(e,t,n){return Mue($u(yp(e.name)),t,n)}function Mue(e,t,n){const i=wc(Nk(e,"/index"));let s="",o=!0;const c=i.charCodeAt(0);fg(c,t)?(s+=String.fromCharCode(c),n&&(s=s.toUpperCase())):o=!1;for(let u=1;uIue(e,i,f,u,f!==g,o,n))},fixIds:[jue],getAllCodeActions:e=>{const{sourceFile:t,program:n,preferences:i,host:s,cancellationToken:o}=e,c=p6e(t,n,!0,i,s,o);return N6(e,Bue,u=>c.addImportFromDiagnostic(u,e)),A6(Kr.ChangeTracker.with(e,c.writeFixes))}})}});function I6e(e,t,n){const i=wn(e.getSemanticDiagnostics(t),c=>c.start===n.start&&c.length===n.length);if(i===void 0||i.relatedInformation===void 0)return;const s=wn(i.relatedInformation,c=>c.code===p.This_type_parameter_might_need_an_extends_0_constraint.code);if(s===void 0||s.file===void 0||s.start===void 0||s.length===void 0)return;let o=W_e(s.file,Wl(s.start,s.length));if(o!==void 0&&(Ie(o)&&Uo(o.parent)&&(o=o.parent),Uo(o))){if(jC(o.parent))return;const c=Ui(t,n.start),u=e.getTypeChecker();return{constraint:Uqe(u,c)||Vqe(s.messageText),declaration:o,token:c}}}function F6e(e,t,n,i,s,o){const{declaration:c,constraint:u}=o,f=t.getTypeChecker();if(ls(u))e.insertText(s,c.name.end,` extends ${u}`);else{const g=Fa(t.getCompilerOptions()),d=F6({program:t,host:i}),y=Lx(s,t,n,i),S=lQ(f,y,u,void 0,g,void 0,d);S&&(e.replaceNode(s,c,I.updateTypeParameterDeclaration(c,void 0,c.name,S,c.default)),y.writeFixes(e))}}function Vqe(e){const[,t]=em(e,` +`,0).match(/`extends (.*)`/)||[];return t}function Uqe(e,t){return ki(t.parent)?e.getTypeArgumentConstraint(t.parent):(ot(t)?e.getContextualType(t):void 0)||e.getTypeAtLocation(t)}var EX,Jue,qqe=Dt({"src/services/codefixes/fixAddMissingConstraint.ts"(){qn(),ra(),EX="addMissingConstraint",Jue=[p.Type_0_is_not_comparable_to_type_1.code,p.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,p.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,p.Type_0_is_not_assignable_to_type_1.code,p.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,p.Property_0_is_incompatible_with_index_signature.code,p.Property_0_in_type_1_is_not_assignable_to_type_2.code,p.Type_0_does_not_satisfy_the_constraint_1.code],ea({errorCodes:Jue,getCodeActions(e){const{sourceFile:t,span:n,program:i,preferences:s,host:o}=e,c=I6e(i,t,n);if(c===void 0)return;const u=Kr.ChangeTracker.with(e,f=>F6e(f,i,s,o,t,c));return[js(EX,u,p.Add_extends_constraint,EX,p.Add_extends_constraint_to_all_type_parameters)]},fixIds:[EX],getAllCodeActions:e=>{const{program:t,preferences:n,host:i}=e,s=new Map;return A6(Kr.ChangeTracker.with(e,o=>{N6(e,Jue,c=>{const u=I6e(t,c.file,Wl(c.start,c.length));if(u&&Vp(s,Oa(u.declaration)))return F6e(o,t,n,i,c.file,u)})}))}})}});function O6e(e,t,n,i){switch(n){case p.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case p.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case p.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case p.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case p.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return Hqe(e,t.sourceFile,i);case p.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case p.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return Gqe(e,t.sourceFile,i);default:E.fail("Unexpected error code: "+n)}}function Hqe(e,t,n){const i=M6e(t,n);if(Ou(t)){e.addJSDocTags(t,i,[I.createJSDocOverrideTag(I.createIdentifier("override"))]);return}const s=i.modifiers||Ve,o=wn(s,nx),c=wn(s,Qne),u=wn(s,y=>sG(y.kind)),f=gT(s,ql),g=c?c.end:o?o.end:u?u.end:f?ca(t.text,f.end):i.getStart(t),d=u||o||c?{prefix:" "}:{suffix:" "};e.insertModifierAt(t,g,164,d)}function Gqe(e,t,n){const i=M6e(t,n);if(Ou(t)){e.filterJSDocTags(t,i,s7(PO));return}const s=wn(i.modifiers,Yne);E.assertIsDefined(s),e.deleteModifier(t,s)}function L6e(e){switch(e.kind){case 176:case 172:case 174:case 177:case 178:return!0;case 169:return O_(e,e.parent);default:return!1}}function M6e(e,t){const n=Ui(e,t),i=Pr(n,s=>$n(s)?"quit":L6e(s));return E.assert(i&&L6e(i)),i}var zue,pP,wN,Wue,Vue,$qe=Dt({"src/services/codefixes/fixOverrideModifier.ts"(){qn(),ra(),zue="fixOverrideModifier",pP="fixAddOverrideModifier",wN="fixRemoveOverrideModifier",Wue=[p.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,p.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,p.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,p.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,p.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,p.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,p.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],Vue={[p.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:p.Add_override_modifier,fixId:pP,fixAllDescriptions:p.Add_all_missing_override_modifiers},[p.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:p.Add_override_modifier,fixId:pP,fixAllDescriptions:p.Add_all_missing_override_modifiers},[p.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:p.Remove_override_modifier,fixId:wN,fixAllDescriptions:p.Remove_all_unnecessary_override_modifiers},[p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:p.Remove_override_modifier,fixId:wN,fixAllDescriptions:p.Remove_override_modifier},[p.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]:{descriptions:p.Add_override_modifier,fixId:pP,fixAllDescriptions:p.Add_all_missing_override_modifiers},[p.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:p.Add_override_modifier,fixId:pP,fixAllDescriptions:p.Add_all_missing_override_modifiers},[p.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]:{descriptions:p.Add_override_modifier,fixId:pP,fixAllDescriptions:p.Remove_all_unnecessary_override_modifiers},[p.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:p.Remove_override_modifier,fixId:wN,fixAllDescriptions:p.Remove_all_unnecessary_override_modifiers},[p.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:p.Remove_override_modifier,fixId:wN,fixAllDescriptions:p.Remove_all_unnecessary_override_modifiers}},ea({errorCodes:Wue,getCodeActions:function(t){const{errorCode:n,span:i}=t,s=Vue[n];if(!s)return Ve;const{descriptions:o,fixId:c,fixAllDescriptions:u}=s,f=Kr.ChangeTracker.with(t,g=>O6e(g,t,n,i.start));return[tue(zue,f,o,c,u)]},fixIds:[zue,pP,wN],getAllCodeActions:e=>Ga(e,Wue,(t,n)=>{const{code:i,start:s}=n,o=Vue[i];!o||o.fixId!==e.fixId||O6e(t,e,i,s)})})}});function R6e(e,t,n,i){const s=Df(t,i),o=I.createStringLiteral(n.name.text,s===0);e.replaceNode(t,n,W7(n)?I.createElementAccessChain(n.expression,n.questionDotToken,o):I.createElementAccessExpression(n.expression,o))}function j6e(e,t){return Ls(Ui(e,t).parent,Sn)}var PX,Uue,Xqe=Dt({"src/services/codefixes/fixNoPropertyAccessFromIndexSignature.ts"(){qn(),ra(),PX="fixNoPropertyAccessFromIndexSignature",Uue=[p.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code],ea({errorCodes:Uue,fixIds:[PX],getCodeActions(e){const{sourceFile:t,span:n,preferences:i}=e,s=j6e(t,n.start),o=Kr.ChangeTracker.with(e,c=>R6e(c,e.sourceFile,s,i));return[js(PX,o,[p.Use_element_access_for_0,s.name.text],PX,p.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:e=>Ga(e,Uue,(t,n)=>R6e(t,n.file,j6e(n.file,n.start),e.preferences))})}});function B6e(e,t,n,i){const s=Ui(t,n);if(!g6(s))return;const o=a_(s,!1,!1);if(!(!Xc(o)&&!lo(o))&&!Ni(a_(o,!1,!1))){const c=E.checkDefined(qa(o,100,t)),{name:u}=o,f=E.checkDefined(o.body);return lo(o)?u&&uo.Core.isSymbolReferencedInFile(u,i,t,f)?void 0:(e.delete(t,c),u&&e.delete(t,u),e.insertText(t,f.pos," =>"),[p.Convert_function_expression_0_to_arrow_function,u?u.text:rM]):(e.replaceNode(t,c,I.createToken(87)),e.insertText(t,u.end," = "),e.insertText(t,f.pos," =>"),[p.Convert_function_declaration_0_to_arrow_function,u.text])}}var DX,que,Qqe=Dt({"src/services/codefixes/fixImplicitThis.ts"(){qn(),ra(),DX="fixImplicitThis",que=[p.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],ea({errorCodes:que,getCodeActions:function(t){const{sourceFile:n,program:i,span:s}=t;let o;const c=Kr.ChangeTracker.with(t,u=>{o=B6e(u,n,s.start,i.getTypeChecker())});return o?[js(DX,c,o,DX,p.Fix_all_implicit_this_errors)]:Ve},fixIds:[DX],getAllCodeActions:e=>Ga(e,que,(t,n)=>{B6e(t,n.file,n.start,e.program.getTypeChecker())})})}});function J6e(e,t,n){var i,s;const o=Ui(e,t);if(Ie(o)){const c=Pr(o,sl);if(c===void 0)return;const u=aa(c.moduleSpecifier)?c.moduleSpecifier:void 0;if(u===void 0)return;const f=(i=n.getResolvedModuleFromModuleSpecifier(u))==null?void 0:i.resolvedModule;if(f===void 0)return;const g=n.getSourceFile(f.resolvedFileName);if(g===void 0||x6(n,g))return;const d=g.symbol,y=(s=Wn(d.valueDeclaration,Dm))==null?void 0:s.locals;if(y===void 0)return;const S=y.get(o.escapedText);if(S===void 0)return;const T=Zqe(S);return T===void 0?void 0:{exportName:{node:o,isTypeOnly:NC(T)},node:T,moduleSourceFile:g,moduleSpecifier:u.text}}}function Yqe(e,t,{exportName:n,node:i,moduleSourceFile:s}){const o=wX(s,n.isTypeOnly);o?z6e(e,t,s,o,[n]):sw(i)?e.insertExportModifier(s,i):W6e(e,t,s,[n])}function Hue(e,t,n,i,s){mr(i)&&(s?z6e(e,t,n,s,i):W6e(e,t,n,i))}function wX(e,t){const n=i=>Tc(i)&&(t&&i.isTypeOnly||!i.isTypeOnly);return gT(e.statements,n)}function z6e(e,t,n,i,s){const o=i.exportClause&&$f(i.exportClause)?i.exportClause.elements:I.createNodeArray([]),c=!i.isTypeOnly&&!!(Tp(t.getCompilerOptions())||wn(o,u=>u.isTypeOnly));e.replaceNode(n,i,I.updateExportDeclaration(i,i.modifiers,i.isTypeOnly,I.createNamedExports(I.createNodeArray([...o,...V6e(s,c)],o.hasTrailingComma)),i.moduleSpecifier,i.attributes))}function W6e(e,t,n,i){e.insertNodeAtEndOfScope(n,n,I.createExportDeclaration(void 0,!1,I.createNamedExports(V6e(i,Tp(t.getCompilerOptions()))),void 0,void 0))}function V6e(e,t){return I.createNodeArray(nr(e,n=>I.createExportSpecifier(t&&n.isTypeOnly,void 0,n.node)))}function Zqe(e){if(e.valueDeclaration===void 0)return bl(e.declarations);const t=e.valueDeclaration,n=hi(t)?Wn(t.parent.parent,ac):void 0;return n&&mr(n.declarationList.declarations)===1?n:t}var AX,Gue,Kqe=Dt({"src/services/codefixes/fixImportNonExportedMember.ts"(){qn(),ra(),AX="fixImportNonExportedMember",Gue=[p.Module_0_declares_1_locally_but_it_is_not_exported.code],ea({errorCodes:Gue,fixIds:[AX],getCodeActions(e){const{sourceFile:t,span:n,program:i}=e,s=J6e(t,n.start,i);if(s===void 0)return;const o=Kr.ChangeTracker.with(e,c=>Yqe(c,i,s));return[js(AX,o,[p.Export_0_from_module_1,s.exportName.node.text,s.moduleSpecifier],AX,p.Export_all_referenced_locals)]},getAllCodeActions(e){const{program:t}=e;return A6(Kr.ChangeTracker.with(e,n=>{const i=new Map;N6(e,Gue,s=>{const o=J6e(s.file,s.start,t);if(o===void 0)return;const{exportName:c,node:u,moduleSourceFile:f}=o;if(wX(f,c.isTypeOnly)===void 0&&sw(u))n.insertExportModifier(f,u);else{const g=i.get(f)||{typeOnlyExports:[],exports:[]};c.isTypeOnly?g.typeOnlyExports.push(c):g.exports.push(c),i.set(f,g)}}),i.forEach((s,o)=>{const c=wX(o,!0);c&&c.isTypeOnly?(Hue(n,t,o,s.typeOnlyExports,c),Hue(n,t,o,s.exports,wX(o,!1))):Hue(n,t,o,[...s.exports,...s.typeOnlyExports],c)})}))}})}});function eHe(e,t){const n=Ui(e,t);return Pr(n,i=>i.kind===202)}function tHe(e,t,n){if(!n)return;let i=n.type,s=!1,o=!1;for(;i.kind===190||i.kind===191||i.kind===196;)i.kind===190?s=!0:i.kind===191&&(o=!0),i=i.type;const c=I.updateNamedTupleMember(n,n.dotDotDotToken||(o?I.createToken(26):void 0),n.name,n.questionToken||(s?I.createToken(58):void 0),i);c!==n&&e.replaceNode(t,n,c)}var NX,U6e,rHe=Dt({"src/services/codefixes/fixIncorrectNamedTupleSyntax.ts"(){qn(),ra(),NX="fixIncorrectNamedTupleSyntax",U6e=[p.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,p.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code],ea({errorCodes:U6e,getCodeActions:function(t){const{sourceFile:n,span:i}=t,s=eHe(n,i.start),o=Kr.ChangeTracker.with(t,c=>tHe(c,n,s));return[js(NX,o,p.Move_labeled_tuple_element_modifiers_to_labels,NX,p.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[NX]})}});function q6e(e,t,n,i){const s=Ui(e,t),o=s.parent;if((i===p.No_overload_matches_this_call.code||i===p.Type_0_is_not_assignable_to_type_1.code)&&!Kd(o))return;const c=n.program.getTypeChecker();let u;if(Sn(o)&&o.name===s){E.assert(pg(s),"Expected an identifier for spelling (property access)");let f=c.getTypeAtLocation(o.expression);o.flags&64&&(f=c.getNonNullableType(f)),u=c.getSuggestedSymbolForNonexistentProperty(s,f)}else if(Zr(o)&&o.operatorToken.kind===103&&o.left===s&&Pi(s)){const f=c.getTypeAtLocation(o.right);u=c.getSuggestedSymbolForNonexistentProperty(s,f)}else if(Xu(o)&&o.right===s){const f=c.getSymbolAtLocation(o.left);f&&f.flags&1536&&(u=c.getSuggestedSymbolForNonexistentModule(o.right,f))}else if(x_(o)&&o.name===s){E.assertNode(s,Ie,"Expected an identifier for spelling (import)");const f=Pr(s,sl),g=iHe(n,f);g&&g.symbol&&(u=c.getSuggestedSymbolForNonexistentModule(s,g.symbol))}else if(Kd(o)&&o.name===s){E.assertNode(s,Ie,"Expected an identifier for JSX attribute");const f=Pr(s,Fu),g=c.getContextualTypeForArgumentAtIndex(f,0);u=c.getSuggestedSymbolForNonexistentJSXAttribute(s,g)}else if(X5(o)&&Tl(o)&&o.name===s){const f=Pr(s,$n),g=f?Vd(f):void 0,d=g?c.getTypeAtLocation(g):void 0;d&&(u=c.getSuggestedSymbolForNonexistentClassMember(jc(s),d))}else{const f=aS(s),g=jc(s);E.assert(g!==void 0,"name should be defined"),u=c.getSuggestedSymbolForNonexistentSymbol(s,g,nHe(f))}return u===void 0?void 0:{node:s,suggestedSymbol:u}}function H6e(e,t,n,i,s){const o=Xo(i);if(!bf(o,s)&&Sn(n.parent)){const c=i.valueDeclaration;c&&Nu(c)&&Pi(c.name)?e.replaceNode(t,n,I.createIdentifier(o)):e.replaceNode(t,n.parent,I.createElementAccessExpression(n.parent.expression,I.createStringLiteral(o)))}else e.replaceNode(t,n,I.createIdentifier(o))}function nHe(e){let t=0;return e&4&&(t|=1920),e&2&&(t|=788968),e&1&&(t|=111551),t}function iHe(e,t){var n;if(!t||!Ma(t.moduleSpecifier))return;const i=(n=e.program.getResolvedModuleFromModuleSpecifier(t.moduleSpecifier))==null?void 0:n.resolvedModule;if(i)return e.program.getSourceFile(i.resolvedFileName)}var $ue,Xue,sHe=Dt({"src/services/codefixes/fixSpelling.ts"(){qn(),ra(),$ue="fixSpelling",Xue=[p.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,p.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,p.Cannot_find_name_0_Did_you_mean_1.code,p.Could_not_find_name_0_Did_you_mean_1.code,p.Cannot_find_namespace_0_Did_you_mean_1.code,p.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,p.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,p._0_has_no_exported_member_named_1_Did_you_mean_2.code,p.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,p.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,p.No_overload_matches_this_call.code,p.Type_0_is_not_assignable_to_type_1.code],ea({errorCodes:Xue,getCodeActions(e){const{sourceFile:t,errorCode:n}=e,i=q6e(t,e.span.start,e,n);if(!i)return;const{node:s,suggestedSymbol:o}=i,c=Fa(e.host.getCompilationSettings()),u=Kr.ChangeTracker.with(e,f=>H6e(f,t,s,o,c));return[js("spelling",u,[p.Change_spelling_to_0,Xo(o)],$ue,p.Fix_all_detected_spelling_errors)]},fixIds:[$ue],getAllCodeActions:e=>Ga(e,Xue,(t,n)=>{const i=q6e(n.file,n.start,e,n.code),s=Fa(e.host.getCompilationSettings());i&&H6e(t,e.sourceFile,i.node,i.suggestedSymbol,s)})})}});function G6e(e,t,n){const i=e.createSymbol(4,t.escapedText);i.links.type=e.getTypeAtLocation(n);const s=Bs([i]);return e.createAnonymousType(void 0,s,[],[],[])}function Que(e,t,n,i){if(!t.body||!Cs(t.body)||mr(t.body.statements)!==1)return;const s=va(t.body.statements);if(Cl(s)&&Yue(e,t,e.getTypeAtLocation(s.expression),n,i))return{declaration:t,kind:0,expression:s.expression,statement:s,commentSource:s.expression};if(c2(s)&&Cl(s.statement)){const o=I.createObjectLiteralExpression([I.createPropertyAssignment(s.label,s.statement.expression)]),c=G6e(e,s.label,s.statement.expression);if(Yue(e,t,c,n,i))return mo(t)?{declaration:t,kind:1,expression:o,statement:s,commentSource:s.statement.expression}:{declaration:t,kind:0,expression:o,statement:s,commentSource:s.statement.expression}}else if(Cs(s)&&mr(s.statements)===1){const o=va(s.statements);if(c2(o)&&Cl(o.statement)){const c=I.createObjectLiteralExpression([I.createPropertyAssignment(o.label,o.statement.expression)]),u=G6e(e,o.label,o.statement.expression);if(Yue(e,t,u,n,i))return{declaration:t,kind:0,expression:c,statement:s,commentSource:o}}}}function Yue(e,t,n,i,s){if(s){const o=e.getSignatureFromDeclaration(t);if(o){Rn(t,1024)&&(n=e.createPromiseType(n));const c=e.createSignature(t,o.typeParameters,o.thisParameter,o.parameters,n,void 0,o.minArgumentCount,o.flags);n=e.createAnonymousType(void 0,Bs(),[c],[],[])}else n=e.getAnyType()}return e.isTypeAssignableTo(n,i)}function $6e(e,t,n,i){const s=Ui(t,n);if(!s.parent)return;const o=Pr(s.parent,po);switch(i){case p.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code:return!o||!o.body||!o.type||!Pf(o.type,s)?void 0:Que(e,o,e.getTypeFromTypeNode(o.type),!1);case p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!o||!Rs(o.parent)||!o.body)return;const c=o.parent.arguments.indexOf(o);if(c===-1)return;const u=e.getContextualTypeForArgumentAtIndex(o.parent,c);return u?Que(e,o,u,!0):void 0;case p.Type_0_is_not_assignable_to_type_1.code:if(!eh(s)||!nC(s.parent)&&!Kd(s.parent))return;const f=aHe(s.parent);return!f||!po(f)||!f.body?void 0:Que(e,f,e.getTypeAtLocation(s.parent),!0)}}function aHe(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:return e.initializer;case 291:return e.initializer&&(g3(e.initializer)?e.initializer.expression:void 0);case 304:case 171:case 306:case 355:case 348:return}}function X6e(e,t,n,i){U_(n);const s=nN(t);e.replaceNode(t,i,I.createReturnStatement(n),{leadingTriviaOption:Kr.LeadingTriviaOption.Exclude,trailingTriviaOption:Kr.TrailingTriviaOption.Exclude,suffix:s?";":void 0})}function Q6e(e,t,n,i,s,o){const c=JL(i)?I.createParenthesizedExpression(i):i;U_(s),lS(s,c),e.replaceNode(t,n.body,c)}function Y6e(e,t,n,i){e.replaceNode(t,n.body,I.createParenthesizedExpression(i))}function oHe(e,t,n){const i=Kr.ChangeTracker.with(e,s=>X6e(s,e.sourceFile,t,n));return js(IX,i,p.Add_a_return_statement,FX,p.Add_all_missing_return_statement)}function cHe(e,t,n,i){const s=Kr.ChangeTracker.with(e,o=>Q6e(o,e.sourceFile,t,n,i));return js(IX,s,p.Remove_braces_from_arrow_function_body,OX,p.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function lHe(e,t,n){const i=Kr.ChangeTracker.with(e,s=>Y6e(s,e.sourceFile,t,n));return js(IX,i,p.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,LX,p.Wrap_all_object_literal_with_parentheses)}var IX,FX,OX,LX,Zue,uHe=Dt({"src/services/codefixes/returnValueCorrect.ts"(){qn(),ra(),IX="returnValueCorrect",FX="fixAddReturnStatement",OX="fixRemoveBracesFromArrowFunctionBody",LX="fixWrapTheBlockWithParen",Zue=[p.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code,p.Type_0_is_not_assignable_to_type_1.code,p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code],ea({errorCodes:Zue,fixIds:[FX,OX,LX],getCodeActions:function(t){const{program:n,sourceFile:i,span:{start:s},errorCode:o}=t,c=$6e(n.getTypeChecker(),i,s,o);if(c)return c.kind===0?_r([oHe(t,c.expression,c.statement)],mo(c.declaration)?cHe(t,c.declaration,c.expression,c.commentSource):void 0):[lHe(t,c.declaration,c.expression)]},getAllCodeActions:e=>Ga(e,Zue,(t,n)=>{const i=$6e(e.program.getTypeChecker(),n.file,n.start,n.code);if(i)switch(e.fixId){case FX:X6e(t,n.file,i.expression,i.statement);break;case OX:if(!mo(i.declaration))return;Q6e(t,n.file,i.declaration,i.expression,i.commentSource);break;case LX:if(!mo(i.declaration))return;Y6e(t,n.file,i.declaration,i.expression);break;default:E.fail(JSON.stringify(e.fixId))}})})}});function Z6e(e,t,n,i,s){var o;const c=Ui(e,t),u=c.parent;if(n===p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(!(c.kind===19&&ua(u)&&Rs(u.parent)))return;const T=vc(u.parent.arguments,F=>F===u);if(T<0)return;const k=i.getResolvedSignature(u.parent);if(!(k&&k.declaration&&k.parameters[T]))return;const w=k.parameters[T].valueDeclaration;if(!(w&&rs(w)&&Ie(w.name)))return;const P=gs(i.getUnmatchedProperties(i.getTypeAtLocation(u),i.getParameterType(k,T),!1,!1));return mr(P)?{kind:3,token:w.name,identifier:w.name.text,properties:P,parentDeclaration:u}:void 0}if(c.kind===19&&ua(u)){const T=i.getContextualType(u)||i.getTypeAtLocation(u),k=gs(i.getUnmatchedProperties(i.getTypeAtLocation(u),T,!1,!1));return mr(k)?{kind:3,token:u,identifier:"",properties:k,parentDeclaration:u}:void 0}if(!pg(c))return;if(Ie(c)&&Y0(u)&&u.initializer&&ua(u.initializer)){const T=i.getContextualType(c)||i.getTypeAtLocation(c),k=gs(i.getUnmatchedProperties(i.getTypeAtLocation(u.initializer),T,!1,!1));return mr(k)?{kind:3,token:c,identifier:c.text,properties:k,parentDeclaration:u.initializer}:void 0}if(Ie(c)&&Fu(c.parent)){const T=Fa(s.getCompilerOptions()),k=hHe(i,T,c.parent);return mr(k)?{kind:4,token:c,attributes:k,parentDeclaration:c.parent}:void 0}if(Ie(c)){const T=(o=i.getContextualType(c))==null?void 0:o.getNonNullableType();if(T&&bn(T)&16){const k=bl(i.getSignaturesOfType(T,0));return k===void 0?void 0:{kind:5,token:c,signature:k,sourceFile:e,parentDeclaration:l4e(c)}}if(Rs(u)&&u.expression===c)return{kind:2,token:c,call:u,sourceFile:e,modifierFlags:0,parentDeclaration:l4e(c)}}if(!Sn(u))return;const f=_G(i.getTypeAtLocation(u.expression)),g=f.symbol;if(!g||!g.declarations)return;if(Ie(c)&&Rs(u.parent)){const T=wn(g.declarations,Sc),k=T==null?void 0:T.getSourceFile();if(T&&k&&!x6(s,k))return{kind:2,token:c,call:u.parent,sourceFile:e,modifierFlags:32,parentDeclaration:T};const w=wn(g.declarations,Ni);if(e.commonJsModuleIndicator)return;if(w&&!x6(s,w))return{kind:2,token:c,call:u.parent,sourceFile:w,modifierFlags:32,parentDeclaration:w}}const d=wn(g.declarations,$n);if(!d&&Pi(c))return;const y=d||wn(g.declarations,T=>Bu(T)||z_(T));if(y&&!x6(s,y.getSourceFile())){const T=!z_(y)&&(f.target||f)!==i.getDeclaredTypeOfSymbol(g);if(T&&(Pi(c)||Bu(y)))return;const k=y.getSourceFile(),w=z_(y)?0:(T?256:0)|(jG(c.text)?2:0),P=Ou(k),F=Wn(u.parent,Rs);return{kind:0,token:c,call:F,modifierFlags:w,parentDeclaration:y,declSourceFile:k,isJSFile:P}}const S=wn(g.declarations,L1);if(S&&!(f.flags&1056)&&!Pi(c)&&!x6(s,S.getSourceFile()))return{kind:1,token:c,parentDeclaration:S}}function _He(e,t){return t.isJSFile?ST(fHe(e,t)):pHe(e,t)}function fHe(e,{parentDeclaration:t,declSourceFile:n,modifierFlags:i,token:s}){if(Bu(t)||z_(t))return;const o=Kr.ChangeTracker.with(e,u=>K6e(u,n,t,s,!!(i&256)));if(o.length===0)return;const c=i&256?p.Initialize_static_property_0:Pi(s)?p.Declare_a_private_field_named_0:p.Initialize_property_0_in_the_constructor;return js(Sy,o,[c,s.text],Sy,p.Add_all_missing_members)}function K6e(e,t,n,i,s){const o=i.text;if(s){if(n.kind===231)return;const c=n.name.getText(),u=e4e(I.createIdentifier(c),o);e.insertNodeAfter(t,n,u)}else if(Pi(i)){const c=I.createPropertyDeclaration(void 0,o,void 0,void 0,void 0),u=n4e(n);u?e.insertNodeAfter(t,u,c):e.insertMemberAtStart(t,n,c)}else{const c=Sg(n);if(!c)return;const u=e4e(I.createThis(),o);e.insertNodeAtConstructorEnd(t,c,u)}}function e4e(e,t){return I.createExpressionStatement(I.createAssignment(I.createPropertyAccessExpression(e,t),Mx()))}function pHe(e,{parentDeclaration:t,declSourceFile:n,modifierFlags:i,token:s}){const o=s.text,c=i&256,u=t4e(e.program.getTypeChecker(),t,s),f=d=>Kr.ChangeTracker.with(e,y=>r4e(y,n,t,o,u,d)),g=[js(Sy,f(i&256),[c?p.Declare_static_property_0:p.Declare_property_0,o],Sy,p.Add_all_missing_members)];return c||Pi(s)||(i&2&&g.unshift(Sd(Sy,f(2),[p.Declare_private_property_0,o])),g.push(dHe(e,n,t,s.text,u))),g}function t4e(e,t,n){let i;if(n.parent.parent.kind===226){const s=n.parent.parent,o=n.parent===s.left?s.right:s.left,c=e.getWidenedType(e.getBaseTypeOfLiteralType(e.getTypeAtLocation(o)));i=e.typeToTypeNode(c,t,1)}else{const s=e.getContextualType(n.parent);i=s?e.typeToTypeNode(s,void 0,1):void 0}return i||I.createKeywordTypeNode(133)}function r4e(e,t,n,i,s,o){const c=o?I.createNodeArray(I.createModifiersFromModifierFlags(o)):void 0,u=$n(n)?I.createPropertyDeclaration(c,i,void 0,s,void 0):I.createPropertySignature(void 0,i,void 0,s),f=n4e(n);f?e.insertNodeAfter(t,f,u):e.insertMemberAtStart(t,n,u)}function n4e(e){let t;for(const n of e.members){if(!xs(n))break;t=n}return t}function dHe(e,t,n,i,s){const o=I.createKeywordTypeNode(154),c=I.createParameterDeclaration(void 0,void 0,"x",void 0,o,void 0),u=I.createIndexSignature(void 0,[c],s),f=Kr.ChangeTracker.with(e,g=>g.insertMemberAtStart(t,n,u));return Sd(Sy,f,[p.Add_index_signature_for_property_0,i])}function mHe(e,t){const{parentDeclaration:n,declSourceFile:i,modifierFlags:s,token:o,call:c}=t;if(c===void 0)return;const u=o.text,f=d=>Kr.ChangeTracker.with(e,y=>i4e(e,y,c,o,d,n,i)),g=[js(Sy,f(s&256),[s&256?p.Declare_static_method_0:p.Declare_method_0,u],Sy,p.Add_all_missing_members)];return s&2&&g.unshift(Sd(Sy,f(2),[p.Declare_private_method_0,u])),g}function i4e(e,t,n,i,s,o,c){const u=Lx(c,e.program,e.preferences,e.host),f=$n(o)?174:173,g=M_e(f,e,u,n,i,s,o),d=yHe(o,n);d?t.insertNodeAfter(c,d,g):t.insertMemberAtStart(c,o,g),u.writeFixes(t)}function s4e(e,t,{token:n,parentDeclaration:i}){const s=ct(i.members,f=>{const g=t.getTypeAtLocation(f);return!!(g&&g.flags&402653316)}),o=i.getSourceFile(),c=I.createEnumMember(n,s?I.createStringLiteral(n.text):void 0),u=Do(i.members);u?e.insertNodeInListAfter(o,u,c,i.members):e.insertMemberAtStart(o,i,c)}function a4e(e,t,n){const i=Df(t.sourceFile,t.preferences),s=Lx(t.sourceFile,t.program,t.preferences,t.host),o=n.kind===2?M_e(262,t,s,n.call,on(n.token),n.modifierFlags,n.parentDeclaration):cQ(262,t,i,n.signature,UM(p.Function_not_implemented.message,i),n.token,void 0,void 0,void 0,s);o===void 0&&E.fail("fixMissingFunctionDeclaration codefix got unexpected error."),Up(n.parentDeclaration)?e.insertNodeBefore(n.sourceFile,n.parentDeclaration,o,!0):e.insertNodeAtEndOfScope(n.sourceFile,n.parentDeclaration,o),s.writeFixes(e)}function o4e(e,t,n){const i=Lx(t.sourceFile,t.program,t.preferences,t.host),s=Df(t.sourceFile,t.preferences),o=t.program.getTypeChecker(),c=n.parentDeclaration.attributes,u=ct(c.properties,dx),f=nr(n.attributes,y=>{const S=MX(t,o,i,s,o.getTypeOfSymbol(y),n.parentDeclaration),T=I.createIdentifier(y.name),k=I.createJsxAttribute(T,I.createJsxExpression(void 0,S));return ba(T,k),k}),g=I.createJsxAttributes(u?[...f,...c.properties]:[...c.properties,...f]),d={prefix:c.pos===c.end?" ":void 0};e.replaceNode(t.sourceFile,c,g,d),i.writeFixes(e)}function c4e(e,t,n){const i=Lx(t.sourceFile,t.program,t.preferences,t.host),s=Df(t.sourceFile,t.preferences),o=Fa(t.program.getCompilerOptions()),c=t.program.getTypeChecker(),u=nr(n.properties,g=>{const d=MX(t,c,i,s,c.getTypeOfSymbol(g),n.parentDeclaration);return I.createPropertyAssignment(vHe(g,o,s,c),d)}),f={leadingTriviaOption:Kr.LeadingTriviaOption.Exclude,trailingTriviaOption:Kr.TrailingTriviaOption.Exclude,indentation:n.indentation};e.replaceNode(t.sourceFile,n.parentDeclaration,I.createObjectLiteralExpression([...n.parentDeclaration.properties,...u],!0),f),i.writeFixes(e)}function MX(e,t,n,i,s,o){if(s.flags&3)return Mx();if(s.flags&134217732)return I.createStringLiteral("",i===0);if(s.flags&8)return I.createNumericLiteral(0);if(s.flags&64)return I.createBigIntLiteral("0n");if(s.flags&16)return I.createFalse();if(s.flags&1056){const c=s.symbol.exports?YI(s.symbol.exports.values()):s.symbol,u=t.symbolToExpression(s.symbol.parent?s.symbol.parent:s.symbol,111551,void 0,64);return c===void 0||u===void 0?I.createNumericLiteral(0):I.createPropertyAccessExpression(u,t.symbolToString(c))}if(s.flags&256)return I.createNumericLiteral(s.value);if(s.flags&2048)return I.createBigIntLiteral(s.value);if(s.flags&128)return I.createStringLiteral(s.value,i===0);if(s.flags&512)return s===t.getFalseType()||s===t.getFalseType(!0)?I.createFalse():I.createTrue();if(s.flags&65536)return I.createNull();if(s.flags&1048576)return Qa(s.types,u=>MX(e,t,n,i,u,o))??Mx();if(t.isArrayLikeType(s))return I.createArrayLiteralExpression();if(gHe(s)){const c=nr(t.getPropertiesOfType(s),u=>{const f=MX(e,t,n,i,t.getTypeOfSymbol(u),o);return I.createPropertyAssignment(u.name,f)});return I.createObjectLiteralExpression(c,!0)}if(bn(s)&16){if(wn(s.symbol.declarations||Ve,fd(Mm,Lm,hc))===void 0)return Mx();const u=t.getSignaturesOfType(s,0);return u===void 0?Mx():cQ(218,e,i,u[0],UM(p.Function_not_implemented.message,i),void 0,void 0,void 0,o,n)??Mx()}if(bn(s)&1){const c=rh(s.symbol);if(c===void 0||Zv(c))return Mx();const u=Sg(c);return u&&mr(u.parameters)?Mx():I.createNewExpression(I.createIdentifier(s.symbol.name),void 0,void 0)}return Mx()}function Mx(){return I.createIdentifier("undefined")}function gHe(e){return e.flags&524288&&(bn(e)&128||e.symbol&&Wn(Tm(e.symbol.declarations),z_))}function hHe(e,t,n){const i=e.getContextualType(n.attributes);if(i===void 0)return Ve;const s=i.getProperties();if(!mr(s))return Ve;const o=new Set;for(const c of n.attributes.properties)if(Kd(c)&&o.add(e3(c.name)),dx(c)){const u=e.getTypeAtLocation(c.expression);for(const f of u.getProperties())o.add(f.escapedName)}return An(s,c=>bf(c.name,t,1)&&!(c.flags&16777216||Ko(c)&48||o.has(c.escapedName)))}function yHe(e,t){if(z_(e))return;const n=Pr(t,i=>hc(i)||sc(i));return n&&n.parent===e?n:void 0}function vHe(e,t,n,i){if(wm(e)){const s=i.symbolToNode(e,111551,void 0,1073741824);if(s&&Pa(s))return s}return xF(e.name,t,n===0,!1,!1)}function l4e(e){if(Pr(e,g3)){const t=Pr(e.parent,Up);if(t)return t}return wr(e)}var Sy,MM,RM,jM,Kue,bHe=Dt({"src/services/codefixes/fixAddMissingMember.ts"(){qn(),ra(),Sy="fixMissingMember",MM="fixMissingProperties",RM="fixMissingAttributes",jM="fixMissingFunctionDeclaration",Kue=[p.Property_0_does_not_exist_on_type_1.code,p.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,p.Property_0_is_missing_in_type_1_but_required_in_type_2.code,p.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,p.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,p.Cannot_find_name_0.code],ea({errorCodes:Kue,getCodeActions(e){const t=e.program.getTypeChecker(),n=Z6e(e.sourceFile,e.span.start,e.errorCode,t,e.program);if(n){if(n.kind===3){const i=Kr.ChangeTracker.with(e,s=>c4e(s,e,n));return[js(MM,i,p.Add_missing_properties,MM,p.Add_all_missing_properties)]}if(n.kind===4){const i=Kr.ChangeTracker.with(e,s=>o4e(s,e,n));return[js(RM,i,p.Add_missing_attributes,RM,p.Add_all_missing_attributes)]}if(n.kind===2||n.kind===5){const i=Kr.ChangeTracker.with(e,s=>a4e(s,e,n));return[js(jM,i,[p.Add_missing_function_declaration_0,n.token.text],jM,p.Add_all_missing_function_declarations)]}if(n.kind===1){const i=Kr.ChangeTracker.with(e,s=>s4e(s,e.program.getTypeChecker(),n));return[js(Sy,i,[p.Add_missing_enum_member_0,n.token.text],Sy,p.Add_all_missing_members)]}return es(mHe(e,n),_He(e,n))}},fixIds:[Sy,jM,MM,RM],getAllCodeActions:e=>{const{program:t,fixId:n}=e,i=t.getTypeChecker(),s=new Map,o=new Map;return A6(Kr.ChangeTracker.with(e,c=>{N6(e,Kue,u=>{const f=Z6e(u.file,u.start,u.code,i,e.program);if(!(!f||!Vp(s,Oa(f.parentDeclaration)+"#"+(f.kind===3?f.identifier:f.token.text)))){if(n===jM&&(f.kind===2||f.kind===5))a4e(c,e,f);else if(n===MM&&f.kind===3)c4e(c,e,f);else if(n===RM&&f.kind===4)o4e(c,e,f);else if(f.kind===1&&s4e(c,i,f),f.kind===0){const{parentDeclaration:g,token:d}=f,y=J4(o,g,()=>[]);y.some(S=>S.token.text===d.text)||y.push(f)}}}),o.forEach((u,f)=>{const g=z_(f)?void 0:U_e(f,i);for(const d of u){if(g!=null&&g.some(F=>{const J=o.get(F);return!!J&&J.some(({token:U})=>U.text===d.token.text)}))continue;const{parentDeclaration:y,declSourceFile:S,modifierFlags:T,token:k,call:w,isJSFile:P}=d;if(w&&!Pi(k))i4e(e,c,w,k,T&256,y,S);else if(P&&!Bu(y)&&!z_(y))K6e(c,S,y,k,!!(T&256));else{const F=t4e(i,y,k);r4e(c,S,y,k.text,F,T&256)}}})}))}})}});function u4e(e,t,n){const i=Ls(SHe(t,n),Rs),s=I.createNewExpression(i.expression,i.typeArguments,i.arguments);e.replaceNode(t,i,s)}function SHe(e,t){let n=Ui(e,t.start);const i=bc(t);for(;n.endu4e(s,t,n));return[js(RX,i,p.Add_missing_new_operator_to_call,RX,p.Add_missing_new_operator_to_all_calls)]},fixIds:[RX],getAllCodeActions:e=>Ga(e,e_e,(t,n)=>u4e(t,e.sourceFile,n))})}});function _4e(e,t,n){const i=Ui(e,n),s=Pr(i,Rs);if(s===void 0||mr(s.arguments)===0)return;const o=t.getTypeChecker(),c=o.getTypeAtLocation(s.expression),u=An(c.symbol.declarations,f4e);if(u===void 0)return;const f=Do(u);if(f===void 0||f.body===void 0||x6(t,f.getSourceFile()))return;const g=xHe(f);if(g===void 0)return;const d=[],y=[],S=mr(f.parameters),T=mr(s.arguments);if(S>T)return;const k=[f,...CHe(f,u)];for(let w=0,P=0,F=0;w{mr(s.parameters)?e.replaceNodeRangeWithNodes(t,va(s.parameters),ka(s.parameters),p4e(s,i),{joiner:", ",indentation:0,leadingTriviaOption:Kr.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Kr.TrailingTriviaOption.Include}):rr(p4e(s,i),(o,c)=>{mr(s.parameters)===0&&c===0?e.insertNodeAt(t,s.parameters.end,o):e.insertNodeAtEndOfList(t,s.parameters,o)})})}function f4e(e){switch(e.kind){case 262:case 218:case 174:case 219:return!0;default:return!1}}function p4e(e,t){const n=nr(e.parameters,i=>I.createParameterDeclaration(i.modifiers,i.dotDotDotToken,i.name,i.questionToken,i.type,i.initializer));for(const{pos:i,declaration:s}of t){const o=i>0?n[i-1]:void 0;n.splice(i,0,I.updateParameterDeclaration(s,s.modifiers,s.dotDotDotToken,s.name,o&&o.questionToken?I.createToken(58):s.questionToken,s.type,s.initializer))}return n}function CHe(e,t){const n=[];for(const i of t)if(EHe(i)){if(mr(i.parameters)===mr(e.parameters)){n.push(i);continue}if(mr(i.parameters)>mr(e.parameters))return[]}return n}function EHe(e){return f4e(e)&&e.body===void 0}function d4e(e,t,n){return I.createParameterDeclaration(void 0,void 0,e,n,t,void 0)}function PHe(e,t){return mr(e)&&ct(e,n=>tjX(u,e.sourceFile,i,s)),[mr(s)>1?p.Add_missing_parameters_to_0:p.Add_missing_parameter_to_0,n],BM,p.Add_all_missing_parameters)),mr(o)&&_r(c,js(JM,Kr.ChangeTracker.with(e,u=>jX(u,e.sourceFile,i,o)),[mr(o)>1?p.Add_optional_parameters_to_0:p.Add_optional_parameter_to_0,n],JM,p.Add_all_optional_parameters)),c},getAllCodeActions:e=>Ga(e,t_e,(t,n)=>{const i=_4e(e.sourceFile,e.program,n.start);if(i){const{declarations:s,newParameters:o,newOptionalParameters:c}=i;e.fixId===BM&&jX(t,e.sourceFile,s,o),e.fixId===JM&&jX(t,e.sourceFile,s,c)}})})}});function m4e(e,t){return{type:"install package",file:e,packageName:t}}function g4e(e,t){const n=Wn(Ui(e,t),aa);if(!n)return;const i=n.text,{packageName:s}=lA(i);return Sl(s)?void 0:s}function h4e(e,t,n){var i;return n===r_e?rm.nodeCoreModules.has(e)?"@types/node":void 0:(i=t.isKnownTypesPackageName)!=null&&i.call(t,e)?o9(e):void 0}var y4e,BX,r_e,n_e,wHe=Dt({"src/services/codefixes/fixCannotFindModule.ts"(){qn(),ra(),y4e="fixCannotFindModule",BX="installTypesPackage",r_e=p.Cannot_find_module_0_or_its_corresponding_type_declarations.code,n_e=[r_e,p.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code],ea({errorCodes:n_e,getCodeActions:function(t){const{host:n,sourceFile:i,span:{start:s}}=t,o=g4e(i,s);if(o===void 0)return;const c=h4e(o,n,t.errorCode);return c===void 0?[]:[js(y4e,[],[p.Install_0,c],BX,p.Install_all_missing_types_packages,m4e(i.fileName,c))]},fixIds:[BX],getAllCodeActions:e=>Ga(e,n_e,(t,n,i)=>{const s=g4e(n.file,n.start);if(s!==void 0)switch(e.fixId){case BX:{const o=h4e(s,e.host,n.code);o&&i.push(m4e(n.file.fileName,o));break}default:E.fail(`Bad fixId: ${e.fixId}`)}})})}});function v4e(e,t){const n=Ui(e,t);return Ls(n.parent,$n)}function b4e(e,t,n,i,s){const o=Vd(e),c=n.program.getTypeChecker(),u=c.getTypeAtLocation(o),f=c.getPropertiesOfType(u).filter(AHe),g=Lx(t,n.program,s,n.host);L_e(e,f,t,n,s,g,d=>i.insertMemberAtStart(t,e,d)),g.writeFixes(i)}function AHe(e){const t=ry(va(e.getDeclarations()));return!(t&2)&&!!(t&64)}var i_e,JX,NHe=Dt({"src/services/codefixes/fixClassDoesntImplementInheritedAbstractMember.ts"(){qn(),ra(),i_e=[p.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1.code],JX="fixClassDoesntImplementInheritedAbstractMember",ea({errorCodes:i_e,getCodeActions:function(t){const{sourceFile:n,span:i}=t,s=Kr.ChangeTracker.with(t,o=>b4e(v4e(n,i.start),n,t,o,t.preferences));return s.length===0?void 0:[js(JX,s,p.Implement_inherited_abstract_class,JX,p.Implement_all_inherited_abstract_classes)]},fixIds:[JX],getAllCodeActions:function(t){const n=new Map;return Ga(t,i_e,(i,s)=>{const o=v4e(s.file,s.start);Vp(n,Oa(o))&&b4e(o,t.sourceFile,t,i,t.preferences)})}})}});function S4e(e,t,n,i){e.insertNodeAtConstructorStart(t,n,i),e.delete(t,i)}function T4e(e,t){const n=Ui(e,t);if(n.kind!==110)return;const i=cf(n),s=x4e(i.body);return s&&!s.expression.arguments.some(o=>Sn(o)&&o.expression===n)?{constructor:i,superCall:s}:void 0}function x4e(e){return Cl(e)&&Eb(e.expression)?e:As(e)?void 0:Ss(e,x4e)}var zX,s_e,IHe=Dt({"src/services/codefixes/fixClassSuperMustPrecedeThisAccess.ts"(){qn(),ra(),zX="classSuperMustPrecedeThisAccess",s_e=[p.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code],ea({errorCodes:s_e,getCodeActions(e){const{sourceFile:t,span:n}=e,i=T4e(t,n.start);if(!i)return;const{constructor:s,superCall:o}=i,c=Kr.ChangeTracker.with(e,u=>S4e(u,t,s,o));return[js(zX,c,p.Make_super_call_the_first_statement_in_the_constructor,zX,p.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[zX],getAllCodeActions(e){const{sourceFile:t}=e,n=new Map;return Ga(e,s_e,(i,s)=>{const o=T4e(s.file,s.start);if(!o)return;const{constructor:c,superCall:u}=o;Vp(n,Oa(c.parent))&&S4e(i,t,c,u)})}})}});function k4e(e,t){const n=Ui(e,t);return E.assert(sc(n.parent),"token should be at the constructor declaration"),n.parent}function C4e(e,t,n){const i=I.createExpressionStatement(I.createCallExpression(I.createSuper(),void 0,Ve));e.insertNodeAtConstructorStart(t,n,i)}var WX,a_e,FHe=Dt({"src/services/codefixes/fixConstructorForDerivedNeedSuperCall.ts"(){qn(),ra(),WX="constructorForDerivedNeedSuperCall",a_e=[p.Constructors_for_derived_classes_must_contain_a_super_call.code],ea({errorCodes:a_e,getCodeActions(e){const{sourceFile:t,span:n}=e,i=k4e(t,n.start),s=Kr.ChangeTracker.with(e,o=>C4e(o,t,i));return[js(WX,s,p.Add_missing_super_call,WX,p.Add_all_missing_super_calls)]},fixIds:[WX],getAllCodeActions:e=>Ga(e,a_e,(t,n)=>C4e(t,e.sourceFile,k4e(n.file,n.start)))})}});function E4e(e,t){J_e(e,t,"jsx",I.createStringLiteral("react"))}var o_e,c_e,OHe=Dt({"src/services/codefixes/fixEnableJsxFlag.ts"(){qn(),ra(),o_e="fixEnableJsxFlag",c_e=[p.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code],ea({errorCodes:c_e,getCodeActions:function(t){const{configFile:n}=t.program.getCompilerOptions();if(n===void 0)return;const i=Kr.ChangeTracker.with(t,s=>E4e(s,n));return[Sd(o_e,i,p.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[o_e],getAllCodeActions:e=>Ga(e,c_e,t=>{const{configFile:n}=e.program.getCompilerOptions();n!==void 0&&E4e(t,n)})})}});function P4e(e,t,n){const i=wn(e.getSemanticDiagnostics(t),c=>c.start===n.start&&c.length===n.length);if(i===void 0||i.relatedInformation===void 0)return;const s=wn(i.relatedInformation,c=>c.code===p.Did_you_mean_0.code);if(s===void 0||s.file===void 0||s.start===void 0||s.length===void 0)return;const o=W_e(s.file,Wl(s.start,s.length));if(o!==void 0&&ot(o)&&Zr(o.parent))return{suggestion:LHe(s.messageText),expression:o.parent,arg:o}}function D4e(e,t,n,i){const s=I.createCallExpression(I.createPropertyAccessExpression(I.createIdentifier("Number"),I.createIdentifier("isNaN")),void 0,[n]),o=i.operatorToken.kind;e.replaceNode(t,i,o===38||o===36?I.createPrefixUnaryExpression(54,s):s)}function LHe(e){const[,t]=em(e,` +`,0).match(/'(.*)'/)||[];return t}var VX,l_e,MHe=Dt({"src/services/codefixes/fixNaNEquality.ts"(){qn(),ra(),VX="fixNaNEquality",l_e=[p.This_condition_will_always_return_0.code],ea({errorCodes:l_e,getCodeActions(e){const{sourceFile:t,span:n,program:i}=e,s=P4e(i,t,n);if(s===void 0)return;const{suggestion:o,expression:c,arg:u}=s,f=Kr.ChangeTracker.with(e,g=>D4e(g,t,u,c));return[js(VX,f,[p.Use_0,o],VX,p.Use_Number_isNaN_in_all_conditions)]},fixIds:[VX],getAllCodeActions:e=>Ga(e,l_e,(t,n)=>{const i=P4e(e.program,n.file,Wl(n.start,n.length));i&&D4e(t,n.file,i.arg,i.expression)})})}}),RHe=Dt({"src/services/codefixes/fixModuleAndTargetOptions.ts"(){qn(),ra(),ea({errorCodes:[p.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,p.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,p.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){const n=t.program.getCompilerOptions(),{configFile:i}=n;if(i===void 0)return;const s=[],o=au(n);if(o>=5&&o<99){const g=Kr.ChangeTracker.with(t,d=>{J_e(d,i,"module",I.createStringLiteral("esnext"))});s.push(Sd("fixModuleOption",g,[p.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}const u=Fa(n);if(u<4||u>99){const g=Kr.ChangeTracker.with(t,d=>{if(!hE(i))return;const S=[["target",I.createStringLiteral("es2017")]];o===1&&S.push(["module",I.createStringLiteral("commonjs")]),B_e(d,i,S)});s.push(Sd("fixTargetOption",g,[p.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return s.length?s:void 0}})}});function w4e(e,t,n){e.replaceNode(t,n,I.createPropertyAssignment(n.name,n.objectAssignmentInitializer))}function A4e(e,t){return Ls(Ui(e,t).parent,k_)}var UX,u_e,jHe=Dt({"src/services/codefixes/fixPropertyAssignment.ts"(){qn(),ra(),UX="fixPropertyAssignment",u_e=[p.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:u_e,fixIds:[UX],getCodeActions(e){const{sourceFile:t,span:n}=e,i=A4e(t,n.start),s=Kr.ChangeTracker.with(e,o=>w4e(o,e.sourceFile,i));return[js(UX,s,[p.Change_0_to_1,"=",":"],UX,[p.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:e=>Ga(e,u_e,(t,n)=>w4e(t,n.file,A4e(n.file,n.start)))})}});function N4e(e,t){const n=Ui(e,t),i=Nl(n).heritageClauses,s=i[0].getFirstToken();return s.kind===96?{extendsToken:s,heritageClauses:i}:void 0}function I4e(e,t,n,i){if(e.replaceNode(t,n,I.createToken(119)),i.length===2&&i[0].token===96&&i[1].token===119){const s=i[1].getFirstToken(),o=s.getFullStart();e.replaceRange(t,{pos:o,end:o},I.createToken(28));const c=t.text;let u=s.end;for(;uI4e(c,t,i,s));return[js(qX,o,p.Change_extends_to_implements,qX,p.Change_all_extended_interfaces_to_implements)]},fixIds:[qX],getAllCodeActions:e=>Ga(e,__e,(t,n)=>{const i=N4e(n.file,n.start);i&&I4e(t,n.file,i.extendsToken,i.heritageClauses)})})}});function F4e(e,t,n){const i=Ui(e,t);if(Ie(i)||Pi(i))return{node:i,className:n===f_e?Nl(i).name.text:void 0}}function O4e(e,t,{node:n,className:i}){U_(n),e.replaceNode(t,n,I.createPropertyAccessExpression(i?I.createIdentifier(i):I.createThis(),n))}var HX,f_e,p_e,JHe=Dt({"src/services/codefixes/fixForgottenThisPropertyAccess.ts"(){qn(),ra(),HX="forgottenThisPropertyAccess",f_e=p.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,p_e=[p.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,p.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_e],ea({errorCodes:p_e,getCodeActions(e){const{sourceFile:t}=e,n=F4e(t,e.span.start,e.errorCode);if(!n)return;const i=Kr.ChangeTracker.with(e,s=>O4e(s,t,n));return[js(HX,i,[p.Add_0_to_unresolved_variable,n.className||"this"],HX,p.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[HX],getAllCodeActions:e=>Ga(e,p_e,(t,n)=>{const i=F4e(n.file,n.start,n.code);i&&O4e(t,e.sourceFile,i)})})}});function zHe(e){return Ka(g_e,e)}function d_e(e,t,n,i,s){const o=n.getText()[i];if(!zHe(o))return;const c=s?g_e[o]:`{${sP(n,t,o)}}`;e.replaceRangeWithText(n,{pos:i,end:i+1},c)}var GX,zM,m_e,g_e,WHe=Dt({"src/services/codefixes/fixInvalidJsxCharacters.ts"(){qn(),ra(),GX="fixInvalidJsxCharacters_expression",zM="fixInvalidJsxCharacters_htmlEntity",m_e=[p.Unexpected_token_Did_you_mean_or_gt.code,p.Unexpected_token_Did_you_mean_or_rbrace.code],ea({errorCodes:m_e,fixIds:[GX,zM],getCodeActions(e){const{sourceFile:t,preferences:n,span:i}=e,s=Kr.ChangeTracker.with(e,c=>d_e(c,n,t,i.start,!1)),o=Kr.ChangeTracker.with(e,c=>d_e(c,n,t,i.start,!0));return[js(GX,s,p.Wrap_invalid_character_in_an_expression_container,GX,p.Wrap_all_invalid_characters_in_an_expression_container),js(zM,o,p.Convert_invalid_character_to_its_html_entity_code,zM,p.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions(e){return Ga(e,m_e,(t,n)=>d_e(t,e.preferences,n.file,n.start,e.fixId===zM))}}),g_e={">":">","}":"}"}}});function VHe(e,{name:t,jsDocHost:n,jsDocParameterTag:i}){const s=Kr.ChangeTracker.with(e,o=>o.filterJSDocTags(e.sourceFile,n,c=>c!==i));return js(WM,s,[p.Delete_unused_param_tag_0,t.getText(e.sourceFile)],WM,p.Delete_all_unused_param_tags)}function UHe(e,{name:t,jsDocHost:n,signature:i,jsDocParameterTag:s}){if(!mr(i.parameters))return;const o=e.sourceFile,c=T1(i),u=new Set;for(const y of c)vd(y)&&Ie(y.name)&&u.add(y.name.escapedText);const f=Qa(i.parameters,y=>Ie(y.name)&&!u.has(y.name.escapedText)?y.name.getText(o):void 0);if(f===void 0)return;const g=I.updateJSDocParameterTag(s,s.tagName,I.createIdentifier(f),s.isBracketed,s.typeExpression,s.isNameFirst,s.comment),d=Kr.ChangeTracker.with(e,y=>y.replaceJSDocComment(o,n,nr(c,S=>S===s?g:S)));return Sd(h_e,d,[p.Rename_param_tag_name_0_to_1,t.getText(o),f])}function L4e(e,t){const n=Ui(e,t);if(n.parent&&vd(n.parent)&&Ie(n.parent.name)){const i=n.parent,s=Nb(i),o=P1(i);if(s&&o)return{jsDocHost:s,signature:o,name:n.parent.name,jsDocParameterTag:i}}}var WM,h_e,y_e,qHe=Dt({"src/services/codefixes/fixUnmatchedParameter.ts"(){qn(),ra(),WM="deleteUnmatchedParameter",h_e="renameUnmatchedParameter",y_e=[p.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code],ea({fixIds:[WM,h_e],errorCodes:y_e,getCodeActions:function(t){const{sourceFile:n,span:i}=t,s=[],o=L4e(n,i.start);if(o)return _r(s,VHe(t,o)),_r(s,UHe(t,o)),s},getAllCodeActions:function(t){const n=new Map;return A6(Kr.ChangeTracker.with(t,i=>{N6(t,y_e,({file:s,start:o})=>{const c=L4e(s,o);c&&n.set(c.signature,_r(n.get(c.signature),c.jsDocParameterTag))}),n.forEach((s,o)=>{if(t.fixId===WM){const c=new Set(s);i.filterJSDocTags(o.getSourceFile(),o,u=>!c.has(u))}})}))}})}});function HHe(e,t,n){const i=Wn(Ui(e,n),Ie);if(!i||i.parent.kind!==183)return;const o=t.getTypeChecker().getSymbolAtLocation(i);return wn((o==null?void 0:o.declarations)||Ve,fd(Rm,x_,El))}function GHe(e,t,n,i){if(n.kind===271){e.insertModifierBefore(t,156,n.name);return}const s=n.kind===273?n:n.parent.parent;if(s.name&&s.namedBindings)return;const o=i.getTypeChecker();O5(s,u=>{if(Ul(u.symbol,o).flags&111551)return!0})||e.insertModifierBefore(t,156,s)}function $He(e,t,n,i){Ix.doChangeNamedToNamespaceOrDefault(t,i,e,n.parent)}var $X,M4e,XHe=Dt({"src/services/codefixes/fixUnreferenceableDecoratorMetadata.ts"(){qn(),ra(),$X="fixUnreferenceableDecoratorMetadata",M4e=[p.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:M4e,getCodeActions:e=>{const t=HHe(e.sourceFile,e.program,e.span.start);if(!t)return;const n=Kr.ChangeTracker.with(e,o=>t.kind===276&&$He(o,e.sourceFile,t,e.program)),i=Kr.ChangeTracker.with(e,o=>GHe(o,e.sourceFile,t,e.program));let s;return n.length&&(s=_r(s,Sd($X,n,p.Convert_named_imports_to_namespace_import))),i.length&&(s=_r(s,Sd($X,i,p.Use_import_type))),s},fixIds:[$X]})}});function R4e(e,t,n){e.replaceNode(t,n.parent,I.createKeywordTypeNode(159))}function AN(e,t){return js(NN,e,t,YX,p.Delete_all_unused_declarations)}function j4e(e,t,n){e.delete(t,E.checkDefined(Ls(n.parent,Ez).typeParameters,"The type parameter to delete should exist"))}function v_e(e){return e.kind===102||e.kind===80&&(e.parent.kind===276||e.parent.kind===273)}function B4e(e){return e.kind===102?Wn(e.parent,sl):void 0}function J4e(e,t){return ml(t.parent)&&va(t.parent.getChildren(e))===t}function z4e(e,t,n){e.delete(t,n.parent.kind===243?n.parent:n)}function QHe(e,t,n){rr(n.elements,i=>e.delete(t,i))}function YHe(e,t,n,{parent:i}){if(hi(i)&&i.initializer&&jv(i.initializer))if(ml(i.parent)&&mr(i.parent.declarations)>1){const s=i.parent.parent,o=s.getStart(n),c=s.end;t.delete(n,i),t.insertNodeAt(n,c,i.initializer,{prefix:f0(e.host,e.formatContext.options)+n.text.slice(BL(n.text,o-1),o),suffix:nN(n)?";":""})}else t.replaceNode(n,i.parent,i.initializer);else t.delete(n,i)}function W4e(e,t,n,i){t!==p.Property_0_is_declared_but_its_value_is_never_read.code&&(i.kind===140&&(i=Ls(i.parent,zb).typeParameter.name),Ie(i)&&ZHe(i)&&(e.replaceNode(n,i,I.createIdentifier(`_${i.text}`)),rs(i.parent)&&Vk(i.parent).forEach(s=>{Ie(s.name)&&e.replaceNode(n,s.name,I.createIdentifier(`_${s.name.text}`))})))}function ZHe(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 XX(e,t,n,i,s,o,c,u){KHe(t,n,e,i,s,o,c,u),Ie(t)&&uo.Core.eachSymbolReferenceInFile(t,i,e,f=>{Sn(f.parent)&&f.parent.name===f&&(f=f.parent),!u&&nGe(f)&&n.delete(e,f.parent.parent)})}function KHe(e,t,n,i,s,o,c,u){const{parent:f}=e;if(rs(f))eGe(t,n,f,i,s,o,c,u);else if(!(u&&Ie(e)&&uo.Core.isSymbolReferencedInFile(e,i,n))){const g=Rm(f)?e:Pa(f)?f.parent:f;E.assert(g!==n,"should not delete whole source file"),t.delete(n,g)}}function eGe(e,t,n,i,s,o,c,u=!1){if(tGe(i,t,n,s,o,c,u))if(n.modifiers&&n.modifiers.length>0&&(!Ie(n.name)||uo.Core.isSymbolReferencedInFile(n.name,i,t)))for(const f of n.modifiers)ta(f)&&e.deleteModifier(t,f);else!n.initializer&&V4e(n,i,s)&&e.delete(t,n)}function V4e(e,t,n){const i=e.parent.parameters.indexOf(e);return!uo.Core.someSignatureUsage(e.parent,n,t,(s,o)=>!o||o.arguments.length>i)}function tGe(e,t,n,i,s,o,c){const{parent:u}=n;switch(u.kind){case 174:case 176:const f=u.parameters.indexOf(n),g=hc(u)?u.name:u,d=uo.Core.getReferencedSymbolsForNode(u.pos,g,s,i,o);if(d){for(const y of d)for(const S of y.references)if(S.kind===uo.EntryKind.Node){const T=l3(S.node)&&Rs(S.node.parent)&&S.node.parent.arguments.length>f,k=Sn(S.node.parent)&&l3(S.node.parent.expression)&&Rs(S.node.parent.parent)&&S.node.parent.parent.arguments.length>f,w=(hc(S.node.parent)||Lm(S.node.parent))&&S.node.parent!==n.parent&&S.node.parent.parameters.length>f;if(T||k||w)return!1}}return!0;case 262:return u.name&&rGe(e,t,u.name)?U4e(u,n,c):!0;case 218:case 219:return U4e(u,n,c);case 178:return!1;case 177:return!0;default:return E.failBadSyntaxKind(u)}}function rGe(e,t,n){return!!uo.Core.eachSymbolReferenceInFile(n,e,t,i=>Ie(i)&&Rs(i.parent)&&i.parent.arguments.includes(i))}function U4e(e,t,n){const i=e.parameters,s=i.indexOf(t);return E.assert(s!==-1,"The parameter should already be in the list"),n?i.slice(s+1).every(o=>Ie(o.name)&&!o.symbol.isReferenced):s===i.length-1}function nGe(e){return(Zr(e.parent)&&e.parent.left===e||(EV(e.parent)||py(e.parent))&&e.parent.operand===e)&&Cl(e.parent.parent)}var NN,QX,YX,VM,ZX,b_e,iGe=Dt({"src/services/codefixes/fixUnusedIdentifier.ts"(){qn(),ra(),NN="unusedIdentifier",QX="unusedIdentifier_prefix",YX="unusedIdentifier_delete",VM="unusedIdentifier_deleteImports",ZX="unusedIdentifier_infer",b_e=[p._0_is_declared_but_its_value_is_never_read.code,p._0_is_declared_but_never_used.code,p.Property_0_is_declared_but_its_value_is_never_read.code,p.All_imports_in_import_declaration_are_unused.code,p.All_destructured_elements_are_unused.code,p.All_variables_are_unused.code,p.All_type_parameters_are_unused.code],ea({errorCodes:b_e,getCodeActions(e){const{errorCode:t,sourceFile:n,program:i,cancellationToken:s}=e,o=i.getTypeChecker(),c=i.getSourceFiles(),u=Ui(n,e.span.start);if(kp(u))return[AN(Kr.ChangeTracker.with(e,y=>y.delete(n,u)),p.Remove_template_tag)];if(u.kind===30){const y=Kr.ChangeTracker.with(e,S=>j4e(S,n,u));return[AN(y,p.Remove_type_parameters)]}const f=B4e(u);if(f){const y=Kr.ChangeTracker.with(e,S=>S.delete(n,f));return[js(NN,y,[p.Remove_import_from_0,Ure(f)],VM,p.Delete_all_unused_imports)]}else if(v_e(u)){const y=Kr.ChangeTracker.with(e,S=>XX(n,u,S,o,c,i,s,!1));if(y.length)return[js(NN,y,[p.Remove_unused_declaration_for_Colon_0,u.getText(n)],VM,p.Delete_all_unused_imports)]}if(xp(u.parent)||s2(u.parent)){if(rs(u.parent.parent)){const y=u.parent.elements,S=[y.length>1?p.Remove_unused_declarations_for_Colon_0:p.Remove_unused_declaration_for_Colon_0,nr(y,T=>T.getText(n)).join(", ")];return[AN(Kr.ChangeTracker.with(e,T=>QHe(T,n,u.parent)),S)]}return[AN(Kr.ChangeTracker.with(e,y=>YHe(e,y,n,u.parent)),p.Remove_unused_destructuring_declaration)]}if(J4e(n,u))return[AN(Kr.ChangeTracker.with(e,y=>z4e(y,n,u.parent)),p.Remove_variable_statement)];const g=[];if(u.kind===140){const y=Kr.ChangeTracker.with(e,T=>R4e(T,n,u)),S=Ls(u.parent,zb).typeParameter.name.text;g.push(js(NN,y,[p.Replace_infer_0_with_unknown,S],ZX,p.Replace_all_unused_infer_with_unknown))}else{const y=Kr.ChangeTracker.with(e,S=>XX(n,u,S,o,c,i,s,!1));if(y.length){const S=Pa(u.parent)?u.parent:u;g.push(AN(y,[p.Remove_unused_declaration_for_Colon_0,S.getText(n)]))}}const d=Kr.ChangeTracker.with(e,y=>W4e(y,t,n,u));return d.length&&g.push(js(NN,d,[p.Prefix_0_with_an_underscore,u.getText(n)],QX,p.Prefix_all_unused_declarations_with_where_possible)),g},fixIds:[QX,YX,VM,ZX],getAllCodeActions:e=>{const{sourceFile:t,program:n,cancellationToken:i}=e,s=n.getTypeChecker(),o=n.getSourceFiles();return Ga(e,b_e,(c,u)=>{const f=Ui(t,u.start);switch(e.fixId){case QX:W4e(c,u.code,t,f);break;case VM:{const g=B4e(f);g?c.delete(t,g):v_e(f)&&XX(t,f,c,s,o,n,i,!0);break}case YX:{if(f.kind===140||v_e(f))break;if(kp(f))c.delete(t,f);else if(f.kind===30)j4e(c,t,f);else if(xp(f.parent)){if(f.parent.parent.initializer)break;(!rs(f.parent.parent)||V4e(f.parent.parent,s,o))&&c.delete(t,f.parent.parent)}else{if(s2(f.parent.parent)&&f.parent.parent.parent.initializer)break;J4e(t,f)?z4e(c,t,f.parent):XX(t,f,c,s,o,n,i,!0)}break}case ZX:f.kind===140&&R4e(c,t,f);break;default:E.fail(JSON.stringify(e.fixId))}})}})}});function q4e(e,t,n,i,s){const o=Ui(t,n),c=Pr(o,Ei);if(c.getStart(t)!==o.getStart(t)){const f=JSON.stringify({statementKind:E.formatSyntaxKind(c.kind),tokenKind:E.formatSyntaxKind(o.kind),errorCode:s,start:n,length:i});E.fail("Token and statement should start at the same point. "+f)}const u=(Cs(c.parent)?c.parent:c).parent;if(!Cs(c.parent)||c===va(c.parent.statements))switch(u.kind){case 245:if(u.elseStatement){if(Cs(c.parent))break;e.replaceNode(t,c,I.createBlock(Ve));return}case 247:case 248:e.delete(t,u);return}if(Cs(c.parent)){const f=n+i,g=E.checkDefined(sGe(LW(c.parent.statements,c),d=>d.posq4e(i,e.sourceFile,e.span.start,e.span.length,e.errorCode));return[js(KX,n,p.Remove_unreachable_code,KX,p.Remove_all_unreachable_code)]},fixIds:[KX],getAllCodeActions:e=>Ga(e,S_e,(t,n)=>q4e(t,n.file,n.start,n.length,n.code))})}});function H4e(e,t,n){const i=Ui(t,n),s=Ls(i.parent,c2),o=i.getStart(t),c=s.statement.getStart(t),u=Uf(o,c,t)?c:ca(t.text,qa(s,59,t).end,!0);e.deleteRange(t,{pos:o,end:u})}var eQ,T_e,oGe=Dt({"src/services/codefixes/fixUnusedLabel.ts"(){qn(),ra(),eQ="fixUnusedLabel",T_e=[p.Unused_label.code],ea({errorCodes:T_e,getCodeActions(e){const t=Kr.ChangeTracker.with(e,n=>H4e(n,e.sourceFile,e.span.start));return[js(eQ,t,p.Remove_unused_label,eQ,p.Remove_all_unused_labels)]},fixIds:[eQ],getAllCodeActions:e=>Ga(e,T_e,(t,n)=>H4e(t,n.file,n.start))})}});function G4e(e,t,n,i,s){e.replaceNode(t,n,s.typeToTypeNode(i,n,void 0))}function $4e(e,t,n){const i=Pr(Ui(e,t),cGe),s=i&&i.type;return s&&{typeNode:s,type:lGe(n,s)}}function cGe(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 lGe(e,t){if(WC(t)){const n=e.getTypeFromTypeNode(t.type);return n===e.getNeverType()||n===e.getVoidType()?n:e.getUnionType(_r([n,e.getUndefinedType()],t.postfix?void 0:e.getNullType()))}return e.getTypeFromTypeNode(t)}var x_e,tQ,k_e,uGe=Dt({"src/services/codefixes/fixJSDocTypes.ts"(){qn(),ra(),x_e="fixJSDocTypes_plain",tQ="fixJSDocTypes_nullable",k_e=[p.JSDoc_types_can_only_be_used_inside_documentation_comments.code,p._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code,p._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code],ea({errorCodes:k_e,getCodeActions(e){const{sourceFile:t}=e,n=e.program.getTypeChecker(),i=$4e(t,e.span.start,n);if(!i)return;const{typeNode:s,type:o}=i,c=s.getText(t),u=[f(o,x_e,p.Change_all_jsdoc_style_types_to_TypeScript)];return s.kind===321&&u.push(f(o,tQ,p.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),u;function f(g,d,y){const S=Kr.ChangeTracker.with(e,T=>G4e(T,t,s,g,n));return js("jdocTypes",S,[p.Change_0_to_1,c,n.typeToString(g)],d,y)}},fixIds:[x_e,tQ],getAllCodeActions(e){const{fixId:t,program:n,sourceFile:i}=e,s=n.getTypeChecker();return Ga(e,k_e,(o,c)=>{const u=$4e(c.file,c.start,s);if(!u)return;const{typeNode:f,type:g}=u,d=f.kind===321&&t===tQ?s.getNullableType(g,32768):g;G4e(o,i,f,d,s)})}})}});function X4e(e,t,n){e.replaceNodeWithText(t,n,`${n.text}()`)}function Q4e(e,t){const n=Ui(e,t);if(Sn(n.parent)){let i=n.parent;for(;Sn(i.parent);)i=i.parent;return i.name}if(Ie(n))return n}var rQ,C_e,_Ge=Dt({"src/services/codefixes/fixMissingCallParentheses.ts"(){qn(),ra(),rQ="fixMissingCallParentheses",C_e=[p.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code],ea({errorCodes:C_e,fixIds:[rQ],getCodeActions(e){const{sourceFile:t,span:n}=e,i=Q4e(t,n.start);if(!i)return;const s=Kr.ChangeTracker.with(e,o=>X4e(o,e.sourceFile,i));return[js(rQ,s,p.Add_missing_call_parentheses,rQ,p.Add_all_missing_call_parentheses)]},getAllCodeActions:e=>Ga(e,C_e,(t,n)=>{const i=Q4e(n.file,n.start);i&&X4e(t,n.file,i)})})}});function fGe(e){if(e.type)return e.type;if(hi(e.parent)&&e.parent.type&&Mm(e.parent.type))return e.parent.type.type}function Y4e(e,t){const n=Ui(e,t),i=cf(n);if(!i)return;let s;switch(i.kind){case 174:s=i.name;break;case 262:case 218:s=qa(i,100,e);break;case 219:const o=i.typeParameters?30:21;s=qa(i,o,e)||va(i.parameters);break;default:return}return s&&{insertBefore:s,returnType:fGe(i)}}function Z4e(e,t,{insertBefore:n,returnType:i}){if(i){const s=v8(i);(!s||s.kind!==80||s.text!=="Promise")&&e.replaceNode(t,i,I.createTypeReferenceNode("Promise",I.createNodeArray([i])))}e.insertModifierBefore(t,134,n)}var nQ,E_e,pGe=Dt({"src/services/codefixes/fixAwaitInSyncFunction.ts"(){qn(),ra(),nQ="fixAwaitInSyncFunction",E_e=[p.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,p.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,p.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,p.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code],ea({errorCodes:E_e,getCodeActions(e){const{sourceFile:t,span:n}=e,i=Y4e(t,n.start);if(!i)return;const s=Kr.ChangeTracker.with(e,o=>Z4e(o,t,i));return[js(nQ,s,p.Add_async_modifier_to_containing_function,nQ,p.Add_all_missing_async_modifiers)]},fixIds:[nQ],getAllCodeActions:function(t){const n=new Map;return Ga(t,E_e,(i,s)=>{const o=Y4e(s.file,s.start);!o||!Vp(n,Oa(o.insertBefore))||Z4e(i,t.sourceFile,o)})}})}});function K4e(e,t,n,i,s){let o,c;if(i===p._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)o=t,c=t+n;else if(i===p._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){const u=s.program.getTypeChecker(),f=Ui(e,t).parent;E.assert($0(f),"error span of fixPropertyOverrideAccessor should only be on an accessor");const g=f.parent;E.assert($n(g),"erroneous accessors should only be inside classes");const d=Tm(U_e(g,u));if(!d)return[];const y=xi(Kk(f.name)),S=u.getPropertyOfType(u.getTypeAtLocation(d),y);if(!S||!S.valueDeclaration)return[];o=S.valueDeclaration.pos,c=S.valueDeclaration.end,e=wr(S.valueDeclaration)}else E.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+i);return dEe(e,s.program,o,c,s,p.Generate_get_and_set_accessors.message)}var P_e,iQ,dGe=Dt({"src/services/codefixes/fixPropertyOverrideAccessor.ts"(){qn(),ra(),P_e=[p._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,p._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],iQ="fixPropertyOverrideAccessor",ea({errorCodes:P_e,getCodeActions(e){const t=K4e(e.sourceFile,e.span.start,e.span.length,e.errorCode,e);if(t)return[js(iQ,t,p.Generate_get_and_set_accessors,iQ,p.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[iQ],getAllCodeActions:e=>Ga(e,P_e,(t,n)=>{const i=K4e(n.file,n.start,n.length,n.code,e);if(i)for(const s of i)t.pushRaw(e.sourceFile,s)})})}});function mGe(e,t){switch(e){case p.Parameter_0_implicitly_has_an_1_type.code:case p.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return J_(cf(t))?p.Infer_type_of_0_from_usage:p.Infer_parameter_types_from_usage;case p.Rest_parameter_0_implicitly_has_an_any_type.code:case p.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return p.Infer_parameter_types_from_usage;case p.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return p.Infer_this_type_of_0_from_usage;default:return p.Infer_type_of_0_from_usage}}function gGe(e){switch(e){case p.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return p.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case p.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return p.Variable_0_implicitly_has_an_1_type.code;case p.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return p.Parameter_0_implicitly_has_an_1_type.code;case p.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return p.Rest_parameter_0_implicitly_has_an_any_type.code;case p.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return p.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case p._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return p._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case p.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return p.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case p.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return p.Member_0_implicitly_has_an_1_type.code}return e}function eEe(e,t,n,i,s,o,c,u,f){if(!cE(n.kind)&&n.kind!==80&&n.kind!==26&&n.kind!==110)return;const{parent:g}=n,d=Lx(t,s,f,u);switch(i=gGe(i),i){case p.Member_0_implicitly_has_an_1_type.code:case p.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(hi(g)&&c(g)||xs(g)||B_(g))return tEe(e,d,t,g,s,u,o),d.writeFixes(e),g;if(Sn(g)){const T=IN(g.name,s,o),k=aP(T,g,s,u);if(k){const w=I.createJSDocTypeTag(void 0,I.createJSDocTypeExpression(k),void 0);e.addJSDocTags(t,Ls(g.parent.parent,Cl),[w])}return d.writeFixes(e),g}return;case p.Variable_0_implicitly_has_an_1_type.code:{const T=s.getTypeChecker().getSymbolAtLocation(n);return T&&T.valueDeclaration&&hi(T.valueDeclaration)&&c(T.valueDeclaration)?(tEe(e,d,wr(T.valueDeclaration),T.valueDeclaration,s,u,o),d.writeFixes(e),T.valueDeclaration):void 0}}const y=cf(n);if(y===void 0)return;let S;switch(i){case p.Parameter_0_implicitly_has_an_1_type.code:if(J_(y)){rEe(e,d,t,y,s,u,o),S=y;break}case p.Rest_parameter_0_implicitly_has_an_any_type.code:if(c(y)){const T=Ls(g,rs);hGe(e,d,t,T,y,s,u,o),S=T}break;case p.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case p._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:Tf(y)&&Ie(y.name)&&(sQ(e,d,t,y,IN(y.name,s,o),s,u),S=y);break;case p.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:J_(y)&&(rEe(e,d,t,y,s,u,o),S=y);break;case p.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:Kr.isThisTypeAnnotatable(y)&&c(y)&&(yGe(e,t,y,s,u,o),S=y);break;default:return E.fail(String(i))}return d.writeFixes(e),S}function tEe(e,t,n,i,s,o,c){Ie(i.name)&&sQ(e,t,n,i,IN(i.name,s,c),s,o)}function hGe(e,t,n,i,s,o,c,u){if(!Ie(i.name))return;const f=SGe(s,n,o,u);if(E.assert(s.parameters.length===f.length,"Parameter count and inference count should match"),Hr(s))nEe(e,n,f,o,c);else{const g=mo(s)&&!qa(s,21,n);g&&e.insertNodeBefore(n,va(s.parameters),I.createToken(21));for(const{declaration:d,type:y}of f)d&&!d.type&&!d.initializer&&sQ(e,t,n,d,y,o,c);g&&e.insertNodeAfter(n,ka(s.parameters),I.createToken(22))}}function yGe(e,t,n,i,s,o){const c=iEe(n,t,i,o);if(!c||!c.length)return;const u=w_e(i,c,o).thisParameter(),f=aP(u,n,i,s);f&&(Hr(n)?vGe(e,t,n,f):e.tryInsertThisTypeAnnotation(t,n,f))}function vGe(e,t,n,i){e.addJSDocTags(t,n,[I.createJSDocThisTag(void 0,I.createJSDocTypeExpression(i))])}function rEe(e,t,n,i,s,o,c){const u=bl(i.parameters);if(u&&Ie(i.name)&&Ie(u.name)){let f=IN(i.name,s,c);f===s.getTypeChecker().getAnyType()&&(f=IN(u.name,s,c)),Hr(i)?nEe(e,n,[{declaration:u,type:f}],s,o):sQ(e,t,n,u,f,s,o)}}function sQ(e,t,n,i,s,o,c){const u=aP(s,i,o,c);if(u)if(Hr(n)&&i.kind!==171){const f=hi(i)?Wn(i.parent.parent,ac):i;if(!f)return;const g=I.createJSDocTypeExpression(u),d=Tf(i)?I.createJSDocReturnTag(void 0,g,void 0):I.createJSDocTypeTag(void 0,g,void 0);e.addJSDocTags(n,f,[d])}else bGe(u,i,n,e,t,Fa(o.getCompilerOptions()))||e.tryInsertTypeAnnotation(n,i,u)}function bGe(e,t,n,i,s,o){const c=Rx(e,o);return c&&i.tryInsertTypeAnnotation(n,t,c.typeNode)?(rr(c.symbols,u=>s.addImportFromExportedSymbol(u,!0)),!0):!1}function nEe(e,t,n,i,s){const o=n.length&&n[0].declaration.parent;if(!o)return;const c=Ri(n,u=>{const f=u.declaration;if(f.initializer||S1(f)||!Ie(f.name))return;const g=u.type&&aP(u.type,f,i,s);if(g){const d=I.cloneNode(f.name);return Qr(d,7168),{name:I.cloneNode(f.name),param:f,isOptional:!!u.isOptional,typeNode:g}}});if(c.length)if(mo(o)||lo(o)){const u=mo(o)&&!qa(o,21,t);u&&e.insertNodeBefore(t,va(o.parameters),I.createToken(21)),rr(c,({typeNode:f,param:g})=>{const d=I.createJSDocTypeTag(void 0,I.createJSDocTypeExpression(f)),y=I.createJSDocComment(void 0,[d]);e.insertNodeAt(t,g.getStart(t),y,{suffix:" "})}),u&&e.insertNodeAfter(t,ka(o.parameters),I.createToken(22))}else{const u=nr(c,({name:f,typeNode:g,isOptional:d})=>I.createJSDocParameterTag(void 0,f,!!d,I.createJSDocTypeExpression(g),!1,void 0));e.addJSDocTags(t,o,u)}}function D_e(e,t,n){return Ri(uo.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),n),i=>i.kind!==uo.EntryKind.Span?Wn(i.node,Ie):void 0)}function IN(e,t,n){const i=D_e(e,t,n);return w_e(t,i,n).single()}function SGe(e,t,n,i){const s=iEe(e,t,n,i);return s&&w_e(n,s,i).parameters(e)||e.parameters.map(o=>({declaration:o,type:Ie(o.name)?IN(o.name,n,i):n.getTypeChecker().getAnyType()}))}function iEe(e,t,n,i){let s;switch(e.kind){case 176:s=qa(e,137,t);break;case 219:case 218:const o=e.parent;s=(hi(o)||xs(o))&&Ie(o.name)?o.name:e.name;break;case 262:case 174:case 173:s=e.name;break}if(s)return D_e(s,n,i)}function w_e(e,t,n){const i=e.getTypeChecker(),s={string:()=>i.getStringType(),number:()=>i.getNumberType(),Array:be=>i.createArrayType(be),Promise:be=>i.createPromiseType(be)},o=[i.getStringType(),i.getNumberType(),i.createArrayType(i.getAnyType()),i.createPromiseType(i.getAnyType())];return{single:f,parameters:g,thisParameter:d};function c(){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 u(be){const xe=new Map;for(const ft of be)ft.properties&&ft.properties.forEach((ge,Fe)=>{xe.has(Fe)||xe.set(Fe,[]),xe.get(Fe).push(ge)});const De=new Map;return xe.forEach((ft,ge)=>{De.set(ge,u(ft))}),{isNumber:be.some(ft=>ft.isNumber),isString:be.some(ft=>ft.isString),isNumberOrString:be.some(ft=>ft.isNumberOrString),candidateTypes:Zs(be,ft=>ft.candidateTypes),properties:De,calls:Zs(be,ft=>ft.calls),constructs:Zs(be,ft=>ft.constructs),numberIndex:rr(be,ft=>ft.numberIndex),stringIndex:rr(be,ft=>ft.stringIndex),candidateThisTypes:Zs(be,ft=>ft.candidateThisTypes),inferredTypes:void 0}}function f(){return ue(y(t))}function g(be){if(t.length===0||!be.parameters)return;const xe=c();for(const ft of t)n.throwIfCancellationRequested(),S(ft,xe);const De=[...xe.constructs||[],...xe.calls||[]];return be.parameters.map((ft,ge)=>{const Fe=[],$e=dg(ft);let Pt=!1;for(const Je of De)if(Je.argumentTypes.length<=ge)Pt=Hr(be),Fe.push(i.getUndefinedType());else if($e)for(let pt=ge;ptDe.every(ge=>!ge(ft)))}function Y(be){return ue(H(be))}function ue(be){if(!be.length)return i.getAnyType();const xe=i.getUnionType([i.getStringType(),i.getNumberType()]);let ft=R(be,[{high:Fe=>Fe===i.getStringType()||Fe===i.getNumberType(),low:Fe=>Fe===xe},{high:Fe=>!(Fe.flags&16385),low:Fe=>!!(Fe.flags&16385)},{high:Fe=>!(Fe.flags&114689)&&!(bn(Fe)&16),low:Fe=>!!(bn(Fe)&16)}]);const ge=ft.filter(Fe=>bn(Fe)&16);return ge.length&&(ft=ft.filter(Fe=>!(bn(Fe)&16)),ft.push(pe(ge))),i.getWidenedType(i.getUnionType(ft.map(i.getBaseTypeOfLiteralType),2))}function pe(be){if(be.length===1)return be[0];const xe=[],De=[],ft=[],ge=[];let Fe=!1,$e=!1;const Pt=yf();for(const pt of be){for(const hr of i.getPropertiesOfType(pt))Pt.add(hr.escapedName,hr.valueDeclaration?i.getTypeOfSymbolAtLocation(hr,hr.valueDeclaration):i.getAnyType());xe.push(...i.getSignaturesOfType(pt,0)),De.push(...i.getSignaturesOfType(pt,1));const zt=i.getIndexInfoOfType(pt,0);zt&&(ft.push(zt.type),Fe=Fe||zt.isReadonly);const Vt=i.getIndexInfoOfType(pt,1);Vt&&(ge.push(Vt.type),$e=$e||Vt.isReadonly)}const at=jK(Pt,(pt,zt)=>{const Vt=zt.lengthi.getBaseTypeOfLiteralType(Pt)),$e=(ft=be.calls)!=null&&ft.length?q(be):void 0;return $e&&Fe?ge.push(i.getUnionType([$e,...Fe],2)):($e&&ge.push($e),mr(Fe)&&ge.push(...Fe)),ge.push(...ee(be)),ge}function q(be){const xe=new Map;be.properties&&be.properties.forEach((Fe,$e)=>{const Pt=i.createSymbol(4,$e);Pt.links.type=Y(Fe),xe.set($e,Pt)});const De=be.calls?[ke(be.calls)]:[],ft=be.constructs?[ke(be.constructs)]:[],ge=be.stringIndex?[i.createIndexInfo(i.getStringType(),Y(be.stringIndex),!1)]:[];return i.createAnonymousType(void 0,xe,De,ft,ge)}function ee(be){if(!be.properties||!be.properties.size)return[];const xe=o.filter(De=>oe(De,be));return 0Se(De,be)):[]}function oe(be,xe){return xe.properties?!fl(xe.properties,(De,ft)=>{const ge=i.getTypeOfPropertyOfType(be,ft);return ge?De.calls?!i.getSignaturesOfType(ge,0).length||!i.isTypeAssignableTo(ge,fe(De.calls)):!i.isTypeAssignableTo(ge,Y(De)):!0}):!1}function Se(be,xe){if(!(bn(be)&4)||!xe.properties)return be;const De=be.target,ft=Tm(De.typeParameters);if(!ft)return be;const ge=[];return xe.properties.forEach((Fe,$e)=>{const Pt=i.getTypeOfPropertyOfType(De,$e);E.assert(!!Pt,"generic should have all the properties of its reference."),ge.push(...ae(Pt,Y(Fe),ft))}),s[be.symbol.escapedName](ue(ge))}function ae(be,xe,De){if(be===De)return[xe];if(be.flags&3145728)return Zs(be.types,Fe=>ae(Fe,xe,De));if(bn(be)&4&&bn(xe)&4){const Fe=i.getTypeArguments(be),$e=i.getTypeArguments(xe),Pt=[];if(Fe&&$e)for(let at=0;atge.argumentTypes.length));for(let ge=0;ge$e.argumentTypes[ge]||i.getUndefinedType())),be.some($e=>$e.argumentTypes[ge]===void 0)&&(Fe.flags|=16777216),xe.push(Fe)}const ft=Y(u(be.map(ge=>ge.return_)));return i.createSignature(void 0,void 0,void 0,xe,ft,void 0,De,0)}function Oe(be,xe){xe&&!(xe.flags&1)&&!(xe.flags&131072)&&(be.candidateTypes||(be.candidateTypes=[])).push(xe)}function me(be,xe){xe&&!(xe.flags&1)&&!(xe.flags&131072)&&(be.candidateThisTypes||(be.candidateThisTypes=[])).push(xe)}}var aQ,A_e,TGe=Dt({"src/services/codefixes/inferFromUsage.ts"(){qn(),ra(),aQ="inferFromUsage",A_e=[p.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,p.Variable_0_implicitly_has_an_1_type.code,p.Parameter_0_implicitly_has_an_1_type.code,p.Rest_parameter_0_implicitly_has_an_any_type.code,p.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,p._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,p.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,p.Member_0_implicitly_has_an_1_type.code,p.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,p.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,p.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,p.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,p.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,p._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,p.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,p.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,p.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],ea({errorCodes:A_e,getCodeActions(e){const{sourceFile:t,program:n,span:{start:i},errorCode:s,cancellationToken:o,host:c,preferences:u}=e,f=Ui(t,i);let g;const d=Kr.ChangeTracker.with(e,S=>{g=eEe(S,t,f,s,n,o,Wh,c,u)}),y=g&&us(g);return!y||d.length===0?void 0:[js(aQ,d,[mGe(s,f),jc(y)],aQ,p.Infer_all_types_from_usage)]},fixIds:[aQ],getAllCodeActions(e){const{sourceFile:t,program:n,cancellationToken:i,host:s,preferences:o}=e,c=Dx();return Ga(e,A_e,(u,f)=>{eEe(u,t,Ui(f.file,f.start),f.code,n,i,c,s,o)})}})}});function sEe(e,t,n){if(Hr(e))return;const i=Ui(e,n),s=Pr(i,po),o=s==null?void 0:s.type;if(!o)return;const c=t.getTypeFromTypeNode(o),u=t.getAwaitedType(c)||t.getVoidType(),f=t.typeToTypeNode(u,o,void 0);if(f)return{returnTypeNode:o,returnType:c,promisedTypeNode:f,promisedType:u}}function aEe(e,t,n,i){e.replaceNode(t,n,I.createTypeReferenceNode("Promise",[i]))}var oQ,N_e,xGe=Dt({"src/services/codefixes/fixReturnTypeInAsyncFunction.ts"(){qn(),ra(),oQ="fixReturnTypeInAsyncFunction",N_e=[p.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:N_e,fixIds:[oQ],getCodeActions:function(t){const{sourceFile:n,program:i,span:s}=t,o=i.getTypeChecker(),c=sEe(n,i.getTypeChecker(),s.start);if(!c)return;const{returnTypeNode:u,returnType:f,promisedTypeNode:g,promisedType:d}=c,y=Kr.ChangeTracker.with(t,S=>aEe(S,n,u,g));return[js(oQ,y,[p.Replace_0_with_Promise_1,o.typeToString(f),o.typeToString(d)],oQ,p.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:e=>Ga(e,N_e,(t,n)=>{const i=sEe(n.file,e.program.getTypeChecker(),n.start);i&&aEe(t,n.file,i.returnTypeNode,i.promisedTypeNode)})})}});function oEe(e,t,n,i){const{line:s}=Ha(t,n);(!i||_1(i,s))&&e.insertCommentBeforeLine(t,s,n," @ts-ignore")}var I_e,F_e,O_e,kGe=Dt({"src/services/codefixes/disableJsDiagnostics.ts"(){qn(),ra(),I_e="disableJsDiagnostics",F_e="disableJsDiagnostics",O_e=Ri(Object.keys(p),e=>{const t=p[e];return t.category===1?t.code:void 0}),ea({errorCodes:O_e,getCodeActions:function(t){const{sourceFile:n,program:i,span:s,host:o,formatContext:c}=t;if(!Hr(n)||!iw(n,i.getCompilerOptions()))return;const u=n.checkJsDirective?"":f0(o,c.options),f=[Sd(I_e,[lCe(n.fileName,[GA(n.checkJsDirective?Rc(n.checkJsDirective.pos,n.checkJsDirective.end):Wl(0,0),`// @ts-nocheck${u}`)])],p.Disable_checking_for_this_file)];return Kr.isValidLocationToAddComment(n,s.start)&&f.unshift(js(I_e,Kr.ChangeTracker.with(t,g=>oEe(g,n,s.start)),p.Ignore_this_error_message,F_e,p.Add_ts_ignore_to_all_error_messages)),f},fixIds:[F_e],getAllCodeActions:e=>{const t=new Set;return Ga(e,O_e,(n,i)=>{Kr.isValidLocationToAddComment(i.file,i.start)&&oEe(n,i.file,i.start,t)})}})}});function L_e(e,t,n,i,s,o,c){const u=e.symbol.members;for(const f of t)u.has(f.escapedName)||cEe(f,e,n,i,s,o,c,void 0)}function F6(e){return{trackSymbol:()=>!1,moduleResolverHost:pG(e.program,e.host)}}function cEe(e,t,n,i,s,o,c,u,f=3,g=!1){const d=e.getDeclarations(),y=bl(d),S=i.program.getTypeChecker(),T=Fa(i.program.getCompilerOptions()),k=(y==null?void 0:y.kind)??171,w=ee(e,y),P=y?Lu(y):0;let F=P&256;F|=P&1?1:P&4?4:0,y&&s_(y)&&(F|=512);const J=Y(),U=S.getWidenedType(S.getTypeOfSymbolAtLocation(e,t)),$=!!(e.flags&16777216),j=!!(t.flags&33554432)||g,re=Df(n,s);switch(k){case 171:case 172:const oe=re===0?268435456:void 0;let Se=S.typeToTypeNode(U,t,oe,F6(i));if(o){const K=Rx(Se,T);K&&(Se=K.typeNode,O6(o,K.symbols))}c(I.createPropertyDeclaration(J,y?pe(w):e.getName(),$&&f&2?I.createToken(58):void 0,Se,void 0));break;case 177:case 178:{E.assertIsDefined(d);let K=S.typeToTypeNode(U,t,void 0,F6(i));const fe=Mb(d,y),ke=fe.secondAccessor?[fe.firstAccessor,fe.secondAccessor]:[fe.firstAccessor];if(o){const Oe=Rx(K,T);Oe&&(K=Oe.typeNode,O6(o,Oe.symbols))}for(const Oe of ke)if(Tf(Oe))c(I.createGetAccessorDeclaration(J,pe(w),Ve,q(K),H(u,re,j)));else{E.assertNode(Oe,J_,"The counterpart to a getter should be a setter");const me=NE(Oe),be=me&&Ie(me.name)?on(me.name):void 0;c(I.createSetAccessorDeclaration(J,pe(w),R_e(1,[be],[q(K)],1,!1),H(u,re,j)))}break}case 173:case 174:E.assertIsDefined(d);const ae=U.isUnion()?Zs(U.types,K=>K.getCallSignatures()):U.getCallSignatures();if(!ct(ae))break;if(d.length===1){E.assert(ae.length===1,"One declaration implies one signature");const K=ae[0];R(re,K,J,pe(w),H(u,re,j));break}for(const K of ae)R(re,K,J,pe(w));if(!j)if(d.length>ae.length){const K=S.getSignatureFromDeclaration(d[d.length-1]);R(re,K,J,pe(w),H(u,re))}else E.assert(d.length===ae.length,"Declarations and signatures should match count"),c(PGe(S,i,t,ae,pe(w),$&&!!(f&1),J,re,u));break}function R(oe,Se,ae,K,fe){const ke=cQ(174,i,oe,Se,fe,K,ae,$&&!!(f&1),t,o);ke&&c(ke)}function Y(){let oe;return F&&(oe=Dk(oe,I.createModifiersFromModifierFlags(F))),ue()&&(oe=_r(oe,I.createToken(164))),oe&&I.createNodeArray(oe)}function ue(){return!!(i.program.getCompilerOptions().noImplicitOverride&&y&&Zv(y))}function pe(oe){return Ie(oe)&&oe.escapedText==="constructor"?I.createComputedPropertyName(I.createStringLiteral(on(oe),re===0)):Mo(oe,!1)}function H(oe,Se,ae){return ae?void 0:Mo(oe,!1)||j_e(Se)}function q(oe){return Mo(oe,!1)}function ee(oe,Se){if(Ko(oe)&262144){const ae=oe.links.nameType;if(ae&&bp(ae))return I.createIdentifier(xi(Sp(ae)))}return Mo(us(Se),!1)}}function cQ(e,t,n,i,s,o,c,u,f,g){const d=t.program,y=d.getTypeChecker(),S=Fa(d.getCompilerOptions()),T=Hr(f),k=524545|(n===0?268435456:0),w=y.signatureToSignatureDeclaration(i,e,f,k,F6(t));if(!w)return;let P=T?void 0:w.typeParameters,F=w.parameters,J=T?void 0:w.type;if(g){if(P){const re=nl(P,R=>{let Y=R.constraint,ue=R.default;if(Y){const pe=Rx(Y,S);pe&&(Y=pe.typeNode,O6(g,pe.symbols))}if(ue){const pe=Rx(ue,S);pe&&(ue=pe.typeNode,O6(g,pe.symbols))}return I.updateTypeParameterDeclaration(R,R.modifiers,R.name,Y,ue)});P!==re&&(P=Ke(I.createNodeArray(re,P.hasTrailingComma),P))}const j=nl(F,re=>{let R=T?void 0:re.type;if(R){const Y=Rx(R,S);Y&&(R=Y.typeNode,O6(g,Y.symbols))}return I.updateParameterDeclaration(re,re.modifiers,re.dotDotDotToken,re.name,T?void 0:re.questionToken,R,re.initializer)});if(F!==j&&(F=Ke(I.createNodeArray(j,F.hasTrailingComma),F)),J){const re=Rx(J,S);re&&(J=re.typeNode,O6(g,re.symbols))}}const U=u?I.createToken(58):void 0,$=w.asteriskToken;if(lo(w))return I.updateFunctionExpression(w,c,w.asteriskToken,Wn(o,Ie),P,F,J,s??w.body);if(mo(w))return I.updateArrowFunction(w,c,P,F,J,w.equalsGreaterThanToken,s??w.body);if(hc(w))return I.updateMethodDeclaration(w,c,$,o??I.createIdentifier(""),U,P,F,J,s);if(Xc(w))return I.updateFunctionDeclaration(w,c,w.asteriskToken,Wn(o,Ie),P,F,J,s??w.body)}function M_e(e,t,n,i,s,o,c){const u=Df(t.sourceFile,t.preferences),f=Fa(t.program.getCompilerOptions()),g=F6(t),d=t.program.getTypeChecker(),y=Hr(c),{typeArguments:S,arguments:T,parent:k}=i,w=y?void 0:d.getContextualType(i),P=nr(T,ue=>Ie(ue)?ue.text:Sn(ue)&&Ie(ue.name)?ue.name.text:void 0),F=y?[]:nr(T,ue=>d.getTypeAtLocation(ue)),{argumentTypeNodes:J,argumentTypeParameters:U}=_Ee(d,n,F,c,f,1,g),$=o?I.createNodeArray(I.createModifiersFromModifierFlags(o)):void 0,j=TO(k)?I.createToken(42):void 0,re=y?void 0:CGe(d,U,S),R=R_e(T.length,P,J,void 0,y),Y=y||w===void 0?void 0:d.typeToTypeNode(w,c,void 0,g);switch(e){case 174:return I.createMethodDeclaration($,j,s,void 0,re,R,Y,j_e(u));case 173:return I.createMethodSignature($,s,void 0,re,R,Y===void 0?I.createKeywordTypeNode(159):Y);case 262:return E.assert(typeof s=="string"||Ie(s),"Unexpected name"),I.createFunctionDeclaration($,j,s,re,R,Y,UM(p.Function_not_implemented.message,u));default:E.fail("Unexpected kind")}}function CGe(e,t,n){const i=new Set(t.map(o=>o[0])),s=new Map(t);if(n){const o=n.filter(u=>!t.some(f=>{var g;return e.getTypeAtLocation(u)===((g=f[1])==null?void 0:g.argumentType)})),c=i.size+o.length;for(let u=0;i.size{var c;return I.createTypeParameterDeclaration(void 0,o,(c=s.get(o))==null?void 0:c.constraint)})}function lEe(e){return 84+e<=90?String.fromCharCode(84+e):`T${e}`}function lQ(e,t,n,i,s,o,c){let u=e.typeToTypeNode(n,i,o,c);if(u&&Cg(u)){const f=Rx(u,s);f&&(O6(t,f.symbols),u=f.typeNode)}return Mo(u)}function uEe(e){return e.isUnionOrIntersection()?e.types.some(uEe):e.flags&262144}function _Ee(e,t,n,i,s,o,c){const u=[],f=new Map;for(let g=0;g=i?I.createToken(58):void 0,s?void 0:(n==null?void 0:n[u])||I.createKeywordTypeNode(159),void 0);o.push(d)}return o}function PGe(e,t,n,i,s,o,c,u,f){let g=i[0],d=i[0].minArgumentCount,y=!1;for(const w of i)d=Math.min(w.minArgumentCount,d),Su(w)&&(y=!0),w.parameters.length>=g.parameters.length&&(!Su(w)||Su(g))&&(g=w);const S=g.parameters.length-(Su(g)?1:0),T=g.parameters.map(w=>w.name),k=R_e(S,T,void 0,d,!1);if(y){const w=I.createParameterDeclaration(void 0,I.createToken(26),T[S]||"rest",S>=d?I.createToken(58):void 0,I.createArrayTypeNode(I.createKeywordTypeNode(159)),void 0);k.push(w)}return wGe(c,s,o,void 0,k,DGe(i,e,t,n),u,f)}function DGe(e,t,n,i){if(mr(e)){const s=t.getUnionType(nr(e,t.getReturnTypeOfSignature));return t.typeToTypeNode(s,i,1,F6(n))}}function wGe(e,t,n,i,s,o,c,u){return I.createMethodDeclaration(e,void 0,t,n?I.createToken(58):void 0,i,s,o,u||j_e(c))}function j_e(e){return UM(p.Method_not_implemented.message,e)}function UM(e,t){return I.createBlock([I.createThrowStatement(I.createNewExpression(I.createIdentifier("Error"),void 0,[I.createStringLiteral(e,t===0)]))],!0)}function B_e(e,t,n){const i=hE(t);if(!i)return;const s=z_e(i,"compilerOptions");if(s===void 0){e.insertNodeAtObjectStart(t,i,uQ("compilerOptions",I.createObjectLiteralExpression(n.map(([c,u])=>uQ(c,u)),!0)));return}const o=s.initializer;if(ua(o))for(const[c,u]of n){const f=z_e(o,c);f===void 0?e.insertNodeAtObjectStart(t,o,uQ(c,u)):e.replaceNode(t,f.initializer,u)}}function J_e(e,t,n,i){B_e(e,t,[[n,i]])}function uQ(e,t){return I.createPropertyAssignment(I.createStringLiteral(e),t)}function z_e(e,t){return wn(e.properties,n=>zc(n)&&!!n.name&&aa(n.name)&&n.name.text===t)}function Rx(e,t){let n;const i=qe(e,s,ki);if(n&&i)return{typeNode:i,symbols:n};function s(o){if(ey(o)&&o.qualifier){const c=lf(o.qualifier),u=QL(c.symbol,t),f=u!==c.text?pEe(o.qualifier,I.createIdentifier(u)):o.qualifier;n=_r(n,c.symbol);const g=Dr(o.typeArguments,s,ki);return I.createTypeReferenceNode(f,g)}return ur(o,s,void 0)}}function pEe(e,t){return e.kind===80?t:I.createQualifiedName(pEe(e.left,t),e.right)}function O6(e,t){t.forEach(n=>e.addImportFromExportedSymbol(n,!0))}function W_e(e,t){const n=bc(t);let i=Ui(e,t.start);for(;i.end(e[e.Method=1]="Method",e[e.Property=2]="Property",e[e.All=3]="All",e))(V_e||{})}});function dEe(e,t,n,i,s,o){const c=hEe(e,t,n,i);if(!c||Ix.isRefactorErrorInfo(c))return;const u=Kr.ChangeTracker.fromContext(s),{isStatic:f,isReadonly:g,fieldName:d,accessorName:y,originalName:S,type:T,container:k,declaration:w}=c;U_(d),U_(y),U_(w),U_(k);let P,F;if($n(k)){const U=Lu(w);if(Ou(e)){const $=I.createModifiersFromModifierFlags(U);P=$,F=$}else P=I.createModifiersFromModifierFlags(FGe(U)),F=I.createModifiersFromModifierFlags(OGe(U));Kb(w)&&(F=es(q0(w),F))}BGe(u,e,w,T,d,F);const J=LGe(d,y,T,P,f,k);if(U_(J),yEe(u,e,J,w,k),g){const U=Sg(k);U&&JGe(u,e,U,d.text,S)}else{const U=MGe(d,y,T,P,f,k);U_(U),yEe(u,e,U,w,k)}return u.getChanges()}function NGe(e){return Ie(e)||aa(e)}function IGe(e){return O_(e,e.parent)||xs(e)||zc(e)}function mEe(e,t){return Ie(t)?I.createIdentifier(e):I.createStringLiteral(e)}function gEe(e,t,n){const i=t?n.name:I.createThis();return Ie(e)?I.createPropertyAccessExpression(i,e):I.createElementAccessExpression(i,I.createStringLiteralFromNode(e))}function FGe(e){return e&=-9,e&=-3,e&4||(e|=1),e}function OGe(e){return e&=-2,e&=-5,e|=2,e}function hEe(e,t,n,i,s=!0){const o=Ui(e,n),c=n===i&&s,u=Pr(o.parent,IGe),f=271;if(!u||!(vL(u.name,e,n,i)||c))return{error:ds(p.Could_not_find_property_for_which_to_generate_accessor)};if(!NGe(u.name))return{error:ds(p.Name_is_not_valid)};if((Lu(u)&98303|f)!==f)return{error:ds(p.Can_only_convert_property_with_modifier)};const g=u.name.text,d=jG(g),y=mEe(d?g:uS(`_${g}`,e),u.name),S=mEe(d?uS(g.substring(1),e):g,u.name);return{isStatic:Bc(u),isReadonly:IE(u),type:zGe(u,t),container:u.kind===169?u.parent.parent:u.parent,originalName:u.name.text,declaration:u,fieldName:y,accessorName:S,renameAccessor:d}}function LGe(e,t,n,i,s,o){return I.createGetAccessorDeclaration(i,t,[],n,I.createBlock([I.createReturnStatement(gEe(e,s,o))],!0))}function MGe(e,t,n,i,s,o){return I.createSetAccessorDeclaration(i,t,[I.createParameterDeclaration(void 0,void 0,I.createIdentifier("value"),void 0,n)],I.createBlock([I.createExpressionStatement(I.createAssignment(gEe(e,s,o),I.createIdentifier("value")))],!0))}function RGe(e,t,n,i,s,o){const c=I.updatePropertyDeclaration(n,o,s,n.questionToken||n.exclamationToken,i,n.initializer);e.replaceNode(t,n,c)}function jGe(e,t,n,i){let s=I.updatePropertyAssignment(n,i,n.initializer);(s.modifiers||s.questionToken||s.exclamationToken)&&(s===n&&(s=I.cloneNode(s)),s.modifiers=void 0,s.questionToken=void 0,s.exclamationToken=void 0),e.replacePropertyAssignment(t,n,s)}function BGe(e,t,n,i,s,o){xs(n)?RGe(e,t,n,i,s,o):zc(n)?jGe(e,t,n,s):e.replaceNode(t,n,I.updateParameterDeclaration(n,o,n.dotDotDotToken,Ls(s,Ie),n.questionToken,n.type,n.initializer))}function yEe(e,t,n,i,s){O_(i,i.parent)?e.insertMemberAtStart(t,s,n):zc(i)?e.insertNodeAfterComma(t,i,n):e.insertNodeAfter(t,i,n)}function JGe(e,t,n,i,s){n.body&&n.body.forEachChild(function o(c){Co(c)&&c.expression.kind===110&&aa(c.argumentExpression)&&c.argumentExpression.text===s&&WT(c)&&e.replaceNode(t,c.argumentExpression,I.createStringLiteral(i)),Sn(c)&&c.expression.kind===110&&c.name.text===s&&WT(c)&&e.replaceNode(t,c.name,I.createIdentifier(i)),!As(c)&&!$n(c)&&c.forEachChild(o)})}function zGe(e,t){const n=vre(e);if(xs(e)&&n&&e.questionToken){const i=t.getTypeChecker(),s=i.getTypeFromTypeNode(n);if(!i.isTypeAssignableTo(i.getUndefinedType(),s)){const o=uy(n)?n.types:[n];return I.createUnionTypeNode([...o,I.createKeywordTypeNode(157)])}}return n}function U_e(e,t){const n=[];for(;e;){const i=Gv(e),s=i&&t.getSymbolAtLocation(i.expression);if(!s)break;const o=s.flags&2097152?t.getAliasedSymbol(s):s,c=o.declarations&&wn(o.declarations,$n);if(!c)break;n.push(c),e=c}return n}var WGe=Dt({"src/services/codefixes/generateAccessors.ts"(){qn()}});function VGe(e,t){const n=wr(t),i=_C(t),s=e.program.getCompilerOptions(),o=[];return o.push(vEe(e,n,t,_0(i.name,void 0,t.moduleSpecifier,Df(n,e.preferences)))),au(s)===1&&o.push(vEe(e,n,t,I.createImportEqualsDeclaration(void 0,!1,i.name,I.createExternalModuleReference(t.moduleSpecifier)))),o}function vEe(e,t,n,i){const s=Kr.ChangeTracker.with(e,o=>o.replaceNode(t,n,i));return Sd(q_e,s,[p.Replace_import_with_0,s[0].textChanges[0].newText])}function UGe(e){const t=e.sourceFile,n=p.This_expression_is_not_callable.code===e.errorCode?213:214,i=Pr(Ui(t,e.span.start),o=>o.kind===n);if(!i)return[];const s=i.expression;return bEe(e,s)}function qGe(e){const t=e.sourceFile,n=Pr(Ui(t,e.span.start),i=>i.getStart()===e.span.start&&i.getEnd()===e.span.start+e.span.length);return n?bEe(e,n):[]}function bEe(e,t){const n=e.program.getTypeChecker().getTypeAtLocation(t);if(!(n.symbol&&wm(n.symbol)&&n.symbol.links.originatingImport))return[];const i=[],s=n.symbol.links.originatingImport;if(of(s)||Nn(i,VGe(e,s)),ot(t)&&!(Nu(t.parent)&&t.parent.name===t)){const o=e.sourceFile,c=Kr.ChangeTracker.with(e,u=>u.replaceNode(o,t,I.createPropertyAccessExpression(t,"default"),{}));i.push(Sd(q_e,c,p.Use_synthetic_default_member))}return i}var q_e,HGe=Dt({"src/services/codefixes/fixInvalidImportSyntax.ts"(){qn(),ra(),q_e="invalidImportSyntax",ea({errorCodes:[p.This_expression_is_not_callable.code,p.This_expression_is_not_constructable.code],getCodeActions:UGe}),ea({errorCodes:[p.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,p.Type_0_does_not_satisfy_the_constraint_1.code,p.Type_0_is_not_assignable_to_type_1.code,p.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,p.Type_predicate_0_is_not_assignable_to_1.code,p.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,p._0_index_type_1_is_not_assignable_to_2_index_type_3.code,p.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,p.Property_0_in_type_1_is_not_assignable_to_type_2.code,p.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,p.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:qGe})}});function SEe(e,t){const n=Ui(e,t);if(Ie(n)&&xs(n.parent)){const i=Vl(n.parent);if(i)return{type:i,prop:n.parent,isJs:Hr(n.parent)}}}function GGe(e,t){if(t.isJs)return;const n=Kr.ChangeTracker.with(e,i=>TEe(i,e.sourceFile,t.prop));return js(_Q,n,[p.Add_definite_assignment_assertion_to_property_0,t.prop.getText()],fQ,p.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function TEe(e,t,n){U_(n);const i=I.updatePropertyDeclaration(n,n.modifiers,n.name,I.createToken(54),n.type,n.initializer);e.replaceNode(t,n,i)}function $Ge(e,t){const n=Kr.ChangeTracker.with(e,i=>xEe(i,e.sourceFile,t));return js(_Q,n,[p.Add_undefined_type_to_property_0,t.prop.name.getText()],pQ,p.Add_undefined_type_to_all_uninitialized_properties)}function xEe(e,t,n){const i=I.createKeywordTypeNode(157),s=uy(n.type)?n.type.types.concat(i):[n.type,i],o=I.createUnionTypeNode(s);n.isJs?e.addJSDocTags(t,n.prop,[I.createJSDocTypeTag(void 0,I.createJSDocTypeExpression(o))]):e.replaceNode(t,n.type,o)}function XGe(e,t){if(t.isJs)return;const n=e.program.getTypeChecker(),i=CEe(n,t.prop);if(!i)return;const s=Kr.ChangeTracker.with(e,o=>kEe(o,e.sourceFile,t.prop,i));return js(_Q,s,[p.Add_initializer_to_property_0,t.prop.name.getText()],dQ,p.Add_initializers_to_all_uninitialized_properties)}function kEe(e,t,n,i){U_(n);const s=I.updatePropertyDeclaration(n,n.modifiers,n.name,n.questionToken,n.type,i);e.replaceNode(t,n,s)}function CEe(e,t){return EEe(e,e.getTypeFromTypeNode(t.type))}function EEe(e,t){if(t.flags&512)return t===e.getFalseType()||t===e.getFalseType(!0)?I.createFalse():I.createTrue();if(t.isStringLiteral())return I.createStringLiteral(t.value);if(t.isNumberLiteral())return I.createNumericLiteral(t.value);if(t.flags&2048)return I.createBigIntLiteral(t.value);if(t.isUnion())return Qa(t.types,n=>EEe(e,n));if(t.isClass()){const n=rh(t.symbol);if(!n||Rn(n,64))return;const i=Sg(n);return i&&i.parameters.length?void 0:I.createNewExpression(I.createIdentifier(t.symbol.name),void 0,void 0)}else if(e.isArrayLikeType(t))return I.createArrayLiteralExpression()}var _Q,fQ,pQ,dQ,H_e,QGe=Dt({"src/services/codefixes/fixStrictClassInitialization.ts"(){qn(),ra(),_Q="strictClassInitialization",fQ="addMissingPropertyDefiniteAssignmentAssertions",pQ="addMissingPropertyUndefinedType",dQ="addMissingPropertyInitializer",H_e=[p.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code],ea({errorCodes:H_e,getCodeActions:function(t){const n=SEe(t.sourceFile,t.span.start);if(!n)return;const i=[];return _r(i,$Ge(t,n)),_r(i,GGe(t,n)),_r(i,XGe(t,n)),i},fixIds:[fQ,pQ,dQ],getAllCodeActions:e=>Ga(e,H_e,(t,n)=>{const i=SEe(n.file,n.start);if(i)switch(e.fixId){case fQ:TEe(t,n.file,i.prop);break;case pQ:xEe(t,n.file,i);break;case dQ:const s=e.program.getTypeChecker(),o=CEe(s,i.prop);if(!o)return;kEe(t,n.file,i.prop,o);break;default:E.fail(JSON.stringify(e.fixId))}})})}});function PEe(e,t,n){const{allowSyntheticDefaults:i,defaultImportName:s,namedImports:o,statement:c,required:u}=n;e.replaceNode(t,c,s&&!i?I.createImportEqualsDeclaration(void 0,!1,s,I.createExternalModuleReference(u)):I.createImportDeclaration(void 0,I.createImportClause(!1,s,o),u,void 0))}function DEe(e,t,n){const{parent:i}=Ui(e,n);Gu(i,!0)||E.failBadSyntaxKind(i);const s=Ls(i.parent,hi),o=Wn(s.name,Ie),c=xp(s.name)?YGe(s.name):void 0;if(o||c)return{allowSyntheticDefaults:Bb(t.getCompilerOptions()),defaultImportName:o,namedImports:c,statement:Ls(s.parent.parent,ac),required:va(i.arguments)}}function YGe(e){const t=[];for(const n of e.elements){if(!Ie(n.name)||n.initializer)return;t.push(I.createImportSpecifier(!1,Wn(n.propertyName,Ie),n.name))}if(t.length)return I.createNamedImports(t)}var mQ,G_e,ZGe=Dt({"src/services/codefixes/requireInTs.ts"(){qn(),ra(),mQ="requireInTs",G_e=[p.require_call_may_be_converted_to_an_import.code],ea({errorCodes:G_e,getCodeActions(e){const t=DEe(e.sourceFile,e.program,e.span.start);if(!t)return;const n=Kr.ChangeTracker.with(e,i=>PEe(i,e.sourceFile,t));return[js(mQ,n,p.Convert_require_to_import,mQ,p.Convert_all_require_to_import)]},fixIds:[mQ],getAllCodeActions:e=>Ga(e,G_e,(t,n)=>{const i=DEe(n.file,e.program,n.start);i&&PEe(t,e.sourceFile,i)})})}});function wEe(e,t){const n=Ui(e,t);if(!Ie(n))return;const{parent:i}=n;if(El(i)&&Bm(i.moduleReference))return{importNode:i,name:n,moduleSpecifier:i.moduleReference.expression};if(dy(i)){const s=i.parent.parent;return{importNode:s,name:n,moduleSpecifier:s.moduleSpecifier}}}function AEe(e,t,n,i){e.replaceNode(t,n.importNode,_0(n.name,void 0,n.moduleSpecifier,Df(t,i)))}var gQ,$_e,KGe=Dt({"src/services/codefixes/useDefaultImport.ts"(){qn(),ra(),gQ="useDefaultImport",$_e=[p.Import_may_be_converted_to_a_default_import.code],ea({errorCodes:$_e,getCodeActions(e){const{sourceFile:t,span:{start:n}}=e,i=wEe(t,n);if(!i)return;const s=Kr.ChangeTracker.with(e,o=>AEe(o,t,i,e.preferences));return[js(gQ,s,p.Convert_to_default_import,gQ,p.Convert_all_to_default_imports)]},fixIds:[gQ],getAllCodeActions:e=>Ga(e,$_e,(t,n)=>{const i=wEe(n.file,n.start);i&&AEe(t,n.file,i,e.preferences)})})}});function NEe(e,t,n){const i=Wn(Ui(t,n.start),j_);if(!i)return;const s=i.getText(t)+"n";e.replaceNode(t,i,I.createBigIntLiteral(s))}var hQ,X_e,e$e=Dt({"src/services/codefixes/useBigintLiteral.ts"(){qn(),ra(),hQ="useBigintLiteral",X_e=[p.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code],ea({errorCodes:X_e,getCodeActions:function(t){const n=Kr.ChangeTracker.with(t,i=>NEe(i,t.sourceFile,t.span));if(n.length>0)return[js(hQ,n,p.Convert_to_a_bigint_numeric_literal,hQ,p.Convert_all_to_bigint_numeric_literals)]},fixIds:[hQ],getAllCodeActions:e=>Ga(e,X_e,(t,n)=>NEe(t,n.file,n))})}});function IEe(e,t){const n=Ui(e,t);return E.assert(n.kind===102,"This token should be an ImportKeyword"),E.assert(n.parent.kind===205,"Token parent should be an ImportType"),n.parent}function FEe(e,t,n){const i=I.updateImportTypeNode(n,n.argument,n.attributes,n.qualifier,n.typeArguments,!0);e.replaceNode(t,n,i)}var OEe,yQ,Q_e,t$e=Dt({"src/services/codefixes/fixAddModuleReferTypeMissingTypeof.ts"(){qn(),ra(),OEe="fixAddModuleReferTypeMissingTypeof",yQ=OEe,Q_e=[p.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code],ea({errorCodes:Q_e,getCodeActions:function(t){const{sourceFile:n,span:i}=t,s=IEe(n,i.start),o=Kr.ChangeTracker.with(t,c=>FEe(c,n,s));return[js(yQ,o,p.Add_missing_typeof,yQ,p.Add_missing_typeof)]},fixIds:[yQ],getAllCodeActions:e=>Ga(e,Q_e,(t,n)=>FEe(t,e.sourceFile,IEe(n.file,n.start)))})}});function LEe(e,t){let s=Ui(e,t).parent.parent;if(!(!Zr(s)&&(s=s.parent,!Zr(s)))&&_c(s.operatorToken))return s}function MEe(e,t,n){const i=r$e(n);i&&e.replaceNode(t,n,I.createJsxFragment(I.createJsxOpeningFragment(),i,I.createJsxJsxClosingFragment()))}function r$e(e){const t=[];let n=e;for(;;)if(Zr(n)&&_c(n.operatorToken)&&n.operatorToken.kind===28){if(t.push(n.left),i8(n.right))return t.push(n.right),t;if(Zr(n.right)){n=n.right;continue}else return}else return}var vQ,Y_e,n$e=Dt({"src/services/codefixes/wrapJsxInFragment.ts"(){qn(),ra(),vQ="wrapJsxInFragment",Y_e=[p.JSX_expressions_must_have_one_parent_element.code],ea({errorCodes:Y_e,getCodeActions:function(t){const{sourceFile:n,span:i}=t,s=LEe(n,i.start);if(!s)return;const o=Kr.ChangeTracker.with(t,c=>MEe(c,n,s));return[js(vQ,o,p.Wrap_in_JSX_fragment,vQ,p.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[vQ],getAllCodeActions:e=>Ga(e,Y_e,(t,n)=>{const i=LEe(e.sourceFile,n.start);i&&MEe(t,e.sourceFile,i)})})}});function REe(e,t){const n=Ui(e,t),i=Wn(n.parent.parent,i2);if(!i)return;const s=Bu(i.parent)?i.parent:Wn(i.parent.parent,qp);if(s)return{indexSignature:i,container:s}}function i$e(e,t){return I.createTypeAliasDeclaration(e.modifiers,e.name,e.typeParameters,t)}function jEe(e,t,{indexSignature:n,container:i}){const o=(Bu(i)?i.members:i.type.members).filter(d=>!i2(d)),c=va(n.parameters),u=I.createTypeParameterDeclaration(void 0,Ls(c.name,Ie),c.type),f=I.createMappedTypeNode(IE(n)?I.createModifier(148):void 0,u,void 0,n.questionToken,n.type,void 0),g=I.createIntersectionTypeNode([...xE(i),f,...o.length?[I.createTypeLiteralNode(o)]:Ve]);e.replaceNode(t,i,i$e(i,g))}var bQ,Z_e,s$e=Dt({"src/services/codefixes/convertToMappedObjectType.ts"(){qn(),ra(),bQ="fixConvertToMappedObjectType",Z_e=[p.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code],ea({errorCodes:Z_e,getCodeActions:function(t){const{sourceFile:n,span:i}=t,s=REe(n,i.start);if(!s)return;const o=Kr.ChangeTracker.with(t,u=>jEe(u,n,s)),c=on(s.container.name);return[js(bQ,o,[p.Convert_0_to_mapped_object_type,c],bQ,[p.Convert_0_to_mapped_object_type,c])]},fixIds:[bQ],getAllCodeActions:e=>Ga(e,Z_e,(t,n)=>{const i=REe(n.file,n.start);i&&jEe(t,n.file,i)})})}}),K_e,BEe,a$e=Dt({"src/services/codefixes/removeAccidentalCallParentheses.ts"(){qn(),ra(),K_e="removeAccidentalCallParentheses",BEe=[p.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],ea({errorCodes:BEe,getCodeActions(e){const t=Pr(Ui(e.sourceFile,e.span.start),Rs);if(!t)return;const n=Kr.ChangeTracker.with(e,i=>{i.deleteRange(e.sourceFile,{pos:t.expression.end,end:t.end})});return[Sd(K_e,n,p.Remove_parentheses)]},fixIds:[K_e]})}});function JEe(e,t,n){const i=Wn(Ui(t,n.start),u=>u.kind===135),s=i&&Wn(i.parent,fy);if(!s)return;let o=s;if(l_(s.parent)){const u=EC(s.expression,!1);if(Ie(u)){const f=Yc(s.parent.pos,t);f&&f.kind!==105&&(o=s.parent)}}e.replaceNode(t,o,s.expression)}var SQ,efe,o$e=Dt({"src/services/codefixes/removeUnnecessaryAwait.ts"(){qn(),ra(),SQ="removeUnnecessaryAwait",efe=[p.await_has_no_effect_on_the_type_of_this_expression.code],ea({errorCodes:efe,getCodeActions:function(t){const n=Kr.ChangeTracker.with(t,i=>JEe(i,t.sourceFile,t.span));if(n.length>0)return[js(SQ,n,p.Remove_unnecessary_await,SQ,p.Remove_all_unnecessary_uses_of_await)]},fixIds:[SQ],getAllCodeActions:e=>Ga(e,efe,(t,n)=>JEe(t,n.file,n))})}});function zEe(e,t){return Pr(Ui(e,t.start),sl)}function WEe(e,t,n){if(!t)return;const i=E.checkDefined(t.importClause);e.replaceNode(n.sourceFile,t,I.updateImportDeclaration(t,t.modifiers,I.updateImportClause(i,i.isTypeOnly,i.name,void 0),t.moduleSpecifier,t.attributes)),e.insertNodeAfter(n.sourceFile,t,I.createImportDeclaration(void 0,I.updateImportClause(i,i.isTypeOnly,void 0,i.namedBindings),t.moduleSpecifier,t.attributes))}var tfe,TQ,c$e=Dt({"src/services/codefixes/splitTypeOnlyImport.ts"(){qn(),ra(),tfe=[p.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],TQ="splitTypeOnlyImport",ea({errorCodes:tfe,fixIds:[TQ],getCodeActions:function(t){const n=Kr.ChangeTracker.with(t,i=>WEe(i,zEe(t.sourceFile,t.span),t));if(n.length)return[js(TQ,n,p.Split_into_two_separate_import_declarations,TQ,p.Split_all_invalid_type_only_imports)]},getAllCodeActions:e=>Ga(e,tfe,(t,n)=>{WEe(t,zEe(e.sourceFile,n),e)})})}});function VEe(e,t,n){var i;const o=n.getTypeChecker().getSymbolAtLocation(Ui(e,t));if(o===void 0)return;const c=Wn((i=o==null?void 0:o.valueDeclaration)==null?void 0:i.parent,ml);if(c===void 0)return;const u=qa(c,87,e);if(u!==void 0)return{symbol:o,token:u}}function UEe(e,t,n){e.replaceNode(t,n,I.createToken(121))}var xQ,rfe,l$e=Dt({"src/services/codefixes/convertConstToLet.ts"(){qn(),ra(),xQ="fixConvertConstToLet",rfe=[p.Cannot_assign_to_0_because_it_is_a_constant.code],ea({errorCodes:rfe,getCodeActions:function(t){const{sourceFile:n,span:i,program:s}=t,o=VEe(n,i.start,s);if(o===void 0)return;const c=Kr.ChangeTracker.with(t,u=>UEe(u,n,o.token));return[tue(xQ,c,p.Convert_const_to_let,xQ,p.Convert_all_const_to_let)]},getAllCodeActions:e=>{const{program:t}=e,n=new Map;return A6(Kr.ChangeTracker.with(e,i=>{N6(e,rfe,s=>{const o=VEe(s.file,s.start,t);if(o&&Vp(n,Ks(o.symbol)))return UEe(i,s.file,o.token)})}))},fixIds:[xQ]})}});function qEe(e,t,n){const i=Ui(e,t);return i.kind===27&&i.parent&&(ua(i.parent)||ju(i.parent))?{node:i}:void 0}function HEe(e,t,{node:n}){const i=I.createToken(28);e.replaceNode(t,n,i)}var kQ,GEe,nfe,u$e=Dt({"src/services/codefixes/fixExpectedComma.ts"(){qn(),ra(),kQ="fixExpectedComma",GEe=p._0_expected.code,nfe=[GEe],ea({errorCodes:nfe,getCodeActions(e){const{sourceFile:t}=e,n=qEe(t,e.span.start,e.errorCode);if(!n)return;const i=Kr.ChangeTracker.with(e,s=>HEe(s,t,n));return[js(kQ,i,[p.Change_0_to_1,";",","],kQ,[p.Change_0_to_1,";",","])]},fixIds:[kQ],getAllCodeActions:e=>Ga(e,nfe,(t,n)=>{const i=qEe(n.file,n.start,n.code);i&&HEe(t,e.sourceFile,i)})})}});function $Ee(e,t,n,i,s){const o=Ui(t,n.start);if(!Ie(o)||!Rs(o.parent)||o.parent.expression!==o||o.parent.arguments.length!==0)return;const c=i.getTypeChecker(),u=c.getSymbolAtLocation(o),f=u==null?void 0:u.valueDeclaration;if(!f||!rs(f)||!a2(f.parent.parent)||s!=null&&s.has(f))return;s==null||s.add(f);const g=_$e(f.parent.parent);if(ct(g)){const d=g[0],y=!uy(d)&&!Wb(d)&&Wb(I.createUnionTypeNode([d,I.createKeywordTypeNode(116)]).types[0]);y&&e.insertText(t,d.pos,"("),e.insertText(t,d.end,y?") | void":" | void")}else{const d=c.getResolvedSignature(o.parent),y=d==null?void 0:d.parameters[0],S=y&&c.getTypeOfSymbolAtLocation(y,f.parent.parent);Hr(f)?(!S||S.flags&3)&&(e.insertText(t,f.parent.parent.end,")"),e.insertText(t,ca(t.text,f.parent.parent.pos),"/** @type {Promise} */(")):(!S||S.flags&2)&&e.insertText(t,f.parent.parent.expression.end,"")}}function _$e(e){var t;if(Hr(e)){if(l_(e.parent)){const n=(t=b1(e.parent))==null?void 0:t.typeExpression.type;if(n&&Gf(n)&&Ie(n.typeName)&&on(n.typeName)==="Promise")return n.typeArguments}}else return e.typeArguments}var XEe,ife,sfe,f$e=Dt({"src/services/codefixes/fixAddVoidToPromise.ts"(){qn(),ra(),XEe="addVoidToPromise",ife="addVoidToPromise",sfe=[p.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,p.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code],ea({errorCodes:sfe,fixIds:[ife],getCodeActions(e){const t=Kr.ChangeTracker.with(e,n=>$Ee(n,e.sourceFile,e.span,e.program));if(t.length>0)return[js(XEe,t,p.Add_void_to_Promise_resolved_without_a_value,ife,p.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions(e){return Ga(e,sfe,(t,n)=>$Ee(t,n.file,n,e.program,new Set))}})}}),lu={};Gc(lu,{PreserveOptionalFlags:()=>V_e,addNewNodeForMemberSymbol:()=>cEe,codeFixAll:()=>Ga,createCodeFixAction:()=>js,createCodeFixActionMaybeFixAll:()=>tue,createCodeFixActionWithoutFixAll:()=>Sd,createCombinedCodeActions:()=>A6,createFileTextChanges:()=>lCe,createImportAdder:()=>Lx,createImportSpecifierResolver:()=>bqe,createJsonPropertyAssignment:()=>uQ,createMissingMemberNodes:()=>L_e,createSignatureDeclarationFromCallExpression:()=>M_e,createSignatureDeclarationFromSignature:()=>cQ,createStubbedBody:()=>UM,eachDiagnostic:()=>N6,findAncestorMatchingSpan:()=>W_e,findJsonProperty:()=>z_e,generateAccessorFromProperty:()=>dEe,getAccessorConvertiblePropertyAtPosition:()=>hEe,getAllFixes:()=>QVe,getAllSupers:()=>U_e,getArgumentTypesAndTypeParameters:()=>_Ee,getFixes:()=>XVe,getImportCompletionAction:()=>Sqe,getImportKind:()=>Aue,getJSDocTypedefNodes:()=>mqe,getNoopSymbolTrackerWithResolver:()=>F6,getPromoteTypeOnlyCompletionAction:()=>Tqe,getSupportedErrorCodes:()=>GVe,importFixName:()=>Rue,importSymbols:()=>O6,moduleSpecifierToValidIdentifier:()=>Mue,moduleSymbolToValidIdentifier:()=>Lue,parameterShouldGetTypeFromJSDoc:()=>wCe,registerCodeFix:()=>ea,setJsonCompilerOptionValue:()=>J_e,setJsonCompilerOptionValues:()=>B_e,tryGetAutoImportableReferenceFromTypeNode:()=>Rx,typeToAutoImportableTypeNode:()=>lQ});var ra=Dt({"src/services/_namespaces/ts.codefix.ts"(){YVe(),ZVe(),KVe(),rUe(),oUe(),_Ue(),fUe(),pUe(),dUe(),yUe(),DUe(),AUe(),zUe(),sqe(),aqe(),cqe(),lqe(),gqe(),hqe(),vqe(),Wqe(),qqe(),$qe(),Xqe(),Qqe(),Kqe(),rHe(),sHe(),uHe(),bHe(),THe(),DHe(),wHe(),NHe(),IHe(),FHe(),OHe(),MHe(),RHe(),jHe(),BHe(),JHe(),WHe(),qHe(),XHe(),iGe(),aGe(),oGe(),uGe(),_Ge(),pGe(),dGe(),TGe(),xGe(),kGe(),AGe(),WGe(),HGe(),QGe(),ZGe(),KGe(),e$e(),t$e(),n$e(),s$e(),a$e(),o$e(),c$e(),l$e(),u$e(),f$e()}});function p$e(e){return!!(e.kind&1)}function d$e(e){return!!(e.kind&2)}function qM(e){return!!(e&&e.kind&4)}function dP(e){return!!(e&&e.kind===32)}function m$e(e){return qM(e)||dP(e)||afe(e)}function g$e(e){return(qM(e)||dP(e))&&!!e.isFromPackageJson}function h$e(e){return!!(e.kind&8)}function y$e(e){return!!(e.kind&16)}function QEe(e){return!!(e&&e.kind&64)}function YEe(e){return!!(e&&e.kind&128)}function v$e(e){return!!(e&&e.kind&256)}function afe(e){return!!(e&&e.kind&512)}function ZEe(e,t,n,i,s,o,c,u,f){var g,d,y;const S=xo(),T=c||qT(Ru(i.getCompilerOptions()));let k=!1,w=0,P=0,F=0,J=0;const U=f({tryResolve:j,skippedAny:()=>k,resolvedAny:()=>P>0,resolvedBeyondLimit:()=>P>OQ}),$=J?` (${(F/J*100).toFixed(1)}% hit rate)`:"";return(g=t.log)==null||g.call(t,`${e}: resolved ${P} module specifiers, plus ${w} ambient and ${F} from cache${$}`),(d=t.log)==null||d.call(t,`${e}: response is ${k?"incomplete":"complete"}`),(y=t.log)==null||y.call(t,`${e}: ${xo()-S}`),U;function j(re,R){if(R){const H=n.getModuleSpecifierForBestExportInfo(re,s,u);return H&&w++,H||"failed"}const Y=T||o.allowIncompleteCompletions&&P{const k=Ri(f.entries,w=>{var P;if(!w.hasAction||!w.source||!w.data||KEe(w.data))return w;if(!k3e(w.name,d))return;const{origin:F}=E.checkDefined(_3e(w.name,w.data,i,s)),J=y.get(t.path,w.data.exportMapKey),U=J&&T.tryResolve(J,!Sl(yp(F.moduleSymbol.name)));if(U==="skipped")return w;if(!U||U==="failed"){(P=s.log)==null||P.call(s,`Unexpected failure resolving auto import for '${w.name}' from '${w.source}'`);return}const $={...F,kind:32,moduleSpecifier:U.moduleSpecifier};return w.data=o3e($),w.source=lfe($),w.sourceDisplay=[wf($.moduleSpecifier)],w});return T.skippedAny()||(f.isIncomplete=void 0),k});return f.entries=S,f.flags=(f.flags||0)|4,f.optionalReplacementSpan=n3e(g),f}function ofe(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function e3e(e,t,n,i,s,o){const c=Ui(e,t);if(!Xk(c)&&!yd(c))return[];const u=yd(c)?c:c.parent;if(!yd(u))return[];const f=u.parent;if(!As(f))return[];const g=Ou(e),d=s.includeCompletionsWithSnippetText||void 0,y=R0(u.tags,S=>vd(S)&&S.getEnd()<=t);return Ri(f.parameters,S=>{if(!Vk(S).length){if(Ie(S.name)){const T={tabstop:1},k=S.name.text;let w=FN(k,S.initializer,S.dotDotDotToken,g,!1,!1,n,i,s),P=d?FN(k,S.initializer,S.dotDotDotToken,g,!1,!0,n,i,s,T):void 0;return o&&(w=w.slice(1),P&&(P=P.slice(1))),{name:w,kind:"parameter",sortText:uu.LocationPriority,insertText:d?P:void 0,isSnippet:d}}else if(S.parent.parameters.indexOf(S)===y){const T=`param${y}`,k=t3e(T,S.name,S.initializer,S.dotDotDotToken,g,!1,n,i,s),w=d?t3e(T,S.name,S.initializer,S.dotDotDotToken,g,!0,n,i,s):void 0;let P=k.join(t0(i)+"* "),F=w==null?void 0:w.join(t0(i)+"* ");return o&&(P=P.slice(1),F&&(F=F.slice(1))),{name:P,kind:"parameter",sortText:uu.LocationPriority,insertText:d?F:void 0,isSnippet:d}}}})}function t3e(e,t,n,i,s,o,c,u,f){if(!s)return[FN(e,n,i,s,!1,o,c,u,f,{tabstop:1})];return g(e,t,n,i,{tabstop:1});function g(y,S,T,k,w){if(xp(S)&&!k){const F={tabstop:w.tabstop},J=FN(y,T,k,s,!0,o,c,u,f,F);let U=[];for(const $ of S.elements){const j=d(y,$,F);if(j)U.push(...j);else{U=void 0;break}}if(U)return w.tabstop=F.tabstop,[J,...U]}return[FN(y,T,k,s,!1,o,c,u,f,w)]}function d(y,S,T){if(!S.propertyName&&Ie(S.name)||Ie(S.name)){const k=S.propertyName?mE(S.propertyName):S.name.text;if(!k)return;const w=`${y}.${k}`;return[FN(w,S.initializer,S.dotDotDotToken,s,!1,o,c,u,f,T)]}else if(S.propertyName){const k=mE(S.propertyName);return k&&g(`${y}.${k}`,S.name,S.initializer,S.dotDotDotToken,T)}}}function FN(e,t,n,i,s,o,c,u,f,g){if(o&&E.assertIsDefined(g),t&&(e=T$e(e,t)),o&&(e=r2(e)),i){let d="*";if(s)E.assert(!n,"Cannot annotate a rest parameter with type 'Object'."),d="Object";else{if(t){const T=c.getTypeAtLocation(t.parent);if(!(T.flags&16385)){const k=t.getSourceFile(),P=Df(k,f)===0?268435456:0,F=c.typeToTypeNode(T,Pr(t,As),P);if(F){const J=o?PQ({removeComments:!0,module:u.module,target:u.target}):V1({removeComments:!0,module:u.module,target:u.target});Qr(F,1),d=J.printNode(4,F,k)}}}o&&d==="*"&&(d=`\${${g.tabstop++}:${d}}`)}const y=!s&&n?"...":"",S=o?`\${${g.tabstop++}}`:"";return`@param {${y}${d}} ${e} ${S}`}else{const d=o?`\${${g.tabstop++}}`:"";return`@param ${e} ${d}`}}function T$e(e,t){const n=t.getText().trim();return n.includes(` +`)||n.length>80?`[${e}]`:`[${e}=${n}]`}function x$e(e){return{name:Ws(e),kind:"keyword",kindModifiers:"",sortText:uu.GlobalsOrKeywords}}function k$e(e,t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t,entries:e.slice()}}function r3e(e,t,n){return{kind:4,keywordCompletions:f3e(e,t),isNewIdentifierLocation:n}}function C$e(e){switch(e){case 156:return 8;default:E.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}}function n3e(e){return(e==null?void 0:e.kind)===80?Zu(e):void 0}function E$e(e,t,n,i,s,o,c,u,f,g){const{symbols:d,contextToken:y,completionKind:S,isInSnippetScope:T,isNewIdentifierLocation:k,location:w,propertyAccessToConvert:P,keywordFilters:F,symbolToOriginInfoMap:J,recommendedCompletion:U,isJsxInitializer:$,isTypeOnlyLocation:j,isJsxIdentifierExpected:re,isRightOfOpenTag:R,isRightOfDotOrQuestionDot:Y,importStatementCompletion:ue,insideJsDocTagTypeExpression:pe,symbolToSortTextMap:H,hasUnresolvedAutoImports:q}=o;let ee=o.literals;const oe=n.getTypeChecker();if(K8(e.scriptKind)===1){const Oe=D$e(w,e);if(Oe)return Oe}const Se=Pr(y,zC);if(Se&&(Kne(y)||Hv(y,Se.expression))){const Oe=eM(oe,Se.parent.clauses);ee=ee.filter(me=>!Oe.hasValue(me)),d.forEach((me,be)=>{if(me.valueDeclaration&&p2(me.valueDeclaration)){const xe=oe.getConstantValue(me.valueDeclaration);xe!==void 0&&Oe.hasValue(xe)&&(J[be]={kind:256})}})}const ae=sB(),K=i3e(e,i);if(K&&!k&&(!d||d.length===0)&&F===0)return;const fe=ufe(d,ae,void 0,y,w,f,e,t,n,Fa(i),s,S,c,i,u,j,P,re,$,ue,U,J,H,re,R,g);if(F!==0)for(const Oe of f3e(F,!pe&&Ou(e)))(j&&K3(Ov(Oe.name))||!j&&lXe(Oe.name)||!fe.has(Oe.name))&&(fe.add(Oe.name),j0(ae,Oe,HM,!0));for(const Oe of Q$e(y,f))fe.has(Oe.name)||(fe.add(Oe.name),j0(ae,Oe,HM,!0));for(const Oe of ee){const me=A$e(e,c,Oe);fe.add(me.name),j0(ae,me,HM,!0)}K||w$e(e,w.pos,fe,Fa(i),ae);let ke;if(c.includeCompletionsWithInsertText&&y&&!R&&!Y&&(ke=Pr(y,m3))){const Oe=s3e(ke,e,c,i,t,n,u);Oe&&ae.push(Oe.entry)}return{flags:o.flags,isGlobalCompletion:T,isIncomplete:c.allowIncompleteCompletions&&q?!0:void 0,isMemberCompletion:P$e(S),isNewIdentifierLocation:k,optionalReplacementSpan:n3e(w),entries:ae}}function i3e(e,t){return!Ou(e)||!!iw(e,t)}function s3e(e,t,n,i,s,o,c){const u=e.clauses,f=o.getTypeChecker(),g=f.getTypeAtLocation(e.parent.expression);if(g&&g.isUnion()&&Wi(g.types,d=>d.isLiteral())){const d=eM(f,u),y=Fa(i),S=Df(t,n),T=lu.createImportAdder(t,o,n,s),k=[];for(const j of g.types)if(j.flags&1024){E.assert(j.symbol,"An enum member type should have a symbol"),E.assert(j.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");const re=j.symbol.valueDeclaration&&f.getConstantValue(j.symbol.valueDeclaration);if(re!==void 0){if(d.hasValue(re))continue;d.addValue(re)}const R=lu.typeToAutoImportableTypeNode(f,T,j,e,y);if(!R)return;const Y=CQ(R,y,S);if(!Y)return;k.push(Y)}else if(!d.hasValue(j.value))switch(typeof j.value){case"object":k.push(j.value.negative?I.createPrefixUnaryExpression(41,I.createBigIntLiteral({negative:!1,base10Value:j.value.base10Value})):I.createBigIntLiteral(j.value));break;case"number":k.push(j.value<0?I.createPrefixUnaryExpression(41,I.createNumericLiteral(-j.value)):I.createNumericLiteral(j.value));break;case"string":k.push(I.createStringLiteral(j.value,S===0));break}if(k.length===0)return;const w=nr(k,j=>I.createCaseClause(j,[])),P=f0(s,c==null?void 0:c.options),F=PQ({removeComments:!0,module:i.module,target:i.target,newLine:aN(P)}),J=c?j=>F.printAndFormatNode(4,j,t,c):j=>F.printNode(4,j,t),U=nr(w,(j,re)=>n.includeCompletionsWithSnippetText?`${J(j)}$${re+1}`:`${J(j)}`).join(P);return{entry:{name:`${F.printNode(4,w[0],t)} ...`,kind:"",sortText:uu.GlobalsOrKeywords,insertText:U,hasAction:T.hasFixes()||void 0,source:"SwitchCases/",isSnippet:n.includeCompletionsWithSnippetText?!0:void 0},importAdder:T}}}function CQ(e,t,n){switch(e.kind){case 183:const i=e.typeName;return EQ(i,t,n);case 199:const s=CQ(e.objectType,t,n),o=CQ(e.indexType,t,n);return s&&o&&I.createElementAccessExpression(s,o);case 201:const c=e.literal;switch(c.kind){case 11:return I.createStringLiteral(c.text,n===0);case 9:return I.createNumericLiteral(c.text,c.numericLiteralFlags)}return;case 196:const u=CQ(e.type,t,n);return u&&(Ie(u)?u:I.createParenthesizedExpression(u));case 186:return EQ(e.exprName,t,n);case 205:E.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function EQ(e,t,n){if(Ie(e))return e;const i=xi(e.right.escapedText);return JW(i,t)?I.createPropertyAccessExpression(EQ(e.left,t,n),i):I.createElementAccessExpression(EQ(e.left,t,n),I.createStringLiteral(i,n===0))}function P$e(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function D$e(e,t){const n=Pr(e,i=>{switch(i.kind){case 287:return!0;case 44:case 32:case 80:case 211:return!1;default:return"quit"}});if(n){const i=!!qa(n,32,t),c=n.parent.openingElement.tagName.getText(t)+(i?"":">"),u=Zu(n.tagName),f={name:c,kind:"class",kindModifiers:void 0,sortText:uu.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:u,entries:[f]}}}function w$e(e,t,n,i,s){W$(e).forEach((o,c)=>{if(o===t)return;const u=xi(c);!n.has(u)&&bf(u,i)&&(n.add(u),j0(s,{name:u,kind:"warning",kindModifiers:"",sortText:uu.JavascriptIdentifiers,isFromUncheckedFile:!0},HM))})}function cfe(e,t,n){return typeof n=="object"?e2(n)+"n":ls(n)?sP(e,t,n):JSON.stringify(n)}function A$e(e,t,n){return{name:cfe(e,t,n),kind:"string",kindModifiers:"",sortText:uu.LocationPriority}}function N$e(e,t,n,i,s,o,c,u,f,g,d,y,S,T,k,w,P,F,J,U,$,j,re,R){var Y,ue;let pe,H,q=oG(n),ee,oe,Se=lfe(y),ae,K,fe;const ke=f.getTypeChecker(),Oe=y&&y$e(y),me=y&&d$e(y)||d;if(y&&p$e(y))pe=d?`this${Oe?"?.":""}[${c3e(c,J,g)}]`:`this${Oe?"?.":"."}${g}`;else if((me||Oe)&&T){pe=me?d?`[${c3e(c,J,g)}]`:`[${g}]`:g,(Oe||T.questionDotToken)&&(pe=`?.${pe}`);const xe=qa(T,25,c)||qa(T,29,c);if(!xe)return;const De=Vi(g,T.name.text)?T.name.end:xe.end;q=Rc(xe.getStart(c),De)}if(k&&(pe===void 0&&(pe=g),pe=`{${pe}}`,typeof k!="boolean"&&(q=Zu(k,c))),y&&h$e(y)&&T){pe===void 0&&(pe=g);const xe=Yc(T.pos,c);let De="";xe&&UL(xe.end,xe.parent,c)&&(De=";"),De+=`(await ${T.expression.getText()})`,pe=d?`${De}${pe}`:`${De}${Oe?"?.":"."}${pe}`;const ge=Wn(T.parent,fy)?T.parent:T.expression;q=Rc(ge.getStart(c),T.end)}if(dP(y)&&(ae=[wf(y.moduleSpecifier)],w&&({insertText:pe,replacementSpan:q}=j$e(g,w,y,P,c,F,J),oe=J.includeCompletionsWithSnippetText?!0:void 0)),(y==null?void 0:y.kind)===64&&(K=!0),U===0&&i&&((Y=Yc(i.pos,c,i))==null?void 0:Y.kind)!==28&&(hc(i.parent.parent)||Tf(i.parent.parent)||J_(i.parent.parent)||a0(i.parent)||((ue=Pr(i.parent,zc))==null?void 0:ue.getLastToken(c))===i||k_(i.parent)&&Ha(c,i.getEnd()).line!==Ha(c,o).line)&&(Se="ObjectLiteralMemberWithComma/",K=!0),J.includeCompletionsWithClassMemberSnippets&&J.includeCompletionsWithInsertText&&U===3&&I$e(e,s,c)){let xe;const De=a3e(u,f,F,J,g,e,s,o,i,$);if(De)({insertText:pe,filterText:H,isSnippet:oe,importAdder:xe}=De),xe!=null&&xe.hasFixes()&&(K=!0,Se="ClassMemberSnippet/");else return}if(y&&YEe(y)&&({insertText:pe,isSnippet:oe,labelDetails:fe}=y,J.useLabelDetailsInCompletionEntries||(g=g+fe.detail,fe=void 0),Se="ObjectLiteralMethodSnippet/",t=uu.SortBelow(t)),j&&!re&&J.includeCompletionsWithSnippetText&&J.jsxAttributeCompletionStyle&&J.jsxAttributeCompletionStyle!=="none"&&!(Kd(s.parent)&&s.parent.initializer)){let xe=J.jsxAttributeCompletionStyle==="braces";const De=ke.getTypeOfSymbolAtLocation(e,s);J.jsxAttributeCompletionStyle==="auto"&&!(De.flags&528)&&!(De.flags&1048576&&wn(De.types,ft=>!!(ft.flags&528)))&&(De.flags&402653316||De.flags&1048576&&Wi(De.types,ft=>!!(ft.flags&402686084||Koe(ft)))?(pe=`${r2(g)}=${sP(c,J,"$1")}`,oe=!0):xe=!0),xe&&(pe=`${r2(g)}={$1}`,oe=!0)}if(pe!==void 0&&!J.includeCompletionsWithInsertText)return;(qM(y)||dP(y))&&(ee=o3e(y),K=!w);const be=Pr(s,iF);if((be==null?void 0:be.kind)===275){const xe=Ov(g);be&&xe&&(xe===135||Qz(xe))&&(pe=`${g} as ${g}_`)}return{name:g,kind:m0.getSymbolKind(ke,e,s),kindModifiers:m0.getSymbolModifiers(ke,e),sortText:t,source:Se,hasAction:K?!0:void 0,isRecommended:B$e(e,S,ke)||void 0,insertText:pe,filterText:H,replacementSpan:q,sourceDisplay:ae,labelDetails:fe,isSnippet:oe,isPackageJsonImport:g$e(y)||void 0,isImportStatementCompletion:!!w||void 0,data:ee,...R?{symbol:e}:void 0}}function I$e(e,t,n){return Hr(t)?!1:!!(e.flags&106500)&&($n(t)||t.parent&&t.parent.parent&&Tl(t.parent)&&t===t.parent.name&&t.parent.getLastToken(n)===t.parent.name&&$n(t.parent.parent)||t.parent&&qC(t)&&$n(t.parent))}function a3e(e,t,n,i,s,o,c,u,f,g){const d=Pr(c,$n);if(!d)return;let y,S=s;const T=s,k=t.getTypeChecker(),w=c.getSourceFile(),P=PQ({removeComments:!0,module:n.module,target:n.target,omitTrailingSemicolon:!1,newLine:aN(f0(e,g==null?void 0:g.options))}),F=lu.createImportAdder(w,t,i,e);let J;if(i.includeCompletionsWithSnippetText){y=!0;const ue=I.createEmptyStatement();J=I.createBlock([ue],!0),mV(ue,{kind:0,order:0})}else J=I.createBlock([],!0);let U=0;const{modifiers:$,range:j,decorators:re}=F$e(f,w,u),R=$&64&&d.modifierFlagsCache&64;let Y=[];if(lu.addNewNodeForMemberSymbol(o,d,w,{program:t,host:e},i,F,ue=>{let pe=0;R&&(pe|=64),Tl(ue)&&k.getMemberOverrideModifierStatus(d,ue,o)===1&&(pe|=16),Y.length||(U=ue.modifierFlagsCache|pe),ue=I.replaceModifiers(ue,U),Y.push(ue)},J,lu.PreserveOptionalFlags.Property,!!R),Y.length){const ue=o.flags&8192;let pe=U|16|1;ue?pe|=1024:pe|=136;const H=$&pe;if($&~pe)return;if(U&4&&H&1&&(U&=-5),H!==0&&!(H&1)&&(U&=-2),U|=H,Y=Y.map(ee=>I.replaceModifiers(ee,U)),re!=null&&re.length){const ee=Y[Y.length-1];Kb(ee)&&(Y[Y.length-1]=I.replaceDecoratorsAndModifiers(ee,re.concat(Lv(ee)||[])))}const q=131073;g?S=P.printAndFormatSnippetList(q,I.createNodeArray(Y),w,g):S=P.printSnippetList(q,I.createNodeArray(Y),w)}return{insertText:S,filterText:T,isSnippet:y,importAdder:F,eraseRange:j}}function F$e(e,t,n){if(!e||Ha(t,n).line>Ha(t,e.getEnd()).line)return{modifiers:0};let i=0,s,o;const c={pos:n,end:n};if(xs(e.parent)&&e.parent.modifiers&&(i|=Gd(e.parent.modifiers)&98303,s=e.parent.modifiers.filter(ql)||[],c.pos=Math.min(c.pos,e.parent.modifiers.pos)),o=O$e(e)){const u=zT(o);i&u||(i|=u,c.pos=Math.min(c.pos,e.pos))}return{modifiers:i,decorators:s,range:c.pos!==n?c:void 0}}function O$e(e){if(ta(e))return e.kind;if(Ie(e)){const t=v1(e);if(t&&$h(t))return t}}function L$e(e,t,n,i,s,o,c,u){const f=c.includeCompletionsWithSnippetText||void 0;let g=t;const d=n.getSourceFile(),y=M$e(e,n,d,i,s,c);if(!y)return;const S=PQ({removeComments:!0,module:o.module,target:o.target,omitTrailingSemicolon:!1,newLine:aN(f0(s,u==null?void 0:u.options))});u?g=S.printAndFormatSnippetList(80,I.createNodeArray([y],!0),d,u):g=S.printSnippetList(80,I.createNodeArray([y],!0),d);const T=V1({removeComments:!0,module:o.module,target:o.target,omitTrailingSemicolon:!0}),k=I.createMethodSignature(void 0,"",y.questionToken,y.typeParameters,y.parameters,y.type),w={detail:T.printNode(4,k,d)};return{isSnippet:f,insertText:g,labelDetails:w}}function M$e(e,t,n,i,s,o){const c=e.getDeclarations();if(!(c&&c.length))return;const u=i.getTypeChecker(),f=c[0],g=Mo(us(f),!1),d=u.getWidenedType(u.getTypeOfSymbolAtLocation(e,t)),S=33554432|(Df(n,o)===0?268435456:0);switch(f.kind){case 171:case 172:case 173:case 174:{let T=d.flags&1048576&&d.types.length<10?u.getUnionType(d.types,2):d;if(T.flags&1048576){const J=An(T.types,U=>u.getSignaturesOfType(U,0).length>0);if(J.length===1)T=J[0];else return}if(u.getSignaturesOfType(T,0).length!==1)return;const w=u.typeToTypeNode(T,t,S,lu.getNoopSymbolTrackerWithResolver({program:i,host:s}));if(!w||!Mm(w))return;let P;if(o.includeCompletionsWithSnippetText){const J=I.createEmptyStatement();P=I.createBlock([J],!0),mV(J,{kind:0,order:0})}else P=I.createBlock([],!0);const F=w.parameters.map(J=>I.createParameterDeclaration(void 0,J.dotDotDotToken,J.name,void 0,void 0,J.initializer));return I.createMethodDeclaration(void 0,void 0,g,void 0,void 0,F,void 0,P)}default:return}}function PQ(e){let t;const n=Kr.createWriter(t0(e)),i=V1(e,n),s={...n,write:S=>o(S,()=>n.write(S)),nonEscapingWrite:n.write,writeLiteral:S=>o(S,()=>n.writeLiteral(S)),writeStringLiteral:S=>o(S,()=>n.writeStringLiteral(S)),writeSymbol:(S,T)=>o(S,()=>n.writeSymbol(S,T)),writeParameter:S=>o(S,()=>n.writeParameter(S)),writeComment:S=>o(S,()=>n.writeComment(S)),writeProperty:S=>o(S,()=>n.writeProperty(S))};return{printSnippetList:c,printAndFormatSnippetList:f,printNode:g,printAndFormatNode:y};function o(S,T){const k=r2(S);if(k!==S){const w=n.getTextPos();T();const P=n.getTextPos();t=_r(t||(t=[]),{newText:k,span:{start:w,length:P-w}})}else T()}function c(S,T,k){const w=u(S,T,k);return t?Kr.applyChanges(w,t):w}function u(S,T,k){return t=void 0,s.clear(),i.writeList(S,T,k,s),s.getText()}function f(S,T,k,w){const P={text:u(S,T,k),getLineAndCharacterOfPosition($){return Ha(this,$)}},F=KL(w,k),J=Zs(T,$=>{const j=Kr.assignPositionsToNode($);return ol.formatNodeGivenIndentation(j,P,k.languageVariant,0,0,{...w,options:F})}),U=t?Bh(es(J,t),($,j)=>t7($.span,j.span)):J;return Kr.applyChanges(P.text,U)}function g(S,T,k){const w=d(S,T,k);return t?Kr.applyChanges(w,t):w}function d(S,T,k){return t=void 0,s.clear(),i.writeNode(S,T,k,s),s.getText()}function y(S,T,k,w){const P={text:d(S,T,k),getLineAndCharacterOfPosition(j){return Ha(this,j)}},F=KL(w,k),J=Kr.assignPositionsToNode(T),U=ol.formatNodeGivenIndentation(J,P,k.languageVariant,0,0,{...w,options:F}),$=t?Bh(es(U,t),(j,re)=>t7(j.span,re.span)):U;return Kr.applyChanges(P.text,$)}}function o3e(e){const t=e.fileName?void 0:yp(e.moduleSymbol.name),n=e.isFromPackageJson?!0:void 0;return dP(e)?{exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,ambientModuleName:t,fileName:e.fileName,isPackageJsonImport:n}:{exportName:e.exportName,exportMapKey:e.exportMapKey,fileName:e.fileName,ambientModuleName:e.fileName?void 0:yp(e.moduleSymbol.name),isPackageJsonImport:e.isFromPackageJson?!0:void 0}}function R$e(e,t,n){const i=e.exportName==="default",s=!!e.isPackageJsonImport;return KEe(e)?{kind:32,exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,symbolName:t,fileName:e.fileName,moduleSymbol:n,isDefaultExport:i,isFromPackageJson:s}:{kind:4,exportName:e.exportName,exportMapKey:e.exportMapKey,symbolName:t,fileName:e.fileName,moduleSymbol:n,isDefaultExport:i,isFromPackageJson:s}}function j$e(e,t,n,i,s,o,c){const u=t.replacementSpan,f=r2(sP(s,c,n.moduleSpecifier)),g=n.isDefaultExport?1:n.exportName==="export="?2:0,d=c.includeCompletionsWithSnippetText?"$1":"",y=lu.getImportKind(s,g,o,!0),S=t.couldBeTypeOnlyImportSpecifier,T=t.isTopLevelTypeOnly?` ${Ws(156)} `:" ",k=S?`${Ws(156)} `:"",w=i?";":"";switch(y){case 3:return{replacementSpan:u,insertText:`import${T}${r2(e)}${d} = require(${f})${w}`};case 1:return{replacementSpan:u,insertText:`import${T}${r2(e)}${d} from ${f}${w}`};case 2:return{replacementSpan:u,insertText:`import${T}* as ${r2(e)} from ${f}${w}`};case 0:return{replacementSpan:u,insertText:`import${T}{ ${k}${r2(e)}${d} } from ${f}${w}`}}}function c3e(e,t,n){return/^\d+$/.test(n)?n:sP(e,t,n)}function B$e(e,t,n){return e===t||!!(e.flags&1048576)&&n.getExportSymbolOfSymbol(e)===t}function lfe(e){if(qM(e))return yp(e.moduleSymbol.name);if(dP(e))return e.moduleSpecifier;if((e==null?void 0:e.kind)===1)return"ThisProperty/";if((e==null?void 0:e.kind)===64)return"TypeOnlyAlias/"}function ufe(e,t,n,i,s,o,c,u,f,g,d,y,S,T,k,w,P,F,J,U,$,j,re,R,Y,ue=!1){const pe=xo(),H=aXe(i,s),q=nN(c),ee=f.getTypeChecker(),oe=new Map;for(let K=0;KFe.getSourceFile()===s.getSourceFile()));oe.set(me,ge),j0(t,ft,HM,!0)}return d("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(xo()-pe)),{has:K=>oe.has(K),add:K=>oe.set(K,!0)};function Se(K,fe){var ke;let Oe=K.flags;if(!Ni(s)){if(oc(s.parent))return!0;if(Wn(H,hi)&&K.valueDeclaration===H)return!1;const me=K.valueDeclaration??((ke=K.declarations)==null?void 0:ke[0]);if(H&&me&&(Uo(H)&&Uo(me)||rs(H)&&rs(me))){const xe=me.pos,De=rs(H)?H.parent.parameters:zb(H.parent)?void 0:H.parent.typeParameters;if(xe>=H.pos&&De&&xecfe(n,c,U)===s.name);return J!==void 0?{type:"literal",literal:J}:Qa(g,(U,$)=>{const j=T[$],re=wQ(U,Fa(u),j,S,f.isJsxIdentifierExpected);return re&&re.name===s.name&&(s.source==="ClassMemberSnippet/"&&U.flags&106500||s.source==="ObjectLiteralMethodSnippet/"&&U.flags&8196||lfe(j)===s.source||s.source==="ObjectLiteralMemberWithComma/")?{type:"symbol",symbol:U,location:y,origin:j,contextToken:k,previousToken:w,isJsxInitializer:P,isTypeOnlyLocation:F}:void 0})||{type:"none"}}function W$e(e,t,n,i,s,o,c,u,f){const g=e.getTypeChecker(),d=e.getCompilerOptions(),{name:y,source:S,data:T}=s,{previousToken:k,contextToken:w}=DQ(i,n);if(Px(n,i,k))return MQ.getStringLiteralCompletionDetails(y,n,i,k,e,o,f,u);const P=l3e(e,t,n,i,s,o,u);switch(P.type){case"request":{const{request:F}=P;switch(F.kind){case 1:return Q1.getJSDocTagNameCompletionDetails(y);case 2:return Q1.getJSDocTagCompletionDetails(y);case 3:return Q1.getJSDocParameterNameCompletionDetails(y);case 4:return ct(F.keywordCompletions,J=>J.name===y)?_fe(y,"keyword",5):void 0;default:return E.assertNever(F)}}case"symbol":{const{symbol:F,location:J,contextToken:U,origin:$,previousToken:j}=P,{codeActions:re,sourceDisplay:R}=V$e(y,J,U,$,F,e,o,d,n,i,j,c,u,T,S,f),Y=afe($)?$.symbolName:F.name;return ffe(F,Y,g,n,J,f,re,R)}case"literal":{const{literal:F}=P;return _fe(cfe(n,u,F),"string",typeof F=="string"?8:7)}case"cases":{const F=s3e(w.parent,n,u,e.getCompilerOptions(),o,e,void 0);if(F!=null&&F.importAdder.hasFixes()){const{entry:J,importAdder:U}=F,$=Kr.ChangeTracker.with({host:o,formatContext:c,preferences:u},U.writeFixes);return{name:J.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:$,description:_S([p.Includes_imports_of_types_referenced_by_0,y])}]}}return{name:y,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return bfe().some(F=>F.name===y)?_fe(y,"keyword",5):void 0;default:E.assertNever(P)}}function _fe(e,t,n){return GM(e,"",t,[C_(e,n)])}function ffe(e,t,n,i,s,o,c,u){const{displayParts:f,documentation:g,symbolKind:d,tags:y}=n.runWithCancellationToken(o,S=>m0.getSymbolDisplayPartsDocumentationAndSymbolKind(S,e,i,s,s,7));return GM(t,m0.getSymbolModifiers(n,e),d,f,g,y,c,u)}function GM(e,t,n,i,s,o,c,u){return{name:e,kindModifiers:t,kind:n,displayParts:i,documentation:s,tags:o,codeActions:c,source:u,sourceDisplay:u}}function V$e(e,t,n,i,s,o,c,u,f,g,d,y,S,T,k,w){if(T!=null&&T.moduleSpecifier&&d&&v3e(n||d,f).replacementSpan)return{codeActions:void 0,sourceDisplay:[wf(T.moduleSpecifier)]};if(k==="ClassMemberSnippet/"){const{importAdder:re,eraseRange:R}=a3e(c,o,u,S,e,s,t,g,n,y);if(re||R)return{sourceDisplay:void 0,codeActions:[{changes:Kr.ChangeTracker.with({host:c,formatContext:y,preferences:S},ue=>{re&&re.writeFixes(ue),R&&ue.deleteRange(f,R)}),description:_S([p.Includes_imports_of_types_referenced_by_0,e])}]}}if(QEe(i)){const re=lu.getPromoteTypeOnlyCompletionAction(f,i.declaration.name,o,c,y,S);return E.assertIsDefined(re,"Expected to have a code action for promoting type-only alias"),{codeActions:[re],sourceDisplay:void 0}}if(k==="ObjectLiteralMemberWithComma/"&&n){const re=Kr.ChangeTracker.with({host:c,formatContext:y,preferences:S},R=>R.insertText(f,n.end,","));if(re)return{sourceDisplay:void 0,codeActions:[{changes:re,description:_S([p.Add_missing_comma_for_object_member_completion_0,e])}]}}if(!i||!(qM(i)||dP(i)))return{codeActions:void 0,sourceDisplay:void 0};const P=i.isFromPackageJson?c.getPackageJsonAutoImportProvider().getTypeChecker():o.getTypeChecker(),{moduleSymbol:F}=i,J=P.getMergedSymbol(Ul(s.exportSymbol||s,P)),U=(n==null?void 0:n.kind)===30&&Fu(n.parent),{moduleSpecifier:$,codeAction:j}=lu.getImportCompletionAction(J,F,T==null?void 0:T.exportMapKey,f,e,U,c,o,y,d&&Ie(d)?d.getStart(f):g,S,w);return E.assert(!(T!=null&&T.moduleSpecifier)||$===T.moduleSpecifier),{sourceDisplay:[wf($)],codeActions:[j]}}function U$e(e,t,n,i,s,o,c){const u=l3e(e,t,n,i,s,o,c);return u.type==="symbol"?u.symbol:void 0}function q$e(e,t,n){return Qa(t&&(t.isUnion()?t.types:[t]),i=>{const s=i&&i.symbol;return s&&s.flags&424&&!Vre(s)?pfe(s,e,n):void 0})}function H$e(e,t,n,i){const{parent:s}=e;switch(e.kind){case 80:return zL(e,i);case 64:switch(s.kind){case 260:return i.getContextualType(s.initializer);case 226:return i.getTypeAtLocation(s.left);case 291:return i.getContextualTypeForJsxAttribute(s);default:return}case 105:return i.getContextualType(s);case 84:const o=Wn(s,zC);return o?AG(o,i):void 0;case 19:return g3(s)&&!Eg(s.parent)&&!u2(s.parent)?i.getContextualTypeForJsxAttribute(s.parent):void 0;default:const c=BN.getArgumentInfoForCompletions(e,t,n,i);return c?i.getContextualTypeForArgumentAtIndex(c.invocation,c.argumentIndex):WL(e.kind)&&Zr(s)&&WL(s.operatorToken.kind)?i.getTypeAtLocation(s.left):i.getContextualType(e,4)||i.getContextualType(e)}}function pfe(e,t,n){const i=n.getAccessibleSymbolChain(e,t,-1,!1);return i?va(i):e.parent&&(G$e(e.parent)?e:pfe(e.parent,t,n))}function G$e(e){var t;return!!((t=e.declarations)!=null&&t.some(n=>n.kind===312))}function u3e(e,t,n,i,s,o,c,u,f,g){const d=e.getTypeChecker(),y=i3e(n,i);let S=xo(),T=Ui(n,s);t("getCompletionData: Get current token: "+(xo()-S)),S=xo();const k=l0(n,s,T);t("getCompletionData: Is inside comment: "+(xo()-S));let w=!1,P=!1;if(k){if(Qoe(n,s)){if(n.text.charCodeAt(s-1)===64)return{kind:1};{const Ne=Cp(s,n);if(!/[^*|\s(/)]/.test(n.text.substring(Ne,s)))return{kind:2}}}const ce=Y$e(T,s);if(ce){if(ce.tagName.pos<=s&&s<=ce.tagName.end)return{kind:1};const Ne=zt(ce);if(Ne&&(T=Ui(n,s),(!T||!eh(T)&&(T.parent.kind!==355||T.parent.name!==T))&&(w=V(Ne))),!w&&vd(ce)&&(_c(ce.name)||ce.name.pos<=s&&s<=ce.name.end))return{kind:3,tag:ce}}if(!w){t("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return}}S=xo();const F=!w&&Ou(n),J=DQ(s,n),U=J.previousToken;let $=J.contextToken;t("getCompletionData: Get previous token: "+(xo()-S));let j=T,re,R=!1,Y=!1,ue=!1,pe=!1,H=!1,q=!1,ee,oe=u_(n,s),Se=0,ae=!1,K=0;if($){const ce=v3e($,n);if(ce.keywordCompletion){if(ce.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[x$e(ce.keywordCompletion)],isNewIdentifierLocation:ce.isNewIdentifierLocation};Se=C$e(ce.keywordCompletion)}if(ce.replacementSpan&&o.includeCompletionsForImportStatements&&o.includeCompletionsWithInsertText&&(K|=2,ee=ce,ae=ce.isNewIdentifierLocation),!ce.replacementSpan&&Ii($))return t("Returning an empty list because completion was requested in an invalid position."),Se?r3e(Se,F,Vs()):void 0;let Ne=$.parent;if($.kind===25||$.kind===29)switch(R=$.kind===25,Y=$.kind===29,Ne.kind){case 211:re=Ne,j=re.expression;const Ce=CC(re);if(_c(Ce)||(Rs(j)||As(j))&&j.end===$.pos&&j.getChildCount(n)&&ka(j.getChildren(n)).kind!==22)return;break;case 166:j=Ne.left;break;case 267:j=Ne.name;break;case 205:j=Ne;break;case 236:j=Ne.getFirstToken(n),E.assert(j.kind===102||j.kind===105);break;default:return}else if(!ee){if(Ne&&Ne.kind===211&&($=Ne,Ne=Ne.parent),T.parent===oe)switch(T.kind){case 32:(T.parent.kind===284||T.parent.kind===286)&&(oe=T);break;case 44:T.parent.kind===285&&(oe=T);break}switch(Ne.kind){case 287:$.kind===44&&(pe=!0,oe=$);break;case 226:if(!y3e(Ne))break;case 285:case 284:case 286:q=!0,$.kind===30&&(ue=!0,oe=$);break;case 294:case 293:(U.kind===20||U.kind===80&&U.parent.kind===291)&&(q=!0);break;case 291:if(Ne.initializer===U&&U.endcS(ce?u.getPackageJsonAutoImportProvider():e,u));if(R||Y)Vt();else if(ue)me=d.getJsxIntrinsicTagNamesAt(oe),E.assertEachIsDefined(me,"getJsxIntrinsicTagNames() should all be defined"),jt(),ke=1,Se=0;else if(pe){const ce=$.parent.parent.openingElement.tagName,Ne=d.getSymbolAtLocation(ce);Ne&&(me=[Ne]),ke=1,Se=0}else if(!jt())return Se?r3e(Se,F,ae):void 0;t("getCompletionData: Semantic work: "+(xo()-fe));const $e=U&&H$e(U,s,n,d),at=!Wn(U,Ma)&&!q?Ri($e&&($e.isUnion()?$e.types:[$e]),ce=>ce.isLiteral()&&!(ce.flags&1024)?ce.value:void 0):[],Je=U&&$e&&q$e(U,$e,d);return{kind:0,symbols:me,completionKind:ke,isInSnippetScope:P,propertyAccessToConvert:re,isNewIdentifierLocation:ae,location:oe,keywordFilters:Se,literals:at,symbolToOriginInfoMap:xe,recommendedCompletion:Je,previousToken:U,contextToken:$,isJsxInitializer:H,insideJsDocTagTypeExpression:w,symbolToSortTextMap:De,isTypeOnlyLocation:ge,isJsxIdentifierExpected:q,isRightOfOpenTag:ue,isRightOfDotOrQuestionDot:R||Y,importStatementCompletion:ee,hasUnresolvedAutoImports:Oe,flags:K};function pt(ce){switch(ce.kind){case 348:case 355:case 349:case 351:case 353:case 356:case 357:return!0;case 352:return!!ce.constraint;default:return!1}}function zt(ce){if(pt(ce)){const Ne=kp(ce)?ce.constraint:ce.typeExpression;return Ne&&Ne.kind===316?Ne:void 0}if(mx(ce)||wO(ce))return ce.class}function Vt(){ke=2;const ce=ey(j),Ne=ce&&!j.isTypeOf||gg(j.parent)||qA($,n,d),Ce=mL(j);if(b_(j)||ce||Sn(j)){const _t=Sc(j.parent);_t&&(ae=!0);let Tt=d.getSymbolAtLocation(j);if(Tt&&(Tt=Ul(Tt,d),Tt.flags&1920)){const Jt=d.getExportsOfModule(Tt);E.assertEachIsDefined(Jt,"getExportsOfModule() should all be defined");const ar=fi=>d.isValidPropertyAccess(ce?j:j.parent,fi.name),Er=fi=>mfe(fi,d),Nr=_t?fi=>{var oi;return!!(fi.flags&1920)&&!((oi=fi.declarations)!=null&&oi.every(Wr=>Wr.parent===j.parent))}:Ce?fi=>Er(fi)||ar(fi):Ne||w?Er:ar;for(const fi of Jt)Nr(fi)&&me.push(fi);if(!Ne&&!w&&Tt.declarations&&Tt.declarations.some(fi=>fi.kind!==312&&fi.kind!==267&&fi.kind!==266)){let fi=d.getTypeOfSymbolAtLocation(Tt,j).getNonOptionalType(),oi=!1;if(fi.isNullableType()){const Wr=R&&!Y&&o.includeAutomaticOptionalChainCompletions!==!1;(Wr||Y)&&(fi=fi.getNonNullableType(),Wr&&(oi=!0))}hr(fi,!!(j.flags&65536),oi)}return}}if(!Ne||Lb(j)){d.tryGetThisTypeAt(j,!1);let _t=d.getTypeAtLocation(j).getNonOptionalType();if(Ne)hr(_t.getNonNullableType(),!1,!1);else{let Tt=!1;if(_t.isNullableType()){const Jt=R&&!Y&&o.includeAutomaticOptionalChainCompletions!==!1;(Jt||Y)&&(_t=_t.getNonNullableType(),Jt&&(Tt=!0))}hr(_t,!!(j.flags&65536),Tt)}}}function hr(ce,Ne,Ce){ae=!!ce.getStringIndexType(),Y&&ct(ce.getCallSignatures())&&(ae=!0);const _t=j.kind===205?j:j.parent;if(y)for(const Tt of ce.getApparentProperties())d.isValidPropertyAccessForCompletions(_t,ce,Tt)&&Lr(Tt,!1,Ce);else me.push(...An(IQ(ce,d),Tt=>d.isValidPropertyAccessForCompletions(_t,ce,Tt)));if(Ne&&o.includeCompletionsWithInsertText){const Tt=d.getPromisedTypeOfPromise(ce);if(Tt)for(const Jt of Tt.getApparentProperties())d.isValidPropertyAccessForCompletions(_t,Tt,Jt)&&Lr(Jt,!0,Ce)}}function Lr(ce,Ne,Ce){var _t;const Tt=Qa(ce.declarations,Nr=>Wn(us(Nr),Pa));if(Tt){const Nr=er(Tt.expression),fi=Nr&&d.getSymbolAtLocation(Nr),oi=fi&&pfe(fi,$,d),Wr=oi&&Ks(oi);if(Wr&&Vp(ft,Wr)){const Cn=me.length;me.push(oi);const Qi=oi.parent;if(!Qi||!$A(Qi)||d.tryGetMemberInModuleExportsAndProperties(oi.name,Qi)!==oi)xe[Cn]={kind:Er(2)};else{const pi=Sl(yp(Qi.name))?(_t=s5(Qi))==null?void 0:_t.fileName:void 0,{moduleSpecifier:ci}=(be||(be=lu.createImportSpecifierResolver(n,e,u,o))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:pi,isFromPackageJson:!1,moduleSymbol:Qi,symbol:oi,targetFlags:Ul(oi,d).flags}],s,I1(oe))||{};if(ci){const In={kind:Er(6),moduleSymbol:Qi,isDefaultExport:!1,symbolName:oi.name,exportName:oi.name,fileName:pi,moduleSpecifier:ci};xe[Cn]=In}}}else if(o.includeCompletionsWithInsertText){if(Wr&&ft.has(Wr))return;ar(ce),Jt(ce),me.push(ce)}}else ar(ce),Jt(ce),me.push(ce);function Jt(Nr){nXe(Nr)&&(De[Ks(Nr)]=uu.LocalDeclarationPriority)}function ar(Nr){o.includeCompletionsWithInsertText&&(Ne&&Vp(ft,Ks(Nr))?xe[me.length]={kind:Er(8)}:Ce&&(xe[me.length]={kind:16}))}function Er(Nr){return Ce?Nr|16:Nr}}function er(ce){return Ie(ce)?ce:Sn(ce)?er(ce.expression):void 0}function jt(){return(cr()||br()||Ji()||Le()||rt()||tt()||Rt()||yt()||Kn()||(yi(),1))===1}function Rt(){return we($)?(ke=5,ae=!0,Se=4,1):0}function Kn(){const ce=B($),Ne=ce&&d.getContextualType(ce.attributes);if(!Ne)return 0;const Ce=ce&&d.getContextualType(ce.attributes,4);return me=es(me,le(NQ(Ne,Ce,ce.attributes,d),ce.attributes.properties)),W(),ke=3,ae=!1,1}function Ji(){return ee?(ae=!0,Ue(),1):0}function yi(){Se=et($)?5:1,ke=1,ae=Vs(),U!==$&&E.assert(!!U,"Expected 'contextToken' to be defined when different from 'previousToken'.");const ce=U!==$?U.getStart():s,Ne=ei($,ce,n)||n;P=yr(Ne);const Ce=(ge?0:111551)|788968|1920|2097152,_t=U&&!I1(U);me=es(me,d.getSymbolsInScope(Ne,Ce)),E.assertEachIsDefined(me,"getSymbolsInScope() should all be defined");for(let Tt=0;Ttar.getSourceFile()===n)&&(De[Ks(Jt)]=uu.GlobalsOrKeywords),_t&&!(Jt.flags&111551)){const ar=Jt.declarations&&wn(Jt.declarations,XD);if(ar){const Er={kind:64,declaration:ar};xe[Tt]=Er}}}if(o.includeCompletionsWithInsertText&&Ne.kind!==312){const Tt=d.tryGetThisTypeAt(Ne,!1,$n(Ne.parent)?Ne:void 0);if(Tt&&!rXe(Tt,n,d))for(const Jt of IQ(Tt,d))xe[me.length]={kind:1},me.push(Jt),De[Ks(Jt)]=uu.SuggestedClassMembers}Ue(),ge&&(Se=$&&Sb($.parent)?6:7)}function os(){return ee?!0:o.includeCompletionsForModuleExports?n.externalModuleIndicator||n.commonJsModuleIndicator||fG(e.getCompilerOptions())?!0:rce(e):!1}function yr(ce){switch(ce.kind){case 312:case 228:case 294:case 241:return!0;default:return Ei(ce)}}function _i(){return w||!!ee&&x1(oe.parent)||!ln($)&&(qA($,n,d)||gg(oe)||Ht($))}function ln(ce){return ce&&(ce.kind===114&&(ce.parent.kind===186||BC(ce.parent))||ce.kind===131&&ce.parent.kind===182)}function Ht(ce){if(ce){const Ne=ce.parent.kind;switch(ce.kind){case 59:return Ne===172||Ne===171||Ne===169||Ne===260||DT(Ne);case 64:return Ne===265||Ne===168;case 130:return Ne===234;case 30:return Ne===183||Ne===216;case 96:return Ne===168;case 152:return Ne===238}}return!1}function Ue(){var ce,Ne;if(!os()||(E.assert(!(c!=null&&c.data),"Should not run 'collectAutoImports' when faster path is available via `data`"),c&&!c.source))return;K|=1;const _t=U===$&&ee?"":U&&Ie(U)?U.text.toLowerCase():"",Tt=(ce=u.getModuleSpecifierCache)==null?void 0:ce.call(u),Jt=oN(n,u,e,o,g),ar=(Ne=u.getPackageJsonAutoImportProvider)==null?void 0:Ne.call(u),Er=c?void 0:oP(n,o,u);ZEe("collectAutoImports",u,be||(be=lu.createImportSpecifierResolver(n,e,u,o)),e,s,o,!!ee,I1(oe),fi=>{Jt.search(n.path,ue,(oi,Wr)=>{if(!bf(oi,Fa(u.getCompilationSettings()))||!c&&jT(oi)||!ge&&!ee&&!(Wr&111551)||ge&&!(Wr&790504))return!1;const Cn=oi.charCodeAt(0);return ue&&(Cn<65||Cn>90)?!1:c?!0:k3e(oi,_t)},(oi,Wr,Cn,Qi)=>{if(c&&!ct(oi,_o=>c.source===yp(_o.moduleSymbol.name))||(oi=An(oi,Nr),!oi.length))return;const pi=fi.tryResolve(oi,Cn)||{};if(pi==="failed")return;let ci=oi[0],In;pi!=="skipped"&&({exportInfo:ci=oi[0],moduleSpecifier:In}=pi);const is=ci.exportKind===1,pr=is&&xC(ci.symbol)||ci.symbol;Et(pr,{kind:In?32:4,moduleSpecifier:In,symbolName:Wr,exportMapKey:Qi,exportName:ci.exportKind===2?"export=":ci.symbol.name,fileName:ci.moduleFileName,isDefaultExport:is,moduleSymbol:ci.moduleSymbol,isFromPackageJson:ci.isFromPackageJson})}),Oe=fi.skippedAny(),K|=fi.resolvedAny()?8:0,K|=fi.resolvedBeyondLimit()?16:0});function Nr(fi){const oi=Wn(fi.moduleSymbol.valueDeclaration,Ni);if(!oi){const Wr=yp(fi.moduleSymbol.name);return rm.nodeCoreModules.has(Wr)&&Vi(Wr,"node:")!==ZL(n,e)?!1:Er?Er.allowsImportingAmbientModule(fi.moduleSymbol,Fe(fi.isFromPackageJson)):!0}return HG(fi.isFromPackageJson?ar:e,n,oi,o,Er,Fe(fi.isFromPackageJson),Tt)}}function Et(ce,Ne){const Ce=Ks(ce);De[Ce]!==uu.GlobalsOrKeywords&&(xe[me.length]=Ne,De[Ce]=ee?uu.LocationPriority:uu.AutoImportSuggestions,me.push(ce))}function fr(ce,Ne){Hr(oe)||ce.forEach(Ce=>{if(!Hn(Ce))return;const _t=wQ(Ce,Fa(i),void 0,0,!1);if(!_t)return;const{name:Tt}=_t,Jt=L$e(Ce,Tt,Ne,e,u,i,o,f);if(!Jt)return;const ar={kind:128,...Jt};K|=32,xe[me.length]=ar,me.push(Ce)})}function Hn(ce){return!!(ce.flags&8196)}function ei(ce,Ne,Ce){let _t=ce;for(;_t&&!ZH(_t,Ne,Ce);)_t=_t.parent;return _t}function Ii(ce){const Ne=xo(),Ce=_a(ce)||mt(ce)||wt(ce)||ns(ce)||dO(ce);return t("getCompletionsAtPosition: isCompletionListBlocker: "+(xo()-Ne)),Ce}function ns(ce){if(ce.kind===12)return!0;if(ce.kind===32&&ce.parent){if(oe===ce.parent&&(oe.kind===286||oe.kind===285))return!1;if(ce.parent.kind===286)return oe.parent.kind!==286;if(ce.parent.kind===287||ce.parent.kind===285)return!!ce.parent.parent&&ce.parent.parent.kind===284}return!1}function Vs(){if($){const ce=$.parent.kind,Ne=AQ($);switch(Ne){case 28:return ce===213||ce===176||ce===214||ce===209||ce===226||ce===184||ce===210;case 21:return ce===213||ce===176||ce===214||ce===217||ce===196;case 23:return ce===209||ce===181||ce===167;case 144:case 145:case 102:return!0;case 25:return ce===267;case 19:return ce===263||ce===210;case 64:return ce===260||ce===226;case 16:return ce===228;case 17:return ce===239;case 134:return ce===174||ce===304;case 42:return ce===174}if($M(Ne))return!0}return!1}function _a(ce){return(bV(ce)||KJ(ce))&&(WA(ce,s)||s===ce.end&&(!!ce.isUnterminated||bV(ce)))}function cr(){const ce=eXe($);if(!ce)return 0;const Ce=(ox(ce.parent)?ce.parent:void 0)||ce,_t=h3e(Ce,d);if(!_t)return 0;const Tt=d.getTypeFromTypeNode(Ce),Jt=IQ(_t,d),ar=IQ(Tt,d),Er=new Set;return ar.forEach(Nr=>Er.add(Nr.escapedName)),me=es(me,An(Jt,Nr=>!Er.has(Nr.escapedName))),ke=0,ae=!0,1}function br(){const ce=me.length,Ne=$$e($,s,n);if(!Ne)return 0;ke=0;let Ce,_t;if(Ne.kind===210){const Tt=iXe(Ne,d);if(Tt===void 0)return Ne.flags&67108864?2:0;const Jt=d.getContextualType(Ne,4),ar=(Jt||Tt).getStringIndexType(),Er=(Jt||Tt).getNumberIndexType();if(ae=!!ar||!!Er,Ce=NQ(Tt,Jt,Ne,d),_t=Ne.properties,Ce.length===0&&!Er)return 0}else{E.assert(Ne.kind===206),ae=!1;const Tt=qd(Ne.parent);if(!nC(Tt))return E.fail("Root declaration is not variable-like.");let Jt=Y0(Tt)||!!Vl(Tt)||Tt.parent.parent.kind===250;if(!Jt&&Tt.kind===169&&(ot(Tt.parent)?Jt=!!d.getContextualType(Tt.parent):(Tt.parent.kind===174||Tt.parent.kind===178)&&(Jt=ot(Tt.parent.parent)&&!!d.getContextualType(Tt.parent.parent))),Jt){const ar=d.getTypeAtLocation(Ne);if(!ar)return 2;Ce=d.getPropertiesOfType(ar).filter(Er=>d.isPropertyAccessible(Ne,!1,!1,ar,Er)),_t=Ne.elements}}if(Ce&&Ce.length>0){const Tt=Yt(Ce,E.checkDefined(_t));me=es(me,Tt),W(),Ne.kind===210&&o.includeCompletionsWithObjectLiteralMethodSnippets&&o.includeCompletionsWithInsertText&&(St(ce),fr(Tt,Ne))}return 1}function Le(){if(!$)return 0;const ce=$.kind===19||$.kind===28?Wn($.parent,iF):NL($)?Wn($.parent.parent,iF):void 0;if(!ce)return 0;NL($)||(Se=8);const{moduleSpecifier:Ne}=ce.kind===275?ce.parent.parent:ce.parent;if(!Ne)return ae=!0,ce.kind===275?2:0;const Ce=d.getSymbolAtLocation(Ne);if(!Ce)return ae=!0,2;ke=3,ae=!1;const _t=d.getExportsAndPropertiesOfModule(Ce),Tt=new Set(ce.elements.filter(ar=>!V(ar)).map(ar=>(ar.propertyName||ar.name).escapedText)),Jt=_t.filter(ar=>ar.escapedName!=="default"&&!Tt.has(ar.escapedName));return me=es(me,Jt),Jt.length||(Se=0),1}function rt(){if($===void 0)return 0;const ce=$.kind===19||$.kind===28?Wn($.parent,_x):$.kind===59?Wn($.parent.parent,_x):void 0;if(ce===void 0)return 0;const Ne=new Set(ce.elements.map(PF));return me=An(d.getTypeAtLocation(ce).getApparentProperties(),Ce=>!Ne.has(Ce.escapedName)),1}function tt(){var ce;const Ne=$&&($.kind===19||$.kind===28)?Wn($.parent,$f):void 0;if(!Ne)return 0;const Ce=Pr(Ne,fd(Ni,Sc));return ke=5,ae=!1,(ce=Ce.locals)==null||ce.forEach((_t,Tt)=>{var Jt,ar;me.push(_t),(ar=(Jt=Ce.symbol)==null?void 0:Jt.exports)!=null&&ar.has(Tt)&&(De[Ks(_t)]=uu.OptionalMember)}),1}function yt(){const ce=K$e(n,$,oe,s);if(!ce)return 0;if(ke=3,ae=!0,Se=$.kind===42?0:$n(ce)?2:3,!$n(ce))return 1;const Ne=$.kind===27?$.parent.parent:$.parent;let Ce=Tl(Ne)?Lu(Ne):0;if($.kind===80&&!V($))switch($.getText()){case"private":Ce=Ce|2;break;case"static":Ce=Ce|256;break;case"override":Ce=Ce|16;break}if(ec(Ne)&&(Ce|=256),!(Ce&2)){const _t=$n(ce)&&Ce&16?ST(Vd(ce)):xE(ce),Tt=Zs(_t,Jt=>{const ar=d.getTypeAtLocation(Jt);return Ce&256?(ar==null?void 0:ar.symbol)&&d.getPropertiesOfType(d.getTypeOfSymbolAtLocation(ar.symbol,ce)):ar&&d.getPropertiesOfType(ar)});me=es(me,A(Tt,ce.members,Ce)),rr(me,(Jt,ar)=>{const Er=Jt==null?void 0:Jt.valueDeclaration;if(Er&&Tl(Er)&&Er.name&&Pa(Er.name)){const Nr={kind:512,symbolName:d.symbolToString(Jt)};xe[ar]=Nr}})}return 1}function ne(ce){return!!ce.parent&&rs(ce.parent)&&sc(ce.parent.parent)&&(cE(ce.kind)||eh(ce))}function we(ce){if(ce){const Ne=ce.parent;switch(ce.kind){case 21:case 28:return sc(ce.parent)?ce.parent:void 0;default:if(ne(ce))return Ne.parent}}}function et(ce){if(ce){let Ne;const Ce=Pr(ce.parent,_t=>$n(_t)?"quit":po(_t)&&Ne===_t.body?!0:(Ne=_t,!1));return Ce&&Ce}}function B(ce){if(ce){const Ne=ce.parent;switch(ce.kind){case 32:case 31:case 44:case 80:case 211:case 292:case 291:case 293:if(Ne&&(Ne.kind===285||Ne.kind===286)){if(ce.kind===32){const Ce=Yc(ce.pos,n,void 0);if(!Ne.typeArguments||Ce&&Ce.kind===44)break}return Ne}else if(Ne.kind===291)return Ne.parent.parent;break;case 11:if(Ne&&(Ne.kind===291||Ne.kind===293))return Ne.parent.parent;break;case 20:if(Ne&&Ne.kind===294&&Ne.parent&&Ne.parent.kind===291)return Ne.parent.parent.parent;if(Ne&&Ne.kind===293)return Ne.parent.parent;break}}}function Ge(ce,Ne){return n.getLineEndOfPosition(ce.getEnd())=ce.pos;case 25:return Ce===207;case 59:return Ce===208;case 23:return Ce===207;case 21:return Ce===299||nt(Ce);case 19:return Ce===266;case 30:return Ce===263||Ce===231||Ce===264||Ce===265||DT(Ce);case 126:return Ce===172&&!$n(Ne.parent);case 26:return Ce===169||!!Ne.parent&&Ne.parent.kind===207;case 125:case 123:case 124:return Ce===169&&!sc(Ne.parent);case 130:return Ce===276||Ce===281||Ce===274;case 139:case 153:return!FQ(ce);case 80:{if(Ce===276&&ce===Ne.name&&ce.text==="type"||Pr(ce.parent,hi)&&Ge(ce,s))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 Ce!==276;case 42:return As(ce.parent)&&!hc(ce.parent)}if($M(AQ(ce))&&FQ(ce)||ne(ce)&&(!Ie(ce)||cE(AQ(ce))||V(ce)))return!1;switch(AQ(ce)){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 xs(ce.parent)}if(Pr(ce.parent,$n)&&ce===U&&Be(ce,s))return!1;const Tt=w1(ce.parent,172);if(Tt&&ce!==U&&$n(U.parent.parent)&&s<=U.end){if(Be(ce,U.end))return!1;if(ce.kind!==64&&(mA(Tt)||K7(Tt)))return!0}return eh(ce)&&!k_(ce.parent)&&!Kd(ce.parent)&&!(($n(ce.parent)||Bu(ce.parent)||Uo(ce.parent))&&(ce!==U||s>U.end))}function Be(ce,Ne){return ce.kind!==64&&(ce.kind===27||!Uf(ce.end,Ne,n))}function nt(ce){return DT(ce)&&ce!==176}function wt(ce){if(ce.kind===9){const Ne=ce.getFullText();return Ne.charAt(Ne.length-1)==="."}return!1}function ir(ce){return ce.parent.kind===261&&!qA(ce,n,d)}function Yt(ce,Ne){if(Ne.length===0)return ce;const Ce=new Set,_t=new Set;for(const Jt of Ne){if(Jt.kind!==303&&Jt.kind!==304&&Jt.kind!==208&&Jt.kind!==174&&Jt.kind!==177&&Jt.kind!==178&&Jt.kind!==305||V(Jt))continue;let ar;if(a0(Jt))Kt(Jt,Ce);else if(Ea(Jt)&&Jt.propertyName)Jt.propertyName.kind===80&&(ar=Jt.propertyName.escapedText);else{const Er=us(Jt);ar=Er&&Ud(Er)?EE(Er):void 0}ar!==void 0&&_t.add(ar)}const Tt=ce.filter(Jt=>!_t.has(Jt.escapedName));return Pe(Ce,Tt),Tt}function Kt(ce,Ne){const Ce=ce.expression,_t=d.getSymbolAtLocation(Ce),Tt=_t&&d.getTypeOfSymbolAtLocation(_t,Ce),Jt=Tt&&Tt.properties;Jt&&Jt.forEach(ar=>{Ne.add(ar.name)})}function W(){me.forEach(ce=>{if(ce.flags&16777216){const Ne=Ks(ce);De[Ne]=De[Ne]??uu.OptionalMember}})}function Pe(ce,Ne){if(ce.size!==0)for(const Ce of Ne)ce.has(Ce.name)&&(De[Ks(Ce)]=uu.MemberDeclaredBySpreadAssignment)}function St(ce){for(let Ne=ce;Ne!_t.has(Tt.escapedName)&&!!Tt.declarations&&!(qf(Tt)&2)&&!(Tt.valueDeclaration&&Iu(Tt.valueDeclaration)))}function le(ce,Ne){const Ce=new Set,_t=new Set;for(const Jt of Ne)V(Jt)||(Jt.kind===291?Ce.add(e3(Jt.name)):dx(Jt)&&Kt(Jt,_t));const Tt=ce.filter(Jt=>!Ce.has(Jt.escapedName));return Pe(_t,Tt),Tt}function V(ce){return ce.getStart(n)<=s&&s<=ce.getEnd()}}function $$e(e,t,n){var i;if(e){const{parent:s}=e;switch(e.kind){case 19:case 28:if(ua(s)||xp(s))return s;break;case 42:return hc(s)?Wn(s.parent,ua):void 0;case 134:return Wn(s.parent,ua);case 80:if(e.text==="async"&&k_(e.parent))return e.parent.parent;{if(ua(e.parent.parent)&&(a0(e.parent)||k_(e.parent)&&Ha(n,e.getEnd()).line!==Ha(n,t).line))return e.parent.parent;const c=Pr(s,zc);if((c==null?void 0:c.getLastToken(n))===e&&ua(c.parent))return c.parent}break;default:if((i=s.parent)!=null&&i.parent&&(hc(s.parent)||Tf(s.parent)||J_(s.parent))&&ua(s.parent.parent))return s.parent.parent;if(a0(s)&&ua(s.parent))return s.parent;const o=Pr(s,zc);if(e.kind!==59&&(o==null?void 0:o.getLastToken(n))===e&&ua(o.parent))return o.parent}}}function DQ(e,t){const n=Yc(e,t);return n&&e<=n.end&&(pg(n)||c_(n.kind))?{contextToken:Yc(n.getFullStart(),t,void 0),previousToken:n}:{contextToken:n,previousToken:n}}function _3e(e,t,n,i){const s=t.isPackageJsonImport?i.getPackageJsonAutoImportProvider():n,o=s.getTypeChecker(),c=t.ambientModuleName?o.tryFindAmbientModule(t.ambientModuleName):t.fileName?o.getMergedSymbol(E.checkDefined(s.getSourceFile(t.fileName)).symbol):void 0;if(!c)return;let u=t.exportName==="export="?o.resolveExternalModuleSymbol(c):o.tryGetMemberInModuleExportsAndProperties(t.exportName,c);return u?(u=t.exportName==="default"&&xC(u)||u,{symbol:u,origin:R$e(t,e,c)}):void 0}function wQ(e,t,n,i,s){if(v$e(n))return;const o=m$e(n)?n.symbolName:e.name;if(o===void 0||e.flags&1536&&T8(o.charCodeAt(0))||W8(e))return;const c={name:o,needsConvertPropertyAccess:!1};if(bf(o,t,s?1:0)||e.valueDeclaration&&Iu(e.valueDeclaration))return c;switch(i){case 3:return afe(n)?{name:n.symbolName,needsConvertPropertyAccess:!1}:void 0;case 0:return{name:JSON.stringify(o),needsConvertPropertyAccess:!1};case 2:case 1:return o.charCodeAt(0)===32?void 0:{name:o,needsConvertPropertyAccess:!0};case 5:case 4:return c;default:E.assertNever(i)}}function f3e(e,t){if(!t)return p3e(e);const n=e+8+1;return XM[n]||(XM[n]=p3e(e).filter(i=>!X$e(Ov(i.name))))}function p3e(e){return XM[e]||(XM[e]=bfe().filter(t=>{const n=Ov(t.name);switch(e){case 0:return!1;case 1:return m3e(n)||n===138||n===144||n===156||n===145||n===128||K3(n)&&n!==157;case 5:return m3e(n);case 2:return $M(n);case 3:return d3e(n);case 4:return cE(n);case 6:return K3(n)||n===87;case 7:return K3(n);case 8:return n===156;default:return E.assertNever(e)}}))}function X$e(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 d3e(e){return e===148}function $M(e){switch(e){case 128:case 129:case 137:case 139:case 153:case 134:case 138:case 164:return!0;default:return ez(e)}}function m3e(e){return e===134||e===135||e===160||e===130||e===152||e===156||!R5(e)&&!$M(e)}function AQ(e){return Ie(e)?v1(e)??0:e.kind}function Q$e(e,t){const n=[];if(e){const i=e.getSourceFile(),s=e.parent,o=i.getLineAndCharacterOfPosition(e.end).line,c=i.getLineAndCharacterOfPosition(t).line;(sl(s)||Tc(s)&&s.moduleSpecifier)&&e===s.moduleSpecifier&&o===c&&n.push({name:Ws(132),kind:"keyword",kindModifiers:"",sortText:uu.GlobalsOrKeywords})}return n}function Y$e(e,t){return Pr(e,n=>Xk(n)&&zA(n,t)?!0:yd(n)?"quit":!1)}function NQ(e,t,n,i){const s=t&&t!==e,o=s&&!(t.flags&3)?i.getUnionType([e,t]):e,c=Z$e(o,n,i);return o.isClass()&&g3e(c)?[]:s?An(c,u):c;function u(f){return mr(f.declarations)?ct(f.declarations,g=>g.parent!==n):!0}}function Z$e(e,t,n){return e.isUnion()?n.getAllPossiblePropertiesOfTypes(An(e.types,i=>!(i.flags&402784252||n.isArrayLikeType(i)||n.isTypeInvalidDueToUnionDiscriminant(i,t)||n.typeHasCallOrConstructSignatures(i)||i.isClass()&&g3e(i.getApparentProperties())))):e.getApparentProperties()}function g3e(e){return ct(e,t=>!!(qf(t)&6))}function IQ(e,t){return e.isUnion()?E.checkEachDefined(t.getAllPossiblePropertiesOfTypes(e.types),"getAllPossiblePropertiesOfTypes() should all be defined"):E.checkEachDefined(e.getApparentProperties(),"getApparentProperties() should all be defined")}function K$e(e,t,n,i){switch(n.kind){case 358:return Wn(n.parent,VT);case 1:const s=Wn(Do(Ls(n.parent,Ni).statements),VT);if(s&&!qa(s,20,e))return s;break;case 81:if(Wn(n.parent,xs))return Pr(n,$n);break;case 80:{if(v1(n)||xs(n.parent)&&n.parent.initializer===n)return;if(FQ(n))return Pr(n,VT)}}if(t){if(n.kind===137||Ie(t)&&xs(t.parent)&&$n(n))return Pr(t,$n);switch(t.kind){case 64:return;case 27:case 20:return FQ(n)&&n.parent.name===n?n.parent.parent:Wn(n,VT);case 19:case 28:return Wn(t.parent,VT);default:if(VT(n)){if(Ha(e,t.getEnd()).line!==Ha(e,i).line)return n;const s=$n(t.parent.parent)?$M:d3e;return s(t.kind)||t.kind===42||Ie(t)&&s(v1(t)??0)?t.parent.parent:void 0}return}}}function eXe(e){if(!e)return;const t=e.parent;switch(e.kind){case 19:if(z_(t))return t;break;case 27:case 28:case 80:if(t.kind===171&&z_(t.parent))return t.parent;break}}function h3e(e,t){if(!e)return;if(ki(e)&&e5(e.parent))return t.getTypeArgumentConstraint(e);const n=h3e(e.parent,t);if(n)switch(e.kind){case 171:return t.getTypeOfPropertyOfContextualType(n,e.symbol.escapedName);case 193:case 187:case 192:return n}}function FQ(e){return e.parent&&H7(e.parent)&&VT(e.parent.parent)}function tXe(e,t,n,i){switch(t){case".":case"@":return!0;case'"':case"'":case"`":return!!n&&vce(n)&&i===n.getStart(e)+1;case"#":return!!n&&Pi(n)&&!!Nl(n);case"<":return!!n&&n.kind===30&&(!Zr(n.parent)||y3e(n.parent));case"/":return!!n&&(Ma(n)?!!N8(n):n.kind===44&&l2(n.parent));case" ":return!!n&&u3(n)&&n.parent.kind===312;default:return E.assertNever(t)}}function y3e({left:e}){return _c(e)}function rXe(e,t,n){const i=n.resolveName("self",void 0,111551,!1);if(i&&n.getTypeOfSymbolAtLocation(i,t)===e)return!0;const s=n.resolveName("global",void 0,111551,!1);if(s&&n.getTypeOfSymbolAtLocation(s,t)===e)return!0;const o=n.resolveName("globalThis",void 0,111551,!1);return!!(o&&n.getTypeOfSymbolAtLocation(o,t)===e)}function nXe(e){return!!(e.valueDeclaration&&Lu(e.valueDeclaration)&256&&$n(e.valueDeclaration.parent))}function iXe(e,t){const n=t.getContextualType(e);if(n)return n;const i=Yh(e.parent);if(Zr(i)&&i.operatorToken.kind===64&&e===i.left)return t.getTypeAtLocation(i);if(ot(i))return t.getContextualType(i)}function v3e(e,t){var n,i,s;let o,c=!1;const u=f();return{isKeywordOnlyCompletion:c,keywordCompletion:o,isNewIdentifierLocation:!!(u||o===156),isTopLevelTypeOnly:!!((i=(n=Wn(u,sl))==null?void 0:n.importClause)!=null&&i.isTypeOnly)||!!((s=Wn(u,El))!=null&&s.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!u&&S3e(u,e),replacementSpan:sXe(u)};function f(){const g=e.parent;if(El(g)){const d=g.getLastToken(t);if(Ie(e)&&d!==e){o=161,c=!0;return}return o=e.kind===156?void 0:156,dfe(g.moduleReference)?g:void 0}if(S3e(g,e)&&T3e(g.parent))return g;if(sh(g)||dy(g)){if(!g.parent.isTypeOnly&&(e.kind===19||e.kind===102||e.kind===28)&&(o=156),T3e(g))if(e.kind===20||e.kind===80)c=!0,o=161;else return g.parent.parent;return}if(Tc(g)&&e.kind===42||$f(g)&&e.kind===20){c=!0,o=161;return}if(u3(e)&&Ni(g))return o=156,e;if(u3(e)&&sl(g))return o=156,dfe(g.moduleSpecifier)?g:void 0}}function sXe(e){var t;if(!e)return;const n=Pr(e,fd(sl,El))??e,i=n.getSourceFile();if(Rb(n,i))return Zu(n,i);E.assert(n.kind!==102&&n.kind!==276);const s=n.kind===272?b3e((t=n.importClause)==null?void 0:t.namedBindings)??n.moduleSpecifier:n.moduleReference,o={pos:n.getFirstToken().getStart(),end:s.pos};if(Rb(o,i))return vy(o)}function b3e(e){var t;return wn((t=Wn(e,sh))==null?void 0:t.elements,n=>{var i;return!n.propertyName&&jT(n.name.text)&&((i=Yc(n.name.pos,e.getSourceFile(),e))==null?void 0:i.kind)!==28})}function S3e(e,t){return x_(e)&&(e.isTypeOnly||t===e.name&&NL(t))}function T3e(e){if(!dfe(e.parent.parent.moduleSpecifier)||e.parent.name)return!1;if(sh(e)){const t=b3e(e);return(t?e.elements.indexOf(t):e.elements.length)<2}return!0}function dfe(e){var t;return _c(e)?!0:!((t=Wn(Bm(e)?e.expression:e,Ma))!=null&&t.text)}function aXe(e,t){if(!e)return;const n=Pr(e,s=>Vv(s)||x3e(s)||Ns(s)?"quit":(rs(s)||Uo(s))&&!i2(s.parent)),i=Pr(t,s=>Vv(s)||x3e(s)||Ns(s)?"quit":hi(s));return n||i}function x3e(e){return e.parent&&mo(e.parent)&&(e.parent.body===e||e.kind===39)}function mfe(e,t,n=new Map){return i(e)||i(Ul(e.exportSymbol||e,t));function i(s){return!!(s.flags&788968)||t.isUnknownSymbol(s)||!!(s.flags&1536)&&Vp(n,Ks(s))&&t.getExportsOfModule(s).some(o=>mfe(o,t,n))}}function oXe(e,t){const n=Ul(e,t).declarations;return!!mr(n)&&Wi(n,YL)}function k3e(e,t){if(t.length===0)return!0;let n=!1,i,s=0;const o=e.length;for(let c=0;c(e.ThisProperty="ThisProperty/",e.ClassMemberSnippet="ClassMemberSnippet/",e.TypeOnlyAlias="TypeOnlyAlias/",e.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",e.SwitchCases="SwitchCases/",e.ObjectLiteralMemberWithComma="ObjectLiteralMemberWithComma/",e))(hfe||{}),yfe=(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))(yfe||{}),vfe=(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))(vfe||{}),XM=[],bfe=Hu(()=>{const e=[];for(let t=83;t<=165;t++)e.push({name:Ws(t),kind:"keyword",kindModifiers:"",sortText:uu.GlobalsOrKeywords});return e})}});function Sfe(){const e=new Map;function t(n){const i=e.get(n.name);(!i||Efe[i.kind]({name:bg(T.value,y),kindModifiers:"",kind:"string",sortText:uu.LocationPriority,replacementSpan:oG(t)}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,optionalReplacementSpan:d,entries:S}}default:return E.assertNever(e)}}function pXe(e,t,n,i,s,o,c,u){if(!i||!Ma(i))return;const f=P3e(t,i,n,s,o,u);return f&&dXe(e,i,f,t,s.getTypeChecker(),c)}function dXe(e,t,n,i,s,o){switch(n.kind){case 0:{const c=wn(n.paths,u=>u.name===e);return c&&GM(e,E3e(c.extension),c.kind,[wf(e)])}case 1:{const c=wn(n.symbols,u=>u.name===e);return c&&ffe(c,c.name,s,i,t,o)}case 2:return wn(n.types,c=>c.value===e)?GM(e,"","string",[wf(e)]):void 0;default:return E.assertNever(n)}}function C3e(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map(({name:s,kind:o,span:c,extension:u})=>({name:s,kind:o,kindModifiers:E3e(u),sortText:uu.LocationPriority,replacementSpan:c}))}}function E3e(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 E.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return E.assertNever(e)}}function P3e(e,t,n,i,s,o){const c=i.getTypeChecker(),u=Tfe(t.parent);switch(u.kind){case 201:{const T=Tfe(u.parent);return T.kind===205?{kind:0,paths:A3e(e,t,i,s,o)}:f(T)}case 303:return ua(u.parent)&&u.name===t?hXe(c,u.parent):g()||g(0);case 212:{const{expression:T,argumentExpression:k}=u;return t===Va(k)?D3e(c.getTypeAtLocation(T)):void 0}case 213:case 214:case 291:if(!NXe(t)&&!of(u)){const T=BN.getArgumentInfoForCompletions(u.kind===291?u.parent:t,n,e,c);return T&&gXe(T.invocation,t,T,c)||g(0)}case 272:case 278:case 283:return{kind:0,paths:A3e(e,t,i,s,o)};case 296:const d=eM(c,u.parent.clauses),y=g();return y?{kind:2,types:y.types.filter(T=>!d.hasValue(T.value)),isNewIdentifier:!1}:void 0;default:return g()||g(0)}function f(d){switch(d.kind){case 233:case 183:{const T=Pr(u,k=>k.parent===d);return T?{kind:2,types:LQ(c.getTypeArgumentConstraint(T)),isNewIdentifier:!1}:void 0}case 199:const{indexType:y,objectType:S}=d;return zA(y,n)?D3e(c.getTypeFromTypeNode(S)):void 0;case 192:{const T=f(Tfe(d.parent));if(!T)return;const k=mXe(d,u);return T.kind===1?{kind:1,symbols:T.symbols.filter(w=>!bs(k,w.name)),hasIndexSignature:T.hasIndexSignature}:{kind:2,types:T.types.filter(w=>!bs(k,w.value)),isNewIdentifier:!1}}default:return}}function g(d=4){const y=LQ(zL(t,c,d));if(y.length)return{kind:2,types:y,isNewIdentifier:!1}}}function Tfe(e){switch(e.kind){case 196:return M8(e);case 217:return Yh(e);default:return e}}function mXe(e,t){return Ri(e.types,n=>n!==t&&_y(n)&&aa(n.literal)?n.literal.text:void 0)}function gXe(e,t,n,i){let s=!1;const o=new Map,c=Fu(e)?E.checkDefined(Pr(t.parent,Kd)):t,u=i.getCandidateSignaturesForStringLiteralCompletions(e,c),f=Zs(u,g=>{if(!Su(g)&&n.argumentCount>g.parameters.length)return;let d=g.getTypeParameterAtPosition(n.argumentIndex);if(Fu(e)){const y=i.getTypeOfPropertyOfType(d,cw(c.name));y&&(d=y)}return s=s||!!(d.flags&4),LQ(d,o)});return mr(f)?{kind:2,types:f,isNewIdentifier:s}:void 0}function D3e(e){return e&&{kind:1,symbols:An(e.getApparentProperties(),t=>!(t.valueDeclaration&&Iu(t.valueDeclaration))),hasIndexSignature:wG(e)}}function hXe(e,t){const n=e.getContextualType(t);if(!n)return;const i=e.getContextualType(t,4);return{kind:1,symbols:NQ(n,i,t,e),hasIndexSignature:wG(n)}}function LQ(e,t=new Map){return e?(e=_G(e),e.isUnion()?Zs(e.types,n=>LQ(n,t)):e.isStringLiteral()&&!(e.flags&1024)&&Vp(t,e.value)?[e]:Ve):Ve}function mP(e,t,n){return{name:e,kind:t,extension:n}}function xfe(e){return mP(e,"directory",void 0)}function w3e(e,t,n){const i=wXe(e,t),s=e.length===0?void 0:Wl(t,e.length);return n.map(({name:o,kind:c,extension:u})=>o.includes(Fo)||o.includes(FD)?{name:o,kind:c,extension:u,span:s}:{name:o,kind:c,extension:u,span:i})}function A3e(e,t,n,i,s){return w3e(t.text,t.getStart(e)+1,yXe(e,t,n,i,s))}function yXe(e,t,n,i,s){const o=iu(t.text),c=Ma(t)?n.getModeForUsageLocation(e,t):void 0,u=e.path,f=Un(u),g=n.getCompilerOptions(),d=n.getTypeChecker(),y=kfe(g,1,e,d,s,c);return AXe(o)||!g.baseUrl&&!g.paths&&(F_(o)||hee(o))?vXe(o,f,g,i,u,y):xXe(o,f,c,g,i,y,d)}function kfe(e,t,n,i,s,o){return{extensionsToSearch:Op(bXe(e,i)),referenceKind:t,importingSourceFile:n,endingPreference:s==null?void 0:s.importModuleSpecifierEnding,resolutionMode:o}}function vXe(e,t,n,i,s,o){return n.rootDirs?TXe(n.rootDirs,e,t,o,n,i,s):gs(ON(e,t,o,i,!0,s).values())}function bXe(e,t){const n=t?Ri(t.getAmbientModules(),o=>{const c=o.name.slice(1,-1);if(!(!c.startsWith("*.")||c.includes("/")))return c.slice(1)}):[],i=[...VE(e),n],s=Ru(e);return IL(s)?tw(e,i):i}function SXe(e,t,n,i){e=e.map(o=>_l(Hs(F_(o)?o:Mn(t,o))));const s=Qa(e,o=>Mp(o,n,t,i)?n.substr(o.length):void 0);return Nv([...e.map(o=>Mn(o,s)),n].map(o=>d1(o)),fb,mu)}function TXe(e,t,n,i,s,o,c){const u=s.project||o.getCurrentDirectory(),f=!(o.useCaseSensitiveFileNames&&o.useCaseSensitiveFileNames()),g=SXe(e,u,n,f);return Nv(Zs(g,d=>gs(ON(t,d,i,o,!0,c).values())),(d,y)=>d.name===y.name&&d.kind===y.kind&&d.extension===y.extension)}function ON(e,t,n,i,s,o,c=Sfe()){var u;e===void 0&&(e=""),e=iu(e),qh(e)||(e=Un(e)),e===""&&(e="."+Fo),e=_l(e);const f=V0(t,e),g=qh(f)?f:Un(f);if(!s){const T=Sce(g,i);if(T){const w=ME(T,i).typesVersions;if(typeof w=="object"){const P=(u=e9(w))==null?void 0:u.paths;if(P){const F=Un(T),J=f.slice(_l(F).length);if(I3e(c,J,F,n,i,P))return c}}}}const d=!(i.useCaseSensitiveFileNames&&i.useCaseSensitiveFileNames());if(!HL(i,g))return c;const y=NG(i,g,n.extensionsToSearch,void 0,["./*"]);if(y)for(let T of y){if(T=Hs(T),o&&Gg(T,o,t,d)===0)continue;const{name:k,extension:w}=N3e(wc(T),i.getCompilationSettings(),n,!1);c.add(mP(k,"script",w))}const S=qL(i,g);if(S)for(const T of S){const k=wc(Hs(T));k!=="@types"&&c.add(xfe(k))}return c}function N3e(e,t,n,i){const s=h2.tryGetRealFileNameForNonJsDeclarationFileName(e);if(s)return{name:s,extension:nh(s)};if(n.referenceKind===0)return{name:e,extension:nh(e)};let o=fA({importModuleSpecifierEnding:n.endingPreference},t,n.importingSourceFile).getAllowedEndingsInPreferredOrder(n.resolutionMode);if(i&&(o=o.filter(u=>u!==0&&u!==1)),o[0]===3){if($c(e,pw))return{name:e,extension:nh(e)};const u=h2.tryGetJSExtensionForFile(e,t);return u?{name:N1(e,u),extension:u}:{name:e,extension:nh(e)}}if(!i&&(o[0]===0||o[0]===1)&&$c(e,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:$u(e),extension:nh(e)};const c=h2.tryGetJSExtensionForFile(e,t);return c?{name:N1(e,c),extension:c}:{name:e,extension:nh(e)}}function I3e(e,t,n,i,s,o){const c=f=>o[f],u=(f,g)=>{const d=DC(f),y=DC(g),S=typeof d=="object"?d.prefix.length:f.length,T=typeof y=="object"?y.prefix.length:g.length;return Ao(T,S)};return F3e(e,!1,t,n,i,s,ug(o),c,u)}function F3e(e,t,n,i,s,o,c,u,f){let g=[],d;for(const y of c){if(y===".")continue;const S=y.replace(/^\.\//,""),T=u(y);if(T){const k=DC(S);if(!k)continue;const w=typeof k=="object"&&n7(k,n);w&&(d===void 0||f(y,d)===-1)&&(d=y,g=g.filter(F=>!F.matchedPattern)),(typeof k=="string"||d===void 0||f(y,d)!==1)&&g.push({matchedPattern:w,results:kXe(S,T,n,i,s,t&&w,o).map(({name:F,kind:J,extension:U})=>mP(F,J,U))})}}return g.forEach(y=>y.results.forEach(S=>e.add(S))),d!==void 0}function xXe(e,t,n,i,s,o,c){const{baseUrl:u,paths:f}=i,g=Sfe(),d=Ru(i);if(u){const S=Hs(Mn(s.getCurrentDirectory(),u));ON(e,S,o,s,!1,void 0,g)}if(f){const S=U5(i,s);I3e(g,e,S,o,s,f)}const y=L3e(e);for(const S of EXe(e,y,c))g.add(mP(S,"external module name",void 0));if(j3e(s,i,t,y,o,g),IL(d)){let S=!1;if(y===void 0)for(const T of DXe(s,t)){const k=mP(T,"external module name",void 0);g.has(k.name)||(S=!0,g.add(k))}if(!S){let T=k=>{const w=Mn(k,"node_modules");HL(s,w)&&ON(e,w,o,s,!1,void 0,g)};if(y&&IF(i)){const k=T;T=w=>{const P=ul(e);P.shift();let F=P.shift();if(!F)return k(w);if(Vi(F,"@")){const $=P.shift();if(!$)return k(w);F=Mn(F,$)}const J=Mn(w,"node_modules",F),U=Mn(J,"package.json");if(iN(s,U)){const j=ME(U,s).exports;if(j){if(typeof j!="object"||j===null)return;const re=ug(j),R=P.join("/")+(P.length&&qh(e)?"/":""),Y=gy(i,n);F3e(g,!0,R,J,o,s,re,ue=>ST(O3e(j[ue],Y)),LU);return}}return k(w)}}jp(t,T)}}return gs(g.values())}function O3e(e,t){if(typeof e=="string")return e;if(e&&typeof e=="object"&&!ts(e)){for(const n in e)if(n==="default"||t.includes(n)||uA(t,n)){const i=e[n];return O3e(i,t)}}}function L3e(e){return Cfe(e)?qh(e)?e:Un(e):void 0}function kXe(e,t,n,i,s,o,c){if(!Yo(e,"*"))return e.includes("*")?Ve:g(e,"script");const u=e.slice(0,e.length-1),f=yB(n,u);if(f===void 0)return e[e.length-2]==="/"?g(u,"directory"):Zs(t,y=>{var S;return(S=M3e("",i,y,s,o,c))==null?void 0:S.map(({name:T,...k})=>({name:u+T,...k}))});return Zs(t,d=>M3e(f,i,d,s,o,c));function g(d,y){return Vi(d,n)?[{name:d1(d),kind:y,extension:void 0}]:Ve}}function M3e(e,t,n,i,s,o){if(!o.readDirectory)return;const c=DC(n);if(c===void 0||ls(c))return;const u=V0(c.prefix),f=qh(c.prefix)?u:Un(u),g=qh(c.prefix)?"":wc(u),d=Cfe(e),y=d?qh(e)?e:Un(e):void 0,S=d?Mn(f,g+y):f,T=Hs(c.suffix),k=T&&V5("_"+T),w=k?[N1(T,k),T]:[T],P=Hs(Mn(t,S)),F=d?P:_l(P)+g,J=T?w.map(re=>"**/*"+re):["./*"],U=Ri(NG(o,P,i.extensionsToSearch,void 0,J),re=>{const R=j(re);if(R){if(Cfe(R))return xfe(ul(R3e(R))[1]);const{name:Y,extension:ue}=N3e(R,o.getCompilationSettings(),i,s);return mP(Y,"script",ue)}}),$=T?Ve:Ri(qL(o,P),re=>re==="node_modules"?void 0:xfe(re));return[...U,...$];function j(re){return Qa(w,R=>{const Y=CXe(Hs(re),F,R);return Y===void 0?void 0:R3e(Y)})}}function CXe(e,t,n){return Vi(e,t)&&Yo(e,n)?e.slice(t.length,e.length-n.length):void 0}function R3e(e){return e[0]===Fo?e.slice(1):e}function EXe(e,t,n){const s=n.getAmbientModules().map(o=>yp(o.name)).filter(o=>Vi(o,e)&&!o.includes("*"));if(t!==void 0){const o=_l(t);return s.map(c=>q4(c,o))}return s}function PXe(e,t,n,i){const s=Ui(e,t),o=_g(e.text,s.pos),c=o&&wn(o,k=>t>=k.pos&&t<=k.end);if(!c)return;const u=e.text.slice(c.pos,t),f=B3e.exec(u);if(!f)return;const[,g,d,y]=f,S=Un(e.path),T=d==="path"?ON(y,S,kfe(n,0,e),i,!0,e.path):d==="types"?j3e(i,n,S,L3e(y),kfe(n,1,e)):E.fail();return w3e(y,c.pos+g.length,gs(T.values()))}function j3e(e,t,n,i,s,o=Sfe()){const c=new Map,u=GL(()=>w3(t,e))||Ve;for(const g of u)f(g);for(const g of IG(n,e)){const d=Mn(Un(g),"node_modules/@types");f(d)}return o;function f(g){if(HL(e,g))for(const d of qL(e,g)){const y=_A(d);if(!(t.types&&!bs(t.types,y)))if(i===void 0)c.has(y)||(o.add(mP(y,"external module name",void 0)),c.set(y,!0));else{const S=Mn(g,d),T=NW(i,y,Zh(e));T!==void 0&&ON(T,S,s,e,!1,void 0,o)}}}}function DXe(e,t){if(!e.readFile||!e.fileExists)return Ve;const n=[];for(const i of IG(t,e)){const s=ME(i,e);for(const o of J3e){const c=s[o];if(c)for(const u in c)Ka(c,u)&&!Vi(u,"@types/")&&n.push(u)}}return n}function wXe(e,t){const n=Math.max(e.lastIndexOf(Fo),e.lastIndexOf(FD)),i=n!==-1?n+1:0,s=e.length-i;return s===0||bf(e.substr(i,s),99)?void 0:Wl(t+i,s)}function AXe(e){if(e&&e.length>=2&&e.charCodeAt(0)===46){const t=e.length>=3&&e.charCodeAt(1)===46?2:1,n=e.charCodeAt(t);return n===47||n===92}return!1}function Cfe(e){return e.includes(Fo)}function NXe(e){return Rs(e.parent)&&bl(e.parent.arguments)===e&&Ie(e.parent.expression)&&e.parent.expression.escapedText==="require"}var Efe,B3e,J3e,IXe=Dt({"src/services/stringCompletions.ts"(){Dse(),qn(),Pfe(),Efe={directory:0,script:1,"external module name":2},B3e=/^(\/\/\/\s*pXe,getStringLiteralCompletions:()=>_Xe});var FXe=Dt({"src/services/_namespaces/ts.Completions.StringCompletions.ts"(){IXe()}}),jx={};Gc(jx,{CompletionKind:()=>vfe,CompletionSource:()=>hfe,SortText:()=>uu,StringCompletions:()=>MQ,SymbolOriginInfoKind:()=>yfe,createCompletionDetails:()=>GM,createCompletionDetailsForSymbol:()=>ffe,getCompletionEntriesFromSymbols:()=>ufe,getCompletionEntryDetails:()=>W$e,getCompletionEntrySymbol:()=>U$e,getCompletionsAtPosition:()=>b$e,getPropertiesForObjectExpression:()=>NQ,moduleSpecifierResolutionCacheAttemptLimit:()=>gfe,moduleSpecifierResolutionLimit:()=>OQ});var Pfe=Dt({"src/services/_namespaces/ts.Completions.ts"(){uXe(),FXe()}});function Dfe(e,t,n,i){const s=RXe(e,n,i);return(o,c,u)=>{const{directImports:f,indirectUsers:g}=OXe(e,t,s,c,n,i);return{indirectUsers:g,...LXe(f,o,c.exportKind,n,u)}}}function OXe(e,t,n,{exportingModuleSymbol:i,exportKind:s},o,c){const u=Dx(),f=Dx(),g=[],d=!!i.globalExports,y=d?void 0:[];return T(i),{directImports:g,indirectUsers:S()};function S(){if(d)return e;if(i.declarations)for(const U of i.declarations)Jv(U)&&t.has(U.getSourceFile().fileName)&&F(U);return y.map(wr)}function T(U){const $=J(U);if($){for(const j of $)if(u(j))switch(c&&c.throwIfCancellationRequested(),j.kind){case 213:if(of(j)){k(j);break}if(!d){const R=j.parent;if(s===2&&R.kind===260){const{name:Y}=R;if(Y.kind===80){g.push(Y);break}}}break;case 80:break;case 271:P(j,j.name,Rn(j,32),!1);break;case 272:g.push(j);const re=j.importClause&&j.importClause.namedBindings;re&&re.kind===274?P(j,re.name,!1,!0):!d&&OT(j)&&F(QM(j));break;case 278:j.exportClause?j.exportClause.kind===280?F(QM(j),!0):g.push(j):T(WXe(j,o));break;case 205:!d&&j.isTypeOf&&!j.qualifier&&w(j)&&F(j.getSourceFile(),!0),g.push(j);break;default:E.failBadSyntaxKind(j,"Unexpected import kind.")}}}function k(U){const $=Pr(U,RQ)||U.getSourceFile();F($,!!w(U,!0))}function w(U,$=!1){return Pr(U,j=>$&&RQ(j)?"quit":Hp(j)&&ct(j.modifiers,rx))}function P(U,$,j,re){if(s===2)re||g.push(U);else if(!d){const R=QM(U);E.assert(R.kind===312||R.kind===267),j||MXe(R,$,o)?F(R,!0):F(R)}}function F(U,$=!1){if(E.assert(!d),!f(U)||(y.push(U),!$))return;const re=o.getMergedSymbol(U.symbol);if(!re)return;E.assert(!!(re.flags&1536));const R=J(re);if(R)for(const Y of R)Cg(Y)||F(QM(Y),!0)}function J(U){return n.get(Ks(U).toString())}}function LXe(e,t,n,i,s){const o=[],c=[];function u(S,T){o.push([S,T])}if(e)for(const S of e)f(S);return{importSearches:o,singleReferences:c};function f(S){if(S.kind===271){Afe(S)&&g(S.name);return}if(S.kind===80){g(S);return}if(S.kind===205){if(S.qualifier){const w=lf(S.qualifier);w.escapedText===Xo(t)&&c.push(w)}else n===2&&c.push(S.argument.literal);return}if(S.moduleSpecifier.kind!==11)return;if(S.kind===278){S.exportClause&&$f(S.exportClause)&&d(S.exportClause);return}const{name:T,namedBindings:k}=S.importClause||{name:void 0,namedBindings:void 0};if(k)switch(k.kind){case 274:g(k.name);break;case 275:(n===0||n===1)&&d(k);break;default:E.assertNever(k)}if(T&&(n===1||n===2)&&(!s||T.escapedText===OL(t))){const w=i.getSymbolAtLocation(T);u(T,w)}}function g(S){n===2&&(!s||y(S.escapedText))&&u(S,i.getSymbolAtLocation(S))}function d(S){if(S)for(const T of S.elements){const{name:k,propertyName:w}=T;if(y((w||k).escapedText))if(w)c.push(w),(!s||k.escapedText===t.escapedName)&&u(k,i.getSymbolAtLocation(k));else{const P=T.kind===281&&T.propertyName?i.getExportSpecifierLocalTargetSymbol(T):i.getSymbolAtLocation(k);u(k,P)}}}function y(S){return S===t.escapedName||n!==0&&S==="default"}}function MXe(e,t,n){const i=n.getSymbolAtLocation(t);return!!W3e(e,s=>{if(!Tc(s))return;const{exportClause:o,moduleSpecifier:c}=s;return!c&&o&&$f(o)&&o.elements.some(u=>n.getExportSpecifierLocalTargetSymbol(u)===i)})}function z3e(e,t,n){var i;const s=[],o=e.getTypeChecker();for(const c of t){const u=n.valueDeclaration;if((u==null?void 0:u.kind)===312){for(const f of c.referencedFiles)e.getSourceFileFromReference(c,f)===u&&s.push({kind:"reference",referencingFile:c,ref:f});for(const f of c.typeReferenceDirectives){const g=(i=e.getResolvedTypeReferenceDirectives().get(f.fileName,f.resolutionMode||c.impliedNodeFormat))==null?void 0:i.resolvedTypeReferenceDirective;g!==void 0&&g.resolvedFileName===u.fileName&&s.push({kind:"reference",referencingFile:c,ref:f})}}V3e(c,(f,g)=>{o.getSymbolAtLocation(g)===n&&s.push(ko(f)?{kind:"implicit",literal:g,referencingFile:c}:{kind:"import",literal:g})})}return s}function RXe(e,t,n){const i=new Map;for(const s of e)n&&n.throwIfCancellationRequested(),V3e(s,(o,c)=>{const u=t.getSymbolAtLocation(c);if(u){const f=Ks(u).toString();let g=i.get(f);g||i.set(f,g=[]),g.push(o)}});return i}function W3e(e,t){return rr(e.kind===312?e.statements:e.body.statements,n=>t(n)||RQ(n)&&rr(n.body&&n.body.statements,t))}function V3e(e,t){if(e.externalModuleIndicator||e.imports!==void 0)for(const n of e.imports)t(SE(n),n);else W3e(e,n=>{switch(n.kind){case 278:case 272:{const i=n;i.moduleSpecifier&&aa(i.moduleSpecifier)&&t(i,i.moduleSpecifier);break}case 271:{const i=n;Afe(i)&&t(i,i.moduleReference.expression);break}}})}function U3e(e,t,n,i){return i?s():s()||o();function s(){var f;const{parent:g}=e,d=g.parent;if(t.exportSymbol)return g.kind===211?(f=t.declarations)!=null&&f.some(T=>T===g)&&Zr(d)?S(d,!1):void 0:c(t.exportSymbol,u(g));{const T=BXe(g,e);if(T&&Rn(T,32))return El(T)&&T.moduleReference===e?i?void 0:{kind:0,symbol:n.getSymbolAtLocation(T.name)}:c(t,u(T));if(jm(g))return c(t,0);if(oc(g))return y(g);if(oc(d))return y(d);if(Zr(g))return S(g,!0);if(Zr(d))return S(d,!0);if(Yb(g)||FV(g))return c(t,0)}function y(T){if(!T.symbol.parent)return;const k=T.isExportEquals?2:1;return{kind:1,symbol:t,exportInfo:{exportingModuleSymbol:T.symbol.parent,exportKind:k}}}function S(T,k){let w;switch(fc(T)){case 1:w=0;break;case 2:w=2;break;default:return}const P=k?n.getSymbolAtLocation(EW(Ls(T.left,co))):t;return P&&c(P,w)}}function o(){if(!JXe(e))return;let g=n.getImmediateAliasedSymbol(t);if(!g||(g=zXe(g,n),g.escapedName==="export="&&(g=jXe(g,n),g===void 0)))return;const d=OL(g);if(d===void 0||d==="default"||d===t.escapedName)return{kind:0,symbol:g}}function c(f,g){const d=wfe(f,g,n);return d&&{kind:1,symbol:f,exportInfo:d}}function u(f){return Rn(f,2048)?1:0}}function jXe(e,t){var n,i;if(e.flags&2097152)return t.getImmediateAliasedSymbol(e);const s=E.checkDefined(e.valueDeclaration);if(oc(s))return(n=Wn(s.expression,zd))==null?void 0:n.symbol;if(Zr(s))return(i=Wn(s.right,zd))==null?void 0:i.symbol;if(Ni(s))return s.symbol}function BXe(e,t){const n=hi(e)?e:Ea(e)?Wk(e):void 0;return n?e.name!==t||f2(n.parent)?void 0:ac(n.parent.parent)?n.parent.parent:void 0:e}function JXe(e){const{parent:t}=e;switch(t.kind){case 271:return t.name===e&&Afe(t);case 276:return!t.propertyName;case 273:case 274:return E.assert(t.name===e),!0;case 208:return Hr(e)&&Uv(t.parent.parent);default:return!1}}function wfe(e,t,n){const i=e.parent;if(!i)return;const s=n.getMergedSymbol(i);return $A(s)?{exportingModuleSymbol:s,exportKind:t}:void 0}function zXe(e,t){if(e.declarations)for(const n of e.declarations){if(vu(n)&&!n.propertyName&&!n.parent.parent.moduleSpecifier)return t.getExportSpecifierLocalTargetSymbol(n)||e;if(Sn(n)&&yg(n.expression)&&!Pi(n.name))return t.getSymbolAtLocation(n);if(k_(n)&&Zr(n.parent.parent)&&fc(n.parent.parent)===2)return t.getExportSpecifierLocalTargetSymbol(n.name)}return e}function WXe(e,t){return t.getMergedSymbol(QM(e).symbol)}function QM(e){if(e.kind===213)return e.getSourceFile();const{parent:t}=e;return t.kind===312?t:(E.assert(t.kind===268),Ls(t.parent,RQ))}function RQ(e){return e.kind===267&&e.name.kind===11}function Afe(e){return e.moduleReference.kind===283&&e.moduleReference.expression.kind===11}var Nfe,Ife,VXe=Dt({"src/services/importTracker.ts"(){qn(),Nfe=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e))(Nfe||{}),Ife=(e=>(e[e.Import=0]="Import",e[e.Export=1]="Export",e))(Ife||{})}});function wg(e,t=1){return{kind:t,node:e.name||e,context:UXe(e)}}function Ffe(e){return e&&e.kind===void 0}function UXe(e){if(yu(e))return fS(e);if(e.parent){if(!yu(e.parent)&&!oc(e.parent)){if(Hr(e)){const n=Zr(e.parent)?e.parent:co(e.parent)&&Zr(e.parent.parent)&&e.parent.parent.left===e.parent?e.parent.parent:void 0;if(n&&fc(n)!==0)return fS(n)}if(Zd(e.parent)||l2(e.parent))return e.parent.parent;if($b(e.parent)||c2(e.parent)||sE(e.parent))return e.parent;if(Ma(e)){const n=N8(e);if(n){const i=Pr(n,s=>yu(s)||Ei(s)||Xk(s));return yu(i)?fS(i):i}}const t=Pr(e,Pa);return t?fS(t.parent):void 0}if(e.parent.name===e||sc(e.parent)||oc(e.parent)||(PT(e.parent)||Ea(e.parent))&&e.parent.propertyName===e||e.kind===90&&Rn(e.parent,2080))return fS(e.parent)}}function fS(e){if(e)switch(e.kind){case 260:return!ml(e.parent)||e.parent.declarations.length!==1?e:ac(e.parent.parent)?e.parent.parent:Gk(e.parent.parent)?fS(e.parent.parent):e.parent;case 208:return fS(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 Cl(e.parent)?e.parent:e;case 250:case 249:return{start:e.initializer,end:e.expression};case 303:case 304:return u0(e.parent)?fS(Pr(e.parent,t=>Zr(t)||Gk(t))):e;case 255:return{start:wn(e.getChildren(e.getSourceFile()),t=>t.kind===109),end:e.caseBlock};default:return e}}function Ofe(e,t,n){if(!n)return;const i=Ffe(n)?ZM(n.start,t,n.end):ZM(n,t);return i.start!==e.start||i.length!==e.length?{contextSpan:i}:void 0}function qXe(e,t,n,i,s){const o=u_(i,s),c={use:1},u=Bx.getReferencedSymbolsForNode(s,o,e,n,t,c),f=e.getTypeChecker(),g=Bx.getAdjustedNode(o,c),d=HXe(g)?f.getSymbolAtLocation(g):void 0;return!u||!u.length?void 0:Ri(u,({definition:y,references:S})=>y&&{definition:f.runWithCancellationToken(t,T=>XXe(y,T,o)),references:S.map(T=>YXe(T,d))})}function HXe(e){return e.kind===90||!!TE(e)||j8(e)||e.kind===137&&sc(e.parent)}function GXe(e,t,n,i,s){const o=u_(i,s);let c;const u=q3e(e,t,n,o,s);if(o.parent.kind===211||o.parent.kind===208||o.parent.kind===212||o.kind===108)c=u&&[...u];else if(u){const g=vD(u),d=new Map;for(;!g.isEmpty();){const y=g.dequeue();if(!Vp(d,Oa(y.node)))continue;c=_r(c,y);const S=q3e(e,t,n,y.node,y.node.pos);S&&g.enqueue(...S)}}const f=e.getTypeChecker();return nr(c,g=>KXe(g,f))}function q3e(e,t,n,i,s){if(i.kind===312)return;const o=e.getTypeChecker();if(i.parent.kind===304){const c=[];return Bx.getReferenceEntriesForShorthandPropertyAssignment(i,o,u=>c.push(wg(u))),c}else if(i.kind===108||o_(i.parent)){const c=o.getSymbolAtLocation(i);return c.valueDeclaration&&[wg(c.valueDeclaration)]}else return H3e(s,i,e,n,t,{implementations:!0,use:1})}function $Xe(e,t,n,i,s,o,c){return nr(G3e(Bx.getReferencedSymbolsForNode(s,i,e,n,t,o)),u=>c(u,i,e.getTypeChecker()))}function H3e(e,t,n,i,s,o={},c=new Set(i.map(u=>u.fileName))){return G3e(Bx.getReferencedSymbolsForNode(e,t,n,i,s,o,c))}function G3e(e){return e&&Zs(e,t=>t.references)}function XXe(e,t,n){const i=(()=>{switch(e.type){case 0:{const{symbol:d}=e,{displayParts:y,kind:S}=$3e(d,t,n),T=y.map(P=>P.text).join(""),k=d.declarations&&bl(d.declarations),w=k?us(k)||k:n;return{...YM(w),name:T,kind:S,displayParts:y,context:fS(k)}}case 1:{const{node:d}=e;return{...YM(d),name:d.text,kind:"label",displayParts:[C_(d.text,17)]}}case 2:{const{node:d}=e,y=Ws(d.kind);return{...YM(d),name:y,kind:"keyword",displayParts:[{text:y,kind:"keyword"}]}}case 3:{const{node:d}=e,y=t.getSymbolAtLocation(d),S=y&&m0.getSymbolDisplayPartsDocumentationAndSymbolKind(t,y,d.getSourceFile(),oS(d),d).displayParts||[wf("this")];return{...YM(d),name:"this",kind:"var",displayParts:S}}case 4:{const{node:d}=e;return{...YM(d),name:d.text,kind:"var",displayParts:[C_(jc(d),8)]}}case 5:return{textSpan:vy(e.reference),sourceFile:e.file,name:e.reference.fileName,kind:"string",displayParts:[C_(`"${e.reference.fileName}"`,8)]};default:return E.assertNever(e)}})(),{sourceFile:s,textSpan:o,name:c,kind:u,displayParts:f,context:g}=i;return{containerKind:"",containerName:"",fileName:s.fileName,kind:u,name:c,textSpan:o,displayParts:f,...Ofe(o,s,g)}}function YM(e){const t=e.getSourceFile();return{sourceFile:t,textSpan:ZM(Pa(e)?e.expression:e,t)}}function $3e(e,t,n){const i=Bx.getIntersectingMeaningFromDeclarations(n,e),s=e.declarations&&bl(e.declarations)||n,{displayParts:o,symbolKind:c}=m0.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,s.getSourceFile(),s,s,i);return{displayParts:o,kind:c}}function QXe(e,t,n,i,s){return{...jQ(e),...i&&ZXe(e,t,n,s)}}function YXe(e,t){const n=X3e(e);return t?{...n,isDefinition:e.kind!==0&&Q3e(e.node,t)}:n}function X3e(e){const t=jQ(e);if(e.kind===0)return{...t,isWriteAccess:!1};const{kind:n,node:i}=e;return{...t,isWriteAccess:Mfe(i),isInString:n===2?!0:void 0}}function jQ(e){if(e.kind===0)return{textSpan:e.textSpan,fileName:e.fileName};{const t=e.node.getSourceFile(),n=ZM(e.node,t);return{textSpan:n,fileName:t.fileName,...Ofe(n,t,e.context)}}}function ZXe(e,t,n,i){if(e.kind!==0&&Ie(t)){const{node:s,kind:o}=e,c=s.parent,u=t.text,f=k_(c);if(f||YA(c)&&c.name===s&&c.dotDotDotToken===void 0){const g={prefixText:u+": "},d={suffixText:": "+u};if(o===3)return g;if(o===4)return d;if(f){const y=c.parent;return ua(y)&&Zr(y.parent)&&yg(y.parent.left)?g:d}else return g}else if(x_(c)&&!c.propertyName){const g=vu(t.parent)?n.getExportSpecifierLocalTargetSymbol(t.parent):n.getSymbolAtLocation(t);return bs(g.declarations,c)?{prefixText:u+" as "}:Yf}else if(vu(c)&&!c.propertyName)return t===e.node||n.getSymbolAtLocation(t)===n.getSymbolAtLocation(e.node)?{prefixText:u+" as "}:{suffixText:" as "+u}}if(e.kind!==0&&j_(e.node)&&co(e.node.parent)){const s=mG(i);return{prefixText:s,suffixText:s}}return Yf}function KXe(e,t){const n=jQ(e);if(e.kind!==0){const{node:i}=e;return{...n,...eQe(i,t)}}else return{...n,kind:"",displayParts:[]}}function eQe(e,t){const n=t.getSymbolAtLocation(yu(e)&&e.name?e.name:e);return n?$3e(n,t,e):e.kind===210?{kind:"interface",displayParts:[Tu(21),wf("object literal"),Tu(22)]}:e.kind===231?{kind:"local class",displayParts:[Tu(21),wf("anonymous local class"),Tu(22)]}:{kind:T2(e),displayParts:[]}}function tQe(e){const t=jQ(e);if(e.kind===0)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};const n=Mfe(e.node),i={textSpan:t.textSpan,kind:n?"writtenReference":"reference",isInString:e.kind===2?!0:void 0,...t.contextSpan&&{contextSpan:t.contextSpan}};return{fileName:t.fileName,span:i}}function ZM(e,t,n){let i=e.getStart(t),s=(n||e).getEnd();return Ma(e)&&s-i>2&&(E.assert(n===void 0),i+=1,s-=1),(n==null?void 0:n.kind)===269&&(s=n.getFullStart()),Rc(i,s)}function Lfe(e){return e.kind===0?e.textSpan:ZM(e.node,e.node.getSourceFile())}function Mfe(e){const t=TE(e);return!!t&&rQe(t)||e.kind===90||WT(e)}function Q3e(e,t){var n;if(!t)return!1;const i=TE(e)||(e.kind===90?e.parent:j8(e)||e.kind===137&&sc(e.parent)?e.parent.parent:void 0),s=i&&Zr(i)?i.left:void 0;return!!(i&&((n=t.declarations)!=null&&n.some(o=>o===i||o===s)))}function rQe(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!u0(e.parent);case 262:case 218:case 176:case 174:case 177:case 178:return!!e.body;case 260:case 172:return!!e.initializer||f2(e.parent);case 173:case 171:case 355:case 348:return!1;default:return E.failBadSyntaxKind(e)}}var Rfe,jfe,Bfe,Bx,nQe=Dt({"src/services/findAllReferences.ts"(){qn(),Jfe(),Rfe=(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))(Rfe||{}),jfe=(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))(jfe||{}),Bfe=(e=>(e[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename",e))(Bfe||{}),(e=>{function t(Le,rt,tt,yt,ne,we={},et=new Set(yt.map(B=>B.fileName))){var B,Ge;if(rt=n(rt,we),Ni(rt)){const Kt=L6.getReferenceAtPosition(rt,Le,tt);if(!(Kt!=null&&Kt.file))return;const W=tt.getTypeChecker().getMergedSymbol(Kt.file.symbol);if(W)return g(tt,W,!1,yt,et);const Pe=tt.getFileIncludeReasons();return Pe?[{definition:{type:5,reference:Kt.reference,file:rt},references:s(Kt.file,Pe,tt)||Ve}]:void 0}if(!we.implementations){const Kt=y(rt,yt,ne);if(Kt)return Kt}const mt=tt.getTypeChecker(),Be=mt.getSymbolAtLocation(sc(rt)&&rt.parent.name||rt);if(!Be){if(!we.implementations&&Ma(rt)){if(LL(rt)){const Kt=tt.getFileIncludeReasons(),W=(Ge=(B=tt.getResolvedModuleFromModuleSpecifier(rt))==null?void 0:B.resolvedModule)==null?void 0:Ge.resolvedFileName,Pe=W?tt.getSourceFile(W):void 0;if(Pe)return[{definition:{type:4,node:rt},references:s(Pe,Kt,tt)||Ve}]}return _i(rt,yt,mt,ne)}return}if(Be.escapedName==="export=")return g(tt,Be.parent,!1,yt,et);const nt=c(Be,tt,yt,ne,we,et);if(nt&&!(Be.flags&33554432))return nt;const wt=o(rt,Be,mt),ir=wt&&c(wt,tt,yt,ne,we,et),Yt=S(Be,rt,yt,et,mt,ne,we);return u(tt,nt,Yt,ir)}e.getReferencedSymbolsForNode=t;function n(Le,rt){return rt.use===1?Le=eG(Le):rt.use===2&&(Le=xL(Le)),Le}e.getAdjustedNode=n;function i(Le,rt,tt,yt=new Set(tt.map(ne=>ne.fileName))){var ne,we;const et=(ne=rt.getSourceFile(Le))==null?void 0:ne.symbol;if(et)return((we=g(rt,et,!1,tt,yt)[0])==null?void 0:we.references)||Ve;const B=rt.getFileIncludeReasons(),Ge=rt.getSourceFile(Le);return Ge&&B&&s(Ge,B,rt)||Ve}e.getReferencesForFileName=i;function s(Le,rt,tt){let yt;const ne=rt.get(Le.path)||Ve;for(const we of ne)if(U1(we)){const et=tt.getSourceFileByPath(we.file),B=q3(tt,we);c6(B)&&(yt=_r(yt,{kind:0,fileName:et.fileName,textSpan:vy(B)}))}return yt}function o(Le,rt,tt){if(Le.parent&&Fw(Le.parent)){const yt=tt.getAliasedSymbol(rt),ne=tt.getMergedSymbol(yt);if(yt!==ne)return ne}}function c(Le,rt,tt,yt,ne,we){const et=Le.flags&1536&&Le.declarations&&wn(Le.declarations,Ni);if(!et)return;const B=Le.exports.get("export="),Ge=g(rt,Le,!!B,tt,we);if(!B||!we.has(et.fileName))return Ge;const mt=rt.getTypeChecker();return Le=Ul(B,mt),u(rt,Ge,S(Le,void 0,tt,we,mt,yt,ne))}function u(Le,...rt){let tt;for(const yt of rt)if(!(!yt||!yt.length)){if(!tt){tt=yt;continue}for(const ne of yt){if(!ne.definition||ne.definition.type!==0){tt.push(ne);continue}const we=ne.definition.symbol,et=vc(tt,Ge=>!!Ge.definition&&Ge.definition.type===0&&Ge.definition.symbol===we);if(et===-1){tt.push(ne);continue}const B=tt[et];tt[et]={definition:B.definition,references:B.references.concat(ne.references).sort((Ge,mt)=>{const Be=f(Le,Ge),nt=f(Le,mt);if(Be!==nt)return Ao(Be,nt);const wt=Lfe(Ge),ir=Lfe(mt);return wt.start!==ir.start?Ao(wt.start,ir.start):Ao(wt.length,ir.length)})}}}return tt}function f(Le,rt){const tt=rt.kind===0?Le.getSourceFile(rt.fileName):rt.node.getSourceFile();return Le.getSourceFiles().indexOf(tt)}function g(Le,rt,tt,yt,ne){E.assert(!!rt.valueDeclaration);const we=Ri(z3e(Le,yt,rt),B=>{if(B.kind==="import"){const Ge=B.literal.parent;if(_y(Ge)){const mt=Ls(Ge.parent,Cg);if(tt&&!mt.qualifier)return}return wg(B.literal)}else if(B.kind==="implicit"){const Ge=B.literal.text!==ay&&x3(B.referencingFile,mt=>mt.transformFlags&2?Eg(mt)||$b(mt)||u2(mt)?mt:void 0:"skip")||B.referencingFile.statements[0]||B.referencingFile;return wg(Ge)}else return{kind:0,fileName:B.referencingFile.fileName,textSpan:vy(B.ref)}});if(rt.declarations)for(const B of rt.declarations)switch(B.kind){case 312:break;case 267:ne.has(B.getSourceFile().fileName)&&we.push(wg(B.name));break;default:E.assert(!!(rt.flags&33554432),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}const et=rt.exports.get("export=");if(et!=null&&et.declarations)for(const B of et.declarations){const Ge=B.getSourceFile();if(ne.has(Ge.fileName)){const mt=Zr(B)&&Sn(B.left)?B.left.expression:oc(B)?E.checkDefined(qa(B,95,Ge)):us(B)||B;we.push(wg(mt))}}return we.length?[{definition:{type:0,symbol:rt},references:we}]:Ve}function d(Le){return Le.kind===148&&Vb(Le.parent)&&Le.parent.operator===148}function y(Le,rt,tt){if(K3(Le.kind))return Le.kind===116&&lx(Le.parent)||Le.kind===148&&!d(Le)?void 0:ke(rt,Le.kind,tt,Le.kind===148?d:void 0);if(rC(Le.parent)&&Le.parent.name===Le)return fe(rt,tt);if(nx(Le)&&ec(Le.parent))return[{definition:{type:2,node:Le},references:[wg(Le)]}];if(JA(Le)){const yt=hL(Le.parent,Le.text);return yt&&ae(yt.parent,yt)}else if(qH(Le))return ae(Le.parent,Le);if(g6(Le))return yr(Le,rt,tt);if(Le.kind===108)return yi(Le)}function S(Le,rt,tt,yt,ne,we,et){const B=rt&&w(Le,rt,ne,!br(et))||Le,Ge=rt?ei(rt,B):7,mt=[],Be=new J(tt,yt,rt?k(rt):0,ne,we,Ge,et,mt),nt=!br(et)||!B.declarations?void 0:wn(B.declarations,vu);if(nt)ft(nt.name,B,nt,Be.createSearch(rt,Le,void 0),Be,!0,!0);else if(rt&&rt.kind===90&&B.escapedName==="default"&&B.parent)at(rt,B,Be),U(rt,B,{exportingModuleSymbol:B.parent,exportKind:1},Be);else{const wt=Be.createSearch(rt,B,void 0,{allSearchSymbols:rt?Ht(B,rt,ne,et.use===2,!!et.providePrefixAndSuffixTextForRename,!!et.implementations):[B]});T(B,Be,wt)}return mt}function T(Le,rt,tt){const yt=ue(Le);if(yt)me(yt,yt.getSourceFile(),tt,rt,!(Ni(yt)&&!bs(rt.sourceFiles,yt)));else for(const ne of rt.sourceFiles)rt.cancellationToken.throwIfCancellationRequested(),R(ne,tt,rt)}function k(Le){switch(Le.kind){case 176:case 137:return 1;case 80:if($n(Le.parent))return E.assert(Le.parent.name===Le),2;default:return 0}}function w(Le,rt,tt,yt){const{parent:ne}=rt;return vu(ne)&&yt?ge(rt,Le,ne,tt):Qa(Le.declarations,we=>{if(!we.parent){if(Le.flags&33554432)return;E.fail(`Unexpected symbol at ${E.formatSyntaxKind(rt.kind)}: ${E.formatSymbol(Le)}`)}return z_(we.parent)&&uy(we.parent.parent)?tt.getPropertyOfType(tt.getTypeFromTypeNode(we.parent.parent),Le.name):void 0})}let P;(Le=>{Le[Le.None=0]="None",Le[Le.Constructor=1]="Constructor",Le[Le.Class=2]="Class"})(P||(P={}));function F(Le){if(!(Le.flags&33555968))return;const rt=Le.declarations&&wn(Le.declarations,tt=>!Ni(tt)&&!Sc(tt));return rt&&rt.symbol}class J{constructor(rt,tt,yt,ne,we,et,B,Ge){this.sourceFiles=rt,this.sourceFilesSet=tt,this.specialSearchKind=yt,this.checker=ne,this.cancellationToken=we,this.searchMeaning=et,this.options=B,this.result=Ge,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=Dx(),this.markSeenReExportRHS=Dx(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(rt){return this.sourceFilesSet.has(rt.fileName)}getImportSearches(rt,tt){return this.importTracker||(this.importTracker=Dfe(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(rt,tt,this.options.use===2)}createSearch(rt,tt,yt,ne={}){const{text:we=yp(Xo(xC(tt)||F(tt)||tt)),allSearchSymbols:et=[tt]}=ne,B=Vo(we),Ge=this.options.implementations&&rt?cr(rt,tt,this.checker):void 0;return{symbol:tt,comingFrom:yt,text:we,escapedText:B,parents:Ge,allSearchSymbols:et,includes:mt=>bs(et,mt)}}referenceAdder(rt){const tt=Ks(rt);let yt=this.symbolIdToReferences[tt];return yt||(yt=this.symbolIdToReferences[tt]=[],this.result.push({definition:{type:0,symbol:rt},references:yt})),(ne,we)=>yt.push(wg(ne,we))}addStringOrCommentReference(rt,tt){this.result.push({definition:void 0,references:[{kind:0,fileName:rt,textSpan:tt}]})}markSearchedSymbols(rt,tt){const yt=Oa(rt),ne=this.sourceFileToSeenSymbols[yt]||(this.sourceFileToSeenSymbols[yt]=new Set);let we=!1;for(const et of tt)we=_1(ne,Ks(et))||we;return we}}function U(Le,rt,tt,yt){const{importSearches:ne,singleReferences:we,indirectUsers:et}=yt.getImportSearches(rt,tt);if(we.length){const B=yt.referenceAdder(rt);for(const Ge of we)j(Ge,yt)&&B(Ge)}for(const[B,Ge]of ne)Oe(B.getSourceFile(),yt.createSearch(B,Ge,1),yt);if(et.length){let B;switch(tt.exportKind){case 0:B=yt.createSearch(Le,rt,1);break;case 1:B=yt.options.use===2?void 0:yt.createSearch(Le,rt,1,{text:"default"});break}if(B)for(const Ge of et)R(Ge,B,yt)}}function $(Le,rt,tt,yt,ne,we,et,B){const Ge=Dfe(Le,new Set(Le.map(wt=>wt.fileName)),rt,tt),{importSearches:mt,indirectUsers:Be,singleReferences:nt}=Ge(yt,{exportKind:et?1:0,exportingModuleSymbol:ne},!1);for(const[wt]of mt)B(wt);for(const wt of nt)Ie(wt)&&Cg(wt.parent)&&B(wt);for(const wt of Be)for(const ir of oe(wt,et?"default":we)){const Yt=rt.getSymbolAtLocation(ir),Kt=ct(Yt==null?void 0:Yt.declarations,W=>!!Wn(W,oc));Ie(ir)&&!PT(ir.parent)&&(Yt===yt||Kt)&&B(ir)}}e.eachExportReference=$;function j(Le,rt){return be(Le,rt)?rt.options.use!==2?!0:Ie(Le)?!(PT(Le.parent)&&Le.escapedText==="default"):!1:!1}function re(Le,rt){if(Le.declarations)for(const tt of Le.declarations){const yt=tt.getSourceFile();Oe(yt,rt.createSearch(tt,Le,0),rt,rt.includesSourceFile(yt))}}function R(Le,rt,tt){W$(Le).get(rt.escapedText)!==void 0&&Oe(Le,rt,tt)}function Y(Le,rt){return u0(Le.parent.parent)?rt.getPropertySymbolOfDestructuringAssignment(Le):void 0}function ue(Le){const{declarations:rt,flags:tt,parent:yt,valueDeclaration:ne}=Le;if(ne&&(ne.kind===218||ne.kind===231))return ne;if(!rt)return;if(tt&8196){const B=wn(rt,Ge=>R_(Ge,2)||Iu(Ge));return B?w1(B,263):void 0}if(rt.some(YA))return;const we=yt&&!(Le.flags&262144);if(we&&!($A(yt)&&!yt.globalExports))return;let et;for(const B of rt){const Ge=oS(B);if(et&&et!==Ge||!Ge||Ge.kind===312&&!af(Ge))return;if(et=Ge,lo(et)){let mt;for(;mt=Vz(et);)et=mt}}return we?et.getSourceFile():et}function pe(Le,rt,tt,yt=tt){return H(Le,rt,tt,()=>!0,yt)||!1}e.isSymbolReferencedInFile=pe;function H(Le,rt,tt,yt,ne=tt){const we=O_(Le.parent,Le.parent.parent)?va(rt.getSymbolsOfParameterPropertyDeclaration(Le.parent,Le.text)):rt.getSymbolAtLocation(Le);if(we)for(const et of oe(tt,we.name,ne)){if(!Ie(et)||et===Le||et.escapedText!==Le.escapedText)continue;const B=rt.getSymbolAtLocation(et);if(B===we||rt.getShorthandAssignmentValueSymbol(et.parent)===we||vu(et.parent)&&ge(et,B,et.parent,rt)===we){const Ge=yt(et);if(Ge)return Ge}}}e.eachSymbolReferenceInFile=H;function q(Le,rt){return An(oe(rt,Le),ne=>!!TE(ne)).reduce((ne,we)=>{const et=yt(we);return!ct(ne.declarationNames)||et===ne.depth?(ne.declarationNames.push(we),ne.depth=et):etBe===ne)&&yt(et,Ge))return!0}return!1}e.someSignatureUsage=ee;function oe(Le,rt,tt=Le){return Ri(Se(Le,rt,tt),yt=>{const ne=u_(Le,yt);return ne===Le?void 0:ne})}function Se(Le,rt,tt=Le){const yt=[];if(!rt||!rt.length)return yt;const ne=Le.text,we=ne.length,et=rt.length;let B=ne.indexOf(rt,tt.pos);for(;B>=0&&!(B>tt.end);){const Ge=B+et;(B===0||!g1(ne.charCodeAt(B-1),99))&&(Ge===we||!g1(ne.charCodeAt(Ge),99))&&yt.push(B),B=ne.indexOf(rt,B+et+1)}return yt}function ae(Le,rt){const tt=Le.getSourceFile(),yt=rt.text,ne=Ri(oe(tt,yt,Le),we=>we===rt||JA(we)&&hL(we,yt)===rt?wg(we):void 0);return[{definition:{type:1,node:rt},references:ne}]}function K(Le,rt){switch(Le.kind){case 81:if(M1(Le.parent))return!0;case 80:return Le.text.length===rt.length;case 15:case 11:{const tt=Le;return(yL(tt)||XH(Le)||zoe(Le)||Rs(Le.parent)&&wb(Le.parent)&&Le.parent.arguments[1]===Le)&&tt.text.length===rt.length}case 9:return yL(Le)&&Le.text.length===rt.length;case 90:return rt.length===7;default:return!1}}function fe(Le,rt){const tt=Zs(Le,yt=>(rt.throwIfCancellationRequested(),Ri(oe(yt,"meta",yt),ne=>{const we=ne.parent;if(rC(we))return wg(we)})));return tt.length?[{definition:{type:2,node:tt[0].node},references:tt}]:void 0}function ke(Le,rt,tt,yt){const ne=Zs(Le,we=>(tt.throwIfCancellationRequested(),Ri(oe(we,Ws(rt),we),et=>{if(et.kind===rt&&(!yt||yt(et)))return wg(et)})));return ne.length?[{definition:{type:2,node:ne[0].node},references:ne}]:void 0}function Oe(Le,rt,tt,yt=!0){return tt.cancellationToken.throwIfCancellationRequested(),me(Le,Le,rt,tt,yt)}function me(Le,rt,tt,yt,ne){if(yt.markSearchedSymbols(rt,tt.allSearchSymbols))for(const we of Se(rt,tt.text,Le))xe(rt,we,tt,yt,ne)}function be(Le,rt){return!!(aS(Le)&rt.searchMeaning)}function xe(Le,rt,tt,yt,ne){const we=u_(Le,rt);if(!K(we,tt.text)){!yt.options.implementations&&(yt.options.findInStrings&&Px(Le,rt)||yt.options.findInComments&&tce(Le,rt))&&yt.addStringOrCommentReference(Le.fileName,Wl(rt,tt.text.length));return}if(!be(we,yt))return;let et=yt.checker.getSymbolAtLocation(we);if(!et)return;const B=we.parent;if(x_(B)&&B.propertyName===we)return;if(vu(B)){E.assert(we.kind===80),ft(we,et,B,tt,yt,ne);return}if(aE(B)&&B.isNameFirst&&B.typeExpression&&Qb(B.typeExpression.type)&&B.typeExpression.type.jsDocPropertyTags&&mr(B.typeExpression.type.jsDocPropertyTags)){De(B.typeExpression.type.jsDocPropertyTags,we,tt,yt);return}const Ge=Hn(tt,et,we,yt);if(!Ge){Pt(et,tt,yt);return}switch(yt.specialSearchKind){case 0:ne&&at(we,Ge,yt);break;case 1:Je(we,Le,tt,yt);break;case 2:pt(we,tt,yt);break;default:E.assertNever(yt.specialSearchKind)}Hr(we)&&Ea(we.parent)&&Uv(we.parent.parent.parent)&&(et=we.parent.symbol,!et)||$e(we,et,tt,yt)}function De(Le,rt,tt,yt){const ne=yt.referenceAdder(tt.symbol);at(rt,tt.symbol,yt),rr(Le,we=>{Xu(we.name)&&ne(we.name.left)})}function ft(Le,rt,tt,yt,ne,we,et){E.assert(!et||!!ne.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");const{parent:B,propertyName:Ge,name:mt}=tt,Be=B.parent,nt=ge(Le,rt,tt,ne.checker);if(!et&&!yt.includes(nt))return;if(Ge?Le===Ge?(Be.moduleSpecifier||wt(),we&&ne.options.use!==2&&ne.markSeenReExportRHS(mt)&&at(mt,E.checkDefined(tt.symbol),ne)):ne.markSeenReExportRHS(Le)&&wt():ne.options.use===2&&mt.escapedText==="default"||wt(),!br(ne.options)||et){const Yt=Le.escapedText==="default"||tt.name.escapedText==="default"?1:0,Kt=E.checkDefined(tt.symbol),W=wfe(Kt,Yt,ne.checker);W&&U(Le,Kt,W,ne)}if(yt.comingFrom!==1&&Be.moduleSpecifier&&!Ge&&!br(ne.options)){const ir=ne.checker.getExportSpecifierLocalTargetSymbol(tt);ir&&re(ir,ne)}function wt(){we&&at(Le,nt,ne)}}function ge(Le,rt,tt,yt){return Fe(Le,tt)&&yt.getExportSpecifierLocalTargetSymbol(tt)||rt}function Fe(Le,rt){const{parent:tt,propertyName:yt,name:ne}=rt;return E.assert(yt===Le||ne===Le),yt?yt===Le:!tt.parent.moduleSpecifier}function $e(Le,rt,tt,yt){const ne=U3e(Le,rt,yt.checker,tt.comingFrom===1);if(!ne)return;const{symbol:we}=ne;ne.kind===0?br(yt.options)||re(we,yt):U(Le,we,ne.exportInfo,yt)}function Pt({flags:Le,valueDeclaration:rt},tt,yt){const ne=yt.checker.getShorthandAssignmentValueSymbol(rt),we=rt&&us(rt);!(Le&33554432)&&we&&tt.includes(ne)&&at(we,ne,yt)}function at(Le,rt,tt){const{kind:yt,symbol:ne}="kind"in rt?rt:{kind:void 0,symbol:rt};if(tt.options.use===2&&Le.kind===90)return;const we=tt.referenceAdder(ne);tt.options.implementations?jt(Le,we,tt):we(Le,yt)}function Je(Le,rt,tt,yt){Q3(Le)&&at(Le,tt.symbol,yt);const ne=()=>yt.referenceAdder(tt.symbol);if($n(Le.parent))E.assert(Le.kind===90||Le.parent.name===Le),zt(tt.symbol,rt,ne());else{const we=_a(Le);we&&(hr(we,ne()),er(we,yt))}}function pt(Le,rt,tt){at(Le,rt.symbol,tt);const yt=Le.parent;if(tt.options.use===2||!$n(yt))return;E.assert(yt.name===Le);const ne=tt.referenceAdder(rt.symbol);for(const we of yt.members)wT(we)&&Ms(we)&&we.body&&we.body.forEachChild(function et(B){B.kind===110?ne(B):!As(B)&&!$n(B)&&B.forEachChild(et)})}function zt(Le,rt,tt){const yt=Vt(Le);if(yt&&yt.declarations)for(const ne of yt.declarations){const we=qa(ne,137,rt);E.assert(ne.kind===176&&!!we),tt(we)}Le.exports&&Le.exports.forEach(ne=>{const we=ne.valueDeclaration;if(we&&we.kind===174){const et=we.body;et&&Vs(et,110,B=>{Q3(B)&&tt(B)})}})}function Vt(Le){return Le.members&&Le.members.get("__constructor")}function hr(Le,rt){const tt=Vt(Le.symbol);if(tt&&tt.declarations)for(const yt of tt.declarations){E.assert(yt.kind===176);const ne=yt.body;ne&&Vs(ne,108,we=>{WH(we)&&rt(we)})}}function Lr(Le){return!!Vt(Le.symbol)}function er(Le,rt){if(Lr(Le))return;const tt=Le.symbol,yt=rt.createSearch(void 0,tt,void 0);T(tt,rt,yt)}function jt(Le,rt,tt){if(eh(Le)&&Ii(Le.parent)){rt(Le);return}if(Le.kind!==80)return;Le.parent.kind===304&&ns(Le,tt.checker,rt);const yt=Rt(Le);if(yt){rt(yt);return}const ne=Pr(Le,B=>!Xu(B.parent)&&!ki(B.parent)&&!bb(B.parent)),we=ne.parent;if(K7(we)&&we.type===ne&&tt.markSeenContainingTypeReference(we))if(Y0(we))et(we.initializer);else if(As(we)&&we.body){const B=we.body;B.kind===241?Wv(B,Ge=>{Ge.expression&&et(Ge.expression)}):et(B)}else Sb(we)&&et(we.expression);function et(B){Kn(B)&&rt(B)}}function Rt(Le){return Ie(Le)||Sn(Le)?Rt(Le.parent):s0(Le)?Wn(Le.parent.parent,fd($n,Bu)):void 0}function Kn(Le){switch(Le.kind){case 217:return Kn(Le.expression);case 219:case 218:case 210:case 231:case 209:return!0;default:return!1}}function Ji(Le,rt,tt,yt){if(Le===rt)return!0;const ne=Ks(Le)+","+Ks(rt),we=tt.get(ne);if(we!==void 0)return we;tt.set(ne,!1);const et=!!Le.declarations&&Le.declarations.some(B=>xE(B).some(Ge=>{const mt=yt.getTypeAtLocation(Ge);return!!mt&&!!mt.symbol&&Ji(mt.symbol,rt,tt,yt)}));return tt.set(ne,et),et}function yi(Le){let rt=h8(Le,!1);if(!rt)return;let tt=256;switch(rt.kind){case 172:case 171:case 174:case 173:case 176:case 177:case 178:tt&=ry(rt),rt=rt.parent;break;default:return}const yt=rt.getSourceFile(),ne=Ri(oe(yt,"super",rt),we=>{if(we.kind!==108)return;const et=h8(we,!1);return et&&Ms(et)===!!tt&&et.parent.symbol===rt.symbol?wg(we):void 0});return[{definition:{type:0,symbol:rt.symbol},references:ne}]}function os(Le){return Le.kind===80&&Le.parent.kind===169&&Le.parent.name===Le}function yr(Le,rt,tt){let yt=a_(Le,!1,!1),ne=256;switch(yt.kind){case 174:case 173:if(Wp(yt)){ne&=ry(yt),yt=yt.parent;break}case 172:case 171:case 176:case 177:case 178:ne&=ry(yt),yt=yt.parent;break;case 312:if(Ic(yt)||os(Le))return;case 262:case 218:break;default:return}const we=Zs(yt.kind===312?rt:[yt.getSourceFile()],B=>(tt.throwIfCancellationRequested(),oe(B,"this",Ni(yt)?B:yt).filter(Ge=>{if(!g6(Ge))return!1;const mt=a_(Ge,!1,!1);if(!zd(mt))return!1;switch(yt.kind){case 218:case 262:return yt.symbol===mt.symbol;case 174:case 173:return Wp(yt)&&yt.symbol===mt.symbol;case 231:case 263:case 210:return mt.parent&&zd(mt.parent)&&yt.symbol===mt.parent.symbol&&Ms(mt)===!!ne;case 312:return mt.kind===312&&!Ic(mt)&&!os(Ge)}}))).map(B=>wg(B));return[{definition:{type:3,node:Qa(we,B=>rs(B.node.parent)?B.node:void 0)||Le},references:we}]}function _i(Le,rt,tt,yt){const ne=TL(Le,tt),we=Zs(rt,et=>(yt.throwIfCancellationRequested(),Ri(oe(et,Le.text),B=>{if(Ma(B)&&B.text===Le.text)if(ne){const Ge=TL(B,tt);if(ne!==tt.getStringType()&&(ne===Ge||ln(B,tt)))return wg(B,2)}else return ex(B)&&!Rb(B,et)?void 0:wg(B,2)})));return[{definition:{type:4,node:Le},references:we}]}function ln(Le,rt){if(B_(Le.parent))return rt.getPropertyOfType(rt.getTypeAtLocation(Le.parent.parent),Le.text)}function Ht(Le,rt,tt,yt,ne,we){const et=[];return Ue(Le,rt,tt,yt,!(yt&&ne),(B,Ge,mt)=>{mt&&fr(Le)!==fr(mt)&&(mt=void 0),et.push(mt||Ge||B)},()=>!we),et}function Ue(Le,rt,tt,yt,ne,we,et){const B=kN(rt);if(B){const Yt=tt.getShorthandAssignmentValueSymbol(rt.parent);if(Yt&&yt)return we(Yt,void 0,void 0,3);const Kt=tt.getContextualType(B.parent),W=Kt&&Qa(NM(B,tt,Kt,!0),le=>wt(le,4));if(W)return W;const Pe=Y(rt,tt),St=Pe&&we(Pe,void 0,void 0,4);if(St)return St;const A=Yt&&we(Yt,void 0,void 0,3);if(A)return A}const Ge=o(rt,Le,tt);if(Ge){const Yt=we(Ge,void 0,void 0,1);if(Yt)return Yt}const mt=wt(Le);if(mt)return mt;if(Le.valueDeclaration&&O_(Le.valueDeclaration,Le.valueDeclaration.parent)){const Yt=tt.getSymbolsOfParameterPropertyDeclaration(Ls(Le.valueDeclaration,rs),Le.name);return E.assert(Yt.length===2&&!!(Yt[0].flags&1)&&!!(Yt[1].flags&4)),wt(Le.flags&1?Yt[1]:Yt[0])}const Be=Jo(Le,281);if(!yt||Be&&!Be.propertyName){const Yt=Be&&tt.getExportSpecifierLocalTargetSymbol(Be);if(Yt){const Kt=we(Yt,void 0,void 0,1);if(Kt)return Kt}}if(!yt){let Yt;return ne?Yt=YA(rt.parent)?ML(tt,rt.parent):void 0:Yt=ir(Le,tt),Yt&&wt(Yt,4)}if(E.assert(yt),ne){const Yt=ir(Le,tt);return Yt&&wt(Yt,4)}function wt(Yt,Kt){return Qa(tt.getRootSymbols(Yt),W=>we(Yt,W,void 0,Kt)||(W.parent&&W.parent.flags&96&&et(W)?Et(W.parent,W.name,tt,Pe=>we(Yt,W,Pe,Kt)):void 0))}function ir(Yt,Kt){const W=Jo(Yt,208);if(W&&YA(W))return ML(Kt,W)}}function Et(Le,rt,tt,yt){const ne=new Map;return we(Le);function we(et){if(!(!(et.flags&96)||!Vp(ne,Ks(et))))return Qa(et.declarations,B=>Qa(xE(B),Ge=>{const mt=tt.getTypeAtLocation(Ge),Be=mt&&mt.symbol&&tt.getPropertyOfType(mt,rt);return mt&&Be&&(Qa(tt.getRootSymbols(Be),yt)||we(mt.symbol))}))}}function fr(Le){return Le.valueDeclaration?!!(Lu(Le.valueDeclaration)&256):!1}function Hn(Le,rt,tt,yt){const{checker:ne}=yt;return Ue(rt,tt,ne,!1,yt.options.use!==2||!!yt.options.providePrefixAndSuffixTextForRename,(we,et,B,Ge)=>(B&&fr(rt)!==fr(B)&&(B=void 0),Le.includes(B||et||we)?{symbol:et&&!(Ko(we)&6)?et:we,kind:Ge}:void 0),we=>!(Le.parents&&!Le.parents.some(et=>Ji(we.parent,et,yt.inheritsFromCache,ne))))}function ei(Le,rt){let tt=aS(Le);const{declarations:yt}=rt;if(yt){let ne;do{ne=tt;for(const we of yt){const et=RA(we);et&tt&&(tt|=et)}}while(tt!==ne)}return tt}e.getIntersectingMeaningFromDeclarations=ei;function Ii(Le){return Le.flags&33554432?!(Bu(Le)||qp(Le)):nC(Le)?Y0(Le):po(Le)?!!Le.body:$n(Le)||r8(Le)}function ns(Le,rt,tt){const yt=rt.getSymbolAtLocation(Le),ne=rt.getShorthandAssignmentValueSymbol(yt.valueDeclaration);if(ne)for(const we of ne.getDeclarations())RA(we)&1&&tt(we)}e.getReferenceEntriesForShorthandPropertyAssignment=ns;function Vs(Le,rt,tt){Ss(Le,yt=>{yt.kind===rt&&tt(yt),Vs(yt,rt,tt)})}function _a(Le){return mW(gL(Le).parent)}function cr(Le,rt,tt){const yt=m6(Le)?Le.parent:void 0,ne=yt&&tt.getTypeAtLocation(yt.expression),we=Ri(ne&&(ne.isUnionOrIntersection()?ne.types:ne.symbol===rt.parent?void 0:[ne]),et=>et.symbol&&et.symbol.flags&96?et.symbol:void 0);return we.length===0?void 0:we}function br(Le){return Le.use===2&&Le.providePrefixAndSuffixTextForRename}})(Bx||(Bx={}))}}),uo={};Gc(uo,{Core:()=>Bx,DefinitionKind:()=>Rfe,EntryKind:()=>jfe,ExportKind:()=>Nfe,FindReferencesUse:()=>Bfe,ImportExport:()=>Ife,createImportTracker:()=>Dfe,findModuleReferences:()=>z3e,findReferenceOrRenameEntries:()=>$Xe,findReferencedSymbols:()=>qXe,getContextNode:()=>fS,getExportInfo:()=>wfe,getImplementationsAtPosition:()=>GXe,getImportOrExportSymbol:()=>U3e,getReferenceEntriesForNode:()=>H3e,getTextSpanOfEntry:()=>Lfe,isContextWithStartAndEndNode:()=>Ffe,isDeclarationOfSymbol:()=>Q3e,isWriteAccessForReference:()=>Mfe,nodeEntry:()=>wg,toContextSpan:()=>Ofe,toHighlightSpan:()=>tQe,toReferenceEntry:()=>X3e,toRenameLocation:()=>QXe});var Jfe=Dt({"src/services/_namespaces/ts.FindAllReferences.ts"(){VXe(),nQe()}});function Y3e(e,t,n,i,s){var o;const c=K3e(t,n,e),u=c&&[mQe(c.reference.fileName,c.fileName,c.unverified)]||Ve;if(c!=null&&c.file)return u;const f=u_(t,n);if(f===t)return;const{parent:g}=f,d=e.getTypeChecker();if(f.kind===164||Ie(f)&&PO(g)&&g.tagName===f)return sQe(d,f)||Ve;if(JA(f)){const P=hL(f.parent,f.text);return P?[zfe(d,P,"label",f.text,void 0)]:void 0}switch(f.kind){case 107:const P=Pr(f.parent,J=>ec(J)?"quit":po(J));return P?[KM(d,P)]:void 0;case 90:if(!h3(f.parent))break;case 84:const F=Pr(f.parent,d3);if(F)return[dQe(F,t)];break}if(f.kind===135){const P=Pr(f,J=>po(J));return P&&ct(P.modifiers,J=>J.kind===134)?[KM(d,P)]:void 0}if(f.kind===127){const P=Pr(f,J=>po(J));return P&&P.asteriskToken?[KM(d,P)]:void 0}if(nx(f)&&ec(f.parent)){const P=f.parent.parent,{symbol:F,failedAliasResolution:J}=BQ(P,d,s),U=An(P.members,ec),$=F?d.symbolToString(F,P):"",j=f.getSourceFile();return nr(U,re=>{let{pos:R}=$d(re);return R=ca(j.text,R),zfe(d,re,"constructor","static {}",$,!1,J,{start:R,length:6})})}let{symbol:y,failedAliasResolution:S}=BQ(f,d,s),T=f;if(i&&S){const P=rr([f,...(y==null?void 0:y.declarations)||Ve],J=>Pr(J,Ite)),F=P&&lC(P);F&&({symbol:y,failedAliasResolution:S}=BQ(F,d,s),T=F)}if(!y&&LL(T)){const P=(o=e.getResolvedModuleFromModuleSpecifier(T))==null?void 0:o.resolvedModule;if(P)return[{name:T.text,fileName:P.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:Wl(0,0),failedAliasResolution:S,isAmbient:Hl(P.resolvedFileName),unverified:T!==f}]}if(!y)return es(u,_Qe(f,d));if(i&&Wi(y.declarations,P=>P.getSourceFile().fileName===t.fileName))return;const k=hQe(d,f);if(k&&!(Fu(f.parent)&&yQe(k))){const P=KM(d,k,S);if(d.getRootSymbols(y).some(F=>iQe(F,k)))return[P];{const F=gP(d,y,f,S,k)||Ve;return f.kind===108?[P,...F]:[...F,P]}}if(f.parent.kind===304){const P=d.getShorthandAssignmentValueSymbol(y.valueDeclaration),F=P!=null&&P.declarations?P.declarations.map(J=>MN(J,d,P,f,!1,S)):Ve;return es(F,Z3e(d,f))}if(Ac(f)&&Ea(g)&&xp(g.parent)&&f===(g.propertyName||g.name)){const P=QA(f),F=d.getTypeAtLocation(g.parent);return P===void 0?Ve:Zs(F.isUnion()?F.types:[F],J=>{const U=J.getProperty(P);return U&&gP(d,U,f)})}const w=Z3e(d,f);return es(u,w.length?w:gP(d,y,f,S))}function iQe(e,t){var n;return e===t.symbol||e===t.symbol.parent||il(t.parent)||!jv(t.parent)&&e===((n=Wn(t.parent,zd))==null?void 0:n.symbol)}function Z3e(e,t){const n=kN(t);if(n){const i=n&&e.getContextualType(n.parent);if(i)return Zs(NM(n,e,i,!1),s=>gP(e,s,t))}return Ve}function sQe(e,t){const n=Pr(t,Tl);if(!(n&&n.name))return;const i=Pr(n,$n);if(!i)return;const s=Vd(i);if(!s)return;const o=Va(s.expression),c=kl(o)?o.symbol:e.getSymbolAtLocation(o);if(!c)return;const u=xi(Kk(n.name)),f=Bc(n)?e.getPropertyOfType(e.getTypeOfSymbol(c),u):e.getPropertyOfType(e.getDeclaredTypeOfSymbol(c),u);if(f)return gP(e,f,t)}function K3e(e,t,n){var i,s;const o=hP(e.referencedFiles,t);if(o){const f=n.getSourceFileFromReference(e,o);return f&&{reference:o,fileName:f.fileName,file:f,unverified:!1}}const c=hP(e.typeReferenceDirectives,t);if(c){const f=(i=n.getResolvedTypeReferenceDirectives().get(c.fileName,c.resolutionMode||e.impliedNodeFormat))==null?void 0:i.resolvedTypeReferenceDirective,g=f&&n.getSourceFile(f.resolvedFileName);return g&&{reference:c,fileName:g.fileName,file:g,unverified:!1}}const u=hP(e.libReferenceDirectives,t);if(u){const f=n.getLibFileFromReference(u);return f&&{reference:u,fileName:f.fileName,file:f,unverified:!1}}if(e.imports.length||e.moduleAugmentations.length){const f=h6(e,t);let g;if(LL(f)&&Sl(f.text)&&(g=n.getResolvedModuleFromModuleSpecifier(f))){const d=(s=g.resolvedModule)==null?void 0:s.resolvedFileName,y=d||V0(Un(e.fileName),f.text);return{file:n.getSourceFile(y),fileName:y,reference:{pos:f.getStart(),end:f.getEnd(),fileName:f.text},unverified:!d}}}}function aQe(e,t){const n=t.symbol.name;if(!Vfe.has(n))return!1;const i=e.resolveName(n,void 0,788968,!1);return!!i&&i===t.target.symbol}function ePe(e,t){if(!t.aliasSymbol)return!1;const n=t.aliasSymbol.name;if(!Vfe.has(n))return!1;const i=e.resolveName(n,void 0,788968,!1);return!!i&&i===t.aliasSymbol}function oQe(e,t,n,i){var s,o;if(bn(t)&4&&aQe(e,t))return LN(e.getTypeArguments(t)[0],e,n,i);if(ePe(e,t)&&t.aliasTypeArguments)return LN(t.aliasTypeArguments[0],e,n,i);if(bn(t)&32&&t.target&&ePe(e,t.target)){const c=(o=(s=t.aliasSymbol)==null?void 0:s.declarations)==null?void 0:o[0];if(c&&qp(c)&&Gf(c.type)&&c.type.typeArguments)return LN(e.getTypeAtLocation(c.type.typeArguments[0]),e,n,i)}return[]}function cQe(e,t,n){const i=u_(t,n);if(i===t)return;if(rC(i.parent)&&i.parent.name===i)return LN(e.getTypeAtLocation(i.parent),e,i.parent,!1);const{symbol:s,failedAliasResolution:o}=BQ(i,e,!1);if(!s)return;const c=e.getTypeOfSymbolAtLocation(s,i),u=lQe(s,c,e),f=u&&LN(u,e,i,o),[g,d]=f&&f.length!==0?[u,f]:[c,LN(c,e,i,o)];return d.length?[...oQe(e,g,i,o),...d]:!(s.flags&111551)&&s.flags&788968?gP(e,Ul(s,e),i,o):void 0}function LN(e,t,n,i){return Zs(e.isUnion()&&!(e.flags&32)?e.types:[e],s=>s.symbol&&gP(t,s.symbol,n,i))}function lQe(e,t,n){if(t.symbol===e||e.valueDeclaration&&t.symbol&&hi(e.valueDeclaration)&&e.valueDeclaration.initializer===t.symbol.valueDeclaration){const i=t.getCallSignatures();if(i.length===1)return n.getReturnTypeOfSignature(va(i))}}function uQe(e,t,n){const i=Y3e(e,t,n);if(!i||i.length===0)return;const s=hP(t.referencedFiles,n)||hP(t.typeReferenceDirectives,n)||hP(t.libReferenceDirectives,n);if(s)return{definitions:i,textSpan:vy(s)};const o=u_(t,n),c=Wl(o.getStart(),o.getWidth());return{definitions:i,textSpan:c}}function _Qe(e,t){return Ri(t.getIndexInfosAtLocation(e),n=>n.declaration&&KM(t,n.declaration))}function BQ(e,t,n){const i=t.getSymbolAtLocation(e);let s=!1;if(i!=null&&i.declarations&&i.flags&2097152&&!n&&fQe(e,i.declarations[0])){const o=t.getAliasedSymbol(i);if(o.declarations)return{symbol:o};s=!0}return{symbol:i,failedAliasResolution:s}}function fQe(e,t){return e.kind!==80?!1:e.parent===t?!0:t.kind!==274}function pQe(e){if(!bE(e))return!1;const t=Pr(e,n=>il(n)?!0:bE(n)?!1:"quit");return!!t&&fc(t)===5}function gP(e,t,n,i,s){const o=An(t.declarations,y=>y!==s),c=An(o,y=>!pQe(y)),u=ct(c)?c:o;return f()||g()||nr(u,y=>MN(y,e,t,n,!1,i));function f(){if(t.flags&32&&!(t.flags&19)&&(Q3(n)||n.kind===137)){const y=wn(o,$n)||E.fail("Expected declaration to have at least one class-like declaration");return d(y.members,!0)}}function g(){return VH(n)||QH(n)?d(o,!1):void 0}function d(y,S){if(!y)return;const T=y.filter(S?sc:As),k=T.filter(w=>!!w.body);return T.length?k.length!==0?k.map(w=>MN(w,e,t,n)):[MN(ka(T),e,t,n,!1,i)]:void 0}}function MN(e,t,n,i,s,o){const c=t.symbolToString(n),u=m0.getSymbolKind(t,n,i),f=n.parent?t.symbolToString(n.parent,i):"";return zfe(t,e,u,c,f,s,o)}function zfe(e,t,n,i,s,o,c,u){const f=t.getSourceFile();if(!u){const g=us(t)||t;u=Zu(g,f)}return{fileName:f.fileName,textSpan:u,kind:n,name:i,containerKind:void 0,containerName:s,...uo.toContextSpan(u,f,uo.getContextNode(t)),isLocal:!Wfe(e,t),isAmbient:!!(t.flags&33554432),unverified:o,failedAliasResolution:c}}function dQe(e,t){const n=uo.getContextNode(e),i=Zu(Ffe(n)?n.start:n,t);return{fileName:t.fileName,textSpan:i,kind:"keyword",name:"switch",containerKind:void 0,containerName:"",...uo.toContextSpan(i,t,n),isLocal:!0,isAmbient:!1,unverified:!1,failedAliasResolution:void 0}}function Wfe(e,t){if(e.isDeclarationVisible(t))return!0;if(!t.parent)return!1;if(Y0(t.parent)&&t.parent.initializer===t)return Wfe(e,t.parent);switch(t.kind){case 172:case 177:case 178:case 174:if(R_(t,2))return!1;case 176:case 303:case 304:case 210:case 231:case 219:case 218:return Wfe(e,t.parent);default:return!1}}function KM(e,t,n){return MN(t,e,t.symbol,t,!1,n)}function hP(e,t){return wn(e,n=>zD(n,t))}function mQe(e,t,n){return{fileName:t,textSpan:Rc(0,0),kind:"script",name:e,containerName:void 0,containerKind:void 0,unverified:n}}function gQe(e){const t=Pr(e,i=>!m6(i)),n=t==null?void 0:t.parent;return n&&jv(n)&&x5(n)===t?n:void 0}function hQe(e,t){const n=gQe(t),i=n&&e.getResolvedSignature(n);return Wn(i&&i.declaration,s=>As(s)&&!Mm(s))}function yQe(e){switch(e.kind){case 176:case 185:case 180:return!0;default:return!1}}var Vfe,vQe=Dt({"src/services/goToDefinition.ts"(){qn(),Jfe(),Vfe=new Set(["Array","ArrayLike","ReadonlyArray","Promise","PromiseLike","Iterable","IterableIterator","AsyncIterable","Set","WeakSet","ReadonlySet","Map","WeakMap","ReadonlyMap","Partial","Required","Readonly","Pick","Omit"])}}),L6={};Gc(L6,{createDefinitionInfo:()=>MN,findReferenceInPosition:()=>hP,getDefinitionAndBoundSpan:()=>uQe,getDefinitionAtPosition:()=>Y3e,getReferenceAtPosition:()=>K3e,getTypeDefinitionAtPosition:()=>cQe});var bQe=Dt({"src/services/_namespaces/ts.GoToDefinition.ts"(){vQe()}});function SQe(e){return e.includeInlayParameterNameHints==="literals"||e.includeInlayParameterNameHints==="all"}function TQe(e){return e.includeInlayParameterNameHints==="literals"}function tPe(e){return e.interactiveInlayHints===!0}function xQe(e){const{file:t,program:n,span:i,cancellationToken:s,preferences:o}=e,c=t.text,u=n.getCompilerOptions(),f=Df(t,o),g=n.getTypeChecker(),d=[];return y(t),d;function y(ae){if(!(!ae||ae.getFullWidth()===0)){switch(ae.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 174:case 219:s.throwIfCancellationRequested()}if(M7(i,ae.pos,ae.getFullWidth())&&!(ki(ae)&&!s0(ae)))return o.includeInlayVariableTypeHints&&hi(ae)||o.includeInlayPropertyDeclarationTypeHints&&xs(ae)?J(ae):o.includeInlayEnumMemberValueHints&&p2(ae)?P(ae):SQe(o)&&(Rs(ae)||a2(ae))?U(ae):(o.includeInlayFunctionParameterTypeHints&&po(ae)&&TF(ae)&&ue(ae),o.includeInlayFunctionLikeReturnTypeHints&&S(ae)&&R(ae)),Ss(ae,y)}}function S(ae){return mo(ae)||lo(ae)||Xc(ae)||hc(ae)||Tf(ae)}function T(ae,K,fe,ke){let Oe=`${ke?"...":""}${ae}`,me;tPe(o)?(me=[Se(Oe,K),{text:":"}],Oe=""):Oe+=":",d.push({text:Oe,position:fe,kind:"Parameter",whitespaceAfter:!0,displayParts:me})}function k(ae,K){d.push({text:typeof ae=="string"?`: ${ae}`:"",displayParts:typeof ae=="string"?void 0:[{text:": "},...ae],position:K,kind:"Type",whitespaceBefore:!0})}function w(ae,K){d.push({text:`= ${ae}`,position:K,kind:"Enum",whitespaceBefore:!0})}function P(ae){if(ae.initializer)return;const K=g.getConstantValue(ae);K!==void 0&&w(K.toString(),ae.end)}function F(ae){return ae.symbol&&ae.symbol.flags&1536}function J(ae){if(!ae.initializer||Ns(ae.name)||hi(ae)&&!oe(ae)||Vl(ae))return;const fe=g.getTypeAtLocation(ae);if(F(fe))return;const ke=q(fe);if(ke){const Oe=typeof ke=="string"?ke:ke.map(be=>be.text).join("");if(o.includeInlayVariableTypeHintsWhenTypeMatchesName===!1&&p1(ae.name.getText(),Oe))return;k(ke,ae.name.end)}}function U(ae){const K=ae.arguments;if(!K||!K.length)return;const fe=[],ke=g.getResolvedSignatureForSignatureHelp(ae,fe);if(!ke||!fe.length)return;let Oe=0;for(const me of K){const be=Va(me);if(TQe(o)&&!re(be)){Oe++;continue}let xe=0;if(gd(be)){const ft=g.getTypeAtLocation(be.expression);if(g.isTupleType(ft)){const{elementFlags:ge,fixedLength:Fe}=ft.target;if(Fe===0)continue;const $e=vc(ge,at=>!(at&1));($e<0?Fe:$e)>0&&(xe=$e<0?Fe:$e)}}const De=g.getParameterIdentifierInfoAtPosition(ke,Oe);if(Oe=Oe+(xe||1),De){const{parameter:ft,parameterName:ge,isRestParameter:Fe}=De;if(!(o.includeInlayParameterNameHintsWhenArgumentMatchesName||!$(be,ge))&&!Fe)continue;const Pt=xi(ge);if(j(be,Pt))continue;T(Pt,ft,me.getStart(),Fe)}}}function $(ae,K){return Ie(ae)?ae.text===K:Sn(ae)?ae.name.text===K:!1}function j(ae,K){if(!bf(K,u.target,K8(t.scriptKind)))return!1;const fe=_g(c,ae.pos);if(!(fe!=null&&fe.length))return!1;const ke=rPe(K);return ct(fe,Oe=>ke.test(c.substring(Oe.pos,Oe.end)))}function re(ae){switch(ae.kind){case 224:{const K=ae.operand;return Rv(K)||Ie(K)&&YE(K.escapedText)}case 112:case 97:case 106:case 15:case 228:return!0;case 80:{const K=ae.escapedText;return ee(K)||YE(K)}}return Rv(ae)}function R(ae){if(mo(ae)&&!qa(ae,21,t)||vp(ae)||!ae.body)return;const fe=g.getSignatureFromDeclaration(ae);if(!fe)return;const ke=g.getReturnTypeOfSignature(fe);if(F(ke))return;const Oe=q(ke);Oe&&k(Oe,Y(ae))}function Y(ae){const K=qa(ae,22,t);return K?K.end:ae.parameters.end}function ue(ae){const K=g.getSignatureFromDeclaration(ae);if(K)for(let fe=0;fe{const Oe=g.typeToTypeNode(ae,void 0,71286784);E.assertIsDefined(Oe,"should always get typenode"),fe.writeNode(4,Oe,t,ke)})}function q(ae){if(!tPe(o))return H(ae);const fe=g.typeToTypeNode(ae,void 0,71286784);E.assertIsDefined(fe,"should always get typenode");const ke=[];return Oe(fe),ke;function Oe(De){var ft,ge;if(!De)return;const Fe=Ws(De.kind);if(Fe){ke.push({text:Fe});return}if(Rv(De)){ke.push({text:xe(De)});return}switch(De.kind){case 80:E.assertNode(De,Ie);const $e=on(De),Pt=De.symbol&&De.symbol.declarations&&De.symbol.declarations.length&&us(De.symbol.declarations[0]);Pt?ke.push(Se($e,Pt)):ke.push({text:$e});break;case 166:E.assertNode(De,Xu),Oe(De.left),ke.push({text:"."}),Oe(De.right);break;case 182:E.assertNode(De,Dw),De.assertsModifier&&ke.push({text:"asserts "}),Oe(De.parameterName),De.type&&(ke.push({text:" is "}),Oe(De.type));break;case 183:E.assertNode(De,Gf),Oe(De.typeName),De.typeArguments&&(ke.push({text:"<"}),be(De.typeArguments,", "),ke.push({text:">"}));break;case 168:E.assertNode(De,Uo),De.modifiers&&be(De.modifiers," "),Oe(De.name),De.constraint&&(ke.push({text:" extends "}),Oe(De.constraint)),De.default&&(ke.push({text:" = "}),Oe(De.default));break;case 169:E.assertNode(De,rs),De.modifiers&&be(De.modifiers," "),De.dotDotDotToken&&ke.push({text:"..."}),Oe(De.name),De.questionToken&&ke.push({text:"?"}),De.type&&(ke.push({text:": "}),Oe(De.type));break;case 185:E.assertNode(De,MC),ke.push({text:"new "}),me(De),ke.push({text:" => "}),Oe(De.type);break;case 186:E.assertNode(De,sx),ke.push({text:"typeof "}),Oe(De.exprName),De.typeArguments&&(ke.push({text:"<"}),be(De.typeArguments,", "),ke.push({text:">"}));break;case 187:E.assertNode(De,z_),ke.push({text:"{"}),De.members.length&&(ke.push({text:" "}),be(De.members,"; "),ke.push({text:" "})),ke.push({text:"}"});break;case 188:E.assertNode(De,ww),Oe(De.elementType),ke.push({text:"[]"});break;case 189:E.assertNode(De,ax),ke.push({text:"["}),be(De.elements,", "),ke.push({text:"]"});break;case 202:E.assertNode(De,RC),De.dotDotDotToken&&ke.push({text:"..."}),Oe(De.name),De.questionToken&&ke.push({text:"?"}),ke.push({text:": "}),Oe(De.type);break;case 190:E.assertNode(De,vO),Oe(De.type),ke.push({text:"?"});break;case 191:E.assertNode(De,bO),ke.push({text:"..."}),Oe(De.type);break;case 192:E.assertNode(De,uy),be(De.types," | ");break;case 193:E.assertNode(De,ox),be(De.types," & ");break;case 194:E.assertNode(De,cx),Oe(De.checkType),ke.push({text:" extends "}),Oe(De.extendsType),ke.push({text:" ? "}),Oe(De.trueType),ke.push({text:" : "}),Oe(De.falseType);break;case 195:E.assertNode(De,zb),ke.push({text:"infer "}),Oe(De.typeParameter);break;case 196:E.assertNode(De,Wb),ke.push({text:"("}),Oe(De.type),ke.push({text:")"});break;case 198:E.assertNode(De,Vb),ke.push({text:`${Ws(De.operator)} `}),Oe(De.type);break;case 199:E.assertNode(De,Ub),Oe(De.objectType),ke.push({text:"["}),Oe(De.indexType),ke.push({text:"]"});break;case 200:E.assertNode(De,jC),ke.push({text:"{ "}),De.readonlyToken&&(De.readonlyToken.kind===40?ke.push({text:"+"}):De.readonlyToken.kind===41&&ke.push({text:"-"}),ke.push({text:"readonly "})),ke.push({text:"["}),Oe(De.typeParameter),De.nameType&&(ke.push({text:" as "}),Oe(De.nameType)),ke.push({text:"]"}),De.questionToken&&(De.questionToken.kind===40?ke.push({text:"+"}):De.questionToken.kind===41&&ke.push({text:"-"}),ke.push({text:"?"})),ke.push({text:": "}),De.type&&Oe(De.type),ke.push({text:"; }"});break;case 201:E.assertNode(De,_y),Oe(De.literal);break;case 184:E.assertNode(De,Mm),me(De),ke.push({text:" => "}),Oe(De.type);break;case 205:E.assertNode(De,Cg),De.isTypeOf&&ke.push({text:"typeof "}),ke.push({text:"import("}),Oe(De.argument),De.assertions&&(ke.push({text:", { assert: "}),be(De.assertions.assertClause.elements,", "),ke.push({text:" }"})),ke.push({text:")"}),De.qualifier&&(ke.push({text:"."}),Oe(De.qualifier)),De.typeArguments&&(ke.push({text:"<"}),be(De.typeArguments,", "),ke.push({text:">"}));break;case 171:E.assertNode(De,B_),(ft=De.modifiers)!=null&&ft.length&&(be(De.modifiers," "),ke.push({text:" "})),Oe(De.name),De.questionToken&&ke.push({text:"?"}),De.type&&(ke.push({text:": "}),Oe(De.type));break;case 181:E.assertNode(De,i2),ke.push({text:"["}),be(De.parameters,", "),ke.push({text:"]"}),De.type&&(ke.push({text:": "}),Oe(De.type));break;case 173:E.assertNode(De,Lm),(ge=De.modifiers)!=null&&ge.length&&(be(De.modifiers," "),ke.push({text:" "})),Oe(De.name),De.questionToken&&ke.push({text:"?"}),me(De),De.type&&(ke.push({text:": "}),Oe(De.type));break;case 179:E.assertNode(De,ix),me(De),De.type&&(ke.push({text:": "}),Oe(De.type));break;case 207:E.assertNode(De,s2),ke.push({text:"["}),be(De.elements,", "),ke.push({text:"]"});break;case 206:E.assertNode(De,xp),ke.push({text:"{"}),De.elements.length&&(ke.push({text:" "}),be(De.elements,", "),ke.push({text:" "})),ke.push({text:"}"});break;case 208:E.assertNode(De,Ea),Oe(De.name);break;case 224:E.assertNode(De,py),ke.push({text:Ws(De.operator)}),Oe(De.operand);break;case 203:E.assertNode(De,eie),Oe(De.head),De.templateSpans.forEach(Oe);break;case 16:E.assertNode(De,tx),ke.push({text:xe(De)});break;case 204:E.assertNode(De,CV),Oe(De.type),Oe(De.literal);break;case 17:E.assertNode(De,SV),ke.push({text:xe(De)});break;case 18:E.assertNode(De,mO),ke.push({text:xe(De)});break;case 197:E.assertNode(De,Aw),ke.push({text:"this"});break;default:E.failBadSyntaxKind(De)}}function me(De){De.typeParameters&&(ke.push({text:"<"}),be(De.typeParameters,", "),ke.push({text:">"})),ke.push({text:"("}),be(De.parameters,", "),ke.push({text:")"})}function be(De,ft){De.forEach((ge,Fe)=>{Fe>0&&ke.push({text:ft}),Oe(ge)})}function xe(De){switch(De.kind){case 11:return f===0?`'${bg(De.text,39)}'`:`"${bg(De.text,34)}"`;case 16:case 17:case 18:{const ft=De.rawText??iW(bg(De.text,96));switch(De.kind){case 16:return"`"+ft+"${";case 17:return"}"+ft+"${";case 18:return"}"+ft+"`"}}}return De.text}}function ee(ae){return ae==="undefined"}function oe(ae){if(($v(ae)||hi(ae)&&tC(ae))&&ae.initializer){const K=Va(ae.initializer);return!(re(K)||a2(K)||ua(K)||Sb(K))}return!0}function Se(ae,K){const fe=K.getSourceFile();return{text:ae,span:Zu(K,fe),file:fe.fileName}}}var rPe,kQe=Dt({"src/services/inlayHints.ts"(){qn(),rPe=e=>new RegExp(`^\\s?/\\*\\*?\\s?${e}\\s?\\*\\/\\s?$`)}}),JQ={};Gc(JQ,{provideInlayHints:()=>xQe});var CQe=Dt({"src/services/_namespaces/ts.InlayHints.ts"(){kQe()}});function EQe(e,t){const n=[];return vG(e,i=>{for(const s of DQe(i)){const o=yd(s)&&s.tags&&wn(s.tags,u=>u.kind===334&&(u.tagName.escapedText==="inheritDoc"||u.tagName.escapedText==="inheritdoc"));if(s.comment===void 0&&!o||yd(s)&&i.kind!==353&&i.kind!==345&&s.tags&&s.tags.some(u=>u.kind===353||u.kind===345)&&!s.tags.some(u=>u.kind===348||u.kind===349))continue;let c=s.comment?M6(s.comment,t):[];o&&o.comment&&(c=c.concat(M6(o.comment,t))),bs(n,c,PQe)||n.push(c)}}),Op(Kj(n,[S6()]))}function PQe(e,t){return mD(e,t,(n,i)=>n.kind===i.kind&&n.text===i.text)}function DQe(e){switch(e.kind){case 348:case 355:return[e];case 345:case 353:return[e,e.parent];case 330:if(UC(e.parent))return[e.parent.parent];default:return Wz(e)}}function wQe(e,t){const n=[];return vG(e,i=>{const s=T1(i);if(!(s.some(o=>o.kind===353||o.kind===345)&&!s.some(o=>o.kind===348||o.kind===349)))for(const o of s)n.push({name:o.tagName.text,text:sPe(o,t)}),n.push(...nPe(iPe(o),t))}),n}function nPe(e,t){return Zs(e,n=>es([{name:n.tagName.text,text:sPe(n,t)}],nPe(iPe(n),t)))}function iPe(e){return aE(e)&&e.isNameFirst&&e.typeExpression&&Qb(e.typeExpression.type)?e.typeExpression.type.jsDocPropertyTags:void 0}function M6(e,t){return typeof e=="string"?[wf(e)]:Zs(e,n=>n.kind===328?[wf(n.text)]:fce(n,t))}function sPe(e,t){const{comment:n,kind:i}=e,s=AQe(i);switch(i){case 356:const u=e.typeExpression;return u?o(u):n===void 0?void 0:M6(n,t);case 336:return o(e.class);case 335:return o(e.class);case 352:const f=e,g=[];if(f.constraint&&g.push(wf(f.constraint.getText())),mr(f.typeParameters)){mr(g)&&g.push(cc());const y=f.typeParameters[f.typeParameters.length-1];rr(f.typeParameters,S=>{g.push(s(S.getText())),y!==S&&g.push(Tu(28),cc())})}return n&&g.push(cc(),...M6(n,t)),g;case 351:case 357:return o(e.typeExpression);case 353:case 345:case 355:case 348:case 354:const{name:d}=e;return d?o(d):n===void 0?void 0:M6(n,t);default:return n===void 0?void 0:M6(n,t)}function o(u){return c(u.getText())}function c(u){return n?u.match(/^https?$/)?[wf(u),...M6(n,t)]:[s(u),cc(),...M6(n,t)]:[wf(u)]}}function AQe(e){switch(e){case 348:return oce;case 355:return cce;case 352:return uce;case 353:case 345:return lce;default:return wf}}function NQe(){return oPe||(oPe=nr(qfe,e=>({name:e,kind:"keyword",kindModifiers:"",sortText:jx.SortText.LocationPriority})))}function IQe(){return cPe||(cPe=nr(qfe,e=>({name:`@${e}`,kind:"keyword",kindModifiers:"",sortText:jx.SortText.LocationPriority})))}function aPe(e){return{name:e,kind:"",kindModifiers:"",displayParts:[wf(e)],documentation:Ve,tags:void 0,codeActions:void 0}}function FQe(e){if(!Ie(e.name))return Ve;const t=e.name.text,n=e.parent,i=n.parent;return As(i)?Ri(i.parameters,s=>{if(!Ie(s.name))return;const o=s.name.text;if(!(n.tags.some(c=>c!==e&&vd(c)&&Ie(c.name)&&c.name.escapedText===o)||t!==void 0&&!Vi(o,t)))return{name:o,kind:"parameter",kindModifiers:"",sortText:jx.SortText.LocationPriority}}):[]}function OQe(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[wf(e)],documentation:Ve,tags:void 0,codeActions:void 0}}function LQe(e,t,n,i){const s=Ui(t,n),o=Pr(s,yd);if(o&&(o.comment!==void 0||mr(o.tags)))return;const c=s.getStart(t);if(!o&&c0;if(w&&!J){const U=P+e+T+" * ",$=c===n?e+T:"";return{newText:U+e+w+T+F+$,caretOffset:U.length}}return{newText:P+F,caretOffset:3}}function MQe(e,t){const{text:n}=e,i=Cp(t,e);let s=i;for(;s<=t&&Bd(n.charCodeAt(s));s++);return n.slice(i,s)}function RQe(e,t,n,i){return e.map(({name:s,dotDotDotToken:o},c)=>{const u=s.kind===80?s.text:"param"+c;return`${n} * @param ${t?o?"{...any} ":"{any} ":""}${u}${i}`}).join("")}function jQe(e,t){return`${e} * @returns${t}`}function BQe(e,t){return Ste(e,n=>Ufe(n,t))}function Ufe(e,t){switch(e.kind){case 262:case 218:case 174:case 176:case 173:case 219:const n=e;return{commentOwner:e,parameters:n.parameters,hasReturn:eR(n,t)};case 303:return Ufe(e.initializer,t);case 263:case 264:case 266:case 306:case 265:return{commentOwner:e};case 171:{const s=e;return s.type&&Mm(s.type)?{commentOwner:e,parameters:s.type.parameters,hasReturn:eR(s.type,t)}:{commentOwner:e}}case 243:{const o=e.declarationList.declarations,c=o.length===1&&o[0].initializer?JQe(o[0].initializer):void 0;return c?{commentOwner:e,parameters:c.parameters,hasReturn:eR(c,t)}:{commentOwner:e}}case 312:return"quit";case 267:return e.parent.kind===267?void 0:{commentOwner:e};case 244:return Ufe(e.expression,t);case 226:{const s=e;return fc(s)===0?"quit":As(s.right)?{commentOwner:e,parameters:s.right.parameters,hasReturn:eR(s.right,t)}:{commentOwner:e}}case 172:const i=e.initializer;if(i&&(lo(i)||mo(i)))return{commentOwner:e,parameters:i.parameters,hasReturn:eR(i,t)}}}function eR(e,t){return!!(t!=null&&t.generateReturnInDocTemplate)&&(Mm(e)||mo(e)&&ot(e.body)||po(e)&&e.body&&Cs(e.body)&&!!Wv(e.body,n=>n))}function JQe(e){for(;e.kind===217;)e=e.expression;switch(e.kind){case 218:case 219:return e;case 231:return wn(e.members,sc)}}var qfe,oPe,cPe,lPe,zQe=Dt({"src/services/jsDoc.ts"(){qn(),qfe=["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"],lPe=aPe}}),Q1={};Gc(Q1,{getDocCommentTemplateAtPosition:()=>LQe,getJSDocParameterNameCompletionDetails:()=>OQe,getJSDocParameterNameCompletions:()=>FQe,getJSDocTagCompletionDetails:()=>aPe,getJSDocTagCompletions:()=>IQe,getJSDocTagNameCompletionDetails:()=>lPe,getJSDocTagNameCompletions:()=>NQe,getJsDocCommentsFromDeclarations:()=>EQe,getJsDocTagsFromDeclarations:()=>wQe});var WQe=Dt({"src/services/_namespaces/ts.JsDoc.ts"(){zQe()}});function VQe(e,t,n,i,s,o){const c=Kr.ChangeTracker.fromContext({host:n,formatContext:t,preferences:s}),u=o==="SortAndCombine"||o==="All",f=u,g=o==="RemoveUnused"||o==="All",d=zQ(e,e.statements.filter(sl)),y=aYe(s,u?()=>fPe(d,s)===2:void 0),S=k=>(g&&(k=qQe(k,e,i)),f&&(k=uPe(k,y,e,s)),u&&(k=Bh(k,(w,P)=>Qfe(w,P,y))),k);d.forEach(k=>T(k,S)),o!=="RemoveUnused"&&oYe(e).forEach(k=>T(k,w=>Hfe(w,y,s)));for(const k of e.statements.filter(su)){if(!k.body)continue;if(zQ(e,k.body.statements.filter(sl)).forEach(P=>T(P,S)),o!=="RemoveUnused"){const P=k.body.statements.filter(Tc);T(P,F=>Hfe(F,y,s))}}return c.getChanges();function T(k,w){if(mr(k)===0)return;Qr(k[0],1024);const P=f?V4(k,U=>tR(U.moduleSpecifier)):[k],F=u?Bh(P,(U,$)=>$fe(U[0].moduleSpecifier,$[0].moduleSpecifier,y)):P,J=Zs(F,U=>tR(U[0].moduleSpecifier)||U[0].moduleSpecifier===void 0?w(U):U);if(J.length===0)c.deleteNodes(e,k,{leadingTriviaOption:Kr.LeadingTriviaOption.Exclude,trailingTriviaOption:Kr.TrailingTriviaOption.Include},!0);else{const U={leadingTriviaOption:Kr.LeadingTriviaOption.Exclude,trailingTriviaOption:Kr.TrailingTriviaOption.Include,suffix:f0(n,t.options)};c.replaceNodeWithNodes(e,k[0],J,U);const $=c.nodeHasTrailingComment(e,k[0],U);c.deleteNodes(e,k.slice(1),{trailingTriviaOption:Kr.TrailingTriviaOption.Include},$)}}}function zQ(e,t){const n=Hh(e.languageVersion,!1,e.languageVariant),i=[];let s=0;for(const o of t)i[s]&&UQe(e,o,n)&&s++,i[s]||(i[s]=[]),i[s].push(o);return i}function UQe(e,t,n){const i=t.getFullStart(),s=t.getStart();n.setText(e.text,i,s-i);let o=0;for(;n.getTokenStart()=2))return!0;return!1}function qQe(e,t,n){const i=n.getTypeChecker(),s=n.getCompilerOptions(),o=i.getJsxNamespace(t),c=i.getJsxFragmentFactory(t),u=!!(t.transformFlags&2),f=[];for(const d of e){const{importClause:y,moduleSpecifier:S}=d;if(!y){f.push(d);continue}let{name:T,namedBindings:k}=y;if(T&&!g(T)&&(T=void 0),k)if(dy(k))g(k.name)||(k=void 0);else{const w=k.elements.filter(P=>g(P.name));w.lengthaa(i)&&i.text===n)}function tR(e){return e!==void 0&&Ma(e)?e.text:void 0}function GQe(e,t,n,i){const s=WQ(t);return uPe(e,s,n,i)}function uPe(e,t,n,i){if(e.length===0)return e;const s=KI(e,c=>{if(c.attributes){let u=c.attributes.token+" ";for(const f of _b(c.attributes.elements,(g,d)=>mu(g.name.text,d.name.text)))u+=f.name.text+":",u+=Ma(f.value)?`"${f.value.text}"`:f.value.getText()+" ";return u}return""}),o=[];for(const c in s){const u=s[c],{importWithoutClause:f,typeOnlyImports:g,regularImports:d}=$Qe(u);f&&o.push(f);for(const y of[d,g]){const S=y===g,{defaultImports:T,namespaceImports:k,namedImports:w}=y;if(!S&&T.length===1&&k.length===1&&w.length===0){const Y=T[0];o.push(RN(Y,Y.importClause.name,k[0].importClause.namedBindings));continue}const P=Bh(k,(Y,ue)=>t(Y.importClause.namedBindings.name.text,ue.importClause.namedBindings.name.text));for(const Y of P)o.push(RN(Y,void 0,Y.importClause.namedBindings));const F=bl(T),J=bl(w),U=F??J;if(!U)continue;let $;const j=[];if(T.length===1)$=T[0].importClause.name;else for(const Y of T)j.push(I.createImportSpecifier(!1,I.createIdentifier("default"),Y.importClause.name));j.push(...rYe(w));const re=I.createNodeArray(_Pe(j,t,i),J==null?void 0:J.importClause.namedBindings.elements.hasTrailingComma),R=re.length===0?$?void 0:I.createNamedImports(Ve):J?I.updateNamedImports(J.importClause.namedBindings,re):I.createNamedImports(re);n&&R&&(J!=null&&J.importClause.namedBindings)&&!Rb(J.importClause.namedBindings,n)&&Qr(R,2),S&&$&&R?(o.push(RN(U,$,void 0)),o.push(RN(J??U,void 0,R))):o.push(RN(U,$,R))}}return o}function $Qe(e){let t;const n={defaultImports:[],namespaceImports:[],namedImports:[]},i={defaultImports:[],namespaceImports:[],namedImports:[]};for(const s of e){if(s.importClause===void 0){t=t||s;continue}const o=s.importClause.isTypeOnly?n:i,{name:c,namedBindings:u}=s.importClause;c&&o.defaultImports.push(s),u&&(dy(u)?o.namespaceImports.push(s):o.namedImports.push(s))}return{importWithoutClause:t,typeOnlyImports:n,regularImports:i}}function XQe(e,t,n){const i=WQ(t);return Hfe(e,i,n)}function Hfe(e,t,n){if(e.length===0)return e;const{exportWithoutClause:i,namedExports:s,typeOnlyExports:o}=u(e),c=[];i&&c.push(i);for(const f of[s,o]){if(f.length===0)continue;const g=[];g.push(...Zs(f,S=>S.exportClause&&$f(S.exportClause)?S.exportClause.elements:Ve));const d=_Pe(g,t,n),y=f[0];c.push(I.updateExportDeclaration(y,y.modifiers,y.isTypeOnly,y.exportClause&&($f(y.exportClause)?I.updateNamedExports(y.exportClause,d):I.updateNamespaceExport(y.exportClause,y.exportClause.name)),y.moduleSpecifier,y.attributes))}return c;function u(f){let g;const d=[],y=[];for(const S of f)S.exportClause===void 0?g=g||S:S.isTypeOnly?y.push(S):d.push(S);return{exportWithoutClause:g,namedExports:d,typeOnlyExports:y}}}function RN(e,t,n){return I.updateImportDeclaration(e,e.modifiers,I.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,n),e.moduleSpecifier,e.attributes)}function _Pe(e,t,n){return Bh(e,(i,s)=>Gfe(i,s,t,n))}function Gfe(e,t,n,i){switch(i==null?void 0:i.organizeImportsTypeOrder){case"first":return B0(t.isTypeOnly,e.isTypeOnly)||n(e.name.text,t.name.text);case"inline":return n(e.name.text,t.name.text);default:return B0(e.isTypeOnly,t.isTypeOnly)||n(e.name.text,t.name.text)}}function QQe(e,t,n){const i=WQ(!!n);return $fe(e,t,i)}function $fe(e,t,n){const i=e===void 0?void 0:tR(e),s=t===void 0?void 0:tR(t);return B0(i===void 0,s===void 0)||B0(Sl(i),Sl(s))||n(i,s)}function Xfe(e){var t;switch(e.kind){case 271:return(t=Wn(e.moduleReference,Bm))==null?void 0:t.expression;case 272:return e.moduleSpecifier;case 243:return e.declarationList.declarations[0].initializer.arguments[0]}}function YQe(e,t){return fPe(zQ(e,e.statements.filter(sl)),t)}function fPe(e,t){const n=R6(t,!1),i=R6(t,!0);let s=3,o=!1;for(const c of e){if(c.length>1){const f=W4(c,g=>{var d;return((d=Wn(g.moduleSpecifier,aa))==null?void 0:d.text)??""},n,i);if(f&&(s&=f,o=!0),!s)return s}const u=wn(c,f=>{var g,d;return((d=Wn((g=f.importClause)==null?void 0:g.namedBindings,sh))==null?void 0:d.elements.length)>1});if(u){const f=Yfe(u.importClause.namedBindings.elements,t);if(f&&(s&=f,o=!0),!s)return s}if(s!==3)return s}return o?0:s}function ZQe(e,t){const n=R6(t,!1),i=R6(t,!0);return W4(e,s=>tR(Xfe(s))||"",n,i)}function KQe(e,t,n){const i=Jh(e,t,wo,(s,o)=>Qfe(s,o,n));return i<0?~i:i}function eYe(e,t,n,i){const s=Jh(e,t,wo,(o,c)=>Gfe(o,c,n,i));return s<0?~s:s}function Qfe(e,t,n){return $fe(Xfe(e),Xfe(t),n)||tYe(e,t)}function tYe(e,t){return Ao(pPe(e),pPe(t))}function pPe(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 rYe(e){return Zs(e,t=>nr(nYe(t),n=>n.name&&n.propertyName&&n.name.escapedText===n.propertyName.escapedText?I.updateImportSpecifier(n,n.isTypeOnly,void 0,n.name):n))}function nYe(e){var t;return(t=e.importClause)!=null&&t.namedBindings&&sh(e.importClause.namedBindings)?e.importClause.namedBindings.elements:void 0}function WQ(e){return e?HK:mu}function iYe(e,t){const n=sYe(t),i=t.organizeImportsCaseFirst??!1,s=t.organizeImportsNumericCollation??!1,o=t.organizeImportsAccentCollation??!0,c=e?o?"accent":"base":o?"variant":"case";return new Intl.Collator(n,{usage:"sort",caseFirst:i||"false",sensitivity:c,numeric:s}).compare}function sYe(e){let t=e.organizeImportsLocale;t==="auto"&&(t=GK()),t===void 0&&(t="en");const n=Intl.Collator.supportedLocalesOf(t);return n.length?n[0]:"en"}function R6(e,t){return(e.organizeImportsCollation??"ordinal")==="unicode"?iYe(t,e):WQ(t)}function aYe(e,t){const n=typeof e.organizeImportsIgnoreCase=="boolean"?e.organizeImportsIgnoreCase:(t==null?void 0:t())??!1;return R6(e,n)}function oYe(e){const t=[],n=e.statements,i=mr(n);let s=0,o=0;for(;szQ(e,c))}var dPe,Yfe,cYe=Dt({"src/services/organizeImports.ts"(){qn(),dPe=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],n){this._lastPreferences!==t&&(this._lastPreferences=t,this._cache=void 0),this._cache??(this._cache=new WeakMap),this._cache.set(e,n)}},Yfe=qK((e,t)=>{switch(t.organizeImportsTypeOrder){case"first":if(!QI(e,(s,o)=>B0(o.isTypeOnly,s.isTypeOnly)))return 0;break;case"inline":if(!QI(e,(s,o)=>Ak(!0)(s.name.text,o.name.text)))return 0;break;default:if(!QI(e,(s,o)=>B0(s.isTypeOnly,o.isTypeOnly)))return 0;break}const n=R6(t,!1),i=R6(t,!0);if(t.organizeImportsTypeOrder!=="inline"){const{type:s,regular:o}=KI(e,f=>f.isTypeOnly?"type":"regular"),c=s!=null&&s.length?W4(s,f=>f.name.text,n,i):void 0,u=o!=null&&o.length?W4(o,f=>f.name.text??"",n,i):void 0;return c===void 0?u??0:u===void 0?c:c===0||u===0?0:u&c}return W4(e,s=>s.name.text,n,i)},new dPe)}}),Xp={};Gc(Xp,{coalesceExports:()=>XQe,coalesceImports:()=>GQe,compareImportOrExportSpecifiers:()=>Gfe,compareImportsOrRequireStatements:()=>Qfe,compareModuleSpecifiers:()=>QQe,detectImportDeclarationSorting:()=>ZQe,detectImportSpecifierSorting:()=>Yfe,detectSorting:()=>YQe,getImportDeclarationInsertionIndex:()=>KQe,getImportSpecifierInsertionIndex:()=>eYe,getOrganizeImportsComparer:()=>R6,organizeImports:()=>VQe});var lYe=Dt({"src/services/_namespaces/ts.OrganizeImports.ts"(){cYe()}});function uYe(e,t){const n=[];return _Ye(e,t,n),fYe(e,n),n.sort((i,s)=>i.textSpan.start-s.textSpan.start)}function _Ye(e,t,n){let i=40,s=0;const o=[...e.statements,e.endOfFileToken],c=o.length;for(;s1&&i.push(rR(o,c,"comment"))}}function gPe(e,t,n,i){KT(e)||Zfe(e.pos,t,n,i)}function rR(e,t,n){return Jx(Rc(e,t),n)}function pYe(e,t){switch(e.kind){case 241:if(As(e.parent))return dYe(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 d(e.parent);case 258:const T=e.parent;if(T.tryBlock===e)return d(e.parent);if(T.finallyBlock===e){const k=qa(T,98,t);if(k)return d(k)}default:return Jx(Zu(e,t),"code")}case 268:return d(e.parent);case 263:case 231:case 264:case 266:case 269:case 187:case 206:return d(e);case 189:return d(e,!1,!ax(e.parent),23);case 296:case 297:return y(e.statements);case 210:return g(e);case 209:return g(e,23);case 284:return o(e);case 288:return c(e);case 285:case 286:return u(e.attributes);case 228:case 15:return f(e);case 207:return d(e,!1,!Ea(e.parent),23);case 219:return s(e);case 213:return i(e);case 217:return S(e);case 275:case 279:case 300:return n(e)}function n(T){if(!T.elements.length)return;const k=qa(T,19,t),w=qa(T,20,t);if(!(!k||!w||Uf(k.pos,w.pos,t)))return VQ(k,w,T,t,!1,!1)}function i(T){if(!T.arguments.length)return;const k=qa(T,21,t),w=qa(T,22,t);if(!(!k||!w||Uf(k.pos,w.pos,t)))return VQ(k,w,T,t,!1,!0)}function s(T){if(Cs(T.body)||l_(T.body)||Uf(T.body.getFullStart(),T.body.getEnd(),t))return;const k=Rc(T.body.getFullStart(),T.body.getEnd());return Jx(k,"code",Zu(T))}function o(T){const k=Rc(T.openingElement.getStart(t),T.closingElement.getEnd()),w=T.openingElement.tagName.getText(t),P="<"+w+">...";return Jx(k,"code",k,!1,P)}function c(T){const k=Rc(T.openingFragment.getStart(t),T.closingFragment.getEnd());return Jx(k,"code",k,!1,"<>...")}function u(T){if(T.properties.length!==0)return rR(T.getStart(t),T.getEnd(),"code")}function f(T){if(!(T.kind===15&&T.text.length===0))return rR(T.getStart(t),T.getEnd(),"code")}function g(T,k=19){return d(T,!1,!ju(T.parent)&&!Rs(T.parent),k)}function d(T,k=!1,w=!0,P=19,F=P===19?20:24){const J=qa(e,P,t),U=qa(e,F,t);return J&&U&&VQ(J,U,T,t,k,w)}function y(T){return T.length?Jx(vy(T),"code"):void 0}function S(T){if(Uf(T.getStart(),T.getEnd(),t))return;const k=Rc(T.getStart(),T.getEnd());return Jx(k,"code",Zu(T))}}function dYe(e,t,n){const i=mYe(e,t,n),s=qa(t,20,n);return i&&s&&VQ(i,s,e,n,e.kind!==219)}function VQ(e,t,n,i,s=!1,o=!0){const c=Rc(o?e.getFullStart():e.getStart(i),t.getEnd());return Jx(c,"code",Zu(n,i),s)}function Jx(e,t,n=e,i=!1,s="..."){return{textSpan:e,kind:t,hintSpan:n,bannerText:s,autoCollapse:i}}function mYe(e,t,n){if(Jre(e.parameters,n)){const i=qa(e,21,n);if(i)return i}return qa(t,19,n)}var hPe,gYe=Dt({"src/services/outliningElementsCollector.ts"(){qn(),hPe=/^#(end)?region(?:\s+(.*))?(?:\r)?$/}}),UQ={};Gc(UQ,{collectElements:()=>uYe});var hYe=Dt({"src/services/_namespaces/ts.OutliningElementsCollector.ts"(){gYe()}});function yYe(e,t,n,i){const s=xL(u_(t,n));if(vPe(s)){const o=vYe(s,e.getTypeChecker(),t,e,i);if(o)return o}return qQ(p.You_cannot_rename_this_element)}function vYe(e,t,n,i,s){const o=t.getSymbolAtLocation(e);if(!o){if(Ma(e)){const S=TL(e,t);if(S&&(S.flags&128||S.flags&1048576&&Wi(S.types,T=>!!(T.flags&128))))return Kfe(e.text,e.text,"string","",e,n)}else if(HH(e)){const S=jc(e);return Kfe(S,S,"label","",e,n)}return}const{declarations:c}=o;if(!c||c.length===0)return;if(c.some(S=>bYe(i,S)))return qQ(p.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(Ie(e)&&e.escapedText==="default"&&o.parent&&o.parent.flags&1536)return;if(Ma(e)&&N8(e))return s.allowRenameOfImportPath?TYe(e,n,o):void 0;const u=SYe(n,o,t,s);if(u)return qQ(u);const f=m0.getSymbolKind(t,o,e),g=pce(e)||Sf(e)&&e.parent.kind===167?yp(hp(e)):void 0,d=g||t.symbolToString(o),y=g||t.getFullyQualifiedName(o);return Kfe(d,y,f,m0.getSymbolModifiers(t,o),e,n)}function bYe(e,t){const n=t.getSourceFile();return e.isSourceFileDefaultLibrary(n)&&Zo(n.fileName,".d.ts")}function SYe(e,t,n,i){if(!i.providePrefixAndSuffixTextForRename&&t.flags&2097152){const c=t.declarations&&wn(t.declarations,u=>x_(u));c&&!c.propertyName&&(t=n.getAliasedSymbol(t))}const{declarations:s}=t;if(!s)return;const o=yPe(e.path);if(o===void 0)return ct(s,c=>sN(c.getSourceFile().path))?p.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(const c of s){const u=yPe(c.getSourceFile().path);if(u){const f=Math.min(o.length,u.length);for(let g=0;g<=f;g++)if(mu(o[g],u[g])!==0)return p.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}function yPe(e){const t=ul(e),n=t.lastIndexOf("node_modules");if(n!==-1)return t.slice(0,n+2)}function TYe(e,t,n){if(!Sl(e.text))return qQ(p.You_cannot_rename_a_module_via_a_global_import);const i=n.declarations&&wn(n.declarations,Ni);if(!i)return;const s=Yo(e.text,"/index")||Yo(e.text,"/index.js")?void 0:QK($u(i.fileName),"/index"),o=s===void 0?i.fileName:s,c=s===void 0?"module":"directory",u=e.text.lastIndexOf("/")+1,f=Wl(e.getStart(t)+1+u,e.text.length-u);return{canRename:!0,fileToRename:o,kind:c,displayName:o,fullDisplayName:e.text,kindModifiers:"",triggerSpan:f}}function Kfe(e,t,n,i,s,o){return{canRename:!0,fileToRename:void 0,kind:n,displayName:e,fullDisplayName:t,kindModifiers:i,triggerSpan:xYe(s,o)}}function qQ(e){return{canRename:!1,localizedErrorMessage:ds(e)}}function xYe(e,t){let n=e.getStart(t),i=e.getWidth(t);return Ma(e)&&(n+=1,i-=2),Wl(n,i)}function vPe(e){switch(e.kind){case 80:case 81:case 11:case 15:case 110:return!0;case 9:return yL(e);default:return!1}}var kYe=Dt({"src/services/rename.ts"(){qn()}}),nR={};Gc(nR,{getRenameInfo:()=>yYe,nodeIsEligibleForRename:()=>vPe});var CYe=Dt({"src/services/_namespaces/ts.Rename.ts"(){kYe()}});function EYe(e,t,n,i,s){const o=e.getTypeChecker(),c=kL(t,n);if(!c)return;const u=!!i&&i.kind==="characterTyped";if(u&&(Px(t,n,c)||l0(t,n)))return;const f=!!i&&i.kind==="invoked",g=VYe(c,n,t,o,f);if(!g)return;s.throwIfCancellationRequested();const d=PYe(g,o,t,c,u);return s.throwIfCancellationRequested(),d?o.runWithCancellationToken(s,y=>d.kind===0?PPe(d.candidates,d.resolvedSignature,g,t,y):qYe(d.symbol,g,t,y)):Ou(t)?wYe(g,e,s):void 0}function PYe({invocation:e,argumentCount:t},n,i,s,o){switch(e.kind){case 0:{if(o&&!DYe(s,e.node,i))return;const c=[],u=n.getResolvedSignatureForSignatureHelp(e.node,c,t);return c.length===0?void 0:{kind:0,candidates:c,resolvedSignature:u}}case 1:{const{called:c}=e;if(o&&!bPe(s,i,Ie(c)?c.parent:c))return;const u=rG(c,t,n);if(u.length!==0)return{kind:0,candidates:u,resolvedSignature:va(u)};const f=n.getSymbolAtLocation(c);return f&&{kind:1,symbol:f}}case 2:return{kind:0,candidates:[e.signature],resolvedSignature:e.signature};default:return E.assertNever(e)}}function DYe(e,t,n){if(!Jd(t))return!1;const i=t.getChildren(n);switch(e.kind){case 21:return bs(i,e);case 28:{const s=SL(e);return!!s&&bs(i,s)}case 30:return bPe(e,n,t.expression);default:return!1}}function wYe(e,t,n){if(e.invocation.kind===2)return;const i=CPe(e.invocation),s=Sn(i)?i.name.text:void 0,o=t.getTypeChecker();return s===void 0?void 0:Qa(t.getSourceFiles(),c=>Qa(c.getNamedDeclarations().get(s),u=>{const f=u.symbol&&o.getTypeOfSymbolAtLocation(u.symbol,u),g=f&&f.getCallSignatures();if(g&&g.length)return o.runWithCancellationToken(n,d=>PPe(g,g[0],e,c,d,!0))}))}function bPe(e,t,n){const i=e.getFullStart();let s=e.parent;for(;s;){const o=Yc(i,t,s,!0);if(o)return Pf(n,o);s=s.parent}return E.fail("Could not find preceding token")}function AYe(e,t,n,i){const s=TPe(e,t,n,i);return!s||s.isTypeParameterList||s.invocation.kind!==0?void 0:{invocation:s.invocation.node,argumentCount:s.argumentCount,argumentIndex:s.argumentIndex}}function SPe(e,t,n,i){const s=NYe(e,n,i);if(!s)return;const{list:o,argumentIndex:c}=s,u=BYe(i,o);c!==0&&E.assertLessThan(c,u);const f=zYe(o,n);return{list:o,argumentIndex:c,argumentCount:u,argumentsSpan:f}}function NYe(e,t,n){if(e.kind===30||e.kind===21)return{list:UYe(e.parent,e,t),argumentIndex:0};{const i=SL(e);return i&&{list:i,argumentIndex:jYe(n,i,e)}}}function TPe(e,t,n,i){const{parent:s}=e;if(Jd(s)){const o=s,c=SPe(e,t,n,i);if(!c)return;const{list:u,argumentIndex:f,argumentCount:g,argumentsSpan:d}=c;return{isTypeParameterList:!!s.typeArguments&&s.typeArguments.pos===u.pos,invocation:{kind:0,node:o},argumentsSpan:d,argumentIndex:f,argumentCount:g}}else{if(ex(e)&&o2(s))return HA(e,t,n)?tpe(s,0,n):void 0;if(tx(e)&&s.parent.kind===215){const o=s,c=o.parent;E.assert(o.kind===228);const u=HA(e,t,n)?0:1;return tpe(c,u,n)}else if(p3(s)&&o2(s.parent.parent)){const o=s,c=s.parent.parent;if(mO(e)&&!HA(e,t,n))return;const u=o.parent.templateSpans.indexOf(o),f=JYe(u,e,t,n);return tpe(c,f,n)}else if(Fu(s)){const o=s.attributes.pos,c=ca(n.text,s.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:s},argumentsSpan:Wl(o,c-o),argumentIndex:0,argumentCount:1}}else{const o=nG(e,n);if(o){const{called:c,nTypeArguments:u}=o,f={kind:1,called:c},g=Rc(c.getStart(n),e.end);return{isTypeParameterList:!0,invocation:f,argumentsSpan:g,argumentIndex:u,argumentCount:u+1}}return}}}function IYe(e,t,n,i){return FYe(e,t,n,i)||TPe(e,t,n,i)}function xPe(e){return Zr(e.parent)?xPe(e.parent):e}function epe(e){return Zr(e.left)?epe(e.left)+1:2}function FYe(e,t,n,i){const s=OYe(e);if(s===void 0)return;const o=LYe(s,n,t,i);if(o===void 0)return;const{contextualType:c,argumentIndex:u,argumentCount:f,argumentsSpan:g}=o,d=c.getNonNullableType(),y=d.symbol;if(y===void 0)return;const S=Do(d.getCallSignatures());return S===void 0?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:S,node:e,symbol:MYe(y)},argumentsSpan:g,argumentIndex:u,argumentCount:f}}function OYe(e){switch(e.kind){case 21:case 28:return e;default:return Pr(e.parent,t=>rs(t)?!0:Ea(t)||xp(t)||s2(t)?!1:"quit")}}function LYe(e,t,n,i){const{parent:s}=e;switch(s.kind){case 217:case 174:case 218:case 219:const o=SPe(e,n,t,i);if(!o)return;const{argumentIndex:c,argumentCount:u,argumentsSpan:f}=o,g=hc(s)?i.getContextualTypeForObjectLiteralElement(s):i.getContextualType(s);return g&&{contextualType:g,argumentIndex:c,argumentCount:u,argumentsSpan:f};case 226:{const d=xPe(s),y=i.getContextualType(d),S=e.kind===21?0:epe(s)-1,T=epe(d);return y&&{contextualType:y,argumentIndex:S,argumentCount:T,argumentsSpan:Zu(s)}}default:return}}function MYe(e){return e.name==="__type"&&Qa(e.declarations,t=>{var n;return Mm(t)?(n=Wn(t.parent,zd))==null?void 0:n.symbol:void 0})||e}function RYe(e,t){const n=t.getTypeAtLocation(e.expression);if(t.isTupleType(n)){const{elementFlags:i,fixedLength:s}=n.target;if(s===0)return 0;const o=vc(i,c=>!(c&1));return o<0?s:o}return 0}function jYe(e,t,n){return kPe(e,t,n)}function BYe(e,t){return kPe(e,t,void 0)}function kPe(e,t,n){const i=t.getChildren();let s=0,o=!1;for(const c of i){if(n&&c===n)return!o&&c.kind===28&&s++,s;if(gd(c)){s+=RYe(c,e),o=!0;continue}if(c.kind!==28){s++,o=!0;continue}if(o){o=!1;continue}s++}return n?s:i.length&&ka(i).kind===28?s+1:s}function JYe(e,t,n,i){return E.assert(n>=t.getStart(),"Assumed 'position' could not occur before node."),Yee(t)?HA(t,n,i)?0:e+2:e+1}function tpe(e,t,n){const i=ex(e.template)?1:e.template.templateSpans.length+1;return t!==0&&E.assertLessThan(t,i),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:WYe(e,n),argumentIndex:t,argumentCount:i}}function zYe(e,t){const n=e.getFullStart(),i=ca(t.text,e.getEnd(),!1);return Wl(n,i-n)}function WYe(e,t){const n=e.template,i=n.getStart();let s=n.getEnd();return n.kind===228&&ka(n.templateSpans).literal.getFullWidth()===0&&(s=ca(t.text,s,!1)),Wl(i,s-i)}function VYe(e,t,n,i,s){for(let o=e;!Ni(o)&&(s||!Cs(o));o=o.parent){E.assert(Pf(o.parent,o),"Not a subspan",()=>`Child: ${E.formatSyntaxKind(o.kind)}, parent: ${E.formatSyntaxKind(o.parent.kind)}`);const c=IYe(o,t,n,i);if(c)return c}}function UYe(e,t,n){const i=e.getChildren(n),s=i.indexOf(t);return E.assert(s>=0&&i.length>s+1),i[s+1]}function CPe(e){return e.kind===0?x5(e.node):e.called}function EPe(e){return e.kind===0?e.node:e.kind===1?e.called:e.node}function PPe(e,t,{isTypeParameterList:n,argumentCount:i,argumentsSpan:s,invocation:o,argumentIndex:c},u,f,g){var d;const y=EPe(o),S=o.kind===2?o.symbol:f.getSymbolAtLocation(CPe(o))||g&&((d=t.declaration)==null?void 0:d.symbol),T=S?nP(f,S,g?u:void 0,void 0):Ve,k=nr(e,U=>GYe(U,T,n,f,y,u));c!==0&&E.assertLessThan(c,i);let w=0,P=0;for(let U=0;U1)){let j=0;for(const re of $){if(re.isVariadic||re.parameters.length>=i){w=P+j;break}j++}}P+=$.length}E.assert(w!==-1);const F={items:j4(k,wo),applicableSpan:s,selectedItemIndex:w,argumentIndex:c,argumentCount:i},J=F.items[w];if(J.isVariadic){const U=vc(J.parameters,$=>!!$.isRest);-1DPe(y,n,i,s,c)),f=e.getDocumentationComment(n),g=e.getJsDocTags(n);return{isVariadic:!1,prefixDisplayParts:[...o,Tu(30)],suffixDisplayParts:[Tu(32)],separatorDisplayParts:rpe,parameters:u,documentation:f,tags:g}}function GYe(e,t,n,i,s,o){const c=(n?XYe:QYe)(e,i,s,o);return nr(c,({isVariadic:u,parameters:f,prefix:g,suffix:d})=>{const y=[...t,...g],S=[...d,...$Ye(e,s,i)],T=e.getDocumentationComment(i),k=e.getJsDocTags();return{isVariadic:u,prefixDisplayParts:y,suffixDisplayParts:S,separatorDisplayParts:rpe,parameters:f,documentation:T,tags:k}})}function $Ye(e,t,n){return by(i=>{i.writePunctuation(":"),i.writeSpace(" ");const s=n.getTypePredicateOfSignature(e);s?n.writeTypePredicate(s,t,void 0,i):n.writeType(n.getReturnTypeOfSignature(e),t,void 0,i)})}function XYe(e,t,n,i){const s=(e.target||e).typeParameters,o=b2(),c=(s||Ve).map(f=>DPe(f,t,n,i,o)),u=e.thisParameter?[t.symbolToParameterDeclaration(e.thisParameter,n,jN)]:[];return t.getExpandedParameters(e).map(f=>{const g=I.createNodeArray([...u,...nr(f,y=>t.symbolToParameterDeclaration(y,n,jN))]),d=by(y=>{o.writeList(2576,g,i,y)});return{isVariadic:!1,parameters:c,prefix:[Tu(30)],suffix:[Tu(32),...d]}})}function QYe(e,t,n,i){const s=b2(),o=by(f=>{if(e.typeParameters&&e.typeParameters.length){const g=I.createNodeArray(e.typeParameters.map(d=>t.typeParameterToDeclaration(d,n,jN)));s.writeList(53776,g,i,f)}}),c=t.getExpandedParameters(e),u=t.hasEffectiveRestParameter(e)?c.length===1?f=>!0:f=>{var g;return!!(f.length&&((g=Wn(f[f.length-1],wm))==null?void 0:g.links.checkFlags)&32768)}:f=>!1;return c.map(f=>({isVariadic:u(f),parameters:f.map(g=>YYe(g,t,n,i,s)),prefix:[...o,Tu(21)],suffix:[Tu(22)]}))}function YYe(e,t,n,i,s){const o=by(f=>{const g=t.symbolToParameterDeclaration(e,n,jN);s.writeNode(4,g,i,f)}),c=t.isOptionalParameter(e.valueDeclaration),u=wm(e)&&!!(e.links.checkFlags&32768);return{name:e.name,documentation:e.getDocumentationComment(t),displayParts:o,isOptional:c,isRest:u}}function DPe(e,t,n,i,s){const o=by(c=>{const u=t.typeParameterToDeclaration(e,n,jN);s.writeNode(4,u,i,c)});return{name:e.symbol.name,documentation:e.symbol.getDocumentationComment(t),displayParts:o,isOptional:!1,isRest:!1}}var jN,rpe,ZYe=Dt({"src/services/signatureHelp.ts"(){qn(),jN=70246400,rpe=[Tu(28),cc()]}}),BN={};Gc(BN,{getArgumentInfoForCompletions:()=>AYe,getSignatureHelpItems:()=>EYe});var KYe=Dt({"src/services/_namespaces/ts.SignatureHelp.ts"(){ZYe()}});function eZe(e,t){var n,i;let s={textSpan:Rc(t.getFullStart(),t.getEnd())},o=t;e:for(;;){const f=rZe(o);if(!f.length)break;for(let g=0;ge)break e;const T=Tm(m1(t.text,y.end));if(T&&T.kind===2&&u(T.pos,T.end),tZe(t,e,y)){if(az(y)&&po(o)&&!Uf(y.getStart(t),y.getEnd(),t)&&c(y.getStart(t),y.getEnd()),Cs(y)||p3(y)||tx(y)||mO(y)||d&&tx(d)||ml(y)&&ac(o)||qC(y)&&ml(o)||hi(y)&&qC(o)&&f.length===1||d2(y)||R1(y)||Qb(y)){o=y;break}if(p3(o)&&S&&q7(S)){const F=y.getFullStart()-2,J=S.getStart()+1;c(F,J)}const k=qC(y)&&nZe(d)&&iZe(S)&&!Uf(d.getStart(),S.getStart(),t);let w=k?d.getEnd():y.getStart();const P=k?S.getStart():sZe(t,y);if(sf(y)&&((n=y.jsDoc)!=null&&n.length)&&c(va(y.jsDoc).getStart(),P),qC(y)){const F=y.getChildren()[0];F&&sf(F)&&((i=F.jsDoc)!=null&&i.length)&&F.getStart()!==y.pos&&(w=Math.min(w,va(F.jsDoc).getStart()))}c(w,P),(aa(y)||AT(y))&&c(w+1,P-1),o=y;break}if(g===f.length-1)break e}}return s;function c(f,g){if(f!==g){const d=Rc(f,g);(!s||!b6(d,s.textSpan)&&wee(d,e))&&(s={textSpan:d,...s&&{parent:s}})}}function u(f,g){c(f,g);let d=f;for(;t.text.charCodeAt(d)===47;)d++;c(d,g)}}function tZe(e,t,n){return E.assert(n.pos<=t),tu===e.readonlyToken||u.kind===148||u===e.questionToken||u.kind===58),c=JN(o,({kind:u})=>u===23||u===168||u===24);return[n,zN(HQ(c,({kind:u})=>u===59)),s]}if(B_(e)){const n=JN(e.getChildren(),c=>c===e.name||bs(e.modifiers,c)),i=((t=n[0])==null?void 0:t.kind)===327?n[0]:void 0,s=i?n.slice(1):n,o=HQ(s,({kind:c})=>c===59);return i?[i,zN(o)]:o}if(rs(e)){const n=JN(e.getChildren(),s=>s===e.dotDotDotToken||s===e.name),i=JN(n,s=>s===n[0]||s===e.questionToken);return HQ(i,({kind:s})=>s===64)}return Ea(e)?HQ(e.getChildren(),({kind:n})=>n===64):e.getChildren()}function JN(e,t){const n=[];let i;for(const s of e)t(s)?(i=i||[],i.push(s)):(i&&(n.push(zN(i)),i=void 0),n.push(s));return i&&n.push(zN(i)),n}function HQ(e,t,n=!0){if(e.length<2)return e;const i=vc(e,t);if(i===-1)return e;const s=e.slice(0,i),o=e[i],c=ka(e),u=n&&c.kind===27,f=e.slice(i+1,u?e.length-1:void 0),g=hD([s.length?zN(s):void 0,o,f.length?zN(f):void 0]);return u?g.concat(c):g}function zN(e){return E.assertGreaterThanOrEqual(e.length,1),Fm(Jm.createSyntaxList(e),e[0].pos,ka(e).end)}function nZe(e){const t=e&&e.kind;return t===19||t===23||t===21||t===286}function iZe(e){const t=e&&e.kind;return t===20||t===24||t===22||t===287}function sZe(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 wPe,aZe=Dt({"src/services/smartSelection.ts"(){qn(),wPe=fd(sl,El)}}),GQ={};Gc(GQ,{getSmartSelectionRange:()=>eZe});var oZe=Dt({"src/services/_namespaces/ts.SmartSelectionRange.ts"(){aZe()}});function APe(e,t,n){const i=NPe(e,t,n);if(i!=="")return i;const s=kC(t);return s&32?Jo(t,231)?"local class":"class":s&384?"enum":s&524288?"type":s&64?"interface":s&262144?"type parameter":s&8?"enum member":s&2097152?"alias":s&1536?"module":i}function NPe(e,t,n){const i=e.getRootSymbols(t);if(i.length===1&&va(i).flags&8192&&e.getTypeOfSymbolAtLocation(t,n).getNonNullableType().getCallSignatures().length!==0)return"method";if(e.isUndefinedSymbol(t))return"var";if(e.isArgumentsSymbol(t))return"local var";if(n.kind===110&&ot(n)||BT(n))return"parameter";const s=kC(t);if(s&3)return SG(t)?"parameter":t.valueDeclaration&&tC(t.valueDeclaration)?"const":t.valueDeclaration&&d8(t.valueDeclaration)?"using":t.valueDeclaration&&p8(t.valueDeclaration)?"await using":rr(t.declarations,p5)?"let":OPe(t)?"local var":"var";if(s&16)return OPe(t)?"local function":"function";if(s&32768)return"getter";if(s&65536)return"setter";if(s&8192)return"method";if(s&16384)return"constructor";if(s&131072)return"index";if(s&4){if(s&33554432&&t.links.checkFlags&6){const o=rr(e.getRootSymbols(t),c=>{if(c.getFlags()&98311)return"property"});return o||(e.getTypeOfSymbolAtLocation(t,n).getCallSignatures().length?"method":"property")}return"property"}return""}function IPe(e){if(e.declarations&&e.declarations.length){const[t,...n]=e.declarations,i=mr(n)&&YL(t)&&ct(n,o=>!YL(o))?65536:0,s=Z3(t,i);if(s)return s.split(",")}return[]}function cZe(e,t){if(!t)return"";const n=new Set(IPe(t));if(t.flags&2097152){const i=e.getAliasedSymbol(t);i!==t&&rr(IPe(i),s=>{n.add(s)})}return t.flags&16777216&&n.add("optional"),n.size>0?gs(n.values()).join(","):""}function FPe(e,t,n,i,s,o,c,u){var f;const g=[];let d=[],y=[];const S=kC(t);let T=c&1?NPe(e,t,s):"",k=!1;const w=s.kind===110&&C5(s)||BT(s);let P,F,J=!1;if(s.kind===110&&!w)return{displayParts:[V_(110)],documentation:[],symbolKind:"primitive type",tags:void 0};if(T!==""||S&32||S&2097152){if(T==="getter"||T==="setter"){const oe=wn(t.declarations,Se=>Se.name===s);if(oe)switch(oe.kind){case 177:T="getter";break;case 178:T="setter";break;case 172:T="accessor";break;default:E.assertNever(oe)}else T="property"}let q;if(o??(o=w?e.getTypeAtLocation(s):e.getTypeOfSymbolAtLocation(t,s)),s.parent&&s.parent.kind===211){const oe=s.parent.name;(oe===s||oe&&oe.getFullWidth()===0)&&(s=s.parent)}let ee;if(Jd(s)?ee=s:(WH(s)||Q3(s)||s.parent&&(Fu(s.parent)||o2(s.parent))&&As(t.valueDeclaration))&&(ee=s.parent),ee){q=e.getResolvedSignature(ee);const oe=ee.kind===214||Rs(ee)&&ee.expression.kind===108,Se=oe?o.getConstructSignatures():o.getCallSignatures();if(q&&!bs(Se,q.target)&&!bs(Se,q)&&(q=Se.length?Se[0]:void 0),q){switch(oe&&S&32?(T="constructor",Y(o.symbol,T)):S&2097152?(T="alias",ue(T),g.push(cc()),oe&&(q.flags&4&&(g.push(V_(128)),g.push(cc())),g.push(V_(105)),g.push(cc())),R(t)):Y(t,T),T){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":g.push(Tu(59)),g.push(cc()),!(bn(o)&16)&&o.symbol&&(Nn(g,nP(e,o.symbol,i,void 0,5)),g.push(S6())),oe&&(q.flags&4&&(g.push(V_(128)),g.push(cc())),g.push(V_(105)),g.push(cc())),pe(q,Se,262144);break;default:pe(q,Se)}k=!0,J=Se.length>1}}else if(QH(s)&&!(S&98304)||s.kind===137&&s.parent.kind===176){const oe=s.parent;if(t.declarations&&wn(t.declarations,ae=>ae===(s.kind===137?oe.parent:oe))){const ae=oe.kind===176?o.getNonNullableType().getConstructSignatures():o.getNonNullableType().getCallSignatures();e.isImplementationOfOverload(oe)?q=ae[0]:q=e.getSignatureFromDeclaration(oe),oe.kind===176?(T="constructor",Y(o.symbol,T)):Y(oe.kind===179&&!(o.symbol.flags&2048||o.symbol.flags&4096)?o.symbol:t,T),q&&pe(q,ae),k=!0,J=ae.length>1}}}if(S&32&&!k&&!w&&(j(),Jo(t,231)?ue("local class"):g.push(V_(86)),g.push(cc()),R(t),H(t,n)),S&64&&c&2&&($(),g.push(V_(120)),g.push(cc()),R(t),H(t,n)),S&524288&&c&2&&($(),g.push(V_(156)),g.push(cc()),R(t),H(t,n),g.push(cc()),g.push(rP(64)),g.push(cc()),Nn(g,KA(e,s.parent&&Qg(s.parent)?e.getTypeAtLocation(s.parent):e.getDeclaredTypeOfSymbol(t),i,8388608))),S&384&&($(),ct(t.declarations,q=>L1(q)&&zv(q))&&(g.push(V_(87)),g.push(cc())),g.push(V_(94)),g.push(cc()),R(t)),S&1536&&!w){$();const q=Jo(t,267),ee=q&&q.name&&q.name.kind===80;g.push(V_(ee?145:144)),g.push(cc()),R(t)}if(S&262144&&c&2)if($(),g.push(Tu(21)),g.push(wf("type parameter")),g.push(Tu(22)),g.push(cc()),R(t),t.parent)re(),R(t.parent,i),H(t.parent,i);else{const q=Jo(t,168);if(q===void 0)return E.fail();const ee=q.parent;if(ee)if(As(ee)){re();const oe=e.getSignatureFromDeclaration(ee);ee.kind===180?(g.push(V_(105)),g.push(cc())):ee.kind!==179&&ee.name&&R(ee.symbol),Nn(g,kG(e,oe,n,32))}else qp(ee)&&(re(),g.push(V_(156)),g.push(cc()),R(ee.symbol),H(ee.symbol,n))}if(S&8){T="enum member",Y(t,"enum member");const q=(f=t.declarations)==null?void 0:f[0];if((q==null?void 0:q.kind)===306){const ee=e.getConstantValue(q);ee!==void 0&&(g.push(cc()),g.push(rP(64)),g.push(cc()),g.push(C_(Dte(ee),typeof ee=="number"?7:8)))}}if(t.flags&2097152){if($(),!k||d.length===0&&y.length===0){const q=e.getAliasedSymbol(t);if(q!==t&&q.declarations&&q.declarations.length>0){const ee=q.declarations[0],oe=us(ee);if(oe&&!k){const Se=l5(ee)&&Rn(ee,128),ae=t.name!=="default"&&!Se,K=FPe(e,q,wr(ee),ee,oe,o,c,ae?t:q);g.push(...K.displayParts),g.push(S6()),P=K.documentation,F=K.tags}else P=q.getContextualDocumentationComment(ee,e),F=q.getJsDocTags(e)}}if(t.declarations)switch(t.declarations[0].kind){case 270:g.push(V_(95)),g.push(cc()),g.push(V_(145));break;case 277:g.push(V_(95)),g.push(cc()),g.push(V_(t.declarations[0].isExportEquals?64:90));break;case 281:g.push(V_(95));break;default:g.push(V_(102))}g.push(cc()),R(t),rr(t.declarations,q=>{if(q.kind===271){const ee=q;if(C1(ee))g.push(cc()),g.push(rP(64)),g.push(cc()),g.push(V_(149)),g.push(Tu(21)),g.push(C_(jc(vE(ee)),8)),g.push(Tu(22));else{const oe=e.getSymbolAtLocation(ee.moduleReference);oe&&(g.push(cc()),g.push(rP(64)),g.push(cc()),R(oe,i))}return!0}})}if(!k)if(T!==""){if(o){if(w?($(),g.push(V_(110))):Y(t,T),T==="property"||T==="accessor"||T==="getter"||T==="setter"||T==="JSX attribute"||S&3||T==="local var"||T==="index"||T==="using"||T==="await using"||w){if(g.push(Tu(59)),g.push(cc()),o.symbol&&o.symbol.flags&262144&&T!=="index"){const q=by(ee=>{const oe=e.typeParameterToDeclaration(o,i,npe);U().writeNode(4,oe,wr(as(i)),ee)});Nn(g,q)}else Nn(g,KA(e,o,i));if(wm(t)&&t.links.target&&wm(t.links.target)&&t.links.target.links.tupleLabelDeclaration){const q=t.links.target.links.tupleLabelDeclaration;E.assertNode(q.name,Ie),g.push(cc()),g.push(Tu(21)),g.push(wf(on(q.name))),g.push(Tu(22))}}else if(S&16||S&8192||S&16384||S&131072||S&98304||T==="method"){const q=o.getNonNullableType().getCallSignatures();q.length&&(pe(q[0],q),J=q.length>1)}}}else T=APe(e,t,s);if(d.length===0&&!J&&(d=t.getContextualDocumentationComment(i,e)),d.length===0&&S&4&&t.parent&&t.declarations&&rr(t.parent.declarations,q=>q.kind===312))for(const q of t.declarations){if(!q.parent||q.parent.kind!==226)continue;const ee=e.getSymbolAtLocation(q.parent.right);if(ee&&(d=ee.getDocumentationComment(e),y=ee.getJsDocTags(e),d.length>0))break}if(d.length===0&&Ie(s)&&t.valueDeclaration&&Ea(t.valueDeclaration)){const q=t.valueDeclaration,ee=q.parent,oe=q.propertyName||q.name;if(Ie(oe)&&xp(ee)){const Se=hp(oe),ae=e.getTypeAtLocation(ee);d=Qa(ae.isUnion()?ae.types:[ae],K=>{const fe=K.getProperty(Se);return fe?fe.getDocumentationComment(e):void 0})||Ve}}return y.length===0&&!J&&(y=t.getContextualJsDocTags(i,e)),d.length===0&&P&&(d=P),y.length===0&&F&&(y=F),{displayParts:g,documentation:d,symbolKind:T,tags:y.length===0?void 0:y};function U(){return b2()}function $(){g.length&&g.push(S6()),j()}function j(){u&&(ue("alias"),g.push(cc()))}function re(){g.push(cc()),g.push(V_(103)),g.push(cc())}function R(q,ee){let oe;u&&q===t&&(q=u),T==="index"&&(oe=e.getIndexInfosOfIndexSymbol(q));let Se=[];q.flags&131072&&oe?(q.parent&&(Se=nP(e,q.parent)),Se.push(Tu(23)),oe.forEach((ae,K)=>{Se.push(...KA(e,ae.keyType)),K!==oe.length-1&&(Se.push(cc()),Se.push(Tu(52)),Se.push(cc()))}),Se.push(Tu(24))):Se=nP(e,q,ee||n,void 0,7),Nn(g,Se),t.flags&16777216&&g.push(Tu(58))}function Y(q,ee){$(),ee&&(ue(ee),q&&!ct(q.declarations,oe=>mo(oe)||(lo(oe)||kl(oe))&&!oe.name)&&(g.push(cc()),R(q)))}function ue(q){switch(q){case"var":case"function":case"let":case"const":case"constructor":case"using":case"await using":g.push(TG(q));return;default:g.push(Tu(21)),g.push(TG(q)),g.push(Tu(22));return}}function pe(q,ee,oe=0){Nn(g,kG(e,q,i,oe|32)),ee.length>1&&(g.push(cc()),g.push(Tu(21)),g.push(rP(40)),g.push(C_((ee.length-1).toString(),7)),g.push(cc()),g.push(wf(ee.length===2?"overload":"overloads")),g.push(Tu(22))),d=q.getDocumentationComment(e),y=q.getJsDocTags(),ee.length>1&&d.length===0&&y.length===0&&(d=ee[0].getDocumentationComment(e),y=ee[0].getJsDocTags().filter(Se=>Se.name!=="deprecated"))}function H(q,ee){const oe=by(Se=>{const ae=e.symbolToTypeParameterDeclarations(q,ee,npe);U().writeList(53776,ae,wr(as(ee)),Se)});Nn(g,oe)}}function lZe(e,t,n,i,s,o=aS(s),c){return FPe(e,t,n,i,s,void 0,o,c)}function OPe(e){return e.parent?!1:rr(e.declarations,t=>{if(t.kind===218)return!0;if(t.kind!==260&&t.kind!==262)return!1;for(let n=t.parent;!Vv(n);n=n.parent)if(n.kind===312||n.kind===268)return!1;return!0})}var npe,uZe=Dt({"src/services/symbolDisplay.ts"(){qn(),npe=70246400}}),m0={};Gc(m0,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>lZe,getSymbolKind:()=>APe,getSymbolModifiers:()=>cZe});var _Ze=Dt({"src/services/_namespaces/ts.SymbolDisplay.ts"(){uZe()}});function LPe(e){const t=e.__pos;return E.assert(typeof t=="number"),t}function ipe(e,t){E.assert(typeof t=="number"),e.__pos=t}function MPe(e){const t=e.__end;return E.assert(typeof t=="number"),t}function spe(e,t){E.assert(typeof t=="number"),e.__end=t}function RPe(e,t){return ca(e,t,!1,!0)}function fZe(e,t){let n=t;for(;n0?1:0;let S=K0(AE(e,g)+y,e);return S=RPe(e.text,S),K0(AE(e,S),e)}function ape(e,t,n){const{end:i}=t,{trailingTriviaOption:s}=n;if(s===2){const o=m1(e.text,i);if(o){const c=AE(e,t.end);for(const u of o){if(u.kind===2||AE(e,u.pos)>c)break;if(AE(e,u.end)>c)return ca(e.text,u.end,!0,!0)}}}}function j6(e,t,n){var i;const{end:s}=t,{trailingTriviaOption:o}=n;if(o===0)return s;if(o===1){const f=es(m1(e.text,s),_g(e.text,s)),g=(i=f==null?void 0:f[f.length-1])==null?void 0:i.end;return g||s}const c=ape(e,t,n);if(c)return c;const u=ca(e.text,s,!0);return u!==s&&(o===2||gu(e.text.charCodeAt(u-1)))?u:s}function $Q(e,t){return!!t&&!!e.parent&&(t.kind===28||t.kind===27&&e.parent.kind===210)}function pZe(e){return lo(e)||Xc(e)}function dZe(e){if(e.kind!==219)return e;const t=e.parent.kind===172?e.parent:e.parent.parent;return t.jsDoc=e.jsDoc,t}function mZe(e,t){if(e.kind===t.kind)switch(e.kind){case 348:{const n=e,i=t;return Ie(n.name)&&Ie(i.name)&&n.name.escapedText===i.name.escapedText?I.createJSDocParameterTag(void 0,i.name,!1,i.typeExpression,i.isNameFirst,n.comment):void 0}case 349:return I.createJSDocReturnTag(void 0,t.typeExpression,e.comment);case 351:return I.createJSDocTypeTag(void 0,t.typeExpression,e.comment)}}function ope(e,t){return ca(e.text,pS(e,t,{leadingTriviaOption:1}),!1,!0)}function gZe(e,t,n,i){const s=ope(e,i);if(n===void 0||Uf(j6(e,t,{}),s,e))return s;const o=Yc(i.getStart(e),e);if($Q(t,o)){const c=Yc(t.getStart(e),e);if($Q(n,c)){const u=ca(e.text,o.getEnd(),!0,!0);if(Uf(c.getStart(e),o.getStart(e),e))return gu(e.text.charCodeAt(u-1))?u-1:u;if(gu(e.text.charCodeAt(u)))return u}}return s}function hZe(e,t){const n=qa(e,19,t),i=qa(e,20,t);return[n==null?void 0:n.end,i==null?void 0:i.end]}function XQ(e){return ua(e)?e.properties:e.members}function cpe(e,t){for(let n=t.length-1;n>=0;n--){const{span:i,newText:s}=t[n];e=`${e.substring(0,i.start)}${s}${e.substring(bc(i))}`}return e}function yZe(e){return ca(e,0)===e.length}function QQ(e){const t=ur(e,QQ,zPe,vZe,QQ),n=ko(t)?t:Object.create(t);return Fm(n,LPe(e),MPe(e)),n}function vZe(e,t,n,i,s){const o=Dr(e,t,n,i,s);if(!o)return o;E.assert(e);const c=o===e?I.createNodeArray(o.slice(0)):o;return Fm(c,LPe(e),MPe(e)),c}function jPe(e){let t=0;const n=H8(e),i=K=>{K&&ipe(K,t)},s=K=>{K&&spe(K,t)},o=K=>{K&&ipe(K,t)},c=K=>{K&&spe(K,t)},u=K=>{K&&ipe(K,t)},f=K=>{K&&spe(K,t)};function g(K,fe){if(fe||!yZe(K)){t=n.getTextPos();let ke=0;for(;Xg(K.charCodeAt(K.length-ke-1));)ke++;t-=ke}}function d(K){n.write(K),g(K,!1)}function y(K){n.writeComment(K)}function S(K){n.writeKeyword(K),g(K,!1)}function T(K){n.writeOperator(K),g(K,!1)}function k(K){n.writePunctuation(K),g(K,!1)}function w(K){n.writeTrailingSemicolon(K),g(K,!1)}function P(K){n.writeParameter(K),g(K,!1)}function F(K){n.writeProperty(K),g(K,!1)}function J(K){n.writeSpace(K),g(K,!1)}function U(K){n.writeStringLiteral(K),g(K,!1)}function $(K,fe){n.writeSymbol(K,fe),g(K,!1)}function j(K){n.writeLine(K)}function re(){n.increaseIndent()}function R(){n.decreaseIndent()}function Y(){return n.getText()}function ue(K){n.rawWrite(K),g(K,!1)}function pe(K){n.writeLiteral(K),g(K,!0)}function H(){return n.getTextPos()}function q(){return n.getLine()}function ee(){return n.getColumn()}function oe(){return n.getIndent()}function Se(){return n.isAtStartOfLine()}function ae(){n.clear(),t=0}return{onBeforeEmitNode:i,onAfterEmitNode:s,onBeforeEmitNodeArray:o,onAfterEmitNodeArray:c,onBeforeEmitToken:u,onAfterEmitToken:f,write:d,writeComment:y,writeKeyword:S,writeOperator:T,writePunctuation:k,writeTrailingSemicolon:w,writeParameter:P,writeProperty:F,writeSpace:J,writeStringLiteral:U,writeSymbol:$,writeLine:j,increaseIndent:re,decreaseIndent:R,getText:Y,rawWrite:ue,writeLiteral:pe,getTextPos:H,getLine:q,getColumn:ee,getIndent:oe,isAtStartOfLine:Se,hasTrailingComment:()=>n.hasTrailingComment(),hasTrailingWhitespace:()=>n.hasTrailingWhitespace(),clear:ae}}function bZe(e){let t;for(const g of e.statements)if(zp(g))t=g;else break;let n=0;const i=e.text;if(t)return n=t.end,f(),n;const s=O7(i);s!==void 0&&(n=s.length,f());const o=_g(i,n);if(!o)return n;let c,u;for(const g of o){if(g.kind===3){if(o5(i,g.pos)){c={range:g,pinnedOrTripleSlash:!0};continue}}else if(mz(i,g.pos,g.end)){c={range:g,pinnedOrTripleSlash:!0};continue}if(c){if(c.pinnedOrTripleSlash)break;const d=e.getLineAndCharacterOfPosition(g.pos).line,y=e.getLineAndCharacterOfPosition(c.range.end).line;if(d>=y+2)break}if(e.statements.length){u===void 0&&(u=e.getLineAndCharacterOfPosition(e.statements[0].getStart()).line);const d=e.getLineAndCharacterOfPosition(g.end).line;if(u(e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine",e))(lpe||{}),upe=(e=>(e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include",e))(upe||{}),yP={leadingTriviaOption:0,trailingTriviaOption:0},JPe=class s0e{constructor(t,n){this.newLineCharacter=t,this.formatContext=n,this.changes=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(t){return new s0e(f0(t.host,t.formatContext.options),t.formatContext)}static with(t,n){const i=s0e.fromContext(t);return n(i),i.getChanges()}pushRaw(t,n){E.assertEqual(t.fileName,n.fileName);for(const i of n.textChanges)this.changes.push({kind:3,sourceFile:t,text:i.newText,range:wL(i.span)})}deleteRange(t,n){this.changes.push({kind:0,sourceFile:t,range:n})}delete(t,n){this.deletedNodes.push({sourceFile:t,node:n})}deleteNode(t,n,i={leadingTriviaOption:1}){this.deleteRange(t,WN(t,n,n,i))}deleteNodes(t,n,i={leadingTriviaOption:1},s){for(const o of n){const c=pS(t,o,i,s),u=j6(t,o,i);this.deleteRange(t,{pos:c,end:u}),s=!!ape(t,o,i)}}deleteModifier(t,n){this.deleteRange(t,{pos:n.getStart(t),end:ca(t.text,n.end,!0)})}deleteNodeRange(t,n,i,s={leadingTriviaOption:1}){const o=pS(t,n,s),c=j6(t,i,s);this.deleteRange(t,{pos:o,end:c})}deleteNodeRangeExcludingEnd(t,n,i,s={leadingTriviaOption:1}){const o=pS(t,n,s),c=i===void 0?t.text.length:pS(t,i,s);this.deleteRange(t,{pos:o,end:c})}replaceRange(t,n,i,s={}){this.changes.push({kind:1,sourceFile:t,range:n,options:s,node:i})}replaceNode(t,n,i,s=yP){this.replaceRange(t,WN(t,n,n,s),i,s)}replaceNodeRange(t,n,i,s,o=yP){this.replaceRange(t,WN(t,n,i,o),s,o)}replaceRangeWithNodes(t,n,i,s={}){this.changes.push({kind:2,sourceFile:t,range:n,options:s,nodes:i})}replaceNodeWithNodes(t,n,i,s=yP){this.replaceRangeWithNodes(t,WN(t,n,n,s),i,s)}replaceNodeWithText(t,n,i){this.replaceRangeWithText(t,WN(t,n,n,yP),i)}replaceNodeRangeWithNodes(t,n,i,s,o=yP){this.replaceRangeWithNodes(t,WN(t,n,i,o),s,o)}nodeHasTrailingComment(t,n,i=yP){return!!ape(t,n,i)}nextCommaToken(t,n){const i=x2(n,n.parent,t);return i&&i.kind===28?i:void 0}replacePropertyAssignment(t,n,i){const s=this.nextCommaToken(t,n)?"":","+this.newLineCharacter;this.replaceNode(t,n,i,{suffix:s})}insertNodeAt(t,n,i,s={}){this.replaceRange(t,Vf(n),i,s)}insertNodesAt(t,n,i,s={}){this.replaceRangeWithNodes(t,Vf(n),i,s)}insertNodeAtTopOfFile(t,n,i){this.insertAtTopOfFile(t,n,i)}insertNodesAtTopOfFile(t,n,i){this.insertAtTopOfFile(t,n,i)}insertAtTopOfFile(t,n,i){const s=bZe(t),o={prefix:s===0?void 0:this.newLineCharacter,suffix:(gu(t.text.charCodeAt(s))?"":this.newLineCharacter)+(i?this.newLineCharacter:"")};ts(n)?this.insertNodesAt(t,s,n,o):this.insertNodeAt(t,s,n,o)}insertNodesAtEndOfFile(t,n,i){this.insertAtEndOfFile(t,n,i)}insertAtEndOfFile(t,n,i){const s=t.end+1,o={prefix:this.newLineCharacter,suffix:this.newLineCharacter+(i?this.newLineCharacter:"")};this.insertNodesAt(t,s,n,o)}insertStatementsInNewFile(t,n,i){this.newFileChanges||(this.newFileChanges=yf()),this.newFileChanges.add(t,{oldFile:i,statements:n})}insertFirstParameter(t,n,i){const s=bl(n);s?this.insertNodeBefore(t,s,i):this.insertNodeAt(t,n.pos,i)}insertNodeBefore(t,n,i,s=!1,o={}){this.insertNodeAt(t,pS(t,n,o),i,this.getOptionsForInsertNodeBefore(n,i,s))}insertNodesBefore(t,n,i,s=!1,o={}){this.insertNodesAt(t,pS(t,n,o),i,this.getOptionsForInsertNodeBefore(n,va(i),s))}insertModifierAt(t,n,i,s={}){this.insertNodeAt(t,n,I.createToken(i),s)}insertModifierBefore(t,n,i){return this.insertModifierAt(t,i.getStart(t),n,{suffix:" "})}insertCommentBeforeLine(t,n,i,s){const o=K0(n,t),c=mce(t.text,o),u=BPe(t,c),f=h6(t,u?c:i),g=t.text.slice(o,c),d=`${u?"":this.newLineCharacter}//${s}${this.newLineCharacter}${g}`;this.insertText(t,f.getStart(t),d)}insertJsdocCommentBefore(t,n,i){const s=n.getStart(t);if(n.jsDoc)for(const u of n.jsDoc)this.deleteRange(t,{pos:Cp(u.getStart(t),t),end:j6(t,u,{})});const o=BL(t.text,s-1),c=t.text.slice(o,s);this.insertNodeAt(t,s,i,{suffix:this.newLineCharacter+c})}createJSDocText(t,n){const i=Zs(n.jsDoc,o=>ls(o.comment)?I.createJSDocText(o.comment):o.comment),s=Tm(n.jsDoc);return s&&Uf(s.pos,s.end,t)&&mr(i)===0?void 0:I.createNodeArray(Kj(i,I.createJSDocText(` +`)))}replaceJSDocComment(t,n,i){this.insertJsdocCommentBefore(t,dZe(n),I.createJSDocComment(this.createJSDocText(t,n),I.createNodeArray(i)))}addJSDocTags(t,n,i){const s=j4(n.jsDoc,c=>c.tags),o=i.filter(c=>!s.some((u,f)=>{const g=mZe(u,c);return g&&(s[f]=g),!!g}));this.replaceJSDocComment(t,n,[...s,...o])}filterJSDocTags(t,n,i){this.replaceJSDocComment(t,n,An(j4(n.jsDoc,s=>s.tags),i))}replaceRangeWithText(t,n,i){this.changes.push({kind:3,sourceFile:t,range:n,text:i})}insertText(t,n,i){this.replaceRangeWithText(t,Vf(n),i)}tryInsertTypeAnnotation(t,n,i){let s;if(As(n)){if(s=qa(n,22,t),!s){if(!mo(n))return!1;s=va(n.parameters)}}else s=(n.kind===260?n.exclamationToken:n.questionToken)??n.name;return this.insertNodeAt(t,s.end,i,{prefix:": "}),!0}tryInsertThisTypeAnnotation(t,n,i){const s=qa(n,21,t).getStart(t)+1,o=n.parameters.length?", ":"";this.insertNodeAt(t,s,i,{prefix:"this: ",suffix:o})}insertTypeParameters(t,n,i){const s=(qa(n,21,t)||va(n.parameters)).getStart(t);this.insertNodesAt(t,s,i,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(t,n,i){return Ei(t)||Tl(t)?{suffix:i?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:hi(t)?{suffix:", "}:rs(t)?rs(n)?{suffix:", "}:{}:aa(t)&&sl(t.parent)||sh(t)?{suffix:", "}:x_(t)?{suffix:","+(i?this.newLineCharacter:" ")}:E.failBadSyntaxKind(t)}insertNodeAtConstructorStart(t,n,i){const s=bl(n.body.statements);!s||!n.body.multiLine?this.replaceConstructorBody(t,n,[i,...n.body.statements]):this.insertNodeBefore(t,s,i)}insertNodeAtConstructorStartAfterSuperCall(t,n,i){const s=wn(n.body.statements,o=>Cl(o)&&Eb(o.expression));!s||!n.body.multiLine?this.replaceConstructorBody(t,n,[...n.body.statements,i]):this.insertNodeAfter(t,s,i)}insertNodeAtConstructorEnd(t,n,i){const s=Do(n.body.statements);!s||!n.body.multiLine?this.replaceConstructorBody(t,n,[...n.body.statements,i]):this.insertNodeAfter(t,s,i)}replaceConstructorBody(t,n,i){this.replaceNode(t,n.body,I.createBlock(i,!0))}insertNodeAtEndOfScope(t,n,i){const s=pS(t,n.getLastToken(),{});this.insertNodeAt(t,s,i,{prefix:gu(t.text.charCodeAt(n.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})}insertMemberAtStart(t,n,i){this.insertNodeAtStartWorker(t,n,i)}insertNodeAtObjectStart(t,n,i){this.insertNodeAtStartWorker(t,n,i)}insertNodeAtStartWorker(t,n,i){const s=this.guessIndentationFromExistingMembers(t,n)??this.computeIndentationForNewMember(t,n);this.insertNodeAt(t,XQ(n).pos,i,this.getInsertNodeAtStartInsertOptions(t,n,s))}guessIndentationFromExistingMembers(t,n){let i,s=n;for(const o of XQ(n)){if(tF(s,o,t))return;const c=o.getStart(t),u=ol.SmartIndenter.findFirstNonWhitespaceColumn(Cp(c,t),c,t,this.formatContext.options);if(i===void 0)i=u;else if(u!==i)return;s=o}return i}computeIndentationForNewMember(t,n){const i=n.getStart(t);return ol.SmartIndenter.findFirstNonWhitespaceColumn(Cp(i,t),i,t,this.formatContext.options)+(this.formatContext.options.indentSize??4)}getInsertNodeAtStartInsertOptions(t,n,i){const o=XQ(n).length===0,c=Vp(this.classesWithNodesInsertedAtStart,Oa(n),{node:n,sourceFile:t}),u=ua(n)&&(!mp(t)||!o),f=ua(n)&&mp(t)&&o&&!c;return{indentation:i,prefix:(f?",":"")+this.newLineCharacter,suffix:u?",":Bu(n)&&o?";":""}}insertNodeAfterComma(t,n,i){const s=this.insertNodeAfterWorker(t,this.nextCommaToken(t,n)||n,i);this.insertNodeAt(t,s,i,this.getInsertNodeAfterOptions(t,n))}insertNodeAfter(t,n,i){const s=this.insertNodeAfterWorker(t,n,i);this.insertNodeAt(t,s,i,this.getInsertNodeAfterOptions(t,n))}insertNodeAtEndOfList(t,n,i){this.insertNodeAt(t,n.end,i,{prefix:", "})}insertNodesAfter(t,n,i){const s=this.insertNodeAfterWorker(t,n,va(i));this.insertNodesAt(t,s,i,this.getInsertNodeAfterOptions(t,n))}insertNodeAfterWorker(t,n,i){return SZe(n,i)&&t.text.charCodeAt(n.end-1)!==59&&this.replaceRange(t,Vf(n.end),I.createToken(27)),j6(t,n,{})}getInsertNodeAfterOptions(t,n){const i=this.getInsertNodeAfterOptionsWorker(n);return{...i,prefix:n.end===t.end&&Ei(n)?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 E.assert(Ei(t)||X7(t)),{suffix:this.newLineCharacter}}}insertName(t,n,i){if(E.assert(!n.name),n.kind===219){const s=qa(n,39,t),o=qa(n,21,t);o?(this.insertNodesAt(t,o.getStart(t),[I.createToken(100),I.createIdentifier(i)],{joiner:" "}),uh(this,t,s)):(this.insertText(t,va(n.parameters).getStart(t),`function ${i}(`),this.replaceRange(t,s,I.createToken(22))),n.body.kind!==241&&(this.insertNodesAt(t,n.body.getStart(t),[I.createToken(19),I.createToken(107)],{joiner:" ",suffix:" "}),this.insertNodesAt(t,n.body.end,[I.createToken(27),I.createToken(20)],{joiner:" "}))}else{const s=qa(n,n.kind===218?100:86,t).end;this.insertNodeAt(t,s,I.createIdentifier(i),{prefix:" "})}}insertExportModifier(t,n){this.insertText(t,n.getStart(t),"export ")}insertImportSpecifierAtIndex(t,n,i,s){const o=i.elements[s-1];o?this.insertNodeInListAfter(t,o,n):this.insertNodeBefore(t,i.elements[0],n,!qf(i.elements[0].getStart(),i.parent.parent.getStart(),t))}insertNodeInListAfter(t,n,i,s=al.SmartIndenter.getContainingList(n,t)){if(!s){E.fail("node is not a list element");return}const o=Zk(s,n);if(o<0)return;const c=n.getEnd();if(o!==s.length-1){const u=Ui(t,n.end);if(u&&QQ(n,u)){const f=s[o+1],g=RPe(t.text,f.getFullStart()),d=`${Ws(u.kind)}${t.text.substring(u.end,g)}`;this.insertNodesAt(t,g,[i],{suffix:d})}}else{const u=n.getStart(t),f=Ep(u,t);let g,d=!1;if(s.length===1)g=28;else{const y=Qc(n.pos,t);g=QQ(n,y)?y.kind:28,d=Ep(s[o-1].getStart(t),t)!==f}if((fZe(t.text,n.end)||!qf(s.pos,s.end,t))&&(d=!0),d){this.replaceRange(t,Uf(c),I.createToken(g));const y=al.SmartIndenter.findFirstNonWhitespaceColumn(f,u,t,this.formatContext.options);let S=ca(t.text,c,!0,!1);for(;S!==c&&gu(t.text.charCodeAt(S-1));)S--;this.replaceRange(t,Uf(S),i,{indentation:y,prefix:this.newLineCharacter})}else this.replaceRange(t,Uf(c),i,{prefix:`${Ws(g)} `})}}parenthesizeExpression(t,n){this.replaceRange(t,jW(n),I.createParenthesizedExpression(n))}finishClassesWithNodesInsertedAtStart(){this.classesWithNodesInsertedAtStart.forEach(({node:t,sourceFile:n})=>{const[i,s]=hZe(t,n);if(i!==void 0&&s!==void 0){const o=YQ(t).length===0,c=qf(i,s,n);o&&c&&i!==s-1&&this.deleteRange(n,Uf(i,s-1)),c&&this.insertText(n,s-1,this.newLineCharacter)}})}finishDeleteDeclarations(){const t=new Set;for(const{sourceFile:n,node:i}of this.deletedNodes)this.deletedNodes.some(s=>s.sourceFile===n&&Voe(s.node,i))||(ts(i)?this.deleteRange(n,BW(n,i)):fpe.deleteDeclaration(this,t,n,i));t.forEach(n=>{const i=n.getSourceFile(),s=al.SmartIndenter.getContainingList(n,i);if(n!==ka(s))return;const o=ZI(s,c=>!t.has(c),s.length-2);o!==-1&&this.deleteRange(i,{pos:s[o].end,end:cpe(i,s[o+1])})})}getChanges(t){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();const n=KQ.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,t);return this.newFileChanges&&this.newFileChanges.forEach((i,s)=>{n.push(KQ.newFileChanges(s,i,this.newLineCharacter,this.formatContext))}),n}createNewFile(t,n,i){this.insertStatementsInNewFile(n,i,t)}},(e=>{function t(u,f,g,d){return Ri(U4(u,y=>y.sourceFile.path),y=>{const S=y[0].sourceFile,T=Bh(y,(w,P)=>w.range.pos-P.range.pos||w.range.end-P.range.end);for(let w=0;w`${JSON.stringify(T[w].range)} and ${JSON.stringify(T[w+1].range)}`);const k=Ri(T,w=>{const P=by(w.range),F=w.kind===1?wr(ic(w.node))??w.sourceFile:w.kind===2?wr(ic(w.nodes[0]))??w.sourceFile:w.sourceFile,J=s(w,F,S,f,g,d);if(!(P.length===J.length&&Dce(F.text,J,P.start)))return $A(P,J)});return k.length>0?{fileName:S.fileName,textChanges:k}:void 0})}e.getTextChangesFromChanges=t;function n(u,f,g,d){const y=i(bF(u),f,g,d);return{fileName:u,textChanges:[$A(Wl(0,0),y)],isNewFile:!0}}e.newFileChanges=n;function i(u,f,g,d){const y=Zs(f,k=>k.statements.map(w=>w===4?"":c(w,k.oldFile,g).text)).join(g),S=Hw("any file name",y,{languageVersion:99,jsDocParsingMode:1},!0,u),T=al.formatDocument(S,d);return lpe(y,T)+g}e.newFileChangesWorker=i;function s(u,f,g,d,y,S){var T;if(u.kind===0)return"";if(u.kind===3)return u.text;const{options:k={},range:{pos:w}}=u,P=U=>o(U,f,g,w,k,d,y,S),F=u.kind===2?u.nodes.map(U=>Nk(P(U),d)).join(((T=u.options)==null?void 0:T.joiner)||d):P(u.node),J=k.indentation!==void 0||Ep(w,f)===w?F:F.replace(/^\s+/,"");return(k.prefix||"")+J+(!k.suffix||Yo(J,k.suffix)?"":k.suffix)}function o(u,f,g,d,{indentation:y,prefix:S,delta:T},k,w,P){const{node:F,text:J}=c(u,f,k);P&&P(F,J);const U=rM(w,f),$=y!==void 0?y:al.SmartIndenter.getIndentation(d,g,U,S===k||Ep(d,f)===d);T===void 0&&(T=al.SmartIndenter.shouldIndentChildNode(U,u)&&U.indentSize||0);const j={text:J,getLineAndCharacterOfPosition(R){return Ha(this,R)}},re=al.formatNodeGivenIndentation(F,j,f.languageVariant,$,T,{...w,options:U});return lpe(J,re)}function c(u,f,g){const d=jPe(g),y=oN(g);return V1({newLine:y,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},d).writeNode(4,u,f,d),{text:d.getText(),node:ZQ(u)}}e.getNonformattedText=c})(KQ||(KQ={})),zPe={...z3,factory:gw(z3.factory.flags|1,z3.factory.baseFactory)},(e=>{function t(o,c,u,f){switch(f.kind){case 169:{const T=f.parent;po(T)&&T.parameters.length===1&&!qa(T,21,u)?o.replaceNodeWithText(u,f,"()"):UN(o,c,u,f);break}case 272:case 271:const g=u.imports.length&&f===va(u.imports).parent||f===wn(u.statements,Cb);uh(o,u,f,{leadingTriviaOption:g?0:sf(f)?2:3});break;case 208:const d=f.parent;d.kind===207&&f!==ka(d.elements)?uh(o,u,f):UN(o,c,u,f);break;case 260:s(o,c,u,f);break;case 168:UN(o,c,u,f);break;case 276:const S=f.parent;S.elements.length===1?i(o,u,S):UN(o,c,u,f);break;case 274:i(o,u,f);break;case 27:uh(o,u,f,{trailingTriviaOption:0});break;case 100:uh(o,u,f,{leadingTriviaOption:0});break;case 263:case 262:uh(o,u,f,{leadingTriviaOption:sf(f)?2:3});break;default:f.parent?Rm(f.parent)&&f.parent.name===f?n(o,u,f.parent):Rs(f.parent)&&bs(f.parent.arguments,f)?UN(o,c,u,f):uh(o,u,f):uh(o,u,f)}}e.deleteDeclaration=t;function n(o,c,u){if(!u.namedBindings)uh(o,c,u.parent);else{const f=u.name.getStart(c),g=Ui(c,u.name.end);if(g&&g.kind===28){const d=ca(c.text,g.end,!1,!0);o.deleteRange(c,{pos:f,end:d})}else uh(o,c,u.name)}}function i(o,c,u){if(u.parent.name){const f=E.checkDefined(Ui(c,u.pos-1));o.deleteRange(c,{pos:f.getStart(c),end:u.end})}else{const f=w1(u,272);uh(o,c,f)}}function s(o,c,u,f){const{parent:g}=f;if(g.kind===299){o.deleteNodeRange(u,qa(g,21,u),qa(g,22,u));return}if(g.declarations.length!==1){UN(o,c,u,f);return}const d=g.parent;switch(d.kind){case 250:case 249:o.replaceNode(u,f,I.createObjectLiteralExpression());break;case 248:uh(o,u,g);break;case 243:uh(o,u,d,{leadingTriviaOption:sf(d)?2:3});break;default:E.assertNever(d)}}})(fpe||(fpe={}))}}),Kr={};vl(Kr,{ChangeTracker:()=>JPe,LeadingTriviaOption:()=>upe,TrailingTriviaOption:()=>_pe,applyChanges:()=>lpe,assignPositionsToNode:()=>ZQ,createWriter:()=>jPe,deleteNode:()=>uh,isThisTypeAnnotatable:()=>pZe,isValidLocationToAddComment:()=>BPe});var xZe=wt({"src/services/_namespaces/ts.textChanges.ts"(){TZe()}}),ppe,dpe,kZe=wt({"src/services/formatting/formattingContext.ts"(){qn(),ppe=(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))(ppe||{}),dpe=class{constructor(e,t,n){this.sourceFile=e,this.formattingRequestKind=t,this.options=n}updateContext(e,t,n,i,s){this.currentTokenSpan=E.checkDefined(e),this.currentTokenParent=E.checkDefined(t),this.nextTokenSpan=E.checkDefined(n),this.nextTokenParent=E.checkDefined(i),this.contextNode=E.checkDefined(s),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){const 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){const t=this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line,n=this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line;return t===n}BlockIsOnOneLine(e){const t=qa(e,19,this.sourceFile),n=qa(e,20,this.sourceFile);if(t&&n){const i=this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line,s=this.sourceFile.getLineAndCharacterOfPosition(n.getStart(this.sourceFile)).line;return i===s}return!1}}}});function mpe(e,t,n,i,s){const o=t===1?VPe:WPe;o.setText(e),o.resetTokenState(n);let c=!0,u,f,g,d,y;const S=s({advance:T,readTokenInfo:j,readEOFTokenRange:R,isOnToken:Y,isOnEOF:ue,getCurrentLeadingTrivia:()=>u,lastTrailingTriviaWasNewLine:()=>c,skipToEndOf:H,skipToStartOf:q,getTokenFullStart:()=>(y==null?void 0:y.token.pos)??o.getTokenStart(),getStartPos:()=>(y==null?void 0:y.token.pos)??o.getTokenStart()});return y=void 0,o.setText(void 0),S;function T(){y=void 0,o.getTokenFullStart()!==n?c=!!f&&ka(f).kind===4:o.scan(),u=void 0,f=void 0;let oe=o.getTokenFullStart();for(;oe(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))(gpe||{}),hpe=(e=>(e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines",e))(hpe||{})}});function UPe(){const e=[];for(let re=0;re<=165;re++)re!==1&&e.push(re);function t(...re){return{tokens:e.filter(R=>!re.some(Y=>Y===R)),isSpecific:!1}}const n={tokens:e,isSpecific:!1},i=bP([...e,3]),s=bP([...e,1]),o=HPe(83,165),c=HPe(30,79),u=[103,104,165,130,142,152],f=[46,47,55,54],g=[9,10,80,21,23,19,110,105],d=[80,21,110,105],y=[80,22,24,105],S=[80,21,110,105],T=[80,22,24,105],k=[2,3],w=[80,...iM],P=i,F=bP([80,32,3,86,95,102]),J=bP([22,3,92,113,98,93,85]),U=[On("IgnoreBeforeComment",n,k,oR,1),On("IgnoreAfterLineComment",2,n,oR,1),On("NotSpaceBeforeColon",n,59,[Di,cR,XPe],16),On("SpaceAfterColon",59,n,[Di,cR,VZe],4),On("NoSpaceBeforeQuestionMark",n,58,[Di,cR,XPe],16),On("SpaceAfterQuestionMarkInConditionalOperator",58,n,[Di,AZe],4),On("NoSpaceAfterQuestionMark",58,n,[Di,wZe],16),On("NoSpaceBeforeDot",n,[25,29],[Di,rKe],16),On("NoSpaceAfterDot",[25,29],n,[Di],16),On("NoSpaceBetweenImportParenInImportType",102,21,[Di,zZe],16),On("NoSpaceAfterUnaryPrefixOperator",f,g,[Di,cR],16),On("NoSpaceAfterUnaryPreincrementOperator",46,d,[Di],16),On("NoSpaceAfterUnaryPredecrementOperator",47,S,[Di],16),On("NoSpaceBeforeUnaryPostincrementOperator",y,46,[Di,_De],16),On("NoSpaceBeforeUnaryPostdecrementOperator",T,47,[Di,_De],16),On("SpaceAfterPostincrementWhenFollowedByAdd",46,40,[Di,xy],4),On("SpaceAfterAddWhenFollowedByUnaryPlus",40,40,[Di,xy],4),On("SpaceAfterAddWhenFollowedByPreincrement",40,46,[Di,xy],4),On("SpaceAfterPostdecrementWhenFollowedBySubtract",47,41,[Di,xy],4),On("SpaceAfterSubtractWhenFollowedByUnaryMinus",41,41,[Di,xy],4),On("SpaceAfterSubtractWhenFollowedByPredecrement",41,47,[Di,xy],4),On("NoSpaceAfterCloseBrace",20,[28,27],[Di],16),On("NewLineBeforeCloseBraceInBlockContext",i,20,[YPe],8),On("SpaceAfterCloseBrace",20,t(22),[Di,FZe],4),On("SpaceBetweenCloseBraceAndElse",20,93,[Di],4),On("SpaceBetweenCloseBraceAndWhile",20,117,[Di],4),On("NoSpaceBetweenEmptyBraceBrackets",19,20,[Di,nDe],16),On("SpaceAfterConditionalClosingParen",22,23,[lR],4),On("NoSpaceBetweenFunctionKeywordAndStar",100,42,[eDe],16),On("SpaceAfterStarInGeneratorDeclaration",42,80,[eDe],4),On("SpaceAfterFunctionInFuncDecl",100,n,[mS],4),On("NewLineAfterOpenBraceInBlockContext",19,n,[YPe],8),On("SpaceAfterGetSetInMember",[139,153],80,[mS],4),On("NoSpaceBetweenYieldKeywordAndStar",127,42,[Di,uDe],16),On("SpaceBetweenYieldOrYieldStarAndOperand",[127,42],n,[Di,uDe],4),On("NoSpaceBetweenReturnAndSemicolon",107,27,[Di],16),On("SpaceAfterCertainKeywords",[115,111,105,91,107,114,135],n,[Di],4),On("SpaceAfterLetConstInVariableDeclaration",[121,87],n,[Di,HZe],4),On("NoSpaceBeforeOpenParenInFuncCall",n,21,[Di,MZe,RZe],16),On("SpaceBeforeBinaryKeywordOperator",n,u,[Di,xy],4),On("SpaceAfterBinaryKeywordOperator",u,n,[Di,xy],4),On("SpaceAfterVoidOperator",116,n,[Di,YZe],4),On("SpaceBetweenAsyncAndOpenParen",134,21,[JZe,Di],4),On("SpaceBetweenAsyncAndFunctionKeyword",134,[100,80],[Di],4),On("NoSpaceBetweenTagAndTemplateString",[80,22],[15,16],[Di],16),On("SpaceBeforeJsxAttribute",n,80,[WZe,Di],4),On("SpaceBeforeSlashInJsxOpeningElement",n,44,[oDe,Di],4),On("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",44,32,[oDe,Di],16),On("NoSpaceBeforeEqualInJsxAttribute",n,64,[sDe,Di],16),On("NoSpaceAfterEqualInJsxAttribute",64,n,[sDe,Di],16),On("NoSpaceBeforeJsxNamespaceColon",80,59,[aDe],16),On("NoSpaceAfterJsxNamespaceColon",59,80,[aDe],16),On("NoSpaceAfterModuleImport",[144,149],21,[Di],16),On("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],n,[Di],4),On("SpaceBeforeCertainTypeScriptKeywords",n,[96,119,161],[Di],4),On("SpaceAfterModuleName",11,19,[GZe],4),On("SpaceBeforeArrow",n,39,[Di],4),On("SpaceAfterArrow",39,n,[Di],4),On("NoSpaceAfterEllipsis",26,80,[Di],16),On("NoSpaceAfterOptionalParameters",58,[22,28],[Di,cR],16),On("NoSpaceBetweenEmptyInterfaceBraceBrackets",19,20,[Di,$Ze],16),On("NoSpaceBeforeOpenAngularBracket",w,30,[Di,uR],16),On("NoSpaceBetweenCloseParenAndAngularBracket",22,30,[Di,uR],16),On("NoSpaceAfterOpenAngularBracket",30,n,[Di,uR],16),On("NoSpaceBeforeCloseAngularBracket",n,32,[Di,uR],16),On("NoSpaceAfterCloseAngularBracket",32,[21,23,32,28],[Di,uR,IZe,QZe],16),On("SpaceBeforeAt",[22,80],60,[Di],4),On("NoSpaceAfterAt",60,n,[Di],16),On("SpaceAfterDecorator",n,[128,80,95,90,86,126,125,123,124,139,153,23,42],[qZe],4),On("NoSpaceBeforeNonNullAssertionOperator",n,54,[Di,ZZe],16),On("NoSpaceAfterNewKeywordOnConstructorSignature",105,21,[Di,XZe],16),On("SpaceLessThanAndNonJSXTypeAnnotation",30,30,[Di],4)],$=[On("SpaceAfterConstructor",137,21,[Nf("insertSpaceAfterConstructor"),Di],4),On("NoSpaceAfterConstructor",137,21,[im("insertSpaceAfterConstructor"),Di],16),On("SpaceAfterComma",28,n,[Nf("insertSpaceAfterCommaDelimiter"),Di,kpe,jZe,BZe],4),On("NoSpaceAfterComma",28,n,[im("insertSpaceAfterCommaDelimiter"),Di,kpe],16),On("SpaceAfterAnonymousFunctionKeyword",[100,42],21,[Nf("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),mS],4),On("NoSpaceAfterAnonymousFunctionKeyword",[100,42],21,[im("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),mS],16),On("SpaceAfterKeywordInControl",o,21,[Nf("insertSpaceAfterKeywordsInControlFlowStatements"),lR],4),On("NoSpaceAfterKeywordInControl",o,21,[im("insertSpaceAfterKeywordsInControlFlowStatements"),lR],16),On("SpaceAfterOpenParen",21,n,[Nf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Di],4),On("SpaceBeforeCloseParen",n,22,[Nf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Di],4),On("SpaceBetweenOpenParens",21,21,[Nf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Di],4),On("NoSpaceBetweenParens",21,22,[Di],16),On("NoSpaceAfterOpenParen",21,n,[im("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Di],16),On("NoSpaceBeforeCloseParen",n,22,[im("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Di],16),On("SpaceAfterOpenBracket",23,n,[Nf("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Di],4),On("SpaceBeforeCloseBracket",n,24,[Nf("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Di],4),On("NoSpaceBetweenBrackets",23,24,[Di],16),On("NoSpaceAfterOpenBracket",23,n,[im("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Di],16),On("NoSpaceBeforeCloseBracket",n,24,[im("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Di],16),On("SpaceAfterOpenBrace",19,n,[$Pe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),QPe],4),On("SpaceBeforeCloseBrace",n,20,[$Pe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),QPe],4),On("NoSpaceBetweenEmptyBraceBrackets",19,20,[Di,nDe],16),On("NoSpaceAfterOpenBrace",19,n,[ype("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Di],16),On("NoSpaceBeforeCloseBrace",n,20,[ype("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Di],16),On("SpaceBetweenEmptyBraceBrackets",19,20,[Nf("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),On("NoSpaceBetweenEmptyBraceBrackets",19,20,[ype("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),Di],16),On("SpaceAfterTemplateHeadAndMiddle",[16,17],n,[Nf("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),iDe],4,1),On("SpaceBeforeTemplateMiddleAndTail",n,[17,18],[Nf("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Di],4),On("NoSpaceAfterTemplateHeadAndMiddle",[16,17],n,[im("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),iDe],16,1),On("NoSpaceBeforeTemplateMiddleAndTail",n,[17,18],[im("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Di],16),On("SpaceAfterOpenBraceInJsxExpression",19,n,[Nf("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Di,tY],4),On("SpaceBeforeCloseBraceInJsxExpression",n,20,[Nf("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Di,tY],4),On("NoSpaceAfterOpenBraceInJsxExpression",19,n,[im("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Di,tY],16),On("NoSpaceBeforeCloseBraceInJsxExpression",n,20,[im("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Di,tY],16),On("SpaceAfterSemicolonInFor",27,n,[Nf("insertSpaceAfterSemicolonInForStatements"),Di,bpe],4),On("NoSpaceAfterSemicolonInFor",27,n,[im("insertSpaceAfterSemicolonInForStatements"),Di,bpe],16),On("SpaceBeforeBinaryOperator",n,c,[Nf("insertSpaceBeforeAndAfterBinaryOperators"),Di,xy],4),On("SpaceAfterBinaryOperator",c,n,[Nf("insertSpaceBeforeAndAfterBinaryOperators"),Di,xy],4),On("NoSpaceBeforeBinaryOperator",n,c,[im("insertSpaceBeforeAndAfterBinaryOperators"),Di,xy],16),On("NoSpaceAfterBinaryOperator",c,n,[im("insertSpaceBeforeAndAfterBinaryOperators"),Di,xy],16),On("SpaceBeforeOpenParenInFuncDecl",n,21,[Nf("insertSpaceBeforeFunctionParenthesis"),Di,mS],4),On("NoSpaceBeforeOpenParenInFuncDecl",n,21,[im("insertSpaceBeforeFunctionParenthesis"),Di,mS],16),On("NewLineBeforeOpenBraceInControl",J,19,[Nf("placeOpenBraceOnNewLineForControlBlocks"),lR,xpe],8,1),On("NewLineBeforeOpenBraceInFunction",P,19,[Nf("placeOpenBraceOnNewLineForFunctions"),mS,xpe],8,1),On("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",F,19,[Nf("placeOpenBraceOnNewLineForFunctions"),tDe,xpe],8,1),On("SpaceAfterTypeAssertion",32,n,[Nf("insertSpaceAfterTypeAssertion"),Di,Epe],4),On("NoSpaceAfterTypeAssertion",32,n,[im("insertSpaceAfterTypeAssertion"),Di,Epe],16),On("SpaceBeforeTypeAnnotation",n,[58,59],[Nf("insertSpaceBeforeTypeAnnotation"),Di,Spe],4),On("NoSpaceBeforeTypeAnnotation",n,[58,59],[im("insertSpaceBeforeTypeAnnotation"),Di,Spe],16),On("NoOptionalSemicolon",27,s,[GPe("semicolons","remove"),eKe],32),On("OptionalSemicolon",n,s,[GPe("semicolons","insert"),tKe],64)],j=[On("NoSpaceBeforeSemicolon",n,27,[Di],16),On("SpaceBeforeOpenBraceInControl",J,19,[vpe("placeOpenBraceOnNewLineForControlBlocks"),lR,Cpe,Tpe],4,1),On("SpaceBeforeOpenBraceInFunction",P,19,[vpe("placeOpenBraceOnNewLineForFunctions"),mS,eY,Cpe,Tpe],4,1),On("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",F,19,[vpe("placeOpenBraceOnNewLineForFunctions"),tDe,Cpe,Tpe],4,1),On("NoSpaceBeforeComma",n,28,[Di],16),On("NoSpaceBeforeOpenBracket",t(134,84),23,[Di],16),On("NoSpaceAfterCloseBracket",24,n,[Di,UZe],16),On("SpaceAfterSemicolon",27,n,[Di],4),On("SpaceBetweenForAndAwaitKeyword",99,135,[Di],4),On("SpaceBetweenStatements",[22,92,93,84],n,[Di,kpe,PZe],4),On("SpaceAfterTryCatchFinally",[113,85,98],19,[Di],4)];return[...U,...$,...j]}function On(e,t,n,i,s,o=0){return{leftTokenRange:qPe(t),rightTokenRange:qPe(n),rule:{debugName:e,context:i,action:s,flags:o}}}function bP(e){return{tokens:e,isSpecific:!0}}function qPe(e){return typeof e=="number"?bP([e]):ts(e)?bP(e):e}function HPe(e,t,n=[]){const i=[];for(let s=e;s<=t;s++)bs(n,s)||i.push(s);return bP(i)}function GPe(e,t){return n=>n.options&&n.options[e]===t}function Nf(e){return t=>t.options&&Za(t.options,e)&&!!t.options[e]}function ype(e){return t=>t.options&&Za(t.options,e)&&!t.options[e]}function im(e){return t=>!t.options||!Za(t.options,e)||!t.options[e]}function vpe(e){return t=>!t.options||!Za(t.options,e)||!t.options[e]||t.TokensAreOnSameLine()}function $Pe(e){return t=>!t.options||!Za(t.options,e)||!!t.options[e]}function bpe(e){return e.contextNode.kind===248}function PZe(e){return!bpe(e)}function xy(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 cR(e){return!xy(e)}function XPe(e){return!Spe(e)}function Spe(e){const t=e.contextNode.kind;return t===172||t===171||t===169||t===260||wT(t)}function DZe(e){return xs(e.contextNode)&&e.contextNode.questionToken}function wZe(e){return!DZe(e)}function AZe(e){return e.contextNode.kind===227||e.contextNode.kind===194}function Tpe(e){return e.TokensAreOnSameLine()||eY(e)}function QPe(e){return e.contextNode.kind===206||e.contextNode.kind===200||NZe(e)}function xpe(e){return eY(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function YPe(e){return ZPe(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function NZe(e){return ZPe(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function ZPe(e){return KPe(e.contextNode)}function eY(e){return KPe(e.nextTokenParent)}function KPe(e){if(rDe(e))return!0;switch(e.kind){case 241:case 269:case 210:case 268:return!0}return!1}function mS(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 IZe(e){return!mS(e)}function eDe(e){return e.contextNode.kind===262||e.contextNode.kind===218}function tDe(e){return rDe(e.contextNode)}function rDe(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 FZe(e){switch(e.currentTokenParent.kind){case 263:case 267:case 266:case 299:case 268:case 255:return!0;case 241:{const t=e.currentTokenParent.parent;if(!t||t.kind!==219&&t.kind!==218)return!0}}return!1}function lR(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 nDe(e){return e.contextNode.kind===210}function OZe(e){return e.contextNode.kind===213}function LZe(e){return e.contextNode.kind===214}function MZe(e){return OZe(e)||LZe(e)}function RZe(e){return e.currentTokenSpan.kind!==28}function jZe(e){return e.nextTokenSpan.kind!==24}function BZe(e){return e.nextTokenSpan.kind!==22}function JZe(e){return e.contextNode.kind===219}function zZe(e){return e.contextNode.kind===205}function Di(e){return e.TokensAreOnSameLine()&&e.contextNode.kind!==12}function iDe(e){return e.contextNode.kind!==12}function kpe(e){return e.contextNode.kind!==284&&e.contextNode.kind!==288}function tY(e){return e.contextNode.kind===294||e.contextNode.kind===293}function WZe(e){return e.nextTokenParent.kind===291||e.nextTokenParent.kind===295&&e.nextTokenParent.parent.kind===291}function sDe(e){return e.contextNode.kind===291}function VZe(e){return e.nextTokenParent.kind!==295}function aDe(e){return e.nextTokenParent.kind===295}function oDe(e){return e.contextNode.kind===285}function UZe(e){return!mS(e)&&!eY(e)}function qZe(e){return e.TokensAreOnSameLine()&&Vf(e.contextNode)&&cDe(e.currentTokenParent)&&!cDe(e.nextTokenParent)}function cDe(e){for(;e&&ot(e);)e=e.parent;return e&&e.kind===170}function HZe(e){return e.currentTokenParent.kind===261&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function Cpe(e){return e.formattingRequestKind!==2}function GZe(e){return e.contextNode.kind===267}function $Ze(e){return e.contextNode.kind===187}function XZe(e){return e.contextNode.kind===180}function lDe(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 uR(e){return lDe(e.currentTokenSpan,e.currentTokenParent)||lDe(e.nextTokenSpan,e.nextTokenParent)}function Epe(e){return e.contextNode.kind===216}function QZe(e){return!Epe(e)}function YZe(e){return e.currentTokenSpan.kind===116&&e.currentTokenParent.kind===222}function uDe(e){return e.contextNode.kind===229&&e.contextNode.expression!==void 0}function ZZe(e){return e.contextNode.kind===235}function _De(e){return!KZe(e)}function KZe(e){switch(e.contextNode.kind){case 245:case 248:case 249:case 250:case 246:case 247:return!0;default:return!1}}function eKe(e){let t=e.nextTokenSpan.kind,n=e.nextTokenSpan.pos;if(gC(t)){const o=e.nextTokenParent===e.currentTokenParent?x2(e.currentTokenParent,Pr(e.currentTokenParent,c=>!c.parent),e.sourceFile):e.nextTokenParent.getFirstToken(e.sourceFile);if(!o)return!0;t=o.kind,n=o.getStart(e.sourceFile)}const i=e.sourceFile.getLineAndCharacterOfPosition(e.currentTokenSpan.pos).line,s=e.sourceFile.getLineAndCharacterOfPosition(n).line;return i===s?t===20||t===1:t===240||t===27?!1:e.contextNode.kind===264||e.contextNode.kind===265?!B_(e.currentTokenParent)||!!e.currentTokenParent.type||t!==21:xs(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 tKe(e){return GL(e.currentTokenSpan.end,e.currentTokenParent,e.sourceFile)}function rKe(e){return!Sn(e.contextNode)||!j_(e.contextNode.expression)||e.contextNode.expression.getText().includes(".")}var nKe=wt({"src/services/formatting/rules.ts"(){qn(),GN()}});function iKe(e,t){return{options:e,getRules:sKe(),host:t}}function sKe(){return Ppe===void 0&&(Ppe=oKe(UPe())),Ppe}function aKe(e){let t=0;return e&1&&(t|=28),e&2&&(t|=96),e&28&&(t|=28),e&96&&(t|=96),t}function oKe(e){const t=cKe(e);return n=>{const i=t[fDe(n.currentTokenSpan.kind,n.nextTokenSpan.kind)];if(i){const s=[];let o=0;for(const c of i){const u=~aKe(o);c.action&u&&Wi(c.context,f=>f(n))&&(s.push(c),o|=c.action)}if(s.length)return s}}}function cKe(e){const t=new Array(rY*rY),n=new Array(t.length);for(const i of e){const s=i.leftTokenRange.isSpecific&&i.rightTokenRange.isSpecific;for(const o of i.leftTokenRange.tokens)for(const c of i.rightTokenRange.tokens){const u=fDe(o,c);let f=t[u];f===void 0&&(f=t[u]=[]),lKe(f,i.rule,s,n,u)}}return t}function fDe(e,t){return E.assert(e<=165&&t<=165,"Must compute formatting context from tokens"),e*rY+t}function lKe(e,t,n,i,s){const o=t.action&3?n?0:SP.StopRulesAny:t.context!==oR?n?SP.ContextRulesSpecific:SP.ContextRulesAny:n?SP.NoContextRulesSpecific:SP.NoContextRulesAny,c=i[s]||0;e.splice(uKe(c,o),0,t),i[s]=_Ke(c,o)}function uKe(e,t){let n=0;for(let i=0;i<=t;i+=B6)n+=e&_R,e>>=B6;return n}function _Ke(e,t){const n=(e>>t&_R)+1;return E.assert((n&_R)===n,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),e&~(_R<(e[e.StopRulesSpecific=0]="StopRulesSpecific",e[e.StopRulesAny=B6*1]="StopRulesAny",e[e.ContextRulesSpecific=B6*2]="ContextRulesSpecific",e[e.ContextRulesAny=B6*3]="ContextRulesAny",e[e.NoContextRulesSpecific=B6*4]="NoContextRulesSpecific",e[e.NoContextRulesAny=B6*5]="NoContextRulesAny",e))(SP||{})}});function nY(e,t,n){const i={pos:e,end:t,kind:n};return E.isDebugging&&Object.defineProperty(i,"__debugKind",{get:()=>E.formatSyntaxKind(n)}),i}function pKe(e,t,n){const i=t.getLineAndCharacterOfPosition(e).line;if(i===0)return[];let s=l8(i,t);for(;Jd(t.text.charCodeAt(s));)s--;gu(t.text.charCodeAt(s))&&s--;const o={pos:ey(i-1,t),end:s+1};return fR(o,t,n,2)}function dKe(e,t,n){const i=Dpe(e,27,t);return pDe(wpe(i),t,n,3)}function mKe(e,t,n){const i=Dpe(e,19,t);if(!i)return[];const s=i.parent,o=wpe(s),c={pos:Ep(o.getStart(t),t),end:e};return fR(c,t,n,4)}function gKe(e,t,n){const i=Dpe(e,20,t);return pDe(wpe(i),t,n,5)}function hKe(e,t){const n={pos:0,end:e.text.length};return fR(n,e,t,0)}function yKe(e,t,n,i){const s={pos:Ep(e,n),end:t};return fR(s,n,i,1)}function Dpe(e,t,n){const i=Qc(e,n);return i&&i.kind===t&&e===i.getEnd()?i:void 0}function wpe(e){let t=e;for(;t&&t.parent&&t.parent.end===e.end&&!vKe(t.parent,t);)t=t.parent;return t}function vKe(e,t){switch(e.kind){case 263:case 264:return Df(e.members,t);case 267:const n=e.body;return!!n&&n.kind===268&&Df(n.statements,t);case 312:case 241:case 268:return Df(e.statements,t);case 299:return Df(e.block.statements,t)}return!1}function bKe(e,t){return n(t);function n(i){const s=Ss(i,o=>KH(o.getStart(t),o.end,e)&&o);if(s){const o=n(s);if(o)return o}return i}}function SKe(e,t){if(!e.length)return s;const n=e.filter(o=>Z3(t,o.start,o.start+o.length)).sort((o,c)=>o.start-c.start);if(!n.length)return s;let i=0;return o=>{for(;;){if(i>=n.length)return!1;const c=n[i];if(o.end<=c.start)return!1;if(xL(o.pos,o.end,c.start,c.start+c.length))return!0;i++}};function s(){return!1}}function TKe(e,t,n){const i=e.getStart(n);if(i===t.pos&&e.end===t.end)return i;const s=Qc(t.pos,n);return!s||s.end>=t.pos?e.pos:s.end}function xKe(e,t,n){let i=-1,s;for(;e;){const o=n.getLineAndCharacterOfPosition(e.getStart(n)).line;if(i!==-1&&o!==i)break;if(sm.shouldIndentChildNode(t,e,s,n))return t.indentSize;i=o,s=e,e=e.parent}return 0}function kKe(e,t,n,i,s,o){const c={pos:e.pos,end:e.end};return mpe(t.text,n,c.pos,c.end,u=>dDe(c,e,i,s,u,o,1,f=>!1,t))}function pDe(e,t,n,i){if(!e)return[];const s={pos:Ep(e.getStart(t),t),end:e.end};return fR(s,t,n,i)}function fR(e,t,n,i){const s=bKe(e,t);return mpe(t.text,t.languageVariant,TKe(s,e,t),e.end,o=>dDe(e,s,sm.getIndentationForNode(s,e,t,n.options),xKe(s,n.options,t),o,n,i,SKe(t.parseDiagnostics,e),t))}function dDe(e,t,n,i,s,{options:o,getRules:c,host:u},f,g,d){var y;const S=new dpe(d,f,o);let T,k,w,P,F,J=-1;const U=[];if(s.advance(),s.isOnToken()){const ge=d.getLineAndCharacterOfPosition(t.getStart(d)).line;let Fe=ge;Vf(t)&&(Fe=d.getLineAndCharacterOfPosition(yz(t,d)).line),ue(t,t,ge,Fe,n,i)}const $=s.getCurrentLeadingTrivia();if($){const ge=sm.nodeWillIndentChild(o,t,void 0,d,!1)?n+o.indentSize:n;pe($,ge,!0,Fe=>{q(Fe,d.getLineAndCharacterOfPosition(Fe.pos),t,t,void 0),oe(Fe.pos,ge,!1)}),o.trimTrailingWhitespace!==!1&&Oe($)}if(k&&s.getTokenFullStart()>=e.end){const ge=s.isOnEOF()?s.readEOFTokenRange():s.isOnToken()?s.readTokenInfo(t).token:void 0;if(ge&&ge.pos===T){const Fe=((y=Qc(ge.end,d,t))==null?void 0:y.parent)||w;ee(ge,d.getLineAndCharacterOfPosition(ge.pos).line,Fe,k,P,w,Fe,void 0)}}return U;function j(ge,Fe,$e,Pt,at){if(Z3(Pt,ge,Fe)||UA(Pt,ge,Fe)){if(at!==-1)return at}else{const Je=d.getLineAndCharacterOfPosition(ge).line,pt=Ep(ge,d),zt=sm.findFirstNonWhitespaceColumn(pt,ge,d,o);if(Je!==$e||ge===zt){const Vt=sm.getBaseIndentation(o);return Vt>zt?Vt:zt}}return-1}function re(ge,Fe,$e,Pt,at,Je){const pt=sm.shouldIndentChildNode(o,ge)?o.indentSize:0;return Je===Fe?{indentation:Fe===F?J:at.getIndentation(),delta:Math.min(o.indentSize,at.getDelta(ge)+pt)}:$e===-1?ge.kind===21&&Fe===F?{indentation:J,delta:at.getDelta(ge)}:sm.childStartsOnTheSameLineWithElseInIfStatement(Pt,ge,Fe,d)||sm.childIsUnindentedBranchOfConditionalExpression(Pt,ge,Fe,d)||sm.argumentStartsOnSameLineAsPreviousArgument(Pt,ge,Fe,d)?{indentation:at.getIndentation(),delta:pt}:{indentation:at.getIndentation()+at.getDelta(ge),delta:pt}:{indentation:$e,delta:pt}}function R(ge){if($p(ge)){const Fe=wn(ge.modifiers,ta,vc(ge.modifiers,ql));if(Fe)return Fe.kind}switch(ge.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(ge.asteriskToken)return 42;case 172:case 169:const Fe=us(ge);if(Fe)return Fe.kind}}function Y(ge,Fe,$e,Pt){return{getIndentationForComment:(pt,zt,Vt)=>{switch(pt){case 20:case 24:case 22:return $e+Je(Vt)}return zt!==-1?zt:$e},getIndentationForToken:(pt,zt,Vt,hr)=>!hr&&at(pt,zt,Vt)?$e+Je(Vt):$e,getIndentation:()=>$e,getDelta:Je,recomputeIndentation:(pt,zt)=>{sm.shouldIndentChildNode(o,zt,ge,d)&&($e+=pt?o.indentSize:-o.indentSize,Pt=sm.shouldIndentChildNode(o,ge)?o.indentSize:0)}};function at(pt,zt,Vt){switch(zt){case 19:case 20:case 22:case 93:case 117:case 60:return!1;case 44:case 32:switch(Vt.kind){case 286:case 287:case 285:return!1}break;case 23:case 24:if(Vt.kind!==200)return!1;break}return Fe!==pt&&!(Vf(ge)&&zt===R(ge))}function Je(pt){return sm.nodeWillIndentChild(o,ge,pt,d,!0)?Pt:0}}function ue(ge,Fe,$e,Pt,at,Je){if(!Z3(e,ge.getStart(d),ge.getEnd()))return;const pt=Y(ge,$e,at,Je);let zt=Fe;for(Ss(ge,tr=>{Vt(tr,-1,ge,pt,$e,Pt,!1)},tr=>{hr(tr,ge,$e,pt)});s.isOnToken()&&s.getTokenFullStart()Math.min(ge.end,e.end))break;Lr(tr,ge,pt,ge)}function Vt(tr,jt,Rt,Kn,Ji,yi,os,yr){if(E.assert(!xo(tr)),_c(tr)||Ete(Rt,tr))return jt;const _i=tr.getStart(d),ln=d.getLineAndCharacterOfPosition(_i).line;let Ht=ln;Vf(tr)&&(Ht=d.getLineAndCharacterOfPosition(yz(tr,d)).line);let Ue=-1;if(os&&Df(e,Rt)&&(Ue=j(_i,tr.end,Ji,e,jt),Ue!==-1&&(jt=Ue)),!Z3(e,tr.pos,tr.end))return tr.ende.end)return jt;if(Hn.token.end>_i){Hn.token.pos>_i&&s.skipToStartOf(tr);break}Lr(Hn,ge,Kn,ge)}if(!s.isOnToken()||s.getTokenFullStart()>=e.end)return jt;if(PT(tr)){const Hn=s.readTokenInfo(tr);if(tr.kind!==12)return E.assert(Hn.token.end===tr.end,"Token end is child end"),Lr(Hn,ge,Kn,tr),jt}const Et=tr.kind===170?ln:yi,fr=re(tr,ln,Ue,ge,Kn,Et);return ue(tr,zt,ln,Ht,fr.indentation,fr.delta),zt=ge,yr&&Rt.kind===209&&jt===-1&&(jt=fr.indentation),jt}function hr(tr,jt,Rt,Kn){E.assert(Mv(tr)),E.assert(!xo(tr));const Ji=CKe(jt,tr);let yi=Kn,os=Rt;if(!Z3(e,tr.pos,tr.end)){tr.endtr.pos)break;if(ln.token.kind===Ji){os=d.getLineAndCharacterOfPosition(ln.token.pos).line,Lr(ln,jt,Kn,jt);let Ht;if(J!==-1)Ht=J;else{const Ue=Ep(ln.token.pos,d);Ht=sm.findFirstNonWhitespaceColumn(Ue,ln.token.pos,d,o)}yi=Y(jt,Rt,Ht,o.indentSize)}else Lr(ln,jt,Kn,jt)}let yr=-1;for(let ln=0;lnoe(fr.pos,Et,!1))}Ht!==-1&&Ue&&(oe(tr.token.pos,Ht,yr===1),F=ln.line,J=Ht)}s.advance(),zt=jt}}function pe(ge,Fe,$e,Pt){for(const at of ge){const Je=Df(e,at);switch(at.kind){case 3:Je&&K(at,Fe,!$e),$e=!1;break;case 2:$e&&Je&&Pt(at),$e=!1;break;case 4:$e=!0;break}}return $e}function H(ge,Fe,$e,Pt){for(const at of ge)if(NL(at.kind)&&Df(e,at)){const Je=d.getLineAndCharacterOfPosition(at.pos);q(at,Je,Fe,$e,Pt)}}function q(ge,Fe,$e,Pt,at){const Je=g(ge);let pt=0;if(!Je)if(k)pt=ee(ge,Fe.line,$e,k,P,w,Pt,at);else{const zt=d.getLineAndCharacterOfPosition(e.pos);fe(zt.line,Fe.line)}return k=ge,T=ge.end,w=$e,P=Fe.line,pt}function ee(ge,Fe,$e,Pt,at,Je,pt,zt){S.updateContext(Pt,Je,ge,$e,pt);const Vt=c(S);let hr=S.options.trimTrailingWhitespace!==!1,Lr=0;return Vt?YI(Vt,tr=>{if(Lr=ft(tr,Pt,at,ge,Fe),zt)switch(Lr){case 2:$e.getStart(d)===ge.pos&&zt.recomputeIndentation(!1,pt);break;case 1:$e.getStart(d)===ge.pos&&zt.recomputeIndentation(!0,pt);break;default:E.assert(Lr===0)}hr=hr&&!(tr.action&16)&&tr.flags!==1}):hr=hr&&ge.kind!==1,Fe!==at&&hr&&fe(at,Fe,Pt),Lr}function oe(ge,Fe,$e){const Pt=Ape(Fe,o);if($e)xe(ge,0,Pt);else{const at=d.getLineAndCharacterOfPosition(ge),Je=ey(at.line,d);(Fe!==Se(Je,at.character)||ae(Pt,Je))&&xe(Je,at.character,Pt)}}function Se(ge,Fe){let $e=0;for(let Pt=0;Pt0){const yi=Ape(Ji,o);xe(Rt,Kn.character,yi)}else be(Rt,Kn.character)}}function fe(ge,Fe,$e){for(let Pt=ge;PtJe)continue;const pt=ke(at,Je);pt!==-1&&(E.assert(pt===at||!Jd(d.text.charCodeAt(pt-1))),be(pt,Je+1-pt))}}function ke(ge,Fe){let $e=Fe;for(;$e>=ge&&Jd(d.text.charCodeAt($e));)$e--;return $e!==Fe?$e+1:-1}function Oe(ge){let Fe=k?k.end:e.pos;for(const $e of ge)NL($e.kind)&&(Fe<$e.pos&&me(Fe,$e.pos-1,k),Fe=$e.end+1);FeVA(g,t)||t===g.end&&(g.kind===2||t===e.getFullWidth()))}function CKe(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 EKe(e){switch(e){case 21:return 22;case 30:return 32;case 19:return 20}return 0}function Ape(e,t){if((!iY||iY.tabSize!==t.tabSize||iY.indentSize!==t.indentSize)&&(iY={tabSize:t.tabSize,indentSize:t.indentSize},qN=HN=void 0),t.convertTabsToSpaces){let i;const s=Math.floor(e/t.indentSize),o=e%t.indentSize;return HN||(HN=[]),HN[s]===void 0?(i=QA(" ",t.indentSize*s),HN[s]=i):i=HN[s],o?i+QA(" ",o):i}else{const i=Math.floor(e/t.tabSize),s=e-i*t.tabSize;let o;return qN||(qN=[]),qN[i]===void 0?qN[i]=o=QA(" ",i):o=qN[i],s?o+QA(" ",s):o}}var iY,qN,HN,PKe=wt({"src/services/formatting/formatting.ts"(){qn(),GN()}}),sm,DKe=wt({"src/services/formatting/smartIndenter.ts"(){qn(),GN(),(e=>{let t;(K=>{K[K.Unknown=-1]="Unknown"})(t||(t={}));function n(K,fe,ke,Oe=!1){if(K>fe.text.length)return u(ke);if(ke.indentStyle===0)return 0;const me=Qc(K,fe,void 0,!0),be=mDe(fe,K,me||null);if(be&&be.kind===3)return i(fe,K,ke,be);if(!me)return u(ke);if(aG(me.kind)&&me.getStart(fe)<=K&&K=0),me<=be)return q(ey(be,K),fe,K,ke);const xe=ey(me,K),{column:De,character:ft}=H(xe,fe,K,ke);return De===0?De:K.text.charCodeAt(xe+ft)===42?De-1:De}function s(K,fe,ke){let Oe=fe;for(;Oe>0;){const be=K.text.charCodeAt(Oe);if(!Xg(be))break;Oe--}const me=Ep(Oe,K);return q(me,Oe,K,ke)}function o(K,fe,ke,Oe,me,be){let xe,De=ke;for(;De;){if(eG(De,fe,K)&&Se(be,De,xe,K,!0)){const ge=k(De,K),Fe=T(ke,De,Oe,K),$e=Fe!==0?me&&Fe===2?be.indentSize:0:Oe!==ge.line?be.indentSize:0;return f(De,ge,void 0,$e,K,!0,be)}const ft=Y(De,K,be,!0);if(ft!==-1)return ft;xe=De,De=De.parent}return u(be)}function c(K,fe,ke,Oe){const me=ke.getLineAndCharacterOfPosition(K.getStart(ke));return f(K,me,fe,0,ke,!1,Oe)}e.getIndentationForNode=c;function u(K){return K.baseIndentSize||0}e.getBaseIndentation=u;function f(K,fe,ke,Oe,me,be,xe){var De;let ft=K.parent;for(;ft;){let ge=!0;if(ke){const at=K.getStart(me);ge=atke.end}const Fe=g(ft,K,me),$e=Fe.line===fe.line||P(ft,K,fe.line,me);if(ge){const at=(De=U(K,me))==null?void 0:De[0],Je=!!at&&k(at,me).line>Fe.line;let pt=Y(K,me,xe,Je);if(pt!==-1||(pt=y(K,ft,fe,$e,me,xe),pt!==-1))return pt+Oe}Se(xe,ft,K,me,be)&&!$e&&(Oe+=xe.indentSize);const Pt=w(ft,K,fe.line,me);K=ft,ft=K.parent,fe=Pt?me.getLineAndCharacterOfPosition(K.getStart(me)):Fe}return Oe+u(xe)}function g(K,fe,ke){const Oe=U(fe,ke),me=Oe?Oe.pos:K.getStart(ke);return ke.getLineAndCharacterOfPosition(me)}function d(K,fe,ke){const Oe=Uoe(K);return Oe&&Oe.listItemIndex>0?ue(Oe.list.getChildren(),Oe.listItemIndex-1,fe,ke):-1}function y(K,fe,ke,Oe,me,be){return(yu(K)||i8(K))&&(fe.kind===312||!Oe)?pe(ke,me,be):-1}let S;(K=>{K[K.Unknown=0]="Unknown",K[K.OpenBrace=1]="OpenBrace",K[K.CloseBrace=2]="CloseBrace"})(S||(S={}));function T(K,fe,ke,Oe){const me=x2(K,fe,Oe);if(!me)return 0;if(me.kind===19)return 1;if(me.kind===20){const be=k(me,Oe).line;return ke===be?2:0}return 0}function k(K,fe){return fe.getLineAndCharacterOfPosition(K.getStart(fe))}function w(K,fe,ke,Oe){if(!(Rs(K)&&bs(K.arguments,fe)))return!1;const me=K.expression.getEnd();return Ha(Oe,me).line===ke}e.isArgumentAndStartLineOverlapsExpressionBeingCalled=w;function P(K,fe,ke,Oe){if(K.kind===245&&K.elseStatement===fe){const me=qa(K,93,Oe);return E.assert(me!==void 0),k(me,Oe).line===ke}return!1}e.childStartsOnTheSameLineWithElseInIfStatement=P;function F(K,fe,ke,Oe){if(JC(K)&&(fe===K.whenTrue||fe===K.whenFalse)){const me=Ha(Oe,K.condition.end).line;if(fe===K.whenTrue)return ke===me;{const be=k(K.whenTrue,Oe).line,xe=Ha(Oe,K.whenTrue.end).line;return me===be&&xe===ke}}return!1}e.childIsUnindentedBranchOfConditionalExpression=F;function J(K,fe,ke,Oe){if(zd(K)){if(!K.arguments)return!1;const me=wn(K.arguments,ft=>ft.pos===fe.pos);if(!me)return!1;const be=K.arguments.indexOf(me);if(be===0)return!1;const xe=K.arguments[be-1],De=Ha(Oe,xe.getEnd()).line;if(ke===De)return!0}return!1}e.argumentStartsOnSameLineAsPreviousArgument=J;function U(K,fe){return K.parent&&j(K.getStart(fe),K.getEnd(),K.parent,fe)}e.getContainingList=U;function $(K,fe,ke){return fe&&j(K,K,fe,ke)}function j(K,fe,ke,Oe){switch(ke.kind){case 183:return me(ke.typeArguments);case 210:return me(ke.properties);case 209:return me(ke.elements);case 187:return me(ke.members);case 262:case 218:case 219:case 174:case 173:case 179:case 176:case 185:case 180:return me(ke.typeParameters)||me(ke.parameters);case 177:return me(ke.parameters);case 263:case 231:case 264:case 265:case 352:return me(ke.typeParameters);case 214:case 213:return me(ke.typeArguments)||me(ke.arguments);case 261:return me(ke.declarations);case 275:case 279:return me(ke.elements);case 206:case 207:return me(ke.elements)}function me(be){return be&&UA(re(ke,be,Oe),K,fe)?be:void 0}}function re(K,fe,ke){const Oe=K.getChildren(ke);for(let me=1;me=0&&fe=0;xe--){if(K[xe].kind===28)continue;if(ke.getLineAndCharacterOfPosition(K[xe].end).line!==be.line)return pe(be,ke,Oe);be=k(K[xe],ke)}return-1}function pe(K,fe,ke){const Oe=fe.getPositionOfLineAndCharacter(K.line,0);return q(Oe,Oe+K.character,fe,ke)}function H(K,fe,ke,Oe){let me=0,be=0;for(let xe=K;xedpe,FormattingRequestKind:()=>ppe,RuleAction:()=>gpe,RuleFlags:()=>hpe,SmartIndenter:()=>sm,anyContext:()=>oR,createTextRangeWithKind:()=>nY,formatDocument:()=>hKe,formatNodeGivenIndentation:()=>kKe,formatOnClosingCurly:()=>gKe,formatOnEnter:()=>pKe,formatOnOpeningCurly:()=>mKe,formatOnSemicolon:()=>dKe,formatSelection:()=>yKe,getAllRules:()=>UPe,getFormatContext:()=>iKe,getFormattingScanner:()=>mpe,getIndentationString:()=>Ape,getRangeOfEnclosingComment:()=>mDe});var GN=wt({"src/services/_namespaces/ts.formatting.ts"(){kZe(),CZe(),EZe(),nKe(),fKe(),PKe(),DKe()}}),qn=wt({"src/services/_namespaces/ts.ts"(){Fs(),MA(),Rje(),oBe(),_Be(),VTe(),xBe(),kBe(),NBe(),zBe(),WBe(),UBe(),ZBe(),KBe(),bVe(),SVe(),kVe(),UVe(),HVe(),ra(),Dfe(),zfe(),bQe(),CQe(),WQe(),pxe(),Oxe(),lYe(),hYe(),Vm(),CYe(),KYe(),oZe(),_Ze(),xZe(),GN()}});function wKe(){return yDe??(yDe=new Rp(yf))}function gDe(e,t,n,i,s){let o=t?"DeprecationError: ":"DeprecationWarning: ";return o+=`'${e}' `,o+=i?`has been deprecated since v${i}`:"is deprecated",o+=t?" and can no longer be used.":n?` and will no longer be usable after v${n}.`:".",o+=s?` ${xg(s,[e])}`:"",o}function AKe(e,t,n,i){const s=gDe(e,!0,t,n,i);return()=>{throw new TypeError(s)}}function NKe(e,t,n,i){let s=!1;return()=>{hDe&&!s&&(E.log.warn(gDe(e,!1,t,n,i)),s=!0)}}function IKe(e,t={}){const n=typeof t.typeScriptVersion=="string"?new Rp(t.typeScriptVersion):t.typeScriptVersion??wKe(),i=typeof t.errorAfter=="string"?new Rp(t.errorAfter):t.errorAfter,s=typeof t.warnAfter=="string"?new Rp(t.warnAfter):t.warnAfter,o=typeof t.since=="string"?new Rp(t.since):t.since??s,c=t.error||i&&n.compareTo(i)>=0,u=!s||n.compareTo(s)>=0;return c?AKe(e,i,o,t.message):u?NKe(e,i,o,t.message):Ca}function FKe(e,t){return function(){return e(),t.apply(this,arguments)}}function Npe(e,t){const n=IKe((t==null?void 0:t.name)??E.getFunctionName(e),t);return FKe(n,e)}var hDe,yDe,vDe=wt({"src/deprecatedCompat/deprecate.ts"(){aY(),hDe=!0}});function sY(e,t,n,i){if(Object.defineProperty(o,"name",{...Object.getOwnPropertyDescriptor(o,"name"),value:e}),i)for(const c of Object.keys(i)){const u=+c;!isNaN(u)&&Za(t,`${u}`)&&(t[u]=Npe(t[u],{...i[u],name:e}))}const s=OKe(t,n);return o;function o(...c){const u=s(c),f=u!==void 0?t[u]:void 0;if(typeof f=="function")return f(...c);throw new TypeError("Invalid arguments")}}function OKe(e,t){return n=>{for(let i=0;Za(e,`${i}`)&&Za(t,`${i}`);i++){const s=t[i];if(s(n))return i}}}function bDe(e){return{overload:t=>({bind:n=>({finish:()=>sY(e,t,n),deprecate:i=>({finish:()=>sY(e,t,n,i)})})})}}var LKe=wt({"src/deprecatedCompat/deprecations.ts"(){aY(),vDe()}}),MKe=wt({"src/deprecatedCompat/5.0/identifierProperties.ts"(){aY(),vDe(),Xre(e=>{const t=e.getIdentifierConstructor();Za(t.prototype,"originalKeywordKind")||Object.defineProperty(t.prototype,"originalKeywordKind",{get:Npe(function(){return v1(this)},{name:"originalKeywordKind",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use 'identifierToKeywordKind(identifier)' instead."})}),Za(t.prototype,"isInJSDocNamespace")||Object.defineProperty(t.prototype,"isInJSDocNamespace",{get:Npe(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."})})})}}),aY=wt({"src/deprecatedCompat/_namespaces/ts.ts"(){Fs(),LKe(),MKe()}}),RKe=wt({"src/typingsInstallerCore/_namespaces/ts.ts"(){Fs(),MA(),Fpe()}});function SDe(e,t,n,i){try{const s=t6(t,Mn(e,"index.d.ts"),{moduleResolution:2},n);return s.resolvedModule&&s.resolvedModule.resolvedFileName}catch(s){i.isEnabled()&&i.writeLine(`Failed to resolve ${t} in folder '${e}': ${s.message}`);return}}function jKe(e,t,n,i){let s=!1;for(let o=n.length;o>0;){const c=TDe(e,t,n,o);o=c.remaining,s=i(c.command)||s}return s}function TDe(e,t,n,i){const s=n.length-i;let o,c=i;for(;o=`${e} install --ignore-scripts ${(c===n.length?n:n.slice(s,s+c)).join(" ")} --save-dev --user-agent="typesInstaller/${t}"`,!(o.length<8e3);)c=c-Math.floor(c/2);return{command:o,remaining:i-c}}function xDe(e){return`@types/${e}@ts${R0}`}var kDe,CDe,BKe=wt({"src/typingsInstallerCore/typingsInstaller.ts"(){RKe(),Fpe(),kDe={isEnabled:()=>!1,writeLine:Ca},CDe=class{constructor(e,t,n,i,s,o=kDe){this.installTypingHost=e,this.globalCachePath=t,this.safeListPath=n,this.typesMapLocation=i,this.throttleLimit=s,this.log=o,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 '${n}', 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":{const t={};this.typesRegistry.forEach((i,s)=>{t[s]=i});const n={kind:fL,typesRegistry:t};this.sendResponse(n);break}case"installPackage":{this.installPackage(e);break}default:E.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:Q3,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${q1(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();const t=nm.discoverTypings(this.installTypingHost,this.log.isEnabled()?n=>this.log.writeLine(n):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){const{fileName:t,packageName:n,projectName:i,projectRootPath:s,id:o}=e,c=Jp(Un(t),u=>{if(this.installTypingHost.fileExists(Mn(u,"package.json")))return u})||s;if(c)this.installWorker(-1,[n],c,u=>{const f=u?`Package ${n} installed.`:`There was an error installing ${n}.`,g={kind:LA,projectName:i,id:o,success:u,message:f};this.sendResponse(g)});else{const u={kind:LA,projectName:i,id:o,success:!1,message:"Could not determine a project root path."};this.sendResponse(u)}}initializeSafeList(){if(this.typesMapLocation){const e=nm.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=nm.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}const t=Mn(e,"package.json"),n=Mn(e,"package-lock.json");if(this.log.isEnabled()&&this.log.writeLine(`Trying to find '${t}'...`),this.installTypingHost.fileExists(t)&&this.installTypingHost.fileExists(n)){const i=JSON.parse(this.installTypingHost.readFile(t)),s=JSON.parse(this.installTypingHost.readFile(n));if(this.log.isEnabled()&&(this.log.writeLine(`Loaded content of '${t}':${q1(i)}`),this.log.writeLine(`Loaded content of '${n}':${q1(s)}`)),i.devDependencies&&s.dependencies)for(const o in i.devDependencies){if(!Za(s.dependencies,o))continue;const c=wc(o);if(!c)continue;const u=SDe(e,c,this.installTypingHost,this.log);if(!u){this.missingTypingsSet.add(c);continue}const f=this.packageNameToTypingLocation.get(c);if(f){if(f.typingLocation===u)continue;this.log.isEnabled()&&this.log.writeLine(`New typing for package ${c} from '${u}' conflicts with existing typing file '${f}'`)}this.log.isEnabled()&&this.log.writeLine(`Adding entry into typings cache: '${c}' => '${u}'`);const g=t7(s.dependencies,o),d=g&&g.version;if(!d)continue;const y={typingLocation:u,version:new Rp(d)};this.packageNameToTypingLocation.set(c,y)}}this.log.isEnabled()&&this.log.writeLine(`Finished processing cache location '${e}'`),this.knownCachesSet.add(e)}filterTypings(e){return Ri(e,t=>{const n=n6(t);if(this.missingTypingsSet.has(n)){this.log.isEnabled()&&this.log.writeLine(`'${t}':: '${n}' is in missingTypingsSet - skipping...`);return}const i=nm.validatePackageName(t);if(i!==nm.NameValidationResult.Ok){this.missingTypingsSet.add(n),this.log.isEnabled()&&this.log.writeLine(nm.renderPackageNameValidationFailure(i,t));return}if(!this.typesRegistry.has(n)){this.log.isEnabled()&&this.log.writeLine(`'${t}':: Entry for package '${n}' does not exist in local types registry - skipping...`);return}if(this.packageNameToTypingLocation.get(n)&&nm.isTypingUpToDate(this.packageNameToTypingLocation.get(n),this.typesRegistry.get(n))){this.log.isEnabled()&&this.log.writeLine(`'${t}':: '${n}' already has an up-to-date typing - skipping...`);return}return n})}ensurePackageDirectoryExists(e){const t=Mn(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,n,i){this.log.isEnabled()&&this.log.writeLine(`Installing typings ${JSON.stringify(i)}`);const s=this.filterTypings(i);if(s.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,n));return}this.ensurePackageDirectoryExists(t);const o=this.installRunCount;this.installRunCount++,this.sendResponse({kind:pL,eventId:o,typingsInstallerVersion:yf,projectName:e.projectName});const c=s.map(xDe);this.installTypingsAsync(o,c,t,u=>{try{if(!u){this.log.isEnabled()&&this.log.writeLine(`install request failed, marking packages as missing to prevent repeated requests: ${JSON.stringify(s)}`);for(const g of s)this.missingTypingsSet.add(g);return}this.log.isEnabled()&&this.log.writeLine(`Installed typings ${JSON.stringify(c)}`);const f=[];for(const g of s){const d=SDe(t,g,this.installTypingHost,this.log);if(!d){this.missingTypingsSet.add(g);continue}const y=this.typesRegistry.get(g),S=new Rp(y[`ts${R0}`]||y[this.latestDistTag]),T={typingLocation:d,version:S};this.packageNameToTypingLocation.set(g,T),f.push(d)}this.log.isEnabled()&&this.log.writeLine(`Installed typing files ${JSON.stringify(f)}`),this.sendResponse(this.createSetTypings(e,n.concat(f)))}finally{const f={kind:dL,eventId:o,projectName:e.projectName,packagesToInstall:c,installSuccess:u,typingsInstallerVersion:yf};this.sendResponse(f)}})}ensureDirectoryExists(e,t){const n=Un(e);t.directoryExists(n)||this.ensureDirectoryExists(n,t),t.directoryExists(e)||t.createDirectory(e)}watchFiles(e,t){if(!t.length){this.closeWatchers(e);return}const n=this.projectWatchers.get(e),i=new Set(t);!n||Am(i,s=>!n.has(s))||Am(n,s=>!i.has(s))?(this.projectWatchers.set(e,i),this.sendResponse({kind:Q3,projectName:e,files:t})):this.sendResponse({kind:Q3,projectName:e,files:void 0})}createSetTypings(e,t){return{projectName:e.projectName,typeAcquisition:e.typeAcquisition,compilerOptions:e.compilerOptions,typings:t,unresolvedImports:e.unresolvedImports,kind:FA}}installTypingsAsync(e,t,n,i){this.pendingRunRequests.unshift({requestId:e,packageNames:t,cwd:n,onRequestCompleted:i}),this.executeWithThrottling()}executeWithThrottling(){for(;this.inFlightRequestCount{this.inFlightRequestCount--,e.onRequestCompleted(t),this.executeWithThrottling()})}}}}}),Ipe={};vl(Ipe,{TypingsInstaller:()=>CDe,getNpmCommandForInstallation:()=>TDe,installNpmPackages:()=>jKe,typingsName:()=>xDe});var JKe=wt({"src/typingsInstallerCore/_namespaces/ts.server.typingsInstaller.ts"(){BKe()}}),Fpe=wt({"src/typingsInstallerCore/_namespaces/ts.server.ts"(){mL(),JKe()}}),zKe=wt({"src/server/types.ts"(){}});function Ope(e,t,n,i){return{projectName:e.getProjectName(),fileNames:e.getFileNames(!0,!0).concat(e.getExcludedFiles()),compilerOptions:e.getCompilationSettings(),typeAcquisition:t,unresolvedImports:n,projectRootPath:e.getCurrentDirectory(),cachePath:i,kind:"discover"}}function Jo(e){return Hs(e)}function $N(e,t,n){const i=F_(e)?e:Xi(e,t);return n(i)}function EDe(e){return e}function PDe(){const e=new Map;return{get(t){return e.get(t)},set(t,n){e.set(t,n)},contains(t){return e.has(t)},remove(t){e.delete(t)}}}function Lpe(e){return/dev\/null\/inferredProject\d+\*/.test(e)}function Mpe(e){return`/dev/null/inferredProject${e}*`}function Rpe(e){return`/dev/null/autoImportProviderProject${e}*`}function jpe(e){return`/dev/null/auxiliaryProject${e}*`}function Bpe(){return[]}var oY,Wc,cY,g0,WKe=wt({"src/server/utilitiesPublic.ts"(){ky(),oY=(e=>(e[e.terse=0]="terse",e[e.normal=1]="normal",e[e.requestTime=2]="requestTime",e[e.verbose=3]="verbose",e))(oY||{}),Wc=Bpe(),cY=(e=>(e.Err="Err",e.Info="Info",e.Perf="Perf",e))(cY||{}),(e=>{function t(){throw new Error("No Project.")}e.ThrowNoProject=t;function n(){throw new Error("The project's language service is disabled.")}e.ThrowProjectLanguageServiceDisabled=n;function i(s,o){throw new Error(`Project '${o.getProjectName()}' does not contain document '${s}'`)}e.ThrowProjectDoesNotContainDocument=i})(g0||(g0={}))}});function lY(e){const t=wc(e);return t==="tsconfig.json"||t==="jsconfig.json"?t:void 0}function DDe(e,t,n){if(!e||e.length===0)return;if(e[0]===t){e.splice(0,1);return}const i=Jh(e,t,Do,n);i>=0&&e.splice(i,1)}var uY,_Y,VKe=wt({"src/server/utilities.ts"(){ky(),hS(),uY=class C5e{constructor(t,n){this.host=t,this.pendingTimeouts=new Map,this.logger=n.hasLevel(3)?n:void 0}schedule(t,n,i){const s=this.pendingTimeouts.get(t);s&&this.host.clearTimeout(s),this.pendingTimeouts.set(t,this.host.setTimeout(C5e.run,n,t,this,i)),this.logger&&this.logger.info(`Scheduled: ${t}${s?", Cancelled earlier one":""}`)}cancel(t){const n=this.pendingTimeouts.get(t);return n?(this.host.clearTimeout(n),this.pendingTimeouts.delete(t)):!1}static run(t,n,i){var s,o;(s=wu)==null||s.logStartScheduledOperation(t),n.pendingTimeouts.delete(t),n.logger&&n.logger.info(`Running: ${t}`),i(),(o=wu)==null||o.logStopScheduledOperation()}},_Y=class E5e{constructor(t,n,i){this.host=t,this.delay=n,this.logger=i}scheduleCollect(){!this.host.gc||this.timerId!==void 0||(this.timerId=this.host.setTimeout(E5e.run,this.delay,this))}static run(t){var n,i;t.timerId=void 0,(n=wu)==null||n.logStartScheduledOperation("GC collect");const s=t.logger.hasLevel(2),o=s&&t.host.getMemoryUsage();if(t.host.gc(),s){const c=t.host.getMemoryUsage();t.logger.perftrc(`GC::before ${o}, after ${c}`)}(i=wu)==null||i.logStopScheduledOperation()}}}}),fY,Jpe,zpe,Wpe,Vpe,Upe,qpe,Hpe,Gpe,$pe,Xpe,Qpe,Ype,Zpe,Kpe=wt({"src/server/protocol.ts"(){fY=(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))(fY||{}),Jpe=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(Jpe||{}),zpe=(e=>(e.FixedPollingInterval="FixedPollingInterval",e.PriorityPollingInterval="PriorityPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e.UseFsEvents="UseFsEvents",e.UseFsEventsOnParentDirectory="UseFsEventsOnParentDirectory",e))(zpe||{}),Wpe=(e=>(e.UseFsEvents="UseFsEvents",e.FixedPollingInterval="FixedPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e))(Wpe||{}),Vpe=(e=>(e.FixedInterval="FixedInterval",e.PriorityInterval="PriorityInterval",e.DynamicPriority="DynamicPriority",e.FixedChunkSize="FixedChunkSize",e))(Vpe||{}),Upe=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(Upe||{}),qpe=(e=>(e.None="None",e.Block="Block",e.Smart="Smart",e))(qpe||{}),Hpe=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(Hpe||{}),Gpe=(e=>(e.None="None",e.Preserve="Preserve",e.ReactNative="ReactNative",e.React="React",e))(Gpe||{}),$pe=(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))($pe||{}),Xpe=(e=>(e.Classic="Classic",e.Node="Node",e.Node10="Node10",e.Node16="Node16",e.NodeNext="NodeNext",e.Bundler="Bundler",e))(Xpe||{}),Qpe=(e=>(e.Crlf="Crlf",e.Lf="Lf",e))(Qpe||{}),Ype=(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))(Ype||{}),Zpe=(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))(Zpe||{})}}),ede={};vl(ede,{ClassificationType:()=>Zpe,CommandTypes:()=>fY,CompletionTriggerKind:()=>Upe,IndentStyle:()=>qpe,JsxEmit:()=>Gpe,ModuleKind:()=>$pe,ModuleResolutionKind:()=>Xpe,NewLineKind:()=>Qpe,OrganizeImportsMode:()=>Jpe,PollingWatchKind:()=>Vpe,ScriptTarget:()=>Ype,SemicolonPreference:()=>Hpe,WatchDirectoryKind:()=>Wpe,WatchFileKind:()=>zpe});var UKe=wt({"src/server/_namespaces/ts.server.protocol.ts"(){Kpe()}});function XN(e){return e[0]==="^"||(e.includes("walkThroughSnippet:/")||e.includes("untitled:/"))&&wc(e)[0]==="^"||e.includes(":^")&&!e.includes(Io)}function wDe(e){return!e||YN(e)?g0.ThrowNoProject():e}function qKe(e){E.assert(typeof e=="number",`Expected position ${e} to be a number.`),E.assert(e>=0,"Expected position to be non-negative.")}function HKe(e){E.assert(typeof e.line=="number",`Expected line ${e.line} to be a number.`),E.assert(typeof e.offset=="number",`Expected offset ${e.offset} to be a number.`),E.assert(e.line>0,`Expected line to be non-${e.line===0?"zero":"negative"}`),E.assert(e.offset>0,`Expected offset to be non-${e.offset===0?"zero":"negative"}`)}var pY,dY,GKe=wt({"src/server/scriptInfo.ts"(){ky(),hS(),pY=class{constructor(e,t,n){this.host=e,this.info=t,this.isOpen=!1,this.ownFileText=!1,this.pendingReloadFromDisk=!1,this.version=n||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,n){this.switchToScriptVersionCache().edit(e,t-e,n),this.ownFileText=!1,this.text=void 0,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo()}reload(e){return E.assert(e!==void 0),this.pendingReloadFromDisk=!1,!this.text&&this.svc&&(this.text=y6(this.svc.getSnapshot())),this.text!==e?(this.useText(e),this.ownFileText=!1,!0):!1}reloadWithFileText(e){const{text:t,fileSize:n}=e||!this.info.isDynamicOrHasMixedContent()?this.getFileTextAndSize(e):{text:"",fileSize:void 0},i=this.reload(t);return this.fileSize=n,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=hL.fromString(E.checkDefined(this.text))))}getAbsolutePositionAndLineText(e){const t=this.tryUseScriptVersionCache();if(t)return t.getAbsolutePositionAndLineText(e);const n=this.getLineMap();return e<=n.length?{absolutePosition:n[e-1],lineText:this.text.substring(n[e-1],n[e])}:{absolutePosition:this.text.length,lineText:void 0}}lineToTextSpan(e){const t=this.tryUseScriptVersionCache();if(t)return t.lineToTextSpan(e);const n=this.getLineMap(),i=n[e],s=e+1t===void 0?t=this.host.readFile(n)||"":t;if(!GT(this.info.fileName)){const s=this.host.getFileSize?this.host.getFileSize(n):i().length;if(s>hR)return E.assert(!!this.info.containingProjects.length),this.info.containingProjects[0].projectService.logger.info(`Skipped loading contents of large file ${n} for info ${this.info.fileName}: fileSize: ${s}`),this.info.containingProjects[0].projectService.sendLargeFileReferencedEvent(n,s),{text:"",fileSize:s}}return{text:i()}}switchToScriptVersionCache(){return(!this.svc||this.pendingReloadFromDisk)&&(this.svc=AR.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=AR.fromString(E.checkDefined(this.text)),this.textSnapshot=void 0),this.svc):this.svc}getOrLoadText(){return(this.text===void 0||this.pendingReloadFromDisk)&&(E.assert(!this.svc||this.pendingReloadFromDisk,"ScriptVersionCache should not be set when reloading from disk"),this.reloadWithFileText()),this.text}getLineMap(){return E.assert(!this.svc,"ScriptVersionCache should not be set"),this.lineMap||(this.lineMap=ET(E.checkDefined(this.text)))}getLineInfo(){const e=this.tryUseScriptVersionCache();if(e)return{getLineCount:()=>e.getLineCount(),getLineText:n=>e.getAbsolutePositionAndLineText(n+1).lineText};const t=this.getLineMap();return YU(this.text,t)}},dY=class{constructor(e,t,n,i,s,o){this.host=e,this.fileName=t,this.scriptKind=n,this.hasMixedContent=i,this.path=s,this.containingProjects=[],this.isDynamic=XN(t),this.textStorage=new pY(e,this,o),(i||this.isDynamic)&&(this.realpath=this.path),this.scriptKind=n||bF(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)){E.assert(!!this.containingProjects.length);const 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){const 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 bs(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:Ik(this.containingProjects,e)&&e.onFileAddedOrRemoved(this.isSymlink());break}}detachAllProjects(){for(const e of this.containingProjects){Y1(e)&&e.getCachedDirectoryStructureHost().addOrDeleteFile(this.fileName,this.path,2);const t=e.getRootFilesMap().get(this.path);e.removeFile(this,!1,!1),e.onFileAddedOrRemoved(this.isSymlink()),t&&!J6(e)&&e.addMissingFileRoot(t.fileName)}lg(this.containingProjects)}getDefaultProject(){switch(this.containingProjects.length){case 0:return g0.ThrowNoProject();case 1:return wDe(this.containingProjects[0]);default:let e,t,n,i,s;for(let o=0;o!e.isOrphan())}isContainedByBackgroundProject(){return ct(this.containingProjects,YN)}lineToTextSpan(e){return this.textStorage.lineToTextSpan(e)}lineOffsetToPosition(e,t,n){return this.textStorage.lineOffsetToPosition(e,t,n)}positionToLineOffset(e){qKe(e);const t=this.textStorage.positionToLineOffset(e);return HKe(t),t}isJavaScript(){return this.scriptKind===1||this.scriptKind===2}closeSourceMapFileWatcher(){this.sourceMapFilePath&&!ls(this.sourceMapFilePath)&&(Qf(this.sourceMapFilePath),this.sourceMapFilePath=void 0)}}}});function ADe(e,t){if(e===t||(e||Wc).length===0&&(t||Wc).length===0)return!0;const n=new Map;let i=0;for(const s of e)n.get(s)!==!0&&(n.set(s,!0),i++);for(const s of t){const o=n.get(s);if(o===void 0)return!1;o===!0&&(n.set(s,!1),i--)}return i===0}function $Ke(e,t){return e.enable!==t.enable||!ADe(e.include,t.include)||!ADe(e.exclude,t.exclude)}function XKe(e,t){return cy(e)!==cy(t)}function QKe(e,t){return e===t?!1:!_d(e,t)}var pR,mY,YKe=wt({"src/server/typingsCache.ts"(){ky(),hS(),pR={isKnownTypesPackageName:fd,installPackage:ks,enqueueInstallTypingsRequest:Ca,attach:Ca,onProjectClosed:Ca,globalTypingsCacheLocation:void 0},mY=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,n){const i=e.getTypeAcquisition();if(!i||!i.enable)return;const s=this.perProjectCache.get(e.getProjectName());(n||!s||$Ke(i,s.typeAcquisition)||XKe(e.getCompilationSettings(),s.compilerOptions)||QKe(t,s.unresolvedImports))&&(this.perProjectCache.set(e.getProjectName(),{compilerOptions:e.getCompilationSettings(),typeAcquisition:i,typings:s?s.typings:Wc,unresolvedImports:t,poisoned:!0}),this.installer.enqueueInstallTypingsRequest(e,i,t))}updateTypingsForProject(e,t,n,i,s){const o=fb(s);return this.perProjectCache.set(e,{compilerOptions:t,typeAcquisition:n,typings:o,unresolvedImports:i,poisoned:!1}),!n||!n.enable?Wc:o}onProjectClosed(e){this.perProjectCache.delete(e.getProjectName())&&this.installer.onProjectClosed(e)}}}});function QN(e,t=!1){const n={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(const i of e){const s=t?i.textStorage.getTelemetryFileSize():0;switch(i.scriptKind){case 1:n.js+=1,n.jsSize+=s;break;case 2:n.jsx+=1,n.jsxSize+=s;break;case 3:Hl(i.fileName)?(n.dts+=1,n.dtsSize+=s):(n.ts+=1,n.tsSize+=s);break;case 4:n.tsx+=1,n.tsxSize+=s;break;case 7:n.deferred+=1,n.deferredSize+=s;break}}return n}function ZKe(e){const t=QN(e.getScriptInfos());return t.js>0&&t.ts===0&&t.tsx===0}function tde(e){const t=QN(e.getRootScriptInfos());return t.ts===0&&t.tsx===0}function rde(e){const t=QN(e.getScriptInfos());return t.ts===0&&t.tsx===0}function nde(e){return!e.some(t=>Zo(t,".ts")&&!Hl(t)||Zo(t,".tsx"))}function ide(e){return e.generatedFilePath!==void 0}function KKe(e,t){var n,i;const s=e.getSourceFiles();(n=qr)==null||n.push(qr.Phase.Session,"getUnresolvedImports",{count:s.length});const o=e.getTypeChecker().getAmbientModules().map(u=>vp(u.getName())),c=W4(Zs(s,u=>eet(e,u,o,t)));return(i=qr)==null||i.pop(),c}function eet(e,t,n,i){return z4(i,t.path,()=>{let s;return e.forEachResolvedModule(({resolvedModule:o},c)=>{(!o||!qE(o.extension))&&!Sl(c)&&!n.some(u=>u===c)&&(s=_r(s,uA(c).packageName))},t),s||Wc})}function J6(e){return e.projectKind===0}function Y1(e){return e.projectKind===1}function gY(e){return e.projectKind===2}function YN(e){return e.projectKind===3||e.projectKind===4}var TP,gS,hY,yY,vY,bY,SY,dR,tet=wt({"src/server/project.ts"(){ky(),ky(),hS(),TP=(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))(TP||{}),gS=class P5e{constructor(t,n,i,s,o,c,u,f,g,d,y){switch(this.projectKind=n,this.projectService=i,this.documentRegistry=s,this.compilerOptions=u,this.compileOnSaveEnabled=f,this.watchOptions=g,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=fd,this.dirty=!1,this.typingFiles=Wc,this.moduleSpecifierCache=gde(this),this.createHash=Os(this.projectService.host,this.projectService.host.createHash),this.globalCacheResolutionModuleName=nm.nonRelativeModuleNameForTypingCache,this.updateFromProjectInProgress=!1,this.projectName=t,this.directoryStructureHost=d,this.currentDirectory=this.projectService.getNormalizedAbsolutePath(y),this.getCanonicalFileName=this.projectService.toCanonicalFileName,this.jsDocParsingMode=this.projectService.jsDocParsingMode,this.cancellationToken=new X$(this.projectService.cancellationToken,this.projectService.throttleWaitMilliseconds),this.compilerOptions?(o||cy(this.compilerOptions)||this.projectService.hasDeferredExtension())&&(this.compilerOptions.allowNonTsExtensions=!0):(this.compilerOptions=IM(),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:E.assertNever(i.serverMode)}this.setInternalCompilerOptionsForEmittingJsFiles();const S=this.projectService.host;this.projectService.logger.loggingEnabled()?this.trace=T=>this.writeLog(T):S.trace&&(this.trace=T=>S.trace(T)),this.realpath=Os(S,S.realpath),this.resolutionCache=iH(this,this.currentDirectory,!0),this.languageService=Xle(this,this.documentRegistry,this.projectService.serverMode),c&&this.disableLanguageService(c),this.markAsDirty(),YN(this)||(this.projectService.pendingEnsureProjectForOpenFiles=!0),this.projectService.onProjectCreation(this)}getResolvedProjectReferenceToRedirect(t){}isNonTsProject(){return uf(this),rde(this)}isJsOnlyProject(){return uf(this),ZKe(this)}static resolveModule(t,n,i,s){return P5e.importServicePluginSync({name:t},[n],i,s).resolvedModule}static importServicePluginSync(t,n,i,s){E.assertIsDefined(i.require);let o,c;for(const u of n){const f=iu(i.resolvePath(Mn(u,"node_modules")));s(`Loading ${t.name} from ${u} (resolved to ${f})`);const g=i.require(f,t.name);if(!g.error){c=g.module;break}const d=g.error.stack||g.error.message||JSON.stringify(g.error);(o??(o=[])).push(`Failed to load module '${t.name}' from ${f}: ${d}`)}return{pluginConfigEntry:t,resolvedModule:c,errorLogs:o}}static async importServicePluginAsync(t,n,i,s){E.assertIsDefined(i.importPlugin);let o,c;for(const u of n){const f=Mn(u,"node_modules");s(`Dynamically importing ${t.name} from ${u} (resolved to ${f})`);let g;try{g=await i.importPlugin(f,t.name)}catch(y){g={module:void 0,error:y}}if(!g.error){c=g.module;break}const d=g.error.stack||g.error.message||JSON.stringify(g.error);(o??(o=[])).push(`Failed to dynamically import module '${t.name}' from ${f}: ${d}`)}return{pluginConfigEntry:t,resolvedModule:c,errorLogs:o}}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=IW(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 Ve;let t;return this.rootFilesMap.forEach(n=>{(this.languageServiceEnabled||n.info&&n.info.isScriptOpen())&&(t||(t=[])).push(n.fileName)}),Nn(t,this.typingFiles)||Ve}getOrCreateScriptInfoAndAttachToProject(t){const n=this.projectService.getOrCreateScriptInfoNotOpenedByClient(t,this.currentDirectory,this.directoryStructureHost);if(n){const i=this.rootFilesMap.get(n.path);i&&i.info!==n&&(this.rootFiles.push(n),i.info=n),n.attachToProject(this)}return n}getScriptKind(t){const n=this.projectService.getScriptInfoForPath(this.toPath(t));return n&&n.scriptKind}getScriptVersion(t){const n=this.projectService.getOrCreateScriptInfoNotOpenedByClient(t,this.currentDirectory,this.directoryStructureHost);return n&&n.getLatestVersion()}getScriptSnapshot(t){const n=this.getOrCreateScriptInfoAndAttachToProject(t);if(n)return n.getSnapshot()}getCancellationToken(){return this.cancellationToken}getCurrentDirectory(){return this.currentDirectory}getDefaultLibFileName(){const t=Un(Hs(this.projectService.getExecutingFilePath()));return Mn(t,zD(this.compilerOptions))}useCaseSensitiveFileNames(){return this.projectService.host.useCaseSensitiveFileNames}readDirectory(t,n,i,s,o){return this.directoryStructureHost.readDirectory(t,n,i,s,o)}readFile(t){return this.projectService.host.readFile(t)}writeFile(t,n){return this.projectService.host.writeFile(t,n)}fileExists(t){const n=this.toPath(t);return!this.isWatchedMissingFile(n)&&this.directoryStructureHost.fileExists(t)}resolveModuleNameLiterals(t,n,i,s,o,c){return this.resolutionCache.resolveModuleNameLiterals(t,n,i,s,o,c)}getModuleResolutionCache(){return this.resolutionCache.getModuleResolutionCache()}resolveTypeReferenceDirectiveReferences(t,n,i,s,o,c){return this.resolutionCache.resolveTypeReferenceDirectiveReferences(t,n,i,s,o,c)}resolveLibrary(t,n,i,s){return this.resolutionCache.resolveLibrary(t,n,i,s)}directoryExists(t){return this.directoryStructureHost.directoryExists(t)}getDirectories(t){return this.directoryStructureHost.getDirectories(t)}getCachedDirectoryStructureHost(){}toPath(t){return No(t,this.currentDirectory,this.projectService.toCanonicalFileName)}watchDirectoryOfFailedLookupLocation(t,n,i){return this.projectService.watchFactory.watchDirectory(t,n,i,this.projectService.getWatchOptions(this),sl.FailedLookupLocations,this)}watchAffectingFileLocation(t,n){return this.projectService.watchFactory.watchFile(t,n,2e3,this.projectService.getWatchOptions(this),sl.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,n,i){return this.projectService.watchFactory.watchDirectory(t,n,i,this.projectService.getWatchOptions(this),sl.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 An(this.projectErrors,t=>!t.file)||Wc}getAllProjectErrors(){return this.projectErrors||Wc}setProjectErrors(t){this.projectErrors=t}getLanguageService(t=!0){return t&&uf(this),this.languageService}getSourceMapper(){return this.getLanguageService().getSourceMapper()}clearSourceMapperCache(){this.languageService.clearSourceMapperCache()}getDocumentPositionMapper(t,n){return this.projectService.getDocumentPositionMapper(this,t,n)}getSourceFileLike(t){return this.projectService.getSourceFileLike(t,this)}shouldEmitFile(t){return t&&!t.isDynamicOrHasMixedContent()&&!this.program.isSourceOfProjectReferenceRedirect(t.path)}getCompileOnSaveAffectedFileList(t){return this.languageServiceEnabled?(uf(this),this.builderState=Qp.create(this.program,this.builderState,!0),Ri(Qp.getFilesAffectedBy(this.builderState,this.program,t.path,this.cancellationToken,this.projectService.host),n=>this.shouldEmitFile(this.projectService.getScriptInfoForPath(n.path))?n.fileName:void 0)):[]}emitFile(t,n){if(!this.languageServiceEnabled||!this.shouldEmitFile(t))return{emitSkipped:!0,diagnostics:Wc};const{emitSkipped:i,diagnostics:s,outputFiles:o}=this.getLanguageService().getEmitOutput(t.fileName);if(!i){for(const c of o){const u=Xi(c.name,this.currentDirectory);n(u,c.text,c.writeByteOrderMark)}if(this.builderState&&Gf(this.compilerOptions)){const c=o.filter(u=>Hl(u.name));if(c.length===1){const u=this.program.getSourceFile(t.fileName),f=this.projectService.host.createHash?this.projectService.host.createHash(c[0].text):X4(c[0].text);Qp.updateSignatureOfFile(this.builderState,f,u.resolvedPath)}}}return{emitSkipped:i,diagnostics:s}}enableLanguageService(){this.languageServiceEnabled||this.projectService.serverMode===2||(this.languageServiceEnabled=!0,this.lastFileExceededProgramSize=void 0,this.projectService.onUpdateLanguageServiceStateForProject(this,!0))}cleanupProgram(){if(this.program){for(const 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&&(E.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 fb(Zs(this.plugins,n=>{if(typeof n.module.getExternalFiles=="function")try{return n.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){const n=this.program.getCompilerOptions();return t===n.configFilePath?n.configFile:this.getSourceFile(t)}close(){var t;this.projectService.typingsCache.onProjectClosed(this),this.closeWatchingTypingLocations(),this.cleanupProgram(),er(this.externalFiles,n=>this.detachScriptInfoIfNotRoot(n));for(const n of this.rootFiles)n.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(n=>{n.projects.delete(this),n.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&&(T_(this.missingFilesMap,md),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){const n=this.projectService.getScriptInfo(t);n&&!this.isRoot(n)&&n.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?nr(this.program.getSourceFiles(),t=>{const n=this.projectService.getScriptInfoForPath(t.resolvedPath);return E.assert(!!n,"getScriptInfo",()=>`scriptInfo for a file '${t.fileName}' Path: '${t.path}' / '${t.resolvedPath}' is missing.`),n}):this.rootFiles}getExcludedFiles(){return Wc}getFileNames(t,n){if(!this.program)return[];if(!this.languageServiceEnabled){let s=this.getRootFiles();if(this.compilerOptions){const o=Qle(this.compilerOptions);o&&(s||(s=[])).push(o)}return s}const i=[];for(const s of this.program.getSourceFiles())t&&this.program.isSourceFileFromExternalLibrary(s)||i.push(s.fileName);if(!n){const s=this.program.getCompilerOptions().configFile;if(s&&(i.push(s.fileName),s.extendedSourceFiles))for(const o of s.extendedSourceFiles)i.push(o)}return i}getFileNamesWithRedirectInfo(t){return this.getFileNames().map(n=>({fileName:n,isSourceOfProjectReferenceRedirect:t&&this.isSourceOfProjectReferenceRedirect(n)}))}hasConfigFile(t){if(this.program&&this.languageServiceEnabled){const n=this.program.getCompilerOptions().configFile;if(n){if(t===n.fileName)return!0;if(n.extendedSourceFiles){for(const i of n.extendedSourceFiles)if(t===i)return!0}}}return!1}containsScriptInfo(t){if(this.isRoot(t))return!0;if(!this.program)return!1;const n=this.program.getSourceFileByPath(t.path);return!!n&&n.resolvedPath===t.path}containsFile(t,n){const i=this.projectService.getScriptInfoForNormalizedPath(t);return i&&(i.isScriptOpen()||!n)?this.containsScriptInfo(i):!1}isRoot(t){var n;return this.rootFilesMap&&((n=this.rootFilesMap.get(t.path))==null?void 0:n.info)===t}addRoot(t,n){E.assert(!this.isRoot(t)),this.rootFiles.push(t),this.rootFilesMap.set(t.path,{fileName:n||t.fileName,info:t}),t.attachToProject(this),this.markAsDirty()}addMissingFileRoot(t){const n=this.projectService.toPath(t);this.rootFilesMap.set(n,{fileName:t}),this.markAsDirty()}removeFile(t,n,i){this.isRoot(t)&&this.removeRoot(t),n?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(){uf(this)}updateGraph(){var t,n,i,s,o;(t=qr)==null||t.push(qr.Phase.Session,"updateGraph",{name:this.projectName,kind:TP[this.projectKind]}),(n=wu)==null||n.logStartUpdateGraph(),this.resolutionCache.startRecordingFilesWithChangedResolutions();const c=this.updateGraphWorker(),u=this.hasAddedorRemovedFiles;this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1;const f=this.resolutionCache.finishRecordingFilesWithChangedResolutions()||Wc;for(const d of f)this.cachedUnresolvedImportsPerFile.delete(d);this.languageServiceEnabled&&this.projectService.serverMode===0&&!this.isOrphan()?((c||f.length)&&(this.lastCachedUnresolvedImportsList=KKe(this.program,this.cachedUnresolvedImportsPerFile)),this.projectService.typingsCache.enqueueInstallTypingsForProject(this,this.lastCachedUnresolvedImportsList,u)):this.lastCachedUnresolvedImportsList=void 0;const g=this.projectProgramVersion===0&&c;return c&&this.projectProgramVersion++,u&&(this.autoImportProviderHost||(this.autoImportProviderHost=void 0),(i=this.autoImportProviderHost)==null||i.markAsDirty()),g&&this.getPackageJsonAutoImportProvider(),(s=wu)==null||s.logStopUpdateGraph(),(o=qr)==null||o.pop(),!c}updateTypingFiles(t){l7(t,this.typingFiles,Ak(!this.useCaseSensitiveFileNames()),Ca,n=>this.detachScriptInfoFromProject(n))&&(this.typingFiles=t,this.resolutionCache.setFilesWithInvalidatedNonRelativeUnresolvedImports(this.cachedUnresolvedImportsPerFile),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))}closeWatchingTypingLocations(){this.typingWatchers&&T_(this.typingWatchers,md),this.typingWatchers=void 0}onTypingInstallerWatchInvoke(){this.typingWatchers.isInvoked=!0,this.projectService.updateTypingsForProject({projectName:this.getProjectName(),kind:OA})}watchTypingLocations(t){if(!t){this.typingWatchers.isInvoked=!1;return}if(!t.length){this.closeWatchingTypingLocations();return}const n=new Map(this.typingWatchers);this.typingWatchers||(this.typingWatchers=new Map),this.typingWatchers.isInvoked=!1;const i=(s,o)=>{const c=this.toPath(s);n.delete(c),this.typingWatchers.has(c)||this.typingWatchers.set(c,o==="FileWatcher"?this.projectService.watchFactory.watchFile(s,()=>this.typingWatchers.isInvoked?this.writeLog("TypingWatchers already invoked"):this.onTypingInstallerWatchInvoke(),2e3,this.projectService.getWatchOptions(this),sl.TypingInstallerLocationFile,this):this.projectService.watchFactory.watchDirectory(s,u=>{if(this.typingWatchers.isInvoked)return this.writeLog("TypingWatchers already invoked");if(!Zo(u,".json"))return this.writeLog("Ignoring files that are not *.json");if(Gg(u,Mn(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),sl.TypingInstallerLocationDirectory,this))};for(const s of t){const o=wc(s);if(o==="package.json"||o==="bower.json"){i(s,"FileWatcher");continue}if(jp(this.currentDirectory,s,this.currentDirectory,!this.useCaseSensitiveFileNames())){const c=s.indexOf(Io,this.currentDirectory.length+1);i(c!==-1?s.substr(0,c):s,"DirectoryWatcher");continue}if(jp(this.projectService.typingsInstaller.globalTypingsCacheLocation,s,this.currentDirectory,!this.useCaseSensitiveFileNames())){i(this.projectService.typingsInstaller.globalTypingsCacheLocation,"DirectoryWatcher");continue}i(s,"DirectoryWatcher")}n.forEach((s,o)=>{s.close(),this.typingWatchers.delete(o)})}getCurrentProgram(){return this.program}removeExistingTypings(t){const n=i9(this.getCompilerOptions(),this.directoryStructureHost);return t.filter(i=>!n.includes(i))}updateGraphWorker(){var t,n;const i=this.languageService.getCurrentProgram();E.assert(i===this.program),E.assert(!this.isClosed(),"Called update graph worker of closed project"),this.writeLog(`Starting updateGraphWorker: Project: ${this.getProjectName()}`);const s=To(),{hasInvalidatedResolutions:o,hasInvalidatedLibResolutions:c}=this.resolutionCache.createHasInvalidatedResolutions(fd,fd);this.hasInvalidatedResolutions=o,this.hasInvalidatedLibResolutions=c,this.resolutionCache.startCachingPerDirectoryResolution(),this.dirty=!1,this.updateFromProjectInProgress=!0,this.program=this.languageService.getProgram(),this.updateFromProjectInProgress=!1,(t=qr)==null||t.push(qr.Phase.Session,"finishCachingPerDirectoryResolution"),this.resolutionCache.finishCachingPerDirectoryResolution(this.program,i),(n=qr)==null||n.pop(),E.assert(i===void 0||this.program!==void 0);let u=!1;if(this.program&&(!i||this.program!==i&&this.program.structureIsReused!==2)){if(u=!0,i){for(const d of i.getSourceFiles()){const y=this.program.getSourceFileByPath(d.resolvedPath);(!y||d.resolvedPath===d.path&&y.resolvedPath!==d.path)&&this.detachScriptInfoFromProject(d.fileName,!!this.program.getSourceFileByPath(d.path),!0)}i.forEachResolvedProjectReference(d=>{this.program.getResolvedProjectReferenceByPath(d.sourceFile.path)||this.detachScriptInfoFromProject(d.sourceFile.fileName,void 0,!0)})}if(Cq(this.program,this.missingFilesMap||(this.missingFilesMap=new Map),(d,y)=>this.addMissingFileWatcher(d,y)),this.generatedFilesMap){const d=no(this.compilerOptions);ide(this.generatedFilesMap)?(!d||!this.isValidGeneratedFileWatcher($u(d)+".d.ts",this.generatedFilesMap))&&this.clearGeneratedFileWatch():d?this.clearGeneratedFileWatch():this.generatedFilesMap.forEach((y,S)=>{const T=this.program.getSourceFileByPath(S);(!T||T.resolvedPath!==S||!this.isValidGeneratedFileWatcher(q5(T.fileName,this.compilerOptions,this.currentDirectory,this.program.getCommonSourceDirectory(),this.getCanonicalFileName),y))&&(Qf(y),this.generatedFilesMap.delete(S))})}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&&Am(this.changedFilesForExportMapCache,d=>{const y=i.getSourceFileByPath(d),S=this.program.getSourceFileByPath(d);return!y||!S?(this.exportMapCache.clear(),!0):this.exportMapCache.onFileChanged(y,S,!!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());const f=this.externalFiles||Wc;this.externalFiles=this.getExternalFiles(),l7(this.externalFiles,f,Ak(!this.useCaseSensitiveFileNames()),d=>{const y=this.projectService.getOrCreateScriptInfoNotOpenedByClient(d,this.currentDirectory,this.directoryStructureHost);y==null||y.attachToProject(this)},d=>this.detachScriptInfoFromProject(d));const g=To()-s;return this.sendPerformanceEvent("UpdateGraph",g),this.writeLog(`Finishing updateGraphWorker: Project: ${this.getProjectName()} projectStateVersion: ${this.projectStateVersion} projectProgramVersion: ${this.projectProgramVersion} structureChanged: ${u}${this.program?` structureIsReused:: ${v7[this.program.structureIsReused]}`:""} Elapsed: ${g}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(),u}sendPerformanceEvent(t,n){this.projectService.sendPerformanceEvent(t,n)}detachScriptInfoFromProject(t,n,i){const s=this.projectService.getScriptInfo(t);s&&(s.detachFromProject(this),n||this.resolutionCache.removeResolutionsOfFile(s.path,i))}addMissingFileWatcher(t,n){var i;if(Y1(this)){const o=this.projectService.configFileExistenceInfoCache.get(t);if((i=o==null?void 0:o.config)!=null&&i.projects.has(this.canonicalConfigFilePath))return p6}const s=this.projectService.watchFactory.watchFile(Xi(n,this.currentDirectory),(o,c)=>{Y1(this)&&this.getCachedDirectoryStructureHost().addOrDeleteFile(o,t,c),c===0&&this.missingFilesMap.has(t)&&(this.missingFilesMap.delete(t),s.close(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))},500,this.projectService.getWatchOptions(this),sl.MissingFile,this);return s}isWatchedMissingFile(t){return!!this.missingFilesMap&&this.missingFilesMap.has(t)}addGeneratedFileWatch(t,n){if(no(this.compilerOptions))this.generatedFilesMap||(this.generatedFilesMap=this.createGeneratedFileWatcher(t));else{const i=this.toPath(n);if(this.generatedFilesMap){if(ide(this.generatedFilesMap)){E.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),sl.MissingGeneratedFile,this)}}isValidGeneratedFileWatcher(t,n){return this.toPath(t)===n.generatedFilePath}clearGeneratedFileWatch(){this.generatedFilesMap&&(ide(this.generatedFilesMap)?Qf(this.generatedFilesMap):T_(this.generatedFilesMap,Qf),this.generatedFilesMap=void 0)}getScriptInfoForNormalizedPath(t){const n=this.projectService.getScriptInfoForPath(this.toPath(t));return n&&!n.isAttached(this)?g0.ThrowProjectDoesNotContainDocument(t,this):n}getScriptInfo(t){return this.projectService.getScriptInfo(t)}filesToString(t){return this.filesToStringWorker(t,!0,!1)}filesToStringWorker(t,n,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 E.assert(Ei(t)||H7(t)),{suffix:this.newLineCharacter}}}insertName(t,n,i){if(E.assert(!n.name),n.kind===219){const s=qa(n,39,t),o=qa(n,21,t);o?(this.insertNodesAt(t,o.getStart(t),[I.createToken(100),I.createIdentifier(i)],{joiner:" "}),uh(this,t,s)):(this.insertText(t,va(n.parameters).getStart(t),`function ${i}(`),this.replaceRange(t,s,I.createToken(22))),n.body.kind!==241&&(this.insertNodesAt(t,n.body.getStart(t),[I.createToken(19),I.createToken(107)],{joiner:" ",suffix:" "}),this.insertNodesAt(t,n.body.end,[I.createToken(27),I.createToken(20)],{joiner:" "}))}else{const s=qa(n,n.kind===218?100:86,t).end;this.insertNodeAt(t,s,I.createIdentifier(i),{prefix:" "})}}insertExportModifier(t,n){this.insertText(t,n.getStart(t),"export ")}insertImportSpecifierAtIndex(t,n,i,s){const o=i.elements[s-1];o?this.insertNodeInListAfter(t,o,n):this.insertNodeBefore(t,i.elements[0],n,!Uf(i.elements[0].getStart(),i.parent.parent.getStart(),t))}insertNodeInListAfter(t,n,i,s=ol.SmartIndenter.getContainingList(n,t)){if(!s){E.fail("node is not a list element");return}const o=Zk(s,n);if(o<0)return;const c=n.getEnd();if(o!==s.length-1){const u=Ui(t,n.end);if(u&&$Q(n,u)){const f=s[o+1],g=RPe(t.text,f.getFullStart()),d=`${Ws(u.kind)}${t.text.substring(u.end,g)}`;this.insertNodesAt(t,g,[i],{suffix:d})}}else{const u=n.getStart(t),f=Cp(u,t);let g,d=!1;if(s.length===1)g=28;else{const y=Yc(n.pos,t);g=$Q(n,y)?y.kind:28,d=Cp(s[o-1].getStart(t),t)!==f}if((fZe(t.text,n.end)||!Uf(s.pos,s.end,t))&&(d=!0),d){this.replaceRange(t,Vf(c),I.createToken(g));const y=ol.SmartIndenter.findFirstNonWhitespaceColumn(f,u,t,this.formatContext.options);let S=ca(t.text,c,!0,!1);for(;S!==c&&gu(t.text.charCodeAt(S-1));)S--;this.replaceRange(t,Vf(S),i,{indentation:y,prefix:this.newLineCharacter})}else this.replaceRange(t,Vf(c),i,{prefix:`${Ws(g)} `})}}parenthesizeExpression(t,n){this.replaceRange(t,MW(n),I.createParenthesizedExpression(n))}finishClassesWithNodesInsertedAtStart(){this.classesWithNodesInsertedAtStart.forEach(({node:t,sourceFile:n})=>{const[i,s]=hZe(t,n);if(i!==void 0&&s!==void 0){const o=XQ(t).length===0,c=Uf(i,s,n);o&&c&&i!==s-1&&this.deleteRange(n,Vf(i,s-1)),c&&this.insertText(n,s-1,this.newLineCharacter)}})}finishDeleteDeclarations(){const t=new Set;for(const{sourceFile:n,node:i}of this.deletedNodes)this.deletedNodes.some(s=>s.sourceFile===n&&Woe(s.node,i))||(ts(i)?this.deleteRange(n,RW(n,i)):_pe.deleteDeclaration(this,t,n,i));t.forEach(n=>{const i=n.getSourceFile(),s=ol.SmartIndenter.getContainingList(n,i);if(n!==ka(s))return;const o=XI(s,c=>!t.has(c),s.length-2);o!==-1&&this.deleteRange(i,{pos:s[o].end,end:ope(i,s[o+1])})})}getChanges(t){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();const n=YQ.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,t);return this.newFileChanges&&this.newFileChanges.forEach((i,s)=>{n.push(YQ.newFileChanges(s,i,this.newLineCharacter,this.formatContext))}),n}createNewFile(t,n,i){this.insertStatementsInNewFile(n,i,t)}},(e=>{function t(u,f,g,d){return Ri(V4(u,y=>y.sourceFile.path),y=>{const S=y[0].sourceFile,T=Bh(y,(w,P)=>w.range.pos-P.range.pos||w.range.end-P.range.end);for(let w=0;w`${JSON.stringify(T[w].range)} and ${JSON.stringify(T[w+1].range)}`);const k=Ri(T,w=>{const P=vy(w.range),F=w.kind===1?wr(ic(w.node))??w.sourceFile:w.kind===2?wr(ic(w.nodes[0]))??w.sourceFile:w.sourceFile,J=s(w,F,S,f,g,d);if(!(P.length===J.length&&Pce(F.text,J,P.start)))return GA(P,J)});return k.length>0?{fileName:S.fileName,textChanges:k}:void 0})}e.getTextChangesFromChanges=t;function n(u,f,g,d){const y=i(hF(u),f,g,d);return{fileName:u,textChanges:[GA(Wl(0,0),y)],isNewFile:!0}}e.newFileChanges=n;function i(u,f,g,d){const y=Zs(f,k=>k.statements.map(w=>w===4?"":c(w,k.oldFile,g).text)).join(g),S=qw("any file name",y,{languageVersion:99,jsDocParsingMode:1},!0,u),T=ol.formatDocument(S,d);return cpe(y,T)+g}e.newFileChangesWorker=i;function s(u,f,g,d,y,S){var T;if(u.kind===0)return"";if(u.kind===3)return u.text;const{options:k={},range:{pos:w}}=u,P=U=>o(U,f,g,w,k,d,y,S),F=u.kind===2?u.nodes.map(U=>Nk(P(U),d)).join(((T=u.options)==null?void 0:T.joiner)||d):P(u.node),J=k.indentation!==void 0||Cp(w,f)===w?F:F.replace(/^\s+/,"");return(k.prefix||"")+J+(!k.suffix||Yo(J,k.suffix)?"":k.suffix)}function o(u,f,g,d,{indentation:y,prefix:S,delta:T},k,w,P){const{node:F,text:J}=c(u,f,k);P&&P(F,J);const U=KL(w,f),$=y!==void 0?y:ol.SmartIndenter.getIndentation(d,g,U,S===k||Cp(d,f)===d);T===void 0&&(T=ol.SmartIndenter.shouldIndentChildNode(U,u)&&U.indentSize||0);const j={text:J,getLineAndCharacterOfPosition(R){return Ha(this,R)}},re=ol.formatNodeGivenIndentation(F,j,f.languageVariant,$,T,{...w,options:U});return cpe(J,re)}function c(u,f,g){const d=jPe(g),y=aN(g);return V1({newLine:y,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},d).writeNode(4,u,f,d),{text:d.getText(),node:QQ(u)}}e.getNonformattedText=c})(YQ||(YQ={})),zPe={...J3,factory:mw(J3.factory.flags|1,J3.factory.baseFactory)},(e=>{function t(o,c,u,f){switch(f.kind){case 169:{const T=f.parent;mo(T)&&T.parameters.length===1&&!qa(T,21,u)?o.replaceNodeWithText(u,f,"()"):VN(o,c,u,f);break}case 272:case 271:const g=u.imports.length&&f===va(u.imports).parent||f===wn(u.statements,kb);uh(o,u,f,{leadingTriviaOption:g?0:sf(f)?2:3});break;case 208:const d=f.parent;d.kind===207&&f!==ka(d.elements)?uh(o,u,f):VN(o,c,u,f);break;case 260:s(o,c,u,f);break;case 168:VN(o,c,u,f);break;case 276:const S=f.parent;S.elements.length===1?i(o,u,S):VN(o,c,u,f);break;case 274:i(o,u,f);break;case 27:uh(o,u,f,{trailingTriviaOption:0});break;case 100:uh(o,u,f,{leadingTriviaOption:0});break;case 263:case 262:uh(o,u,f,{leadingTriviaOption:sf(f)?2:3});break;default:f.parent?Rm(f.parent)&&f.parent.name===f?n(o,u,f.parent):Rs(f.parent)&&bs(f.parent.arguments,f)?VN(o,c,u,f):uh(o,u,f):uh(o,u,f)}}e.deleteDeclaration=t;function n(o,c,u){if(!u.namedBindings)uh(o,c,u.parent);else{const f=u.name.getStart(c),g=Ui(c,u.name.end);if(g&&g.kind===28){const d=ca(c.text,g.end,!1,!0);o.deleteRange(c,{pos:f,end:d})}else uh(o,c,u.name)}}function i(o,c,u){if(u.parent.name){const f=E.checkDefined(Ui(c,u.pos-1));o.deleteRange(c,{pos:f.getStart(c),end:u.end})}else{const f=w1(u,272);uh(o,c,f)}}function s(o,c,u,f){const{parent:g}=f;if(g.kind===299){o.deleteNodeRange(u,qa(g,21,u),qa(g,22,u));return}if(g.declarations.length!==1){VN(o,c,u,f);return}const d=g.parent;switch(d.kind){case 250:case 249:o.replaceNode(u,f,I.createObjectLiteralExpression());break;case 248:uh(o,u,g);break;case 243:uh(o,u,d,{leadingTriviaOption:sf(d)?2:3});break;default:E.assertNever(d)}}})(_pe||(_pe={}))}}),Kr={};Gc(Kr,{ChangeTracker:()=>JPe,LeadingTriviaOption:()=>lpe,TrailingTriviaOption:()=>upe,applyChanges:()=>cpe,assignPositionsToNode:()=>QQ,createWriter:()=>jPe,deleteNode:()=>uh,isThisTypeAnnotatable:()=>pZe,isValidLocationToAddComment:()=>BPe});var xZe=Dt({"src/services/_namespaces/ts.textChanges.ts"(){TZe()}}),fpe,ppe,kZe=Dt({"src/services/formatting/formattingContext.ts"(){qn(),fpe=(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))(fpe||{}),ppe=class{constructor(e,t,n){this.sourceFile=e,this.formattingRequestKind=t,this.options=n}updateContext(e,t,n,i,s){this.currentTokenSpan=E.checkDefined(e),this.currentTokenParent=E.checkDefined(t),this.nextTokenSpan=E.checkDefined(n),this.nextTokenParent=E.checkDefined(i),this.contextNode=E.checkDefined(s),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){const 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){const t=this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line,n=this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line;return t===n}BlockIsOnOneLine(e){const t=qa(e,19,this.sourceFile),n=qa(e,20,this.sourceFile);if(t&&n){const i=this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line,s=this.sourceFile.getLineAndCharacterOfPosition(n.getStart(this.sourceFile)).line;return i===s}return!1}}}});function dpe(e,t,n,i,s){const o=t===1?VPe:WPe;o.setText(e),o.resetTokenState(n);let c=!0,u,f,g,d,y;const S=s({advance:T,readTokenInfo:j,readEOFTokenRange:R,isOnToken:Y,isOnEOF:ue,getCurrentLeadingTrivia:()=>u,lastTrailingTriviaWasNewLine:()=>c,skipToEndOf:H,skipToStartOf:q,getTokenFullStart:()=>(y==null?void 0:y.token.pos)??o.getTokenStart(),getStartPos:()=>(y==null?void 0:y.token.pos)??o.getTokenStart()});return y=void 0,o.setText(void 0),S;function T(){y=void 0,o.getTokenFullStart()!==n?c=!!f&&ka(f).kind===4:o.scan(),u=void 0,f=void 0;let oe=o.getTokenFullStart();for(;oe(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))(mpe||{}),gpe=(e=>(e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines",e))(gpe||{})}});function UPe(){const e=[];for(let re=0;re<=165;re++)re!==1&&e.push(re);function t(...re){return{tokens:e.filter(R=>!re.some(Y=>Y===R)),isSpecific:!1}}const n={tokens:e,isSpecific:!1},i=vP([...e,3]),s=vP([...e,1]),o=HPe(83,165),c=HPe(30,79),u=[103,104,165,130,142,152],f=[46,47,55,54],g=[9,10,80,21,23,19,110,105],d=[80,21,110,105],y=[80,22,24,105],S=[80,21,110,105],T=[80,22,24,105],k=[2,3],w=[80,...tM],P=i,F=vP([80,32,3,86,95,102]),J=vP([22,3,92,113,98,93,85]),U=[On("IgnoreBeforeComment",n,k,iR,1),On("IgnoreAfterLineComment",2,n,iR,1),On("NotSpaceBeforeColon",n,59,[Di,sR,XPe],16),On("SpaceAfterColon",59,n,[Di,sR,VZe],4),On("NoSpaceBeforeQuestionMark",n,58,[Di,sR,XPe],16),On("SpaceAfterQuestionMarkInConditionalOperator",58,n,[Di,AZe],4),On("NoSpaceAfterQuestionMark",58,n,[Di,wZe],16),On("NoSpaceBeforeDot",n,[25,29],[Di,rKe],16),On("NoSpaceAfterDot",[25,29],n,[Di],16),On("NoSpaceBetweenImportParenInImportType",102,21,[Di,zZe],16),On("NoSpaceAfterUnaryPrefixOperator",f,g,[Di,sR],16),On("NoSpaceAfterUnaryPreincrementOperator",46,d,[Di],16),On("NoSpaceAfterUnaryPredecrementOperator",47,S,[Di],16),On("NoSpaceBeforeUnaryPostincrementOperator",y,46,[Di,_De],16),On("NoSpaceBeforeUnaryPostdecrementOperator",T,47,[Di,_De],16),On("SpaceAfterPostincrementWhenFollowedByAdd",46,40,[Di,Ty],4),On("SpaceAfterAddWhenFollowedByUnaryPlus",40,40,[Di,Ty],4),On("SpaceAfterAddWhenFollowedByPreincrement",40,46,[Di,Ty],4),On("SpaceAfterPostdecrementWhenFollowedBySubtract",47,41,[Di,Ty],4),On("SpaceAfterSubtractWhenFollowedByUnaryMinus",41,41,[Di,Ty],4),On("SpaceAfterSubtractWhenFollowedByPredecrement",41,47,[Di,Ty],4),On("NoSpaceAfterCloseBrace",20,[28,27],[Di],16),On("NewLineBeforeCloseBraceInBlockContext",i,20,[YPe],8),On("SpaceAfterCloseBrace",20,t(22),[Di,FZe],4),On("SpaceBetweenCloseBraceAndElse",20,93,[Di],4),On("SpaceBetweenCloseBraceAndWhile",20,117,[Di],4),On("NoSpaceBetweenEmptyBraceBrackets",19,20,[Di,nDe],16),On("SpaceAfterConditionalClosingParen",22,23,[aR],4),On("NoSpaceBetweenFunctionKeywordAndStar",100,42,[eDe],16),On("SpaceAfterStarInGeneratorDeclaration",42,80,[eDe],4),On("SpaceAfterFunctionInFuncDecl",100,n,[dS],4),On("NewLineAfterOpenBraceInBlockContext",19,n,[YPe],8),On("SpaceAfterGetSetInMember",[139,153],80,[dS],4),On("NoSpaceBetweenYieldKeywordAndStar",127,42,[Di,uDe],16),On("SpaceBetweenYieldOrYieldStarAndOperand",[127,42],n,[Di,uDe],4),On("NoSpaceBetweenReturnAndSemicolon",107,27,[Di],16),On("SpaceAfterCertainKeywords",[115,111,105,91,107,114,135],n,[Di],4),On("SpaceAfterLetConstInVariableDeclaration",[121,87],n,[Di,HZe],4),On("NoSpaceBeforeOpenParenInFuncCall",n,21,[Di,MZe,RZe],16),On("SpaceBeforeBinaryKeywordOperator",n,u,[Di,Ty],4),On("SpaceAfterBinaryKeywordOperator",u,n,[Di,Ty],4),On("SpaceAfterVoidOperator",116,n,[Di,YZe],4),On("SpaceBetweenAsyncAndOpenParen",134,21,[JZe,Di],4),On("SpaceBetweenAsyncAndFunctionKeyword",134,[100,80],[Di],4),On("NoSpaceBetweenTagAndTemplateString",[80,22],[15,16],[Di],16),On("SpaceBeforeJsxAttribute",n,80,[WZe,Di],4),On("SpaceBeforeSlashInJsxOpeningElement",n,44,[oDe,Di],4),On("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",44,32,[oDe,Di],16),On("NoSpaceBeforeEqualInJsxAttribute",n,64,[sDe,Di],16),On("NoSpaceAfterEqualInJsxAttribute",64,n,[sDe,Di],16),On("NoSpaceBeforeJsxNamespaceColon",80,59,[aDe],16),On("NoSpaceAfterJsxNamespaceColon",59,80,[aDe],16),On("NoSpaceAfterModuleImport",[144,149],21,[Di],16),On("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],n,[Di],4),On("SpaceBeforeCertainTypeScriptKeywords",n,[96,119,161],[Di],4),On("SpaceAfterModuleName",11,19,[GZe],4),On("SpaceBeforeArrow",n,39,[Di],4),On("SpaceAfterArrow",39,n,[Di],4),On("NoSpaceAfterEllipsis",26,80,[Di],16),On("NoSpaceAfterOptionalParameters",58,[22,28],[Di,sR],16),On("NoSpaceBetweenEmptyInterfaceBraceBrackets",19,20,[Di,$Ze],16),On("NoSpaceBeforeOpenAngularBracket",w,30,[Di,oR],16),On("NoSpaceBetweenCloseParenAndAngularBracket",22,30,[Di,oR],16),On("NoSpaceAfterOpenAngularBracket",30,n,[Di,oR],16),On("NoSpaceBeforeCloseAngularBracket",n,32,[Di,oR],16),On("NoSpaceAfterCloseAngularBracket",32,[21,23,32,28],[Di,oR,IZe,QZe],16),On("SpaceBeforeAt",[22,80],60,[Di],4),On("NoSpaceAfterAt",60,n,[Di],16),On("SpaceAfterDecorator",n,[128,80,95,90,86,126,125,123,124,139,153,23,42],[qZe],4),On("NoSpaceBeforeNonNullAssertionOperator",n,54,[Di,ZZe],16),On("NoSpaceAfterNewKeywordOnConstructorSignature",105,21,[Di,XZe],16),On("SpaceLessThanAndNonJSXTypeAnnotation",30,30,[Di],4)],$=[On("SpaceAfterConstructor",137,21,[Af("insertSpaceAfterConstructor"),Di],4),On("NoSpaceAfterConstructor",137,21,[nm("insertSpaceAfterConstructor"),Di],16),On("SpaceAfterComma",28,n,[Af("insertSpaceAfterCommaDelimiter"),Di,xpe,jZe,BZe],4),On("NoSpaceAfterComma",28,n,[nm("insertSpaceAfterCommaDelimiter"),Di,xpe],16),On("SpaceAfterAnonymousFunctionKeyword",[100,42],21,[Af("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),dS],4),On("NoSpaceAfterAnonymousFunctionKeyword",[100,42],21,[nm("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),dS],16),On("SpaceAfterKeywordInControl",o,21,[Af("insertSpaceAfterKeywordsInControlFlowStatements"),aR],4),On("NoSpaceAfterKeywordInControl",o,21,[nm("insertSpaceAfterKeywordsInControlFlowStatements"),aR],16),On("SpaceAfterOpenParen",21,n,[Af("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Di],4),On("SpaceBeforeCloseParen",n,22,[Af("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Di],4),On("SpaceBetweenOpenParens",21,21,[Af("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Di],4),On("NoSpaceBetweenParens",21,22,[Di],16),On("NoSpaceAfterOpenParen",21,n,[nm("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Di],16),On("NoSpaceBeforeCloseParen",n,22,[nm("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Di],16),On("SpaceAfterOpenBracket",23,n,[Af("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Di],4),On("SpaceBeforeCloseBracket",n,24,[Af("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Di],4),On("NoSpaceBetweenBrackets",23,24,[Di],16),On("NoSpaceAfterOpenBracket",23,n,[nm("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Di],16),On("NoSpaceBeforeCloseBracket",n,24,[nm("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Di],16),On("SpaceAfterOpenBrace",19,n,[$Pe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),QPe],4),On("SpaceBeforeCloseBrace",n,20,[$Pe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),QPe],4),On("NoSpaceBetweenEmptyBraceBrackets",19,20,[Di,nDe],16),On("NoSpaceAfterOpenBrace",19,n,[hpe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Di],16),On("NoSpaceBeforeCloseBrace",n,20,[hpe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Di],16),On("SpaceBetweenEmptyBraceBrackets",19,20,[Af("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),On("NoSpaceBetweenEmptyBraceBrackets",19,20,[hpe("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),Di],16),On("SpaceAfterTemplateHeadAndMiddle",[16,17],n,[Af("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),iDe],4,1),On("SpaceBeforeTemplateMiddleAndTail",n,[17,18],[Af("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Di],4),On("NoSpaceAfterTemplateHeadAndMiddle",[16,17],n,[nm("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),iDe],16,1),On("NoSpaceBeforeTemplateMiddleAndTail",n,[17,18],[nm("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Di],16),On("SpaceAfterOpenBraceInJsxExpression",19,n,[Af("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Di,KQ],4),On("SpaceBeforeCloseBraceInJsxExpression",n,20,[Af("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Di,KQ],4),On("NoSpaceAfterOpenBraceInJsxExpression",19,n,[nm("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Di,KQ],16),On("NoSpaceBeforeCloseBraceInJsxExpression",n,20,[nm("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Di,KQ],16),On("SpaceAfterSemicolonInFor",27,n,[Af("insertSpaceAfterSemicolonInForStatements"),Di,vpe],4),On("NoSpaceAfterSemicolonInFor",27,n,[nm("insertSpaceAfterSemicolonInForStatements"),Di,vpe],16),On("SpaceBeforeBinaryOperator",n,c,[Af("insertSpaceBeforeAndAfterBinaryOperators"),Di,Ty],4),On("SpaceAfterBinaryOperator",c,n,[Af("insertSpaceBeforeAndAfterBinaryOperators"),Di,Ty],4),On("NoSpaceBeforeBinaryOperator",n,c,[nm("insertSpaceBeforeAndAfterBinaryOperators"),Di,Ty],16),On("NoSpaceAfterBinaryOperator",c,n,[nm("insertSpaceBeforeAndAfterBinaryOperators"),Di,Ty],16),On("SpaceBeforeOpenParenInFuncDecl",n,21,[Af("insertSpaceBeforeFunctionParenthesis"),Di,dS],4),On("NoSpaceBeforeOpenParenInFuncDecl",n,21,[nm("insertSpaceBeforeFunctionParenthesis"),Di,dS],16),On("NewLineBeforeOpenBraceInControl",J,19,[Af("placeOpenBraceOnNewLineForControlBlocks"),aR,Tpe],8,1),On("NewLineBeforeOpenBraceInFunction",P,19,[Af("placeOpenBraceOnNewLineForFunctions"),dS,Tpe],8,1),On("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",F,19,[Af("placeOpenBraceOnNewLineForFunctions"),tDe,Tpe],8,1),On("SpaceAfterTypeAssertion",32,n,[Af("insertSpaceAfterTypeAssertion"),Di,Cpe],4),On("NoSpaceAfterTypeAssertion",32,n,[nm("insertSpaceAfterTypeAssertion"),Di,Cpe],16),On("SpaceBeforeTypeAnnotation",n,[58,59],[Af("insertSpaceBeforeTypeAnnotation"),Di,bpe],4),On("NoSpaceBeforeTypeAnnotation",n,[58,59],[nm("insertSpaceBeforeTypeAnnotation"),Di,bpe],16),On("NoOptionalSemicolon",27,s,[GPe("semicolons","remove"),eKe],32),On("OptionalSemicolon",n,s,[GPe("semicolons","insert"),tKe],64)],j=[On("NoSpaceBeforeSemicolon",n,27,[Di],16),On("SpaceBeforeOpenBraceInControl",J,19,[ype("placeOpenBraceOnNewLineForControlBlocks"),aR,kpe,Spe],4,1),On("SpaceBeforeOpenBraceInFunction",P,19,[ype("placeOpenBraceOnNewLineForFunctions"),dS,ZQ,kpe,Spe],4,1),On("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",F,19,[ype("placeOpenBraceOnNewLineForFunctions"),tDe,kpe,Spe],4,1),On("NoSpaceBeforeComma",n,28,[Di],16),On("NoSpaceBeforeOpenBracket",t(134,84),23,[Di],16),On("NoSpaceAfterCloseBracket",24,n,[Di,UZe],16),On("SpaceAfterSemicolon",27,n,[Di],4),On("SpaceBetweenForAndAwaitKeyword",99,135,[Di],4),On("SpaceBetweenStatements",[22,92,93,84],n,[Di,xpe,PZe],4),On("SpaceAfterTryCatchFinally",[113,85,98],19,[Di],4)];return[...U,...$,...j]}function On(e,t,n,i,s,o=0){return{leftTokenRange:qPe(t),rightTokenRange:qPe(n),rule:{debugName:e,context:i,action:s,flags:o}}}function vP(e){return{tokens:e,isSpecific:!0}}function qPe(e){return typeof e=="number"?vP([e]):ts(e)?vP(e):e}function HPe(e,t,n=[]){const i=[];for(let s=e;s<=t;s++)bs(n,s)||i.push(s);return vP(i)}function GPe(e,t){return n=>n.options&&n.options[e]===t}function Af(e){return t=>t.options&&Ka(t.options,e)&&!!t.options[e]}function hpe(e){return t=>t.options&&Ka(t.options,e)&&!t.options[e]}function nm(e){return t=>!t.options||!Ka(t.options,e)||!t.options[e]}function ype(e){return t=>!t.options||!Ka(t.options,e)||!t.options[e]||t.TokensAreOnSameLine()}function $Pe(e){return t=>!t.options||!Ka(t.options,e)||!!t.options[e]}function vpe(e){return e.contextNode.kind===248}function PZe(e){return!vpe(e)}function Ty(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 sR(e){return!Ty(e)}function XPe(e){return!bpe(e)}function bpe(e){const t=e.contextNode.kind;return t===172||t===171||t===169||t===260||DT(t)}function DZe(e){return xs(e.contextNode)&&e.contextNode.questionToken}function wZe(e){return!DZe(e)}function AZe(e){return e.contextNode.kind===227||e.contextNode.kind===194}function Spe(e){return e.TokensAreOnSameLine()||ZQ(e)}function QPe(e){return e.contextNode.kind===206||e.contextNode.kind===200||NZe(e)}function Tpe(e){return ZQ(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function YPe(e){return ZPe(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function NZe(e){return ZPe(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function ZPe(e){return KPe(e.contextNode)}function ZQ(e){return KPe(e.nextTokenParent)}function KPe(e){if(rDe(e))return!0;switch(e.kind){case 241:case 269:case 210:case 268:return!0}return!1}function dS(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 IZe(e){return!dS(e)}function eDe(e){return e.contextNode.kind===262||e.contextNode.kind===218}function tDe(e){return rDe(e.contextNode)}function rDe(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 FZe(e){switch(e.currentTokenParent.kind){case 263:case 267:case 266:case 299:case 268:case 255:return!0;case 241:{const t=e.currentTokenParent.parent;if(!t||t.kind!==219&&t.kind!==218)return!0}}return!1}function aR(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 nDe(e){return e.contextNode.kind===210}function OZe(e){return e.contextNode.kind===213}function LZe(e){return e.contextNode.kind===214}function MZe(e){return OZe(e)||LZe(e)}function RZe(e){return e.currentTokenSpan.kind!==28}function jZe(e){return e.nextTokenSpan.kind!==24}function BZe(e){return e.nextTokenSpan.kind!==22}function JZe(e){return e.contextNode.kind===219}function zZe(e){return e.contextNode.kind===205}function Di(e){return e.TokensAreOnSameLine()&&e.contextNode.kind!==12}function iDe(e){return e.contextNode.kind!==12}function xpe(e){return e.contextNode.kind!==284&&e.contextNode.kind!==288}function KQ(e){return e.contextNode.kind===294||e.contextNode.kind===293}function WZe(e){return e.nextTokenParent.kind===291||e.nextTokenParent.kind===295&&e.nextTokenParent.parent.kind===291}function sDe(e){return e.contextNode.kind===291}function VZe(e){return e.nextTokenParent.kind!==295}function aDe(e){return e.nextTokenParent.kind===295}function oDe(e){return e.contextNode.kind===285}function UZe(e){return!dS(e)&&!ZQ(e)}function qZe(e){return e.TokensAreOnSameLine()&&Wf(e.contextNode)&&cDe(e.currentTokenParent)&&!cDe(e.nextTokenParent)}function cDe(e){for(;e&&ot(e);)e=e.parent;return e&&e.kind===170}function HZe(e){return e.currentTokenParent.kind===261&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function kpe(e){return e.formattingRequestKind!==2}function GZe(e){return e.contextNode.kind===267}function $Ze(e){return e.contextNode.kind===187}function XZe(e){return e.contextNode.kind===180}function lDe(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 oR(e){return lDe(e.currentTokenSpan,e.currentTokenParent)||lDe(e.nextTokenSpan,e.nextTokenParent)}function Cpe(e){return e.contextNode.kind===216}function QZe(e){return!Cpe(e)}function YZe(e){return e.currentTokenSpan.kind===116&&e.currentTokenParent.kind===222}function uDe(e){return e.contextNode.kind===229&&e.contextNode.expression!==void 0}function ZZe(e){return e.contextNode.kind===235}function _De(e){return!KZe(e)}function KZe(e){switch(e.contextNode.kind){case 245:case 248:case 249:case 250:case 246:case 247:return!0;default:return!1}}function eKe(e){let t=e.nextTokenSpan.kind,n=e.nextTokenSpan.pos;if(gC(t)){const o=e.nextTokenParent===e.currentTokenParent?x2(e.currentTokenParent,Pr(e.currentTokenParent,c=>!c.parent),e.sourceFile):e.nextTokenParent.getFirstToken(e.sourceFile);if(!o)return!0;t=o.kind,n=o.getStart(e.sourceFile)}const i=e.sourceFile.getLineAndCharacterOfPosition(e.currentTokenSpan.pos).line,s=e.sourceFile.getLineAndCharacterOfPosition(n).line;return i===s?t===20||t===1:t===240||t===27?!1:e.contextNode.kind===264||e.contextNode.kind===265?!B_(e.currentTokenParent)||!!e.currentTokenParent.type||t!==21:xs(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 tKe(e){return UL(e.currentTokenSpan.end,e.currentTokenParent,e.sourceFile)}function rKe(e){return!Sn(e.contextNode)||!j_(e.contextNode.expression)||e.contextNode.expression.getText().includes(".")}var nKe=Dt({"src/services/formatting/rules.ts"(){qn(),HN()}});function iKe(e,t){return{options:e,getRules:sKe(),host:t}}function sKe(){return Epe===void 0&&(Epe=oKe(UPe())),Epe}function aKe(e){let t=0;return e&1&&(t|=28),e&2&&(t|=96),e&28&&(t|=28),e&96&&(t|=96),t}function oKe(e){const t=cKe(e);return n=>{const i=t[fDe(n.currentTokenSpan.kind,n.nextTokenSpan.kind)];if(i){const s=[];let o=0;for(const c of i){const u=~aKe(o);c.action&u&&Wi(c.context,f=>f(n))&&(s.push(c),o|=c.action)}if(s.length)return s}}}function cKe(e){const t=new Array(eY*eY),n=new Array(t.length);for(const i of e){const s=i.leftTokenRange.isSpecific&&i.rightTokenRange.isSpecific;for(const o of i.leftTokenRange.tokens)for(const c of i.rightTokenRange.tokens){const u=fDe(o,c);let f=t[u];f===void 0&&(f=t[u]=[]),lKe(f,i.rule,s,n,u)}}return t}function fDe(e,t){return E.assert(e<=165&&t<=165,"Must compute formatting context from tokens"),e*eY+t}function lKe(e,t,n,i,s){const o=t.action&3?n?0:bP.StopRulesAny:t.context!==iR?n?bP.ContextRulesSpecific:bP.ContextRulesAny:n?bP.NoContextRulesSpecific:bP.NoContextRulesAny,c=i[s]||0;e.splice(uKe(c,o),0,t),i[s]=_Ke(c,o)}function uKe(e,t){let n=0;for(let i=0;i<=t;i+=B6)n+=e&cR,e>>=B6;return n}function _Ke(e,t){const n=(e>>t&cR)+1;return E.assert((n&cR)===n,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),e&~(cR<(e[e.StopRulesSpecific=0]="StopRulesSpecific",e[e.StopRulesAny=B6*1]="StopRulesAny",e[e.ContextRulesSpecific=B6*2]="ContextRulesSpecific",e[e.ContextRulesAny=B6*3]="ContextRulesAny",e[e.NoContextRulesSpecific=B6*4]="NoContextRulesSpecific",e[e.NoContextRulesAny=B6*5]="NoContextRulesAny",e))(bP||{})}});function tY(e,t,n){const i={pos:e,end:t,kind:n};return E.isDebugging&&Object.defineProperty(i,"__debugKind",{get:()=>E.formatSyntaxKind(n)}),i}function pKe(e,t,n){const i=t.getLineAndCharacterOfPosition(e).line;if(i===0)return[];let s=c8(i,t);for(;Bd(t.text.charCodeAt(s));)s--;gu(t.text.charCodeAt(s))&&s--;const o={pos:K0(i-1,t),end:s+1};return lR(o,t,n,2)}function dKe(e,t,n){const i=Ppe(e,27,t);return pDe(Dpe(i),t,n,3)}function mKe(e,t,n){const i=Ppe(e,19,t);if(!i)return[];const s=i.parent,o=Dpe(s),c={pos:Cp(o.getStart(t),t),end:e};return lR(c,t,n,4)}function gKe(e,t,n){const i=Ppe(e,20,t);return pDe(Dpe(i),t,n,5)}function hKe(e,t){const n={pos:0,end:e.text.length};return lR(n,e,t,0)}function yKe(e,t,n,i){const s={pos:Cp(e,n),end:t};return lR(s,n,i,1)}function Ppe(e,t,n){const i=Yc(e,n);return i&&i.kind===t&&e===i.getEnd()?i:void 0}function Dpe(e){let t=e;for(;t&&t.parent&&t.parent.end===e.end&&!vKe(t.parent,t);)t=t.parent;return t}function vKe(e,t){switch(e.kind){case 263:case 264:return Pf(e.members,t);case 267:const n=e.body;return!!n&&n.kind===268&&Pf(n.statements,t);case 312:case 241:case 268:return Pf(e.statements,t);case 299:return Pf(e.block.statements,t)}return!1}function bKe(e,t){return n(t);function n(i){const s=Ss(i,o=>YH(o.getStart(t),o.end,e)&&o);if(s){const o=n(s);if(o)return o}return i}}function SKe(e,t){if(!e.length)return s;const n=e.filter(o=>Y3(t,o.start,o.start+o.length)).sort((o,c)=>o.start-c.start);if(!n.length)return s;let i=0;return o=>{for(;;){if(i>=n.length)return!1;const c=n[i];if(o.end<=c.start)return!1;if(bL(o.pos,o.end,c.start,c.start+c.length))return!0;i++}};function s(){return!1}}function TKe(e,t,n){const i=e.getStart(n);if(i===t.pos&&e.end===t.end)return i;const s=Yc(t.pos,n);return!s||s.end>=t.pos?e.pos:s.end}function xKe(e,t,n){let i=-1,s;for(;e;){const o=n.getLineAndCharacterOfPosition(e.getStart(n)).line;if(i!==-1&&o!==i)break;if(im.shouldIndentChildNode(t,e,s,n))return t.indentSize;i=o,s=e,e=e.parent}return 0}function kKe(e,t,n,i,s,o){const c={pos:e.pos,end:e.end};return dpe(t.text,n,c.pos,c.end,u=>dDe(c,e,i,s,u,o,1,f=>!1,t))}function pDe(e,t,n,i){if(!e)return[];const s={pos:Cp(e.getStart(t),t),end:e.end};return lR(s,t,n,i)}function lR(e,t,n,i){const s=bKe(e,t);return dpe(t.text,t.languageVariant,TKe(s,e,t),e.end,o=>dDe(e,s,im.getIndentationForNode(s,e,t,n.options),xKe(s,n.options,t),o,n,i,SKe(t.parseDiagnostics,e),t))}function dDe(e,t,n,i,s,{options:o,getRules:c,host:u},f,g,d){var y;const S=new ppe(d,f,o);let T,k,w,P,F,J=-1;const U=[];if(s.advance(),s.isOnToken()){const ge=d.getLineAndCharacterOfPosition(t.getStart(d)).line;let Fe=ge;Wf(t)&&(Fe=d.getLineAndCharacterOfPosition(gz(t,d)).line),ue(t,t,ge,Fe,n,i)}const $=s.getCurrentLeadingTrivia();if($){const ge=im.nodeWillIndentChild(o,t,void 0,d,!1)?n+o.indentSize:n;pe($,ge,!0,Fe=>{q(Fe,d.getLineAndCharacterOfPosition(Fe.pos),t,t,void 0),oe(Fe.pos,ge,!1)}),o.trimTrailingWhitespace!==!1&&Oe($)}if(k&&s.getTokenFullStart()>=e.end){const ge=s.isOnEOF()?s.readEOFTokenRange():s.isOnToken()?s.readTokenInfo(t).token:void 0;if(ge&&ge.pos===T){const Fe=((y=Yc(ge.end,d,t))==null?void 0:y.parent)||w;ee(ge,d.getLineAndCharacterOfPosition(ge.pos).line,Fe,k,P,w,Fe,void 0)}}return U;function j(ge,Fe,$e,Pt,at){if(Y3(Pt,ge,Fe)||VA(Pt,ge,Fe)){if(at!==-1)return at}else{const Je=d.getLineAndCharacterOfPosition(ge).line,pt=Cp(ge,d),zt=im.findFirstNonWhitespaceColumn(pt,ge,d,o);if(Je!==$e||ge===zt){const Vt=im.getBaseIndentation(o);return Vt>zt?Vt:zt}}return-1}function re(ge,Fe,$e,Pt,at,Je){const pt=im.shouldIndentChildNode(o,ge)?o.indentSize:0;return Je===Fe?{indentation:Fe===F?J:at.getIndentation(),delta:Math.min(o.indentSize,at.getDelta(ge)+pt)}:$e===-1?ge.kind===21&&Fe===F?{indentation:J,delta:at.getDelta(ge)}:im.childStartsOnTheSameLineWithElseInIfStatement(Pt,ge,Fe,d)||im.childIsUnindentedBranchOfConditionalExpression(Pt,ge,Fe,d)||im.argumentStartsOnSameLineAsPreviousArgument(Pt,ge,Fe,d)?{indentation:at.getIndentation(),delta:pt}:{indentation:at.getIndentation()+at.getDelta(ge),delta:pt}:{indentation:$e,delta:pt}}function R(ge){if(Hp(ge)){const Fe=wn(ge.modifiers,ta,vc(ge.modifiers,ql));if(Fe)return Fe.kind}switch(ge.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(ge.asteriskToken)return 42;case 172:case 169:const Fe=us(ge);if(Fe)return Fe.kind}}function Y(ge,Fe,$e,Pt){return{getIndentationForComment:(pt,zt,Vt)=>{switch(pt){case 20:case 24:case 22:return $e+Je(Vt)}return zt!==-1?zt:$e},getIndentationForToken:(pt,zt,Vt,hr)=>!hr&&at(pt,zt,Vt)?$e+Je(Vt):$e,getIndentation:()=>$e,getDelta:Je,recomputeIndentation:(pt,zt)=>{im.shouldIndentChildNode(o,zt,ge,d)&&($e+=pt?o.indentSize:-o.indentSize,Pt=im.shouldIndentChildNode(o,ge)?o.indentSize:0)}};function at(pt,zt,Vt){switch(zt){case 19:case 20:case 22:case 93:case 117:case 60:return!1;case 44:case 32:switch(Vt.kind){case 286:case 287:case 285:return!1}break;case 23:case 24:if(Vt.kind!==200)return!1;break}return Fe!==pt&&!(Wf(ge)&&zt===R(ge))}function Je(pt){return im.nodeWillIndentChild(o,ge,pt,d,!0)?Pt:0}}function ue(ge,Fe,$e,Pt,at,Je){if(!Y3(e,ge.getStart(d),ge.getEnd()))return;const pt=Y(ge,$e,at,Je);let zt=Fe;for(Ss(ge,er=>{Vt(er,-1,ge,pt,$e,Pt,!1)},er=>{hr(er,ge,$e,pt)});s.isOnToken()&&s.getTokenFullStart()Math.min(ge.end,e.end))break;Lr(er,ge,pt,ge)}function Vt(er,jt,Rt,Kn,Ji,yi,os,yr){if(E.assert(!ko(er)),_c(er)||Cte(Rt,er))return jt;const _i=er.getStart(d),ln=d.getLineAndCharacterOfPosition(_i).line;let Ht=ln;Wf(er)&&(Ht=d.getLineAndCharacterOfPosition(gz(er,d)).line);let Ue=-1;if(os&&Pf(e,Rt)&&(Ue=j(_i,er.end,Ji,e,jt),Ue!==-1&&(jt=Ue)),!Y3(e,er.pos,er.end))return er.ende.end)return jt;if(Hn.token.end>_i){Hn.token.pos>_i&&s.skipToStartOf(er);break}Lr(Hn,ge,Kn,ge)}if(!s.isOnToken()||s.getTokenFullStart()>=e.end)return jt;if(ET(er)){const Hn=s.readTokenInfo(er);if(er.kind!==12)return E.assert(Hn.token.end===er.end,"Token end is child end"),Lr(Hn,ge,Kn,er),jt}const Et=er.kind===170?ln:yi,fr=re(er,ln,Ue,ge,Kn,Et);return ue(er,zt,ln,Ht,fr.indentation,fr.delta),zt=ge,yr&&Rt.kind===209&&jt===-1&&(jt=fr.indentation),jt}function hr(er,jt,Rt,Kn){E.assert(Mv(er)),E.assert(!ko(er));const Ji=CKe(jt,er);let yi=Kn,os=Rt;if(!Y3(e,er.pos,er.end)){er.ender.pos)break;if(ln.token.kind===Ji){os=d.getLineAndCharacterOfPosition(ln.token.pos).line,Lr(ln,jt,Kn,jt);let Ht;if(J!==-1)Ht=J;else{const Ue=Cp(ln.token.pos,d);Ht=im.findFirstNonWhitespaceColumn(Ue,ln.token.pos,d,o)}yi=Y(jt,Rt,Ht,o.indentSize)}else Lr(ln,jt,Kn,jt)}let yr=-1;for(let ln=0;lnoe(fr.pos,Et,!1))}Ht!==-1&&Ue&&(oe(er.token.pos,Ht,yr===1),F=ln.line,J=Ht)}s.advance(),zt=jt}}function pe(ge,Fe,$e,Pt){for(const at of ge){const Je=Pf(e,at);switch(at.kind){case 3:Je&&K(at,Fe,!$e),$e=!1;break;case 2:$e&&Je&&Pt(at),$e=!1;break;case 4:$e=!0;break}}return $e}function H(ge,Fe,$e,Pt){for(const at of ge)if(DL(at.kind)&&Pf(e,at)){const Je=d.getLineAndCharacterOfPosition(at.pos);q(at,Je,Fe,$e,Pt)}}function q(ge,Fe,$e,Pt,at){const Je=g(ge);let pt=0;if(!Je)if(k)pt=ee(ge,Fe.line,$e,k,P,w,Pt,at);else{const zt=d.getLineAndCharacterOfPosition(e.pos);fe(zt.line,Fe.line)}return k=ge,T=ge.end,w=$e,P=Fe.line,pt}function ee(ge,Fe,$e,Pt,at,Je,pt,zt){S.updateContext(Pt,Je,ge,$e,pt);const Vt=c(S);let hr=S.options.trimTrailingWhitespace!==!1,Lr=0;return Vt?dD(Vt,er=>{if(Lr=ft(er,Pt,at,ge,Fe),zt)switch(Lr){case 2:$e.getStart(d)===ge.pos&&zt.recomputeIndentation(!1,pt);break;case 1:$e.getStart(d)===ge.pos&&zt.recomputeIndentation(!0,pt);break;default:E.assert(Lr===0)}hr=hr&&!(er.action&16)&&er.flags!==1}):hr=hr&&ge.kind!==1,Fe!==at&&hr&&fe(at,Fe,Pt),Lr}function oe(ge,Fe,$e){const Pt=wpe(Fe,o);if($e)xe(ge,0,Pt);else{const at=d.getLineAndCharacterOfPosition(ge),Je=K0(at.line,d);(Fe!==Se(Je,at.character)||ae(Pt,Je))&&xe(Je,at.character,Pt)}}function Se(ge,Fe){let $e=0;for(let Pt=0;Pt0){const yi=wpe(Ji,o);xe(Rt,Kn.character,yi)}else be(Rt,Kn.character)}}function fe(ge,Fe,$e){for(let Pt=ge;PtJe)continue;const pt=ke(at,Je);pt!==-1&&(E.assert(pt===at||!Bd(d.text.charCodeAt(pt-1))),be(pt,Je+1-pt))}}function ke(ge,Fe){let $e=Fe;for(;$e>=ge&&Bd(d.text.charCodeAt($e));)$e--;return $e!==Fe?$e+1:-1}function Oe(ge){let Fe=k?k.end:e.pos;for(const $e of ge)DL($e.kind)&&(Fe<$e.pos&&me(Fe,$e.pos-1,k),Fe=$e.end+1);FeWA(g,t)||t===g.end&&(g.kind===2||t===e.getFullWidth()))}function CKe(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 EKe(e){switch(e){case 21:return 22;case 30:return 32;case 19:return 20}return 0}function wpe(e,t){if((!rY||rY.tabSize!==t.tabSize||rY.indentSize!==t.indentSize)&&(rY={tabSize:t.tabSize,indentSize:t.indentSize},UN=qN=void 0),t.convertTabsToSpaces){let i;const s=Math.floor(e/t.indentSize),o=e%t.indentSize;return qN||(qN=[]),qN[s]===void 0?(i=XA(" ",t.indentSize*s),qN[s]=i):i=qN[s],o?i+XA(" ",o):i}else{const i=Math.floor(e/t.tabSize),s=e-i*t.tabSize;let o;return UN||(UN=[]),UN[i]===void 0?UN[i]=o=XA(" ",i):o=UN[i],s?o+XA(" ",s):o}}var rY,UN,qN,PKe=Dt({"src/services/formatting/formatting.ts"(){qn(),HN()}}),im,DKe=Dt({"src/services/formatting/smartIndenter.ts"(){qn(),HN(),(e=>{let t;(K=>{K[K.Unknown=-1]="Unknown"})(t||(t={}));function n(K,fe,ke,Oe=!1){if(K>fe.text.length)return u(ke);if(ke.indentStyle===0)return 0;const me=Yc(K,fe,void 0,!0),be=mDe(fe,K,me||null);if(be&&be.kind===3)return i(fe,K,ke,be);if(!me)return u(ke);if(iG(me.kind)&&me.getStart(fe)<=K&&K=0),me<=be)return q(K0(be,K),fe,K,ke);const xe=K0(me,K),{column:De,character:ft}=H(xe,fe,K,ke);return De===0?De:K.text.charCodeAt(xe+ft)===42?De-1:De}function s(K,fe,ke){let Oe=fe;for(;Oe>0;){const be=K.text.charCodeAt(Oe);if(!Xg(be))break;Oe--}const me=Cp(Oe,K);return q(me,Oe,K,ke)}function o(K,fe,ke,Oe,me,be){let xe,De=ke;for(;De;){if(ZH(De,fe,K)&&Se(be,De,xe,K,!0)){const ge=k(De,K),Fe=T(ke,De,Oe,K),$e=Fe!==0?me&&Fe===2?be.indentSize:0:Oe!==ge.line?be.indentSize:0;return f(De,ge,void 0,$e,K,!0,be)}const ft=Y(De,K,be,!0);if(ft!==-1)return ft;xe=De,De=De.parent}return u(be)}function c(K,fe,ke,Oe){const me=ke.getLineAndCharacterOfPosition(K.getStart(ke));return f(K,me,fe,0,ke,!1,Oe)}e.getIndentationForNode=c;function u(K){return K.baseIndentSize||0}e.getBaseIndentation=u;function f(K,fe,ke,Oe,me,be,xe){var De;let ft=K.parent;for(;ft;){let ge=!0;if(ke){const at=K.getStart(me);ge=atke.end}const Fe=g(ft,K,me),$e=Fe.line===fe.line||P(ft,K,fe.line,me);if(ge){const at=(De=U(K,me))==null?void 0:De[0],Je=!!at&&k(at,me).line>Fe.line;let pt=Y(K,me,xe,Je);if(pt!==-1||(pt=y(K,ft,fe,$e,me,xe),pt!==-1))return pt+Oe}Se(xe,ft,K,me,be)&&!$e&&(Oe+=xe.indentSize);const Pt=w(ft,K,fe.line,me);K=ft,ft=K.parent,fe=Pt?me.getLineAndCharacterOfPosition(K.getStart(me)):Fe}return Oe+u(xe)}function g(K,fe,ke){const Oe=U(fe,ke),me=Oe?Oe.pos:K.getStart(ke);return ke.getLineAndCharacterOfPosition(me)}function d(K,fe,ke){const Oe=Voe(K);return Oe&&Oe.listItemIndex>0?ue(Oe.list.getChildren(),Oe.listItemIndex-1,fe,ke):-1}function y(K,fe,ke,Oe,me,be){return(yu(K)||n8(K))&&(fe.kind===312||!Oe)?pe(ke,me,be):-1}let S;(K=>{K[K.Unknown=0]="Unknown",K[K.OpenBrace=1]="OpenBrace",K[K.CloseBrace=2]="CloseBrace"})(S||(S={}));function T(K,fe,ke,Oe){const me=x2(K,fe,Oe);if(!me)return 0;if(me.kind===19)return 1;if(me.kind===20){const be=k(me,Oe).line;return ke===be?2:0}return 0}function k(K,fe){return fe.getLineAndCharacterOfPosition(K.getStart(fe))}function w(K,fe,ke,Oe){if(!(Rs(K)&&bs(K.arguments,fe)))return!1;const me=K.expression.getEnd();return Ha(Oe,me).line===ke}e.isArgumentAndStartLineOverlapsExpressionBeingCalled=w;function P(K,fe,ke,Oe){if(K.kind===245&&K.elseStatement===fe){const me=qa(K,93,Oe);return E.assert(me!==void 0),k(me,Oe).line===ke}return!1}e.childStartsOnTheSameLineWithElseInIfStatement=P;function F(K,fe,ke,Oe){if(JC(K)&&(fe===K.whenTrue||fe===K.whenFalse)){const me=Ha(Oe,K.condition.end).line;if(fe===K.whenTrue)return ke===me;{const be=k(K.whenTrue,Oe).line,xe=Ha(Oe,K.whenTrue.end).line;return me===be&&xe===ke}}return!1}e.childIsUnindentedBranchOfConditionalExpression=F;function J(K,fe,ke,Oe){if(Jd(K)){if(!K.arguments)return!1;const me=wn(K.arguments,ft=>ft.pos===fe.pos);if(!me)return!1;const be=K.arguments.indexOf(me);if(be===0)return!1;const xe=K.arguments[be-1],De=Ha(Oe,xe.getEnd()).line;if(ke===De)return!0}return!1}e.argumentStartsOnSameLineAsPreviousArgument=J;function U(K,fe){return K.parent&&j(K.getStart(fe),K.getEnd(),K.parent,fe)}e.getContainingList=U;function $(K,fe,ke){return fe&&j(K,K,fe,ke)}function j(K,fe,ke,Oe){switch(ke.kind){case 183:return me(ke.typeArguments);case 210:return me(ke.properties);case 209:return me(ke.elements);case 187:return me(ke.members);case 262:case 218:case 219:case 174:case 173:case 179:case 176:case 185:case 180:return me(ke.typeParameters)||me(ke.parameters);case 177:return me(ke.parameters);case 263:case 231:case 264:case 265:case 352:return me(ke.typeParameters);case 214:case 213:return me(ke.typeArguments)||me(ke.arguments);case 261:return me(ke.declarations);case 275:case 279:return me(ke.elements);case 206:case 207:return me(ke.elements)}function me(be){return be&&VA(re(ke,be,Oe),K,fe)?be:void 0}}function re(K,fe,ke){const Oe=K.getChildren(ke);for(let me=1;me=0&&fe=0;xe--){if(K[xe].kind===28)continue;if(ke.getLineAndCharacterOfPosition(K[xe].end).line!==be.line)return pe(be,ke,Oe);be=k(K[xe],ke)}return-1}function pe(K,fe,ke){const Oe=fe.getPositionOfLineAndCharacter(K.line,0);return q(Oe,Oe+K.character,fe,ke)}function H(K,fe,ke,Oe){let me=0,be=0;for(let xe=K;xeppe,FormattingRequestKind:()=>fpe,RuleAction:()=>mpe,RuleFlags:()=>gpe,SmartIndenter:()=>im,anyContext:()=>iR,createTextRangeWithKind:()=>tY,formatDocument:()=>hKe,formatNodeGivenIndentation:()=>kKe,formatOnClosingCurly:()=>gKe,formatOnEnter:()=>pKe,formatOnOpeningCurly:()=>mKe,formatOnSemicolon:()=>dKe,formatSelection:()=>yKe,getAllRules:()=>UPe,getFormatContext:()=>iKe,getFormattingScanner:()=>dpe,getIndentationString:()=>wpe,getRangeOfEnclosingComment:()=>mDe});var HN=Dt({"src/services/_namespaces/ts.formatting.ts"(){kZe(),CZe(),EZe(),nKe(),fKe(),PKe(),DKe()}}),qn=Dt({"src/services/_namespaces/ts.ts"(){Fs(),LA(),Rje(),oBe(),_Be(),VTe(),xBe(),kBe(),NBe(),zBe(),WBe(),UBe(),ZBe(),KBe(),bVe(),SVe(),kVe(),UVe(),HVe(),ra(),Pfe(),Jfe(),bQe(),CQe(),WQe(),pxe(),Oxe(),lYe(),hYe(),Vm(),CYe(),KYe(),oZe(),_Ze(),xZe(),HN()}});function wKe(){return yDe??(yDe=new Lp(ld))}function gDe(e,t,n,i,s){let o=t?"DeprecationError: ":"DeprecationWarning: ";return o+=`'${e}' `,o+=i?`has been deprecated since v${i}`:"is deprecated",o+=t?" and can no longer be used.":n?` and will no longer be usable after v${n}.`:".",o+=s?` ${xg(s,[e])}`:"",o}function AKe(e,t,n,i){const s=gDe(e,!0,t,n,i);return()=>{throw new TypeError(s)}}function NKe(e,t,n,i){let s=!1;return()=>{hDe&&!s&&(E.log.warn(gDe(e,!1,t,n,i)),s=!0)}}function IKe(e,t={}){const n=typeof t.typeScriptVersion=="string"?new Lp(t.typeScriptVersion):t.typeScriptVersion??wKe(),i=typeof t.errorAfter=="string"?new Lp(t.errorAfter):t.errorAfter,s=typeof t.warnAfter=="string"?new Lp(t.warnAfter):t.warnAfter,o=typeof t.since=="string"?new Lp(t.since):t.since??s,c=t.error||i&&n.compareTo(i)>=0,u=!s||n.compareTo(s)>=0;return c?AKe(e,i,o,t.message):u?NKe(e,i,o,t.message):Ca}function FKe(e,t){return function(){return e(),t.apply(this,arguments)}}function Ape(e,t){const n=IKe((t==null?void 0:t.name)??E.getFunctionName(e),t);return FKe(n,e)}var hDe,yDe,vDe=Dt({"src/deprecatedCompat/deprecate.ts"(){iY(),hDe=!0}});function nY(e,t,n,i){if(Object.defineProperty(o,"name",{...Object.getOwnPropertyDescriptor(o,"name"),value:e}),i)for(const c of Object.keys(i)){const u=+c;!isNaN(u)&&Ka(t,`${u}`)&&(t[u]=Ape(t[u],{...i[u],name:e}))}const s=OKe(t,n);return o;function o(...c){const u=s(c),f=u!==void 0?t[u]:void 0;if(typeof f=="function")return f(...c);throw new TypeError("Invalid arguments")}}function OKe(e,t){return n=>{for(let i=0;Ka(e,`${i}`)&&Ka(t,`${i}`);i++){const s=t[i];if(s(n))return i}}}function bDe(e){return{overload:t=>({bind:n=>({finish:()=>nY(e,t,n),deprecate:i=>({finish:()=>nY(e,t,n,i)})})})}}var LKe=Dt({"src/deprecatedCompat/deprecations.ts"(){iY(),vDe()}}),MKe=Dt({"src/deprecatedCompat/5.0/identifierProperties.ts"(){iY(),vDe(),$re(e=>{const t=e.getIdentifierConstructor();Ka(t.prototype,"originalKeywordKind")||Object.defineProperty(t.prototype,"originalKeywordKind",{get:Ape(function(){return v1(this)},{name:"originalKeywordKind",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use 'identifierToKeywordKind(identifier)' instead."})}),Ka(t.prototype,"isInJSDocNamespace")||Object.defineProperty(t.prototype,"isInJSDocNamespace",{get:Ape(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."})})})}}),iY=Dt({"src/deprecatedCompat/_namespaces/ts.ts"(){Fs(),LKe(),MKe()}}),RKe=Dt({"src/typingsInstallerCore/_namespaces/ts.ts"(){Fs(),LA(),Ipe()}});function SDe(e,t,n,i){try{const s=t6(t,Mn(e,"index.d.ts"),{moduleResolution:2},n);return s.resolvedModule&&s.resolvedModule.resolvedFileName}catch(s){i.isEnabled()&&i.writeLine(`Failed to resolve ${t} in folder '${e}': ${s.message}`);return}}function jKe(e,t,n,i){let s=!1;for(let o=n.length;o>0;){const c=TDe(e,t,n,o);o=c.remaining,s=i(c.command)||s}return s}function TDe(e,t,n,i){const s=n.length-i;let o,c=i;for(;o=`${e} install --ignore-scripts ${(c===n.length?n:n.slice(s,s+c)).join(" ")} --save-dev --user-agent="typesInstaller/${t}"`,!(o.length<8e3);)c=c-Math.floor(c/2);return{command:o,remaining:i-c}}function xDe(e){return`@types/${e}@ts${qg}`}var kDe,CDe,BKe=Dt({"src/typingsInstallerCore/typingsInstaller.ts"(){RKe(),Ipe(),kDe={isEnabled:()=>!1,writeLine:Ca},CDe=class{constructor(e,t,n,i,s,o=kDe){this.installTypingHost=e,this.globalCachePath=t,this.safeListPath=n,this.typesMapLocation=i,this.throttleLimit=s,this.log=o,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 '${n}', 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":{const t={};this.typesRegistry.forEach((i,s)=>{t[s]=i});const n={kind:lL,typesRegistry:t};this.sendResponse(n);break}case"installPackage":{this.installPackage(e);break}default:E.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:X3,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${q1(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();const t=rm.discoverTypings(this.installTypingHost,this.log.isEnabled()?n=>this.log.writeLine(n):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){const{fileName:t,packageName:n,projectName:i,projectRootPath:s,id:o}=e,c=jp(Un(t),u=>{if(this.installTypingHost.fileExists(Mn(u,"package.json")))return u})||s;if(c)this.installWorker(-1,[n],c,u=>{const f=u?`Package ${n} installed.`:`There was an error installing ${n}.`,g={kind:OA,projectName:i,id:o,success:u,message:f};this.sendResponse(g)});else{const u={kind:OA,projectName:i,id:o,success:!1,message:"Could not determine a project root path."};this.sendResponse(u)}}initializeSafeList(){if(this.typesMapLocation){const e=rm.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=rm.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}const t=Mn(e,"package.json"),n=Mn(e,"package-lock.json");if(this.log.isEnabled()&&this.log.writeLine(`Trying to find '${t}'...`),this.installTypingHost.fileExists(t)&&this.installTypingHost.fileExists(n)){const i=JSON.parse(this.installTypingHost.readFile(t)),s=JSON.parse(this.installTypingHost.readFile(n));if(this.log.isEnabled()&&(this.log.writeLine(`Loaded content of '${t}':${q1(i)}`),this.log.writeLine(`Loaded content of '${n}':${q1(s)}`)),i.devDependencies&&s.dependencies)for(const o in i.devDependencies){if(!Ka(s.dependencies,o))continue;const c=wc(o);if(!c)continue;const u=SDe(e,c,this.installTypingHost,this.log);if(!u){this.missingTypingsSet.add(c);continue}const f=this.packageNameToTypingLocation.get(c);if(f){if(f.typingLocation===u)continue;this.log.isEnabled()&&this.log.writeLine(`New typing for package ${c} from '${u}' conflicts with existing typing file '${f}'`)}this.log.isEnabled()&&this.log.writeLine(`Adding entry into typings cache: '${c}' => '${u}'`);const g=ZI(s.dependencies,o),d=g&&g.version;if(!d)continue;const y={typingLocation:u,version:new Lp(d)};this.packageNameToTypingLocation.set(c,y)}}this.log.isEnabled()&&this.log.writeLine(`Finished processing cache location '${e}'`),this.knownCachesSet.add(e)}filterTypings(e){return Ri(e,t=>{const n=n6(t);if(this.missingTypingsSet.has(n)){this.log.isEnabled()&&this.log.writeLine(`'${t}':: '${n}' is in missingTypingsSet - skipping...`);return}const i=rm.validatePackageName(t);if(i!==rm.NameValidationResult.Ok){this.missingTypingsSet.add(n),this.log.isEnabled()&&this.log.writeLine(rm.renderPackageNameValidationFailure(i,t));return}if(!this.typesRegistry.has(n)){this.log.isEnabled()&&this.log.writeLine(`'${t}':: Entry for package '${n}' does not exist in local types registry - skipping...`);return}if(this.packageNameToTypingLocation.get(n)&&rm.isTypingUpToDate(this.packageNameToTypingLocation.get(n),this.typesRegistry.get(n))){this.log.isEnabled()&&this.log.writeLine(`'${t}':: '${n}' already has an up-to-date typing - skipping...`);return}return n})}ensurePackageDirectoryExists(e){const t=Mn(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,n,i){this.log.isEnabled()&&this.log.writeLine(`Installing typings ${JSON.stringify(i)}`);const s=this.filterTypings(i);if(s.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,n));return}this.ensurePackageDirectoryExists(t);const o=this.installRunCount;this.installRunCount++,this.sendResponse({kind:uL,eventId:o,typingsInstallerVersion:ld,projectName:e.projectName});const c=s.map(xDe);this.installTypingsAsync(o,c,t,u=>{try{if(!u){this.log.isEnabled()&&this.log.writeLine(`install request failed, marking packages as missing to prevent repeated requests: ${JSON.stringify(s)}`);for(const g of s)this.missingTypingsSet.add(g);return}this.log.isEnabled()&&this.log.writeLine(`Installed typings ${JSON.stringify(c)}`);const f=[];for(const g of s){const d=SDe(t,g,this.installTypingHost,this.log);if(!d){this.missingTypingsSet.add(g);continue}const y=this.typesRegistry.get(g),S=new Lp(y[`ts${qg}`]||y[this.latestDistTag]),T={typingLocation:d,version:S};this.packageNameToTypingLocation.set(g,T),f.push(d)}this.log.isEnabled()&&this.log.writeLine(`Installed typing files ${JSON.stringify(f)}`),this.sendResponse(this.createSetTypings(e,n.concat(f)))}finally{const f={kind:_L,eventId:o,projectName:e.projectName,packagesToInstall:c,installSuccess:u,typingsInstallerVersion:ld};this.sendResponse(f)}})}ensureDirectoryExists(e,t){const n=Un(e);t.directoryExists(n)||this.ensureDirectoryExists(n,t),t.directoryExists(e)||t.createDirectory(e)}watchFiles(e,t){if(!t.length){this.closeWatchers(e);return}const n=this.projectWatchers.get(e),i=new Set(t);!n||Am(i,s=>!n.has(s))||Am(n,s=>!i.has(s))?(this.projectWatchers.set(e,i),this.sendResponse({kind:X3,projectName:e,files:t})):this.sendResponse({kind:X3,projectName:e,files:void 0})}createSetTypings(e,t){return{projectName:e.projectName,typeAcquisition:e.typeAcquisition,compilerOptions:e.compilerOptions,typings:t,unresolvedImports:e.unresolvedImports,kind:IA}}installTypingsAsync(e,t,n,i){this.pendingRunRequests.unshift({requestId:e,packageNames:t,cwd:n,onRequestCompleted:i}),this.executeWithThrottling()}executeWithThrottling(){for(;this.inFlightRequestCount{this.inFlightRequestCount--,e.onRequestCompleted(t),this.executeWithThrottling()})}}}}}),Npe={};Gc(Npe,{TypingsInstaller:()=>CDe,getNpmCommandForInstallation:()=>TDe,installNpmPackages:()=>jKe,typingsName:()=>xDe});var JKe=Dt({"src/typingsInstallerCore/_namespaces/ts.server.typingsInstaller.ts"(){BKe()}}),Ipe=Dt({"src/typingsInstallerCore/_namespaces/ts.server.ts"(){fL(),JKe()}}),zKe=Dt({"src/server/types.ts"(){}});function Fpe(e,t,n,i){return{projectName:e.getProjectName(),fileNames:e.getFileNames(!0,!0).concat(e.getExcludedFiles()),compilerOptions:e.getCompilationSettings(),typeAcquisition:t,unresolvedImports:n,projectRootPath:e.getCurrentDirectory(),cachePath:i,kind:"discover"}}function zo(e){return Hs(e)}function GN(e,t,n){const i=F_(e)?e:Xi(e,t);return n(i)}function EDe(e){return e}function PDe(){const e=new Map;return{get(t){return e.get(t)},set(t,n){e.set(t,n)},contains(t){return e.has(t)},remove(t){e.delete(t)}}}function Ope(e){return/dev\/null\/inferredProject\d+\*/.test(e)}function Lpe(e){return`/dev/null/inferredProject${e}*`}function Mpe(e){return`/dev/null/autoImportProviderProject${e}*`}function Rpe(e){return`/dev/null/auxiliaryProject${e}*`}function jpe(){return[]}var sY,Wc,aY,g0,WKe=Dt({"src/server/utilitiesPublic.ts"(){xy(),sY=(e=>(e[e.terse=0]="terse",e[e.normal=1]="normal",e[e.requestTime=2]="requestTime",e[e.verbose=3]="verbose",e))(sY||{}),Wc=jpe(),aY=(e=>(e.Err="Err",e.Info="Info",e.Perf="Perf",e))(aY||{}),(e=>{function t(){throw new Error("No Project.")}e.ThrowNoProject=t;function n(){throw new Error("The project's language service is disabled.")}e.ThrowProjectLanguageServiceDisabled=n;function i(s,o){throw new Error(`Project '${o.getProjectName()}' does not contain document '${s}'`)}e.ThrowProjectDoesNotContainDocument=i})(g0||(g0={}))}});function oY(e){const t=wc(e);return t==="tsconfig.json"||t==="jsconfig.json"?t:void 0}function DDe(e,t,n){if(!e||e.length===0)return;if(e[0]===t){e.splice(0,1);return}const i=Jh(e,t,wo,n);i>=0&&e.splice(i,1)}var cY,lY,VKe=Dt({"src/server/utilities.ts"(){xy(),gS(),cY=class C5e{constructor(t,n){this.host=t,this.pendingTimeouts=new Map,this.logger=n.hasLevel(3)?n:void 0}schedule(t,n,i){const s=this.pendingTimeouts.get(t);s&&this.host.clearTimeout(s),this.pendingTimeouts.set(t,this.host.setTimeout(C5e.run,n,t,this,i)),this.logger&&this.logger.info(`Scheduled: ${t}${s?", Cancelled earlier one":""}`)}cancel(t){const n=this.pendingTimeouts.get(t);return n?(this.host.clearTimeout(n),this.pendingTimeouts.delete(t)):!1}static run(t,n,i){var s,o;(s=wu)==null||s.logStartScheduledOperation(t),n.pendingTimeouts.delete(t),n.logger&&n.logger.info(`Running: ${t}`),i(),(o=wu)==null||o.logStopScheduledOperation()}},lY=class E5e{constructor(t,n,i){this.host=t,this.delay=n,this.logger=i}scheduleCollect(){!this.host.gc||this.timerId!==void 0||(this.timerId=this.host.setTimeout(E5e.run,this.delay,this))}static run(t){var n,i;t.timerId=void 0,(n=wu)==null||n.logStartScheduledOperation("GC collect");const s=t.logger.hasLevel(2),o=s&&t.host.getMemoryUsage();if(t.host.gc(),s){const c=t.host.getMemoryUsage();t.logger.perftrc(`GC::before ${o}, after ${c}`)}(i=wu)==null||i.logStopScheduledOperation()}}}}),uY,Bpe,Jpe,zpe,Wpe,Vpe,Upe,qpe,Hpe,Gpe,$pe,Xpe,Qpe,Ype,Zpe=Dt({"src/server/protocol.ts"(){uY=(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))(uY||{}),Bpe=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(Bpe||{}),Jpe=(e=>(e.FixedPollingInterval="FixedPollingInterval",e.PriorityPollingInterval="PriorityPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e.UseFsEvents="UseFsEvents",e.UseFsEventsOnParentDirectory="UseFsEventsOnParentDirectory",e))(Jpe||{}),zpe=(e=>(e.UseFsEvents="UseFsEvents",e.FixedPollingInterval="FixedPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e))(zpe||{}),Wpe=(e=>(e.FixedInterval="FixedInterval",e.PriorityInterval="PriorityInterval",e.DynamicPriority="DynamicPriority",e.FixedChunkSize="FixedChunkSize",e))(Wpe||{}),Vpe=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(Vpe||{}),Upe=(e=>(e.None="None",e.Block="Block",e.Smart="Smart",e))(Upe||{}),qpe=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(qpe||{}),Hpe=(e=>(e.None="None",e.Preserve="Preserve",e.ReactNative="ReactNative",e.React="React",e))(Hpe||{}),Gpe=(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))(Gpe||{}),$pe=(e=>(e.Classic="Classic",e.Node="Node",e.Node10="Node10",e.Node16="Node16",e.NodeNext="NodeNext",e.Bundler="Bundler",e))($pe||{}),Xpe=(e=>(e.Crlf="Crlf",e.Lf="Lf",e))(Xpe||{}),Qpe=(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))(Qpe||{}),Ype=(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))(Ype||{})}}),Kpe={};Gc(Kpe,{ClassificationType:()=>Ype,CommandTypes:()=>uY,CompletionTriggerKind:()=>Vpe,IndentStyle:()=>Upe,JsxEmit:()=>Hpe,ModuleKind:()=>Gpe,ModuleResolutionKind:()=>$pe,NewLineKind:()=>Xpe,OrganizeImportsMode:()=>Bpe,PollingWatchKind:()=>Wpe,ScriptTarget:()=>Qpe,SemicolonPreference:()=>qpe,WatchDirectoryKind:()=>zpe,WatchFileKind:()=>Jpe});var UKe=Dt({"src/server/_namespaces/ts.server.protocol.ts"(){Zpe()}});function $N(e){return e[0]==="^"||(e.includes("walkThroughSnippet:/")||e.includes("untitled:/"))&&wc(e)[0]==="^"||e.includes(":^")&&!e.includes(Fo)}function wDe(e){return!e||QN(e)?g0.ThrowNoProject():e}function qKe(e){E.assert(typeof e=="number",`Expected position ${e} to be a number.`),E.assert(e>=0,"Expected position to be non-negative.")}function HKe(e){E.assert(typeof e.line=="number",`Expected line ${e.line} to be a number.`),E.assert(typeof e.offset=="number",`Expected offset ${e.offset} to be a number.`),E.assert(e.line>0,`Expected line to be non-${e.line===0?"zero":"negative"}`),E.assert(e.offset>0,`Expected offset to be non-${e.offset===0?"zero":"negative"}`)}var _Y,fY,GKe=Dt({"src/server/scriptInfo.ts"(){xy(),gS(),_Y=class{constructor(e,t,n){this.host=e,this.info=t,this.isOpen=!1,this.ownFileText=!1,this.pendingReloadFromDisk=!1,this.version=n||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,n){this.switchToScriptVersionCache().edit(e,t-e,n),this.ownFileText=!1,this.text=void 0,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo()}reload(e){return E.assert(e!==void 0),this.pendingReloadFromDisk=!1,!this.text&&this.svc&&(this.text=y6(this.svc.getSnapshot())),this.text!==e?(this.useText(e),this.ownFileText=!1,!0):!1}reloadWithFileText(e){const{text:t,fileSize:n}=e||!this.info.isDynamicOrHasMixedContent()?this.getFileTextAndSize(e):{text:"",fileSize:void 0},i=this.reload(t);return this.fileSize=n,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=dL.fromString(E.checkDefined(this.text))))}getAbsolutePositionAndLineText(e){const t=this.tryUseScriptVersionCache();if(t)return t.getAbsolutePositionAndLineText(e);const n=this.getLineMap();return e<=n.length?{absolutePosition:n[e-1],lineText:this.text.substring(n[e-1],n[e])}:{absolutePosition:this.text.length,lineText:void 0}}lineToTextSpan(e){const t=this.tryUseScriptVersionCache();if(t)return t.lineToTextSpan(e);const n=this.getLineMap(),i=n[e],s=e+1t===void 0?t=this.host.readFile(n)||"":t;if(!HT(this.info.fileName)){const s=this.host.getFileSize?this.host.getFileSize(n):i().length;if(s>dR)return E.assert(!!this.info.containingProjects.length),this.info.containingProjects[0].projectService.logger.info(`Skipped loading contents of large file ${n} for info ${this.info.fileName}: fileSize: ${s}`),this.info.containingProjects[0].projectService.sendLargeFileReferencedEvent(n,s),{text:"",fileSize:s}}return{text:i()}}switchToScriptVersionCache(){return(!this.svc||this.pendingReloadFromDisk)&&(this.svc=PR.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=PR.fromString(E.checkDefined(this.text)),this.textSnapshot=void 0),this.svc):this.svc}getOrLoadText(){return(this.text===void 0||this.pendingReloadFromDisk)&&(E.assert(!this.svc||this.pendingReloadFromDisk,"ScriptVersionCache should not be set when reloading from disk"),this.reloadWithFileText()),this.text}getLineMap(){return E.assert(!this.svc,"ScriptVersionCache should not be set"),this.lineMap||(this.lineMap=CT(E.checkDefined(this.text)))}getLineInfo(){const e=this.tryUseScriptVersionCache();if(e)return{getLineCount:()=>e.getLineCount(),getLineText:n=>e.getAbsolutePositionAndLineText(n+1).lineText};const t=this.getLineMap();return XU(this.text,t)}},fY=class{constructor(e,t,n,i,s,o){this.host=e,this.fileName=t,this.scriptKind=n,this.hasMixedContent=i,this.path=s,this.containingProjects=[],this.isDynamic=$N(t),this.textStorage=new _Y(e,this,o),(i||this.isDynamic)&&(this.realpath=this.path),this.scriptKind=n||hF(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)){E.assert(!!this.containingProjects.length);const 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){const 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 bs(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:Ik(this.containingProjects,e)&&e.onFileAddedOrRemoved(this.isSymlink());break}}detachAllProjects(){for(const e of this.containingProjects){Y1(e)&&e.getCachedDirectoryStructureHost().addOrDeleteFile(this.fileName,this.path,2);const t=e.getRootFilesMap().get(this.path);e.removeFile(this,!1,!1),e.onFileAddedOrRemoved(this.isSymlink()),t&&!J6(e)&&e.addMissingFileRoot(t.fileName)}lg(this.containingProjects)}getDefaultProject(){switch(this.containingProjects.length){case 0:return g0.ThrowNoProject();case 1:return wDe(this.containingProjects[0]);default:let e,t,n,i,s;for(let o=0;o!e.isOrphan())}isContainedByBackgroundProject(){return ct(this.containingProjects,QN)}lineToTextSpan(e){return this.textStorage.lineToTextSpan(e)}lineOffsetToPosition(e,t,n){return this.textStorage.lineOffsetToPosition(e,t,n)}positionToLineOffset(e){qKe(e);const t=this.textStorage.positionToLineOffset(e);return HKe(t),t}isJavaScript(){return this.scriptKind===1||this.scriptKind===2}closeSourceMapFileWatcher(){this.sourceMapFilePath&&!ls(this.sourceMapFilePath)&&(Xf(this.sourceMapFilePath),this.sourceMapFilePath=void 0)}}}});function ADe(e,t){if(e===t||(e||Wc).length===0&&(t||Wc).length===0)return!0;const n=new Map;let i=0;for(const s of e)n.get(s)!==!0&&(n.set(s,!0),i++);for(const s of t){const o=n.get(s);if(o===void 0)return!1;o===!0&&(n.set(s,!1),i--)}return i===0}function $Ke(e,t){return e.enable!==t.enable||!ADe(e.include,t.include)||!ADe(e.exclude,t.exclude)}function XKe(e,t){return oy(e)!==oy(t)}function QKe(e,t){return e===t?!1:!ud(e,t)}var uR,pY,YKe=Dt({"src/server/typingsCache.ts"(){xy(),gS(),uR={isKnownTypesPackageName:_d,installPackage:ks,enqueueInstallTypingsRequest:Ca,attach:Ca,onProjectClosed:Ca,globalTypingsCacheLocation:void 0},pY=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,n){const i=e.getTypeAcquisition();if(!i||!i.enable)return;const s=this.perProjectCache.get(e.getProjectName());(n||!s||$Ke(i,s.typeAcquisition)||XKe(e.getCompilationSettings(),s.compilerOptions)||QKe(t,s.unresolvedImports))&&(this.perProjectCache.set(e.getProjectName(),{compilerOptions:e.getCompilationSettings(),typeAcquisition:i,typings:s?s.typings:Wc,unresolvedImports:t,poisoned:!0}),this.installer.enqueueInstallTypingsRequest(e,i,t))}updateTypingsForProject(e,t,n,i,s){const o=_b(s);return this.perProjectCache.set(e,{compilerOptions:t,typeAcquisition:n,typings:o,unresolvedImports:i,poisoned:!1}),!n||!n.enable?Wc:o}onProjectClosed(e){this.perProjectCache.delete(e.getProjectName())&&this.installer.onProjectClosed(e)}}}});function XN(e,t=!1){const n={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(const i of e){const s=t?i.textStorage.getTelemetryFileSize():0;switch(i.scriptKind){case 1:n.js+=1,n.jsSize+=s;break;case 2:n.jsx+=1,n.jsxSize+=s;break;case 3:Hl(i.fileName)?(n.dts+=1,n.dtsSize+=s):(n.ts+=1,n.tsSize+=s);break;case 4:n.tsx+=1,n.tsxSize+=s;break;case 7:n.deferred+=1,n.deferredSize+=s;break}}return n}function ZKe(e){const t=XN(e.getScriptInfos());return t.js>0&&t.ts===0&&t.tsx===0}function ede(e){const t=XN(e.getRootScriptInfos());return t.ts===0&&t.tsx===0}function tde(e){const t=XN(e.getScriptInfos());return t.ts===0&&t.tsx===0}function rde(e){return!e.some(t=>Zo(t,".ts")&&!Hl(t)||Zo(t,".tsx"))}function nde(e){return e.generatedFilePath!==void 0}function KKe(e,t){var n,i;const s=e.getSourceFiles();(n=qr)==null||n.push(qr.Phase.Session,"getUnresolvedImports",{count:s.length});const o=e.getTypeChecker().getAmbientModules().map(u=>yp(u.getName())),c=z4(Zs(s,u=>eet(e,u,o,t)));return(i=qr)==null||i.pop(),c}function eet(e,t,n,i){return J4(i,t.path,()=>{let s;return e.forEachResolvedModule(({resolvedModule:o},c)=>{(!o||!UE(o.extension))&&!Sl(c)&&!n.some(u=>u===c)&&(s=_r(s,lA(c).packageName))},t),s||Wc})}function J6(e){return e.projectKind===0}function Y1(e){return e.projectKind===1}function dY(e){return e.projectKind===2}function QN(e){return e.projectKind===3||e.projectKind===4}var SP,mS,mY,gY,hY,yY,vY,_R,tet=Dt({"src/server/project.ts"(){xy(),xy(),gS(),SP=(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))(SP||{}),mS=class P5e{constructor(t,n,i,s,o,c,u,f,g,d,y){switch(this.projectKind=n,this.projectService=i,this.documentRegistry=s,this.compilerOptions=u,this.compileOnSaveEnabled=f,this.watchOptions=g,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=_d,this.dirty=!1,this.typingFiles=Wc,this.moduleSpecifierCache=mde(this),this.createHash=Os(this.projectService.host,this.projectService.host.createHash),this.globalCacheResolutionModuleName=rm.nonRelativeModuleNameForTypingCache,this.updateFromProjectInProgress=!1,this.projectName=t,this.directoryStructureHost=d,this.currentDirectory=this.projectService.getNormalizedAbsolutePath(y),this.getCanonicalFileName=this.projectService.toCanonicalFileName,this.jsDocParsingMode=this.projectService.jsDocParsingMode,this.cancellationToken=new G$(this.projectService.cancellationToken,this.projectService.throttleWaitMilliseconds),this.compilerOptions?(o||oy(this.compilerOptions)||this.projectService.hasDeferredExtension())&&(this.compilerOptions.allowNonTsExtensions=!0):(this.compilerOptions=wM(),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:E.assertNever(i.serverMode)}this.setInternalCompilerOptionsForEmittingJsFiles();const S=this.projectService.host;this.projectService.logger.loggingEnabled()?this.trace=T=>this.writeLog(T):S.trace&&(this.trace=T=>S.trace(T)),this.realpath=Os(S,S.realpath),this.resolutionCache=rH(this,this.currentDirectory,!0),this.languageService=$le(this,this.documentRegistry,this.projectService.serverMode),c&&this.disableLanguageService(c),this.markAsDirty(),QN(this)||(this.projectService.pendingEnsureProjectForOpenFiles=!0),this.projectService.onProjectCreation(this)}getResolvedProjectReferenceToRedirect(t){}isNonTsProject(){return uf(this),tde(this)}isJsOnlyProject(){return uf(this),ZKe(this)}static resolveModule(t,n,i,s){return P5e.importServicePluginSync({name:t},[n],i,s).resolvedModule}static importServicePluginSync(t,n,i,s){E.assertIsDefined(i.require);let o,c;for(const u of n){const f=iu(i.resolvePath(Mn(u,"node_modules")));s(`Loading ${t.name} from ${u} (resolved to ${f})`);const g=i.require(f,t.name);if(!g.error){c=g.module;break}const d=g.error.stack||g.error.message||JSON.stringify(g.error);(o??(o=[])).push(`Failed to load module '${t.name}' from ${f}: ${d}`)}return{pluginConfigEntry:t,resolvedModule:c,errorLogs:o}}static async importServicePluginAsync(t,n,i,s){E.assertIsDefined(i.importPlugin);let o,c;for(const u of n){const f=Mn(u,"node_modules");s(`Dynamically importing ${t.name} from ${u} (resolved to ${f})`);let g;try{g=await i.importPlugin(f,t.name)}catch(y){g={module:void 0,error:y}}if(!g.error){c=g.module;break}const d=g.error.stack||g.error.message||JSON.stringify(g.error);(o??(o=[])).push(`Failed to dynamically import module '${t.name}' from ${f}: ${d}`)}return{pluginConfigEntry:t,resolvedModule:c,errorLogs:o}}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=AW(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 Ve;let t;return this.rootFilesMap.forEach(n=>{(this.languageServiceEnabled||n.info&&n.info.isScriptOpen())&&(t||(t=[])).push(n.fileName)}),Nn(t,this.typingFiles)||Ve}getOrCreateScriptInfoAndAttachToProject(t){const n=this.projectService.getOrCreateScriptInfoNotOpenedByClient(t,this.currentDirectory,this.directoryStructureHost);if(n){const i=this.rootFilesMap.get(n.path);i&&i.info!==n&&(this.rootFiles.push(n),i.info=n),n.attachToProject(this)}return n}getScriptKind(t){const n=this.projectService.getScriptInfoForPath(this.toPath(t));return n&&n.scriptKind}getScriptVersion(t){const n=this.projectService.getOrCreateScriptInfoNotOpenedByClient(t,this.currentDirectory,this.directoryStructureHost);return n&&n.getLatestVersion()}getScriptSnapshot(t){const n=this.getOrCreateScriptInfoAndAttachToProject(t);if(n)return n.getSnapshot()}getCancellationToken(){return this.cancellationToken}getCurrentDirectory(){return this.currentDirectory}getDefaultLibFileName(){const t=Un(Hs(this.projectService.getExecutingFilePath()));return Mn(t,JD(this.compilerOptions))}useCaseSensitiveFileNames(){return this.projectService.host.useCaseSensitiveFileNames}readDirectory(t,n,i,s,o){return this.directoryStructureHost.readDirectory(t,n,i,s,o)}readFile(t){return this.projectService.host.readFile(t)}writeFile(t,n){return this.projectService.host.writeFile(t,n)}fileExists(t){const n=this.toPath(t);return!this.isWatchedMissingFile(n)&&this.directoryStructureHost.fileExists(t)}resolveModuleNameLiterals(t,n,i,s,o,c){return this.resolutionCache.resolveModuleNameLiterals(t,n,i,s,o,c)}getModuleResolutionCache(){return this.resolutionCache.getModuleResolutionCache()}resolveTypeReferenceDirectiveReferences(t,n,i,s,o,c){return this.resolutionCache.resolveTypeReferenceDirectiveReferences(t,n,i,s,o,c)}resolveLibrary(t,n,i,s){return this.resolutionCache.resolveLibrary(t,n,i,s)}directoryExists(t){return this.directoryStructureHost.directoryExists(t)}getDirectories(t){return this.directoryStructureHost.getDirectories(t)}getCachedDirectoryStructureHost(){}toPath(t){return Io(t,this.currentDirectory,this.projectService.toCanonicalFileName)}watchDirectoryOfFailedLookupLocation(t,n,i){return this.projectService.watchFactory.watchDirectory(t,n,i,this.projectService.getWatchOptions(this),al.FailedLookupLocations,this)}watchAffectingFileLocation(t,n){return this.projectService.watchFactory.watchFile(t,n,2e3,this.projectService.getWatchOptions(this),al.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,n,i){return this.projectService.watchFactory.watchDirectory(t,n,i,this.projectService.getWatchOptions(this),al.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 An(this.projectErrors,t=>!t.file)||Wc}getAllProjectErrors(){return this.projectErrors||Wc}setProjectErrors(t){this.projectErrors=t}getLanguageService(t=!0){return t&&uf(this),this.languageService}getSourceMapper(){return this.getLanguageService().getSourceMapper()}clearSourceMapperCache(){this.languageService.clearSourceMapperCache()}getDocumentPositionMapper(t,n){return this.projectService.getDocumentPositionMapper(this,t,n)}getSourceFileLike(t){return this.projectService.getSourceFileLike(t,this)}shouldEmitFile(t){return t&&!t.isDynamicOrHasMixedContent()&&!this.program.isSourceOfProjectReferenceRedirect(t.path)}getCompileOnSaveAffectedFileList(t){return this.languageServiceEnabled?(uf(this),this.builderState=$p.create(this.program,this.builderState,!0),Ri($p.getFilesAffectedBy(this.builderState,this.program,t.path,this.cancellationToken,this.projectService.host),n=>this.shouldEmitFile(this.projectService.getScriptInfoForPath(n.path))?n.fileName:void 0)):[]}emitFile(t,n){if(!this.languageServiceEnabled||!this.shouldEmitFile(t))return{emitSkipped:!0,diagnostics:Wc};const{emitSkipped:i,diagnostics:s,outputFiles:o}=this.getLanguageService().getEmitOutput(t.fileName);if(!i){for(const c of o){const u=Xi(c.name,this.currentDirectory);n(u,c.text,c.writeByteOrderMark)}if(this.builderState&&Hf(this.compilerOptions)){const c=o.filter(u=>Hl(u.name));if(c.length===1){const u=this.program.getSourceFile(t.fileName),f=this.projectService.host.createHash?this.projectService.host.createHash(c[0].text):$4(c[0].text);$p.updateSignatureOfFile(this.builderState,f,u.resolvedPath)}}}return{emitSkipped:i,diagnostics:s}}enableLanguageService(){this.languageServiceEnabled||this.projectService.serverMode===2||(this.languageServiceEnabled=!0,this.lastFileExceededProgramSize=void 0,this.projectService.onUpdateLanguageServiceStateForProject(this,!0))}cleanupProgram(){if(this.program){for(const 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&&(E.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 _b(Zs(this.plugins,n=>{if(typeof n.module.getExternalFiles=="function")try{return n.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){const n=this.program.getCompilerOptions();return t===n.configFilePath?n.configFile:this.getSourceFile(t)}close(){var t;this.projectService.typingsCache.onProjectClosed(this),this.closeWatchingTypingLocations(),this.cleanupProgram(),rr(this.externalFiles,n=>this.detachScriptInfoIfNotRoot(n));for(const n of this.rootFiles)n.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(n=>{n.projects.delete(this),n.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&&(T_(this.missingFilesMap,dd),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){const n=this.projectService.getScriptInfo(t);n&&!this.isRoot(n)&&n.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?nr(this.program.getSourceFiles(),t=>{const n=this.projectService.getScriptInfoForPath(t.resolvedPath);return E.assert(!!n,"getScriptInfo",()=>`scriptInfo for a file '${t.fileName}' Path: '${t.path}' / '${t.resolvedPath}' is missing.`),n}):this.rootFiles}getExcludedFiles(){return Wc}getFileNames(t,n){if(!this.program)return[];if(!this.languageServiceEnabled){let s=this.getRootFiles();if(this.compilerOptions){const o=Xle(this.compilerOptions);o&&(s||(s=[])).push(o)}return s}const i=[];for(const s of this.program.getSourceFiles())t&&this.program.isSourceFileFromExternalLibrary(s)||i.push(s.fileName);if(!n){const s=this.program.getCompilerOptions().configFile;if(s&&(i.push(s.fileName),s.extendedSourceFiles))for(const o of s.extendedSourceFiles)i.push(o)}return i}getFileNamesWithRedirectInfo(t){return this.getFileNames().map(n=>({fileName:n,isSourceOfProjectReferenceRedirect:t&&this.isSourceOfProjectReferenceRedirect(n)}))}hasConfigFile(t){if(this.program&&this.languageServiceEnabled){const n=this.program.getCompilerOptions().configFile;if(n){if(t===n.fileName)return!0;if(n.extendedSourceFiles){for(const i of n.extendedSourceFiles)if(t===i)return!0}}}return!1}containsScriptInfo(t){if(this.isRoot(t))return!0;if(!this.program)return!1;const n=this.program.getSourceFileByPath(t.path);return!!n&&n.resolvedPath===t.path}containsFile(t,n){const i=this.projectService.getScriptInfoForNormalizedPath(t);return i&&(i.isScriptOpen()||!n)?this.containsScriptInfo(i):!1}isRoot(t){var n;return this.rootFilesMap&&((n=this.rootFilesMap.get(t.path))==null?void 0:n.info)===t}addRoot(t,n){E.assert(!this.isRoot(t)),this.rootFiles.push(t),this.rootFilesMap.set(t.path,{fileName:n||t.fileName,info:t}),t.attachToProject(this),this.markAsDirty()}addMissingFileRoot(t){const n=this.projectService.toPath(t);this.rootFilesMap.set(n,{fileName:t}),this.markAsDirty()}removeFile(t,n,i){this.isRoot(t)&&this.removeRoot(t),n?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(){uf(this)}updateGraph(){var t,n,i,s,o;(t=qr)==null||t.push(qr.Phase.Session,"updateGraph",{name:this.projectName,kind:SP[this.projectKind]}),(n=wu)==null||n.logStartUpdateGraph(),this.resolutionCache.startRecordingFilesWithChangedResolutions();const c=this.updateGraphWorker(),u=this.hasAddedorRemovedFiles;this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1;const f=this.resolutionCache.finishRecordingFilesWithChangedResolutions()||Wc;for(const d of f)this.cachedUnresolvedImportsPerFile.delete(d);this.languageServiceEnabled&&this.projectService.serverMode===0&&!this.isOrphan()?((c||f.length)&&(this.lastCachedUnresolvedImportsList=KKe(this.program,this.cachedUnresolvedImportsPerFile)),this.projectService.typingsCache.enqueueInstallTypingsForProject(this,this.lastCachedUnresolvedImportsList,u)):this.lastCachedUnresolvedImportsList=void 0;const g=this.projectProgramVersion===0&&c;return c&&this.projectProgramVersion++,u&&(this.autoImportProviderHost||(this.autoImportProviderHost=void 0),(i=this.autoImportProviderHost)==null||i.markAsDirty()),g&&this.getPackageJsonAutoImportProvider(),(s=wu)==null||s.logStopUpdateGraph(),(o=qr)==null||o.pop(),!c}updateTypingFiles(t){a7(t,this.typingFiles,Ak(!this.useCaseSensitiveFileNames()),Ca,n=>this.detachScriptInfoFromProject(n))&&(this.typingFiles=t,this.resolutionCache.setFilesWithInvalidatedNonRelativeUnresolvedImports(this.cachedUnresolvedImportsPerFile),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))}closeWatchingTypingLocations(){this.typingWatchers&&T_(this.typingWatchers,dd),this.typingWatchers=void 0}onTypingInstallerWatchInvoke(){this.typingWatchers.isInvoked=!0,this.projectService.updateTypingsForProject({projectName:this.getProjectName(),kind:FA})}watchTypingLocations(t){if(!t){this.typingWatchers.isInvoked=!1;return}if(!t.length){this.closeWatchingTypingLocations();return}const n=new Map(this.typingWatchers);this.typingWatchers||(this.typingWatchers=new Map),this.typingWatchers.isInvoked=!1;const i=(s,o)=>{const c=this.toPath(s);n.delete(c),this.typingWatchers.has(c)||this.typingWatchers.set(c,o==="FileWatcher"?this.projectService.watchFactory.watchFile(s,()=>this.typingWatchers.isInvoked?this.writeLog("TypingWatchers already invoked"):this.onTypingInstallerWatchInvoke(),2e3,this.projectService.getWatchOptions(this),al.TypingInstallerLocationFile,this):this.projectService.watchFactory.watchDirectory(s,u=>{if(this.typingWatchers.isInvoked)return this.writeLog("TypingWatchers already invoked");if(!Zo(u,".json"))return this.writeLog("Ignoring files that are not *.json");if(Gg(u,Mn(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),al.TypingInstallerLocationDirectory,this))};for(const s of t){const o=wc(s);if(o==="package.json"||o==="bower.json"){i(s,"FileWatcher");continue}if(Mp(this.currentDirectory,s,this.currentDirectory,!this.useCaseSensitiveFileNames())){const c=s.indexOf(Fo,this.currentDirectory.length+1);i(c!==-1?s.substr(0,c):s,"DirectoryWatcher");continue}if(Mp(this.projectService.typingsInstaller.globalTypingsCacheLocation,s,this.currentDirectory,!this.useCaseSensitiveFileNames())){i(this.projectService.typingsInstaller.globalTypingsCacheLocation,"DirectoryWatcher");continue}i(s,"DirectoryWatcher")}n.forEach((s,o)=>{s.close(),this.typingWatchers.delete(o)})}getCurrentProgram(){return this.program}removeExistingTypings(t){const n=t9(this.getCompilerOptions(),this.directoryStructureHost);return t.filter(i=>!n.includes(i))}updateGraphWorker(){var t,n;const i=this.languageService.getCurrentProgram();E.assert(i===this.program),E.assert(!this.isClosed(),"Called update graph worker of closed project"),this.writeLog(`Starting updateGraphWorker: Project: ${this.getProjectName()}`);const s=xo(),{hasInvalidatedResolutions:o,hasInvalidatedLibResolutions:c}=this.resolutionCache.createHasInvalidatedResolutions(_d,_d);this.hasInvalidatedResolutions=o,this.hasInvalidatedLibResolutions=c,this.resolutionCache.startCachingPerDirectoryResolution(),this.dirty=!1,this.updateFromProjectInProgress=!0,this.program=this.languageService.getProgram(),this.updateFromProjectInProgress=!1,(t=qr)==null||t.push(qr.Phase.Session,"finishCachingPerDirectoryResolution"),this.resolutionCache.finishCachingPerDirectoryResolution(this.program,i),(n=qr)==null||n.pop(),E.assert(i===void 0||this.program!==void 0);let u=!1;if(this.program&&(!i||this.program!==i&&this.program.structureIsReused!==2)){if(u=!0,i){for(const d of i.getSourceFiles()){const y=this.program.getSourceFileByPath(d.resolvedPath);(!y||d.resolvedPath===d.path&&y.resolvedPath!==d.path)&&this.detachScriptInfoFromProject(d.fileName,!!this.program.getSourceFileByPath(d.path),!0)}i.forEachResolvedProjectReference(d=>{this.program.getResolvedProjectReferenceByPath(d.sourceFile.path)||this.detachScriptInfoFromProject(d.sourceFile.fileName,void 0,!0)})}if(xq(this.program,this.missingFilesMap||(this.missingFilesMap=new Map),(d,y)=>this.addMissingFileWatcher(d,y)),this.generatedFilesMap){const d=io(this.compilerOptions);nde(this.generatedFilesMap)?(!d||!this.isValidGeneratedFileWatcher($u(d)+".d.ts",this.generatedFilesMap))&&this.clearGeneratedFileWatch():d?this.clearGeneratedFileWatch():this.generatedFilesMap.forEach((y,S)=>{const T=this.program.getSourceFileByPath(S);(!T||T.resolvedPath!==S||!this.isValidGeneratedFileWatcher(W5(T.fileName,this.compilerOptions,this.currentDirectory,this.program.getCommonSourceDirectory(),this.getCanonicalFileName),y))&&(Xf(y),this.generatedFilesMap.delete(S))})}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&&Am(this.changedFilesForExportMapCache,d=>{const y=i.getSourceFileByPath(d),S=this.program.getSourceFileByPath(d);return!y||!S?(this.exportMapCache.clear(),!0):this.exportMapCache.onFileChanged(y,S,!!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());const f=this.externalFiles||Wc;this.externalFiles=this.getExternalFiles(),a7(this.externalFiles,f,Ak(!this.useCaseSensitiveFileNames()),d=>{const y=this.projectService.getOrCreateScriptInfoNotOpenedByClient(d,this.currentDirectory,this.directoryStructureHost);y==null||y.attachToProject(this)},d=>this.detachScriptInfoFromProject(d));const g=xo()-s;return this.sendPerformanceEvent("UpdateGraph",g),this.writeLog(`Finishing updateGraphWorker: Project: ${this.getProjectName()} projectStateVersion: ${this.projectStateVersion} projectProgramVersion: ${this.projectProgramVersion} structureChanged: ${u}${this.program?` structureIsReused:: ${g7[this.program.structureIsReused]}`:""} Elapsed: ${g}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(),u}sendPerformanceEvent(t,n){this.projectService.sendPerformanceEvent(t,n)}detachScriptInfoFromProject(t,n,i){const s=this.projectService.getScriptInfo(t);s&&(s.detachFromProject(this),n||this.resolutionCache.removeResolutionsOfFile(s.path,i))}addMissingFileWatcher(t,n){var i;if(Y1(this)){const o=this.projectService.configFileExistenceInfoCache.get(t);if((i=o==null?void 0:o.config)!=null&&i.projects.has(this.canonicalConfigFilePath))return p6}const s=this.projectService.watchFactory.watchFile(Xi(n,this.currentDirectory),(o,c)=>{Y1(this)&&this.getCachedDirectoryStructureHost().addOrDeleteFile(o,t,c),c===0&&this.missingFilesMap.has(t)&&(this.missingFilesMap.delete(t),s.close(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))},500,this.projectService.getWatchOptions(this),al.MissingFile,this);return s}isWatchedMissingFile(t){return!!this.missingFilesMap&&this.missingFilesMap.has(t)}addGeneratedFileWatch(t,n){if(io(this.compilerOptions))this.generatedFilesMap||(this.generatedFilesMap=this.createGeneratedFileWatcher(t));else{const i=this.toPath(n);if(this.generatedFilesMap){if(nde(this.generatedFilesMap)){E.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),al.MissingGeneratedFile,this)}}isValidGeneratedFileWatcher(t,n){return this.toPath(t)===n.generatedFilePath}clearGeneratedFileWatch(){this.generatedFilesMap&&(nde(this.generatedFilesMap)?Xf(this.generatedFilesMap):T_(this.generatedFilesMap,Xf),this.generatedFilesMap=void 0)}getScriptInfoForNormalizedPath(t){const n=this.projectService.getScriptInfoForPath(this.toPath(t));return n&&!n.isAttached(this)?g0.ThrowProjectDoesNotContainDocument(t,this):n}getScriptInfo(t){return this.projectService.getScriptInfo(t)}filesToString(t){return this.filesToStringWorker(t,!0,!1)}filesToStringWorker(t,n,i){if(this.isInitialLoadPending())return` Files (0) InitialLoadPending `;if(!this.program)return` Files (0) NoProgram `;const s=this.program.getSourceFiles();let o=` Files (${s.length}) `;if(t){for(const c of s)o+=` ${c.fileName}${i?` ${c.version} ${JSON.stringify(c.text)}`:""} `;n&&(o+=` -`,oH(this.program,c=>o+=` ${c} -`))}return o}print(t,n,i){var s;this.writeLog(`Project '${this.projectName}' (${TP[this.projectKind]})`),this.writeLog(this.filesToStringWorker(t&&this.projectService.logger.hasLevel(3),n&&this.projectService.logger.hasLevel(3),i&&this.projectService.logger.hasLevel(3))),this.writeLog("-----------------------------------------------"),this.autoImportProviderHost&&this.autoImportProviderHost.print(!1,!1,!1),(s=this.noDtsResolutionProject)==null||s.print(!1,!1,!1)}setCompilerOptions(t){var n;if(t){t.allowNonTsExtensions=!0;const i=this.compilerOptions;this.compilerOptions=t,this.setInternalCompilerOptionsForEmittingJsFiles(),(n=this.noDtsResolutionProject)==null||n.setCompilerOptions(this.getCompilerOptionsForNoDtsResolutionProject()),i5(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,n){var i,s;const o=n?f=>gs(f.entries(),([g,d])=>({fileName:g,isSourceOfProjectReferenceRedirect:d})):f=>gs(f.keys());this.isInitialLoadPending()||uf(this);const c={projectName:this.getProjectName(),version:this.projectProgramVersion,isInferred:J6(this),options:this.getCompilationSettings(),languageServiceDisabled:!this.languageServiceEnabled,lastFileExceededProgramSize:this.lastFileExceededProgramSize},u=this.updatedFileNames;if(this.updatedFileNames=void 0,this.lastReportedFileNames&&t===this.lastReportedVersion){if(this.projectProgramVersion===this.lastReportedVersion&&!u)return{info:c,projectErrors:this.getGlobalProjectErrors()};const f=this.lastReportedFileNames,g=((i=this.externalFiles)==null?void 0:i.map(w=>({fileName:Jo(w),isSourceOfProjectReferenceRedirect:!1})))||Wc,d=Iv(this.getFileNamesWithRedirectInfo(!!n).concat(g),w=>w.fileName,w=>w.isSourceOfProjectReferenceRedirect),y=new Map,S=new Map,T=u?gs(u.keys()):[],k=[];return _l(d,(w,P)=>{f.has(P)?n&&w!==f.get(P)&&k.push({fileName:P,isSourceOfProjectReferenceRedirect:w}):y.set(P,w)}),_l(f,(w,P)=>{d.has(P)||S.set(P,w)}),this.lastReportedFileNames=d,this.lastReportedVersion=this.projectProgramVersion,{info:c,changes:{added:o(y),removed:o(S),updated:n?T.map(w=>({fileName:w,isSourceOfProjectReferenceRedirect:this.isSourceOfProjectReferenceRedirect(w)})):T,updatedRedirects:n?k:void 0},projectErrors:this.getGlobalProjectErrors()}}else{const f=this.getFileNamesWithRedirectInfo(!!n),g=((s=this.externalFiles)==null?void 0:s.map(y=>({fileName:Jo(y),isSourceOfProjectReferenceRedirect:!1})))||Wc,d=f.concat(g);return this.lastReportedFileNames=Iv(d,y=>y.fileName,y=>y.isSourceOfProjectReferenceRedirect),this.lastReportedVersion=this.projectProgramVersion,{info:c,files:n?d:d.map(y=>y.fileName),projectErrors:this.getGlobalProjectErrors()}}}removeRoot(t){Ik(this.rootFiles,t),this.rootFilesMap.delete(t.path)}isSourceOfProjectReferenceRedirect(t){return!!this.program&&this.program.isSourceOfProjectReferenceRedirect(t)}getGlobalPluginSearchPaths(){return[...this.projectService.pluginProbeLocations,Mn(this.projectService.getExecutingFilePath(),"../../..")]}enableGlobalPlugins(t){if(!this.projectService.globalPlugins.length)return;const n=this.projectService.host;if(!n.require&&!n.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}const i=this.getGlobalPluginSearchPaths();for(const s of this.projectService.globalPlugins)s&&(t.plugins&&t.plugins.some(o=>o.name===s)||(this.projectService.logger.info(`Loading global plugin ${s}`),this.enablePlugin({name:s,global:!0},i)))}enablePlugin(t,n){this.projectService.requestEnablePlugin(this,t,n)}enableProxy(t,n){try{if(typeof t!="function"){this.projectService.logger.info(`Skipped loading plugin ${n.name} because it did not expose a proper factory function`);return}const i={config:n,project:this,languageService:this.languageService,languageServiceHost:this,serverHost:this.projectService.host,session:this.projectService.session},s=t({typescript:ZDe}),o=s.create(i);for(const c of Object.keys(this.languageService))c in o||(this.projectService.logger.info(`Plugin activation warning: Missing proxied method ${c} in created LS. Patching.`),o[c]=this.languageService[c]);this.projectService.logger.info("Plugin validation succeeded"),this.languageService=o,this.plugins.push({name:n.name,module:s})}catch(i){this.projectService.logger.info(`Plugin activation failed: ${i}`)}}onPluginConfigurationChanged(t,n){this.plugins.filter(i=>i.name===t).forEach(i=>{i.module.onConfigurationChanged&&i.module.onConfigurationChanged(n)})}refreshDiagnostics(){this.projectService.sendProjectsUpdatedInBackgroundEvent()}getPackageJsonsVisibleToFile(t,n){return this.projectService.serverMode!==0?Wc:this.projectService.getPackageJsonsVisibleToFile(t,this,n)}getNearestAncestorDirectoryWithPackageJson(t){return this.projectService.getNearestAncestorDirectoryWithPackageJson(t)}getPackageJsonsForAutoImport(t){return this.getPackageJsonsVisibleToFile(Mn(this.currentDirectory,u6),t)}getPackageJsonCache(){return this.projectService.packageJsonCache}getCachedExportInfoMap(){return this.exportMapCache||(this.exportMapCache=GG(this))}clearCachedExportInfoMap(){var t;(t=this.exportMapCache)==null||t.clear()}getModuleSpecifierCache(){return this.moduleSpecifierCache}includePackageJsonAutoImports(){return this.projectService.includePackageJsonAutoImports()===0||!this.languageServiceEnabled||aN(this.currentDirectory)||!this.isDefaultProjectForOpenFiles()?0:this.projectService.includePackageJsonAutoImports()}getHostForAutoImportProvider(){var t,n;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:(n=this.projectService.host.trace)==null?void 0:n.bind(this.projectService.host),useCaseSensitiveFileNames:this.program.useCaseSensitiveFileNames(),readDirectory:this.projectService.host.readDirectory.bind(this.projectService.host)}:this.projectService.host}getPackageJsonAutoImportProvider(){var t,n,i;if(this.autoImportProviderHost===!1)return;if(this.projectService.serverMode!==0){this.autoImportProviderHost=!1;return}if(this.autoImportProviderHost){if(uf(this.autoImportProviderHost),this.autoImportProviderHost.isEmpty()){this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0;return}return this.autoImportProviderHost.getCurrentProgram()}const s=this.includePackageJsonAutoImports();if(s){(t=qr)==null||t.push(qr.Phase.Session,"getPackageJsonAutoImportProvider");const o=To();if(this.autoImportProviderHost=bY.create(s,this,this.getHostForAutoImportProvider(),this.documentRegistry),this.autoImportProviderHost)return uf(this.autoImportProviderHost),this.sendPerformanceEvent("CreatePackageJsonAutoImportProvider",To()-o),(n=qr)==null||n.pop(),this.autoImportProviderHost.getCurrentProgram();(i=qr)==null||i.pop()}}isDefaultProjectForOpenFiles(){return!!_l(this.projectService.openFiles,(t,n)=>this.projectService.tryGetDefaultProjectForFile(Jo(n))===this)}watchNodeModulesForPackageJsonChanges(t){return this.projectService.watchPackageJsonsInNodeModules(t,this)}getIncompleteCompletionsCache(){return this.projectService.getIncompleteCompletionsCache()}getNoDtsResolutionProject(t){return E.assert(this.projectService.serverMode===0),this.noDtsResolutionProject||(this.noDtsResolutionProject=new yY(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:Ve,lib:Ve,noLib:!0}}},hY=class extends gS{constructor(e,t,n,i,s,o,c){super(e.newInferredProjectName(),0,e,t,void 0,void 0,n,!1,i,e.host,o),this._isJsInferredProject=!1,this.typeAcquisition=c,this.projectRootPath=s&&e.toCanonicalFileName(s),!s&&!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;const t=cG(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){E.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()&&Wi(this.getRootScriptInfos(),t=>!t.isJavaScript())&&this.toggleJsInferredProject(!1)}isOrphan(){return!this.hasRoots()}isProjectWithSingleRoot(){return!this.projectRootPath&&!this.projectService.useSingleInferredProject||this.getRootScriptInfos().length===1}close(){er(this.getRootScriptInfos(),e=>this.projectService.stopWatchingConfigFilesForInferredProjectRoot(e)),super.close()}getTypeAcquisition(){return this.typeAcquisition||{enable:tde(this),include:Ve,exclude:Ve}}},yY=class extends gS{constructor(e,t,n,i){super(e.newAuxiliaryProjectName(),4,e,t,!1,void 0,n,!1,void 0,e.host,i)}isOrphan(){return!0}scheduleInvalidateResolutionsOfFailedLookupLocations(){}},vY=class a0e extends gS{constructor(t,n,i,s){super(t.projectService.newAutoImportProviderProjectName(),3,t.projectService,i,!1,void 0,s,!1,t.getWatchOptions(),t.projectService.host,t.currentDirectory),this.hostProject=t,this.rootFileNames=n,this.useSourceOfProjectReferenceRedirect=Os(this.hostProject,this.hostProject.useSourceOfProjectReferenceRedirect),this.getParsedCommandLine=Os(this.hostProject,this.hostProject.getParsedCommandLine)}static getRootFileNames(t,n,i,s){var o,c;if(!t)return Ve;const u=n.getCurrentProgram();if(!u)return Ve;const f=To();let g,d;const y=Mn(n.currentDirectory,u6),S=n.getPackageJsonsForAutoImport(Mn(n.currentDirectory,y));for(const P of S)(o=P.dependencies)==null||o.forEach((F,J)=>k(J)),(c=P.peerDependencies)==null||c.forEach((F,J)=>k(J));let T=0;if(g){const P=n.getSymlinkCache();for(const F of gs(g.keys())){if(t===2&&T>this.maxDependencies)return n.log(`AutoImportProviderProject: attempted to add more than ${this.maxDependencies} dependencies. Aborting.`),Ve;const J=PU(F,n.currentDirectory,s,i,u.getModuleResolutionCache());if(J){const $=w(J,u,P);if($){d=es(d,$),T+=$.length?1:0;continue}}if(!er([n.currentDirectory,n.getGlobalTypingsCacheLocation()],$=>{if($){const j=PU(`@types/${F}`,$,s,i,u.getModuleResolutionCache());if(j){const re=w(j,u,P);return d=es(d,re),T+=re!=null&&re.length?1:0,!0}}})&&J&&s.allowJs&&s.maxNodeModuleJsDepth){const $=w(J,u,P,!0);d=es(d,$),T+=$!=null&&$.length?1:0}}}return d!=null&&d.length&&n.log(`AutoImportProviderProject: found ${d.length} root files in ${T} dependencies in ${To()-f} ms`),d||Ve;function k(P){Vi(P,"@types/")||(g||(g=new Set)).add(P)}function w(P,F,J,U){var $;const j=OU(P,s,i,F.getModuleResolutionCache(),U);if(j){const re=($=i.realpath)==null?void 0:$.call(i,P.packageDirectory),R=re?n.toPath(re):void 0,Y=R&&R!==n.toPath(P.packageDirectory);return Y&&J.setSymlinkedDirectory(P.packageDirectory,{real:ul(re),realPath:ul(R)}),Ri(j,ue=>{const pe=Y?ue.replace(P.packageDirectory,re):ue;if(!F.getSourceFile(pe)&&!(Y&&F.getSourceFile(ue)))return pe})}}}static create(t,n,i,s){if(t===0)return;const o={...n.getCompilerOptions(),...this.compilerOptionsOverrides},c=this.getRootFileNames(t,n,i,o);if(c.length)return new a0e(n,c,s,o)}isEmpty(){return!ct(this.rootFileNames)}isOrphan(){return!0}updateGraph(){let t=this.rootFileNames;t||(t=a0e.getRootFileNames(this.hostProject.includePackageJsonAutoImports(),this.hostProject,this.hostProject.getHostForAutoImportProvider(),this.getCompilationSettings())),this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this,t),this.rootFileNames=t;const n=this.getCurrentProgram(),i=super.updateGraph();return n&&n!==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||Ve}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()}},vY.maxDependencies=10,vY.compilerOptionsOverrides={diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:Ve,lib:Ve,noLib:!0},bY=vY,SY=class extends gS{constructor(e,t,n,i,s){super(e,1,n,i,!1,void 0,{},!1,void 0,s,Un(e)),this.canonicalConfigFilePath=t,this.openFileWatchTriggered=new Map,this.canConfigFileJsonReportNoInputFiles=!1,this.externalProjectRefCount=0,this.isInitialLoadPending=Wh,this.sendLoadingProjectFinish=!1}setCompilerHost(e){this.compilerHost=e}getCompilerHost(){return this.compilerHost}useSourceOfProjectReferenceRedirect(){return this.languageServiceEnabled}getParsedCommandLine(e){const t=Hs(e),n=this.projectService.toCanonicalFileName(t);let i=this.projectService.configFileExistenceInfoCache.get(n);return i||this.projectService.configFileExistenceInfoCache.set(n,i={exists:this.projectService.host.fileExists(t)}),this.projectService.ensureParsedConfigUptoDate(t,n,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(Hs(e)))}releaseParsedConfig(e){this.projectService.stopWatchingWildCards(e,this),this.projectService.releaseParsedConfig(e,this)}updateGraph(){const e=this.isInitialLoadPending();this.isInitialLoadPending=fd;const t=this.pendingUpdateLevel;this.pendingUpdateLevel=0;let n;switch(t){case 1:this.openFileWatchTriggered.clear(),n=this.projectService.reloadFileNamesOfConfiguredProject(this);break;case 2:this.openFileWatchTriggered.clear();const i=E.checkDefined(this.pendingUpdateReason);this.pendingUpdateReason=void 0,this.projectService.reloadConfiguredProject(this,i,e,!1),n=!0;break;default:n=super.updateGraph()}return this.compilerHost=void 0,this.projectService.sendProjectLoadingFinishEvent(this),this.projectService.sendProjectTelemetry(this),n}getCachedDirectoryStructureHost(){return this.directoryStructureHost}getConfigFilePath(){return this.getProjectName()}getProjectReferences(){return this.projectReferences}updateReferences(e){this.projectReferences=e,this.potentialProjectReferences=void 0}setPotentialProjectReference(e){E.assert(this.isInitialLoadPending()),(this.potentialProjectReferences||(this.potentialProjectReferences=new Set)).add(e)}getResolvedProjectReferenceToRedirect(e){const 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;const n=this.projectService.host;if(!n.require&&!n.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}const i=this.getGlobalPluginSearchPaths();if(this.projectService.allowLocalPluginLoads){const s=Un(this.canonicalConfigFilePath);this.projectService.logger.info(`Local plugin loading enabled; adding ${s} to search paths`),i.unshift(s)}if(e.plugins)for(const s of e.plugins)this.enablePlugin(s,i);return this.enableGlobalPlugins(e)}getGlobalProjectErrors(){return An(this.projectErrors,e=>!e.file)||Wc}getAllProjectErrors(){return this.projectErrors||Wc}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 W6(this,e.path,t=>Wx(t,e)?t:void 0,0)}hasOpenRef(){var e;if(this.externalProjectRefCount)return!0;if(this.isClosed())return!1;const t=this.projectService.configFileExistenceInfoCache.get(this.canonicalConfigFilePath);return this.projectService.hasPendingProjectUpdate(this)?!!((e=t.openFilesImpactedByConfigFile)!=null&&e.size):!!t.openFilesImpactedByConfigFile&&_l(t.openFilesImpactedByConfigFile,(n,i)=>{const s=this.projectService.getScriptInfoForPath(i);return this.containsScriptInfo(s)||!!W6(this,s.path,o=>o.containsScriptInfo(s),0)})||!1}hasExternalProjectRef(){return!!this.externalProjectRefCount}getEffectiveTypeRoots(){return A3(this.getCompilationSettings(),this)||[]}updateErrorOnNoInputFiles(e){GO(e,this.getConfigFilePath(),this.getCompilerOptions().configFile.configFileSpecs,this.projectErrors,this.canConfigFileJsonReportNoInputFiles)}},dR=class extends gS{constructor(e,t,n,i,s,o,c,u){super(e,2,t,n,!0,s,i,o,u,t.host,Un(c||iu(e))),this.externalProjectName=e,this.compileOnSaveEnabled=o,this.excludedFiles=[],this.enableGlobalPlugins(this.getCompilerOptions())}updateGraph(){const e=super.updateGraph();return this.projectService.sendProjectTelemetry(this),e}getExcludedFiles(){return this.excludedFiles}}}});function NDe(e){const t=new Map;for(const n of e)if(typeof n.type=="object"){const i=n.type;i.forEach(s=>{E.assert(typeof s=="number")}),t.set(n.name,i)}return t}function z6(e){return ls(e.indentStyle)&&(e.indentStyle=BDe.get(e.indentStyle.toLowerCase()),E.assert(e.indentStyle!==void 0)),e}function mR(e){return RDe.forEach((t,n)=>{const i=e[n];ls(i)&&(e[n]=t.get(i.toLowerCase()))}),e}function ZN(e,t){let n,i;return ZC.forEach(s=>{const o=e[s.name];if(o===void 0)return;const c=jDe.get(s.name);(n||(n={}))[s.name]=c?ls(o)?c.get(o.toLowerCase()):o:tS(s,o,t||"",i||(i=[]))}),n&&{watchOptions:n,errors:i}}function sde(e){let t;return nA.forEach(n=>{const i=e[n.name];i!==void 0&&((t||(t={}))[n.name]=i)}),t}function TY(e){return ls(e)?xY(e):e}function xY(e){switch(e){case"JS":return 1;case"JSX":return 2;case"TS":return 3;case"TSX":return 4;default:return 0}}function ade(e){const{lazyConfiguredProjectsFromExternalProject:t,...n}=e;return n}function IDe(e,t){for(const n of t)if(n.getProjectName()===e)return n}function kY(e){return!!e.containingProjects}function FDe(e){return!!e.configFileInfo}function W6(e,t,n,i,s){var o;const c=(o=e.getCurrentProgram())==null?void 0:o.getResolvedProjectReferences();if(!c)return;let u;const f=t?e.getResolvedProjectReferenceToRedirect(t):void 0;if(f){const d=Jo(f.sourceFile.fileName),y=e.projectService.findConfiguredProjectByProjectName(d);if(y){const S=n(y);if(S)return S}else if(i!==0){u=new Map;const S=ode(c,e.getCompilerOptions(),(T,k)=>f===T?g(T,k):void 0,i,e.projectService,u);if(S)return S;u.clear()}}return ode(c,e.getCompilerOptions(),(d,y)=>f!==d?g(d,y):void 0,i,e.projectService,u);function g(d,y){const S=Jo(d.sourceFile.fileName),T=e.projectService.findConfiguredProjectByProjectName(S)||(y===0?void 0:y===1?e.projectService.createConfiguredProject(S):y===2?e.projectService.createAndLoadConfiguredProject(S,s):E.assertNever(y));return T&&n(T)}}function ode(e,t,n,i,s,o){const c=t.disableReferencedProjectLoad?0:i;return er(e,u=>{if(!u)return;const f=Jo(u.sourceFile.fileName),g=s.toCanonicalFileName(f),d=o==null?void 0:o.get(g);if(d!==void 0&&d>=c)return;const y=n(u,c);return y||((o||(o=new Map)).set(g,c),u.references&&ode(u.references,u.commandLine.options,n,c,s,o))})}function ODe(e,t){return e.potentialProjectReferences&&Am(e.potentialProjectReferences,t)}function ret(e,t,n,i){return e.getCurrentProgram()?e.forEachResolvedProjectReference(t):e.isInitialLoadPending()?ODe(e,i):er(e.getProjectReferences(),n)}function cde(e,t,n){const i=n&&e.projectService.configuredProjects.get(n);return i&&t(i)}function LDe(e,t){return ret(e,n=>cde(e,t,n.sourceFile.path),n=>cde(e,t,e.toPath(l6(n))),n=>cde(e,t,n))}function net(e,t){return`${ls(t)?`Config: ${t} `:t?`Project: ${t.getProjectName()} `:""}WatchType: ${e}`}function MDe(e){return!e.isScriptOpen()&&e.mTime!==void 0}function Wx(e,t){return e.containsScriptInfo(t)&&!e.isSourceOfProjectReferenceRedirect(t.path)}function uf(e){return e.invalidateResolutionsOfFailedLookupLocations(),e.dirty&&e.updateGraph()}function lde(e){Y1(e)&&(e.projectOptions=!0)}function ude(e){let t=1;return()=>e(t++)}function _de(){return{idToCallbacks:new Map,pathToId:new Map}}function iet(e,t){if(!t||!e.eventHandler||!e.session)return;const n=_de(),i=_de(),s=_de();let o=1;return e.session.addProtocolHandler("watchChange",T=>(g(T.arguments),{responseRequired:!1})),{watchFile:c,watchDirectory:u,getCurrentDirectory:()=>e.host.getCurrentDirectory(),useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames};function c(T,k){return f(n,T,k,w=>({eventName:kR,data:{id:w,path:T}}))}function u(T,k,w){return f(w?s:i,T,k,P=>({eventName:CR,data:{id:P,path:T,recursive:!!w,ignoreUpdate:T.endsWith("/node_modules")?void 0:!0}}))}function f({pathToId:T,idToCallbacks:k},w,P,F){const J=e.toPath(w);let U=T.get(J);U||T.set(J,U=o++);let $=k.get(U);return $||(k.set(U,$=new Set),e.eventHandler(F(U))),$.add(P),{close(){const j=k.get(U);j!=null&&j.delete(P)&&(j.size||(k.delete(U),T.delete(J),e.eventHandler({eventName:ER,data:{id:U}})))}}}function g(T){ts(T)?T.forEach(d):d(T)}function d({id:T,created:k,deleted:w,updated:P}){y(T,k,0),y(T,w,2),y(T,P,1)}function y(T,k,w){k!=null&&k.length&&(S(n,T,k,(P,F)=>P(F,w)),S(i,T,k,(P,F)=>P(F)),S(s,T,k,(P,F)=>P(F)))}function S(T,k,w,P){var F;(F=T.idToCallbacks.get(k))==null||F.forEach(J=>{w.forEach(U=>P(J,iu(U)))})}}function set(){let e;return{get(){return e},set(t){e=t},clear(){e=void 0}}}function fde(e){return e.kind!==void 0}function pde(e){e.print(!1,!1,!1)}var gR,hR,KN,yR,vR,bR,SR,TR,xR,CY,kR,CR,ER,dde,RDe,jDe,BDe,EY,PR,DR,PY,DY,mde,wY,aet=wt({"src/server/editorServices.ts"(){ky(),hS(),Kpe(),gR=20*1024*1024,hR=4*1024*1024,KN="projectsUpdatedInBackground",yR="projectLoadingStart",vR="projectLoadingFinish",bR="largeFileReferenced",SR="configFileDiag",TR="projectLanguageServiceState",xR="projectInfo",CY="openFileInfo",kR="createFileWatcher",CR="createDirectoryWatcher",ER="closeFileWatcher",dde="*ensureProjectForOpenFiles*",RDe=NDe(Pg),jDe=NDe(ZC),BDe=new Map(Object.entries({none:0,block:1,smart:2})),EY={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,"$"]]}},PR={getFileName:e=>e,getScriptKind:(e,t)=>{let n;if(t){const i=jk(e);i&&ct(t,s=>s.extension===i?(n=s.scriptKind,!0):!1)}return n},hasMixedContent:(e,t)=>ct(t,n=>n.isMixedContent&&Zo(e,n.extension))},DR={getFileName:e=>e.fileName,getScriptKind:e=>TY(e.scriptKind),hasMixedContent:e=>!!e.hasMixedContent},PY={close:Ca},DY=(e=>(e[e.Find=0]="Find",e[e.FindCreate=1]="FindCreate",e[e.FindCreateLoad=2]="FindCreateLoad",e))(DY||{}),mde=class o0e{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=ude(Mpe),this.newAutoImportProviderProjectName=ude(Rpe),this.newAuxiliaryProjectName=ude(jpe),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=EY,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=Ca,this.verifyDocumentRegistry=Ca,this.verifyProgram=Ca,this.onProjectCreation=Ca;var n;this.host=t.host,this.logger=t.logger,this.cancellationToken=t.cancellationToken,this.useSingleInferredProject=t.useSingleInferredProject,this.useInferredProjectPerProjectRoot=t.useInferredProjectPerProjectRoot,this.typingsInstaller=t.typingsInstaller||pR,this.throttleWaitMilliseconds=t.throttleWaitMilliseconds,this.eventHandler=t.eventHandler,this.suppressDiagnosticEvents=t.suppressDiagnosticEvents,this.globalPlugins=t.globalPlugins||Wc,this.pluginProbeLocations=t.pluginProbeLocations||Wc,this.allowLocalPluginLoads=!!t.allowLocalPluginLoads,this.typesMapLocation=t.typesMapLocation===void 0?Mn(Un(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=vf()),this.currentDirectory=Jo(this.host.getCurrentDirectory()),this.toCanonicalFileName=nu(this.host.useCaseSensitiveFileNames),this.globalCacheLocationDirectoryPath=this.typingsInstaller.globalTypingsCacheLocation?ul(this.toPath(this.typingsInstaller.globalTypingsCacheLocation)):void 0,this.throttledOperations=new uY(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 mY(this.typingsInstaller),this.hostConfiguration={formatCodeOptions:gL(this.host.newLine),preferences:Zf,hostInfo:"Unknown host",extraFileExtensions:[]},this.documentRegistry=e$(this.host.useCaseSensitiveFileNames,this.currentDirectory,this.jsDocParsingMode,this);const i=this.logger.hasLevel(3)?2:this.logger.loggingEnabled()?1:0,s=i!==0?o=>this.logger.info(o):Ca;this.packageJsonCache=hde(this),this.watchFactory=this.serverMode!==0?{watchFile:d6,watchDirectory:d6}:Eq(iet(this,t.canUseWatchEvents)||this.host,i,s,net),(n=t.incrementalVerifier)==null||n.call(t,this)}toPath(t){return No(t,this.currentDirectory,this.toCanonicalFileName)}getExecutingFilePath(){return this.getNormalizedAbsolutePath(this.host.getExecutingFilePath())}getNormalizedAbsolutePath(t){return Xi(t,this.host.getCurrentDirectory())}setDocument(t,n,i){const s=E.checkDefined(this.getScriptInfoForPath(n));s.cacheSourceFile={key:t,sourceFile:i}}getDocument(t,n){const i=this.getScriptInfoForPath(n);return i&&i.cacheSourceFile&&i.cacheSourceFile.key===t?i.cacheSourceFile.sourceFile:void 0}ensureInferredProjectsUpToDate_TestOnly(){this.ensureProjectStructuresUptoDate()}getCompilerOptionsForInferredProjects(){return this.compilerOptionsForInferredProjects}onUpdateLanguageServiceStateForProject(t,n){if(!this.eventHandler)return;const i={eventName:TR,data:{project:t,languageServiceEnabled:n}};this.eventHandler(i)}loadTypesMap(){try{const t=this.host.readFile(this.typesMapLocation);if(t===void 0){this.logger.info(`Provided types map file "${this.typesMapLocation}" doesn't exist`);return}const n=JSON.parse(t);for(const i of Object.keys(n.typesMap))n.typesMap[i].match=new RegExp(n.typesMap[i].match,"i");this.safelist=n.typesMap;for(const i in n.simpleMap)Za(n.simpleMap,i)&&this.legacySafelist.set(i,n.simpleMap[i].toLowerCase())}catch(t){this.logger.info(`Error loading types map: ${t}`),this.safelist=EY,this.legacySafelist.clear()}}updateTypingsForProject(t){const n=this.findProject(t.projectName);if(n)switch(t.kind){case FA:n.updateTypingFiles(this.typingsCache.updateTypingsForProject(t.projectName,t.compilerOptions,t.typeAcquisition,t.unresolvedImports,t.typings));return;case OA:this.typingsCache.enqueueInstallTypingsForProject(n,n.lastCachedUnresolvedImportsList,!0);return}}watchTypingLocations(t){var n;(n=this.findProject(t.projectName))==null||n.watchTypingLocations(t.files)}delayEnsureProjectForOpenFiles(){this.openFiles.size&&(this.pendingEnsureProjectForOpenFiles=!0,this.throttledOperations.schedule(dde,2500,()=>{this.pendingProjectUpdates.size!==0?this.delayEnsureProjectForOpenFiles():this.pendingEnsureProjectForOpenFiles&&(this.ensureProjectForOpenFiles(),this.sendProjectsUpdatedInBackgroundEvent())}))}delayUpdateProjectGraph(t){if(t.markAsDirty(),YN(t))return;const n=t.getProjectName();this.pendingProjectUpdates.set(n,t),this.throttledOperations.schedule(n,250,()=>{this.pendingProjectUpdates.delete(n)&&uf(t)})}hasPendingProjectUpdate(t){return this.pendingProjectUpdates.has(t.getProjectName())}sendProjectsUpdatedInBackgroundEvent(){if(!this.eventHandler)return;const t={eventName:KN,data:{openFiles:gs(this.openFiles.keys(),n=>this.getScriptInfoForPath(n).fileName)}};this.eventHandler(t)}sendLargeFileReferencedEvent(t,n){if(!this.eventHandler)return;const i={eventName:bR,data:{file:t,fileSize:n,maxFileSize:hR}};this.eventHandler(i)}sendProjectLoadingStartEvent(t,n){if(!this.eventHandler)return;t.sendLoadingProjectFinish=!0;const i={eventName:yR,data:{project:t,reason:n}};this.eventHandler(i)}sendProjectLoadingFinishEvent(t){if(!this.eventHandler||!t.sendLoadingProjectFinish)return;t.sendLoadingProjectFinish=!1;const n={eventName:vR,data:{project:t}};this.eventHandler(n)}sendPerformanceEvent(t,n){this.performanceEventHandler&&this.performanceEventHandler({kind:t,durationMs:n})}delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(t){this.delayUpdateProjectGraph(t),this.delayEnsureProjectForOpenFiles()}delayUpdateProjectGraphs(t,n){if(t.length){for(const i of t)n&&i.clearSourceMapperCache(),this.delayUpdateProjectGraph(i);this.delayEnsureProjectForOpenFiles()}}setCompilerOptionsForInferredProjects(t,n){E.assert(n===void 0||this.useInferredProjectPerProjectRoot,"Setting compiler options per project root path is only supported when useInferredProjectPerProjectRoot is enabled");const i=mR(t),s=ZN(t,n),o=sde(t);i.allowNonTsExtensions=!0;const c=n&&this.toCanonicalFileName(n);c?(this.compilerOptionsForInferredProjectsPerProjectRoot.set(c,i),this.watchOptionsForInferredProjectsPerProjectRoot.set(c,s||!1),this.typeAcquisitionForInferredProjectsPerProjectRoot.set(c,o)):(this.compilerOptionsForInferredProjects=i,this.watchOptionsForInferredProjects=s,this.typeAcquisitionForInferredProjects=o);for(const u of this.inferredProjects)(c?u.projectRootPath===c:!u.projectRootPath||!this.compilerOptionsForInferredProjectsPerProjectRoot.has(u.projectRootPath))&&(u.setCompilerOptions(i),u.setTypeAcquisition(o),u.setWatchOptions(s==null?void 0:s.watchOptions),u.setProjectErrors(s==null?void 0:s.errors),u.compileOnSaveEnabled=i.compileOnSave,u.markAsDirty(),this.delayUpdateProjectGraph(u));this.delayEnsureProjectForOpenFiles()}findProject(t){if(t!==void 0)return Lpe(t)?IDe(t,this.inferredProjects):this.findExternalProjectByProjectName(t)||this.findConfiguredProjectByProjectName(Jo(t))}forEachProject(t){this.externalProjects.forEach(t),this.configuredProjects.forEach(t),this.inferredProjects.forEach(t)}forEachEnabledProject(t){this.forEachProject(n=>{!n.isOrphan()&&n.languageServiceEnabled&&t(n)})}getDefaultProjectForFile(t,n){return n?this.ensureDefaultProjectForFile(t):this.tryGetDefaultProjectForFile(t)}tryGetDefaultProjectForFile(t){const n=ls(t)?this.getScriptInfoForNormalizedPath(t):t;return n&&!n.isOrphan()?n.getDefaultProject():void 0}ensureDefaultProjectForFile(t){return this.tryGetDefaultProjectForFile(t)||this.doEnsureDefaultProjectForFile(t)}doEnsureDefaultProjectForFile(t){this.ensureProjectStructuresUptoDate();const n=ls(t)?this.getScriptInfoForNormalizedPath(t):t;return n?n.getDefaultProject():(this.logErrorForScriptInfoNotFound(ls(t)?t:t.fileName),g0.ThrowNoProject())}getScriptInfoEnsuringProjectsUptoDate(t){return this.ensureProjectStructuresUptoDate(),this.getScriptInfo(t)}ensureProjectStructuresUptoDate(){let t=this.pendingEnsureProjectForOpenFiles;this.pendingProjectUpdates.clear();const n=i=>{t=uf(i)||t};this.externalProjects.forEach(n),this.configuredProjects.forEach(n),this.inferredProjects.forEach(n),t&&this.ensureProjectForOpenFiles()}getFormatCodeOptions(t){const n=this.getScriptInfoForNormalizedPath(t);return n&&n.getFormatCodeSettings()||this.hostConfiguration.formatCodeOptions}getPreferences(t){const n=this.getScriptInfoForNormalizedPath(t);return{...this.hostConfiguration.preferences,...n&&n.getPreferences()}}getHostFormatCodeOptions(){return this.hostConfiguration.formatCodeOptions}getHostPreferences(){return this.hostConfiguration.preferences}onSourceFileChanged(t,n){n===2?this.handleDeletedFile(t):t.isScriptOpen()||(t.delayReloadNonMixedContentFile(),this.delayUpdateProjectGraphs(t.containingProjects,!1),this.handleSourceMapProjects(t))}handleSourceMapProjects(t){if(t.sourceMapFilePath)if(ls(t.sourceMapFilePath)){const n=this.getScriptInfoForPath(t.sourceMapFilePath);this.delayUpdateSourceInfoProjects(n&&n.sourceInfos)}else this.delayUpdateSourceInfoProjects(t.sourceMapFilePath.sourceInfos);this.delayUpdateSourceInfoProjects(t.sourceInfos),t.declarationInfoPath&&this.delayUpdateProjectsOfScriptInfoPath(t.declarationInfoPath)}delayUpdateSourceInfoProjects(t){t&&t.forEach((n,i)=>this.delayUpdateProjectsOfScriptInfoPath(i))}delayUpdateProjectsOfScriptInfoPath(t){const n=this.getScriptInfoForPath(t);n&&this.delayUpdateProjectGraphs(n.containingProjects,!0)}handleDeletedFile(t){if(this.stopWatchingScriptInfo(t),!t.isScriptOpen()){this.deleteScriptInfo(t);const n=t.containingProjects.slice();if(t.detachAllProjects(),this.delayUpdateProjectGraphs(n,!1),this.handleSourceMapProjects(t),t.closeSourceMapFileWatcher(),t.declarationInfoPath){const i=this.getScriptInfoForPath(t.declarationInfoPath);i&&(i.sourceMapFilePath=void 0)}}}watchWildcardDirectory(t,n,i,s){let o=this.watchFactory.watchDirectory(t,u=>{const f=this.toPath(u),g=s.cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(u,f);if(wc(f)==="package.json"&&!aN(f)&&(g&&g.fileExists||!g&&this.host.fileExists(u))){const y=this.getNormalizedAbsolutePath(u);this.logger.info(`Config: ${i} Detected new package.json: ${y}`),this.packageJsonCache.addOrUpdate(y,f),this.watchPackageJsonFile(y,f,c)}const d=this.findConfiguredProjectByProjectName(i);xA({watchedDirPath:this.toPath(t),fileOrDirectory:u,fileOrDirectoryPath:f,configFileName:i,extraFileExtensions:this.hostConfiguration.extraFileExtensions,currentDirectory:this.currentDirectory,options:s.parsedCommandLine.options,program:(d==null?void 0:d.getCurrentProgram())||s.parsedCommandLine.fileNames,useCaseSensitiveFileNames:this.host.useCaseSensitiveFileNames,writeLog:y=>this.logger.info(y),toPath:y=>this.toPath(y),getScriptKind:d?y=>d.getScriptKind(y):void 0})||(s.updateLevel!==2&&(s.updateLevel=1),s.projects.forEach((y,S)=>{if(!y)return;const T=this.getConfiguredProjectByCanonicalConfigFilePath(S);if(!T)return;const k=d===T?1:0;if(!(T.pendingUpdateLevel!==void 0&&T.pendingUpdateLevel>k))if(this.openFiles.has(f))if(E.checkDefined(this.getScriptInfoForPath(f)).isAttached(T)){const P=Math.max(k,T.openFileWatchTriggered.get(f)||0);T.openFileWatchTriggered.set(f,P)}else T.pendingUpdateLevel=k,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(T);else T.pendingUpdateLevel=k,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(T)}))},n,this.getWatchOptionsFromProjectWatchOptions(s.parsedCommandLine.watchOptions),sl.WildcardDirectory,i);const c={packageJsonWatches:void 0,close(){var u;o&&(o.close(),o=void 0,(u=c.packageJsonWatches)==null||u.forEach(f=>{f.projects.delete(c),f.close()}),c.packageJsonWatches=void 0)}};return c}delayUpdateProjectsFromParsedConfigOnConfigFileChange(t,n){const i=this.configFileExistenceInfoCache.get(t);if(!(i!=null&&i.config))return!1;let s=!1;return i.config.updateLevel=2,i.config.projects.forEach((o,c)=>{const u=this.getConfiguredProjectByCanonicalConfigFilePath(c);if(u)if(s=!0,c===t){if(u.isInitialLoadPending())return;u.pendingUpdateLevel=2,u.pendingUpdateReason=n,this.delayUpdateProjectGraph(u)}else u.resolutionCache.removeResolutionsFromProjectReferenceRedirects(this.toPath(t)),this.delayUpdateProjectGraph(u)}),s}onConfigFileChanged(t,n){var i;const s=this.configFileExistenceInfoCache.get(t);if(n===2){s.exists=!1;const o=(i=s.config)!=null&&i.projects.has(t)?this.getConfiguredProjectByCanonicalConfigFilePath(t):void 0;o&&this.removeProject(o)}else s.exists=!0;this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(t,"Change in config file detected"),this.reloadConfiguredProjectForFiles(s.openFilesImpactedByConfigFile,!1,!0,n!==2?Do:Wh,"Change in config file detected"),this.delayEnsureProjectForOpenFiles()}removeProject(t){switch(this.logger.info("`remove Project::"),t.print(!0,!0,!1),t.close(),E.shouldAssert(1)&&this.filenameToScriptInfo.forEach(n=>E.assert(!n.isAttached(t),"Found script Info still attached to project",()=>`${t.projectName}: ScriptInfos still attached: ${JSON.stringify(gs(J4(this.filenameToScriptInfo.values(),i=>i.isAttached(t)?{fileName:i.fileName,projects:i.containingProjects.map(s=>s.projectName),hasMixedContent:i.hasMixedContent}:void 0)),void 0," ")}`)),this.pendingProjectUpdates.delete(t.getProjectName()),t.projectKind){case 2:ST(this.externalProjects,t),this.projectToSizeMap.delete(t.getProjectName());break;case 1:this.configuredProjects.delete(t.canonicalConfigFilePath),this.projectToSizeMap.delete(t.canonicalConfigFilePath);break;case 0:ST(this.inferredProjects,t);break}}assignOrphanScriptInfoToInferredProject(t,n){E.assert(t.isOrphan());const i=this.getOrCreateInferredProjectForProjectRootPathIfEnabled(t,n)||this.getOrCreateSingleInferredProjectIfEnabled()||this.getOrCreateSingleInferredWithoutProjectRoot(t.isDynamic?n||this.currentDirectory:Un(F_(t.fileName)?t.fileName:Xi(t.fileName,n?this.getNormalizedAbsolutePath(n):this.currentDirectory)));if(i.addRoot(t),t.containingProjects[0]!==i&&(Ik(t.containingProjects,i),t.containingProjects.unshift(i)),i.updateGraph(),!this.useSingleInferredProject&&!i.projectRootPath)for(const s of this.inferredProjects){if(s===i||s.isOrphan())continue;const o=s.getRootScriptInfos();E.assert(o.length===1||!!s.projectRootPath),o.length===1&&er(o[0].containingProjects,c=>c!==o[0].containingProjects[0]&&!c.isOrphan())&&s.removeFile(o[0],!0,!0)}return i}assignOrphanScriptInfosToInferredProject(){this.openFiles.forEach((t,n)=>{const i=this.getScriptInfoForPath(n);i.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(i,t)})}closeOpenFile(t,n){const i=t.isDynamic?!1:this.host.fileExists(t.fileName);t.close(i),this.stopWatchingConfigFilesForClosedScriptInfo(t);const s=this.toCanonicalFileName(t.fileName);this.openFilesWithNonRootedDiskPath.get(s)===t&&this.openFilesWithNonRootedDiskPath.delete(s);let o=!1;for(const c of t.containingProjects){if(Y1(c)){t.hasMixedContent&&t.registerFileUpdate();const u=c.openFileWatchTriggered.get(t.path);u!==void 0&&(c.openFileWatchTriggered.delete(t.path),c.pendingUpdateLevel!==void 0&&c.pendingUpdateLevelthis.onConfigFileChanged(n,g),2e3,this.getWatchOptionsFromProjectWatchOptions((o=(s=c==null?void 0:c.config)==null?void 0:s.parsedCommandLine)==null?void 0:o.watchOptions),sl.ConfigFile,i));const u=c.config.projects;u.set(i.canonicalConfigFilePath,u.get(i.canonicalConfigFilePath)||!1)}configFileExistenceImpactsRootOfInferredProject(t){return t.openFilesImpactedByConfigFile&&_l(t.openFilesImpactedByConfigFile,Do)}releaseParsedConfig(t,n){var i,s,o;const c=this.configFileExistenceInfoCache.get(t);(i=c.config)!=null&&i.projects.delete(n.canonicalConfigFilePath)&&((s=c.config)!=null&&s.projects.size||(c.config=void 0,kq(t,this.sharedExtendedConfigFileWatchers),E.checkDefined(c.watcher),(o=c.openFilesImpactedByConfigFile)!=null&&o.size?this.configFileExistenceImpactsRootOfInferredProject(c)?K9(ll(Un(t)))||(c.watcher.close(),c.watcher=PY):(c.watcher.close(),c.watcher=void 0):(c.watcher.close(),this.configFileExistenceInfoCache.delete(t))))}closeConfigFileWatcherOnReleaseOfOpenFile(t){t.watcher&&!t.config&&!this.configFileExistenceImpactsRootOfInferredProject(t)&&(t.watcher.close(),t.watcher=void 0)}stopWatchingConfigFilesForClosedScriptInfo(t){E.assert(!t.isScriptOpen()),this.forEachConfigFileLocation(t,n=>{var i,s,o;const c=this.configFileExistenceInfoCache.get(n);if(c){const u=(i=c.openFilesImpactedByConfigFile)==null?void 0:i.get(t.path);(s=c.openFilesImpactedByConfigFile)==null||s.delete(t.path),u&&this.closeConfigFileWatcherOnReleaseOfOpenFile(c),!((o=c.openFilesImpactedByConfigFile)!=null&&o.size)&&!c.config&&(E.assert(!c.watcher),this.configFileExistenceInfoCache.delete(n))}})}startWatchingConfigFilesForInferredProjectRoot(t){E.assert(t.isScriptOpen()),this.forEachConfigFileLocation(t,(n,i)=>{let s=this.configFileExistenceInfoCache.get(n);s||(s={exists:this.host.fileExists(i)},this.configFileExistenceInfoCache.set(n,s)),(s.openFilesImpactedByConfigFile||(s.openFilesImpactedByConfigFile=new Map)).set(t.path,!0),s.watcher||(s.watcher=K9(ll(Un(n)))?this.watchFactory.watchFile(i,(o,c)=>this.onConfigFileChanged(n,c),2e3,this.hostConfiguration.watchOptions,sl.ConfigFileForInferredRoot):PY)})}stopWatchingConfigFilesForInferredProjectRoot(t){this.forEachConfigFileLocation(t,n=>{var i;const s=this.configFileExistenceInfoCache.get(n);(i=s==null?void 0:s.openFilesImpactedByConfigFile)!=null&&i.has(t.path)&&(E.assert(t.isScriptOpen()),s.openFilesImpactedByConfigFile.set(t.path,!1),this.closeConfigFileWatcherOnReleaseOfOpenFile(s))})}forEachConfigFileLocation(t,n){if(this.serverMode!==0)return;E.assert(!kY(t)||this.openFiles.has(t.path));const i=this.openFiles.get(t.path);if(E.checkDefined(this.getScriptInfo(t.path)).isDynamic)return;let o=Un(t.fileName);const c=()=>jp(i,o,this.currentDirectory,!this.host.useCaseSensitiveFileNames),u=!i||!c();let f=!FDe(t);do{if(f){const d=$N(o,this.currentDirectory,this.toCanonicalFileName),y=Mn(o,"tsconfig.json");let S=n(Mn(d,"tsconfig.json"),y);if(S)return y;const T=Mn(o,"jsconfig.json");if(S=n(Mn(d,"jsconfig.json"),T),S)return T;if(I7(d))break}const g=Un(o);if(g===o)break;o=g,f=!0}while(u||c())}findDefaultConfiguredProject(t){if(!t.isScriptOpen())return;const n=this.getConfigFileNameForFile(t),i=n&&this.findConfiguredProjectByProjectName(n);return i&&Wx(i,t)?i:i==null?void 0:i.getDefaultChildProjectFromProjectWithReferences(t)}getConfigFileNameForFile(t){if(!FDe(t)){const i=this.configFileForOpenFiles.get(t.path);if(i!==void 0)return i||void 0}this.logger.info(`Search path: ${Un(t.fileName)}`);const n=this.forEachConfigFileLocation(t,(i,s)=>this.configFileExists(s,i,t));return n?this.logger.info(`For info: ${t.fileName} :: Config file name: ${n}`):this.logger.info(`For info: ${t.fileName} :: No config files found.`),kY(t)&&this.configFileForOpenFiles.set(t.path,n||!1),n}printProjects(){this.logger.hasLevel(1)&&(this.logger.startGroup(),this.externalProjects.forEach(pde),this.configuredProjects.forEach(pde),this.inferredProjects.forEach(pde),this.logger.info("Open files: "),this.openFiles.forEach((t,n)=>{const i=this.getScriptInfoForPath(n);this.logger.info(` FileName: ${i.fileName} ProjectRootPath: ${t}`),this.logger.info(` Projects: ${i.containingProjects.map(s=>s.getProjectName())}`)}),this.logger.endGroup())}findConfiguredProjectByProjectName(t){const n=this.toCanonicalFileName(t);return this.getConfiguredProjectByCanonicalConfigFilePath(n)}getConfiguredProjectByCanonicalConfigFilePath(t){return this.configuredProjects.get(t)}findExternalProjectByProjectName(t){return IDe(t,this.externalProjects)}getFilenameForExceededTotalSizeLimitForNonTsFiles(t,n,i,s){if(n&&n.disableSizeLimit||!this.host.getFileSize)return;let o=gR;this.projectToSizeMap.set(t,0),this.projectToSizeMap.forEach(u=>o-=u||0);let c=0;for(const u of i){const f=s.getFileName(u);if(!GT(f)&&(c+=this.host.getFileSize(f),c>gR||c>o)){const g=i.map(d=>s.getFileName(d)).filter(d=>!GT(d)).map(d=>({name:d,size:this.host.getFileSize(d)})).sort((d,y)=>y.size-d.size).slice(0,5);return this.logger.info(`Non TS file size exceeded limit (${c}). Largest files: ${g.map(d=>`${d.name}:${d.size}`).join(", ")}`),f}}this.projectToSizeMap.set(t,c)}createExternalProject(t,n,i,s,o){const c=mR(i),u=ZN(i,Un(iu(t))),f=new dR(t,this,this.documentRegistry,c,this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t,c,n,DR),i.compileOnSave===void 0?!0:i.compileOnSave,void 0,u==null?void 0:u.watchOptions);return f.setProjectErrors(u==null?void 0:u.errors),f.excludedFiles=o,this.addFilesToNonInferredProject(f,n,DR,s),this.externalProjects.push(f),f}sendProjectTelemetry(t){if(this.seenProjects.has(t.projectName)){lde(t);return}if(this.seenProjects.set(t.projectName,!0),!this.eventHandler||!this.host.createSHA256Hash){lde(t);return}const n=Y1(t)?t.projectOptions:void 0;lde(t);const i={projectId:this.host.createSHA256Hash(t.projectName),fileStats:QN(t.getScriptInfos(),!0),compilerOptions:Xie(t.getCompilationSettings()),typeAcquisition:o(t.getTypeAcquisition()),extends:n&&n.configHasExtendsProperty,files:n&&n.configHasFilesProperty,include:n&&n.configHasIncludeProperty,exclude:n&&n.configHasExcludeProperty,compileOnSave:t.compileOnSaveEnabled,configFileName:s(),projectType:t instanceof dR?"external":"configured",languageServiceEnabled:t.languageServiceEnabled,version:yf};this.eventHandler({eventName:xR,data:i});function s(){return Y1(t)&&lY(t.getConfigFilePath())||"other"}function o({enable:c,include:u,exclude:f}){return{enable:c,include:u!==void 0&&u.length!==0,exclude:f!==void 0&&f.length!==0}}}addFilesToNonInferredProject(t,n,i,s){this.updateNonInferredProjectFiles(t,n,i),t.setTypeAcquisition(s),t.markAsDirty()}createConfiguredProject(t){var n;(n=qr)==null||n.instant(qr.Phase.Session,"createConfiguredProject",{configFilePath:t}),this.logger.info(`Creating configuration project ${t}`);const i=this.toCanonicalFileName(t);let s=this.configFileExistenceInfoCache.get(i);s?s.exists=!0:this.configFileExistenceInfoCache.set(i,s={exists:!0}),s.config||(s.config={cachedDirectoryStructureHost:j9(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),projects:new Map,updateLevel:2});const o=new SY(t,i,this,this.documentRegistry,s.config.cachedDirectoryStructureHost);return this.configuredProjects.set(i,o),this.createConfigFileWatcherForParsedConfig(t,i,o),o}createConfiguredProjectWithDelayLoad(t,n){const i=this.createConfiguredProject(t);return i.pendingUpdateLevel=2,i.pendingUpdateReason=n,i}createAndLoadConfiguredProject(t,n){const i=this.createConfiguredProject(t);return this.loadConfiguredProject(i,n),i}createLoadAndUpdateConfiguredProject(t,n){const i=this.createAndLoadConfiguredProject(t,n);return i.updateGraph(),i}loadConfiguredProject(t,n){var i,s;(i=qr)==null||i.push(qr.Phase.Session,"loadConfiguredProject",{configFilePath:t.canonicalConfigFilePath}),this.sendProjectLoadingStartEvent(t,n);const o=Hs(t.getConfigFilePath()),c=this.ensureParsedConfigUptoDate(o,t.canonicalConfigFilePath,this.configFileExistenceInfoCache.get(t.canonicalConfigFilePath),t),u=c.config.parsedCommandLine;E.assert(!!u.fileNames);const f=u.options;t.projectOptions||(t.projectOptions={configHasExtendsProperty:u.raw.extends!==void 0,configHasFilesProperty:u.raw.files!==void 0,configHasIncludeProperty:u.raw.include!==void 0,configHasExcludeProperty:u.raw.exclude!==void 0}),t.canConfigFileJsonReportNoInputFiles=E3(u.raw),t.setProjectErrors(u.options.configFile.parseDiagnostics),t.updateReferences(u.projectReferences);const g=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t.canonicalConfigFilePath,f,u.fileNames,PR);g?(t.disableLanguageService(g),this.configFileExistenceInfoCache.forEach((y,S)=>this.stopWatchingWildCards(S,t))):(t.setCompilerOptions(f),t.setWatchOptions(u.watchOptions),t.enableLanguageService(),this.watchWildcards(o,c,t)),t.enablePluginsWithOptions(f);const d=u.fileNames.concat(t.getExternalFiles(2));this.updateRootAndOptionsOfNonInferredProject(t,d,PR,f,u.typeAcquisition,u.compileOnSave,u.watchOptions),(s=qr)==null||s.pop()}ensureParsedConfigUptoDate(t,n,i,s){var o,c,u;if(i.config){if(!i.config.updateLevel)return i;if(i.config.updateLevel===1)return this.reloadFileNamesOfParsedConfig(t,i.config),i}const f=((o=i.config)==null?void 0:o.cachedDirectoryStructureHost)||j9(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),g=C3(t,k=>this.host.readFile(k)),d=Gw(t,ls(g)?g:""),y=d.parseDiagnostics;ls(g)||y.push(g);const S=Yw(d,f,Un(t),{},t,[],this.hostConfiguration.extraFileExtensions,this.extendedConfigCache);S.errors.length&&y.push(...S.errors),this.logger.info(`Config: ${t} : ${JSON.stringify({rootNames:S.fileNames,options:S.options,watchOptions:S.watchOptions,projectReferences:S.projectReferences},void 0," ")}`);const T=(c=i.config)==null?void 0:c.parsedCommandLine;return i.config?(i.config.parsedCommandLine=S,i.config.watchedDirectoriesStale=!0,i.config.updateLevel=void 0):i.config={parsedCommandLine:S,cachedDirectoryStructureHost:f,projects:new Map},!T&&!xF(this.getWatchOptionsFromProjectWatchOptions(void 0),this.getWatchOptionsFromProjectWatchOptions(S.watchOptions))&&((u=i.watcher)==null||u.close(),i.watcher=void 0),this.createConfigFileWatcherForParsedConfig(t,n,s),B9(n,S.options,this.sharedExtendedConfigFileWatchers,(k,w)=>this.watchFactory.watchFile(k,()=>{var P;J9(this.extendedConfigCache,w,J=>this.toPath(J));let F=!1;(P=this.sharedExtendedConfigFileWatchers.get(w))==null||P.projects.forEach(J=>{F=this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(J,`Change in extended config file ${k} detected`)||F}),F&&this.delayEnsureProjectForOpenFiles()},2e3,this.hostConfiguration.watchOptions,sl.ExtendedConfigFile,t),k=>this.toPath(k)),i}watchWildcards(t,{exists:n,config:i},s){if(i.projects.set(s.canonicalConfigFilePath,!0),n){if(i.watchedDirectories&&!i.watchedDirectoriesStale)return;i.watchedDirectoriesStale=!1,TA(i.watchedDirectories||(i.watchedDirectories=new Map),i.parsedCommandLine.wildcardDirectories,(o,c)=>this.watchWildcardDirectory(o,c,t,i))}else{if(i.watchedDirectoriesStale=!1,!i.watchedDirectories)return;T_(i.watchedDirectories,Qf),i.watchedDirectories=void 0}}stopWatchingWildCards(t,n){const i=this.configFileExistenceInfoCache.get(t);!i.config||!i.config.projects.get(n.canonicalConfigFilePath)||(i.config.projects.set(n.canonicalConfigFilePath,!1),!_l(i.config.projects,Do)&&(i.config.watchedDirectories&&(T_(i.config.watchedDirectories,Qf),i.config.watchedDirectories=void 0),i.config.watchedDirectoriesStale=void 0))}updateNonInferredProjectFiles(t,n,i){const s=t.getRootFilesMap(),o=new Map;for(const c of n){const u=i.getFileName(c),f=Jo(u),g=XN(f);let d;if(!g&&!t.fileExists(u)){d=$N(f,this.currentDirectory,this.toCanonicalFileName);const y=s.get(d);y?(y.info&&(t.removeFile(y.info,!1,!0),y.info=void 0),y.fileName=f):s.set(d,{fileName:f})}else{const y=i.getScriptKind(c,this.hostConfiguration.extraFileExtensions),S=i.hasMixedContent(c,this.hostConfiguration.extraFileExtensions),T=E.checkDefined(this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(f,t.currentDirectory,y,S,t.directoryStructureHost));d=T.path;const k=s.get(d);!k||k.info!==T?(t.addRoot(T,f),T.isScriptOpen()&&this.removeRootOfInferredProjectIfNowPartOfOtherProject(T)):k.fileName=f}o.set(d,!0)}s.size>o.size&&s.forEach((c,u)=>{o.has(u)||(c.info?t.removeFile(c.info,t.fileExists(c.info.fileName),!0):s.delete(u))})}updateRootAndOptionsOfNonInferredProject(t,n,i,s,o,c,u){t.setCompilerOptions(s),t.setWatchOptions(u),c!==void 0&&(t.compileOnSaveEnabled=c),this.addFilesToNonInferredProject(t,n,i,o)}reloadFileNamesOfConfiguredProject(t){const n=this.reloadFileNamesOfParsedConfig(t.getConfigFilePath(),this.configFileExistenceInfoCache.get(t.canonicalConfigFilePath).config);return t.updateErrorOnNoInputFiles(n),this.updateNonInferredProjectFiles(t,n.concat(t.getExternalFiles(1)),PR),t.markAsDirty(),t.updateGraph()}reloadFileNamesOfParsedConfig(t,n){if(n.updateLevel===void 0)return n.parsedCommandLine.fileNames;E.assert(n.updateLevel===1);const i=n.parsedCommandLine.options.configFile.configFileSpecs,s=P3(i,Un(t),n.parsedCommandLine.options,n.cachedDirectoryStructureHost,this.hostConfiguration.extraFileExtensions);return n.parsedCommandLine={...n.parsedCommandLine,fileNames:s},s}setFileNamesOfAutpImportProviderOrAuxillaryProject(t,n){this.updateNonInferredProjectFiles(t,n,PR)}reloadConfiguredProject(t,n,i,s){const o=t.getCachedDirectoryStructureHost();s&&this.clearSemanticCache(t),o.clearCache();const c=t.getConfigFilePath();this.logger.info(`${i?"Loading":"Reloading"} configured project ${c}`),this.loadConfiguredProject(t,n),t.updateGraph(),this.sendConfigFileDiagEvent(t,c)}clearSemanticCache(t){t.resolutionCache.clear(),t.getLanguageService(!1).cleanupSemanticCache(),t.cleanupProgram(),t.markAsDirty()}sendConfigFileDiagEvent(t,n){if(!this.eventHandler||this.suppressDiagnosticEvents)return;const i=t.getLanguageService().getCompilerOptionsDiagnostics();i.push(...t.getAllProjectErrors()),this.eventHandler({eventName:SR,data:{configFileName:t.getConfigFilePath(),diagnostics:i,triggerFile:n}})}getOrCreateInferredProjectForProjectRootPathIfEnabled(t,n){if(!this.useInferredProjectPerProjectRoot||t.isDynamic&&n===void 0)return;if(n){const s=this.toCanonicalFileName(n);for(const o of this.inferredProjects)if(o.projectRootPath===s)return o;return this.createInferredProject(n,!1,n)}let i;for(const s of this.inferredProjects)s.projectRootPath&&jp(s.projectRootPath,t.path,this.host.getCurrentDirectory(),!this.host.useCaseSensitiveFileNames)&&(i&&i.projectRootPath.length>s.projectRootPath.length||(i=s));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){E.assert(!this.useSingleInferredProject);const n=this.toCanonicalFileName(this.getNormalizedAbsolutePath(t));for(const i of this.inferredProjects)if(!i.projectRootPath&&i.isOrphan()&&i.canonicalCurrentDirectory===n)return i;return this.createInferredProject(t)}createInferredProject(t,n,i){const s=i&&this.compilerOptionsForInferredProjectsPerProjectRoot.get(i)||this.compilerOptionsForInferredProjects;let o,c;i&&(o=this.watchOptionsForInferredProjectsPerProjectRoot.get(i),c=this.typeAcquisitionForInferredProjectsPerProjectRoot.get(i)),o===void 0&&(o=this.watchOptionsForInferredProjects),c===void 0&&(c=this.typeAcquisitionForInferredProjects),o=o||void 0;const u=new hY(this,this.documentRegistry,s,o==null?void 0:o.watchOptions,i,t,c);return u.setProjectErrors(o==null?void 0:o.errors),n?this.inferredProjects.unshift(u):this.inferredProjects.push(u),u}getOrCreateScriptInfoNotOpenedByClient(t,n,i){return this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(Jo(t),n,void 0,void 0,i)}getScriptInfo(t){return this.getScriptInfoForNormalizedPath(Jo(t))}getScriptInfoOrConfig(t){const n=Jo(t),i=this.getScriptInfoForNormalizedPath(n);if(i)return i;const s=this.configuredProjects.get(this.toPath(t));return s&&s.getCompilerOptions().configFile}logErrorForScriptInfoNotFound(t){const n=gs(this.filenameToScriptInfo.entries(),([i,s])=>({path:i,fileName:s.fileName}));this.logger.msg(`Could not find file ${JSON.stringify(t)}. -All files are: ${JSON.stringify(n)}`,"Err")}getSymlinkedProjects(t){let n;if(this.realpathToScriptInfos){const s=t.getRealpathIfDifferent();s&&er(this.realpathToScriptInfos.get(s),i),er(this.realpathToScriptInfos.get(t.path),i)}return n;function i(s){if(s!==t)for(const o of s.containingProjects)o.languageServiceEnabled&&!o.isOrphan()&&!o.getCompilerOptions().preserveSymlinks&&!t.isAttached(o)&&(n?_l(n,(c,u)=>u===s.path?!1:bs(c,o))||n.add(s.path,o):(n=vf(),n.add(s.path,o)))}}watchClosedScriptInfo(t){if(E.assert(!t.fileWatcher),!t.isDynamicOrHasMixedContent()&&(!this.globalCacheLocationDirectoryPath||!Vi(t.path,this.globalCacheLocationDirectoryPath))){const n=t.fileName.indexOf("/node_modules/");!this.host.getModifiedTime||n===-1?t.fileWatcher=this.watchFactory.watchFile(t.fileName,(i,s)=>this.onSourceFileChanged(t,s),500,this.hostConfiguration.watchOptions,sl.ClosedScriptInfo):(t.mTime=this.getModifiedTime(t),t.fileWatcher=this.watchClosedScriptInfoInNodeModules(t.fileName.substring(0,n)))}}createNodeModulesWatcher(t,n){let i=this.watchFactory.watchDirectory(t,o=>{var c;const u=Z9(this.toPath(o));if(!u)return;const f=wc(u);if((c=s.affectedModuleSpecifierCacheProjects)!=null&&c.size&&(f==="package.json"||f==="node_modules")&&s.affectedModuleSpecifierCacheProjects.forEach(g=>{var d;(d=g.getModuleSpecifierCache())==null||d.clear()}),s.refreshScriptInfoRefCount)if(n===u)this.refreshScriptInfosInDirectory(n);else{const g=this.getScriptInfoForPath(u);g?MDe(g)&&this.refreshScriptInfo(g):kT(u)||this.refreshScriptInfosInDirectory(u)}},1,this.hostConfiguration.watchOptions,sl.NodeModules);const s={refreshScriptInfoRefCount:0,affectedModuleSpecifierCacheProjects:void 0,close:()=>{var o;i&&!s.refreshScriptInfoRefCount&&!((o=s.affectedModuleSpecifierCacheProjects)!=null&&o.size)&&(i.close(),i=void 0,this.nodeModulesWatchers.delete(n))}};return this.nodeModulesWatchers.set(n,s),s}watchPackageJsonsInNodeModules(t,n){var i;const s=this.toPath(t),o=this.nodeModulesWatchers.get(s)||this.createNodeModulesWatcher(t,s);return E.assert(!((i=o.affectedModuleSpecifierCacheProjects)!=null&&i.has(n))),(o.affectedModuleSpecifierCacheProjects||(o.affectedModuleSpecifierCacheProjects=new Set)).add(n),{close:()=>{var c;(c=o.affectedModuleSpecifierCacheProjects)==null||c.delete(n),o.close()}}}watchClosedScriptInfoInNodeModules(t){const n=t+"/node_modules",i=this.toPath(n),s=this.nodeModulesWatchers.get(i)||this.createNodeModulesWatcher(n,i);return s.refreshScriptInfoRefCount++,{close:()=>{s.refreshScriptInfoRefCount--,s.close()}}}getModifiedTime(t){return(this.host.getModifiedTime(t.fileName)||rf).getTime()}refreshScriptInfo(t){const n=this.getModifiedTime(t);if(n!==t.mTime){const i=wJ(t.mTime,n);t.mTime=n,this.onSourceFileChanged(t,i)}}refreshScriptInfosInDirectory(t){t=t+Io,this.filenameToScriptInfo.forEach(n=>{MDe(n)&&Vi(n.path,t)&&this.refreshScriptInfo(n)})}stopWatchingScriptInfo(t){t.fileWatcher&&(t.fileWatcher.close(),t.fileWatcher=void 0)}getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(t,n,i,s,o){if(F_(t)||XN(t))return this.getOrCreateScriptInfoWorker(t,n,!1,void 0,i,s,o);const c=this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(t));if(c)return c}getOrCreateScriptInfoOpenedByClientForNormalizedPath(t,n,i,s,o){return this.getOrCreateScriptInfoWorker(t,n,!0,i,s,o)}getOrCreateScriptInfoForNormalizedPath(t,n,i,s,o,c){return this.getOrCreateScriptInfoWorker(t,this.currentDirectory,n,i,s,o,c)}getOrCreateScriptInfoWorker(t,n,i,s,o,c,u){E.assert(s===void 0||i,"ScriptInfo needs to be opened by client to be able to set its user defined content");const f=$N(t,n,this.toCanonicalFileName);let g=this.getScriptInfoForPath(f);if(!g){const d=XN(t);if(E.assert(F_(t)||d||i,"",()=>`${JSON.stringify({fileName:t,currentDirectory:n,hostCurrentDirectory:this.currentDirectory,openKeys:gs(this.openFilesWithNonRootedDiskPath.keys())})} +`,sH(this.program,c=>o+=` ${c} +`))}return o}print(t,n,i){var s;this.writeLog(`Project '${this.projectName}' (${SP[this.projectKind]})`),this.writeLog(this.filesToStringWorker(t&&this.projectService.logger.hasLevel(3),n&&this.projectService.logger.hasLevel(3),i&&this.projectService.logger.hasLevel(3))),this.writeLog("-----------------------------------------------"),this.autoImportProviderHost&&this.autoImportProviderHost.print(!1,!1,!1),(s=this.noDtsResolutionProject)==null||s.print(!1,!1,!1)}setCompilerOptions(t){var n;if(t){t.allowNonTsExtensions=!0;const i=this.compilerOptions;this.compilerOptions=t,this.setInternalCompilerOptionsForEmittingJsFiles(),(n=this.noDtsResolutionProject)==null||n.setCompilerOptions(this.getCompilerOptionsForNoDtsResolutionProject()),t5(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,n){var i,s;const o=n?f=>gs(f.entries(),([g,d])=>({fileName:g,isSourceOfProjectReferenceRedirect:d})):f=>gs(f.keys());this.isInitialLoadPending()||uf(this);const c={projectName:this.getProjectName(),version:this.projectProgramVersion,isInferred:J6(this),options:this.getCompilationSettings(),languageServiceDisabled:!this.languageServiceEnabled,lastFileExceededProgramSize:this.lastFileExceededProgramSize},u=this.updatedFileNames;if(this.updatedFileNames=void 0,this.lastReportedFileNames&&t===this.lastReportedVersion){if(this.projectProgramVersion===this.lastReportedVersion&&!u)return{info:c,projectErrors:this.getGlobalProjectErrors()};const f=this.lastReportedFileNames,g=((i=this.externalFiles)==null?void 0:i.map(w=>({fileName:zo(w),isSourceOfProjectReferenceRedirect:!1})))||Wc,d=Iv(this.getFileNamesWithRedirectInfo(!!n).concat(g),w=>w.fileName,w=>w.isSourceOfProjectReferenceRedirect),y=new Map,S=new Map,T=u?gs(u.keys()):[],k=[];return fl(d,(w,P)=>{f.has(P)?n&&w!==f.get(P)&&k.push({fileName:P,isSourceOfProjectReferenceRedirect:w}):y.set(P,w)}),fl(f,(w,P)=>{d.has(P)||S.set(P,w)}),this.lastReportedFileNames=d,this.lastReportedVersion=this.projectProgramVersion,{info:c,changes:{added:o(y),removed:o(S),updated:n?T.map(w=>({fileName:w,isSourceOfProjectReferenceRedirect:this.isSourceOfProjectReferenceRedirect(w)})):T,updatedRedirects:n?k:void 0},projectErrors:this.getGlobalProjectErrors()}}else{const f=this.getFileNamesWithRedirectInfo(!!n),g=((s=this.externalFiles)==null?void 0:s.map(y=>({fileName:zo(y),isSourceOfProjectReferenceRedirect:!1})))||Wc,d=f.concat(g);return this.lastReportedFileNames=Iv(d,y=>y.fileName,y=>y.isSourceOfProjectReferenceRedirect),this.lastReportedVersion=this.projectProgramVersion,{info:c,files:n?d:d.map(y=>y.fileName),projectErrors:this.getGlobalProjectErrors()}}}removeRoot(t){Ik(this.rootFiles,t),this.rootFilesMap.delete(t.path)}isSourceOfProjectReferenceRedirect(t){return!!this.program&&this.program.isSourceOfProjectReferenceRedirect(t)}getGlobalPluginSearchPaths(){return[...this.projectService.pluginProbeLocations,Mn(this.projectService.getExecutingFilePath(),"../../..")]}enableGlobalPlugins(t){if(!this.projectService.globalPlugins.length)return;const n=this.projectService.host;if(!n.require&&!n.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}const i=this.getGlobalPluginSearchPaths();for(const s of this.projectService.globalPlugins)s&&(t.plugins&&t.plugins.some(o=>o.name===s)||(this.projectService.logger.info(`Loading global plugin ${s}`),this.enablePlugin({name:s,global:!0},i)))}enablePlugin(t,n){this.projectService.requestEnablePlugin(this,t,n)}enableProxy(t,n){try{if(typeof t!="function"){this.projectService.logger.info(`Skipped loading plugin ${n.name} because it did not expose a proper factory function`);return}const i={config:n,project:this,languageService:this.languageService,languageServiceHost:this,serverHost:this.projectService.host,session:this.projectService.session},s=t({typescript:ZDe}),o=s.create(i);for(const c of Object.keys(this.languageService))c in o||(this.projectService.logger.info(`Plugin activation warning: Missing proxied method ${c} in created LS. Patching.`),o[c]=this.languageService[c]);this.projectService.logger.info("Plugin validation succeeded"),this.languageService=o,this.plugins.push({name:n.name,module:s})}catch(i){this.projectService.logger.info(`Plugin activation failed: ${i}`)}}onPluginConfigurationChanged(t,n){this.plugins.filter(i=>i.name===t).forEach(i=>{i.module.onConfigurationChanged&&i.module.onConfigurationChanged(n)})}refreshDiagnostics(){this.projectService.sendProjectsUpdatedInBackgroundEvent()}getPackageJsonsVisibleToFile(t,n){return this.projectService.serverMode!==0?Wc:this.projectService.getPackageJsonsVisibleToFile(t,this,n)}getNearestAncestorDirectoryWithPackageJson(t){return this.projectService.getNearestAncestorDirectoryWithPackageJson(t)}getPackageJsonsForAutoImport(t){return this.getPackageJsonsVisibleToFile(Mn(this.currentDirectory,u6),t)}getPackageJsonCache(){return this.projectService.packageJsonCache}getCachedExportInfoMap(){return this.exportMapCache||(this.exportMapCache=qG(this))}clearCachedExportInfoMap(){var t;(t=this.exportMapCache)==null||t.clear()}getModuleSpecifierCache(){return this.moduleSpecifierCache}includePackageJsonAutoImports(){return this.projectService.includePackageJsonAutoImports()===0||!this.languageServiceEnabled||sN(this.currentDirectory)||!this.isDefaultProjectForOpenFiles()?0:this.projectService.includePackageJsonAutoImports()}getHostForAutoImportProvider(){var t,n;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:(n=this.projectService.host.trace)==null?void 0:n.bind(this.projectService.host),useCaseSensitiveFileNames:this.program.useCaseSensitiveFileNames(),readDirectory:this.projectService.host.readDirectory.bind(this.projectService.host)}:this.projectService.host}getPackageJsonAutoImportProvider(){var t,n,i;if(this.autoImportProviderHost===!1)return;if(this.projectService.serverMode!==0){this.autoImportProviderHost=!1;return}if(this.autoImportProviderHost){if(uf(this.autoImportProviderHost),this.autoImportProviderHost.isEmpty()){this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0;return}return this.autoImportProviderHost.getCurrentProgram()}const s=this.includePackageJsonAutoImports();if(s){(t=qr)==null||t.push(qr.Phase.Session,"getPackageJsonAutoImportProvider");const o=xo();if(this.autoImportProviderHost=yY.create(s,this,this.getHostForAutoImportProvider(),this.documentRegistry),this.autoImportProviderHost)return uf(this.autoImportProviderHost),this.sendPerformanceEvent("CreatePackageJsonAutoImportProvider",xo()-o),(n=qr)==null||n.pop(),this.autoImportProviderHost.getCurrentProgram();(i=qr)==null||i.pop()}}isDefaultProjectForOpenFiles(){return!!fl(this.projectService.openFiles,(t,n)=>this.projectService.tryGetDefaultProjectForFile(zo(n))===this)}watchNodeModulesForPackageJsonChanges(t){return this.projectService.watchPackageJsonsInNodeModules(t,this)}getIncompleteCompletionsCache(){return this.projectService.getIncompleteCompletionsCache()}getNoDtsResolutionProject(t){return E.assert(this.projectService.serverMode===0),this.noDtsResolutionProject||(this.noDtsResolutionProject=new gY(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:Ve,lib:Ve,noLib:!0}}},mY=class extends mS{constructor(e,t,n,i,s,o,c){super(e.newInferredProjectName(),0,e,t,void 0,void 0,n,!1,i,e.host,o),this._isJsInferredProject=!1,this.typeAcquisition=c,this.projectRootPath=s&&e.toCanonicalFileName(s),!s&&!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;const t=aG(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){E.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()&&Wi(this.getRootScriptInfos(),t=>!t.isJavaScript())&&this.toggleJsInferredProject(!1)}isOrphan(){return!this.hasRoots()}isProjectWithSingleRoot(){return!this.projectRootPath&&!this.projectService.useSingleInferredProject||this.getRootScriptInfos().length===1}close(){rr(this.getRootScriptInfos(),e=>this.projectService.stopWatchingConfigFilesForInferredProjectRoot(e)),super.close()}getTypeAcquisition(){return this.typeAcquisition||{enable:ede(this),include:Ve,exclude:Ve}}},gY=class extends mS{constructor(e,t,n,i){super(e.newAuxiliaryProjectName(),4,e,t,!1,void 0,n,!1,void 0,e.host,i)}isOrphan(){return!0}scheduleInvalidateResolutionsOfFailedLookupLocations(){}},hY=class a0e extends mS{constructor(t,n,i,s){super(t.projectService.newAutoImportProviderProjectName(),3,t.projectService,i,!1,void 0,s,!1,t.getWatchOptions(),t.projectService.host,t.currentDirectory),this.hostProject=t,this.rootFileNames=n,this.useSourceOfProjectReferenceRedirect=Os(this.hostProject,this.hostProject.useSourceOfProjectReferenceRedirect),this.getParsedCommandLine=Os(this.hostProject,this.hostProject.getParsedCommandLine)}static getRootFileNames(t,n,i,s){var o,c;if(!t)return Ve;const u=n.getCurrentProgram();if(!u)return Ve;const f=xo();let g,d;const y=Mn(n.currentDirectory,u6),S=n.getPackageJsonsForAutoImport(Mn(n.currentDirectory,y));for(const P of S)(o=P.dependencies)==null||o.forEach((F,J)=>k(J)),(c=P.peerDependencies)==null||c.forEach((F,J)=>k(J));let T=0;if(g){const P=n.getSymlinkCache();for(const F of gs(g.keys())){if(t===2&&T>this.maxDependencies)return n.log(`AutoImportProviderProject: attempted to add more than ${this.maxDependencies} dependencies. Aborting.`),Ve;const J=CU(F,n.currentDirectory,s,i,u.getModuleResolutionCache());if(J){const $=w(J,u,P);if($){d=es(d,$),T+=$.length?1:0;continue}}if(!rr([n.currentDirectory,n.getGlobalTypingsCacheLocation()],$=>{if($){const j=CU(`@types/${F}`,$,s,i,u.getModuleResolutionCache());if(j){const re=w(j,u,P);return d=es(d,re),T+=re!=null&&re.length?1:0,!0}}})&&J&&s.allowJs&&s.maxNodeModuleJsDepth){const $=w(J,u,P,!0);d=es(d,$),T+=$!=null&&$.length?1:0}}}return d!=null&&d.length&&n.log(`AutoImportProviderProject: found ${d.length} root files in ${T} dependencies in ${xo()-f} ms`),d||Ve;function k(P){Vi(P,"@types/")||(g||(g=new Set)).add(P)}function w(P,F,J,U){var $;const j=IU(P,s,i,F.getModuleResolutionCache(),U);if(j){const re=($=i.realpath)==null?void 0:$.call(i,P.packageDirectory),R=re?n.toPath(re):void 0,Y=R&&R!==n.toPath(P.packageDirectory);return Y&&J.setSymlinkedDirectory(P.packageDirectory,{real:_l(re),realPath:_l(R)}),Ri(j,ue=>{const pe=Y?ue.replace(P.packageDirectory,re):ue;if(!F.getSourceFile(pe)&&!(Y&&F.getSourceFile(ue)))return pe})}}}static create(t,n,i,s){if(t===0)return;const o={...n.getCompilerOptions(),...this.compilerOptionsOverrides},c=this.getRootFileNames(t,n,i,o);if(c.length)return new a0e(n,c,s,o)}isEmpty(){return!ct(this.rootFileNames)}isOrphan(){return!0}updateGraph(){let t=this.rootFileNames;t||(t=a0e.getRootFileNames(this.hostProject.includePackageJsonAutoImports(),this.hostProject,this.hostProject.getHostForAutoImportProvider(),this.getCompilationSettings())),this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this,t),this.rootFileNames=t;const n=this.getCurrentProgram(),i=super.updateGraph();return n&&n!==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||Ve}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()}},hY.maxDependencies=10,hY.compilerOptionsOverrides={diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:Ve,lib:Ve,noLib:!0},yY=hY,vY=class extends mS{constructor(e,t,n,i,s){super(e,1,n,i,!1,void 0,{},!1,void 0,s,Un(e)),this.canonicalConfigFilePath=t,this.openFileWatchTriggered=new Map,this.canConfigFileJsonReportNoInputFiles=!1,this.externalProjectRefCount=0,this.isInitialLoadPending=Wh,this.sendLoadingProjectFinish=!1}setCompilerHost(e){this.compilerHost=e}getCompilerHost(){return this.compilerHost}useSourceOfProjectReferenceRedirect(){return this.languageServiceEnabled}getParsedCommandLine(e){const t=Hs(e),n=this.projectService.toCanonicalFileName(t);let i=this.projectService.configFileExistenceInfoCache.get(n);return i||this.projectService.configFileExistenceInfoCache.set(n,i={exists:this.projectService.host.fileExists(t)}),this.projectService.ensureParsedConfigUptoDate(t,n,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(Hs(e)))}releaseParsedConfig(e){this.projectService.stopWatchingWildCards(e,this),this.projectService.releaseParsedConfig(e,this)}updateGraph(){const e=this.isInitialLoadPending();this.isInitialLoadPending=_d;const t=this.pendingUpdateLevel;this.pendingUpdateLevel=0;let n;switch(t){case 1:this.openFileWatchTriggered.clear(),n=this.projectService.reloadFileNamesOfConfiguredProject(this);break;case 2:this.openFileWatchTriggered.clear();const i=E.checkDefined(this.pendingUpdateReason);this.pendingUpdateReason=void 0,this.projectService.reloadConfiguredProject(this,i,e,!1),n=!0;break;default:n=super.updateGraph()}return this.compilerHost=void 0,this.projectService.sendProjectLoadingFinishEvent(this),this.projectService.sendProjectTelemetry(this),n}getCachedDirectoryStructureHost(){return this.directoryStructureHost}getConfigFilePath(){return this.getProjectName()}getProjectReferences(){return this.projectReferences}updateReferences(e){this.projectReferences=e,this.potentialProjectReferences=void 0}setPotentialProjectReference(e){E.assert(this.isInitialLoadPending()),(this.potentialProjectReferences||(this.potentialProjectReferences=new Set)).add(e)}getResolvedProjectReferenceToRedirect(e){const 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;const n=this.projectService.host;if(!n.require&&!n.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}const i=this.getGlobalPluginSearchPaths();if(this.projectService.allowLocalPluginLoads){const s=Un(this.canonicalConfigFilePath);this.projectService.logger.info(`Local plugin loading enabled; adding ${s} to search paths`),i.unshift(s)}if(e.plugins)for(const s of e.plugins)this.enablePlugin(s,i);return this.enableGlobalPlugins(e)}getGlobalProjectErrors(){return An(this.projectErrors,e=>!e.file)||Wc}getAllProjectErrors(){return this.projectErrors||Wc}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 W6(this,e.path,t=>zx(t,e)?t:void 0,0)}hasOpenRef(){var e;if(this.externalProjectRefCount)return!0;if(this.isClosed())return!1;const t=this.projectService.configFileExistenceInfoCache.get(this.canonicalConfigFilePath);return this.projectService.hasPendingProjectUpdate(this)?!!((e=t.openFilesImpactedByConfigFile)!=null&&e.size):!!t.openFilesImpactedByConfigFile&&fl(t.openFilesImpactedByConfigFile,(n,i)=>{const s=this.projectService.getScriptInfoForPath(i);return this.containsScriptInfo(s)||!!W6(this,s.path,o=>o.containsScriptInfo(s),0)})||!1}hasExternalProjectRef(){return!!this.externalProjectRefCount}getEffectiveTypeRoots(){return w3(this.getCompilationSettings(),this)||[]}updateErrorOnNoInputFiles(e){UO(e,this.getConfigFilePath(),this.getCompilerOptions().configFile.configFileSpecs,this.projectErrors,this.canConfigFileJsonReportNoInputFiles)}},_R=class extends mS{constructor(e,t,n,i,s,o,c,u){super(e,2,t,n,!0,s,i,o,u,t.host,Un(c||iu(e))),this.externalProjectName=e,this.compileOnSaveEnabled=o,this.excludedFiles=[],this.enableGlobalPlugins(this.getCompilerOptions())}updateGraph(){const e=super.updateGraph();return this.projectService.sendProjectTelemetry(this),e}getExcludedFiles(){return this.excludedFiles}}}});function NDe(e){const t=new Map;for(const n of e)if(typeof n.type=="object"){const i=n.type;i.forEach(s=>{E.assert(typeof s=="number")}),t.set(n.name,i)}return t}function z6(e){return ls(e.indentStyle)&&(e.indentStyle=BDe.get(e.indentStyle.toLowerCase()),E.assert(e.indentStyle!==void 0)),e}function fR(e){return RDe.forEach((t,n)=>{const i=e[n];ls(i)&&(e[n]=t.get(i.toLowerCase()))}),e}function YN(e,t){let n,i;return ZC.forEach(s=>{const o=e[s.name];if(o===void 0)return;const c=jDe.get(s.name);(n||(n={}))[s.name]=c?ls(o)?c.get(o.toLowerCase()):o:eS(s,o,t||"",i||(i=[]))}),n&&{watchOptions:n,errors:i}}function ide(e){let t;return rA.forEach(n=>{const i=e[n.name];i!==void 0&&((t||(t={}))[n.name]=i)}),t}function bY(e){return ls(e)?SY(e):e}function SY(e){switch(e){case"JS":return 1;case"JSX":return 2;case"TS":return 3;case"TSX":return 4;default:return 0}}function sde(e){const{lazyConfiguredProjectsFromExternalProject:t,...n}=e;return n}function IDe(e,t){for(const n of t)if(n.getProjectName()===e)return n}function TY(e){return!!e.containingProjects}function FDe(e){return!!e.configFileInfo}function W6(e,t,n,i,s){var o;const c=(o=e.getCurrentProgram())==null?void 0:o.getResolvedProjectReferences();if(!c)return;let u;const f=t?e.getResolvedProjectReferenceToRedirect(t):void 0;if(f){const d=zo(f.sourceFile.fileName),y=e.projectService.findConfiguredProjectByProjectName(d);if(y){const S=n(y);if(S)return S}else if(i!==0){u=new Map;const S=ade(c,e.getCompilerOptions(),(T,k)=>f===T?g(T,k):void 0,i,e.projectService,u);if(S)return S;u.clear()}}return ade(c,e.getCompilerOptions(),(d,y)=>f!==d?g(d,y):void 0,i,e.projectService,u);function g(d,y){const S=zo(d.sourceFile.fileName),T=e.projectService.findConfiguredProjectByProjectName(S)||(y===0?void 0:y===1?e.projectService.createConfiguredProject(S):y===2?e.projectService.createAndLoadConfiguredProject(S,s):E.assertNever(y));return T&&n(T)}}function ade(e,t,n,i,s,o){const c=t.disableReferencedProjectLoad?0:i;return rr(e,u=>{if(!u)return;const f=zo(u.sourceFile.fileName),g=s.toCanonicalFileName(f),d=o==null?void 0:o.get(g);if(d!==void 0&&d>=c)return;const y=n(u,c);return y||((o||(o=new Map)).set(g,c),u.references&&ade(u.references,u.commandLine.options,n,c,s,o))})}function ODe(e,t){return e.potentialProjectReferences&&Am(e.potentialProjectReferences,t)}function ret(e,t,n,i){return e.getCurrentProgram()?e.forEachResolvedProjectReference(t):e.isInitialLoadPending()?ODe(e,i):rr(e.getProjectReferences(),n)}function ode(e,t,n){const i=n&&e.projectService.configuredProjects.get(n);return i&&t(i)}function LDe(e,t){return ret(e,n=>ode(e,t,n.sourceFile.path),n=>ode(e,t,e.toPath(l6(n))),n=>ode(e,t,n))}function net(e,t){return`${ls(t)?`Config: ${t} `:t?`Project: ${t.getProjectName()} `:""}WatchType: ${e}`}function MDe(e){return!e.isScriptOpen()&&e.mTime!==void 0}function zx(e,t){return e.containsScriptInfo(t)&&!e.isSourceOfProjectReferenceRedirect(t.path)}function uf(e){return e.invalidateResolutionsOfFailedLookupLocations(),e.dirty&&e.updateGraph()}function cde(e){Y1(e)&&(e.projectOptions=!0)}function lde(e){let t=1;return()=>e(t++)}function ude(){return{idToCallbacks:new Map,pathToId:new Map}}function iet(e,t){if(!t||!e.eventHandler||!e.session)return;const n=ude(),i=ude(),s=ude();let o=1;return e.session.addProtocolHandler("watchChange",T=>(g(T.arguments),{responseRequired:!1})),{watchFile:c,watchDirectory:u,getCurrentDirectory:()=>e.host.getCurrentDirectory(),useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames};function c(T,k){return f(n,T,k,w=>({eventName:SR,data:{id:w,path:T}}))}function u(T,k,w){return f(w?s:i,T,k,P=>({eventName:TR,data:{id:P,path:T,recursive:!!w,ignoreUpdate:T.endsWith("/node_modules")?void 0:!0}}))}function f({pathToId:T,idToCallbacks:k},w,P,F){const J=e.toPath(w);let U=T.get(J);U||T.set(J,U=o++);let $=k.get(U);return $||(k.set(U,$=new Set),e.eventHandler(F(U))),$.add(P),{close(){const j=k.get(U);j!=null&&j.delete(P)&&(j.size||(k.delete(U),T.delete(J),e.eventHandler({eventName:xR,data:{id:U}})))}}}function g(T){ts(T)?T.forEach(d):d(T)}function d({id:T,created:k,deleted:w,updated:P}){y(T,k,0),y(T,w,2),y(T,P,1)}function y(T,k,w){k!=null&&k.length&&(S(n,T,k,(P,F)=>P(F,w)),S(i,T,k,(P,F)=>P(F)),S(s,T,k,(P,F)=>P(F)))}function S(T,k,w,P){var F;(F=T.idToCallbacks.get(k))==null||F.forEach(J=>{w.forEach(U=>P(J,iu(U)))})}}function set(){let e;return{get(){return e},set(t){e=t},clear(){e=void 0}}}function _de(e){return e.kind!==void 0}function fde(e){e.print(!1,!1,!1)}var pR,dR,ZN,mR,gR,hR,yR,vR,bR,xY,SR,TR,xR,pde,RDe,jDe,BDe,kY,kR,CR,CY,EY,dde,PY,aet=Dt({"src/server/editorServices.ts"(){xy(),gS(),Zpe(),pR=20*1024*1024,dR=4*1024*1024,ZN="projectsUpdatedInBackground",mR="projectLoadingStart",gR="projectLoadingFinish",hR="largeFileReferenced",yR="configFileDiag",vR="projectLanguageServiceState",bR="projectInfo",xY="openFileInfo",SR="createFileWatcher",TR="createDirectoryWatcher",xR="closeFileWatcher",pde="*ensureProjectForOpenFiles*",RDe=NDe(Pg),jDe=NDe(ZC),BDe=new Map(Object.entries({none:0,block:1,smart:2})),kY={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,"$"]]}},kR={getFileName:e=>e,getScriptKind:(e,t)=>{let n;if(t){const i=jk(e);i&&ct(t,s=>s.extension===i?(n=s.scriptKind,!0):!1)}return n},hasMixedContent:(e,t)=>ct(t,n=>n.isMixedContent&&Zo(e,n.extension))},CR={getFileName:e=>e.fileName,getScriptKind:e=>bY(e.scriptKind),hasMixedContent:e=>!!e.hasMixedContent},CY={close:Ca},EY=(e=>(e[e.Find=0]="Find",e[e.FindCreate=1]="FindCreate",e[e.FindCreateLoad=2]="FindCreateLoad",e))(EY||{}),dde=class o0e{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=lde(Lpe),this.newAutoImportProviderProjectName=lde(Mpe),this.newAuxiliaryProjectName=lde(Rpe),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=kY,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=Ca,this.verifyDocumentRegistry=Ca,this.verifyProgram=Ca,this.onProjectCreation=Ca;var n;this.host=t.host,this.logger=t.logger,this.cancellationToken=t.cancellationToken,this.useSingleInferredProject=t.useSingleInferredProject,this.useInferredProjectPerProjectRoot=t.useInferredProjectPerProjectRoot,this.typingsInstaller=t.typingsInstaller||uR,this.throttleWaitMilliseconds=t.throttleWaitMilliseconds,this.eventHandler=t.eventHandler,this.suppressDiagnosticEvents=t.suppressDiagnosticEvents,this.globalPlugins=t.globalPlugins||Wc,this.pluginProbeLocations=t.pluginProbeLocations||Wc,this.allowLocalPluginLoads=!!t.allowLocalPluginLoads,this.typesMapLocation=t.typesMapLocation===void 0?Mn(Un(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=yf()),this.currentDirectory=zo(this.host.getCurrentDirectory()),this.toCanonicalFileName=nu(this.host.useCaseSensitiveFileNames),this.globalCacheLocationDirectoryPath=this.typingsInstaller.globalTypingsCacheLocation?_l(this.toPath(this.typingsInstaller.globalTypingsCacheLocation)):void 0,this.throttledOperations=new cY(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 pY(this.typingsInstaller),this.hostConfiguration={formatCodeOptions:pL(this.host.newLine),preferences:Yf,hostInfo:"Unknown host",extraFileExtensions:[]},this.documentRegistry=ZG(this.host.useCaseSensitiveFileNames,this.currentDirectory,this.jsDocParsingMode,this);const i=this.logger.hasLevel(3)?2:this.logger.loggingEnabled()?1:0,s=i!==0?o=>this.logger.info(o):Ca;this.packageJsonCache=gde(this),this.watchFactory=this.serverMode!==0?{watchFile:d6,watchDirectory:d6}:kq(iet(this,t.canUseWatchEvents)||this.host,i,s,net),(n=t.incrementalVerifier)==null||n.call(t,this)}toPath(t){return Io(t,this.currentDirectory,this.toCanonicalFileName)}getExecutingFilePath(){return this.getNormalizedAbsolutePath(this.host.getExecutingFilePath())}getNormalizedAbsolutePath(t){return Xi(t,this.host.getCurrentDirectory())}setDocument(t,n,i){const s=E.checkDefined(this.getScriptInfoForPath(n));s.cacheSourceFile={key:t,sourceFile:i}}getDocument(t,n){const i=this.getScriptInfoForPath(n);return i&&i.cacheSourceFile&&i.cacheSourceFile.key===t?i.cacheSourceFile.sourceFile:void 0}ensureInferredProjectsUpToDate_TestOnly(){this.ensureProjectStructuresUptoDate()}getCompilerOptionsForInferredProjects(){return this.compilerOptionsForInferredProjects}onUpdateLanguageServiceStateForProject(t,n){if(!this.eventHandler)return;const i={eventName:vR,data:{project:t,languageServiceEnabled:n}};this.eventHandler(i)}loadTypesMap(){try{const t=this.host.readFile(this.typesMapLocation);if(t===void 0){this.logger.info(`Provided types map file "${this.typesMapLocation}" doesn't exist`);return}const n=JSON.parse(t);for(const i of Object.keys(n.typesMap))n.typesMap[i].match=new RegExp(n.typesMap[i].match,"i");this.safelist=n.typesMap;for(const i in n.simpleMap)Ka(n.simpleMap,i)&&this.legacySafelist.set(i,n.simpleMap[i].toLowerCase())}catch(t){this.logger.info(`Error loading types map: ${t}`),this.safelist=kY,this.legacySafelist.clear()}}updateTypingsForProject(t){const n=this.findProject(t.projectName);if(n)switch(t.kind){case IA:n.updateTypingFiles(this.typingsCache.updateTypingsForProject(t.projectName,t.compilerOptions,t.typeAcquisition,t.unresolvedImports,t.typings));return;case FA:this.typingsCache.enqueueInstallTypingsForProject(n,n.lastCachedUnresolvedImportsList,!0);return}}watchTypingLocations(t){var n;(n=this.findProject(t.projectName))==null||n.watchTypingLocations(t.files)}delayEnsureProjectForOpenFiles(){this.openFiles.size&&(this.pendingEnsureProjectForOpenFiles=!0,this.throttledOperations.schedule(pde,2500,()=>{this.pendingProjectUpdates.size!==0?this.delayEnsureProjectForOpenFiles():this.pendingEnsureProjectForOpenFiles&&(this.ensureProjectForOpenFiles(),this.sendProjectsUpdatedInBackgroundEvent())}))}delayUpdateProjectGraph(t){if(t.markAsDirty(),QN(t))return;const n=t.getProjectName();this.pendingProjectUpdates.set(n,t),this.throttledOperations.schedule(n,250,()=>{this.pendingProjectUpdates.delete(n)&&uf(t)})}hasPendingProjectUpdate(t){return this.pendingProjectUpdates.has(t.getProjectName())}sendProjectsUpdatedInBackgroundEvent(){if(!this.eventHandler)return;const t={eventName:ZN,data:{openFiles:gs(this.openFiles.keys(),n=>this.getScriptInfoForPath(n).fileName)}};this.eventHandler(t)}sendLargeFileReferencedEvent(t,n){if(!this.eventHandler)return;const i={eventName:hR,data:{file:t,fileSize:n,maxFileSize:dR}};this.eventHandler(i)}sendProjectLoadingStartEvent(t,n){if(!this.eventHandler)return;t.sendLoadingProjectFinish=!0;const i={eventName:mR,data:{project:t,reason:n}};this.eventHandler(i)}sendProjectLoadingFinishEvent(t){if(!this.eventHandler||!t.sendLoadingProjectFinish)return;t.sendLoadingProjectFinish=!1;const n={eventName:gR,data:{project:t}};this.eventHandler(n)}sendPerformanceEvent(t,n){this.performanceEventHandler&&this.performanceEventHandler({kind:t,durationMs:n})}delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(t){this.delayUpdateProjectGraph(t),this.delayEnsureProjectForOpenFiles()}delayUpdateProjectGraphs(t,n){if(t.length){for(const i of t)n&&i.clearSourceMapperCache(),this.delayUpdateProjectGraph(i);this.delayEnsureProjectForOpenFiles()}}setCompilerOptionsForInferredProjects(t,n){E.assert(n===void 0||this.useInferredProjectPerProjectRoot,"Setting compiler options per project root path is only supported when useInferredProjectPerProjectRoot is enabled");const i=fR(t),s=YN(t,n),o=ide(t);i.allowNonTsExtensions=!0;const c=n&&this.toCanonicalFileName(n);c?(this.compilerOptionsForInferredProjectsPerProjectRoot.set(c,i),this.watchOptionsForInferredProjectsPerProjectRoot.set(c,s||!1),this.typeAcquisitionForInferredProjectsPerProjectRoot.set(c,o)):(this.compilerOptionsForInferredProjects=i,this.watchOptionsForInferredProjects=s,this.typeAcquisitionForInferredProjects=o);for(const u of this.inferredProjects)(c?u.projectRootPath===c:!u.projectRootPath||!this.compilerOptionsForInferredProjectsPerProjectRoot.has(u.projectRootPath))&&(u.setCompilerOptions(i),u.setTypeAcquisition(o),u.setWatchOptions(s==null?void 0:s.watchOptions),u.setProjectErrors(s==null?void 0:s.errors),u.compileOnSaveEnabled=i.compileOnSave,u.markAsDirty(),this.delayUpdateProjectGraph(u));this.delayEnsureProjectForOpenFiles()}findProject(t){if(t!==void 0)return Ope(t)?IDe(t,this.inferredProjects):this.findExternalProjectByProjectName(t)||this.findConfiguredProjectByProjectName(zo(t))}forEachProject(t){this.externalProjects.forEach(t),this.configuredProjects.forEach(t),this.inferredProjects.forEach(t)}forEachEnabledProject(t){this.forEachProject(n=>{!n.isOrphan()&&n.languageServiceEnabled&&t(n)})}getDefaultProjectForFile(t,n){return n?this.ensureDefaultProjectForFile(t):this.tryGetDefaultProjectForFile(t)}tryGetDefaultProjectForFile(t){const n=ls(t)?this.getScriptInfoForNormalizedPath(t):t;return n&&!n.isOrphan()?n.getDefaultProject():void 0}ensureDefaultProjectForFile(t){return this.tryGetDefaultProjectForFile(t)||this.doEnsureDefaultProjectForFile(t)}doEnsureDefaultProjectForFile(t){this.ensureProjectStructuresUptoDate();const n=ls(t)?this.getScriptInfoForNormalizedPath(t):t;return n?n.getDefaultProject():(this.logErrorForScriptInfoNotFound(ls(t)?t:t.fileName),g0.ThrowNoProject())}getScriptInfoEnsuringProjectsUptoDate(t){return this.ensureProjectStructuresUptoDate(),this.getScriptInfo(t)}ensureProjectStructuresUptoDate(){let t=this.pendingEnsureProjectForOpenFiles;this.pendingProjectUpdates.clear();const n=i=>{t=uf(i)||t};this.externalProjects.forEach(n),this.configuredProjects.forEach(n),this.inferredProjects.forEach(n),t&&this.ensureProjectForOpenFiles()}getFormatCodeOptions(t){const n=this.getScriptInfoForNormalizedPath(t);return n&&n.getFormatCodeSettings()||this.hostConfiguration.formatCodeOptions}getPreferences(t){const n=this.getScriptInfoForNormalizedPath(t);return{...this.hostConfiguration.preferences,...n&&n.getPreferences()}}getHostFormatCodeOptions(){return this.hostConfiguration.formatCodeOptions}getHostPreferences(){return this.hostConfiguration.preferences}onSourceFileChanged(t,n){n===2?this.handleDeletedFile(t):t.isScriptOpen()||(t.delayReloadNonMixedContentFile(),this.delayUpdateProjectGraphs(t.containingProjects,!1),this.handleSourceMapProjects(t))}handleSourceMapProjects(t){if(t.sourceMapFilePath)if(ls(t.sourceMapFilePath)){const n=this.getScriptInfoForPath(t.sourceMapFilePath);this.delayUpdateSourceInfoProjects(n&&n.sourceInfos)}else this.delayUpdateSourceInfoProjects(t.sourceMapFilePath.sourceInfos);this.delayUpdateSourceInfoProjects(t.sourceInfos),t.declarationInfoPath&&this.delayUpdateProjectsOfScriptInfoPath(t.declarationInfoPath)}delayUpdateSourceInfoProjects(t){t&&t.forEach((n,i)=>this.delayUpdateProjectsOfScriptInfoPath(i))}delayUpdateProjectsOfScriptInfoPath(t){const n=this.getScriptInfoForPath(t);n&&this.delayUpdateProjectGraphs(n.containingProjects,!0)}handleDeletedFile(t){if(this.stopWatchingScriptInfo(t),!t.isScriptOpen()){this.deleteScriptInfo(t);const n=t.containingProjects.slice();if(t.detachAllProjects(),this.delayUpdateProjectGraphs(n,!1),this.handleSourceMapProjects(t),t.closeSourceMapFileWatcher(),t.declarationInfoPath){const i=this.getScriptInfoForPath(t.declarationInfoPath);i&&(i.sourceMapFilePath=void 0)}}}watchWildcardDirectory(t,n,i,s){let o=this.watchFactory.watchDirectory(t,u=>{const f=this.toPath(u),g=s.cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(u,f);if(wc(f)==="package.json"&&!sN(f)&&(g&&g.fileExists||!g&&this.host.fileExists(u))){const y=this.getNormalizedAbsolutePath(u);this.logger.info(`Config: ${i} Detected new package.json: ${y}`),this.packageJsonCache.addOrUpdate(y,f),this.watchPackageJsonFile(y,f,c)}const d=this.findConfiguredProjectByProjectName(i);TA({watchedDirPath:this.toPath(t),fileOrDirectory:u,fileOrDirectoryPath:f,configFileName:i,extraFileExtensions:this.hostConfiguration.extraFileExtensions,currentDirectory:this.currentDirectory,options:s.parsedCommandLine.options,program:(d==null?void 0:d.getCurrentProgram())||s.parsedCommandLine.fileNames,useCaseSensitiveFileNames:this.host.useCaseSensitiveFileNames,writeLog:y=>this.logger.info(y),toPath:y=>this.toPath(y),getScriptKind:d?y=>d.getScriptKind(y):void 0})||(s.updateLevel!==2&&(s.updateLevel=1),s.projects.forEach((y,S)=>{if(!y)return;const T=this.getConfiguredProjectByCanonicalConfigFilePath(S);if(!T)return;const k=d===T?1:0;if(!(T.pendingUpdateLevel!==void 0&&T.pendingUpdateLevel>k))if(this.openFiles.has(f))if(E.checkDefined(this.getScriptInfoForPath(f)).isAttached(T)){const P=Math.max(k,T.openFileWatchTriggered.get(f)||0);T.openFileWatchTriggered.set(f,P)}else T.pendingUpdateLevel=k,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(T);else T.pendingUpdateLevel=k,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(T)}))},n,this.getWatchOptionsFromProjectWatchOptions(s.parsedCommandLine.watchOptions),al.WildcardDirectory,i);const c={packageJsonWatches:void 0,close(){var u;o&&(o.close(),o=void 0,(u=c.packageJsonWatches)==null||u.forEach(f=>{f.projects.delete(c),f.close()}),c.packageJsonWatches=void 0)}};return c}delayUpdateProjectsFromParsedConfigOnConfigFileChange(t,n){const i=this.configFileExistenceInfoCache.get(t);if(!(i!=null&&i.config))return!1;let s=!1;return i.config.updateLevel=2,i.config.projects.forEach((o,c)=>{const u=this.getConfiguredProjectByCanonicalConfigFilePath(c);if(u)if(s=!0,c===t){if(u.isInitialLoadPending())return;u.pendingUpdateLevel=2,u.pendingUpdateReason=n,this.delayUpdateProjectGraph(u)}else u.resolutionCache.removeResolutionsFromProjectReferenceRedirects(this.toPath(t)),this.delayUpdateProjectGraph(u)}),s}onConfigFileChanged(t,n){var i;const s=this.configFileExistenceInfoCache.get(t);if(n===2){s.exists=!1;const o=(i=s.config)!=null&&i.projects.has(t)?this.getConfiguredProjectByCanonicalConfigFilePath(t):void 0;o&&this.removeProject(o)}else s.exists=!0;this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(t,"Change in config file detected"),this.reloadConfiguredProjectForFiles(s.openFilesImpactedByConfigFile,!1,!0,n!==2?wo:Wh,"Change in config file detected"),this.delayEnsureProjectForOpenFiles()}removeProject(t){switch(this.logger.info("`remove Project::"),t.print(!0,!0,!1),t.close(),E.shouldAssert(1)&&this.filenameToScriptInfo.forEach(n=>E.assert(!n.isAttached(t),"Found script Info still attached to project",()=>`${t.projectName}: ScriptInfos still attached: ${JSON.stringify(gs(B4(this.filenameToScriptInfo.values(),i=>i.isAttached(t)?{fileName:i.fileName,projects:i.containingProjects.map(s=>s.projectName),hasMixedContent:i.hasMixedContent}:void 0)),void 0," ")}`)),this.pendingProjectUpdates.delete(t.getProjectName()),t.projectKind){case 2:bT(this.externalProjects,t),this.projectToSizeMap.delete(t.getProjectName());break;case 1:this.configuredProjects.delete(t.canonicalConfigFilePath),this.projectToSizeMap.delete(t.canonicalConfigFilePath);break;case 0:bT(this.inferredProjects,t);break}}assignOrphanScriptInfoToInferredProject(t,n){E.assert(t.isOrphan());const i=this.getOrCreateInferredProjectForProjectRootPathIfEnabled(t,n)||this.getOrCreateSingleInferredProjectIfEnabled()||this.getOrCreateSingleInferredWithoutProjectRoot(t.isDynamic?n||this.currentDirectory:Un(F_(t.fileName)?t.fileName:Xi(t.fileName,n?this.getNormalizedAbsolutePath(n):this.currentDirectory)));if(i.addRoot(t),t.containingProjects[0]!==i&&(Ik(t.containingProjects,i),t.containingProjects.unshift(i)),i.updateGraph(),!this.useSingleInferredProject&&!i.projectRootPath)for(const s of this.inferredProjects){if(s===i||s.isOrphan())continue;const o=s.getRootScriptInfos();E.assert(o.length===1||!!s.projectRootPath),o.length===1&&rr(o[0].containingProjects,c=>c!==o[0].containingProjects[0]&&!c.isOrphan())&&s.removeFile(o[0],!0,!0)}return i}assignOrphanScriptInfosToInferredProject(){this.openFiles.forEach((t,n)=>{const i=this.getScriptInfoForPath(n);i.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(i,t)})}closeOpenFile(t,n){const i=t.isDynamic?!1:this.host.fileExists(t.fileName);t.close(i),this.stopWatchingConfigFilesForClosedScriptInfo(t);const s=this.toCanonicalFileName(t.fileName);this.openFilesWithNonRootedDiskPath.get(s)===t&&this.openFilesWithNonRootedDiskPath.delete(s);let o=!1;for(const c of t.containingProjects){if(Y1(c)){t.hasMixedContent&&t.registerFileUpdate();const u=c.openFileWatchTriggered.get(t.path);u!==void 0&&(c.openFileWatchTriggered.delete(t.path),c.pendingUpdateLevel!==void 0&&c.pendingUpdateLevelthis.onConfigFileChanged(n,g),2e3,this.getWatchOptionsFromProjectWatchOptions((o=(s=c==null?void 0:c.config)==null?void 0:s.parsedCommandLine)==null?void 0:o.watchOptions),al.ConfigFile,i));const u=c.config.projects;u.set(i.canonicalConfigFilePath,u.get(i.canonicalConfigFilePath)||!1)}configFileExistenceImpactsRootOfInferredProject(t){return t.openFilesImpactedByConfigFile&&fl(t.openFilesImpactedByConfigFile,wo)}releaseParsedConfig(t,n){var i,s,o;const c=this.configFileExistenceInfoCache.get(t);(i=c.config)!=null&&i.projects.delete(n.canonicalConfigFilePath)&&((s=c.config)!=null&&s.projects.size||(c.config=void 0,Tq(t,this.sharedExtendedConfigFileWatchers),E.checkDefined(c.watcher),(o=c.openFilesImpactedByConfigFile)!=null&&o.size?this.configFileExistenceImpactsRootOfInferredProject(c)?Q9(ul(Un(t)))||(c.watcher.close(),c.watcher=CY):(c.watcher.close(),c.watcher=void 0):(c.watcher.close(),this.configFileExistenceInfoCache.delete(t))))}closeConfigFileWatcherOnReleaseOfOpenFile(t){t.watcher&&!t.config&&!this.configFileExistenceImpactsRootOfInferredProject(t)&&(t.watcher.close(),t.watcher=void 0)}stopWatchingConfigFilesForClosedScriptInfo(t){E.assert(!t.isScriptOpen()),this.forEachConfigFileLocation(t,n=>{var i,s,o;const c=this.configFileExistenceInfoCache.get(n);if(c){const u=(i=c.openFilesImpactedByConfigFile)==null?void 0:i.get(t.path);(s=c.openFilesImpactedByConfigFile)==null||s.delete(t.path),u&&this.closeConfigFileWatcherOnReleaseOfOpenFile(c),!((o=c.openFilesImpactedByConfigFile)!=null&&o.size)&&!c.config&&(E.assert(!c.watcher),this.configFileExistenceInfoCache.delete(n))}})}startWatchingConfigFilesForInferredProjectRoot(t){E.assert(t.isScriptOpen()),this.forEachConfigFileLocation(t,(n,i)=>{let s=this.configFileExistenceInfoCache.get(n);s||(s={exists:this.host.fileExists(i)},this.configFileExistenceInfoCache.set(n,s)),(s.openFilesImpactedByConfigFile||(s.openFilesImpactedByConfigFile=new Map)).set(t.path,!0),s.watcher||(s.watcher=Q9(ul(Un(n)))?this.watchFactory.watchFile(i,(o,c)=>this.onConfigFileChanged(n,c),2e3,this.hostConfiguration.watchOptions,al.ConfigFileForInferredRoot):CY)})}stopWatchingConfigFilesForInferredProjectRoot(t){this.forEachConfigFileLocation(t,n=>{var i;const s=this.configFileExistenceInfoCache.get(n);(i=s==null?void 0:s.openFilesImpactedByConfigFile)!=null&&i.has(t.path)&&(E.assert(t.isScriptOpen()),s.openFilesImpactedByConfigFile.set(t.path,!1),this.closeConfigFileWatcherOnReleaseOfOpenFile(s))})}forEachConfigFileLocation(t,n){if(this.serverMode!==0)return;E.assert(!TY(t)||this.openFiles.has(t.path));const i=this.openFiles.get(t.path);if(E.checkDefined(this.getScriptInfo(t.path)).isDynamic)return;let o=Un(t.fileName);const c=()=>Mp(i,o,this.currentDirectory,!this.host.useCaseSensitiveFileNames),u=!i||!c();let f=!FDe(t);do{if(f){const d=GN(o,this.currentDirectory,this.toCanonicalFileName),y=Mn(o,"tsconfig.json");let S=n(Mn(d,"tsconfig.json"),y);if(S)return y;const T=Mn(o,"jsconfig.json");if(S=n(Mn(d,"jsconfig.json"),T),S)return T;if(w7(d))break}const g=Un(o);if(g===o)break;o=g,f=!0}while(u||c())}findDefaultConfiguredProject(t){if(!t.isScriptOpen())return;const n=this.getConfigFileNameForFile(t),i=n&&this.findConfiguredProjectByProjectName(n);return i&&zx(i,t)?i:i==null?void 0:i.getDefaultChildProjectFromProjectWithReferences(t)}getConfigFileNameForFile(t){if(!FDe(t)){const i=this.configFileForOpenFiles.get(t.path);if(i!==void 0)return i||void 0}this.logger.info(`Search path: ${Un(t.fileName)}`);const n=this.forEachConfigFileLocation(t,(i,s)=>this.configFileExists(s,i,t));return n?this.logger.info(`For info: ${t.fileName} :: Config file name: ${n}`):this.logger.info(`For info: ${t.fileName} :: No config files found.`),TY(t)&&this.configFileForOpenFiles.set(t.path,n||!1),n}printProjects(){this.logger.hasLevel(1)&&(this.logger.startGroup(),this.externalProjects.forEach(fde),this.configuredProjects.forEach(fde),this.inferredProjects.forEach(fde),this.logger.info("Open files: "),this.openFiles.forEach((t,n)=>{const i=this.getScriptInfoForPath(n);this.logger.info(` FileName: ${i.fileName} ProjectRootPath: ${t}`),this.logger.info(` Projects: ${i.containingProjects.map(s=>s.getProjectName())}`)}),this.logger.endGroup())}findConfiguredProjectByProjectName(t){const n=this.toCanonicalFileName(t);return this.getConfiguredProjectByCanonicalConfigFilePath(n)}getConfiguredProjectByCanonicalConfigFilePath(t){return this.configuredProjects.get(t)}findExternalProjectByProjectName(t){return IDe(t,this.externalProjects)}getFilenameForExceededTotalSizeLimitForNonTsFiles(t,n,i,s){if(n&&n.disableSizeLimit||!this.host.getFileSize)return;let o=pR;this.projectToSizeMap.set(t,0),this.projectToSizeMap.forEach(u=>o-=u||0);let c=0;for(const u of i){const f=s.getFileName(u);if(!HT(f)&&(c+=this.host.getFileSize(f),c>pR||c>o)){const g=i.map(d=>s.getFileName(d)).filter(d=>!HT(d)).map(d=>({name:d,size:this.host.getFileSize(d)})).sort((d,y)=>y.size-d.size).slice(0,5);return this.logger.info(`Non TS file size exceeded limit (${c}). Largest files: ${g.map(d=>`${d.name}:${d.size}`).join(", ")}`),f}}this.projectToSizeMap.set(t,c)}createExternalProject(t,n,i,s,o){const c=fR(i),u=YN(i,Un(iu(t))),f=new _R(t,this,this.documentRegistry,c,this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t,c,n,CR),i.compileOnSave===void 0?!0:i.compileOnSave,void 0,u==null?void 0:u.watchOptions);return f.setProjectErrors(u==null?void 0:u.errors),f.excludedFiles=o,this.addFilesToNonInferredProject(f,n,CR,s),this.externalProjects.push(f),f}sendProjectTelemetry(t){if(this.seenProjects.has(t.projectName)){cde(t);return}if(this.seenProjects.set(t.projectName,!0),!this.eventHandler||!this.host.createSHA256Hash){cde(t);return}const n=Y1(t)?t.projectOptions:void 0;cde(t);const i={projectId:this.host.createSHA256Hash(t.projectName),fileStats:XN(t.getScriptInfos(),!0),compilerOptions:$ie(t.getCompilationSettings()),typeAcquisition:o(t.getTypeAcquisition()),extends:n&&n.configHasExtendsProperty,files:n&&n.configHasFilesProperty,include:n&&n.configHasIncludeProperty,exclude:n&&n.configHasExcludeProperty,compileOnSave:t.compileOnSaveEnabled,configFileName:s(),projectType:t instanceof _R?"external":"configured",languageServiceEnabled:t.languageServiceEnabled,version:ld};this.eventHandler({eventName:bR,data:i});function s(){return Y1(t)&&oY(t.getConfigFilePath())||"other"}function o({enable:c,include:u,exclude:f}){return{enable:c,include:u!==void 0&&u.length!==0,exclude:f!==void 0&&f.length!==0}}}addFilesToNonInferredProject(t,n,i,s){this.updateNonInferredProjectFiles(t,n,i),t.setTypeAcquisition(s),t.markAsDirty()}createConfiguredProject(t){var n;(n=qr)==null||n.instant(qr.Phase.Session,"createConfiguredProject",{configFilePath:t}),this.logger.info(`Creating configuration project ${t}`);const i=this.toCanonicalFileName(t);let s=this.configFileExistenceInfoCache.get(i);s?s.exists=!0:this.configFileExistenceInfoCache.set(i,s={exists:!0}),s.config||(s.config={cachedDirectoryStructureHost:L9(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),projects:new Map,updateLevel:2});const o=new vY(t,i,this,this.documentRegistry,s.config.cachedDirectoryStructureHost);return this.configuredProjects.set(i,o),this.createConfigFileWatcherForParsedConfig(t,i,o),o}createConfiguredProjectWithDelayLoad(t,n){const i=this.createConfiguredProject(t);return i.pendingUpdateLevel=2,i.pendingUpdateReason=n,i}createAndLoadConfiguredProject(t,n){const i=this.createConfiguredProject(t);return this.loadConfiguredProject(i,n),i}createLoadAndUpdateConfiguredProject(t,n){const i=this.createAndLoadConfiguredProject(t,n);return i.updateGraph(),i}loadConfiguredProject(t,n){var i,s;(i=qr)==null||i.push(qr.Phase.Session,"loadConfiguredProject",{configFilePath:t.canonicalConfigFilePath}),this.sendProjectLoadingStartEvent(t,n);const o=Hs(t.getConfigFilePath()),c=this.ensureParsedConfigUptoDate(o,t.canonicalConfigFilePath,this.configFileExistenceInfoCache.get(t.canonicalConfigFilePath),t),u=c.config.parsedCommandLine;E.assert(!!u.fileNames);const f=u.options;t.projectOptions||(t.projectOptions={configHasExtendsProperty:u.raw.extends!==void 0,configHasFilesProperty:u.raw.files!==void 0,configHasIncludeProperty:u.raw.include!==void 0,configHasExcludeProperty:u.raw.exclude!==void 0}),t.canConfigFileJsonReportNoInputFiles=C3(u.raw),t.setProjectErrors(u.options.configFile.parseDiagnostics),t.updateReferences(u.projectReferences);const g=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t.canonicalConfigFilePath,f,u.fileNames,kR);g?(t.disableLanguageService(g),this.configFileExistenceInfoCache.forEach((y,S)=>this.stopWatchingWildCards(S,t))):(t.setCompilerOptions(f),t.setWatchOptions(u.watchOptions),t.enableLanguageService(),this.watchWildcards(o,c,t)),t.enablePluginsWithOptions(f);const d=u.fileNames.concat(t.getExternalFiles(2));this.updateRootAndOptionsOfNonInferredProject(t,d,kR,f,u.typeAcquisition,u.compileOnSave,u.watchOptions),(s=qr)==null||s.pop()}ensureParsedConfigUptoDate(t,n,i,s){var o,c,u;if(i.config){if(!i.config.updateLevel)return i;if(i.config.updateLevel===1)return this.reloadFileNamesOfParsedConfig(t,i.config),i}const f=((o=i.config)==null?void 0:o.cachedDirectoryStructureHost)||L9(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),g=k3(t,k=>this.host.readFile(k)),d=Hw(t,ls(g)?g:""),y=d.parseDiagnostics;ls(g)||y.push(g);const S=Qw(d,f,Un(t),{},t,[],this.hostConfiguration.extraFileExtensions,this.extendedConfigCache);S.errors.length&&y.push(...S.errors),this.logger.info(`Config: ${t} : ${JSON.stringify({rootNames:S.fileNames,options:S.options,watchOptions:S.watchOptions,projectReferences:S.projectReferences},void 0," ")}`);const T=(c=i.config)==null?void 0:c.parsedCommandLine;return i.config?(i.config.parsedCommandLine=S,i.config.watchedDirectoriesStale=!0,i.config.updateLevel=void 0):i.config={parsedCommandLine:S,cachedDirectoryStructureHost:f,projects:new Map},!T&&!bF(this.getWatchOptionsFromProjectWatchOptions(void 0),this.getWatchOptionsFromProjectWatchOptions(S.watchOptions))&&((u=i.watcher)==null||u.close(),i.watcher=void 0),this.createConfigFileWatcherForParsedConfig(t,n,s),M9(n,S.options,this.sharedExtendedConfigFileWatchers,(k,w)=>this.watchFactory.watchFile(k,()=>{var P;R9(this.extendedConfigCache,w,J=>this.toPath(J));let F=!1;(P=this.sharedExtendedConfigFileWatchers.get(w))==null||P.projects.forEach(J=>{F=this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(J,`Change in extended config file ${k} detected`)||F}),F&&this.delayEnsureProjectForOpenFiles()},2e3,this.hostConfiguration.watchOptions,al.ExtendedConfigFile,t),k=>this.toPath(k)),i}watchWildcards(t,{exists:n,config:i},s){if(i.projects.set(s.canonicalConfigFilePath,!0),n){if(i.watchedDirectories&&!i.watchedDirectoriesStale)return;i.watchedDirectoriesStale=!1,SA(i.watchedDirectories||(i.watchedDirectories=new Map),i.parsedCommandLine.wildcardDirectories,(o,c)=>this.watchWildcardDirectory(o,c,t,i))}else{if(i.watchedDirectoriesStale=!1,!i.watchedDirectories)return;T_(i.watchedDirectories,Xf),i.watchedDirectories=void 0}}stopWatchingWildCards(t,n){const i=this.configFileExistenceInfoCache.get(t);!i.config||!i.config.projects.get(n.canonicalConfigFilePath)||(i.config.projects.set(n.canonicalConfigFilePath,!1),!fl(i.config.projects,wo)&&(i.config.watchedDirectories&&(T_(i.config.watchedDirectories,Xf),i.config.watchedDirectories=void 0),i.config.watchedDirectoriesStale=void 0))}updateNonInferredProjectFiles(t,n,i){const s=t.getRootFilesMap(),o=new Map;for(const c of n){const u=i.getFileName(c),f=zo(u),g=$N(f);let d;if(!g&&!t.fileExists(u)){d=GN(f,this.currentDirectory,this.toCanonicalFileName);const y=s.get(d);y?(y.info&&(t.removeFile(y.info,!1,!0),y.info=void 0),y.fileName=f):s.set(d,{fileName:f})}else{const y=i.getScriptKind(c,this.hostConfiguration.extraFileExtensions),S=i.hasMixedContent(c,this.hostConfiguration.extraFileExtensions),T=E.checkDefined(this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(f,t.currentDirectory,y,S,t.directoryStructureHost));d=T.path;const k=s.get(d);!k||k.info!==T?(t.addRoot(T,f),T.isScriptOpen()&&this.removeRootOfInferredProjectIfNowPartOfOtherProject(T)):k.fileName=f}o.set(d,!0)}s.size>o.size&&s.forEach((c,u)=>{o.has(u)||(c.info?t.removeFile(c.info,t.fileExists(c.info.fileName),!0):s.delete(u))})}updateRootAndOptionsOfNonInferredProject(t,n,i,s,o,c,u){t.setCompilerOptions(s),t.setWatchOptions(u),c!==void 0&&(t.compileOnSaveEnabled=c),this.addFilesToNonInferredProject(t,n,i,o)}reloadFileNamesOfConfiguredProject(t){const n=this.reloadFileNamesOfParsedConfig(t.getConfigFilePath(),this.configFileExistenceInfoCache.get(t.canonicalConfigFilePath).config);return t.updateErrorOnNoInputFiles(n),this.updateNonInferredProjectFiles(t,n.concat(t.getExternalFiles(1)),kR),t.markAsDirty(),t.updateGraph()}reloadFileNamesOfParsedConfig(t,n){if(n.updateLevel===void 0)return n.parsedCommandLine.fileNames;E.assert(n.updateLevel===1);const i=n.parsedCommandLine.options.configFile.configFileSpecs,s=E3(i,Un(t),n.parsedCommandLine.options,n.cachedDirectoryStructureHost,this.hostConfiguration.extraFileExtensions);return n.parsedCommandLine={...n.parsedCommandLine,fileNames:s},s}setFileNamesOfAutpImportProviderOrAuxillaryProject(t,n){this.updateNonInferredProjectFiles(t,n,kR)}reloadConfiguredProject(t,n,i,s){const o=t.getCachedDirectoryStructureHost();s&&this.clearSemanticCache(t),o.clearCache();const c=t.getConfigFilePath();this.logger.info(`${i?"Loading":"Reloading"} configured project ${c}`),this.loadConfiguredProject(t,n),t.updateGraph(),this.sendConfigFileDiagEvent(t,c)}clearSemanticCache(t){t.resolutionCache.clear(),t.getLanguageService(!1).cleanupSemanticCache(),t.cleanupProgram(),t.markAsDirty()}sendConfigFileDiagEvent(t,n){if(!this.eventHandler||this.suppressDiagnosticEvents)return;const i=t.getLanguageService().getCompilerOptionsDiagnostics();i.push(...t.getAllProjectErrors()),this.eventHandler({eventName:yR,data:{configFileName:t.getConfigFilePath(),diagnostics:i,triggerFile:n}})}getOrCreateInferredProjectForProjectRootPathIfEnabled(t,n){if(!this.useInferredProjectPerProjectRoot||t.isDynamic&&n===void 0)return;if(n){const s=this.toCanonicalFileName(n);for(const o of this.inferredProjects)if(o.projectRootPath===s)return o;return this.createInferredProject(n,!1,n)}let i;for(const s of this.inferredProjects)s.projectRootPath&&Mp(s.projectRootPath,t.path,this.host.getCurrentDirectory(),!this.host.useCaseSensitiveFileNames)&&(i&&i.projectRootPath.length>s.projectRootPath.length||(i=s));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){E.assert(!this.useSingleInferredProject);const n=this.toCanonicalFileName(this.getNormalizedAbsolutePath(t));for(const i of this.inferredProjects)if(!i.projectRootPath&&i.isOrphan()&&i.canonicalCurrentDirectory===n)return i;return this.createInferredProject(t)}createInferredProject(t,n,i){const s=i&&this.compilerOptionsForInferredProjectsPerProjectRoot.get(i)||this.compilerOptionsForInferredProjects;let o,c;i&&(o=this.watchOptionsForInferredProjectsPerProjectRoot.get(i),c=this.typeAcquisitionForInferredProjectsPerProjectRoot.get(i)),o===void 0&&(o=this.watchOptionsForInferredProjects),c===void 0&&(c=this.typeAcquisitionForInferredProjects),o=o||void 0;const u=new mY(this,this.documentRegistry,s,o==null?void 0:o.watchOptions,i,t,c);return u.setProjectErrors(o==null?void 0:o.errors),n?this.inferredProjects.unshift(u):this.inferredProjects.push(u),u}getOrCreateScriptInfoNotOpenedByClient(t,n,i){return this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(zo(t),n,void 0,void 0,i)}getScriptInfo(t){return this.getScriptInfoForNormalizedPath(zo(t))}getScriptInfoOrConfig(t){const n=zo(t),i=this.getScriptInfoForNormalizedPath(n);if(i)return i;const s=this.configuredProjects.get(this.toPath(t));return s&&s.getCompilerOptions().configFile}logErrorForScriptInfoNotFound(t){const n=gs(this.filenameToScriptInfo.entries(),([i,s])=>({path:i,fileName:s.fileName}));this.logger.msg(`Could not find file ${JSON.stringify(t)}. +All files are: ${JSON.stringify(n)}`,"Err")}getSymlinkedProjects(t){let n;if(this.realpathToScriptInfos){const s=t.getRealpathIfDifferent();s&&rr(this.realpathToScriptInfos.get(s),i),rr(this.realpathToScriptInfos.get(t.path),i)}return n;function i(s){if(s!==t)for(const o of s.containingProjects)o.languageServiceEnabled&&!o.isOrphan()&&!o.getCompilerOptions().preserveSymlinks&&!t.isAttached(o)&&(n?fl(n,(c,u)=>u===s.path?!1:bs(c,o))||n.add(s.path,o):(n=yf(),n.add(s.path,o)))}}watchClosedScriptInfo(t){if(E.assert(!t.fileWatcher),!t.isDynamicOrHasMixedContent()&&(!this.globalCacheLocationDirectoryPath||!Vi(t.path,this.globalCacheLocationDirectoryPath))){const n=t.fileName.indexOf("/node_modules/");!this.host.getModifiedTime||n===-1?t.fileWatcher=this.watchFactory.watchFile(t.fileName,(i,s)=>this.onSourceFileChanged(t,s),500,this.hostConfiguration.watchOptions,al.ClosedScriptInfo):(t.mTime=this.getModifiedTime(t),t.fileWatcher=this.watchClosedScriptInfoInNodeModules(t.fileName.substring(0,n)))}}createNodeModulesWatcher(t,n){let i=this.watchFactory.watchDirectory(t,o=>{var c;const u=X9(this.toPath(o));if(!u)return;const f=wc(u);if((c=s.affectedModuleSpecifierCacheProjects)!=null&&c.size&&(f==="package.json"||f==="node_modules")&&s.affectedModuleSpecifierCacheProjects.forEach(g=>{var d;(d=g.getModuleSpecifierCache())==null||d.clear()}),s.refreshScriptInfoRefCount)if(n===u)this.refreshScriptInfosInDirectory(n);else{const g=this.getScriptInfoForPath(u);g?MDe(g)&&this.refreshScriptInfo(g):xT(u)||this.refreshScriptInfosInDirectory(u)}},1,this.hostConfiguration.watchOptions,al.NodeModules);const s={refreshScriptInfoRefCount:0,affectedModuleSpecifierCacheProjects:void 0,close:()=>{var o;i&&!s.refreshScriptInfoRefCount&&!((o=s.affectedModuleSpecifierCacheProjects)!=null&&o.size)&&(i.close(),i=void 0,this.nodeModulesWatchers.delete(n))}};return this.nodeModulesWatchers.set(n,s),s}watchPackageJsonsInNodeModules(t,n){var i;const s=this.toPath(t),o=this.nodeModulesWatchers.get(s)||this.createNodeModulesWatcher(t,s);return E.assert(!((i=o.affectedModuleSpecifierCacheProjects)!=null&&i.has(n))),(o.affectedModuleSpecifierCacheProjects||(o.affectedModuleSpecifierCacheProjects=new Set)).add(n),{close:()=>{var c;(c=o.affectedModuleSpecifierCacheProjects)==null||c.delete(n),o.close()}}}watchClosedScriptInfoInNodeModules(t){const n=t+"/node_modules",i=this.toPath(n),s=this.nodeModulesWatchers.get(i)||this.createNodeModulesWatcher(n,i);return s.refreshScriptInfoRefCount++,{close:()=>{s.refreshScriptInfoRefCount--,s.close()}}}getModifiedTime(t){return(this.host.getModifiedTime(t.fileName)||rf).getTime()}refreshScriptInfo(t){const n=this.getModifiedTime(t);if(n!==t.mTime){const i=PJ(t.mTime,n);t.mTime=n,this.onSourceFileChanged(t,i)}}refreshScriptInfosInDirectory(t){t=t+Fo,this.filenameToScriptInfo.forEach(n=>{MDe(n)&&Vi(n.path,t)&&this.refreshScriptInfo(n)})}stopWatchingScriptInfo(t){t.fileWatcher&&(t.fileWatcher.close(),t.fileWatcher=void 0)}getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(t,n,i,s,o){if(F_(t)||$N(t))return this.getOrCreateScriptInfoWorker(t,n,!1,void 0,i,s,o);const c=this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(t));if(c)return c}getOrCreateScriptInfoOpenedByClientForNormalizedPath(t,n,i,s,o){return this.getOrCreateScriptInfoWorker(t,n,!0,i,s,o)}getOrCreateScriptInfoForNormalizedPath(t,n,i,s,o,c){return this.getOrCreateScriptInfoWorker(t,this.currentDirectory,n,i,s,o,c)}getOrCreateScriptInfoWorker(t,n,i,s,o,c,u){E.assert(s===void 0||i,"ScriptInfo needs to be opened by client to be able to set its user defined content");const f=GN(t,n,this.toCanonicalFileName);let g=this.getScriptInfoForPath(f);if(!g){const d=$N(t);if(E.assert(F_(t)||d||i,"",()=>`${JSON.stringify({fileName:t,currentDirectory:n,hostCurrentDirectory:this.currentDirectory,openKeys:gs(this.openFilesWithNonRootedDiskPath.keys())})} Script info with non-dynamic relative file name can only be open script info or in context of host currentDirectory`),E.assert(!F_(t)||this.currentDirectory===n||!this.openFilesWithNonRootedDiskPath.has(this.toCanonicalFileName(t)),"",()=>`${JSON.stringify({fileName:t,currentDirectory:n,hostCurrentDirectory:this.currentDirectory,openKeys:gs(this.openFilesWithNonRootedDiskPath.keys())})} Open script files with non rooted disk path opened with current directory context cannot have same canonical names`),E.assert(!d||this.currentDirectory===n||this.useInferredProjectPerProjectRoot,"",()=>`${JSON.stringify({fileName:t,currentDirectory:n,hostCurrentDirectory:this.currentDirectory,openKeys:gs(this.openFilesWithNonRootedDiskPath.keys())})} -Dynamic files must always be opened with service's current directory or service should support inferred project per projectRootPath.`),!i&&!d&&!(u||this.host).fileExists(t))return;g=new dY(this.host,t,o,!!c,f,this.filenameToScriptInfoVersion.get(f)),this.filenameToScriptInfo.set(g.path,g),this.filenameToScriptInfoVersion.delete(g.path),i?!F_(t)&&(!d||this.currentDirectory!==n)&&this.openFilesWithNonRootedDiskPath.set(this.toCanonicalFileName(t),g):this.watchClosedScriptInfo(g)}return i&&(this.stopWatchingScriptInfo(g),g.open(s),c&&g.registerFileUpdate()),g}getScriptInfoForNormalizedPath(t){return!F_(t)&&this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(t))||this.getScriptInfoForPath($N(t,this.currentDirectory,this.toCanonicalFileName))}getScriptInfoForPath(t){return this.filenameToScriptInfo.get(t)}getDocumentPositionMapper(t,n,i){const s=this.getOrCreateScriptInfoNotOpenedByClient(n,t.currentDirectory,this.host);if(!s){i&&t.addGeneratedFileWatch(n,i);return}if(s.getSnapshot(),ls(s.sourceMapFilePath)){const d=this.getScriptInfoForPath(s.sourceMapFilePath);if(d&&(d.getSnapshot(),d.documentPositionMapper!==void 0))return d.sourceInfos=this.addSourceInfoToSourceMap(i,t,d.sourceInfos),d.documentPositionMapper?d.documentPositionMapper:void 0;s.sourceMapFilePath=void 0}else if(s.sourceMapFilePath){s.sourceMapFilePath.sourceInfos=this.addSourceInfoToSourceMap(i,t,s.sourceMapFilePath.sourceInfos);return}else if(s.sourceMapFilePath!==void 0)return;let o,c,u=(d,y)=>{const S=this.getOrCreateScriptInfoNotOpenedByClient(d,t.currentDirectory,this.host);if(!S){c=y;return}o=S;const T=S.getSnapshot();return S.documentPositionMapper!==void 0?S.documentPositionMapper:y6(T)};const f=t.projectName,g=i$({getCanonicalFileName:this.toCanonicalFileName,log:d=>this.logger.info(d),getSourceFileLike:d=>this.getSourceFileLike(d,f,s)},s.fileName,s.textStorage.getLineInfo(),u);return u=void 0,o?(s.sourceMapFilePath=o.path,o.declarationInfoPath=s.path,o.documentPositionMapper=g||!1,o.sourceInfos=this.addSourceInfoToSourceMap(i,t,o.sourceInfos)):c?s.sourceMapFilePath={watcher:this.addMissingSourceMapFile(t.currentDirectory===this.currentDirectory?c:Xi(c,t.currentDirectory),s.path),sourceInfos:this.addSourceInfoToSourceMap(i,t)}:s.sourceMapFilePath=!1,g}addSourceInfoToSourceMap(t,n,i){if(t){const s=this.getOrCreateScriptInfoNotOpenedByClient(t,n.currentDirectory,n.directoryStructureHost);(i||(i=new Set)).add(s.path)}return i}addMissingSourceMapFile(t,n){return this.watchFactory.watchFile(t,()=>{const s=this.getScriptInfoForPath(n);s&&s.sourceMapFilePath&&!ls(s.sourceMapFilePath)&&(this.delayUpdateProjectGraphs(s.containingProjects,!0),this.delayUpdateSourceInfoProjects(s.sourceMapFilePath.sourceInfos),s.closeSourceMapFileWatcher())},2e3,this.hostConfiguration.watchOptions,sl.MissingSourceMapFile)}getSourceFileLike(t,n,i){const s=n.projectName?n:this.findProject(n);if(s){const c=s.toPath(t),u=s.getSourceFile(c);if(u&&u.resolvedPath===c)return u}const o=this.getOrCreateScriptInfoNotOpenedByClient(t,(s||this).currentDirectory,s?s.directoryStructureHost:this.host);if(o){if(i&&ls(i.sourceMapFilePath)&&o!==i){const c=this.getScriptInfoForPath(i.sourceMapFilePath);c&&(c.sourceInfos||(c.sourceInfos=new Set)).add(o.path)}return o.cacheSourceFile?o.cacheSourceFile.sourceFile:(o.sourceFileLike||(o.sourceFileLike={get text(){return E.fail("shouldnt need text"),""},getLineAndCharacterOfPosition:c=>{const u=o.positionToLineOffset(c);return{line:u.line-1,character:u.offset-1}},getPositionOfLineAndCharacter:(c,u,f)=>o.lineOffsetToPosition(c+1,u+1,f)}),o.sourceFileLike)}}setPerformanceEventHandler(t){this.performanceEventHandler=t}setHostConfiguration(t){var n;if(t.file){const i=this.getScriptInfoForNormalizedPath(Jo(t.file));i&&(i.setOptions(z6(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,...z6(t.formatOptions)},this.logger.info("Format host information updated")),t.preferences){const{lazyConfiguredProjectsFromExternalProject:i,includePackageJsonAutoImports:s}=this.hostConfiguration.preferences;this.hostConfiguration.preferences={...this.hostConfiguration.preferences,...t.preferences},i&&!this.hostConfiguration.preferences.lazyConfiguredProjectsFromExternalProject&&this.externalProjectToConfiguredProjectMap.forEach(o=>o.forEach(c=>{!c.isClosed()&&c.hasExternalProjectRef()&&c.pendingUpdateLevel===2&&!this.pendingProjectUpdates.has(c.getProjectName())&&c.updateGraph()})),s!==t.preferences.includePackageJsonAutoImports&&this.forEachProject(o=>{o.onAutoImportProviderSettingsChanged()})}t.extraFileExtensions&&(this.hostConfiguration.extraFileExtensions=t.extraFileExtensions,this.reloadProjects(),this.logger.info("Host file extension mappings updated")),t.watchOptions&&(this.hostConfiguration.watchOptions=(n=ZN(t.watchOptions))==null?void 0:n.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,n)=>{this.throttledOperations.cancel(n),this.pendingProjectUpdates.delete(n)}),this.throttledOperations.cancel(dde),this.pendingEnsureProjectForOpenFiles=!1,this.configFileExistenceInfoCache.forEach(t=>{t.config&&(t.config.updateLevel=2)}),this.reloadConfiguredProjectForFiles(this.openFiles,!0,!1,Wh,"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,n,i,s,o){const c=new Map,u=f=>{c.has(f.canonicalConfigFilePath)||(c.set(f.canonicalConfigFilePath,!0),this.reloadConfiguredProject(f,o,!1,n))};t==null||t.forEach((f,g)=>{if(this.configFileForOpenFiles.delete(g),!s(f))return;const d=this.getScriptInfoForPath(g);E.assert(d.isScriptOpen());const y=this.getConfigFileNameForFile(d);if(y){const S=this.findConfiguredProjectByProjectName(y)||this.createConfiguredProject(y);c.has(S.canonicalConfigFilePath)||(c.set(S.canonicalConfigFilePath,!0),i?(S.pendingUpdateLevel=2,S.pendingUpdateReason=o,n&&this.clearSemanticCache(S),this.delayUpdateProjectGraph(S)):(this.reloadConfiguredProject(S,o,!1,n),Wx(S,d)||W6(S,d.path,k=>(u(k),Wx(k,d)),1)&&W6(S,void 0,u,0)))}})}removeRootOfInferredProjectIfNowPartOfOtherProject(t){E.assert(t.containingProjects.length>0);const n=t.containingProjects[0];!n.isOrphan()&&J6(n)&&n.isRoot(t)&&er(t.containingProjects,i=>i!==n&&!i.isOrphan())&&n.removeFile(t,!0,!0)}ensureProjectForOpenFiles(){this.logger.info("Before ensureProjectForOpenFiles:"),this.printProjects(),this.openFiles.forEach((t,n)=>{const i=this.getScriptInfoForPath(n);i.isOrphan()?this.assignOrphanScriptInfoToInferredProject(i,t):this.removeRootOfInferredProjectIfNowPartOfOtherProject(i)}),this.pendingEnsureProjectForOpenFiles=!1,this.inferredProjects.forEach(uf),this.logger.info("After ensureProjectForOpenFiles:"),this.printProjects()}openClientFile(t,n,i,s){return this.openClientFileWithNormalizedPath(Jo(t),n,i,!1,s?Jo(s):void 0)}getOriginalLocationEnsuringConfiguredProject(t,n){const i=t.isSourceOfProjectReferenceRedirect(n.fileName),s=i?n:t.getSourceMapper().tryGetSourcePosition(n);if(!s)return;const{fileName:o}=s,c=this.getScriptInfo(o);if(!c&&!this.host.fileExists(o))return;const u={fileName:Jo(o),path:this.toPath(o)},f=this.getConfigFileNameForFile(u);if(!f)return;let g=this.findConfiguredProjectByProjectName(f);if(!g){if(t.getCompilerOptions().disableReferencedProjectLoad)return i?n:c!=null&&c.containingProjects.length?s:n;g=this.createAndLoadConfiguredProject(f,`Creating project for original file: ${u.fileName}${n!==s?" for location: "+n.fileName:""}`)}uf(g);const d=T=>{const k=this.getScriptInfo(o);return k&&Wx(T,k)};if(g.isSolution()||!d(g)){if(g=W6(g,o,T=>(uf(T),d(T)?T:void 0),2,`Creating project referenced in solution ${g.projectName} to find possible configured project for original file: ${u.fileName}${n!==s?" for location: "+n.fileName:""}`),!g)return;if(g===t)return s}S(g);const y=this.getScriptInfo(o);if(!y||!y.containingProjects.length)return;return y.containingProjects.forEach(T=>{Y1(T)&&S(T)}),s;function S(T){t.originalConfiguredProjects||(t.originalConfiguredProjects=new Set),t.originalConfiguredProjects.add(T.canonicalConfigFilePath)}}fileExists(t){return!!this.getScriptInfoForNormalizedPath(t)||this.host.fileExists(t)}findExternalProjectContainingOpenScriptInfo(t){return wn(this.externalProjects,n=>(uf(n),n.containsScriptInfo(t)))}getOrCreateOpenScriptInfo(t,n,i,s,o){const c=this.getOrCreateScriptInfoOpenedByClientForNormalizedPath(t,o?this.getNormalizedAbsolutePath(o):this.currentDirectory,n,i,s);return this.openFiles.set(c.path,o),c}assignProjectToOpenedScriptInfo(t){let n,i,s=this.findExternalProjectContainingOpenScriptInfo(t),o,c,u=!1;return!s&&this.serverMode===0&&(n=this.getConfigFileNameForFile(t),n&&(s=this.findConfiguredProjectByProjectName(n),s?uf(s):(s=this.createLoadAndUpdateConfiguredProject(n,`Creating possible configured project for ${t.fileName} to open`),u=!0),c=s.containsScriptInfo(t)?s:void 0,o=s,Wx(s,t)||W6(s,t.path,f=>{if(uf(f),ts(o)?o.push(f):o=[s,f],Wx(f,t))return c=f,f;!c&&f.containsScriptInfo(t)&&(c=f)},2,`Creating project referenced in solution ${s.projectName} to find possible configured project for ${t.fileName} to open`),c?(n=c.getConfigFilePath(),(c!==s||u)&&(i=c.getAllProjectErrors(),this.sendConfigFileDiagEvent(c,t.fileName))):n=void 0,this.createAncestorProjects(t,s))),t.containingProjects.forEach(uf),t.isOrphan()&&(ts(o)?o.forEach(f=>this.sendConfigFileDiagEvent(f,t.fileName)):o&&this.sendConfigFileDiagEvent(o,t.fileName),E.assert(this.openFiles.has(t.path)),this.assignOrphanScriptInfoToInferredProject(t,this.openFiles.get(t.path))),E.assert(!t.isOrphan()),{configFileName:n,configFileErrors:i,retainProjects:o}}createAncestorProjects(t,n){if(t.isAttached(n))for(;;){if(!n.isInitialLoadPending()&&(!n.getCompilerOptions().composite||n.getCompilerOptions().disableSolutionSearching))return;const i=this.getConfigFileNameForFile({fileName:n.getConfigFilePath(),path:t.path,configFileInfo:!0});if(!i)return;const s=this.findConfiguredProjectByProjectName(i)||this.createConfiguredProjectWithDelayLoad(i,`Creating project possibly referencing default composite project ${n.getProjectName()} of open file ${t.fileName}`);s.isInitialLoadPending()&&s.setPotentialProjectReference(n.canonicalConfigFilePath),n=s}}loadAncestorProjectTree(t){t=t||RK(this.configuredProjects,(i,s)=>s.isInitialLoadPending()?void 0:[i,!0]);const n=new Set;for(const i of gs(this.configuredProjects.values()))ODe(i,s=>t.has(s))&&uf(i),this.ensureProjectChildren(i,t,n)}ensureProjectChildren(t,n,i){var s;if(!_1(i,t.canonicalConfigFilePath)||t.getCompilerOptions().disableReferencedProjectLoad)return;const o=(s=t.getCurrentProgram())==null?void 0:s.getResolvedProjectReferences();if(o)for(const c of o){if(!c)continue;const u=Bq(c.references,d=>n.has(d.sourceFile.path)?d:void 0);if(!u)continue;const f=Jo(c.sourceFile.fileName),g=t.projectService.findConfiguredProjectByProjectName(f)||t.projectService.createAndLoadConfiguredProject(f,`Creating project referenced by : ${t.projectName} as it references project ${u.sourceFile.fileName}`);uf(g),this.ensureProjectChildren(g,n,i)}}cleanupAfterOpeningFile(t){this.removeOrphanConfiguredProjects(t);for(const n of this.inferredProjects.slice())n.isOrphan()&&this.removeProject(n);this.removeOrphanScriptInfos()}openClientFileWithNormalizedPath(t,n,i,s,o){const c=this.getOrCreateOpenScriptInfo(t,n,i,s,o),{retainProjects:u,...f}=this.assignProjectToOpenedScriptInfo(c);return this.cleanupAfterOpeningFile(u),this.telemetryOnOpenFile(c),this.printProjects(),f}removeOrphanConfiguredProjects(t){const n=new Map(this.configuredProjects),i=c=>{!c.isOrphan()&&c.originalConfiguredProjects&&c.originalConfiguredProjects.forEach((u,f)=>{const g=this.getConfiguredProjectByCanonicalConfigFilePath(f);return g&&o(g)})};t&&(ts(t)?t.forEach(o):o(t)),this.inferredProjects.forEach(i),this.externalProjects.forEach(i),this.configuredProjects.forEach(c=>{c.hasOpenRef()?o(c):n.has(c.canonicalConfigFilePath)&&LDe(c,u=>s(u)&&o(c))}),n.forEach(c=>this.removeProject(c));function s(c){return c.hasOpenRef()||!n.has(c.canonicalConfigFilePath)}function o(c){n.delete(c.canonicalConfigFilePath)&&(i(c),LDe(c,o))}}removeOrphanScriptInfos(){const t=new Map(this.filenameToScriptInfo);this.filenameToScriptInfo.forEach(n=>{if(!n.isScriptOpen()&&n.isOrphan()&&!n.isContainedByBackgroundProject()){if(!n.sourceMapFilePath)return;let i;if(ls(n.sourceMapFilePath)){const s=this.getScriptInfoForPath(n.sourceMapFilePath);i=s&&s.sourceInfos}else i=n.sourceMapFilePath.sourceInfos;if(!i||!Am(i,s=>{const o=this.getScriptInfoForPath(s);return!!o&&(o.isScriptOpen()||!o.isOrphan())}))return}if(t.delete(n.path),n.sourceMapFilePath){let i;if(ls(n.sourceMapFilePath)){t.delete(n.sourceMapFilePath);const s=this.getScriptInfoForPath(n.sourceMapFilePath);i=s&&s.sourceInfos}else i=n.sourceMapFilePath.sourceInfos;i&&i.forEach((s,o)=>t.delete(o))}}),t.forEach(n=>{this.stopWatchingScriptInfo(n),this.deleteScriptInfo(n),n.closeSourceMapFileWatcher()})}telemetryOnOpenFile(t){if(this.serverMode!==0||!this.eventHandler||!t.isJavaScript()||!qp(this.allJsFilesForOpenFileTelemetry,t.path))return;const n=this.ensureDefaultProjectForFile(t);if(!n.languageServiceEnabled)return;const i=n.getSourceFile(t.path),s=!!i&&!!i.checkJsDirective;this.eventHandler({eventName:CY,data:{info:{checkJs:s}}})}closeClientFile(t,n){const i=this.getScriptInfoForNormalizedPath(Jo(t)),s=i?this.closeOpenFile(i,n):!1;return n||this.printProjects(),s}collectChanges(t,n,i,s){for(const o of n){const c=wn(t,u=>u.projectName===o.getProjectName());s.push(o.getChangesSinceVersion(c&&c.version,i))}}synchronizeProjectList(t,n){const i=[];return this.collectChanges(t,this.externalProjects,n,i),this.collectChanges(t,this.configuredProjects.values(),n,i),this.collectChanges(t,this.inferredProjects,n,i),i}applyChangesInOpenFiles(t,n,i){let s,o=!1;if(t)for(const u of t){const f=this.getOrCreateOpenScriptInfo(Jo(u.fileName),u.content,TY(u.scriptKind),u.hasMixedContent,u.projectRootPath?Jo(u.projectRootPath):void 0);(s||(s=[])).push(f)}if(n)for(const u of n){const f=this.getScriptInfo(u.fileName);E.assert(!!f),this.applyChangesToFile(f,u.changes)}if(i)for(const u of i)o=this.closeClientFile(u,!0)||o;let c;s&&(c=Zs(s,u=>this.assignProjectToOpenedScriptInfo(u).retainProjects)),o&&this.assignOrphanScriptInfosToInferredProject(),s?(this.cleanupAfterOpeningFile(c),s.forEach(u=>this.telemetryOnOpenFile(u)),this.printProjects()):gr(i)&&this.printProjects()}applyChangesToFile(t,n){for(const i of n)t.editContent(i.span.start,i.span.start+i.span.length,i.newText)}closeConfiguredProjectReferencedFromExternalProject(t){t==null||t.forEach(n=>{n.isClosed()||(n.deleteExternalProjectReference(),n.hasOpenRef()||this.removeProject(n))})}closeExternalProject(t,n){const i=Jo(t),s=this.externalProjectToConfiguredProjectMap.get(i);if(s)this.closeConfiguredProjectReferencedFromExternalProject(s),this.externalProjectToConfiguredProjectMap.delete(i);else{const o=this.findExternalProjectByProjectName(t);o&&this.removeProject(o)}n&&this.printProjects()}openExternalProjects(t){const n=Iv(this.externalProjects,i=>i.getProjectName(),i=>!0);Am(this.externalProjectToConfiguredProjectMap,i=>{n.set(i,!0)});for(const i of t)this.openExternalProject(i,!1),n.delete(i.projectFileName);Am(n,i=>{this.closeExternalProject(i,!1)}),this.printProjects()}static escapeFilenameForRegex(t){return t.replace(this.filenameEscapeRegexp,"\\$&")}resetSafeList(){this.safelist=EY}applySafeList(t){const n=t.typeAcquisition;E.assert(!!n,"proj.typeAcquisition should be set by now");const i=this.applySafeListWorker(t,t.rootFiles,n);return(i==null?void 0:i.excludedFiles)??[]}applySafeListWorker(t,n,i){if(i.enable===!1||i.disableFilenameBasedTypeAcquisition)return;const s=i.include||(i.include=[]),o=[],c=n.map(y=>iu(y.fileName));for(const y of Object.keys(this.safelist)){const S=this.safelist[y];for(const T of c)if(S.match.test(T)){if(this.logger.info(`Excluding files based on rule ${y} matching file '${T}'`),S.types)for(const k of S.types)s.includes(k)||s.push(k);if(S.exclude)for(const k of S.exclude){const w=T.replace(S.match,(...P)=>k.map(F=>typeof F=="number"?ls(P[F])?o0e.escapeFilenameForRegex(P[F]):(this.logger.info(`Incorrect RegExp specification in safelist rule ${y} - not enough groups`),"\\*"):F).join(""));o.includes(w)||o.push(w)}else{const k=o0e.escapeFilenameForRegex(T);o.includes(k)||o.push(k)}}}const u=o.map(y=>new RegExp(y,"i"));let f,g;for(let y=0;yS.test(c[y])))d(y);else{if(i.enable){const S=wc(km(c[y]));if(Zo(S,"js")){const T=$u(S),k=hB(T),w=this.legacySafelist.get(k);if(w!==void 0){this.logger.info(`Excluded '${c[y]}' because it matched ${k} from the legacy safelist`),d(y),s.includes(w)||s.push(w);continue}}}/^.+[.-]min\.js$/.test(c[y])?d(y):f==null||f.push(n[y])}return g?{rootFiles:f,excludedFiles:g}:void 0;function d(y){g||(E.assert(!f),f=n.slice(0,y),g=[]),g.push(c[y])}}openExternalProject(t,n){const i=this.findExternalProjectByProjectName(t.projectFileName),s=this.externalProjectToConfiguredProjectMap.get(t.projectFileName);let o,c=[];for(const u of t.rootFiles){const f=Jo(u.fileName);if(lY(f)){if(this.serverMode===0&&this.host.fileExists(f)){let g=this.findConfiguredProjectByProjectName(f);g||(g=this.getHostPreferences().lazyConfiguredProjectsFromExternalProject?this.createConfiguredProjectWithDelayLoad(f,`Creating configured project in external project: ${t.projectFileName}`):this.createLoadAndUpdateConfiguredProject(f,`Creating configured project in external project: ${t.projectFileName}`)),s!=null&&s.has(g)||g.addExternalProjectReference(),(o??(o=new Set)).add(g),s==null||s.delete(g)}}else c.push(u)}if(o)this.externalProjectToConfiguredProjectMap.set(t.projectFileName,o),i&&this.removeProject(i);else{this.externalProjectToConfiguredProjectMap.delete(t.projectFileName);const u=t.typeAcquisition||{};u.include=u.include||[],u.exclude=u.exclude||[],u.enable===void 0&&(u.enable=nde(c.map(d=>d.fileName)));const f=this.applySafeListWorker(t,c,u),g=(f==null?void 0:f.excludedFiles)??[];if(c=(f==null?void 0:f.rootFiles)??c,i){i.excludedFiles=g;const d=mR(t.options),y=ZN(t.options,i.getCurrentDirectory()),S=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t.projectFileName,d,c,DR);S?i.disableLanguageService(S):i.enableLanguageService(),i.setProjectErrors(y==null?void 0:y.errors),this.updateRootAndOptionsOfNonInferredProject(i,c,DR,d,u,t.options.compileOnSave,y==null?void 0:y.watchOptions),i.updateGraph()}else this.createExternalProject(t.projectFileName,c,t.options,u,g).updateGraph()}this.closeConfiguredProjectReferencedFromExternalProject(s),n&&this.printProjects()}hasDeferredExtension(){for(const t of this.hostConfiguration.extraFileExtensions)if(t.scriptKind===7)return!0;return!1}requestEnablePlugin(t,n,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 ${n.name} from candidate paths: ${i.join(",")}`),!n.name||uA(n.name).rest){this.logger.info(`Skipped loading plugin ${n.name||JSON.stringify(n)} because only package name is allowed plugin name`);return}if(this.host.importPlugin){const s=gS.importServicePluginAsync(n,i,this.host,c=>this.logger.info(c));this.pendingPluginEnablements??(this.pendingPluginEnablements=new Map);let o=this.pendingPluginEnablements.get(t);o||this.pendingPluginEnablements.set(t,o=[]),o.push(s);return}this.endEnablePlugin(t,gS.importServicePluginSync(n,i,this.host,s=>this.logger.info(s)))}endEnablePlugin(t,{pluginConfigEntry:n,resolvedModule:i,errorLogs:s}){var o;if(i){const c=(o=this.currentPluginConfigOverrides)==null?void 0:o.get(n.name);if(c){const u=n.name;n=c,n.name=u}t.enableProxy(i,n)}else er(s,c=>this.logger.info(c)),this.logger.info(`Couldn't find ${n.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;const t=gs(this.pendingPluginEnablements.entries());this.pendingPluginEnablements=void 0,this.currentPluginEnablementPromise=this.enableRequestedPluginsWorker(t),await this.currentPluginEnablementPromise}async enableRequestedPluginsWorker(t){E.assert(this.currentPluginEnablementPromise===void 0),await Promise.all(nr(t,([n,i])=>this.enableRequestedPluginsForProjectAsync(n,i))),this.currentPluginEnablementPromise=void 0,this.sendProjectsUpdatedInBackgroundEvent()}async enableRequestedPluginsForProjectAsync(t,n){const i=await Promise.all(n);if(!t.isClosed()){for(const s of i)this.endEnablePlugin(t,s);this.delayUpdateProjectGraph(t)}}configurePlugin(t){this.forEachEnabledProject(n=>n.onPluginConfigurationChanged(t.pluginName,t.configuration)),this.currentPluginConfigOverrides=this.currentPluginConfigOverrides||new Map,this.currentPluginConfigOverrides.set(t.pluginName,t.configuration)}getPackageJsonsVisibleToFile(t,n,i){const s=this.packageJsonCache,o=i&&this.toPath(i),c=[],u=f=>{switch(s.directoryHasPackageJson(f)){case 3:return s.searchDirectoryAndAncestors(f),u(f);case-1:const g=Mn(f,"package.json");this.watchPackageJsonFile(g,this.toPath(g),n);const d=s.getInDirectory(f);d&&c.push(d)}if(o&&o===f)return!0};return Jp(Un(t),u),c}getNearestAncestorDirectoryWithPackageJson(t){return Jp(t,n=>{switch(this.packageJsonCache.directoryHasPackageJson(n)){case-1:return n;case 0:return;case 3:return this.host.fileExists(Mn(n,"package.json"))?n:void 0}})}watchPackageJsonFile(t,n,i){E.assert(i!==void 0);let s=(this.packageJsonFilesMap??(this.packageJsonFilesMap=new Map)).get(n);if(!s){let o=this.watchFactory.watchFile(t,(c,u)=>{switch(u){case 0:return E.fail();case 1:this.packageJsonCache.addOrUpdate(c,n),this.onPackageJsonChange(s);break;case 2:this.packageJsonCache.delete(n),this.onPackageJsonChange(s),s.projects.clear(),s.close()}},250,this.hostConfiguration.watchOptions,sl.PackageJson);s={projects:new Set,close:()=>{var c;s.projects.size||!o||(o.close(),o=void 0,(c=this.packageJsonFilesMap)==null||c.delete(n),this.packageJsonCache.invalidate(n))}},this.packageJsonFilesMap.set(n,s)}s.projects.add(i),(i.packageJsonWatches??(i.packageJsonWatches=new Set)).add(s)}onPackageJsonChange(t){t.projects.forEach(n=>{var i;return(i=n.onPackageJsonChange)==null?void 0:i.call(n)})}includePackageJsonAutoImports(){switch(this.hostConfiguration.preferences.includePackageJsonAutoImports){case"on":return 1;case"off":return 0;default:return 2}}getIncompleteCompletionsCache(){return this.incompleteCompletionsCache||(this.incompleteCompletionsCache=set())}},mde.filenameEscapeRegexp=/[-/\\^$*+?.()|[\]{}]/g,wY=mde}});function gde(e){let t,n,i;const s={get(f,g,d,y){if(!(!n||i!==c(f,d,y)))return n.get(g)},set(f,g,d,y,S,T){if(o(f,d,y).set(g,u(S,T,!1)),T){for(const k of S)if(k.isInNodeModules){const w=k.path.substring(0,k.path.indexOf(zm)+zm.length-1),P=e.toPath(w);t!=null&&t.has(P)||(t||(t=new Map)).set(P,e.watchNodeModulesForPackageJsonChanges(w))}}},setModulePaths(f,g,d,y,S){const T=o(f,d,y),k=T.get(g);k?k.modulePaths=S:T.set(g,u(S,void 0,void 0))},setBlockedByPackageJsonDependencies(f,g,d,y,S){const T=o(f,d,y),k=T.get(g);k?k.isBlockedByPackageJsonDependencies=S:T.set(g,u(void 0,void 0,S))},clear(){t==null||t.forEach(md),n==null||n.clear(),t==null||t.clear(),i=void 0},count(){return n?n.size:0}};return E.isDebugging&&Object.defineProperty(s,"__cache",{get:()=>n}),s;function o(f,g,d){const y=c(f,g,d);return n&&i!==y&&s.clear(),i=y,n||(n=new Map)}function c(f,g,d){return`${f},${g.importModuleSpecifierEnding},${g.importModuleSpecifierPreference},${d.overrideImportMode}`}function u(f,g,d){return{modulePaths:f,moduleSpecifiers:g,isBlockedByPackageJsonDependencies:d}}}var oet=wt({"src/server/moduleSpecifierCache.ts"(){ky()}});function hde(e){const t=new Map,n=new Map;return{addOrUpdate:i,invalidate:s,delete:c=>{t.delete(c),n.set(Un(c),!0)},getInDirectory:c=>t.get(e.toPath(Mn(c,"package.json")))||void 0,directoryHasPackageJson:c=>o(e.toPath(c)),searchDirectoryAndAncestors:c=>{Jp(c,u=>{const f=e.toPath(u);if(o(f)!==3)return!0;const g=Mn(u,"package.json");sN(e,g)?i(g,Mn(f,"package.json")):n.set(f,!0)})}};function i(c,u){const f=E.checkDefined(LG(c,e.host));t.set(u,f),n.delete(Un(u))}function s(c){t.delete(c),n.delete(Un(c))}function o(c){return t.has(Mn(c,"package.json"))?-1:n.has(c)?0:3}}var cet=wt({"src/server/packageJsonCache.ts"(){ky()}});function uet(e){const t=e[0],n=e[1];return(1e9*t+n)/1e6}function JDe(e,t){if((J6(e)||gY(e))&&e.isJsOnlyProject()){const n=e.getScriptInfoForNormalizedPath(t);return n&&!n.isJavaScript()}return!1}function _et(e){return Gf(e)||!!e.emitDecoratorMetadata}function zDe(e,t,n){const i=t.getScriptInfoForNormalizedPath(e);return{start:i.positionToLineOffset(n.start),end:i.positionToLineOffset(n.start+n.length),text:tm(n.messageText,` -`),code:n.code,category:gb(n),reportsUnnecessary:n.reportsUnnecessary,reportsDeprecated:n.reportsDeprecated,source:n.source,relatedInformation:nr(n.relatedInformation,AY)}}function AY(e){return e.file?{span:{start:eI(Ha(e.file,e.start)),end:eI(Ha(e.file,e.start+e.length)),file:e.file.fileName},message:tm(e.messageText,` -`),category:gb(e),code:e.code}:{message:tm(e.messageText,` -`),category:gb(e),code:e.code}}function eI(e){return{line:e.line+1,offset:e.character+1}}function tI(e,t){const n=e.file&&eI(Ha(e.file,e.start)),i=e.file&&eI(Ha(e.file,e.start+e.length)),s=tm(e.messageText,` -`),{code:o,source:c}=e,u=gb(e),f={start:n,end:i,text:s,code:o,category:u,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,source:c,relatedInformation:nr(e.relatedInformation,AY)};return t?{...f,fileName:e.file&&e.file.fileName}:f}function fet(e,t){return e.every(n=>bc(n.span){const S=this.getOrCreateScriptInfoNotOpenedByClient(d,t.currentDirectory,this.host);if(!S){c=y;return}o=S;const T=S.getSnapshot();return S.documentPositionMapper!==void 0?S.documentPositionMapper:y6(T)};const f=t.projectName,g=r$({getCanonicalFileName:this.toCanonicalFileName,log:d=>this.logger.info(d),getSourceFileLike:d=>this.getSourceFileLike(d,f,s)},s.fileName,s.textStorage.getLineInfo(),u);return u=void 0,o?(s.sourceMapFilePath=o.path,o.declarationInfoPath=s.path,o.documentPositionMapper=g||!1,o.sourceInfos=this.addSourceInfoToSourceMap(i,t,o.sourceInfos)):c?s.sourceMapFilePath={watcher:this.addMissingSourceMapFile(t.currentDirectory===this.currentDirectory?c:Xi(c,t.currentDirectory),s.path),sourceInfos:this.addSourceInfoToSourceMap(i,t)}:s.sourceMapFilePath=!1,g}addSourceInfoToSourceMap(t,n,i){if(t){const s=this.getOrCreateScriptInfoNotOpenedByClient(t,n.currentDirectory,n.directoryStructureHost);(i||(i=new Set)).add(s.path)}return i}addMissingSourceMapFile(t,n){return this.watchFactory.watchFile(t,()=>{const s=this.getScriptInfoForPath(n);s&&s.sourceMapFilePath&&!ls(s.sourceMapFilePath)&&(this.delayUpdateProjectGraphs(s.containingProjects,!0),this.delayUpdateSourceInfoProjects(s.sourceMapFilePath.sourceInfos),s.closeSourceMapFileWatcher())},2e3,this.hostConfiguration.watchOptions,al.MissingSourceMapFile)}getSourceFileLike(t,n,i){const s=n.projectName?n:this.findProject(n);if(s){const c=s.toPath(t),u=s.getSourceFile(c);if(u&&u.resolvedPath===c)return u}const o=this.getOrCreateScriptInfoNotOpenedByClient(t,(s||this).currentDirectory,s?s.directoryStructureHost:this.host);if(o){if(i&&ls(i.sourceMapFilePath)&&o!==i){const c=this.getScriptInfoForPath(i.sourceMapFilePath);c&&(c.sourceInfos||(c.sourceInfos=new Set)).add(o.path)}return o.cacheSourceFile?o.cacheSourceFile.sourceFile:(o.sourceFileLike||(o.sourceFileLike={get text(){return E.fail("shouldnt need text"),""},getLineAndCharacterOfPosition:c=>{const u=o.positionToLineOffset(c);return{line:u.line-1,character:u.offset-1}},getPositionOfLineAndCharacter:(c,u,f)=>o.lineOffsetToPosition(c+1,u+1,f)}),o.sourceFileLike)}}setPerformanceEventHandler(t){this.performanceEventHandler=t}setHostConfiguration(t){var n;if(t.file){const i=this.getScriptInfoForNormalizedPath(zo(t.file));i&&(i.setOptions(z6(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,...z6(t.formatOptions)},this.logger.info("Format host information updated")),t.preferences){const{lazyConfiguredProjectsFromExternalProject:i,includePackageJsonAutoImports:s}=this.hostConfiguration.preferences;this.hostConfiguration.preferences={...this.hostConfiguration.preferences,...t.preferences},i&&!this.hostConfiguration.preferences.lazyConfiguredProjectsFromExternalProject&&this.externalProjectToConfiguredProjectMap.forEach(o=>o.forEach(c=>{!c.isClosed()&&c.hasExternalProjectRef()&&c.pendingUpdateLevel===2&&!this.pendingProjectUpdates.has(c.getProjectName())&&c.updateGraph()})),s!==t.preferences.includePackageJsonAutoImports&&this.forEachProject(o=>{o.onAutoImportProviderSettingsChanged()})}t.extraFileExtensions&&(this.hostConfiguration.extraFileExtensions=t.extraFileExtensions,this.reloadProjects(),this.logger.info("Host file extension mappings updated")),t.watchOptions&&(this.hostConfiguration.watchOptions=(n=YN(t.watchOptions))==null?void 0:n.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,n)=>{this.throttledOperations.cancel(n),this.pendingProjectUpdates.delete(n)}),this.throttledOperations.cancel(pde),this.pendingEnsureProjectForOpenFiles=!1,this.configFileExistenceInfoCache.forEach(t=>{t.config&&(t.config.updateLevel=2)}),this.reloadConfiguredProjectForFiles(this.openFiles,!0,!1,Wh,"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,n,i,s,o){const c=new Map,u=f=>{c.has(f.canonicalConfigFilePath)||(c.set(f.canonicalConfigFilePath,!0),this.reloadConfiguredProject(f,o,!1,n))};t==null||t.forEach((f,g)=>{if(this.configFileForOpenFiles.delete(g),!s(f))return;const d=this.getScriptInfoForPath(g);E.assert(d.isScriptOpen());const y=this.getConfigFileNameForFile(d);if(y){const S=this.findConfiguredProjectByProjectName(y)||this.createConfiguredProject(y);c.has(S.canonicalConfigFilePath)||(c.set(S.canonicalConfigFilePath,!0),i?(S.pendingUpdateLevel=2,S.pendingUpdateReason=o,n&&this.clearSemanticCache(S),this.delayUpdateProjectGraph(S)):(this.reloadConfiguredProject(S,o,!1,n),zx(S,d)||W6(S,d.path,k=>(u(k),zx(k,d)),1)&&W6(S,void 0,u,0)))}})}removeRootOfInferredProjectIfNowPartOfOtherProject(t){E.assert(t.containingProjects.length>0);const n=t.containingProjects[0];!n.isOrphan()&&J6(n)&&n.isRoot(t)&&rr(t.containingProjects,i=>i!==n&&!i.isOrphan())&&n.removeFile(t,!0,!0)}ensureProjectForOpenFiles(){this.logger.info("Before ensureProjectForOpenFiles:"),this.printProjects(),this.openFiles.forEach((t,n)=>{const i=this.getScriptInfoForPath(n);i.isOrphan()?this.assignOrphanScriptInfoToInferredProject(i,t):this.removeRootOfInferredProjectIfNowPartOfOtherProject(i)}),this.pendingEnsureProjectForOpenFiles=!1,this.inferredProjects.forEach(uf),this.logger.info("After ensureProjectForOpenFiles:"),this.printProjects()}openClientFile(t,n,i,s){return this.openClientFileWithNormalizedPath(zo(t),n,i,!1,s?zo(s):void 0)}getOriginalLocationEnsuringConfiguredProject(t,n){const i=t.isSourceOfProjectReferenceRedirect(n.fileName),s=i?n:t.getSourceMapper().tryGetSourcePosition(n);if(!s)return;const{fileName:o}=s,c=this.getScriptInfo(o);if(!c&&!this.host.fileExists(o))return;const u={fileName:zo(o),path:this.toPath(o)},f=this.getConfigFileNameForFile(u);if(!f)return;let g=this.findConfiguredProjectByProjectName(f);if(!g){if(t.getCompilerOptions().disableReferencedProjectLoad)return i?n:c!=null&&c.containingProjects.length?s:n;g=this.createAndLoadConfiguredProject(f,`Creating project for original file: ${u.fileName}${n!==s?" for location: "+n.fileName:""}`)}uf(g);const d=T=>{const k=this.getScriptInfo(o);return k&&zx(T,k)};if(g.isSolution()||!d(g)){if(g=W6(g,o,T=>(uf(T),d(T)?T:void 0),2,`Creating project referenced in solution ${g.projectName} to find possible configured project for original file: ${u.fileName}${n!==s?" for location: "+n.fileName:""}`),!g)return;if(g===t)return s}S(g);const y=this.getScriptInfo(o);if(!y||!y.containingProjects.length)return;return y.containingProjects.forEach(T=>{Y1(T)&&S(T)}),s;function S(T){t.originalConfiguredProjects||(t.originalConfiguredProjects=new Set),t.originalConfiguredProjects.add(T.canonicalConfigFilePath)}}fileExists(t){return!!this.getScriptInfoForNormalizedPath(t)||this.host.fileExists(t)}findExternalProjectContainingOpenScriptInfo(t){return wn(this.externalProjects,n=>(uf(n),n.containsScriptInfo(t)))}getOrCreateOpenScriptInfo(t,n,i,s,o){const c=this.getOrCreateScriptInfoOpenedByClientForNormalizedPath(t,o?this.getNormalizedAbsolutePath(o):this.currentDirectory,n,i,s);return this.openFiles.set(c.path,o),c}assignProjectToOpenedScriptInfo(t){let n,i,s=this.findExternalProjectContainingOpenScriptInfo(t),o,c,u=!1;return!s&&this.serverMode===0&&(n=this.getConfigFileNameForFile(t),n&&(s=this.findConfiguredProjectByProjectName(n),s?uf(s):(s=this.createLoadAndUpdateConfiguredProject(n,`Creating possible configured project for ${t.fileName} to open`),u=!0),c=s.containsScriptInfo(t)?s:void 0,o=s,zx(s,t)||W6(s,t.path,f=>{if(uf(f),ts(o)?o.push(f):o=[s,f],zx(f,t))return c=f,f;!c&&f.containsScriptInfo(t)&&(c=f)},2,`Creating project referenced in solution ${s.projectName} to find possible configured project for ${t.fileName} to open`),c?(n=c.getConfigFilePath(),(c!==s||u)&&(i=c.getAllProjectErrors(),this.sendConfigFileDiagEvent(c,t.fileName))):n=void 0,this.createAncestorProjects(t,s))),t.containingProjects.forEach(uf),t.isOrphan()&&(ts(o)?o.forEach(f=>this.sendConfigFileDiagEvent(f,t.fileName)):o&&this.sendConfigFileDiagEvent(o,t.fileName),E.assert(this.openFiles.has(t.path)),this.assignOrphanScriptInfoToInferredProject(t,this.openFiles.get(t.path))),E.assert(!t.isOrphan()),{configFileName:n,configFileErrors:i,retainProjects:o}}createAncestorProjects(t,n){if(t.isAttached(n))for(;;){if(!n.isInitialLoadPending()&&(!n.getCompilerOptions().composite||n.getCompilerOptions().disableSolutionSearching))return;const i=this.getConfigFileNameForFile({fileName:n.getConfigFilePath(),path:t.path,configFileInfo:!0});if(!i)return;const s=this.findConfiguredProjectByProjectName(i)||this.createConfiguredProjectWithDelayLoad(i,`Creating project possibly referencing default composite project ${n.getProjectName()} of open file ${t.fileName}`);s.isInitialLoadPending()&&s.setPotentialProjectReference(n.canonicalConfigFilePath),n=s}}loadAncestorProjectTree(t){t=t||MK(this.configuredProjects,(i,s)=>s.isInitialLoadPending()?void 0:[i,!0]);const n=new Set;for(const i of gs(this.configuredProjects.values()))ODe(i,s=>t.has(s))&&uf(i),this.ensureProjectChildren(i,t,n)}ensureProjectChildren(t,n,i){var s;if(!_1(i,t.canonicalConfigFilePath)||t.getCompilerOptions().disableReferencedProjectLoad)return;const o=(s=t.getCurrentProgram())==null?void 0:s.getResolvedProjectReferences();if(o)for(const c of o){if(!c)continue;const u=Rq(c.references,d=>n.has(d.sourceFile.path)?d:void 0);if(!u)continue;const f=zo(c.sourceFile.fileName),g=t.projectService.findConfiguredProjectByProjectName(f)||t.projectService.createAndLoadConfiguredProject(f,`Creating project referenced by : ${t.projectName} as it references project ${u.sourceFile.fileName}`);uf(g),this.ensureProjectChildren(g,n,i)}}cleanupAfterOpeningFile(t){this.removeOrphanConfiguredProjects(t);for(const n of this.inferredProjects.slice())n.isOrphan()&&this.removeProject(n);this.removeOrphanScriptInfos()}openClientFileWithNormalizedPath(t,n,i,s,o){const c=this.getOrCreateOpenScriptInfo(t,n,i,s,o),{retainProjects:u,...f}=this.assignProjectToOpenedScriptInfo(c);return this.cleanupAfterOpeningFile(u),this.telemetryOnOpenFile(c),this.printProjects(),f}removeOrphanConfiguredProjects(t){const n=new Map(this.configuredProjects),i=c=>{!c.isOrphan()&&c.originalConfiguredProjects&&c.originalConfiguredProjects.forEach((u,f)=>{const g=this.getConfiguredProjectByCanonicalConfigFilePath(f);return g&&o(g)})};t&&(ts(t)?t.forEach(o):o(t)),this.inferredProjects.forEach(i),this.externalProjects.forEach(i),this.configuredProjects.forEach(c=>{c.hasOpenRef()?o(c):n.has(c.canonicalConfigFilePath)&&LDe(c,u=>s(u)&&o(c))}),n.forEach(c=>this.removeProject(c));function s(c){return c.hasOpenRef()||!n.has(c.canonicalConfigFilePath)}function o(c){n.delete(c.canonicalConfigFilePath)&&(i(c),LDe(c,o))}}removeOrphanScriptInfos(){const t=new Map(this.filenameToScriptInfo);this.filenameToScriptInfo.forEach(n=>{if(!n.isScriptOpen()&&n.isOrphan()&&!n.isContainedByBackgroundProject()){if(!n.sourceMapFilePath)return;let i;if(ls(n.sourceMapFilePath)){const s=this.getScriptInfoForPath(n.sourceMapFilePath);i=s&&s.sourceInfos}else i=n.sourceMapFilePath.sourceInfos;if(!i||!Am(i,s=>{const o=this.getScriptInfoForPath(s);return!!o&&(o.isScriptOpen()||!o.isOrphan())}))return}if(t.delete(n.path),n.sourceMapFilePath){let i;if(ls(n.sourceMapFilePath)){t.delete(n.sourceMapFilePath);const s=this.getScriptInfoForPath(n.sourceMapFilePath);i=s&&s.sourceInfos}else i=n.sourceMapFilePath.sourceInfos;i&&i.forEach((s,o)=>t.delete(o))}}),t.forEach(n=>{this.stopWatchingScriptInfo(n),this.deleteScriptInfo(n),n.closeSourceMapFileWatcher()})}telemetryOnOpenFile(t){if(this.serverMode!==0||!this.eventHandler||!t.isJavaScript()||!Vp(this.allJsFilesForOpenFileTelemetry,t.path))return;const n=this.ensureDefaultProjectForFile(t);if(!n.languageServiceEnabled)return;const i=n.getSourceFile(t.path),s=!!i&&!!i.checkJsDirective;this.eventHandler({eventName:xY,data:{info:{checkJs:s}}})}closeClientFile(t,n){const i=this.getScriptInfoForNormalizedPath(zo(t)),s=i?this.closeOpenFile(i,n):!1;return n||this.printProjects(),s}collectChanges(t,n,i,s){for(const o of n){const c=wn(t,u=>u.projectName===o.getProjectName());s.push(o.getChangesSinceVersion(c&&c.version,i))}}synchronizeProjectList(t,n){const i=[];return this.collectChanges(t,this.externalProjects,n,i),this.collectChanges(t,this.configuredProjects.values(),n,i),this.collectChanges(t,this.inferredProjects,n,i),i}applyChangesInOpenFiles(t,n,i){let s,o=!1;if(t)for(const u of t){const f=this.getOrCreateOpenScriptInfo(zo(u.fileName),u.content,bY(u.scriptKind),u.hasMixedContent,u.projectRootPath?zo(u.projectRootPath):void 0);(s||(s=[])).push(f)}if(n)for(const u of n){const f=this.getScriptInfo(u.fileName);E.assert(!!f),this.applyChangesToFile(f,u.changes)}if(i)for(const u of i)o=this.closeClientFile(u,!0)||o;let c;s&&(c=Zs(s,u=>this.assignProjectToOpenedScriptInfo(u).retainProjects)),o&&this.assignOrphanScriptInfosToInferredProject(),s?(this.cleanupAfterOpeningFile(c),s.forEach(u=>this.telemetryOnOpenFile(u)),this.printProjects()):mr(i)&&this.printProjects()}applyChangesToFile(t,n){for(const i of n)t.editContent(i.span.start,i.span.start+i.span.length,i.newText)}closeConfiguredProjectReferencedFromExternalProject(t){t==null||t.forEach(n=>{n.isClosed()||(n.deleteExternalProjectReference(),n.hasOpenRef()||this.removeProject(n))})}closeExternalProject(t,n){const i=zo(t),s=this.externalProjectToConfiguredProjectMap.get(i);if(s)this.closeConfiguredProjectReferencedFromExternalProject(s),this.externalProjectToConfiguredProjectMap.delete(i);else{const o=this.findExternalProjectByProjectName(t);o&&this.removeProject(o)}n&&this.printProjects()}openExternalProjects(t){const n=Iv(this.externalProjects,i=>i.getProjectName(),i=>!0);Am(this.externalProjectToConfiguredProjectMap,i=>{n.set(i,!0)});for(const i of t)this.openExternalProject(i,!1),n.delete(i.projectFileName);Am(n,i=>{this.closeExternalProject(i,!1)}),this.printProjects()}static escapeFilenameForRegex(t){return t.replace(this.filenameEscapeRegexp,"\\$&")}resetSafeList(){this.safelist=kY}applySafeList(t){const n=t.typeAcquisition;E.assert(!!n,"proj.typeAcquisition should be set by now");const i=this.applySafeListWorker(t,t.rootFiles,n);return(i==null?void 0:i.excludedFiles)??[]}applySafeListWorker(t,n,i){if(i.enable===!1||i.disableFilenameBasedTypeAcquisition)return;const s=i.include||(i.include=[]),o=[],c=n.map(y=>iu(y.fileName));for(const y of Object.keys(this.safelist)){const S=this.safelist[y];for(const T of c)if(S.match.test(T)){if(this.logger.info(`Excluding files based on rule ${y} matching file '${T}'`),S.types)for(const k of S.types)s.includes(k)||s.push(k);if(S.exclude)for(const k of S.exclude){const w=T.replace(S.match,(...P)=>k.map(F=>typeof F=="number"?ls(P[F])?o0e.escapeFilenameForRegex(P[F]):(this.logger.info(`Incorrect RegExp specification in safelist rule ${y} - not enough groups`),"\\*"):F).join(""));o.includes(w)||o.push(w)}else{const k=o0e.escapeFilenameForRegex(T);o.includes(k)||o.push(k)}}}const u=o.map(y=>new RegExp(y,"i"));let f,g;for(let y=0;yS.test(c[y])))d(y);else{if(i.enable){const S=wc(km(c[y]));if(Zo(S,"js")){const T=$u(S),k=mB(T),w=this.legacySafelist.get(k);if(w!==void 0){this.logger.info(`Excluded '${c[y]}' because it matched ${k} from the legacy safelist`),d(y),s.includes(w)||s.push(w);continue}}}/^.+[.-]min\.js$/.test(c[y])?d(y):f==null||f.push(n[y])}return g?{rootFiles:f,excludedFiles:g}:void 0;function d(y){g||(E.assert(!f),f=n.slice(0,y),g=[]),g.push(c[y])}}openExternalProject(t,n){const i=this.findExternalProjectByProjectName(t.projectFileName),s=this.externalProjectToConfiguredProjectMap.get(t.projectFileName);let o,c=[];for(const u of t.rootFiles){const f=zo(u.fileName);if(oY(f)){if(this.serverMode===0&&this.host.fileExists(f)){let g=this.findConfiguredProjectByProjectName(f);g||(g=this.getHostPreferences().lazyConfiguredProjectsFromExternalProject?this.createConfiguredProjectWithDelayLoad(f,`Creating configured project in external project: ${t.projectFileName}`):this.createLoadAndUpdateConfiguredProject(f,`Creating configured project in external project: ${t.projectFileName}`)),s!=null&&s.has(g)||g.addExternalProjectReference(),(o??(o=new Set)).add(g),s==null||s.delete(g)}}else c.push(u)}if(o)this.externalProjectToConfiguredProjectMap.set(t.projectFileName,o),i&&this.removeProject(i);else{this.externalProjectToConfiguredProjectMap.delete(t.projectFileName);const u=t.typeAcquisition||{};u.include=u.include||[],u.exclude=u.exclude||[],u.enable===void 0&&(u.enable=rde(c.map(d=>d.fileName)));const f=this.applySafeListWorker(t,c,u),g=(f==null?void 0:f.excludedFiles)??[];if(c=(f==null?void 0:f.rootFiles)??c,i){i.excludedFiles=g;const d=fR(t.options),y=YN(t.options,i.getCurrentDirectory()),S=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t.projectFileName,d,c,CR);S?i.disableLanguageService(S):i.enableLanguageService(),i.setProjectErrors(y==null?void 0:y.errors),this.updateRootAndOptionsOfNonInferredProject(i,c,CR,d,u,t.options.compileOnSave,y==null?void 0:y.watchOptions),i.updateGraph()}else this.createExternalProject(t.projectFileName,c,t.options,u,g).updateGraph()}this.closeConfiguredProjectReferencedFromExternalProject(s),n&&this.printProjects()}hasDeferredExtension(){for(const t of this.hostConfiguration.extraFileExtensions)if(t.scriptKind===7)return!0;return!1}requestEnablePlugin(t,n,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 ${n.name} from candidate paths: ${i.join(",")}`),!n.name||lA(n.name).rest){this.logger.info(`Skipped loading plugin ${n.name||JSON.stringify(n)} because only package name is allowed plugin name`);return}if(this.host.importPlugin){const s=mS.importServicePluginAsync(n,i,this.host,c=>this.logger.info(c));this.pendingPluginEnablements??(this.pendingPluginEnablements=new Map);let o=this.pendingPluginEnablements.get(t);o||this.pendingPluginEnablements.set(t,o=[]),o.push(s);return}this.endEnablePlugin(t,mS.importServicePluginSync(n,i,this.host,s=>this.logger.info(s)))}endEnablePlugin(t,{pluginConfigEntry:n,resolvedModule:i,errorLogs:s}){var o;if(i){const c=(o=this.currentPluginConfigOverrides)==null?void 0:o.get(n.name);if(c){const u=n.name;n=c,n.name=u}t.enableProxy(i,n)}else rr(s,c=>this.logger.info(c)),this.logger.info(`Couldn't find ${n.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;const t=gs(this.pendingPluginEnablements.entries());this.pendingPluginEnablements=void 0,this.currentPluginEnablementPromise=this.enableRequestedPluginsWorker(t),await this.currentPluginEnablementPromise}async enableRequestedPluginsWorker(t){E.assert(this.currentPluginEnablementPromise===void 0),await Promise.all(nr(t,([n,i])=>this.enableRequestedPluginsForProjectAsync(n,i))),this.currentPluginEnablementPromise=void 0,this.sendProjectsUpdatedInBackgroundEvent()}async enableRequestedPluginsForProjectAsync(t,n){const i=await Promise.all(n);if(!t.isClosed()){for(const s of i)this.endEnablePlugin(t,s);this.delayUpdateProjectGraph(t)}}configurePlugin(t){this.forEachEnabledProject(n=>n.onPluginConfigurationChanged(t.pluginName,t.configuration)),this.currentPluginConfigOverrides=this.currentPluginConfigOverrides||new Map,this.currentPluginConfigOverrides.set(t.pluginName,t.configuration)}getPackageJsonsVisibleToFile(t,n,i){const s=this.packageJsonCache,o=i&&this.toPath(i),c=[],u=f=>{switch(s.directoryHasPackageJson(f)){case 3:return s.searchDirectoryAndAncestors(f),u(f);case-1:const g=Mn(f,"package.json");this.watchPackageJsonFile(g,this.toPath(g),n);const d=s.getInDirectory(f);d&&c.push(d)}if(o&&o===f)return!0};return jp(Un(t),u),c}getNearestAncestorDirectoryWithPackageJson(t){return jp(t,n=>{switch(this.packageJsonCache.directoryHasPackageJson(n)){case-1:return n;case 0:return;case 3:return this.host.fileExists(Mn(n,"package.json"))?n:void 0}})}watchPackageJsonFile(t,n,i){E.assert(i!==void 0);let s=(this.packageJsonFilesMap??(this.packageJsonFilesMap=new Map)).get(n);if(!s){let o=this.watchFactory.watchFile(t,(c,u)=>{switch(u){case 0:return E.fail();case 1:this.packageJsonCache.addOrUpdate(c,n),this.onPackageJsonChange(s);break;case 2:this.packageJsonCache.delete(n),this.onPackageJsonChange(s),s.projects.clear(),s.close()}},250,this.hostConfiguration.watchOptions,al.PackageJson);s={projects:new Set,close:()=>{var c;s.projects.size||!o||(o.close(),o=void 0,(c=this.packageJsonFilesMap)==null||c.delete(n),this.packageJsonCache.invalidate(n))}},this.packageJsonFilesMap.set(n,s)}s.projects.add(i),(i.packageJsonWatches??(i.packageJsonWatches=new Set)).add(s)}onPackageJsonChange(t){t.projects.forEach(n=>{var i;return(i=n.onPackageJsonChange)==null?void 0:i.call(n)})}includePackageJsonAutoImports(){switch(this.hostConfiguration.preferences.includePackageJsonAutoImports){case"on":return 1;case"off":return 0;default:return 2}}getIncompleteCompletionsCache(){return this.incompleteCompletionsCache||(this.incompleteCompletionsCache=set())}},dde.filenameEscapeRegexp=/[-/\\^$*+?.()|[\]{}]/g,PY=dde}});function mde(e){let t,n,i;const s={get(f,g,d,y){if(!(!n||i!==c(f,d,y)))return n.get(g)},set(f,g,d,y,S,T){if(o(f,d,y).set(g,u(S,T,!1)),T){for(const k of S)if(k.isInNodeModules){const w=k.path.substring(0,k.path.indexOf(zm)+zm.length-1),P=e.toPath(w);t!=null&&t.has(P)||(t||(t=new Map)).set(P,e.watchNodeModulesForPackageJsonChanges(w))}}},setModulePaths(f,g,d,y,S){const T=o(f,d,y),k=T.get(g);k?k.modulePaths=S:T.set(g,u(S,void 0,void 0))},setBlockedByPackageJsonDependencies(f,g,d,y,S){const T=o(f,d,y),k=T.get(g);k?k.isBlockedByPackageJsonDependencies=S:T.set(g,u(void 0,void 0,S))},clear(){t==null||t.forEach(dd),n==null||n.clear(),t==null||t.clear(),i=void 0},count(){return n?n.size:0}};return E.isDebugging&&Object.defineProperty(s,"__cache",{get:()=>n}),s;function o(f,g,d){const y=c(f,g,d);return n&&i!==y&&s.clear(),i=y,n||(n=new Map)}function c(f,g,d){return`${f},${g.importModuleSpecifierEnding},${g.importModuleSpecifierPreference},${d.overrideImportMode}`}function u(f,g,d){return{modulePaths:f,moduleSpecifiers:g,isBlockedByPackageJsonDependencies:d}}}var oet=Dt({"src/server/moduleSpecifierCache.ts"(){xy()}});function gde(e){const t=new Map,n=new Map;return{addOrUpdate:i,invalidate:s,delete:c=>{t.delete(c),n.set(Un(c),!0)},getInDirectory:c=>t.get(e.toPath(Mn(c,"package.json")))||void 0,directoryHasPackageJson:c=>o(e.toPath(c)),searchDirectoryAndAncestors:c=>{jp(c,u=>{const f=e.toPath(u);if(o(f)!==3)return!0;const g=Mn(u,"package.json");iN(e,g)?i(g,Mn(f,"package.json")):n.set(f,!0)})}};function i(c,u){const f=E.checkDefined(FG(c,e.host));t.set(u,f),n.delete(Un(u))}function s(c){t.delete(c),n.delete(Un(c))}function o(c){return t.has(Mn(c,"package.json"))?-1:n.has(c)?0:3}}var cet=Dt({"src/server/packageJsonCache.ts"(){xy()}});function uet(e){const t=e[0],n=e[1];return(1e9*t+n)/1e6}function JDe(e,t){if((J6(e)||dY(e))&&e.isJsOnlyProject()){const n=e.getScriptInfoForNormalizedPath(t);return n&&!n.isJavaScript()}return!1}function _et(e){return Hf(e)||!!e.emitDecoratorMetadata}function zDe(e,t,n){const i=t.getScriptInfoForNormalizedPath(e);return{start:i.positionToLineOffset(n.start),end:i.positionToLineOffset(n.start+n.length),text:em(n.messageText,` +`),code:n.code,category:mb(n),reportsUnnecessary:n.reportsUnnecessary,reportsDeprecated:n.reportsDeprecated,source:n.source,relatedInformation:nr(n.relatedInformation,DY)}}function DY(e){return e.file?{span:{start:KN(Ha(e.file,e.start)),end:KN(Ha(e.file,e.start+e.length)),file:e.file.fileName},message:em(e.messageText,` +`),category:mb(e),code:e.code}:{message:em(e.messageText,` +`),category:mb(e),code:e.code}}function KN(e){return{line:e.line+1,offset:e.character+1}}function eI(e,t){const n=e.file&&KN(Ha(e.file,e.start)),i=e.file&&KN(Ha(e.file,e.start+e.length)),s=em(e.messageText,` +`),{code:o,source:c}=e,u=mb(e),f={start:n,end:i,text:s,code:o,category:u,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,source:c,relatedInformation:nr(e.relatedInformation,DY)};return t?{...f,fileName:e.file&&e.file.fileName}:f}function fet(e,t){return e.every(n=>bc(n.span)i(o,e));return!ts(n)&&n.symLinkedProjects&&n.symLinkedProjects.forEach((o,c)=>{const u=t(c);s.push(...Zs(o,f=>i(f,u)))}),Nv(s,Vh)}function NY(e){return mB(({textSpan:t})=>t.start+100003*t.length,bG(e))}function det(e,t,n,i,s,o,c){const u=WDe(e,t,n,!0,(d,y)=>d.getLanguageService().findRenameLocations(y.fileName,y.pos,i,s,o),(d,y)=>y(xP(d)));if(ts(u))return u;const f=[],g=NY(c);return u.forEach((d,y)=>{for(const S of d)!g.has(S)&&!IY(xP(S),y)&&(f.push(S),g.add(S))}),f}function met(e,t,n){const i=e.getLanguageService().getDefinitionAtPosition(t.fileName,t.pos,!1,n),s=i&&bl(i);return s&&!s.isLocal?{fileName:s.fileName,pos:s.textSpan.start}:void 0}function get(e,t,n,i,s){var o,c;const u=WDe(e,t,n,!1,(y,S)=>(s.info(`Finding references to ${S.fileName} position ${S.pos} in project ${y.getProjectName()}`),y.getLanguageService().findReferences(S.fileName,S.pos)),(y,S)=>{S(xP(y.definition));for(const T of y.references)S(xP(T))});if(ts(u))return u;const f=u.get(t);if(((c=(o=f==null?void 0:f[0])==null?void 0:o.references[0])==null?void 0:c.isDefinition)===void 0)u.forEach(y=>{for(const S of y)for(const T of S.references)delete T.isDefinition});else{const y=NY(i);for(const T of f)for(const k of T.references)if(k.isDefinition){y.add(k);break}const S=new Set;for(;;){let T=!1;if(u.forEach((k,w)=>{if(S.has(w))return;w.getLanguageService().updateIsDefinitionOfReferencedSymbols(k,y)&&(S.add(w),T=!0)}),!T)break}u.forEach((T,k)=>{if(!S.has(k))for(const w of T)for(const P of w.references)P.isDefinition=!1})}const g=[],d=NY(i);return u.forEach((y,S)=>{for(const T of y){const k=IY(xP(T.definition),S),w=k===void 0?T.definition:{...T.definition,textSpan:Wl(k.pos,T.definition.textSpan.length),fileName:k.fileName,contextSpan:vet(T.definition,S)};let P=wn(g,F=>vG(F.definition,w,i));P||(P={definition:w,references:[]},g.push(P));for(const F of T.references)!d.has(F)&&!IY(xP(F),S)&&(d.add(F),P.references.push(F))}}),g.filter(y=>y.references.length!==0)}function bde(e,t,n){for(const i of ts(e)?e:e.projects)n(i,t);!ts(e)&&e.symLinkedProjects&&e.symLinkedProjects.forEach((i,s)=>{for(const o of i)n(o,s)})}function WDe(e,t,n,i,s,o){const c=new Map,u=bD();u.enqueue({project:t,location:n}),bde(e,n.fileName,(w,P)=>{const F={fileName:P,pos:n.pos};u.enqueue({project:w,location:F})});const f=t.projectService,g=t.getCancellationToken(),d=met(t,n,i),y=Hu(()=>t.isSourceOfProjectReferenceRedirect(d.fileName)?d:t.getLanguageService().getSourceMapper().tryGetGeneratedPosition(d)),S=Hu(()=>t.isSourceOfProjectReferenceRedirect(d.fileName)?d:t.getLanguageService().getSourceMapper().tryGetSourcePosition(d)),T=new Set;e:for(;!u.isEmpty();){for(;!u.isEmpty();){if(g.isCancellationRequested())break e;const{project:w,location:P}=u.dequeue();if(c.has(w)||VDe(w,P)||(uf(w),!w.containsFile(Jo(P.fileName))))continue;const F=k(w,P);c.set(w,F??Wc),T.add(yet(w))}d&&(f.loadAncestorProjectTree(T),f.forEachEnabledProject(w=>{if(g.isCancellationRequested()||c.has(w))return;const P=het(d,w,y,S);P&&u.enqueue({project:w,location:P})}))}if(c.size===1)return uB(c.values());return c;function k(w,P){const F=s(w,P);if(F){for(const J of F)o(J,U=>{const $=f.getOriginalLocationEnsuringConfiguredProject(w,U);if(!$)return;const j=f.getScriptInfo($.fileName);for(const R of j.containingProjects)!R.isOrphan()&&!c.has(R)&&u.enqueue({project:R,location:$});const re=f.getSymlinkedProjects(j);re&&re.forEach((R,Y)=>{for(const ue of R)!ue.isOrphan()&&!c.has(ue)&&u.enqueue({project:ue,location:{fileName:Y,pos:$.pos}})})});return F}}}function het(e,t,n,i){if(t.containsFile(Jo(e.fileName))&&!VDe(t,e))return e;const s=n();if(s&&t.containsFile(Jo(s.fileName)))return s;const o=i();return o&&t.containsFile(Jo(o.fileName))?o:void 0}function VDe(e,t){if(!t)return!1;const n=e.getLanguageService().getProgram();if(!n)return!1;const i=n.getSourceFile(t.fileName);return!!i&&i.resolvedPath!==i.path&&i.resolvedPath!==e.toPath(t.fileName)}function yet(e){return Y1(e)?e.canonicalConfigFilePath:e.getProjectName()}function xP({fileName:e,textSpan:t}){return{fileName:e,pos:t.start}}function IY(e,t){return rP(e,t.getSourceMapper(),n=>t.projectService.fileExists(n))}function UDe(e,t){return JL(e,t.getSourceMapper(),n=>t.projectService.fileExists(n))}function vet(e,t){return TG(e,t.getSourceMapper(),n=>t.projectService.fileExists(n))}function Um(e,t){return{start:t.positionToLineOffset(e.start),end:t.positionToLineOffset(bc(e))}}function Sde(e,t,n){const i=Um(e,n),s=t&&Um(t,n);return s?{...i,contextStart:s.start,contextEnd:s.end}:i}function bet(e,t){return{start:qDe(t,e.span.start),end:qDe(t,bc(e.span)),newText:e.newText}}function qDe(e,t){return fde(e)?xet(e.getLineAndCharacterOfPosition(t)):e.positionToLineOffset(t)}function Tet(e,t){const n=e.ranges.map(i=>({start:t.positionToLineOffset(i.start),end:t.positionToLineOffset(i.start+i.length)}));return e.wordPattern?{ranges:n,wordPattern:e.wordPattern}:{ranges:n}}function xet(e){return{line:e.line+1,offset:e.character+1}}function ket(e){E.assert(e.textChanges.length===1);const t=va(e.textChanges);return E.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 Tde(e,t,n,i){const s=Cet(e,t,i),{line:o,character:c}=Bk(ET(s),n);return{line:o+1,offset:c+1}}function Cet(e,t,n){for(const{fileName:i,textChanges:s}of n)if(i===t)for(let o=s.length-1;o>=0;o--){const{newText:c,span:{start:u,length:f}}=s[o];e=e.slice(0,u)+c+e.slice(u+f)}return e}function HDe(e,{fileName:t,textSpan:n,contextSpan:i,isWriteAccess:s,isDefinition:o},{disableLineTextInReferences:c}){const u=E.checkDefined(e.getScriptInfo(t)),f=Sde(n,i,u),g=c?void 0:Eet(u,f);return{file:t,...f,lineText:g,isWriteAccess:s,isDefinition:o}}function Eet(e,t){const n=e.lineToTextSpan(t.start.line-1);return e.getSnapshot().getText(n.start,bc(n)).replace(/\r|\n/g,"")}function Pet(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 xde,kde,GDe,Cde,$De,Ede,Det=wt({"src/server/session.ts"(){ky(),hS(),Kpe(),xde={isCancellationRequested:()=>!1,setRequest:()=>{},resetRequest:()=>{}},kde=fY,GDe=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){const n=this.requestId;E.assert(n===this.operationHost.getCurrentRequestId(),"immediate: incorrect request id"),this.setImmediateId(this.operationHost.getServerHost().setImmediate(()=>{this.immediateId=void 0,this.operationHost.executeWithRequestId(n,()=>this.executeAction(t))},e))}delay(e,t,n){const i=this.requestId;E.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(n))},t,e))}executeAction(e){var t,n,i,s,o,c;let u=!1;try{this.operationHost.isCancellationRequested()?(u=!0,(t=qr)==null||t.instant(qr.Phase.Session,"stepCanceled",{seq:this.requestId,early:!0})):((n=qr)==null||n.push(qr.Phase.Session,"stepAction",{seq:this.requestId}),e(this),(i=qr)==null||i.pop())}catch(f){(s=qr)==null||s.popAll(),u=!0,f instanceof Mk?(o=qr)==null||o.instant(qr.Phase.Session,"stepCanceled",{seq:this.requestId}):((c=qr)==null||c.instant(qr.Phase.Session,"stepError",{seq:this.requestId,message:f.message}),this.operationHost.logError(f,`delayed processing of request ${this.requestId}`))}(u||!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}},Cde=["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"],$De=[...Cde,"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"],Ede=class OK{constructor(t){this.changeSeq=0,this.handlers=new Map(Object.entries({status:()=>{const o={version:yf};return this.requiredResponse(o)},openExternalProject:o=>(this.projectService.openExternalProject(o.arguments,!0),this.requiredResponse(!0)),openExternalProjects:o=>(this.projectService.openExternalProjects(o.arguments.projects),this.requiredResponse(!0)),closeExternalProject:o=>(this.projectService.closeExternalProject(o.arguments.projectFileName,!0),this.requiredResponse(!0)),synchronizeProjectList:o=>{const c=this.projectService.synchronizeProjectList(o.arguments.knownProjects,o.arguments.includeProjectReferenceRedirectInfo);if(!c.some(f=>f.projectErrors&&f.projectErrors.length!==0))return this.requiredResponse(c);const u=nr(c,f=>!f.projectErrors||f.projectErrors.length===0?f:{info:f.info,changes:f.changes,files:f.files,projectErrors:this.convertToDiagnosticsWithLinePosition(f.projectErrors,void 0)});return this.requiredResponse(u)},updateOpen:o=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(o.arguments.openFiles&&j4(o.arguments.openFiles,c=>({fileName:c.file,content:c.fileContent,scriptKind:c.scriptKindName,projectRootPath:c.projectRootPath})),o.arguments.changedFiles&&j4(o.arguments.changedFiles,c=>({fileName:c.fileName,changes:J4(cB(c.textChanges),u=>{const f=E.checkDefined(this.projectService.getScriptInfo(c.fileName)),g=f.lineOffsetToPosition(u.start.line,u.start.offset),d=f.lineOffsetToPosition(u.end.line,u.end.offset);return g>=0?{span:{start:g,length:d-g},newText:u.newText}:void 0})})),o.arguments.closedFiles),this.requiredResponse(!0)),applyChangedToOpenFiles:o=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(o.arguments.openFiles,o.arguments.changedFiles&&j4(o.arguments.changedFiles,c=>({fileName:c.fileName,changes:cB(c.changes)})),o.arguments.closedFiles),this.requiredResponse(!0)),exit:()=>(this.exit(),this.notRequired()),definition:o=>this.requiredResponse(this.getDefinition(o.arguments,!0)),"definition-full":o=>this.requiredResponse(this.getDefinition(o.arguments,!1)),definitionAndBoundSpan:o=>this.requiredResponse(this.getDefinitionAndBoundSpan(o.arguments,!0)),"definitionAndBoundSpan-full":o=>this.requiredResponse(this.getDefinitionAndBoundSpan(o.arguments,!1)),findSourceDefinition:o=>this.requiredResponse(this.findSourceDefinition(o.arguments)),"emit-output":o=>this.requiredResponse(this.getEmitOutput(o.arguments)),typeDefinition:o=>this.requiredResponse(this.getTypeDefinition(o.arguments)),implementation:o=>this.requiredResponse(this.getImplementation(o.arguments,!0)),"implementation-full":o=>this.requiredResponse(this.getImplementation(o.arguments,!1)),references:o=>this.requiredResponse(this.getReferences(o.arguments,!0)),"references-full":o=>this.requiredResponse(this.getReferences(o.arguments,!1)),rename:o=>this.requiredResponse(this.getRenameLocations(o.arguments,!0)),"renameLocations-full":o=>this.requiredResponse(this.getRenameLocations(o.arguments,!1)),"rename-full":o=>this.requiredResponse(this.getRenameInfo(o.arguments)),open:o=>(this.openClientFile(Jo(o.arguments.file),o.arguments.fileContent,xY(o.arguments.scriptKindName),o.arguments.projectRootPath?Jo(o.arguments.projectRootPath):void 0),this.notRequired()),quickinfo:o=>this.requiredResponse(this.getQuickInfoWorker(o.arguments,!0)),"quickinfo-full":o=>this.requiredResponse(this.getQuickInfoWorker(o.arguments,!1)),getOutliningSpans:o=>this.requiredResponse(this.getOutliningSpans(o.arguments,!0)),outliningSpans:o=>this.requiredResponse(this.getOutliningSpans(o.arguments,!1)),todoComments:o=>this.requiredResponse(this.getTodoComments(o.arguments)),indentation:o=>this.requiredResponse(this.getIndentation(o.arguments)),nameOrDottedNameSpan:o=>this.requiredResponse(this.getNameOrDottedNameSpan(o.arguments)),breakpointStatement:o=>this.requiredResponse(this.getBreakpointStatement(o.arguments)),braceCompletion:o=>this.requiredResponse(this.isValidBraceCompletion(o.arguments)),docCommentTemplate:o=>this.requiredResponse(this.getDocCommentTemplate(o.arguments)),getSpanOfEnclosingComment:o=>this.requiredResponse(this.getSpanOfEnclosingComment(o.arguments)),fileReferences:o=>this.requiredResponse(this.getFileReferences(o.arguments,!0)),"fileReferences-full":o=>this.requiredResponse(this.getFileReferences(o.arguments,!1)),format:o=>this.requiredResponse(this.getFormattingEditsForRange(o.arguments)),formatonkey:o=>this.requiredResponse(this.getFormattingEditsAfterKeystroke(o.arguments)),"format-full":o=>this.requiredResponse(this.getFormattingEditsForDocumentFull(o.arguments)),"formatonkey-full":o=>this.requiredResponse(this.getFormattingEditsAfterKeystrokeFull(o.arguments)),"formatRange-full":o=>this.requiredResponse(this.getFormattingEditsForRangeFull(o.arguments)),completionInfo:o=>this.requiredResponse(this.getCompletions(o.arguments,"completionInfo")),completions:o=>this.requiredResponse(this.getCompletions(o.arguments,"completions")),"completions-full":o=>this.requiredResponse(this.getCompletions(o.arguments,"completions-full")),completionEntryDetails:o=>this.requiredResponse(this.getCompletionEntryDetails(o.arguments,!1)),"completionEntryDetails-full":o=>this.requiredResponse(this.getCompletionEntryDetails(o.arguments,!0)),compileOnSaveAffectedFileList:o=>this.requiredResponse(this.getCompileOnSaveAffectedFileList(o.arguments)),compileOnSaveEmitFile:o=>this.requiredResponse(this.emitFile(o.arguments)),signatureHelp:o=>this.requiredResponse(this.getSignatureHelpItems(o.arguments,!0)),"signatureHelp-full":o=>this.requiredResponse(this.getSignatureHelpItems(o.arguments,!1)),"compilerOptionsDiagnostics-full":o=>this.requiredResponse(this.getCompilerOptionsDiagnostics(o.arguments)),"encodedSyntacticClassifications-full":o=>this.requiredResponse(this.getEncodedSyntacticClassifications(o.arguments)),"encodedSemanticClassifications-full":o=>this.requiredResponse(this.getEncodedSemanticClassifications(o.arguments)),cleanup:()=>(this.cleanup(),this.requiredResponse(!0)),semanticDiagnosticsSync:o=>this.requiredResponse(this.getSemanticDiagnosticsSync(o.arguments)),syntacticDiagnosticsSync:o=>this.requiredResponse(this.getSyntacticDiagnosticsSync(o.arguments)),suggestionDiagnosticsSync:o=>this.requiredResponse(this.getSuggestionDiagnosticsSync(o.arguments)),geterr:o=>(this.errorCheck.startNew(c=>this.getDiagnostics(c,o.arguments.delay,o.arguments.files)),this.notRequired()),geterrForProject:o=>(this.errorCheck.startNew(c=>this.getDiagnosticsForProject(c,o.arguments.delay,o.arguments.file)),this.notRequired()),change:o=>(this.change(o.arguments),this.notRequired()),configure:o=>(this.projectService.setHostConfiguration(o.arguments),this.doOutput(void 0,"configure",o.seq,!0),this.notRequired()),reload:o=>(this.reload(o.arguments,o.seq),this.requiredResponse({reloadFinished:!0})),saveto:o=>{const c=o.arguments;return this.saveToTmp(c.file,c.tmpfile),this.notRequired()},close:o=>{const c=o.arguments;return this.closeClientFile(c.file),this.notRequired()},navto:o=>this.requiredResponse(this.getNavigateToItems(o.arguments,!0)),"navto-full":o=>this.requiredResponse(this.getNavigateToItems(o.arguments,!1)),brace:o=>this.requiredResponse(this.getBraceMatching(o.arguments,!0)),"brace-full":o=>this.requiredResponse(this.getBraceMatching(o.arguments,!1)),navbar:o=>this.requiredResponse(this.getNavigationBarItems(o.arguments,!0)),"navbar-full":o=>this.requiredResponse(this.getNavigationBarItems(o.arguments,!1)),navtree:o=>this.requiredResponse(this.getNavigationTree(o.arguments,!0)),"navtree-full":o=>this.requiredResponse(this.getNavigationTree(o.arguments,!1)),documentHighlights:o=>this.requiredResponse(this.getDocumentHighlights(o.arguments,!0)),"documentHighlights-full":o=>this.requiredResponse(this.getDocumentHighlights(o.arguments,!1)),compilerOptionsForInferredProjects:o=>(this.setCompilerOptionsForInferredProjects(o.arguments),this.requiredResponse(!0)),projectInfo:o=>this.requiredResponse(this.getProjectInfo(o.arguments)),reloadProjects:()=>(this.projectService.reloadProjects(),this.notRequired()),jsxClosingTag:o=>this.requiredResponse(this.getJsxClosingTag(o.arguments)),linkedEditingRange:o=>this.requiredResponse(this.getLinkedEditingRange(o.arguments)),getCodeFixes:o=>this.requiredResponse(this.getCodeFixes(o.arguments,!0)),"getCodeFixes-full":o=>this.requiredResponse(this.getCodeFixes(o.arguments,!1)),getCombinedCodeFix:o=>this.requiredResponse(this.getCombinedCodeFix(o.arguments,!0)),"getCombinedCodeFix-full":o=>this.requiredResponse(this.getCombinedCodeFix(o.arguments,!1)),applyCodeActionCommand:o=>this.requiredResponse(this.applyCodeActionCommand(o.arguments)),getSupportedCodeFixes:o=>this.requiredResponse(this.getSupportedCodeFixes(o.arguments)),getApplicableRefactors:o=>this.requiredResponse(this.getApplicableRefactors(o.arguments)),getEditsForRefactor:o=>this.requiredResponse(this.getEditsForRefactor(o.arguments,!0)),getMoveToRefactoringFileSuggestions:o=>this.requiredResponse(this.getMoveToRefactoringFileSuggestions(o.arguments)),"getEditsForRefactor-full":o=>this.requiredResponse(this.getEditsForRefactor(o.arguments,!1)),organizeImports:o=>this.requiredResponse(this.organizeImports(o.arguments,!0)),"organizeImports-full":o=>this.requiredResponse(this.organizeImports(o.arguments,!1)),getEditsForFileRename:o=>this.requiredResponse(this.getEditsForFileRename(o.arguments,!0)),"getEditsForFileRename-full":o=>this.requiredResponse(this.getEditsForFileRename(o.arguments,!1)),configurePlugin:o=>(this.configurePlugin(o.arguments),this.doOutput(void 0,"configurePlugin",o.seq,!0),this.notRequired()),selectionRange:o=>this.requiredResponse(this.getSmartSelectionRange(o.arguments,!0)),"selectionRange-full":o=>this.requiredResponse(this.getSmartSelectionRange(o.arguments,!1)),prepareCallHierarchy:o=>this.requiredResponse(this.prepareCallHierarchy(o.arguments)),provideCallHierarchyIncomingCalls:o=>this.requiredResponse(this.provideCallHierarchyIncomingCalls(o.arguments)),provideCallHierarchyOutgoingCalls:o=>this.requiredResponse(this.provideCallHierarchyOutgoingCalls(o.arguments)),toggleLineComment:o=>this.requiredResponse(this.toggleLineComment(o.arguments,!0)),"toggleLineComment-full":o=>this.requiredResponse(this.toggleLineComment(o.arguments,!1)),toggleMultilineComment:o=>this.requiredResponse(this.toggleMultilineComment(o.arguments,!0)),"toggleMultilineComment-full":o=>this.requiredResponse(this.toggleMultilineComment(o.arguments,!1)),commentSelection:o=>this.requiredResponse(this.commentSelection(o.arguments,!0)),"commentSelection-full":o=>this.requiredResponse(this.commentSelection(o.arguments,!1)),uncommentSelection:o=>this.requiredResponse(this.uncommentSelection(o.arguments,!0)),"uncommentSelection-full":o=>this.requiredResponse(this.uncommentSelection(o.arguments,!1)),provideInlayHints:o=>this.requiredResponse(this.provideInlayHints(o.arguments))})),this.host=t.host,this.cancellationToken=t.cancellationToken,this.typingsInstaller=t.typingsInstaller||pR,this.byteLength=t.byteLength,this.hrtime=t.hrtime,this.logger=t.logger,this.canUseEvents=t.canUseEvents,this.suppressDiagnosticEvents=t.suppressDiagnosticEvents,this.noGetErrOnBackgroundUpdate=t.noGetErrOnBackgroundUpdate;const{throttleWaitMilliseconds:n}=t;this.eventHandler=this.canUseEvents?t.eventHandler||(o=>this.defaultEventHandler(o)):void 0;const i={executeWithRequestId:(o,c)=>this.executeWithRequestId(o,c),getCurrentRequestId:()=>this.currentRequestId,getServerHost:()=>this.host,logError:(o,c)=>this.logError(o,c),sendRequestCompletedEvent:o=>this.sendRequestCompletedEvent(o),isCancellationRequested:()=>this.cancellationToken.isCancellationRequested()};this.errorCheck=new GDe(i);const s={host:this.host,logger:this.logger,cancellationToken:this.cancellationToken,useSingleInferredProject:t.useSingleInferredProject,useInferredProjectPerProjectRoot:t.useInferredProjectPerProjectRoot,typingsInstaller:this.typingsInstaller,throttleWaitMilliseconds:n,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 wY(s),this.projectService.setPerformanceEventHandler(this.performanceEventHandler.bind(this)),this.gcTimer=new _Y(this.host,7e3,this.logger),this.projectService.serverMode){case 0:break;case 1:Cde.forEach(o=>this.handlers.set(o,c=>{throw new Error(`Request: ${c.command} not allowed in LanguageServiceMode.PartialSemantic`)}));break;case 2:$De.forEach(o=>this.handlers.set(o,c=>{throw new Error(`Request: ${c.command} not allowed in LanguageServiceMode.Syntactic`)}));break;default:E.assertNever(this.projectService.serverMode)}}sendRequestCompletedEvent(t){this.event({request_seq:t},"requestCompleted")}addPerformanceData(t,n){this.performanceData||(this.performanceData={}),this.performanceData[t]=(this.performanceData[t]??0)+n}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 KN:this.projectsUpdatedInBackgroundEvent(t.data.openFiles);break;case yR:this.event({projectName:t.data.project.getProjectName(),reason:t.data.reason},t.eventName);break;case vR:this.event({projectName:t.data.project.getProjectName()},t.eventName);break;case bR:case kR:case CR:case ER:this.event(t.data,t.eventName);break;case SR:this.event({triggerFile:t.data.triggerFile,configFile:t.data.configFileName,diagnostics:nr(t.data.diagnostics,n=>tI(n,!0))},t.eventName);break;case TR:{this.event({projectName:t.data.project.getProjectName(),languageServiceEnabled:t.data.languageServiceEnabled},t.eventName);break}case xR:{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(n=>this.updateErrorCheck(n,t,100,!0))),this.event({openFiles:t},KN))}logError(t,n){this.logErrorWorker(t,n)}logErrorWorker(t,n,i){let s="Exception on executing command "+n;if(t.message&&(s+=`: -`+X3(t.message),t.stack&&(s+=` -`+X3(t.stack))),this.logger.hasLevel(3)){if(i)try{const{file:o,project:c}=this.getFileAndProject(i),u=c.getScriptInfoForNormalizedPath(o);if(u){const f=y6(u.getSnapshot());s+=` +${o}${i}`}function yde(e,t){return{seq:0,type:"event",event:e,body:t}}function pet(e,t,n,i){const s=j4(ts(n)?n:n.projects,o=>i(o,e));return!ts(n)&&n.symLinkedProjects&&n.symLinkedProjects.forEach((o,c)=>{const u=t(c);s.push(...Zs(o,f=>i(f,u)))}),Nv(s,Vh)}function wY(e){return pB(({textSpan:t})=>t.start+100003*t.length,yG(e))}function det(e,t,n,i,s,o,c){const u=WDe(e,t,n,!0,(d,y)=>d.getLanguageService().findRenameLocations(y.fileName,y.pos,i,s,o),(d,y)=>y(TP(d)));if(ts(u))return u;const f=[],g=wY(c);return u.forEach((d,y)=>{for(const S of d)!g.has(S)&&!AY(TP(S),y)&&(f.push(S),g.add(S))}),f}function met(e,t,n){const i=e.getLanguageService().getDefinitionAtPosition(t.fileName,t.pos,!1,n),s=i&&bl(i);return s&&!s.isLocal?{fileName:s.fileName,pos:s.textSpan.start}:void 0}function get(e,t,n,i,s){var o,c;const u=WDe(e,t,n,!1,(y,S)=>(s.info(`Finding references to ${S.fileName} position ${S.pos} in project ${y.getProjectName()}`),y.getLanguageService().findReferences(S.fileName,S.pos)),(y,S)=>{S(TP(y.definition));for(const T of y.references)S(TP(T))});if(ts(u))return u;const f=u.get(t);if(((c=(o=f==null?void 0:f[0])==null?void 0:o.references[0])==null?void 0:c.isDefinition)===void 0)u.forEach(y=>{for(const S of y)for(const T of S.references)delete T.isDefinition});else{const y=wY(i);for(const T of f)for(const k of T.references)if(k.isDefinition){y.add(k);break}const S=new Set;for(;;){let T=!1;if(u.forEach((k,w)=>{if(S.has(w))return;w.getLanguageService().updateIsDefinitionOfReferencedSymbols(k,y)&&(S.add(w),T=!0)}),!T)break}u.forEach((T,k)=>{if(!S.has(k))for(const w of T)for(const P of w.references)P.isDefinition=!1})}const g=[],d=wY(i);return u.forEach((y,S)=>{for(const T of y){const k=AY(TP(T.definition),S),w=k===void 0?T.definition:{...T.definition,textSpan:Wl(k.pos,T.definition.textSpan.length),fileName:k.fileName,contextSpan:vet(T.definition,S)};let P=wn(g,F=>hG(F.definition,w,i));P||(P={definition:w,references:[]},g.push(P));for(const F of T.references)!d.has(F)&&!AY(TP(F),S)&&(d.add(F),P.references.push(F))}}),g.filter(y=>y.references.length!==0)}function vde(e,t,n){for(const i of ts(e)?e:e.projects)n(i,t);!ts(e)&&e.symLinkedProjects&&e.symLinkedProjects.forEach((i,s)=>{for(const o of i)n(o,s)})}function WDe(e,t,n,i,s,o){const c=new Map,u=vD();u.enqueue({project:t,location:n}),vde(e,n.fileName,(w,P)=>{const F={fileName:P,pos:n.pos};u.enqueue({project:w,location:F})});const f=t.projectService,g=t.getCancellationToken(),d=met(t,n,i),y=Hu(()=>t.isSourceOfProjectReferenceRedirect(d.fileName)?d:t.getLanguageService().getSourceMapper().tryGetGeneratedPosition(d)),S=Hu(()=>t.isSourceOfProjectReferenceRedirect(d.fileName)?d:t.getLanguageService().getSourceMapper().tryGetSourcePosition(d)),T=new Set;e:for(;!u.isEmpty();){for(;!u.isEmpty();){if(g.isCancellationRequested())break e;const{project:w,location:P}=u.dequeue();if(c.has(w)||VDe(w,P)||(uf(w),!w.containsFile(zo(P.fileName))))continue;const F=k(w,P);c.set(w,F??Wc),T.add(yet(w))}d&&(f.loadAncestorProjectTree(T),f.forEachEnabledProject(w=>{if(g.isCancellationRequested()||c.has(w))return;const P=het(d,w,y,S);P&&u.enqueue({project:w,location:P})}))}if(c.size===1)return cB(c.values());return c;function k(w,P){const F=s(w,P);if(F){for(const J of F)o(J,U=>{const $=f.getOriginalLocationEnsuringConfiguredProject(w,U);if(!$)return;const j=f.getScriptInfo($.fileName);for(const R of j.containingProjects)!R.isOrphan()&&!c.has(R)&&u.enqueue({project:R,location:$});const re=f.getSymlinkedProjects(j);re&&re.forEach((R,Y)=>{for(const ue of R)!ue.isOrphan()&&!c.has(ue)&&u.enqueue({project:ue,location:{fileName:Y,pos:$.pos}})})});return F}}}function het(e,t,n,i){if(t.containsFile(zo(e.fileName))&&!VDe(t,e))return e;const s=n();if(s&&t.containsFile(zo(s.fileName)))return s;const o=i();return o&&t.containsFile(zo(o.fileName))?o:void 0}function VDe(e,t){if(!t)return!1;const n=e.getLanguageService().getProgram();if(!n)return!1;const i=n.getSourceFile(t.fileName);return!!i&&i.resolvedPath!==i.path&&i.resolvedPath!==e.toPath(t.fileName)}function yet(e){return Y1(e)?e.canonicalConfigFilePath:e.getProjectName()}function TP({fileName:e,textSpan:t}){return{fileName:e,pos:t.start}}function AY(e,t){return tP(e,t.getSourceMapper(),n=>t.projectService.fileExists(n))}function UDe(e,t){return RL(e,t.getSourceMapper(),n=>t.projectService.fileExists(n))}function vet(e,t){return bG(e,t.getSourceMapper(),n=>t.projectService.fileExists(n))}function Um(e,t){return{start:t.positionToLineOffset(e.start),end:t.positionToLineOffset(bc(e))}}function bde(e,t,n){const i=Um(e,n),s=t&&Um(t,n);return s?{...i,contextStart:s.start,contextEnd:s.end}:i}function bet(e,t){return{start:qDe(t,e.span.start),end:qDe(t,bc(e.span)),newText:e.newText}}function qDe(e,t){return _de(e)?xet(e.getLineAndCharacterOfPosition(t)):e.positionToLineOffset(t)}function Tet(e,t){const n=e.ranges.map(i=>({start:t.positionToLineOffset(i.start),end:t.positionToLineOffset(i.start+i.length)}));return e.wordPattern?{ranges:n,wordPattern:e.wordPattern}:{ranges:n}}function xet(e){return{line:e.line+1,offset:e.character+1}}function ket(e){E.assert(e.textChanges.length===1);const t=va(e.textChanges);return E.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 Sde(e,t,n,i){const s=Cet(e,t,i),{line:o,character:c}=Bk(CT(s),n);return{line:o+1,offset:c+1}}function Cet(e,t,n){for(const{fileName:i,textChanges:s}of n)if(i===t)for(let o=s.length-1;o>=0;o--){const{newText:c,span:{start:u,length:f}}=s[o];e=e.slice(0,u)+c+e.slice(u+f)}return e}function HDe(e,{fileName:t,textSpan:n,contextSpan:i,isWriteAccess:s,isDefinition:o},{disableLineTextInReferences:c}){const u=E.checkDefined(e.getScriptInfo(t)),f=bde(n,i,u),g=c?void 0:Eet(u,f);return{file:t,...f,lineText:g,isWriteAccess:s,isDefinition:o}}function Eet(e,t){const n=e.lineToTextSpan(t.start.line-1);return e.getSnapshot().getText(n.start,bc(n)).replace(/\r|\n/g,"")}function Pet(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 Tde,xde,GDe,kde,$De,Cde,Det=Dt({"src/server/session.ts"(){xy(),gS(),Zpe(),Tde={isCancellationRequested:()=>!1,setRequest:()=>{},resetRequest:()=>{}},xde=uY,GDe=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){const n=this.requestId;E.assert(n===this.operationHost.getCurrentRequestId(),"immediate: incorrect request id"),this.setImmediateId(this.operationHost.getServerHost().setImmediate(()=>{this.immediateId=void 0,this.operationHost.executeWithRequestId(n,()=>this.executeAction(t))},e))}delay(e,t,n){const i=this.requestId;E.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(n))},t,e))}executeAction(e){var t,n,i,s,o,c;let u=!1;try{this.operationHost.isCancellationRequested()?(u=!0,(t=qr)==null||t.instant(qr.Phase.Session,"stepCanceled",{seq:this.requestId,early:!0})):((n=qr)==null||n.push(qr.Phase.Session,"stepAction",{seq:this.requestId}),e(this),(i=qr)==null||i.pop())}catch(f){(s=qr)==null||s.popAll(),u=!0,f instanceof Mk?(o=qr)==null||o.instant(qr.Phase.Session,"stepCanceled",{seq:this.requestId}):((c=qr)==null||c.instant(qr.Phase.Session,"stepError",{seq:this.requestId,message:f.message}),this.operationHost.logError(f,`delayed processing of request ${this.requestId}`))}(u||!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}},kde=["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"],$De=[...kde,"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"],Cde=class NK{constructor(t){this.changeSeq=0,this.handlers=new Map(Object.entries({status:()=>{const o={version:ld};return this.requiredResponse(o)},openExternalProject:o=>(this.projectService.openExternalProject(o.arguments,!0),this.requiredResponse(!0)),openExternalProjects:o=>(this.projectService.openExternalProjects(o.arguments.projects),this.requiredResponse(!0)),closeExternalProject:o=>(this.projectService.closeExternalProject(o.arguments.projectFileName,!0),this.requiredResponse(!0)),synchronizeProjectList:o=>{const c=this.projectService.synchronizeProjectList(o.arguments.knownProjects,o.arguments.includeProjectReferenceRedirectInfo);if(!c.some(f=>f.projectErrors&&f.projectErrors.length!==0))return this.requiredResponse(c);const u=nr(c,f=>!f.projectErrors||f.projectErrors.length===0?f:{info:f.info,changes:f.changes,files:f.files,projectErrors:this.convertToDiagnosticsWithLinePosition(f.projectErrors,void 0)});return this.requiredResponse(u)},updateOpen:o=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(o.arguments.openFiles&&R4(o.arguments.openFiles,c=>({fileName:c.file,content:c.fileContent,scriptKind:c.scriptKindName,projectRootPath:c.projectRootPath})),o.arguments.changedFiles&&R4(o.arguments.changedFiles,c=>({fileName:c.fileName,changes:B4(aB(c.textChanges),u=>{const f=E.checkDefined(this.projectService.getScriptInfo(c.fileName)),g=f.lineOffsetToPosition(u.start.line,u.start.offset),d=f.lineOffsetToPosition(u.end.line,u.end.offset);return g>=0?{span:{start:g,length:d-g},newText:u.newText}:void 0})})),o.arguments.closedFiles),this.requiredResponse(!0)),applyChangedToOpenFiles:o=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(o.arguments.openFiles,o.arguments.changedFiles&&R4(o.arguments.changedFiles,c=>({fileName:c.fileName,changes:aB(c.changes)})),o.arguments.closedFiles),this.requiredResponse(!0)),exit:()=>(this.exit(),this.notRequired()),definition:o=>this.requiredResponse(this.getDefinition(o.arguments,!0)),"definition-full":o=>this.requiredResponse(this.getDefinition(o.arguments,!1)),definitionAndBoundSpan:o=>this.requiredResponse(this.getDefinitionAndBoundSpan(o.arguments,!0)),"definitionAndBoundSpan-full":o=>this.requiredResponse(this.getDefinitionAndBoundSpan(o.arguments,!1)),findSourceDefinition:o=>this.requiredResponse(this.findSourceDefinition(o.arguments)),"emit-output":o=>this.requiredResponse(this.getEmitOutput(o.arguments)),typeDefinition:o=>this.requiredResponse(this.getTypeDefinition(o.arguments)),implementation:o=>this.requiredResponse(this.getImplementation(o.arguments,!0)),"implementation-full":o=>this.requiredResponse(this.getImplementation(o.arguments,!1)),references:o=>this.requiredResponse(this.getReferences(o.arguments,!0)),"references-full":o=>this.requiredResponse(this.getReferences(o.arguments,!1)),rename:o=>this.requiredResponse(this.getRenameLocations(o.arguments,!0)),"renameLocations-full":o=>this.requiredResponse(this.getRenameLocations(o.arguments,!1)),"rename-full":o=>this.requiredResponse(this.getRenameInfo(o.arguments)),open:o=>(this.openClientFile(zo(o.arguments.file),o.arguments.fileContent,SY(o.arguments.scriptKindName),o.arguments.projectRootPath?zo(o.arguments.projectRootPath):void 0),this.notRequired()),quickinfo:o=>this.requiredResponse(this.getQuickInfoWorker(o.arguments,!0)),"quickinfo-full":o=>this.requiredResponse(this.getQuickInfoWorker(o.arguments,!1)),getOutliningSpans:o=>this.requiredResponse(this.getOutliningSpans(o.arguments,!0)),outliningSpans:o=>this.requiredResponse(this.getOutliningSpans(o.arguments,!1)),todoComments:o=>this.requiredResponse(this.getTodoComments(o.arguments)),indentation:o=>this.requiredResponse(this.getIndentation(o.arguments)),nameOrDottedNameSpan:o=>this.requiredResponse(this.getNameOrDottedNameSpan(o.arguments)),breakpointStatement:o=>this.requiredResponse(this.getBreakpointStatement(o.arguments)),braceCompletion:o=>this.requiredResponse(this.isValidBraceCompletion(o.arguments)),docCommentTemplate:o=>this.requiredResponse(this.getDocCommentTemplate(o.arguments)),getSpanOfEnclosingComment:o=>this.requiredResponse(this.getSpanOfEnclosingComment(o.arguments)),fileReferences:o=>this.requiredResponse(this.getFileReferences(o.arguments,!0)),"fileReferences-full":o=>this.requiredResponse(this.getFileReferences(o.arguments,!1)),format:o=>this.requiredResponse(this.getFormattingEditsForRange(o.arguments)),formatonkey:o=>this.requiredResponse(this.getFormattingEditsAfterKeystroke(o.arguments)),"format-full":o=>this.requiredResponse(this.getFormattingEditsForDocumentFull(o.arguments)),"formatonkey-full":o=>this.requiredResponse(this.getFormattingEditsAfterKeystrokeFull(o.arguments)),"formatRange-full":o=>this.requiredResponse(this.getFormattingEditsForRangeFull(o.arguments)),completionInfo:o=>this.requiredResponse(this.getCompletions(o.arguments,"completionInfo")),completions:o=>this.requiredResponse(this.getCompletions(o.arguments,"completions")),"completions-full":o=>this.requiredResponse(this.getCompletions(o.arguments,"completions-full")),completionEntryDetails:o=>this.requiredResponse(this.getCompletionEntryDetails(o.arguments,!1)),"completionEntryDetails-full":o=>this.requiredResponse(this.getCompletionEntryDetails(o.arguments,!0)),compileOnSaveAffectedFileList:o=>this.requiredResponse(this.getCompileOnSaveAffectedFileList(o.arguments)),compileOnSaveEmitFile:o=>this.requiredResponse(this.emitFile(o.arguments)),signatureHelp:o=>this.requiredResponse(this.getSignatureHelpItems(o.arguments,!0)),"signatureHelp-full":o=>this.requiredResponse(this.getSignatureHelpItems(o.arguments,!1)),"compilerOptionsDiagnostics-full":o=>this.requiredResponse(this.getCompilerOptionsDiagnostics(o.arguments)),"encodedSyntacticClassifications-full":o=>this.requiredResponse(this.getEncodedSyntacticClassifications(o.arguments)),"encodedSemanticClassifications-full":o=>this.requiredResponse(this.getEncodedSemanticClassifications(o.arguments)),cleanup:()=>(this.cleanup(),this.requiredResponse(!0)),semanticDiagnosticsSync:o=>this.requiredResponse(this.getSemanticDiagnosticsSync(o.arguments)),syntacticDiagnosticsSync:o=>this.requiredResponse(this.getSyntacticDiagnosticsSync(o.arguments)),suggestionDiagnosticsSync:o=>this.requiredResponse(this.getSuggestionDiagnosticsSync(o.arguments)),geterr:o=>(this.errorCheck.startNew(c=>this.getDiagnostics(c,o.arguments.delay,o.arguments.files)),this.notRequired()),geterrForProject:o=>(this.errorCheck.startNew(c=>this.getDiagnosticsForProject(c,o.arguments.delay,o.arguments.file)),this.notRequired()),change:o=>(this.change(o.arguments),this.notRequired()),configure:o=>(this.projectService.setHostConfiguration(o.arguments),this.doOutput(void 0,"configure",o.seq,!0),this.notRequired()),reload:o=>(this.reload(o.arguments,o.seq),this.requiredResponse({reloadFinished:!0})),saveto:o=>{const c=o.arguments;return this.saveToTmp(c.file,c.tmpfile),this.notRequired()},close:o=>{const c=o.arguments;return this.closeClientFile(c.file),this.notRequired()},navto:o=>this.requiredResponse(this.getNavigateToItems(o.arguments,!0)),"navto-full":o=>this.requiredResponse(this.getNavigateToItems(o.arguments,!1)),brace:o=>this.requiredResponse(this.getBraceMatching(o.arguments,!0)),"brace-full":o=>this.requiredResponse(this.getBraceMatching(o.arguments,!1)),navbar:o=>this.requiredResponse(this.getNavigationBarItems(o.arguments,!0)),"navbar-full":o=>this.requiredResponse(this.getNavigationBarItems(o.arguments,!1)),navtree:o=>this.requiredResponse(this.getNavigationTree(o.arguments,!0)),"navtree-full":o=>this.requiredResponse(this.getNavigationTree(o.arguments,!1)),documentHighlights:o=>this.requiredResponse(this.getDocumentHighlights(o.arguments,!0)),"documentHighlights-full":o=>this.requiredResponse(this.getDocumentHighlights(o.arguments,!1)),compilerOptionsForInferredProjects:o=>(this.setCompilerOptionsForInferredProjects(o.arguments),this.requiredResponse(!0)),projectInfo:o=>this.requiredResponse(this.getProjectInfo(o.arguments)),reloadProjects:()=>(this.projectService.reloadProjects(),this.notRequired()),jsxClosingTag:o=>this.requiredResponse(this.getJsxClosingTag(o.arguments)),linkedEditingRange:o=>this.requiredResponse(this.getLinkedEditingRange(o.arguments)),getCodeFixes:o=>this.requiredResponse(this.getCodeFixes(o.arguments,!0)),"getCodeFixes-full":o=>this.requiredResponse(this.getCodeFixes(o.arguments,!1)),getCombinedCodeFix:o=>this.requiredResponse(this.getCombinedCodeFix(o.arguments,!0)),"getCombinedCodeFix-full":o=>this.requiredResponse(this.getCombinedCodeFix(o.arguments,!1)),applyCodeActionCommand:o=>this.requiredResponse(this.applyCodeActionCommand(o.arguments)),getSupportedCodeFixes:o=>this.requiredResponse(this.getSupportedCodeFixes(o.arguments)),getApplicableRefactors:o=>this.requiredResponse(this.getApplicableRefactors(o.arguments)),getEditsForRefactor:o=>this.requiredResponse(this.getEditsForRefactor(o.arguments,!0)),getMoveToRefactoringFileSuggestions:o=>this.requiredResponse(this.getMoveToRefactoringFileSuggestions(o.arguments)),"getEditsForRefactor-full":o=>this.requiredResponse(this.getEditsForRefactor(o.arguments,!1)),organizeImports:o=>this.requiredResponse(this.organizeImports(o.arguments,!0)),"organizeImports-full":o=>this.requiredResponse(this.organizeImports(o.arguments,!1)),getEditsForFileRename:o=>this.requiredResponse(this.getEditsForFileRename(o.arguments,!0)),"getEditsForFileRename-full":o=>this.requiredResponse(this.getEditsForFileRename(o.arguments,!1)),configurePlugin:o=>(this.configurePlugin(o.arguments),this.doOutput(void 0,"configurePlugin",o.seq,!0),this.notRequired()),selectionRange:o=>this.requiredResponse(this.getSmartSelectionRange(o.arguments,!0)),"selectionRange-full":o=>this.requiredResponse(this.getSmartSelectionRange(o.arguments,!1)),prepareCallHierarchy:o=>this.requiredResponse(this.prepareCallHierarchy(o.arguments)),provideCallHierarchyIncomingCalls:o=>this.requiredResponse(this.provideCallHierarchyIncomingCalls(o.arguments)),provideCallHierarchyOutgoingCalls:o=>this.requiredResponse(this.provideCallHierarchyOutgoingCalls(o.arguments)),toggleLineComment:o=>this.requiredResponse(this.toggleLineComment(o.arguments,!0)),"toggleLineComment-full":o=>this.requiredResponse(this.toggleLineComment(o.arguments,!1)),toggleMultilineComment:o=>this.requiredResponse(this.toggleMultilineComment(o.arguments,!0)),"toggleMultilineComment-full":o=>this.requiredResponse(this.toggleMultilineComment(o.arguments,!1)),commentSelection:o=>this.requiredResponse(this.commentSelection(o.arguments,!0)),"commentSelection-full":o=>this.requiredResponse(this.commentSelection(o.arguments,!1)),uncommentSelection:o=>this.requiredResponse(this.uncommentSelection(o.arguments,!0)),"uncommentSelection-full":o=>this.requiredResponse(this.uncommentSelection(o.arguments,!1)),provideInlayHints:o=>this.requiredResponse(this.provideInlayHints(o.arguments))})),this.host=t.host,this.cancellationToken=t.cancellationToken,this.typingsInstaller=t.typingsInstaller||uR,this.byteLength=t.byteLength,this.hrtime=t.hrtime,this.logger=t.logger,this.canUseEvents=t.canUseEvents,this.suppressDiagnosticEvents=t.suppressDiagnosticEvents,this.noGetErrOnBackgroundUpdate=t.noGetErrOnBackgroundUpdate;const{throttleWaitMilliseconds:n}=t;this.eventHandler=this.canUseEvents?t.eventHandler||(o=>this.defaultEventHandler(o)):void 0;const i={executeWithRequestId:(o,c)=>this.executeWithRequestId(o,c),getCurrentRequestId:()=>this.currentRequestId,getServerHost:()=>this.host,logError:(o,c)=>this.logError(o,c),sendRequestCompletedEvent:o=>this.sendRequestCompletedEvent(o),isCancellationRequested:()=>this.cancellationToken.isCancellationRequested()};this.errorCheck=new GDe(i);const s={host:this.host,logger:this.logger,cancellationToken:this.cancellationToken,useSingleInferredProject:t.useSingleInferredProject,useInferredProjectPerProjectRoot:t.useInferredProjectPerProjectRoot,typingsInstaller:this.typingsInstaller,throttleWaitMilliseconds:n,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 PY(s),this.projectService.setPerformanceEventHandler(this.performanceEventHandler.bind(this)),this.gcTimer=new lY(this.host,7e3,this.logger),this.projectService.serverMode){case 0:break;case 1:kde.forEach(o=>this.handlers.set(o,c=>{throw new Error(`Request: ${c.command} not allowed in LanguageServiceMode.PartialSemantic`)}));break;case 2:$De.forEach(o=>this.handlers.set(o,c=>{throw new Error(`Request: ${c.command} not allowed in LanguageServiceMode.Syntactic`)}));break;default:E.assertNever(this.projectService.serverMode)}}sendRequestCompletedEvent(t){this.event({request_seq:t},"requestCompleted")}addPerformanceData(t,n){this.performanceData||(this.performanceData={}),this.performanceData[t]=(this.performanceData[t]??0)+n}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 ZN:this.projectsUpdatedInBackgroundEvent(t.data.openFiles);break;case mR:this.event({projectName:t.data.project.getProjectName(),reason:t.data.reason},t.eventName);break;case gR:this.event({projectName:t.data.project.getProjectName()},t.eventName);break;case hR:case SR:case TR:case xR:this.event(t.data,t.eventName);break;case yR:this.event({triggerFile:t.data.triggerFile,configFile:t.data.configFileName,diagnostics:nr(t.data.diagnostics,n=>eI(n,!0))},t.eventName);break;case vR:{this.event({projectName:t.data.project.getProjectName(),languageServiceEnabled:t.data.languageServiceEnabled},t.eventName);break}case bR:{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(n=>this.updateErrorCheck(n,t,100,!0))),this.event({openFiles:t},ZN))}logError(t,n){this.logErrorWorker(t,n)}logErrorWorker(t,n,i){let s="Exception on executing command "+n;if(t.message&&(s+=`: +`+$3(t.message),t.stack&&(s+=` +`+$3(t.stack))),this.logger.hasLevel(3)){if(i)try{const{file:o,project:c}=this.getFileAndProject(i),u=c.getScriptInfoForNormalizedPath(o);if(u){const f=y6(u.getSnapshot());s+=` -File text of ${i.file}:${X3(f)} +File text of ${i.file}:${$3(f)} `}}catch{}if(t.ProgramFiles){s+=` Program files: ${JSON.stringify(t.ProgramFiles)} @@ -390,10 +390,10 @@ Program files: ${JSON.stringify(t.ProgramFiles)} Projects:: `;let o=0;const c=u=>{s+=` -Project '${u.projectName}' (${TP[u.projectKind]}) ${o} +Project '${u.projectName}' (${SP[u.projectKind]}) ${o} `,s+=u.filesToString(!0),s+=` ----------------------------------------------- -`,o++};this.projectService.externalProjects.forEach(c),this.projectService.configuredProjects.forEach(c),this.projectService.inferredProjects.forEach(c)}}this.logger.msg(s,"Err")}send(t){if(t.type==="event"&&!this.canUseEvents){this.logger.hasLevel(3)&&this.logger.info(`Session does not support events: ignored event: ${q1(t)}`);return}this.writeMessage(t)}writeMessage(t){var n;const i=yde(t,this.logger,this.byteLength,this.host.newLine);(n=wu)==null||n.logEvent(`Response message size: ${i.length}`),this.host.write(i)}event(t,n){this.send(vde(n,t))}doOutput(t,n,i,s,o){const c={seq:0,type:"response",command:n,request_seq:i,success:s,performanceData:this.performanceData};if(s){let u;if(ts(t))c.body=t,u=t.metadata,delete t.metadata;else if(typeof t=="object")if(t.metadata){const{metadata:f,...g}=t;c.body=g,u=f}else c.body=t;else c.body=t;u&&(c.metadata=u)}else E.assert(t===void 0);o&&(c.message=o),this.send(c)}semanticCheck(t,n){var i,s;(i=qr)==null||i.push(qr.Phase.Session,"semanticCheck",{file:t,configFilePath:n.canonicalConfigFilePath});const o=JDe(n,t)?Wc:n.getLanguageService().getSemanticDiagnostics(t).filter(c=>!!c.file);this.sendDiagnosticsEvent(t,n,o,"semanticDiag"),(s=qr)==null||s.pop()}syntacticCheck(t,n){var i,s;(i=qr)==null||i.push(qr.Phase.Session,"syntacticCheck",{file:t,configFilePath:n.canonicalConfigFilePath}),this.sendDiagnosticsEvent(t,n,n.getLanguageService().getSyntacticDiagnostics(t),"syntaxDiag"),(s=qr)==null||s.pop()}suggestionCheck(t,n){var i,s;(i=qr)==null||i.push(qr.Phase.Session,"suggestionCheck",{file:t,configFilePath:n.canonicalConfigFilePath}),this.sendDiagnosticsEvent(t,n,n.getLanguageService().getSuggestionDiagnostics(t),"suggestionDiag"),(s=qr)==null||s.pop()}sendDiagnosticsEvent(t,n,i,s){try{this.event({file:t,diagnostics:i.map(o=>zDe(t,n,o))},s)}catch(o){this.logError(o,s)}}updateErrorCheck(t,n,i,s=!0){E.assert(!this.suppressDiagnosticEvents);const o=this.changeSeq,c=Math.min(i,200);let u=0;const f=()=>{u++,n.length>u&&t.delay("checkOne",c,g)},g=()=>{if(this.changeSeq!==o)return;let d=n[u];if(ls(d)&&(d=this.toPendingErrorCheck(d),!d)){f();return}const{fileName:y,project:S}=d;if(uf(S),!!S.containsFile(y,s)&&(this.syntacticCheck(y,S),this.changeSeq===o)){if(S.projectService.serverMode!==0){f();return}t.immediate("semanticCheck",()=>{if(this.semanticCheck(y,S),this.changeSeq===o){if(this.getPreferences(y).disableSuggestions){f();return}t.immediate("suggestionCheck",()=>{this.suggestionCheck(y,S),f()})}})}};n.length>u&&this.changeSeq===o&&t.delay("checkOne",i,g)}cleanProjects(t,n){if(n){this.logger.info(`cleaning ${t}`);for(const i of n)i.getLanguageService(!1).cleanupSemanticCache(),i.cleanupProgram()}}cleanup(){this.cleanProjects("inferred projects",this.projectService.inferredProjects),this.cleanProjects("configured projects",gs(this.projectService.configuredProjects.values())),this.cleanProjects("external projects",this.projectService.externalProjects),this.host.gc&&(this.logger.info("host.gc()"),this.host.gc())}getEncodedSyntacticClassifications(t){const{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t);return i.getEncodedSyntacticClassifications(n,t)}getEncodedSemanticClassifications(t){const{file:n,project:i}=this.getFileAndProject(t),s=t.format==="2020"?"2020":"original";return i.getLanguageService().getEncodedSemanticClassifications(n,t,s)}getProject(t){return t===void 0?void 0:this.projectService.findProject(t)}getConfigFileAndProject(t){const n=this.getProject(t.projectFileName),i=Jo(t.file);return{configFile:n&&n.hasConfigFile(i)?i:void 0,project:n}}getConfigFileDiagnostics(t,n,i){const s=n.getAllProjectErrors(),o=n.getLanguageService().getCompilerOptionsDiagnostics(),c=An(es(s,o),u=>!!u.file&&u.file.fileName===t);return i?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(c):nr(c,u=>tI(u,!1))}convertToDiagnosticsWithLinePositionFromDiagnosticFile(t){return t.map(n=>({message:tm(n.messageText,this.host.newLine),start:n.start,length:n.length,category:gb(n),code:n.code,source:n.source,startLocation:n.file&&eI(Ha(n.file,n.start)),endLocation:n.file&&eI(Ha(n.file,n.start+n.length)),reportsUnnecessary:n.reportsUnnecessary,reportsDeprecated:n.reportsDeprecated,relatedInformation:nr(n.relatedInformation,AY)}))}getCompilerOptionsDiagnostics(t){const n=this.getProject(t.projectFileName);return this.convertToDiagnosticsWithLinePosition(An(n.getLanguageService().getCompilerOptionsDiagnostics(),i=>!i.file),void 0)}convertToDiagnosticsWithLinePosition(t,n){return t.map(i=>({message:tm(i.messageText,this.host.newLine),start:i.start,length:i.length,category:gb(i),code:i.code,source:i.source,startLocation:n&&n.positionToLineOffset(i.start),endLocation:n&&n.positionToLineOffset(i.start+i.length),reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated,relatedInformation:nr(i.relatedInformation,AY)}))}getDiagnosticsWorker(t,n,i,s){const{project:o,file:c}=this.getFileAndProject(t);if(n&&JDe(o,c))return Wc;const u=o.getScriptInfoForNormalizedPath(c),f=i(o,c);return s?this.convertToDiagnosticsWithLinePosition(f,u):f.map(g=>zDe(c,o,g))}getDefinition(t,n){const{file:i,project:s}=this.getFileAndProject(t),o=this.getPositionInFile(t,i),c=this.mapDefinitionInfoLocations(s.getLanguageService().getDefinitionAtPosition(i,o)||Wc,s);return n?this.mapDefinitionInfo(c,s):c.map(OK.mapToOriginalLocation)}mapDefinitionInfoLocations(t,n){return t.map(i=>{const s=UDe(i,n);return s?{...s,containerKind:i.containerKind,containerName:i.containerName,kind:i.kind,name:i.name,failedAliasResolution:i.failedAliasResolution,...i.unverified&&{unverified:i.unverified}}:i})}getDefinitionAndBoundSpan(t,n){const{file:i,project:s}=this.getFileAndProject(t),o=this.getPositionInFile(t,i),c=E.checkDefined(s.getScriptInfo(i)),u=s.getLanguageService().getDefinitionAndBoundSpan(i,o);if(!u||!u.definitions)return{definitions:Wc,textSpan:void 0};const f=this.mapDefinitionInfoLocations(u.definitions,s),{textSpan:g}=u;return n?{definitions:this.mapDefinitionInfo(f,s),textSpan:Um(g,c)}:{definitions:f.map(OK.mapToOriginalLocation),textSpan:g}}findSourceDefinition(t){var n;const{file:i,project:s}=this.getFileAndProject(t),o=this.getPositionInFile(t,i),c=s.getLanguageService().getDefinitionAtPosition(i,o);let u=this.mapDefinitionInfoLocations(c||Wc,s).slice();if(this.projectService.serverMode===0&&(!ct(u,T=>Jo(T.fileName)!==i&&!T.isAmbient)||ct(u,T=>!!T.failedAliasResolution))){const T=mB(F=>F.textSpan.start,bG(this.host.useCaseSensitiveFileNames));u==null||u.forEach(F=>T.add(F));const k=s.getNoDtsResolutionProject(i),w=k.getLanguageService(),P=(n=w.getDefinitionAtPosition(i,o,!0,!1))==null?void 0:n.filter(F=>Jo(F.fileName)!==i);if(ct(P))for(const F of P){if(F.unverified){const J=y(F,s.getLanguageService().getProgram(),w.getProgram());if(ct(J)){for(const U of J)T.add(U);continue}}T.add(F)}else{const F=u.filter(J=>Jo(J.fileName)!==i&&J.isAmbient);for(const J of ct(F)?F:d()){const U=g(J.fileName,i,k);if(!U)continue;const $=this.projectService.getOrCreateScriptInfoNotOpenedByClient(U,k.currentDirectory,k.directoryStructureHost);if(!$)continue;k.containsScriptInfo($)||(k.addRoot($),k.updateGraph());const j=w.getProgram(),re=E.checkDefined(j.getSourceFile(U));for(const R of S(J.name,re,j))T.add(R)}}u=gs(T.values())}return u=u.filter(T=>!T.isAmbient&&!T.failedAliasResolution),this.mapDefinitionInfo(u,s);function g(T,k,w){var P,F,J;const U=PF(T);if(U&&T.lastIndexOf(zm)===U.topLevelNodeModulesIndex){const $=T.substring(0,U.packageRootIndex),j=(P=s.getModuleResolutionCache())==null?void 0:P.getPackageJsonInfoCache(),re=s.getCompilationSettings(),R=lA(Xi($+"/package.json",s.getCurrentDirectory()),cA(j,s,re));if(!R)return;const Y=OU(R,{moduleResolution:2},s,s.getModuleResolutionCache()),ue=T.substring(U.topLevelPackageNameIndex+1,U.packageRootIndex),pe=I3(fA(ue)),H=s.toPath(T);if(Y&&ct(Y,q=>s.toPath(q)===H))return(F=w.resolutionCache.resolveSingleModuleNameWithoutWatching(pe,k).resolvedModule)==null?void 0:F.resolvedFileName;{const q=T.substring(U.packageRootIndex+1),ee=`${pe}/${$u(q)}`;return(J=w.resolutionCache.resolveSingleModuleNameWithoutWatching(ee,k).resolvedModule)==null?void 0:J.resolvedFileName}}}function d(){const T=s.getLanguageService(),k=T.getProgram(),w=u_(k.getSourceFile(i),o);return(Ma(w)||Ie(w))&&oo(w.parent)&&Gre(w,P=>{var F;if(P===w)return;const J=(F=T.getDefinitionAtPosition(i,P.getStart(),!0,!1))==null?void 0:F.filter(U=>Jo(U.fileName)!==i&&U.isAmbient).map(U=>({fileName:U.fileName,name:yp(w)}));if(ct(J))return J})||Wc}function y(T,k,w){var P;const F=w.getSourceFile(T.fileName);if(!F)return;const J=u_(k.getSourceFile(i),o),U=k.getTypeChecker().getSymbolAtLocation(J),$=U&&Bo(U,276);if(!$)return;const j=((P=$.propertyName)==null?void 0:P.text)||$.name.text;return S(j,F,w)}function S(T,k,w){const P=lo.Core.getTopMostDeclarationNamesInFile(T,k);return Ri(P,F=>{const J=w.getTypeChecker().getSymbolAtLocation(F),U=xE(F);if(J&&U)return L6.createDefinitionInfo(U,w.getTypeChecker(),J,U,!0)})}}getEmitOutput(t){const{file:n,project:i}=this.getFileAndProject(t);if(!i.shouldEmitFile(i.getScriptInfo(n)))return{emitSkipped:!0,outputFiles:[],diagnostics:[]};const s=i.getLanguageService().getEmitOutput(n);return t.richResponse?{...s,diagnostics:t.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(s.diagnostics):s.diagnostics.map(o=>tI(o,!0))}:s}mapJSDocTagInfo(t,n,i){return t?t.map(s=>{var o;return{...s,text:i?this.mapDisplayParts(s.text,n):(o=s.text)==null?void 0:o.map(c=>c.text).join("")}}):[]}mapDisplayParts(t,n){return t?t.map(i=>i.kind!=="linkName"?i:{...i,target:this.toFileSpan(i.target.fileName,i.target.textSpan,n)}):[]}mapSignatureHelpItems(t,n,i){return t.map(s=>({...s,documentation:this.mapDisplayParts(s.documentation,n),parameters:s.parameters.map(o=>({...o,documentation:this.mapDisplayParts(o.documentation,n)})),tags:this.mapJSDocTagInfo(s.tags,n,i)}))}mapDefinitionInfo(t,n){return t.map(i=>({...this.toFileSpanWithContext(i.fileName,i.textSpan,i.contextSpan,n),...i.unverified&&{unverified:i.unverified}}))}static mapToOriginalLocation(t){return t.originalFileName?(E.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,n,i){const s=i.getLanguageService(),o=s.toLineColumnOffset(t,n.start),c=s.toLineColumnOffset(t,bc(n));return{file:t,start:{line:o.line+1,offset:o.character+1},end:{line:c.line+1,offset:c.character+1}}}toFileSpanWithContext(t,n,i,s){const o=this.toFileSpan(t,n,s),c=i&&this.toFileSpan(t,i,s);return c?{...o,contextStart:c.start,contextEnd:c.end}:o}getTypeDefinition(t){const{file:n,project:i}=this.getFileAndProject(t),s=this.getPositionInFile(t,n),o=this.mapDefinitionInfoLocations(i.getLanguageService().getTypeDefinitionAtPosition(n,s)||Wc,i);return this.mapDefinitionInfo(o,i)}mapImplementationLocations(t,n){return t.map(i=>{const s=UDe(i,n);return s?{...s,kind:i.kind,displayParts:i.displayParts}:i})}getImplementation(t,n){const{file:i,project:s}=this.getFileAndProject(t),o=this.getPositionInFile(t,i),c=this.mapImplementationLocations(s.getLanguageService().getImplementationAtPosition(i,o)||Wc,s);return n?c.map(({fileName:u,textSpan:f,contextSpan:g})=>this.toFileSpanWithContext(u,f,g,s)):c.map(OK.mapToOriginalLocation)}getSyntacticDiagnosticsSync(t){const{configFile:n}=this.getConfigFileAndProject(t);return n?Wc:this.getDiagnosticsWorker(t,!1,(i,s)=>i.getLanguageService().getSyntacticDiagnostics(s),!!t.includeLinePosition)}getSemanticDiagnosticsSync(t){const{configFile:n,project:i}=this.getConfigFileAndProject(t);return n?this.getConfigFileDiagnostics(n,i,!!t.includeLinePosition):this.getDiagnosticsWorker(t,!0,(s,o)=>s.getLanguageService().getSemanticDiagnostics(o).filter(c=>!!c.file),!!t.includeLinePosition)}getSuggestionDiagnosticsSync(t){const{configFile:n}=this.getConfigFileAndProject(t);return n?Wc:this.getDiagnosticsWorker(t,!0,(i,s)=>i.getLanguageService().getSuggestionDiagnostics(s),!!t.includeLinePosition)}getJsxClosingTag(t){const{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.getPositionInFile(t,n),o=i.getJsxClosingTagAtPosition(n,s);return o===void 0?void 0:{newText:o.newText,caretOffset:0}}getLinkedEditingRange(t){const{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.getPositionInFile(t,n),o=i.getLinkedEditingRangeAtPosition(n,s),c=this.projectService.getScriptInfoForNormalizedPath(n);if(!(c===void 0||o===void 0))return Tet(o,c)}getDocumentHighlights(t,n){const{file:i,project:s}=this.getFileAndProject(t),o=this.getPositionInFile(t,i),c=s.getLanguageService().getDocumentHighlights(i,o,t.filesToSearch);return c?n?c.map(({fileName:u,highlightSpans:f})=>{const g=s.getScriptInfo(u);return{file:u,highlightSpans:f.map(({textSpan:d,kind:y,contextSpan:S})=>({...Sde(d,S,g),kind:y}))}}):c:Wc}provideInlayHints(t){const{file:n,project:i}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(n);return i.getLanguageService().provideInlayHints(n,t,this.getPreferences(n)).map(c=>{const{position:u,displayParts:f}=c;return{...c,position:s.positionToLineOffset(u),displayParts:f==null?void 0:f.map(({text:g,span:d,file:y})=>{if(d){E.assertIsDefined(y,"Target file should be defined together with its span.");const S=this.projectService.getScriptInfo(y);return{text:g,span:{start:S.positionToLineOffset(d.start),end:S.positionToLineOffset(d.start+d.length),file:y}}}else return{text:g}})}})}setCompilerOptionsForInferredProjects(t){this.projectService.setCompilerOptionsForInferredProjects(t.options,t.projectRootPath)}getProjectInfo(t){return this.getProjectInfoWorker(t.file,t.projectFileName,t.needFileNameList,!1)}getProjectInfoWorker(t,n,i,s){const{project:o}=this.getFileAndProjectWorker(t,n);return uf(o),{configFileName:o.getProjectName(),languageServiceDisabled:!o.languageServiceEnabled,fileNames:i?o.getFileNames(!1,s):void 0}}getRenameInfo(t){const{file:n,project:i}=this.getFileAndProject(t),s=this.getPositionInFile(t,n),o=this.getPreferences(n);return i.getLanguageService().getRenameInfo(n,s,o)}getProjects(t,n,i){let s,o;if(t.projectFileName){const c=this.getProject(t.projectFileName);c&&(s=[c])}else{const c=n?this.projectService.getScriptInfoEnsuringProjectsUptoDate(t.file):this.projectService.getScriptInfo(t.file);if(c)n||this.projectService.ensureDefaultProjectForFile(c);else return i?Wc:(this.projectService.logErrorForScriptInfoNotFound(t.file),g0.ThrowNoProject());s=c.containingProjects,o=this.projectService.getSymlinkedProjects(c)}return s=An(s,c=>c.languageServiceEnabled&&!c.isOrphan()),!i&&(!s||!s.length)&&!o?(this.projectService.logErrorForScriptInfoNotFound(t.file??t.projectFileName),g0.ThrowNoProject()):o?{projects:s,symLinkedProjects:o}:s}getDefaultProject(t){if(t.projectFileName){const i=this.getProject(t.projectFileName);if(i)return i;if(!t.file)return g0.ThrowNoProject()}return this.projectService.getScriptInfo(t.file).getDefaultProject()}getRenameLocations(t,n){const i=Jo(t.file),s=this.getPositionInFile(t,i),o=this.getProjects(t),c=this.getDefaultProject(t),u=this.getPreferences(i),f=this.mapRenameInfo(c.getLanguageService().getRenameInfo(i,s,u),E.checkDefined(this.projectService.getScriptInfo(i)));if(!f.canRename)return n?{info:f,locs:[]}:[];const g=det(o,c,{fileName:t.file,pos:s},!!t.findInStrings,!!t.findInComments,u,this.host.useCaseSensitiveFileNames);return n?{info:f,locs:this.toSpanGroups(g)}:g}mapRenameInfo(t,n){if(t.canRename){const{canRename:i,fileToRename:s,displayName:o,fullDisplayName:c,kind:u,kindModifiers:f,triggerSpan:g}=t;return{canRename:i,fileToRename:s,displayName:o,fullDisplayName:c,kind:u,kindModifiers:f,triggerSpan:Um(g,n)}}else return t}toSpanGroups(t){const n=new Map;for(const{fileName:i,textSpan:s,contextSpan:o,originalContextSpan:c,originalTextSpan:u,originalFileName:f,...g}of t){let d=n.get(i);d||n.set(i,d={file:i,locs:[]});const y=E.checkDefined(this.projectService.getScriptInfo(i));d.locs.push({...Sde(s,o,y),...g})}return gs(n.values())}getReferences(t,n){const i=Jo(t.file),s=this.getProjects(t),o=this.getPositionInFile(t,i),c=get(s,this.getDefaultProject(t),{fileName:t.file,pos:o},this.host.useCaseSensitiveFileNames,this.logger);if(!n)return c;const u=this.getPreferences(i),f=this.getDefaultProject(t),g=f.getScriptInfoForNormalizedPath(i),d=f.getLanguageService().getQuickInfoAtPosition(i,o),y=d?kN(d.displayParts):"",S=d&&d.textSpan,T=S?g.positionToLineOffset(S.start).offset:0,k=S?g.getSnapshot().getText(S.start,bc(S)):"";return{refs:Zs(c,P=>P.references.map(F=>HDe(this.projectService,F,u))),symbolName:k,symbolStartOffset:T,symbolDisplayString:y}}getFileReferences(t,n){const i=this.getProjects(t),s=t.file,o=this.getPreferences(Jo(s)),c=[],u=NY(this.host.useCaseSensitiveFileNames);return bde(i,void 0,g=>{if(g.getCancellationToken().isCancellationRequested())return;const d=g.getLanguageService().getFileReferences(s);if(d)for(const y of d)u.has(y)||(c.push(y),u.add(y))}),n?{refs:c.map(g=>HDe(this.projectService,g,o)),symbolName:`"${t.file}"`}:c}openClientFile(t,n,i,s){this.projectService.openClientFileWithNormalizedPath(t,n,i,!1,s)}getPosition(t,n){return t.position!==void 0?t.position:n.lineOffsetToPosition(t.line,t.offset)}getPositionInFile(t,n){const i=this.projectService.getScriptInfoForNormalizedPath(n);return this.getPosition(t,i)}getFileAndProject(t){return this.getFileAndProjectWorker(t.file,t.projectFileName)}getFileAndLanguageServiceForSyntacticOperation(t){const{file:n,project:i}=this.getFileAndProject(t);return{file:n,languageService:i.getLanguageService(!1)}}getFileAndProjectWorker(t,n){const i=Jo(t),s=this.getProject(n)||this.projectService.ensureDefaultProjectForFile(i);return{file:i,project:s}}getOutliningSpans(t,n){const{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=s.getOutliningSpans(i);if(n){const c=this.projectService.getScriptInfoForNormalizedPath(i);return o.map(u=>({textSpan:Um(u.textSpan,c),hintSpan:Um(u.hintSpan,c),bannerText:u.bannerText,autoCollapse:u.autoCollapse,kind:u.kind}))}else return o}getTodoComments(t){const{file:n,project:i}=this.getFileAndProject(t);return i.getLanguageService().getTodoComments(n,t.descriptors)}getDocCommentTemplate(t){const{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.getPositionInFile(t,n);return i.getDocCommentTemplateAtPosition(n,s,this.getPreferences(n),this.getFormatOptions(n))}getSpanOfEnclosingComment(t){const{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=t.onlyMultiLine,o=this.getPositionInFile(t,n);return i.getSpanOfEnclosingComment(n,o,s)}getIndentation(t){const{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.getPositionInFile(t,n),o=t.options?z6(t.options):this.getFormatOptions(n),c=i.getIndentationAtPosition(n,s,o);return{position:s,indentation:c}}getBreakpointStatement(t){const{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.getPositionInFile(t,n);return i.getBreakpointStatementAtPosition(n,s)}getNameOrDottedNameSpan(t){const{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.getPositionInFile(t,n);return i.getNameOrDottedNameSpan(n,s,s)}isValidBraceCompletion(t){const{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.getPositionInFile(t,n);return i.isValidBraceCompletionAtPosition(n,s,t.openingBrace.charCodeAt(0))}getQuickInfoWorker(t,n){const{file:i,project:s}=this.getFileAndProject(t),o=this.projectService.getScriptInfoForNormalizedPath(i),c=s.getLanguageService().getQuickInfoAtPosition(i,this.getPosition(t,o));if(!c)return;const u=!!this.getPreferences(i).displayPartsForJSDoc;if(n){const f=kN(c.displayParts);return{kind:c.kind,kindModifiers:c.kindModifiers,start:o.positionToLineOffset(c.textSpan.start),end:o.positionToLineOffset(bc(c.textSpan)),displayString:f,documentation:u?this.mapDisplayParts(c.documentation,s):kN(c.documentation),tags:this.mapJSDocTagInfo(c.tags,s,u)}}else return u?c:{...c,tags:this.mapJSDocTagInfo(c.tags,s,!1)}}getFormattingEditsForRange(t){const{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(n),o=s.lineOffsetToPosition(t.line,t.offset),c=s.lineOffsetToPosition(t.endLine,t.endOffset),u=i.getFormattingEditsForRange(n,o,c,this.getFormatOptions(n));if(u)return u.map(f=>this.convertTextChangeToCodeEdit(f,s))}getFormattingEditsForRangeFull(t){const{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=t.options?z6(t.options):this.getFormatOptions(n);return i.getFormattingEditsForRange(n,t.position,t.endPosition,s)}getFormattingEditsForDocumentFull(t){const{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=t.options?z6(t.options):this.getFormatOptions(n);return i.getFormattingEditsForDocument(n,s)}getFormattingEditsAfterKeystrokeFull(t){const{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=t.options?z6(t.options):this.getFormatOptions(n);return i.getFormattingEditsAfterKeystroke(n,t.position,t.key,s)}getFormattingEditsAfterKeystroke(t){const{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(n),o=s.lineOffsetToPosition(t.line,t.offset),c=this.getFormatOptions(n),u=i.getFormattingEditsAfterKeystroke(n,o,t.key,c);if(t.key===` -`&&(!u||u.length===0||fet(u,o))){const{lineText:f,absolutePosition:g}=s.textStorage.getAbsolutePositionAndLineText(t.line);if(f&&f.search("\\S")<0){const d=i.getIndentationAtPosition(n,o,c);let y=0,S,T;for(S=0,T=f.length;S({start:s.positionToLineOffset(f.span.start),end:s.positionToLineOffset(bc(f.span)),newText:f.newText?f.newText:""}))}getCompletions(t,n){const{file:i,project:s}=this.getFileAndProject(t),o=this.projectService.getScriptInfoForNormalizedPath(i),c=this.getPosition(t,o),u=s.getLanguageService().getCompletionsAtPosition(i,c,{...ade(this.getPreferences(i)),triggerCharacter:t.triggerCharacter,triggerKind:t.triggerKind,includeExternalModuleExports:t.includeExternalModuleExports,includeInsertTextCompletions:t.includeInsertTextCompletions},s.projectService.getFormatCodeOptions(i));if(u===void 0)return;if(n==="completions-full")return u;const f=t.prefix||"",g=Ri(u.entries,y=>{if(u.isMemberCompletion||Vi(y.name.toLowerCase(),f.toLowerCase())){const{name:S,kind:T,kindModifiers:k,sortText:w,insertText:P,filterText:F,replacementSpan:J,hasAction:U,source:$,sourceDisplay:j,labelDetails:re,isSnippet:R,isRecommended:Y,isPackageJsonImport:ue,isImportStatementCompletion:pe,data:H}=y,q=J?Um(J,o):void 0;return{name:S,kind:T,kindModifiers:k,sortText:w,insertText:P,filterText:F,replacementSpan:q,isSnippet:R,hasAction:U||void 0,source:$,sourceDisplay:j,labelDetails:re,isRecommended:Y,isPackageJsonImport:ue,isImportStatementCompletion:pe,data:H}}});return n==="completions"?(u.metadata&&(g.metadata=u.metadata),g):{...u,optionalReplacementSpan:u.optionalReplacementSpan&&Um(u.optionalReplacementSpan,o),entries:g}}getCompletionEntryDetails(t,n){const{file:i,project:s}=this.getFileAndProject(t),o=this.projectService.getScriptInfoForNormalizedPath(i),c=this.getPosition(t,o),u=s.projectService.getFormatCodeOptions(i),f=!!this.getPreferences(i).displayPartsForJSDoc,g=Ri(t.entryNames,d=>{const{name:y,source:S,data:T}=typeof d=="string"?{name:d,source:void 0,data:void 0}:d;return s.getLanguageService().getCompletionEntryDetails(i,c,y,u,S,this.getPreferences(i),T?Ls(T,Pet):void 0)});return n?f?g:g.map(d=>({...d,tags:this.mapJSDocTagInfo(d.tags,s,!1)})):g.map(d=>({...d,codeActions:nr(d.codeActions,y=>this.mapCodeAction(y)),documentation:this.mapDisplayParts(d.documentation,s),tags:this.mapJSDocTagInfo(d.tags,s,f)}))}getCompileOnSaveAffectedFileList(t){const n=this.getProjects(t,!0,!0),i=this.projectService.getScriptInfo(t.file);return i?pet(i,s=>this.projectService.getScriptInfoForPath(s),n,(s,o)=>{if(!s.compileOnSaveEnabled||!s.languageServiceEnabled||s.isOrphan())return;const c=s.getCompilationSettings();if(!(c.noEmit||Hl(o.fileName)&&!_et(c)))return{projectFileName:s.getProjectName(),fileNames:s.getCompileOnSaveAffectedFileList(o),projectUsesOutFile:!!no(c)}}):Wc}emitFile(t){const{file:n,project:i}=this.getFileAndProject(t);if(i||g0.ThrowNoProject(),!i.languageServiceEnabled)return t.richResponse?{emitSkipped:!0,diagnostics:[]}:!1;const s=i.getScriptInfo(n),{emitSkipped:o,diagnostics:c}=i.emitFile(s,(u,f,g)=>this.host.writeFile(u,f,g));return t.richResponse?{emitSkipped:o,diagnostics:t.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(c):c.map(u=>tI(u,!0))}:!o}getSignatureHelpItems(t,n){const{file:i,project:s}=this.getFileAndProject(t),o=this.projectService.getScriptInfoForNormalizedPath(i),c=this.getPosition(t,o),u=s.getLanguageService().getSignatureHelpItems(i,c,t),f=!!this.getPreferences(i).displayPartsForJSDoc;if(u&&n){const g=u.applicableSpan;return{...u,applicableSpan:{start:o.positionToLineOffset(g.start),end:o.positionToLineOffset(g.start+g.length)},items:this.mapSignatureHelpItems(u.items,s,f)}}else return f||!u?u:{...u,items:u.items.map(g=>({...g,tags:this.mapJSDocTagInfo(g.tags,s,!1)}))}}toPendingErrorCheck(t){const n=Jo(t),i=this.projectService.tryGetDefaultProjectForFile(n);return i&&{fileName:n,project:i}}getDiagnostics(t,n,i){this.suppressDiagnosticEvents||i.length>0&&this.updateErrorCheck(t,i,n)}change(t){const n=this.projectService.getScriptInfo(t.file);E.assert(!!n),n.textStorage.switchToScriptVersionCache();const i=n.lineOffsetToPosition(t.line,t.offset),s=n.lineOffsetToPosition(t.endLine,t.endOffset);i>=0&&(this.changeSeq++,this.projectService.applyChangesToFile(n,jK({span:{start:i,length:s-i},newText:t.insertString})))}reload(t,n){const i=Jo(t.file),s=t.tmpfile===void 0?void 0:Jo(t.tmpfile),o=this.projectService.getScriptInfoForNormalizedPath(i);o&&(this.changeSeq++,o.reloadFromFile(s)&&this.doOutput(void 0,"reload",n,!0))}saveToTmp(t,n){const i=this.projectService.getScriptInfo(t);i&&i.saveTo(n)}closeClientFile(t){if(!t)return;const n=Hs(t);this.projectService.closeClientFile(n)}mapLocationNavigationBarItems(t,n){return nr(t,i=>({text:i.text,kind:i.kind,kindModifiers:i.kindModifiers,spans:i.spans.map(s=>Um(s,n)),childItems:this.mapLocationNavigationBarItems(i.childItems,n),indent:i.indent}))}getNavigationBarItems(t,n){const{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=s.getNavigationBarItems(i);return o?n?this.mapLocationNavigationBarItems(o,this.projectService.getScriptInfoForNormalizedPath(i)):o:void 0}toLocationNavigationTree(t,n){return{text:t.text,kind:t.kind,kindModifiers:t.kindModifiers,spans:t.spans.map(i=>Um(i,n)),nameSpan:t.nameSpan&&Um(t.nameSpan,n),childItems:nr(t.childItems,i=>this.toLocationNavigationTree(i,n))}}getNavigationTree(t,n){const{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=s.getNavigationTree(i);return o?n?this.toLocationNavigationTree(o,this.projectService.getScriptInfoForNormalizedPath(i)):o:void 0}getNavigateToItems(t,n){const i=this.getFullNavigateToItems(t);return n?Zs(i,({project:s,navigateToItems:o})=>o.map(c=>{const u=s.getScriptInfo(c.fileName),f={name:c.name,kind:c.kind,kindModifiers:c.kindModifiers,isCaseSensitive:c.isCaseSensitive,matchKind:c.matchKind,file:c.fileName,start:u.positionToLineOffset(c.textSpan.start),end:u.positionToLineOffset(bc(c.textSpan))};return c.kindModifiers&&c.kindModifiers!==""&&(f.kindModifiers=c.kindModifiers),c.containerName&&c.containerName.length>0&&(f.containerName=c.containerName),c.containerKind&&c.containerKind.length>0&&(f.containerKind=c.containerKind),f})):Zs(i,({navigateToItems:s})=>s)}getFullNavigateToItems(t){const{currentFileOnly:n,searchValue:i,maxResultCount:s,projectFileName:o}=t;if(n){E.assertIsDefined(t.file);const{file:S,project:T}=this.getFileAndProject(t);return[{project:T,navigateToItems:T.getLanguageService().getNavigateToItems(i,s,S)}]}const c=this.getHostPreferences(),u=[],f=new Map;if(!t.file&&!o)this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(S=>g(S));else{const S=this.getProjects(t);bde(S,void 0,T=>g(T))}return u;function g(S){const T=S.getLanguageService().getNavigateToItems(i,s,void 0,S.isNonTsProject(),c.excludeLibrarySymbolsInNavTo),k=An(T,w=>d(w)&&!IY(xP(w),S));k.length&&u.push({project:S,navigateToItems:k})}function d(S){const T=S.name;if(!f.has(T))return f.set(T,[S]),!0;const k=f.get(T);for(const w of k)if(y(w,S))return!1;return k.push(S),!0}function y(S,T){return S===T?!0:!S||!T?!1:S.containerKind===T.containerKind&&S.containerName===T.containerName&&S.fileName===T.fileName&&S.isCaseSensitive===T.isCaseSensitive&&S.kind===T.kind&&S.kindModifiers===T.kindModifiers&&S.matchKind===T.matchKind&&S.name===T.name&&S.textSpan.start===T.textSpan.start&&S.textSpan.length===T.textSpan.length}}getSupportedCodeFixes(t){if(!t)return W$();if(t.file){const{file:i,project:s}=this.getFileAndProject(t);return s.getLanguageService().getSupportedCodeFixes(i)}const n=this.getProject(t.projectFileName);return n||g0.ThrowNoProject(),n.getLanguageService().getSupportedCodeFixes()}isLocation(t){return t.line!==void 0}extractPositionOrRange(t,n){let i,s;return this.isLocation(t)?i=o(t):s=this.getRange(t,n),E.checkDefined(i===void 0?s:i);function o(c){return c.position!==void 0?c.position:n.lineOffsetToPosition(c.line,c.offset)}}getRange(t,n){const{startPosition:i,endPosition:s}=this.getStartAndEndPosition(t,n);return{pos:i,end:s}}getApplicableRefactors(t){const{file:n,project:i}=this.getFileAndProject(t),s=i.getScriptInfoForNormalizedPath(n);return i.getLanguageService().getApplicableRefactors(n,this.extractPositionOrRange(t,s),this.getPreferences(n),t.triggerReason,t.kind,t.includeInteractiveActions)}getEditsForRefactor(t,n){const{file:i,project:s}=this.getFileAndProject(t),o=s.getScriptInfoForNormalizedPath(i),c=s.getLanguageService().getEditsForRefactor(i,this.getFormatOptions(i),this.extractPositionOrRange(t,o),t.refactor,t.action,this.getPreferences(i),t.interactiveRefactorArguments);if(c===void 0)return{edits:[]};if(n){const{renameFilename:u,renameLocation:f,edits:g}=c;let d;if(u!==void 0&&f!==void 0){const y=s.getScriptInfoForNormalizedPath(Jo(u));d=Tde(y6(y.getSnapshot()),u,f,g)}return{renameLocation:d,renameFilename:u,edits:this.mapTextChangesToCodeEdits(g),notApplicableReason:c.notApplicableReason}}return c}getMoveToRefactoringFileSuggestions(t){const{file:n,project:i}=this.getFileAndProject(t),s=i.getScriptInfoForNormalizedPath(n);return i.getLanguageService().getMoveToRefactoringFileSuggestions(n,this.extractPositionOrRange(t,s),this.getPreferences(n))}organizeImports(t,n){E.assert(t.scope.type==="file");const{file:i,project:s}=this.getFileAndProject(t.scope.args),o=s.getLanguageService().organizeImports({fileName:i,mode:t.mode??(t.skipDestructiveCodeActions?"SortAndCombine":void 0),type:"file"},this.getFormatOptions(i),this.getPreferences(i));return n?this.mapTextChangesToCodeEdits(o):o}getEditsForFileRename(t,n){const i=Jo(t.oldFilePath),s=Jo(t.newFilePath),o=this.getHostFormatOptions(),c=this.getHostPreferences(),u=new Set,f=[];return this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(g=>{const d=g.getLanguageService().getEditsForFileRename(i,s,o,c),y=[];for(const S of d)u.has(S.fileName)||(f.push(S),y.push(S.fileName));for(const S of y)u.add(S)}),n?f.map(g=>this.mapTextChangeToCodeEdit(g)):f}getCodeFixes(t,n){const{file:i,project:s}=this.getFileAndProject(t),o=s.getScriptInfoForNormalizedPath(i),{startPosition:c,endPosition:u}=this.getStartAndEndPosition(t,o);let f;try{f=s.getLanguageService().getCodeFixesAtPosition(i,c,u,t.errorCodes,this.getFormatOptions(i),this.getPreferences(i))}catch(g){const d=s.getLanguageService(),y=[...d.getSyntacticDiagnostics(i),...d.getSemanticDiagnostics(i),...d.getSuggestionDiagnostics(i)].map(T=>VD(c,u-c,T.start,T.length)&&T.code),S=t.errorCodes.find(T=>!y.includes(T));throw S!==void 0&&(g.message=`BADCLIENT: Bad error code, ${S} not found in range ${c}..${u} (found: ${y.join(", ")}); could have caused this error: -${g.message}`),g}return n?f.map(g=>this.mapCodeFixAction(g)):f}getCombinedCodeFix({scope:t,fixId:n},i){E.assert(t.type==="file");const{file:s,project:o}=this.getFileAndProject(t.args),c=o.getLanguageService().getCombinedCodeFix({type:"file",fileName:s},n,this.getFormatOptions(s),this.getPreferences(s));return i?{changes:this.mapTextChangesToCodeEdits(c.changes),commands:c.commands}:c}applyCodeActionCommand(t){const n=t.command;for(const i of bT(n)){const{file:s,project:o}=this.getFileAndProject(i);o.getLanguageService().applyCodeActionCommand(i,this.getFormatOptions(s)).then(c=>{},c=>{})}return{}}getStartAndEndPosition(t,n){let i,s;return t.startPosition!==void 0?i=t.startPosition:(i=n.lineOffsetToPosition(t.startLine,t.startOffset),t.startPosition=i),t.endPosition!==void 0?s=t.endPosition:(s=n.lineOffsetToPosition(t.endLine,t.endOffset),t.endPosition=s),{startPosition:i,endPosition:s}}mapCodeAction({description:t,changes:n,commands:i}){return{description:t,changes:this.mapTextChangesToCodeEdits(n),commands:i}}mapCodeFixAction({fixName:t,description:n,changes:i,commands:s,fixId:o,fixAllDescription:c}){return{fixName:t,description:n,changes:this.mapTextChangesToCodeEdits(i),commands:s,fixId:o,fixAllDescription:c}}mapTextChangesToCodeEdits(t){return t.map(n=>this.mapTextChangeToCodeEdit(n))}mapTextChangeToCodeEdit(t){const n=this.projectService.getScriptInfoOrConfig(t.fileName);return!!t.isNewFile==!!n&&(n||this.projectService.logErrorForScriptInfoNotFound(t.fileName),E.fail("Expected isNewFile for (only) new files. "+JSON.stringify({isNewFile:!!t.isNewFile,hasScriptInfo:!!n}))),n?{fileName:t.fileName,textChanges:t.textChanges.map(i=>bet(i,n))}:ket(t)}convertTextChangeToCodeEdit(t,n){return{start:n.positionToLineOffset(t.span.start),end:n.positionToLineOffset(t.span.start+t.span.length),newText:t.newText?t.newText:""}}getBraceMatching(t,n){const{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.projectService.getScriptInfoForNormalizedPath(i),c=this.getPosition(t,o),u=s.getBraceMatchingAtPosition(i,c);return u?n?u.map(f=>Um(f,o)):u:void 0}getDiagnosticsForProject(t,n,i){if(this.suppressDiagnosticEvents)return;const{fileNames:s,languageServiceDisabled:o}=this.getProjectInfoWorker(i,void 0,!0,!0);if(o)return;const c=s.filter(w=>!w.includes("lib.d.ts"));if(c.length===0)return;const u=[],f=[],g=[],d=[],y=Jo(i),S=this.projectService.ensureDefaultProjectForFile(y);for(const w of c)this.getCanonicalFileName(w)===this.getCanonicalFileName(i)?u.push(w):this.projectService.getScriptInfo(w).isScriptOpen()?f.push(w):Hl(w)?d.push(w):g.push(w);const k=[...u,...f,...g,...d].map(w=>({fileName:w,project:S}));this.updateErrorCheck(t,k,n,!1)}configurePlugin(t){this.projectService.configurePlugin(t)}getSmartSelectionRange(t,n){const{locations:i}=t,{file:s,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),c=E.checkDefined(this.projectService.getScriptInfo(s));return nr(i,u=>{const f=this.getPosition(u,c),g=o.getSmartSelectionRange(s,f);return n?this.mapSelectionRange(g,c):g})}toggleLineComment(t,n){const{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.projectService.getScriptInfo(i),c=this.getRange(t,o),u=s.toggleLineComment(i,c);if(n){const f=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(g=>this.convertTextChangeToCodeEdit(g,f))}return u}toggleMultilineComment(t,n){const{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.projectService.getScriptInfoForNormalizedPath(i),c=this.getRange(t,o),u=s.toggleMultilineComment(i,c);if(n){const f=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(g=>this.convertTextChangeToCodeEdit(g,f))}return u}commentSelection(t,n){const{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.projectService.getScriptInfoForNormalizedPath(i),c=this.getRange(t,o),u=s.commentSelection(i,c);if(n){const f=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(g=>this.convertTextChangeToCodeEdit(g,f))}return u}uncommentSelection(t,n){const{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.projectService.getScriptInfoForNormalizedPath(i),c=this.getRange(t,o),u=s.uncommentSelection(i,c);if(n){const f=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(g=>this.convertTextChangeToCodeEdit(g,f))}return u}mapSelectionRange(t,n){const i={textSpan:Um(t.textSpan,n)};return t.parent&&(i.parent=this.mapSelectionRange(t.parent,n)),i}getScriptInfoFromProjectService(t){const n=Jo(t),i=this.projectService.getScriptInfoForNormalizedPath(n);return i||(this.projectService.logErrorForScriptInfoNotFound(n),g0.ThrowNoProject())}toProtocolCallHierarchyItem(t){const n=this.getScriptInfoFromProjectService(t.file);return{name:t.name,kind:t.kind,kindModifiers:t.kindModifiers,file:t.file,containerName:t.containerName,span:Um(t.span,n),selectionSpan:Um(t.selectionSpan,n)}}toProtocolCallHierarchyIncomingCall(t){const n=this.getScriptInfoFromProjectService(t.from.file);return{from:this.toProtocolCallHierarchyItem(t.from),fromSpans:t.fromSpans.map(i=>Um(i,n))}}toProtocolCallHierarchyOutgoingCall(t,n){return{to:this.toProtocolCallHierarchyItem(t.to),fromSpans:t.fromSpans.map(i=>Um(i,n))}}prepareCallHierarchy(t){const{file:n,project:i}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(n);if(s){const o=this.getPosition(t,s),c=i.getLanguageService().prepareCallHierarchy(n,o);return c&&jG(c,u=>this.toProtocolCallHierarchyItem(u))}}provideCallHierarchyIncomingCalls(t){const{file:n,project:i}=this.getFileAndProject(t),s=this.getScriptInfoFromProjectService(n);return i.getLanguageService().provideCallHierarchyIncomingCalls(n,this.getPosition(t,s)).map(c=>this.toProtocolCallHierarchyIncomingCall(c))}provideCallHierarchyOutgoingCalls(t){const{file:n,project:i}=this.getFileAndProject(t),s=this.getScriptInfoFromProjectService(n);return i.getLanguageService().provideCallHierarchyOutgoingCalls(n,this.getPosition(t,s)).map(c=>this.toProtocolCallHierarchyOutgoingCall(c,s))}getCanonicalFileName(t){const n=this.host.useCaseSensitiveFileNames?t:km(t);return Hs(n)}exit(){}notRequired(){return{responseRequired:!1}}requiredResponse(t){return{response:t,responseRequired:!0}}addProtocolHandler(t,n){if(this.handlers.has(t))throw new Error(`Protocol handler already exists for command "${t}"`);this.handlers.set(t,n)}setCurrentRequest(t){E.assert(this.currentRequestId===void 0),this.currentRequestId=t,this.cancellationToken.setRequest(t)}resetCurrentRequest(t){E.assert(this.currentRequestId===t),this.currentRequestId=void 0,this.cancellationToken.resetRequest(t)}executeWithRequestId(t,n){try{return this.setCurrentRequest(t),n()}finally{this.resetCurrentRequest(t)}}executeCommand(t){const n=this.handlers.get(t.command);if(n){const i=this.executeWithRequestId(t.seq,()=>n(t));return this.projectService.enableRequestedPlugins(),i}else return this.logger.msg(`Unrecognized JSON command:${q1(t)}`,"Err"),this.doOutput(void 0,"unknown",t.seq,!1,`Unrecognized JSON command: ${t.command}`),{responseRequired:!1}}onMessage(t){var n,i,s,o,c,u,f,g,d,y,S;this.gcTimer.scheduleCollect(),this.performanceData=void 0;let T;this.logger.hasLevel(2)&&(T=this.hrtime(),this.logger.hasLevel(3)&&this.logger.info(`request:${X3(this.toStringMessage(t))}`));let k,w;try{k=this.parseMessage(t),w=k.arguments&&k.arguments.file?k.arguments:void 0,(n=qr)==null||n.instant(qr.Phase.Session,"request",{seq:k.seq,command:k.command}),(i=wu)==null||i.logStartCommand(""+k.command,this.toStringMessage(t).substring(0,100)),(s=qr)==null||s.push(qr.Phase.Session,"executeCommand",{seq:k.seq,command:k.command},!0);const{response:P,responseRequired:F}=this.executeCommand(k);if((o=qr)==null||o.pop(),this.logger.hasLevel(2)){const J=uet(this.hrtime(T)).toFixed(4);F?this.logger.perftrc(`${k.seq}::${k.command}: elapsed time (in milliseconds) ${J}`):this.logger.perftrc(`${k.seq}::${k.command}: async elapsed time (in milliseconds) ${J}`)}(c=wu)==null||c.logStopCommand(""+k.command,"Success"),(u=qr)==null||u.instant(qr.Phase.Session,"response",{seq:k.seq,command:k.command,success:!!P}),P?this.doOutput(P,k.command,k.seq,!0):F&&this.doOutput(void 0,k.command,k.seq,!1,"No content available.")}catch(P){if((f=qr)==null||f.popAll(),P instanceof Mk){(g=wu)==null||g.logStopCommand(""+(k&&k.command),"Canceled: "+P),(d=qr)==null||d.instant(qr.Phase.Session,"commandCanceled",{seq:k==null?void 0:k.seq,command:k==null?void 0:k.command}),this.doOutput({canceled:!0},k.command,k.seq,!0);return}this.logErrorWorker(P,this.toStringMessage(t),w),(y=wu)==null||y.logStopCommand(""+(k&&k.command),"Error: "+P),(S=qr)==null||S.instant(qr.Phase.Session,"commandError",{seq:k==null?void 0:k.seq,command:k==null?void 0:k.command,message:P.message}),this.doOutput(void 0,k?k.command:"unknown",k?k.seq:0,!1,"Error processing request. "+P.message+` -`+P.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()}}}}),Vx,FY,XDe,QDe,wR,AR,Pde,kP,Ux,rI,wet=wt({"src/server/scriptVersionCache.ts"(){ky(),hS(),Vx=4,FY=(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))(FY||{}),XDe=class{constructor(){this.goSubtree=!0,this.lineIndex=new kP,this.endBranch=[],this.state=2,this.initialText="",this.trailingText="",this.lineIndex.root=new Ux,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;const i=kP.linesFromText(e).lines;i.length>1&&i[i.length-1]===""&&i.pop();let s,o;for(let u=this.endBranch.length-1;u>=0;u--)this.endBranch[u].updateCounts(),this.endBranch[u].charCount()===0&&(o=this.endBranch[u],u>0?s=this.endBranch[u-1]:s=this.branchNode);o&&s.remove(o);const c=this.startPath[this.startPath.length-1];if(i.length>0)if(c.text=i[0],i.length>1){let u=new Array(i.length-1),f=c;for(let y=1;y=0;){const y=this.startPath[g];u=y.insertAt(f,u),g--,f=y}let d=u.length;for(;d>0;){const y=new Ux;y.add(this.lineIndex.root),u=y.insertAt(this.lineIndex.root,u),d=u.length,this.lineIndex.root=y}this.lineIndex.root.updateCounts()}else for(let u=this.startPath.length-2;u>=0;u--)this.startPath[u].updateCounts();else{this.startPath[this.startPath.length-2].remove(c);for(let f=this.startPath.length-2;f>=0;f--)this.startPath[f].updateCounts()}return this.lineIndex}post(e,t,n){n===this.lineCollectionAtBranch&&(this.state=4),this.stack.pop()}pre(e,t,n,i,s){const o=this.stack[this.stack.length-1];this.state===2&&s===1&&(this.state=1,this.branchNode=o,this.lineCollectionAtBranch=n);let c;function u(f){return f.isLeaf()?new rI(""):new Ux}switch(s){case 0:this.goSubtree=!1,this.state!==4&&o.add(n);break;case 1:this.state===4?this.goSubtree=!1:(c=u(n),o.add(c),this.startPath.push(c));break;case 2:this.state!==4?(c=u(n),o.add(c),this.startPath.push(c)):n.isLeaf()||(c=u(n),o.add(c),this.endBranch.push(c));break;case 3:this.goSubtree=!1;break;case 4:this.state!==4?this.goSubtree=!1:n.isLeaf()||(c=u(n),o.add(c),this.endBranch.push(c));break;case 5:this.goSubtree=!1,this.state!==1&&o.add(n);break}this.goSubtree&&this.stack.push(c)}leaf(e,t,n){this.state===1?this.initialText=n.text.substring(0,e):this.state===2?(this.initialText=n.text.substring(0,e),this.trailingText=n.text.substring(e+t)):this.trailingText=n.text.substring(e+t)}},QDe=class{constructor(e,t,n){this.pos=e,this.deleteLen=t,this.insertedText=n}getTextChangeRange(){return UD(Wl(this.pos,this.deleteLen),this.insertedText?this.insertedText.length:0)}},wR=class gT{constructor(){this.changes=[],this.versions=new Array(gT.maxVersions),this.minVersion=0,this.currentVersion=0}versionToIndex(t){if(!(tthis.currentVersion))return t%gT.maxVersions}currentVersionToIndex(){return this.currentVersion%gT.maxVersions}edit(t,n,i){this.changes.push(new QDe(t,n,i)),(this.changes.length>gT.changeNumberThreshold||n>gT.changeLengthThreshold||i&&i.length>gT.changeLengthThreshold)&&this.getSnapshot()}getSnapshot(){return this._getSnapshot()}_getSnapshot(){let t=this.versions[this.currentVersionToIndex()];if(this.changes.length>0){let n=t.index;for(const i of this.changes)n=n.edit(i.pos,i.deleteLen,i.insertedText);t=new Pde(this.currentVersion+1,this,n,this.changes),this.currentVersion=t.version,this.versions[this.currentVersionToIndex()]=t,this.changes=[],this.currentVersion-this.minVersion>=gT.maxVersions&&(this.minVersion=this.currentVersion-gT.maxVersions+1)}return t}getSnapshotVersion(){return this._getSnapshot().version}getAbsolutePositionAndLineText(t){return this._getSnapshot().index.lineNumberToInfo(t)}lineOffsetToPosition(t,n){return this._getSnapshot().index.absolutePositionOfStartOfLine(t)+(n-1)}positionToLineOffset(t){return this._getSnapshot().index.positionToLineOffset(t)}lineToTextSpan(t){const n=this._getSnapshot().index,{lineText:i,absolutePosition:s}=n.lineNumberToInfo(t+1),o=i!==void 0?i.length:n.absolutePositionOfStartOfLine(t+2)-s;return Wl(s,o)}getTextChangesBetweenVersions(t,n){if(t=this.minVersion){const i=[];for(let s=t+1;s<=n;s++){const o=this.versions[this.versionToIndex(s)];for(const c of o.changesSincePreviousVersion)i.push(c.getTextChangeRange())}return Fee(i)}else return;else return a8}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(t){const n=new gT,i=new Pde(0,n,new kP);n.versions[n.currentVersion]=i;const s=kP.linesFromText(t);return i.index.load(s.lines),n}},wR.changeNumberThreshold=8,wR.changeLengthThreshold=256,wR.maxVersions=8,AR=wR,Pde=class D5e{constructor(t,n,i,s=Wc){this.version=t,this.cache=n,this.index=i,this.changesSincePreviousVersion=s}getText(t,n){return this.index.getText(t,n-t)}getLength(){return this.index.getLength()}getChangeRange(t){if(t instanceof D5e&&this.cache===t.cache)return this.version<=t.version?a8:this.cache.getTextChangesBetweenVersions(t.version,this.version)}},kP=class c0e{constructor(){this.checkEdits=!1}absolutePositionOfStartOfLine(t){return this.lineNumberToInfo(t).absolutePosition}positionToLineOffset(t){const{oneBasedLine:n,zeroBasedColumn:i}=this.root.charOffsetToLineInfo(1,t);return{line:n,offset:i+1}}positionToColumnAndLineText(t){return this.root.charOffsetToLineInfo(1,t)}getLineCount(){return this.root.lineCount()}lineNumberToInfo(t){const n=this.getLineCount();if(t<=n){const{position:i,leaf:s}=this.root.lineNumberToInfo(t,0);return{absolutePosition:i,lineText:s&&s.text}}else return{absolutePosition:this.root.charCount(),lineText:void 0}}load(t){if(t.length>0){const n=[];for(let i=0;i0&&t{i=i.concat(c.text.substring(s,s+o))}}),i}getLength(){return this.root.charCount()}every(t,n,i){i||(i=this.root.charCount());const s={goSubtree:!0,done:!1,leaf(o,c,u){t(u,o,c)||(this.done=!0)}};return this.walk(n,i-n,s),!s.done}edit(t,n,i){if(this.root.charCount()===0)return E.assert(n===0),i!==void 0?(this.load(c0e.linesFromText(i).lines),this):void 0;{let s;if(this.checkEdits){const u=this.getText(0,this.root.charCount());s=u.slice(0,t)+i+u.slice(t+n)}const o=new XDe;let c=!1;if(t>=this.root.charCount()){t=this.root.charCount()-1;const u=this.getText(t,1);i?i=u+i:i=u,n=0,c=!0}else if(n>0){const u=t+n,{zeroBasedColumn:f,lineText:g}=this.positionToColumnAndLineText(u);f===0&&(n+=g.length,i=i?i+g:g)}if(this.root.walk(t,n,o),o.insertLines(i,c),this.checkEdits){const u=o.lineIndex.getText(0,o.lineIndex.getLength());E.assert(s===u,"buffer edit mismatch")}return o.lineIndex}}static buildTreeFromBottom(t){if(t.length0?i[s]=o:i.pop(),{lines:i,lineMap:n}}},Ux=class l0e{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(const t of this.children)this.totalChars+=t.charCount(),this.totalLines+=t.lineCount()}execWalk(t,n,i,s,o){return i.pre&&i.pre(t,n,this.children[s],this,o),i.goSubtree?(this.children[s].walk(t,n,i),i.post&&i.post(t,n,this.children[s],this,o)):i.goSubtree=!0,i.done}skipChild(t,n,i,s,o){s.pre&&!s.done&&(s.pre(t,n,this.children[i],this,o),s.goSubtree=!0)}walk(t,n,i){let s=0,o=this.children[s].charCount(),c=t;for(;c>=o;)this.skipChild(c,n,s,i,0),c-=o,s++,o=this.children[s].charCount();if(c+n<=o){if(this.execWalk(c,n,i,s,2))return}else{if(this.execWalk(c,o-c,i,s,1))return;let u=n-(o-c);for(s++,o=this.children[s].charCount();u>o;){if(this.execWalk(0,o,i,s,3))return;u-=o,s++,o=this.children[s].charCount()}if(u>0&&this.execWalk(0,u,i,s,4))return}if(i.pre){const u=this.children.length;if(sn)return o.isLeaf()?{oneBasedLine:t,zeroBasedColumn:n,lineText:o.text}:o.charOffsetToLineInfo(t,n);n-=o.charCount(),t+=o.lineCount()}const i=this.lineCount();if(i===0)return{oneBasedLine:1,zeroBasedColumn:0,lineText:void 0};const s=E.checkDefined(this.lineNumberToInfo(i,0).leaf);return{oneBasedLine:i,zeroBasedColumn:s.charCount(),lineText:void 0}}lineNumberToInfo(t,n){for(const i of this.children){const s=i.lineCount();if(s>=t)return i.isLeaf()?{position:n,leaf:i}:i.lineNumberToInfo(t,n);t-=s,n+=i.charCount()}return{position:n,leaf:void 0}}splitAfter(t){let n;const i=this.children.length;t++;const s=t;if(t=0;S--)f[S].children.length===0&&f.pop()}c&&f.push(c),this.updateCounts();for(let d=0;d{(this.packageInstalledPromise??(this.packageInstalledPromise=new Map)).set(this.packageInstallId,{resolve:s,reject:o})});return this.installer.send(n),i}attach(t){this.projectService=t,this.installer=this.createInstallerProcess()}onProjectClosed(t){this.installer.send({projectName:t.getProjectName(),kind:"closeProject"})}enqueueInstallTypingsRequest(t,n,i){const s=Ope(t,n,i);this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling throttled operation:${q1(s)}`),this.activeRequestCount0?this.activeRequestCount--:E.fail("TIAdapter:: Received too many responses");!this.requestQueue.isEmpty();){const s=this.requestQueue.dequeue();if(this.requestMap.get(s.projectName)===s){this.requestMap.delete(s.projectName),this.scheduleRequest(s);break}this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Skipping defunct request for: ${s.projectName}`)}this.projectService.updateTypingsForProject(t),this.event(t,"setTypings");break}case Q3:this.projectService.watchTypingLocations(t);break}}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:${q1(t)}`),this.installer.send(t)},w5e.requestDelayMillis,`${t.projectName}::${t.kind}`)}},Dde.requestDelayMillis=100,wde=Dde}}),YDe={};vl(YDe,{ActionInvalidate:()=>OA,ActionPackageInstalled:()=>LA,ActionSet:()=>FA,ActionWatchTypingLocations:()=>Q3,Arguments:()=>kH,AutoImportProviderProject:()=>bY,AuxiliaryProject:()=>yY,CharRangeSection:()=>FY,CloseFileWatcherEvent:()=>ER,CommandNames:()=>kde,ConfigFileDiagEvent:()=>SR,ConfiguredProject:()=>SY,CreateDirectoryWatcherEvent:()=>CR,CreateFileWatcherEvent:()=>kR,Errors:()=>g0,EventBeginInstallTypes:()=>pL,EventEndInstallTypes:()=>dL,EventInitializationFailed:()=>xH,EventTypesRegistry:()=>fL,ExternalProject:()=>dR,GcTimer:()=>_Y,InferredProject:()=>hY,LargeFileReferencedEvent:()=>bR,LineIndex:()=>kP,LineLeaf:()=>rI,LineNode:()=>Ux,LogLevel:()=>oY,Msg:()=>cY,OpenFileInfoTelemetryEvent:()=>CY,Project:()=>gS,ProjectInfoTelemetryEvent:()=>xR,ProjectKind:()=>TP,ProjectLanguageServiceStateEvent:()=>TR,ProjectLoadingFinishEvent:()=>vR,ProjectLoadingStartEvent:()=>yR,ProjectReferenceProjectLoadKind:()=>DY,ProjectService:()=>wY,ProjectsUpdatedInBackgroundEvent:()=>KN,ScriptInfo:()=>dY,ScriptVersionCache:()=>AR,Session:()=>Ede,TextStorage:()=>pY,ThrottledOperations:()=>uY,TypingsCache:()=>mY,TypingsInstallerAdapter:()=>wde,allFilesAreJsOrDts:()=>rde,allRootFilesAreJsOrDts:()=>tde,asNormalizedPath:()=>EDe,convertCompilerOptions:()=>mR,convertFormatOptions:()=>z6,convertScriptKindName:()=>xY,convertTypeAcquisition:()=>sde,convertUserPreferences:()=>ade,convertWatchOptions:()=>ZN,countEachFileTypes:()=>QN,createInstallTypingsRequest:()=>Ope,createModuleSpecifierCache:()=>gde,createNormalizedPathMap:()=>PDe,createPackageJsonCache:()=>hde,createSortedArray:()=>Bpe,emptyArray:()=>Wc,findArgument:()=>dTe,forEachResolvedProjectReferenceProject:()=>W6,formatDiagnosticToProtocol:()=>tI,formatMessage:()=>yde,getBaseConfigFileName:()=>lY,getLocationInNewDocument:()=>Tde,hasArgument:()=>pTe,hasNoTypeScriptSource:()=>nde,indent:()=>X3,isBackgroundProject:()=>YN,isConfigFile:()=>fde,isConfiguredProject:()=>Y1,isDynamicFileName:()=>XN,isExternalProject:()=>gY,isInferredProject:()=>J6,isInferredProjectName:()=>Lpe,makeAutoImportProviderProjectName:()=>Rpe,makeAuxiliaryProjectName:()=>jpe,makeInferredProjectName:()=>Mpe,maxFileSize:()=>hR,maxProgramSizeForNonTsFiles:()=>gR,normalizedPathToPath:()=>$N,nowString:()=>mTe,nullCancellationToken:()=>xde,nullTypingsInstaller:()=>pR,projectContainsInfoDirectly:()=>Wx,protocol:()=>ede,removeSorted:()=>DDe,stringifyIndented:()=>q1,toEvent:()=>vde,toNormalizedPath:()=>Jo,tryConvertScriptKindName:()=>TY,typingsInstaller:()=>Ipe,updateProjectIfDirty:()=>uf});var hS=wt({"src/server/_namespaces/ts.server.ts"(){mL(),Fpe(),zKe(),WKe(),VKe(),UKe(),GKe(),YKe(),tet(),aet(),oet(),cet(),Det(),wet(),Aet()}}),ZDe={};vl(ZDe,{ANONYMOUS:()=>sM,AccessFlags:()=>ZB,AssertionLevel:()=>xB,AssignmentDeclarationKind:()=>oJ,AssignmentKind:()=>XW,Associativity:()=>YW,BreakpointResolver:()=>Q$,BuilderFileEmit:()=>eH,BuilderProgramKind:()=>tH,BuilderState:()=>Qp,BundleFileSectionKind:()=>CJ,CallHierarchy:()=>Ox,CharacterCodes:()=>yJ,CheckFlags:()=>GB,CheckMode:()=>h9,ClassificationType:()=>VH,ClassificationTypeNames:()=>WH,CommentDirectiveType:()=>IB,Comparison:()=>R4,CompletionInfoFlags:()=>LH,CompletionTriggerKind:()=>AH,Completions:()=>Bx,ContainerFlags:()=>VU,ContextFlags:()=>jB,Debug:()=>E,DiagnosticCategory:()=>ED,Diagnostics:()=>p,DocumentHighlights:()=>cM,ElementFlags:()=>YB,EmitFlags:()=>P7,EmitHint:()=>TJ,EmitOnly:()=>OB,EndOfLineState:()=>jH,EnumKind:()=>HB,ExitStatus:()=>LB,ExportKind:()=>YG,Extension:()=>vJ,ExternalEmitHelpers:()=>SJ,FileIncludeKind:()=>y7,FilePreprocessingDiagnosticsKind:()=>FB,FileSystemEntryKind:()=>NJ,FileWatcherEventKind:()=>AJ,FindAllReferences:()=>lo,FlattenLevel:()=>oq,FlowFlags:()=>CD,ForegroundColorEscapeSequences:()=>Hq,FunctionFlags:()=>QW,GeneratedIdentifierFlags:()=>h7,GetLiteralTextFlags:()=>HW,GoToDefinition:()=>L6,HighlightSpanKind:()=>IH,IdentifierNameMap:()=>xx,IdentifierNameMultiMap:()=>aq,ImportKind:()=>QG,ImportsNotUsedAsValues:()=>pJ,IndentStyle:()=>FH,IndexFlags:()=>KB,IndexKind:()=>rJ,InferenceFlags:()=>sJ,InferencePriority:()=>iJ,InlayHintKind:()=>NH,InlayHints:()=>WQ,InternalEmitFlags:()=>bJ,InternalSymbolName:()=>$B,InvalidatedProjectKind:()=>TH,JSDocParsingMode:()=>DJ,JsDoc:()=>Q1,JsTyping:()=>nm,JsxEmit:()=>fJ,JsxFlags:()=>AB,JsxReferenceKind:()=>eJ,LanguageServiceMode:()=>PH,LanguageVariant:()=>gJ,LexicalEnvironmentFlags:()=>kJ,ListFormat:()=>EJ,LogLevel:()=>CB,MemberOverrideStatus:()=>MB,ModifierFlags:()=>m7,ModuleDetectionKind:()=>cJ,ModuleInstanceState:()=>WU,ModuleKind:()=>$4,ModuleResolutionKind:()=>Rk,ModuleSpecifierEnding:()=>aV,NavigateTo:()=>Qce,NavigationBar:()=>ale,NewLineKind:()=>dJ,NodeBuilderFlags:()=>BB,NodeCheckFlags:()=>XB,NodeFactoryFlags:()=>dV,NodeFlags:()=>d7,NodeResolutionFeatures:()=>BU,ObjectFlags:()=>T7,OperationCanceledException:()=>Mk,OperatorPrecedence:()=>ZW,OrganizeImports:()=>Yp,OrganizeImportsMode:()=>wH,OuterExpressionKinds:()=>xJ,OutliningElementsCollector:()=>HQ,OutliningSpanKind:()=>MH,OutputFileType:()=>RH,PackageJsonAutoImportPreference:()=>EH,PackageJsonDependencyGroup:()=>CH,PatternMatchKind:()=>lM,PollingInterval:()=>D7,PollingWatchKind:()=>_J,PragmaKindFlags:()=>PJ,PrivateIdentifierKind:()=>SV,ProcessLevel:()=>_q,ProgramUpdateLevel:()=>Pq,QuotePreference:()=>UG,RelationComparisonResult:()=>g7,Rename:()=>aR,ScriptElementKind:()=>JH,ScriptElementKindModifier:()=>zH,ScriptKind:()=>k7,ScriptSnapshot:()=>hL,ScriptTarget:()=>mJ,SemanticClassificationFormat:()=>DH,SemanticMeaning:()=>VG,SemicolonPreference:()=>OH,SignatureCheckMode:()=>y9,SignatureFlags:()=>x7,SignatureHelp:()=>JN,SignatureKind:()=>tJ,SmartSelectionRange:()=>XQ,SnippetKind:()=>E7,SortKind:()=>TB,StructureIsReused:()=>v7,SymbolAccessibility:()=>WB,SymbolDisplay:()=>m0,SymbolDisplayPartKind:()=>RA,SymbolFlags:()=>b7,SymbolFormatFlags:()=>zB,SyntaxKind:()=>p7,SyntheticSymbolKind:()=>VB,Ternary:()=>aJ,ThrottledCancellationToken:()=>X$,TokenClass:()=>BH,TokenFlags:()=>NB,TransformFlags:()=>C7,TypeFacts:()=>g9,TypeFlags:()=>S7,TypeFormatFlags:()=>JB,TypeMapKind:()=>nJ,TypePredicateKind:()=>UB,TypeReferenceSerializationKind:()=>qB,UnionReduction:()=>RB,UpToDateStatusType:()=>yH,VarianceFlags:()=>QB,Version:()=>Rp,VersionRange:()=>TD,WatchDirectoryFlags:()=>hJ,WatchDirectoryKind:()=>uJ,WatchFileKind:()=>lJ,WatchLogLevel:()=>Dq,WatchType:()=>sl,accessPrivateIdentifier:()=>Gse,addDisposableResourceHelper:()=>mO,addEmitFlags:()=>Qd,addEmitHelper:()=>ZT,addEmitHelpers:()=>ih,addInternalEmitFlags:()=>QT,addNodeFactoryPatcher:()=>M1e,addObjectAllocatorPatcher:()=>Xre,addRange:()=>Nn,addRelatedInfo:()=>la,addSyntheticLeadingComment:()=>o3,addSyntheticTrailingComment:()=>WF,addToSeen:()=>qp,advancedAsyncSuperHelper:()=>Cw,affectsDeclarationPathOptionDeclarations:()=>SU,affectsEmitOptionDeclarations:()=>bU,allKeysStartWithDot:()=>l9,altDirectorySeparator:()=>OD,and:()=>o7,append:()=>_r,appendIfUnique:()=>Hg,arrayFrom:()=>gs,arrayIsEqualTo:()=>_d,arrayIsHomogeneous:()=>mne,arrayIsSorted:()=>KI,arrayOf:()=>WK,arrayReverseIterator:()=>cB,arrayToMap:()=>Iv,arrayToMultiMap:()=>vD,arrayToNumericMap:()=>UK,arraysEqual:()=>gD,assertType:()=>g0e,assign:()=>wk,assignHelper:()=>XF,asyncDelegator:()=>YF,asyncGeneratorHelper:()=>QF,asyncSuperHelper:()=>kw,asyncValues:()=>ZF,attachFileToDiagnostics:()=>qT,awaitHelper:()=>KT,awaiterHelper:()=>eO,base64decode:()=>jre,base64encode:()=>Rre,binarySearch:()=>Jh,binarySearchKey:()=>yT,bindSourceFile:()=>Tse,breakIntoCharacterSpans:()=>Vce,breakIntoWordSpans:()=>Uce,buildLinkParts:()=>pce,buildOpts:()=>ZO,buildOverload:()=>bDe,bundlerModuleNameResolver:()=>fse,canBeConvertedToAsync:()=>c$,canHaveDecorators:()=>eS,canHaveExportModifier:()=>aw,canHaveFlowNode:()=>O8,canHaveIllegalDecorators:()=>QV,canHaveIllegalModifiers:()=>Eie,canHaveIllegalType:()=>_ve,canHaveIllegalTypeParameters:()=>Cie,canHaveJSDoc:()=>L8,canHaveLocals:()=>Dm,canHaveModifiers:()=>$p,canHaveSymbol:()=>Wd,canJsonReportNoInputFiles:()=>E3,canProduceDiagnostics:()=>I9,canUsePropertyAccess:()=>WW,canWatchAffectingLocation:()=>eoe,canWatchAtTypes:()=>Kae,canWatchDirectoryOrFile:()=>K9,cartesianProduct:()=>eee,cast:()=>Ls,chainBundle:()=>Xp,chainDiagnosticMessages:()=>vs,changeAnyExtension:()=>ID,changeCompilerHostLikeToUseCache:()=>CA,changeExtension:()=>N1,changeFullExtension:()=>vee,changesAffectModuleResolution:()=>i5,changesAffectingProgramStructure:()=>Ste,childIsDecorated:()=>vE,classElementOrClassElementParameterIsDecorated:()=>Lz,classHasClassThisAssignment:()=>cq,classHasDeclaredOrExplicitlyAssignedName:()=>lq,classHasExplicitlyAssignedName:()=>w9,classOrConstructorParameterIsDecorated:()=>Qh,classPrivateFieldGetHelper:()=>fO,classPrivateFieldInHelper:()=>dO,classPrivateFieldSetHelper:()=>pO,classicNameResolver:()=>yse,classifier:()=>tue,cleanExtendedConfigCache:()=>J9,clear:()=>lg,clearMap:()=>T_,clearSharedExtendedConfigFileWatcher:()=>kq,climbPastPropertyAccess:()=>vL,climbPastPropertyOrElementAccess:()=>Joe,clone:()=>pB,cloneCompilerOptions:()=>cG,closeFileWatcher:()=>md,closeFileWatcherOf:()=>Qf,codefix:()=>lu,collapseTextChangeRangesAcrossMultipleVersions:()=>Fee,collectExternalModuleInfo:()=>rq,combine:()=>Dk,combinePaths:()=>Mn,commentPragmas:()=>PD,commonOptionsWithBuild:()=>tA,commonPackageFolders:()=>tV,compact:()=>yD,compareBooleans:()=>J0,compareDataObjects:()=>CW,compareDiagnostics:()=>WE,compareDiagnosticsSkipRelatedInformation:()=>lF,compareEmitHelpers:()=>qne,compareNumberOfDirectorySeparators:()=>nw,comparePaths:()=>Gg,comparePathsCaseInsensitive:()=>V0e,comparePathsCaseSensitive:()=>W0e,comparePatternKeys:()=>RU,compareProperties:()=>QK,compareStringsCaseInsensitive:()=>s7,compareStringsCaseInsensitiveEslintCompatible:()=>GK,compareStringsCaseSensitive:()=>mu,compareStringsCaseSensitiveUI:()=>SD,compareTextSpans:()=>i7,compareValues:()=>wo,compileOnSaveCommandLineOption:()=>Kw,compilerOptionsAffectDeclarationPath:()=>sne,compilerOptionsAffectEmit:()=>ine,compilerOptionsAffectSemanticDiagnostics:()=>nne,compilerOptionsDidYouMeanDiagnostics:()=>iA,compilerOptionsIndicateEsModules:()=>dG,compose:()=>d0e,computeCommonSourceDirectoryOfFilenames:()=>Iae,computeLineAndCharacterOfPosition:()=>Bk,computeLineOfPosition:()=>Z4,computeLineStarts:()=>ET,computePositionOfLineAndCharacter:()=>L7,computeSignature:()=>aS,computeSignatureWithDiagnostics:()=>Qq,computeSuggestionDiagnostics:()=>s$,computedOptions:()=>Jc,concatenate:()=>es,concatenateDiagnosticMessageChains:()=>Kre,consumesNodeCoreModules:()=>ZL,contains:()=>bs,containsIgnoredPath:()=>YE,containsObjectRestOrSpread:()=>Uw,containsParseError:()=>Yk,containsPath:()=>jp,convertCompilerOptionsForTelemetry:()=>Xie,convertCompilerOptionsFromJson:()=>d2e,convertJsonOption:()=>tS,convertToBase64:()=>Mre,convertToJson:()=>Qw,convertToObject:()=>Uie,convertToOptionsWithAbsolutePaths:()=>dU,convertToRelativePath:()=>Y4,convertToTSConfig:()=>e2e,convertTypeAcquisitionFromJson:()=>m2e,copyComments:()=>uS,copyEntries:()=>s5,copyLeadingComments:()=>T6,copyProperties:()=>dB,copyTrailingAsLeadingComments:()=>nN,copyTrailingComments:()=>sP,couldStartTrivia:()=>xee,countWhere:()=>j0,createAbstractBuilder:()=>SSe,createAccessorPropertyBackingField:()=>ZV,createAccessorPropertyGetRedirector:()=>Oie,createAccessorPropertySetRedirector:()=>Lie,createBaseNodeFactory:()=>wne,createBinaryExpressionTrampoline:()=>JO,createBindingHelper:()=>LC,createBuildInfo:()=>bA,createBuilderProgram:()=>Yq,createBuilderProgramUsingProgramBuildInfo:()=>Yae,createBuilderStatusReporter:()=>doe,createCacheWithRedirects:()=>wU,createCacheableExportInfoMap:()=>GG,createCachedDirectoryStructureHost:()=>j9,createClassNamedEvaluationHelperBlock:()=>Kse,createClassThisAssignmentBlock:()=>Yse,createClassifier:()=>jTe,createCommentDirectivesMap:()=>Pte,createCompilerDiagnostic:()=>gc,createCompilerDiagnosticForInvalidCustomType:()=>Bie,createCompilerDiagnosticFromMessageChain:()=>cF,createCompilerHost:()=>Fae,createCompilerHostFromProgramHost:()=>dH,createCompilerHostWorker:()=>Nq,createDetachedDiagnostic:()=>PC,createDiagnosticCollection:()=>yC,createDiagnosticForFileFromMessageChain:()=>Az,createDiagnosticForNode:()=>yn,createDiagnosticForNodeArray:()=>eC,createDiagnosticForNodeArrayFromMessageChain:()=>p8,createDiagnosticForNodeFromMessageChain:()=>Zg,createDiagnosticForNodeInSourceFile:()=>mp,createDiagnosticForRange:()=>Bte,createDiagnosticMessageChainFromDiagnostic:()=>jte,createDiagnosticReporter:()=>AA,createDocumentPositionMapper:()=>zse,createDocumentRegistry:()=>Ice,createDocumentRegistryInternal:()=>e$,createEmitAndSemanticDiagnosticsBuilderProgram:()=>rH,createEmitHelperFactory:()=>Une,createEmptyExports:()=>Mw,createExpressionForJsxElement:()=>yie,createExpressionForJsxFragment:()=>vie,createExpressionForObjectLiteralElementLike:()=>bie,createExpressionForPropertyName:()=>UV,createExpressionFromEntityName:()=>Rw,createExternalHelpersImportDeclarationIfNeeded:()=>GV,createFileDiagnostic:()=>xl,createFileDiagnosticFromMessageChain:()=>d5,createForOfBindingStatement:()=>VV,createGetCanonicalFileName:()=>nu,createGetSourceFile:()=>wq,createGetSymbolAccessibilityDiagnosticForNode:()=>o0,createGetSymbolAccessibilityDiagnosticForNodeName:()=>xae,createGetSymbolWalker:()=>xse,createIncrementalCompilerHost:()=>gH,createIncrementalProgram:()=>foe,createInputFiles:()=>j1e,createInputFilesWithFilePaths:()=>fV,createInputFilesWithFileTexts:()=>pV,createJsxFactoryExpression:()=>WV,createLanguageService:()=>Xle,createLanguageServiceSourceFile:()=>FM,createMemberAccessForPropertyName:()=>Kb,createModeAwareCache:()=>Sx,createModeAwareCacheKey:()=>N3,createModuleNotFoundChain:()=>a5,createModuleResolutionCache:()=>e6,createModuleResolutionLoader:()=>Rq,createModuleResolutionLoaderUsingGlobalCache:()=>ioe,createModuleSpecifierResolutionHost:()=>lS,createMultiMap:()=>vf,createNodeConverters:()=>Nne,createNodeFactory:()=>gw,createOptionNameMap:()=>VO,createOverload:()=>sY,createPackageJsonImportFilter:()=>cP,createPackageJsonInfo:()=>LG,createParenthesizerRules:()=>Ane,createPatternMatcher:()=>Rce,createPrependNodes:()=>Uq,createPrinter:()=>V1,createPrinterWithDefaults:()=>Tq,createPrinterWithRemoveComments:()=>b2,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>xq,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>SA,createProgram:()=>q9,createProgramHost:()=>mH,createPropertyNameNodeForIdentifierOrLiteral:()=>EF,createQueue:()=>bD,createRange:()=>Uf,createRedirectedBuilderProgram:()=>Kq,createResolutionCache:()=>iH,createRuntimeTypeSerializer:()=>iae,createScanner:()=>Hh,createSemanticDiagnosticsBuilderProgram:()=>bSe,createSet:()=>mB,createSolutionBuilder:()=>RSe,createSolutionBuilderHost:()=>LSe,createSolutionBuilderWithWatch:()=>jSe,createSolutionBuilderWithWatchHost:()=>MSe,createSortedArray:()=>oB,createSourceFile:()=>Hw,createSourceMapGenerator:()=>Rse,createSourceMapSource:()=>B1e,createSuperAccessVariableStatement:()=>N9,createSymbolTable:()=>Bs,createSymlinkCache:()=>IW,createSystemWatchFunctions:()=>mee,createTextChange:()=>$A,createTextChangeFromStartLength:()=>FL,createTextChangeRange:()=>UD,createTextRangeFromNode:()=>_G,createTextRangeFromSpan:()=>IL,createTextSpan:()=>Wl,createTextSpanFromBounds:()=>Rc,createTextSpanFromNode:()=>Zu,createTextSpanFromRange:()=>by,createTextSpanFromStringLiteralLikeContent:()=>uG,createTextWriter:()=>G8,createTokenRange:()=>TW,createTypeChecker:()=>Nse,createTypeReferenceDirectiveResolutionCache:()=>a9,createTypeReferenceResolutionLoader:()=>W9,createUnparsedSourceFile:()=>_V,createWatchCompilerHost:()=>ISe,createWatchCompilerHostOfConfigFile:()=>loe,createWatchCompilerHostOfFilesAndCompilerOptions:()=>uoe,createWatchFactory:()=>pH,createWatchHost:()=>fH,createWatchProgram:()=>FSe,createWatchStatusReporter:()=>soe,createWriteFileMeasuringIO:()=>Aq,declarationNameToString:()=>Ka,decodeMappings:()=>KU,decodedTextSpanIntersectsWith:()=>VD,decorateHelper:()=>UF,deduplicate:()=>Nv,defaultIncludeSpec:()=>t9,defaultInitCompilerOptions:()=>KO,defaultMaximumTruncationLength:()=>uw,detectSortCaseSensitivity:()=>V4,diagnosticCategoryName:()=>gb,diagnosticToString:()=>fS,directoryProbablyExists:()=>dd,directorySeparator:()=>Io,displayPart:()=>C_,displayPartsToString:()=>kN,disposeEmitNodes:()=>mV,disposeResourcesHelper:()=>gO,documentSpansEqual:()=>vG,dumpTracingLegend:()=>fee,elementAt:()=>Uh,elideNodes:()=>Fie,emitComments:()=>Cre,emitDetachedComments:()=>Ere,emitFiles:()=>L9,emitFilesAndReportErrors:()=>nL,emitFilesAndReportErrorsAndGetExitStatus:()=>coe,emitModuleKindIsNonNodeESM:()=>uF,emitNewLineBeforeLeadingCommentOfPosition:()=>kre,emitNewLineBeforeLeadingComments:()=>Tre,emitNewLineBeforeLeadingCommentsOfPosition:()=>xre,emitSkippedWithNoDiagnostics:()=>Q9,emitUsingBuildInfo:()=>Dae,emptyArray:()=>Ve,emptyFileSystemEntries:()=>jF,emptyMap:()=>_7,emptyOptions:()=>Zf,emptySet:()=>ree,endsWith:()=>Yo,ensurePathIsNonModuleName:()=>Fv,ensureScriptKind:()=>vF,ensureTrailingDirectorySeparator:()=>ul,entityNameToString:()=>L_,enumerateInsertsAndDeletes:()=>l7,equalOwnProperties:()=>VK,equateStringsCaseInsensitive:()=>p1,equateStringsCaseSensitive:()=>pb,equateValues:()=>Vh,esDecorateHelper:()=>GF,escapeJsxAttributeString:()=>cW,escapeLeadingUnderscores:()=>Wo,escapeNonAsciiString:()=>H8,escapeSnippetText:()=>r2,escapeString:()=>bg,escapeTemplateSubstitution:()=>aW,every:()=>Wi,expandPreOrPostfixIncrementOrDecrementExpression:()=>OO,explainFiles:()=>oH,explainIfFileIsRedirectAndImpliedFormat:()=>cH,exportAssignmentIsAlias:()=>dC,exportStarHelper:()=>_O,expressionResultIsUnused:()=>hne,extend:()=>n7,extendsHelper:()=>tO,extensionFromPath:()=>HE,extensionIsTS:()=>TF,extensionsNotSupportingExtensionlessResolution:()=>mw,externalHelpersModuleNameText:()=>oy,factory:()=>I,fileExtensionIs:()=>Zo,fileExtensionIsOneOf:()=>Gc,fileIncludeReasonToDiagnostics:()=>_H,fileShouldUseJavaScriptRequire:()=>WG,filter:()=>An,filterMutate:()=>rB,filterSemanticDiagnostics:()=>H9,find:()=>wn,findAncestor:()=>Pr,findBestPatternMatch:()=>vB,findChildOfKind:()=>qa,findComputedPropertyNameCacheAssignment:()=>zO,findConfigFile:()=>Nae,findContainingList:()=>kL,findDiagnosticForNode:()=>kce,findFirstNonJsxWhitespaceToken:()=>qoe,findIndex:()=>vc,findLast:()=>hT,findLastIndex:()=>ZI,findListItemInfo:()=>Uoe,findMap:()=>u0e,findModifier:()=>v6,findNextToken:()=>x2,findPackageJson:()=>Tce,findPackageJsons:()=>OG,findPrecedingMatchingToken:()=>AL,findPrecedingToken:()=>Qc,findSuperStatementIndexPath:()=>E9,findTokenOnLeftOfPosition:()=>PL,findUseStrictPrologue:()=>HV,first:()=>va,firstDefined:()=>$o,firstDefinedIterator:()=>Lp,firstIterator:()=>uB,firstOrOnly:()=>BG,firstOrUndefined:()=>bl,firstOrUndefinedIterator:()=>e7,fixupCompilerOptions:()=>u$,flatMap:()=>Zs,flatMapIterator:()=>nB,flatMapToMutable:()=>B4,flatten:()=>Mp,flattenCommaList:()=>Mie,flattenDestructuringAssignment:()=>nS,flattenDestructuringBinding:()=>v2,flattenDiagnosticMessageText:()=>tm,forEach:()=>er,forEachAncestor:()=>Tte,forEachAncestorDirectory:()=>Jp,forEachChild:()=>Ss,forEachChildRecursively:()=>k3,forEachEmittedFile:()=>yq,forEachEnclosingBlockScopeContainer:()=>Lte,forEachEntry:()=>_l,forEachExternalModuleToImportFrom:()=>XG,forEachImportClauseDeclaration:()=>R5,forEachKey:()=>Am,forEachLeadingCommentRange:()=>jD,forEachNameInAccessChainWalkingLeft:()=>Gre,forEachPropertyAssignment:()=>iC,forEachResolvedProjectReference:()=>Bq,forEachReturnStatement:()=>Wv,forEachRight:()=>YI,forEachTrailingCommentRange:()=>BD,forEachTsConfigPropArray:()=>h8,forEachUnique:()=>SG,forEachYieldExpression:()=>zte,forSomeAncestorDirectory:()=>o1e,formatColorAndReset:()=>S2,formatDiagnostic:()=>Iq,formatDiagnostics:()=>tSe,formatDiagnosticsWithColorAndContext:()=>Oae,formatGeneratedName:()=>j1,formatGeneratedNamePart:()=>XC,formatLocation:()=>Fq,formatMessage:()=>wW,formatStringFromArgs:()=>xg,formatting:()=>al,fullTripleSlashAMDReferencePathRegEx:()=>$W,fullTripleSlashReferencePathRegEx:()=>GW,generateDjb2Hash:()=>X4,generateTSConfig:()=>s2e,generatorHelper:()=>cO,getAdjustedReferenceLocation:()=>rG,getAdjustedRenameLocation:()=>EL,getAliasDeclarationFromName:()=>Xz,getAllAccessorDeclarations:()=>Rb,getAllDecoratorsOfClass:()=>iq,getAllDecoratorsOfClassElement:()=>D9,getAllJSDocTags:()=>V7,getAllJSDocTagsOfKind:()=>yye,getAllKeys:()=>f0e,getAllProjectOutputs:()=>O9,getAllSuperTypeNodes:()=>kE,getAllUnscopedEmitHelpers:()=>bV,getAllowJSCompilerOption:()=>cy,getAllowSyntheticDefaultImports:()=>Jb,getAncestor:()=>w1,getAnyExtensionFromPath:()=>jk,getAreDeclarationMapsEnabled:()=>fw,getAssignedExpandoInitializer:()=>OT,getAssignedName:()=>z7,getAssignedNameOfIdentifier:()=>j3,getAssignmentDeclarationKind:()=>fc,getAssignmentDeclarationPropertyAccessKind:()=>w8,getAssignmentTargetKind:()=>jT,getAutomaticTypeDirectiveNames:()=>i9,getBaseFileName:()=>wc,getBinaryOperatorPrecedence:()=>q8,getBuildInfo:()=>M9,getBuildInfoFileVersionMap:()=>Zq,getBuildInfoText:()=>Pae,getBuildOrderFromAnyBuildOrder:()=>cL,getBuilderCreationParameters:()=>Y9,getBuilderFileEmit:()=>vy,getCheckFlags:()=>Ko,getClassExtendsHeritageElement:()=>Gv,getClassLikeDeclarationOfSymbol:()=>rh,getCombinedLocalAndExportSymbolFlags:()=>kC,getCombinedModifierFlags:()=>y1,getCombinedNodeFlags:()=>Gh,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>VJ,getCommentRange:()=>Yd,getCommonSourceDirectory:()=>q3,getCommonSourceDirectoryOfConfig:()=>a6,getCompilerOptionValue:()=>fF,getCompilerOptionsDiffValue:()=>n2e,getConditions:()=>hy,getConfigFileParsingDiagnostics:()=>sS,getConstantValue:()=>Rne,getContainerFlags:()=>zU,getContainerNode:()=>cS,getContainingClass:()=>Nl,getContainingClassExcludingClassDecorators:()=>x5,getContainingClassStaticBlock:()=>Qte,getContainingFunction:()=>cf,getContainingFunctionDeclaration:()=>Xte,getContainingFunctionOrClassStaticBlock:()=>T5,getContainingNodeArray:()=>yne,getContainingObjectLiteralElement:()=>CN,getContextualTypeFromParent:()=>UL,getContextualTypeFromParentOrAncestorTypeNode:()=>CL,getCurrentTime:()=>IA,getDeclarationDiagnostics:()=>kae,getDeclarationEmitExtensionForPath:()=>H5,getDeclarationEmitOutputFilePath:()=>hre,getDeclarationEmitOutputFilePathWorker:()=>q5,getDeclarationFileExtension:()=>rU,getDeclarationFromName:()=>xE,getDeclarationModifierFlagsFromSymbol:()=>Hf,getDeclarationOfKind:()=>Bo,getDeclarationsOfKind:()=>vte,getDeclaredExpandoInitializer:()=>C8,getDecorators:()=>H0,getDefaultCompilerOptions:()=>IM,getDefaultExportInfoWorker:()=>oM,getDefaultFormatCodeSettings:()=>gL,getDefaultLibFileName:()=>zD,getDefaultLibFilePath:()=>Qle,getDefaultLikeExportInfo:()=>aM,getDiagnosticText:()=>Gve,getDiagnosticsWithinSpan:()=>Cce,getDirectoryPath:()=>Un,getDirectoryToWatchFailedLookupLocation:()=>nH,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>roe,getDocumentPositionMapper:()=>i$,getDocumentSpansEqualityComparer:()=>bG,getESModuleInterop:()=>Om,getEditsForFileRename:()=>Oce,getEffectiveBaseTypeNode:()=>Ud,getEffectiveConstraintOfTypeParameter:()=>Uk,getEffectiveContainerForJSDocTemplateTag:()=>j5,getEffectiveImplementsTypeNodes:()=>mC,getEffectiveInitializer:()=>k8,getEffectiveJSDocHost:()=>D1,getEffectiveModifierFlags:()=>Lu,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Are,getEffectiveModifierFlagsNoCache:()=>Nre,getEffectiveReturnTypeNode:()=>bp,getEffectiveSetAccessorTypeAnnotationNode:()=>Sre,getEffectiveTypeAnnotationNode:()=>Vl,getEffectiveTypeParameterDeclarations:()=>G0,getEffectiveTypeRoots:()=>A3,getElementOrPropertyAccessArgumentExpressionOrName:()=>M5,getElementOrPropertyAccessName:()=>Kg,getElementsOfBindingOrAssignmentPattern:()=>$C,getEmitDeclarations:()=>Gf,getEmitFlags:()=>ha,getEmitHelpers:()=>VF,getEmitModuleDetectionKind:()=>KW,getEmitModuleKind:()=>au,getEmitModuleResolutionKind:()=>Ru,getEmitScriptTarget:()=>Fa,getEmitStandardClassFields:()=>rne,getEnclosingBlockScopeContainer:()=>Nm,getEnclosingContainer:()=>wz,getEncodedSemanticClassifications:()=>ZG,getEncodedSyntacticClassifications:()=>KG,getEndLinePosition:()=>l8,getEntityNameFromTypeNode:()=>b8,getEntrypointsFromPackageJsonInfo:()=>OU,getErrorCountForSummary:()=>tL,getErrorSpanForNode:()=>Eb,getErrorSummaryText:()=>aoe,getEscapedTextOfIdentifierOrLiteral:()=>PE,getEscapedTextOfJsxAttributeName:()=>t3,getEscapedTextOfJsxNamespacedName:()=>$T,getExpandoInitializer:()=>E1,getExportAssignmentExpression:()=>Qz,getExportInfoMap:()=>cN,getExportNeedsImportStarHelper:()=>Wse,getExpressionAssociativity:()=>nW,getExpressionPrecedence:()=>wE,getExternalHelpersModuleName:()=>Bw,getExternalModuleImportEqualsDeclarationExpression:()=>bE,getExternalModuleName:()=>uC,getExternalModuleNameFromDeclaration:()=>mre,getExternalModuleNameFromPath:()=>uW,getExternalModuleNameLiteral:()=>hx,getExternalModuleRequireArgument:()=>Rz,getFallbackOptions:()=>kA,getFileEmitOutput:()=>zae,getFileMatcherPatterns:()=>yF,getFileNamesFromConfigSpecs:()=>P3,getFileWatcherEventKind:()=>wJ,getFilesInErrorForSummary:()=>rL,getFirstConstructorWithBody:()=>Sg,getFirstIdentifier:()=>lf,getFirstNonSpaceCharacterPosition:()=>gce,getFirstProjectOutput:()=>Sq,getFixableErrorSpanExpression:()=>RG,getFormatCodeSettingsForWriting:()=>rM,getFullWidth:()=>o8,getFunctionFlags:()=>fl,getHeritageClause:()=>z8,getHostSignatureFromJSDoc:()=>P1,getIdentifierAutoGenerate:()=>U1e,getIdentifierGeneratedImportReference:()=>Vne,getIdentifierTypeArguments:()=>zb,getImmediatelyInvokedFunctionExpression:()=>Db,getImpliedNodeFormatForFile:()=>DA,getImpliedNodeFormatForFileWorker:()=>Wq,getImportNeedsImportDefaultHelper:()=>tq,getImportNeedsImportStarHelper:()=>k9,getIndentSize:()=>bC,getIndentString:()=>V5,getInferredLibraryNameResolveFrom:()=>U9,getInitializedVariables:()=>BE,getInitializerOfBinaryExpression:()=>Wz,getInitializerOfBindingOrAssignmentElement:()=>zw,getInterfaceBaseTypeNodes:()=>CE,getInternalEmitFlags:()=>Wp,getInvokedExpression:()=>E5,getIsolatedModules:()=>xp,getJSDocAugmentsTag:()=>Wee,getJSDocClassTag:()=>qJ,getJSDocCommentRanges:()=>Iz,getJSDocCommentsAndTags:()=>Uz,getJSDocDeprecatedTag:()=>HJ,getJSDocDeprecatedTagNoCache:()=>Xee,getJSDocEnumTag:()=>GJ,getJSDocHost:()=>Ib,getJSDocImplementsTags:()=>Vee,getJSDocOverloadTags:()=>Hz,getJSDocOverrideTagNoCache:()=>$ee,getJSDocParameterTags:()=>Vk,getJSDocParameterTagsNoCache:()=>jee,getJSDocPrivateTag:()=>pye,getJSDocPrivateTagNoCache:()=>qee,getJSDocProtectedTag:()=>dye,getJSDocProtectedTagNoCache:()=>Hee,getJSDocPublicTag:()=>fye,getJSDocPublicTagNoCache:()=>Uee,getJSDocReadonlyTag:()=>mye,getJSDocReadonlyTagNoCache:()=>Gee,getJSDocReturnTag:()=>Qee,getJSDocReturnType:()=>HD,getJSDocRoot:()=>pC,getJSDocSatisfiesExpressionType:()=>UW,getJSDocSatisfiesTag:()=>$J,getJSDocTags:()=>T1,getJSDocTagsNoCache:()=>hye,getJSDocTemplateTag:()=>gye,getJSDocThisTag:()=>W7,getJSDocType:()=>S1,getJSDocTypeAliasName:()=>XV,getJSDocTypeAssertionType:()=>MO,getJSDocTypeParameterDeclarations:()=>Q5,getJSDocTypeParameterTags:()=>Bee,getJSDocTypeParameterTagsNoCache:()=>Jee,getJSDocTypeTag:()=>b1,getJSXImplicitImportBase:()=>dF,getJSXRuntimeImport:()=>mF,getJSXTransformEnabled:()=>pF,getKeyForCompilerOptions:()=>DU,getLanguageVariant:()=>ew,getLastChild:()=>EW,getLeadingCommentRanges:()=>_g,getLeadingCommentRangesOfNode:()=>Nz,getLeftmostAccessExpression:()=>CC,getLeftmostExpression:()=>EC,getLibraryNameFromLibFileName:()=>Jq,getLineAndCharacterOfPosition:()=>Ha,getLineInfo:()=>YU,getLineOfLocalPosition:()=>NE,getLineOfLocalPositionFromLineMap:()=>Lb,getLineStartPositionForPosition:()=>Ep,getLineStarts:()=>$g,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Vre,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>Wre,getLinesBetweenPositions:()=>K4,getLinesBetweenRangeEndAndRangeStart:()=>xW,getLinesBetweenRangeEndPositions:()=>s1e,getLiteralText:()=>Dte,getLocalNameForExternalImport:()=>GC,getLocalSymbolForExportDefault:()=>xC,getLocaleSpecificMessage:()=>ds,getLocaleTimeString:()=>NA,getMappedContextSpan:()=>TG,getMappedDocumentSpan:()=>JL,getMappedLocation:()=>rP,getMatchedFileSpec:()=>lH,getMatchedIncludeSpec:()=>uH,getMeaningFromDeclaration:()=>jA,getMeaningFromLocation:()=>oS,getMembersOfDeclaration:()=>Wte,getModeForFileReference:()=>EA,getModeForResolutionAtIndex:()=>Lae,getModeForUsageLocation:()=>Lq,getModifiedTime:()=>xT,getModifiers:()=>Lv,getModuleInstanceState:()=>ch,getModuleNameStringLiteralAt:()=>wA,getModuleSpecifierEndingPreference:()=>lne,getModuleSpecifierResolverHost:()=>mG,getNameForExportedSymbol:()=>KL,getNameFromImportAttribute:()=>AF,getNameFromIndexInfo:()=>Mte,getNameFromPropertyName:()=>YA,getNameOfAccessExpression:()=>DW,getNameOfCompilerOptionValue:()=>pU,getNameOfDeclaration:()=>us,getNameOfExpando:()=>Jz,getNameOfJSDocTypedef:()=>Ree,getNameOrArgument:()=>D8,getNameTable:()=>U$,getNamesForExportedSymbol:()=>Ece,getNamespaceDeclarationNode:()=>_C,getNewLineCharacter:()=>t0,getNewLineKind:()=>oN,getNewLineOrDefaultFromHost:()=>f0,getNewTargetContainer:()=>Zte,getNextJSDocCommentLocation:()=>qz,getNodeForGeneratedName:()=>Vw,getNodeId:()=>Oa,getNodeKind:()=>T2,getNodeModifiers:()=>K3,getNodeModulePathParts:()=>PF,getNonAssignedNameOfDeclaration:()=>J7,getNonAssignmentOperatorForCompoundAssignment:()=>L3,getNonAugmentationDeclaration:()=>xz,getNonDecoratorTokenPosOfNode:()=>yz,getNormalizedAbsolutePath:()=>Xi,getNormalizedAbsolutePathWithoutRoot:()=>LJ,getNormalizedPathComponents:()=>ND,getObjectFlags:()=>bn,getOperator:()=>sW,getOperatorAssociativity:()=>iW,getOperatorPrecedence:()=>U8,getOptionFromName:()=>lU,getOptionsForLibraryResolution:()=>AU,getOptionsNameMap:()=>YC,getOrCreateEmitNode:()=>ou,getOrCreateExternalHelpersModuleNameIfNeeded:()=>kie,getOrUpdate:()=>z4,getOriginalNode:()=>ic,getOriginalNodeId:()=>cu,getOriginalSourceFile:()=>Xye,getOutputDeclarationFileName:()=>U3,getOutputDeclarationFileNameWorker:()=>vq,getOutputExtension:()=>F9,getOutputFileNames:()=>Kbe,getOutputJSFileNameWorker:()=>bq,getOutputPathsFor:()=>V3,getOutputPathsForBundle:()=>W3,getOwnEmitOutputFilePath:()=>gre,getOwnKeys:()=>ug,getOwnValues:()=>vT,getPackageJsonInfo:()=>m2,getPackageJsonTypesVersionsPaths:()=>n9,getPackageJsonsVisibleToFile:()=>xce,getPackageNameFromTypesPackageName:()=>I3,getPackageScopeForPath:()=>lA,getParameterSymbolFromJSDoc:()=>M8,getParameterTypeNode:()=>g1e,getParentNodeInSpan:()=>KA,getParseTreeNode:()=>as,getParsedCommandLineOfConfigFile:()=>$w,getPathComponents:()=>ll,getPathComponentsRelativeTo:()=>RJ,getPathFromPathComponents:()=>V0,getPathUpdater:()=>r$,getPathsBasePath:()=>G5,getPatternFromSpec:()=>ane,getPendingEmitKind:()=>_6,getPositionOfLineAndCharacter:()=>MD,getPossibleGenericSignatures:()=>iG,getPossibleOriginalInputExtensionForExtension:()=>yre,getPossibleTypeArgumentsInfo:()=>sG,getPreEmitDiagnostics:()=>eSe,getPrecedingNonSpaceCharacterPosition:()=>WL,getPrivateIdentifier:()=>sq,getProperties:()=>nq,getProperty:()=>t7,getPropertyArrayElementValue:()=>$te,getPropertyAssignmentAliasLikeExpression:()=>_re,getPropertyNameForPropertyNameNode:()=>Fb,getPropertyNameForUniqueESSymbol:()=>Gye,getPropertyNameFromType:()=>Tp,getPropertyNameOfBindingOrAssignmentElement:()=>$V,getPropertySymbolFromBindingElement:()=>BL,getPropertySymbolsFromContextualType:()=>OM,getQuoteFromPreference:()=>hG,getQuotePreference:()=>wf,getRangesWhere:()=>aB,getRefactorContextSpan:()=>Nx,getReferencedFileLocation:()=>H3,getRegexFromPattern:()=>sy,getRegularExpressionForWildcard:()=>VE,getRegularExpressionsForWildcards:()=>gF,getRelativePathFromDirectory:()=>Bp,getRelativePathFromFile:()=>FD,getRelativePathToDirectoryOrUrl:()=>CT,getRenameLocation:()=>rN,getReplacementSpanForContextToken:()=>lG,getResolutionDiagnostic:()=>qq,getResolutionModeOverride:()=>o6,getResolveJsonModule:()=>F1,getResolvePackageJsonExports:()=>LF,getResolvePackageJsonImports:()=>MF,getResolvedExternalModuleName:()=>U5,getRestIndicatorOfBindingOrAssignmentElement:()=>jO,getRestParameterElementType:()=>Fz,getRightMostAssignedExpression:()=>E8,getRootDeclaration:()=>Hd,getRootDirectoryOfResolutionCache:()=>noe,getRootLength:()=>Pm,getRootPathSplitLength:()=>CSe,getScriptKind:()=>PG,getScriptKindFromFileName:()=>bF,getScriptTargetFeatures:()=>FF,getSelectedEffectiveModifierFlags:()=>zT,getSelectedSyntacticModifierFlags:()=>Dre,getSemanticClassifications:()=>Ace,getSemanticJsxChildren:()=>hC,getSetAccessorTypeAnnotationNode:()=>vre,getSetAccessorValueParameter:()=>IE,getSetExternalModuleIndicator:()=>tw,getShebang:()=>R7,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>Vz,getSingleVariableOfVariableStatement:()=>RT,getSnapshotText:()=>y6,getSnippetElement:()=>gV,getSourceFileOfModule:()=>c5,getSourceFileOfNode:()=>wr,getSourceFilePathInNewDir:()=>$5,getSourceFilePathInNewDirWorker:()=>X5,getSourceFileVersionAsHashFromText:()=>iL,getSourceFilesToEmit:()=>_W,getSourceMapRange:()=>n0,getSourceMapper:()=>Hce,getSourceTextOfNodeFromSourceFile:()=>Bv,getSpanOfTokenAtPosition:()=>Im,getSpellingSuggestion:()=>q4,getStartPositionOfLine:()=>ey,getStartPositionOfRange:()=>jE,getStartsOnNewLine:()=>a3,getStaticPropertiesAndClassStaticBlock:()=>P9,getStrictOptionValue:()=>Mu,getStringComparer:()=>Ak,getSubPatternFromSpec:()=>hF,getSuperCallFromStatement:()=>C9,getSuperContainer:()=>y8,getSupportedCodeFixes:()=>W$,getSupportedExtensions:()=>UE,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>rw,getSwitchedType:()=>IG,getSymbolId:()=>Ks,getSymbolNameForPrivateIdentifier:()=>W8,getSymbolTarget:()=>DG,getSyntacticClassifications:()=>Nce,getSyntacticModifierFlags:()=>ny,getSyntacticModifierFlagsNoCache:()=>mW,getSynthesizedDeepClone:()=>Lo,getSynthesizedDeepCloneWithReplacements:()=>tN,getSynthesizedDeepClones:()=>k2,getSynthesizedDeepClonesWithReplacements:()=>wG,getSyntheticLeadingComments:()=>OC,getSyntheticTrailingComments:()=>Sw,getTargetLabel:()=>bL,getTargetOfBindingOrAssignmentElement:()=>gy,getTemporaryModuleResolutionState:()=>cA,getTextOfConstantValue:()=>wte,getTextOfIdentifierOrLiteral:()=>yp,getTextOfJSDocComment:()=>$D,getTextOfJsxAttributeName:()=>lw,getTextOfJsxNamespacedName:()=>r3,getTextOfNode:()=>jc,getTextOfNodeFromSourceText:()=>dE,getTextOfPropertyName:()=>Kk,getThisContainer:()=>a_,getThisParameter:()=>Xv,getTokenAtPosition:()=>Ui,getTokenPosOfNode:()=>k1,getTokenSourceMapRange:()=>W1e,getTouchingPropertyName:()=>u_,getTouchingToken:()=>h6,getTrailingCommentRanges:()=>m1,getTrailingSemicolonDeferringWriter:()=>lW,getTransformFlagsSubtreeExclusions:()=>Ine,getTransformers:()=>gq,getTsBuildInfoEmitOutputFilePath:()=>c0,getTsConfigObjectLiteralExpression:()=>yE,getTsConfigPropArrayElementValue:()=>S5,getTypeAnnotationNode:()=>bre,getTypeArgumentOrTypeParameterList:()=>Koe,getTypeKeywordOfTypeOnlyImport:()=>yG,getTypeNode:()=>zne,getTypeNodeIfAccessible:()=>oP,getTypeParameterFromJsDoc:()=>sre,getTypeParameterOwner:()=>oye,getTypesPackageName:()=>u9,getUILocale:()=>$K,getUniqueName:()=>_S,getUniqueSymbolId:()=>mce,getUseDefineForClassFields:()=>s3,getWatchErrorSummaryDiagnosticMessage:()=>sH,getWatchFactory:()=>Eq,group:()=>U4,groupBy:()=>r7,guessIndentation:()=>hte,handleNoEmitOptions:()=>Vq,hasAbstractModifier:()=>Zv,hasAccessorModifier:()=>Gd,hasAmbientModifier:()=>dW,hasChangesInResolutions:()=>mz,hasChildOfKind:()=>qA,hasContextSensitiveParameters:()=>CF,hasDecorators:()=>Vf,hasDocComment:()=>Yoe,hasDynamicName:()=>ry,hasEffectiveModifier:()=>R_,hasEffectiveModifiers:()=>Y5,hasEffectiveReadonlyModifier:()=>FE,hasExtension:()=>kT,hasIndexSignature:()=>NG,hasInitializer:()=>Z0,hasInvalidEscape:()=>oW,hasJSDocNodes:()=>sf,hasJSDocParameterTags:()=>zee,hasJSFileExtension:()=>Kv,hasJsonModuleEmitEnabled:()=>_F,hasOnlyExpressionInitializer:()=>xb,hasOverrideModifier:()=>Z5,hasPossibleExternalModuleReference:()=>Ote,hasProperty:()=>Za,hasPropertyAccessExpressionWithName:()=>JA,hasQuestionToken:()=>MT,hasRecordedExternalHelpers:()=>xie,hasResolutionModeOverride:()=>xne,hasRestParameter:()=>_z,hasScopeMarker:()=>lte,hasStaticModifier:()=>Bc,hasSyntacticModifier:()=>Rn,hasSyntacticModifiers:()=>Pre,hasTSFileExtension:()=>GT,hasTabstop:()=>bne,hasTrailingDirectorySeparator:()=>qh,hasType:()=>r5,hasTypeArguments:()=>Wye,hasZeroOrOneAsteriskCharacter:()=>NW,helperString:()=>vV,hostGetCanonicalFileName:()=>Zh,hostUsesCaseSensitiveFileNames:()=>SC,idText:()=>on,identifierIsThisKeyword:()=>pW,identifierToKeywordKind:()=>v1,identity:()=>Do,identitySourceMapConsumer:()=>x9,ignoreSourceNewlines:()=>yV,ignoredPaths:()=>AD,importDefaultHelper:()=>uO,importFromModuleSpecifier:()=>TE,importNameElisionDisabled:()=>AW,importStarHelper:()=>xw,indexOfAnyCharCode:()=>LK,indexOfNode:()=>Zk,indicesOf:()=>hD,inferredTypesContainingFile:()=>u6,injectClassNamedEvaluationHelperBlockIfMissing:()=>A9,injectClassThisAssignmentIfMissing:()=>Zse,insertImports:()=>tP,insertLeadingStatement:()=>ove,insertSorted:()=>B0,insertStatementAfterCustomPrologue:()=>kb,insertStatementAfterStandardPrologue:()=>Iye,insertStatementsAfterCustomPrologue:()=>gz,insertStatementsAfterStandardPrologue:()=>mg,intersperse:()=>cg,intrinsicTagNameToString:()=>qW,introducesArgumentsExoticObject:()=>Hte,inverseJsxOptionMap:()=>D3,isAbstractConstructorSymbol:()=>Ure,isAbstractModifier:()=>Yne,isAccessExpression:()=>oo,isAccessibilityModifier:()=>oG,isAccessor:()=>X0,isAccessorModifier:()=>Kne,isAliasSymbolDeclaration:()=>Uye,isAliasableExpression:()=>J8,isAmbientModule:()=>su,isAmbientPropertyDeclaration:()=>Cz,isAnonymousFunctionDefinition:()=>DE,isAnyDirectorySeparator:()=>IJ,isAnyImportOrBareOrAccessedRequire:()=>Fte,isAnyImportOrReExport:()=>_8,isAnyImportSyntax:()=>Cb,isAnySupportedFileExtension:()=>m1e,isApplicableVersionedTypesKey:()=>_A,isArgumentExpressionOfElementAccess:()=>QH,isArray:()=>ts,isArrayBindingElement:()=>Q7,isArrayBindingOrAssignmentElement:()=>t8,isArrayBindingOrAssignmentPattern:()=>sz,isArrayBindingPattern:()=>s2,isArrayLiteralExpression:()=>ju,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>u0,isArrayTypeNode:()=>Aw,isArrowFunction:()=>po,isAsExpression:()=>Iw,isAssertClause:()=>aie,isAssertEntry:()=>K1e,isAssertionExpression:()=>Tb,isAssertsKeyword:()=>Xne,isAssignmentDeclaration:()=>SE,isAssignmentExpression:()=>nl,isAssignmentOperator:()=>Kh,isAssignmentPattern:()=>_E,isAssignmentTarget:()=>vg,isAsteriskToken:()=>Ew,isAsyncFunction:()=>EE,isAsyncModifier:()=>l3,isAutoAccessorPropertyDeclaration:()=>s_,isAwaitExpression:()=>py,isAwaitKeyword:()=>EV,isBigIntLiteral:()=>hO,isBinaryExpression:()=>Zr,isBinaryOperatorToken:()=>Iie,isBindableObjectDefinePropertyCall:()=>Ab,isBindableStaticAccessExpression:()=>qv,isBindableStaticElementAccessExpression:()=>L5,isBindableStaticNameExpression:()=>Nb,isBindingElement:()=>Ea,isBindingElementOfBareOrAccessedRequire:()=>tre,isBindingName:()=>bb,isBindingOrAssignmentElement:()=>nte,isBindingOrAssignmentPattern:()=>KD,isBindingPattern:()=>Ns,isBlock:()=>Cs,isBlockOrCatchScoped:()=>vz,isBlockScope:()=>Ez,isBlockScopedContainerTopLevel:()=>Ite,isBooleanLiteral:()=>uE,isBreakOrContinueStatement:()=>aE,isBreakStatement:()=>Q1e,isBuildInfoFile:()=>Eae,isBuilderProgram:()=>ooe,isBundle:()=>FV,isBundleFileTextLike:()=>Hre,isCallChain:()=>yb,isCallExpression:()=>Rs,isCallExpressionTarget:()=>UH,isCallLikeExpression:()=>jv,isCallLikeOrFunctionLikeExpression:()=>az,isCallOrNewExpression:()=>zd,isCallOrNewExpressionTarget:()=>qH,isCallSignatureDeclaration:()=>sx,isCallToHelper:()=>c3,isCaseBlock:()=>g3,isCaseClause:()=>zC,isCaseKeyword:()=>eie,isCaseOrDefaultClause:()=>e5,isCatchClause:()=>f2,isCatchClauseVariableDeclaration:()=>vne,isCatchClauseVariableDeclarationOrBindingElement:()=>bz,isCheckJsEnabledForFile:()=>sw,isChildOfNodeWithKind:()=>Oye,isCircularBuildOrder:()=>Ex,isClassDeclaration:()=>Xc,isClassElement:()=>Tl,isClassExpression:()=>kl,isClassInstanceProperty:()=>tte,isClassLike:()=>$n,isClassMemberModifier:()=>rz,isClassNamedEvaluationHelperBlock:()=>Cx,isClassOrTypeElement:()=>X7,isClassStaticBlockDeclaration:()=>ec,isClassThisAssignmentBlock:()=>R3,isCollapsedRange:()=>i1e,isColonToken:()=>Gne,isCommaExpression:()=>jw,isCommaListExpression:()=>p3,isCommaSequence:()=>S3,isCommaToken:()=>Hne,isComment:()=>NL,isCommonJsExportPropertyAssignment:()=>v5,isCommonJsExportedExpression:()=>Ute,isCompoundAssignment:()=>O3,isComputedNonLiteralName:()=>f8,isComputedPropertyName:()=>Pa,isConciseBody:()=>Z7,isConditionalExpression:()=>JC,isConditionalTypeNode:()=>lx,isConstTypeReference:()=>Qg,isConstructSignatureDeclaration:()=>Dw,isConstructorDeclaration:()=>sc,isConstructorTypeNode:()=>MC,isContextualKeyword:()=>J5,isContinueStatement:()=>X1e,isCustomPrologue:()=>g8,isDebuggerStatement:()=>Y1e,isDeclaration:()=>yu,isDeclarationBindingElement:()=>ZD,isDeclarationFileName:()=>Hl,isDeclarationName:()=>eh,isDeclarationNameOfEnumOrNamespace:()=>kW,isDeclarationReadonly:()=>m5,isDeclarationStatement:()=>pte,isDeclarationWithTypeParameterChildren:()=>Dz,isDeclarationWithTypeParameters:()=>Pz,isDecorator:()=>ql,isDecoratorTarget:()=>joe,isDefaultClause:()=>y3,isDefaultImport:()=>LT,isDefaultModifier:()=>SO,isDefaultedExpandoInitializer:()=>rre,isDeleteExpression:()=>nie,isDeleteTarget:()=>$z,isDeprecatedDeclaration:()=>eM,isDestructuringAssignment:()=>e0,isDiagnosticWithLocation:()=>MG,isDiskPathRoot:()=>FJ,isDoStatement:()=>G1e,isDocumentRegistryEntry:()=>lN,isDotDotDotToken:()=>vO,isDottedName:()=>LE,isDynamicName:()=>W5,isESSymbolIdentifier:()=>$ye,isEffectiveExternalModule:()=>FT,isEffectiveModuleDeclaration:()=>Nte,isEffectiveStrictModeSourceFile:()=>kz,isElementAccessChain:()=>XJ,isElementAccessExpression:()=>ko,isEmittedFileOfProgram:()=>Aae,isEmptyArrayLiteral:()=>Lre,isEmptyBindingElement:()=>Lee,isEmptyBindingPattern:()=>Oee,isEmptyObjectLiteral:()=>bW,isEmptyStatement:()=>AV,isEmptyStringLiteral:()=>Mz,isEntityName:()=>b_,isEntityNameExpression:()=>pc,isEnumConst:()=>zv,isEnumDeclaration:()=>L1,isEnumMember:()=>p2,isEqualityOperatorKind:()=>qL,isEqualsGreaterThanToken:()=>$ne,isExclamationToken:()=>Pw,isExcludedFile:()=>Hie,isExclusivelyTypeOnlyImportOrExport:()=>Oq,isExpandoPropertyDeclaration:()=>wF,isExportAssignment:()=>oc,isExportDeclaration:()=>Tc,isExportModifier:()=>nx,isExportName:()=>LO,isExportNamespaceAsDefaultDeclaration:()=>_5,isExportOrDefaultModifier:()=>Ww,isExportSpecifier:()=>vu,isExportsIdentifier:()=>wb,isExportsOrModuleExportsOrAlias:()=>g2,isExpression:()=>ot,isExpressionNode:()=>hg,isExpressionOfExternalModuleImportEqualsDeclaration:()=>Woe,isExpressionOfOptionalChainRoot:()=>H7,isExpressionStatement:()=>Cl,isExpressionWithTypeArguments:()=>s0,isExpressionWithTypeArgumentsInClassExtendsClause:()=>K5,isExternalModule:()=>Ic,isExternalModuleAugmentation:()=>Jv,isExternalModuleImportEqualsDeclaration:()=>C1,isExternalModuleIndicator:()=>r8,isExternalModuleNameRelative:()=>Sl,isExternalModuleReference:()=>Bm,isExternalModuleSymbol:()=>XA,isExternalOrCommonJsModule:()=>af,isFileLevelReservedGeneratedIdentifier:()=>YD,isFileLevelUniqueName:()=>l5,isFileProbablyExternalModule:()=>qw,isFirstDeclarationOfSymbolParameter:()=>xG,isFixablePromiseHandler:()=>o$,isForInOrOfStatement:()=>Gk,isForInStatement:()=>PO,isForInitializer:()=>Wf,isForOfStatement:()=>Fw,isForStatement:()=>Gb,isFunctionBlock:()=>Vv,isFunctionBody:()=>cz,isFunctionDeclaration:()=>$c,isFunctionExpression:()=>co,isFunctionExpressionOrArrowFunction:()=>t2,isFunctionLike:()=>As,isFunctionLikeDeclaration:()=>fo,isFunctionLikeKind:()=>wT,isFunctionLikeOrClassStaticBlockDeclaration:()=>Hk,isFunctionOrConstructorTypeNode:()=>rte,isFunctionOrModuleBlock:()=>nz,isFunctionSymbol:()=>ire,isFunctionTypeNode:()=>Mm,isFutureReservedKeyword:()=>qye,isGeneratedIdentifier:()=>Fo,isGeneratedPrivateIdentifier:()=>vb,isGetAccessor:()=>Y0,isGetAccessorDeclaration:()=>xf,isGetOrSetAccessorDeclaration:()=>U7,isGlobalDeclaration:()=>FTe,isGlobalScopeAugmentation:()=>Vd,isGrammarError:()=>Ete,isHeritageClause:()=>kf,isHoistedFunction:()=>h5,isHoistedVariableStatement:()=>y5,isIdentifier:()=>Ie,isIdentifierANonContextualKeyword:()=>Kz,isIdentifierName:()=>ure,isIdentifierOrThisTypeNode:()=>Die,isIdentifierPart:()=>g1,isIdentifierStart:()=>fg,isIdentifierText:()=>Sf,isIdentifierTypePredicate:()=>Gte,isIdentifierTypeReference:()=>dne,isIfStatement:()=>Hb,isIgnoredFileFromWildCardWatching:()=>xA,isImplicitGlob:()=>OW,isImportAttribute:()=>oie,isImportAttributeName:()=>ete,isImportAttributes:()=>fx,isImportCall:()=>of,isImportClause:()=>Rm,isImportDeclaration:()=>il,isImportEqualsDeclaration:()=>El,isImportKeyword:()=>_3,isImportMeta:()=>rC,isImportOrExportSpecifier:()=>DT,isImportOrExportSpecifierName:()=>dce,isImportSpecifier:()=>x_,isImportTypeAssertionContainer:()=>Z1e,isImportTypeNode:()=>Cg,isImportableFile:()=>$G,isInComment:()=>l0,isInCompoundLikeAssignment:()=>Gz,isInExpressionContext:()=>D5,isInJSDoc:()=>T8,isInJSFile:()=>Hr,isInJSXText:()=>Xoe,isInJsonFile:()=>A5,isInNonReferenceComment:()=>rce,isInReferenceComment:()=>tce,isInRightSideOfInternalImportEqualsDeclaration:()=>yL,isInString:()=>Dx,isInTemplateString:()=>nG,isInTopLevelContext:()=>k5,isInTypeQuery:()=>Mb,isIncrementalCompilation:()=>i3,isIndexSignatureDeclaration:()=>i2,isIndexedAccessTypeNode:()=>qb,isInferTypeNode:()=>Wb,isInfinityOrNaNString:()=>ZE,isInitializedProperty:()=>gA,isInitializedVariable:()=>K8,isInsideJsxElement:()=>wL,isInsideJsxElementOrAttribute:()=>$oe,isInsideNodeModules:()=>aN,isInsideTemplateLiteral:()=>GA,isInstanceOfExpression:()=>eF,isInstantiatedModule:()=>qU,isInterfaceDeclaration:()=>Bu,isInternalDeclaration:()=>fz,isInternalModuleImportEqualsDeclaration:()=>oC,isInternalName:()=>qV,isIntersectionTypeNode:()=>cx,isIntrinsicJsxName:()=>vC,isIterationStatement:()=>Q0,isJSDoc:()=>vd,isJSDocAllType:()=>fie,isJSDocAugmentsTag:()=>gx,isJSDocAuthorTag:()=>nve,isJSDocCallbackTag:()=>LV,isJSDocClassTag:()=>die,isJSDocCommentContainingNode:()=>t5,isJSDocConstructSignature:()=>fC,isJSDocDeprecatedTag:()=>JV,isJSDocEnumTag:()=>Lw,isJSDocFunctionType:()=>VC,isJSDocImplementsTag:()=>IO,isJSDocIndexSignature:()=>N5,isJSDocLikeText:()=>eU,isJSDocLink:()=>uie,isJSDocLinkCode:()=>_ie,isJSDocLinkLike:()=>IT,isJSDocLinkPlain:()=>tve,isJSDocMemberName:()=>M1,isJSDocNameReference:()=>v3,isJSDocNamepathType:()=>rve,isJSDocNamespaceBody:()=>Eye,isJSDocNode:()=>$k,isJSDocNonNullableType:()=>DO,isJSDocNullableType:()=>WC,isJSDocOptionalParameter:()=>cw,isJSDocOptionalType:()=>OV,isJSDocOverloadTag:()=>UC,isJSDocOverrideTag:()=>AO,isJSDocParameterTag:()=>bd,isJSDocPrivateTag:()=>RV,isJSDocPropertyLikeTag:()=>oE,isJSDocPropertyTag:()=>mie,isJSDocProtectedTag:()=>jV,isJSDocPublicTag:()=>MV,isJSDocReadonlyTag:()=>BV,isJSDocReturnTag:()=>NO,isJSDocSatisfiesExpression:()=>VW,isJSDocSatisfiesTag:()=>FO,isJSDocSeeTag:()=>ive,isJSDocSignature:()=>R1,isJSDocTag:()=>Xk,isJSDocTemplateTag:()=>Cp,isJSDocThisTag:()=>zV,isJSDocThrowsTag:()=>ave,isJSDocTypeAlias:()=>hp,isJSDocTypeAssertion:()=>HC,isJSDocTypeExpression:()=>d2,isJSDocTypeLiteral:()=>Yb,isJSDocTypeTag:()=>b3,isJSDocTypedefTag:()=>Zb,isJSDocUnknownTag:()=>sve,isJSDocUnknownType:()=>pie,isJSDocVariadicType:()=>wO,isJSXTagName:()=>aC,isJsonEqual:()=>xF,isJsonSourceFile:()=>gp,isJsxAttribute:()=>em,isJsxAttributeLike:()=>K7,isJsxAttributeName:()=>Tne,isJsxAttributes:()=>_2,isJsxChild:()=>s8,isJsxClosingElement:()=>l2,isJsxClosingFragment:()=>cie,isJsxElement:()=>Eg,isJsxExpression:()=>h3,isJsxFragment:()=>u2,isJsxNamespacedName:()=>yd,isJsxOpeningElement:()=>Kd,isJsxOpeningFragment:()=>dx,isJsxOpeningLikeElement:()=>Fu,isJsxOpeningLikeElementTagName:()=>Boe,isJsxSelfClosingElement:()=>Xb,isJsxSpreadAttribute:()=>mx,isJsxTagNameExpression:()=>fE,isJsxText:()=>ex,isJumpStatementTarget:()=>zA,isKeyword:()=>c_,isKeywordOrPunctuation:()=>B5,isKnownSymbol:()=>V8,isLabelName:()=>$H,isLabelOfLabeledStatement:()=>GH,isLabeledStatement:()=>c2,isLateVisibilityPaintedStatement:()=>p5,isLeftHandSideExpression:()=>S_,isLeftHandSideOfAssignment:()=>n1e,isLet:()=>g5,isLineBreak:()=>gu,isLiteralComputedPropertyDeclarationName:()=>B8,isLiteralExpression:()=>Rv,isLiteralExpressionOfObject:()=>ez,isLiteralImportTypeNode:()=>ty,isLiteralKind:()=>cE,isLiteralLikeAccess:()=>O5,isLiteralLikeElementAccess:()=>P8,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>SL,isLiteralTypeLikeExpression:()=>fve,isLiteralTypeLiteral:()=>ote,isLiteralTypeNode:()=>fy,isLocalName:()=>ah,isLogicalOperator:()=>Ire,isLogicalOrCoalescingAssignmentExpression:()=>gW,isLogicalOrCoalescingAssignmentOperator:()=>OE,isLogicalOrCoalescingBinaryExpression:()=>X8,isLogicalOrCoalescingBinaryOperator:()=>$8,isMappedTypeNode:()=>jC,isMemberName:()=>pg,isMetaProperty:()=>f3,isMethodDeclaration:()=>hc,isMethodOrAccessor:()=>AT,isMethodSignature:()=>Lm,isMinusToken:()=>CV,isMissingDeclaration:()=>eve,isMissingPackageJsonInfo:()=>lse,isModifier:()=>ta,isModifierKind:()=>$h,isModifierLike:()=>Oo,isModuleAugmentationExternal:()=>Tz,isModuleBlock:()=>Zd,isModuleBody:()=>ute,isModuleDeclaration:()=>Sc,isModuleExportsAccessExpression:()=>yg,isModuleIdentifier:()=>zz,isModuleName:()=>Nie,isModuleOrEnumDeclaration:()=>n8,isModuleReference:()=>mte,isModuleSpecifierLike:()=>jL,isModuleWithStringLiteralName:()=>f5,isNameOfFunctionDeclaration:()=>ZH,isNameOfModuleDeclaration:()=>YH,isNamedClassElement:()=>Sye,isNamedDeclaration:()=>Nu,isNamedEvaluation:()=>M_,isNamedEvaluationSource:()=>eW,isNamedExportBindings:()=>YJ,isNamedExports:()=>Xf,isNamedImportBindings:()=>lz,isNamedImports:()=>sh,isNamedImportsOrExports:()=>oF,isNamedTupleMember:()=>RC,isNamespaceBody:()=>Cye,isNamespaceExport:()=>jm,isNamespaceExportDeclaration:()=>Ow,isNamespaceImport:()=>my,isNamespaceReexportDeclaration:()=>ere,isNewExpression:()=>a2,isNewExpressionTarget:()=>Y3,isNoSubstitutionTemplateLiteral:()=>tx,isNode:()=>vye,isNodeArray:()=>Mv,isNodeArrayMultiLine:()=>zre,isNodeDescendantOf:()=>Hv,isNodeKind:()=>XD,isNodeLikeSystem:()=>SB,isNodeModulesDirectory:()=>I7,isNodeWithPossibleHoistedDeclaration:()=>ore,isNonContextualKeyword:()=>Zz,isNonExportDefaultModifier:()=>dve,isNonGlobalAmbientModule:()=>Sz,isNonGlobalDeclaration:()=>wce,isNonNullAccess:()=>Sne,isNonNullChain:()=>G7,isNonNullExpression:()=>_x,isNonStaticMethodOrAccessorWithPrivateName:()=>Vse,isNotEmittedOrPartiallyEmittedNode:()=>kye,isNotEmittedStatement:()=>IV,isNullishCoalesce:()=>QJ,isNumber:()=>zh,isNumericLiteral:()=>j_,isNumericLiteralName:()=>kg,isObjectBindingElementWithoutPropertyName:()=>ZA,isObjectBindingOrAssignmentElement:()=>e8,isObjectBindingOrAssignmentPattern:()=>iz,isObjectBindingPattern:()=>kp,isObjectLiteralElement:()=>uz,isObjectLiteralElementLike:()=>Yg,isObjectLiteralExpression:()=>ua,isObjectLiteralMethod:()=>Up,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>b5,isObjectTypeDeclaration:()=>UT,isOctalDigit:()=>M7,isOmittedExpression:()=>pl,isOptionalChain:()=>hu,isOptionalChainRoot:()=>iE,isOptionalDeclaration:()=>e3,isOptionalJSDocPropertyLikeTag:()=>ow,isOptionalTypeNode:()=>TO,isOuterExpression:()=>RO,isOutermostOptionalChain:()=>sE,isOverrideModifier:()=>Zne,isPackageJsonInfo:()=>s9,isPackedArrayLiteral:()=>zW,isParameter:()=>rs,isParameterDeclaration:()=>$v,isParameterPropertyDeclaration:()=>O_,isParameterPropertyModifier:()=>lE,isParenthesizedExpression:()=>l_,isParenthesizedTypeNode:()=>Vb,isParseTreeNode:()=>nE,isPartOfTypeNode:()=>gg,isPartOfTypeQuery:()=>w5,isPartiallyEmittedExpression:()=>EO,isPatternMatch:()=>a7,isPinnedComment:()=>u5,isPlainJsFile:()=>c8,isPlusToken:()=>kV,isPossiblyTypeArgumentPosition:()=>HA,isPostfixUnaryExpression:()=>DV,isPrefixUnaryExpression:()=>dy,isPrivateIdentifier:()=>Pi,isPrivateIdentifierClassElementDeclaration:()=>Iu,isPrivateIdentifierPropertyAccessExpression:()=>qk,isPrivateIdentifierSymbol:()=>fre,isProgramBundleEmitBuildInfo:()=>Hae,isProgramUptoDate:()=>zq,isPrologueDirective:()=>Vp,isPropertyAccessChain:()=>q7,isPropertyAccessEntityNameExpression:()=>Q8,isPropertyAccessExpression:()=>Sn,isPropertyAccessOrQualifiedName:()=>ste,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>ite,isPropertyAssignment:()=>zc,isPropertyDeclaration:()=>xs,isPropertyName:()=>Ac,isPropertyNameLiteral:()=>qd,isPropertySignature:()=>B_,isProtoSetter:()=>pre,isPrototypeAccess:()=>iy,isPrototypePropertyAssignment:()=>A8,isPunctuation:()=>Yz,isPushOrUnshiftIdentifier:()=>tW,isQualifiedName:()=>Xu,isQuestionDotToken:()=>bO,isQuestionOrExclamationToken:()=>Pie,isQuestionOrPlusOrMinusToken:()=>Aie,isQuestionToken:()=>uy,isRawSourceMap:()=>Bse,isReadonlyKeyword:()=>Qne,isReadonlyKeywordOrPlusOrMinusToken:()=>wie,isRecognizedTripleSlashComment:()=>hz,isReferenceFileLocation:()=>c6,isReferencedFile:()=>U1,isRegularExpressionLiteral:()=>TV,isRequireCall:()=>Gu,isRequireVariableStatement:()=>Bz,isRestParameter:()=>dg,isRestTypeNode:()=>xO,isReturnStatement:()=>Hp,isReturnStatementWithFixablePromiseHandler:()=>uM,isRightSideOfAccessExpression:()=>vW,isRightSideOfInstanceofExpression:()=>Ore,isRightSideOfPropertyAccess:()=>m6,isRightSideOfQualifiedName:()=>zoe,isRightSideOfQualifiedNameOrPropertyAccess:()=>ME,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>Fre,isRootedDiskPath:()=>F_,isSameEntityName:()=>cC,isSatisfiesExpression:()=>wV,isScopeMarker:()=>cte,isSemicolonClassElement:()=>iie,isSetAccessor:()=>Xh,isSetAccessorDeclaration:()=>J_,isShebangTrivia:()=>jJ,isShiftOperatorOrHigher:()=>YV,isShorthandAmbientModuleSymbol:()=>mE,isShorthandPropertyAssignment:()=>k_,isSignedNumericLiteral:()=>z5,isSimpleCopiableExpression:()=>y2,isSimpleInlineableExpression:()=>Wm,isSimpleParameter:()=>$se,isSimpleParameterList:()=>hA,isSingleOrDoubleQuote:()=>x8,isSourceFile:()=>Ni,isSourceFileFromLibrary:()=>x6,isSourceFileJS:()=>Ou,isSourceFileNotJS:()=>Rye,isSourceFileNotJson:()=>jz,isSourceMapping:()=>Jse,isSpecialPropertyDeclaration:()=>nre,isSpreadAssignment:()=>a0,isSpreadElement:()=>hd,isStatement:()=>Ei,isStatementButNotDeclaration:()=>i8,isStatementOrBlock:()=>dte,isStatementWithLocals:()=>Cte,isStatic:()=>Ms,isStaticModifier:()=>ix,isString:()=>ls,isStringAKeyword:()=>Hye,isStringANonContextualKeyword:()=>BT,isStringAndEmptyAnonymousObjectIntersection:()=>ece,isStringDoubleQuoted:()=>F5,isStringLiteral:()=>aa,isStringLiteralLike:()=>Ma,isStringLiteralOrJsxExpression:()=>gte,isStringLiteralOrTemplate:()=>bce,isStringOrNumericLiteralLike:()=>Tf,isStringOrRegularExpressionOrTemplateLiteral:()=>aG,isStringTextContainingNode:()=>tz,isSuperCall:()=>Pb,isSuperKeyword:()=>u3,isSuperOrSuperProperty:()=>Mye,isSuperProperty:()=>o_,isSupportedSourceFileName:()=>une,isSwitchStatement:()=>m3,isSyntaxList:()=>qC,isSyntheticExpression:()=>H1e,isSyntheticReference:()=>px,isTagName:()=>XH,isTaggedTemplateExpression:()=>o2,isTaggedTemplateTag:()=>Roe,isTemplateExpression:()=>kO,isTemplateHead:()=>rx,isTemplateLiteral:()=>NT,isTemplateLiteralKind:()=>$0,isTemplateLiteralToken:()=>Zee,isTemplateLiteralTypeNode:()=>tie,isTemplateLiteralTypeSpan:()=>PV,isTemplateMiddle:()=>xV,isTemplateMiddleOrTemplateTail:()=>$7,isTemplateSpan:()=>d3,isTemplateTail:()=>yO,isTextWhiteSpaceLike:()=>ace,isThis:()=>g6,isThisContainerOrFunctionBlock:()=>Yte,isThisIdentifier:()=>Yv,isThisInTypeQuery:()=>JT,isThisInitializedDeclaration:()=>C5,isThisInitializedObjectBindingExpression:()=>Kte,isThisProperty:()=>v8,isThisTypeNode:()=>Nw,isThisTypeParameter:()=>KE,isThisTypePredicate:()=>Lye,isThrowStatement:()=>NV,isToken:()=>PT,isTokenKind:()=>KJ,isTraceEnabled:()=>oh,isTransientSymbol:()=>wm,isTrivia:()=>gC,isTryStatement:()=>$b,isTupleTypeNode:()=>ox,isTypeAlias:()=>F8,isTypeAliasDeclaration:()=>Gp,isTypeAssertionExpression:()=>rie,isTypeDeclaration:()=>NC,isTypeElement:()=>Sb,isTypeKeyword:()=>eP,isTypeKeywordToken:()=>fG,isTypeKeywordTokenOrIdentifier:()=>OL,isTypeLiteralNode:()=>z_,isTypeNode:()=>ki,isTypeNodeKind:()=>PW,isTypeOfExpression:()=>BC,isTypeOnlyExportDeclaration:()=>Kee,isTypeOnlyImportDeclaration:()=>QD,isTypeOnlyImportOrExportDeclaration:()=>x1,isTypeOperatorNode:()=>Ub,isTypeParameterDeclaration:()=>Vo,isTypePredicateNode:()=>ww,isTypeQueryNode:()=>ax,isTypeReferenceNode:()=>$f,isTypeReferenceType:()=>n5,isTypeUsableAsPropertyName:()=>Sp,isUMDExportSymbol:()=>aF,isUnaryExpression:()=>oz,isUnaryExpressionWithWrite:()=>ate,isUnicodeIdentifierStart:()=>O7,isUnionTypeNode:()=>_y,isUnparsedNode:()=>ZJ,isUnparsedPrepend:()=>lie,isUnparsedSource:()=>Qb,isUnparsedTextLike:()=>Yee,isUrl:()=>yee,isValidBigIntString:()=>kF,isValidESSymbolDeclaration:()=>qte,isValidTypeOnlyAliasUseSite:()=>I1,isValueSignatureDeclaration:()=>cre,isVarAwaitUsing:()=>d8,isVarConst:()=>tC,isVarUsing:()=>m8,isVariableDeclaration:()=>hi,isVariableDeclarationInVariableStatement:()=>hE,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>Uv,isVariableDeclarationInitializedToRequire:()=>I5,isVariableDeclarationList:()=>dl,isVariableLike:()=>nC,isVariableLikeOrAccessor:()=>Vte,isVariableStatement:()=>ac,isVoidExpression:()=>ux,isWatchSet:()=>a1e,isWhileStatement:()=>$1e,isWhiteSpaceLike:()=>Xg,isWhiteSpaceSingleLine:()=>Jd,isWithStatement:()=>sie,isWriteAccess:()=>VT,isWriteOnlyAccess:()=>sF,isYieldExpression:()=>CO,jsxModeNeedsExplicitImport:()=>zG,keywordPart:()=>V_,last:()=>ka,lastOrUndefined:()=>Po,length:()=>gr,libMap:()=>XO,libs:()=>eA,lineBreakPart:()=>S6,linkNamePart:()=>fce,linkPart:()=>CG,linkTextPart:()=>zL,listFiles:()=>aH,loadModuleFromGlobalCache:()=>vse,loadWithModeAwareCache:()=>PA,makeIdentifierFromModuleName:()=>Ate,makeImport:()=>_0,makeImportIfNecessary:()=>sce,makeStringLiteral:()=>Ax,mangleScopedPackageName:()=>n6,map:()=>nr,mapAllOrFail:()=>iB,mapDefined:()=>Ri,mapDefinedEntries:()=>RK,mapDefinedIterator:()=>J4,mapEntries:()=>BK,mapIterator:()=>j4,mapOneOrMany:()=>jG,mapToDisplayParts:()=>Sy,matchFiles:()=>LW,matchPatternOrExact:()=>MW,matchedText:()=>KK,matchesExclude:()=>$O,maybeBind:()=>Os,maybeSetLocalizedDiagnosticMessages:()=>Zre,memoize:()=>Hu,memoizeCached:()=>HK,memoizeOne:()=>Cm,memoizeWeak:()=>p0e,metadataHelper:()=>qF,min:()=>gB,minAndMax:()=>fne,missingFileModifiedTime:()=>rf,modifierToFlag:()=>WT,modifiersToFlags:()=>$d,moduleOptionDeclaration:()=>hU,moduleResolutionIsEqualTo:()=>xte,moduleResolutionNameAndModeGetter:()=>$9,moduleResolutionOptionDeclarations:()=>QO,moduleResolutionSupportsPackageJsonExportsAndImports:()=>HT,moduleResolutionUsesNodeModules:()=>LL,moduleSpecifiers:()=>h2,moveEmitHelpers:()=>Bne,moveRangeEnd:()=>nF,moveRangePastDecorators:()=>th,moveRangePastModifiers:()=>Xd,moveRangePos:()=>A1,moveSyntheticComments:()=>Mne,mutateMap:()=>zE,mutateMapSkippingNewValues:()=>Tg,needsParentheses:()=>VL,needsScopeMarker:()=>Y7,newCaseClauseTracker:()=>nM,newPrivateEnvironment:()=>Hse,noEmitNotification:()=>yA,noEmitSubstitution:()=>J3,noTransformers:()=>hq,noTruncationMaximumTruncationLength:()=>IF,nodeCanBeDecorated:()=>P5,nodeHasName:()=>qD,nodeIsDecorated:()=>sC,nodeIsMissing:()=>_c,nodeIsPresent:()=>dp,nodeIsSynthesized:()=>xo,nodeModuleNameResolver:()=>pse,nodeModulesPathPart:()=>zm,nodeNextJsonConfigResolver:()=>dse,nodeOrChildIsDecorated:()=>S8,nodeOverlapsWithStartEnd:()=>TL,nodePosToString:()=>Dye,nodeSeenTracker:()=>wx,nodeStartsNewLexicalEnvironment:()=>rW,nodeToDisplayParts:()=>PTe,noop:()=>Ca,noopFileWatcher:()=>p6,normalizePath:()=>Hs,normalizeSlashes:()=>iu,not:()=>c7,notImplemented:()=>ks,notImplementedResolver:()=>R9,nullNodeConverters:()=>lV,nullParenthesizerRules:()=>cV,nullTransformationContext:()=>z3,objectAllocator:()=>Il,operatorPart:()=>nP,optionDeclarations:()=>Pg,optionMapToObject:()=>qO,optionsAffectingProgramStructure:()=>TU,optionsForBuild:()=>kU,optionsForWatch:()=>ZC,optionsHaveChanges:()=>Qk,optionsHaveModuleResolutionChanges:()=>bte,or:()=>pd,orderedRemoveItem:()=>Ik,orderedRemoveItemAt:()=>z0,outFile:()=>no,packageIdToPackageName:()=>o5,packageIdToString:()=>K0,paramHelper:()=>HF,parameterIsThisKeyword:()=>Qv,parameterNamePart:()=>cce,parseBaseNodeFactory:()=>sU,parseBigInt:()=>pne,parseBuildCommand:()=>Hve,parseCommandLine:()=>Uve,parseCommandLineWorker:()=>cU,parseConfigFileTextToJson:()=>uU,parseConfigFileWithSystem:()=>PSe,parseConfigHostFromCompilerHostLike:()=>G9,parseCustomTypeOption:()=>UO,parseIsolatedEntityName:()=>yx,parseIsolatedJSDocComment:()=>jie,parseJSDocTypeExpressionForTests:()=>Nve,parseJsonConfigFileContent:()=>a2e,parseJsonSourceFileConfigFileContent:()=>Yw,parseJsonText:()=>Gw,parseListTypeOption:()=>Jie,parseNodeFactory:()=>Jm,parseNodeModuleFromPath:()=>oA,parsePackageName:()=>uA,parsePseudoBigInt:()=>$E,parseValidBigInt:()=>JW,patchWriteFileEnsuringDirectory:()=>gee,pathContainsNodeModules:()=>W1,pathIsAbsolute:()=>Q4,pathIsBareSpecifier:()=>OJ,pathIsRelative:()=>nf,patternText:()=>ZK,perfLogger:()=>wu,performIncrementalCompilation:()=>NSe,performance:()=>uee,plainJSErrors:()=>X9,positionBelongsToNode:()=>eG,positionIsASICandidate:()=>GL,positionIsSynthesized:()=>gd,positionsAreOnSameLine:()=>qf,preProcessFile:()=>exe,probablyUsesSemicolons:()=>iN,processCommentPragmas:()=>nU,processPragmasIntoFields:()=>iU,processTaggedTemplateExpression:()=>uq,programContainsEsModules:()=>ice,programContainsModules:()=>nce,projectReferenceIsEqualTo:()=>dz,propKeyHelper:()=>sO,propertyNamePart:()=>lce,pseudoBigIntToString:()=>e2,punctuationPart:()=>Tu,pushIfUnique:()=>zf,quote:()=>aP,quotePreferenceFromString:()=>gG,rangeContainsPosition:()=>WA,rangeContainsPositionExclusive:()=>VA,rangeContainsRange:()=>Df,rangeContainsRangeExclusive:()=>Voe,rangeContainsStartEnd:()=>UA,rangeEndIsOnSameLineAsRangeStart:()=>Z8,rangeEndPositionsAreOnSameLine:()=>Bre,rangeEquals:()=>lB,rangeIsOnSingleLine:()=>jb,rangeOfNode:()=>jW,rangeOfTypeParameters:()=>BW,rangeOverlapsWithStartEnd:()=>Z3,rangeStartIsOnSameLineAsRangeEnd:()=>Jre,rangeStartPositionsAreOnSameLine:()=>iF,readBuilderProgram:()=>oL,readConfigFile:()=>Xw,readHelper:()=>nO,readJson:()=>RE,readJsonConfigFile:()=>Vie,readJsonOrUndefined:()=>SW,reduceEachLeadingCommentRange:()=>kee,reduceEachTrailingCommentRange:()=>Cee,reduceLeft:()=>Du,reduceLeftIterator:()=>qg,reducePathComponents:()=>hb,refactor:()=>Fx,regExpEscape:()=>p1e,relativeComplement:()=>JK,removeAllComments:()=>vw,removeEmitHelper:()=>V1e,removeExtension:()=>iw,removeFileExtension:()=>$u,removeIgnoredPath:()=>Z9,removeMinAndVersionNumbers:()=>hB,removeOptionality:()=>Qoe,removePrefix:()=>H4,removeSuffix:()=>Nk,removeTrailingDirectorySeparator:()=>d1,repeatString:()=>QA,replaceElement:()=>fB,replaceFirstStar:()=>XT,resolutionExtensionIsTSOrJson:()=>qE,resolveConfigFileProjectName:()=>hH,resolveJSModule:()=>_se,resolveLibrary:()=>o9,resolveModuleName:()=>t6,resolveModuleNameFromCache:()=>V2e,resolvePackageNameToPackageJson:()=>PU,resolvePath:()=>U0,resolveProjectReferencePath:()=>l6,resolveTripleslashReference:()=>z9,resolveTypeReferenceDirective:()=>ose,resolvingEmptyArray:()=>NF,restHelper:()=>KF,returnFalse:()=>fd,returnNoopFileWatcher:()=>d6,returnTrue:()=>Wh,returnUndefined:()=>f1,returnsPromise:()=>a$,runInitializersHelper:()=>$F,sameFlatMap:()=>MK,sameMap:()=>rl,sameMapping:()=>Abe,scanShebangTrivia:()=>BJ,scanTokenAtPosition:()=>Jte,scanner:()=>xu,screenStartingMessageCodes:()=>aL,semanticDiagnosticsOptionDeclarations:()=>vU,serializeCompilerOptions:()=>HO,server:()=>YDe,servicesVersion:()=>Yle,setCommentRange:()=>Nc,setConfigFileInOptions:()=>mU,setConstantValue:()=>jne,setEachParent:()=>AC,setEmitFlags:()=>Qr,setFunctionNameHelper:()=>aO,setGetSourceFileAsHashVersioned:()=>sL,setIdentifierAutoGenerate:()=>Tw,setIdentifierGeneratedImportReference:()=>Wne,setIdentifierTypeArguments:()=>i0,setInternalEmitFlags:()=>bw,setLocalizedDiagnosticMessages:()=>Yre,setModuleDefaultHelper:()=>lO,setNodeFlags:()=>gne,setObjectAllocator:()=>Qre,setOriginalNode:()=>dn,setParent:()=>ba,setParentRecursive:()=>ay,setPrivateIdentifier:()=>rS,setSnippetElement:()=>hV,setSourceMapRange:()=>sa,setStackTraceLimit:()=>O0e,setStartsOnNewLine:()=>zF,setSyntheticLeadingComments:()=>O1,setSyntheticTrailingComments:()=>YT,setSys:()=>B0e,setSysLog:()=>dee,setTextRange:()=>Ke,setTextRangeEnd:()=>wC,setTextRangePos:()=>XE,setTextRangePosEnd:()=>Fm,setTextRangePosWidth:()=>QE,setTokenSourceMapRange:()=>Lne,setTypeNode:()=>Jne,setUILocale:()=>XK,setValueDeclaration:()=>N8,shouldAllowImportingTsExtension:()=>i6,shouldPreserveConstEnums:()=>n2,shouldUseUriStyleNodeCoreModules:()=>tM,showModuleSpecifier:()=>qre,signatureHasLiteralTypes:()=>HU,signatureHasRestParameter:()=>Su,signatureToDisplayParts:()=>EG,single:()=>_B,singleElementArray:()=>TT,singleIterator:()=>jK,singleOrMany:()=>xm,singleOrUndefined:()=>Tm,skipAlias:()=>Ul,skipAssertions:()=>lve,skipConstraint:()=>pG,skipOuterExpressions:()=>xc,skipParentheses:()=>Va,skipPartiallyEmittedExpressions:()=>zp,skipTrivia:()=>ca,skipTypeChecking:()=>GE,skipTypeParentheses:()=>j8,skipWhile:()=>tee,sliceAfter:()=>RW,some:()=>ct,sort:()=>fb,sortAndDeduplicate:()=>W4,sortAndDeduplicateDiagnostics:()=>zk,sourceFileAffectingCompilerOptions:()=>YO,sourceFileMayBeEmitted:()=>Ob,sourceMapCommentRegExp:()=>S9,sourceMapCommentRegExpDontCareLineStart:()=>eq,spacePart:()=>cc,spanMap:()=>sB,spreadArrayHelper:()=>iO,stableSort:()=>Bh,startEndContainsRange:()=>KH,startEndOverlapsWithStartEnd:()=>xL,startOnNewLine:()=>bu,startTracing:()=>_ee,startsWith:()=>Vi,startsWithDirectory:()=>MJ,startsWithUnderscore:()=>JG,startsWithUseStrict:()=>Sie,stringContainsAt:()=>Dce,stringToToken:()=>Ov,stripQuotes:()=>vp,supportedDeclarationExtensions:()=>pw,supportedJSExtensions:()=>sV,supportedJSExtensionsFlat:()=>FC,supportedLocaleDirectories:()=>pz,supportedTSExtensions:()=>IC,supportedTSExtensionsFlat:()=>iV,supportedTSImplementationExtensions:()=>dw,suppressLeadingAndTrailingTrivia:()=>U_,suppressLeadingTrivia:()=>AG,suppressTrailingTrivia:()=>hce,symbolEscapedNameNoDefault:()=>RL,symbolName:()=>Xo,symbolNameNoDefault:()=>ML,symbolPart:()=>oce,symbolToDisplayParts:()=>iP,syntaxMayBeASICandidate:()=>HG,syntaxRequiresTrailingSemicolonOrASI:()=>HL,sys:()=>zl,sysLog:()=>DD,tagNamesAreEquivalent:()=>B1,takeWhile:()=>u7,targetOptionDeclaration:()=>rA,templateObjectHelper:()=>rO,testFormatSettings:()=>Moe,textChangeRangeIsUnchanged:()=>Iee,textChangeRangeNewSpan:()=>rE,textChanges:()=>Kr,textOrKeywordPart:()=>kG,textPart:()=>Af,textRangeContainsPositionInclusive:()=>WD,textSpanContainsPosition:()=>WJ,textSpanContainsTextSpan:()=>Dee,textSpanEnd:()=>bc,textSpanIntersection:()=>Nee,textSpanIntersectsWith:()=>B7,textSpanIntersectsWithPosition:()=>Aee,textSpanIntersectsWithTextSpan:()=>aye,textSpanIsEmpty:()=>Pee,textSpanOverlap:()=>wee,textSpanOverlapsWith:()=>sye,textSpansEqual:()=>b6,textToKeywordObj:()=>JD,timestamp:()=>To,toArray:()=>bT,toBuilderFileEmit:()=>Xae,toBuilderStateFileInfoForMultiEmit:()=>$ae,toEditorSettings:()=>xN,toFileNameLowerCase:()=>km,toLowerCase:()=>qK,toPath:()=>No,toProgramEmitPending:()=>Qae,tokenIsIdentifierOrKeyword:()=>Au,tokenIsIdentifierOrKeywordOrGreaterThan:()=>Tee,tokenToString:()=>Ws,trace:()=>Zi,tracing:()=>qr,tracingEnabled:()=>kD,transform:()=>Zke,transformClassFields:()=>nae,transformDeclarations:()=>mq,transformECMAScriptModule:()=>dq,transformES2015:()=>yae,transformES2016:()=>hae,transformES2017:()=>oae,transformES2018:()=>cae,transformES2019:()=>lae,transformES2020:()=>uae,transformES2021:()=>_ae,transformES5:()=>vae,transformESDecorators:()=>aae,transformESNext:()=>fae,transformGenerators:()=>bae,transformJsx:()=>gae,transformLegacyDecorators:()=>sae,transformModule:()=>pq,transformNamedEvaluation:()=>W_,transformNodeModule:()=>Tae,transformNodes:()=>vA,transformSystemModule:()=>Sae,transformTypeScript:()=>rae,transpile:()=>cxe,transpileModule:()=>Gce,transpileOptionValueCompilerOptions:()=>xU,tryAddToSet:()=>_1,tryAndIgnoreErrors:()=>QL,tryCast:()=>Wn,tryDirectoryExists:()=>XL,tryExtractTSExtension:()=>tF,tryFileExists:()=>sN,tryGetClassExtendingExpressionWithTypeArguments:()=>hW,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>yW,tryGetDirectories:()=>$L,tryGetExtensionFromPath:()=>nh,tryGetImportFromModuleSpecifier:()=>I8,tryGetJSDocSatisfiesTypeNode:()=>DF,tryGetModuleNameFromFile:()=>Jw,tryGetModuleSpecifierFromDeclaration:()=>lC,tryGetNativePerformanceHooks:()=>oee,tryGetPropertyAccessOrIdentifierToString:()=>Y8,tryGetPropertyNameOfBindingOrAssignmentElement:()=>BO,tryGetSourceMappingURL:()=>jse,tryGetTextOfPropertyName:()=>gE,tryIOAndConsumeErrors:()=>YL,tryParseJson:()=>rF,tryParsePattern:()=>DC,tryParsePatterns:()=>SF,tryParseRawSourceMap:()=>ZU,tryReadDirectory:()=>FG,tryReadFile:()=>C3,tryRemoveDirectoryPrefix:()=>FW,tryRemoveExtension:()=>_ne,tryRemovePrefix:()=>bB,tryRemoveSuffix:()=>YK,typeAcquisitionDeclarations:()=>nA,typeAliasNamePart:()=>uce,typeDirectiveIsEqualTo:()=>kte,typeKeywords:()=>iM,typeParameterNamePart:()=>_ce,typeToDisplayParts:()=>eN,unchangedPollThresholds:()=>wD,unchangedTextChangeRange:()=>a8,unescapeLeadingUnderscores:()=>xi,unmangleScopedPackageName:()=>fA,unorderedRemoveItem:()=>ST,unorderedRemoveItemAt:()=>yB,unreachableCodeIsError:()=>ene,unusedLabelIsError:()=>tne,unwrapInnermostStatementOfLabel:()=>Oz,updateErrorForNoInputFiles:()=>GO,updateLanguageServiceSourceFile:()=>V$,updateMissingFilePathsWatch:()=>Cq,updateResolutionField:()=>KC,updateSharedExtendedConfigFileWatcher:()=>B9,updateSourceFile:()=>tU,updateWatchingWildcardDirectories:()=>TA,usesExtensionsOnImports:()=>cne,usingSingleLineStringWriter:()=>pE,utf16EncodeAsString:()=>Jk,validateLocaleAndSetLanguage:()=>cye,valuesHelper:()=>oO,version:()=>yf,versionMajorMinor:()=>R0,visitArray:()=>mA,visitCommaListElements:()=>b9,visitEachChild:()=>ur,visitFunctionBody:()=>Pf,visitIterationBody:()=>Qu,visitLexicalEnvironment:()=>QU,visitNode:()=>qe,visitNodes:()=>Dr,visitParameterList:()=>tc,walkUpBindingElementsAndPatterns:()=>Wk,walkUpLexicalEnvironments:()=>qse,walkUpOuterExpressions:()=>Tie,walkUpParenthesizedExpressions:()=>Yh,walkUpParenthesizedTypes:()=>R8,walkUpParenthesizedTypesAndGetParentAndChild:()=>lre,whitespaceOrMapCommentRegExp:()=>T9,writeCommentRange:()=>TC,writeFile:()=>AE,writeFileEnsuringDirectories:()=>fW,zipWith:()=>mD});var ky=wt({"src/server/_namespaces/ts.ts"(){Fs(),MA(),qn(),aY(),hS()}}),KDe={};vl(KDe,{ActionInvalidate:()=>OA,ActionPackageInstalled:()=>LA,ActionSet:()=>FA,ActionWatchTypingLocations:()=>Q3,Arguments:()=>kH,AutoImportProviderProject:()=>bY,AuxiliaryProject:()=>yY,CharRangeSection:()=>FY,CloseFileWatcherEvent:()=>ER,CommandNames:()=>kde,ConfigFileDiagEvent:()=>SR,ConfiguredProject:()=>SY,CreateDirectoryWatcherEvent:()=>CR,CreateFileWatcherEvent:()=>kR,Errors:()=>g0,EventBeginInstallTypes:()=>pL,EventEndInstallTypes:()=>dL,EventInitializationFailed:()=>xH,EventTypesRegistry:()=>fL,ExternalProject:()=>dR,GcTimer:()=>_Y,InferredProject:()=>hY,LargeFileReferencedEvent:()=>bR,LineIndex:()=>kP,LineLeaf:()=>rI,LineNode:()=>Ux,LogLevel:()=>oY,Msg:()=>cY,OpenFileInfoTelemetryEvent:()=>CY,Project:()=>gS,ProjectInfoTelemetryEvent:()=>xR,ProjectKind:()=>TP,ProjectLanguageServiceStateEvent:()=>TR,ProjectLoadingFinishEvent:()=>vR,ProjectLoadingStartEvent:()=>yR,ProjectReferenceProjectLoadKind:()=>DY,ProjectService:()=>wY,ProjectsUpdatedInBackgroundEvent:()=>KN,ScriptInfo:()=>dY,ScriptVersionCache:()=>AR,Session:()=>Ede,TextStorage:()=>pY,ThrottledOperations:()=>uY,TypingsCache:()=>mY,TypingsInstallerAdapter:()=>wde,allFilesAreJsOrDts:()=>rde,allRootFilesAreJsOrDts:()=>tde,asNormalizedPath:()=>EDe,convertCompilerOptions:()=>mR,convertFormatOptions:()=>z6,convertScriptKindName:()=>xY,convertTypeAcquisition:()=>sde,convertUserPreferences:()=>ade,convertWatchOptions:()=>ZN,countEachFileTypes:()=>QN,createInstallTypingsRequest:()=>Ope,createModuleSpecifierCache:()=>gde,createNormalizedPathMap:()=>PDe,createPackageJsonCache:()=>hde,createSortedArray:()=>Bpe,emptyArray:()=>Wc,findArgument:()=>dTe,forEachResolvedProjectReferenceProject:()=>W6,formatDiagnosticToProtocol:()=>tI,formatMessage:()=>yde,getBaseConfigFileName:()=>lY,getLocationInNewDocument:()=>Tde,hasArgument:()=>pTe,hasNoTypeScriptSource:()=>nde,indent:()=>X3,isBackgroundProject:()=>YN,isConfigFile:()=>fde,isConfiguredProject:()=>Y1,isDynamicFileName:()=>XN,isExternalProject:()=>gY,isInferredProject:()=>J6,isInferredProjectName:()=>Lpe,makeAutoImportProviderProjectName:()=>Rpe,makeAuxiliaryProjectName:()=>jpe,makeInferredProjectName:()=>Mpe,maxFileSize:()=>hR,maxProgramSizeForNonTsFiles:()=>gR,normalizedPathToPath:()=>$N,nowString:()=>mTe,nullCancellationToken:()=>xde,nullTypingsInstaller:()=>pR,projectContainsInfoDirectly:()=>Wx,protocol:()=>ede,removeSorted:()=>DDe,stringifyIndented:()=>q1,toEvent:()=>vde,toNormalizedPath:()=>Jo,tryConvertScriptKindName:()=>TY,typingsInstaller:()=>Ipe,updateProjectIfDirty:()=>uf});var Net=wt({"src/typescript/_namespaces/ts.server.ts"(){mL(),hS()}}),e8e={};vl(e8e,{ANONYMOUS:()=>sM,AccessFlags:()=>ZB,AssertionLevel:()=>xB,AssignmentDeclarationKind:()=>oJ,AssignmentKind:()=>XW,Associativity:()=>YW,BreakpointResolver:()=>Q$,BuilderFileEmit:()=>eH,BuilderProgramKind:()=>tH,BuilderState:()=>Qp,BundleFileSectionKind:()=>CJ,CallHierarchy:()=>Ox,CharacterCodes:()=>yJ,CheckFlags:()=>GB,CheckMode:()=>h9,ClassificationType:()=>VH,ClassificationTypeNames:()=>WH,CommentDirectiveType:()=>IB,Comparison:()=>R4,CompletionInfoFlags:()=>LH,CompletionTriggerKind:()=>AH,Completions:()=>Bx,ContainerFlags:()=>VU,ContextFlags:()=>jB,Debug:()=>E,DiagnosticCategory:()=>ED,Diagnostics:()=>p,DocumentHighlights:()=>cM,ElementFlags:()=>YB,EmitFlags:()=>P7,EmitHint:()=>TJ,EmitOnly:()=>OB,EndOfLineState:()=>jH,EnumKind:()=>HB,ExitStatus:()=>LB,ExportKind:()=>YG,Extension:()=>vJ,ExternalEmitHelpers:()=>SJ,FileIncludeKind:()=>y7,FilePreprocessingDiagnosticsKind:()=>FB,FileSystemEntryKind:()=>NJ,FileWatcherEventKind:()=>AJ,FindAllReferences:()=>lo,FlattenLevel:()=>oq,FlowFlags:()=>CD,ForegroundColorEscapeSequences:()=>Hq,FunctionFlags:()=>QW,GeneratedIdentifierFlags:()=>h7,GetLiteralTextFlags:()=>HW,GoToDefinition:()=>L6,HighlightSpanKind:()=>IH,IdentifierNameMap:()=>xx,IdentifierNameMultiMap:()=>aq,ImportKind:()=>QG,ImportsNotUsedAsValues:()=>pJ,IndentStyle:()=>FH,IndexFlags:()=>KB,IndexKind:()=>rJ,InferenceFlags:()=>sJ,InferencePriority:()=>iJ,InlayHintKind:()=>NH,InlayHints:()=>WQ,InternalEmitFlags:()=>bJ,InternalSymbolName:()=>$B,InvalidatedProjectKind:()=>TH,JSDocParsingMode:()=>DJ,JsDoc:()=>Q1,JsTyping:()=>nm,JsxEmit:()=>fJ,JsxFlags:()=>AB,JsxReferenceKind:()=>eJ,LanguageServiceMode:()=>PH,LanguageVariant:()=>gJ,LexicalEnvironmentFlags:()=>kJ,ListFormat:()=>EJ,LogLevel:()=>CB,MemberOverrideStatus:()=>MB,ModifierFlags:()=>m7,ModuleDetectionKind:()=>cJ,ModuleInstanceState:()=>WU,ModuleKind:()=>$4,ModuleResolutionKind:()=>Rk,ModuleSpecifierEnding:()=>aV,NavigateTo:()=>Qce,NavigationBar:()=>ale,NewLineKind:()=>dJ,NodeBuilderFlags:()=>BB,NodeCheckFlags:()=>XB,NodeFactoryFlags:()=>dV,NodeFlags:()=>d7,NodeResolutionFeatures:()=>BU,ObjectFlags:()=>T7,OperationCanceledException:()=>Mk,OperatorPrecedence:()=>ZW,OrganizeImports:()=>Yp,OrganizeImportsMode:()=>wH,OuterExpressionKinds:()=>xJ,OutliningElementsCollector:()=>HQ,OutliningSpanKind:()=>MH,OutputFileType:()=>RH,PackageJsonAutoImportPreference:()=>EH,PackageJsonDependencyGroup:()=>CH,PatternMatchKind:()=>lM,PollingInterval:()=>D7,PollingWatchKind:()=>_J,PragmaKindFlags:()=>PJ,PrivateIdentifierKind:()=>SV,ProcessLevel:()=>_q,ProgramUpdateLevel:()=>Pq,QuotePreference:()=>UG,RelationComparisonResult:()=>g7,Rename:()=>aR,ScriptElementKind:()=>JH,ScriptElementKindModifier:()=>zH,ScriptKind:()=>k7,ScriptSnapshot:()=>hL,ScriptTarget:()=>mJ,SemanticClassificationFormat:()=>DH,SemanticMeaning:()=>VG,SemicolonPreference:()=>OH,SignatureCheckMode:()=>y9,SignatureFlags:()=>x7,SignatureHelp:()=>JN,SignatureKind:()=>tJ,SmartSelectionRange:()=>XQ,SnippetKind:()=>E7,SortKind:()=>TB,StructureIsReused:()=>v7,SymbolAccessibility:()=>WB,SymbolDisplay:()=>m0,SymbolDisplayPartKind:()=>RA,SymbolFlags:()=>b7,SymbolFormatFlags:()=>zB,SyntaxKind:()=>p7,SyntheticSymbolKind:()=>VB,Ternary:()=>aJ,ThrottledCancellationToken:()=>X$,TokenClass:()=>BH,TokenFlags:()=>NB,TransformFlags:()=>C7,TypeFacts:()=>g9,TypeFlags:()=>S7,TypeFormatFlags:()=>JB,TypeMapKind:()=>nJ,TypePredicateKind:()=>UB,TypeReferenceSerializationKind:()=>qB,UnionReduction:()=>RB,UpToDateStatusType:()=>yH,VarianceFlags:()=>QB,Version:()=>Rp,VersionRange:()=>TD,WatchDirectoryFlags:()=>hJ,WatchDirectoryKind:()=>uJ,WatchFileKind:()=>lJ,WatchLogLevel:()=>Dq,WatchType:()=>sl,accessPrivateIdentifier:()=>Gse,addDisposableResourceHelper:()=>mO,addEmitFlags:()=>Qd,addEmitHelper:()=>ZT,addEmitHelpers:()=>ih,addInternalEmitFlags:()=>QT,addNodeFactoryPatcher:()=>M1e,addObjectAllocatorPatcher:()=>Xre,addRange:()=>Nn,addRelatedInfo:()=>la,addSyntheticLeadingComment:()=>o3,addSyntheticTrailingComment:()=>WF,addToSeen:()=>qp,advancedAsyncSuperHelper:()=>Cw,affectsDeclarationPathOptionDeclarations:()=>SU,affectsEmitOptionDeclarations:()=>bU,allKeysStartWithDot:()=>l9,altDirectorySeparator:()=>OD,and:()=>o7,append:()=>_r,appendIfUnique:()=>Hg,arrayFrom:()=>gs,arrayIsEqualTo:()=>_d,arrayIsHomogeneous:()=>mne,arrayIsSorted:()=>KI,arrayOf:()=>WK,arrayReverseIterator:()=>cB,arrayToMap:()=>Iv,arrayToMultiMap:()=>vD,arrayToNumericMap:()=>UK,arraysEqual:()=>gD,assertType:()=>g0e,assign:()=>wk,assignHelper:()=>XF,asyncDelegator:()=>YF,asyncGeneratorHelper:()=>QF,asyncSuperHelper:()=>kw,asyncValues:()=>ZF,attachFileToDiagnostics:()=>qT,awaitHelper:()=>KT,awaiterHelper:()=>eO,base64decode:()=>jre,base64encode:()=>Rre,binarySearch:()=>Jh,binarySearchKey:()=>yT,bindSourceFile:()=>Tse,breakIntoCharacterSpans:()=>Vce,breakIntoWordSpans:()=>Uce,buildLinkParts:()=>pce,buildOpts:()=>ZO,buildOverload:()=>bDe,bundlerModuleNameResolver:()=>fse,canBeConvertedToAsync:()=>c$,canHaveDecorators:()=>eS,canHaveExportModifier:()=>aw,canHaveFlowNode:()=>O8,canHaveIllegalDecorators:()=>QV,canHaveIllegalModifiers:()=>Eie,canHaveIllegalType:()=>_ve,canHaveIllegalTypeParameters:()=>Cie,canHaveJSDoc:()=>L8,canHaveLocals:()=>Dm,canHaveModifiers:()=>$p,canHaveSymbol:()=>Wd,canJsonReportNoInputFiles:()=>E3,canProduceDiagnostics:()=>I9,canUsePropertyAccess:()=>WW,canWatchAffectingLocation:()=>eoe,canWatchAtTypes:()=>Kae,canWatchDirectoryOrFile:()=>K9,cartesianProduct:()=>eee,cast:()=>Ls,chainBundle:()=>Xp,chainDiagnosticMessages:()=>vs,changeAnyExtension:()=>ID,changeCompilerHostLikeToUseCache:()=>CA,changeExtension:()=>N1,changeFullExtension:()=>vee,changesAffectModuleResolution:()=>i5,changesAffectingProgramStructure:()=>Ste,childIsDecorated:()=>vE,classElementOrClassElementParameterIsDecorated:()=>Lz,classHasClassThisAssignment:()=>cq,classHasDeclaredOrExplicitlyAssignedName:()=>lq,classHasExplicitlyAssignedName:()=>w9,classOrConstructorParameterIsDecorated:()=>Qh,classPrivateFieldGetHelper:()=>fO,classPrivateFieldInHelper:()=>dO,classPrivateFieldSetHelper:()=>pO,classicNameResolver:()=>yse,classifier:()=>tue,cleanExtendedConfigCache:()=>J9,clear:()=>lg,clearMap:()=>T_,clearSharedExtendedConfigFileWatcher:()=>kq,climbPastPropertyAccess:()=>vL,climbPastPropertyOrElementAccess:()=>Joe,clone:()=>pB,cloneCompilerOptions:()=>cG,closeFileWatcher:()=>md,closeFileWatcherOf:()=>Qf,codefix:()=>lu,collapseTextChangeRangesAcrossMultipleVersions:()=>Fee,collectExternalModuleInfo:()=>rq,combine:()=>Dk,combinePaths:()=>Mn,commentPragmas:()=>PD,commonOptionsWithBuild:()=>tA,commonPackageFolders:()=>tV,compact:()=>yD,compareBooleans:()=>J0,compareDataObjects:()=>CW,compareDiagnostics:()=>WE,compareDiagnosticsSkipRelatedInformation:()=>lF,compareEmitHelpers:()=>qne,compareNumberOfDirectorySeparators:()=>nw,comparePaths:()=>Gg,comparePathsCaseInsensitive:()=>V0e,comparePathsCaseSensitive:()=>W0e,comparePatternKeys:()=>RU,compareProperties:()=>QK,compareStringsCaseInsensitive:()=>s7,compareStringsCaseInsensitiveEslintCompatible:()=>GK,compareStringsCaseSensitive:()=>mu,compareStringsCaseSensitiveUI:()=>SD,compareTextSpans:()=>i7,compareValues:()=>wo,compileOnSaveCommandLineOption:()=>Kw,compilerOptionsAffectDeclarationPath:()=>sne,compilerOptionsAffectEmit:()=>ine,compilerOptionsAffectSemanticDiagnostics:()=>nne,compilerOptionsDidYouMeanDiagnostics:()=>iA,compilerOptionsIndicateEsModules:()=>dG,compose:()=>d0e,computeCommonSourceDirectoryOfFilenames:()=>Iae,computeLineAndCharacterOfPosition:()=>Bk,computeLineOfPosition:()=>Z4,computeLineStarts:()=>ET,computePositionOfLineAndCharacter:()=>L7,computeSignature:()=>aS,computeSignatureWithDiagnostics:()=>Qq,computeSuggestionDiagnostics:()=>s$,computedOptions:()=>Jc,concatenate:()=>es,concatenateDiagnosticMessageChains:()=>Kre,consumesNodeCoreModules:()=>ZL,contains:()=>bs,containsIgnoredPath:()=>YE,containsObjectRestOrSpread:()=>Uw,containsParseError:()=>Yk,containsPath:()=>jp,convertCompilerOptionsForTelemetry:()=>Xie,convertCompilerOptionsFromJson:()=>d2e,convertJsonOption:()=>tS,convertToBase64:()=>Mre,convertToJson:()=>Qw,convertToObject:()=>Uie,convertToOptionsWithAbsolutePaths:()=>dU,convertToRelativePath:()=>Y4,convertToTSConfig:()=>e2e,convertTypeAcquisitionFromJson:()=>m2e,copyComments:()=>uS,copyEntries:()=>s5,copyLeadingComments:()=>T6,copyProperties:()=>dB,copyTrailingAsLeadingComments:()=>nN,copyTrailingComments:()=>sP,couldStartTrivia:()=>xee,countWhere:()=>j0,createAbstractBuilder:()=>SSe,createAccessorPropertyBackingField:()=>ZV,createAccessorPropertyGetRedirector:()=>Oie,createAccessorPropertySetRedirector:()=>Lie,createBaseNodeFactory:()=>wne,createBinaryExpressionTrampoline:()=>JO,createBindingHelper:()=>LC,createBuildInfo:()=>bA,createBuilderProgram:()=>Yq,createBuilderProgramUsingProgramBuildInfo:()=>Yae,createBuilderStatusReporter:()=>doe,createCacheWithRedirects:()=>wU,createCacheableExportInfoMap:()=>GG,createCachedDirectoryStructureHost:()=>j9,createClassNamedEvaluationHelperBlock:()=>Kse,createClassThisAssignmentBlock:()=>Yse,createClassifier:()=>jTe,createCommentDirectivesMap:()=>Pte,createCompilerDiagnostic:()=>gc,createCompilerDiagnosticForInvalidCustomType:()=>Bie,createCompilerDiagnosticFromMessageChain:()=>cF,createCompilerHost:()=>Fae,createCompilerHostFromProgramHost:()=>dH,createCompilerHostWorker:()=>Nq,createDetachedDiagnostic:()=>PC,createDiagnosticCollection:()=>yC,createDiagnosticForFileFromMessageChain:()=>Az,createDiagnosticForNode:()=>yn,createDiagnosticForNodeArray:()=>eC,createDiagnosticForNodeArrayFromMessageChain:()=>p8,createDiagnosticForNodeFromMessageChain:()=>Zg,createDiagnosticForNodeInSourceFile:()=>mp,createDiagnosticForRange:()=>Bte,createDiagnosticMessageChainFromDiagnostic:()=>jte,createDiagnosticReporter:()=>AA,createDocumentPositionMapper:()=>zse,createDocumentRegistry:()=>Ice,createDocumentRegistryInternal:()=>e$,createEmitAndSemanticDiagnosticsBuilderProgram:()=>rH,createEmitHelperFactory:()=>Une,createEmptyExports:()=>Mw,createExpressionForJsxElement:()=>yie,createExpressionForJsxFragment:()=>vie,createExpressionForObjectLiteralElementLike:()=>bie,createExpressionForPropertyName:()=>UV,createExpressionFromEntityName:()=>Rw,createExternalHelpersImportDeclarationIfNeeded:()=>GV,createFileDiagnostic:()=>xl,createFileDiagnosticFromMessageChain:()=>d5,createForOfBindingStatement:()=>VV,createGetCanonicalFileName:()=>nu,createGetSourceFile:()=>wq,createGetSymbolAccessibilityDiagnosticForNode:()=>o0,createGetSymbolAccessibilityDiagnosticForNodeName:()=>xae,createGetSymbolWalker:()=>xse,createIncrementalCompilerHost:()=>gH,createIncrementalProgram:()=>foe,createInputFiles:()=>j1e,createInputFilesWithFilePaths:()=>fV,createInputFilesWithFileTexts:()=>pV,createJsxFactoryExpression:()=>WV,createLanguageService:()=>Xle,createLanguageServiceSourceFile:()=>FM,createMemberAccessForPropertyName:()=>Kb,createModeAwareCache:()=>Sx,createModeAwareCacheKey:()=>N3,createModuleNotFoundChain:()=>a5,createModuleResolutionCache:()=>e6,createModuleResolutionLoader:()=>Rq,createModuleResolutionLoaderUsingGlobalCache:()=>ioe,createModuleSpecifierResolutionHost:()=>lS,createMultiMap:()=>vf,createNodeConverters:()=>Nne,createNodeFactory:()=>gw,createOptionNameMap:()=>VO,createOverload:()=>sY,createPackageJsonImportFilter:()=>cP,createPackageJsonInfo:()=>LG,createParenthesizerRules:()=>Ane,createPatternMatcher:()=>Rce,createPrependNodes:()=>Uq,createPrinter:()=>V1,createPrinterWithDefaults:()=>Tq,createPrinterWithRemoveComments:()=>b2,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>xq,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>SA,createProgram:()=>q9,createProgramHost:()=>mH,createPropertyNameNodeForIdentifierOrLiteral:()=>EF,createQueue:()=>bD,createRange:()=>Uf,createRedirectedBuilderProgram:()=>Kq,createResolutionCache:()=>iH,createRuntimeTypeSerializer:()=>iae,createScanner:()=>Hh,createSemanticDiagnosticsBuilderProgram:()=>bSe,createSet:()=>mB,createSolutionBuilder:()=>RSe,createSolutionBuilderHost:()=>LSe,createSolutionBuilderWithWatch:()=>jSe,createSolutionBuilderWithWatchHost:()=>MSe,createSortedArray:()=>oB,createSourceFile:()=>Hw,createSourceMapGenerator:()=>Rse,createSourceMapSource:()=>B1e,createSuperAccessVariableStatement:()=>N9,createSymbolTable:()=>Bs,createSymlinkCache:()=>IW,createSystemWatchFunctions:()=>mee,createTextChange:()=>$A,createTextChangeFromStartLength:()=>FL,createTextChangeRange:()=>UD,createTextRangeFromNode:()=>_G,createTextRangeFromSpan:()=>IL,createTextSpan:()=>Wl,createTextSpanFromBounds:()=>Rc,createTextSpanFromNode:()=>Zu,createTextSpanFromRange:()=>by,createTextSpanFromStringLiteralLikeContent:()=>uG,createTextWriter:()=>G8,createTokenRange:()=>TW,createTypeChecker:()=>Nse,createTypeReferenceDirectiveResolutionCache:()=>a9,createTypeReferenceResolutionLoader:()=>W9,createUnparsedSourceFile:()=>_V,createWatchCompilerHost:()=>ISe,createWatchCompilerHostOfConfigFile:()=>loe,createWatchCompilerHostOfFilesAndCompilerOptions:()=>uoe,createWatchFactory:()=>pH,createWatchHost:()=>fH,createWatchProgram:()=>FSe,createWatchStatusReporter:()=>soe,createWriteFileMeasuringIO:()=>Aq,declarationNameToString:()=>Ka,decodeMappings:()=>KU,decodedTextSpanIntersectsWith:()=>VD,decorateHelper:()=>UF,deduplicate:()=>Nv,defaultIncludeSpec:()=>t9,defaultInitCompilerOptions:()=>KO,defaultMaximumTruncationLength:()=>uw,detectSortCaseSensitivity:()=>V4,diagnosticCategoryName:()=>gb,diagnosticToString:()=>fS,directoryProbablyExists:()=>dd,directorySeparator:()=>Io,displayPart:()=>C_,displayPartsToString:()=>kN,disposeEmitNodes:()=>mV,disposeResourcesHelper:()=>gO,documentSpansEqual:()=>vG,dumpTracingLegend:()=>fee,elementAt:()=>Uh,elideNodes:()=>Fie,emitComments:()=>Cre,emitDetachedComments:()=>Ere,emitFiles:()=>L9,emitFilesAndReportErrors:()=>nL,emitFilesAndReportErrorsAndGetExitStatus:()=>coe,emitModuleKindIsNonNodeESM:()=>uF,emitNewLineBeforeLeadingCommentOfPosition:()=>kre,emitNewLineBeforeLeadingComments:()=>Tre,emitNewLineBeforeLeadingCommentsOfPosition:()=>xre,emitSkippedWithNoDiagnostics:()=>Q9,emitUsingBuildInfo:()=>Dae,emptyArray:()=>Ve,emptyFileSystemEntries:()=>jF,emptyMap:()=>_7,emptyOptions:()=>Zf,emptySet:()=>ree,endsWith:()=>Yo,ensurePathIsNonModuleName:()=>Fv,ensureScriptKind:()=>vF,ensureTrailingDirectorySeparator:()=>ul,entityNameToString:()=>L_,enumerateInsertsAndDeletes:()=>l7,equalOwnProperties:()=>VK,equateStringsCaseInsensitive:()=>p1,equateStringsCaseSensitive:()=>pb,equateValues:()=>Vh,esDecorateHelper:()=>GF,escapeJsxAttributeString:()=>cW,escapeLeadingUnderscores:()=>Wo,escapeNonAsciiString:()=>H8,escapeSnippetText:()=>r2,escapeString:()=>bg,escapeTemplateSubstitution:()=>aW,every:()=>Wi,expandPreOrPostfixIncrementOrDecrementExpression:()=>OO,explainFiles:()=>oH,explainIfFileIsRedirectAndImpliedFormat:()=>cH,exportAssignmentIsAlias:()=>dC,exportStarHelper:()=>_O,expressionResultIsUnused:()=>hne,extend:()=>n7,extendsHelper:()=>tO,extensionFromPath:()=>HE,extensionIsTS:()=>TF,extensionsNotSupportingExtensionlessResolution:()=>mw,externalHelpersModuleNameText:()=>oy,factory:()=>I,fileExtensionIs:()=>Zo,fileExtensionIsOneOf:()=>Gc,fileIncludeReasonToDiagnostics:()=>_H,fileShouldUseJavaScriptRequire:()=>WG,filter:()=>An,filterMutate:()=>rB,filterSemanticDiagnostics:()=>H9,find:()=>wn,findAncestor:()=>Pr,findBestPatternMatch:()=>vB,findChildOfKind:()=>qa,findComputedPropertyNameCacheAssignment:()=>zO,findConfigFile:()=>Nae,findContainingList:()=>kL,findDiagnosticForNode:()=>kce,findFirstNonJsxWhitespaceToken:()=>qoe,findIndex:()=>vc,findLast:()=>hT,findLastIndex:()=>ZI,findListItemInfo:()=>Uoe,findMap:()=>u0e,findModifier:()=>v6,findNextToken:()=>x2,findPackageJson:()=>Tce,findPackageJsons:()=>OG,findPrecedingMatchingToken:()=>AL,findPrecedingToken:()=>Qc,findSuperStatementIndexPath:()=>E9,findTokenOnLeftOfPosition:()=>PL,findUseStrictPrologue:()=>HV,first:()=>va,firstDefined:()=>$o,firstDefinedIterator:()=>Lp,firstIterator:()=>uB,firstOrOnly:()=>BG,firstOrUndefined:()=>bl,firstOrUndefinedIterator:()=>e7,fixupCompilerOptions:()=>u$,flatMap:()=>Zs,flatMapIterator:()=>nB,flatMapToMutable:()=>B4,flatten:()=>Mp,flattenCommaList:()=>Mie,flattenDestructuringAssignment:()=>nS,flattenDestructuringBinding:()=>v2,flattenDiagnosticMessageText:()=>tm,forEach:()=>er,forEachAncestor:()=>Tte,forEachAncestorDirectory:()=>Jp,forEachChild:()=>Ss,forEachChildRecursively:()=>k3,forEachEmittedFile:()=>yq,forEachEnclosingBlockScopeContainer:()=>Lte,forEachEntry:()=>_l,forEachExternalModuleToImportFrom:()=>XG,forEachImportClauseDeclaration:()=>R5,forEachKey:()=>Am,forEachLeadingCommentRange:()=>jD,forEachNameInAccessChainWalkingLeft:()=>Gre,forEachPropertyAssignment:()=>iC,forEachResolvedProjectReference:()=>Bq,forEachReturnStatement:()=>Wv,forEachRight:()=>YI,forEachTrailingCommentRange:()=>BD,forEachTsConfigPropArray:()=>h8,forEachUnique:()=>SG,forEachYieldExpression:()=>zte,forSomeAncestorDirectory:()=>o1e,formatColorAndReset:()=>S2,formatDiagnostic:()=>Iq,formatDiagnostics:()=>tSe,formatDiagnosticsWithColorAndContext:()=>Oae,formatGeneratedName:()=>j1,formatGeneratedNamePart:()=>XC,formatLocation:()=>Fq,formatMessage:()=>wW,formatStringFromArgs:()=>xg,formatting:()=>al,fullTripleSlashAMDReferencePathRegEx:()=>$W,fullTripleSlashReferencePathRegEx:()=>GW,generateDjb2Hash:()=>X4,generateTSConfig:()=>s2e,generatorHelper:()=>cO,getAdjustedReferenceLocation:()=>rG,getAdjustedRenameLocation:()=>EL,getAliasDeclarationFromName:()=>Xz,getAllAccessorDeclarations:()=>Rb,getAllDecoratorsOfClass:()=>iq,getAllDecoratorsOfClassElement:()=>D9,getAllJSDocTags:()=>V7,getAllJSDocTagsOfKind:()=>yye,getAllKeys:()=>f0e,getAllProjectOutputs:()=>O9,getAllSuperTypeNodes:()=>kE,getAllUnscopedEmitHelpers:()=>bV,getAllowJSCompilerOption:()=>cy,getAllowSyntheticDefaultImports:()=>Jb,getAncestor:()=>w1,getAnyExtensionFromPath:()=>jk,getAreDeclarationMapsEnabled:()=>fw,getAssignedExpandoInitializer:()=>OT,getAssignedName:()=>z7,getAssignedNameOfIdentifier:()=>j3,getAssignmentDeclarationKind:()=>fc,getAssignmentDeclarationPropertyAccessKind:()=>w8,getAssignmentTargetKind:()=>jT,getAutomaticTypeDirectiveNames:()=>i9,getBaseFileName:()=>wc,getBinaryOperatorPrecedence:()=>q8,getBuildInfo:()=>M9,getBuildInfoFileVersionMap:()=>Zq,getBuildInfoText:()=>Pae,getBuildOrderFromAnyBuildOrder:()=>cL,getBuilderCreationParameters:()=>Y9,getBuilderFileEmit:()=>vy,getCheckFlags:()=>Ko,getClassExtendsHeritageElement:()=>Gv,getClassLikeDeclarationOfSymbol:()=>rh,getCombinedLocalAndExportSymbolFlags:()=>kC,getCombinedModifierFlags:()=>y1,getCombinedNodeFlags:()=>Gh,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>VJ,getCommentRange:()=>Yd,getCommonSourceDirectory:()=>q3,getCommonSourceDirectoryOfConfig:()=>a6,getCompilerOptionValue:()=>fF,getCompilerOptionsDiffValue:()=>n2e,getConditions:()=>hy,getConfigFileParsingDiagnostics:()=>sS,getConstantValue:()=>Rne,getContainerFlags:()=>zU,getContainerNode:()=>cS,getContainingClass:()=>Nl,getContainingClassExcludingClassDecorators:()=>x5,getContainingClassStaticBlock:()=>Qte,getContainingFunction:()=>cf,getContainingFunctionDeclaration:()=>Xte,getContainingFunctionOrClassStaticBlock:()=>T5,getContainingNodeArray:()=>yne,getContainingObjectLiteralElement:()=>CN,getContextualTypeFromParent:()=>UL,getContextualTypeFromParentOrAncestorTypeNode:()=>CL,getCurrentTime:()=>IA,getDeclarationDiagnostics:()=>kae,getDeclarationEmitExtensionForPath:()=>H5,getDeclarationEmitOutputFilePath:()=>hre,getDeclarationEmitOutputFilePathWorker:()=>q5,getDeclarationFileExtension:()=>rU,getDeclarationFromName:()=>xE,getDeclarationModifierFlagsFromSymbol:()=>Hf,getDeclarationOfKind:()=>Bo,getDeclarationsOfKind:()=>vte,getDeclaredExpandoInitializer:()=>C8,getDecorators:()=>H0,getDefaultCompilerOptions:()=>IM,getDefaultExportInfoWorker:()=>oM,getDefaultFormatCodeSettings:()=>gL,getDefaultLibFileName:()=>zD,getDefaultLibFilePath:()=>Qle,getDefaultLikeExportInfo:()=>aM,getDiagnosticText:()=>Gve,getDiagnosticsWithinSpan:()=>Cce,getDirectoryPath:()=>Un,getDirectoryToWatchFailedLookupLocation:()=>nH,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>roe,getDocumentPositionMapper:()=>i$,getDocumentSpansEqualityComparer:()=>bG,getESModuleInterop:()=>Om,getEditsForFileRename:()=>Oce,getEffectiveBaseTypeNode:()=>Ud,getEffectiveConstraintOfTypeParameter:()=>Uk,getEffectiveContainerForJSDocTemplateTag:()=>j5,getEffectiveImplementsTypeNodes:()=>mC,getEffectiveInitializer:()=>k8,getEffectiveJSDocHost:()=>D1,getEffectiveModifierFlags:()=>Lu,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Are,getEffectiveModifierFlagsNoCache:()=>Nre,getEffectiveReturnTypeNode:()=>bp,getEffectiveSetAccessorTypeAnnotationNode:()=>Sre,getEffectiveTypeAnnotationNode:()=>Vl,getEffectiveTypeParameterDeclarations:()=>G0,getEffectiveTypeRoots:()=>A3,getElementOrPropertyAccessArgumentExpressionOrName:()=>M5,getElementOrPropertyAccessName:()=>Kg,getElementsOfBindingOrAssignmentPattern:()=>$C,getEmitDeclarations:()=>Gf,getEmitFlags:()=>ha,getEmitHelpers:()=>VF,getEmitModuleDetectionKind:()=>KW,getEmitModuleKind:()=>au,getEmitModuleResolutionKind:()=>Ru,getEmitScriptTarget:()=>Fa,getEmitStandardClassFields:()=>rne,getEnclosingBlockScopeContainer:()=>Nm,getEnclosingContainer:()=>wz,getEncodedSemanticClassifications:()=>ZG,getEncodedSyntacticClassifications:()=>KG,getEndLinePosition:()=>l8,getEntityNameFromTypeNode:()=>b8,getEntrypointsFromPackageJsonInfo:()=>OU,getErrorCountForSummary:()=>tL,getErrorSpanForNode:()=>Eb,getErrorSummaryText:()=>aoe,getEscapedTextOfIdentifierOrLiteral:()=>PE,getEscapedTextOfJsxAttributeName:()=>t3,getEscapedTextOfJsxNamespacedName:()=>$T,getExpandoInitializer:()=>E1,getExportAssignmentExpression:()=>Qz,getExportInfoMap:()=>cN,getExportNeedsImportStarHelper:()=>Wse,getExpressionAssociativity:()=>nW,getExpressionPrecedence:()=>wE,getExternalHelpersModuleName:()=>Bw,getExternalModuleImportEqualsDeclarationExpression:()=>bE,getExternalModuleName:()=>uC,getExternalModuleNameFromDeclaration:()=>mre,getExternalModuleNameFromPath:()=>uW,getExternalModuleNameLiteral:()=>hx,getExternalModuleRequireArgument:()=>Rz,getFallbackOptions:()=>kA,getFileEmitOutput:()=>zae,getFileMatcherPatterns:()=>yF,getFileNamesFromConfigSpecs:()=>P3,getFileWatcherEventKind:()=>wJ,getFilesInErrorForSummary:()=>rL,getFirstConstructorWithBody:()=>Sg,getFirstIdentifier:()=>lf,getFirstNonSpaceCharacterPosition:()=>gce,getFirstProjectOutput:()=>Sq,getFixableErrorSpanExpression:()=>RG,getFormatCodeSettingsForWriting:()=>rM,getFullWidth:()=>o8,getFunctionFlags:()=>fl,getHeritageClause:()=>z8,getHostSignatureFromJSDoc:()=>P1,getIdentifierAutoGenerate:()=>U1e,getIdentifierGeneratedImportReference:()=>Vne,getIdentifierTypeArguments:()=>zb,getImmediatelyInvokedFunctionExpression:()=>Db,getImpliedNodeFormatForFile:()=>DA,getImpliedNodeFormatForFileWorker:()=>Wq,getImportNeedsImportDefaultHelper:()=>tq,getImportNeedsImportStarHelper:()=>k9,getIndentSize:()=>bC,getIndentString:()=>V5,getInferredLibraryNameResolveFrom:()=>U9,getInitializedVariables:()=>BE,getInitializerOfBinaryExpression:()=>Wz,getInitializerOfBindingOrAssignmentElement:()=>zw,getInterfaceBaseTypeNodes:()=>CE,getInternalEmitFlags:()=>Wp,getInvokedExpression:()=>E5,getIsolatedModules:()=>xp,getJSDocAugmentsTag:()=>Wee,getJSDocClassTag:()=>qJ,getJSDocCommentRanges:()=>Iz,getJSDocCommentsAndTags:()=>Uz,getJSDocDeprecatedTag:()=>HJ,getJSDocDeprecatedTagNoCache:()=>Xee,getJSDocEnumTag:()=>GJ,getJSDocHost:()=>Ib,getJSDocImplementsTags:()=>Vee,getJSDocOverloadTags:()=>Hz,getJSDocOverrideTagNoCache:()=>$ee,getJSDocParameterTags:()=>Vk,getJSDocParameterTagsNoCache:()=>jee,getJSDocPrivateTag:()=>pye,getJSDocPrivateTagNoCache:()=>qee,getJSDocProtectedTag:()=>dye,getJSDocProtectedTagNoCache:()=>Hee,getJSDocPublicTag:()=>fye,getJSDocPublicTagNoCache:()=>Uee,getJSDocReadonlyTag:()=>mye,getJSDocReadonlyTagNoCache:()=>Gee,getJSDocReturnTag:()=>Qee,getJSDocReturnType:()=>HD,getJSDocRoot:()=>pC,getJSDocSatisfiesExpressionType:()=>UW,getJSDocSatisfiesTag:()=>$J,getJSDocTags:()=>T1,getJSDocTagsNoCache:()=>hye,getJSDocTemplateTag:()=>gye,getJSDocThisTag:()=>W7,getJSDocType:()=>S1,getJSDocTypeAliasName:()=>XV,getJSDocTypeAssertionType:()=>MO,getJSDocTypeParameterDeclarations:()=>Q5,getJSDocTypeParameterTags:()=>Bee,getJSDocTypeParameterTagsNoCache:()=>Jee,getJSDocTypeTag:()=>b1,getJSXImplicitImportBase:()=>dF,getJSXRuntimeImport:()=>mF,getJSXTransformEnabled:()=>pF,getKeyForCompilerOptions:()=>DU,getLanguageVariant:()=>ew,getLastChild:()=>EW,getLeadingCommentRanges:()=>_g,getLeadingCommentRangesOfNode:()=>Nz,getLeftmostAccessExpression:()=>CC,getLeftmostExpression:()=>EC,getLibraryNameFromLibFileName:()=>Jq,getLineAndCharacterOfPosition:()=>Ha,getLineInfo:()=>YU,getLineOfLocalPosition:()=>NE,getLineOfLocalPositionFromLineMap:()=>Lb,getLineStartPositionForPosition:()=>Ep,getLineStarts:()=>$g,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Vre,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>Wre,getLinesBetweenPositions:()=>K4,getLinesBetweenRangeEndAndRangeStart:()=>xW,getLinesBetweenRangeEndPositions:()=>s1e,getLiteralText:()=>Dte,getLocalNameForExternalImport:()=>GC,getLocalSymbolForExportDefault:()=>xC,getLocaleSpecificMessage:()=>ds,getLocaleTimeString:()=>NA,getMappedContextSpan:()=>TG,getMappedDocumentSpan:()=>JL,getMappedLocation:()=>rP,getMatchedFileSpec:()=>lH,getMatchedIncludeSpec:()=>uH,getMeaningFromDeclaration:()=>jA,getMeaningFromLocation:()=>oS,getMembersOfDeclaration:()=>Wte,getModeForFileReference:()=>EA,getModeForResolutionAtIndex:()=>Lae,getModeForUsageLocation:()=>Lq,getModifiedTime:()=>xT,getModifiers:()=>Lv,getModuleInstanceState:()=>ch,getModuleNameStringLiteralAt:()=>wA,getModuleSpecifierEndingPreference:()=>lne,getModuleSpecifierResolverHost:()=>mG,getNameForExportedSymbol:()=>KL,getNameFromImportAttribute:()=>AF,getNameFromIndexInfo:()=>Mte,getNameFromPropertyName:()=>YA,getNameOfAccessExpression:()=>DW,getNameOfCompilerOptionValue:()=>pU,getNameOfDeclaration:()=>us,getNameOfExpando:()=>Jz,getNameOfJSDocTypedef:()=>Ree,getNameOrArgument:()=>D8,getNameTable:()=>U$,getNamesForExportedSymbol:()=>Ece,getNamespaceDeclarationNode:()=>_C,getNewLineCharacter:()=>t0,getNewLineKind:()=>oN,getNewLineOrDefaultFromHost:()=>f0,getNewTargetContainer:()=>Zte,getNextJSDocCommentLocation:()=>qz,getNodeForGeneratedName:()=>Vw,getNodeId:()=>Oa,getNodeKind:()=>T2,getNodeModifiers:()=>K3,getNodeModulePathParts:()=>PF,getNonAssignedNameOfDeclaration:()=>J7,getNonAssignmentOperatorForCompoundAssignment:()=>L3,getNonAugmentationDeclaration:()=>xz,getNonDecoratorTokenPosOfNode:()=>yz,getNormalizedAbsolutePath:()=>Xi,getNormalizedAbsolutePathWithoutRoot:()=>LJ,getNormalizedPathComponents:()=>ND,getObjectFlags:()=>bn,getOperator:()=>sW,getOperatorAssociativity:()=>iW,getOperatorPrecedence:()=>U8,getOptionFromName:()=>lU,getOptionsForLibraryResolution:()=>AU,getOptionsNameMap:()=>YC,getOrCreateEmitNode:()=>ou,getOrCreateExternalHelpersModuleNameIfNeeded:()=>kie,getOrUpdate:()=>z4,getOriginalNode:()=>ic,getOriginalNodeId:()=>cu,getOriginalSourceFile:()=>Xye,getOutputDeclarationFileName:()=>U3,getOutputDeclarationFileNameWorker:()=>vq,getOutputExtension:()=>F9,getOutputFileNames:()=>Kbe,getOutputJSFileNameWorker:()=>bq,getOutputPathsFor:()=>V3,getOutputPathsForBundle:()=>W3,getOwnEmitOutputFilePath:()=>gre,getOwnKeys:()=>ug,getOwnValues:()=>vT,getPackageJsonInfo:()=>m2,getPackageJsonTypesVersionsPaths:()=>n9,getPackageJsonsVisibleToFile:()=>xce,getPackageNameFromTypesPackageName:()=>I3,getPackageScopeForPath:()=>lA,getParameterSymbolFromJSDoc:()=>M8,getParameterTypeNode:()=>g1e,getParentNodeInSpan:()=>KA,getParseTreeNode:()=>as,getParsedCommandLineOfConfigFile:()=>$w,getPathComponents:()=>ll,getPathComponentsRelativeTo:()=>RJ,getPathFromPathComponents:()=>V0,getPathUpdater:()=>r$,getPathsBasePath:()=>G5,getPatternFromSpec:()=>ane,getPendingEmitKind:()=>_6,getPositionOfLineAndCharacter:()=>MD,getPossibleGenericSignatures:()=>iG,getPossibleOriginalInputExtensionForExtension:()=>yre,getPossibleTypeArgumentsInfo:()=>sG,getPreEmitDiagnostics:()=>eSe,getPrecedingNonSpaceCharacterPosition:()=>WL,getPrivateIdentifier:()=>sq,getProperties:()=>nq,getProperty:()=>t7,getPropertyArrayElementValue:()=>$te,getPropertyAssignmentAliasLikeExpression:()=>_re,getPropertyNameForPropertyNameNode:()=>Fb,getPropertyNameForUniqueESSymbol:()=>Gye,getPropertyNameFromType:()=>Tp,getPropertyNameOfBindingOrAssignmentElement:()=>$V,getPropertySymbolFromBindingElement:()=>BL,getPropertySymbolsFromContextualType:()=>OM,getQuoteFromPreference:()=>hG,getQuotePreference:()=>wf,getRangesWhere:()=>aB,getRefactorContextSpan:()=>Nx,getReferencedFileLocation:()=>H3,getRegexFromPattern:()=>sy,getRegularExpressionForWildcard:()=>VE,getRegularExpressionsForWildcards:()=>gF,getRelativePathFromDirectory:()=>Bp,getRelativePathFromFile:()=>FD,getRelativePathToDirectoryOrUrl:()=>CT,getRenameLocation:()=>rN,getReplacementSpanForContextToken:()=>lG,getResolutionDiagnostic:()=>qq,getResolutionModeOverride:()=>o6,getResolveJsonModule:()=>F1,getResolvePackageJsonExports:()=>LF,getResolvePackageJsonImports:()=>MF,getResolvedExternalModuleName:()=>U5,getRestIndicatorOfBindingOrAssignmentElement:()=>jO,getRestParameterElementType:()=>Fz,getRightMostAssignedExpression:()=>E8,getRootDeclaration:()=>Hd,getRootDirectoryOfResolutionCache:()=>noe,getRootLength:()=>Pm,getRootPathSplitLength:()=>CSe,getScriptKind:()=>PG,getScriptKindFromFileName:()=>bF,getScriptTargetFeatures:()=>FF,getSelectedEffectiveModifierFlags:()=>zT,getSelectedSyntacticModifierFlags:()=>Dre,getSemanticClassifications:()=>Ace,getSemanticJsxChildren:()=>hC,getSetAccessorTypeAnnotationNode:()=>vre,getSetAccessorValueParameter:()=>IE,getSetExternalModuleIndicator:()=>tw,getShebang:()=>R7,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>Vz,getSingleVariableOfVariableStatement:()=>RT,getSnapshotText:()=>y6,getSnippetElement:()=>gV,getSourceFileOfModule:()=>c5,getSourceFileOfNode:()=>wr,getSourceFilePathInNewDir:()=>$5,getSourceFilePathInNewDirWorker:()=>X5,getSourceFileVersionAsHashFromText:()=>iL,getSourceFilesToEmit:()=>_W,getSourceMapRange:()=>n0,getSourceMapper:()=>Hce,getSourceTextOfNodeFromSourceFile:()=>Bv,getSpanOfTokenAtPosition:()=>Im,getSpellingSuggestion:()=>q4,getStartPositionOfLine:()=>ey,getStartPositionOfRange:()=>jE,getStartsOnNewLine:()=>a3,getStaticPropertiesAndClassStaticBlock:()=>P9,getStrictOptionValue:()=>Mu,getStringComparer:()=>Ak,getSubPatternFromSpec:()=>hF,getSuperCallFromStatement:()=>C9,getSuperContainer:()=>y8,getSupportedCodeFixes:()=>W$,getSupportedExtensions:()=>UE,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>rw,getSwitchedType:()=>IG,getSymbolId:()=>Ks,getSymbolNameForPrivateIdentifier:()=>W8,getSymbolTarget:()=>DG,getSyntacticClassifications:()=>Nce,getSyntacticModifierFlags:()=>ny,getSyntacticModifierFlagsNoCache:()=>mW,getSynthesizedDeepClone:()=>Lo,getSynthesizedDeepCloneWithReplacements:()=>tN,getSynthesizedDeepClones:()=>k2,getSynthesizedDeepClonesWithReplacements:()=>wG,getSyntheticLeadingComments:()=>OC,getSyntheticTrailingComments:()=>Sw,getTargetLabel:()=>bL,getTargetOfBindingOrAssignmentElement:()=>gy,getTemporaryModuleResolutionState:()=>cA,getTextOfConstantValue:()=>wte,getTextOfIdentifierOrLiteral:()=>yp,getTextOfJSDocComment:()=>$D,getTextOfJsxAttributeName:()=>lw,getTextOfJsxNamespacedName:()=>r3,getTextOfNode:()=>jc,getTextOfNodeFromSourceText:()=>dE,getTextOfPropertyName:()=>Kk,getThisContainer:()=>a_,getThisParameter:()=>Xv,getTokenAtPosition:()=>Ui,getTokenPosOfNode:()=>k1,getTokenSourceMapRange:()=>W1e,getTouchingPropertyName:()=>u_,getTouchingToken:()=>h6,getTrailingCommentRanges:()=>m1,getTrailingSemicolonDeferringWriter:()=>lW,getTransformFlagsSubtreeExclusions:()=>Ine,getTransformers:()=>gq,getTsBuildInfoEmitOutputFilePath:()=>c0,getTsConfigObjectLiteralExpression:()=>yE,getTsConfigPropArrayElementValue:()=>S5,getTypeAnnotationNode:()=>bre,getTypeArgumentOrTypeParameterList:()=>Koe,getTypeKeywordOfTypeOnlyImport:()=>yG,getTypeNode:()=>zne,getTypeNodeIfAccessible:()=>oP,getTypeParameterFromJsDoc:()=>sre,getTypeParameterOwner:()=>oye,getTypesPackageName:()=>u9,getUILocale:()=>$K,getUniqueName:()=>_S,getUniqueSymbolId:()=>mce,getUseDefineForClassFields:()=>s3,getWatchErrorSummaryDiagnosticMessage:()=>sH,getWatchFactory:()=>Eq,group:()=>U4,groupBy:()=>r7,guessIndentation:()=>hte,handleNoEmitOptions:()=>Vq,hasAbstractModifier:()=>Zv,hasAccessorModifier:()=>Gd,hasAmbientModifier:()=>dW,hasChangesInResolutions:()=>mz,hasChildOfKind:()=>qA,hasContextSensitiveParameters:()=>CF,hasDecorators:()=>Vf,hasDocComment:()=>Yoe,hasDynamicName:()=>ry,hasEffectiveModifier:()=>R_,hasEffectiveModifiers:()=>Y5,hasEffectiveReadonlyModifier:()=>FE,hasExtension:()=>kT,hasIndexSignature:()=>NG,hasInitializer:()=>Z0,hasInvalidEscape:()=>oW,hasJSDocNodes:()=>sf,hasJSDocParameterTags:()=>zee,hasJSFileExtension:()=>Kv,hasJsonModuleEmitEnabled:()=>_F,hasOnlyExpressionInitializer:()=>xb,hasOverrideModifier:()=>Z5,hasPossibleExternalModuleReference:()=>Ote,hasProperty:()=>Za,hasPropertyAccessExpressionWithName:()=>JA,hasQuestionToken:()=>MT,hasRecordedExternalHelpers:()=>xie,hasResolutionModeOverride:()=>xne,hasRestParameter:()=>_z,hasScopeMarker:()=>lte,hasStaticModifier:()=>Bc,hasSyntacticModifier:()=>Rn,hasSyntacticModifiers:()=>Pre,hasTSFileExtension:()=>GT,hasTabstop:()=>bne,hasTrailingDirectorySeparator:()=>qh,hasType:()=>r5,hasTypeArguments:()=>Wye,hasZeroOrOneAsteriskCharacter:()=>NW,helperString:()=>vV,hostGetCanonicalFileName:()=>Zh,hostUsesCaseSensitiveFileNames:()=>SC,idText:()=>on,identifierIsThisKeyword:()=>pW,identifierToKeywordKind:()=>v1,identity:()=>Do,identitySourceMapConsumer:()=>x9,ignoreSourceNewlines:()=>yV,ignoredPaths:()=>AD,importDefaultHelper:()=>uO,importFromModuleSpecifier:()=>TE,importNameElisionDisabled:()=>AW,importStarHelper:()=>xw,indexOfAnyCharCode:()=>LK,indexOfNode:()=>Zk,indicesOf:()=>hD,inferredTypesContainingFile:()=>u6,injectClassNamedEvaluationHelperBlockIfMissing:()=>A9,injectClassThisAssignmentIfMissing:()=>Zse,insertImports:()=>tP,insertLeadingStatement:()=>ove,insertSorted:()=>B0,insertStatementAfterCustomPrologue:()=>kb,insertStatementAfterStandardPrologue:()=>Iye,insertStatementsAfterCustomPrologue:()=>gz,insertStatementsAfterStandardPrologue:()=>mg,intersperse:()=>cg,intrinsicTagNameToString:()=>qW,introducesArgumentsExoticObject:()=>Hte,inverseJsxOptionMap:()=>D3,isAbstractConstructorSymbol:()=>Ure,isAbstractModifier:()=>Yne,isAccessExpression:()=>oo,isAccessibilityModifier:()=>oG,isAccessor:()=>X0,isAccessorModifier:()=>Kne,isAliasSymbolDeclaration:()=>Uye,isAliasableExpression:()=>J8,isAmbientModule:()=>su,isAmbientPropertyDeclaration:()=>Cz,isAnonymousFunctionDefinition:()=>DE,isAnyDirectorySeparator:()=>IJ,isAnyImportOrBareOrAccessedRequire:()=>Fte,isAnyImportOrReExport:()=>_8,isAnyImportSyntax:()=>Cb,isAnySupportedFileExtension:()=>m1e,isApplicableVersionedTypesKey:()=>_A,isArgumentExpressionOfElementAccess:()=>QH,isArray:()=>ts,isArrayBindingElement:()=>Q7,isArrayBindingOrAssignmentElement:()=>t8,isArrayBindingOrAssignmentPattern:()=>sz,isArrayBindingPattern:()=>s2,isArrayLiteralExpression:()=>ju,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>u0,isArrayTypeNode:()=>Aw,isArrowFunction:()=>po,isAsExpression:()=>Iw,isAssertClause:()=>aie,isAssertEntry:()=>K1e,isAssertionExpression:()=>Tb,isAssertsKeyword:()=>Xne,isAssignmentDeclaration:()=>SE,isAssignmentExpression:()=>nl,isAssignmentOperator:()=>Kh,isAssignmentPattern:()=>_E,isAssignmentTarget:()=>vg,isAsteriskToken:()=>Ew,isAsyncFunction:()=>EE,isAsyncModifier:()=>l3,isAutoAccessorPropertyDeclaration:()=>s_,isAwaitExpression:()=>py,isAwaitKeyword:()=>EV,isBigIntLiteral:()=>hO,isBinaryExpression:()=>Zr,isBinaryOperatorToken:()=>Iie,isBindableObjectDefinePropertyCall:()=>Ab,isBindableStaticAccessExpression:()=>qv,isBindableStaticElementAccessExpression:()=>L5,isBindableStaticNameExpression:()=>Nb,isBindingElement:()=>Ea,isBindingElementOfBareOrAccessedRequire:()=>tre,isBindingName:()=>bb,isBindingOrAssignmentElement:()=>nte,isBindingOrAssignmentPattern:()=>KD,isBindingPattern:()=>Ns,isBlock:()=>Cs,isBlockOrCatchScoped:()=>vz,isBlockScope:()=>Ez,isBlockScopedContainerTopLevel:()=>Ite,isBooleanLiteral:()=>uE,isBreakOrContinueStatement:()=>aE,isBreakStatement:()=>Q1e,isBuildInfoFile:()=>Eae,isBuilderProgram:()=>ooe,isBundle:()=>FV,isBundleFileTextLike:()=>Hre,isCallChain:()=>yb,isCallExpression:()=>Rs,isCallExpressionTarget:()=>UH,isCallLikeExpression:()=>jv,isCallLikeOrFunctionLikeExpression:()=>az,isCallOrNewExpression:()=>zd,isCallOrNewExpressionTarget:()=>qH,isCallSignatureDeclaration:()=>sx,isCallToHelper:()=>c3,isCaseBlock:()=>g3,isCaseClause:()=>zC,isCaseKeyword:()=>eie,isCaseOrDefaultClause:()=>e5,isCatchClause:()=>f2,isCatchClauseVariableDeclaration:()=>vne,isCatchClauseVariableDeclarationOrBindingElement:()=>bz,isCheckJsEnabledForFile:()=>sw,isChildOfNodeWithKind:()=>Oye,isCircularBuildOrder:()=>Ex,isClassDeclaration:()=>Xc,isClassElement:()=>Tl,isClassExpression:()=>kl,isClassInstanceProperty:()=>tte,isClassLike:()=>$n,isClassMemberModifier:()=>rz,isClassNamedEvaluationHelperBlock:()=>Cx,isClassOrTypeElement:()=>X7,isClassStaticBlockDeclaration:()=>ec,isClassThisAssignmentBlock:()=>R3,isCollapsedRange:()=>i1e,isColonToken:()=>Gne,isCommaExpression:()=>jw,isCommaListExpression:()=>p3,isCommaSequence:()=>S3,isCommaToken:()=>Hne,isComment:()=>NL,isCommonJsExportPropertyAssignment:()=>v5,isCommonJsExportedExpression:()=>Ute,isCompoundAssignment:()=>O3,isComputedNonLiteralName:()=>f8,isComputedPropertyName:()=>Pa,isConciseBody:()=>Z7,isConditionalExpression:()=>JC,isConditionalTypeNode:()=>lx,isConstTypeReference:()=>Qg,isConstructSignatureDeclaration:()=>Dw,isConstructorDeclaration:()=>sc,isConstructorTypeNode:()=>MC,isContextualKeyword:()=>J5,isContinueStatement:()=>X1e,isCustomPrologue:()=>g8,isDebuggerStatement:()=>Y1e,isDeclaration:()=>yu,isDeclarationBindingElement:()=>ZD,isDeclarationFileName:()=>Hl,isDeclarationName:()=>eh,isDeclarationNameOfEnumOrNamespace:()=>kW,isDeclarationReadonly:()=>m5,isDeclarationStatement:()=>pte,isDeclarationWithTypeParameterChildren:()=>Dz,isDeclarationWithTypeParameters:()=>Pz,isDecorator:()=>ql,isDecoratorTarget:()=>joe,isDefaultClause:()=>y3,isDefaultImport:()=>LT,isDefaultModifier:()=>SO,isDefaultedExpandoInitializer:()=>rre,isDeleteExpression:()=>nie,isDeleteTarget:()=>$z,isDeprecatedDeclaration:()=>eM,isDestructuringAssignment:()=>e0,isDiagnosticWithLocation:()=>MG,isDiskPathRoot:()=>FJ,isDoStatement:()=>G1e,isDocumentRegistryEntry:()=>lN,isDotDotDotToken:()=>vO,isDottedName:()=>LE,isDynamicName:()=>W5,isESSymbolIdentifier:()=>$ye,isEffectiveExternalModule:()=>FT,isEffectiveModuleDeclaration:()=>Nte,isEffectiveStrictModeSourceFile:()=>kz,isElementAccessChain:()=>XJ,isElementAccessExpression:()=>ko,isEmittedFileOfProgram:()=>Aae,isEmptyArrayLiteral:()=>Lre,isEmptyBindingElement:()=>Lee,isEmptyBindingPattern:()=>Oee,isEmptyObjectLiteral:()=>bW,isEmptyStatement:()=>AV,isEmptyStringLiteral:()=>Mz,isEntityName:()=>b_,isEntityNameExpression:()=>pc,isEnumConst:()=>zv,isEnumDeclaration:()=>L1,isEnumMember:()=>p2,isEqualityOperatorKind:()=>qL,isEqualsGreaterThanToken:()=>$ne,isExclamationToken:()=>Pw,isExcludedFile:()=>Hie,isExclusivelyTypeOnlyImportOrExport:()=>Oq,isExpandoPropertyDeclaration:()=>wF,isExportAssignment:()=>oc,isExportDeclaration:()=>Tc,isExportModifier:()=>nx,isExportName:()=>LO,isExportNamespaceAsDefaultDeclaration:()=>_5,isExportOrDefaultModifier:()=>Ww,isExportSpecifier:()=>vu,isExportsIdentifier:()=>wb,isExportsOrModuleExportsOrAlias:()=>g2,isExpression:()=>ot,isExpressionNode:()=>hg,isExpressionOfExternalModuleImportEqualsDeclaration:()=>Woe,isExpressionOfOptionalChainRoot:()=>H7,isExpressionStatement:()=>Cl,isExpressionWithTypeArguments:()=>s0,isExpressionWithTypeArgumentsInClassExtendsClause:()=>K5,isExternalModule:()=>Ic,isExternalModuleAugmentation:()=>Jv,isExternalModuleImportEqualsDeclaration:()=>C1,isExternalModuleIndicator:()=>r8,isExternalModuleNameRelative:()=>Sl,isExternalModuleReference:()=>Bm,isExternalModuleSymbol:()=>XA,isExternalOrCommonJsModule:()=>af,isFileLevelReservedGeneratedIdentifier:()=>YD,isFileLevelUniqueName:()=>l5,isFileProbablyExternalModule:()=>qw,isFirstDeclarationOfSymbolParameter:()=>xG,isFixablePromiseHandler:()=>o$,isForInOrOfStatement:()=>Gk,isForInStatement:()=>PO,isForInitializer:()=>Wf,isForOfStatement:()=>Fw,isForStatement:()=>Gb,isFunctionBlock:()=>Vv,isFunctionBody:()=>cz,isFunctionDeclaration:()=>$c,isFunctionExpression:()=>co,isFunctionExpressionOrArrowFunction:()=>t2,isFunctionLike:()=>As,isFunctionLikeDeclaration:()=>fo,isFunctionLikeKind:()=>wT,isFunctionLikeOrClassStaticBlockDeclaration:()=>Hk,isFunctionOrConstructorTypeNode:()=>rte,isFunctionOrModuleBlock:()=>nz,isFunctionSymbol:()=>ire,isFunctionTypeNode:()=>Mm,isFutureReservedKeyword:()=>qye,isGeneratedIdentifier:()=>Fo,isGeneratedPrivateIdentifier:()=>vb,isGetAccessor:()=>Y0,isGetAccessorDeclaration:()=>xf,isGetOrSetAccessorDeclaration:()=>U7,isGlobalDeclaration:()=>FTe,isGlobalScopeAugmentation:()=>Vd,isGrammarError:()=>Ete,isHeritageClause:()=>kf,isHoistedFunction:()=>h5,isHoistedVariableStatement:()=>y5,isIdentifier:()=>Ie,isIdentifierANonContextualKeyword:()=>Kz,isIdentifierName:()=>ure,isIdentifierOrThisTypeNode:()=>Die,isIdentifierPart:()=>g1,isIdentifierStart:()=>fg,isIdentifierText:()=>Sf,isIdentifierTypePredicate:()=>Gte,isIdentifierTypeReference:()=>dne,isIfStatement:()=>Hb,isIgnoredFileFromWildCardWatching:()=>xA,isImplicitGlob:()=>OW,isImportAttribute:()=>oie,isImportAttributeName:()=>ete,isImportAttributes:()=>fx,isImportCall:()=>of,isImportClause:()=>Rm,isImportDeclaration:()=>il,isImportEqualsDeclaration:()=>El,isImportKeyword:()=>_3,isImportMeta:()=>rC,isImportOrExportSpecifier:()=>DT,isImportOrExportSpecifierName:()=>dce,isImportSpecifier:()=>x_,isImportTypeAssertionContainer:()=>Z1e,isImportTypeNode:()=>Cg,isImportableFile:()=>$G,isInComment:()=>l0,isInCompoundLikeAssignment:()=>Gz,isInExpressionContext:()=>D5,isInJSDoc:()=>T8,isInJSFile:()=>Hr,isInJSXText:()=>Xoe,isInJsonFile:()=>A5,isInNonReferenceComment:()=>rce,isInReferenceComment:()=>tce,isInRightSideOfInternalImportEqualsDeclaration:()=>yL,isInString:()=>Dx,isInTemplateString:()=>nG,isInTopLevelContext:()=>k5,isInTypeQuery:()=>Mb,isIncrementalCompilation:()=>i3,isIndexSignatureDeclaration:()=>i2,isIndexedAccessTypeNode:()=>qb,isInferTypeNode:()=>Wb,isInfinityOrNaNString:()=>ZE,isInitializedProperty:()=>gA,isInitializedVariable:()=>K8,isInsideJsxElement:()=>wL,isInsideJsxElementOrAttribute:()=>$oe,isInsideNodeModules:()=>aN,isInsideTemplateLiteral:()=>GA,isInstanceOfExpression:()=>eF,isInstantiatedModule:()=>qU,isInterfaceDeclaration:()=>Bu,isInternalDeclaration:()=>fz,isInternalModuleImportEqualsDeclaration:()=>oC,isInternalName:()=>qV,isIntersectionTypeNode:()=>cx,isIntrinsicJsxName:()=>vC,isIterationStatement:()=>Q0,isJSDoc:()=>vd,isJSDocAllType:()=>fie,isJSDocAugmentsTag:()=>gx,isJSDocAuthorTag:()=>nve,isJSDocCallbackTag:()=>LV,isJSDocClassTag:()=>die,isJSDocCommentContainingNode:()=>t5,isJSDocConstructSignature:()=>fC,isJSDocDeprecatedTag:()=>JV,isJSDocEnumTag:()=>Lw,isJSDocFunctionType:()=>VC,isJSDocImplementsTag:()=>IO,isJSDocIndexSignature:()=>N5,isJSDocLikeText:()=>eU,isJSDocLink:()=>uie,isJSDocLinkCode:()=>_ie,isJSDocLinkLike:()=>IT,isJSDocLinkPlain:()=>tve,isJSDocMemberName:()=>M1,isJSDocNameReference:()=>v3,isJSDocNamepathType:()=>rve,isJSDocNamespaceBody:()=>Eye,isJSDocNode:()=>$k,isJSDocNonNullableType:()=>DO,isJSDocNullableType:()=>WC,isJSDocOptionalParameter:()=>cw,isJSDocOptionalType:()=>OV,isJSDocOverloadTag:()=>UC,isJSDocOverrideTag:()=>AO,isJSDocParameterTag:()=>bd,isJSDocPrivateTag:()=>RV,isJSDocPropertyLikeTag:()=>oE,isJSDocPropertyTag:()=>mie,isJSDocProtectedTag:()=>jV,isJSDocPublicTag:()=>MV,isJSDocReadonlyTag:()=>BV,isJSDocReturnTag:()=>NO,isJSDocSatisfiesExpression:()=>VW,isJSDocSatisfiesTag:()=>FO,isJSDocSeeTag:()=>ive,isJSDocSignature:()=>R1,isJSDocTag:()=>Xk,isJSDocTemplateTag:()=>Cp,isJSDocThisTag:()=>zV,isJSDocThrowsTag:()=>ave,isJSDocTypeAlias:()=>hp,isJSDocTypeAssertion:()=>HC,isJSDocTypeExpression:()=>d2,isJSDocTypeLiteral:()=>Yb,isJSDocTypeTag:()=>b3,isJSDocTypedefTag:()=>Zb,isJSDocUnknownTag:()=>sve,isJSDocUnknownType:()=>pie,isJSDocVariadicType:()=>wO,isJSXTagName:()=>aC,isJsonEqual:()=>xF,isJsonSourceFile:()=>gp,isJsxAttribute:()=>em,isJsxAttributeLike:()=>K7,isJsxAttributeName:()=>Tne,isJsxAttributes:()=>_2,isJsxChild:()=>s8,isJsxClosingElement:()=>l2,isJsxClosingFragment:()=>cie,isJsxElement:()=>Eg,isJsxExpression:()=>h3,isJsxFragment:()=>u2,isJsxNamespacedName:()=>yd,isJsxOpeningElement:()=>Kd,isJsxOpeningFragment:()=>dx,isJsxOpeningLikeElement:()=>Fu,isJsxOpeningLikeElementTagName:()=>Boe,isJsxSelfClosingElement:()=>Xb,isJsxSpreadAttribute:()=>mx,isJsxTagNameExpression:()=>fE,isJsxText:()=>ex,isJumpStatementTarget:()=>zA,isKeyword:()=>c_,isKeywordOrPunctuation:()=>B5,isKnownSymbol:()=>V8,isLabelName:()=>$H,isLabelOfLabeledStatement:()=>GH,isLabeledStatement:()=>c2,isLateVisibilityPaintedStatement:()=>p5,isLeftHandSideExpression:()=>S_,isLeftHandSideOfAssignment:()=>n1e,isLet:()=>g5,isLineBreak:()=>gu,isLiteralComputedPropertyDeclarationName:()=>B8,isLiteralExpression:()=>Rv,isLiteralExpressionOfObject:()=>ez,isLiteralImportTypeNode:()=>ty,isLiteralKind:()=>cE,isLiteralLikeAccess:()=>O5,isLiteralLikeElementAccess:()=>P8,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>SL,isLiteralTypeLikeExpression:()=>fve,isLiteralTypeLiteral:()=>ote,isLiteralTypeNode:()=>fy,isLocalName:()=>ah,isLogicalOperator:()=>Ire,isLogicalOrCoalescingAssignmentExpression:()=>gW,isLogicalOrCoalescingAssignmentOperator:()=>OE,isLogicalOrCoalescingBinaryExpression:()=>X8,isLogicalOrCoalescingBinaryOperator:()=>$8,isMappedTypeNode:()=>jC,isMemberName:()=>pg,isMetaProperty:()=>f3,isMethodDeclaration:()=>hc,isMethodOrAccessor:()=>AT,isMethodSignature:()=>Lm,isMinusToken:()=>CV,isMissingDeclaration:()=>eve,isMissingPackageJsonInfo:()=>lse,isModifier:()=>ta,isModifierKind:()=>$h,isModifierLike:()=>Oo,isModuleAugmentationExternal:()=>Tz,isModuleBlock:()=>Zd,isModuleBody:()=>ute,isModuleDeclaration:()=>Sc,isModuleExportsAccessExpression:()=>yg,isModuleIdentifier:()=>zz,isModuleName:()=>Nie,isModuleOrEnumDeclaration:()=>n8,isModuleReference:()=>mte,isModuleSpecifierLike:()=>jL,isModuleWithStringLiteralName:()=>f5,isNameOfFunctionDeclaration:()=>ZH,isNameOfModuleDeclaration:()=>YH,isNamedClassElement:()=>Sye,isNamedDeclaration:()=>Nu,isNamedEvaluation:()=>M_,isNamedEvaluationSource:()=>eW,isNamedExportBindings:()=>YJ,isNamedExports:()=>Xf,isNamedImportBindings:()=>lz,isNamedImports:()=>sh,isNamedImportsOrExports:()=>oF,isNamedTupleMember:()=>RC,isNamespaceBody:()=>Cye,isNamespaceExport:()=>jm,isNamespaceExportDeclaration:()=>Ow,isNamespaceImport:()=>my,isNamespaceReexportDeclaration:()=>ere,isNewExpression:()=>a2,isNewExpressionTarget:()=>Y3,isNoSubstitutionTemplateLiteral:()=>tx,isNode:()=>vye,isNodeArray:()=>Mv,isNodeArrayMultiLine:()=>zre,isNodeDescendantOf:()=>Hv,isNodeKind:()=>XD,isNodeLikeSystem:()=>SB,isNodeModulesDirectory:()=>I7,isNodeWithPossibleHoistedDeclaration:()=>ore,isNonContextualKeyword:()=>Zz,isNonExportDefaultModifier:()=>dve,isNonGlobalAmbientModule:()=>Sz,isNonGlobalDeclaration:()=>wce,isNonNullAccess:()=>Sne,isNonNullChain:()=>G7,isNonNullExpression:()=>_x,isNonStaticMethodOrAccessorWithPrivateName:()=>Vse,isNotEmittedOrPartiallyEmittedNode:()=>kye,isNotEmittedStatement:()=>IV,isNullishCoalesce:()=>QJ,isNumber:()=>zh,isNumericLiteral:()=>j_,isNumericLiteralName:()=>kg,isObjectBindingElementWithoutPropertyName:()=>ZA,isObjectBindingOrAssignmentElement:()=>e8,isObjectBindingOrAssignmentPattern:()=>iz,isObjectBindingPattern:()=>kp,isObjectLiteralElement:()=>uz,isObjectLiteralElementLike:()=>Yg,isObjectLiteralExpression:()=>ua,isObjectLiteralMethod:()=>Up,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>b5,isObjectTypeDeclaration:()=>UT,isOctalDigit:()=>M7,isOmittedExpression:()=>pl,isOptionalChain:()=>hu,isOptionalChainRoot:()=>iE,isOptionalDeclaration:()=>e3,isOptionalJSDocPropertyLikeTag:()=>ow,isOptionalTypeNode:()=>TO,isOuterExpression:()=>RO,isOutermostOptionalChain:()=>sE,isOverrideModifier:()=>Zne,isPackageJsonInfo:()=>s9,isPackedArrayLiteral:()=>zW,isParameter:()=>rs,isParameterDeclaration:()=>$v,isParameterPropertyDeclaration:()=>O_,isParameterPropertyModifier:()=>lE,isParenthesizedExpression:()=>l_,isParenthesizedTypeNode:()=>Vb,isParseTreeNode:()=>nE,isPartOfTypeNode:()=>gg,isPartOfTypeQuery:()=>w5,isPartiallyEmittedExpression:()=>EO,isPatternMatch:()=>a7,isPinnedComment:()=>u5,isPlainJsFile:()=>c8,isPlusToken:()=>kV,isPossiblyTypeArgumentPosition:()=>HA,isPostfixUnaryExpression:()=>DV,isPrefixUnaryExpression:()=>dy,isPrivateIdentifier:()=>Pi,isPrivateIdentifierClassElementDeclaration:()=>Iu,isPrivateIdentifierPropertyAccessExpression:()=>qk,isPrivateIdentifierSymbol:()=>fre,isProgramBundleEmitBuildInfo:()=>Hae,isProgramUptoDate:()=>zq,isPrologueDirective:()=>Vp,isPropertyAccessChain:()=>q7,isPropertyAccessEntityNameExpression:()=>Q8,isPropertyAccessExpression:()=>Sn,isPropertyAccessOrQualifiedName:()=>ste,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>ite,isPropertyAssignment:()=>zc,isPropertyDeclaration:()=>xs,isPropertyName:()=>Ac,isPropertyNameLiteral:()=>qd,isPropertySignature:()=>B_,isProtoSetter:()=>pre,isPrototypeAccess:()=>iy,isPrototypePropertyAssignment:()=>A8,isPunctuation:()=>Yz,isPushOrUnshiftIdentifier:()=>tW,isQualifiedName:()=>Xu,isQuestionDotToken:()=>bO,isQuestionOrExclamationToken:()=>Pie,isQuestionOrPlusOrMinusToken:()=>Aie,isQuestionToken:()=>uy,isRawSourceMap:()=>Bse,isReadonlyKeyword:()=>Qne,isReadonlyKeywordOrPlusOrMinusToken:()=>wie,isRecognizedTripleSlashComment:()=>hz,isReferenceFileLocation:()=>c6,isReferencedFile:()=>U1,isRegularExpressionLiteral:()=>TV,isRequireCall:()=>Gu,isRequireVariableStatement:()=>Bz,isRestParameter:()=>dg,isRestTypeNode:()=>xO,isReturnStatement:()=>Hp,isReturnStatementWithFixablePromiseHandler:()=>uM,isRightSideOfAccessExpression:()=>vW,isRightSideOfInstanceofExpression:()=>Ore,isRightSideOfPropertyAccess:()=>m6,isRightSideOfQualifiedName:()=>zoe,isRightSideOfQualifiedNameOrPropertyAccess:()=>ME,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>Fre,isRootedDiskPath:()=>F_,isSameEntityName:()=>cC,isSatisfiesExpression:()=>wV,isScopeMarker:()=>cte,isSemicolonClassElement:()=>iie,isSetAccessor:()=>Xh,isSetAccessorDeclaration:()=>J_,isShebangTrivia:()=>jJ,isShiftOperatorOrHigher:()=>YV,isShorthandAmbientModuleSymbol:()=>mE,isShorthandPropertyAssignment:()=>k_,isSignedNumericLiteral:()=>z5,isSimpleCopiableExpression:()=>y2,isSimpleInlineableExpression:()=>Wm,isSimpleParameter:()=>$se,isSimpleParameterList:()=>hA,isSingleOrDoubleQuote:()=>x8,isSourceFile:()=>Ni,isSourceFileFromLibrary:()=>x6,isSourceFileJS:()=>Ou,isSourceFileNotJS:()=>Rye,isSourceFileNotJson:()=>jz,isSourceMapping:()=>Jse,isSpecialPropertyDeclaration:()=>nre,isSpreadAssignment:()=>a0,isSpreadElement:()=>hd,isStatement:()=>Ei,isStatementButNotDeclaration:()=>i8,isStatementOrBlock:()=>dte,isStatementWithLocals:()=>Cte,isStatic:()=>Ms,isStaticModifier:()=>ix,isString:()=>ls,isStringAKeyword:()=>Hye,isStringANonContextualKeyword:()=>BT,isStringAndEmptyAnonymousObjectIntersection:()=>ece,isStringDoubleQuoted:()=>F5,isStringLiteral:()=>aa,isStringLiteralLike:()=>Ma,isStringLiteralOrJsxExpression:()=>gte,isStringLiteralOrTemplate:()=>bce,isStringOrNumericLiteralLike:()=>Tf,isStringOrRegularExpressionOrTemplateLiteral:()=>aG,isStringTextContainingNode:()=>tz,isSuperCall:()=>Pb,isSuperKeyword:()=>u3,isSuperOrSuperProperty:()=>Mye,isSuperProperty:()=>o_,isSupportedSourceFileName:()=>une,isSwitchStatement:()=>m3,isSyntaxList:()=>qC,isSyntheticExpression:()=>H1e,isSyntheticReference:()=>px,isTagName:()=>XH,isTaggedTemplateExpression:()=>o2,isTaggedTemplateTag:()=>Roe,isTemplateExpression:()=>kO,isTemplateHead:()=>rx,isTemplateLiteral:()=>NT,isTemplateLiteralKind:()=>$0,isTemplateLiteralToken:()=>Zee,isTemplateLiteralTypeNode:()=>tie,isTemplateLiteralTypeSpan:()=>PV,isTemplateMiddle:()=>xV,isTemplateMiddleOrTemplateTail:()=>$7,isTemplateSpan:()=>d3,isTemplateTail:()=>yO,isTextWhiteSpaceLike:()=>ace,isThis:()=>g6,isThisContainerOrFunctionBlock:()=>Yte,isThisIdentifier:()=>Yv,isThisInTypeQuery:()=>JT,isThisInitializedDeclaration:()=>C5,isThisInitializedObjectBindingExpression:()=>Kte,isThisProperty:()=>v8,isThisTypeNode:()=>Nw,isThisTypeParameter:()=>KE,isThisTypePredicate:()=>Lye,isThrowStatement:()=>NV,isToken:()=>PT,isTokenKind:()=>KJ,isTraceEnabled:()=>oh,isTransientSymbol:()=>wm,isTrivia:()=>gC,isTryStatement:()=>$b,isTupleTypeNode:()=>ox,isTypeAlias:()=>F8,isTypeAliasDeclaration:()=>Gp,isTypeAssertionExpression:()=>rie,isTypeDeclaration:()=>NC,isTypeElement:()=>Sb,isTypeKeyword:()=>eP,isTypeKeywordToken:()=>fG,isTypeKeywordTokenOrIdentifier:()=>OL,isTypeLiteralNode:()=>z_,isTypeNode:()=>ki,isTypeNodeKind:()=>PW,isTypeOfExpression:()=>BC,isTypeOnlyExportDeclaration:()=>Kee,isTypeOnlyImportDeclaration:()=>QD,isTypeOnlyImportOrExportDeclaration:()=>x1,isTypeOperatorNode:()=>Ub,isTypeParameterDeclaration:()=>Vo,isTypePredicateNode:()=>ww,isTypeQueryNode:()=>ax,isTypeReferenceNode:()=>$f,isTypeReferenceType:()=>n5,isTypeUsableAsPropertyName:()=>Sp,isUMDExportSymbol:()=>aF,isUnaryExpression:()=>oz,isUnaryExpressionWithWrite:()=>ate,isUnicodeIdentifierStart:()=>O7,isUnionTypeNode:()=>_y,isUnparsedNode:()=>ZJ,isUnparsedPrepend:()=>lie,isUnparsedSource:()=>Qb,isUnparsedTextLike:()=>Yee,isUrl:()=>yee,isValidBigIntString:()=>kF,isValidESSymbolDeclaration:()=>qte,isValidTypeOnlyAliasUseSite:()=>I1,isValueSignatureDeclaration:()=>cre,isVarAwaitUsing:()=>d8,isVarConst:()=>tC,isVarUsing:()=>m8,isVariableDeclaration:()=>hi,isVariableDeclarationInVariableStatement:()=>hE,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>Uv,isVariableDeclarationInitializedToRequire:()=>I5,isVariableDeclarationList:()=>dl,isVariableLike:()=>nC,isVariableLikeOrAccessor:()=>Vte,isVariableStatement:()=>ac,isVoidExpression:()=>ux,isWatchSet:()=>a1e,isWhileStatement:()=>$1e,isWhiteSpaceLike:()=>Xg,isWhiteSpaceSingleLine:()=>Jd,isWithStatement:()=>sie,isWriteAccess:()=>VT,isWriteOnlyAccess:()=>sF,isYieldExpression:()=>CO,jsxModeNeedsExplicitImport:()=>zG,keywordPart:()=>V_,last:()=>ka,lastOrUndefined:()=>Po,length:()=>gr,libMap:()=>XO,libs:()=>eA,lineBreakPart:()=>S6,linkNamePart:()=>fce,linkPart:()=>CG,linkTextPart:()=>zL,listFiles:()=>aH,loadModuleFromGlobalCache:()=>vse,loadWithModeAwareCache:()=>PA,makeIdentifierFromModuleName:()=>Ate,makeImport:()=>_0,makeImportIfNecessary:()=>sce,makeStringLiteral:()=>Ax,mangleScopedPackageName:()=>n6,map:()=>nr,mapAllOrFail:()=>iB,mapDefined:()=>Ri,mapDefinedEntries:()=>RK,mapDefinedIterator:()=>J4,mapEntries:()=>BK,mapIterator:()=>j4,mapOneOrMany:()=>jG,mapToDisplayParts:()=>Sy,matchFiles:()=>LW,matchPatternOrExact:()=>MW,matchedText:()=>KK,matchesExclude:()=>$O,maybeBind:()=>Os,maybeSetLocalizedDiagnosticMessages:()=>Zre,memoize:()=>Hu,memoizeCached:()=>HK,memoizeOne:()=>Cm,memoizeWeak:()=>p0e,metadataHelper:()=>qF,min:()=>gB,minAndMax:()=>fne,missingFileModifiedTime:()=>rf,modifierToFlag:()=>WT,modifiersToFlags:()=>$d,moduleOptionDeclaration:()=>hU,moduleResolutionIsEqualTo:()=>xte,moduleResolutionNameAndModeGetter:()=>$9,moduleResolutionOptionDeclarations:()=>QO,moduleResolutionSupportsPackageJsonExportsAndImports:()=>HT,moduleResolutionUsesNodeModules:()=>LL,moduleSpecifiers:()=>h2,moveEmitHelpers:()=>Bne,moveRangeEnd:()=>nF,moveRangePastDecorators:()=>th,moveRangePastModifiers:()=>Xd,moveRangePos:()=>A1,moveSyntheticComments:()=>Mne,mutateMap:()=>zE,mutateMapSkippingNewValues:()=>Tg,needsParentheses:()=>VL,needsScopeMarker:()=>Y7,newCaseClauseTracker:()=>nM,newPrivateEnvironment:()=>Hse,noEmitNotification:()=>yA,noEmitSubstitution:()=>J3,noTransformers:()=>hq,noTruncationMaximumTruncationLength:()=>IF,nodeCanBeDecorated:()=>P5,nodeHasName:()=>qD,nodeIsDecorated:()=>sC,nodeIsMissing:()=>_c,nodeIsPresent:()=>dp,nodeIsSynthesized:()=>xo,nodeModuleNameResolver:()=>pse,nodeModulesPathPart:()=>zm,nodeNextJsonConfigResolver:()=>dse,nodeOrChildIsDecorated:()=>S8,nodeOverlapsWithStartEnd:()=>TL,nodePosToString:()=>Dye,nodeSeenTracker:()=>wx,nodeStartsNewLexicalEnvironment:()=>rW,nodeToDisplayParts:()=>PTe,noop:()=>Ca,noopFileWatcher:()=>p6,normalizePath:()=>Hs,normalizeSlashes:()=>iu,not:()=>c7,notImplemented:()=>ks,notImplementedResolver:()=>R9,nullNodeConverters:()=>lV,nullParenthesizerRules:()=>cV,nullTransformationContext:()=>z3,objectAllocator:()=>Il,operatorPart:()=>nP,optionDeclarations:()=>Pg,optionMapToObject:()=>qO,optionsAffectingProgramStructure:()=>TU,optionsForBuild:()=>kU,optionsForWatch:()=>ZC,optionsHaveChanges:()=>Qk,optionsHaveModuleResolutionChanges:()=>bte,or:()=>pd,orderedRemoveItem:()=>Ik,orderedRemoveItemAt:()=>z0,outFile:()=>no,packageIdToPackageName:()=>o5,packageIdToString:()=>K0,paramHelper:()=>HF,parameterIsThisKeyword:()=>Qv,parameterNamePart:()=>cce,parseBaseNodeFactory:()=>sU,parseBigInt:()=>pne,parseBuildCommand:()=>Hve,parseCommandLine:()=>Uve,parseCommandLineWorker:()=>cU,parseConfigFileTextToJson:()=>uU,parseConfigFileWithSystem:()=>PSe,parseConfigHostFromCompilerHostLike:()=>G9,parseCustomTypeOption:()=>UO,parseIsolatedEntityName:()=>yx,parseIsolatedJSDocComment:()=>jie,parseJSDocTypeExpressionForTests:()=>Nve,parseJsonConfigFileContent:()=>a2e,parseJsonSourceFileConfigFileContent:()=>Yw,parseJsonText:()=>Gw,parseListTypeOption:()=>Jie,parseNodeFactory:()=>Jm,parseNodeModuleFromPath:()=>oA,parsePackageName:()=>uA,parsePseudoBigInt:()=>$E,parseValidBigInt:()=>JW,patchWriteFileEnsuringDirectory:()=>gee,pathContainsNodeModules:()=>W1,pathIsAbsolute:()=>Q4,pathIsBareSpecifier:()=>OJ,pathIsRelative:()=>nf,patternText:()=>ZK,perfLogger:()=>wu,performIncrementalCompilation:()=>NSe,performance:()=>uee,plainJSErrors:()=>X9,positionBelongsToNode:()=>eG,positionIsASICandidate:()=>GL,positionIsSynthesized:()=>gd,positionsAreOnSameLine:()=>qf,preProcessFile:()=>exe,probablyUsesSemicolons:()=>iN,processCommentPragmas:()=>nU,processPragmasIntoFields:()=>iU,processTaggedTemplateExpression:()=>uq,programContainsEsModules:()=>ice,programContainsModules:()=>nce,projectReferenceIsEqualTo:()=>dz,propKeyHelper:()=>sO,propertyNamePart:()=>lce,pseudoBigIntToString:()=>e2,punctuationPart:()=>Tu,pushIfUnique:()=>zf,quote:()=>aP,quotePreferenceFromString:()=>gG,rangeContainsPosition:()=>WA,rangeContainsPositionExclusive:()=>VA,rangeContainsRange:()=>Df,rangeContainsRangeExclusive:()=>Voe,rangeContainsStartEnd:()=>UA,rangeEndIsOnSameLineAsRangeStart:()=>Z8,rangeEndPositionsAreOnSameLine:()=>Bre,rangeEquals:()=>lB,rangeIsOnSingleLine:()=>jb,rangeOfNode:()=>jW,rangeOfTypeParameters:()=>BW,rangeOverlapsWithStartEnd:()=>Z3,rangeStartIsOnSameLineAsRangeEnd:()=>Jre,rangeStartPositionsAreOnSameLine:()=>iF,readBuilderProgram:()=>oL,readConfigFile:()=>Xw,readHelper:()=>nO,readJson:()=>RE,readJsonConfigFile:()=>Vie,readJsonOrUndefined:()=>SW,reduceEachLeadingCommentRange:()=>kee,reduceEachTrailingCommentRange:()=>Cee,reduceLeft:()=>Du,reduceLeftIterator:()=>qg,reducePathComponents:()=>hb,refactor:()=>Fx,regExpEscape:()=>p1e,relativeComplement:()=>JK,removeAllComments:()=>vw,removeEmitHelper:()=>V1e,removeExtension:()=>iw,removeFileExtension:()=>$u,removeIgnoredPath:()=>Z9,removeMinAndVersionNumbers:()=>hB,removeOptionality:()=>Qoe,removePrefix:()=>H4,removeSuffix:()=>Nk,removeTrailingDirectorySeparator:()=>d1,repeatString:()=>QA,replaceElement:()=>fB,replaceFirstStar:()=>XT,resolutionExtensionIsTSOrJson:()=>qE,resolveConfigFileProjectName:()=>hH,resolveJSModule:()=>_se,resolveLibrary:()=>o9,resolveModuleName:()=>t6,resolveModuleNameFromCache:()=>V2e,resolvePackageNameToPackageJson:()=>PU,resolvePath:()=>U0,resolveProjectReferencePath:()=>l6,resolveTripleslashReference:()=>z9,resolveTypeReferenceDirective:()=>ose,resolvingEmptyArray:()=>NF,restHelper:()=>KF,returnFalse:()=>fd,returnNoopFileWatcher:()=>d6,returnTrue:()=>Wh,returnUndefined:()=>f1,returnsPromise:()=>a$,runInitializersHelper:()=>$F,sameFlatMap:()=>MK,sameMap:()=>rl,sameMapping:()=>Abe,scanShebangTrivia:()=>BJ,scanTokenAtPosition:()=>Jte,scanner:()=>xu,screenStartingMessageCodes:()=>aL,semanticDiagnosticsOptionDeclarations:()=>vU,serializeCompilerOptions:()=>HO,server:()=>KDe,servicesVersion:()=>Yle,setCommentRange:()=>Nc,setConfigFileInOptions:()=>mU,setConstantValue:()=>jne,setEachParent:()=>AC,setEmitFlags:()=>Qr,setFunctionNameHelper:()=>aO,setGetSourceFileAsHashVersioned:()=>sL,setIdentifierAutoGenerate:()=>Tw,setIdentifierGeneratedImportReference:()=>Wne,setIdentifierTypeArguments:()=>i0,setInternalEmitFlags:()=>bw,setLocalizedDiagnosticMessages:()=>Yre,setModuleDefaultHelper:()=>lO,setNodeFlags:()=>gne,setObjectAllocator:()=>Qre,setOriginalNode:()=>dn,setParent:()=>ba,setParentRecursive:()=>ay,setPrivateIdentifier:()=>rS,setSnippetElement:()=>hV,setSourceMapRange:()=>sa,setStackTraceLimit:()=>O0e,setStartsOnNewLine:()=>zF,setSyntheticLeadingComments:()=>O1,setSyntheticTrailingComments:()=>YT,setSys:()=>B0e,setSysLog:()=>dee,setTextRange:()=>Ke,setTextRangeEnd:()=>wC,setTextRangePos:()=>XE,setTextRangePosEnd:()=>Fm,setTextRangePosWidth:()=>QE,setTokenSourceMapRange:()=>Lne,setTypeNode:()=>Jne,setUILocale:()=>XK,setValueDeclaration:()=>N8,shouldAllowImportingTsExtension:()=>i6,shouldPreserveConstEnums:()=>n2,shouldUseUriStyleNodeCoreModules:()=>tM,showModuleSpecifier:()=>qre,signatureHasLiteralTypes:()=>HU,signatureHasRestParameter:()=>Su,signatureToDisplayParts:()=>EG,single:()=>_B,singleElementArray:()=>TT,singleIterator:()=>jK,singleOrMany:()=>xm,singleOrUndefined:()=>Tm,skipAlias:()=>Ul,skipAssertions:()=>lve,skipConstraint:()=>pG,skipOuterExpressions:()=>xc,skipParentheses:()=>Va,skipPartiallyEmittedExpressions:()=>zp,skipTrivia:()=>ca,skipTypeChecking:()=>GE,skipTypeParentheses:()=>j8,skipWhile:()=>tee,sliceAfter:()=>RW,some:()=>ct,sort:()=>fb,sortAndDeduplicate:()=>W4,sortAndDeduplicateDiagnostics:()=>zk,sourceFileAffectingCompilerOptions:()=>YO,sourceFileMayBeEmitted:()=>Ob,sourceMapCommentRegExp:()=>S9,sourceMapCommentRegExpDontCareLineStart:()=>eq,spacePart:()=>cc,spanMap:()=>sB,spreadArrayHelper:()=>iO,stableSort:()=>Bh,startEndContainsRange:()=>KH,startEndOverlapsWithStartEnd:()=>xL,startOnNewLine:()=>bu,startTracing:()=>_ee,startsWith:()=>Vi,startsWithDirectory:()=>MJ,startsWithUnderscore:()=>JG,startsWithUseStrict:()=>Sie,stringContainsAt:()=>Dce,stringToToken:()=>Ov,stripQuotes:()=>vp,supportedDeclarationExtensions:()=>pw,supportedJSExtensions:()=>sV,supportedJSExtensionsFlat:()=>FC,supportedLocaleDirectories:()=>pz,supportedTSExtensions:()=>IC,supportedTSExtensionsFlat:()=>iV,supportedTSImplementationExtensions:()=>dw,suppressLeadingAndTrailingTrivia:()=>U_,suppressLeadingTrivia:()=>AG,suppressTrailingTrivia:()=>hce,symbolEscapedNameNoDefault:()=>RL,symbolName:()=>Xo,symbolNameNoDefault:()=>ML,symbolPart:()=>oce,symbolToDisplayParts:()=>iP,syntaxMayBeASICandidate:()=>HG,syntaxRequiresTrailingSemicolonOrASI:()=>HL,sys:()=>zl,sysLog:()=>DD,tagNamesAreEquivalent:()=>B1,takeWhile:()=>u7,targetOptionDeclaration:()=>rA,templateObjectHelper:()=>rO,testFormatSettings:()=>Moe,textChangeRangeIsUnchanged:()=>Iee,textChangeRangeNewSpan:()=>rE,textChanges:()=>Kr,textOrKeywordPart:()=>kG,textPart:()=>Af,textRangeContainsPositionInclusive:()=>WD,textSpanContainsPosition:()=>WJ,textSpanContainsTextSpan:()=>Dee,textSpanEnd:()=>bc,textSpanIntersection:()=>Nee,textSpanIntersectsWith:()=>B7,textSpanIntersectsWithPosition:()=>Aee,textSpanIntersectsWithTextSpan:()=>aye,textSpanIsEmpty:()=>Pee,textSpanOverlap:()=>wee,textSpanOverlapsWith:()=>sye,textSpansEqual:()=>b6,textToKeywordObj:()=>JD,timestamp:()=>To,toArray:()=>bT,toBuilderFileEmit:()=>Xae,toBuilderStateFileInfoForMultiEmit:()=>$ae,toEditorSettings:()=>xN,toFileNameLowerCase:()=>km,toLowerCase:()=>qK,toPath:()=>No,toProgramEmitPending:()=>Qae,tokenIsIdentifierOrKeyword:()=>Au,tokenIsIdentifierOrKeywordOrGreaterThan:()=>Tee,tokenToString:()=>Ws,trace:()=>Zi,tracing:()=>qr,tracingEnabled:()=>kD,transform:()=>Zke,transformClassFields:()=>nae,transformDeclarations:()=>mq,transformECMAScriptModule:()=>dq,transformES2015:()=>yae,transformES2016:()=>hae,transformES2017:()=>oae,transformES2018:()=>cae,transformES2019:()=>lae,transformES2020:()=>uae,transformES2021:()=>_ae,transformES5:()=>vae,transformESDecorators:()=>aae,transformESNext:()=>fae,transformGenerators:()=>bae,transformJsx:()=>gae,transformLegacyDecorators:()=>sae,transformModule:()=>pq,transformNamedEvaluation:()=>W_,transformNodeModule:()=>Tae,transformNodes:()=>vA,transformSystemModule:()=>Sae,transformTypeScript:()=>rae,transpile:()=>cxe,transpileModule:()=>Gce,transpileOptionValueCompilerOptions:()=>xU,tryAddToSet:()=>_1,tryAndIgnoreErrors:()=>QL,tryCast:()=>Wn,tryDirectoryExists:()=>XL,tryExtractTSExtension:()=>tF,tryFileExists:()=>sN,tryGetClassExtendingExpressionWithTypeArguments:()=>hW,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>yW,tryGetDirectories:()=>$L,tryGetExtensionFromPath:()=>nh,tryGetImportFromModuleSpecifier:()=>I8,tryGetJSDocSatisfiesTypeNode:()=>DF,tryGetModuleNameFromFile:()=>Jw,tryGetModuleSpecifierFromDeclaration:()=>lC,tryGetNativePerformanceHooks:()=>oee,tryGetPropertyAccessOrIdentifierToString:()=>Y8,tryGetPropertyNameOfBindingOrAssignmentElement:()=>BO,tryGetSourceMappingURL:()=>jse,tryGetTextOfPropertyName:()=>gE,tryIOAndConsumeErrors:()=>YL,tryParseJson:()=>rF,tryParsePattern:()=>DC,tryParsePatterns:()=>SF,tryParseRawSourceMap:()=>ZU,tryReadDirectory:()=>FG,tryReadFile:()=>C3,tryRemoveDirectoryPrefix:()=>FW,tryRemoveExtension:()=>_ne,tryRemovePrefix:()=>bB,tryRemoveSuffix:()=>YK,typeAcquisitionDeclarations:()=>nA,typeAliasNamePart:()=>uce,typeDirectiveIsEqualTo:()=>kte,typeKeywords:()=>iM,typeParameterNamePart:()=>_ce,typeToDisplayParts:()=>eN,unchangedPollThresholds:()=>wD,unchangedTextChangeRange:()=>a8,unescapeLeadingUnderscores:()=>xi,unmangleScopedPackageName:()=>fA,unorderedRemoveItem:()=>ST,unorderedRemoveItemAt:()=>yB,unreachableCodeIsError:()=>ene,unusedLabelIsError:()=>tne,unwrapInnermostStatementOfLabel:()=>Oz,updateErrorForNoInputFiles:()=>GO,updateLanguageServiceSourceFile:()=>V$,updateMissingFilePathsWatch:()=>Cq,updateResolutionField:()=>KC,updateSharedExtendedConfigFileWatcher:()=>B9,updateSourceFile:()=>tU,updateWatchingWildcardDirectories:()=>TA,usesExtensionsOnImports:()=>cne,usingSingleLineStringWriter:()=>pE,utf16EncodeAsString:()=>Jk,validateLocaleAndSetLanguage:()=>cye,valuesHelper:()=>oO,version:()=>yf,versionMajorMinor:()=>R0,visitArray:()=>mA,visitCommaListElements:()=>b9,visitEachChild:()=>ur,visitFunctionBody:()=>Pf,visitIterationBody:()=>Qu,visitLexicalEnvironment:()=>QU,visitNode:()=>qe,visitNodes:()=>Dr,visitParameterList:()=>tc,walkUpBindingElementsAndPatterns:()=>Wk,walkUpLexicalEnvironments:()=>qse,walkUpOuterExpressions:()=>Tie,walkUpParenthesizedExpressions:()=>Yh,walkUpParenthesizedTypes:()=>R8,walkUpParenthesizedTypesAndGetParentAndChild:()=>lre,whitespaceOrMapCommentRegExp:()=>T9,writeCommentRange:()=>TC,writeFile:()=>AE,writeFileEnsuringDirectories:()=>fW,zipWith:()=>mD});var t8e=wt({"src/typescript/_namespaces/ts.ts"(){Fs(),MA(),qn(),ky(),Net()}}),Iet=tB({"src/typescript/typescript.ts"(e,t){t8e(),t8e(),typeof console<"u"&&(E.loggingHost={log(n,i){switch(n){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=e8e}});return Iet()})();L0.exports&&(L0.exports=ub)})(fpt);const M4=L0=>(spt("data-v-2dc41a0d"),L0=L0(),apt(),L0),ppt={class:"root"},dpt=M4(()=>ru("h1",null,"Announcements",-1)),mpt={class:"announcements"},gpt=M4(()=>ru("div",{class:"icon"},[ru("span",{class:"material-symbols-rounded"}," add ")],-1)),hpt=M4(()=>ru("h3",null,"New Announcement",-1)),ypt=M4(()=>ru("p",null,"Create a new announcement from scratch!",-1)),vpt=[gpt,hpt,ypt],bpt=M4(()=>ru("div",{class:"card",disabled:"true"},[ru("div",{class:"icon"},[ru("span",{class:"material-symbols-rounded"}," construction ")]),ru("h3",null,"Not yet implemented"),ru("p",null," post one-time announcements on Discord, edit sent announcements & more ")],-1)),Spt={class:"filters"},Tpt=["aria-checked","title"],xpt=M4(()=>ru("span",{class:"material-symbols-rounded"}," person ",-1)),kpt={key:0,class:"itemlist"},Cpt=M4(()=>ru("div",{class:"announcement"},[ru("a",null,[ru("span",null,"Name"),ru("span",null,"Date modified"),ru("span",null,"Modified by")])],-1)),Ept={key:0},Ppt={key:1},Dpt=M4(()=>ru("i",null,"N/A",-1)),wpt=[Dpt],Apt={key:1,class:"pagination"},Npt={class:"pager"},Ipt=["disabled"],Fpt=["disabled"],i0e=8,Opt=Xft({__name:"Overview",setup(L0){const M0=cpt(),ub=Qft(),XI=eB(0),_b=eB(0),wt=eB([]),tB=IK(()=>wt.value.sort((Lp,qg)=>new Date(qg.lastModified).getTime()-new Date(Lp.lastModified).getTime()));IK(()=>{var Lp;return(Lp=tB.value)==null?void 0:Lp[0]});const vl=async()=>{const Lp=await M0.create();ub.push(Lp)},R0=eB(""),yf=eB(!1),R4=async()=>{const{items:Lp,totalCount:qg}=await lpt.announements.search(R0.value,yf.value,void 0,i0e,YI.value);wt.value=Lp,XI.value=qg},QI=upt(R4,500),gr=_pt(R4,500);v5e(R0,gr),v5e(yf,QI);const er=IK(()=>Math.ceil(XI.value/i0e)),YI=IK(()=>_b.value*i0e),$o=Lp=>{Lp<0||Lp>=er.value||(_b.value=Lp,QI())};return Yft(()=>{QI()}),(Lp,qg)=>{const mD=Zft("router-link");return fD(),pD("div",ppt,[dpt,ru("div",mpt,[ru("div",{class:"cards"},[ru("div",{class:"card",onClick:vl},vpt),bpt]),ru("div",Spt,[Kft(ru("input",{type:"text","onUpdate:modelValue":qg[0]||(qg[0]=cg=>R0.value=cg),placeholder:"Search..."},null,512),[[ept,R0.value]]),ru("label",{onClick:qg[1]||(qg[1]=cg=>yf.value=!yf.value),"aria-checked":yf.value,title:yf.value?"Show all":"Show only announcements I last modified"},[xpt,FK(" My announcements ")],8,Tpt)]),wt.value.length?(fD(),pD("div",kpt,[Cpt,(fD(!0),pD(tpt,null,rpt(tB.value,cg=>(fD(),pD("div",{key:cg.id,class:"announcement"},[npt(mD,{to:`/announcements/${cg.id}`},{default:ipt(()=>[cg.title?(fD(),pD("h3",Ept,dD(cg.title),1)):(fD(),pD("h3",Ppt,wpt)),ru("span",null,dD(new Date(cg.lastModified).toLocaleString()),1),ru("span",null,dD(cg.author),1)]),_:2},1032,["to"])]))),128))])):b5e("",!0),wt.value.length?(fD(),pD("div",Apt,[ru("span",null,[FK(" Showing "),ru("strong",null,dD(wt.value.length),1),FK(" of "),ru("strong",null,dD(XI.value),1),FK(" announcements ")]),ru("div",Npt,[ru("span",{class:"material-symbols-rounded",disabled:_b.value===0,onClick:qg[2]||(qg[2]=cg=>$o(_b.value-1))}," chevron_left ",8,Ipt),ru("span",null,"Page "+dD(_b.value+1)+" of "+dD(er.value),1),ru("span",{class:"material-symbols-rounded",disabled:_b.value===er.value-1,onClick:qg[3]||(qg[3]=cg=>$o(_b.value+1))}," chevron_right ",8,Fpt)])])):b5e("",!0)])])}}}),Bpt=opt(Opt,[["__scopeId","data-v-2dc41a0d"]]);export{Bpt as default}; +`,o++};this.projectService.externalProjects.forEach(c),this.projectService.configuredProjects.forEach(c),this.projectService.inferredProjects.forEach(c)}}this.logger.msg(s,"Err")}send(t){if(t.type==="event"&&!this.canUseEvents){this.logger.hasLevel(3)&&this.logger.info(`Session does not support events: ignored event: ${q1(t)}`);return}this.writeMessage(t)}writeMessage(t){var n;const i=hde(t,this.logger,this.byteLength,this.host.newLine);(n=wu)==null||n.logEvent(`Response message size: ${i.length}`),this.host.write(i)}event(t,n){this.send(yde(n,t))}doOutput(t,n,i,s,o){const c={seq:0,type:"response",command:n,request_seq:i,success:s,performanceData:this.performanceData};if(s){let u;if(ts(t))c.body=t,u=t.metadata,delete t.metadata;else if(typeof t=="object")if(t.metadata){const{metadata:f,...g}=t;c.body=g,u=f}else c.body=t;else c.body=t;u&&(c.metadata=u)}else E.assert(t===void 0);o&&(c.message=o),this.send(c)}semanticCheck(t,n){var i,s;(i=qr)==null||i.push(qr.Phase.Session,"semanticCheck",{file:t,configFilePath:n.canonicalConfigFilePath});const o=JDe(n,t)?Wc:n.getLanguageService().getSemanticDiagnostics(t).filter(c=>!!c.file);this.sendDiagnosticsEvent(t,n,o,"semanticDiag"),(s=qr)==null||s.pop()}syntacticCheck(t,n){var i,s;(i=qr)==null||i.push(qr.Phase.Session,"syntacticCheck",{file:t,configFilePath:n.canonicalConfigFilePath}),this.sendDiagnosticsEvent(t,n,n.getLanguageService().getSyntacticDiagnostics(t),"syntaxDiag"),(s=qr)==null||s.pop()}suggestionCheck(t,n){var i,s;(i=qr)==null||i.push(qr.Phase.Session,"suggestionCheck",{file:t,configFilePath:n.canonicalConfigFilePath}),this.sendDiagnosticsEvent(t,n,n.getLanguageService().getSuggestionDiagnostics(t),"suggestionDiag"),(s=qr)==null||s.pop()}sendDiagnosticsEvent(t,n,i,s){try{this.event({file:t,diagnostics:i.map(o=>zDe(t,n,o))},s)}catch(o){this.logError(o,s)}}updateErrorCheck(t,n,i,s=!0){E.assert(!this.suppressDiagnosticEvents);const o=this.changeSeq,c=Math.min(i,200);let u=0;const f=()=>{u++,n.length>u&&t.delay("checkOne",c,g)},g=()=>{if(this.changeSeq!==o)return;let d=n[u];if(ls(d)&&(d=this.toPendingErrorCheck(d),!d)){f();return}const{fileName:y,project:S}=d;if(uf(S),!!S.containsFile(y,s)&&(this.syntacticCheck(y,S),this.changeSeq===o)){if(S.projectService.serverMode!==0){f();return}t.immediate("semanticCheck",()=>{if(this.semanticCheck(y,S),this.changeSeq===o){if(this.getPreferences(y).disableSuggestions){f();return}t.immediate("suggestionCheck",()=>{this.suggestionCheck(y,S),f()})}})}};n.length>u&&this.changeSeq===o&&t.delay("checkOne",i,g)}cleanProjects(t,n){if(n){this.logger.info(`cleaning ${t}`);for(const i of n)i.getLanguageService(!1).cleanupSemanticCache(),i.cleanupProgram()}}cleanup(){this.cleanProjects("inferred projects",this.projectService.inferredProjects),this.cleanProjects("configured projects",gs(this.projectService.configuredProjects.values())),this.cleanProjects("external projects",this.projectService.externalProjects),this.host.gc&&(this.logger.info("host.gc()"),this.host.gc())}getEncodedSyntacticClassifications(t){const{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t);return i.getEncodedSyntacticClassifications(n,t)}getEncodedSemanticClassifications(t){const{file:n,project:i}=this.getFileAndProject(t),s=t.format==="2020"?"2020":"original";return i.getLanguageService().getEncodedSemanticClassifications(n,t,s)}getProject(t){return t===void 0?void 0:this.projectService.findProject(t)}getConfigFileAndProject(t){const n=this.getProject(t.projectFileName),i=zo(t.file);return{configFile:n&&n.hasConfigFile(i)?i:void 0,project:n}}getConfigFileDiagnostics(t,n,i){const s=n.getAllProjectErrors(),o=n.getLanguageService().getCompilerOptionsDiagnostics(),c=An(es(s,o),u=>!!u.file&&u.file.fileName===t);return i?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(c):nr(c,u=>eI(u,!1))}convertToDiagnosticsWithLinePositionFromDiagnosticFile(t){return t.map(n=>({message:em(n.messageText,this.host.newLine),start:n.start,length:n.length,category:mb(n),code:n.code,source:n.source,startLocation:n.file&&KN(Ha(n.file,n.start)),endLocation:n.file&&KN(Ha(n.file,n.start+n.length)),reportsUnnecessary:n.reportsUnnecessary,reportsDeprecated:n.reportsDeprecated,relatedInformation:nr(n.relatedInformation,DY)}))}getCompilerOptionsDiagnostics(t){const n=this.getProject(t.projectFileName);return this.convertToDiagnosticsWithLinePosition(An(n.getLanguageService().getCompilerOptionsDiagnostics(),i=>!i.file),void 0)}convertToDiagnosticsWithLinePosition(t,n){return t.map(i=>({message:em(i.messageText,this.host.newLine),start:i.start,length:i.length,category:mb(i),code:i.code,source:i.source,startLocation:n&&n.positionToLineOffset(i.start),endLocation:n&&n.positionToLineOffset(i.start+i.length),reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated,relatedInformation:nr(i.relatedInformation,DY)}))}getDiagnosticsWorker(t,n,i,s){const{project:o,file:c}=this.getFileAndProject(t);if(n&&JDe(o,c))return Wc;const u=o.getScriptInfoForNormalizedPath(c),f=i(o,c);return s?this.convertToDiagnosticsWithLinePosition(f,u):f.map(g=>zDe(c,o,g))}getDefinition(t,n){const{file:i,project:s}=this.getFileAndProject(t),o=this.getPositionInFile(t,i),c=this.mapDefinitionInfoLocations(s.getLanguageService().getDefinitionAtPosition(i,o)||Wc,s);return n?this.mapDefinitionInfo(c,s):c.map(NK.mapToOriginalLocation)}mapDefinitionInfoLocations(t,n){return t.map(i=>{const s=UDe(i,n);return s?{...s,containerKind:i.containerKind,containerName:i.containerName,kind:i.kind,name:i.name,failedAliasResolution:i.failedAliasResolution,...i.unverified&&{unverified:i.unverified}}:i})}getDefinitionAndBoundSpan(t,n){const{file:i,project:s}=this.getFileAndProject(t),o=this.getPositionInFile(t,i),c=E.checkDefined(s.getScriptInfo(i)),u=s.getLanguageService().getDefinitionAndBoundSpan(i,o);if(!u||!u.definitions)return{definitions:Wc,textSpan:void 0};const f=this.mapDefinitionInfoLocations(u.definitions,s),{textSpan:g}=u;return n?{definitions:this.mapDefinitionInfo(f,s),textSpan:Um(g,c)}:{definitions:f.map(NK.mapToOriginalLocation),textSpan:g}}findSourceDefinition(t){var n;const{file:i,project:s}=this.getFileAndProject(t),o=this.getPositionInFile(t,i),c=s.getLanguageService().getDefinitionAtPosition(i,o);let u=this.mapDefinitionInfoLocations(c||Wc,s).slice();if(this.projectService.serverMode===0&&(!ct(u,T=>zo(T.fileName)!==i&&!T.isAmbient)||ct(u,T=>!!T.failedAliasResolution))){const T=pB(F=>F.textSpan.start,yG(this.host.useCaseSensitiveFileNames));u==null||u.forEach(F=>T.add(F));const k=s.getNoDtsResolutionProject(i),w=k.getLanguageService(),P=(n=w.getDefinitionAtPosition(i,o,!0,!1))==null?void 0:n.filter(F=>zo(F.fileName)!==i);if(ct(P))for(const F of P){if(F.unverified){const J=y(F,s.getLanguageService().getProgram(),w.getProgram());if(ct(J)){for(const U of J)T.add(U);continue}}T.add(F)}else{const F=u.filter(J=>zo(J.fileName)!==i&&J.isAmbient);for(const J of ct(F)?F:d()){const U=g(J.fileName,i,k);if(!U)continue;const $=this.projectService.getOrCreateScriptInfoNotOpenedByClient(U,k.currentDirectory,k.directoryStructureHost);if(!$)continue;k.containsScriptInfo($)||(k.addRoot($),k.updateGraph());const j=w.getProgram(),re=E.checkDefined(j.getSourceFile(U));for(const R of S(J.name,re,j))T.add(R)}}u=gs(T.values())}return u=u.filter(T=>!T.isAmbient&&!T.failedAliasResolution),this.mapDefinitionInfo(u,s);function g(T,k,w){var P,F,J;const U=kF(T);if(U&&T.lastIndexOf(zm)===U.topLevelNodeModulesIndex){const $=T.substring(0,U.packageRootIndex),j=(P=s.getModuleResolutionCache())==null?void 0:P.getPackageJsonInfoCache(),re=s.getCompilationSettings(),R=cA(Xi($+"/package.json",s.getCurrentDirectory()),oA(j,s,re));if(!R)return;const Y=IU(R,{moduleResolution:2},s,s.getModuleResolutionCache()),ue=T.substring(U.topLevelPackageNameIndex+1,U.packageRootIndex),pe=N3(_A(ue)),H=s.toPath(T);if(Y&&ct(Y,q=>s.toPath(q)===H))return(F=w.resolutionCache.resolveSingleModuleNameWithoutWatching(pe,k).resolvedModule)==null?void 0:F.resolvedFileName;{const q=T.substring(U.packageRootIndex+1),ee=`${pe}/${$u(q)}`;return(J=w.resolutionCache.resolveSingleModuleNameWithoutWatching(ee,k).resolvedModule)==null?void 0:J.resolvedFileName}}}function d(){const T=s.getLanguageService(),k=T.getProgram(),w=u_(k.getSourceFile(i),o);return(Ma(w)||Ie(w))&&co(w.parent)&&Hre(w,P=>{var F;if(P===w)return;const J=(F=T.getDefinitionAtPosition(i,P.getStart(),!0,!1))==null?void 0:F.filter(U=>zo(U.fileName)!==i&&U.isAmbient).map(U=>({fileName:U.fileName,name:hp(w)}));if(ct(J))return J})||Wc}function y(T,k,w){var P;const F=w.getSourceFile(T.fileName);if(!F)return;const J=u_(k.getSourceFile(i),o),U=k.getTypeChecker().getSymbolAtLocation(J),$=U&&Jo(U,276);if(!$)return;const j=((P=$.propertyName)==null?void 0:P.text)||$.name.text;return S(j,F,w)}function S(T,k,w){const P=uo.Core.getTopMostDeclarationNamesInFile(T,k);return Ri(P,F=>{const J=w.getTypeChecker().getSymbolAtLocation(F),U=TE(F);if(J&&U)return L6.createDefinitionInfo(U,w.getTypeChecker(),J,U,!0)})}}getEmitOutput(t){const{file:n,project:i}=this.getFileAndProject(t);if(!i.shouldEmitFile(i.getScriptInfo(n)))return{emitSkipped:!0,outputFiles:[],diagnostics:[]};const s=i.getLanguageService().getEmitOutput(n);return t.richResponse?{...s,diagnostics:t.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(s.diagnostics):s.diagnostics.map(o=>eI(o,!0))}:s}mapJSDocTagInfo(t,n,i){return t?t.map(s=>{var o;return{...s,text:i?this.mapDisplayParts(s.text,n):(o=s.text)==null?void 0:o.map(c=>c.text).join("")}}):[]}mapDisplayParts(t,n){return t?t.map(i=>i.kind!=="linkName"?i:{...i,target:this.toFileSpan(i.target.fileName,i.target.textSpan,n)}):[]}mapSignatureHelpItems(t,n,i){return t.map(s=>({...s,documentation:this.mapDisplayParts(s.documentation,n),parameters:s.parameters.map(o=>({...o,documentation:this.mapDisplayParts(o.documentation,n)})),tags:this.mapJSDocTagInfo(s.tags,n,i)}))}mapDefinitionInfo(t,n){return t.map(i=>({...this.toFileSpanWithContext(i.fileName,i.textSpan,i.contextSpan,n),...i.unverified&&{unverified:i.unverified}}))}static mapToOriginalLocation(t){return t.originalFileName?(E.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,n,i){const s=i.getLanguageService(),o=s.toLineColumnOffset(t,n.start),c=s.toLineColumnOffset(t,bc(n));return{file:t,start:{line:o.line+1,offset:o.character+1},end:{line:c.line+1,offset:c.character+1}}}toFileSpanWithContext(t,n,i,s){const o=this.toFileSpan(t,n,s),c=i&&this.toFileSpan(t,i,s);return c?{...o,contextStart:c.start,contextEnd:c.end}:o}getTypeDefinition(t){const{file:n,project:i}=this.getFileAndProject(t),s=this.getPositionInFile(t,n),o=this.mapDefinitionInfoLocations(i.getLanguageService().getTypeDefinitionAtPosition(n,s)||Wc,i);return this.mapDefinitionInfo(o,i)}mapImplementationLocations(t,n){return t.map(i=>{const s=UDe(i,n);return s?{...s,kind:i.kind,displayParts:i.displayParts}:i})}getImplementation(t,n){const{file:i,project:s}=this.getFileAndProject(t),o=this.getPositionInFile(t,i),c=this.mapImplementationLocations(s.getLanguageService().getImplementationAtPosition(i,o)||Wc,s);return n?c.map(({fileName:u,textSpan:f,contextSpan:g})=>this.toFileSpanWithContext(u,f,g,s)):c.map(NK.mapToOriginalLocation)}getSyntacticDiagnosticsSync(t){const{configFile:n}=this.getConfigFileAndProject(t);return n?Wc:this.getDiagnosticsWorker(t,!1,(i,s)=>i.getLanguageService().getSyntacticDiagnostics(s),!!t.includeLinePosition)}getSemanticDiagnosticsSync(t){const{configFile:n,project:i}=this.getConfigFileAndProject(t);return n?this.getConfigFileDiagnostics(n,i,!!t.includeLinePosition):this.getDiagnosticsWorker(t,!0,(s,o)=>s.getLanguageService().getSemanticDiagnostics(o).filter(c=>!!c.file),!!t.includeLinePosition)}getSuggestionDiagnosticsSync(t){const{configFile:n}=this.getConfigFileAndProject(t);return n?Wc:this.getDiagnosticsWorker(t,!0,(i,s)=>i.getLanguageService().getSuggestionDiagnostics(s),!!t.includeLinePosition)}getJsxClosingTag(t){const{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.getPositionInFile(t,n),o=i.getJsxClosingTagAtPosition(n,s);return o===void 0?void 0:{newText:o.newText,caretOffset:0}}getLinkedEditingRange(t){const{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.getPositionInFile(t,n),o=i.getLinkedEditingRangeAtPosition(n,s),c=this.projectService.getScriptInfoForNormalizedPath(n);if(!(c===void 0||o===void 0))return Tet(o,c)}getDocumentHighlights(t,n){const{file:i,project:s}=this.getFileAndProject(t),o=this.getPositionInFile(t,i),c=s.getLanguageService().getDocumentHighlights(i,o,t.filesToSearch);return c?n?c.map(({fileName:u,highlightSpans:f})=>{const g=s.getScriptInfo(u);return{file:u,highlightSpans:f.map(({textSpan:d,kind:y,contextSpan:S})=>({...bde(d,S,g),kind:y}))}}):c:Wc}provideInlayHints(t){const{file:n,project:i}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(n);return i.getLanguageService().provideInlayHints(n,t,this.getPreferences(n)).map(c=>{const{position:u,displayParts:f}=c;return{...c,position:s.positionToLineOffset(u),displayParts:f==null?void 0:f.map(({text:g,span:d,file:y})=>{if(d){E.assertIsDefined(y,"Target file should be defined together with its span.");const S=this.projectService.getScriptInfo(y);return{text:g,span:{start:S.positionToLineOffset(d.start),end:S.positionToLineOffset(d.start+d.length),file:y}}}else return{text:g}})}})}setCompilerOptionsForInferredProjects(t){this.projectService.setCompilerOptionsForInferredProjects(t.options,t.projectRootPath)}getProjectInfo(t){return this.getProjectInfoWorker(t.file,t.projectFileName,t.needFileNameList,!1)}getProjectInfoWorker(t,n,i,s){const{project:o}=this.getFileAndProjectWorker(t,n);return uf(o),{configFileName:o.getProjectName(),languageServiceDisabled:!o.languageServiceEnabled,fileNames:i?o.getFileNames(!1,s):void 0}}getRenameInfo(t){const{file:n,project:i}=this.getFileAndProject(t),s=this.getPositionInFile(t,n),o=this.getPreferences(n);return i.getLanguageService().getRenameInfo(n,s,o)}getProjects(t,n,i){let s,o;if(t.projectFileName){const c=this.getProject(t.projectFileName);c&&(s=[c])}else{const c=n?this.projectService.getScriptInfoEnsuringProjectsUptoDate(t.file):this.projectService.getScriptInfo(t.file);if(c)n||this.projectService.ensureDefaultProjectForFile(c);else return i?Wc:(this.projectService.logErrorForScriptInfoNotFound(t.file),g0.ThrowNoProject());s=c.containingProjects,o=this.projectService.getSymlinkedProjects(c)}return s=An(s,c=>c.languageServiceEnabled&&!c.isOrphan()),!i&&(!s||!s.length)&&!o?(this.projectService.logErrorForScriptInfoNotFound(t.file??t.projectFileName),g0.ThrowNoProject()):o?{projects:s,symLinkedProjects:o}:s}getDefaultProject(t){if(t.projectFileName){const i=this.getProject(t.projectFileName);if(i)return i;if(!t.file)return g0.ThrowNoProject()}return this.projectService.getScriptInfo(t.file).getDefaultProject()}getRenameLocations(t,n){const i=zo(t.file),s=this.getPositionInFile(t,i),o=this.getProjects(t),c=this.getDefaultProject(t),u=this.getPreferences(i),f=this.mapRenameInfo(c.getLanguageService().getRenameInfo(i,s,u),E.checkDefined(this.projectService.getScriptInfo(i)));if(!f.canRename)return n?{info:f,locs:[]}:[];const g=det(o,c,{fileName:t.file,pos:s},!!t.findInStrings,!!t.findInComments,u,this.host.useCaseSensitiveFileNames);return n?{info:f,locs:this.toSpanGroups(g)}:g}mapRenameInfo(t,n){if(t.canRename){const{canRename:i,fileToRename:s,displayName:o,fullDisplayName:c,kind:u,kindModifiers:f,triggerSpan:g}=t;return{canRename:i,fileToRename:s,displayName:o,fullDisplayName:c,kind:u,kindModifiers:f,triggerSpan:Um(g,n)}}else return t}toSpanGroups(t){const n=new Map;for(const{fileName:i,textSpan:s,contextSpan:o,originalContextSpan:c,originalTextSpan:u,originalFileName:f,...g}of t){let d=n.get(i);d||n.set(i,d={file:i,locs:[]});const y=E.checkDefined(this.projectService.getScriptInfo(i));d.locs.push({...bde(s,o,y),...g})}return gs(n.values())}getReferences(t,n){const i=zo(t.file),s=this.getProjects(t),o=this.getPositionInFile(t,i),c=get(s,this.getDefaultProject(t),{fileName:t.file,pos:o},this.host.useCaseSensitiveFileNames,this.logger);if(!n)return c;const u=this.getPreferences(i),f=this.getDefaultProject(t),g=f.getScriptInfoForNormalizedPath(i),d=f.getLanguageService().getQuickInfoAtPosition(i,o),y=d?xN(d.displayParts):"",S=d&&d.textSpan,T=S?g.positionToLineOffset(S.start).offset:0,k=S?g.getSnapshot().getText(S.start,bc(S)):"";return{refs:Zs(c,P=>P.references.map(F=>HDe(this.projectService,F,u))),symbolName:k,symbolStartOffset:T,symbolDisplayString:y}}getFileReferences(t,n){const i=this.getProjects(t),s=t.file,o=this.getPreferences(zo(s)),c=[],u=wY(this.host.useCaseSensitiveFileNames);return vde(i,void 0,g=>{if(g.getCancellationToken().isCancellationRequested())return;const d=g.getLanguageService().getFileReferences(s);if(d)for(const y of d)u.has(y)||(c.push(y),u.add(y))}),n?{refs:c.map(g=>HDe(this.projectService,g,o)),symbolName:`"${t.file}"`}:c}openClientFile(t,n,i,s){this.projectService.openClientFileWithNormalizedPath(t,n,i,!1,s)}getPosition(t,n){return t.position!==void 0?t.position:n.lineOffsetToPosition(t.line,t.offset)}getPositionInFile(t,n){const i=this.projectService.getScriptInfoForNormalizedPath(n);return this.getPosition(t,i)}getFileAndProject(t){return this.getFileAndProjectWorker(t.file,t.projectFileName)}getFileAndLanguageServiceForSyntacticOperation(t){const{file:n,project:i}=this.getFileAndProject(t);return{file:n,languageService:i.getLanguageService(!1)}}getFileAndProjectWorker(t,n){const i=zo(t),s=this.getProject(n)||this.projectService.ensureDefaultProjectForFile(i);return{file:i,project:s}}getOutliningSpans(t,n){const{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=s.getOutliningSpans(i);if(n){const c=this.projectService.getScriptInfoForNormalizedPath(i);return o.map(u=>({textSpan:Um(u.textSpan,c),hintSpan:Um(u.hintSpan,c),bannerText:u.bannerText,autoCollapse:u.autoCollapse,kind:u.kind}))}else return o}getTodoComments(t){const{file:n,project:i}=this.getFileAndProject(t);return i.getLanguageService().getTodoComments(n,t.descriptors)}getDocCommentTemplate(t){const{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.getPositionInFile(t,n);return i.getDocCommentTemplateAtPosition(n,s,this.getPreferences(n),this.getFormatOptions(n))}getSpanOfEnclosingComment(t){const{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=t.onlyMultiLine,o=this.getPositionInFile(t,n);return i.getSpanOfEnclosingComment(n,o,s)}getIndentation(t){const{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.getPositionInFile(t,n),o=t.options?z6(t.options):this.getFormatOptions(n),c=i.getIndentationAtPosition(n,s,o);return{position:s,indentation:c}}getBreakpointStatement(t){const{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.getPositionInFile(t,n);return i.getBreakpointStatementAtPosition(n,s)}getNameOrDottedNameSpan(t){const{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.getPositionInFile(t,n);return i.getNameOrDottedNameSpan(n,s,s)}isValidBraceCompletion(t){const{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.getPositionInFile(t,n);return i.isValidBraceCompletionAtPosition(n,s,t.openingBrace.charCodeAt(0))}getQuickInfoWorker(t,n){const{file:i,project:s}=this.getFileAndProject(t),o=this.projectService.getScriptInfoForNormalizedPath(i),c=s.getLanguageService().getQuickInfoAtPosition(i,this.getPosition(t,o));if(!c)return;const u=!!this.getPreferences(i).displayPartsForJSDoc;if(n){const f=xN(c.displayParts);return{kind:c.kind,kindModifiers:c.kindModifiers,start:o.positionToLineOffset(c.textSpan.start),end:o.positionToLineOffset(bc(c.textSpan)),displayString:f,documentation:u?this.mapDisplayParts(c.documentation,s):xN(c.documentation),tags:this.mapJSDocTagInfo(c.tags,s,u)}}else return u?c:{...c,tags:this.mapJSDocTagInfo(c.tags,s,!1)}}getFormattingEditsForRange(t){const{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(n),o=s.lineOffsetToPosition(t.line,t.offset),c=s.lineOffsetToPosition(t.endLine,t.endOffset),u=i.getFormattingEditsForRange(n,o,c,this.getFormatOptions(n));if(u)return u.map(f=>this.convertTextChangeToCodeEdit(f,s))}getFormattingEditsForRangeFull(t){const{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=t.options?z6(t.options):this.getFormatOptions(n);return i.getFormattingEditsForRange(n,t.position,t.endPosition,s)}getFormattingEditsForDocumentFull(t){const{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=t.options?z6(t.options):this.getFormatOptions(n);return i.getFormattingEditsForDocument(n,s)}getFormattingEditsAfterKeystrokeFull(t){const{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=t.options?z6(t.options):this.getFormatOptions(n);return i.getFormattingEditsAfterKeystroke(n,t.position,t.key,s)}getFormattingEditsAfterKeystroke(t){const{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(n),o=s.lineOffsetToPosition(t.line,t.offset),c=this.getFormatOptions(n),u=i.getFormattingEditsAfterKeystroke(n,o,t.key,c);if(t.key===` +`&&(!u||u.length===0||fet(u,o))){const{lineText:f,absolutePosition:g}=s.textStorage.getAbsolutePositionAndLineText(t.line);if(f&&f.search("\\S")<0){const d=i.getIndentationAtPosition(n,o,c);let y=0,S,T;for(S=0,T=f.length;S({start:s.positionToLineOffset(f.span.start),end:s.positionToLineOffset(bc(f.span)),newText:f.newText?f.newText:""}))}getCompletions(t,n){const{file:i,project:s}=this.getFileAndProject(t),o=this.projectService.getScriptInfoForNormalizedPath(i),c=this.getPosition(t,o),u=s.getLanguageService().getCompletionsAtPosition(i,c,{...sde(this.getPreferences(i)),triggerCharacter:t.triggerCharacter,triggerKind:t.triggerKind,includeExternalModuleExports:t.includeExternalModuleExports,includeInsertTextCompletions:t.includeInsertTextCompletions},s.projectService.getFormatCodeOptions(i));if(u===void 0)return;if(n==="completions-full")return u;const f=t.prefix||"",g=Ri(u.entries,y=>{if(u.isMemberCompletion||Vi(y.name.toLowerCase(),f.toLowerCase())){const{name:S,kind:T,kindModifiers:k,sortText:w,insertText:P,filterText:F,replacementSpan:J,hasAction:U,source:$,sourceDisplay:j,labelDetails:re,isSnippet:R,isRecommended:Y,isPackageJsonImport:ue,isImportStatementCompletion:pe,data:H}=y,q=J?Um(J,o):void 0;return{name:S,kind:T,kindModifiers:k,sortText:w,insertText:P,filterText:F,replacementSpan:q,isSnippet:R,hasAction:U||void 0,source:$,sourceDisplay:j,labelDetails:re,isRecommended:Y,isPackageJsonImport:ue,isImportStatementCompletion:pe,data:H}}});return n==="completions"?(u.metadata&&(g.metadata=u.metadata),g):{...u,optionalReplacementSpan:u.optionalReplacementSpan&&Um(u.optionalReplacementSpan,o),entries:g}}getCompletionEntryDetails(t,n){const{file:i,project:s}=this.getFileAndProject(t),o=this.projectService.getScriptInfoForNormalizedPath(i),c=this.getPosition(t,o),u=s.projectService.getFormatCodeOptions(i),f=!!this.getPreferences(i).displayPartsForJSDoc,g=Ri(t.entryNames,d=>{const{name:y,source:S,data:T}=typeof d=="string"?{name:d,source:void 0,data:void 0}:d;return s.getLanguageService().getCompletionEntryDetails(i,c,y,u,S,this.getPreferences(i),T?Ls(T,Pet):void 0)});return n?f?g:g.map(d=>({...d,tags:this.mapJSDocTagInfo(d.tags,s,!1)})):g.map(d=>({...d,codeActions:nr(d.codeActions,y=>this.mapCodeAction(y)),documentation:this.mapDisplayParts(d.documentation,s),tags:this.mapJSDocTagInfo(d.tags,s,f)}))}getCompileOnSaveAffectedFileList(t){const n=this.getProjects(t,!0,!0),i=this.projectService.getScriptInfo(t.file);return i?pet(i,s=>this.projectService.getScriptInfoForPath(s),n,(s,o)=>{if(!s.compileOnSaveEnabled||!s.languageServiceEnabled||s.isOrphan())return;const c=s.getCompilationSettings();if(!(c.noEmit||Hl(o.fileName)&&!_et(c)))return{projectFileName:s.getProjectName(),fileNames:s.getCompileOnSaveAffectedFileList(o),projectUsesOutFile:!!io(c)}}):Wc}emitFile(t){const{file:n,project:i}=this.getFileAndProject(t);if(i||g0.ThrowNoProject(),!i.languageServiceEnabled)return t.richResponse?{emitSkipped:!0,diagnostics:[]}:!1;const s=i.getScriptInfo(n),{emitSkipped:o,diagnostics:c}=i.emitFile(s,(u,f,g)=>this.host.writeFile(u,f,g));return t.richResponse?{emitSkipped:o,diagnostics:t.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(c):c.map(u=>eI(u,!0))}:!o}getSignatureHelpItems(t,n){const{file:i,project:s}=this.getFileAndProject(t),o=this.projectService.getScriptInfoForNormalizedPath(i),c=this.getPosition(t,o),u=s.getLanguageService().getSignatureHelpItems(i,c,t),f=!!this.getPreferences(i).displayPartsForJSDoc;if(u&&n){const g=u.applicableSpan;return{...u,applicableSpan:{start:o.positionToLineOffset(g.start),end:o.positionToLineOffset(g.start+g.length)},items:this.mapSignatureHelpItems(u.items,s,f)}}else return f||!u?u:{...u,items:u.items.map(g=>({...g,tags:this.mapJSDocTagInfo(g.tags,s,!1)}))}}toPendingErrorCheck(t){const n=zo(t),i=this.projectService.tryGetDefaultProjectForFile(n);return i&&{fileName:n,project:i}}getDiagnostics(t,n,i){this.suppressDiagnosticEvents||i.length>0&&this.updateErrorCheck(t,i,n)}change(t){const n=this.projectService.getScriptInfo(t.file);E.assert(!!n),n.textStorage.switchToScriptVersionCache();const i=n.lineOffsetToPosition(t.line,t.offset),s=n.lineOffsetToPosition(t.endLine,t.endOffset);i>=0&&(this.changeSeq++,this.projectService.applyChangesToFile(n,RK({span:{start:i,length:s-i},newText:t.insertString})))}reload(t,n){const i=zo(t.file),s=t.tmpfile===void 0?void 0:zo(t.tmpfile),o=this.projectService.getScriptInfoForNormalizedPath(i);o&&(this.changeSeq++,o.reloadFromFile(s)&&this.doOutput(void 0,"reload",n,!0))}saveToTmp(t,n){const i=this.projectService.getScriptInfo(t);i&&i.saveTo(n)}closeClientFile(t){if(!t)return;const n=Hs(t);this.projectService.closeClientFile(n)}mapLocationNavigationBarItems(t,n){return nr(t,i=>({text:i.text,kind:i.kind,kindModifiers:i.kindModifiers,spans:i.spans.map(s=>Um(s,n)),childItems:this.mapLocationNavigationBarItems(i.childItems,n),indent:i.indent}))}getNavigationBarItems(t,n){const{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=s.getNavigationBarItems(i);return o?n?this.mapLocationNavigationBarItems(o,this.projectService.getScriptInfoForNormalizedPath(i)):o:void 0}toLocationNavigationTree(t,n){return{text:t.text,kind:t.kind,kindModifiers:t.kindModifiers,spans:t.spans.map(i=>Um(i,n)),nameSpan:t.nameSpan&&Um(t.nameSpan,n),childItems:nr(t.childItems,i=>this.toLocationNavigationTree(i,n))}}getNavigationTree(t,n){const{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=s.getNavigationTree(i);return o?n?this.toLocationNavigationTree(o,this.projectService.getScriptInfoForNormalizedPath(i)):o:void 0}getNavigateToItems(t,n){const i=this.getFullNavigateToItems(t);return n?Zs(i,({project:s,navigateToItems:o})=>o.map(c=>{const u=s.getScriptInfo(c.fileName),f={name:c.name,kind:c.kind,kindModifiers:c.kindModifiers,isCaseSensitive:c.isCaseSensitive,matchKind:c.matchKind,file:c.fileName,start:u.positionToLineOffset(c.textSpan.start),end:u.positionToLineOffset(bc(c.textSpan))};return c.kindModifiers&&c.kindModifiers!==""&&(f.kindModifiers=c.kindModifiers),c.containerName&&c.containerName.length>0&&(f.containerName=c.containerName),c.containerKind&&c.containerKind.length>0&&(f.containerKind=c.containerKind),f})):Zs(i,({navigateToItems:s})=>s)}getFullNavigateToItems(t){const{currentFileOnly:n,searchValue:i,maxResultCount:s,projectFileName:o}=t;if(n){E.assertIsDefined(t.file);const{file:S,project:T}=this.getFileAndProject(t);return[{project:T,navigateToItems:T.getLanguageService().getNavigateToItems(i,s,S)}]}const c=this.getHostPreferences(),u=[],f=new Map;if(!t.file&&!o)this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(S=>g(S));else{const S=this.getProjects(t);vde(S,void 0,T=>g(T))}return u;function g(S){const T=S.getLanguageService().getNavigateToItems(i,s,void 0,S.isNonTsProject(),c.excludeLibrarySymbolsInNavTo),k=An(T,w=>d(w)&&!AY(TP(w),S));k.length&&u.push({project:S,navigateToItems:k})}function d(S){const T=S.name;if(!f.has(T))return f.set(T,[S]),!0;const k=f.get(T);for(const w of k)if(y(w,S))return!1;return k.push(S),!0}function y(S,T){return S===T?!0:!S||!T?!1:S.containerKind===T.containerKind&&S.containerName===T.containerName&&S.fileName===T.fileName&&S.isCaseSensitive===T.isCaseSensitive&&S.kind===T.kind&&S.kindModifiers===T.kindModifiers&&S.matchKind===T.matchKind&&S.name===T.name&&S.textSpan.start===T.textSpan.start&&S.textSpan.length===T.textSpan.length}}getSupportedCodeFixes(t){if(!t)return J$();if(t.file){const{file:i,project:s}=this.getFileAndProject(t);return s.getLanguageService().getSupportedCodeFixes(i)}const n=this.getProject(t.projectFileName);return n||g0.ThrowNoProject(),n.getLanguageService().getSupportedCodeFixes()}isLocation(t){return t.line!==void 0}extractPositionOrRange(t,n){let i,s;return this.isLocation(t)?i=o(t):s=this.getRange(t,n),E.checkDefined(i===void 0?s:i);function o(c){return c.position!==void 0?c.position:n.lineOffsetToPosition(c.line,c.offset)}}getRange(t,n){const{startPosition:i,endPosition:s}=this.getStartAndEndPosition(t,n);return{pos:i,end:s}}getApplicableRefactors(t){const{file:n,project:i}=this.getFileAndProject(t),s=i.getScriptInfoForNormalizedPath(n);return i.getLanguageService().getApplicableRefactors(n,this.extractPositionOrRange(t,s),this.getPreferences(n),t.triggerReason,t.kind,t.includeInteractiveActions)}getEditsForRefactor(t,n){const{file:i,project:s}=this.getFileAndProject(t),o=s.getScriptInfoForNormalizedPath(i),c=s.getLanguageService().getEditsForRefactor(i,this.getFormatOptions(i),this.extractPositionOrRange(t,o),t.refactor,t.action,this.getPreferences(i),t.interactiveRefactorArguments);if(c===void 0)return{edits:[]};if(n){const{renameFilename:u,renameLocation:f,edits:g}=c;let d;if(u!==void 0&&f!==void 0){const y=s.getScriptInfoForNormalizedPath(zo(u));d=Sde(y6(y.getSnapshot()),u,f,g)}return{renameLocation:d,renameFilename:u,edits:this.mapTextChangesToCodeEdits(g),notApplicableReason:c.notApplicableReason}}return c}getMoveToRefactoringFileSuggestions(t){const{file:n,project:i}=this.getFileAndProject(t),s=i.getScriptInfoForNormalizedPath(n);return i.getLanguageService().getMoveToRefactoringFileSuggestions(n,this.extractPositionOrRange(t,s),this.getPreferences(n))}organizeImports(t,n){E.assert(t.scope.type==="file");const{file:i,project:s}=this.getFileAndProject(t.scope.args),o=s.getLanguageService().organizeImports({fileName:i,mode:t.mode??(t.skipDestructiveCodeActions?"SortAndCombine":void 0),type:"file"},this.getFormatOptions(i),this.getPreferences(i));return n?this.mapTextChangesToCodeEdits(o):o}getEditsForFileRename(t,n){const i=zo(t.oldFilePath),s=zo(t.newFilePath),o=this.getHostFormatOptions(),c=this.getHostPreferences(),u=new Set,f=[];return this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(g=>{const d=g.getLanguageService().getEditsForFileRename(i,s,o,c),y=[];for(const S of d)u.has(S.fileName)||(f.push(S),y.push(S.fileName));for(const S of y)u.add(S)}),n?f.map(g=>this.mapTextChangeToCodeEdit(g)):f}getCodeFixes(t,n){const{file:i,project:s}=this.getFileAndProject(t),o=s.getScriptInfoForNormalizedPath(i),{startPosition:c,endPosition:u}=this.getStartAndEndPosition(t,o);let f;try{f=s.getLanguageService().getCodeFixesAtPosition(i,c,u,t.errorCodes,this.getFormatOptions(i),this.getPreferences(i))}catch(g){const d=s.getLanguageService(),y=[...d.getSyntacticDiagnostics(i),...d.getSemanticDiagnostics(i),...d.getSuggestionDiagnostics(i)].map(T=>WD(c,u-c,T.start,T.length)&&T.code),S=t.errorCodes.find(T=>!y.includes(T));throw S!==void 0&&(g.message=`BADCLIENT: Bad error code, ${S} not found in range ${c}..${u} (found: ${y.join(", ")}); could have caused this error: +${g.message}`),g}return n?f.map(g=>this.mapCodeFixAction(g)):f}getCombinedCodeFix({scope:t,fixId:n},i){E.assert(t.type==="file");const{file:s,project:o}=this.getFileAndProject(t.args),c=o.getLanguageService().getCombinedCodeFix({type:"file",fileName:s},n,this.getFormatOptions(s),this.getPreferences(s));return i?{changes:this.mapTextChangesToCodeEdits(c.changes),commands:c.commands}:c}applyCodeActionCommand(t){const n=t.command;for(const i of vT(n)){const{file:s,project:o}=this.getFileAndProject(i);o.getLanguageService().applyCodeActionCommand(i,this.getFormatOptions(s)).then(c=>{},c=>{})}return{}}getStartAndEndPosition(t,n){let i,s;return t.startPosition!==void 0?i=t.startPosition:(i=n.lineOffsetToPosition(t.startLine,t.startOffset),t.startPosition=i),t.endPosition!==void 0?s=t.endPosition:(s=n.lineOffsetToPosition(t.endLine,t.endOffset),t.endPosition=s),{startPosition:i,endPosition:s}}mapCodeAction({description:t,changes:n,commands:i}){return{description:t,changes:this.mapTextChangesToCodeEdits(n),commands:i}}mapCodeFixAction({fixName:t,description:n,changes:i,commands:s,fixId:o,fixAllDescription:c}){return{fixName:t,description:n,changes:this.mapTextChangesToCodeEdits(i),commands:s,fixId:o,fixAllDescription:c}}mapTextChangesToCodeEdits(t){return t.map(n=>this.mapTextChangeToCodeEdit(n))}mapTextChangeToCodeEdit(t){const n=this.projectService.getScriptInfoOrConfig(t.fileName);return!!t.isNewFile==!!n&&(n||this.projectService.logErrorForScriptInfoNotFound(t.fileName),E.fail("Expected isNewFile for (only) new files. "+JSON.stringify({isNewFile:!!t.isNewFile,hasScriptInfo:!!n}))),n?{fileName:t.fileName,textChanges:t.textChanges.map(i=>bet(i,n))}:ket(t)}convertTextChangeToCodeEdit(t,n){return{start:n.positionToLineOffset(t.span.start),end:n.positionToLineOffset(t.span.start+t.span.length),newText:t.newText?t.newText:""}}getBraceMatching(t,n){const{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.projectService.getScriptInfoForNormalizedPath(i),c=this.getPosition(t,o),u=s.getBraceMatchingAtPosition(i,c);return u?n?u.map(f=>Um(f,o)):u:void 0}getDiagnosticsForProject(t,n,i){if(this.suppressDiagnosticEvents)return;const{fileNames:s,languageServiceDisabled:o}=this.getProjectInfoWorker(i,void 0,!0,!0);if(o)return;const c=s.filter(w=>!w.includes("lib.d.ts"));if(c.length===0)return;const u=[],f=[],g=[],d=[],y=zo(i),S=this.projectService.ensureDefaultProjectForFile(y);for(const w of c)this.getCanonicalFileName(w)===this.getCanonicalFileName(i)?u.push(w):this.projectService.getScriptInfo(w).isScriptOpen()?f.push(w):Hl(w)?d.push(w):g.push(w);const k=[...u,...f,...g,...d].map(w=>({fileName:w,project:S}));this.updateErrorCheck(t,k,n,!1)}configurePlugin(t){this.projectService.configurePlugin(t)}getSmartSelectionRange(t,n){const{locations:i}=t,{file:s,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),c=E.checkDefined(this.projectService.getScriptInfo(s));return nr(i,u=>{const f=this.getPosition(u,c),g=o.getSmartSelectionRange(s,f);return n?this.mapSelectionRange(g,c):g})}toggleLineComment(t,n){const{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.projectService.getScriptInfo(i),c=this.getRange(t,o),u=s.toggleLineComment(i,c);if(n){const f=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(g=>this.convertTextChangeToCodeEdit(g,f))}return u}toggleMultilineComment(t,n){const{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.projectService.getScriptInfoForNormalizedPath(i),c=this.getRange(t,o),u=s.toggleMultilineComment(i,c);if(n){const f=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(g=>this.convertTextChangeToCodeEdit(g,f))}return u}commentSelection(t,n){const{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.projectService.getScriptInfoForNormalizedPath(i),c=this.getRange(t,o),u=s.commentSelection(i,c);if(n){const f=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(g=>this.convertTextChangeToCodeEdit(g,f))}return u}uncommentSelection(t,n){const{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.projectService.getScriptInfoForNormalizedPath(i),c=this.getRange(t,o),u=s.uncommentSelection(i,c);if(n){const f=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(g=>this.convertTextChangeToCodeEdit(g,f))}return u}mapSelectionRange(t,n){const i={textSpan:Um(t.textSpan,n)};return t.parent&&(i.parent=this.mapSelectionRange(t.parent,n)),i}getScriptInfoFromProjectService(t){const n=zo(t),i=this.projectService.getScriptInfoForNormalizedPath(n);return i||(this.projectService.logErrorForScriptInfoNotFound(n),g0.ThrowNoProject())}toProtocolCallHierarchyItem(t){const n=this.getScriptInfoFromProjectService(t.file);return{name:t.name,kind:t.kind,kindModifiers:t.kindModifiers,file:t.file,containerName:t.containerName,span:Um(t.span,n),selectionSpan:Um(t.selectionSpan,n)}}toProtocolCallHierarchyIncomingCall(t){const n=this.getScriptInfoFromProjectService(t.from.file);return{from:this.toProtocolCallHierarchyItem(t.from),fromSpans:t.fromSpans.map(i=>Um(i,n))}}toProtocolCallHierarchyOutgoingCall(t,n){return{to:this.toProtocolCallHierarchyItem(t.to),fromSpans:t.fromSpans.map(i=>Um(i,n))}}prepareCallHierarchy(t){const{file:n,project:i}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(n);if(s){const o=this.getPosition(t,s),c=i.getLanguageService().prepareCallHierarchy(n,o);return c&&MG(c,u=>this.toProtocolCallHierarchyItem(u))}}provideCallHierarchyIncomingCalls(t){const{file:n,project:i}=this.getFileAndProject(t),s=this.getScriptInfoFromProjectService(n);return i.getLanguageService().provideCallHierarchyIncomingCalls(n,this.getPosition(t,s)).map(c=>this.toProtocolCallHierarchyIncomingCall(c))}provideCallHierarchyOutgoingCalls(t){const{file:n,project:i}=this.getFileAndProject(t),s=this.getScriptInfoFromProjectService(n);return i.getLanguageService().provideCallHierarchyOutgoingCalls(n,this.getPosition(t,s)).map(c=>this.toProtocolCallHierarchyOutgoingCall(c,s))}getCanonicalFileName(t){const n=this.host.useCaseSensitiveFileNames?t:km(t);return Hs(n)}exit(){}notRequired(){return{responseRequired:!1}}requiredResponse(t){return{response:t,responseRequired:!0}}addProtocolHandler(t,n){if(this.handlers.has(t))throw new Error(`Protocol handler already exists for command "${t}"`);this.handlers.set(t,n)}setCurrentRequest(t){E.assert(this.currentRequestId===void 0),this.currentRequestId=t,this.cancellationToken.setRequest(t)}resetCurrentRequest(t){E.assert(this.currentRequestId===t),this.currentRequestId=void 0,this.cancellationToken.resetRequest(t)}executeWithRequestId(t,n){try{return this.setCurrentRequest(t),n()}finally{this.resetCurrentRequest(t)}}executeCommand(t){const n=this.handlers.get(t.command);if(n){const i=this.executeWithRequestId(t.seq,()=>n(t));return this.projectService.enableRequestedPlugins(),i}else return this.logger.msg(`Unrecognized JSON command:${q1(t)}`,"Err"),this.doOutput(void 0,"unknown",t.seq,!1,`Unrecognized JSON command: ${t.command}`),{responseRequired:!1}}onMessage(t){var n,i,s,o,c,u,f,g,d,y,S;this.gcTimer.scheduleCollect(),this.performanceData=void 0;let T;this.logger.hasLevel(2)&&(T=this.hrtime(),this.logger.hasLevel(3)&&this.logger.info(`request:${$3(this.toStringMessage(t))}`));let k,w;try{k=this.parseMessage(t),w=k.arguments&&k.arguments.file?k.arguments:void 0,(n=qr)==null||n.instant(qr.Phase.Session,"request",{seq:k.seq,command:k.command}),(i=wu)==null||i.logStartCommand(""+k.command,this.toStringMessage(t).substring(0,100)),(s=qr)==null||s.push(qr.Phase.Session,"executeCommand",{seq:k.seq,command:k.command},!0);const{response:P,responseRequired:F}=this.executeCommand(k);if((o=qr)==null||o.pop(),this.logger.hasLevel(2)){const J=uet(this.hrtime(T)).toFixed(4);F?this.logger.perftrc(`${k.seq}::${k.command}: elapsed time (in milliseconds) ${J}`):this.logger.perftrc(`${k.seq}::${k.command}: async elapsed time (in milliseconds) ${J}`)}(c=wu)==null||c.logStopCommand(""+k.command,"Success"),(u=qr)==null||u.instant(qr.Phase.Session,"response",{seq:k.seq,command:k.command,success:!!P}),P?this.doOutput(P,k.command,k.seq,!0):F&&this.doOutput(void 0,k.command,k.seq,!1,"No content available.")}catch(P){if((f=qr)==null||f.popAll(),P instanceof Mk){(g=wu)==null||g.logStopCommand(""+(k&&k.command),"Canceled: "+P),(d=qr)==null||d.instant(qr.Phase.Session,"commandCanceled",{seq:k==null?void 0:k.seq,command:k==null?void 0:k.command}),this.doOutput({canceled:!0},k.command,k.seq,!0);return}this.logErrorWorker(P,this.toStringMessage(t),w),(y=wu)==null||y.logStopCommand(""+(k&&k.command),"Error: "+P),(S=qr)==null||S.instant(qr.Phase.Session,"commandError",{seq:k==null?void 0:k.seq,command:k==null?void 0:k.command,message:P.message}),this.doOutput(void 0,k?k.command:"unknown",k?k.seq:0,!1,"Error processing request. "+P.message+` +`+P.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()}}}}),Wx,NY,XDe,QDe,ER,PR,Ede,xP,Vx,tI,wet=Dt({"src/server/scriptVersionCache.ts"(){xy(),gS(),Wx=4,NY=(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))(NY||{}),XDe=class{constructor(){this.goSubtree=!0,this.lineIndex=new xP,this.endBranch=[],this.state=2,this.initialText="",this.trailingText="",this.lineIndex.root=new Vx,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;const i=xP.linesFromText(e).lines;i.length>1&&i[i.length-1]===""&&i.pop();let s,o;for(let u=this.endBranch.length-1;u>=0;u--)this.endBranch[u].updateCounts(),this.endBranch[u].charCount()===0&&(o=this.endBranch[u],u>0?s=this.endBranch[u-1]:s=this.branchNode);o&&s.remove(o);const c=this.startPath[this.startPath.length-1];if(i.length>0)if(c.text=i[0],i.length>1){let u=new Array(i.length-1),f=c;for(let y=1;y=0;){const y=this.startPath[g];u=y.insertAt(f,u),g--,f=y}let d=u.length;for(;d>0;){const y=new Vx;y.add(this.lineIndex.root),u=y.insertAt(this.lineIndex.root,u),d=u.length,this.lineIndex.root=y}this.lineIndex.root.updateCounts()}else for(let u=this.startPath.length-2;u>=0;u--)this.startPath[u].updateCounts();else{this.startPath[this.startPath.length-2].remove(c);for(let f=this.startPath.length-2;f>=0;f--)this.startPath[f].updateCounts()}return this.lineIndex}post(e,t,n){n===this.lineCollectionAtBranch&&(this.state=4),this.stack.pop()}pre(e,t,n,i,s){const o=this.stack[this.stack.length-1];this.state===2&&s===1&&(this.state=1,this.branchNode=o,this.lineCollectionAtBranch=n);let c;function u(f){return f.isLeaf()?new tI(""):new Vx}switch(s){case 0:this.goSubtree=!1,this.state!==4&&o.add(n);break;case 1:this.state===4?this.goSubtree=!1:(c=u(n),o.add(c),this.startPath.push(c));break;case 2:this.state!==4?(c=u(n),o.add(c),this.startPath.push(c)):n.isLeaf()||(c=u(n),o.add(c),this.endBranch.push(c));break;case 3:this.goSubtree=!1;break;case 4:this.state!==4?this.goSubtree=!1:n.isLeaf()||(c=u(n),o.add(c),this.endBranch.push(c));break;case 5:this.goSubtree=!1,this.state!==1&&o.add(n);break}this.goSubtree&&this.stack.push(c)}leaf(e,t,n){this.state===1?this.initialText=n.text.substring(0,e):this.state===2?(this.initialText=n.text.substring(0,e),this.trailingText=n.text.substring(e+t)):this.trailingText=n.text.substring(e+t)}},QDe=class{constructor(e,t,n){this.pos=e,this.deleteLen=t,this.insertedText=n}getTextChangeRange(){return VD(Wl(this.pos,this.deleteLen),this.insertedText?this.insertedText.length:0)}},ER=class mT{constructor(){this.changes=[],this.versions=new Array(mT.maxVersions),this.minVersion=0,this.currentVersion=0}versionToIndex(t){if(!(tthis.currentVersion))return t%mT.maxVersions}currentVersionToIndex(){return this.currentVersion%mT.maxVersions}edit(t,n,i){this.changes.push(new QDe(t,n,i)),(this.changes.length>mT.changeNumberThreshold||n>mT.changeLengthThreshold||i&&i.length>mT.changeLengthThreshold)&&this.getSnapshot()}getSnapshot(){return this._getSnapshot()}_getSnapshot(){let t=this.versions[this.currentVersionToIndex()];if(this.changes.length>0){let n=t.index;for(const i of this.changes)n=n.edit(i.pos,i.deleteLen,i.insertedText);t=new Ede(this.currentVersion+1,this,n,this.changes),this.currentVersion=t.version,this.versions[this.currentVersionToIndex()]=t,this.changes=[],this.currentVersion-this.minVersion>=mT.maxVersions&&(this.minVersion=this.currentVersion-mT.maxVersions+1)}return t}getSnapshotVersion(){return this._getSnapshot().version}getAbsolutePositionAndLineText(t){return this._getSnapshot().index.lineNumberToInfo(t)}lineOffsetToPosition(t,n){return this._getSnapshot().index.absolutePositionOfStartOfLine(t)+(n-1)}positionToLineOffset(t){return this._getSnapshot().index.positionToLineOffset(t)}lineToTextSpan(t){const n=this._getSnapshot().index,{lineText:i,absolutePosition:s}=n.lineNumberToInfo(t+1),o=i!==void 0?i.length:n.absolutePositionOfStartOfLine(t+2)-s;return Wl(s,o)}getTextChangesBetweenVersions(t,n){if(t=this.minVersion){const i=[];for(let s=t+1;s<=n;s++){const o=this.versions[this.versionToIndex(s)];for(const c of o.changesSincePreviousVersion)i.push(c.getTextChangeRange())}return Iee(i)}else return;else return s8}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(t){const n=new mT,i=new Ede(0,n,new xP);n.versions[n.currentVersion]=i;const s=xP.linesFromText(t);return i.index.load(s.lines),n}},ER.changeNumberThreshold=8,ER.changeLengthThreshold=256,ER.maxVersions=8,PR=ER,Ede=class D5e{constructor(t,n,i,s=Wc){this.version=t,this.cache=n,this.index=i,this.changesSincePreviousVersion=s}getText(t,n){return this.index.getText(t,n-t)}getLength(){return this.index.getLength()}getChangeRange(t){if(t instanceof D5e&&this.cache===t.cache)return this.version<=t.version?s8:this.cache.getTextChangesBetweenVersions(t.version,this.version)}},xP=class c0e{constructor(){this.checkEdits=!1}absolutePositionOfStartOfLine(t){return this.lineNumberToInfo(t).absolutePosition}positionToLineOffset(t){const{oneBasedLine:n,zeroBasedColumn:i}=this.root.charOffsetToLineInfo(1,t);return{line:n,offset:i+1}}positionToColumnAndLineText(t){return this.root.charOffsetToLineInfo(1,t)}getLineCount(){return this.root.lineCount()}lineNumberToInfo(t){const n=this.getLineCount();if(t<=n){const{position:i,leaf:s}=this.root.lineNumberToInfo(t,0);return{absolutePosition:i,lineText:s&&s.text}}else return{absolutePosition:this.root.charCount(),lineText:void 0}}load(t){if(t.length>0){const n=[];for(let i=0;i0&&t{i=i.concat(c.text.substring(s,s+o))}}),i}getLength(){return this.root.charCount()}every(t,n,i){i||(i=this.root.charCount());const s={goSubtree:!0,done:!1,leaf(o,c,u){t(u,o,c)||(this.done=!0)}};return this.walk(n,i-n,s),!s.done}edit(t,n,i){if(this.root.charCount()===0)return E.assert(n===0),i!==void 0?(this.load(c0e.linesFromText(i).lines),this):void 0;{let s;if(this.checkEdits){const u=this.getText(0,this.root.charCount());s=u.slice(0,t)+i+u.slice(t+n)}const o=new XDe;let c=!1;if(t>=this.root.charCount()){t=this.root.charCount()-1;const u=this.getText(t,1);i?i=u+i:i=u,n=0,c=!0}else if(n>0){const u=t+n,{zeroBasedColumn:f,lineText:g}=this.positionToColumnAndLineText(u);f===0&&(n+=g.length,i=i?i+g:g)}if(this.root.walk(t,n,o),o.insertLines(i,c),this.checkEdits){const u=o.lineIndex.getText(0,o.lineIndex.getLength());E.assert(s===u,"buffer edit mismatch")}return o.lineIndex}}static buildTreeFromBottom(t){if(t.length0?i[s]=o:i.pop(),{lines:i,lineMap:n}}},Vx=class l0e{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(const t of this.children)this.totalChars+=t.charCount(),this.totalLines+=t.lineCount()}execWalk(t,n,i,s,o){return i.pre&&i.pre(t,n,this.children[s],this,o),i.goSubtree?(this.children[s].walk(t,n,i),i.post&&i.post(t,n,this.children[s],this,o)):i.goSubtree=!0,i.done}skipChild(t,n,i,s,o){s.pre&&!s.done&&(s.pre(t,n,this.children[i],this,o),s.goSubtree=!0)}walk(t,n,i){let s=0,o=this.children[s].charCount(),c=t;for(;c>=o;)this.skipChild(c,n,s,i,0),c-=o,s++,o=this.children[s].charCount();if(c+n<=o){if(this.execWalk(c,n,i,s,2))return}else{if(this.execWalk(c,o-c,i,s,1))return;let u=n-(o-c);for(s++,o=this.children[s].charCount();u>o;){if(this.execWalk(0,o,i,s,3))return;u-=o,s++,o=this.children[s].charCount()}if(u>0&&this.execWalk(0,u,i,s,4))return}if(i.pre){const u=this.children.length;if(sn)return o.isLeaf()?{oneBasedLine:t,zeroBasedColumn:n,lineText:o.text}:o.charOffsetToLineInfo(t,n);n-=o.charCount(),t+=o.lineCount()}const i=this.lineCount();if(i===0)return{oneBasedLine:1,zeroBasedColumn:0,lineText:void 0};const s=E.checkDefined(this.lineNumberToInfo(i,0).leaf);return{oneBasedLine:i,zeroBasedColumn:s.charCount(),lineText:void 0}}lineNumberToInfo(t,n){for(const i of this.children){const s=i.lineCount();if(s>=t)return i.isLeaf()?{position:n,leaf:i}:i.lineNumberToInfo(t,n);t-=s,n+=i.charCount()}return{position:n,leaf:void 0}}splitAfter(t){let n;const i=this.children.length;t++;const s=t;if(t=0;S--)f[S].children.length===0&&f.pop()}c&&f.push(c),this.updateCounts();for(let d=0;d{(this.packageInstalledPromise??(this.packageInstalledPromise=new Map)).set(this.packageInstallId,{resolve:s,reject:o})});return this.installer.send(n),i}attach(t){this.projectService=t,this.installer=this.createInstallerProcess()}onProjectClosed(t){this.installer.send({projectName:t.getProjectName(),kind:"closeProject"})}enqueueInstallTypingsRequest(t,n,i){const s=Fpe(t,n,i);this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling throttled operation:${q1(s)}`),this.activeRequestCount0?this.activeRequestCount--:E.fail("TIAdapter:: Received too many responses");!this.requestQueue.isEmpty();){const s=this.requestQueue.dequeue();if(this.requestMap.get(s.projectName)===s){this.requestMap.delete(s.projectName),this.scheduleRequest(s);break}this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Skipping defunct request for: ${s.projectName}`)}this.projectService.updateTypingsForProject(t),this.event(t,"setTypings");break}case X3:this.projectService.watchTypingLocations(t);break}}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:${q1(t)}`),this.installer.send(t)},w5e.requestDelayMillis,`${t.projectName}::${t.kind}`)}},Pde.requestDelayMillis=100,Dde=Pde}}),YDe={};Gc(YDe,{ActionInvalidate:()=>FA,ActionPackageInstalled:()=>OA,ActionSet:()=>IA,ActionWatchTypingLocations:()=>X3,Arguments:()=>TH,AutoImportProviderProject:()=>yY,AuxiliaryProject:()=>gY,CharRangeSection:()=>NY,CloseFileWatcherEvent:()=>xR,CommandNames:()=>xde,ConfigFileDiagEvent:()=>yR,ConfiguredProject:()=>vY,CreateDirectoryWatcherEvent:()=>TR,CreateFileWatcherEvent:()=>SR,Errors:()=>g0,EventBeginInstallTypes:()=>uL,EventEndInstallTypes:()=>_L,EventInitializationFailed:()=>SH,EventTypesRegistry:()=>lL,ExternalProject:()=>_R,GcTimer:()=>lY,InferredProject:()=>mY,LargeFileReferencedEvent:()=>hR,LineIndex:()=>xP,LineLeaf:()=>tI,LineNode:()=>Vx,LogLevel:()=>sY,Msg:()=>aY,OpenFileInfoTelemetryEvent:()=>xY,Project:()=>mS,ProjectInfoTelemetryEvent:()=>bR,ProjectKind:()=>SP,ProjectLanguageServiceStateEvent:()=>vR,ProjectLoadingFinishEvent:()=>gR,ProjectLoadingStartEvent:()=>mR,ProjectReferenceProjectLoadKind:()=>EY,ProjectService:()=>PY,ProjectsUpdatedInBackgroundEvent:()=>ZN,ScriptInfo:()=>fY,ScriptVersionCache:()=>PR,Session:()=>Cde,TextStorage:()=>_Y,ThrottledOperations:()=>cY,TypingsCache:()=>pY,TypingsInstallerAdapter:()=>Dde,allFilesAreJsOrDts:()=>tde,allRootFilesAreJsOrDts:()=>ede,asNormalizedPath:()=>EDe,convertCompilerOptions:()=>fR,convertFormatOptions:()=>z6,convertScriptKindName:()=>SY,convertTypeAcquisition:()=>ide,convertUserPreferences:()=>sde,convertWatchOptions:()=>YN,countEachFileTypes:()=>XN,createInstallTypingsRequest:()=>Fpe,createModuleSpecifierCache:()=>mde,createNormalizedPathMap:()=>PDe,createPackageJsonCache:()=>gde,createSortedArray:()=>jpe,emptyArray:()=>Wc,findArgument:()=>dTe,forEachResolvedProjectReferenceProject:()=>W6,formatDiagnosticToProtocol:()=>eI,formatMessage:()=>hde,getBaseConfigFileName:()=>oY,getLocationInNewDocument:()=>Sde,hasArgument:()=>pTe,hasNoTypeScriptSource:()=>rde,indent:()=>$3,isBackgroundProject:()=>QN,isConfigFile:()=>_de,isConfiguredProject:()=>Y1,isDynamicFileName:()=>$N,isExternalProject:()=>dY,isInferredProject:()=>J6,isInferredProjectName:()=>Ope,makeAutoImportProviderProjectName:()=>Mpe,makeAuxiliaryProjectName:()=>Rpe,makeInferredProjectName:()=>Lpe,maxFileSize:()=>dR,maxProgramSizeForNonTsFiles:()=>pR,normalizedPathToPath:()=>GN,nowString:()=>mTe,nullCancellationToken:()=>Tde,nullTypingsInstaller:()=>uR,projectContainsInfoDirectly:()=>zx,protocol:()=>Kpe,removeSorted:()=>DDe,stringifyIndented:()=>q1,toEvent:()=>yde,toNormalizedPath:()=>zo,tryConvertScriptKindName:()=>bY,typingsInstaller:()=>Npe,updateProjectIfDirty:()=>uf});var gS=Dt({"src/server/_namespaces/ts.server.ts"(){fL(),Ipe(),zKe(),WKe(),VKe(),UKe(),GKe(),YKe(),tet(),aet(),oet(),cet(),Det(),wet(),Aet()}}),ZDe={};Gc(ZDe,{ANONYMOUS:()=>rM,AccessFlags:()=>QB,AssertionLevel:()=>SB,AssignmentDeclarationKind:()=>sJ,AssignmentKind:()=>GW,Associativity:()=>XW,BreakpointResolver:()=>$$,BuilderFileEmit:()=>Zq,BuilderProgramKind:()=>Kq,BuilderState:()=>$p,BundleFileSectionKind:()=>xJ,CallHierarchy:()=>Fx,CharacterCodes:()=>gJ,CheckFlags:()=>qB,CheckMode:()=>d9,ClassificationType:()=>zH,ClassificationTypeNames:()=>JH,CommentDirectiveType:()=>AB,Comparison:()=>Pk,CompletionInfoFlags:()=>FH,CompletionTriggerKind:()=>DH,Completions:()=>jx,ContainerFlags:()=>zU,ContextFlags:()=>MB,Debug:()=>E,DiagnosticCategory:()=>CD,Diagnostics:()=>p,DocumentHighlights:()=>sM,ElementFlags:()=>XB,EmitFlags:()=>k7,EmitHint:()=>bJ,EmitOnly:()=>IB,EndOfLineState:()=>MH,EnumKind:()=>UB,ExitStatus:()=>FB,ExportKind:()=>XG,Extension:()=>hJ,ExternalEmitHelpers:()=>vJ,FileIncludeKind:()=>m7,FilePreprocessingDiagnosticsKind:()=>NB,FileSystemEntryKind:()=>wJ,FileWatcherEventKind:()=>DJ,FindAllReferences:()=>uo,FlattenLevel:()=>sq,FlowFlags:()=>kD,ForegroundColorEscapeSequences:()=>Uq,FunctionFlags:()=>$W,GeneratedIdentifierFlags:()=>d7,GetLiteralTextFlags:()=>UW,GoToDefinition:()=>L6,HighlightSpanKind:()=>AH,IdentifierNameMap:()=>Tx,IdentifierNameMultiMap:()=>iq,ImportKind:()=>$G,ImportsNotUsedAsValues:()=>_J,IndentStyle:()=>NH,IndexFlags:()=>YB,IndexKind:()=>eJ,InferenceFlags:()=>nJ,InferencePriority:()=>rJ,InlayHintKind:()=>wH,InlayHints:()=>JQ,InternalEmitFlags:()=>yJ,InternalSymbolName:()=>HB,InvalidatedProjectKind:()=>bH,JSDocParsingMode:()=>EJ,JsDoc:()=>Q1,JsTyping:()=>rm,JsxEmit:()=>uJ,JsxFlags:()=>DB,JsxReferenceKind:()=>ZB,LanguageServiceMode:()=>CH,LanguageVariant:()=>dJ,LexicalEnvironmentFlags:()=>TJ,ListFormat:()=>kJ,LogLevel:()=>xB,MemberOverrideStatus:()=>OB,ModifierFlags:()=>f7,ModuleDetectionKind:()=>aJ,ModuleInstanceState:()=>JU,ModuleKind:()=>G4,ModuleResolutionKind:()=>Rk,ModuleSpecifierEnding:()=>iV,NavigateTo:()=>Xce,NavigationBar:()=>sle,NewLineKind:()=>fJ,NodeBuilderFlags:()=>RB,NodeCheckFlags:()=>GB,NodeFactoryFlags:()=>fV,NodeFlags:()=>_7,NodeResolutionFeatures:()=>RU,ObjectFlags:()=>v7,OperationCanceledException:()=>Mk,OperatorPrecedence:()=>QW,OrganizeImports:()=>Xp,OrganizeImportsMode:()=>PH,OuterExpressionKinds:()=>SJ,OutliningElementsCollector:()=>UQ,OutliningSpanKind:()=>OH,OutputFileType:()=>LH,PackageJsonAutoImportPreference:()=>kH,PackageJsonDependencyGroup:()=>xH,PatternMatchKind:()=>aM,PollingInterval:()=>C7,PollingWatchKind:()=>lJ,PragmaKindFlags:()=>CJ,PrivateIdentifierKind:()=>vV,ProcessLevel:()=>lq,ProgramUpdateLevel:()=>Cq,QuotePreference:()=>WG,RelationComparisonResult:()=>p7,Rename:()=>nR,ScriptElementKind:()=>jH,ScriptElementKindModifier:()=>BH,ScriptKind:()=>S7,ScriptSnapshot:()=>dL,ScriptTarget:()=>pJ,SemanticClassificationFormat:()=>EH,SemanticMeaning:()=>zG,SemicolonPreference:()=>IH,SignatureCheckMode:()=>m9,SignatureFlags:()=>b7,SignatureHelp:()=>BN,SignatureKind:()=>KB,SmartSelectionRange:()=>GQ,SnippetKind:()=>x7,SortKind:()=>bB,StructureIsReused:()=>g7,SymbolAccessibility:()=>JB,SymbolDisplay:()=>m0,SymbolDisplayPartKind:()=>MA,SymbolFlags:()=>h7,SymbolFormatFlags:()=>BB,SyntaxKind:()=>u7,SyntheticSymbolKind:()=>zB,Ternary:()=>iJ,ThrottledCancellationToken:()=>G$,TokenClass:()=>RH,TokenFlags:()=>wB,TransformFlags:()=>T7,TypeFacts:()=>p9,TypeFlags:()=>y7,TypeFormatFlags:()=>jB,TypeMapKind:()=>tJ,TypePredicateKind:()=>WB,TypeReferenceSerializationKind:()=>VB,UnionReduction:()=>LB,UpToDateStatusType:()=>gH,VarianceFlags:()=>$B,Version:()=>Lp,VersionRange:()=>SD,WatchDirectoryFlags:()=>mJ,WatchDirectoryKind:()=>cJ,WatchFileKind:()=>oJ,WatchLogLevel:()=>Eq,WatchType:()=>al,accessPrivateIdentifier:()=>Hse,addDisposableResourceHelper:()=>fO,addEmitFlags:()=>Xd,addEmitHelper:()=>YT,addEmitHelpers:()=>ih,addInternalEmitFlags:()=>XT,addNodeFactoryPatcher:()=>M1e,addObjectAllocatorPatcher:()=>$re,addRange:()=>Nn,addRelatedInfo:()=>la,addSyntheticLeadingComment:()=>a3,addSyntheticTrailingComment:()=>BF,addToSeen:()=>Vp,advancedAsyncSuperHelper:()=>kw,affectsDeclarationPathOptionDeclarations:()=>vU,affectsEmitOptionDeclarations:()=>yU,allKeysStartWithDot:()=>a9,altDirectorySeparator:()=>FD,and:()=>i7,append:()=>_r,appendIfUnique:()=>Hg,arrayFrom:()=>gs,arrayIsEqualTo:()=>ud,arrayIsHomogeneous:()=>dne,arrayIsSorted:()=>QI,arrayOf:()=>zK,arrayReverseIterator:()=>aB,arrayToMap:()=>Iv,arrayToMultiMap:()=>yD,arrayToNumericMap:()=>VK,arraysEqual:()=>mD,assertType:()=>g0e,assign:()=>wk,assignHelper:()=>HF,asyncDelegator:()=>$F,asyncGeneratorHelper:()=>GF,asyncSuperHelper:()=>xw,asyncValues:()=>XF,attachFileToDiagnostics:()=>UT,awaitHelper:()=>ZT,awaiterHelper:()=>YF,base64decode:()=>Rre,base64encode:()=>Mre,binarySearch:()=>Jh,binarySearchKey:()=>hT,bindSourceFile:()=>Sse,breakIntoCharacterSpans:()=>Wce,breakIntoWordSpans:()=>Vce,buildLinkParts:()=>fce,buildOpts:()=>XO,buildOverload:()=>bDe,bundlerModuleNameResolver:()=>_se,canBeConvertedToAsync:()=>a$,canHaveDecorators:()=>Kb,canHaveExportModifier:()=>sw,canHaveFlowNode:()=>F8,canHaveIllegalDecorators:()=>$V,canHaveIllegalModifiers:()=>Cie,canHaveIllegalType:()=>_ve,canHaveIllegalTypeParameters:()=>kie,canHaveJSDoc:()=>O8,canHaveLocals:()=>Dm,canHaveModifiers:()=>Hp,canHaveSymbol:()=>zd,canJsonReportNoInputFiles:()=>C3,canProduceDiagnostics:()=>w9,canUsePropertyAccess:()=>JW,canWatchAffectingLocation:()=>Kae,canWatchAtTypes:()=>Zae,canWatchDirectoryOrFile:()=>Q9,cartesianProduct:()=>KK,cast:()=>Ls,chainBundle:()=>Gp,chainDiagnosticMessages:()=>vs,changeAnyExtension:()=>ND,changeCompilerHostLikeToUseCache:()=>kA,changeExtension:()=>N1,changeFullExtension:()=>yee,changesAffectModuleResolution:()=>t5,changesAffectingProgramStructure:()=>bte,childIsDecorated:()=>yE,classElementOrClassElementParameterIsDecorated:()=>Fz,classHasClassThisAssignment:()=>aq,classHasDeclaredOrExplicitlyAssignedName:()=>oq,classHasExplicitlyAssignedName:()=>E9,classOrConstructorParameterIsDecorated:()=>Qh,classPrivateFieldGetHelper:()=>lO,classPrivateFieldInHelper:()=>_O,classPrivateFieldSetHelper:()=>uO,classicNameResolver:()=>hse,classifier:()=>eue,cleanExtendedConfigCache:()=>R9,clear:()=>lg,clearMap:()=>T_,clearSharedExtendedConfigFileWatcher:()=>Tq,climbPastPropertyAccess:()=>gL,climbPastPropertyOrElementAccess:()=>Boe,clone:()=>_B,cloneCompilerOptions:()=>aG,closeFileWatcher:()=>dd,closeFileWatcherOf:()=>Xf,codefix:()=>lu,collapseTextChangeRangesAcrossMultipleVersions:()=>Iee,collectExternalModuleInfo:()=>eq,combine:()=>Dk,combinePaths:()=>Mn,commentPragmas:()=>ED,commonOptionsWithBuild:()=>eA,commonPackageFolders:()=>KW,compact:()=>hD,compareBooleans:()=>B0,compareDataObjects:()=>xW,compareDiagnostics:()=>zE,compareDiagnosticsSkipRelatedInformation:()=>aF,compareEmitHelpers:()=>Une,compareNumberOfDirectorySeparators:()=>rw,comparePaths:()=>Gg,comparePathsCaseInsensitive:()=>V0e,comparePathsCaseSensitive:()=>W0e,comparePatternKeys:()=>LU,compareProperties:()=>XK,compareStringsCaseInsensitive:()=>r7,compareStringsCaseInsensitiveEslintCompatible:()=>HK,compareStringsCaseSensitive:()=>mu,compareStringsCaseSensitiveUI:()=>bD,compareTextSpans:()=>t7,compareValues:()=>Ao,compileOnSaveCommandLineOption:()=>Zw,compilerOptionsAffectDeclarationPath:()=>ine,compilerOptionsAffectEmit:()=>nne,compilerOptionsAffectSemanticDiagnostics:()=>rne,compilerOptionsDidYouMeanDiagnostics:()=>nA,compilerOptionsIndicateEsModules:()=>fG,compose:()=>d0e,computeCommonSourceDirectoryOfFilenames:()=>Nae,computeLineAndCharacterOfPosition:()=>Bk,computeLineOfPosition:()=>Y4,computeLineStarts:()=>CT,computePositionOfLineAndCharacter:()=>I7,computeSignature:()=>sS,computeSignatureWithDiagnostics:()=>$q,computeSuggestionDiagnostics:()=>n$,computedOptions:()=>Jc,concatenate:()=>es,concatenateDiagnosticMessageChains:()=>Zre,consumesNodeCoreModules:()=>XL,contains:()=>bs,containsIgnoredPath:()=>QE,containsObjectRestOrSpread:()=>Vw,containsParseError:()=>Yk,containsPath:()=>Mp,convertCompilerOptionsForTelemetry:()=>$ie,convertCompilerOptionsFromJson:()=>d2e,convertJsonOption:()=>eS,convertToBase64:()=>Lre,convertToJson:()=>Xw,convertToObject:()=>Vie,convertToOptionsWithAbsolutePaths:()=>fU,convertToRelativePath:()=>Q4,convertToTSConfig:()=>e2e,convertTypeAcquisitionFromJson:()=>m2e,copyComments:()=>lS,copyEntries:()=>r5,copyLeadingComments:()=>T6,copyProperties:()=>fB,copyTrailingAsLeadingComments:()=>rN,copyTrailingComments:()=>iP,couldStartTrivia:()=>Tee,countWhere:()=>R0,createAbstractBuilder:()=>SSe,createAccessorPropertyBackingField:()=>QV,createAccessorPropertyGetRedirector:()=>Fie,createAccessorPropertySetRedirector:()=>Oie,createBaseNodeFactory:()=>Dne,createBinaryExpressionTrampoline:()=>RO,createBindingHelper:()=>LC,createBuildInfo:()=>vA,createBuilderProgram:()=>Xq,createBuilderProgramUsingProgramBuildInfo:()=>Qae,createBuilderStatusReporter:()=>poe,createCacheWithRedirects:()=>PU,createCacheableExportInfoMap:()=>qG,createCachedDirectoryStructureHost:()=>L9,createClassNamedEvaluationHelperBlock:()=>Zse,createClassThisAssignmentBlock:()=>Qse,createClassifier:()=>jTe,createCommentDirectivesMap:()=>Ete,createCompilerDiagnostic:()=>gc,createCompilerDiagnosticForInvalidCustomType:()=>jie,createCompilerDiagnosticFromMessageChain:()=>sF,createCompilerHost:()=>Iae,createCompilerHostFromProgramHost:()=>fH,createCompilerHostWorker:()=>wq,createDetachedDiagnostic:()=>PC,createDiagnosticCollection:()=>yC,createDiagnosticForFileFromMessageChain:()=>Dz,createDiagnosticForNode:()=>yn,createDiagnosticForNodeArray:()=>eC,createDiagnosticForNodeArrayFromMessageChain:()=>f8,createDiagnosticForNodeFromMessageChain:()=>Zg,createDiagnosticForNodeInSourceFile:()=>dp,createDiagnosticForRange:()=>jte,createDiagnosticMessageChainFromDiagnostic:()=>Rte,createDiagnosticReporter:()=>wA,createDocumentPositionMapper:()=>Jse,createDocumentRegistry:()=>Nce,createDocumentRegistryInternal:()=>ZG,createEmitAndSemanticDiagnosticsBuilderProgram:()=>eH,createEmitHelperFactory:()=>Vne,createEmptyExports:()=>Lw,createExpressionForJsxElement:()=>hie,createExpressionForJsxFragment:()=>yie,createExpressionForObjectLiteralElementLike:()=>vie,createExpressionForPropertyName:()=>WV,createExpressionFromEntityName:()=>Mw,createExternalHelpersImportDeclarationIfNeeded:()=>qV,createFileDiagnostic:()=>xl,createFileDiagnosticFromMessageChain:()=>_5,createForOfBindingStatement:()=>zV,createGetCanonicalFileName:()=>nu,createGetSourceFile:()=>Pq,createGetSymbolAccessibilityDiagnosticForNode:()=>o0,createGetSymbolAccessibilityDiagnosticForNodeName:()=>Tae,createGetSymbolWalker:()=>Tse,createIncrementalCompilerHost:()=>dH,createIncrementalProgram:()=>_oe,createInputFiles:()=>j1e,createInputFilesWithFilePaths:()=>uV,createInputFilesWithFileTexts:()=>_V,createJsxFactoryExpression:()=>JV,createLanguageService:()=>$le,createLanguageServiceSourceFile:()=>AM,createMemberAccessForPropertyName:()=>Zb,createModeAwareCache:()=>bx,createModeAwareCacheKey:()=>A3,createModuleNotFoundChain:()=>n5,createModuleResolutionCache:()=>e6,createModuleResolutionLoader:()=>Lq,createModuleResolutionLoaderUsingGlobalCache:()=>noe,createModuleSpecifierResolutionHost:()=>cS,createMultiMap:()=>yf,createNodeConverters:()=>Ane,createNodeFactory:()=>mw,createOptionNameMap:()=>JO,createOverload:()=>nY,createPackageJsonImportFilter:()=>oP,createPackageJsonInfo:()=>FG,createParenthesizerRules:()=>wne,createPatternMatcher:()=>Mce,createPrependNodes:()=>Wq,createPrinter:()=>V1,createPrinterWithDefaults:()=>bq,createPrinterWithRemoveComments:()=>b2,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>Sq,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>bA,createProgram:()=>W9,createProgramHost:()=>pH,createPropertyNameNodeForIdentifierOrLiteral:()=>xF,createQueue:()=>vD,createRange:()=>Vf,createRedirectedBuilderProgram:()=>Yq,createResolutionCache:()=>rH,createRuntimeTypeSerializer:()=>nae,createScanner:()=>Hh,createSemanticDiagnosticsBuilderProgram:()=>bSe,createSet:()=>pB,createSolutionBuilder:()=>RSe,createSolutionBuilderHost:()=>LSe,createSolutionBuilderWithWatch:()=>jSe,createSolutionBuilderWithWatchHost:()=>MSe,createSortedArray:()=>sB,createSourceFile:()=>qw,createSourceMapGenerator:()=>Mse,createSourceMapSource:()=>B1e,createSuperAccessVariableStatement:()=>D9,createSymbolTable:()=>Bs,createSymlinkCache:()=>AW,createSystemWatchFunctions:()=>dee,createTextChange:()=>GA,createTextChangeFromStartLength:()=>AL,createTextChangeRange:()=>VD,createTextRangeFromNode:()=>lG,createTextRangeFromSpan:()=>wL,createTextSpan:()=>Wl,createTextSpanFromBounds:()=>Rc,createTextSpanFromNode:()=>Zu,createTextSpanFromRange:()=>vy,createTextSpanFromStringLiteralLikeContent:()=>cG,createTextWriter:()=>H8,createTokenRange:()=>bW,createTypeChecker:()=>Ase,createTypeReferenceDirectiveResolutionCache:()=>n9,createTypeReferenceResolutionLoader:()=>B9,createUnparsedSourceFile:()=>lV,createWatchCompilerHost:()=>ISe,createWatchCompilerHostOfConfigFile:()=>coe,createWatchCompilerHostOfFilesAndCompilerOptions:()=>loe,createWatchFactory:()=>_H,createWatchHost:()=>uH,createWatchProgram:()=>FSe,createWatchStatusReporter:()=>ioe,createWriteFileMeasuringIO:()=>Dq,declarationNameToString:()=>eo,decodeMappings:()=>YU,decodedTextSpanIntersectsWith:()=>WD,decorateHelper:()=>zF,deduplicate:()=>Nv,defaultIncludeSpec:()=>ZO,defaultInitCompilerOptions:()=>QO,defaultMaximumTruncationLength:()=>lw,detectSortCaseSensitivity:()=>W4,diagnosticCategoryName:()=>mb,diagnosticToString:()=>_S,directoryProbablyExists:()=>pd,directorySeparator:()=>Fo,displayPart:()=>C_,displayPartsToString:()=>xN,disposeEmitNodes:()=>pV,disposeResourcesHelper:()=>pO,documentSpansEqual:()=>hG,dumpTracingLegend:()=>_ee,elementAt:()=>Uh,elideNodes:()=>Iie,emitComments:()=>kre,emitDetachedComments:()=>Cre,emitFiles:()=>I9,emitFilesAndReportErrors:()=>eL,emitFilesAndReportErrorsAndGetExitStatus:()=>ooe,emitModuleKindIsNonNodeESM:()=>oF,emitNewLineBeforeLeadingCommentOfPosition:()=>xre,emitNewLineBeforeLeadingComments:()=>Sre,emitNewLineBeforeLeadingCommentsOfPosition:()=>Tre,emitSkippedWithNoDiagnostics:()=>G9,emitUsingBuildInfo:()=>Pae,emptyArray:()=>Ve,emptyFileSystemEntries:()=>LF,emptyMap:()=>c7,emptyOptions:()=>Yf,emptySet:()=>tee,endsWith:()=>Yo,ensurePathIsNonModuleName:()=>Fv,ensureScriptKind:()=>gF,ensureTrailingDirectorySeparator:()=>_l,entityNameToString:()=>L_,enumerateInsertsAndDeletes:()=>a7,equalOwnProperties:()=>WK,equateStringsCaseInsensitive:()=>p1,equateStringsCaseSensitive:()=>fb,equateValues:()=>Vh,esDecorateHelper:()=>UF,escapeJsxAttributeString:()=>aW,escapeLeadingUnderscores:()=>Vo,escapeNonAsciiString:()=>q8,escapeSnippetText:()=>r2,escapeString:()=>bg,escapeTemplateSubstitution:()=>iW,every:()=>Wi,expandPreOrPostfixIncrementOrDecrementExpression:()=>NO,explainFiles:()=>sH,explainIfFileIsRedirectAndImpliedFormat:()=>aH,exportAssignmentIsAlias:()=>dC,exportStarHelper:()=>cO,expressionResultIsUnused:()=>gne,extend:()=>e7,extendsHelper:()=>ZF,extensionFromPath:()=>qE,extensionIsTS:()=>vF,extensionsNotSupportingExtensionlessResolution:()=>dw,externalHelpersModuleNameText:()=>ay,factory:()=>I,fileExtensionIs:()=>Zo,fileExtensionIsOneOf:()=>$c,fileIncludeReasonToDiagnostics:()=>lH,fileShouldUseJavaScriptRequire:()=>JG,filter:()=>An,filterMutate:()=>eB,filterSemanticDiagnostics:()=>V9,find:()=>wn,findAncestor:()=>Pr,findBestPatternMatch:()=>hB,findChildOfKind:()=>qa,findComputedPropertyNameCacheAssignment:()=>jO,findConfigFile:()=>Aae,findContainingList:()=>SL,findDiagnosticForNode:()=>xce,findFirstNonJsxWhitespaceToken:()=>Uoe,findIndex:()=>vc,findLast:()=>gT,findLastIndex:()=>XI,findListItemInfo:()=>Voe,findMap:()=>u0e,findModifier:()=>v6,findNextToken:()=>x2,findPackageJson:()=>Sce,findPackageJsons:()=>IG,findPrecedingMatchingToken:()=>PL,findPrecedingToken:()=>Yc,findSuperStatementIndexPath:()=>x9,findTokenOnLeftOfPosition:()=>kL,findUseStrictPrologue:()=>UV,first:()=>va,firstDefined:()=>Qa,firstDefinedIterator:()=>Sm,firstIterator:()=>cB,firstOrOnly:()=>RG,firstOrUndefined:()=>bl,firstOrUndefinedIterator:()=>YI,fixupCompilerOptions:()=>c$,flatMap:()=>Zs,flatMapIterator:()=>tB,flatMapToMutable:()=>j4,flatten:()=>Op,flattenCommaList:()=>Lie,flattenDestructuringAssignment:()=>rS,flattenDestructuringBinding:()=>v2,flattenDiagnosticMessageText:()=>em,forEach:()=>rr,forEachAncestor:()=>Ste,forEachAncestorDirectory:()=>jp,forEachChild:()=>Ss,forEachChildRecursively:()=>x3,forEachEmittedFile:()=>gq,forEachEnclosingBlockScopeContainer:()=>Ote,forEachEntry:()=>fl,forEachExternalModuleToImportFrom:()=>GG,forEachImportClauseDeclaration:()=>O5,forEachKey:()=>Am,forEachLeadingCommentRange:()=>RD,forEachNameInAccessChainWalkingLeft:()=>Hre,forEachPropertyAssignment:()=>iC,forEachResolvedProjectReference:()=>Rq,forEachReturnStatement:()=>Wv,forEachRight:()=>dD,forEachTrailingCommentRange:()=>jD,forEachTsConfigPropArray:()=>g8,forEachUnique:()=>vG,forEachYieldExpression:()=>Jte,forSomeAncestorDirectory:()=>o1e,formatColorAndReset:()=>S2,formatDiagnostic:()=>Aq,formatDiagnostics:()=>tSe,formatDiagnosticsWithColorAndContext:()=>Fae,formatGeneratedName:()=>j1,formatGeneratedNamePart:()=>XC,formatLocation:()=>Nq,formatMessage:()=>PW,formatStringFromArgs:()=>xg,formatting:()=>ol,fullTripleSlashAMDReferencePathRegEx:()=>HW,fullTripleSlashReferencePathRegEx:()=>qW,generateDjb2Hash:()=>$4,generateTSConfig:()=>s2e,generatorHelper:()=>sO,getAdjustedReferenceLocation:()=>eG,getAdjustedRenameLocation:()=>xL,getAliasDeclarationFromName:()=>Gz,getAllAccessorDeclarations:()=>Mb,getAllDecoratorsOfClass:()=>rq,getAllDecoratorsOfClassElement:()=>C9,getAllJSDocTags:()=>J7,getAllJSDocTagsOfKind:()=>yye,getAllKeys:()=>f0e,getAllProjectOutputs:()=>N9,getAllSuperTypeNodes:()=>xE,getAllUnscopedEmitHelpers:()=>yV,getAllowJSCompilerOption:()=>oy,getAllowSyntheticDefaultImports:()=>Bb,getAncestor:()=>w1,getAnyExtensionFromPath:()=>jk,getAreDeclarationMapsEnabled:()=>_w,getAssignedExpandoInitializer:()=>FT,getAssignedName:()=>j7,getAssignedNameOfIdentifier:()=>R3,getAssignmentDeclarationKind:()=>fc,getAssignmentDeclarationPropertyAccessKind:()=>D8,getAssignmentTargetKind:()=>RT,getAutomaticTypeDirectiveNames:()=>t9,getBaseFileName:()=>wc,getBinaryOperatorPrecedence:()=>U8,getBuildInfo:()=>F9,getBuildInfoFileVersionMap:()=>Qq,getBuildInfoText:()=>Eae,getBuildOrderFromAnyBuildOrder:()=>sL,getBuilderCreationParameters:()=>$9,getBuilderFileEmit:()=>yy,getCheckFlags:()=>Ko,getClassExtendsHeritageElement:()=>Gv,getClassLikeDeclarationOfSymbol:()=>rh,getCombinedLocalAndExportSymbolFlags:()=>kC,getCombinedModifierFlags:()=>y1,getCombinedNodeFlags:()=>Gh,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>zJ,getCommentRange:()=>Qd,getCommonSourceDirectory:()=>U3,getCommonSourceDirectoryOfConfig:()=>a6,getCompilerOptionValue:()=>lF,getCompilerOptionsDiffValue:()=>n2e,getConditions:()=>gy,getConfigFileParsingDiagnostics:()=>iS,getConstantValue:()=>Mne,getContainerFlags:()=>BU,getContainerNode:()=>oS,getContainingClass:()=>Nl,getContainingClassExcludingClassDecorators:()=>b5,getContainingClassStaticBlock:()=>Xte,getContainingFunction:()=>cf,getContainingFunctionDeclaration:()=>$te,getContainingFunctionOrClassStaticBlock:()=>v5,getContainingNodeArray:()=>hne,getContainingObjectLiteralElement:()=>kN,getContextualTypeFromParent:()=>zL,getContextualTypeFromParentOrAncestorTypeNode:()=>TL,getCurrentTime:()=>NA,getDeclarationDiagnostics:()=>xae,getDeclarationEmitExtensionForPath:()=>V5,getDeclarationEmitOutputFilePath:()=>gre,getDeclarationEmitOutputFilePathWorker:()=>W5,getDeclarationFileExtension:()=>eU,getDeclarationFromName:()=>TE,getDeclarationModifierFlagsFromSymbol:()=>qf,getDeclarationOfKind:()=>Jo,getDeclarationsOfKind:()=>yte,getDeclaredExpandoInitializer:()=>k8,getDecorators:()=>q0,getDefaultCompilerOptions:()=>wM,getDefaultExportInfoWorker:()=>iM,getDefaultFormatCodeSettings:()=>pL,getDefaultLibFileName:()=>JD,getDefaultLibFilePath:()=>Xle,getDefaultLikeExportInfo:()=>nM,getDiagnosticText:()=>Gve,getDiagnosticsWithinSpan:()=>kce,getDirectoryPath:()=>Un,getDirectoryToWatchFailedLookupLocation:()=>tH,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>toe,getDocumentPositionMapper:()=>r$,getDocumentSpansEqualityComparer:()=>yG,getESModuleInterop:()=>Om,getEditsForFileRename:()=>Fce,getEffectiveBaseTypeNode:()=>Vd,getEffectiveConstraintOfTypeParameter:()=>Uk,getEffectiveContainerForJSDocTemplateTag:()=>L5,getEffectiveImplementsTypeNodes:()=>mC,getEffectiveInitializer:()=>x8,getEffectiveJSDocHost:()=>D1,getEffectiveModifierFlags:()=>Lu,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>wre,getEffectiveModifierFlagsNoCache:()=>Are,getEffectiveReturnTypeNode:()=>vp,getEffectiveSetAccessorTypeAnnotationNode:()=>bre,getEffectiveTypeAnnotationNode:()=>Vl,getEffectiveTypeParameterDeclarations:()=>H0,getEffectiveTypeRoots:()=>w3,getElementOrPropertyAccessArgumentExpressionOrName:()=>F5,getElementOrPropertyAccessName:()=>Kg,getElementsOfBindingOrAssignmentPattern:()=>$C,getEmitDeclarations:()=>Hf,getEmitFlags:()=>ha,getEmitHelpers:()=>JF,getEmitModuleDetectionKind:()=>YW,getEmitModuleKind:()=>au,getEmitModuleResolutionKind:()=>Ru,getEmitScriptTarget:()=>Fa,getEmitStandardClassFields:()=>tne,getEnclosingBlockScopeContainer:()=>Nm,getEnclosingContainer:()=>Pz,getEncodedSemanticClassifications:()=>QG,getEncodedSyntacticClassifications:()=>YG,getEndLinePosition:()=>c8,getEntityNameFromTypeNode:()=>v8,getEntrypointsFromPackageJsonInfo:()=>IU,getErrorCountForSummary:()=>Z9,getErrorSpanForNode:()=>Cb,getErrorSummaryText:()=>soe,getEscapedTextOfIdentifierOrLiteral:()=>EE,getEscapedTextOfJsxAttributeName:()=>e3,getEscapedTextOfJsxNamespacedName:()=>GT,getExpandoInitializer:()=>E1,getExportAssignmentExpression:()=>$z,getExportInfoMap:()=>oN,getExportNeedsImportStarHelper:()=>zse,getExpressionAssociativity:()=>tW,getExpressionPrecedence:()=>DE,getExternalHelpersModuleName:()=>jw,getExternalModuleImportEqualsDeclarationExpression:()=>vE,getExternalModuleName:()=>uC,getExternalModuleNameFromDeclaration:()=>dre,getExternalModuleNameFromPath:()=>cW,getExternalModuleNameLiteral:()=>gx,getExternalModuleRequireArgument:()=>Lz,getFallbackOptions:()=>xA,getFileEmitOutput:()=>Jae,getFileMatcherPatterns:()=>mF,getFileNamesFromConfigSpecs:()=>E3,getFileWatcherEventKind:()=>PJ,getFilesInErrorForSummary:()=>K9,getFirstConstructorWithBody:()=>Sg,getFirstIdentifier:()=>lf,getFirstNonSpaceCharacterPosition:()=>mce,getFirstProjectOutput:()=>vq,getFixableErrorSpanExpression:()=>LG,getFormatCodeSettingsForWriting:()=>KL,getFullWidth:()=>a8,getFunctionFlags:()=>pl,getHeritageClause:()=>J8,getHostSignatureFromJSDoc:()=>P1,getIdentifierAutoGenerate:()=>U1e,getIdentifierGeneratedImportReference:()=>Wne,getIdentifierTypeArguments:()=>Jb,getImmediatelyInvokedFunctionExpression:()=>Pb,getImpliedNodeFormatForFile:()=>PA,getImpliedNodeFormatForFileWorker:()=>Jq,getImportNeedsImportDefaultHelper:()=>KU,getImportNeedsImportStarHelper:()=>S9,getIndentSize:()=>bC,getIndentString:()=>J5,getInferredLibraryNameResolveFrom:()=>z9,getInitializedVariables:()=>jE,getInitializerOfBinaryExpression:()=>Jz,getInitializerOfBindingOrAssignmentElement:()=>Jw,getInterfaceBaseTypeNodes:()=>kE,getInternalEmitFlags:()=>Jp,getInvokedExpression:()=>x5,getIsolatedModules:()=>Tp,getJSDocAugmentsTag:()=>zee,getJSDocClassTag:()=>VJ,getJSDocCommentRanges:()=>Az,getJSDocCommentsAndTags:()=>Wz,getJSDocDeprecatedTag:()=>UJ,getJSDocDeprecatedTagNoCache:()=>$ee,getJSDocEnumTag:()=>qJ,getJSDocHost:()=>Nb,getJSDocImplementsTags:()=>Wee,getJSDocOverloadTags:()=>Uz,getJSDocOverrideTagNoCache:()=>Gee,getJSDocParameterTags:()=>Vk,getJSDocParameterTagsNoCache:()=>Ree,getJSDocPrivateTag:()=>pye,getJSDocPrivateTagNoCache:()=>Uee,getJSDocProtectedTag:()=>dye,getJSDocProtectedTagNoCache:()=>qee,getJSDocPublicTag:()=>fye,getJSDocPublicTagNoCache:()=>Vee,getJSDocReadonlyTag:()=>mye,getJSDocReadonlyTagNoCache:()=>Hee,getJSDocReturnTag:()=>Xee,getJSDocReturnType:()=>qD,getJSDocRoot:()=>pC,getJSDocSatisfiesExpressionType:()=>WW,getJSDocSatisfiesTag:()=>HJ,getJSDocTags:()=>T1,getJSDocTagsNoCache:()=>hye,getJSDocTemplateTag:()=>gye,getJSDocThisTag:()=>B7,getJSDocType:()=>S1,getJSDocTypeAliasName:()=>GV,getJSDocTypeAssertionType:()=>FO,getJSDocTypeParameterDeclarations:()=>G5,getJSDocTypeParameterTags:()=>jee,getJSDocTypeParameterTagsNoCache:()=>Bee,getJSDocTypeTag:()=>b1,getJSXImplicitImportBase:()=>_F,getJSXRuntimeImport:()=>fF,getJSXTransformEnabled:()=>uF,getKeyForCompilerOptions:()=>EU,getLanguageVariant:()=>K8,getLastChild:()=>kW,getLeadingCommentRanges:()=>_g,getLeadingCommentRangesOfNode:()=>wz,getLeftmostAccessExpression:()=>CC,getLeftmostExpression:()=>EC,getLibraryNameFromLibFileName:()=>jq,getLineAndCharacterOfPosition:()=>Ha,getLineInfo:()=>XU,getLineOfLocalPosition:()=>AE,getLineOfLocalPositionFromLineMap:()=>Ob,getLineStartPositionForPosition:()=>Cp,getLineStarts:()=>$g,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Wre,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>zre,getLinesBetweenPositions:()=>Z4,getLinesBetweenRangeEndAndRangeStart:()=>SW,getLinesBetweenRangeEndPositions:()=>s1e,getLiteralText:()=>Pte,getLocalNameForExternalImport:()=>GC,getLocalSymbolForExportDefault:()=>xC,getLocaleSpecificMessage:()=>ds,getLocaleTimeString:()=>AA,getMappedContextSpan:()=>bG,getMappedDocumentSpan:()=>RL,getMappedLocation:()=>tP,getMatchedFileSpec:()=>oH,getMatchedIncludeSpec:()=>cH,getMeaningFromDeclaration:()=>RA,getMeaningFromLocation:()=>aS,getMembersOfDeclaration:()=>zte,getModeForFileReference:()=>CA,getModeForResolutionAtIndex:()=>Oae,getModeForUsageLocation:()=>Fq,getModifiedTime:()=>TT,getModifiers:()=>Lv,getModuleInstanceState:()=>ch,getModuleNameStringLiteralAt:()=>DA,getModuleSpecifierEndingPreference:()=>cne,getModuleSpecifierResolverHost:()=>pG,getNameForExportedSymbol:()=>QL,getNameFromImportAttribute:()=>PF,getNameFromIndexInfo:()=>Lte,getNameFromPropertyName:()=>QA,getNameOfAccessExpression:()=>EW,getNameOfCompilerOptionValue:()=>_U,getNameOfDeclaration:()=>us,getNameOfExpando:()=>jz,getNameOfJSDocTypedef:()=>Mee,getNameOrArgument:()=>P8,getNameTable:()=>W$,getNamesForExportedSymbol:()=>Cce,getNamespaceDeclarationNode:()=>_C,getNewLineCharacter:()=>t0,getNewLineKind:()=>aN,getNewLineOrDefaultFromHost:()=>f0,getNewTargetContainer:()=>Yte,getNextJSDocCommentLocation:()=>Vz,getNodeForGeneratedName:()=>Ww,getNodeId:()=>Oa,getNodeKind:()=>T2,getNodeModifiers:()=>Z3,getNodeModulePathParts:()=>kF,getNonAssignedNameOfDeclaration:()=>R7,getNonAssignmentOperatorForCompoundAssignment:()=>O3,getNonAugmentationDeclaration:()=>Sz,getNonDecoratorTokenPosOfNode:()=>gz,getNormalizedAbsolutePath:()=>Xi,getNormalizedAbsolutePathWithoutRoot:()=>FJ,getNormalizedPathComponents:()=>AD,getObjectFlags:()=>bn,getOperator:()=>nW,getOperatorAssociativity:()=>rW,getOperatorPrecedence:()=>V8,getOptionFromName:()=>oU,getOptionsForLibraryResolution:()=>DU,getOptionsNameMap:()=>YC,getOrCreateEmitNode:()=>ou,getOrCreateExternalHelpersModuleNameIfNeeded:()=>xie,getOrUpdate:()=>J4,getOriginalNode:()=>ic,getOriginalNodeId:()=>cu,getOriginalSourceFile:()=>Xye,getOutputDeclarationFileName:()=>V3,getOutputDeclarationFileNameWorker:()=>hq,getOutputExtension:()=>A9,getOutputFileNames:()=>Kbe,getOutputJSFileNameWorker:()=>yq,getOutputPathsFor:()=>W3,getOutputPathsForBundle:()=>z3,getOwnEmitOutputFilePath:()=>mre,getOwnKeys:()=>ug,getOwnValues:()=>yT,getPackageJsonInfo:()=>m2,getPackageJsonTypesVersionsPaths:()=>e9,getPackageJsonsVisibleToFile:()=>Tce,getPackageNameFromTypesPackageName:()=>N3,getPackageScopeForPath:()=>cA,getParameterSymbolFromJSDoc:()=>L8,getParameterTypeNode:()=>g1e,getParentNodeInSpan:()=>ZA,getParseTreeNode:()=>as,getParsedCommandLineOfConfigFile:()=>Gw,getPathComponents:()=>ul,getPathComponentsRelativeTo:()=>LJ,getPathFromPathComponents:()=>W0,getPathUpdater:()=>e$,getPathsBasePath:()=>U5,getPatternFromSpec:()=>sne,getPendingEmitKind:()=>_6,getPositionOfLineAndCharacter:()=>LD,getPossibleGenericSignatures:()=>rG,getPossibleOriginalInputExtensionForExtension:()=>hre,getPossibleTypeArgumentsInfo:()=>nG,getPreEmitDiagnostics:()=>eSe,getPrecedingNonSpaceCharacterPosition:()=>BL,getPrivateIdentifier:()=>nq,getProperties:()=>tq,getProperty:()=>ZI,getPropertyArrayElementValue:()=>Gte,getPropertyAssignmentAliasLikeExpression:()=>ure,getPropertyNameForPropertyNameNode:()=>Ib,getPropertyNameForUniqueESSymbol:()=>Gye,getPropertyNameFromType:()=>Sp,getPropertyNameOfBindingOrAssignmentElement:()=>HV,getPropertySymbolFromBindingElement:()=>ML,getPropertySymbolsFromContextualType:()=>NM,getQuoteFromPreference:()=>mG,getQuotePreference:()=>Df,getRangesWhere:()=>iB,getRefactorContextSpan:()=>Ax,getReferencedFileLocation:()=>q3,getRegexFromPattern:()=>iy,getRegularExpressionForWildcard:()=>WE,getRegularExpressionsForWildcards:()=>pF,getRelativePathFromDirectory:()=>Rp,getRelativePathFromFile:()=>ID,getRelativePathToDirectoryOrUrl:()=>kT,getRenameLocation:()=>tN,getReplacementSpanForContextToken:()=>oG,getResolutionDiagnostic:()=>Vq,getResolutionModeOverride:()=>o6,getResolveJsonModule:()=>F1,getResolvePackageJsonExports:()=>IF,getResolvePackageJsonImports:()=>FF,getResolvedExternalModuleName:()=>z5,getRestIndicatorOfBindingOrAssignmentElement:()=>LO,getRestParameterElementType:()=>Nz,getRightMostAssignedExpression:()=>C8,getRootDeclaration:()=>qd,getRootDirectoryOfResolutionCache:()=>roe,getRootLength:()=>Pm,getRootPathSplitLength:()=>CSe,getScriptKind:()=>CG,getScriptKindFromFileName:()=>hF,getScriptTargetFeatures:()=>AF,getSelectedEffectiveModifierFlags:()=>JT,getSelectedSyntacticModifierFlags:()=>Pre,getSemanticClassifications:()=>wce,getSemanticJsxChildren:()=>hC,getSetAccessorTypeAnnotationNode:()=>yre,getSetAccessorValueParameter:()=>NE,getSetExternalModuleIndicator:()=>ew,getShebang:()=>O7,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>zz,getSingleVariableOfVariableStatement:()=>MT,getSnapshotText:()=>y6,getSnippetElement:()=>dV,getSourceFileOfModule:()=>s5,getSourceFileOfNode:()=>wr,getSourceFilePathInNewDir:()=>q5,getSourceFilePathInNewDirWorker:()=>H5,getSourceFileVersionAsHashFromText:()=>tL,getSourceFilesToEmit:()=>lW,getSourceMapRange:()=>n0,getSourceMapper:()=>qce,getSourceTextOfNodeFromSourceFile:()=>Bv,getSpanOfTokenAtPosition:()=>Im,getSpellingSuggestion:()=>U4,getStartPositionOfLine:()=>K0,getStartPositionOfRange:()=>RE,getStartsOnNewLine:()=>s3,getStaticPropertiesAndClassStaticBlock:()=>k9,getStrictOptionValue:()=>Mu,getStringComparer:()=>Ak,getSubPatternFromSpec:()=>dF,getSuperCallFromStatement:()=>T9,getSuperContainer:()=>h8,getSupportedCodeFixes:()=>J$,getSupportedExtensions:()=>VE,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>tw,getSwitchedType:()=>AG,getSymbolId:()=>Ks,getSymbolNameForPrivateIdentifier:()=>z8,getSymbolTarget:()=>EG,getSyntacticClassifications:()=>Ace,getSyntacticModifierFlags:()=>ry,getSyntacticModifierFlagsNoCache:()=>pW,getSynthesizedDeepClone:()=>Mo,getSynthesizedDeepCloneWithReplacements:()=>eN,getSynthesizedDeepClones:()=>k2,getSynthesizedDeepClonesWithReplacements:()=>PG,getSyntheticLeadingComments:()=>OC,getSyntheticTrailingComments:()=>bw,getTargetLabel:()=>hL,getTargetOfBindingOrAssignmentElement:()=>my,getTemporaryModuleResolutionState:()=>oA,getTextOfConstantValue:()=>Dte,getTextOfIdentifierOrLiteral:()=>hp,getTextOfJSDocComment:()=>GD,getTextOfJsxAttributeName:()=>cw,getTextOfJsxNamespacedName:()=>t3,getTextOfNode:()=>jc,getTextOfNodeFromSourceText:()=>pE,getTextOfPropertyName:()=>Kk,getThisContainer:()=>a_,getThisParameter:()=>Xv,getTokenAtPosition:()=>Ui,getTokenPosOfNode:()=>k1,getTokenSourceMapRange:()=>W1e,getTouchingPropertyName:()=>u_,getTouchingToken:()=>h6,getTrailingCommentRanges:()=>m1,getTrailingSemicolonDeferringWriter:()=>oW,getTransformFlagsSubtreeExclusions:()=>Nne,getTransformers:()=>dq,getTsBuildInfoEmitOutputFilePath:()=>c0,getTsConfigObjectLiteralExpression:()=>hE,getTsConfigPropArrayElementValue:()=>y5,getTypeAnnotationNode:()=>vre,getTypeArgumentOrTypeParameterList:()=>Zoe,getTypeKeywordOfTypeOnlyImport:()=>gG,getTypeNode:()=>Jne,getTypeNodeIfAccessible:()=>aP,getTypeParameterFromJsDoc:()=>ire,getTypeParameterOwner:()=>oye,getTypesPackageName:()=>o9,getUILocale:()=>GK,getUniqueName:()=>uS,getUniqueSymbolId:()=>dce,getUseDefineForClassFields:()=>i3,getWatchErrorSummaryDiagnosticMessage:()=>nH,getWatchFactory:()=>kq,group:()=>V4,groupBy:()=>KI,guessIndentation:()=>gte,handleNoEmitOptions:()=>zq,hasAbstractModifier:()=>Zv,hasAccessorModifier:()=>Hd,hasAmbientModifier:()=>fW,hasChangesInResolutions:()=>pz,hasChildOfKind:()=>UA,hasContextSensitiveParameters:()=>TF,hasDecorators:()=>Wf,hasDocComment:()=>Qoe,hasDynamicName:()=>ty,hasEffectiveModifier:()=>R_,hasEffectiveModifiers:()=>$5,hasEffectiveReadonlyModifier:()=>IE,hasExtension:()=>xT,hasIndexSignature:()=>wG,hasInitializer:()=>Y0,hasInvalidEscape:()=>sW,hasJSDocNodes:()=>sf,hasJSDocParameterTags:()=>Jee,hasJSFileExtension:()=>Kv,hasJsonModuleEmitEnabled:()=>cF,hasOnlyExpressionInitializer:()=>Tb,hasOverrideModifier:()=>X5,hasPossibleExternalModuleReference:()=>Fte,hasProperty:()=>Ka,hasPropertyAccessExpressionWithName:()=>BA,hasQuestionToken:()=>LT,hasRecordedExternalHelpers:()=>Tie,hasResolutionModeOverride:()=>Tne,hasRestParameter:()=>lz,hasScopeMarker:()=>cte,hasStaticModifier:()=>Bc,hasSyntacticModifier:()=>Rn,hasSyntacticModifiers:()=>Ere,hasTSFileExtension:()=>HT,hasTabstop:()=>vne,hasTrailingDirectorySeparator:()=>qh,hasType:()=>K7,hasTypeArguments:()=>Wye,hasZeroOrOneAsteriskCharacter:()=>wW,helperString:()=>hV,hostGetCanonicalFileName:()=>Zh,hostUsesCaseSensitiveFileNames:()=>SC,idText:()=>on,identifierIsThisKeyword:()=>_W,identifierToKeywordKind:()=>v1,identity:()=>wo,identitySourceMapConsumer:()=>b9,ignoreSourceNewlines:()=>gV,ignoredPaths:()=>wD,importDefaultHelper:()=>oO,importFromModuleSpecifier:()=>SE,importNameElisionDisabled:()=>DW,importStarHelper:()=>Tw,indexOfAnyCharCode:()=>OK,indexOfNode:()=>Zk,indicesOf:()=>gD,inferredTypesContainingFile:()=>u6,injectClassNamedEvaluationHelperBlockIfMissing:()=>P9,injectClassThisAssignmentIfMissing:()=>Yse,insertImports:()=>eP,insertLeadingStatement:()=>ove,insertSorted:()=>j0,insertStatementAfterCustomPrologue:()=>xb,insertStatementAfterStandardPrologue:()=>Iye,insertStatementsAfterCustomPrologue:()=>dz,insertStatementsAfterStandardPrologue:()=>mg,intersperse:()=>Kj,intrinsicTagNameToString:()=>VW,introducesArgumentsExoticObject:()=>qte,inverseJsxOptionMap:()=>P3,isAbstractConstructorSymbol:()=>Vre,isAbstractModifier:()=>Qne,isAccessExpression:()=>co,isAccessibilityModifier:()=>sG,isAccessor:()=>$0,isAccessorModifier:()=>Zne,isAliasSymbolDeclaration:()=>Uye,isAliasableExpression:()=>B8,isAmbientModule:()=>su,isAmbientPropertyDeclaration:()=>xz,isAnonymousFunctionDefinition:()=>PE,isAnyDirectorySeparator:()=>AJ,isAnyImportOrBareOrAccessedRequire:()=>Ite,isAnyImportOrReExport:()=>u8,isAnyImportSyntax:()=>kb,isAnySupportedFileExtension:()=>m1e,isApplicableVersionedTypesKey:()=>uA,isArgumentExpressionOfElementAccess:()=>$H,isArray:()=>ts,isArrayBindingElement:()=>G7,isArrayBindingOrAssignmentElement:()=>e8,isArrayBindingOrAssignmentPattern:()=>nz,isArrayBindingPattern:()=>s2,isArrayLiteralExpression:()=>ju,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>u0,isArrayTypeNode:()=>ww,isArrowFunction:()=>mo,isAsExpression:()=>Nw,isAssertClause:()=>sie,isAssertEntry:()=>K1e,isAssertionExpression:()=>Sb,isAssertsKeyword:()=>$ne,isAssignmentDeclaration:()=>bE,isAssignmentExpression:()=>il,isAssignmentOperator:()=>Kh,isAssignmentPattern:()=>uE,isAssignmentTarget:()=>vg,isAsteriskToken:()=>Cw,isAsyncFunction:()=>CE,isAsyncModifier:()=>c3,isAutoAccessorPropertyDeclaration:()=>s_,isAwaitExpression:()=>fy,isAwaitKeyword:()=>kV,isBigIntLiteral:()=>dO,isBinaryExpression:()=>Zr,isBinaryOperatorToken:()=>Nie,isBindableObjectDefinePropertyCall:()=>wb,isBindableStaticAccessExpression:()=>qv,isBindableStaticElementAccessExpression:()=>I5,isBindableStaticNameExpression:()=>Ab,isBindingElement:()=>Ea,isBindingElementOfBareOrAccessedRequire:()=>ere,isBindingName:()=>vb,isBindingOrAssignmentElement:()=>rte,isBindingOrAssignmentPattern:()=>ZD,isBindingPattern:()=>Ns,isBlock:()=>Cs,isBlockOrCatchScoped:()=>hz,isBlockScope:()=>kz,isBlockScopedContainerTopLevel:()=>Nte,isBooleanLiteral:()=>lE,isBreakOrContinueStatement:()=>sE,isBreakStatement:()=>Q1e,isBuildInfoFile:()=>Cae,isBuilderProgram:()=>aoe,isBundle:()=>NV,isBundleFileTextLike:()=>qre,isCallChain:()=>hb,isCallExpression:()=>Rs,isCallExpressionTarget:()=>WH,isCallLikeExpression:()=>jv,isCallLikeOrFunctionLikeExpression:()=>iz,isCallOrNewExpression:()=>Jd,isCallOrNewExpressionTarget:()=>VH,isCallSignatureDeclaration:()=>ix,isCallToHelper:()=>o3,isCaseBlock:()=>m3,isCaseClause:()=>zC,isCaseKeyword:()=>Kne,isCaseOrDefaultClause:()=>Y7,isCatchClause:()=>f2,isCatchClauseVariableDeclaration:()=>yne,isCatchClauseVariableDeclarationOrBindingElement:()=>yz,isCheckJsEnabledForFile:()=>iw,isChildOfNodeWithKind:()=>Oye,isCircularBuildOrder:()=>Cx,isClassDeclaration:()=>Qc,isClassElement:()=>Tl,isClassExpression:()=>kl,isClassInstanceProperty:()=>ete,isClassLike:()=>$n,isClassMemberModifier:()=>ez,isClassNamedEvaluationHelperBlock:()=>kx,isClassOrTypeElement:()=>H7,isClassStaticBlockDeclaration:()=>ec,isClassThisAssignmentBlock:()=>M3,isCollapsedRange:()=>i1e,isColonToken:()=>Hne,isCommaExpression:()=>Rw,isCommaListExpression:()=>f3,isCommaSequence:()=>b3,isCommaToken:()=>qne,isComment:()=>DL,isCommonJsExportPropertyAssignment:()=>g5,isCommonJsExportedExpression:()=>Vte,isCompoundAssignment:()=>F3,isComputedNonLiteralName:()=>_8,isComputedPropertyName:()=>Pa,isConciseBody:()=>X7,isConditionalExpression:()=>JC,isConditionalTypeNode:()=>cx,isConstTypeReference:()=>Qg,isConstructSignatureDeclaration:()=>Pw,isConstructorDeclaration:()=>sc,isConstructorTypeNode:()=>MC,isContextualKeyword:()=>R5,isContinueStatement:()=>X1e,isCustomPrologue:()=>m8,isDebuggerStatement:()=>Y1e,isDeclaration:()=>yu,isDeclarationBindingElement:()=>YD,isDeclarationFileName:()=>Hl,isDeclarationName:()=>eh,isDeclarationNameOfEnumOrNamespace:()=>TW,isDeclarationReadonly:()=>f5,isDeclarationStatement:()=>fte,isDeclarationWithTypeParameterChildren:()=>Ez,isDeclarationWithTypeParameters:()=>Cz,isDecorator:()=>ql,isDecoratorTarget:()=>Roe,isDefaultClause:()=>h3,isDefaultImport:()=>OT,isDefaultModifier:()=>yO,isDefaultedExpandoInitializer:()=>tre,isDeleteExpression:()=>rie,isDeleteTarget:()=>Hz,isDeprecatedDeclaration:()=>YL,isDestructuringAssignment:()=>e0,isDiagnosticWithLocation:()=>OG,isDiskPathRoot:()=>NJ,isDoStatement:()=>G1e,isDocumentRegistryEntry:()=>cN,isDotDotDotToken:()=>gO,isDottedName:()=>OE,isDynamicName:()=>B5,isESSymbolIdentifier:()=>$ye,isEffectiveExternalModule:()=>IT,isEffectiveModuleDeclaration:()=>Ate,isEffectiveStrictModeSourceFile:()=>Tz,isElementAccessChain:()=>GJ,isElementAccessExpression:()=>Co,isEmittedFileOfProgram:()=>wae,isEmptyArrayLiteral:()=>Ore,isEmptyBindingElement:()=>Oee,isEmptyBindingPattern:()=>Fee,isEmptyObjectLiteral:()=>yW,isEmptyStatement:()=>DV,isEmptyStringLiteral:()=>Oz,isEntityName:()=>b_,isEntityNameExpression:()=>pc,isEnumConst:()=>zv,isEnumDeclaration:()=>L1,isEnumMember:()=>p2,isEqualityOperatorKind:()=>WL,isEqualsGreaterThanToken:()=>Gne,isExclamationToken:()=>Ew,isExcludedFile:()=>qie,isExclusivelyTypeOnlyImportOrExport:()=>Iq,isExpandoPropertyDeclaration:()=>EF,isExportAssignment:()=>oc,isExportDeclaration:()=>Tc,isExportModifier:()=>rx,isExportName:()=>IO,isExportNamespaceAsDefaultDeclaration:()=>c5,isExportOrDefaultModifier:()=>zw,isExportSpecifier:()=>vu,isExportsIdentifier:()=>Db,isExportsOrModuleExportsOrAlias:()=>g2,isExpression:()=>ot,isExpressionNode:()=>hg,isExpressionOfExternalModuleImportEqualsDeclaration:()=>zoe,isExpressionOfOptionalChainRoot:()=>V7,isExpressionStatement:()=>Cl,isExpressionWithTypeArguments:()=>s0,isExpressionWithTypeArgumentsInClassExtendsClause:()=>Q5,isExternalModule:()=>Ic,isExternalModuleAugmentation:()=>Jv,isExternalModuleImportEqualsDeclaration:()=>C1,isExternalModuleIndicator:()=>t8,isExternalModuleNameRelative:()=>Sl,isExternalModuleReference:()=>Bm,isExternalModuleSymbol:()=>$A,isExternalOrCommonJsModule:()=>af,isFileLevelReservedGeneratedIdentifier:()=>QD,isFileLevelUniqueName:()=>a5,isFileProbablyExternalModule:()=>Uw,isFirstDeclarationOfSymbolParameter:()=>SG,isFixablePromiseHandler:()=>s$,isForInOrOfStatement:()=>Gk,isForInStatement:()=>kO,isForInitializer:()=>zf,isForOfStatement:()=>Iw,isForStatement:()=>Hb,isFunctionBlock:()=>Vv,isFunctionBody:()=>az,isFunctionDeclaration:()=>Xc,isFunctionExpression:()=>lo,isFunctionExpressionOrArrowFunction:()=>t2,isFunctionLike:()=>As,isFunctionLikeDeclaration:()=>po,isFunctionLikeKind:()=>DT,isFunctionLikeOrClassStaticBlockDeclaration:()=>Hk,isFunctionOrConstructorTypeNode:()=>tte,isFunctionOrModuleBlock:()=>tz,isFunctionSymbol:()=>nre,isFunctionTypeNode:()=>Mm,isFutureReservedKeyword:()=>qye,isGeneratedIdentifier:()=>Oo,isGeneratedPrivateIdentifier:()=>yb,isGetAccessor:()=>Q0,isGetAccessorDeclaration:()=>Tf,isGetOrSetAccessorDeclaration:()=>z7,isGlobalDeclaration:()=>FTe,isGlobalScopeAugmentation:()=>Wd,isGrammarError:()=>Cte,isHeritageClause:()=>xf,isHoistedFunction:()=>d5,isHoistedVariableStatement:()=>m5,isIdentifier:()=>Ie,isIdentifierANonContextualKeyword:()=>Yz,isIdentifierName:()=>lre,isIdentifierOrThisTypeNode:()=>Pie,isIdentifierPart:()=>g1,isIdentifierStart:()=>fg,isIdentifierText:()=>bf,isIdentifierTypePredicate:()=>Hte,isIdentifierTypeReference:()=>pne,isIfStatement:()=>qb,isIgnoredFileFromWildCardWatching:()=>TA,isImplicitGlob:()=>IW,isImportAttribute:()=>aie,isImportAttributeName:()=>Kee,isImportAttributes:()=>_x,isImportCall:()=>of,isImportClause:()=>Rm,isImportDeclaration:()=>sl,isImportEqualsDeclaration:()=>El,isImportKeyword:()=>u3,isImportMeta:()=>rC,isImportOrExportSpecifier:()=>PT,isImportOrExportSpecifierName:()=>pce,isImportSpecifier:()=>x_,isImportTypeAssertionContainer:()=>Z1e,isImportTypeNode:()=>Cg,isImportableFile:()=>HG,isInComment:()=>l0,isInCompoundLikeAssignment:()=>qz,isInExpressionContext:()=>C5,isInJSDoc:()=>S8,isInJSFile:()=>Hr,isInJSXText:()=>$oe,isInJsonFile:()=>P5,isInNonReferenceComment:()=>tce,isInReferenceComment:()=>ece,isInRightSideOfInternalImportEqualsDeclaration:()=>mL,isInString:()=>Px,isInTemplateString:()=>tG,isInTopLevelContext:()=>S5,isInTypeQuery:()=>Lb,isIncrementalCompilation:()=>n3,isIndexSignatureDeclaration:()=>i2,isIndexedAccessTypeNode:()=>Ub,isInferTypeNode:()=>zb,isInfinityOrNaNString:()=>YE,isInitializedProperty:()=>mA,isInitializedVariable:()=>Z8,isInsideJsxElement:()=>EL,isInsideJsxElementOrAttribute:()=>Goe,isInsideNodeModules:()=>sN,isInsideTemplateLiteral:()=>HA,isInstanceOfExpression:()=>Y5,isInstantiatedModule:()=>VU,isInterfaceDeclaration:()=>Bu,isInternalDeclaration:()=>uz,isInternalModuleImportEqualsDeclaration:()=>oC,isInternalName:()=>VV,isIntersectionTypeNode:()=>ox,isIntrinsicJsxName:()=>vC,isIterationStatement:()=>X0,isJSDoc:()=>yd,isJSDocAllType:()=>_ie,isJSDocAugmentsTag:()=>mx,isJSDocAuthorTag:()=>nve,isJSDocCallbackTag:()=>FV,isJSDocClassTag:()=>pie,isJSDocCommentContainingNode:()=>Z7,isJSDocConstructSignature:()=>fC,isJSDocDeprecatedTag:()=>jV,isJSDocEnumTag:()=>Ow,isJSDocFunctionType:()=>VC,isJSDocImplementsTag:()=>wO,isJSDocIndexSignature:()=>D5,isJSDocLikeText:()=>ZV,isJSDocLink:()=>lie,isJSDocLinkCode:()=>uie,isJSDocLinkLike:()=>NT,isJSDocLinkPlain:()=>tve,isJSDocMemberName:()=>M1,isJSDocNameReference:()=>y3,isJSDocNamepathType:()=>rve,isJSDocNamespaceBody:()=>Eye,isJSDocNode:()=>$k,isJSDocNonNullableType:()=>CO,isJSDocNullableType:()=>WC,isJSDocOptionalParameter:()=>ow,isJSDocOptionalType:()=>IV,isJSDocOverloadTag:()=>UC,isJSDocOverrideTag:()=>PO,isJSDocParameterTag:()=>vd,isJSDocPrivateTag:()=>LV,isJSDocPropertyLikeTag:()=>aE,isJSDocPropertyTag:()=>die,isJSDocProtectedTag:()=>MV,isJSDocPublicTag:()=>OV,isJSDocReadonlyTag:()=>RV,isJSDocReturnTag:()=>DO,isJSDocSatisfiesExpression:()=>zW,isJSDocSatisfiesTag:()=>AO,isJSDocSeeTag:()=>ive,isJSDocSignature:()=>R1,isJSDocTag:()=>Xk,isJSDocTemplateTag:()=>kp,isJSDocThisTag:()=>BV,isJSDocThrowsTag:()=>ave,isJSDocTypeAlias:()=>gp,isJSDocTypeAssertion:()=>HC,isJSDocTypeExpression:()=>d2,isJSDocTypeLiteral:()=>Qb,isJSDocTypeTag:()=>v3,isJSDocTypedefTag:()=>Yb,isJSDocUnknownTag:()=>sve,isJSDocUnknownType:()=>fie,isJSDocVariadicType:()=>EO,isJSXTagName:()=>aC,isJsonEqual:()=>bF,isJsonSourceFile:()=>mp,isJsxAttribute:()=>Kd,isJsxAttributeLike:()=>Q7,isJsxAttributeName:()=>Sne,isJsxAttributes:()=>_2,isJsxChild:()=>i8,isJsxClosingElement:()=>l2,isJsxClosingFragment:()=>oie,isJsxElement:()=>Eg,isJsxExpression:()=>g3,isJsxFragment:()=>u2,isJsxNamespacedName:()=>hd,isJsxOpeningElement:()=>Zd,isJsxOpeningFragment:()=>px,isJsxOpeningLikeElement:()=>Fu,isJsxOpeningLikeElementTagName:()=>joe,isJsxSelfClosingElement:()=>$b,isJsxSpreadAttribute:()=>dx,isJsxTagNameExpression:()=>_E,isJsxText:()=>KT,isJumpStatementTarget:()=>JA,isKeyword:()=>c_,isKeywordOrPunctuation:()=>M5,isKnownSymbol:()=>W8,isLabelName:()=>HH,isLabelOfLabeledStatement:()=>qH,isLabeledStatement:()=>c2,isLateVisibilityPaintedStatement:()=>u5,isLeftHandSideExpression:()=>S_,isLeftHandSideOfAssignment:()=>n1e,isLet:()=>p5,isLineBreak:()=>gu,isLiteralComputedPropertyDeclarationName:()=>j8,isLiteralExpression:()=>Rv,isLiteralExpressionOfObject:()=>ZJ,isLiteralImportTypeNode:()=>ey,isLiteralKind:()=>oE,isLiteralLikeAccess:()=>N5,isLiteralLikeElementAccess:()=>E8,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>yL,isLiteralTypeLikeExpression:()=>fve,isLiteralTypeLiteral:()=>ate,isLiteralTypeNode:()=>_y,isLocalName:()=>ah,isLogicalOperator:()=>Nre,isLogicalOrCoalescingAssignmentExpression:()=>dW,isLogicalOrCoalescingAssignmentOperator:()=>FE,isLogicalOrCoalescingBinaryExpression:()=>$8,isLogicalOrCoalescingBinaryOperator:()=>G8,isMappedTypeNode:()=>jC,isMemberName:()=>pg,isMetaProperty:()=>_3,isMethodDeclaration:()=>hc,isMethodOrAccessor:()=>wT,isMethodSignature:()=>Lm,isMinusToken:()=>xV,isMissingDeclaration:()=>eve,isMissingPackageJsonInfo:()=>cse,isModifier:()=>ta,isModifierKind:()=>$h,isModifierLike:()=>Lo,isModuleAugmentationExternal:()=>bz,isModuleBlock:()=>Yd,isModuleBody:()=>lte,isModuleDeclaration:()=>Sc,isModuleExportsAccessExpression:()=>yg,isModuleIdentifier:()=>Bz,isModuleName:()=>Aie,isModuleOrEnumDeclaration:()=>r8,isModuleReference:()=>dte,isModuleSpecifierLike:()=>LL,isModuleWithStringLiteralName:()=>l5,isNameOfFunctionDeclaration:()=>QH,isNameOfModuleDeclaration:()=>XH,isNamedClassElement:()=>Sye,isNamedDeclaration:()=>Nu,isNamedEvaluation:()=>M_,isNamedEvaluationSource:()=>Zz,isNamedExportBindings:()=>XJ,isNamedExports:()=>$f,isNamedImportBindings:()=>oz,isNamedImports:()=>sh,isNamedImportsOrExports:()=>iF,isNamedTupleMember:()=>RC,isNamespaceBody:()=>Cye,isNamespaceExport:()=>jm,isNamespaceExportDeclaration:()=>Fw,isNamespaceImport:()=>dy,isNamespaceReexportDeclaration:()=>Kte,isNewExpression:()=>a2,isNewExpressionTarget:()=>Q3,isNoSubstitutionTemplateLiteral:()=>ex,isNode:()=>vye,isNodeArray:()=>Mv,isNodeArrayMultiLine:()=>Jre,isNodeDescendantOf:()=>Hv,isNodeKind:()=>$D,isNodeLikeSystem:()=>vB,isNodeModulesDirectory:()=>w7,isNodeWithPossibleHoistedDeclaration:()=>are,isNonContextualKeyword:()=>Qz,isNonExportDefaultModifier:()=>dve,isNonGlobalAmbientModule:()=>vz,isNonGlobalDeclaration:()=>Dce,isNonNullAccess:()=>bne,isNonNullChain:()=>U7,isNonNullExpression:()=>ux,isNonStaticMethodOrAccessorWithPrivateName:()=>Wse,isNotEmittedOrPartiallyEmittedNode:()=>kye,isNotEmittedStatement:()=>AV,isNullishCoalesce:()=>$J,isNumber:()=>zh,isNumericLiteral:()=>j_,isNumericLiteralName:()=>kg,isObjectBindingElementWithoutPropertyName:()=>YA,isObjectBindingOrAssignmentElement:()=>KD,isObjectBindingOrAssignmentPattern:()=>rz,isObjectBindingPattern:()=>xp,isObjectLiteralElement:()=>cz,isObjectLiteralElementLike:()=>Yg,isObjectLiteralExpression:()=>ua,isObjectLiteralMethod:()=>Wp,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>h5,isObjectTypeDeclaration:()=>VT,isOctalDigit:()=>F7,isOmittedExpression:()=>dl,isOptionalChain:()=>hu,isOptionalChainRoot:()=>nE,isOptionalDeclaration:()=>KE,isOptionalJSDocPropertyLikeTag:()=>aw,isOptionalTypeNode:()=>vO,isOuterExpression:()=>OO,isOutermostOptionalChain:()=>iE,isOverrideModifier:()=>Yne,isPackageJsonInfo:()=>r9,isPackedArrayLiteral:()=>BW,isParameter:()=>rs,isParameterDeclaration:()=>$v,isParameterPropertyDeclaration:()=>O_,isParameterPropertyModifier:()=>cE,isParenthesizedExpression:()=>l_,isParenthesizedTypeNode:()=>Wb,isParseTreeNode:()=>rE,isPartOfTypeNode:()=>gg,isPartOfTypeQuery:()=>E5,isPartiallyEmittedExpression:()=>xO,isPatternMatch:()=>n7,isPinnedComment:()=>o5,isPlainJsFile:()=>o8,isPlusToken:()=>TV,isPossiblyTypeArgumentPosition:()=>qA,isPostfixUnaryExpression:()=>EV,isPrefixUnaryExpression:()=>py,isPrivateIdentifier:()=>Pi,isPrivateIdentifierClassElementDeclaration:()=>Iu,isPrivateIdentifierPropertyAccessExpression:()=>qk,isPrivateIdentifierSymbol:()=>_re,isProgramBundleEmitBuildInfo:()=>qae,isProgramUptoDate:()=>Bq,isPrologueDirective:()=>zp,isPropertyAccessChain:()=>W7,isPropertyAccessEntityNameExpression:()=>X8,isPropertyAccessExpression:()=>Sn,isPropertyAccessOrQualifiedName:()=>ite,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>nte,isPropertyAssignment:()=>zc,isPropertyDeclaration:()=>xs,isPropertyName:()=>Ac,isPropertyNameLiteral:()=>Ud,isPropertySignature:()=>B_,isProtoSetter:()=>fre,isPrototypeAccess:()=>ny,isPrototypePropertyAssignment:()=>w8,isPunctuation:()=>Xz,isPushOrUnshiftIdentifier:()=>Kz,isQualifiedName:()=>Xu,isQuestionDotToken:()=>hO,isQuestionOrExclamationToken:()=>Eie,isQuestionOrPlusOrMinusToken:()=>wie,isQuestionToken:()=>ly,isRawSourceMap:()=>jse,isReadonlyKeyword:()=>Xne,isReadonlyKeywordOrPlusOrMinusToken:()=>Die,isRecognizedTripleSlashComment:()=>mz,isReferenceFileLocation:()=>c6,isReferencedFile:()=>U1,isRegularExpressionLiteral:()=>bV,isRequireCall:()=>Gu,isRequireVariableStatement:()=>Rz,isRestParameter:()=>dg,isRestTypeNode:()=>bO,isReturnStatement:()=>Up,isReturnStatementWithFixablePromiseHandler:()=>oM,isRightSideOfAccessExpression:()=>hW,isRightSideOfInstanceofExpression:()=>Fre,isRightSideOfPropertyAccess:()=>m6,isRightSideOfQualifiedName:()=>Joe,isRightSideOfQualifiedNameOrPropertyAccess:()=>LE,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>Ire,isRootedDiskPath:()=>F_,isSameEntityName:()=>cC,isSatisfiesExpression:()=>PV,isScopeMarker:()=>ote,isSemicolonClassElement:()=>nie,isSetAccessor:()=>Xh,isSetAccessorDeclaration:()=>J_,isShebangTrivia:()=>MJ,isShiftOperatorOrHigher:()=>XV,isShorthandAmbientModuleSymbol:()=>dE,isShorthandPropertyAssignment:()=>k_,isSignedNumericLiteral:()=>j5,isSimpleCopiableExpression:()=>y2,isSimpleInlineableExpression:()=>Wm,isSimpleParameter:()=>Gse,isSimpleParameterList:()=>gA,isSingleOrDoubleQuote:()=>T8,isSourceFile:()=>Ni,isSourceFileFromLibrary:()=>x6,isSourceFileJS:()=>Ou,isSourceFileNotJS:()=>Rye,isSourceFileNotJson:()=>Mz,isSourceMapping:()=>Bse,isSpecialPropertyDeclaration:()=>rre,isSpreadAssignment:()=>a0,isSpreadElement:()=>gd,isStatement:()=>Ei,isStatementButNotDeclaration:()=>n8,isStatementOrBlock:()=>pte,isStatementWithLocals:()=>kte,isStatic:()=>Ms,isStaticModifier:()=>nx,isString:()=>ls,isStringAKeyword:()=>Hye,isStringANonContextualKeyword:()=>jT,isStringAndEmptyAnonymousObjectIntersection:()=>Koe,isStringDoubleQuoted:()=>A5,isStringLiteral:()=>aa,isStringLiteralLike:()=>Ma,isStringLiteralOrJsxExpression:()=>mte,isStringLiteralOrTemplate:()=>vce,isStringOrNumericLiteralLike:()=>Sf,isStringOrRegularExpressionOrTemplateLiteral:()=>iG,isStringTextContainingNode:()=>KJ,isSuperCall:()=>Eb,isSuperKeyword:()=>l3,isSuperOrSuperProperty:()=>Mye,isSuperProperty:()=>o_,isSupportedSourceFileName:()=>lne,isSwitchStatement:()=>d3,isSyntaxList:()=>qC,isSyntheticExpression:()=>H1e,isSyntheticReference:()=>fx,isTagName:()=>GH,isTaggedTemplateExpression:()=>o2,isTaggedTemplateTag:()=>Moe,isTemplateExpression:()=>SO,isTemplateHead:()=>tx,isTemplateLiteral:()=>AT,isTemplateLiteralKind:()=>G0,isTemplateLiteralToken:()=>Yee,isTemplateLiteralTypeNode:()=>eie,isTemplateLiteralTypeSpan:()=>CV,isTemplateMiddle:()=>SV,isTemplateMiddleOrTemplateTail:()=>q7,isTemplateSpan:()=>p3,isTemplateTail:()=>mO,isTextWhiteSpaceLike:()=>sce,isThis:()=>g6,isThisContainerOrFunctionBlock:()=>Qte,isThisIdentifier:()=>Yv,isThisInTypeQuery:()=>BT,isThisInitializedDeclaration:()=>T5,isThisInitializedObjectBindingExpression:()=>Zte,isThisProperty:()=>y8,isThisTypeNode:()=>Aw,isThisTypeParameter:()=>ZE,isThisTypePredicate:()=>Lye,isThrowStatement:()=>wV,isToken:()=>ET,isTokenKind:()=>YJ,isTraceEnabled:()=>oh,isTransientSymbol:()=>wm,isTrivia:()=>gC,isTryStatement:()=>Gb,isTupleTypeNode:()=>ax,isTypeAlias:()=>I8,isTypeAliasDeclaration:()=>qp,isTypeAssertionExpression:()=>tie,isTypeDeclaration:()=>NC,isTypeElement:()=>bb,isTypeKeyword:()=>K3,isTypeKeywordToken:()=>uG,isTypeKeywordTokenOrIdentifier:()=>NL,isTypeLiteralNode:()=>z_,isTypeNode:()=>ki,isTypeNodeKind:()=>CW,isTypeOfExpression:()=>BC,isTypeOnlyExportDeclaration:()=>Zee,isTypeOnlyImportDeclaration:()=>XD,isTypeOnlyImportOrExportDeclaration:()=>x1,isTypeOperatorNode:()=>Vb,isTypeParameterDeclaration:()=>Uo,isTypePredicateNode:()=>Dw,isTypeQueryNode:()=>sx,isTypeReferenceNode:()=>Gf,isTypeReferenceType:()=>e5,isTypeUsableAsPropertyName:()=>bp,isUMDExportSymbol:()=>nF,isUnaryExpression:()=>sz,isUnaryExpressionWithWrite:()=>ste,isUnicodeIdentifierStart:()=>N7,isUnionTypeNode:()=>uy,isUnparsedNode:()=>QJ,isUnparsedPrepend:()=>cie,isUnparsedSource:()=>Xb,isUnparsedTextLike:()=>Qee,isUrl:()=>hee,isValidBigIntString:()=>SF,isValidESSymbolDeclaration:()=>Ute,isValidTypeOnlyAliasUseSite:()=>I1,isValueSignatureDeclaration:()=>ore,isVarAwaitUsing:()=>p8,isVarConst:()=>tC,isVarUsing:()=>d8,isVariableDeclaration:()=>hi,isVariableDeclarationInVariableStatement:()=>gE,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>Uv,isVariableDeclarationInitializedToRequire:()=>w5,isVariableDeclarationList:()=>ml,isVariableLike:()=>nC,isVariableLikeOrAccessor:()=>Wte,isVariableStatement:()=>ac,isVoidExpression:()=>lx,isWatchSet:()=>a1e,isWhileStatement:()=>$1e,isWhiteSpaceLike:()=>Xg,isWhiteSpaceSingleLine:()=>Bd,isWithStatement:()=>iie,isWriteAccess:()=>WT,isWriteOnlyAccess:()=>rF,isYieldExpression:()=>TO,jsxModeNeedsExplicitImport:()=>BG,keywordPart:()=>V_,last:()=>ka,lastOrUndefined:()=>Do,length:()=>mr,libMap:()=>HO,libs:()=>Kw,lineBreakPart:()=>S6,linkNamePart:()=>_ce,linkPart:()=>xG,linkTextPart:()=>jL,listFiles:()=>iH,loadModuleFromGlobalCache:()=>yse,loadWithModeAwareCache:()=>EA,makeIdentifierFromModuleName:()=>wte,makeImport:()=>_0,makeImportIfNecessary:()=>ice,makeStringLiteral:()=>wx,mangleScopedPackageName:()=>n6,map:()=>nr,mapAllOrFail:()=>rB,mapDefined:()=>Ri,mapDefinedEntries:()=>MK,mapDefinedIterator:()=>B4,mapEntries:()=>jK,mapIterator:()=>R4,mapOneOrMany:()=>MG,mapToDisplayParts:()=>by,matchFiles:()=>FW,matchPatternOrExact:()=>OW,matchedText:()=>ZK,matchesExclude:()=>qO,maybeBind:()=>Os,maybeSetLocalizedDiagnosticMessages:()=>Yre,memoize:()=>Hu,memoizeCached:()=>qK,memoizeOne:()=>Cm,memoizeWeak:()=>p0e,metadataHelper:()=>WF,min:()=>dB,minAndMax:()=>_ne,missingFileModifiedTime:()=>rf,modifierToFlag:()=>zT,modifiersToFlags:()=>Gd,moduleOptionDeclaration:()=>mU,moduleResolutionIsEqualTo:()=>Tte,moduleResolutionNameAndModeGetter:()=>q9,moduleResolutionOptionDeclarations:()=>GO,moduleResolutionSupportsPackageJsonExportsAndImports:()=>qT,moduleResolutionUsesNodeModules:()=>IL,moduleSpecifiers:()=>h2,moveEmitHelpers:()=>jne,moveRangeEnd:()=>eF,moveRangePastDecorators:()=>th,moveRangePastModifiers:()=>$d,moveRangePos:()=>A1,moveSyntheticComments:()=>Lne,mutateMap:()=>JE,mutateMapSkippingNewValues:()=>Tg,needsParentheses:()=>JL,needsScopeMarker:()=>$7,newCaseClauseTracker:()=>eM,newPrivateEnvironment:()=>qse,noEmitNotification:()=>hA,noEmitSubstitution:()=>B3,noTransformers:()=>mq,noTruncationMaximumTruncationLength:()=>wF,nodeCanBeDecorated:()=>k5,nodeHasName:()=>UD,nodeIsDecorated:()=>sC,nodeIsMissing:()=>_c,nodeIsPresent:()=>pp,nodeIsSynthesized:()=>ko,nodeModuleNameResolver:()=>fse,nodeModulesPathPart:()=>zm,nodeNextJsonConfigResolver:()=>pse,nodeOrChildIsDecorated:()=>b8,nodeOverlapsWithStartEnd:()=>vL,nodePosToString:()=>Dye,nodeSeenTracker:()=>Dx,nodeStartsNewLexicalEnvironment:()=>eW,nodeToDisplayParts:()=>PTe,noop:()=>Ca,noopFileWatcher:()=>p6,normalizePath:()=>Hs,normalizeSlashes:()=>iu,not:()=>s7,notImplemented:()=>ks,notImplementedResolver:()=>O9,nullNodeConverters:()=>oV,nullParenthesizerRules:()=>aV,nullTransformationContext:()=>J3,objectAllocator:()=>Il,operatorPart:()=>rP,optionDeclarations:()=>Pg,optionMapToObject:()=>WO,optionsAffectingProgramStructure:()=>bU,optionsForBuild:()=>TU,optionsForWatch:()=>ZC,optionsHaveChanges:()=>Qk,optionsHaveModuleResolutionChanges:()=>vte,or:()=>fd,orderedRemoveItem:()=>Ik,orderedRemoveItemAt:()=>J0,outFile:()=>io,packageIdToPackageName:()=>i5,packageIdToString:()=>Z0,paramHelper:()=>VF,parameterIsThisKeyword:()=>Qv,parameterNamePart:()=>oce,parseBaseNodeFactory:()=>nU,parseBigInt:()=>fne,parseBuildCommand:()=>Hve,parseCommandLine:()=>Uve,parseCommandLineWorker:()=>aU,parseConfigFileTextToJson:()=>cU,parseConfigFileWithSystem:()=>PSe,parseConfigHostFromCompilerHostLike:()=>U9,parseCustomTypeOption:()=>zO,parseIsolatedEntityName:()=>hx,parseIsolatedJSDocComment:()=>Rie,parseJSDocTypeExpressionForTests:()=>Nve,parseJsonConfigFileContent:()=>a2e,parseJsonSourceFileConfigFileContent:()=>Qw,parseJsonText:()=>Hw,parseListTypeOption:()=>Bie,parseNodeFactory:()=>Jm,parseNodeModuleFromPath:()=>aA,parsePackageName:()=>lA,parsePseudoBigInt:()=>GE,parseValidBigInt:()=>jW,patchWriteFileEnsuringDirectory:()=>mee,pathContainsNodeModules:()=>W1,pathIsAbsolute:()=>X4,pathIsBareSpecifier:()=>IJ,pathIsRelative:()=>nf,patternText:()=>YK,perfLogger:()=>wu,performIncrementalCompilation:()=>NSe,performance:()=>lee,plainJSErrors:()=>H9,positionBelongsToNode:()=>ZH,positionIsASICandidate:()=>UL,positionIsSynthesized:()=>md,positionsAreOnSameLine:()=>Uf,preProcessFile:()=>exe,probablyUsesSemicolons:()=>nN,processCommentPragmas:()=>tU,processPragmasIntoFields:()=>rU,processTaggedTemplateExpression:()=>cq,programContainsEsModules:()=>nce,programContainsModules:()=>rce,projectReferenceIsEqualTo:()=>fz,propKeyHelper:()=>rO,propertyNamePart:()=>cce,pseudoBigIntToString:()=>e2,punctuationPart:()=>Tu,pushIfUnique:()=>Jf,quote:()=>sP,quotePreferenceFromString:()=>dG,rangeContainsPosition:()=>zA,rangeContainsPositionExclusive:()=>WA,rangeContainsRange:()=>Pf,rangeContainsRangeExclusive:()=>Woe,rangeContainsStartEnd:()=>VA,rangeEndIsOnSameLineAsRangeStart:()=>Y8,rangeEndPositionsAreOnSameLine:()=>jre,rangeEquals:()=>oB,rangeIsOnSingleLine:()=>Rb,rangeOfNode:()=>MW,rangeOfTypeParameters:()=>RW,rangeOverlapsWithStartEnd:()=>Y3,rangeStartIsOnSameLineAsRangeEnd:()=>Bre,rangeStartPositionsAreOnSameLine:()=>tF,readBuilderProgram:()=>iL,readConfigFile:()=>$w,readHelper:()=>eO,readJson:()=>ME,readJsonConfigFile:()=>Wie,readJsonOrUndefined:()=>vW,reduceEachLeadingCommentRange:()=>xee,reduceEachTrailingCommentRange:()=>kee,reduceLeft:()=>Du,reduceLeftIterator:()=>Zj,reducePathComponents:()=>gb,refactor:()=>Ix,regExpEscape:()=>p1e,relativeComplement:()=>BK,removeAllComments:()=>yw,removeEmitHelper:()=>V1e,removeExtension:()=>nw,removeFileExtension:()=>$u,removeIgnoredPath:()=>X9,removeMinAndVersionNumbers:()=>mB,removeOptionality:()=>Xoe,removePrefix:()=>q4,removeSuffix:()=>Nk,removeTrailingDirectorySeparator:()=>d1,repeatString:()=>XA,replaceElement:()=>uB,replaceFirstStar:()=>$T,resolutionExtensionIsTSOrJson:()=>UE,resolveConfigFileProjectName:()=>mH,resolveJSModule:()=>use,resolveLibrary:()=>i9,resolveModuleName:()=>t6,resolveModuleNameFromCache:()=>V2e,resolvePackageNameToPackageJson:()=>CU,resolvePath:()=>V0,resolveProjectReferencePath:()=>l6,resolveTripleslashReference:()=>j9,resolveTypeReferenceDirective:()=>ase,resolvingEmptyArray:()=>DF,restHelper:()=>QF,returnFalse:()=>_d,returnNoopFileWatcher:()=>d6,returnTrue:()=>Wh,returnUndefined:()=>f1,returnsPromise:()=>i$,runInitializersHelper:()=>qF,sameFlatMap:()=>LK,sameMap:()=>nl,sameMapping:()=>Abe,scanShebangTrivia:()=>RJ,scanTokenAtPosition:()=>Bte,scanner:()=>xu,screenStartingMessageCodes:()=>nL,semanticDiagnosticsOptionDeclarations:()=>hU,serializeCompilerOptions:()=>VO,server:()=>YDe,servicesVersion:()=>Qle,setCommentRange:()=>Nc,setConfigFileInOptions:()=>pU,setConstantValue:()=>Rne,setEachParent:()=>AC,setEmitFlags:()=>Qr,setFunctionNameHelper:()=>nO,setGetSourceFileAsHashVersioned:()=>rL,setIdentifierAutoGenerate:()=>Sw,setIdentifierGeneratedImportReference:()=>zne,setIdentifierTypeArguments:()=>i0,setInternalEmitFlags:()=>vw,setLocalizedDiagnosticMessages:()=>Qre,setModuleDefaultHelper:()=>aO,setNodeFlags:()=>mne,setObjectAllocator:()=>Xre,setOriginalNode:()=>dn,setParent:()=>ba,setParentRecursive:()=>sy,setPrivateIdentifier:()=>tS,setSnippetElement:()=>mV,setSourceMapRange:()=>sa,setStackTraceLimit:()=>O0e,setStartsOnNewLine:()=>jF,setSyntheticLeadingComments:()=>O1,setSyntheticTrailingComments:()=>QT,setSys:()=>B0e,setSysLog:()=>pee,setTextRange:()=>Ke,setTextRangeEnd:()=>wC,setTextRangePos:()=>$E,setTextRangePosEnd:()=>Fm,setTextRangePosWidth:()=>XE,setTokenSourceMapRange:()=>One,setTypeNode:()=>Bne,setUILocale:()=>$K,setValueDeclaration:()=>A8,shouldAllowImportingTsExtension:()=>i6,shouldPreserveConstEnums:()=>n2,shouldUseUriStyleNodeCoreModules:()=>ZL,showModuleSpecifier:()=>Ure,signatureHasLiteralTypes:()=>UU,signatureHasRestParameter:()=>Su,signatureToDisplayParts:()=>kG,single:()=>lB,singleElementArray:()=>ST,singleIterator:()=>RK,singleOrMany:()=>xm,singleOrUndefined:()=>Tm,skipAlias:()=>Ul,skipAssertions:()=>lve,skipConstraint:()=>_G,skipOuterExpressions:()=>xc,skipParentheses:()=>Va,skipPartiallyEmittedExpressions:()=>Bp,skipTrivia:()=>ca,skipTypeChecking:()=>HE,skipTypeParentheses:()=>R8,skipWhile:()=>eee,sliceAfter:()=>LW,some:()=>ct,sort:()=>_b,sortAndDeduplicate:()=>z4,sortAndDeduplicateDiagnostics:()=>zk,sourceFileAffectingCompilerOptions:()=>$O,sourceFileMayBeEmitted:()=>Fb,sourceMapCommentRegExp:()=>y9,sourceMapCommentRegExpDontCareLineStart:()=>ZU,spacePart:()=>cc,spanMap:()=>nB,spreadArrayHelper:()=>tO,stableSort:()=>Bh,startEndContainsRange:()=>YH,startEndOverlapsWithStartEnd:()=>bL,startOnNewLine:()=>bu,startTracing:()=>uee,startsWith:()=>Vi,startsWithDirectory:()=>OJ,startsWithUnderscore:()=>jG,startsWithUseStrict:()=>bie,stringContainsAt:()=>Pce,stringToToken:()=>Ov,stripQuotes:()=>yp,supportedDeclarationExtensions:()=>fw,supportedJSExtensions:()=>nV,supportedJSExtensionsFlat:()=>FC,supportedLocaleDirectories:()=>_z,supportedTSExtensions:()=>IC,supportedTSExtensionsFlat:()=>rV,supportedTSImplementationExtensions:()=>pw,suppressLeadingAndTrailingTrivia:()=>U_,suppressLeadingTrivia:()=>DG,suppressTrailingTrivia:()=>gce,symbolEscapedNameNoDefault:()=>OL,symbolName:()=>Xo,symbolNameNoDefault:()=>FL,symbolPart:()=>ace,symbolToDisplayParts:()=>nP,syntaxMayBeASICandidate:()=>UG,syntaxRequiresTrailingSemicolonOrASI:()=>VL,sys:()=>zl,sysLog:()=>PD,tagNamesAreEquivalent:()=>B1,takeWhile:()=>o7,targetOptionDeclaration:()=>tA,templateObjectHelper:()=>KF,testFormatSettings:()=>Loe,textChangeRangeIsUnchanged:()=>Nee,textChangeRangeNewSpan:()=>tE,textChanges:()=>Kr,textOrKeywordPart:()=>TG,textPart:()=>wf,textRangeContainsPositionInclusive:()=>zD,textSpanContainsPosition:()=>JJ,textSpanContainsTextSpan:()=>Pee,textSpanEnd:()=>bc,textSpanIntersection:()=>Aee,textSpanIntersectsWith:()=>M7,textSpanIntersectsWithPosition:()=>wee,textSpanIntersectsWithTextSpan:()=>aye,textSpanIsEmpty:()=>Eee,textSpanOverlap:()=>Dee,textSpanOverlapsWith:()=>sye,textSpansEqual:()=>b6,textToKeywordObj:()=>BD,timestamp:()=>xo,toArray:()=>vT,toBuilderFileEmit:()=>$ae,toBuilderStateFileInfoForMultiEmit:()=>Gae,toEditorSettings:()=>TN,toFileNameLowerCase:()=>km,toLowerCase:()=>UK,toPath:()=>Io,toProgramEmitPending:()=>Xae,tokenIsIdentifierOrKeyword:()=>Au,tokenIsIdentifierOrKeywordOrGreaterThan:()=>See,tokenToString:()=>Ws,trace:()=>Zi,tracing:()=>qr,tracingEnabled:()=>xD,transform:()=>Zke,transformClassFields:()=>rae,transformDeclarations:()=>pq,transformECMAScriptModule:()=>fq,transformES2015:()=>hae,transformES2016:()=>gae,transformES2017:()=>aae,transformES2018:()=>oae,transformES2019:()=>cae,transformES2020:()=>lae,transformES2021:()=>uae,transformES5:()=>yae,transformESDecorators:()=>sae,transformESNext:()=>_ae,transformGenerators:()=>vae,transformJsx:()=>mae,transformLegacyDecorators:()=>iae,transformModule:()=>_q,transformNamedEvaluation:()=>W_,transformNodeModule:()=>Sae,transformNodes:()=>yA,transformSystemModule:()=>bae,transformTypeScript:()=>tae,transpile:()=>cxe,transpileModule:()=>Hce,transpileOptionValueCompilerOptions:()=>SU,tryAddToSet:()=>_1,tryAndIgnoreErrors:()=>GL,tryCast:()=>Wn,tryDirectoryExists:()=>HL,tryExtractTSExtension:()=>Z5,tryFileExists:()=>iN,tryGetClassExtendingExpressionWithTypeArguments:()=>mW,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>gW,tryGetDirectories:()=>qL,tryGetExtensionFromPath:()=>nh,tryGetImportFromModuleSpecifier:()=>N8,tryGetJSDocSatisfiesTypeNode:()=>CF,tryGetModuleNameFromFile:()=>Bw,tryGetModuleSpecifierFromDeclaration:()=>lC,tryGetNativePerformanceHooks:()=>aee,tryGetPropertyAccessOrIdentifierToString:()=>Q8,tryGetPropertyNameOfBindingOrAssignmentElement:()=>MO,tryGetSourceMappingURL:()=>Rse,tryGetTextOfPropertyName:()=>mE,tryIOAndConsumeErrors:()=>$L,tryParseJson:()=>K5,tryParsePattern:()=>DC,tryParsePatterns:()=>yF,tryParseRawSourceMap:()=>QU,tryReadDirectory:()=>NG,tryReadFile:()=>k3,tryRemoveDirectoryPrefix:()=>NW,tryRemoveExtension:()=>une,tryRemovePrefix:()=>yB,tryRemoveSuffix:()=>QK,typeAcquisitionDeclarations:()=>rA,typeAliasNamePart:()=>lce,typeDirectiveIsEqualTo:()=>xte,typeKeywords:()=>tM,typeParameterNamePart:()=>uce,typeToDisplayParts:()=>KA,unchangedPollThresholds:()=>DD,unchangedTextChangeRange:()=>s8,unescapeLeadingUnderscores:()=>xi,unmangleScopedPackageName:()=>_A,unorderedRemoveItem:()=>bT,unorderedRemoveItemAt:()=>gB,unreachableCodeIsError:()=>Kre,unusedLabelIsError:()=>ene,unwrapInnermostStatementOfLabel:()=>Iz,updateErrorForNoInputFiles:()=>UO,updateLanguageServiceSourceFile:()=>z$,updateMissingFilePathsWatch:()=>xq,updateResolutionField:()=>KC,updateSharedExtendedConfigFileWatcher:()=>M9,updateSourceFile:()=>KV,updateWatchingWildcardDirectories:()=>SA,usesExtensionsOnImports:()=>one,usingSingleLineStringWriter:()=>fE,utf16EncodeAsString:()=>Jk,validateLocaleAndSetLanguage:()=>cye,valuesHelper:()=>iO,version:()=>ld,versionMajorMinor:()=>qg,visitArray:()=>dA,visitCommaListElements:()=>h9,visitEachChild:()=>ur,visitFunctionBody:()=>Ef,visitIterationBody:()=>Qu,visitLexicalEnvironment:()=>$U,visitNode:()=>qe,visitNodes:()=>Dr,visitParameterList:()=>tc,walkUpBindingElementsAndPatterns:()=>Wk,walkUpLexicalEnvironments:()=>Use,walkUpOuterExpressions:()=>Sie,walkUpParenthesizedExpressions:()=>Yh,walkUpParenthesizedTypes:()=>M8,walkUpParenthesizedTypesAndGetParentAndChild:()=>cre,whitespaceOrMapCommentRegExp:()=>v9,writeCommentRange:()=>TC,writeFile:()=>wE,writeFileEnsuringDirectories:()=>uW,zipWith:()=>cg});var xy=Dt({"src/server/_namespaces/ts.ts"(){Fs(),LA(),qn(),iY(),gS()}}),KDe={};Gc(KDe,{ActionInvalidate:()=>FA,ActionPackageInstalled:()=>OA,ActionSet:()=>IA,ActionWatchTypingLocations:()=>X3,Arguments:()=>TH,AutoImportProviderProject:()=>yY,AuxiliaryProject:()=>gY,CharRangeSection:()=>NY,CloseFileWatcherEvent:()=>xR,CommandNames:()=>xde,ConfigFileDiagEvent:()=>yR,ConfiguredProject:()=>vY,CreateDirectoryWatcherEvent:()=>TR,CreateFileWatcherEvent:()=>SR,Errors:()=>g0,EventBeginInstallTypes:()=>uL,EventEndInstallTypes:()=>_L,EventInitializationFailed:()=>SH,EventTypesRegistry:()=>lL,ExternalProject:()=>_R,GcTimer:()=>lY,InferredProject:()=>mY,LargeFileReferencedEvent:()=>hR,LineIndex:()=>xP,LineLeaf:()=>tI,LineNode:()=>Vx,LogLevel:()=>sY,Msg:()=>aY,OpenFileInfoTelemetryEvent:()=>xY,Project:()=>mS,ProjectInfoTelemetryEvent:()=>bR,ProjectKind:()=>SP,ProjectLanguageServiceStateEvent:()=>vR,ProjectLoadingFinishEvent:()=>gR,ProjectLoadingStartEvent:()=>mR,ProjectReferenceProjectLoadKind:()=>EY,ProjectService:()=>PY,ProjectsUpdatedInBackgroundEvent:()=>ZN,ScriptInfo:()=>fY,ScriptVersionCache:()=>PR,Session:()=>Cde,TextStorage:()=>_Y,ThrottledOperations:()=>cY,TypingsCache:()=>pY,TypingsInstallerAdapter:()=>Dde,allFilesAreJsOrDts:()=>tde,allRootFilesAreJsOrDts:()=>ede,asNormalizedPath:()=>EDe,convertCompilerOptions:()=>fR,convertFormatOptions:()=>z6,convertScriptKindName:()=>SY,convertTypeAcquisition:()=>ide,convertUserPreferences:()=>sde,convertWatchOptions:()=>YN,countEachFileTypes:()=>XN,createInstallTypingsRequest:()=>Fpe,createModuleSpecifierCache:()=>mde,createNormalizedPathMap:()=>PDe,createPackageJsonCache:()=>gde,createSortedArray:()=>jpe,emptyArray:()=>Wc,findArgument:()=>dTe,forEachResolvedProjectReferenceProject:()=>W6,formatDiagnosticToProtocol:()=>eI,formatMessage:()=>hde,getBaseConfigFileName:()=>oY,getLocationInNewDocument:()=>Sde,hasArgument:()=>pTe,hasNoTypeScriptSource:()=>rde,indent:()=>$3,isBackgroundProject:()=>QN,isConfigFile:()=>_de,isConfiguredProject:()=>Y1,isDynamicFileName:()=>$N,isExternalProject:()=>dY,isInferredProject:()=>J6,isInferredProjectName:()=>Ope,makeAutoImportProviderProjectName:()=>Mpe,makeAuxiliaryProjectName:()=>Rpe,makeInferredProjectName:()=>Lpe,maxFileSize:()=>dR,maxProgramSizeForNonTsFiles:()=>pR,normalizedPathToPath:()=>GN,nowString:()=>mTe,nullCancellationToken:()=>Tde,nullTypingsInstaller:()=>uR,projectContainsInfoDirectly:()=>zx,protocol:()=>Kpe,removeSorted:()=>DDe,stringifyIndented:()=>q1,toEvent:()=>yde,toNormalizedPath:()=>zo,tryConvertScriptKindName:()=>bY,typingsInstaller:()=>Npe,updateProjectIfDirty:()=>uf});var Net=Dt({"src/typescript/_namespaces/ts.server.ts"(){fL(),gS()}}),e8e={};Gc(e8e,{ANONYMOUS:()=>rM,AccessFlags:()=>QB,AssertionLevel:()=>SB,AssignmentDeclarationKind:()=>sJ,AssignmentKind:()=>GW,Associativity:()=>XW,BreakpointResolver:()=>$$,BuilderFileEmit:()=>Zq,BuilderProgramKind:()=>Kq,BuilderState:()=>$p,BundleFileSectionKind:()=>xJ,CallHierarchy:()=>Fx,CharacterCodes:()=>gJ,CheckFlags:()=>qB,CheckMode:()=>d9,ClassificationType:()=>zH,ClassificationTypeNames:()=>JH,CommentDirectiveType:()=>AB,Comparison:()=>Pk,CompletionInfoFlags:()=>FH,CompletionTriggerKind:()=>DH,Completions:()=>jx,ContainerFlags:()=>zU,ContextFlags:()=>MB,Debug:()=>E,DiagnosticCategory:()=>CD,Diagnostics:()=>p,DocumentHighlights:()=>sM,ElementFlags:()=>XB,EmitFlags:()=>k7,EmitHint:()=>bJ,EmitOnly:()=>IB,EndOfLineState:()=>MH,EnumKind:()=>UB,ExitStatus:()=>FB,ExportKind:()=>XG,Extension:()=>hJ,ExternalEmitHelpers:()=>vJ,FileIncludeKind:()=>m7,FilePreprocessingDiagnosticsKind:()=>NB,FileSystemEntryKind:()=>wJ,FileWatcherEventKind:()=>DJ,FindAllReferences:()=>uo,FlattenLevel:()=>sq,FlowFlags:()=>kD,ForegroundColorEscapeSequences:()=>Uq,FunctionFlags:()=>$W,GeneratedIdentifierFlags:()=>d7,GetLiteralTextFlags:()=>UW,GoToDefinition:()=>L6,HighlightSpanKind:()=>AH,IdentifierNameMap:()=>Tx,IdentifierNameMultiMap:()=>iq,ImportKind:()=>$G,ImportsNotUsedAsValues:()=>_J,IndentStyle:()=>NH,IndexFlags:()=>YB,IndexKind:()=>eJ,InferenceFlags:()=>nJ,InferencePriority:()=>rJ,InlayHintKind:()=>wH,InlayHints:()=>JQ,InternalEmitFlags:()=>yJ,InternalSymbolName:()=>HB,InvalidatedProjectKind:()=>bH,JSDocParsingMode:()=>EJ,JsDoc:()=>Q1,JsTyping:()=>rm,JsxEmit:()=>uJ,JsxFlags:()=>DB,JsxReferenceKind:()=>ZB,LanguageServiceMode:()=>CH,LanguageVariant:()=>dJ,LexicalEnvironmentFlags:()=>TJ,ListFormat:()=>kJ,LogLevel:()=>xB,MemberOverrideStatus:()=>OB,ModifierFlags:()=>f7,ModuleDetectionKind:()=>aJ,ModuleInstanceState:()=>JU,ModuleKind:()=>G4,ModuleResolutionKind:()=>Rk,ModuleSpecifierEnding:()=>iV,NavigateTo:()=>Xce,NavigationBar:()=>sle,NewLineKind:()=>fJ,NodeBuilderFlags:()=>RB,NodeCheckFlags:()=>GB,NodeFactoryFlags:()=>fV,NodeFlags:()=>_7,NodeResolutionFeatures:()=>RU,ObjectFlags:()=>v7,OperationCanceledException:()=>Mk,OperatorPrecedence:()=>QW,OrganizeImports:()=>Xp,OrganizeImportsMode:()=>PH,OuterExpressionKinds:()=>SJ,OutliningElementsCollector:()=>UQ,OutliningSpanKind:()=>OH,OutputFileType:()=>LH,PackageJsonAutoImportPreference:()=>kH,PackageJsonDependencyGroup:()=>xH,PatternMatchKind:()=>aM,PollingInterval:()=>C7,PollingWatchKind:()=>lJ,PragmaKindFlags:()=>CJ,PrivateIdentifierKind:()=>vV,ProcessLevel:()=>lq,ProgramUpdateLevel:()=>Cq,QuotePreference:()=>WG,RelationComparisonResult:()=>p7,Rename:()=>nR,ScriptElementKind:()=>jH,ScriptElementKindModifier:()=>BH,ScriptKind:()=>S7,ScriptSnapshot:()=>dL,ScriptTarget:()=>pJ,SemanticClassificationFormat:()=>EH,SemanticMeaning:()=>zG,SemicolonPreference:()=>IH,SignatureCheckMode:()=>m9,SignatureFlags:()=>b7,SignatureHelp:()=>BN,SignatureKind:()=>KB,SmartSelectionRange:()=>GQ,SnippetKind:()=>x7,SortKind:()=>bB,StructureIsReused:()=>g7,SymbolAccessibility:()=>JB,SymbolDisplay:()=>m0,SymbolDisplayPartKind:()=>MA,SymbolFlags:()=>h7,SymbolFormatFlags:()=>BB,SyntaxKind:()=>u7,SyntheticSymbolKind:()=>zB,Ternary:()=>iJ,ThrottledCancellationToken:()=>G$,TokenClass:()=>RH,TokenFlags:()=>wB,TransformFlags:()=>T7,TypeFacts:()=>p9,TypeFlags:()=>y7,TypeFormatFlags:()=>jB,TypeMapKind:()=>tJ,TypePredicateKind:()=>WB,TypeReferenceSerializationKind:()=>VB,UnionReduction:()=>LB,UpToDateStatusType:()=>gH,VarianceFlags:()=>$B,Version:()=>Lp,VersionRange:()=>SD,WatchDirectoryFlags:()=>mJ,WatchDirectoryKind:()=>cJ,WatchFileKind:()=>oJ,WatchLogLevel:()=>Eq,WatchType:()=>al,accessPrivateIdentifier:()=>Hse,addDisposableResourceHelper:()=>fO,addEmitFlags:()=>Xd,addEmitHelper:()=>YT,addEmitHelpers:()=>ih,addInternalEmitFlags:()=>XT,addNodeFactoryPatcher:()=>M1e,addObjectAllocatorPatcher:()=>$re,addRange:()=>Nn,addRelatedInfo:()=>la,addSyntheticLeadingComment:()=>a3,addSyntheticTrailingComment:()=>BF,addToSeen:()=>Vp,advancedAsyncSuperHelper:()=>kw,affectsDeclarationPathOptionDeclarations:()=>vU,affectsEmitOptionDeclarations:()=>yU,allKeysStartWithDot:()=>a9,altDirectorySeparator:()=>FD,and:()=>i7,append:()=>_r,appendIfUnique:()=>Hg,arrayFrom:()=>gs,arrayIsEqualTo:()=>ud,arrayIsHomogeneous:()=>dne,arrayIsSorted:()=>QI,arrayOf:()=>zK,arrayReverseIterator:()=>aB,arrayToMap:()=>Iv,arrayToMultiMap:()=>yD,arrayToNumericMap:()=>VK,arraysEqual:()=>mD,assertType:()=>g0e,assign:()=>wk,assignHelper:()=>HF,asyncDelegator:()=>$F,asyncGeneratorHelper:()=>GF,asyncSuperHelper:()=>xw,asyncValues:()=>XF,attachFileToDiagnostics:()=>UT,awaitHelper:()=>ZT,awaiterHelper:()=>YF,base64decode:()=>Rre,base64encode:()=>Mre,binarySearch:()=>Jh,binarySearchKey:()=>hT,bindSourceFile:()=>Sse,breakIntoCharacterSpans:()=>Wce,breakIntoWordSpans:()=>Vce,buildLinkParts:()=>fce,buildOpts:()=>XO,buildOverload:()=>bDe,bundlerModuleNameResolver:()=>_se,canBeConvertedToAsync:()=>a$,canHaveDecorators:()=>Kb,canHaveExportModifier:()=>sw,canHaveFlowNode:()=>F8,canHaveIllegalDecorators:()=>$V,canHaveIllegalModifiers:()=>Cie,canHaveIllegalType:()=>_ve,canHaveIllegalTypeParameters:()=>kie,canHaveJSDoc:()=>O8,canHaveLocals:()=>Dm,canHaveModifiers:()=>Hp,canHaveSymbol:()=>zd,canJsonReportNoInputFiles:()=>C3,canProduceDiagnostics:()=>w9,canUsePropertyAccess:()=>JW,canWatchAffectingLocation:()=>Kae,canWatchAtTypes:()=>Zae,canWatchDirectoryOrFile:()=>Q9,cartesianProduct:()=>KK,cast:()=>Ls,chainBundle:()=>Gp,chainDiagnosticMessages:()=>vs,changeAnyExtension:()=>ND,changeCompilerHostLikeToUseCache:()=>kA,changeExtension:()=>N1,changeFullExtension:()=>yee,changesAffectModuleResolution:()=>t5,changesAffectingProgramStructure:()=>bte,childIsDecorated:()=>yE,classElementOrClassElementParameterIsDecorated:()=>Fz,classHasClassThisAssignment:()=>aq,classHasDeclaredOrExplicitlyAssignedName:()=>oq,classHasExplicitlyAssignedName:()=>E9,classOrConstructorParameterIsDecorated:()=>Qh,classPrivateFieldGetHelper:()=>lO,classPrivateFieldInHelper:()=>_O,classPrivateFieldSetHelper:()=>uO,classicNameResolver:()=>hse,classifier:()=>eue,cleanExtendedConfigCache:()=>R9,clear:()=>lg,clearMap:()=>T_,clearSharedExtendedConfigFileWatcher:()=>Tq,climbPastPropertyAccess:()=>gL,climbPastPropertyOrElementAccess:()=>Boe,clone:()=>_B,cloneCompilerOptions:()=>aG,closeFileWatcher:()=>dd,closeFileWatcherOf:()=>Xf,codefix:()=>lu,collapseTextChangeRangesAcrossMultipleVersions:()=>Iee,collectExternalModuleInfo:()=>eq,combine:()=>Dk,combinePaths:()=>Mn,commentPragmas:()=>ED,commonOptionsWithBuild:()=>eA,commonPackageFolders:()=>KW,compact:()=>hD,compareBooleans:()=>B0,compareDataObjects:()=>xW,compareDiagnostics:()=>zE,compareDiagnosticsSkipRelatedInformation:()=>aF,compareEmitHelpers:()=>Une,compareNumberOfDirectorySeparators:()=>rw,comparePaths:()=>Gg,comparePathsCaseInsensitive:()=>V0e,comparePathsCaseSensitive:()=>W0e,comparePatternKeys:()=>LU,compareProperties:()=>XK,compareStringsCaseInsensitive:()=>r7,compareStringsCaseInsensitiveEslintCompatible:()=>HK,compareStringsCaseSensitive:()=>mu,compareStringsCaseSensitiveUI:()=>bD,compareTextSpans:()=>t7,compareValues:()=>Ao,compileOnSaveCommandLineOption:()=>Zw,compilerOptionsAffectDeclarationPath:()=>ine,compilerOptionsAffectEmit:()=>nne,compilerOptionsAffectSemanticDiagnostics:()=>rne,compilerOptionsDidYouMeanDiagnostics:()=>nA,compilerOptionsIndicateEsModules:()=>fG,compose:()=>d0e,computeCommonSourceDirectoryOfFilenames:()=>Nae,computeLineAndCharacterOfPosition:()=>Bk,computeLineOfPosition:()=>Y4,computeLineStarts:()=>CT,computePositionOfLineAndCharacter:()=>I7,computeSignature:()=>sS,computeSignatureWithDiagnostics:()=>$q,computeSuggestionDiagnostics:()=>n$,computedOptions:()=>Jc,concatenate:()=>es,concatenateDiagnosticMessageChains:()=>Zre,consumesNodeCoreModules:()=>XL,contains:()=>bs,containsIgnoredPath:()=>QE,containsObjectRestOrSpread:()=>Vw,containsParseError:()=>Yk,containsPath:()=>Mp,convertCompilerOptionsForTelemetry:()=>$ie,convertCompilerOptionsFromJson:()=>d2e,convertJsonOption:()=>eS,convertToBase64:()=>Lre,convertToJson:()=>Xw,convertToObject:()=>Vie,convertToOptionsWithAbsolutePaths:()=>fU,convertToRelativePath:()=>Q4,convertToTSConfig:()=>e2e,convertTypeAcquisitionFromJson:()=>m2e,copyComments:()=>lS,copyEntries:()=>r5,copyLeadingComments:()=>T6,copyProperties:()=>fB,copyTrailingAsLeadingComments:()=>rN,copyTrailingComments:()=>iP,couldStartTrivia:()=>Tee,countWhere:()=>R0,createAbstractBuilder:()=>SSe,createAccessorPropertyBackingField:()=>QV,createAccessorPropertyGetRedirector:()=>Fie,createAccessorPropertySetRedirector:()=>Oie,createBaseNodeFactory:()=>Dne,createBinaryExpressionTrampoline:()=>RO,createBindingHelper:()=>LC,createBuildInfo:()=>vA,createBuilderProgram:()=>Xq,createBuilderProgramUsingProgramBuildInfo:()=>Qae,createBuilderStatusReporter:()=>poe,createCacheWithRedirects:()=>PU,createCacheableExportInfoMap:()=>qG,createCachedDirectoryStructureHost:()=>L9,createClassNamedEvaluationHelperBlock:()=>Zse,createClassThisAssignmentBlock:()=>Qse,createClassifier:()=>jTe,createCommentDirectivesMap:()=>Ete,createCompilerDiagnostic:()=>gc,createCompilerDiagnosticForInvalidCustomType:()=>jie,createCompilerDiagnosticFromMessageChain:()=>sF,createCompilerHost:()=>Iae,createCompilerHostFromProgramHost:()=>fH,createCompilerHostWorker:()=>wq,createDetachedDiagnostic:()=>PC,createDiagnosticCollection:()=>yC,createDiagnosticForFileFromMessageChain:()=>Dz,createDiagnosticForNode:()=>yn,createDiagnosticForNodeArray:()=>eC,createDiagnosticForNodeArrayFromMessageChain:()=>f8,createDiagnosticForNodeFromMessageChain:()=>Zg,createDiagnosticForNodeInSourceFile:()=>dp,createDiagnosticForRange:()=>jte,createDiagnosticMessageChainFromDiagnostic:()=>Rte,createDiagnosticReporter:()=>wA,createDocumentPositionMapper:()=>Jse,createDocumentRegistry:()=>Nce,createDocumentRegistryInternal:()=>ZG,createEmitAndSemanticDiagnosticsBuilderProgram:()=>eH,createEmitHelperFactory:()=>Vne,createEmptyExports:()=>Lw,createExpressionForJsxElement:()=>hie,createExpressionForJsxFragment:()=>yie,createExpressionForObjectLiteralElementLike:()=>vie,createExpressionForPropertyName:()=>WV,createExpressionFromEntityName:()=>Mw,createExternalHelpersImportDeclarationIfNeeded:()=>qV,createFileDiagnostic:()=>xl,createFileDiagnosticFromMessageChain:()=>_5,createForOfBindingStatement:()=>zV,createGetCanonicalFileName:()=>nu,createGetSourceFile:()=>Pq,createGetSymbolAccessibilityDiagnosticForNode:()=>o0,createGetSymbolAccessibilityDiagnosticForNodeName:()=>Tae,createGetSymbolWalker:()=>Tse,createIncrementalCompilerHost:()=>dH,createIncrementalProgram:()=>_oe,createInputFiles:()=>j1e,createInputFilesWithFilePaths:()=>uV,createInputFilesWithFileTexts:()=>_V,createJsxFactoryExpression:()=>JV,createLanguageService:()=>$le,createLanguageServiceSourceFile:()=>AM,createMemberAccessForPropertyName:()=>Zb,createModeAwareCache:()=>bx,createModeAwareCacheKey:()=>A3,createModuleNotFoundChain:()=>n5,createModuleResolutionCache:()=>e6,createModuleResolutionLoader:()=>Lq,createModuleResolutionLoaderUsingGlobalCache:()=>noe,createModuleSpecifierResolutionHost:()=>cS,createMultiMap:()=>yf,createNodeConverters:()=>Ane,createNodeFactory:()=>mw,createOptionNameMap:()=>JO,createOverload:()=>nY,createPackageJsonImportFilter:()=>oP,createPackageJsonInfo:()=>FG,createParenthesizerRules:()=>wne,createPatternMatcher:()=>Mce,createPrependNodes:()=>Wq,createPrinter:()=>V1,createPrinterWithDefaults:()=>bq,createPrinterWithRemoveComments:()=>b2,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>Sq,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>bA,createProgram:()=>W9,createProgramHost:()=>pH,createPropertyNameNodeForIdentifierOrLiteral:()=>xF,createQueue:()=>vD,createRange:()=>Vf,createRedirectedBuilderProgram:()=>Yq,createResolutionCache:()=>rH,createRuntimeTypeSerializer:()=>nae,createScanner:()=>Hh,createSemanticDiagnosticsBuilderProgram:()=>bSe,createSet:()=>pB,createSolutionBuilder:()=>RSe,createSolutionBuilderHost:()=>LSe,createSolutionBuilderWithWatch:()=>jSe,createSolutionBuilderWithWatchHost:()=>MSe,createSortedArray:()=>sB,createSourceFile:()=>qw,createSourceMapGenerator:()=>Mse,createSourceMapSource:()=>B1e,createSuperAccessVariableStatement:()=>D9,createSymbolTable:()=>Bs,createSymlinkCache:()=>AW,createSystemWatchFunctions:()=>dee,createTextChange:()=>GA,createTextChangeFromStartLength:()=>AL,createTextChangeRange:()=>VD,createTextRangeFromNode:()=>lG,createTextRangeFromSpan:()=>wL,createTextSpan:()=>Wl,createTextSpanFromBounds:()=>Rc,createTextSpanFromNode:()=>Zu,createTextSpanFromRange:()=>vy,createTextSpanFromStringLiteralLikeContent:()=>cG,createTextWriter:()=>H8,createTokenRange:()=>bW,createTypeChecker:()=>Ase,createTypeReferenceDirectiveResolutionCache:()=>n9,createTypeReferenceResolutionLoader:()=>B9,createUnparsedSourceFile:()=>lV,createWatchCompilerHost:()=>ISe,createWatchCompilerHostOfConfigFile:()=>coe,createWatchCompilerHostOfFilesAndCompilerOptions:()=>loe,createWatchFactory:()=>_H,createWatchHost:()=>uH,createWatchProgram:()=>FSe,createWatchStatusReporter:()=>ioe,createWriteFileMeasuringIO:()=>Dq,declarationNameToString:()=>eo,decodeMappings:()=>YU,decodedTextSpanIntersectsWith:()=>WD,decorateHelper:()=>zF,deduplicate:()=>Nv,defaultIncludeSpec:()=>ZO,defaultInitCompilerOptions:()=>QO,defaultMaximumTruncationLength:()=>lw,detectSortCaseSensitivity:()=>W4,diagnosticCategoryName:()=>mb,diagnosticToString:()=>_S,directoryProbablyExists:()=>pd,directorySeparator:()=>Fo,displayPart:()=>C_,displayPartsToString:()=>xN,disposeEmitNodes:()=>pV,disposeResourcesHelper:()=>pO,documentSpansEqual:()=>hG,dumpTracingLegend:()=>_ee,elementAt:()=>Uh,elideNodes:()=>Iie,emitComments:()=>kre,emitDetachedComments:()=>Cre,emitFiles:()=>I9,emitFilesAndReportErrors:()=>eL,emitFilesAndReportErrorsAndGetExitStatus:()=>ooe,emitModuleKindIsNonNodeESM:()=>oF,emitNewLineBeforeLeadingCommentOfPosition:()=>xre,emitNewLineBeforeLeadingComments:()=>Sre,emitNewLineBeforeLeadingCommentsOfPosition:()=>Tre,emitSkippedWithNoDiagnostics:()=>G9,emitUsingBuildInfo:()=>Pae,emptyArray:()=>Ve,emptyFileSystemEntries:()=>LF,emptyMap:()=>c7,emptyOptions:()=>Yf,emptySet:()=>tee,endsWith:()=>Yo,ensurePathIsNonModuleName:()=>Fv,ensureScriptKind:()=>gF,ensureTrailingDirectorySeparator:()=>_l,entityNameToString:()=>L_,enumerateInsertsAndDeletes:()=>a7,equalOwnProperties:()=>WK,equateStringsCaseInsensitive:()=>p1,equateStringsCaseSensitive:()=>fb,equateValues:()=>Vh,esDecorateHelper:()=>UF,escapeJsxAttributeString:()=>aW,escapeLeadingUnderscores:()=>Vo,escapeNonAsciiString:()=>q8,escapeSnippetText:()=>r2,escapeString:()=>bg,escapeTemplateSubstitution:()=>iW,every:()=>Wi,expandPreOrPostfixIncrementOrDecrementExpression:()=>NO,explainFiles:()=>sH,explainIfFileIsRedirectAndImpliedFormat:()=>aH,exportAssignmentIsAlias:()=>dC,exportStarHelper:()=>cO,expressionResultIsUnused:()=>gne,extend:()=>e7,extendsHelper:()=>ZF,extensionFromPath:()=>qE,extensionIsTS:()=>vF,extensionsNotSupportingExtensionlessResolution:()=>dw,externalHelpersModuleNameText:()=>ay,factory:()=>I,fileExtensionIs:()=>Zo,fileExtensionIsOneOf:()=>$c,fileIncludeReasonToDiagnostics:()=>lH,fileShouldUseJavaScriptRequire:()=>JG,filter:()=>An,filterMutate:()=>eB,filterSemanticDiagnostics:()=>V9,find:()=>wn,findAncestor:()=>Pr,findBestPatternMatch:()=>hB,findChildOfKind:()=>qa,findComputedPropertyNameCacheAssignment:()=>jO,findConfigFile:()=>Aae,findContainingList:()=>SL,findDiagnosticForNode:()=>xce,findFirstNonJsxWhitespaceToken:()=>Uoe,findIndex:()=>vc,findLast:()=>gT,findLastIndex:()=>XI,findListItemInfo:()=>Voe,findMap:()=>u0e,findModifier:()=>v6,findNextToken:()=>x2,findPackageJson:()=>Sce,findPackageJsons:()=>IG,findPrecedingMatchingToken:()=>PL,findPrecedingToken:()=>Yc,findSuperStatementIndexPath:()=>x9,findTokenOnLeftOfPosition:()=>kL,findUseStrictPrologue:()=>UV,first:()=>va,firstDefined:()=>Qa,firstDefinedIterator:()=>Sm,firstIterator:()=>cB,firstOrOnly:()=>RG,firstOrUndefined:()=>bl,firstOrUndefinedIterator:()=>YI,fixupCompilerOptions:()=>c$,flatMap:()=>Zs,flatMapIterator:()=>tB,flatMapToMutable:()=>j4,flatten:()=>Op,flattenCommaList:()=>Lie,flattenDestructuringAssignment:()=>rS,flattenDestructuringBinding:()=>v2,flattenDiagnosticMessageText:()=>em,forEach:()=>rr,forEachAncestor:()=>Ste,forEachAncestorDirectory:()=>jp,forEachChild:()=>Ss,forEachChildRecursively:()=>x3,forEachEmittedFile:()=>gq,forEachEnclosingBlockScopeContainer:()=>Ote,forEachEntry:()=>fl,forEachExternalModuleToImportFrom:()=>GG,forEachImportClauseDeclaration:()=>O5,forEachKey:()=>Am,forEachLeadingCommentRange:()=>RD,forEachNameInAccessChainWalkingLeft:()=>Hre,forEachPropertyAssignment:()=>iC,forEachResolvedProjectReference:()=>Rq,forEachReturnStatement:()=>Wv,forEachRight:()=>dD,forEachTrailingCommentRange:()=>jD,forEachTsConfigPropArray:()=>g8,forEachUnique:()=>vG,forEachYieldExpression:()=>Jte,forSomeAncestorDirectory:()=>o1e,formatColorAndReset:()=>S2,formatDiagnostic:()=>Aq,formatDiagnostics:()=>tSe,formatDiagnosticsWithColorAndContext:()=>Fae,formatGeneratedName:()=>j1,formatGeneratedNamePart:()=>XC,formatLocation:()=>Nq,formatMessage:()=>PW,formatStringFromArgs:()=>xg,formatting:()=>ol,fullTripleSlashAMDReferencePathRegEx:()=>HW,fullTripleSlashReferencePathRegEx:()=>qW,generateDjb2Hash:()=>$4,generateTSConfig:()=>s2e,generatorHelper:()=>sO,getAdjustedReferenceLocation:()=>eG,getAdjustedRenameLocation:()=>xL,getAliasDeclarationFromName:()=>Gz,getAllAccessorDeclarations:()=>Mb,getAllDecoratorsOfClass:()=>rq,getAllDecoratorsOfClassElement:()=>C9,getAllJSDocTags:()=>J7,getAllJSDocTagsOfKind:()=>yye,getAllKeys:()=>f0e,getAllProjectOutputs:()=>N9,getAllSuperTypeNodes:()=>xE,getAllUnscopedEmitHelpers:()=>yV,getAllowJSCompilerOption:()=>oy,getAllowSyntheticDefaultImports:()=>Bb,getAncestor:()=>w1,getAnyExtensionFromPath:()=>jk,getAreDeclarationMapsEnabled:()=>_w,getAssignedExpandoInitializer:()=>FT,getAssignedName:()=>j7,getAssignedNameOfIdentifier:()=>R3,getAssignmentDeclarationKind:()=>fc,getAssignmentDeclarationPropertyAccessKind:()=>D8,getAssignmentTargetKind:()=>RT,getAutomaticTypeDirectiveNames:()=>t9,getBaseFileName:()=>wc,getBinaryOperatorPrecedence:()=>U8,getBuildInfo:()=>F9,getBuildInfoFileVersionMap:()=>Qq,getBuildInfoText:()=>Eae,getBuildOrderFromAnyBuildOrder:()=>sL,getBuilderCreationParameters:()=>$9,getBuilderFileEmit:()=>yy,getCheckFlags:()=>Ko,getClassExtendsHeritageElement:()=>Gv,getClassLikeDeclarationOfSymbol:()=>rh,getCombinedLocalAndExportSymbolFlags:()=>kC,getCombinedModifierFlags:()=>y1,getCombinedNodeFlags:()=>Gh,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>zJ,getCommentRange:()=>Qd,getCommonSourceDirectory:()=>U3,getCommonSourceDirectoryOfConfig:()=>a6,getCompilerOptionValue:()=>lF,getCompilerOptionsDiffValue:()=>n2e,getConditions:()=>gy,getConfigFileParsingDiagnostics:()=>iS,getConstantValue:()=>Mne,getContainerFlags:()=>BU,getContainerNode:()=>oS,getContainingClass:()=>Nl,getContainingClassExcludingClassDecorators:()=>b5,getContainingClassStaticBlock:()=>Xte,getContainingFunction:()=>cf,getContainingFunctionDeclaration:()=>$te,getContainingFunctionOrClassStaticBlock:()=>v5,getContainingNodeArray:()=>hne,getContainingObjectLiteralElement:()=>kN,getContextualTypeFromParent:()=>zL,getContextualTypeFromParentOrAncestorTypeNode:()=>TL,getCurrentTime:()=>NA,getDeclarationDiagnostics:()=>xae,getDeclarationEmitExtensionForPath:()=>V5,getDeclarationEmitOutputFilePath:()=>gre,getDeclarationEmitOutputFilePathWorker:()=>W5,getDeclarationFileExtension:()=>eU,getDeclarationFromName:()=>TE,getDeclarationModifierFlagsFromSymbol:()=>qf,getDeclarationOfKind:()=>Jo,getDeclarationsOfKind:()=>yte,getDeclaredExpandoInitializer:()=>k8,getDecorators:()=>q0,getDefaultCompilerOptions:()=>wM,getDefaultExportInfoWorker:()=>iM,getDefaultFormatCodeSettings:()=>pL,getDefaultLibFileName:()=>JD,getDefaultLibFilePath:()=>Xle,getDefaultLikeExportInfo:()=>nM,getDiagnosticText:()=>Gve,getDiagnosticsWithinSpan:()=>kce,getDirectoryPath:()=>Un,getDirectoryToWatchFailedLookupLocation:()=>tH,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>toe,getDocumentPositionMapper:()=>r$,getDocumentSpansEqualityComparer:()=>yG,getESModuleInterop:()=>Om,getEditsForFileRename:()=>Fce,getEffectiveBaseTypeNode:()=>Vd,getEffectiveConstraintOfTypeParameter:()=>Uk,getEffectiveContainerForJSDocTemplateTag:()=>L5,getEffectiveImplementsTypeNodes:()=>mC,getEffectiveInitializer:()=>x8,getEffectiveJSDocHost:()=>D1,getEffectiveModifierFlags:()=>Lu,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>wre,getEffectiveModifierFlagsNoCache:()=>Are,getEffectiveReturnTypeNode:()=>vp,getEffectiveSetAccessorTypeAnnotationNode:()=>bre,getEffectiveTypeAnnotationNode:()=>Vl,getEffectiveTypeParameterDeclarations:()=>H0,getEffectiveTypeRoots:()=>w3,getElementOrPropertyAccessArgumentExpressionOrName:()=>F5,getElementOrPropertyAccessName:()=>Kg,getElementsOfBindingOrAssignmentPattern:()=>$C,getEmitDeclarations:()=>Hf,getEmitFlags:()=>ha,getEmitHelpers:()=>JF,getEmitModuleDetectionKind:()=>YW,getEmitModuleKind:()=>au,getEmitModuleResolutionKind:()=>Ru,getEmitScriptTarget:()=>Fa,getEmitStandardClassFields:()=>tne,getEnclosingBlockScopeContainer:()=>Nm,getEnclosingContainer:()=>Pz,getEncodedSemanticClassifications:()=>QG,getEncodedSyntacticClassifications:()=>YG,getEndLinePosition:()=>c8,getEntityNameFromTypeNode:()=>v8,getEntrypointsFromPackageJsonInfo:()=>IU,getErrorCountForSummary:()=>Z9,getErrorSpanForNode:()=>Cb,getErrorSummaryText:()=>soe,getEscapedTextOfIdentifierOrLiteral:()=>EE,getEscapedTextOfJsxAttributeName:()=>e3,getEscapedTextOfJsxNamespacedName:()=>GT,getExpandoInitializer:()=>E1,getExportAssignmentExpression:()=>$z,getExportInfoMap:()=>oN,getExportNeedsImportStarHelper:()=>zse,getExpressionAssociativity:()=>tW,getExpressionPrecedence:()=>DE,getExternalHelpersModuleName:()=>jw,getExternalModuleImportEqualsDeclarationExpression:()=>vE,getExternalModuleName:()=>uC,getExternalModuleNameFromDeclaration:()=>dre,getExternalModuleNameFromPath:()=>cW,getExternalModuleNameLiteral:()=>gx,getExternalModuleRequireArgument:()=>Lz,getFallbackOptions:()=>xA,getFileEmitOutput:()=>Jae,getFileMatcherPatterns:()=>mF,getFileNamesFromConfigSpecs:()=>E3,getFileWatcherEventKind:()=>PJ,getFilesInErrorForSummary:()=>K9,getFirstConstructorWithBody:()=>Sg,getFirstIdentifier:()=>lf,getFirstNonSpaceCharacterPosition:()=>mce,getFirstProjectOutput:()=>vq,getFixableErrorSpanExpression:()=>LG,getFormatCodeSettingsForWriting:()=>KL,getFullWidth:()=>a8,getFunctionFlags:()=>pl,getHeritageClause:()=>J8,getHostSignatureFromJSDoc:()=>P1,getIdentifierAutoGenerate:()=>U1e,getIdentifierGeneratedImportReference:()=>Wne,getIdentifierTypeArguments:()=>Jb,getImmediatelyInvokedFunctionExpression:()=>Pb,getImpliedNodeFormatForFile:()=>PA,getImpliedNodeFormatForFileWorker:()=>Jq,getImportNeedsImportDefaultHelper:()=>KU,getImportNeedsImportStarHelper:()=>S9,getIndentSize:()=>bC,getIndentString:()=>J5,getInferredLibraryNameResolveFrom:()=>z9,getInitializedVariables:()=>jE,getInitializerOfBinaryExpression:()=>Jz,getInitializerOfBindingOrAssignmentElement:()=>Jw,getInterfaceBaseTypeNodes:()=>kE,getInternalEmitFlags:()=>Jp,getInvokedExpression:()=>x5,getIsolatedModules:()=>Tp,getJSDocAugmentsTag:()=>zee,getJSDocClassTag:()=>VJ,getJSDocCommentRanges:()=>Az,getJSDocCommentsAndTags:()=>Wz,getJSDocDeprecatedTag:()=>UJ,getJSDocDeprecatedTagNoCache:()=>$ee,getJSDocEnumTag:()=>qJ,getJSDocHost:()=>Nb,getJSDocImplementsTags:()=>Wee,getJSDocOverloadTags:()=>Uz,getJSDocOverrideTagNoCache:()=>Gee,getJSDocParameterTags:()=>Vk,getJSDocParameterTagsNoCache:()=>Ree,getJSDocPrivateTag:()=>pye,getJSDocPrivateTagNoCache:()=>Uee,getJSDocProtectedTag:()=>dye,getJSDocProtectedTagNoCache:()=>qee,getJSDocPublicTag:()=>fye,getJSDocPublicTagNoCache:()=>Vee,getJSDocReadonlyTag:()=>mye,getJSDocReadonlyTagNoCache:()=>Hee,getJSDocReturnTag:()=>Xee,getJSDocReturnType:()=>qD,getJSDocRoot:()=>pC,getJSDocSatisfiesExpressionType:()=>WW,getJSDocSatisfiesTag:()=>HJ,getJSDocTags:()=>T1,getJSDocTagsNoCache:()=>hye,getJSDocTemplateTag:()=>gye,getJSDocThisTag:()=>B7,getJSDocType:()=>S1,getJSDocTypeAliasName:()=>GV,getJSDocTypeAssertionType:()=>FO,getJSDocTypeParameterDeclarations:()=>G5,getJSDocTypeParameterTags:()=>jee,getJSDocTypeParameterTagsNoCache:()=>Bee,getJSDocTypeTag:()=>b1,getJSXImplicitImportBase:()=>_F,getJSXRuntimeImport:()=>fF,getJSXTransformEnabled:()=>uF,getKeyForCompilerOptions:()=>EU,getLanguageVariant:()=>K8,getLastChild:()=>kW,getLeadingCommentRanges:()=>_g,getLeadingCommentRangesOfNode:()=>wz,getLeftmostAccessExpression:()=>CC,getLeftmostExpression:()=>EC,getLibraryNameFromLibFileName:()=>jq,getLineAndCharacterOfPosition:()=>Ha,getLineInfo:()=>XU,getLineOfLocalPosition:()=>AE,getLineOfLocalPositionFromLineMap:()=>Ob,getLineStartPositionForPosition:()=>Cp,getLineStarts:()=>$g,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Wre,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>zre,getLinesBetweenPositions:()=>Z4,getLinesBetweenRangeEndAndRangeStart:()=>SW,getLinesBetweenRangeEndPositions:()=>s1e,getLiteralText:()=>Pte,getLocalNameForExternalImport:()=>GC,getLocalSymbolForExportDefault:()=>xC,getLocaleSpecificMessage:()=>ds,getLocaleTimeString:()=>AA,getMappedContextSpan:()=>bG,getMappedDocumentSpan:()=>RL,getMappedLocation:()=>tP,getMatchedFileSpec:()=>oH,getMatchedIncludeSpec:()=>cH,getMeaningFromDeclaration:()=>RA,getMeaningFromLocation:()=>aS,getMembersOfDeclaration:()=>zte,getModeForFileReference:()=>CA,getModeForResolutionAtIndex:()=>Oae,getModeForUsageLocation:()=>Fq,getModifiedTime:()=>TT,getModifiers:()=>Lv,getModuleInstanceState:()=>ch,getModuleNameStringLiteralAt:()=>DA,getModuleSpecifierEndingPreference:()=>cne,getModuleSpecifierResolverHost:()=>pG,getNameForExportedSymbol:()=>QL,getNameFromImportAttribute:()=>PF,getNameFromIndexInfo:()=>Lte,getNameFromPropertyName:()=>QA,getNameOfAccessExpression:()=>EW,getNameOfCompilerOptionValue:()=>_U,getNameOfDeclaration:()=>us,getNameOfExpando:()=>jz,getNameOfJSDocTypedef:()=>Mee,getNameOrArgument:()=>P8,getNameTable:()=>W$,getNamesForExportedSymbol:()=>Cce,getNamespaceDeclarationNode:()=>_C,getNewLineCharacter:()=>t0,getNewLineKind:()=>aN,getNewLineOrDefaultFromHost:()=>f0,getNewTargetContainer:()=>Yte,getNextJSDocCommentLocation:()=>Vz,getNodeForGeneratedName:()=>Ww,getNodeId:()=>Oa,getNodeKind:()=>T2,getNodeModifiers:()=>Z3,getNodeModulePathParts:()=>kF,getNonAssignedNameOfDeclaration:()=>R7,getNonAssignmentOperatorForCompoundAssignment:()=>O3,getNonAugmentationDeclaration:()=>Sz,getNonDecoratorTokenPosOfNode:()=>gz,getNormalizedAbsolutePath:()=>Xi,getNormalizedAbsolutePathWithoutRoot:()=>FJ,getNormalizedPathComponents:()=>AD,getObjectFlags:()=>bn,getOperator:()=>nW,getOperatorAssociativity:()=>rW,getOperatorPrecedence:()=>V8,getOptionFromName:()=>oU,getOptionsForLibraryResolution:()=>DU,getOptionsNameMap:()=>YC,getOrCreateEmitNode:()=>ou,getOrCreateExternalHelpersModuleNameIfNeeded:()=>xie,getOrUpdate:()=>J4,getOriginalNode:()=>ic,getOriginalNodeId:()=>cu,getOriginalSourceFile:()=>Xye,getOutputDeclarationFileName:()=>V3,getOutputDeclarationFileNameWorker:()=>hq,getOutputExtension:()=>A9,getOutputFileNames:()=>Kbe,getOutputJSFileNameWorker:()=>yq,getOutputPathsFor:()=>W3,getOutputPathsForBundle:()=>z3,getOwnEmitOutputFilePath:()=>mre,getOwnKeys:()=>ug,getOwnValues:()=>yT,getPackageJsonInfo:()=>m2,getPackageJsonTypesVersionsPaths:()=>e9,getPackageJsonsVisibleToFile:()=>Tce,getPackageNameFromTypesPackageName:()=>N3,getPackageScopeForPath:()=>cA,getParameterSymbolFromJSDoc:()=>L8,getParameterTypeNode:()=>g1e,getParentNodeInSpan:()=>ZA,getParseTreeNode:()=>as,getParsedCommandLineOfConfigFile:()=>Gw,getPathComponents:()=>ul,getPathComponentsRelativeTo:()=>LJ,getPathFromPathComponents:()=>W0,getPathUpdater:()=>e$,getPathsBasePath:()=>U5,getPatternFromSpec:()=>sne,getPendingEmitKind:()=>_6,getPositionOfLineAndCharacter:()=>LD,getPossibleGenericSignatures:()=>rG,getPossibleOriginalInputExtensionForExtension:()=>hre,getPossibleTypeArgumentsInfo:()=>nG,getPreEmitDiagnostics:()=>eSe,getPrecedingNonSpaceCharacterPosition:()=>BL,getPrivateIdentifier:()=>nq,getProperties:()=>tq,getProperty:()=>ZI,getPropertyArrayElementValue:()=>Gte,getPropertyAssignmentAliasLikeExpression:()=>ure,getPropertyNameForPropertyNameNode:()=>Ib,getPropertyNameForUniqueESSymbol:()=>Gye,getPropertyNameFromType:()=>Sp,getPropertyNameOfBindingOrAssignmentElement:()=>HV,getPropertySymbolFromBindingElement:()=>ML,getPropertySymbolsFromContextualType:()=>NM,getQuoteFromPreference:()=>mG,getQuotePreference:()=>Df,getRangesWhere:()=>iB,getRefactorContextSpan:()=>Ax,getReferencedFileLocation:()=>q3,getRegexFromPattern:()=>iy,getRegularExpressionForWildcard:()=>WE,getRegularExpressionsForWildcards:()=>pF,getRelativePathFromDirectory:()=>Rp,getRelativePathFromFile:()=>ID,getRelativePathToDirectoryOrUrl:()=>kT,getRenameLocation:()=>tN,getReplacementSpanForContextToken:()=>oG,getResolutionDiagnostic:()=>Vq,getResolutionModeOverride:()=>o6,getResolveJsonModule:()=>F1,getResolvePackageJsonExports:()=>IF,getResolvePackageJsonImports:()=>FF,getResolvedExternalModuleName:()=>z5,getRestIndicatorOfBindingOrAssignmentElement:()=>LO,getRestParameterElementType:()=>Nz,getRightMostAssignedExpression:()=>C8,getRootDeclaration:()=>qd,getRootDirectoryOfResolutionCache:()=>roe,getRootLength:()=>Pm,getRootPathSplitLength:()=>CSe,getScriptKind:()=>CG,getScriptKindFromFileName:()=>hF,getScriptTargetFeatures:()=>AF,getSelectedEffectiveModifierFlags:()=>JT,getSelectedSyntacticModifierFlags:()=>Pre,getSemanticClassifications:()=>wce,getSemanticJsxChildren:()=>hC,getSetAccessorTypeAnnotationNode:()=>yre,getSetAccessorValueParameter:()=>NE,getSetExternalModuleIndicator:()=>ew,getShebang:()=>O7,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>zz,getSingleVariableOfVariableStatement:()=>MT,getSnapshotText:()=>y6,getSnippetElement:()=>dV,getSourceFileOfModule:()=>s5,getSourceFileOfNode:()=>wr,getSourceFilePathInNewDir:()=>q5,getSourceFilePathInNewDirWorker:()=>H5,getSourceFileVersionAsHashFromText:()=>tL,getSourceFilesToEmit:()=>lW,getSourceMapRange:()=>n0,getSourceMapper:()=>qce,getSourceTextOfNodeFromSourceFile:()=>Bv,getSpanOfTokenAtPosition:()=>Im,getSpellingSuggestion:()=>U4,getStartPositionOfLine:()=>K0,getStartPositionOfRange:()=>RE,getStartsOnNewLine:()=>s3,getStaticPropertiesAndClassStaticBlock:()=>k9,getStrictOptionValue:()=>Mu,getStringComparer:()=>Ak,getSubPatternFromSpec:()=>dF,getSuperCallFromStatement:()=>T9,getSuperContainer:()=>h8,getSupportedCodeFixes:()=>J$,getSupportedExtensions:()=>VE,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>tw,getSwitchedType:()=>AG,getSymbolId:()=>Ks,getSymbolNameForPrivateIdentifier:()=>z8,getSymbolTarget:()=>EG,getSyntacticClassifications:()=>Ace,getSyntacticModifierFlags:()=>ry,getSyntacticModifierFlagsNoCache:()=>pW,getSynthesizedDeepClone:()=>Mo,getSynthesizedDeepCloneWithReplacements:()=>eN,getSynthesizedDeepClones:()=>k2,getSynthesizedDeepClonesWithReplacements:()=>PG,getSyntheticLeadingComments:()=>OC,getSyntheticTrailingComments:()=>bw,getTargetLabel:()=>hL,getTargetOfBindingOrAssignmentElement:()=>my,getTemporaryModuleResolutionState:()=>oA,getTextOfConstantValue:()=>Dte,getTextOfIdentifierOrLiteral:()=>hp,getTextOfJSDocComment:()=>GD,getTextOfJsxAttributeName:()=>cw,getTextOfJsxNamespacedName:()=>t3,getTextOfNode:()=>jc,getTextOfNodeFromSourceText:()=>pE,getTextOfPropertyName:()=>Kk,getThisContainer:()=>a_,getThisParameter:()=>Xv,getTokenAtPosition:()=>Ui,getTokenPosOfNode:()=>k1,getTokenSourceMapRange:()=>W1e,getTouchingPropertyName:()=>u_,getTouchingToken:()=>h6,getTrailingCommentRanges:()=>m1,getTrailingSemicolonDeferringWriter:()=>oW,getTransformFlagsSubtreeExclusions:()=>Nne,getTransformers:()=>dq,getTsBuildInfoEmitOutputFilePath:()=>c0,getTsConfigObjectLiteralExpression:()=>hE,getTsConfigPropArrayElementValue:()=>y5,getTypeAnnotationNode:()=>vre,getTypeArgumentOrTypeParameterList:()=>Zoe,getTypeKeywordOfTypeOnlyImport:()=>gG,getTypeNode:()=>Jne,getTypeNodeIfAccessible:()=>aP,getTypeParameterFromJsDoc:()=>ire,getTypeParameterOwner:()=>oye,getTypesPackageName:()=>o9,getUILocale:()=>GK,getUniqueName:()=>uS,getUniqueSymbolId:()=>dce,getUseDefineForClassFields:()=>i3,getWatchErrorSummaryDiagnosticMessage:()=>nH,getWatchFactory:()=>kq,group:()=>V4,groupBy:()=>KI,guessIndentation:()=>gte,handleNoEmitOptions:()=>zq,hasAbstractModifier:()=>Zv,hasAccessorModifier:()=>Hd,hasAmbientModifier:()=>fW,hasChangesInResolutions:()=>pz,hasChildOfKind:()=>UA,hasContextSensitiveParameters:()=>TF,hasDecorators:()=>Wf,hasDocComment:()=>Qoe,hasDynamicName:()=>ty,hasEffectiveModifier:()=>R_,hasEffectiveModifiers:()=>$5,hasEffectiveReadonlyModifier:()=>IE,hasExtension:()=>xT,hasIndexSignature:()=>wG,hasInitializer:()=>Y0,hasInvalidEscape:()=>sW,hasJSDocNodes:()=>sf,hasJSDocParameterTags:()=>Jee,hasJSFileExtension:()=>Kv,hasJsonModuleEmitEnabled:()=>cF,hasOnlyExpressionInitializer:()=>Tb,hasOverrideModifier:()=>X5,hasPossibleExternalModuleReference:()=>Fte,hasProperty:()=>Ka,hasPropertyAccessExpressionWithName:()=>BA,hasQuestionToken:()=>LT,hasRecordedExternalHelpers:()=>Tie,hasResolutionModeOverride:()=>Tne,hasRestParameter:()=>lz,hasScopeMarker:()=>cte,hasStaticModifier:()=>Bc,hasSyntacticModifier:()=>Rn,hasSyntacticModifiers:()=>Ere,hasTSFileExtension:()=>HT,hasTabstop:()=>vne,hasTrailingDirectorySeparator:()=>qh,hasType:()=>K7,hasTypeArguments:()=>Wye,hasZeroOrOneAsteriskCharacter:()=>wW,helperString:()=>hV,hostGetCanonicalFileName:()=>Zh,hostUsesCaseSensitiveFileNames:()=>SC,idText:()=>on,identifierIsThisKeyword:()=>_W,identifierToKeywordKind:()=>v1,identity:()=>wo,identitySourceMapConsumer:()=>b9,ignoreSourceNewlines:()=>gV,ignoredPaths:()=>wD,importDefaultHelper:()=>oO,importFromModuleSpecifier:()=>SE,importNameElisionDisabled:()=>DW,importStarHelper:()=>Tw,indexOfAnyCharCode:()=>OK,indexOfNode:()=>Zk,indicesOf:()=>gD,inferredTypesContainingFile:()=>u6,injectClassNamedEvaluationHelperBlockIfMissing:()=>P9,injectClassThisAssignmentIfMissing:()=>Yse,insertImports:()=>eP,insertLeadingStatement:()=>ove,insertSorted:()=>j0,insertStatementAfterCustomPrologue:()=>xb,insertStatementAfterStandardPrologue:()=>Iye,insertStatementsAfterCustomPrologue:()=>dz,insertStatementsAfterStandardPrologue:()=>mg,intersperse:()=>Kj,intrinsicTagNameToString:()=>VW,introducesArgumentsExoticObject:()=>qte,inverseJsxOptionMap:()=>P3,isAbstractConstructorSymbol:()=>Vre,isAbstractModifier:()=>Qne,isAccessExpression:()=>co,isAccessibilityModifier:()=>sG,isAccessor:()=>$0,isAccessorModifier:()=>Zne,isAliasSymbolDeclaration:()=>Uye,isAliasableExpression:()=>B8,isAmbientModule:()=>su,isAmbientPropertyDeclaration:()=>xz,isAnonymousFunctionDefinition:()=>PE,isAnyDirectorySeparator:()=>AJ,isAnyImportOrBareOrAccessedRequire:()=>Ite,isAnyImportOrReExport:()=>u8,isAnyImportSyntax:()=>kb,isAnySupportedFileExtension:()=>m1e,isApplicableVersionedTypesKey:()=>uA,isArgumentExpressionOfElementAccess:()=>$H,isArray:()=>ts,isArrayBindingElement:()=>G7,isArrayBindingOrAssignmentElement:()=>e8,isArrayBindingOrAssignmentPattern:()=>nz,isArrayBindingPattern:()=>s2,isArrayLiteralExpression:()=>ju,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>u0,isArrayTypeNode:()=>ww,isArrowFunction:()=>mo,isAsExpression:()=>Nw,isAssertClause:()=>sie,isAssertEntry:()=>K1e,isAssertionExpression:()=>Sb,isAssertsKeyword:()=>$ne,isAssignmentDeclaration:()=>bE,isAssignmentExpression:()=>il,isAssignmentOperator:()=>Kh,isAssignmentPattern:()=>uE,isAssignmentTarget:()=>vg,isAsteriskToken:()=>Cw,isAsyncFunction:()=>CE,isAsyncModifier:()=>c3,isAutoAccessorPropertyDeclaration:()=>s_,isAwaitExpression:()=>fy,isAwaitKeyword:()=>kV,isBigIntLiteral:()=>dO,isBinaryExpression:()=>Zr,isBinaryOperatorToken:()=>Nie,isBindableObjectDefinePropertyCall:()=>wb,isBindableStaticAccessExpression:()=>qv,isBindableStaticElementAccessExpression:()=>I5,isBindableStaticNameExpression:()=>Ab,isBindingElement:()=>Ea,isBindingElementOfBareOrAccessedRequire:()=>ere,isBindingName:()=>vb,isBindingOrAssignmentElement:()=>rte,isBindingOrAssignmentPattern:()=>ZD,isBindingPattern:()=>Ns,isBlock:()=>Cs,isBlockOrCatchScoped:()=>hz,isBlockScope:()=>kz,isBlockScopedContainerTopLevel:()=>Nte,isBooleanLiteral:()=>lE,isBreakOrContinueStatement:()=>sE,isBreakStatement:()=>Q1e,isBuildInfoFile:()=>Cae,isBuilderProgram:()=>aoe,isBundle:()=>NV,isBundleFileTextLike:()=>qre,isCallChain:()=>hb,isCallExpression:()=>Rs,isCallExpressionTarget:()=>WH,isCallLikeExpression:()=>jv,isCallLikeOrFunctionLikeExpression:()=>iz,isCallOrNewExpression:()=>Jd,isCallOrNewExpressionTarget:()=>VH,isCallSignatureDeclaration:()=>ix,isCallToHelper:()=>o3,isCaseBlock:()=>m3,isCaseClause:()=>zC,isCaseKeyword:()=>Kne,isCaseOrDefaultClause:()=>Y7,isCatchClause:()=>f2,isCatchClauseVariableDeclaration:()=>yne,isCatchClauseVariableDeclarationOrBindingElement:()=>yz,isCheckJsEnabledForFile:()=>iw,isChildOfNodeWithKind:()=>Oye,isCircularBuildOrder:()=>Cx,isClassDeclaration:()=>Qc,isClassElement:()=>Tl,isClassExpression:()=>kl,isClassInstanceProperty:()=>ete,isClassLike:()=>$n,isClassMemberModifier:()=>ez,isClassNamedEvaluationHelperBlock:()=>kx,isClassOrTypeElement:()=>H7,isClassStaticBlockDeclaration:()=>ec,isClassThisAssignmentBlock:()=>M3,isCollapsedRange:()=>i1e,isColonToken:()=>Hne,isCommaExpression:()=>Rw,isCommaListExpression:()=>f3,isCommaSequence:()=>b3,isCommaToken:()=>qne,isComment:()=>DL,isCommonJsExportPropertyAssignment:()=>g5,isCommonJsExportedExpression:()=>Vte,isCompoundAssignment:()=>F3,isComputedNonLiteralName:()=>_8,isComputedPropertyName:()=>Pa,isConciseBody:()=>X7,isConditionalExpression:()=>JC,isConditionalTypeNode:()=>cx,isConstTypeReference:()=>Qg,isConstructSignatureDeclaration:()=>Pw,isConstructorDeclaration:()=>sc,isConstructorTypeNode:()=>MC,isContextualKeyword:()=>R5,isContinueStatement:()=>X1e,isCustomPrologue:()=>m8,isDebuggerStatement:()=>Y1e,isDeclaration:()=>yu,isDeclarationBindingElement:()=>YD,isDeclarationFileName:()=>Hl,isDeclarationName:()=>eh,isDeclarationNameOfEnumOrNamespace:()=>TW,isDeclarationReadonly:()=>f5,isDeclarationStatement:()=>fte,isDeclarationWithTypeParameterChildren:()=>Ez,isDeclarationWithTypeParameters:()=>Cz,isDecorator:()=>ql,isDecoratorTarget:()=>Roe,isDefaultClause:()=>h3,isDefaultImport:()=>OT,isDefaultModifier:()=>yO,isDefaultedExpandoInitializer:()=>tre,isDeleteExpression:()=>rie,isDeleteTarget:()=>Hz,isDeprecatedDeclaration:()=>YL,isDestructuringAssignment:()=>e0,isDiagnosticWithLocation:()=>OG,isDiskPathRoot:()=>NJ,isDoStatement:()=>G1e,isDocumentRegistryEntry:()=>cN,isDotDotDotToken:()=>gO,isDottedName:()=>OE,isDynamicName:()=>B5,isESSymbolIdentifier:()=>$ye,isEffectiveExternalModule:()=>IT,isEffectiveModuleDeclaration:()=>Ate,isEffectiveStrictModeSourceFile:()=>Tz,isElementAccessChain:()=>GJ,isElementAccessExpression:()=>Co,isEmittedFileOfProgram:()=>wae,isEmptyArrayLiteral:()=>Ore,isEmptyBindingElement:()=>Oee,isEmptyBindingPattern:()=>Fee,isEmptyObjectLiteral:()=>yW,isEmptyStatement:()=>DV,isEmptyStringLiteral:()=>Oz,isEntityName:()=>b_,isEntityNameExpression:()=>pc,isEnumConst:()=>zv,isEnumDeclaration:()=>L1,isEnumMember:()=>p2,isEqualityOperatorKind:()=>WL,isEqualsGreaterThanToken:()=>Gne,isExclamationToken:()=>Ew,isExcludedFile:()=>qie,isExclusivelyTypeOnlyImportOrExport:()=>Iq,isExpandoPropertyDeclaration:()=>EF,isExportAssignment:()=>oc,isExportDeclaration:()=>Tc,isExportModifier:()=>rx,isExportName:()=>IO,isExportNamespaceAsDefaultDeclaration:()=>c5,isExportOrDefaultModifier:()=>zw,isExportSpecifier:()=>vu,isExportsIdentifier:()=>Db,isExportsOrModuleExportsOrAlias:()=>g2,isExpression:()=>ot,isExpressionNode:()=>hg,isExpressionOfExternalModuleImportEqualsDeclaration:()=>zoe,isExpressionOfOptionalChainRoot:()=>V7,isExpressionStatement:()=>Cl,isExpressionWithTypeArguments:()=>s0,isExpressionWithTypeArgumentsInClassExtendsClause:()=>Q5,isExternalModule:()=>Ic,isExternalModuleAugmentation:()=>Jv,isExternalModuleImportEqualsDeclaration:()=>C1,isExternalModuleIndicator:()=>t8,isExternalModuleNameRelative:()=>Sl,isExternalModuleReference:()=>Bm,isExternalModuleSymbol:()=>$A,isExternalOrCommonJsModule:()=>af,isFileLevelReservedGeneratedIdentifier:()=>QD,isFileLevelUniqueName:()=>a5,isFileProbablyExternalModule:()=>Uw,isFirstDeclarationOfSymbolParameter:()=>SG,isFixablePromiseHandler:()=>s$,isForInOrOfStatement:()=>Gk,isForInStatement:()=>kO,isForInitializer:()=>zf,isForOfStatement:()=>Iw,isForStatement:()=>Hb,isFunctionBlock:()=>Vv,isFunctionBody:()=>az,isFunctionDeclaration:()=>Xc,isFunctionExpression:()=>lo,isFunctionExpressionOrArrowFunction:()=>t2,isFunctionLike:()=>As,isFunctionLikeDeclaration:()=>po,isFunctionLikeKind:()=>DT,isFunctionLikeOrClassStaticBlockDeclaration:()=>Hk,isFunctionOrConstructorTypeNode:()=>tte,isFunctionOrModuleBlock:()=>tz,isFunctionSymbol:()=>nre,isFunctionTypeNode:()=>Mm,isFutureReservedKeyword:()=>qye,isGeneratedIdentifier:()=>Oo,isGeneratedPrivateIdentifier:()=>yb,isGetAccessor:()=>Q0,isGetAccessorDeclaration:()=>Tf,isGetOrSetAccessorDeclaration:()=>z7,isGlobalDeclaration:()=>FTe,isGlobalScopeAugmentation:()=>Wd,isGrammarError:()=>Cte,isHeritageClause:()=>xf,isHoistedFunction:()=>d5,isHoistedVariableStatement:()=>m5,isIdentifier:()=>Ie,isIdentifierANonContextualKeyword:()=>Yz,isIdentifierName:()=>lre,isIdentifierOrThisTypeNode:()=>Pie,isIdentifierPart:()=>g1,isIdentifierStart:()=>fg,isIdentifierText:()=>bf,isIdentifierTypePredicate:()=>Hte,isIdentifierTypeReference:()=>pne,isIfStatement:()=>qb,isIgnoredFileFromWildCardWatching:()=>TA,isImplicitGlob:()=>IW,isImportAttribute:()=>aie,isImportAttributeName:()=>Kee,isImportAttributes:()=>_x,isImportCall:()=>of,isImportClause:()=>Rm,isImportDeclaration:()=>sl,isImportEqualsDeclaration:()=>El,isImportKeyword:()=>u3,isImportMeta:()=>rC,isImportOrExportSpecifier:()=>PT,isImportOrExportSpecifierName:()=>pce,isImportSpecifier:()=>x_,isImportTypeAssertionContainer:()=>Z1e,isImportTypeNode:()=>Cg,isImportableFile:()=>HG,isInComment:()=>l0,isInCompoundLikeAssignment:()=>qz,isInExpressionContext:()=>C5,isInJSDoc:()=>S8,isInJSFile:()=>Hr,isInJSXText:()=>$oe,isInJsonFile:()=>P5,isInNonReferenceComment:()=>tce,isInReferenceComment:()=>ece,isInRightSideOfInternalImportEqualsDeclaration:()=>mL,isInString:()=>Px,isInTemplateString:()=>tG,isInTopLevelContext:()=>S5,isInTypeQuery:()=>Lb,isIncrementalCompilation:()=>n3,isIndexSignatureDeclaration:()=>i2,isIndexedAccessTypeNode:()=>Ub,isInferTypeNode:()=>zb,isInfinityOrNaNString:()=>YE,isInitializedProperty:()=>mA,isInitializedVariable:()=>Z8,isInsideJsxElement:()=>EL,isInsideJsxElementOrAttribute:()=>Goe,isInsideNodeModules:()=>sN,isInsideTemplateLiteral:()=>HA,isInstanceOfExpression:()=>Y5,isInstantiatedModule:()=>VU,isInterfaceDeclaration:()=>Bu,isInternalDeclaration:()=>uz,isInternalModuleImportEqualsDeclaration:()=>oC,isInternalName:()=>VV,isIntersectionTypeNode:()=>ox,isIntrinsicJsxName:()=>vC,isIterationStatement:()=>X0,isJSDoc:()=>yd,isJSDocAllType:()=>_ie,isJSDocAugmentsTag:()=>mx,isJSDocAuthorTag:()=>nve,isJSDocCallbackTag:()=>FV,isJSDocClassTag:()=>pie,isJSDocCommentContainingNode:()=>Z7,isJSDocConstructSignature:()=>fC,isJSDocDeprecatedTag:()=>jV,isJSDocEnumTag:()=>Ow,isJSDocFunctionType:()=>VC,isJSDocImplementsTag:()=>wO,isJSDocIndexSignature:()=>D5,isJSDocLikeText:()=>ZV,isJSDocLink:()=>lie,isJSDocLinkCode:()=>uie,isJSDocLinkLike:()=>NT,isJSDocLinkPlain:()=>tve,isJSDocMemberName:()=>M1,isJSDocNameReference:()=>y3,isJSDocNamepathType:()=>rve,isJSDocNamespaceBody:()=>Eye,isJSDocNode:()=>$k,isJSDocNonNullableType:()=>CO,isJSDocNullableType:()=>WC,isJSDocOptionalParameter:()=>ow,isJSDocOptionalType:()=>IV,isJSDocOverloadTag:()=>UC,isJSDocOverrideTag:()=>PO,isJSDocParameterTag:()=>vd,isJSDocPrivateTag:()=>LV,isJSDocPropertyLikeTag:()=>aE,isJSDocPropertyTag:()=>die,isJSDocProtectedTag:()=>MV,isJSDocPublicTag:()=>OV,isJSDocReadonlyTag:()=>RV,isJSDocReturnTag:()=>DO,isJSDocSatisfiesExpression:()=>zW,isJSDocSatisfiesTag:()=>AO,isJSDocSeeTag:()=>ive,isJSDocSignature:()=>R1,isJSDocTag:()=>Xk,isJSDocTemplateTag:()=>kp,isJSDocThisTag:()=>BV,isJSDocThrowsTag:()=>ave,isJSDocTypeAlias:()=>gp,isJSDocTypeAssertion:()=>HC,isJSDocTypeExpression:()=>d2,isJSDocTypeLiteral:()=>Qb,isJSDocTypeTag:()=>v3,isJSDocTypedefTag:()=>Yb,isJSDocUnknownTag:()=>sve,isJSDocUnknownType:()=>fie,isJSDocVariadicType:()=>EO,isJSXTagName:()=>aC,isJsonEqual:()=>bF,isJsonSourceFile:()=>mp,isJsxAttribute:()=>Kd,isJsxAttributeLike:()=>Q7,isJsxAttributeName:()=>Sne,isJsxAttributes:()=>_2,isJsxChild:()=>i8,isJsxClosingElement:()=>l2,isJsxClosingFragment:()=>oie,isJsxElement:()=>Eg,isJsxExpression:()=>g3,isJsxFragment:()=>u2,isJsxNamespacedName:()=>hd,isJsxOpeningElement:()=>Zd,isJsxOpeningFragment:()=>px,isJsxOpeningLikeElement:()=>Fu,isJsxOpeningLikeElementTagName:()=>joe,isJsxSelfClosingElement:()=>$b,isJsxSpreadAttribute:()=>dx,isJsxTagNameExpression:()=>_E,isJsxText:()=>KT,isJumpStatementTarget:()=>JA,isKeyword:()=>c_,isKeywordOrPunctuation:()=>M5,isKnownSymbol:()=>W8,isLabelName:()=>HH,isLabelOfLabeledStatement:()=>qH,isLabeledStatement:()=>c2,isLateVisibilityPaintedStatement:()=>u5,isLeftHandSideExpression:()=>S_,isLeftHandSideOfAssignment:()=>n1e,isLet:()=>p5,isLineBreak:()=>gu,isLiteralComputedPropertyDeclarationName:()=>j8,isLiteralExpression:()=>Rv,isLiteralExpressionOfObject:()=>ZJ,isLiteralImportTypeNode:()=>ey,isLiteralKind:()=>oE,isLiteralLikeAccess:()=>N5,isLiteralLikeElementAccess:()=>E8,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>yL,isLiteralTypeLikeExpression:()=>fve,isLiteralTypeLiteral:()=>ate,isLiteralTypeNode:()=>_y,isLocalName:()=>ah,isLogicalOperator:()=>Nre,isLogicalOrCoalescingAssignmentExpression:()=>dW,isLogicalOrCoalescingAssignmentOperator:()=>FE,isLogicalOrCoalescingBinaryExpression:()=>$8,isLogicalOrCoalescingBinaryOperator:()=>G8,isMappedTypeNode:()=>jC,isMemberName:()=>pg,isMetaProperty:()=>_3,isMethodDeclaration:()=>hc,isMethodOrAccessor:()=>wT,isMethodSignature:()=>Lm,isMinusToken:()=>xV,isMissingDeclaration:()=>eve,isMissingPackageJsonInfo:()=>cse,isModifier:()=>ta,isModifierKind:()=>$h,isModifierLike:()=>Lo,isModuleAugmentationExternal:()=>bz,isModuleBlock:()=>Yd,isModuleBody:()=>lte,isModuleDeclaration:()=>Sc,isModuleExportsAccessExpression:()=>yg,isModuleIdentifier:()=>Bz,isModuleName:()=>Aie,isModuleOrEnumDeclaration:()=>r8,isModuleReference:()=>dte,isModuleSpecifierLike:()=>LL,isModuleWithStringLiteralName:()=>l5,isNameOfFunctionDeclaration:()=>QH,isNameOfModuleDeclaration:()=>XH,isNamedClassElement:()=>Sye,isNamedDeclaration:()=>Nu,isNamedEvaluation:()=>M_,isNamedEvaluationSource:()=>Zz,isNamedExportBindings:()=>XJ,isNamedExports:()=>$f,isNamedImportBindings:()=>oz,isNamedImports:()=>sh,isNamedImportsOrExports:()=>iF,isNamedTupleMember:()=>RC,isNamespaceBody:()=>Cye,isNamespaceExport:()=>jm,isNamespaceExportDeclaration:()=>Fw,isNamespaceImport:()=>dy,isNamespaceReexportDeclaration:()=>Kte,isNewExpression:()=>a2,isNewExpressionTarget:()=>Q3,isNoSubstitutionTemplateLiteral:()=>ex,isNode:()=>vye,isNodeArray:()=>Mv,isNodeArrayMultiLine:()=>Jre,isNodeDescendantOf:()=>Hv,isNodeKind:()=>$D,isNodeLikeSystem:()=>vB,isNodeModulesDirectory:()=>w7,isNodeWithPossibleHoistedDeclaration:()=>are,isNonContextualKeyword:()=>Qz,isNonExportDefaultModifier:()=>dve,isNonGlobalAmbientModule:()=>vz,isNonGlobalDeclaration:()=>Dce,isNonNullAccess:()=>bne,isNonNullChain:()=>U7,isNonNullExpression:()=>ux,isNonStaticMethodOrAccessorWithPrivateName:()=>Wse,isNotEmittedOrPartiallyEmittedNode:()=>kye,isNotEmittedStatement:()=>AV,isNullishCoalesce:()=>$J,isNumber:()=>zh,isNumericLiteral:()=>j_,isNumericLiteralName:()=>kg,isObjectBindingElementWithoutPropertyName:()=>YA,isObjectBindingOrAssignmentElement:()=>KD,isObjectBindingOrAssignmentPattern:()=>rz,isObjectBindingPattern:()=>xp,isObjectLiteralElement:()=>cz,isObjectLiteralElementLike:()=>Yg,isObjectLiteralExpression:()=>ua,isObjectLiteralMethod:()=>Wp,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>h5,isObjectTypeDeclaration:()=>VT,isOctalDigit:()=>F7,isOmittedExpression:()=>dl,isOptionalChain:()=>hu,isOptionalChainRoot:()=>nE,isOptionalDeclaration:()=>KE,isOptionalJSDocPropertyLikeTag:()=>aw,isOptionalTypeNode:()=>vO,isOuterExpression:()=>OO,isOutermostOptionalChain:()=>iE,isOverrideModifier:()=>Yne,isPackageJsonInfo:()=>r9,isPackedArrayLiteral:()=>BW,isParameter:()=>rs,isParameterDeclaration:()=>$v,isParameterPropertyDeclaration:()=>O_,isParameterPropertyModifier:()=>cE,isParenthesizedExpression:()=>l_,isParenthesizedTypeNode:()=>Wb,isParseTreeNode:()=>rE,isPartOfTypeNode:()=>gg,isPartOfTypeQuery:()=>E5,isPartiallyEmittedExpression:()=>xO,isPatternMatch:()=>n7,isPinnedComment:()=>o5,isPlainJsFile:()=>o8,isPlusToken:()=>TV,isPossiblyTypeArgumentPosition:()=>qA,isPostfixUnaryExpression:()=>EV,isPrefixUnaryExpression:()=>py,isPrivateIdentifier:()=>Pi,isPrivateIdentifierClassElementDeclaration:()=>Iu,isPrivateIdentifierPropertyAccessExpression:()=>qk,isPrivateIdentifierSymbol:()=>_re,isProgramBundleEmitBuildInfo:()=>qae,isProgramUptoDate:()=>Bq,isPrologueDirective:()=>zp,isPropertyAccessChain:()=>W7,isPropertyAccessEntityNameExpression:()=>X8,isPropertyAccessExpression:()=>Sn,isPropertyAccessOrQualifiedName:()=>ite,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>nte,isPropertyAssignment:()=>zc,isPropertyDeclaration:()=>xs,isPropertyName:()=>Ac,isPropertyNameLiteral:()=>Ud,isPropertySignature:()=>B_,isProtoSetter:()=>fre,isPrototypeAccess:()=>ny,isPrototypePropertyAssignment:()=>w8,isPunctuation:()=>Xz,isPushOrUnshiftIdentifier:()=>Kz,isQualifiedName:()=>Xu,isQuestionDotToken:()=>hO,isQuestionOrExclamationToken:()=>Eie,isQuestionOrPlusOrMinusToken:()=>wie,isQuestionToken:()=>ly,isRawSourceMap:()=>jse,isReadonlyKeyword:()=>Xne,isReadonlyKeywordOrPlusOrMinusToken:()=>Die,isRecognizedTripleSlashComment:()=>mz,isReferenceFileLocation:()=>c6,isReferencedFile:()=>U1,isRegularExpressionLiteral:()=>bV,isRequireCall:()=>Gu,isRequireVariableStatement:()=>Rz,isRestParameter:()=>dg,isRestTypeNode:()=>bO,isReturnStatement:()=>Up,isReturnStatementWithFixablePromiseHandler:()=>oM,isRightSideOfAccessExpression:()=>hW,isRightSideOfInstanceofExpression:()=>Fre,isRightSideOfPropertyAccess:()=>m6,isRightSideOfQualifiedName:()=>Joe,isRightSideOfQualifiedNameOrPropertyAccess:()=>LE,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>Ire,isRootedDiskPath:()=>F_,isSameEntityName:()=>cC,isSatisfiesExpression:()=>PV,isScopeMarker:()=>ote,isSemicolonClassElement:()=>nie,isSetAccessor:()=>Xh,isSetAccessorDeclaration:()=>J_,isShebangTrivia:()=>MJ,isShiftOperatorOrHigher:()=>XV,isShorthandAmbientModuleSymbol:()=>dE,isShorthandPropertyAssignment:()=>k_,isSignedNumericLiteral:()=>j5,isSimpleCopiableExpression:()=>y2,isSimpleInlineableExpression:()=>Wm,isSimpleParameter:()=>Gse,isSimpleParameterList:()=>gA,isSingleOrDoubleQuote:()=>T8,isSourceFile:()=>Ni,isSourceFileFromLibrary:()=>x6,isSourceFileJS:()=>Ou,isSourceFileNotJS:()=>Rye,isSourceFileNotJson:()=>Mz,isSourceMapping:()=>Bse,isSpecialPropertyDeclaration:()=>rre,isSpreadAssignment:()=>a0,isSpreadElement:()=>gd,isStatement:()=>Ei,isStatementButNotDeclaration:()=>n8,isStatementOrBlock:()=>pte,isStatementWithLocals:()=>kte,isStatic:()=>Ms,isStaticModifier:()=>nx,isString:()=>ls,isStringAKeyword:()=>Hye,isStringANonContextualKeyword:()=>jT,isStringAndEmptyAnonymousObjectIntersection:()=>Koe,isStringDoubleQuoted:()=>A5,isStringLiteral:()=>aa,isStringLiteralLike:()=>Ma,isStringLiteralOrJsxExpression:()=>mte,isStringLiteralOrTemplate:()=>vce,isStringOrNumericLiteralLike:()=>Sf,isStringOrRegularExpressionOrTemplateLiteral:()=>iG,isStringTextContainingNode:()=>KJ,isSuperCall:()=>Eb,isSuperKeyword:()=>l3,isSuperOrSuperProperty:()=>Mye,isSuperProperty:()=>o_,isSupportedSourceFileName:()=>lne,isSwitchStatement:()=>d3,isSyntaxList:()=>qC,isSyntheticExpression:()=>H1e,isSyntheticReference:()=>fx,isTagName:()=>GH,isTaggedTemplateExpression:()=>o2,isTaggedTemplateTag:()=>Moe,isTemplateExpression:()=>SO,isTemplateHead:()=>tx,isTemplateLiteral:()=>AT,isTemplateLiteralKind:()=>G0,isTemplateLiteralToken:()=>Yee,isTemplateLiteralTypeNode:()=>eie,isTemplateLiteralTypeSpan:()=>CV,isTemplateMiddle:()=>SV,isTemplateMiddleOrTemplateTail:()=>q7,isTemplateSpan:()=>p3,isTemplateTail:()=>mO,isTextWhiteSpaceLike:()=>sce,isThis:()=>g6,isThisContainerOrFunctionBlock:()=>Qte,isThisIdentifier:()=>Yv,isThisInTypeQuery:()=>BT,isThisInitializedDeclaration:()=>T5,isThisInitializedObjectBindingExpression:()=>Zte,isThisProperty:()=>y8,isThisTypeNode:()=>Aw,isThisTypeParameter:()=>ZE,isThisTypePredicate:()=>Lye,isThrowStatement:()=>wV,isToken:()=>ET,isTokenKind:()=>YJ,isTraceEnabled:()=>oh,isTransientSymbol:()=>wm,isTrivia:()=>gC,isTryStatement:()=>Gb,isTupleTypeNode:()=>ax,isTypeAlias:()=>I8,isTypeAliasDeclaration:()=>qp,isTypeAssertionExpression:()=>tie,isTypeDeclaration:()=>NC,isTypeElement:()=>bb,isTypeKeyword:()=>K3,isTypeKeywordToken:()=>uG,isTypeKeywordTokenOrIdentifier:()=>NL,isTypeLiteralNode:()=>z_,isTypeNode:()=>ki,isTypeNodeKind:()=>CW,isTypeOfExpression:()=>BC,isTypeOnlyExportDeclaration:()=>Zee,isTypeOnlyImportDeclaration:()=>XD,isTypeOnlyImportOrExportDeclaration:()=>x1,isTypeOperatorNode:()=>Vb,isTypeParameterDeclaration:()=>Uo,isTypePredicateNode:()=>Dw,isTypeQueryNode:()=>sx,isTypeReferenceNode:()=>Gf,isTypeReferenceType:()=>e5,isTypeUsableAsPropertyName:()=>bp,isUMDExportSymbol:()=>nF,isUnaryExpression:()=>sz,isUnaryExpressionWithWrite:()=>ste,isUnicodeIdentifierStart:()=>N7,isUnionTypeNode:()=>uy,isUnparsedNode:()=>QJ,isUnparsedPrepend:()=>cie,isUnparsedSource:()=>Xb,isUnparsedTextLike:()=>Qee,isUrl:()=>hee,isValidBigIntString:()=>SF,isValidESSymbolDeclaration:()=>Ute,isValidTypeOnlyAliasUseSite:()=>I1,isValueSignatureDeclaration:()=>ore,isVarAwaitUsing:()=>p8,isVarConst:()=>tC,isVarUsing:()=>d8,isVariableDeclaration:()=>hi,isVariableDeclarationInVariableStatement:()=>gE,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>Uv,isVariableDeclarationInitializedToRequire:()=>w5,isVariableDeclarationList:()=>ml,isVariableLike:()=>nC,isVariableLikeOrAccessor:()=>Wte,isVariableStatement:()=>ac,isVoidExpression:()=>lx,isWatchSet:()=>a1e,isWhileStatement:()=>$1e,isWhiteSpaceLike:()=>Xg,isWhiteSpaceSingleLine:()=>Bd,isWithStatement:()=>iie,isWriteAccess:()=>WT,isWriteOnlyAccess:()=>rF,isYieldExpression:()=>TO,jsxModeNeedsExplicitImport:()=>BG,keywordPart:()=>V_,last:()=>ka,lastOrUndefined:()=>Do,length:()=>mr,libMap:()=>HO,libs:()=>Kw,lineBreakPart:()=>S6,linkNamePart:()=>_ce,linkPart:()=>xG,linkTextPart:()=>jL,listFiles:()=>iH,loadModuleFromGlobalCache:()=>yse,loadWithModeAwareCache:()=>EA,makeIdentifierFromModuleName:()=>wte,makeImport:()=>_0,makeImportIfNecessary:()=>ice,makeStringLiteral:()=>wx,mangleScopedPackageName:()=>n6,map:()=>nr,mapAllOrFail:()=>rB,mapDefined:()=>Ri,mapDefinedEntries:()=>MK,mapDefinedIterator:()=>B4,mapEntries:()=>jK,mapIterator:()=>R4,mapOneOrMany:()=>MG,mapToDisplayParts:()=>by,matchFiles:()=>FW,matchPatternOrExact:()=>OW,matchedText:()=>ZK,matchesExclude:()=>qO,maybeBind:()=>Os,maybeSetLocalizedDiagnosticMessages:()=>Yre,memoize:()=>Hu,memoizeCached:()=>qK,memoizeOne:()=>Cm,memoizeWeak:()=>p0e,metadataHelper:()=>WF,min:()=>dB,minAndMax:()=>_ne,missingFileModifiedTime:()=>rf,modifierToFlag:()=>zT,modifiersToFlags:()=>Gd,moduleOptionDeclaration:()=>mU,moduleResolutionIsEqualTo:()=>Tte,moduleResolutionNameAndModeGetter:()=>q9,moduleResolutionOptionDeclarations:()=>GO,moduleResolutionSupportsPackageJsonExportsAndImports:()=>qT,moduleResolutionUsesNodeModules:()=>IL,moduleSpecifiers:()=>h2,moveEmitHelpers:()=>jne,moveRangeEnd:()=>eF,moveRangePastDecorators:()=>th,moveRangePastModifiers:()=>$d,moveRangePos:()=>A1,moveSyntheticComments:()=>Lne,mutateMap:()=>JE,mutateMapSkippingNewValues:()=>Tg,needsParentheses:()=>JL,needsScopeMarker:()=>$7,newCaseClauseTracker:()=>eM,newPrivateEnvironment:()=>qse,noEmitNotification:()=>hA,noEmitSubstitution:()=>B3,noTransformers:()=>mq,noTruncationMaximumTruncationLength:()=>wF,nodeCanBeDecorated:()=>k5,nodeHasName:()=>UD,nodeIsDecorated:()=>sC,nodeIsMissing:()=>_c,nodeIsPresent:()=>pp,nodeIsSynthesized:()=>ko,nodeModuleNameResolver:()=>fse,nodeModulesPathPart:()=>zm,nodeNextJsonConfigResolver:()=>pse,nodeOrChildIsDecorated:()=>b8,nodeOverlapsWithStartEnd:()=>vL,nodePosToString:()=>Dye,nodeSeenTracker:()=>Dx,nodeStartsNewLexicalEnvironment:()=>eW,nodeToDisplayParts:()=>PTe,noop:()=>Ca,noopFileWatcher:()=>p6,normalizePath:()=>Hs,normalizeSlashes:()=>iu,not:()=>s7,notImplemented:()=>ks,notImplementedResolver:()=>O9,nullNodeConverters:()=>oV,nullParenthesizerRules:()=>aV,nullTransformationContext:()=>J3,objectAllocator:()=>Il,operatorPart:()=>rP,optionDeclarations:()=>Pg,optionMapToObject:()=>WO,optionsAffectingProgramStructure:()=>bU,optionsForBuild:()=>TU,optionsForWatch:()=>ZC,optionsHaveChanges:()=>Qk,optionsHaveModuleResolutionChanges:()=>vte,or:()=>fd,orderedRemoveItem:()=>Ik,orderedRemoveItemAt:()=>J0,outFile:()=>io,packageIdToPackageName:()=>i5,packageIdToString:()=>Z0,paramHelper:()=>VF,parameterIsThisKeyword:()=>Qv,parameterNamePart:()=>oce,parseBaseNodeFactory:()=>nU,parseBigInt:()=>fne,parseBuildCommand:()=>Hve,parseCommandLine:()=>Uve,parseCommandLineWorker:()=>aU,parseConfigFileTextToJson:()=>cU,parseConfigFileWithSystem:()=>PSe,parseConfigHostFromCompilerHostLike:()=>U9,parseCustomTypeOption:()=>zO,parseIsolatedEntityName:()=>hx,parseIsolatedJSDocComment:()=>Rie,parseJSDocTypeExpressionForTests:()=>Nve,parseJsonConfigFileContent:()=>a2e,parseJsonSourceFileConfigFileContent:()=>Qw,parseJsonText:()=>Hw,parseListTypeOption:()=>Bie,parseNodeFactory:()=>Jm,parseNodeModuleFromPath:()=>aA,parsePackageName:()=>lA,parsePseudoBigInt:()=>GE,parseValidBigInt:()=>jW,patchWriteFileEnsuringDirectory:()=>mee,pathContainsNodeModules:()=>W1,pathIsAbsolute:()=>X4,pathIsBareSpecifier:()=>IJ,pathIsRelative:()=>nf,patternText:()=>YK,perfLogger:()=>wu,performIncrementalCompilation:()=>NSe,performance:()=>lee,plainJSErrors:()=>H9,positionBelongsToNode:()=>ZH,positionIsASICandidate:()=>UL,positionIsSynthesized:()=>md,positionsAreOnSameLine:()=>Uf,preProcessFile:()=>exe,probablyUsesSemicolons:()=>nN,processCommentPragmas:()=>tU,processPragmasIntoFields:()=>rU,processTaggedTemplateExpression:()=>cq,programContainsEsModules:()=>nce,programContainsModules:()=>rce,projectReferenceIsEqualTo:()=>fz,propKeyHelper:()=>rO,propertyNamePart:()=>cce,pseudoBigIntToString:()=>e2,punctuationPart:()=>Tu,pushIfUnique:()=>Jf,quote:()=>sP,quotePreferenceFromString:()=>dG,rangeContainsPosition:()=>zA,rangeContainsPositionExclusive:()=>WA,rangeContainsRange:()=>Pf,rangeContainsRangeExclusive:()=>Woe,rangeContainsStartEnd:()=>VA,rangeEndIsOnSameLineAsRangeStart:()=>Y8,rangeEndPositionsAreOnSameLine:()=>jre,rangeEquals:()=>oB,rangeIsOnSingleLine:()=>Rb,rangeOfNode:()=>MW,rangeOfTypeParameters:()=>RW,rangeOverlapsWithStartEnd:()=>Y3,rangeStartIsOnSameLineAsRangeEnd:()=>Bre,rangeStartPositionsAreOnSameLine:()=>tF,readBuilderProgram:()=>iL,readConfigFile:()=>$w,readHelper:()=>eO,readJson:()=>ME,readJsonConfigFile:()=>Wie,readJsonOrUndefined:()=>vW,reduceEachLeadingCommentRange:()=>xee,reduceEachTrailingCommentRange:()=>kee,reduceLeft:()=>Du,reduceLeftIterator:()=>Zj,reducePathComponents:()=>gb,refactor:()=>Ix,regExpEscape:()=>p1e,relativeComplement:()=>BK,removeAllComments:()=>yw,removeEmitHelper:()=>V1e,removeExtension:()=>nw,removeFileExtension:()=>$u,removeIgnoredPath:()=>X9,removeMinAndVersionNumbers:()=>mB,removeOptionality:()=>Xoe,removePrefix:()=>q4,removeSuffix:()=>Nk,removeTrailingDirectorySeparator:()=>d1,repeatString:()=>XA,replaceElement:()=>uB,replaceFirstStar:()=>$T,resolutionExtensionIsTSOrJson:()=>UE,resolveConfigFileProjectName:()=>mH,resolveJSModule:()=>use,resolveLibrary:()=>i9,resolveModuleName:()=>t6,resolveModuleNameFromCache:()=>V2e,resolvePackageNameToPackageJson:()=>CU,resolvePath:()=>V0,resolveProjectReferencePath:()=>l6,resolveTripleslashReference:()=>j9,resolveTypeReferenceDirective:()=>ase,resolvingEmptyArray:()=>DF,restHelper:()=>QF,returnFalse:()=>_d,returnNoopFileWatcher:()=>d6,returnTrue:()=>Wh,returnUndefined:()=>f1,returnsPromise:()=>i$,runInitializersHelper:()=>qF,sameFlatMap:()=>LK,sameMap:()=>nl,sameMapping:()=>Abe,scanShebangTrivia:()=>RJ,scanTokenAtPosition:()=>Bte,scanner:()=>xu,screenStartingMessageCodes:()=>nL,semanticDiagnosticsOptionDeclarations:()=>hU,serializeCompilerOptions:()=>VO,server:()=>KDe,servicesVersion:()=>Qle,setCommentRange:()=>Nc,setConfigFileInOptions:()=>pU,setConstantValue:()=>Rne,setEachParent:()=>AC,setEmitFlags:()=>Qr,setFunctionNameHelper:()=>nO,setGetSourceFileAsHashVersioned:()=>rL,setIdentifierAutoGenerate:()=>Sw,setIdentifierGeneratedImportReference:()=>zne,setIdentifierTypeArguments:()=>i0,setInternalEmitFlags:()=>vw,setLocalizedDiagnosticMessages:()=>Qre,setModuleDefaultHelper:()=>aO,setNodeFlags:()=>mne,setObjectAllocator:()=>Xre,setOriginalNode:()=>dn,setParent:()=>ba,setParentRecursive:()=>sy,setPrivateIdentifier:()=>tS,setSnippetElement:()=>mV,setSourceMapRange:()=>sa,setStackTraceLimit:()=>O0e,setStartsOnNewLine:()=>jF,setSyntheticLeadingComments:()=>O1,setSyntheticTrailingComments:()=>QT,setSys:()=>B0e,setSysLog:()=>pee,setTextRange:()=>Ke,setTextRangeEnd:()=>wC,setTextRangePos:()=>$E,setTextRangePosEnd:()=>Fm,setTextRangePosWidth:()=>XE,setTokenSourceMapRange:()=>One,setTypeNode:()=>Bne,setUILocale:()=>$K,setValueDeclaration:()=>A8,shouldAllowImportingTsExtension:()=>i6,shouldPreserveConstEnums:()=>n2,shouldUseUriStyleNodeCoreModules:()=>ZL,showModuleSpecifier:()=>Ure,signatureHasLiteralTypes:()=>UU,signatureHasRestParameter:()=>Su,signatureToDisplayParts:()=>kG,single:()=>lB,singleElementArray:()=>ST,singleIterator:()=>RK,singleOrMany:()=>xm,singleOrUndefined:()=>Tm,skipAlias:()=>Ul,skipAssertions:()=>lve,skipConstraint:()=>_G,skipOuterExpressions:()=>xc,skipParentheses:()=>Va,skipPartiallyEmittedExpressions:()=>Bp,skipTrivia:()=>ca,skipTypeChecking:()=>HE,skipTypeParentheses:()=>R8,skipWhile:()=>eee,sliceAfter:()=>LW,some:()=>ct,sort:()=>_b,sortAndDeduplicate:()=>z4,sortAndDeduplicateDiagnostics:()=>zk,sourceFileAffectingCompilerOptions:()=>$O,sourceFileMayBeEmitted:()=>Fb,sourceMapCommentRegExp:()=>y9,sourceMapCommentRegExpDontCareLineStart:()=>ZU,spacePart:()=>cc,spanMap:()=>nB,spreadArrayHelper:()=>tO,stableSort:()=>Bh,startEndContainsRange:()=>YH,startEndOverlapsWithStartEnd:()=>bL,startOnNewLine:()=>bu,startTracing:()=>uee,startsWith:()=>Vi,startsWithDirectory:()=>OJ,startsWithUnderscore:()=>jG,startsWithUseStrict:()=>bie,stringContainsAt:()=>Pce,stringToToken:()=>Ov,stripQuotes:()=>yp,supportedDeclarationExtensions:()=>fw,supportedJSExtensions:()=>nV,supportedJSExtensionsFlat:()=>FC,supportedLocaleDirectories:()=>_z,supportedTSExtensions:()=>IC,supportedTSExtensionsFlat:()=>rV,supportedTSImplementationExtensions:()=>pw,suppressLeadingAndTrailingTrivia:()=>U_,suppressLeadingTrivia:()=>DG,suppressTrailingTrivia:()=>gce,symbolEscapedNameNoDefault:()=>OL,symbolName:()=>Xo,symbolNameNoDefault:()=>FL,symbolPart:()=>ace,symbolToDisplayParts:()=>nP,syntaxMayBeASICandidate:()=>UG,syntaxRequiresTrailingSemicolonOrASI:()=>VL,sys:()=>zl,sysLog:()=>PD,tagNamesAreEquivalent:()=>B1,takeWhile:()=>o7,targetOptionDeclaration:()=>tA,templateObjectHelper:()=>KF,testFormatSettings:()=>Loe,textChangeRangeIsUnchanged:()=>Nee,textChangeRangeNewSpan:()=>tE,textChanges:()=>Kr,textOrKeywordPart:()=>TG,textPart:()=>wf,textRangeContainsPositionInclusive:()=>zD,textSpanContainsPosition:()=>JJ,textSpanContainsTextSpan:()=>Pee,textSpanEnd:()=>bc,textSpanIntersection:()=>Aee,textSpanIntersectsWith:()=>M7,textSpanIntersectsWithPosition:()=>wee,textSpanIntersectsWithTextSpan:()=>aye,textSpanIsEmpty:()=>Eee,textSpanOverlap:()=>Dee,textSpanOverlapsWith:()=>sye,textSpansEqual:()=>b6,textToKeywordObj:()=>BD,timestamp:()=>xo,toArray:()=>vT,toBuilderFileEmit:()=>$ae,toBuilderStateFileInfoForMultiEmit:()=>Gae,toEditorSettings:()=>TN,toFileNameLowerCase:()=>km,toLowerCase:()=>UK,toPath:()=>Io,toProgramEmitPending:()=>Xae,tokenIsIdentifierOrKeyword:()=>Au,tokenIsIdentifierOrKeywordOrGreaterThan:()=>See,tokenToString:()=>Ws,trace:()=>Zi,tracing:()=>qr,tracingEnabled:()=>xD,transform:()=>Zke,transformClassFields:()=>rae,transformDeclarations:()=>pq,transformECMAScriptModule:()=>fq,transformES2015:()=>hae,transformES2016:()=>gae,transformES2017:()=>aae,transformES2018:()=>oae,transformES2019:()=>cae,transformES2020:()=>lae,transformES2021:()=>uae,transformES5:()=>yae,transformESDecorators:()=>sae,transformESNext:()=>_ae,transformGenerators:()=>vae,transformJsx:()=>mae,transformLegacyDecorators:()=>iae,transformModule:()=>_q,transformNamedEvaluation:()=>W_,transformNodeModule:()=>Sae,transformNodes:()=>yA,transformSystemModule:()=>bae,transformTypeScript:()=>tae,transpile:()=>cxe,transpileModule:()=>Hce,transpileOptionValueCompilerOptions:()=>SU,tryAddToSet:()=>_1,tryAndIgnoreErrors:()=>GL,tryCast:()=>Wn,tryDirectoryExists:()=>HL,tryExtractTSExtension:()=>Z5,tryFileExists:()=>iN,tryGetClassExtendingExpressionWithTypeArguments:()=>mW,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>gW,tryGetDirectories:()=>qL,tryGetExtensionFromPath:()=>nh,tryGetImportFromModuleSpecifier:()=>N8,tryGetJSDocSatisfiesTypeNode:()=>CF,tryGetModuleNameFromFile:()=>Bw,tryGetModuleSpecifierFromDeclaration:()=>lC,tryGetNativePerformanceHooks:()=>aee,tryGetPropertyAccessOrIdentifierToString:()=>Q8,tryGetPropertyNameOfBindingOrAssignmentElement:()=>MO,tryGetSourceMappingURL:()=>Rse,tryGetTextOfPropertyName:()=>mE,tryIOAndConsumeErrors:()=>$L,tryParseJson:()=>K5,tryParsePattern:()=>DC,tryParsePatterns:()=>yF,tryParseRawSourceMap:()=>QU,tryReadDirectory:()=>NG,tryReadFile:()=>k3,tryRemoveDirectoryPrefix:()=>NW,tryRemoveExtension:()=>une,tryRemovePrefix:()=>yB,tryRemoveSuffix:()=>QK,typeAcquisitionDeclarations:()=>rA,typeAliasNamePart:()=>lce,typeDirectiveIsEqualTo:()=>xte,typeKeywords:()=>tM,typeParameterNamePart:()=>uce,typeToDisplayParts:()=>KA,unchangedPollThresholds:()=>DD,unchangedTextChangeRange:()=>s8,unescapeLeadingUnderscores:()=>xi,unmangleScopedPackageName:()=>_A,unorderedRemoveItem:()=>bT,unorderedRemoveItemAt:()=>gB,unreachableCodeIsError:()=>Kre,unusedLabelIsError:()=>ene,unwrapInnermostStatementOfLabel:()=>Iz,updateErrorForNoInputFiles:()=>UO,updateLanguageServiceSourceFile:()=>z$,updateMissingFilePathsWatch:()=>xq,updateResolutionField:()=>KC,updateSharedExtendedConfigFileWatcher:()=>M9,updateSourceFile:()=>KV,updateWatchingWildcardDirectories:()=>SA,usesExtensionsOnImports:()=>one,usingSingleLineStringWriter:()=>fE,utf16EncodeAsString:()=>Jk,validateLocaleAndSetLanguage:()=>cye,valuesHelper:()=>iO,version:()=>ld,versionMajorMinor:()=>qg,visitArray:()=>dA,visitCommaListElements:()=>h9,visitEachChild:()=>ur,visitFunctionBody:()=>Ef,visitIterationBody:()=>Qu,visitLexicalEnvironment:()=>$U,visitNode:()=>qe,visitNodes:()=>Dr,visitParameterList:()=>tc,walkUpBindingElementsAndPatterns:()=>Wk,walkUpLexicalEnvironments:()=>Use,walkUpOuterExpressions:()=>Sie,walkUpParenthesizedExpressions:()=>Yh,walkUpParenthesizedTypes:()=>M8,walkUpParenthesizedTypesAndGetParentAndChild:()=>cre,whitespaceOrMapCommentRegExp:()=>v9,writeCommentRange:()=>TC,writeFile:()=>wE,writeFileEnsuringDirectories:()=>uW,zipWith:()=>cg});var t8e=Dt({"src/typescript/_namespaces/ts.ts"(){Fs(),LA(),qn(),xy(),Net()}}),Iet=IK({"src/typescript/typescript.ts"(e,t){t8e(),t8e(),typeof console<"u"&&(E.loggingHost={log(n,i){switch(n){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=e8e}});return Iet()})();L0.exports&&(L0.exports=ub)})(fpt);const M4=L0=>(spt("data-v-c32180b8"),L0=L0(),apt(),L0),ppt={class:"root"},dpt=M4(()=>ru("h1",null,"Announcements",-1)),mpt={class:"announcements"},gpt=M4(()=>ru("div",{class:"icon"},[ru("span",{class:"material-symbols-rounded"}," add ")],-1)),hpt=M4(()=>ru("h3",null,"New Announcement",-1)),ypt=M4(()=>ru("p",null,"Create a new announcement from scratch!",-1)),vpt=[gpt,hpt,ypt],bpt=M4(()=>ru("div",{class:"card",disabled:"true","data-hide-mobile":""},[ru("div",{class:"icon"},[ru("span",{class:"material-symbols-rounded"}," construction ")]),ru("h3",null,"Not yet implemented"),ru("p",null," post one-time announcements on Discord, edit sent announcements & more ")],-1)),Spt={class:"filters"},Tpt=["aria-checked","title"],xpt=M4(()=>ru("span",{class:"material-symbols-rounded"}," person ",-1)),kpt={key:0,class:"itemlist"},Cpt=M4(()=>ru("div",{class:"announcement"},[ru("a",null,[ru("span",null,"Name"),ru("span",null,"Date modified"),ru("span",null,"Modified by")])],-1)),Ept={key:0},Ppt={key:1},Dpt=M4(()=>ru("i",null,"N/A",-1)),wpt=[Dpt],Apt={key:1,class:"pagination"},Npt={class:"pager"},Ipt=["disabled"],Fpt=["disabled"],i0e=8,Opt=Xft({__name:"Overview",setup(L0){const M0=cpt(),ub=Qft(),$I=Yj(0),u1=Yj(0),Dt=Yj([]);n0e(()=>{var Qa;return(Qa=Dt.value)==null?void 0:Qa[0]});const IK=async()=>{const Qa=await M0.create();ub.push(Qa)},Gc=Yj(""),qg=Yj(!1),ld=async()=>{const{items:Qa,totalCount:Sm}=await lpt.announements.search(Gc.value,qg.value,void 0,i0e,rr.value);Dt.value=Qa,$I.value=Sm},Pk=upt(ld,500),FK=_pt(ld,500);v5e(Gc,()=>{u1.value=0,FK()}),v5e(qg,()=>{u1.value=0,Pk()});const mr=n0e(()=>Math.ceil($I.value/i0e)),rr=n0e(()=>u1.value*i0e),dD=Qa=>{Qa<0||Qa>=mr.value||(u1.value=Qa,Pk())};return Yft(()=>{Pk()}),(Qa,Sm)=>{const Zj=Zft("router-link");return _D(),fD("div",ppt,[dpt,ru("div",mpt,[ru("div",{class:"cards"},[ru("div",{class:"card",onClick:IK},vpt),bpt]),ru("div",Spt,[Kft(ru("input",{type:"text","onUpdate:modelValue":Sm[0]||(Sm[0]=cg=>Gc.value=cg),placeholder:"Search..."},null,512),[[ept,Gc.value]]),ru("label",{onClick:Sm[1]||(Sm[1]=cg=>qg.value=!qg.value),"aria-checked":qg.value,title:qg.value?"Show all":"Show only announcements I last modified"},[xpt,AK(" My announcements ")],8,Tpt)]),Dt.value.length?(_D(),fD("div",kpt,[Cpt,(_D(!0),fD(tpt,null,rpt(Dt.value,cg=>(_D(),fD("div",{key:cg.id,class:"announcement"},[npt(Zj,{to:`/announcements/${cg.id}`},{default:ipt(()=>[cg.title?(_D(),fD("h3",Ept,pD(cg.title),1)):(_D(),fD("h3",Ppt,wpt)),ru("span",null,pD(new Date(cg.lastModified).toLocaleString()),1),ru("span",null,pD(cg.author),1)]),_:2},1032,["to"])]))),128))])):b5e("",!0),Dt.value.length?(_D(),fD("div",Apt,[ru("span",null,[AK(" Showing "),ru("strong",null,pD(Dt.value.length),1),AK(" of "),ru("strong",null,pD($I.value),1),AK(" announcements ")]),ru("div",Npt,[ru("span",{class:"material-symbols-rounded",disabled:u1.value===0,onClick:Sm[2]||(Sm[2]=cg=>dD(u1.value-1))}," chevron_left ",8,Ipt),ru("span",null,"Page "+pD(u1.value+1)+" of "+pD(mr.value),1),ru("span",{class:"material-symbols-rounded",disabled:u1.value===mr.value-1,onClick:Sm[3]||(Sm[3]=cg=>dD(u1.value+1))}," chevron_right ",8,Fpt)])])):b5e("",!0)])])}}}),Bpt=opt(Opt,[["__scopeId","data-v-c32180b8"]]);export{Bpt as default}; diff --git a/ui/dist/assets/Overview-TV7ym95m.css b/ui/dist/assets/Overview-TV7ym95m.css deleted file mode 100644 index ebdf561..0000000 --- a/ui/dist/assets/Overview-TV7ym95m.css +++ /dev/null @@ -1 +0,0 @@ -.root[data-v-2dc41a0d]{height:calc(100% - 2rem);overflow:clip;display:flex;flex-direction:column}.itemlist[data-v-2dc41a0d]{height:calc(100% - 2rem);max-height:calc(100% - 2rem);overflow-y:scroll;flex:1}.card[data-v-2dc41a0d]{min-width:30ch;flex:1;display:flex;flex-direction:column;justify-content:flex-end;gap:.5em;cursor:pointer;color:var(--fg-text-muted)}.card[data-v-2dc41a0d][data-v-2dc41a0d]:not([disabled=true]):hover{background-color:var(--bg-muted)}.card[data-v-2dc41a0d][disabled=true][data-v-2dc41a0d]{cursor:not-allowed;color:var(--fg-text-muted)}.card[data-v-2dc41a0d] .icon[data-v-2dc41a0d]{flex:1;align-self:center}.card[data-v-2dc41a0d] .material-symbols-rounded[data-v-2dc41a0d]{font-size:5rem}.pagination[data-v-2dc41a0d]{display:flex;justify-content:space-between;gap:1em;color:var(--fg-text-muted)}.pagination[data-v-2dc41a0d] .pager[data-v-2dc41a0d]{display:flex;gap:1em;align-items:center}.pagination[data-v-2dc41a0d] .pager[data-v-2dc41a0d] span.material-symbols-rounded[data-v-2dc41a0d]{cursor:pointer;font-size:1rem;color:var(--fg-text)}.pagination[data-v-2dc41a0d] .pager[data-v-2dc41a0d] span.material-symbols-rounded[data-v-2dc41a0d][data-v-2dc41a0d]:hover{color:var(--c-stair-green)}.pagination[data-v-2dc41a0d] .pager[data-v-2dc41a0d] span.material-symbols-rounded[data-v-2dc41a0d][disabled=true][data-v-2dc41a0d]{cursor:not-allowed;color:var(--fg-text-muted)}.filters[data-v-2dc41a0d]{display:flex;gap:1em;margin-top:1em}.filters[data-v-2dc41a0d] input[data-v-2dc41a0d]{flex:1;padding:.5em;border-radius:4px;border:1px solid var(--bg-muted)}.filters[data-v-2dc41a0d] label[data-v-2dc41a0d]{display:flex;gap:.5em;padding:.5em;border-radius:4px;cursor:pointer;align-items:center}.filters[data-v-2dc41a0d] label[data-v-2dc41a0d] span[data-v-2dc41a0d]{font-size:1rem}.filters[data-v-2dc41a0d] label[data-v-2dc41a0d][aria-checked=true][data-v-2dc41a0d]{color:var(--c-stair-green);background-color:var(--bg-muted)}.filters[data-v-2dc41a0d] label[data-v-2dc41a0d][data-v-2dc41a0d]:hover{background-color:var(--c-stair-green-20)}.announcement[data-v-2dc41a0d]{padding:1em;border-radius:4px}.announcement[data-v-2dc41a0d] a[data-v-2dc41a0d]{display:grid;grid-template-columns:1fr 20ch 10ch;color:var(--fg-text-muted)}@media (max-width: 800px){.announcement[data-v-2dc41a0d] a[data-v-2dc41a0d]{grid-template-columns:1fr}.announcement[data-v-2dc41a0d] a[data-v-2dc41a0d] h3[data-v-2dc41a0d]{font-size:1rem}.announcement[data-v-2dc41a0d] a[data-v-2dc41a0d] span[data-v-2dc41a0d]:not(:first-child){display:none}}.announcement[data-v-2dc41a0d][data-v-2dc41a0d]:hover{background-color:var(--bg-muted)}.announcement[data-v-2dc41a0d][data-v-2dc41a0d]:not(:last-child){border-bottom:1px solid var(--bg-muted)}.announcements[data-v-2dc41a0d]{display:flex;flex-direction:column;gap:2em;min-height:calc(100% - 2rem)}.cards[data-v-2dc41a0d]{display:flex;flex-direction:row;gap:1em}@media (max-width: 800px){.cards[data-v-2dc41a0d]{flex-direction:column}} diff --git a/ui/dist/assets/Overview-mEpTX5ao.css b/ui/dist/assets/Overview-mEpTX5ao.css new file mode 100644 index 0000000..716cbea --- /dev/null +++ b/ui/dist/assets/Overview-mEpTX5ao.css @@ -0,0 +1 @@ +@media (max-width: 800px){.card[data-hide-mobile][data-v-c32180b8]{display:none}}.root[data-v-c32180b8]{height:calc(100% - 2rem);overflow:clip;display:flex;flex-direction:column}.itemlist[data-v-c32180b8]{height:calc(100% - 2rem);max-height:calc(100% - 2rem);overflow-y:scroll;flex:1}.card[data-v-c32180b8]{min-width:30ch;flex:1;display:flex;flex-direction:column;justify-content:flex-end;gap:.5em;cursor:pointer;color:var(--fg-text-muted)}.card[data-v-c32180b8][data-v-c32180b8]:not([disabled=true]):hover{background-color:var(--bg-muted)}.card[data-v-c32180b8][disabled=true][data-v-c32180b8]{cursor:not-allowed;color:var(--fg-text-muted)}.card[data-v-c32180b8] .icon[data-v-c32180b8]{flex:1;align-self:center}.card[data-v-c32180b8] .material-symbols-rounded[data-v-c32180b8]{font-size:5rem}.pagination[data-v-c32180b8]{display:flex;justify-content:space-between;gap:1em;color:var(--fg-text-muted)}.pagination[data-v-c32180b8] .pager[data-v-c32180b8]{display:flex;gap:1em;align-items:center}.pagination[data-v-c32180b8] .pager[data-v-c32180b8] span.material-symbols-rounded[data-v-c32180b8]{cursor:pointer;font-size:1rem;color:var(--fg-text)}.pagination[data-v-c32180b8] .pager[data-v-c32180b8] span.material-symbols-rounded[data-v-c32180b8][data-v-c32180b8]:hover{color:var(--c-stair-green)}.pagination[data-v-c32180b8] .pager[data-v-c32180b8] span.material-symbols-rounded[data-v-c32180b8][disabled=true][data-v-c32180b8]{cursor:not-allowed;color:var(--fg-text-muted)}.filters[data-v-c32180b8]{display:flex;gap:1em;margin-top:1em}.filters[data-v-c32180b8] input[data-v-c32180b8]{flex:1;padding:.5em;border-radius:4px;border:1px solid var(--bg-muted)}.filters[data-v-c32180b8] label[data-v-c32180b8]{display:flex;gap:.5em;padding:.5em;border-radius:4px;cursor:pointer;align-items:center}.filters[data-v-c32180b8] label[data-v-c32180b8] span[data-v-c32180b8]{font-size:1rem}.filters[data-v-c32180b8] label[data-v-c32180b8][aria-checked=true][data-v-c32180b8]{color:var(--c-stair-green);background-color:var(--bg-muted)}.filters[data-v-c32180b8] label[data-v-c32180b8][data-v-c32180b8]:hover{background-color:var(--c-stair-green-20)}.announcement[data-v-c32180b8]{padding:1em;border-radius:4px}.announcement[data-v-c32180b8] a[data-v-c32180b8]{display:grid;grid-template-columns:1fr 20ch 10ch;color:var(--fg-text-muted)}@media (max-width: 800px){.announcement[data-v-c32180b8] a[data-v-c32180b8]{grid-template-columns:1fr}.announcement[data-v-c32180b8] a[data-v-c32180b8] h3[data-v-c32180b8]{font-size:1rem}.announcement[data-v-c32180b8] a[data-v-c32180b8] span[data-v-c32180b8]:not(:first-child){display:none}}.announcement[data-v-c32180b8][data-v-c32180b8]:hover{background-color:var(--bg-muted)}.announcement[data-v-c32180b8][data-v-c32180b8]:not(:last-child){border-bottom:1px solid var(--bg-muted)}.announcements[data-v-c32180b8]{display:flex;flex-direction:column;gap:2em;min-height:calc(100% - 2rem)}.cards[data-v-c32180b8]{display:flex;flex-direction:row;gap:1em}@media (max-width: 800px){.cards[data-v-c32180b8]{flex-direction:column}} diff --git a/ui/dist/assets/announcements-BrnJwnT_.js b/ui/dist/assets/announcements-DXPjmohv.js similarity index 98% rename from ui/dist/assets/announcements-BrnJwnT_.js rename to ui/dist/assets/announcements-DXPjmohv.js index 7ff0da0..055ce1a 100644 --- a/ui/dist/assets/announcements-BrnJwnT_.js +++ b/ui/dist/assets/announcements-DXPjmohv.js @@ -1 +1 @@ -import{Q as p,g as m}from"./index-mddo8Vsu.js";const y=async e=>{if(e)return new Promise((n,t)=>{const a=new FileReader;a.onload=()=>{const r=a.result;n(r.replace(/^data:image\/[a-z]+;base64,/,""))},a.onerror=t,a.readAsDataURL(e)})},u=()=>{f().update()},o={announements:{async getAll(){return fetch("/api/announcements").then(e=>e.json())},async create(e){const t=await(await fetch("/api/announcements",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json();return u(),t},async search(e,n=!1,t,a=10,r=0){var h,d;const s=new URLSearchParams;s.append("query",e),s.append("author",n?"me":""),s.append("start",((h=t==null?void 0:t.start)==null?void 0:h.toISOString())||""),s.append("end",((d=t==null?void 0:t.end)==null?void 0:d.toISOString())||""),s.append("limit",a.toString()),s.append("offset",r.toString());const c=await fetch(`/api/announcements?${s}`);return{items:await c.json(),totalCount:Number(c.headers.get("X-Total-Count")||0)}},async get(e){return fetch(`/api/announcements/${e}`).then(n=>n.json())},async update(e){const t=await(await fetch(`/api/announcements/${e.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json();return u(),t},async delete(e){await fetch(`/api/announcements/${e}`,{method:"DELETE"}).then(u)},async types(){return fetch("/api/announcements/types").then(e=>e.json())},schedule:{async get(e){return fetch(`/api/announcements/${e}/schedules`).then(n=>n.json())},async update(e,n){const t=await fetch(`/api/announcements/${e}/schedules`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(t.ok)return null;const a=await t.text();return console.error(a),a}},async publish(e,n,t,a,r,s){const c=await fetch(`/api/announcements/${e}/publish`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e,scope:n,server:t,type:a,persona:r,image:await y(s)})});if(c.ok)return null;const i=await c.text();return console.error(i),i},async discordServers(){return fetch("/api/announcements/discord/servers").then(e=>e.json())},async telegramChats(){return fetch("/api/announcements/telegram/chats").then(e=>e.json())},async personas(){return fetch("/api/announcements/personas").then(e=>e.json())}},db:{async students(){return fetch("/api/students").then(e=>e.json())},async updateStudents(e){const n=await fetch("/api/students",{method:"PUT",headers:{"Content-Type":"application/xml"},body:e});return n.ok?null:await n.text()},async updateModules(e){const n=await fetch("/api/modules",{method:"PUT",headers:{"Content-Type":"application/xml"},body:e});return n.ok?null:await n.text()},async getDegreeProgrammes(){return fetch("/api/degree-programmes").then(e=>e.json())},async updateDegreeProgrammes(e){await fetch("/api/degree-programmes",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}},commonSources:{_cache:new Map,personas:{_base:"/common/personas",_cacheKey:"personas",async definition(){if(o.commonSources._cache.has(this._cacheKey))return o.commonSources._cache.get(this._cacheKey);const n=await(await fetch(this._base+"/definition.json")).json();return o.commonSources._cache.set(this._cacheKey,n.items),n.items},avatarByPath(e){return this._base+"/avatars/"+e},async avatarByName(e){const n=await this.definition();return this.avatarByPath(n[e].avatar)}},announcementTypes:{_base:"/common/announcements",_cacheKey:"announcement.types",async definition(){if(o.commonSources._cache.has(this._cacheKey))return o.commonSources._cache.get(this._cacheKey);const n=await(await fetch(this._base+"/types.json")).json();return o.commonSources._cache.set(this._cacheKey,n.items),n.items},async roleByType(e){return(await this.definition())[e].role}}}},f=p("counter",()=>{const e=m([]),n=async()=>{e.value=await o.announements.getAll()},t=async()=>"/announcements/"+(await o.announements.create({title:"",message:{de:"",en:""}})).id;return n(),{announcements:e,update:n,create:t}});export{o as a,f as u}; +import{Q as p,g as m}from"./index-DpfM9Q-q.js";const y=async e=>{if(e)return new Promise((n,t)=>{const a=new FileReader;a.onload=()=>{const r=a.result;n(r.replace(/^data:image\/[a-z]+;base64,/,""))},a.onerror=t,a.readAsDataURL(e)})},u=()=>{f().update()},o={announements:{async getAll(){return fetch("/api/announcements").then(e=>e.json())},async create(e){const t=await(await fetch("/api/announcements",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json();return u(),t},async search(e,n=!1,t,a=10,r=0){var h,d;const s=new URLSearchParams;s.append("query",e),s.append("author",n?"me":""),s.append("start",((h=t==null?void 0:t.start)==null?void 0:h.toISOString())||""),s.append("end",((d=t==null?void 0:t.end)==null?void 0:d.toISOString())||""),s.append("limit",a.toString()),s.append("offset",r.toString());const c=await fetch(`/api/announcements?${s}`);return{items:await c.json(),totalCount:Number(c.headers.get("X-Total-Count")||0)}},async get(e){return fetch(`/api/announcements/${e}`).then(n=>n.json())},async update(e){const t=await(await fetch(`/api/announcements/${e.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json();return u(),t},async delete(e){await fetch(`/api/announcements/${e}`,{method:"DELETE"}).then(u)},async types(){return fetch("/api/announcements/types").then(e=>e.json())},schedule:{async get(e){return fetch(`/api/announcements/${e}/schedules`).then(n=>n.json())},async update(e,n){const t=await fetch(`/api/announcements/${e}/schedules`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(t.ok)return null;const a=await t.text();return console.error(a),a}},async publish(e,n,t,a,r,s){const c=await fetch(`/api/announcements/${e}/publish`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e,scope:n,server:t,type:a,persona:r,image:await y(s)})});if(c.ok)return null;const i=await c.text();return console.error(i),i},async discordServers(){return fetch("/api/announcements/discord/servers").then(e=>e.json())},async telegramChats(){return fetch("/api/announcements/telegram/chats").then(e=>e.json())},async personas(){return fetch("/api/announcements/personas").then(e=>e.json())}},db:{async students(){return fetch("/api/students").then(e=>e.json())},async updateStudents(e){const n=await fetch("/api/students",{method:"PUT",headers:{"Content-Type":"application/xml"},body:e});return n.ok?null:await n.text()},async updateModules(e){const n=await fetch("/api/modules",{method:"PUT",headers:{"Content-Type":"application/xml"},body:e});return n.ok?null:await n.text()},async getDegreeProgrammes(){return fetch("/api/degree-programmes").then(e=>e.json())},async updateDegreeProgrammes(e){await fetch("/api/degree-programmes",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}},commonSources:{_cache:new Map,personas:{_base:"/common/personas",_cacheKey:"personas",async definition(){if(o.commonSources._cache.has(this._cacheKey))return o.commonSources._cache.get(this._cacheKey);const n=await(await fetch(this._base+"/definition.json")).json();return o.commonSources._cache.set(this._cacheKey,n.items),n.items},avatarByPath(e){return this._base+"/avatars/"+e},async avatarByName(e){const n=await this.definition();return this.avatarByPath(n[e].avatar)}},announcementTypes:{_base:"/common/announcements",_cacheKey:"announcement.types",async definition(){if(o.commonSources._cache.has(this._cacheKey))return o.commonSources._cache.get(this._cacheKey);const n=await(await fetch(this._base+"/types.json")).json();return o.commonSources._cache.set(this._cacheKey,n.items),n.items},async roleByType(e){return(await this.definition())[e].role}}}},f=p("counter",()=>{const e=m([]),n=async()=>{e.value=await o.announements.getAll()},t=async()=>"/announcements/"+(await o.announements.create({title:"",message:{de:"",en:""}})).id;return n(),{announcements:e,update:n,create:t}});export{o as a,f as u}; diff --git a/ui/dist/assets/cssMode-DQruK-oB.js b/ui/dist/assets/cssMode-gfx9-M_K.js similarity index 99% rename from ui/dist/assets/cssMode-DQruK-oB.js rename to ui/dist/assets/cssMode-gfx9-M_K.js index 1208411..7cf4dbc 100644 --- a/ui/dist/assets/cssMode-DQruK-oB.js +++ b/ui/dist/assets/cssMode-gfx9-M_K.js @@ -1,4 +1,4 @@ -import{m as et}from"./index-BUNPVbzS.js";import"./index-mddo8Vsu.js";import"./announcements-BrnJwnT_.js";import"./LoadingWithResultModal-C_NNHIwF.js";import"./___vite-browser-external_commonjs-proxy-D5Dao81r.js";/*!----------------------------------------------------------------------------- +import{m as et}from"./index-Cn9EX2GC.js";import"./index-DpfM9Q-q.js";import"./announcements-DXPjmohv.js";import"./LoadingWithResultModal-B5hmnBBo.js";import"./___vite-browser-external_commonjs-proxy-D5Dao81r.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) * Released under the MIT license diff --git a/ui/dist/assets/freemarker2-B8Rt5LUV.js b/ui/dist/assets/freemarker2-CkuUKxEA.js similarity index 98% rename from ui/dist/assets/freemarker2-B8Rt5LUV.js rename to ui/dist/assets/freemarker2-CkuUKxEA.js index 8ffcdcc..9181970 100644 --- a/ui/dist/assets/freemarker2-B8Rt5LUV.js +++ b/ui/dist/assets/freemarker2-CkuUKxEA.js @@ -1,4 +1,4 @@ -import{m as f}from"./index-BUNPVbzS.js";import"./index-mddo8Vsu.js";import"./announcements-BrnJwnT_.js";import"./LoadingWithResultModal-C_NNHIwF.js";import"./___vite-browser-external_commonjs-proxy-D5Dao81r.js";/*!----------------------------------------------------------------------------- +import{m as f}from"./index-Cn9EX2GC.js";import"./index-DpfM9Q-q.js";import"./announcements-DXPjmohv.js";import"./LoadingWithResultModal-B5hmnBBo.js";import"./___vite-browser-external_commonjs-proxy-D5Dao81r.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) * Released under the MIT license diff --git a/ui/dist/assets/handlebars-ByMWt90J.js b/ui/dist/assets/handlebars-DFwLcN89.js similarity index 97% rename from ui/dist/assets/handlebars-ByMWt90J.js rename to ui/dist/assets/handlebars-DFwLcN89.js index 6d7c1fb..4ed860e 100644 --- a/ui/dist/assets/handlebars-ByMWt90J.js +++ b/ui/dist/assets/handlebars-DFwLcN89.js @@ -1,4 +1,4 @@ -import{m as i}from"./index-BUNPVbzS.js";import"./index-mddo8Vsu.js";import"./announcements-BrnJwnT_.js";import"./LoadingWithResultModal-C_NNHIwF.js";import"./___vite-browser-external_commonjs-proxy-D5Dao81r.js";/*!----------------------------------------------------------------------------- +import{m as i}from"./index-Cn9EX2GC.js";import"./index-DpfM9Q-q.js";import"./announcements-DXPjmohv.js";import"./LoadingWithResultModal-B5hmnBBo.js";import"./___vite-browser-external_commonjs-proxy-D5Dao81r.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) * Released under the MIT license diff --git a/ui/dist/assets/html-Dt76PXei.js b/ui/dist/assets/html-b84dk0tF.js similarity index 96% rename from ui/dist/assets/html-Dt76PXei.js rename to ui/dist/assets/html-b84dk0tF.js index caaf435..e98260f 100644 --- a/ui/dist/assets/html-Dt76PXei.js +++ b/ui/dist/assets/html-b84dk0tF.js @@ -1,4 +1,4 @@ -import{m as s}from"./index-BUNPVbzS.js";import"./index-mddo8Vsu.js";import"./announcements-BrnJwnT_.js";import"./LoadingWithResultModal-C_NNHIwF.js";import"./___vite-browser-external_commonjs-proxy-D5Dao81r.js";/*!----------------------------------------------------------------------------- +import{m as s}from"./index-Cn9EX2GC.js";import"./index-DpfM9Q-q.js";import"./announcements-DXPjmohv.js";import"./LoadingWithResultModal-B5hmnBBo.js";import"./___vite-browser-external_commonjs-proxy-D5Dao81r.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) * Released under the MIT license diff --git a/ui/dist/assets/htmlMode-CO67Uu-6.js b/ui/dist/assets/htmlMode-83odpPnD.js similarity index 99% rename from ui/dist/assets/htmlMode-CO67Uu-6.js rename to ui/dist/assets/htmlMode-83odpPnD.js index 6a6d491..0d451d7 100644 --- a/ui/dist/assets/htmlMode-CO67Uu-6.js +++ b/ui/dist/assets/htmlMode-83odpPnD.js @@ -1,4 +1,4 @@ -import{m as lt}from"./index-BUNPVbzS.js";import"./index-mddo8Vsu.js";import"./announcements-BrnJwnT_.js";import"./LoadingWithResultModal-C_NNHIwF.js";import"./___vite-browser-external_commonjs-proxy-D5Dao81r.js";/*!----------------------------------------------------------------------------- +import{m as lt}from"./index-Cn9EX2GC.js";import"./index-DpfM9Q-q.js";import"./announcements-DXPjmohv.js";import"./LoadingWithResultModal-B5hmnBBo.js";import"./___vite-browser-external_commonjs-proxy-D5Dao81r.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) * Released under the MIT license diff --git a/ui/dist/assets/index-7TvH9hL2.js b/ui/dist/assets/index-B1k2z2W3.js similarity index 93% rename from ui/dist/assets/index-7TvH9hL2.js rename to ui/dist/assets/index-B1k2z2W3.js index 4c9b6fd..456b958 100644 --- a/ui/dist/assets/index-7TvH9hL2.js +++ b/ui/dist/assets/index-B1k2z2W3.js @@ -1,2 +1,2 @@ -import{a as c}from"./announcements-BrnJwnT_.js";import{L as w}from"./LoadingWithResultModal-C_NNHIwF.js";import{f as x,g as S,j as C,r as E,o as b,c as U,b as k,a as s,t as r,m as L,e as u,w as M,F as D,p as I,d as N,_ as H}from"./index-mddo8Vsu.js";const t=d=>(I("data-v-54e2e0c1"),d=d(),N(),d),V=t(()=>s("h1",null,"User Management",-1)),B={class:"user-management"},T={key:0,class:"stats"},F={class:"card"},$=t(()=>s("p",null,"HSLU-I Students",-1)),j={class:"card"},G=t(()=>s("p",null,"Students on Discord",-1)),P={class:"card"},R=t(()=>s("p",null,"Graduates on Discord",-1)),W=t(()=>s("h2",null,"Configuration",-1)),q={class:"config"},z={class:"config-option"},A=t(()=>s("div",{class:"info"},[s("h3",null,"Update Students"),s("p",null," Update the list of students that is provided by the HSLU administration. ")],-1)),J=t(()=>s("span",{class:"material-symbols-rounded"},"file_upload",-1)),K={class:"config-option"},O=t(()=>s("div",{class:"info"},[s("h3",null,"Update Modules"),s("p",null," Update the list of modules that is provided by the HSLU administration. ")],-1)),Q=t(()=>s("span",{class:"material-symbols-rounded"},"file_upload",-1)),X={class:"config-option"},Y=t(()=>s("div",{class:"info"},[s("h3",null,"Edit Degree Programmes"),s("p",null," Edit the mapping between the HSLU degree programmes and the Discord roles & channels. ")],-1)),Z=t(()=>s("button",{class:"secondary"},[s("span",{class:"material-symbols-rounded"},"edit"),u(" Edit ")],-1)),ss=x({__name:"index",setup(d){const o=S(null),n=S(null),p=async i=>{const e=document.createElement("input");e.type="file",e.accept=".csv",e.onchange=async()=>{var m,f,v,g,y;if((m=o.value)==null||m.onLoading(),!e.files||e.files.length===0)return;const a=await e.files[0].text(),h=a.split(` +import{a as c}from"./announcements-DXPjmohv.js";import{L as w}from"./LoadingWithResultModal-B5hmnBBo.js";import{f as x,g as S,j as C,r as E,o as b,c as U,b as k,a as s,t as r,m as L,e as u,w as M,F as D,p as I,d as N,_ as H}from"./index-DpfM9Q-q.js";const t=d=>(I("data-v-54e2e0c1"),d=d(),N(),d),V=t(()=>s("h1",null,"User Management",-1)),B={class:"user-management"},T={key:0,class:"stats"},F={class:"card"},$=t(()=>s("p",null,"HSLU-I Students",-1)),j={class:"card"},G=t(()=>s("p",null,"Students on Discord",-1)),P={class:"card"},R=t(()=>s("p",null,"Graduates on Discord",-1)),W=t(()=>s("h2",null,"Configuration",-1)),q={class:"config"},z={class:"config-option"},A=t(()=>s("div",{class:"info"},[s("h3",null,"Update Students"),s("p",null," Update the list of students that is provided by the HSLU administration. ")],-1)),J=t(()=>s("span",{class:"material-symbols-rounded"},"file_upload",-1)),K={class:"config-option"},O=t(()=>s("div",{class:"info"},[s("h3",null,"Update Modules"),s("p",null," Update the list of modules that is provided by the HSLU administration. ")],-1)),Q=t(()=>s("span",{class:"material-symbols-rounded"},"file_upload",-1)),X={class:"config-option"},Y=t(()=>s("div",{class:"info"},[s("h3",null,"Edit Degree Programmes"),s("p",null," Edit the mapping between the HSLU degree programmes and the Discord roles & channels. ")],-1)),Z=t(()=>s("button",{class:"secondary"},[s("span",{class:"material-symbols-rounded"},"edit"),u(" Edit ")],-1)),ss=x({__name:"index",setup(d){const o=S(null),n=S(null),p=async i=>{const e=document.createElement("input");e.type="file",e.accept=".csv",e.onchange=async()=>{var m,f,v,g,y;if((m=o.value)==null||m.onLoading(),!e.files||e.files.length===0)return;const a=await e.files[0].text(),h=a.split(` `)[0];let l=null;if(i==="students"){if(!h.includes("Nachname")){(f=o.value)==null||f.onError("This format is unsupported.");return}l=await c.db.updateStudents(a)}else if(i==="modules"){if(!h.includes("Modultyp")){(v=o.value)==null||v.onError("This format is unsupported.");return}l=await c.db.updateModules(a)}l?(y=o.value)==null||y.onError(l):(g=o.value)==null||g.onSuccess("Successfully updated!")},e.click()};return C(async()=>{n.value=await c.db.students()}),(i,e)=>{const _=E("router-link");return b(),U(D,null,[k(w,{ref_key:"modal",ref:o},null,512),V,s("div",B,[n.value?(b(),U("div",T,[s("div",F,[s("h1",null,r(n.value.enrolled),1),$]),s("div",j,[s("h1",null,r(n.value.discord.students),1),G]),s("div",P,[s("h1",null,r(n.value.discord.graduates),1),R])])):L("",!0),W,s("div",q,[s("div",z,[A,s("button",{class:"secondary",onClick:e[0]||(e[0]=a=>p("students"))},[J,u(" Update ")])]),s("div",K,[O,s("button",{class:"secondary",onClick:e[1]||(e[1]=a=>p("modules"))},[Q,u(" Update ")])]),s("div",X,[Y,k(_,{to:"/discord/degree-programmes",class:"secondary"},{default:M(()=>[Z]),_:1})])])])],64)}}}),ns=H(ss,[["__scopeId","data-v-54e2e0c1"]]);export{ns as default}; diff --git a/ui/dist/assets/index-BUNPVbzS.js b/ui/dist/assets/index-Cn9EX2GC.js similarity index 99% rename from ui/dist/assets/index-BUNPVbzS.js rename to ui/dist/assets/index-Cn9EX2GC.js index e07f769..8ee9e48 100644 --- a/ui/dist/assets/index-BUNPVbzS.js +++ b/ui/dist/assets/index-Cn9EX2GC.js @@ -1,5 +1,5 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/freemarker2-B8Rt5LUV.js","assets/index-mddo8Vsu.js","assets/index-C9BtnHU_.css","assets/announcements-BrnJwnT_.js","assets/LoadingWithResultModal-C_NNHIwF.js","assets/LoadingWithResultModal-BUso8QCA.css","assets/___vite-browser-external_commonjs-proxy-D5Dao81r.js","assets/handlebars-ByMWt90J.js","assets/html-Dt76PXei.js","assets/javascript-C94guP2z.js","assets/typescript-7nKRn4jz.js","assets/liquid-CWEjMak3.js","assets/mdx-DW_NZpvZ.js","assets/python-CwXslKsP.js","assets/razor-BSbe7fwy.js","assets/xml-DpPQ_Q24.js","assets/yaml-B_Jizig3.js","assets/cssMode-DQruK-oB.js","assets/htmlMode-CO67Uu-6.js","assets/jsonMode-CV1B7G11.js","assets/tsMode-CeQsB0gm.js"])))=>i.map(i=>d[i]); -import{n as Se,f as tn,g as Ut,j as Dh,q as y6,i as ha,o as Me,c as Pt,_ as hl,a as de,F as Fn,l as wr,s as Em,t as Rt,m as In,b as St,p as Af,d as Rf,x as Ot,w as Na,e as en,y as Co,h as zn,k as na,v as tP,z as H4,r as rk,A as Ss,B as xC,C as _G,D as vG,E as bG,G as CG,H as SN,I as Qc,J as L6,K as wG,L as SG,u as yG,M as LG}from"./index-mddo8Vsu.js";import{a as Qn,u as kG}from"./announcements-BrnJwnT_.js";import{M as xG,L as k6,a as DG}from"./LoadingWithResultModal-C_NNHIwF.js";import{r as IG,g as EG}from"./___vite-browser-external_commonjs-proxy-D5Dao81r.js";function mr(o,e=0){return o[o.length-(1+e)]}function NG(o){if(o.length===0)throw new Error("Invalid tail call");return[o.slice(0,o.length-1),o[o.length-1]]}function vi(o,e,t=(i,n)=>i===n){if(o===e)return!0;if(!o||!e||o.length!==e.length)return!1;for(let i=0,n=o.length;it(o[i],e))}function AG(o,e){let t=0,i=o-1;for(;t<=i;){const n=(t+i)/2|0,s=e(n);if(s<0)t=n+1;else if(s>0)i=n-1;else return n}return-(t+1)}function yN(o,e,t){if(o=o|0,o>=e.length)throw new TypeError("invalid index");const i=e[Math.floor(e.length*Math.random())],n=[],s=[],r=[];for(const a of e){const l=t(a,i);l<0?n.push(a):l>0?s.push(a):r.push(a)}return o!!e)}function U4(o){let e=0;for(let t=0;t0}function Nd(o,e=t=>t){const t=new Set;return o.filter(i=>{const n=e(i);return t.has(n)?!1:(t.add(n),!0)})}function nP(o,e){return o.length>0?o[0]:e}function no(o,e){let t=typeof e=="number"?o:0;typeof e=="number"?t=o:(t=0,e=o);const i=[];if(t<=e)for(let n=t;ne;n--)i.push(n);return i}function ak(o,e,t){const i=o.slice(0,e),n=o.slice(e);return i.concat(t,n)}function zD(o,e){const t=o.indexOf(e);t>-1&&(o.splice(t,1),o.unshift(e))}function N1(o,e){const t=o.indexOf(e);t>-1&&(o.splice(t,1),o.push(e))}function LN(o,e){for(const t of e)o.push(t)}function sP(o){return Array.isArray(o)?o:[o]}function MG(o,e,t){const i=I6(o,e),n=o.length,s=t.length;o.length=n+s;for(let r=n-1;r>=i;r--)o[r+s]=o[r];for(let r=0;r0}o.isGreaterThan=i;function n(s){return s===0}o.isNeitherLessOrGreaterThan=n,o.greaterThan=1,o.lessThan=-1,o.neitherLessOrGreaterThan=0})(Ub||(Ub={}));function co(o,e){return(t,i)=>e(o(t),o(i))}function PG(...o){return(e,t)=>{for(const i of o){const n=i(e,t);if(!Ub.isNeitherLessOrGreaterThan(n))return n}return Ub.neitherLessOrGreaterThan}}const ga=(o,e)=>o-e,OG=(o,e)=>ga(o?1:0,e?1:0);function E6(o){return(e,t)=>-o(e,t)}class Td{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t=0&&e(this.items[t]);)t--;const i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class nc{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(e){return new nc(t=>this.iterate(i=>e(i)?t(i):!0))}map(e){return new nc(t=>this.iterate(i=>t(e(i))))}findLast(e){let t;return this.iterate(i=>(e(i)&&(t=i),!0)),t}findLastMaxBy(e){let t,i=!0;return this.iterate(n=>((i||Ub.isGreaterThan(e(n,t)))&&(i=!1,t=n),!0)),t}}nc.empty=new nc(o=>{});class XS{constructor(e){this._indexMap=e}static createSortPermutation(e,t){const i=Array.from(e.keys()).sort((n,s)=>t(e[n],e[s]));return new XS(i)}apply(e){return e.map((t,i)=>e[this._indexMap[i]])}inverse(){const e=this._indexMap.slice();for(let t=0;t"u"}function sc(o){return!Yo(o)}function Yo(o){return ao(o)||o===null}function bt(o,e){if(!o)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function wu(o){if(Yo(o))throw new Error("Assertion Failed: argument is undefined or null");return o}function $b(o){return typeof o=="function"}function BG(o,e){const t=Math.min(o.length,e.length);for(let i=0;i{e[t]=i&&typeof i=="object"?jc(i):i}),e}function VG(o){if(!o||typeof o!="object")return o;const e=[o];for(;e.length>0;){const t=e.shift();Object.freeze(t);for(const i in t)if(T6.call(t,i)){const n=t[i];typeof n=="object"&&!Object.isFrozen(n)&&!FG(n)&&e.push(n)}}return o}const T6=Object.prototype.hasOwnProperty;function A6(o,e){return kN(o,e,new Set)}function kN(o,e,t){if(Yo(o))return o;const i=e(o);if(typeof i<"u")return i;if(Array.isArray(o)){const n=[];for(const s of o)n.push(kN(s,e,t));return n}if(Bs(o)){if(t.has(o))throw new Error("Cannot clone recursive data-structure");t.add(o);const n={};for(const s in o)T6.call(o,s)&&(n[s]=kN(o[s],e,t));return t.delete(o),n}return o}function lk(o,e,t=!0){return Bs(o)?(Bs(e)&&Object.keys(e).forEach(i=>{i in o?t&&(Bs(o[i])&&Bs(e[i])?lk(o[i],e[i],t):o[i]=e[i]):o[i]=e[i]}),o):e}function nr(o,e){if(o===e)return!0;if(o==null||e===null||e===void 0||typeof o!=typeof e||typeof o!="object"||Array.isArray(o)!==Array.isArray(e))return!1;let t,i;if(Array.isArray(o)){if(o.length!==e.length)return!1;for(t=0;tfunction(){const s=Array.prototype.slice.call(arguments,0);return e(n,s)},i={};for(const n of o)i[n]=t(n);return i}let UG=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function R6(o,e){let t;return e.length===0?t=o:t=o.replace(/\{(\d+)\}/g,(i,n)=>{const s=n[0],r=e[s];let a=i;return typeof r=="string"?a=r:(typeof r=="number"||typeof r=="boolean"||r===void 0||r===null)&&(a=String(r)),a}),UG&&(t="["+t.replace(/[aouei]/g,"$&$&")+"]"),t}function p(o,e,...t){return R6(e,t)}function Ve(o,e,...t){const i=R6(e,t);return{value:i,original:i}}var UD,$D;const Np="en";let JS=!1,ey=!1,uS=!1,M6=!1,rP=!1,aP=!1,P6=!1,T1,hS=Np,j4=Np,$G,xa;const wd=globalThis;let Ts;typeof wd.vscode<"u"&&typeof wd.vscode.process<"u"?Ts=wd.vscode.process:typeof process<"u"&&typeof((UD=process==null?void 0:process.versions)===null||UD===void 0?void 0:UD.node)=="string"&&(Ts=process);const qG=typeof(($D=Ts==null?void 0:Ts.versions)===null||$D===void 0?void 0:$D.electron)=="string",jG=qG&&(Ts==null?void 0:Ts.type)==="renderer";if(typeof Ts=="object"){JS=Ts.platform==="win32",ey=Ts.platform==="darwin",uS=Ts.platform==="linux",uS&&Ts.env.SNAP&&Ts.env.SNAP_REVISION,Ts.env.CI||Ts.env.BUILD_ARTIFACTSTAGINGDIRECTORY,T1=Np,hS=Np;const o=Ts.env.VSCODE_NLS_CONFIG;if(o)try{const e=JSON.parse(o),t=e.availableLanguages["*"];T1=e.locale,j4=e.osLocale,hS=t||Np,$G=e._translationsConfigFile}catch{}M6=!0}else typeof navigator=="object"&&!jG?(xa=navigator.userAgent,JS=xa.indexOf("Windows")>=0,ey=xa.indexOf("Macintosh")>=0,aP=(xa.indexOf("Macintosh")>=0||xa.indexOf("iPad")>=0||xa.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,uS=xa.indexOf("Linux")>=0,P6=(xa==null?void 0:xa.indexOf("Mobi"))>=0,rP=!0,p({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),T1=Np,hS=T1,j4=navigator.language):console.error("Unable to resolve platform.");const is=JS,ot=ey,js=uS,Ka=M6,Ih=rP,KG=rP&&typeof wd.importScripts=="function",GG=KG?wd.origin:void 0,il=aP,O6=P6,uc=xa,ZG=hS,YG=typeof wd.postMessage=="function"&&!wd.importScripts,F6=(()=>{if(YG){const o=[];wd.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,n=o.length;i{const i=++e;o.push({id:i,callback:t}),wd.postMessage({vscodeScheduleAsyncWork:i},"*")}}return o=>setTimeout(o)})(),ko=ey||aP?2:JS?1:3;let K4=!0,G4=!1;function B6(){if(!G4){G4=!0;const o=new Uint8Array(2);o[0]=1,o[1]=2,K4=new Uint16Array(o.buffer)[0]===513}return K4}const W6=!!(uc&&uc.indexOf("Chrome")>=0),QG=!!(uc&&uc.indexOf("Firefox")>=0),XG=!!(!W6&&uc&&uc.indexOf("Safari")>=0),JG=!!(uc&&uc.indexOf("Edg/")>=0),eZ=!!(uc&&uc.indexOf("Android")>=0),as={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}};var ht;(function(o){function e(C){return C&&typeof C=="object"&&typeof C[Symbol.iterator]=="function"}o.is=e;const t=Object.freeze([]);function i(){return t}o.empty=i;function*n(C){yield C}o.single=n;function s(C){return e(C)?C:n(C)}o.wrap=s;function r(C){return C||t}o.from=r;function*a(C){for(let w=C.length-1;w>=0;w--)yield C[w]}o.reverse=a;function l(C){return!C||C[Symbol.iterator]().next().done===!0}o.isEmpty=l;function c(C){return C[Symbol.iterator]().next().value}o.first=c;function d(C,w){for(const S of C)if(w(S))return!0;return!1}o.some=d;function u(C,w){for(const S of C)if(w(S))return S}o.find=u;function*h(C,w){for(const S of C)w(S)&&(yield S)}o.filter=h;function*g(C,w){let S=0;for(const y of C)yield w(y,S++)}o.map=g;function*f(...C){for(const w of C)yield*w}o.concat=f;function m(C,w,S){let y=S;for(const k of C)y=w(y,k);return y}o.reduce=m;function*_(C,w,S=C.length){for(w<0&&(w+=C.length),S<0?S+=C.length:S>C.length&&(S=C.length);w{n||(n=!0,this._remove(i))}}shift(){if(this._first!==sn.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==sn.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==sn.Undefined&&e.next!==sn.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===sn.Undefined&&e.next===sn.Undefined?(this._first=sn.Undefined,this._last=sn.Undefined):e.next===sn.Undefined?(this._last=this._last.prev,this._last.next=sn.Undefined):e.prev===sn.Undefined&&(this._first=this._first.next,this._first.prev=sn.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==sn.Undefined;)yield e.element,e=e.next}}const V6="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function tZ(o=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of V6)o.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const lP=tZ();function cP(o){let e=lP;if(o&&o instanceof RegExp)if(o.global)e=o;else{let t="g";o.ignoreCase&&(t+="i"),o.multiline&&(t+="m"),o.unicode&&(t+="u"),e=new RegExp(o.source,t)}return e.lastIndex=0,e}const H6=new Ws;H6.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function qb(o,e,t,i,n){if(e=cP(e),n||(n=ht.first(H6)),t.length>n.maxLen){let c=o-n.maxLen/2;return c<0?c=0:i+=c,t=t.substring(c,o+n.maxLen/2),qb(o,e,t,i,n)}const s=Date.now(),r=o-1-i;let a=-1,l=null;for(let c=1;!(Date.now()-s>=n.timeBudget);c++){const d=r-n.windowSize*c;e.lastIndex=Math.max(0,d);const u=iZ(e,t,r,a);if(!u&&l||(l=u,d<=0))break;a=d}if(l){const c={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return e.lastIndex=0,c}return null}function iZ(o,e,t,i){let n;for(;n=o.exec(e);){const s=n.index||0;if(s<=t&&o.lastIndex>=t)return n;if(i>0&&s>i)return null}return null}const Nl=8;class z6{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class U6{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class hi{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return ck(e,t)}compute(e,t,i){return i}}class rb{constructor(e,t){this.newValue=e,this.didChange=t}}function ck(o,e){if(typeof o!="object"||typeof e!="object"||!o||!e)return new rb(e,o!==e);if(Array.isArray(o)||Array.isArray(e)){const i=Array.isArray(o)&&Array.isArray(e)&&vi(o,e);return new rb(e,!i)}let t=!1;for(const i in e)if(e.hasOwnProperty(i)){const n=ck(o[i],e[i]);n.didChange&&(o[i]=n.newValue,t=!0)}return new rb(o,t)}class DC{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,t){return ck(e,t)}validate(e){return this.defaultValue}}class w_{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return ck(e,t)}validate(e){return typeof e>"u"?this.defaultValue:e}compute(e,t,i){return i}}function we(o,e){return typeof o>"u"?e:o==="false"?!1:!!o}class _t extends w_{constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="boolean",n.default=i),super(e,t,i,n)}validate(e){return we(e,this.defaultValue)}}function og(o,e,t,i){if(typeof o>"u")return e;let n=parseInt(o,10);return isNaN(n)?e:(n=Math.max(t,n),n=Math.min(i,n),n|0)}class jt extends w_{static clampedInt(e,t,i,n){return og(e,t,i,n)}constructor(e,t,i,n,s,r=void 0){typeof r<"u"&&(r.type="integer",r.default=i,r.minimum=n,r.maximum=s),super(e,t,i,r),this.minimum=n,this.maximum=s}validate(e){return jt.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}function nZ(o,e,t,i){if(typeof o>"u")return e;const n=er.float(o,e);return er.clamp(n,t,i)}class er extends w_{static clamp(e,t,i){return ei?i:e}static float(e,t){if(typeof e=="number")return e;if(typeof e>"u")return t;const i=parseFloat(e);return isNaN(i)?t:i}constructor(e,t,i,n,s){typeof s<"u"&&(s.type="number",s.default=i),super(e,t,i,s),this.validationFn=n}validate(e){return this.validationFn(er.float(e,this.defaultValue))}}class Rs extends w_{static string(e,t){return typeof e!="string"?t:e}constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="string",n.default=i),super(e,t,i,n)}validate(e){return Rs.string(e,this.defaultValue)}}function Ti(o,e,t,i){return typeof o!="string"?e:i&&o in i?i[o]:t.indexOf(o)===-1?e:o}class Si extends w_{constructor(e,t,i,n,s=void 0){typeof s<"u"&&(s.type="string",s.enum=n,s.default=i),super(e,t,i,s),this._allowedValues=n}validate(e){return Ti(e,this.defaultValue,this._allowedValues)}}class A1 extends hi{constructor(e,t,i,n,s,r,a=void 0){typeof a<"u"&&(a.type="string",a.enum=s,a.default=n),super(e,t,i,a),this._allowedValues=s,this._convert=r}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function sZ(o){switch(o){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class oZ extends hi{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[p("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached."),p("accessibilitySupport.on","Optimize for usage with a Screen Reader."),p("accessibilitySupport.off","Assume a screen reader is not attached.")],default:"auto",tags:["accessibility"],description:p("accessibilitySupport","Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return i===0?e.accessibilitySupport:i}}class rZ extends hi{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(23,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:p("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:p("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertSpace:we(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:we(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function aZ(o){switch(o){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var Vn;(function(o){o[o.Line=1]="Line",o[o.Block=2]="Block",o[o.Underline=3]="Underline",o[o.LineThin=4]="LineThin",o[o.BlockOutline=5]="BlockOutline",o[o.UnderlineThin=6]="UnderlineThin"})(Vn||(Vn={}));function lZ(o){switch(o){case"line":return Vn.Line;case"block":return Vn.Block;case"underline":return Vn.Underline;case"line-thin":return Vn.LineThin;case"block-outline":return Vn.BlockOutline;case"underline-thin":return Vn.UnderlineThin}}class cZ extends DC{constructor(){super(142)}compute(e,t,i){const n=["monaco-editor"];return t.get(39)&&n.push(t.get(39)),e.extraEditorClassName&&n.push(e.extraEditorClassName),t.get(74)==="default"?n.push("mouse-default"):t.get(74)==="copy"&&n.push("mouse-copy"),t.get(111)&&n.push("showUnused"),t.get(140)&&n.push("showDeprecated"),n.join(" ")}}class dZ extends _t{constructor(){super(37,"emptySelectionClipboard",!0,{description:p("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}class uZ extends hi{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(41,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:p("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[p("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),p("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),p("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:p("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[p("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),p("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),p("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:p("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:p("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:ot},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:p("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:p("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{cursorMoveOnType:we(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":Ti(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":Ti(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:we(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:we(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:we(t.loop,this.defaultValue.loop)}}}class Qo extends hi{constructor(){super(51,"fontLigatures",Qo.OFF,{anyOf:[{type:"boolean",description:p("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:p("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:p("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"||e.length===0?Qo.OFF:e==="true"?Qo.ON:e:e?Qo.ON:Qo.OFF}}Qo.OFF='"liga" off, "calt" off';Qo.ON='"liga" on, "calt" on';class Ha extends hi{constructor(){super(54,"fontVariations",Ha.OFF,{anyOf:[{type:"boolean",description:p("fontVariations","Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:p("fontVariationSettings","Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:p("fontVariationsGeneral","Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?Ha.OFF:e==="true"?Ha.TRANSLATE:e:e?Ha.TRANSLATE:Ha.OFF}compute(e,t,i){return e.fontInfo.fontVariationSettings}}Ha.OFF="normal";Ha.TRANSLATE="translate";class hZ extends DC{constructor(){super(50)}compute(e,t,i){return e.fontInfo}}class gZ extends w_{constructor(){super(52,"fontSize",uo.fontSize,{type:"number",minimum:6,maximum:100,default:uo.fontSize,description:p("fontSize","Controls the font size in pixels.")})}validate(e){const t=er.float(e,this.defaultValue);return t===0?uo.fontSize:er.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}class Ul extends hi{constructor(){super(53,"fontWeight",uo.fontWeight,{anyOf:[{type:"number",minimum:Ul.MINIMUM_VALUE,maximum:Ul.MAXIMUM_VALUE,errorMessage:p("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:Ul.SUGGESTION_VALUES}],default:uo.fontWeight,description:p("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(jt.clampedInt(e,uo.fontWeight,Ul.MINIMUM_VALUE,Ul.MAXIMUM_VALUE))}}Ul.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"];Ul.MINIMUM_VALUE=1;Ul.MAXIMUM_VALUE=1e3;class fZ extends hi{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[p("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),p("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),p("editor.gotoLocation.multiple.goto","Go to the primary result and enable Peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(58,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:p("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":{description:p("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleTypeDefinitions":{description:p("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleDeclarations":{description:p("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleImplementations":{description:p("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleReferences":{description:p("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist."),...t},"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:p("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:p("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:p("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:p("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:p("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var t,i,n,s,r;if(!e||typeof e!="object")return this.defaultValue;const a=e;return{multiple:Ti(a.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(t=a.multipleDefinitions)!==null&&t!==void 0?t:Ti(a.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(i=a.multipleTypeDefinitions)!==null&&i!==void 0?i:Ti(a.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(n=a.multipleDeclarations)!==null&&n!==void 0?n:Ti(a.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(s=a.multipleImplementations)!==null&&s!==void 0?s:Ti(a.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(r=a.multipleReferences)!==null&&r!==void 0?r:Ti(a.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:Rs.string(a.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:Rs.string(a.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:Rs.string(a.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:Rs.string(a.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:Rs.string(a.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class pZ extends hi{constructor(){const e={enabled:!0,delay:300,hidingDelay:300,sticky:!0,above:!0};super(60,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:p("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:p("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:p("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.hidingDelay":{type:"integer",minimum:0,default:e.hidingDelay,description:p("hover.hidingDelay","Controls the delay in milliseconds after which the hover is hidden. Requires `editor.hover.sticky` to be enabled.")},"editor.hover.above":{type:"boolean",default:e.above,description:p("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:we(t.enabled,this.defaultValue.enabled),delay:jt.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:we(t.sticky,this.defaultValue.sticky),hidingDelay:jt.clampedInt(t.hidingDelay,this.defaultValue.hidingDelay,0,6e5),above:we(t.above,this.defaultValue.above)}}}class im extends DC{constructor(){super(145)}compute(e,t,i){return im.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio,glyphMarginDecorationLaneCount:e.glyphMarginDecorationLaneCount})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=Math.floor(e.paddingTop/e.lineHeight);let n=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(n=Math.max(n,t-1));const s=(i+e.viewLineCount+n)/(e.pixelRatio*e.height),r=Math.floor(e.viewLineCount/s);return{typicalViewportLineCount:t,extraLinesBeforeFirstLine:i,extraLinesBeyondLastLine:n,desiredRatio:s,minimapLineCount:r}}static _computeMinimapLayout(e,t){const i=e.outerWidth,n=e.outerHeight,s=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(s*n),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:n};const r=t.stableMinimapLayoutInput,a=r&&e.outerHeight===r.outerHeight&&e.lineHeight===r.lineHeight&&e.typicalHalfwidthCharacterWidth===r.typicalHalfwidthCharacterWidth&&e.pixelRatio===r.pixelRatio&&e.scrollBeyondLastLine===r.scrollBeyondLastLine&&e.paddingTop===r.paddingTop&&e.paddingBottom===r.paddingBottom&&e.minimap.enabled===r.minimap.enabled&&e.minimap.side===r.minimap.side&&e.minimap.size===r.minimap.size&&e.minimap.showSlider===r.minimap.showSlider&&e.minimap.renderCharacters===r.minimap.renderCharacters&&e.minimap.maxColumn===r.minimap.maxColumn&&e.minimap.scale===r.minimap.scale&&e.verticalScrollbarWidth===r.verticalScrollbarWidth&&e.isViewportWrapping===r.isViewportWrapping,l=e.lineHeight,c=e.typicalHalfwidthCharacterWidth,d=e.scrollBeyondLastLine,u=e.minimap.renderCharacters;let h=s>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const g=e.minimap.maxColumn,f=e.minimap.size,m=e.minimap.side,_=e.verticalScrollbarWidth,v=e.viewLineCount,b=e.remainingWidth,C=e.isViewportWrapping,w=u?2:3;let S=Math.floor(s*n);const y=S/s;let k=!1,I=!1,T=w*h,B=h/s,P=1;if(f==="fill"||f==="fit"){const{typicalViewportLineCount:Ee,extraLinesBeforeFirstLine:_e,extraLinesBeyondLastLine:je,desiredRatio:$e,minimapLineCount:Ae}=im.computeContainedMinimapLineCount({viewLineCount:v,scrollBeyondLastLine:d,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:n,lineHeight:l,pixelRatio:s});if(v/Ae>1)k=!0,I=!0,h=1,T=1,B=h/s;else{let Ii=!1,Is=h+1;if(f==="fit"){const ln=Math.ceil((_e+v+je)*T);C&&a&&b<=t.stableFitRemainingWidth?(Ii=!0,Is=t.stableFitMaxMinimapScale):Ii=ln>S}if(f==="fill"||Ii){k=!0;const ln=h;T=Math.min(l*s,Math.max(1,Math.floor(1/$e))),C&&a&&b<=t.stableFitRemainingWidth&&(Is=t.stableFitMaxMinimapScale),h=Math.min(Is,Math.max(1,Math.floor(T/w))),h>ln&&(P=Math.min(2,h/ln)),B=h/s/P,S=Math.ceil(Math.max(Ee,_e+v+je)*T),C?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=b,t.stableFitMaxMinimapScale=h):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const M=Math.floor(g*B),F=Math.min(M,Math.max(0,Math.floor((b-_-2)*B/(c+B)))+Nl);let V=Math.floor(s*F);const j=V/s;V=Math.floor(V*P);const J=u?1:2,Ce=m==="left"?0:i-F-_;return{renderMinimap:J,minimapLeft:Ce,minimapWidth:F,minimapHeightIsEditorHeight:k,minimapIsSampling:I,minimapScale:h,minimapLineHeight:T,minimapCanvasInnerWidth:V,minimapCanvasInnerHeight:S,minimapCanvasOuterWidth:j,minimapCanvasOuterHeight:y}}static computeLayout(e,t){const i=t.outerWidth|0,n=t.outerHeight|0,s=t.lineHeight|0,r=t.lineNumbersDigitCount|0,a=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,c=t.pixelRatio,d=t.viewLineCount,u=e.get(137),h=u==="inherit"?e.get(136):u,g=h==="inherit"?e.get(132):h,f=e.get(135),m=t.isDominatedByLongLines,_=e.get(57),v=e.get(68).renderType!==0,b=e.get(69),C=e.get(105),w=e.get(84),S=e.get(73),y=e.get(103),k=y.verticalScrollbarSize,I=y.verticalHasArrows,T=y.arrowSize,B=y.horizontalScrollbarSize,P=e.get(43),M=e.get(110)!=="never";let F=e.get(66);P&&M&&(F+=16);let V=0;if(v){const pn=Math.max(r,b);V=Math.round(pn*l)}let j=0;_&&(j=s*t.glyphMarginDecorationLaneCount);let J=0,Ce=J+j,Ee=Ce+V,_e=Ee+F;const je=i-j-V-F;let $e=!1,Ae=!1,pe=-1;h==="inherit"&&m?($e=!0,Ae=!0):g==="on"||g==="bounded"?Ae=!0:g==="wordWrapColumn"&&(pe=f);const Ii=im._computeMinimapLayout({outerWidth:i,outerHeight:n,lineHeight:s,typicalHalfwidthCharacterWidth:a,pixelRatio:c,scrollBeyondLastLine:C,paddingTop:w.top,paddingBottom:w.bottom,minimap:S,verticalScrollbarWidth:k,viewLineCount:d,remainingWidth:je,isViewportWrapping:Ae},t.memory||new U6);Ii.renderMinimap!==0&&Ii.minimapLeft===0&&(J+=Ii.minimapWidth,Ce+=Ii.minimapWidth,Ee+=Ii.minimapWidth,_e+=Ii.minimapWidth);const Is=je-Ii.minimapWidth,ln=Math.max(1,Math.floor((Is-k-2)/a)),Nt=I?T:0;return Ae&&(pe=Math.max(1,ln),g==="bounded"&&(pe=Math.min(pe,f))),{width:i,height:n,glyphMarginLeft:J,glyphMarginWidth:j,glyphMarginDecorationLaneCount:t.glyphMarginDecorationLaneCount,lineNumbersLeft:Ce,lineNumbersWidth:V,decorationsLeft:Ee,decorationsWidth:F,contentLeft:_e,contentWidth:Is,minimap:Ii,viewportColumn:ln,isWordWrapMinified:$e,isViewportWrapping:Ae,wrappingColumn:pe,verticalScrollbarWidth:k,horizontalScrollbarHeight:B,overviewRuler:{top:Nt,width:k,height:n-2*Nt,right:0}}}}class mZ extends hi{constructor(){super(139,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[p("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),p("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:p("wrappingStrategy","Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(e){return Ti(e,"simple",["simple","advanced"])}compute(e,t,i){return t.get(2)===2?"advanced":i}}var ia;(function(o){o.Off="off",o.OnCode="onCode",o.On="on"})(ia||(ia={}));class _Z extends hi{constructor(){const e={enabled:ia.On};super(65,"lightbulb",e,{"editor.lightbulb.enabled":{type:"string",tags:["experimental"],enum:[ia.Off,ia.OnCode,ia.On],default:e.enabled,enumDescriptions:[p("editor.lightbulb.enabled.off","Disable the code action menu."),p("editor.lightbulb.enabled.onCode","Show the code action menu when the cursor is on lines with code."),p("editor.lightbulb.enabled.on","Show the code action menu when the cursor is on lines with code or on empty lines.")],description:p("enabled","Enables the Code Action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:Ti(e.enabled,this.defaultValue.enabled,[ia.Off,ia.OnCode,ia.On])}}}class vZ extends hi{constructor(){const e={enabled:!0,maxLineCount:5,defaultModel:"outlineModel",scrollWithEditor:!0};super(115,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:p("editor.stickyScroll.enabled","Shows the nested current scopes during the scroll at the top of the editor."),tags:["experimental"]},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:20,description:p("editor.stickyScroll.maxLineCount","Defines the maximum number of sticky lines to show.")},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:e.defaultModel,description:p("editor.stickyScroll.defaultModel","Defines the model to use for determining which lines to stick. If the outline model does not exist, it will fall back on the folding provider model which falls back on the indentation model. This order is respected in all three cases.")},"editor.stickyScroll.scrollWithEditor":{type:"boolean",default:e.scrollWithEditor,description:p("editor.stickyScroll.scrollWithEditor","Enable scrolling of Sticky Scroll with the editor's horizontal scrollbar.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:we(t.enabled,this.defaultValue.enabled),maxLineCount:jt.clampedInt(t.maxLineCount,this.defaultValue.maxLineCount,1,20),defaultModel:Ti(t.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"]),scrollWithEditor:we(t.scrollWithEditor,this.defaultValue.scrollWithEditor)}}}class bZ extends hi{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(141,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:p("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[p("editor.inlayHints.on","Inlay hints are enabled"),p("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",ot?"Ctrl+Option":"Ctrl+Alt"),p("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",ot?"Ctrl+Option":"Ctrl+Alt"),p("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:p("inlayHints.fontSize","Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:p("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:p("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return typeof t.enabled=="boolean"&&(t.enabled=t.enabled?"on":"off"),{enabled:Ti(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:jt.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:Rs.string(t.fontFamily,this.defaultValue.fontFamily),padding:we(t.padding,this.defaultValue.padding)}}}class CZ extends hi{constructor(){super(66,"lineDecorationsWidth",10)}validate(e){return typeof e=="string"&&/^\d+(\.\d+)?ch$/.test(e)?-parseFloat(e.substring(0,e.length-2)):jt.clampedInt(e,this.defaultValue,0,1e3)}compute(e,t,i){return i<0?jt.clampedInt(-i*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):i}}class wZ extends er{constructor(){super(67,"lineHeight",uo.lineHeight,e=>er.clamp(e,0,150),{markdownDescription:p("lineHeight",`Controls the line height. +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/freemarker2-CkuUKxEA.js","assets/index-DpfM9Q-q.js","assets/index-C9BtnHU_.css","assets/announcements-DXPjmohv.js","assets/LoadingWithResultModal-B5hmnBBo.js","assets/LoadingWithResultModal-BUso8QCA.css","assets/___vite-browser-external_commonjs-proxy-D5Dao81r.js","assets/handlebars-DFwLcN89.js","assets/html-b84dk0tF.js","assets/javascript-CdS9kcBx.js","assets/typescript-At7g-sU_.js","assets/liquid-C9UEz-zQ.js","assets/mdx-CTrDZr5s.js","assets/python-6SDGJmgD.js","assets/razor-CnHig80X.js","assets/xml-Bho0kI7b.js","assets/yaml-Nqp_BVLm.js","assets/cssMode-gfx9-M_K.js","assets/htmlMode-83odpPnD.js","assets/jsonMode-7AgGqp70.js","assets/tsMode-Bx98Lcxh.js"])))=>i.map(i=>d[i]); +import{n as Se,f as tn,g as Ut,j as Dh,q as y6,i as ha,o as Me,c as Pt,_ as hl,a as de,F as Fn,l as wr,s as Em,t as Rt,m as In,b as St,p as Af,d as Rf,x as Ot,w as Na,e as en,y as Co,h as zn,k as na,v as tP,z as H4,r as rk,A as Ss,B as xC,C as _G,D as vG,E as bG,G as CG,H as SN,I as Qc,J as L6,K as wG,L as SG,u as yG,M as LG}from"./index-DpfM9Q-q.js";import{a as Qn,u as kG}from"./announcements-DXPjmohv.js";import{M as xG,L as k6,a as DG}from"./LoadingWithResultModal-B5hmnBBo.js";import{r as IG,g as EG}from"./___vite-browser-external_commonjs-proxy-D5Dao81r.js";function mr(o,e=0){return o[o.length-(1+e)]}function NG(o){if(o.length===0)throw new Error("Invalid tail call");return[o.slice(0,o.length-1),o[o.length-1]]}function vi(o,e,t=(i,n)=>i===n){if(o===e)return!0;if(!o||!e||o.length!==e.length)return!1;for(let i=0,n=o.length;it(o[i],e))}function AG(o,e){let t=0,i=o-1;for(;t<=i;){const n=(t+i)/2|0,s=e(n);if(s<0)t=n+1;else if(s>0)i=n-1;else return n}return-(t+1)}function yN(o,e,t){if(o=o|0,o>=e.length)throw new TypeError("invalid index");const i=e[Math.floor(e.length*Math.random())],n=[],s=[],r=[];for(const a of e){const l=t(a,i);l<0?n.push(a):l>0?s.push(a):r.push(a)}return o!!e)}function U4(o){let e=0;for(let t=0;t0}function Nd(o,e=t=>t){const t=new Set;return o.filter(i=>{const n=e(i);return t.has(n)?!1:(t.add(n),!0)})}function nP(o,e){return o.length>0?o[0]:e}function no(o,e){let t=typeof e=="number"?o:0;typeof e=="number"?t=o:(t=0,e=o);const i=[];if(t<=e)for(let n=t;ne;n--)i.push(n);return i}function ak(o,e,t){const i=o.slice(0,e),n=o.slice(e);return i.concat(t,n)}function zD(o,e){const t=o.indexOf(e);t>-1&&(o.splice(t,1),o.unshift(e))}function N1(o,e){const t=o.indexOf(e);t>-1&&(o.splice(t,1),o.push(e))}function LN(o,e){for(const t of e)o.push(t)}function sP(o){return Array.isArray(o)?o:[o]}function MG(o,e,t){const i=I6(o,e),n=o.length,s=t.length;o.length=n+s;for(let r=n-1;r>=i;r--)o[r+s]=o[r];for(let r=0;r0}o.isGreaterThan=i;function n(s){return s===0}o.isNeitherLessOrGreaterThan=n,o.greaterThan=1,o.lessThan=-1,o.neitherLessOrGreaterThan=0})(Ub||(Ub={}));function co(o,e){return(t,i)=>e(o(t),o(i))}function PG(...o){return(e,t)=>{for(const i of o){const n=i(e,t);if(!Ub.isNeitherLessOrGreaterThan(n))return n}return Ub.neitherLessOrGreaterThan}}const ga=(o,e)=>o-e,OG=(o,e)=>ga(o?1:0,e?1:0);function E6(o){return(e,t)=>-o(e,t)}class Td{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t=0&&e(this.items[t]);)t--;const i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class nc{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(e){return new nc(t=>this.iterate(i=>e(i)?t(i):!0))}map(e){return new nc(t=>this.iterate(i=>t(e(i))))}findLast(e){let t;return this.iterate(i=>(e(i)&&(t=i),!0)),t}findLastMaxBy(e){let t,i=!0;return this.iterate(n=>((i||Ub.isGreaterThan(e(n,t)))&&(i=!1,t=n),!0)),t}}nc.empty=new nc(o=>{});class XS{constructor(e){this._indexMap=e}static createSortPermutation(e,t){const i=Array.from(e.keys()).sort((n,s)=>t(e[n],e[s]));return new XS(i)}apply(e){return e.map((t,i)=>e[this._indexMap[i]])}inverse(){const e=this._indexMap.slice();for(let t=0;t"u"}function sc(o){return!Yo(o)}function Yo(o){return ao(o)||o===null}function bt(o,e){if(!o)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function wu(o){if(Yo(o))throw new Error("Assertion Failed: argument is undefined or null");return o}function $b(o){return typeof o=="function"}function BG(o,e){const t=Math.min(o.length,e.length);for(let i=0;i{e[t]=i&&typeof i=="object"?jc(i):i}),e}function VG(o){if(!o||typeof o!="object")return o;const e=[o];for(;e.length>0;){const t=e.shift();Object.freeze(t);for(const i in t)if(T6.call(t,i)){const n=t[i];typeof n=="object"&&!Object.isFrozen(n)&&!FG(n)&&e.push(n)}}return o}const T6=Object.prototype.hasOwnProperty;function A6(o,e){return kN(o,e,new Set)}function kN(o,e,t){if(Yo(o))return o;const i=e(o);if(typeof i<"u")return i;if(Array.isArray(o)){const n=[];for(const s of o)n.push(kN(s,e,t));return n}if(Bs(o)){if(t.has(o))throw new Error("Cannot clone recursive data-structure");t.add(o);const n={};for(const s in o)T6.call(o,s)&&(n[s]=kN(o[s],e,t));return t.delete(o),n}return o}function lk(o,e,t=!0){return Bs(o)?(Bs(e)&&Object.keys(e).forEach(i=>{i in o?t&&(Bs(o[i])&&Bs(e[i])?lk(o[i],e[i],t):o[i]=e[i]):o[i]=e[i]}),o):e}function nr(o,e){if(o===e)return!0;if(o==null||e===null||e===void 0||typeof o!=typeof e||typeof o!="object"||Array.isArray(o)!==Array.isArray(e))return!1;let t,i;if(Array.isArray(o)){if(o.length!==e.length)return!1;for(t=0;tfunction(){const s=Array.prototype.slice.call(arguments,0);return e(n,s)},i={};for(const n of o)i[n]=t(n);return i}let UG=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function R6(o,e){let t;return e.length===0?t=o:t=o.replace(/\{(\d+)\}/g,(i,n)=>{const s=n[0],r=e[s];let a=i;return typeof r=="string"?a=r:(typeof r=="number"||typeof r=="boolean"||r===void 0||r===null)&&(a=String(r)),a}),UG&&(t="["+t.replace(/[aouei]/g,"$&$&")+"]"),t}function p(o,e,...t){return R6(e,t)}function Ve(o,e,...t){const i=R6(e,t);return{value:i,original:i}}var UD,$D;const Np="en";let JS=!1,ey=!1,uS=!1,M6=!1,rP=!1,aP=!1,P6=!1,T1,hS=Np,j4=Np,$G,xa;const wd=globalThis;let Ts;typeof wd.vscode<"u"&&typeof wd.vscode.process<"u"?Ts=wd.vscode.process:typeof process<"u"&&typeof((UD=process==null?void 0:process.versions)===null||UD===void 0?void 0:UD.node)=="string"&&(Ts=process);const qG=typeof(($D=Ts==null?void 0:Ts.versions)===null||$D===void 0?void 0:$D.electron)=="string",jG=qG&&(Ts==null?void 0:Ts.type)==="renderer";if(typeof Ts=="object"){JS=Ts.platform==="win32",ey=Ts.platform==="darwin",uS=Ts.platform==="linux",uS&&Ts.env.SNAP&&Ts.env.SNAP_REVISION,Ts.env.CI||Ts.env.BUILD_ARTIFACTSTAGINGDIRECTORY,T1=Np,hS=Np;const o=Ts.env.VSCODE_NLS_CONFIG;if(o)try{const e=JSON.parse(o),t=e.availableLanguages["*"];T1=e.locale,j4=e.osLocale,hS=t||Np,$G=e._translationsConfigFile}catch{}M6=!0}else typeof navigator=="object"&&!jG?(xa=navigator.userAgent,JS=xa.indexOf("Windows")>=0,ey=xa.indexOf("Macintosh")>=0,aP=(xa.indexOf("Macintosh")>=0||xa.indexOf("iPad")>=0||xa.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,uS=xa.indexOf("Linux")>=0,P6=(xa==null?void 0:xa.indexOf("Mobi"))>=0,rP=!0,p({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),T1=Np,hS=T1,j4=navigator.language):console.error("Unable to resolve platform.");const is=JS,ot=ey,js=uS,Ka=M6,Ih=rP,KG=rP&&typeof wd.importScripts=="function",GG=KG?wd.origin:void 0,il=aP,O6=P6,uc=xa,ZG=hS,YG=typeof wd.postMessage=="function"&&!wd.importScripts,F6=(()=>{if(YG){const o=[];wd.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,n=o.length;i{const i=++e;o.push({id:i,callback:t}),wd.postMessage({vscodeScheduleAsyncWork:i},"*")}}return o=>setTimeout(o)})(),ko=ey||aP?2:JS?1:3;let K4=!0,G4=!1;function B6(){if(!G4){G4=!0;const o=new Uint8Array(2);o[0]=1,o[1]=2,K4=new Uint16Array(o.buffer)[0]===513}return K4}const W6=!!(uc&&uc.indexOf("Chrome")>=0),QG=!!(uc&&uc.indexOf("Firefox")>=0),XG=!!(!W6&&uc&&uc.indexOf("Safari")>=0),JG=!!(uc&&uc.indexOf("Edg/")>=0),eZ=!!(uc&&uc.indexOf("Android")>=0),as={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}};var ht;(function(o){function e(C){return C&&typeof C=="object"&&typeof C[Symbol.iterator]=="function"}o.is=e;const t=Object.freeze([]);function i(){return t}o.empty=i;function*n(C){yield C}o.single=n;function s(C){return e(C)?C:n(C)}o.wrap=s;function r(C){return C||t}o.from=r;function*a(C){for(let w=C.length-1;w>=0;w--)yield C[w]}o.reverse=a;function l(C){return!C||C[Symbol.iterator]().next().done===!0}o.isEmpty=l;function c(C){return C[Symbol.iterator]().next().value}o.first=c;function d(C,w){for(const S of C)if(w(S))return!0;return!1}o.some=d;function u(C,w){for(const S of C)if(w(S))return S}o.find=u;function*h(C,w){for(const S of C)w(S)&&(yield S)}o.filter=h;function*g(C,w){let S=0;for(const y of C)yield w(y,S++)}o.map=g;function*f(...C){for(const w of C)yield*w}o.concat=f;function m(C,w,S){let y=S;for(const k of C)y=w(y,k);return y}o.reduce=m;function*_(C,w,S=C.length){for(w<0&&(w+=C.length),S<0?S+=C.length:S>C.length&&(S=C.length);w{n||(n=!0,this._remove(i))}}shift(){if(this._first!==sn.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==sn.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==sn.Undefined&&e.next!==sn.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===sn.Undefined&&e.next===sn.Undefined?(this._first=sn.Undefined,this._last=sn.Undefined):e.next===sn.Undefined?(this._last=this._last.prev,this._last.next=sn.Undefined):e.prev===sn.Undefined&&(this._first=this._first.next,this._first.prev=sn.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==sn.Undefined;)yield e.element,e=e.next}}const V6="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function tZ(o=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of V6)o.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const lP=tZ();function cP(o){let e=lP;if(o&&o instanceof RegExp)if(o.global)e=o;else{let t="g";o.ignoreCase&&(t+="i"),o.multiline&&(t+="m"),o.unicode&&(t+="u"),e=new RegExp(o.source,t)}return e.lastIndex=0,e}const H6=new Ws;H6.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function qb(o,e,t,i,n){if(e=cP(e),n||(n=ht.first(H6)),t.length>n.maxLen){let c=o-n.maxLen/2;return c<0?c=0:i+=c,t=t.substring(c,o+n.maxLen/2),qb(o,e,t,i,n)}const s=Date.now(),r=o-1-i;let a=-1,l=null;for(let c=1;!(Date.now()-s>=n.timeBudget);c++){const d=r-n.windowSize*c;e.lastIndex=Math.max(0,d);const u=iZ(e,t,r,a);if(!u&&l||(l=u,d<=0))break;a=d}if(l){const c={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return e.lastIndex=0,c}return null}function iZ(o,e,t,i){let n;for(;n=o.exec(e);){const s=n.index||0;if(s<=t&&o.lastIndex>=t)return n;if(i>0&&s>i)return null}return null}const Nl=8;class z6{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class U6{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class hi{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return ck(e,t)}compute(e,t,i){return i}}class rb{constructor(e,t){this.newValue=e,this.didChange=t}}function ck(o,e){if(typeof o!="object"||typeof e!="object"||!o||!e)return new rb(e,o!==e);if(Array.isArray(o)||Array.isArray(e)){const i=Array.isArray(o)&&Array.isArray(e)&&vi(o,e);return new rb(e,!i)}let t=!1;for(const i in e)if(e.hasOwnProperty(i)){const n=ck(o[i],e[i]);n.didChange&&(o[i]=n.newValue,t=!0)}return new rb(o,t)}class DC{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,t){return ck(e,t)}validate(e){return this.defaultValue}}class w_{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return ck(e,t)}validate(e){return typeof e>"u"?this.defaultValue:e}compute(e,t,i){return i}}function we(o,e){return typeof o>"u"?e:o==="false"?!1:!!o}class _t extends w_{constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="boolean",n.default=i),super(e,t,i,n)}validate(e){return we(e,this.defaultValue)}}function og(o,e,t,i){if(typeof o>"u")return e;let n=parseInt(o,10);return isNaN(n)?e:(n=Math.max(t,n),n=Math.min(i,n),n|0)}class jt extends w_{static clampedInt(e,t,i,n){return og(e,t,i,n)}constructor(e,t,i,n,s,r=void 0){typeof r<"u"&&(r.type="integer",r.default=i,r.minimum=n,r.maximum=s),super(e,t,i,r),this.minimum=n,this.maximum=s}validate(e){return jt.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}function nZ(o,e,t,i){if(typeof o>"u")return e;const n=er.float(o,e);return er.clamp(n,t,i)}class er extends w_{static clamp(e,t,i){return ei?i:e}static float(e,t){if(typeof e=="number")return e;if(typeof e>"u")return t;const i=parseFloat(e);return isNaN(i)?t:i}constructor(e,t,i,n,s){typeof s<"u"&&(s.type="number",s.default=i),super(e,t,i,s),this.validationFn=n}validate(e){return this.validationFn(er.float(e,this.defaultValue))}}class Rs extends w_{static string(e,t){return typeof e!="string"?t:e}constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="string",n.default=i),super(e,t,i,n)}validate(e){return Rs.string(e,this.defaultValue)}}function Ti(o,e,t,i){return typeof o!="string"?e:i&&o in i?i[o]:t.indexOf(o)===-1?e:o}class Si extends w_{constructor(e,t,i,n,s=void 0){typeof s<"u"&&(s.type="string",s.enum=n,s.default=i),super(e,t,i,s),this._allowedValues=n}validate(e){return Ti(e,this.defaultValue,this._allowedValues)}}class A1 extends hi{constructor(e,t,i,n,s,r,a=void 0){typeof a<"u"&&(a.type="string",a.enum=s,a.default=n),super(e,t,i,a),this._allowedValues=s,this._convert=r}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function sZ(o){switch(o){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class oZ extends hi{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[p("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached."),p("accessibilitySupport.on","Optimize for usage with a Screen Reader."),p("accessibilitySupport.off","Assume a screen reader is not attached.")],default:"auto",tags:["accessibility"],description:p("accessibilitySupport","Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return i===0?e.accessibilitySupport:i}}class rZ extends hi{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(23,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:p("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:p("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertSpace:we(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:we(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function aZ(o){switch(o){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var Vn;(function(o){o[o.Line=1]="Line",o[o.Block=2]="Block",o[o.Underline=3]="Underline",o[o.LineThin=4]="LineThin",o[o.BlockOutline=5]="BlockOutline",o[o.UnderlineThin=6]="UnderlineThin"})(Vn||(Vn={}));function lZ(o){switch(o){case"line":return Vn.Line;case"block":return Vn.Block;case"underline":return Vn.Underline;case"line-thin":return Vn.LineThin;case"block-outline":return Vn.BlockOutline;case"underline-thin":return Vn.UnderlineThin}}class cZ extends DC{constructor(){super(142)}compute(e,t,i){const n=["monaco-editor"];return t.get(39)&&n.push(t.get(39)),e.extraEditorClassName&&n.push(e.extraEditorClassName),t.get(74)==="default"?n.push("mouse-default"):t.get(74)==="copy"&&n.push("mouse-copy"),t.get(111)&&n.push("showUnused"),t.get(140)&&n.push("showDeprecated"),n.join(" ")}}class dZ extends _t{constructor(){super(37,"emptySelectionClipboard",!0,{description:p("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}class uZ extends hi{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(41,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:p("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[p("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),p("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),p("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:p("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[p("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),p("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),p("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:p("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:p("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:ot},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:p("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:p("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{cursorMoveOnType:we(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":Ti(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":Ti(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:we(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:we(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:we(t.loop,this.defaultValue.loop)}}}class Qo extends hi{constructor(){super(51,"fontLigatures",Qo.OFF,{anyOf:[{type:"boolean",description:p("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:p("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:p("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"||e.length===0?Qo.OFF:e==="true"?Qo.ON:e:e?Qo.ON:Qo.OFF}}Qo.OFF='"liga" off, "calt" off';Qo.ON='"liga" on, "calt" on';class Ha extends hi{constructor(){super(54,"fontVariations",Ha.OFF,{anyOf:[{type:"boolean",description:p("fontVariations","Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:p("fontVariationSettings","Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:p("fontVariationsGeneral","Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?Ha.OFF:e==="true"?Ha.TRANSLATE:e:e?Ha.TRANSLATE:Ha.OFF}compute(e,t,i){return e.fontInfo.fontVariationSettings}}Ha.OFF="normal";Ha.TRANSLATE="translate";class hZ extends DC{constructor(){super(50)}compute(e,t,i){return e.fontInfo}}class gZ extends w_{constructor(){super(52,"fontSize",uo.fontSize,{type:"number",minimum:6,maximum:100,default:uo.fontSize,description:p("fontSize","Controls the font size in pixels.")})}validate(e){const t=er.float(e,this.defaultValue);return t===0?uo.fontSize:er.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}class Ul extends hi{constructor(){super(53,"fontWeight",uo.fontWeight,{anyOf:[{type:"number",minimum:Ul.MINIMUM_VALUE,maximum:Ul.MAXIMUM_VALUE,errorMessage:p("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:Ul.SUGGESTION_VALUES}],default:uo.fontWeight,description:p("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(jt.clampedInt(e,uo.fontWeight,Ul.MINIMUM_VALUE,Ul.MAXIMUM_VALUE))}}Ul.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"];Ul.MINIMUM_VALUE=1;Ul.MAXIMUM_VALUE=1e3;class fZ extends hi{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[p("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),p("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),p("editor.gotoLocation.multiple.goto","Go to the primary result and enable Peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(58,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:p("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":{description:p("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleTypeDefinitions":{description:p("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleDeclarations":{description:p("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleImplementations":{description:p("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleReferences":{description:p("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist."),...t},"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:p("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:p("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:p("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:p("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:p("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var t,i,n,s,r;if(!e||typeof e!="object")return this.defaultValue;const a=e;return{multiple:Ti(a.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(t=a.multipleDefinitions)!==null&&t!==void 0?t:Ti(a.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(i=a.multipleTypeDefinitions)!==null&&i!==void 0?i:Ti(a.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(n=a.multipleDeclarations)!==null&&n!==void 0?n:Ti(a.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(s=a.multipleImplementations)!==null&&s!==void 0?s:Ti(a.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(r=a.multipleReferences)!==null&&r!==void 0?r:Ti(a.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:Rs.string(a.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:Rs.string(a.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:Rs.string(a.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:Rs.string(a.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:Rs.string(a.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class pZ extends hi{constructor(){const e={enabled:!0,delay:300,hidingDelay:300,sticky:!0,above:!0};super(60,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:p("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:p("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:p("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.hidingDelay":{type:"integer",minimum:0,default:e.hidingDelay,description:p("hover.hidingDelay","Controls the delay in milliseconds after which the hover is hidden. Requires `editor.hover.sticky` to be enabled.")},"editor.hover.above":{type:"boolean",default:e.above,description:p("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:we(t.enabled,this.defaultValue.enabled),delay:jt.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:we(t.sticky,this.defaultValue.sticky),hidingDelay:jt.clampedInt(t.hidingDelay,this.defaultValue.hidingDelay,0,6e5),above:we(t.above,this.defaultValue.above)}}}class im extends DC{constructor(){super(145)}compute(e,t,i){return im.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio,glyphMarginDecorationLaneCount:e.glyphMarginDecorationLaneCount})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=Math.floor(e.paddingTop/e.lineHeight);let n=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(n=Math.max(n,t-1));const s=(i+e.viewLineCount+n)/(e.pixelRatio*e.height),r=Math.floor(e.viewLineCount/s);return{typicalViewportLineCount:t,extraLinesBeforeFirstLine:i,extraLinesBeyondLastLine:n,desiredRatio:s,minimapLineCount:r}}static _computeMinimapLayout(e,t){const i=e.outerWidth,n=e.outerHeight,s=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(s*n),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:n};const r=t.stableMinimapLayoutInput,a=r&&e.outerHeight===r.outerHeight&&e.lineHeight===r.lineHeight&&e.typicalHalfwidthCharacterWidth===r.typicalHalfwidthCharacterWidth&&e.pixelRatio===r.pixelRatio&&e.scrollBeyondLastLine===r.scrollBeyondLastLine&&e.paddingTop===r.paddingTop&&e.paddingBottom===r.paddingBottom&&e.minimap.enabled===r.minimap.enabled&&e.minimap.side===r.minimap.side&&e.minimap.size===r.minimap.size&&e.minimap.showSlider===r.minimap.showSlider&&e.minimap.renderCharacters===r.minimap.renderCharacters&&e.minimap.maxColumn===r.minimap.maxColumn&&e.minimap.scale===r.minimap.scale&&e.verticalScrollbarWidth===r.verticalScrollbarWidth&&e.isViewportWrapping===r.isViewportWrapping,l=e.lineHeight,c=e.typicalHalfwidthCharacterWidth,d=e.scrollBeyondLastLine,u=e.minimap.renderCharacters;let h=s>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const g=e.minimap.maxColumn,f=e.minimap.size,m=e.minimap.side,_=e.verticalScrollbarWidth,v=e.viewLineCount,b=e.remainingWidth,C=e.isViewportWrapping,w=u?2:3;let S=Math.floor(s*n);const y=S/s;let k=!1,I=!1,T=w*h,B=h/s,P=1;if(f==="fill"||f==="fit"){const{typicalViewportLineCount:Ee,extraLinesBeforeFirstLine:_e,extraLinesBeyondLastLine:je,desiredRatio:$e,minimapLineCount:Ae}=im.computeContainedMinimapLineCount({viewLineCount:v,scrollBeyondLastLine:d,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:n,lineHeight:l,pixelRatio:s});if(v/Ae>1)k=!0,I=!0,h=1,T=1,B=h/s;else{let Ii=!1,Is=h+1;if(f==="fit"){const ln=Math.ceil((_e+v+je)*T);C&&a&&b<=t.stableFitRemainingWidth?(Ii=!0,Is=t.stableFitMaxMinimapScale):Ii=ln>S}if(f==="fill"||Ii){k=!0;const ln=h;T=Math.min(l*s,Math.max(1,Math.floor(1/$e))),C&&a&&b<=t.stableFitRemainingWidth&&(Is=t.stableFitMaxMinimapScale),h=Math.min(Is,Math.max(1,Math.floor(T/w))),h>ln&&(P=Math.min(2,h/ln)),B=h/s/P,S=Math.ceil(Math.max(Ee,_e+v+je)*T),C?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=b,t.stableFitMaxMinimapScale=h):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const M=Math.floor(g*B),F=Math.min(M,Math.max(0,Math.floor((b-_-2)*B/(c+B)))+Nl);let V=Math.floor(s*F);const j=V/s;V=Math.floor(V*P);const J=u?1:2,Ce=m==="left"?0:i-F-_;return{renderMinimap:J,minimapLeft:Ce,minimapWidth:F,minimapHeightIsEditorHeight:k,minimapIsSampling:I,minimapScale:h,minimapLineHeight:T,minimapCanvasInnerWidth:V,minimapCanvasInnerHeight:S,minimapCanvasOuterWidth:j,minimapCanvasOuterHeight:y}}static computeLayout(e,t){const i=t.outerWidth|0,n=t.outerHeight|0,s=t.lineHeight|0,r=t.lineNumbersDigitCount|0,a=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,c=t.pixelRatio,d=t.viewLineCount,u=e.get(137),h=u==="inherit"?e.get(136):u,g=h==="inherit"?e.get(132):h,f=e.get(135),m=t.isDominatedByLongLines,_=e.get(57),v=e.get(68).renderType!==0,b=e.get(69),C=e.get(105),w=e.get(84),S=e.get(73),y=e.get(103),k=y.verticalScrollbarSize,I=y.verticalHasArrows,T=y.arrowSize,B=y.horizontalScrollbarSize,P=e.get(43),M=e.get(110)!=="never";let F=e.get(66);P&&M&&(F+=16);let V=0;if(v){const pn=Math.max(r,b);V=Math.round(pn*l)}let j=0;_&&(j=s*t.glyphMarginDecorationLaneCount);let J=0,Ce=J+j,Ee=Ce+V,_e=Ee+F;const je=i-j-V-F;let $e=!1,Ae=!1,pe=-1;h==="inherit"&&m?($e=!0,Ae=!0):g==="on"||g==="bounded"?Ae=!0:g==="wordWrapColumn"&&(pe=f);const Ii=im._computeMinimapLayout({outerWidth:i,outerHeight:n,lineHeight:s,typicalHalfwidthCharacterWidth:a,pixelRatio:c,scrollBeyondLastLine:C,paddingTop:w.top,paddingBottom:w.bottom,minimap:S,verticalScrollbarWidth:k,viewLineCount:d,remainingWidth:je,isViewportWrapping:Ae},t.memory||new U6);Ii.renderMinimap!==0&&Ii.minimapLeft===0&&(J+=Ii.minimapWidth,Ce+=Ii.minimapWidth,Ee+=Ii.minimapWidth,_e+=Ii.minimapWidth);const Is=je-Ii.minimapWidth,ln=Math.max(1,Math.floor((Is-k-2)/a)),Nt=I?T:0;return Ae&&(pe=Math.max(1,ln),g==="bounded"&&(pe=Math.min(pe,f))),{width:i,height:n,glyphMarginLeft:J,glyphMarginWidth:j,glyphMarginDecorationLaneCount:t.glyphMarginDecorationLaneCount,lineNumbersLeft:Ce,lineNumbersWidth:V,decorationsLeft:Ee,decorationsWidth:F,contentLeft:_e,contentWidth:Is,minimap:Ii,viewportColumn:ln,isWordWrapMinified:$e,isViewportWrapping:Ae,wrappingColumn:pe,verticalScrollbarWidth:k,horizontalScrollbarHeight:B,overviewRuler:{top:Nt,width:k,height:n-2*Nt,right:0}}}}class mZ extends hi{constructor(){super(139,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[p("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),p("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:p("wrappingStrategy","Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(e){return Ti(e,"simple",["simple","advanced"])}compute(e,t,i){return t.get(2)===2?"advanced":i}}var ia;(function(o){o.Off="off",o.OnCode="onCode",o.On="on"})(ia||(ia={}));class _Z extends hi{constructor(){const e={enabled:ia.On};super(65,"lightbulb",e,{"editor.lightbulb.enabled":{type:"string",tags:["experimental"],enum:[ia.Off,ia.OnCode,ia.On],default:e.enabled,enumDescriptions:[p("editor.lightbulb.enabled.off","Disable the code action menu."),p("editor.lightbulb.enabled.onCode","Show the code action menu when the cursor is on lines with code."),p("editor.lightbulb.enabled.on","Show the code action menu when the cursor is on lines with code or on empty lines.")],description:p("enabled","Enables the Code Action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:Ti(e.enabled,this.defaultValue.enabled,[ia.Off,ia.OnCode,ia.On])}}}class vZ extends hi{constructor(){const e={enabled:!0,maxLineCount:5,defaultModel:"outlineModel",scrollWithEditor:!0};super(115,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:p("editor.stickyScroll.enabled","Shows the nested current scopes during the scroll at the top of the editor."),tags:["experimental"]},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:20,description:p("editor.stickyScroll.maxLineCount","Defines the maximum number of sticky lines to show.")},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:e.defaultModel,description:p("editor.stickyScroll.defaultModel","Defines the model to use for determining which lines to stick. If the outline model does not exist, it will fall back on the folding provider model which falls back on the indentation model. This order is respected in all three cases.")},"editor.stickyScroll.scrollWithEditor":{type:"boolean",default:e.scrollWithEditor,description:p("editor.stickyScroll.scrollWithEditor","Enable scrolling of Sticky Scroll with the editor's horizontal scrollbar.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:we(t.enabled,this.defaultValue.enabled),maxLineCount:jt.clampedInt(t.maxLineCount,this.defaultValue.maxLineCount,1,20),defaultModel:Ti(t.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"]),scrollWithEditor:we(t.scrollWithEditor,this.defaultValue.scrollWithEditor)}}}class bZ extends hi{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(141,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:p("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[p("editor.inlayHints.on","Inlay hints are enabled"),p("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",ot?"Ctrl+Option":"Ctrl+Alt"),p("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",ot?"Ctrl+Option":"Ctrl+Alt"),p("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:p("inlayHints.fontSize","Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:p("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:p("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return typeof t.enabled=="boolean"&&(t.enabled=t.enabled?"on":"off"),{enabled:Ti(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:jt.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:Rs.string(t.fontFamily,this.defaultValue.fontFamily),padding:we(t.padding,this.defaultValue.padding)}}}class CZ extends hi{constructor(){super(66,"lineDecorationsWidth",10)}validate(e){return typeof e=="string"&&/^\d+(\.\d+)?ch$/.test(e)?-parseFloat(e.substring(0,e.length-2)):jt.clampedInt(e,this.defaultValue,0,1e3)}compute(e,t,i){return i<0?jt.clampedInt(-i*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):i}}class wZ extends er{constructor(){super(67,"lineHeight",uo.lineHeight,e=>er.clamp(e,0,150),{markdownDescription:p("lineHeight",`Controls the line height. - Use 0 to automatically compute the line height from the font size. - Values between 0 and 8 will be used as a multiplier with the font size. - Values greater than or equal to 8 will be used as effective values.`)})}compute(e,t,i){return e.fontInfo.lineHeight}}class SZ extends hi{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1,showRegionSectionHeaders:!0,showMarkSectionHeaders:!0,sectionHeaderFontSize:9,sectionHeaderLetterSpacing:1};super(73,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:p("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:e.autohide,description:p("minimap.autohide","Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[p("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),p("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),p("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:p("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:p("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:p("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:p("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:p("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:p("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")},"editor.minimap.showRegionSectionHeaders":{type:"boolean",default:e.showRegionSectionHeaders,description:p("minimap.showRegionSectionHeaders","Controls whether named regions are shown as section headers in the minimap.")},"editor.minimap.showMarkSectionHeaders":{type:"boolean",default:e.showMarkSectionHeaders,description:p("minimap.showMarkSectionHeaders","Controls whether MARK: comments are shown as section headers in the minimap.")},"editor.minimap.sectionHeaderFontSize":{type:"number",default:e.sectionHeaderFontSize,description:p("minimap.sectionHeaderFontSize","Controls the font size of section headers in the minimap.")},"editor.minimap.sectionHeaderLetterSpacing":{type:"number",default:e.sectionHeaderLetterSpacing,description:p("minimap.sectionHeaderLetterSpacing","Controls the amount of space (in pixels) between characters of section header. This helps the readability of the header in small font sizes.")}})}validate(e){var t,i;if(!e||typeof e!="object")return this.defaultValue;const n=e;return{enabled:we(n.enabled,this.defaultValue.enabled),autohide:we(n.autohide,this.defaultValue.autohide),size:Ti(n.size,this.defaultValue.size,["proportional","fill","fit"]),side:Ti(n.side,this.defaultValue.side,["right","left"]),showSlider:Ti(n.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:we(n.renderCharacters,this.defaultValue.renderCharacters),scale:jt.clampedInt(n.scale,1,1,3),maxColumn:jt.clampedInt(n.maxColumn,this.defaultValue.maxColumn,1,1e4),showRegionSectionHeaders:we(n.showRegionSectionHeaders,this.defaultValue.showRegionSectionHeaders),showMarkSectionHeaders:we(n.showMarkSectionHeaders,this.defaultValue.showMarkSectionHeaders),sectionHeaderFontSize:er.clamp((t=n.sectionHeaderFontSize)!==null&&t!==void 0?t:this.defaultValue.sectionHeaderFontSize,4,32),sectionHeaderLetterSpacing:er.clamp((i=n.sectionHeaderLetterSpacing)!==null&&i!==void 0?i:this.defaultValue.sectionHeaderLetterSpacing,0,5)}}}function yZ(o){return o==="ctrlCmd"?ot?"metaKey":"ctrlKey":"altKey"}class LZ extends hi{constructor(){super(84,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:p("padding.top","Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:p("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{top:jt.clampedInt(t.top,0,0,1e3),bottom:jt.clampedInt(t.bottom,0,0,1e3)}}}class kZ extends hi{constructor(){const e={enabled:!0,cycle:!0};super(86,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:p("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:p("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:we(t.enabled,this.defaultValue.enabled),cycle:we(t.cycle,this.defaultValue.cycle)}}}class xZ extends DC{constructor(){super(143)}compute(e,t,i){return e.pixelRatio}}class DZ extends hi{constructor(){const e={other:"on",comments:"off",strings:"off"},t=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[p("on","Quick suggestions show inside the suggest widget"),p("inline","Quick suggestions show as ghost text"),p("off","Quick suggestions are disabled")]}];super(89,"quickSuggestions",e,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:t,default:e.strings,description:p("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{anyOf:t,default:e.comments,description:p("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{anyOf:t,default:e.other,description:p("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}},default:e,markdownDescription:p("quickSuggestions","Controls whether suggestions should automatically show up while typing. This can be controlled for typing in comments, strings, and other code. Quick suggestion can be configured to show as ghost text or with the suggest widget. Also be aware of the '{0}'-setting which controls if suggestions are triggered by special characters.","#editor.suggestOnTriggerCharacters#")}),this.defaultValue=e}validate(e){if(typeof e=="boolean"){const c=e?"on":"off";return{comments:c,strings:c,other:c}}if(!e||typeof e!="object")return this.defaultValue;const{other:t,comments:i,strings:n}=e,s=["on","inline","off"];let r,a,l;return typeof t=="boolean"?r=t?"on":"off":r=Ti(t,this.defaultValue.other,s),typeof i=="boolean"?a=i?"on":"off":a=Ti(i,this.defaultValue.comments,s),typeof n=="boolean"?l=n?"on":"off":l=Ti(n,this.defaultValue.strings,s),{other:r,comments:a,strings:l}}}class IZ extends hi{constructor(){super(68,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[p("lineNumbers.off","Line numbers are not rendered."),p("lineNumbers.on","Line numbers are rendered as absolute number."),p("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),p("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:p("lineNumbers","Controls the display of line numbers.")})}validate(e){let t=this.defaultValue.renderType,i=this.defaultValue.renderFn;return typeof e<"u"&&(typeof e=="function"?(t=4,i=e):e==="interval"?t=3:e==="relative"?t=2:e==="on"?t=1:t=0),{renderType:t,renderFn:i}}}function ty(o){const e=o.get(98);return e==="editable"?o.get(91):e!=="on"}class EZ extends hi{constructor(){const e=[],t={type:"number",description:p("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(102,"rulers",e,{type:"array",items:{anyOf:[t,{type:["object"],properties:{column:t,color:{type:"string",description:p("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:p("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(e){if(Array.isArray(e)){const t=[];for(const i of e)if(typeof i=="number")t.push({column:jt.clampedInt(i,0,0,1e4),color:null});else if(i&&typeof i=="object"){const n=i;t.push({column:jt.clampedInt(n.column,0,0,1e4),color:n.color})}return t.sort((i,n)=>i.column-n.column),t}return this.defaultValue}}class NZ extends hi{constructor(){super(92,"readOnlyMessage",void 0)}validate(e){return!e||typeof e!="object"?this.defaultValue:e}}function Z4(o,e){if(typeof o!="string")return e;switch(o){case"hidden":return 2;case"visible":return 3;default:return 1}}let TZ=class extends hi{constructor(){const e={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1,ignoreHorizontalScrollbarInContentHeight:!1};super(103,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[p("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),p("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),p("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:p("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[p("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),p("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),p("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:p("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:p("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:p("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:p("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")},"editor.scrollbar.ignoreHorizontalScrollbarInContentHeight":{type:"boolean",default:e.ignoreHorizontalScrollbarInContentHeight,description:p("scrollbar.ignoreHorizontalScrollbarInContentHeight","When set, the horizontal scrollbar will not increase the size of the editor's content.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e,i=jt.clampedInt(t.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),n=jt.clampedInt(t.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:jt.clampedInt(t.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:Z4(t.vertical,this.defaultValue.vertical),horizontal:Z4(t.horizontal,this.defaultValue.horizontal),useShadows:we(t.useShadows,this.defaultValue.useShadows),verticalHasArrows:we(t.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:we(t.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:we(t.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:we(t.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:i,horizontalSliderSize:jt.clampedInt(t.horizontalSliderSize,i,0,1e3),verticalScrollbarSize:n,verticalSliderSize:jt.clampedInt(t.verticalSliderSize,n,0,1e3),scrollByPage:we(t.scrollByPage,this.defaultValue.scrollByPage),ignoreHorizontalScrollbarInContentHeight:we(t.ignoreHorizontalScrollbarInContentHeight,this.defaultValue.ignoreHorizontalScrollbarInContentHeight)}}};const Ho="inUntrustedWorkspace",oo={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments",includeStrings:"editor.unicodeHighlight.includeStrings",allowedLocales:"editor.unicodeHighlight.allowedLocales"};class AZ extends hi{constructor(){const e={nonBasicASCII:Ho,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:Ho,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(125,"unicodeHighlight",e,{[oo.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,Ho],default:e.nonBasicASCII,description:p("unicodeHighlight.nonBasicASCII","Controls whether all non-basic ASCII characters are highlighted. Only characters between U+0020 and U+007E, tab, line-feed and carriage-return are considered basic ASCII.")},[oo.invisibleCharacters]:{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:p("unicodeHighlight.invisibleCharacters","Controls whether characters that just reserve space or have no width at all are highlighted.")},[oo.ambiguousCharacters]:{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:p("unicodeHighlight.ambiguousCharacters","Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},[oo.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,Ho],default:e.includeComments,description:p("unicodeHighlight.includeComments","Controls whether characters in comments should also be subject to Unicode highlighting.")},[oo.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,Ho],default:e.includeStrings,description:p("unicodeHighlight.includeStrings","Controls whether characters in strings should also be subject to Unicode highlighting.")},[oo.allowedCharacters]:{restricted:!0,type:"object",default:e.allowedCharacters,description:p("unicodeHighlight.allowedCharacters","Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[oo.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:e.allowedLocales,description:p("unicodeHighlight.allowedLocales","Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(e,t){let i=!1;t.allowedCharacters&&e&&(nr(e.allowedCharacters,t.allowedCharacters)||(e={...e,allowedCharacters:t.allowedCharacters},i=!0)),t.allowedLocales&&e&&(nr(e.allowedLocales,t.allowedLocales)||(e={...e,allowedLocales:t.allowedLocales},i=!0));const n=super.applyUpdate(e,t);return i?new rb(n.newValue,!0):n}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{nonBasicASCII:nm(t.nonBasicASCII,Ho,[!0,!1,Ho]),invisibleCharacters:we(t.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:we(t.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:nm(t.includeComments,Ho,[!0,!1,Ho]),includeStrings:nm(t.includeStrings,Ho,[!0,!1,Ho]),allowedCharacters:this.validateBooleanMap(e.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(e.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(e,t){if(typeof e!="object"||!e)return t;const i={};for(const[n,s]of Object.entries(e))s===!0&&(i[n]=!0);return i}}class RZ extends hi{constructor(){const e={enabled:!0,mode:"subwordSmart",showToolbar:"onHover",suppressSuggestions:!1,keepOnBlur:!1,fontFamily:"default"};super(62,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:p("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")},"editor.inlineSuggest.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[p("inlineSuggest.showToolbar.always","Show the inline suggestion toolbar whenever an inline suggestion is shown."),p("inlineSuggest.showToolbar.onHover","Show the inline suggestion toolbar when hovering over an inline suggestion."),p("inlineSuggest.showToolbar.never","Never show the inline suggestion toolbar.")],description:p("inlineSuggest.showToolbar","Controls when to show the inline suggestion toolbar.")},"editor.inlineSuggest.suppressSuggestions":{type:"boolean",default:e.suppressSuggestions,description:p("inlineSuggest.suppressSuggestions","Controls how inline suggestions interact with the suggest widget. If enabled, the suggest widget is not shown automatically when inline suggestions are available.")},"editor.inlineSuggest.fontFamily":{type:"string",default:e.fontFamily,description:p("inlineSuggest.fontFamily","Controls the font family of the inline suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:we(t.enabled,this.defaultValue.enabled),mode:Ti(t.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"]),showToolbar:Ti(t.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),suppressSuggestions:we(t.suppressSuggestions,this.defaultValue.suppressSuggestions),keepOnBlur:we(t.keepOnBlur,this.defaultValue.keepOnBlur),fontFamily:Rs.string(t.fontFamily,this.defaultValue.fontFamily)}}}class MZ extends hi{constructor(){const e={enabled:!1,showToolbar:"onHover",fontFamily:"default",keepOnBlur:!1,backgroundColoring:!1};super(63,"experimentalInlineEdit",e,{"editor.experimentalInlineEdit.enabled":{type:"boolean",default:e.enabled,description:p("inlineEdit.enabled","Controls whether to show inline edits in the editor.")},"editor.experimentalInlineEdit.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[p("inlineEdit.showToolbar.always","Show the inline edit toolbar whenever an inline suggestion is shown."),p("inlineEdit.showToolbar.onHover","Show the inline edit toolbar when hovering over an inline suggestion."),p("inlineEdit.showToolbar.never","Never show the inline edit toolbar.")],description:p("inlineEdit.showToolbar","Controls when to show the inline edit toolbar.")},"editor.experimentalInlineEdit.fontFamily":{type:"string",default:e.fontFamily,description:p("inlineEdit.fontFamily","Controls the font family of the inline edit.")},"editor.experimentalInlineEdit.backgroundColoring":{type:"boolean",default:e.backgroundColoring,description:p("inlineEdit.backgroundColoring","Controls whether to color the background of inline edits.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:we(t.enabled,this.defaultValue.enabled),showToolbar:Ti(t.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),fontFamily:Rs.string(t.fontFamily,this.defaultValue.fontFamily),keepOnBlur:we(t.keepOnBlur,this.defaultValue.keepOnBlur),backgroundColoring:we(t.backgroundColoring,this.defaultValue.backgroundColoring)}}}class PZ extends hi{constructor(){const e={enabled:as.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:as.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(15,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,markdownDescription:p("bracketPairColorization.enabled","Controls whether bracket pair colorization is enabled or not. Use {0} to override the bracket highlight colors.","`#workbench.colorCustomizations#`")},"editor.bracketPairColorization.independentColorPoolPerBracketType":{type:"boolean",default:e.independentColorPoolPerBracketType,description:p("bracketPairColorization.independentColorPoolPerBracketType","Controls whether each bracket type has its own independent color pool.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:we(t.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:we(t.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}}class OZ extends hi{constructor(){const e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(16,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[p("editor.guides.bracketPairs.true","Enables bracket pair guides."),p("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),p("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:e.bracketPairs,description:p("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[p("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),p("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),p("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:p("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:p("editor.guides.highlightActiveBracketPair","Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:p("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[p("editor.guides.highlightActiveIndentation.true","Highlights the active indent guide."),p("editor.guides.highlightActiveIndentation.always","Highlights the active indent guide even if bracket guides are highlighted."),p("editor.guides.highlightActiveIndentation.false","Do not highlight the active indent guide.")],default:e.highlightActiveIndentation,description:p("editor.guides.highlightActiveIndentation","Controls whether the editor should highlight the active indent guide.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{bracketPairs:nm(t.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:nm(t.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:we(t.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:we(t.indentation,this.defaultValue.indentation),highlightActiveIndentation:nm(t.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}function nm(o,e,t){const i=t.indexOf(o);return i===-1?e:t[i]}class FZ extends hi{constructor(){const e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!1,localityBonus:!1,shareSuggestSelections:!1,selectionMode:"always",showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,matchOnWordStartOnly:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(118,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[p("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),p("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:p("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:p("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:p("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:p("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.selectionMode":{type:"string",enum:["always","never","whenTriggerCharacter","whenQuickSuggestion"],enumDescriptions:[p("suggest.insertMode.always","Always select a suggestion when automatically triggering IntelliSense."),p("suggest.insertMode.never","Never select a suggestion when automatically triggering IntelliSense."),p("suggest.insertMode.whenTriggerCharacter","Select a suggestion only when triggering IntelliSense from a trigger character."),p("suggest.insertMode.whenQuickSuggestion","Select a suggestion only when triggering IntelliSense as you type.")],default:e.selectionMode,markdownDescription:p("suggest.selectionMode","Controls whether a suggestion is selected when the widget shows. Note that this only applies to automatically triggered suggestions (`#editor.quickSuggestions#` and `#editor.suggestOnTriggerCharacters#`) and that a suggestion is always selected when explicitly invoked, e.g via `Ctrl+Space`.")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:p("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:p("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:p("suggest.showStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:p("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:p("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget.")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:p("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:p("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.matchOnWordStartOnly","When enabled IntelliSense filtering requires that the first character matches on a word start. For example, `c` on `Console` or `WebContext` but _not_ on `description`. When disabled IntelliSense will show more results but still sorts them by match quality.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertMode:Ti(t.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:we(t.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:we(t.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:we(t.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:we(t.shareSuggestSelections,this.defaultValue.shareSuggestSelections),selectionMode:Ti(t.selectionMode,this.defaultValue.selectionMode,["always","never","whenQuickSuggestion","whenTriggerCharacter"]),showIcons:we(t.showIcons,this.defaultValue.showIcons),showStatusBar:we(t.showStatusBar,this.defaultValue.showStatusBar),preview:we(t.preview,this.defaultValue.preview),previewMode:Ti(t.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:we(t.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:we(t.showMethods,this.defaultValue.showMethods),showFunctions:we(t.showFunctions,this.defaultValue.showFunctions),showConstructors:we(t.showConstructors,this.defaultValue.showConstructors),showDeprecated:we(t.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:we(t.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:we(t.showFields,this.defaultValue.showFields),showVariables:we(t.showVariables,this.defaultValue.showVariables),showClasses:we(t.showClasses,this.defaultValue.showClasses),showStructs:we(t.showStructs,this.defaultValue.showStructs),showInterfaces:we(t.showInterfaces,this.defaultValue.showInterfaces),showModules:we(t.showModules,this.defaultValue.showModules),showProperties:we(t.showProperties,this.defaultValue.showProperties),showEvents:we(t.showEvents,this.defaultValue.showEvents),showOperators:we(t.showOperators,this.defaultValue.showOperators),showUnits:we(t.showUnits,this.defaultValue.showUnits),showValues:we(t.showValues,this.defaultValue.showValues),showConstants:we(t.showConstants,this.defaultValue.showConstants),showEnums:we(t.showEnums,this.defaultValue.showEnums),showEnumMembers:we(t.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:we(t.showKeywords,this.defaultValue.showKeywords),showWords:we(t.showWords,this.defaultValue.showWords),showColors:we(t.showColors,this.defaultValue.showColors),showFiles:we(t.showFiles,this.defaultValue.showFiles),showReferences:we(t.showReferences,this.defaultValue.showReferences),showFolders:we(t.showFolders,this.defaultValue.showFolders),showTypeParameters:we(t.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:we(t.showSnippets,this.defaultValue.showSnippets),showUsers:we(t.showUsers,this.defaultValue.showUsers),showIssues:we(t.showIssues,this.defaultValue.showIssues)}}}class BZ extends hi{constructor(){super(113,"smartSelect",{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:p("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"},"editor.smartSelect.selectSubwords":{description:p("selectSubwords","Whether subwords (like 'foo' in 'fooBar' or 'foo_bar') should be selected."),default:!0,type:"boolean"}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{selectLeadingAndTrailingWhitespace:we(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace),selectSubwords:we(e.selectSubwords,this.defaultValue.selectSubwords)}}}class WZ extends hi{constructor(){const e=[];super(130,"wordSegmenterLocales",e,{anyOf:[{description:p("wordSegmenterLocales","Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"string"},{description:p("wordSegmenterLocales","Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"array",items:{type:"string"}}]})}validate(e){if(typeof e=="string"&&(e=[e]),Array.isArray(e)){const t=[];for(const i of e)if(typeof i=="string")try{Intl.Segmenter.supportedLocalesOf(i).length>0&&t.push(i)}catch{}return t}return this.defaultValue}}class VZ extends hi{constructor(){super(138,"wrappingIndent",1,{"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[p("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),p("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),p("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),p("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:p("wrappingIndent","Controls the indentation of wrapped lines."),default:"same"}})}validate(e){switch(e){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}return 1}compute(e,t,i){return t.get(2)===2?0:i}}class HZ extends DC{constructor(){super(146)}compute(e,t,i){const n=t.get(145);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:n.isWordWrapMinified,isViewportWrapping:n.isViewportWrapping,wrappingColumn:n.wrappingColumn}}}class zZ extends hi{constructor(){const e={enabled:!0,showDropSelector:"afterDrop"};super(36,"dropIntoEditor",e,{"editor.dropIntoEditor.enabled":{type:"boolean",default:e.enabled,markdownDescription:p("dropIntoEditor.enabled","Controls whether you can drag and drop a file into a text editor by holding down the `Shift` key (instead of opening the file in an editor).")},"editor.dropIntoEditor.showDropSelector":{type:"string",markdownDescription:p("dropIntoEditor.showDropSelector","Controls if a widget is shown when dropping files into the editor. This widget lets you control how the file is dropped."),enum:["afterDrop","never"],enumDescriptions:[p("dropIntoEditor.showDropSelector.afterDrop","Show the drop selector widget after a file is dropped into the editor."),p("dropIntoEditor.showDropSelector.never","Never show the drop selector widget. Instead the default drop provider is always used.")],default:"afterDrop"}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:we(t.enabled,this.defaultValue.enabled),showDropSelector:Ti(t.showDropSelector,this.defaultValue.showDropSelector,["afterDrop","never"])}}}class UZ extends hi{constructor(){const e={enabled:!0,showPasteSelector:"afterPaste"};super(85,"pasteAs",e,{"editor.pasteAs.enabled":{type:"boolean",default:e.enabled,markdownDescription:p("pasteAs.enabled","Controls whether you can paste content in different ways.")},"editor.pasteAs.showPasteSelector":{type:"string",markdownDescription:p("pasteAs.showPasteSelector","Controls if a widget is shown when pasting content in to the editor. This widget lets you control how the file is pasted."),enum:["afterPaste","never"],enumDescriptions:[p("pasteAs.showPasteSelector.afterPaste","Show the paste selector widget after content is pasted into the editor."),p("pasteAs.showPasteSelector.never","Never show the paste selector widget. Instead the default pasting behavior is always used.")],default:"afterPaste"}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:we(t.enabled,this.defaultValue.enabled),showPasteSelector:Ti(t.showPasteSelector,this.defaultValue.showPasteSelector,["afterPaste","never"])}}}const $Z="Consolas, 'Courier New', monospace",qZ="Menlo, Monaco, 'Courier New', monospace",jZ="'Droid Sans Mono', 'monospace', monospace",uo={fontFamily:ot?qZ:js?jZ:$Z,fontWeight:"normal",fontSize:ot?12:14,lineHeight:0,letterSpacing:0},Tp=[];function se(o){return Tp[o.id]=o,o}const gl={acceptSuggestionOnCommitCharacter:se(new _t(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:p("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:se(new Si(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",p("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:p("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:se(new oZ),accessibilityPageSize:se(new jt(3,"accessibilityPageSize",10,1,1073741824,{description:p("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default."),tags:["accessibility"]})),ariaLabel:se(new Rs(4,"ariaLabel",p("editorViewAccessibleLabel","Editor content"))),ariaRequired:se(new _t(5,"ariaRequired",!1,void 0)),screenReaderAnnounceInlineSuggestion:se(new _t(8,"screenReaderAnnounceInlineSuggestion",!0,{description:p("screenReaderAnnounceInlineSuggestion","Control whether inline suggestions are announced by a screen reader."),tags:["accessibility"]})),autoClosingBrackets:se(new Si(6,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",p("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),p("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:p("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingComments:se(new Si(7,"autoClosingComments","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",p("editor.autoClosingComments.languageDefined","Use language configurations to determine when to autoclose comments."),p("editor.autoClosingComments.beforeWhitespace","Autoclose comments only when the cursor is to the left of whitespace."),""],description:p("autoClosingComments","Controls whether the editor should automatically close comments after the user adds an opening comment.")})),autoClosingDelete:se(new Si(9,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",p("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:p("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:se(new Si(10,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",p("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:p("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:se(new Si(11,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",p("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),p("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:p("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:se(new A1(12,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],sZ,{enumDescriptions:[p("editor.autoIndent.none","The editor will not insert indentation automatically."),p("editor.autoIndent.keep","The editor will keep the current line's indentation."),p("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),p("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),p("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:p("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:se(new _t(13,"automaticLayout",!1)),autoSurround:se(new Si(14,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[p("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),p("editor.autoSurround.quotes","Surround with quotes but not brackets."),p("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:p("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:se(new PZ),bracketPairGuides:se(new OZ),stickyTabStops:se(new _t(116,"stickyTabStops",!1,{description:p("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:se(new _t(17,"codeLens",!0,{description:p("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:se(new Rs(18,"codeLensFontFamily","",{description:p("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:se(new jt(19,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:p("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used.")})),colorDecorators:se(new _t(20,"colorDecorators",!0,{description:p("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),colorDecoratorActivatedOn:se(new Si(148,"colorDecoratorsActivatedOn","clickAndHover",["clickAndHover","hover","click"],{enumDescriptions:[p("editor.colorDecoratorActivatedOn.clickAndHover","Make the color picker appear both on click and hover of the color decorator"),p("editor.colorDecoratorActivatedOn.hover","Make the color picker appear on hover of the color decorator"),p("editor.colorDecoratorActivatedOn.click","Make the color picker appear on click of the color decorator")],description:p("colorDecoratorActivatedOn","Controls the condition to make a color picker appear from a color decorator")})),colorDecoratorsLimit:se(new jt(21,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:p("colorDecoratorsLimit","Controls the max number of color decorators that can be rendered in an editor at once.")})),columnSelection:se(new _t(22,"columnSelection",!1,{description:p("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:se(new rZ),contextmenu:se(new _t(24,"contextmenu",!0)),copyWithSyntaxHighlighting:se(new _t(25,"copyWithSyntaxHighlighting",!0,{description:p("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:se(new A1(26,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],aZ,{description:p("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:se(new Si(27,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[p("cursorSmoothCaretAnimation.off","Smooth caret animation is disabled."),p("cursorSmoothCaretAnimation.explicit","Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),p("cursorSmoothCaretAnimation.on","Smooth caret animation is always enabled.")],description:p("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:se(new A1(28,"cursorStyle",Vn.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],lZ,{description:p("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:se(new jt(29,"cursorSurroundingLines",0,0,1073741824,{description:p("cursorSurroundingLines","Controls the minimal number of visible leading lines (minimum 0) and trailing lines (minimum 1) surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:se(new Si(30,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[p("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),p("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],markdownDescription:p("cursorSurroundingLinesStyle","Controls when `#editor.cursorSurroundingLines#` should be enforced.")})),cursorWidth:se(new jt(31,"cursorWidth",0,0,1073741824,{markdownDescription:p("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:se(new _t(32,"disableLayerHinting",!1)),disableMonospaceOptimizations:se(new _t(33,"disableMonospaceOptimizations",!1)),domReadOnly:se(new _t(34,"domReadOnly",!1)),dragAndDrop:se(new _t(35,"dragAndDrop",!0,{description:p("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:se(new dZ),dropIntoEditor:se(new zZ),stickyScroll:se(new vZ),experimentalWhitespaceRendering:se(new Si(38,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[p("experimentalWhitespaceRendering.svg","Use a new rendering method with svgs."),p("experimentalWhitespaceRendering.font","Use a new rendering method with font characters."),p("experimentalWhitespaceRendering.off","Use the stable rendering method.")],description:p("experimentalWhitespaceRendering","Controls whether whitespace is rendered with a new, experimental method.")})),extraEditorClassName:se(new Rs(39,"extraEditorClassName","")),fastScrollSensitivity:se(new er(40,"fastScrollSensitivity",5,o=>o<=0?5:o,{markdownDescription:p("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:se(new uZ),fixedOverflowWidgets:se(new _t(42,"fixedOverflowWidgets",!1)),folding:se(new _t(43,"folding",!0,{description:p("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:se(new Si(44,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[p("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),p("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:p("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:se(new _t(45,"foldingHighlight",!0,{description:p("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:se(new _t(46,"foldingImportsByDefault",!1,{description:p("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:se(new jt(47,"foldingMaximumRegions",5e3,10,65e3,{description:p("foldingMaximumRegions","The maximum number of foldable regions. Increasing this value may result in the editor becoming less responsive when the current source has a large number of foldable regions.")})),unfoldOnClickAfterEndOfLine:se(new _t(48,"unfoldOnClickAfterEndOfLine",!1,{description:p("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:se(new Rs(49,"fontFamily",uo.fontFamily,{description:p("fontFamily","Controls the font family.")})),fontInfo:se(new hZ),fontLigatures2:se(new Qo),fontSize:se(new gZ),fontWeight:se(new Ul),fontVariations:se(new Ha),formatOnPaste:se(new _t(55,"formatOnPaste",!1,{description:p("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:se(new _t(56,"formatOnType",!1,{description:p("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:se(new _t(57,"glyphMargin",!0,{description:p("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:se(new fZ),hideCursorInOverviewRuler:se(new _t(59,"hideCursorInOverviewRuler",!1,{description:p("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:se(new pZ),inDiffEditor:se(new _t(61,"inDiffEditor",!1)),letterSpacing:se(new er(64,"letterSpacing",uo.letterSpacing,o=>er.clamp(o,-5,20),{description:p("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:se(new _Z),lineDecorationsWidth:se(new CZ),lineHeight:se(new wZ),lineNumbers:se(new IZ),lineNumbersMinChars:se(new jt(69,"lineNumbersMinChars",5,1,300)),linkedEditing:se(new _t(70,"linkedEditing",!1,{description:p("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing.")})),links:se(new _t(71,"links",!0,{description:p("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:se(new Si(72,"matchBrackets","always",["always","near","never"],{description:p("matchBrackets","Highlight matching brackets.")})),minimap:se(new SZ),mouseStyle:se(new Si(74,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:se(new er(75,"mouseWheelScrollSensitivity",1,o=>o===0?1:o,{markdownDescription:p("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:se(new _t(76,"mouseWheelZoom",!1,{markdownDescription:ot?p("mouseWheelZoom.mac","Zoom the font of the editor when using mouse wheel and holding `Cmd`."):p("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:se(new _t(77,"multiCursorMergeOverlapping",!0,{description:p("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:se(new A1(78,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],yZ,{markdownEnumDescriptions:[p("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),p("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:p({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the [multicursor modifier](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:se(new Si(79,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[p("multiCursorPaste.spread","Each cursor pastes a single line of the text."),p("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:p("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),multiCursorLimit:se(new jt(80,"multiCursorLimit",1e4,1,1e5,{markdownDescription:p("multiCursorLimit","Controls the max number of cursors that can be in an active editor at once.")})),occurrencesHighlight:se(new Si(81,"occurrencesHighlight","singleFile",["off","singleFile","multiFile"],{markdownEnumDescriptions:[p("occurrencesHighlight.off","Does not highlight occurrences."),p("occurrencesHighlight.singleFile","Highlights occurrences only in the current file."),p("occurrencesHighlight.multiFile","Experimental: Highlights occurrences across all valid open files.")],markdownDescription:p("occurrencesHighlight","Controls whether occurrences should be highlighted across open files.")})),overviewRulerBorder:se(new _t(82,"overviewRulerBorder",!0,{description:p("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:se(new jt(83,"overviewRulerLanes",3,0,3)),padding:se(new LZ),pasteAs:se(new UZ),parameterHints:se(new kZ),peekWidgetDefaultFocus:se(new Si(87,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[p("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),p("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:p("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),definitionLinkOpensInPeek:se(new _t(88,"definitionLinkOpensInPeek",!1,{description:p("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:se(new DZ),quickSuggestionsDelay:se(new jt(90,"quickSuggestionsDelay",10,0,1073741824,{description:p("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:se(new _t(91,"readOnly",!1)),readOnlyMessage:se(new NZ),renameOnType:se(new _t(93,"renameOnType",!1,{description:p("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:p("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:se(new _t(94,"renderControlCharacters",!0,{description:p("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:se(new Si(95,"renderFinalNewline",js?"dimmed":"on",["off","on","dimmed"],{description:p("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:se(new Si(96,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",p("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:p("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:se(new _t(97,"renderLineHighlightOnlyWhenFocus",!1,{description:p("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:se(new Si(98,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:se(new Si(99,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",p("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),p("renderWhitespace.selection","Render whitespace characters only on selected text."),p("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:p("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:se(new jt(100,"revealHorizontalRightPadding",15,0,1e3)),roundedSelection:se(new _t(101,"roundedSelection",!0,{description:p("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:se(new EZ),scrollbar:se(new TZ),scrollBeyondLastColumn:se(new jt(104,"scrollBeyondLastColumn",4,0,1073741824,{description:p("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:se(new _t(105,"scrollBeyondLastLine",!0,{description:p("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:se(new _t(106,"scrollPredominantAxis",!0,{description:p("scrollPredominantAxis","Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:se(new _t(107,"selectionClipboard",!0,{description:p("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:js})),selectionHighlight:se(new _t(108,"selectionHighlight",!0,{description:p("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:se(new _t(109,"selectOnLineNumbers",!0)),showFoldingControls:se(new Si(110,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[p("showFoldingControls.always","Always show the folding controls."),p("showFoldingControls.never","Never show the folding controls and reduce the gutter size."),p("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:p("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:se(new _t(111,"showUnused",!0,{description:p("showUnused","Controls fading out of unused code.")})),showDeprecated:se(new _t(140,"showDeprecated",!0,{description:p("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:se(new bZ),snippetSuggestions:se(new Si(112,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[p("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),p("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),p("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),p("snippetSuggestions.none","Do not show snippet suggestions.")],description:p("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:se(new BZ),smoothScrolling:se(new _t(114,"smoothScrolling",!1,{description:p("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:se(new jt(117,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:se(new FZ),inlineSuggest:se(new RZ),inlineEdit:se(new MZ),inlineCompletionsAccessibilityVerbose:se(new _t(149,"inlineCompletionsAccessibilityVerbose",!1,{description:p("inlineCompletionsAccessibilityVerbose","Controls whether the accessibility hint should be provided to screen reader users when an inline completion is shown.")})),suggestFontSize:se(new jt(119,"suggestFontSize",0,0,1e3,{markdownDescription:p("suggestFontSize","Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),suggestLineHeight:se(new jt(120,"suggestLineHeight",0,0,1e3,{markdownDescription:p("suggestLineHeight","Line height for the suggest widget. When set to {0}, the value of {1} is used. The minimum value is 8.","`0`","`#editor.lineHeight#`")})),suggestOnTriggerCharacters:se(new _t(121,"suggestOnTriggerCharacters",!0,{description:p("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:se(new Si(122,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[p("suggestSelection.first","Always select the first suggestion."),p("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),p("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:p("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:se(new Si(123,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[p("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),p("tabCompletion.off","Disable tab completions."),p("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:p("tabCompletion","Enables tab completions.")})),tabIndex:se(new jt(124,"tabIndex",0,-1,1073741824)),unicodeHighlight:se(new AZ),unusualLineTerminators:se(new Si(126,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[p("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),p("unusualLineTerminators.off","Unusual line terminators are ignored."),p("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:p("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:se(new _t(127,"useShadowDOM",!0)),useTabStops:se(new _t(128,"useTabStops",!0,{description:p("useTabStops","Spaces and tabs are inserted and deleted in alignment with tab stops.")})),wordBreak:se(new Si(129,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[p("wordBreak.normal","Use the default line break rule."),p("wordBreak.keepAll","Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal.")],description:p("wordBreak","Controls the word break rules used for Chinese/Japanese/Korean (CJK) text.")})),wordSegmenterLocales:se(new WZ),wordSeparators:se(new Rs(131,"wordSeparators",V6,{description:p("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:se(new Si(132,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[p("wordWrap.off","Lines will never wrap."),p("wordWrap.on","Lines will wrap at the viewport width."),p({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),p({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:p({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:se(new Rs(133,"wordWrapBreakAfterCharacters"," })]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」")),wordWrapBreakBeforeCharacters:se(new Rs(134,"wordWrapBreakBeforeCharacters","([{‘“〈《「『【〔([{「£¥$£¥++")),wordWrapColumn:se(new jt(135,"wordWrapColumn",80,1,1073741824,{markdownDescription:p({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:se(new Si(136,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:se(new Si(137,"wordWrapOverride2","inherit",["off","on","inherit"])),editorClassName:se(new cZ),defaultColorDecorators:se(new _t(147,"defaultColorDecorators",!1,{markdownDescription:p("defaultColorDecorators","Controls whether inline color decorations should be shown using the default document color provider")})),pixelRatio:se(new xZ),tabFocusMode:se(new _t(144,"tabFocusMode",!1,{markdownDescription:p("tabFocusMode","Controls whether the editor receives tabs or defers them to the workbench for navigation.")})),layoutInfo:se(new im),wrappingInfo:se(new HZ),wrappingIndent:se(new VZ),wrappingStrategy:se(new mZ)};class KZ{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?Nm.isErrorNoTelemetry(e)?new Nm(e.message+` @@ -652,27 +652,27 @@ ${e.toString()}`}}class SL{constructor(e=new GC,t=!1,i,n=ope){var s;this._servic * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var pve=Object.defineProperty,mve=Object.getOwnPropertyDescriptor,_ve=Object.getOwnPropertyNames,vve=Object.prototype.hasOwnProperty,bve=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of _ve(e))!vve.call(o,n)&&n!==t&&pve(o,n,{get:()=>e[n],enumerable:!(i=mve(e,n))||i.enumerable});return o},Cve=(o,e,t)=>(bve(o,e,"default"),t),Xv={};Cve(Xv,l1);var X$={},bE={},wve=class J${static getOrCreate(e){return bE[e]||(bE[e]=new J$(e)),bE[e]}constructor(e){this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((t,i)=>{this._lazyLoadPromiseResolve=t,this._lazyLoadPromiseReject=i})}load(){return this._loadingTriggered||(this._loadingTriggered=!0,X$[this._languageId].loader().then(e=>this._lazyLoadPromiseResolve(e),e=>this._lazyLoadPromiseReject(e))),this._lazyLoadPromise}};function De(o){const e=o.id;X$[e]=o,Xv.languages.register(o);const t=wve.getOrCreate(e);Xv.languages.registerTokensProviderFactory(e,{create:async()=>(await t.load()).language}),Xv.languages.onLanguageEncountered(e,async()=>{const i=await t.load();Xv.languages.setLanguageConfiguration(e,i.conf)})}De({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>Se(()=>import("./abap-DRC6TkPh.js"),[])});De({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>Se(()=>import("./apex-BuapDI9Y.js"),[])});De({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>Se(()=>import("./azcli-BypH-vXm.js"),[])});De({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>Se(()=>import("./bat-BY6pwuIY.js"),[])});De({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>Se(()=>import("./bicep-gRuQeaLk.js"),[])});De({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>Se(()=>import("./cameligo-ul-Lp4lw.js"),[])});De({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>Se(()=>import("./clojure-DeYg-96x.js"),[])});De({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>Se(()=>import("./coffee-CfnpWUYo.js"),[])});De({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>Se(()=>import("./cpp-C9L3yaDO.js"),[])});De({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>Se(()=>import("./cpp-C9L3yaDO.js"),[])});De({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>Se(()=>import("./csharp-DWGz5Zuj.js"),[])});De({id:"csp",extensions:[".csp"],aliases:["CSP","csp"],loader:()=>Se(()=>import("./csp-DrRCxMg5.js"),[])});De({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>Se(()=>import("./css-BfLuTCmN.js"),[])});De({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>Se(()=>import("./cypher-DoFvH58O.js"),[])});De({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>Se(()=>import("./dart-DIovg4uR.js"),[])});De({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>Se(()=>import("./dockerfile-D2PfwrvU.js"),[])});De({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>Se(()=>import("./ecl-C_scCXcs.js"),[])});De({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>Se(()=>import("./elixir-BRk-K-rg.js"),[])});De({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>Se(()=>import("./flow9-DLs3tTet.js"),[])});De({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>Se(()=>import("./fsharp-D0UiDa5C.js"),[])});De({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>Se(()=>import("./freemarker2-B8Rt5LUV.js"),__vite__mapDeps([0,1,2,3,4,5,6])).then(o=>o.TagAutoInterpolationDollar)});De({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>Se(()=>import("./freemarker2-B8Rt5LUV.js"),__vite__mapDeps([0,1,2,3,4,5,6])).then(o=>o.TagAngleInterpolationDollar)});De({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>Se(()=>import("./freemarker2-B8Rt5LUV.js"),__vite__mapDeps([0,1,2,3,4,5,6])).then(o=>o.TagBracketInterpolationDollar)});De({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>Se(()=>import("./freemarker2-B8Rt5LUV.js"),__vite__mapDeps([0,1,2,3,4,5,6])).then(o=>o.TagAngleInterpolationBracket)});De({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>Se(()=>import("./freemarker2-B8Rt5LUV.js"),__vite__mapDeps([0,1,2,3,4,5,6])).then(o=>o.TagBracketInterpolationBracket)});De({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>Se(()=>import("./freemarker2-B8Rt5LUV.js"),__vite__mapDeps([0,1,2,3,4,5,6])).then(o=>o.TagAutoInterpolationDollar)});De({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>Se(()=>import("./freemarker2-B8Rt5LUV.js"),__vite__mapDeps([0,1,2,3,4,5,6])).then(o=>o.TagAutoInterpolationBracket)});De({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>Se(()=>import("./go-CyVeKkvQ.js"),[])});De({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>Se(()=>import("./graphql-BygKL3ZF.js"),[])});De({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>Se(()=>import("./handlebars-ByMWt90J.js"),__vite__mapDeps([7,1,2,3,4,5,6]))});De({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>Se(()=>import("./hcl-D_OY6ada.js"),[])});De({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>Se(()=>import("./html-Dt76PXei.js"),__vite__mapDeps([8,1,2,3,4,5,6]))});De({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>Se(()=>import("./ini-BTpWsGps.js"),[])});De({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>Se(()=>import("./java-3TATJI7h.js"),[])});De({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>Se(()=>import("./javascript-C94guP2z.js"),__vite__mapDeps([9,10,1,2,3,4,5,6]))});De({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>Se(()=>import("./julia-DDpSJMW6.js"),[])});De({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>Se(()=>import("./kotlin-DVYH6Lj_.js"),[])});De({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>Se(()=>import("./less-CuFlys0T.js"),[])});De({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>Se(()=>import("./lexon-m09vb5r-.js"),[])});De({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>Se(()=>import("./lua-D2Z7JJdl.js"),[])});De({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>Se(()=>import("./liquid-CWEjMak3.js"),__vite__mapDeps([11,1,2,3,4,5,6]))});De({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>Se(()=>import("./m3-B2Cf9XSq.js"),[])});De({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>Se(()=>import("./markdown-BXYnMxBe.js"),[])});De({id:"mdx",extensions:[".mdx"],aliases:["MDX","mdx"],loader:()=>Se(()=>import("./mdx-DW_NZpvZ.js"),__vite__mapDeps([12,1,2,3,4,5,6]))});De({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>Se(()=>import("./mips-Ckkbw-AO.js"),[])});De({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>Se(()=>import("./msdax-B5uW3Zvf.js"),[])});De({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>Se(()=>import("./mysql-B8ssZoUh.js"),[])});De({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>Se(()=>import("./objective-c-CrrKwR0a.js"),[])});De({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>Se(()=>import("./pascal-BWBTHuhh.js"),[])});De({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>Se(()=>import("./pascaligo-BGLI1Hdo.js"),[])});De({id:"perl",extensions:[".pl",".pm"],aliases:["Perl","pl"],loader:()=>Se(()=>import("./perl-DDrv2Hr-.js"),[])});De({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>Se(()=>import("./pgsql-DLPipH_Q.js"),[])});De({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>Se(()=>import("./php-CTNlIIiR.js"),[])});De({id:"pla",extensions:[".pla"],loader:()=>Se(()=>import("./pla-2oJWbEOo.js"),[])});De({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>Se(()=>import("./postiats-DOk3G3cc.js"),[])});De({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>Se(()=>import("./powerquery-Dgyr3wWZ.js"),[])});De({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>Se(()=>import("./powershell-B_i9asfM.js"),[])});De({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>Se(()=>import("./protobuf-CV9EbfTh.js"),[])});De({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>Se(()=>import("./pug-CCBS_C5_.js"),[])});De({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>Se(()=>import("./python-CwXslKsP.js"),__vite__mapDeps([13,1,2,3,4,5,6]))});De({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>Se(()=>import("./qsharp-BLuZWbUW.js"),[])});De({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>Se(()=>import("./r-CzF1MCbP.js"),[])});De({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>Se(()=>import("./razor-BSbe7fwy.js"),__vite__mapDeps([14,1,2,3,4,5,6]))});De({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>Se(()=>import("./redis-C75U4IDy.js"),[])});De({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>Se(()=>import("./redshift-Bc5xkKR1.js"),[])});De({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>Se(()=>import("./restructuredtext-DmdQbaLT.js"),[])});De({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>Se(()=>import("./ruby-DB0RB20n.js"),[])});De({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>Se(()=>import("./rust-UMmp-gVE.js"),[])});De({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>Se(()=>import("./sb-DVG02705.js"),[])});De({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>Se(()=>import("./scala-DvSxYeG4.js"),[])});De({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>Se(()=>import("./scheme-yf5bffbF.js"),[])});De({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>Se(()=>import("./scss-Bzb7OGdO.js"),[])});De({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>Se(()=>import("./shell-FNqbgIOG.js"),[])});De({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>Se(()=>import("./solidity-DyKutqhl.js"),[])});De({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>Se(()=>import("./sophia-B4VqtPa2.js"),[])});De({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>Se(()=>import("./sparql-B7alP455.js"),[])});De({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>Se(()=>import("./sql-D7lU1fdU.js"),[])});De({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib",".TcPOU",".TcDUT",".TcGVL",".TcIO"],aliases:["StructuredText","scl","stl"],loader:()=>Se(()=>import("./st-VuadG5SK.js"),[])});De({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>Se(()=>import("./swift-BYtUz8ZP.js"),[])});De({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>Se(()=>import("./systemverilog-DOAuugfS.js"),[])});De({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>Se(()=>import("./systemverilog-DOAuugfS.js"),[])});De({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>Se(()=>import("./tcl-CXKOl_mN.js"),[])});De({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>Se(()=>import("./twig-D9yiNO04.js"),[])});De({id:"typescript",extensions:[".ts",".tsx",".cts",".mts"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>Se(()=>import("./typescript-7nKRn4jz.js"),__vite__mapDeps([10,1,2,3,4,5,6]))});De({id:"typespec",extensions:[".tsp"],aliases:["TypeSpec"],loader:()=>Se(()=>import("./typespec-BupSXVCO.js"),[])});De({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>Se(()=>import("./vb-ZlaFEk-P.js"),[])});De({id:"wgsl",extensions:[".wgsl"],aliases:["WebGPU Shading Language","WGSL","wgsl"],loader:()=>Se(()=>import("./wgsl-B-lZjTdr.js"),[])});De({id:"xml",extensions:[".xml",".xsd",".dtd",".ascx",".csproj",".config",".props",".targets",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xslt",".xsl"],firstLine:"(\\<\\?xml.*)|(\\Se(()=>import("./xml-DpPQ_Q24.js"),__vite__mapDeps([15,1,2,3,4,5,6]))});De({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>Se(()=>import("./yaml-B_Jizig3.js"),__vite__mapDeps([16,1,2,3,4,5,6]))});/*!----------------------------------------------------------------------------- + *-----------------------------------------------------------------------------*/var pve=Object.defineProperty,mve=Object.getOwnPropertyDescriptor,_ve=Object.getOwnPropertyNames,vve=Object.prototype.hasOwnProperty,bve=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of _ve(e))!vve.call(o,n)&&n!==t&&pve(o,n,{get:()=>e[n],enumerable:!(i=mve(e,n))||i.enumerable});return o},Cve=(o,e,t)=>(bve(o,e,"default"),t),Xv={};Cve(Xv,l1);var X$={},bE={},wve=class J${static getOrCreate(e){return bE[e]||(bE[e]=new J$(e)),bE[e]}constructor(e){this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((t,i)=>{this._lazyLoadPromiseResolve=t,this._lazyLoadPromiseReject=i})}load(){return this._loadingTriggered||(this._loadingTriggered=!0,X$[this._languageId].loader().then(e=>this._lazyLoadPromiseResolve(e),e=>this._lazyLoadPromiseReject(e))),this._lazyLoadPromise}};function De(o){const e=o.id;X$[e]=o,Xv.languages.register(o);const t=wve.getOrCreate(e);Xv.languages.registerTokensProviderFactory(e,{create:async()=>(await t.load()).language}),Xv.languages.onLanguageEncountered(e,async()=>{const i=await t.load();Xv.languages.setLanguageConfiguration(e,i.conf)})}De({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>Se(()=>import("./abap-DRC6TkPh.js"),[])});De({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>Se(()=>import("./apex-BuapDI9Y.js"),[])});De({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>Se(()=>import("./azcli-BypH-vXm.js"),[])});De({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>Se(()=>import("./bat-BY6pwuIY.js"),[])});De({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>Se(()=>import("./bicep-gRuQeaLk.js"),[])});De({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>Se(()=>import("./cameligo-ul-Lp4lw.js"),[])});De({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>Se(()=>import("./clojure-DeYg-96x.js"),[])});De({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>Se(()=>import("./coffee-CfnpWUYo.js"),[])});De({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>Se(()=>import("./cpp-C9L3yaDO.js"),[])});De({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>Se(()=>import("./cpp-C9L3yaDO.js"),[])});De({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>Se(()=>import("./csharp-DWGz5Zuj.js"),[])});De({id:"csp",extensions:[".csp"],aliases:["CSP","csp"],loader:()=>Se(()=>import("./csp-DrRCxMg5.js"),[])});De({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>Se(()=>import("./css-BfLuTCmN.js"),[])});De({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>Se(()=>import("./cypher-DoFvH58O.js"),[])});De({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>Se(()=>import("./dart-DIovg4uR.js"),[])});De({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>Se(()=>import("./dockerfile-D2PfwrvU.js"),[])});De({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>Se(()=>import("./ecl-C_scCXcs.js"),[])});De({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>Se(()=>import("./elixir-BRk-K-rg.js"),[])});De({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>Se(()=>import("./flow9-DLs3tTet.js"),[])});De({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>Se(()=>import("./fsharp-D0UiDa5C.js"),[])});De({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>Se(()=>import("./freemarker2-CkuUKxEA.js"),__vite__mapDeps([0,1,2,3,4,5,6])).then(o=>o.TagAutoInterpolationDollar)});De({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>Se(()=>import("./freemarker2-CkuUKxEA.js"),__vite__mapDeps([0,1,2,3,4,5,6])).then(o=>o.TagAngleInterpolationDollar)});De({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>Se(()=>import("./freemarker2-CkuUKxEA.js"),__vite__mapDeps([0,1,2,3,4,5,6])).then(o=>o.TagBracketInterpolationDollar)});De({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>Se(()=>import("./freemarker2-CkuUKxEA.js"),__vite__mapDeps([0,1,2,3,4,5,6])).then(o=>o.TagAngleInterpolationBracket)});De({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>Se(()=>import("./freemarker2-CkuUKxEA.js"),__vite__mapDeps([0,1,2,3,4,5,6])).then(o=>o.TagBracketInterpolationBracket)});De({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>Se(()=>import("./freemarker2-CkuUKxEA.js"),__vite__mapDeps([0,1,2,3,4,5,6])).then(o=>o.TagAutoInterpolationDollar)});De({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>Se(()=>import("./freemarker2-CkuUKxEA.js"),__vite__mapDeps([0,1,2,3,4,5,6])).then(o=>o.TagAutoInterpolationBracket)});De({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>Se(()=>import("./go-CyVeKkvQ.js"),[])});De({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>Se(()=>import("./graphql-BygKL3ZF.js"),[])});De({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>Se(()=>import("./handlebars-DFwLcN89.js"),__vite__mapDeps([7,1,2,3,4,5,6]))});De({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>Se(()=>import("./hcl-D_OY6ada.js"),[])});De({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>Se(()=>import("./html-b84dk0tF.js"),__vite__mapDeps([8,1,2,3,4,5,6]))});De({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>Se(()=>import("./ini-BTpWsGps.js"),[])});De({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>Se(()=>import("./java-3TATJI7h.js"),[])});De({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>Se(()=>import("./javascript-CdS9kcBx.js"),__vite__mapDeps([9,10,1,2,3,4,5,6]))});De({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>Se(()=>import("./julia-DDpSJMW6.js"),[])});De({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>Se(()=>import("./kotlin-DVYH6Lj_.js"),[])});De({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>Se(()=>import("./less-CuFlys0T.js"),[])});De({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>Se(()=>import("./lexon-m09vb5r-.js"),[])});De({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>Se(()=>import("./lua-D2Z7JJdl.js"),[])});De({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>Se(()=>import("./liquid-C9UEz-zQ.js"),__vite__mapDeps([11,1,2,3,4,5,6]))});De({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>Se(()=>import("./m3-B2Cf9XSq.js"),[])});De({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>Se(()=>import("./markdown-BXYnMxBe.js"),[])});De({id:"mdx",extensions:[".mdx"],aliases:["MDX","mdx"],loader:()=>Se(()=>import("./mdx-CTrDZr5s.js"),__vite__mapDeps([12,1,2,3,4,5,6]))});De({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>Se(()=>import("./mips-Ckkbw-AO.js"),[])});De({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>Se(()=>import("./msdax-B5uW3Zvf.js"),[])});De({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>Se(()=>import("./mysql-B8ssZoUh.js"),[])});De({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>Se(()=>import("./objective-c-CrrKwR0a.js"),[])});De({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>Se(()=>import("./pascal-BWBTHuhh.js"),[])});De({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>Se(()=>import("./pascaligo-BGLI1Hdo.js"),[])});De({id:"perl",extensions:[".pl",".pm"],aliases:["Perl","pl"],loader:()=>Se(()=>import("./perl-DDrv2Hr-.js"),[])});De({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>Se(()=>import("./pgsql-DLPipH_Q.js"),[])});De({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>Se(()=>import("./php-CTNlIIiR.js"),[])});De({id:"pla",extensions:[".pla"],loader:()=>Se(()=>import("./pla-2oJWbEOo.js"),[])});De({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>Se(()=>import("./postiats-DOk3G3cc.js"),[])});De({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>Se(()=>import("./powerquery-Dgyr3wWZ.js"),[])});De({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>Se(()=>import("./powershell-B_i9asfM.js"),[])});De({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>Se(()=>import("./protobuf-CV9EbfTh.js"),[])});De({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>Se(()=>import("./pug-CCBS_C5_.js"),[])});De({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>Se(()=>import("./python-6SDGJmgD.js"),__vite__mapDeps([13,1,2,3,4,5,6]))});De({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>Se(()=>import("./qsharp-BLuZWbUW.js"),[])});De({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>Se(()=>import("./r-CzF1MCbP.js"),[])});De({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>Se(()=>import("./razor-CnHig80X.js"),__vite__mapDeps([14,1,2,3,4,5,6]))});De({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>Se(()=>import("./redis-C75U4IDy.js"),[])});De({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>Se(()=>import("./redshift-Bc5xkKR1.js"),[])});De({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>Se(()=>import("./restructuredtext-DmdQbaLT.js"),[])});De({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>Se(()=>import("./ruby-DB0RB20n.js"),[])});De({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>Se(()=>import("./rust-UMmp-gVE.js"),[])});De({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>Se(()=>import("./sb-DVG02705.js"),[])});De({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>Se(()=>import("./scala-DvSxYeG4.js"),[])});De({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>Se(()=>import("./scheme-yf5bffbF.js"),[])});De({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>Se(()=>import("./scss-Bzb7OGdO.js"),[])});De({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>Se(()=>import("./shell-FNqbgIOG.js"),[])});De({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>Se(()=>import("./solidity-DyKutqhl.js"),[])});De({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>Se(()=>import("./sophia-B4VqtPa2.js"),[])});De({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>Se(()=>import("./sparql-B7alP455.js"),[])});De({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>Se(()=>import("./sql-D7lU1fdU.js"),[])});De({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib",".TcPOU",".TcDUT",".TcGVL",".TcIO"],aliases:["StructuredText","scl","stl"],loader:()=>Se(()=>import("./st-VuadG5SK.js"),[])});De({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>Se(()=>import("./swift-BYtUz8ZP.js"),[])});De({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>Se(()=>import("./systemverilog-DOAuugfS.js"),[])});De({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>Se(()=>import("./systemverilog-DOAuugfS.js"),[])});De({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>Se(()=>import("./tcl-CXKOl_mN.js"),[])});De({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>Se(()=>import("./twig-D9yiNO04.js"),[])});De({id:"typescript",extensions:[".ts",".tsx",".cts",".mts"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>Se(()=>import("./typescript-At7g-sU_.js"),__vite__mapDeps([10,1,2,3,4,5,6]))});De({id:"typespec",extensions:[".tsp"],aliases:["TypeSpec"],loader:()=>Se(()=>import("./typespec-BupSXVCO.js"),[])});De({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>Se(()=>import("./vb-ZlaFEk-P.js"),[])});De({id:"wgsl",extensions:[".wgsl"],aliases:["WebGPU Shading Language","WGSL","wgsl"],loader:()=>Se(()=>import("./wgsl-B-lZjTdr.js"),[])});De({id:"xml",extensions:[".xml",".xsd",".dtd",".ascx",".csproj",".config",".props",".targets",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xslt",".xsl"],firstLine:"(\\<\\?xml.*)|(\\Se(()=>import("./xml-Bho0kI7b.js"),__vite__mapDeps([15,1,2,3,4,5,6]))});De({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>Se(()=>import("./yaml-Nqp_BVLm.js"),__vite__mapDeps([16,1,2,3,4,5,6]))});/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var Sve=Object.defineProperty,yve=Object.getOwnPropertyDescriptor,Lve=Object.getOwnPropertyNames,kve=Object.prototype.hasOwnProperty,xve=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Lve(e))!kve.call(o,n)&&n!==t&&Sve(o,n,{get:()=>e[n],enumerable:!(i=yve(e,n))||i.enumerable});return o},Dve=(o,e,t)=>(xve(o,e,"default"),t),M_={};Dve(M_,l1);var TF=class{constructor(e,t,i){this._onDidChange=new M_.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(e){this.setOptions(e)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},AF={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},RF={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},eq=new TF("css",AF,RF),tq=new TF("scss",AF,RF),iq=new TF("less",AF,RF);M_.languages.css={cssDefaults:eq,lessDefaults:iq,scssDefaults:tq};function MF(){return Se(()=>import("./cssMode-DQruK-oB.js"),__vite__mapDeps([17,1,2,3,4,5,6]))}M_.languages.onLanguage("less",()=>{MF().then(o=>o.setupMode(iq))});M_.languages.onLanguage("scss",()=>{MF().then(o=>o.setupMode(tq))});M_.languages.onLanguage("css",()=>{MF().then(o=>o.setupMode(eq))});/*!----------------------------------------------------------------------------- + *-----------------------------------------------------------------------------*/var Sve=Object.defineProperty,yve=Object.getOwnPropertyDescriptor,Lve=Object.getOwnPropertyNames,kve=Object.prototype.hasOwnProperty,xve=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Lve(e))!kve.call(o,n)&&n!==t&&Sve(o,n,{get:()=>e[n],enumerable:!(i=yve(e,n))||i.enumerable});return o},Dve=(o,e,t)=>(xve(o,e,"default"),t),M_={};Dve(M_,l1);var TF=class{constructor(e,t,i){this._onDidChange=new M_.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(e){this.setOptions(e)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},AF={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},RF={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},eq=new TF("css",AF,RF),tq=new TF("scss",AF,RF),iq=new TF("less",AF,RF);M_.languages.css={cssDefaults:eq,lessDefaults:iq,scssDefaults:tq};function MF(){return Se(()=>import("./cssMode-gfx9-M_K.js"),__vite__mapDeps([17,1,2,3,4,5,6]))}M_.languages.onLanguage("less",()=>{MF().then(o=>o.setupMode(iq))});M_.languages.onLanguage("scss",()=>{MF().then(o=>o.setupMode(tq))});M_.languages.onLanguage("css",()=>{MF().then(o=>o.setupMode(eq))});/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var Ive=Object.defineProperty,Eve=Object.getOwnPropertyDescriptor,Nve=Object.getOwnPropertyNames,Tve=Object.prototype.hasOwnProperty,Ave=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Nve(e))!Tve.call(o,n)&&n!==t&&Ive(o,n,{get:()=>e[n],enumerable:!(i=Eve(e,n))||i.enumerable});return o},Rve=(o,e,t)=>(Ave(o,e,"default"),t),Nx={};Rve(Nx,l1);var Mve=class{constructor(e,t,i){this._onDidChange=new Nx.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},Pve={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},Tx={format:Pve,suggest:{},data:{useDefaultDataProvider:!0}};function Ax(o){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:o===Tb,documentFormattingEdits:o===Tb,documentRangeFormattingEdits:o===Tb}}var Tb="html",y7="handlebars",L7="razor",nq=Rx(Tb,Tx,Ax(Tb)),Ove=nq.defaults,sq=Rx(y7,Tx,Ax(y7)),Fve=sq.defaults,oq=Rx(L7,Tx,Ax(L7)),Bve=oq.defaults;Nx.languages.html={htmlDefaults:Ove,razorDefaults:Bve,handlebarDefaults:Fve,htmlLanguageService:nq,handlebarLanguageService:sq,razorLanguageService:oq,registerHTMLLanguageService:Rx};function Wve(){return Se(()=>import("./htmlMode-CO67Uu-6.js"),__vite__mapDeps([18,1,2,3,4,5,6]))}function Rx(o,e=Tx,t=Ax(o)){const i=new Mve(o,e,t);let n;const s=Nx.languages.onLanguage(o,async()=>{n=(await Wve()).setupMode(i)});return{defaults:i,dispose(){s.dispose(),n==null||n.dispose(),n=void 0}}}/*!----------------------------------------------------------------------------- + *-----------------------------------------------------------------------------*/var Ive=Object.defineProperty,Eve=Object.getOwnPropertyDescriptor,Nve=Object.getOwnPropertyNames,Tve=Object.prototype.hasOwnProperty,Ave=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Nve(e))!Tve.call(o,n)&&n!==t&&Ive(o,n,{get:()=>e[n],enumerable:!(i=Eve(e,n))||i.enumerable});return o},Rve=(o,e,t)=>(Ave(o,e,"default"),t),Nx={};Rve(Nx,l1);var Mve=class{constructor(e,t,i){this._onDidChange=new Nx.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},Pve={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},Tx={format:Pve,suggest:{},data:{useDefaultDataProvider:!0}};function Ax(o){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:o===Tb,documentFormattingEdits:o===Tb,documentRangeFormattingEdits:o===Tb}}var Tb="html",y7="handlebars",L7="razor",nq=Rx(Tb,Tx,Ax(Tb)),Ove=nq.defaults,sq=Rx(y7,Tx,Ax(y7)),Fve=sq.defaults,oq=Rx(L7,Tx,Ax(L7)),Bve=oq.defaults;Nx.languages.html={htmlDefaults:Ove,razorDefaults:Bve,handlebarDefaults:Fve,htmlLanguageService:nq,handlebarLanguageService:sq,razorLanguageService:oq,registerHTMLLanguageService:Rx};function Wve(){return Se(()=>import("./htmlMode-83odpPnD.js"),__vite__mapDeps([18,1,2,3,4,5,6]))}function Rx(o,e=Tx,t=Ax(o)){const i=new Mve(o,e,t);let n;const s=Nx.languages.onLanguage(o,async()=>{n=(await Wve()).setupMode(i)});return{defaults:i,dispose(){s.dispose(),n==null||n.dispose(),n=void 0}}}/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var Vve=Object.defineProperty,Hve=Object.getOwnPropertyDescriptor,zve=Object.getOwnPropertyNames,Uve=Object.prototype.hasOwnProperty,$ve=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of zve(e))!Uve.call(o,n)&&n!==t&&Vve(o,n,{get:()=>e[n],enumerable:!(i=Hve(e,n))||i.enumerable});return o},qve=(o,e,t)=>($ve(o,e,"default"),t),c1={};qve(c1,l1);var jve=class{constructor(e,t,i){this._onDidChange=new c1.Emitter,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},Kve={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},Gve={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},rq=new jve("json",Kve,Gve),Zve=()=>aq().then(o=>o.getWorker());c1.languages.json={jsonDefaults:rq,getWorker:Zve};function aq(){return Se(()=>import("./jsonMode-CV1B7G11.js"),__vite__mapDeps([19,1,2,3,4,5,6]))}c1.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});c1.languages.onLanguage("json",()=>{aq().then(o=>o.setupMode(rq))});/*!----------------------------------------------------------------------------- + *-----------------------------------------------------------------------------*/var Vve=Object.defineProperty,Hve=Object.getOwnPropertyDescriptor,zve=Object.getOwnPropertyNames,Uve=Object.prototype.hasOwnProperty,$ve=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of zve(e))!Uve.call(o,n)&&n!==t&&Vve(o,n,{get:()=>e[n],enumerable:!(i=Hve(e,n))||i.enumerable});return o},qve=(o,e,t)=>($ve(o,e,"default"),t),c1={};qve(c1,l1);var jve=class{constructor(e,t,i){this._onDidChange=new c1.Emitter,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},Kve={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},Gve={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},rq=new jve("json",Kve,Gve),Zve=()=>aq().then(o=>o.getWorker());c1.languages.json={jsonDefaults:rq,getWorker:Zve};function aq(){return Se(()=>import("./jsonMode-7AgGqp70.js"),__vite__mapDeps([19,1,2,3,4,5,6]))}c1.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});c1.languages.onLanguage("json",()=>{aq().then(o=>o.setupMode(rq))});/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var Yve=Object.defineProperty,Qve=Object.getOwnPropertyDescriptor,Xve=Object.getOwnPropertyNames,Jve=Object.prototype.hasOwnProperty,ebe=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Xve(e))!Jve.call(o,n)&&n!==t&&Yve(o,n,{get:()=>e[n],enumerable:!(i=Qve(e,n))||i.enumerable});return o},tbe=(o,e,t)=>(ebe(o,e,"default"),t),ibe="5.4.5",c_={};tbe(c_,l1);var lq=(o=>(o[o.None=0]="None",o[o.CommonJS=1]="CommonJS",o[o.AMD=2]="AMD",o[o.UMD=3]="UMD",o[o.System=4]="System",o[o.ES2015=5]="ES2015",o[o.ESNext=99]="ESNext",o))(lq||{}),cq=(o=>(o[o.None=0]="None",o[o.Preserve=1]="Preserve",o[o.React=2]="React",o[o.ReactNative=3]="ReactNative",o[o.ReactJSX=4]="ReactJSX",o[o.ReactJSXDev=5]="ReactJSXDev",o))(cq||{}),dq=(o=>(o[o.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",o[o.LineFeed=1]="LineFeed",o))(dq||{}),uq=(o=>(o[o.ES3=0]="ES3",o[o.ES5=1]="ES5",o[o.ES2015=2]="ES2015",o[o.ES2016=3]="ES2016",o[o.ES2017=4]="ES2017",o[o.ES2018=5]="ES2018",o[o.ES2019=6]="ES2019",o[o.ES2020=7]="ES2020",o[o.ESNext=99]="ESNext",o[o.JSON=100]="JSON",o[o.Latest=99]="Latest",o))(uq||{}),hq=(o=>(o[o.Classic=1]="Classic",o[o.NodeJs=2]="NodeJs",o))(hq||{}),gq=class{constructor(o,e,t,i,n){this._onDidChange=new c_.Emitter,this._onDidExtraLibsChange=new c_.Emitter,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(o),this.setDiagnosticsOptions(e),this.setWorkerOptions(t),this.setInlayHintsOptions(i),this.setModeConfiguration(n),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get modeConfiguration(){return this._modeConfiguration}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(o,e){let t;if(typeof e>"u"?t=`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t=e,this._extraLibs[t]&&this._extraLibs[t].content===o)return{dispose:()=>{}};let i=1;return this._removedExtraLibs[t]&&(i=this._removedExtraLibs[t]+1),this._extraLibs[t]&&(i=this._extraLibs[t].version+1),this._extraLibs[t]={content:o,version:i},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let n=this._extraLibs[t];n&&n.version===i&&(delete this._extraLibs[t],this._removedExtraLibs[t]=i,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(o){for(const e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),o&&o.length>0)for(const e of o){const t=e.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=e.content;let n=1;this._removedExtraLibs[t]&&(n=this._removedExtraLibs[t]+1),this._extraLibs[t]={content:i,version:n}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(o){this._compilerOptions=o||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(o){this._diagnosticsOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(o){this._workerOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(o){this._inlayHintsOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(o){}setEagerModelSync(o){this._eagerModelSync=o}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(o){this._modeConfiguration=o||Object.create(null),this._onDidChange.fire(void 0)}},nbe=ibe,fq={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,diagnostics:!0,documentRangeFormattingEdits:!0,signatureHelp:!0,onTypeFormattingEdits:!0,codeActions:!0,inlayHints:!0},pq=new gq({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},fq),mq=new gq({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},fq),sbe=()=>Mx().then(o=>o.getTypeScriptWorker()),obe=()=>Mx().then(o=>o.getJavaScriptWorker());c_.languages.typescript={ModuleKind:lq,JsxEmit:cq,NewLineKind:dq,ScriptTarget:uq,ModuleResolutionKind:hq,typescriptVersion:nbe,typescriptDefaults:pq,javascriptDefaults:mq,getTypeScriptWorker:sbe,getJavaScriptWorker:obe};function Mx(){return Se(()=>import("./tsMode-CeQsB0gm.js"),__vite__mapDeps([20,1,2,3,4,5,6]))}c_.languages.onLanguage("typescript",()=>Mx().then(o=>o.setupTypeScript(pq)));c_.languages.onLanguage("javascript",()=>Mx().then(o=>o.setupJavaScript(mq)));class rbe extends Ys{constructor(){super({id:"diffEditor.toggleCollapseUnchangedRegions",title:Ve("toggleCollapseUnchangedRegions","Toggle Collapse Unchanged Regions"),icon:re.map,toggled:K.has("config.diffEditor.hideUnchangedRegions.enabled"),precondition:K.has("isInDiffEditor"),menu:{when:K.has("isInDiffEditor"),id:D.EditorTitle,order:22,group:"navigation"}})}run(e,...t){const i=e.get(it),n=!i.getValue("diffEditor.hideUnchangedRegions.enabled");i.updateValue("diffEditor.hideUnchangedRegions.enabled",n)}}class _q extends Ys{constructor(){super({id:"diffEditor.toggleShowMovedCodeBlocks",title:Ve("toggleShowMovedCodeBlocks","Toggle Show Moved Code Blocks"),precondition:K.has("isInDiffEditor")})}run(e,...t){const i=e.get(it),n=!i.getValue("diffEditor.experimental.showMoves");i.updateValue("diffEditor.experimental.showMoves",n)}}class vq extends Ys{constructor(){super({id:"diffEditor.toggleUseInlineViewWhenSpaceIsLimited",title:Ve("toggleUseInlineViewWhenSpaceIsLimited","Toggle Use Inline View When Space Is Limited"),precondition:K.has("isInDiffEditor")})}run(e,...t){const i=e.get(it),n=!i.getValue("diffEditor.useInlineViewWhenSpaceIsLimited");i.updateValue("diffEditor.useInlineViewWhenSpaceIsLimited",n)}}const d1=Ve("diffEditor","Diff Editor");class abe extends pl{constructor(){super({id:"diffEditor.switchSide",title:Ve("switchSide","Switch Side"),icon:re.arrowSwap,precondition:K.has("isInDiffEditor"),f1:!0,category:d1})}runEditorCommand(e,t,i){const n=O_(e);if(n instanceof Fd){if(i&&i.dryRun)return{destinationSelection:n.mapToOtherSide().destinationSelection};n.switchSide()}}}class lbe extends pl{constructor(){super({id:"diffEditor.exitCompareMove",title:Ve("exitCompareMove","Exit Compare Move"),icon:re.close,precondition:E.comparingMovedCode,f1:!1,category:d1,keybinding:{weight:1e4,primary:9}})}runEditorCommand(e,t,...i){const n=O_(e);n instanceof Fd&&n.exitCompareMove()}}class cbe extends pl{constructor(){super({id:"diffEditor.collapseAllUnchangedRegions",title:Ve("collapseAllUnchangedRegions","Collapse All Unchanged Regions"),icon:re.fold,precondition:K.has("isInDiffEditor"),f1:!0,category:d1})}runEditorCommand(e,t,...i){const n=O_(e);n instanceof Fd&&n.collapseAllUnchangedRegions()}}class dbe extends pl{constructor(){super({id:"diffEditor.showAllUnchangedRegions",title:Ve("showAllUnchangedRegions","Show All Unchanged Regions"),icon:re.unfold,precondition:K.has("isInDiffEditor"),f1:!0,category:d1})}runEditorCommand(e,t,...i){const n=O_(e);n instanceof Fd&&n.showAllUnchangedRegions()}}class uR extends Ys{constructor(){super({id:"diffEditor.revert",title:Ve("revert","Revert"),f1:!1,category:d1})}run(e,t){var i;const n=ube(e,t.originalUri,t.modifiedUri);n instanceof Fd&&n.revertRangeMappings((i=t.mapping.innerChanges)!==null&&i!==void 0?i:[])}}const bq=Ve("accessibleDiffViewer","Accessible Diff Viewer");class P_ extends Ys{constructor(){super({id:P_.id,title:Ve("editor.action.accessibleDiffViewer.next","Go to Next Difference"),category:bq,precondition:K.has("isInDiffEditor"),keybinding:{primary:65,weight:100},f1:!0})}run(e){const t=O_(e);t==null||t.accessibleDiffViewerNext()}}P_.id="editor.action.accessibleDiffViewer.next";class u1 extends Ys{constructor(){super({id:u1.id,title:Ve("editor.action.accessibleDiffViewer.prev","Go to Previous Difference"),category:bq,precondition:K.has("isInDiffEditor"),keybinding:{primary:1089,weight:100},f1:!0})}run(e){const t=O_(e);t==null||t.accessibleDiffViewerPrev()}}u1.id="editor.action.accessibleDiffViewer.prev";function ube(o,e,t){return o.get(Ct).listDiffEditors().find(s=>{var r,a;const l=s.getModifiedEditor(),c=s.getOriginalEditor();return l&&((r=l.getModel())===null||r===void 0?void 0:r.uri.toString())===t.toString()&&c&&((a=c.getModel())===null||a===void 0?void 0:a.uri.toString())===e.toString()})||null}function O_(o){const t=o.get(Ct).listDiffEditors(),i=es();if(i)for(const n of t){const s=n.getContainerDomNode();if(hbe(s,i))return n}return null}function hbe(o,e){let t=e;for(;t;){if(t===o)return!0;t=t.parentElement}return!1}Yt(rbe);Yt(_q);Yt(vq);Tn.appendMenuItem(D.EditorTitle,{command:{id:new vq().desc.id,title:p("useInlineViewWhenSpaceIsLimited","Use Inline View When Space Is Limited"),toggled:K.has("config.diffEditor.useInlineViewWhenSpaceIsLimited"),precondition:K.has("isInDiffEditor")},order:11,group:"1_diff",when:K.and(E.diffEditorRenderSideBySideInlineBreakpointReached,K.has("isInDiffEditor"))});Tn.appendMenuItem(D.EditorTitle,{command:{id:new _q().desc.id,title:p("showMoves","Show Moved Code Blocks"),icon:re.move,toggled:L_.create("config.diffEditor.experimental.showMoves",!0),precondition:K.has("isInDiffEditor")},order:10,group:"1_diff",when:K.has("isInDiffEditor")});Yt(uR);for(const o of[{icon:re.arrowRight,key:E.diffEditorInlineMode.toNegated()},{icon:re.discard,key:E.diffEditorInlineMode}])Tn.appendMenuItem(D.DiffEditorHunkToolbar,{command:{id:new uR().desc.id,title:p("revertHunk","Revert Block"),icon:o.icon},when:K.and(E.diffEditorModifiedWritable,o.key),order:5,group:"primary"}),Tn.appendMenuItem(D.DiffEditorSelectionToolbar,{command:{id:new uR().desc.id,title:p("revertSelection","Revert Selection"),icon:o.icon},when:K.and(E.diffEditorModifiedWritable,o.key),order:5,group:"primary"});Yt(abe);Yt(lbe);Yt(cbe);Yt(dbe);Tn.appendMenuItem(D.EditorTitle,{command:{id:P_.id,title:p("Open Accessible Diff Viewer","Open Accessible Diff Viewer"),precondition:K.has("isInDiffEditor")},order:10,group:"2_diff",when:K.and(E.accessibleDiffViewerVisible.negate(),K.has("isInDiffEditor"))});gt.registerCommandAlias("editor.action.diffReview.next",P_.id);Yt(P_);gt.registerCommandAlias("editor.action.diffReview.prev",u1.id);Yt(u1);var gbe=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},fbe=function(o,e){return function(t,i){e(t,i,o)}},hR;const Px=new he("selectionAnchorSet",!1);let Bd=hR=class{static get(e){return e.getContribution(hR.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=Px.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations(t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(be.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new ls().appendText(p("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),go(p("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(be.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations(t=>{t.removeDecoration(e),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};Bd.ID="editor.contrib.selectionAnchorController";Bd=hR=gbe([fbe(1,Pe)],Bd);class pbe extends ge{constructor(){super({id:"editor.action.setSelectionAnchor",label:p("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:E.editorTextFocus,primary:an(2089,2080),weight:100}})}async run(e,t){var i;(i=Bd.get(t))===null||i===void 0||i.setSelectionAnchor()}}class mbe extends ge{constructor(){super({id:"editor.action.goToSelectionAnchor",label:p("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:Px})}async run(e,t){var i;(i=Bd.get(t))===null||i===void 0||i.goToSelectionAnchor()}}class _be extends ge{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:p("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:Px,kbOpts:{kbExpr:E.editorTextFocus,primary:an(2089,2089),weight:100}})}async run(e,t){var i;(i=Bd.get(t))===null||i===void 0||i.selectFromAnchorToCursor()}}class vbe extends ge{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:p("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:Px,kbOpts:{kbExpr:E.editorTextFocus,primary:9,weight:100}})}async run(e,t){var i;(i=Bd.get(t))===null||i===void 0||i.cancelSelectionAnchor()}}wt(Bd.ID,Bd,4);ee(pbe);ee(mbe);ee(_be);ee(vbe);const bbe=N("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hcDark:"#A0A0A0",hcLight:"#A0A0A0"},p("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class Cbe extends ge{constructor(){super({id:"editor.action.jumpToBracket",label:p("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:E.editorTextFocus,primary:3165,weight:100}})}run(e,t){var i;(i=pa.get(t))===null||i===void 0||i.jumpToBracket()}}class wbe extends ge{constructor(){super({id:"editor.action.selectToBracket",label:p("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,metadata:{description:Ve("smartSelect.selectToBracketDescription","Select the text inside and including the brackets or curly braces"),args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){var n;let s=!0;i&&i.selectBrackets===!1&&(s=!1),(n=pa.get(t))===null||n===void 0||n.selectToBracket(s)}}class Sbe extends ge{constructor(){super({id:"editor.action.removeBrackets",label:p("smartSelect.removeBrackets","Remove Brackets"),alias:"Remove Brackets",precondition:void 0,kbOpts:{kbExpr:E.editorTextFocus,primary:2561,weight:100}})}run(e,t){var i;(i=pa.get(t))===null||i===void 0||i.removeBrackets(this.id)}}class ybe{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}class pa extends H{static get(e){return e.getContribution(pa.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new zt(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(72),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(t=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(t=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(72)&&(this._matchBrackets=this._editor.getOption(72),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(e.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map(i=>{const n=i.getStartPosition(),s=e.bracketPairs.matchBracket(n);let r=null;if(s)s[0].containsPosition(n)&&!s[1].containsPosition(n)?r=s[1].getStartPosition():s[1].containsPosition(n)&&(r=s[0].getStartPosition());else{const a=e.bracketPairs.findEnclosingBrackets(n);if(a)r=a[1].getStartPosition();else{const l=e.bracketPairs.findNextBracket(n);l&&l.range&&(r=l.range.getStartPosition())}}return r?new be(r.lineNumber,r.column,r.lineNumber,r.column):new be(n.lineNumber,n.column,n.lineNumber,n.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach(n=>{const s=n.getStartPosition();let r=t.bracketPairs.matchBracket(s);if(!r&&(r=t.bracketPairs.findEnclosingBrackets(s),!r)){const c=t.bracketPairs.findNextBracket(s);c&&c.range&&(r=t.bracketPairs.matchBracket(c.range.getStartPosition()))}let a=null,l=null;if(r){r.sort(x.compareRangesUsingStarts);const[c,d]=r;if(a=e?c.getStartPosition():c.getEndPosition(),l=e?d.getEndPosition():d.getStartPosition(),d.containsPosition(s)){const u=a;a=l,l=u}}a&&l&&i.push(new be(a.lineNumber,a.column,l.lineNumber,l.column))}),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}removeBrackets(e){if(!this._editor.hasModel())return;const t=this._editor.getModel();this._editor.getSelections().forEach(i=>{const n=i.getPosition();let s=t.bracketPairs.matchBracket(n);s||(s=t.bracketPairs.findEnclosingBrackets(n)),s&&(this._editor.pushUndoStop(),this._editor.executeEdits(e,[{range:s[0],text:""},{range:s[1],text:""}]),this._editor.pushUndoStop())})}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();const e=[];let t=0;for(const i of this._lastBracketsData){const n=i.brackets;n&&(e[t++]={range:n[0],options:i.options},e[t++]={range:n[1],options:i.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}const e=this._editor.getSelections();if(e.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}const t=this._editor.getModel(),i=t.getVersionId();let n=[];this._lastVersionId===i&&(n=this._lastBracketsData);const s=[];let r=0;for(let u=0,h=e.length;u1&&s.sort(W.compare);const a=[];let l=0,c=0;const d=n.length;for(let u=0,h=s.length;u0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}}ee(Dbe);const Ox=function(){if(typeof crypto=="object"&&typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);let o;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?o=crypto.getRandomValues.bind(crypto):o=function(i){for(let n=0;no,asFile:()=>{},value:typeof o=="string"?o:void 0}}function Ibe(o,e,t){const i={id:Ox(),name:o,uri:e,data:t};return{asString:async()=>"",asFile:()=>i,value:void 0}}class wq{constructor(){this._entries=new Map}get size(){let e=0;for(const t of this._entries)e++;return e}has(e){return this._entries.has(this.toKey(e))}matches(e){const t=[...this._entries.keys()];return ht.some(this,([i,n])=>n.asFile())&&t.push("files"),yq(AL(e),t)}get(e){var t;return(t=this._entries.get(this.toKey(e)))===null||t===void 0?void 0:t[0]}append(e,t){const i=this._entries.get(e);i?i.push(t):this._entries.set(this.toKey(e),[t])}replace(e,t){this._entries.set(this.toKey(e),[t])}delete(e){this._entries.delete(this.toKey(e))}*[Symbol.iterator](){for(const[e,t]of this._entries)for(const i of t)yield[e,i]}toKey(e){return AL(e)}}function AL(o){return o.toLowerCase()}function Sq(o,e){return yq(AL(o),e.map(AL))}function yq(o,e){if(o==="*/*")return e.length>0;if(e.includes(o))return!0;const t=o.match(/^([a-z]+)\/([a-z]+|\*)$/i);if(!t)return!1;const[i,n,s]=t;return s==="*"?e.some(r=>r.startsWith(n+"/")):!1}const Fx=Object.freeze({create:o=>Nd(o.map(e=>e.toString())).join(`\r + *-----------------------------------------------------------------------------*/var Yve=Object.defineProperty,Qve=Object.getOwnPropertyDescriptor,Xve=Object.getOwnPropertyNames,Jve=Object.prototype.hasOwnProperty,ebe=(o,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Xve(e))!Jve.call(o,n)&&n!==t&&Yve(o,n,{get:()=>e[n],enumerable:!(i=Qve(e,n))||i.enumerable});return o},tbe=(o,e,t)=>(ebe(o,e,"default"),t),ibe="5.4.5",c_={};tbe(c_,l1);var lq=(o=>(o[o.None=0]="None",o[o.CommonJS=1]="CommonJS",o[o.AMD=2]="AMD",o[o.UMD=3]="UMD",o[o.System=4]="System",o[o.ES2015=5]="ES2015",o[o.ESNext=99]="ESNext",o))(lq||{}),cq=(o=>(o[o.None=0]="None",o[o.Preserve=1]="Preserve",o[o.React=2]="React",o[o.ReactNative=3]="ReactNative",o[o.ReactJSX=4]="ReactJSX",o[o.ReactJSXDev=5]="ReactJSXDev",o))(cq||{}),dq=(o=>(o[o.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",o[o.LineFeed=1]="LineFeed",o))(dq||{}),uq=(o=>(o[o.ES3=0]="ES3",o[o.ES5=1]="ES5",o[o.ES2015=2]="ES2015",o[o.ES2016=3]="ES2016",o[o.ES2017=4]="ES2017",o[o.ES2018=5]="ES2018",o[o.ES2019=6]="ES2019",o[o.ES2020=7]="ES2020",o[o.ESNext=99]="ESNext",o[o.JSON=100]="JSON",o[o.Latest=99]="Latest",o))(uq||{}),hq=(o=>(o[o.Classic=1]="Classic",o[o.NodeJs=2]="NodeJs",o))(hq||{}),gq=class{constructor(o,e,t,i,n){this._onDidChange=new c_.Emitter,this._onDidExtraLibsChange=new c_.Emitter,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(o),this.setDiagnosticsOptions(e),this.setWorkerOptions(t),this.setInlayHintsOptions(i),this.setModeConfiguration(n),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get modeConfiguration(){return this._modeConfiguration}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(o,e){let t;if(typeof e>"u"?t=`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t=e,this._extraLibs[t]&&this._extraLibs[t].content===o)return{dispose:()=>{}};let i=1;return this._removedExtraLibs[t]&&(i=this._removedExtraLibs[t]+1),this._extraLibs[t]&&(i=this._extraLibs[t].version+1),this._extraLibs[t]={content:o,version:i},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let n=this._extraLibs[t];n&&n.version===i&&(delete this._extraLibs[t],this._removedExtraLibs[t]=i,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(o){for(const e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),o&&o.length>0)for(const e of o){const t=e.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=e.content;let n=1;this._removedExtraLibs[t]&&(n=this._removedExtraLibs[t]+1),this._extraLibs[t]={content:i,version:n}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(o){this._compilerOptions=o||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(o){this._diagnosticsOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(o){this._workerOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(o){this._inlayHintsOptions=o||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(o){}setEagerModelSync(o){this._eagerModelSync=o}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(o){this._modeConfiguration=o||Object.create(null),this._onDidChange.fire(void 0)}},nbe=ibe,fq={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,diagnostics:!0,documentRangeFormattingEdits:!0,signatureHelp:!0,onTypeFormattingEdits:!0,codeActions:!0,inlayHints:!0},pq=new gq({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},fq),mq=new gq({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},fq),sbe=()=>Mx().then(o=>o.getTypeScriptWorker()),obe=()=>Mx().then(o=>o.getJavaScriptWorker());c_.languages.typescript={ModuleKind:lq,JsxEmit:cq,NewLineKind:dq,ScriptTarget:uq,ModuleResolutionKind:hq,typescriptVersion:nbe,typescriptDefaults:pq,javascriptDefaults:mq,getTypeScriptWorker:sbe,getJavaScriptWorker:obe};function Mx(){return Se(()=>import("./tsMode-Bx98Lcxh.js"),__vite__mapDeps([20,1,2,3,4,5,6]))}c_.languages.onLanguage("typescript",()=>Mx().then(o=>o.setupTypeScript(pq)));c_.languages.onLanguage("javascript",()=>Mx().then(o=>o.setupJavaScript(mq)));class rbe extends Ys{constructor(){super({id:"diffEditor.toggleCollapseUnchangedRegions",title:Ve("toggleCollapseUnchangedRegions","Toggle Collapse Unchanged Regions"),icon:re.map,toggled:K.has("config.diffEditor.hideUnchangedRegions.enabled"),precondition:K.has("isInDiffEditor"),menu:{when:K.has("isInDiffEditor"),id:D.EditorTitle,order:22,group:"navigation"}})}run(e,...t){const i=e.get(it),n=!i.getValue("diffEditor.hideUnchangedRegions.enabled");i.updateValue("diffEditor.hideUnchangedRegions.enabled",n)}}class _q extends Ys{constructor(){super({id:"diffEditor.toggleShowMovedCodeBlocks",title:Ve("toggleShowMovedCodeBlocks","Toggle Show Moved Code Blocks"),precondition:K.has("isInDiffEditor")})}run(e,...t){const i=e.get(it),n=!i.getValue("diffEditor.experimental.showMoves");i.updateValue("diffEditor.experimental.showMoves",n)}}class vq extends Ys{constructor(){super({id:"diffEditor.toggleUseInlineViewWhenSpaceIsLimited",title:Ve("toggleUseInlineViewWhenSpaceIsLimited","Toggle Use Inline View When Space Is Limited"),precondition:K.has("isInDiffEditor")})}run(e,...t){const i=e.get(it),n=!i.getValue("diffEditor.useInlineViewWhenSpaceIsLimited");i.updateValue("diffEditor.useInlineViewWhenSpaceIsLimited",n)}}const d1=Ve("diffEditor","Diff Editor");class abe extends pl{constructor(){super({id:"diffEditor.switchSide",title:Ve("switchSide","Switch Side"),icon:re.arrowSwap,precondition:K.has("isInDiffEditor"),f1:!0,category:d1})}runEditorCommand(e,t,i){const n=O_(e);if(n instanceof Fd){if(i&&i.dryRun)return{destinationSelection:n.mapToOtherSide().destinationSelection};n.switchSide()}}}class lbe extends pl{constructor(){super({id:"diffEditor.exitCompareMove",title:Ve("exitCompareMove","Exit Compare Move"),icon:re.close,precondition:E.comparingMovedCode,f1:!1,category:d1,keybinding:{weight:1e4,primary:9}})}runEditorCommand(e,t,...i){const n=O_(e);n instanceof Fd&&n.exitCompareMove()}}class cbe extends pl{constructor(){super({id:"diffEditor.collapseAllUnchangedRegions",title:Ve("collapseAllUnchangedRegions","Collapse All Unchanged Regions"),icon:re.fold,precondition:K.has("isInDiffEditor"),f1:!0,category:d1})}runEditorCommand(e,t,...i){const n=O_(e);n instanceof Fd&&n.collapseAllUnchangedRegions()}}class dbe extends pl{constructor(){super({id:"diffEditor.showAllUnchangedRegions",title:Ve("showAllUnchangedRegions","Show All Unchanged Regions"),icon:re.unfold,precondition:K.has("isInDiffEditor"),f1:!0,category:d1})}runEditorCommand(e,t,...i){const n=O_(e);n instanceof Fd&&n.showAllUnchangedRegions()}}class uR extends Ys{constructor(){super({id:"diffEditor.revert",title:Ve("revert","Revert"),f1:!1,category:d1})}run(e,t){var i;const n=ube(e,t.originalUri,t.modifiedUri);n instanceof Fd&&n.revertRangeMappings((i=t.mapping.innerChanges)!==null&&i!==void 0?i:[])}}const bq=Ve("accessibleDiffViewer","Accessible Diff Viewer");class P_ extends Ys{constructor(){super({id:P_.id,title:Ve("editor.action.accessibleDiffViewer.next","Go to Next Difference"),category:bq,precondition:K.has("isInDiffEditor"),keybinding:{primary:65,weight:100},f1:!0})}run(e){const t=O_(e);t==null||t.accessibleDiffViewerNext()}}P_.id="editor.action.accessibleDiffViewer.next";class u1 extends Ys{constructor(){super({id:u1.id,title:Ve("editor.action.accessibleDiffViewer.prev","Go to Previous Difference"),category:bq,precondition:K.has("isInDiffEditor"),keybinding:{primary:1089,weight:100},f1:!0})}run(e){const t=O_(e);t==null||t.accessibleDiffViewerPrev()}}u1.id="editor.action.accessibleDiffViewer.prev";function ube(o,e,t){return o.get(Ct).listDiffEditors().find(s=>{var r,a;const l=s.getModifiedEditor(),c=s.getOriginalEditor();return l&&((r=l.getModel())===null||r===void 0?void 0:r.uri.toString())===t.toString()&&c&&((a=c.getModel())===null||a===void 0?void 0:a.uri.toString())===e.toString()})||null}function O_(o){const t=o.get(Ct).listDiffEditors(),i=es();if(i)for(const n of t){const s=n.getContainerDomNode();if(hbe(s,i))return n}return null}function hbe(o,e){let t=e;for(;t;){if(t===o)return!0;t=t.parentElement}return!1}Yt(rbe);Yt(_q);Yt(vq);Tn.appendMenuItem(D.EditorTitle,{command:{id:new vq().desc.id,title:p("useInlineViewWhenSpaceIsLimited","Use Inline View When Space Is Limited"),toggled:K.has("config.diffEditor.useInlineViewWhenSpaceIsLimited"),precondition:K.has("isInDiffEditor")},order:11,group:"1_diff",when:K.and(E.diffEditorRenderSideBySideInlineBreakpointReached,K.has("isInDiffEditor"))});Tn.appendMenuItem(D.EditorTitle,{command:{id:new _q().desc.id,title:p("showMoves","Show Moved Code Blocks"),icon:re.move,toggled:L_.create("config.diffEditor.experimental.showMoves",!0),precondition:K.has("isInDiffEditor")},order:10,group:"1_diff",when:K.has("isInDiffEditor")});Yt(uR);for(const o of[{icon:re.arrowRight,key:E.diffEditorInlineMode.toNegated()},{icon:re.discard,key:E.diffEditorInlineMode}])Tn.appendMenuItem(D.DiffEditorHunkToolbar,{command:{id:new uR().desc.id,title:p("revertHunk","Revert Block"),icon:o.icon},when:K.and(E.diffEditorModifiedWritable,o.key),order:5,group:"primary"}),Tn.appendMenuItem(D.DiffEditorSelectionToolbar,{command:{id:new uR().desc.id,title:p("revertSelection","Revert Selection"),icon:o.icon},when:K.and(E.diffEditorModifiedWritable,o.key),order:5,group:"primary"});Yt(abe);Yt(lbe);Yt(cbe);Yt(dbe);Tn.appendMenuItem(D.EditorTitle,{command:{id:P_.id,title:p("Open Accessible Diff Viewer","Open Accessible Diff Viewer"),precondition:K.has("isInDiffEditor")},order:10,group:"2_diff",when:K.and(E.accessibleDiffViewerVisible.negate(),K.has("isInDiffEditor"))});gt.registerCommandAlias("editor.action.diffReview.next",P_.id);Yt(P_);gt.registerCommandAlias("editor.action.diffReview.prev",u1.id);Yt(u1);var gbe=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},fbe=function(o,e){return function(t,i){e(t,i,o)}},hR;const Px=new he("selectionAnchorSet",!1);let Bd=hR=class{static get(e){return e.getContribution(hR.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=Px.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations(t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(be.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new ls().appendText(p("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),go(p("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(be.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations(t=>{t.removeDecoration(e),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};Bd.ID="editor.contrib.selectionAnchorController";Bd=hR=gbe([fbe(1,Pe)],Bd);class pbe extends ge{constructor(){super({id:"editor.action.setSelectionAnchor",label:p("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:E.editorTextFocus,primary:an(2089,2080),weight:100}})}async run(e,t){var i;(i=Bd.get(t))===null||i===void 0||i.setSelectionAnchor()}}class mbe extends ge{constructor(){super({id:"editor.action.goToSelectionAnchor",label:p("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:Px})}async run(e,t){var i;(i=Bd.get(t))===null||i===void 0||i.goToSelectionAnchor()}}class _be extends ge{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:p("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:Px,kbOpts:{kbExpr:E.editorTextFocus,primary:an(2089,2089),weight:100}})}async run(e,t){var i;(i=Bd.get(t))===null||i===void 0||i.selectFromAnchorToCursor()}}class vbe extends ge{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:p("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:Px,kbOpts:{kbExpr:E.editorTextFocus,primary:9,weight:100}})}async run(e,t){var i;(i=Bd.get(t))===null||i===void 0||i.cancelSelectionAnchor()}}wt(Bd.ID,Bd,4);ee(pbe);ee(mbe);ee(_be);ee(vbe);const bbe=N("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hcDark:"#A0A0A0",hcLight:"#A0A0A0"},p("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class Cbe extends ge{constructor(){super({id:"editor.action.jumpToBracket",label:p("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:E.editorTextFocus,primary:3165,weight:100}})}run(e,t){var i;(i=pa.get(t))===null||i===void 0||i.jumpToBracket()}}class wbe extends ge{constructor(){super({id:"editor.action.selectToBracket",label:p("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,metadata:{description:Ve("smartSelect.selectToBracketDescription","Select the text inside and including the brackets or curly braces"),args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){var n;let s=!0;i&&i.selectBrackets===!1&&(s=!1),(n=pa.get(t))===null||n===void 0||n.selectToBracket(s)}}class Sbe extends ge{constructor(){super({id:"editor.action.removeBrackets",label:p("smartSelect.removeBrackets","Remove Brackets"),alias:"Remove Brackets",precondition:void 0,kbOpts:{kbExpr:E.editorTextFocus,primary:2561,weight:100}})}run(e,t){var i;(i=pa.get(t))===null||i===void 0||i.removeBrackets(this.id)}}class ybe{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}class pa extends H{static get(e){return e.getContribution(pa.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new zt(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(72),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(t=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(t=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(72)&&(this._matchBrackets=this._editor.getOption(72),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(e.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map(i=>{const n=i.getStartPosition(),s=e.bracketPairs.matchBracket(n);let r=null;if(s)s[0].containsPosition(n)&&!s[1].containsPosition(n)?r=s[1].getStartPosition():s[1].containsPosition(n)&&(r=s[0].getStartPosition());else{const a=e.bracketPairs.findEnclosingBrackets(n);if(a)r=a[1].getStartPosition();else{const l=e.bracketPairs.findNextBracket(n);l&&l.range&&(r=l.range.getStartPosition())}}return r?new be(r.lineNumber,r.column,r.lineNumber,r.column):new be(n.lineNumber,n.column,n.lineNumber,n.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach(n=>{const s=n.getStartPosition();let r=t.bracketPairs.matchBracket(s);if(!r&&(r=t.bracketPairs.findEnclosingBrackets(s),!r)){const c=t.bracketPairs.findNextBracket(s);c&&c.range&&(r=t.bracketPairs.matchBracket(c.range.getStartPosition()))}let a=null,l=null;if(r){r.sort(x.compareRangesUsingStarts);const[c,d]=r;if(a=e?c.getStartPosition():c.getEndPosition(),l=e?d.getEndPosition():d.getStartPosition(),d.containsPosition(s)){const u=a;a=l,l=u}}a&&l&&i.push(new be(a.lineNumber,a.column,l.lineNumber,l.column))}),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}removeBrackets(e){if(!this._editor.hasModel())return;const t=this._editor.getModel();this._editor.getSelections().forEach(i=>{const n=i.getPosition();let s=t.bracketPairs.matchBracket(n);s||(s=t.bracketPairs.findEnclosingBrackets(n)),s&&(this._editor.pushUndoStop(),this._editor.executeEdits(e,[{range:s[0],text:""},{range:s[1],text:""}]),this._editor.pushUndoStop())})}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();const e=[];let t=0;for(const i of this._lastBracketsData){const n=i.brackets;n&&(e[t++]={range:n[0],options:i.options},e[t++]={range:n[1],options:i.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}const e=this._editor.getSelections();if(e.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}const t=this._editor.getModel(),i=t.getVersionId();let n=[];this._lastVersionId===i&&(n=this._lastBracketsData);const s=[];let r=0;for(let u=0,h=e.length;u1&&s.sort(W.compare);const a=[];let l=0,c=0;const d=n.length;for(let u=0,h=s.length;u0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}}ee(Dbe);const Ox=function(){if(typeof crypto=="object"&&typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);let o;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?o=crypto.getRandomValues.bind(crypto):o=function(i){for(let n=0;no,asFile:()=>{},value:typeof o=="string"?o:void 0}}function Ibe(o,e,t){const i={id:Ox(),name:o,uri:e,data:t};return{asString:async()=>"",asFile:()=>i,value:void 0}}class wq{constructor(){this._entries=new Map}get size(){let e=0;for(const t of this._entries)e++;return e}has(e){return this._entries.has(this.toKey(e))}matches(e){const t=[...this._entries.keys()];return ht.some(this,([i,n])=>n.asFile())&&t.push("files"),yq(AL(e),t)}get(e){var t;return(t=this._entries.get(this.toKey(e)))===null||t===void 0?void 0:t[0]}append(e,t){const i=this._entries.get(e);i?i.push(t):this._entries.set(this.toKey(e),[t])}replace(e,t){this._entries.set(this.toKey(e),[t])}delete(e){this._entries.delete(this.toKey(e))}*[Symbol.iterator](){for(const[e,t]of this._entries)for(const i of t)yield[e,i]}toKey(e){return AL(e)}}function AL(o){return o.toLowerCase()}function Sq(o,e){return yq(AL(o),e.map(AL))}function yq(o,e){if(o==="*/*")return e.length>0;if(e.includes(o))return!0;const t=o.match(/^([a-z]+)\/([a-z]+|\*)$/i);if(!t)return!1;const[i,n,s]=t;return s==="*"?e.some(r=>r.startsWith(n+"/")):!1}const Fx=Object.freeze({create:o=>Nd(o.map(e=>e.toString())).join(`\r `),split:o=>o.split(`\r `),parse:o=>Fx.split(o).filter(e=>!e.startsWith("#"))});class Ht{constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||this.value===""||e.value.startsWith(this.value+Ht.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(...e){return new Ht((this.value?[this.value,...e]:e).join(Ht.sep))}}Ht.sep=".";Ht.None=new Ht("@@none@@");Ht.Empty=new Ht("");const k7={EDITORS:"CodeEditors",FILES:"CodeFiles"};class Ebe{}const Nbe={DragAndDropContribution:"workbench.contributions.dragAndDrop"};Ci.add(Nbe.DragAndDropContribution,new Ebe);class Y0{constructor(){}static getInstance(){return Y0.INSTANCE}hasData(e){return e&&e===this.proto}getData(e){if(this.hasData(e))return this.data}}Y0.INSTANCE=new Y0;function Lq(o){const e=new wq;for(const t of o.items){const i=t.type;if(t.kind==="string"){const n=new Promise(s=>t.getAsString(s));e.append(i,PF(n))}else if(t.kind==="file"){const n=t.getAsFile();n&&e.append(i,Tbe(n))}}return e}function Tbe(o){const e=o.path?Ne.parse(o.path):void 0;return Ibe(o.name,e,async()=>new Uint8Array(await o.arrayBuffer()))}const Abe=Object.freeze([k7.EDITORS,k7.FILES,T0.RESOURCES,T0.INTERNAL_URI_LIST]);function kq(o,e=!1){const t=Lq(o),i=t.get(T0.INTERNAL_URI_LIST);if(i)t.replace(Ai.uriList,i);else if(e||!t.has(Ai.uriList)){const n=[];for(const s of o.items){const r=s.getAsFile();if(r){const a=r.path;try{a?n.push(Ne.file(a).toString()):n.push(Ne.parse(r.name,!0).toString())}catch{}}}n.length&&t.replace(Ai.uriList,PF(Fx.create(n)))}for(const n of Abe)t.delete(n);return t}var OF=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Q0=function(o,e){return function(t,i){e(t,i,o)}};class FF{async provideDocumentPasteEdits(e,t,i,n,s){const r=await this.getEdit(i,s);if(r)return{dispose(){},edits:[{insertText:r.insertText,title:r.title,kind:r.kind,handledMimeType:r.handledMimeType,yieldTo:r.yieldTo}]}}async provideDocumentDropEdits(e,t,i,n){const s=await this.getEdit(i,n);return s?[{insertText:s.insertText,title:s.title,kind:s.kind,handledMimeType:s.handledMimeType,yieldTo:s.yieldTo}]:void 0}}class Wd extends FF{constructor(){super(...arguments),this.kind=Wd.kind,this.dropMimeTypes=[Ai.text],this.pasteMimeTypes=[Ai.text]}async getEdit(e,t){const i=e.get(Ai.text);if(!i||e.has(Ai.uriList))return;const n=await i.asString();return{handledMimeType:Ai.text,title:p("text.label","Insert Plain Text"),insertText:n,kind:this.kind}}}Wd.id="text";Wd.kind=new Ht("text.plain");class xq extends FF{constructor(){super(...arguments),this.kind=new Ht("uri.absolute"),this.dropMimeTypes=[Ai.uriList],this.pasteMimeTypes=[Ai.uriList]}async getEdit(e,t){const i=await Dq(e);if(!i.length||t.isCancellationRequested)return;let n=0;const s=i.map(({uri:a,originalText:l})=>a.scheme===We.file?a.fsPath:(n++,l)).join(" ");let r;return n>0?r=i.length>1?p("defaultDropProvider.uriList.uris","Insert Uris"):p("defaultDropProvider.uriList.uri","Insert Uri"):r=i.length>1?p("defaultDropProvider.uriList.paths","Insert Paths"):p("defaultDropProvider.uriList.path","Insert Path"),{handledMimeType:Ai.uriList,insertText:s,title:r,kind:this.kind}}}let RL=class extends FF{constructor(e){super(),this._workspaceContextService=e,this.kind=new Ht("uri.relative"),this.dropMimeTypes=[Ai.uriList],this.pasteMimeTypes=[Ai.uriList]}async getEdit(e,t){const i=await Dq(e);if(!i.length||t.isCancellationRequested)return;const n=tl(i.map(({uri:s})=>{const r=this._workspaceContextService.getWorkspaceFolder(s);return r?Vre(r.uri,s):void 0}));if(n.length)return{handledMimeType:Ai.uriList,insertText:n.join(" "),title:i.length>1?p("defaultDropProvider.uriList.relativePaths","Insert Relative Paths"):p("defaultDropProvider.uriList.relativePath","Insert Relative Path"),kind:this.kind}}};RL=OF([Q0(0,cf)],RL);class Rbe{constructor(){this.kind=new Ht("html"),this.pasteMimeTypes=["text/html"],this._yieldTo=[{mimeType:Ai.text}]}async provideDocumentPasteEdits(e,t,i,n,s){var r;if(n.triggerKind!==Gb.PasteAs&&!(!((r=n.only)===null||r===void 0)&&r.contains(this.kind)))return;const a=i.get("text/html"),l=await(a==null?void 0:a.asString());if(!(!l||s.isCancellationRequested))return{dispose(){},edits:[{insertText:l,yieldTo:this._yieldTo,title:p("pasteHtmlLabel","Insert HTML"),kind:this.kind}]}}}async function Dq(o){const e=o.get(Ai.uriList);if(!e)return[];const t=await e.asString(),i=[];for(const n of Fx.parse(t))try{i.push({uri:Ne.parse(n),originalText:n})}catch{}return i}let gR=class extends H{constructor(e,t){super(),this._register(e.documentDropEditProvider.register("*",new Wd)),this._register(e.documentDropEditProvider.register("*",new xq)),this._register(e.documentDropEditProvider.register("*",new RL(t)))}};gR=OF([Q0(0,ve),Q0(1,cf)],gR);let fR=class extends H{constructor(e,t){super(),this._register(e.documentPasteEditProvider.register("*",new Wd)),this._register(e.documentPasteEditProvider.register("*",new xq)),this._register(e.documentPasteEditProvider.register("*",new RL(t))),this._register(e.documentPasteEditProvider.register("*",new Rbe))}};fR=OF([Q0(0,ve),Q0(1,cf)],fR);class ea{constructor(){this.value="",this.pos=0}static isDigitCharacter(e){return e>=48&&e<=57}static isVariableCharacter(e){return e===95||e>=97&&e<=122||e>=65&&e<=90}text(e){this.value=e,this.pos=0}tokenText(e){return this.value.substr(e.pos,e.len)}next(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};const e=this.pos;let t=0,i=this.value.charCodeAt(e),n;if(n=ea._table[i],typeof n=="number")return this.pos+=1,{type:n,pos:e,len:1};if(ea.isDigitCharacter(i)){n=8;do t+=1,i=this.value.charCodeAt(e+t);while(ea.isDigitCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}if(ea.isVariableCharacter(i)){n=9;do i=this.value.charCodeAt(e+ ++t);while(ea.isVariableCharacter(i)||ea.isDigitCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}n=10;do t+=1,i=this.value.charCodeAt(e+t);while(!isNaN(i)&&typeof ea._table[i]>"u"&&!ea.isDigitCharacter(i)&&!ea.isVariableCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}}ea._table={36:0,58:1,44:2,123:3,125:4,92:5,47:6,124:7,43:11,45:12,63:13};class F_{constructor(){this._children=[]}appendChild(e){return e instanceof Os&&this._children[this._children.length-1]instanceof Os?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}replace(e,t){const{parent:i}=e,n=i.children.indexOf(e),s=i.children.slice(0);s.splice(n,1,...t),i._children=s,function r(a,l){for(const c of a)c.parent=l,r(c.children,c)}(t,i)}get children(){return this._children}get rightMostDescendant(){return this._children.length>0?this._children[this._children.length-1].rightMostDescendant:this}get snippet(){let e=this;for(;;){if(!e)return;if(e instanceof h1)return e;e=e.parent}}toString(){return this.children.reduce((e,t)=>e+t.toString(),"")}len(){return 0}}class Os extends F_{constructor(e){super(),this.value=e}toString(){return this.value}len(){return this.value.length}clone(){return new Os(this.value)}}class Iq extends F_{}class Sr extends Iq{static compareByIndex(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop||e.indext.index?1:0}constructor(e){super(),this.index=e}get isFinalTabstop(){return this.index===0}get choice(){return this._children.length===1&&this._children[0]instanceof B_?this._children[0]:void 0}clone(){const e=new Sr(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}class B_ extends F_{constructor(){super(...arguments),this.options=[]}appendChild(e){return e instanceof Os&&(e.parent=this,this.options.push(e)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){const e=new B_;return this.options.forEach(e.appendChild,e),e}}class BF extends F_{constructor(){super(...arguments),this.regexp=new RegExp("")}resolve(e){const t=this;let i=!1,n=e.replace(this.regexp,function(){return i=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))});return!i&&this._children.some(s=>s instanceof Pa&&!!s.elseValue)&&(n=this._replace([])),n}_replace(e){let t="";for(const i of this._children)if(i instanceof Pa){let n=e[i.index]||"";n=i.resolve(n),t+=n}else t+=i.toString();return t}toString(){return""}clone(){const e=new BF;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map(t=>t.clone()),e}}class Pa extends F_{constructor(e,t,i,n){super(),this.index=e,this.shorthandName=t,this.ifValue=i,this.elseValue=n}resolve(e){return this.shorthandName==="upcase"?e?e.toLocaleUpperCase():"":this.shorthandName==="downcase"?e?e.toLocaleLowerCase():"":this.shorthandName==="capitalize"?e?e[0].toLocaleUpperCase()+e.substr(1):"":this.shorthandName==="pascalcase"?e?this._toPascalCase(e):"":this.shorthandName==="camelcase"?e?this._toCamelCase(e):"":e&&typeof this.ifValue=="string"?this.ifValue:!e&&typeof this.elseValue=="string"?this.elseValue:e||""}_toPascalCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map(i=>i.charAt(0).toUpperCase()+i.substr(1)).join(""):e}_toCamelCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map((i,n)=>n===0?i.charAt(0).toLowerCase()+i.substr(1):i.charAt(0).toUpperCase()+i.substr(1)).join(""):e}clone(){return new Pa(this.index,this.shorthandName,this.ifValue,this.elseValue)}}class X0 extends Iq{constructor(e){super(),this.name=e}resolve(e){let t=e.resolve(this);return this.transform&&(t=this.transform.resolve(t||"")),t!==void 0?(this._children=[new Os(t)],!0):!1}clone(){const e=new X0(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}function x7(o,e){const t=[...o];for(;t.length>0;){const i=t.shift();if(!e(i))break;t.unshift(...i.children)}}class h1 extends F_{get placeholderInfo(){if(!this._placeholders){const e=[];let t;this.walk(function(i){return i instanceof Sr&&(e.push(i),t=!t||t.indexn===e?(i=!0,!1):(t+=n.len(),!0)),i?t:-1}fullLen(e){let t=0;return x7([e],i=>(t+=i.len(),!0)),t}enclosingPlaceholders(e){const t=[];let{parent:i}=e;for(;i;)i instanceof Sr&&t.push(i),i=i.parent;return t}resolveVariables(e){return this.walk(t=>(t instanceof X0&&t.resolve(e)&&(this._placeholders=void 0),!0)),this}appendChild(e){return this._placeholders=void 0,super.appendChild(e)}replace(e,t){return this._placeholders=void 0,super.replace(e,t)}clone(){const e=new h1;return this._children=this.children.map(t=>t.clone()),e}walk(e){x7(this.children,e)}}class pf{constructor(){this._scanner=new ea,this._token={type:14,pos:0,len:0}}static escape(e){return e.replace(/\$|}|\\/g,"\\$&")}static guessNeedsClipboard(e){return/\${?CLIPBOARD/.test(e)}parse(e,t,i){const n=new h1;return this.parseFragment(e,n),this.ensureFinalTabstop(n,i??!1,t??!1),n}parseFragment(e,t){const i=t.children.length;for(this._scanner.text(e),this._token=this._scanner.next();this._parse(t););const n=new Map,s=[];t.walk(l=>(l instanceof Sr&&(l.isFinalTabstop?n.set(0,void 0):!n.has(l.index)&&l.children.length>0?n.set(l.index,l.children):s.push(l)),!0));const r=(l,c)=>{const d=n.get(l.index);if(!d)return;const u=new Sr(l.index);u.transform=l.transform;for(const h of d){const g=h.clone();u.appendChild(g),g instanceof Sr&&n.has(g.index)&&!c.has(g.index)&&(c.add(g.index),r(g,c),c.delete(g.index))}t.replace(l,[u])},a=new Set;for(const l of s)r(l,a);return t.children.slice(i)}ensureFinalTabstop(e,t,i){(t||i&&e.placeholders.length>0)&&(e.placeholders.find(s=>s.index===0)||e.appendChild(new Sr(0)))}_accept(e,t){if(e===void 0||this._token.type===e){const i=t?this._scanner.tokenText(this._token):!0;return this._token=this._scanner.next(),i}return!1}_backTo(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}_until(e){const t=this._token;for(;this._token.type!==e;){if(this._token.type===14)return!1;if(this._token.type===5){const n=this._scanner.next();if(n.type!==0&&n.type!==4&&n.type!==5)return!1}this._token=this._scanner.next()}const i=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),i}_parse(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)}_parseEscaped(e){let t;return(t=this._accept(5,!0))?(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||t,e.appendChild(new Os(t)),!0):!1}_parseTabstopOrVariableName(e){let t;const i=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new Sr(Number(t)):new X0(t)),!0):this._backTo(i)}_parseComplexPlaceholder(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(i);const s=new Sr(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(s),!0;if(!this._parse(s))return e.appendChild(new Os("${"+t+":")),s.children.forEach(e.appendChild,e),!0}else if(s.index>0&&this._accept(7)){const r=new B_;for(;;){if(this._parseChoiceElement(r)){if(this._accept(2))continue;if(this._accept(7)&&(s.appendChild(r),this._accept(4)))return e.appendChild(s),!0}return this._backTo(i),!1}}else return this._accept(6)?this._parseTransform(s)?(e.appendChild(s),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(s),!0):this._backTo(i)}_parseChoiceElement(e){const t=this._token,i=[];for(;!(this._token.type===2||this._token.type===7);){let n;if((n=this._accept(5,!0))?n=this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||n:n=this._accept(void 0,!0),!n)return this._backTo(t),!1;i.push(n)}return i.length===0?(this._backTo(t),!1):(e.appendChild(new Os(i.join(""))),!0)}_parseComplexVariable(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(i);const s=new X0(t);if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(s),!0;if(!this._parse(s))return e.appendChild(new Os("${"+t+":")),s.children.forEach(e.appendChild,e),!0}else return this._accept(6)?this._parseTransform(s)?(e.appendChild(s),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(s),!0):this._backTo(i)}_parseTransform(e){const t=new BF;let i="",n="";for(;!this._accept(6);){let s;if(s=this._accept(5,!0)){s=this._accept(6,!0)||s,i+=s;continue}if(this._token.type!==14){i+=this._accept(void 0,!0);continue}return!1}for(;!this._accept(6);){let s;if(s=this._accept(5,!0)){s=this._accept(5,!0)||this._accept(6,!0)||s,t.appendChild(new Os(s));continue}if(!(this._parseFormatString(t)||this._parseAnything(t)))return!1}for(;!this._accept(4);){if(this._token.type!==14){n+=this._accept(void 0,!0);continue}return!1}try{t.regexp=new RegExp(i,n)}catch{return!1}return e.transform=t,!0}_parseFormatString(e){const t=this._token;if(!this._accept(0))return!1;let i=!1;this._accept(3)&&(i=!0);const n=this._accept(8,!0);if(n)if(i){if(this._accept(4))return e.appendChild(new Pa(Number(n))),!0;if(!this._accept(1))return this._backTo(t),!1}else return e.appendChild(new Pa(Number(n))),!0;else return this._backTo(t),!1;if(this._accept(6)){const s=this._accept(9,!0);return!s||!this._accept(4)?(this._backTo(t),!1):(e.appendChild(new Pa(Number(n),s)),!0)}else if(this._accept(11)){const s=this._until(4);if(s)return e.appendChild(new Pa(Number(n),void 0,s,void 0)),!0}else if(this._accept(12)){const s=this._until(4);if(s)return e.appendChild(new Pa(Number(n),void 0,void 0,s)),!0}else if(this._accept(13)){const s=this._until(1);if(s){const r=this._until(4);if(r)return e.appendChild(new Pa(Number(n),void 0,s,r)),!0}}else{const s=this._until(4);if(s)return e.appendChild(new Pa(Number(n),void 0,void 0,s)),!0}return this._backTo(t),!1}_parseAnything(e){return this._token.type!==14?(e.appendChild(new Os(this._scanner.tokenText(this._token))),this._accept(void 0),!0):!1}}function Eq(o,e,t){var i,n,s,r;return(typeof t.insertText=="string"?t.insertText==="":t.insertText.snippet==="")?{edits:(n=(i=t.additionalEdit)===null||i===void 0?void 0:i.edits)!==null&&n!==void 0?n:[]}:{edits:[...e.map(a=>new qu(o,{range:a,text:typeof t.insertText=="string"?pf.escape(t.insertText)+"$0":t.insertText.snippet,insertAsSnippet:!0})),...(r=(s=t.additionalEdit)===null||s===void 0?void 0:s.edits)!==null&&r!==void 0?r:[]]}}function Nq(o){var e;function t(a,l){return"mimeType"in a?a.mimeType===l.handledMimeType:!!l.kind&&a.kind.contains(l.kind)}const i=new Map;for(const a of o)for(const l of(e=a.yieldTo)!==null&&e!==void 0?e:[])for(const c of o)if(c!==a&&t(l,c)){let d=i.get(a);d||(d=[],i.set(a,d)),d.push(c)}if(!i.size)return Array.from(o);const n=new Set,s=[];function r(a){if(!a.length)return[];const l=a[0];if(s.includes(l))return console.warn("Yield to cycle detected",l),a;if(n.has(l))return r(a.slice(1));let c=[];const d=i.get(l);return d&&(s.push(l),c=r(d),s.pop()),n.add(l),[...c,l,...r(a.slice(1))]}return r(Array.from(o))}var Mbe=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},Pbe=function(o,e){return function(t,i){e(t,i,o)}};const Obe=Ge.register({description:"inline-progress-widget",stickiness:1,showIfCollapsed:!0,after:{content:gV,inlineClassName:"inline-editor-progress-decoration",inlineClassNameAffectsLetterSpacing:!0}});class Bx extends H{constructor(e,t,i,n,s){super(),this.typeId=e,this.editor=t,this.range=i,this.delegate=s,this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this.create(n),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this)}create(e){this.domNode=ie(".inline-progress-widget"),this.domNode.role="button",this.domNode.title=e;const t=ie("span.icon");this.domNode.append(t),t.classList.add(...Re.asClassNameArray(re.loading),"codicon-modifier-spin");const i=()=>{const n=this.editor.getOption(67);this.domNode.style.height=`${n}px`,this.domNode.style.width=`${Math.ceil(.8*n)}px`};i(),this._register(this.editor.onDidChangeConfiguration(n=>{(n.hasChanged(52)||n.hasChanged(67))&&i()})),this._register($(this.domNode,te.CLICK,n=>{this.delegate.cancel()}))}getId(){return Bx.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:{lineNumber:this.range.startLineNumber,column:this.range.startColumn},preference:[0]}}dispose(){super.dispose(),this.editor.removeContentWidget(this)}}Bx.baseId="editor.widget.inlineProgressWidget";let ML=class extends H{constructor(e,t,i){super(),this.id=e,this._editor=t,this._instantiationService=i,this._showDelay=500,this._showPromise=this._register(new yn),this._currentWidget=new yn,this._operationIdPool=0,this._currentDecorations=t.createDecorationsCollection()}async showWhile(e,t,i){const n=this._operationIdPool++;this._currentOperation=n,this.clear(),this._showPromise.value=sh(()=>{const s=x.fromPositions(e);this._currentDecorations.set([{range:s,options:Obe}]).length>0&&(this._currentWidget.value=this._instantiationService.createInstance(Bx,this.id,this._editor,s,t,i))},this._showDelay);try{return await i}finally{this._currentOperation===n&&(this.clear(),this._currentOperation=void 0)}}clear(){this._showPromise.clear(),this._currentDecorations.clear(),this._currentWidget.clear()}};ML=Mbe([Pbe(2,xe)],ML);var Fbe=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},D7=function(o,e){return function(t,i){e(t,i,o)}},HS;let qs=HS=class{static get(e){return e.getContribution(HS.ID)}constructor(e,t,i){this._openerService=i,this._messageWidget=new yn,this._messageListeners=new Z,this._mouseOverMessage=!1,this._editor=e,this._visible=HS.MESSAGE_VISIBLE.bindTo(t)}dispose(){var e;(e=this._message)===null||e===void 0||e.dispose(),this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){go(el(e)?e.value:e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._message=el(e)?ex(e,{actionHandler:{callback:n=>{this.closeMessage(),qO(this._openerService,n,el(e)?e.isTrusted:void 0)},disposables:this._messageListeners}}):void 0,this._messageWidget.value=new I7(this._editor,t,typeof e=="string"?e:this._message.element),this._messageListeners.add(ce.debounce(this._editor.onDidBlurEditorText,(n,s)=>s,0)(()=>{this._mouseOverMessage||this._messageWidget.value&&Cn(es(),this._messageWidget.value.getDomNode())||this.closeMessage()})),this._messageListeners.add(this._editor.onDidChangeCursorPosition(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidDispose(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeModel(()=>this.closeMessage())),this._messageListeners.add($(this._messageWidget.value.getDomNode(),te.MOUSE_ENTER,()=>this._mouseOverMessage=!0,!0)),this._messageListeners.add($(this._messageWidget.value.getDomNode(),te.MOUSE_LEAVE,()=>this._mouseOverMessage=!1,!0));let i;this._messageListeners.add(this._editor.onMouseMove(n=>{n.target.position&&(i?i.containsPosition(n.target.position)||this.closeMessage():i=new x(t.lineNumber-3,1,n.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(I7.fadeOut(this._messageWidget.value))}};qs.ID="editor.contrib.messageController";qs.MESSAGE_VISIBLE=new he("messageVisible",!1,p("messageVisible","Whether the editor is currently showing an inline message"));qs=HS=Fbe([D7(1,Pe),D7(2,Fo)],qs);const Bbe=gn.bindToContribution(qs.get);ue(new Bbe({id:"leaveEditorMessage",precondition:qs.MESSAGE_VISIBLE,handler:o=>o.closeMessage(),kbOpts:{weight:130,primary:9}}));let I7=class{static fadeOut(e){const t=()=>{e.dispose(),clearTimeout(i),e.getDomNode().removeEventListener("animationend",t)},i=setTimeout(t,110);return e.getDomNode().addEventListener("animationend",t),e.getDomNode().classList.add("fadeOut"),{dispose:t}}constructor(e,{lineNumber:t,column:i},n){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:i},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";const s=document.createElement("div");s.classList.add("anchor","top"),this._domNode.appendChild(s);const r=document.createElement("div");typeof n=="string"?(r.classList.add("message"),r.textContent=n):(n.classList.add("message"),r.appendChild(n)),this._domNode.appendChild(r);const a=document.createElement("div");a.classList.add("anchor","below"),this._domNode.appendChild(a),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2],positionAffinity:1}}afterRender(e){this._domNode.classList.toggle("below",e===2)}};wt(qs.ID,qs,4);function CE(o,e){return e&&(o.stack||o.stacktrace)?p("stackTrace.format","{0}: {1}",N7(o),E7(o.stack)||E7(o.stacktrace)):N7(o)}function E7(o){return Array.isArray(o)?o.join(` `):o}function N7(o){return o.code==="ERR_UNC_HOST_NOT_ALLOWED"?`${o.message}. Please update the 'security.allowedUNCHosts' setting if you want to allow this host.`:typeof o.code=="string"&&typeof o.errno=="number"&&typeof o.syscall=="string"?p("nodeExceptionMessage","A system error occurred ({0})",o.message):o.message||p("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}function PL(o=null,e=!1){if(!o)return p("error.defaultMessage","An unknown error occurred. Please consult the log for more details.");if(Array.isArray(o)){const t=tl(o),i=PL(t[0],e);return t.length>1?p("error.moreErrors","{0} ({1} errors in total)",i,t.length):i}if($s(o))return o;if(o.detail){const t=o.detail;if(t.error)return CE(t.error,e);if(t.exception)return CE(t.exception,e)}return o.stack?CE(o,e):o.message?o.message:p("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}var Tq=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var a=o.length-1;a>=0;a--)(r=o[a])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s},km=function(o,e){return function(t,i){e(t,i,o)}},pR;let OL=pR=class extends H{constructor(e,t,i,n,s,r,a,l,c,d){super(),this.typeId=e,this.editor=t,this.showCommand=n,this.range=s,this.edits=r,this.onSelectNewEdit=a,this._contextMenuService=l,this._keybindingService=d,this.allowEditorOverflow=!0,this.suppressMouseDown=!0,this.create(),this.visibleContext=i.bindTo(c),this.visibleContext.set(!0),this._register(ye(()=>this.visibleContext.reset())),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this),this._register(ye(()=>this.editor.removeContentWidget(this))),this._register(this.editor.onDidChangeCursorPosition(u=>{s.containsPosition(u.position)||this.dispose()})),this._register(ce.runAndSubscribe(d.onDidUpdateKeybindings,()=>{this._updateButtonTitle()}))}_updateButtonTitle(){var e;const t=(e=this._keybindingService.lookupKeybinding(this.showCommand.id))===null||e===void 0?void 0:e.getLabel();this.button.element.title=this.showCommand.label+(t?` (${t})`:"")}create(){this.domNode=ie(".post-edit-widget"),this.button=this._register(new lL(this.domNode,{supportIcons:!0})),this.button.label="$(insert)",this._register($(this.domNode,te.CLICK,()=>this.showSelector()))}getId(){return pR.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:this.range.getEndPosition(),preference:[2]}}showSelector(){this._contextMenuService.showContextMenu({getAnchor:()=>{const e=Ki(this.button.element);return{x:e.left+e.width,y:e.top+e.height}},getActions:()=>this.edits.allEdits.map((e,t)=>Bg({id:"",label:e.title,checked:t===this.edits.activeEditIndex,run:()=>{if(t!==this.edits.activeEditIndex)return this.onSelectNewEdit(t)}}))})}};OL.baseId="editor.widget.postEditWidget";OL=pR=Tq([km(7,Oo),km(8,Pe),km(9,Dt)],OL);let FL=class extends H{constructor(e,t,i,n,s,r,a){super(),this._id=e,this._editor=t,this._visibleContext=i,this._showCommand=n,this._instantiationService=s,this._bulkEditService=r,this._notificationService=a,this._currentWidget=this._register(new yn),this._register(ce.any(t.onDidChangeModel,t.onDidChangeModelContent)(()=>this.clear()))}async applyEditAndShowIfNeeded(e,t,i,n,s){const r=this._editor.getModel();if(!r||!e.length)return;const a=t.allEdits.at(t.activeEditIndex);if(!a)return;const l=async _=>{const v=this._editor.getModel();v&&(await v.undo(),this.applyEditAndShowIfNeeded(e,{activeEditIndex:_,allEdits:t.allEdits},i,n,s))},c=(_,v)=>{ba(_)||(this._notificationService.error(v),i&&this.show(e[0],t,l))};let d;try{d=await n(a,s)}catch(_){return c(_,p("resolveError",`Error resolving edit '{0}': diff --git a/ui/dist/assets/index-mddo8Vsu.js b/ui/dist/assets/index-DpfM9Q-q.js similarity index 99% rename from ui/dist/assets/index-mddo8Vsu.js rename to ui/dist/assets/index-DpfM9Q-q.js index 5fa0460..66ae29d 100644 --- a/ui/dist/assets/index-mddo8Vsu.js +++ b/ui/dist/assets/index-DpfM9Q-q.js @@ -1,4 +1,4 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/HomeView-Dw3dayNI.js","assets/HomeView-C_pOJOia.css","assets/Overview-BmrLpnbu.js","assets/announcements-BrnJwnT_.js","assets/___vite-browser-external_commonjs-proxy-D5Dao81r.js","assets/Overview-TV7ym95m.css","assets/index-BUNPVbzS.js","assets/LoadingWithResultModal-C_NNHIwF.js","assets/LoadingWithResultModal-BUso8QCA.css","assets/index-D_jYBSD9.css","assets/index-7TvH9hL2.js","assets/index-hKzHBMFz.css","assets/DegreeProgrammes-D4o6eMAf.js","assets/DegreeProgrammes-B9Doi7sq.css"])))=>i.map(i=>d[i]); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/HomeView-Dp_Mccdw.js","assets/HomeView-C_pOJOia.css","assets/Overview-C6eQvzhu.js","assets/announcements-DXPjmohv.js","assets/___vite-browser-external_commonjs-proxy-D5Dao81r.js","assets/Overview-mEpTX5ao.css","assets/index-Cn9EX2GC.js","assets/LoadingWithResultModal-B5hmnBBo.js","assets/LoadingWithResultModal-BUso8QCA.css","assets/index-D_jYBSD9.css","assets/index-B1k2z2W3.js","assets/index-hKzHBMFz.css","assets/DegreeProgrammes-DtRCSLRH.js","assets/DegreeProgrammes-B9Doi7sq.css"])))=>i.map(i=>d[i]); (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();/** * @vue/shared v3.4.31 * (c) 2018-present Yuxi (Evan) You and Vue contributors @@ -23,4 +23,4 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/HomeView-Dw3day * vue-router v4.4.0 * (c) 2024 Eduardo San Martin Morote * @license MIT - */const vt=typeof document<"u";function Xc(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const X=Object.assign;function Zn(e,t){const n={};for(const s in t){const r=t[s];n[s]=Le(r)?r.map(e):e(r)}return n}const Dt=()=>{},Le=Array.isArray,ui=/#/g,Zc=/&/g,eu=/\//g,tu=/=/g,nu=/\?/g,fi=/\+/g,su=/%5B/g,ru=/%5D/g,ai=/%5E/g,ou=/%60/g,di=/%7B/g,iu=/%7C/g,hi=/%7D/g,lu=/%20/g;function Ds(e){return encodeURI(""+e).replace(iu,"|").replace(su,"[").replace(ru,"]")}function cu(e){return Ds(e).replace(di,"{").replace(hi,"}").replace(ai,"^")}function gs(e){return Ds(e).replace(fi,"%2B").replace(lu,"+").replace(ui,"%23").replace(Zc,"%26").replace(ou,"`").replace(di,"{").replace(hi,"}").replace(ai,"^")}function uu(e){return gs(e).replace(tu,"%3D")}function fu(e){return Ds(e).replace(ui,"%23").replace(nu,"%3F")}function au(e){return e==null?"":fu(e).replace(eu,"%2F")}function Qt(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const du=/\/$/,hu=e=>e.replace(du,"");function es(e,t,n="/"){let s,r={},o="",i="";const l=t.indexOf("#");let c=t.indexOf("?");return l=0&&(c=-1),c>-1&&(s=t.slice(0,c),o=t.slice(c+1,l>-1?l:t.length),r=e(o)),l>-1&&(s=s||t.slice(0,l),i=t.slice(l,t.length)),s=_u(s??t,n),{fullPath:s+(o&&"?")+o+i,path:s,query:r,hash:Qt(i)}}function pu(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Lr(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function gu(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&Ot(t.matched[s],n.matched[r])&&pi(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ot(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function pi(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!mu(e[n],t[n]))return!1;return!0}function mu(e,t){return Le(e)?jr(e,t):Le(t)?jr(t,e):e===t}function jr(e,t){return Le(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function _u(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let o=n.length-1,i,l;for(i=0;i1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(i).join("/")}const Qe={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Jt;(function(e){e.pop="pop",e.push="push"})(Jt||(Jt={}));var kt;(function(e){e.back="back",e.forward="forward",e.unknown=""})(kt||(kt={}));function yu(e){if(!e)if(vt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),hu(e)}const bu=/^[^#]+#/;function vu(e,t){return e.replace(bu,"#")+t}function Eu(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const kn=()=>({left:window.scrollX,top:window.scrollY});function wu(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=Eu(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Nr(e,t){return(history.state?history.state.position-t:-1)+e}const ms=new Map;function xu(e,t){ms.set(e,t)}function Su(e){const t=ms.get(e);return ms.delete(e),t}let Ru=()=>location.protocol+"//"+location.host;function gi(e,t){const{pathname:n,search:s,hash:r}=t,o=e.indexOf("#");if(o>-1){let l=r.includes(e.slice(o))?e.slice(o).length:1,c=r.slice(l);return c[0]!=="/"&&(c="/"+c),Lr(c,"")}return Lr(n,e)+s+r}function Cu(e,t,n,s){let r=[],o=[],i=null;const l=({state:p})=>{const m=gi(e,location),A=n.value,O=t.value;let K=0;if(p){if(n.value=m,t.value=p,i&&i===A){i=null;return}K=O?p.position-O.position:0}else s(m);r.forEach(F=>{F(n.value,A,{delta:K,type:Jt.pop,direction:K?K>0?kt.forward:kt.back:kt.unknown})})};function c(){i=n.value}function a(p){r.push(p);const m=()=>{const A=r.indexOf(p);A>-1&&r.splice(A,1)};return o.push(m),m}function d(){const{history:p}=window;p.state&&p.replaceState(X({},p.state,{scroll:kn()}),"")}function h(){for(const p of o)p();o=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:c,listen:a,destroy:h}}function Fr(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?kn():null}}function Pu(e){const{history:t,location:n}=window,s={value:gi(e,n)},r={value:t.state};r.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(c,a,d){const h=e.indexOf("#"),p=h>-1?(n.host&&document.querySelector("base")?e:e.slice(h))+c:Ru()+e+c;try{t[d?"replaceState":"pushState"](a,"",p),r.value=a}catch(m){console.error(m),n[d?"replace":"assign"](p)}}function i(c,a){const d=X({},t.state,Fr(r.value.back,c,r.value.forward,!0),a,{position:r.value.position});o(c,d,!0),s.value=c}function l(c,a){const d=X({},r.value,t.state,{forward:c,scroll:kn()});o(d.current,d,!0);const h=X({},Fr(s.value,c,null),{position:d.position+1},a);o(c,h,!1),s.value=c}return{location:s,state:r,push:l,replace:i}}function Ou(e){e=yu(e);const t=Pu(e),n=Cu(e,t.state,t.location,t.replace);function s(o,i=!0){i||n.pauseListeners(),history.go(o)}const r=X({location:"",base:e,go:s,createHref:vu.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function Au(e){return typeof e=="string"||e&&typeof e=="object"}function mi(e){return typeof e=="string"||typeof e=="symbol"}const _i=Symbol("");var $r;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})($r||($r={}));function At(e,t){return X(new Error,{type:e,[_i]:!0},t)}function Ue(e,t){return e instanceof Error&&_i in e&&(t==null||!!(e.type&t))}const Hr="[^/]+?",Iu={sensitive:!1,strict:!1,start:!0,end:!0},Tu=/[.+*?^${}()[\]/\\]/g;function Mu(e,t){const n=X({},Iu,t),s=[];let r=n.start?"^":"";const o=[];for(const a of e){const d=a.length?[]:[90];n.strict&&!a.length&&(r+="/");for(let h=0;ht.length?t.length===1&&t[0]===80?1:-1:0}function yi(e,t){let n=0;const s=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const ju={type:0,value:""},Nu=/[a-zA-Z0-9_]/;function Fu(e){if(!e)return[[]];if(e==="/")return[[ju]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${a}": ${m}`)}let n=0,s=n;const r=[];let o;function i(){o&&r.push(o),o=[]}let l=0,c,a="",d="";function h(){a&&(n===0?o.push({type:0,value:a}):n===1||n===2||n===3?(o.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${a}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:a,regexp:d,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),a="")}function p(){a+=c}for(;l{i(T)}:Dt}function i(h){if(mi(h)){const p=s.get(h);p&&(s.delete(h),n.splice(n.indexOf(p),1),p.children.forEach(i),p.alias.forEach(i))}else{const p=n.indexOf(h);p>-1&&(n.splice(p,1),h.record.name&&s.delete(h.record.name),h.children.forEach(i),h.alias.forEach(i))}}function l(){return n}function c(h){const p=ku(h,n);n.splice(p,0,h),h.record.name&&!Dr(h)&&s.set(h.record.name,h)}function a(h,p){let m,A={},O,K;if("name"in h&&h.name){if(m=s.get(h.name),!m)throw At(1,{location:h});K=m.record.name,A=X(Kr(p.params,m.keys.filter(T=>!T.optional).concat(m.parent?m.parent.keys.filter(T=>T.optional):[]).map(T=>T.name)),h.params&&Kr(h.params,m.keys.map(T=>T.name))),O=m.stringify(A)}else if(h.path!=null)O=h.path,m=n.find(T=>T.re.test(O)),m&&(A=m.parse(O),K=m.record.name);else{if(m=p.name?s.get(p.name):n.find(T=>T.re.test(p.path)),!m)throw At(1,{location:h,currentLocation:p});K=m.record.name,A=X({},p.params,h.params),O=m.stringify(A)}const F=[];let j=m;for(;j;)F.unshift(j.record),j=j.parent;return{name:K,path:O,params:A,matched:F,meta:Du(F)}}e.forEach(h=>o(h));function d(){n.length=0,s.clear()}return{addRoute:o,resolve:a,removeRoute:i,clearRoutes:d,getRoutes:l,getRecordMatcher:r}}function Kr(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function Vu(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Ku(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function Ku(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function Dr(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Du(e){return e.reduce((t,n)=>X(t,n.meta),{})}function kr(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function ku(e,t){let n=0,s=t.length;for(;n!==s;){const o=n+s>>1;yi(e,t[o])<0?s=o:n=o+1}const r=Uu(e);return r&&(s=t.lastIndexOf(r,s-1)),s}function Uu(e){let t=e;for(;t=t.parent;)if(bi(t)&&yi(e,t)===0)return t}function bi({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Bu(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;ro&&gs(o)):[s&&gs(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Wu(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Le(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const qu=Symbol(""),Br=Symbol(""),Un=Symbol(""),ks=Symbol(""),_s=Symbol("");function Mt(){let e=[];function t(s){return e.push(s),()=>{const r=e.indexOf(s);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Ze(e,t,n,s,r,o=i=>i()){const i=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((l,c)=>{const a=p=>{p===!1?c(At(4,{from:n,to:t})):p instanceof Error?c(p):Au(p)?c(At(2,{from:t,to:p})):(i&&s.enterCallbacks[r]===i&&typeof p=="function"&&i.push(p),l())},d=o(()=>e.call(s&&s.instances[r],t,n,a));let h=Promise.resolve(d);e.length<3&&(h=h.then(a)),h.catch(p=>c(p))})}function ts(e,t,n,s,r=o=>o()){const o=[];for(const i of e)for(const l in i.components){let c=i.components[l];if(!(t!=="beforeRouteEnter"&&!i.instances[l]))if(zu(c)){const d=(c.__vccOpts||c)[t];d&&o.push(Ze(d,n,s,i,l,r))}else{let a=c();o.push(()=>a.then(d=>{if(!d)return Promise.reject(new Error(`Couldn't resolve component "${l}" at "${i.path}"`));const h=Xc(d)?d.default:d;i.components[l]=h;const m=(h.__vccOpts||h)[t];return m&&Ze(m,n,s,i,l,r)()}))}}return o}function zu(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Wr(e){const t=Oe(Un),n=Oe(ks),s=Ce(()=>{const c=Ve(e.to);return t.resolve(c)}),r=Ce(()=>{const{matched:c}=s.value,{length:a}=c,d=c[a-1],h=n.matched;if(!d||!h.length)return-1;const p=h.findIndex(Ot.bind(null,d));if(p>-1)return p;const m=qr(c[a-2]);return a>1&&qr(d)===m&&h[h.length-1].path!==m?h.findIndex(Ot.bind(null,c[a-2])):p}),o=Ce(()=>r.value>-1&&Ju(n.params,s.value.params)),i=Ce(()=>r.value>-1&&r.value===n.matched.length-1&&pi(n.params,s.value.params));function l(c={}){return Qu(c)?t[Ve(e.replace)?"replace":"push"](Ve(e.to)).catch(Dt):Promise.resolve()}return{route:s,href:Ce(()=>s.value.href),isActive:o,isExactActive:i,navigate:l}}const Gu=$n({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Wr,setup(e,{slots:t}){const n=Xt(Wr(e)),{options:s}=Oe(Un),r=Ce(()=>({[zr(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[zr(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:ri("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),mn=Gu;function Qu(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Ju(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!Le(r)||r.length!==s.length||s.some((o,i)=>o!==r[i]))return!1}return!0}function qr(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const zr=(e,t,n)=>e??t??n,Yu=$n({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=Oe(_s),r=Ce(()=>e.route||s.value),o=Oe(Br,0),i=Ce(()=>{let a=Ve(o);const{matched:d}=r.value;let h;for(;(h=d[a])&&!h.components;)a++;return a}),l=Ce(()=>r.value.matched[i.value]);dn(Br,Ce(()=>i.value+1)),dn(qu,l),dn(_s,r);const c=Wt();return Ht(()=>[c.value,l.value,e.name],([a,d,h],[p,m,A])=>{d&&(d.instances[h]=a,m&&m!==d&&a&&a===p&&(d.leaveGuards.size||(d.leaveGuards=m.leaveGuards),d.updateGuards.size||(d.updateGuards=m.updateGuards))),a&&d&&(!m||!Ot(d,m)||!p)&&(d.enterCallbacks[h]||[]).forEach(O=>O(a))},{flush:"post"}),()=>{const a=r.value,d=e.name,h=l.value,p=h&&h.components[d];if(!p)return Gr(n.default,{Component:p,route:a});const m=h.props[d],A=m?m===!0?a.params:typeof m=="function"?m(a):m:null,K=ri(p,X({},A,t,{onVnodeUnmounted:F=>{F.component.isUnmounted&&(h.instances[d]=null)},ref:c}));return Gr(n.default,{Component:K,route:a})||K}}});function Gr(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const vi=Yu;function Xu(e){const t=Hu(e.routes,e),n=e.parseQuery||Bu,s=e.stringifyQuery||Ur,r=e.history,o=Mt(),i=Mt(),l=Mt(),c=rl(Qe);let a=Qe;vt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=Zn.bind(null,y=>""+y),h=Zn.bind(null,au),p=Zn.bind(null,Qt);function m(y,C){let R,I;return mi(y)?(R=t.getRecordMatcher(y),I=C):I=y,t.addRoute(I,R)}function A(y){const C=t.getRecordMatcher(y);C&&t.removeRoute(C)}function O(){return t.getRoutes().map(y=>y.record)}function K(y){return!!t.getRecordMatcher(y)}function F(y,C){if(C=X({},C||c.value),typeof y=="string"){const f=es(n,y,C.path),g=t.resolve({path:f.path},C),b=r.createHref(f.fullPath);return X(f,g,{params:p(g.params),hash:Qt(f.hash),redirectedFrom:void 0,href:b})}let R;if(y.path!=null)R=X({},y,{path:es(n,y.path,C.path).path});else{const f=X({},y.params);for(const g in f)f[g]==null&&delete f[g];R=X({},y,{params:h(f)}),C.params=h(C.params)}const I=t.resolve(R,C),Y=y.hash||"";I.params=d(p(I.params));const oe=pu(s,X({},y,{hash:cu(Y),path:I.path})),u=r.createHref(oe);return X({fullPath:oe,hash:Y,query:s===Ur?Wu(y.query):y.query||{}},I,{redirectedFrom:void 0,href:u})}function j(y){return typeof y=="string"?es(n,y,c.value.path):X({},y)}function T(y,C){if(a!==y)return At(8,{from:C,to:y})}function W(y){return Z(y)}function z(y){return W(X(j(y),{replace:!0}))}function V(y){const C=y.matched[y.matched.length-1];if(C&&C.redirect){const{redirect:R}=C;let I=typeof R=="function"?R(y):R;return typeof I=="string"&&(I=I.includes("?")||I.includes("#")?I=j(I):{path:I},I.params={}),X({query:y.query,hash:y.hash,params:I.path!=null?{}:y.params},I)}}function Z(y,C){const R=a=F(y),I=c.value,Y=y.state,oe=y.force,u=y.replace===!0,f=V(R);if(f)return Z(X(j(f),{state:typeof f=="object"?X({},Y,f.state):Y,force:oe,replace:u}),C||R);const g=R;g.redirectedFrom=C;let b;return!oe&&gu(s,I,R)&&(b=At(16,{to:g,from:I}),je(I,I,!0,!1)),(b?Promise.resolve(b):ie(g,I)).catch(_=>Ue(_)?Ue(_,2)?_:ze(_):Q(_,g,I)).then(_=>{if(_){if(Ue(_,2))return Z(X({replace:u},j(_.to),{state:typeof _.to=="object"?X({},Y,_.to.state):Y,force:oe}),C||g)}else _=Ee(g,I,!0,u,Y);return pe(g,I,_),_})}function k(y,C){const R=T(y,C);return R?Promise.reject(R):Promise.resolve()}function U(y){const C=_t.values().next().value;return C&&typeof C.runWithContext=="function"?C.runWithContext(y):y()}function ie(y,C){let R;const[I,Y,oe]=Zu(y,C);R=ts(I.reverse(),"beforeRouteLeave",y,C);for(const f of I)f.leaveGuards.forEach(g=>{R.push(Ze(g,y,C))});const u=k.bind(null,y,C);return R.push(u),ge(R).then(()=>{R=[];for(const f of o.list())R.push(Ze(f,y,C));return R.push(u),ge(R)}).then(()=>{R=ts(Y,"beforeRouteUpdate",y,C);for(const f of Y)f.updateGuards.forEach(g=>{R.push(Ze(g,y,C))});return R.push(u),ge(R)}).then(()=>{R=[];for(const f of oe)if(f.beforeEnter)if(Le(f.beforeEnter))for(const g of f.beforeEnter)R.push(Ze(g,y,C));else R.push(Ze(f.beforeEnter,y,C));return R.push(u),ge(R)}).then(()=>(y.matched.forEach(f=>f.enterCallbacks={}),R=ts(oe,"beforeRouteEnter",y,C,U),R.push(u),ge(R))).then(()=>{R=[];for(const f of i.list())R.push(Ze(f,y,C));return R.push(u),ge(R)}).catch(f=>Ue(f,8)?f:Promise.reject(f))}function pe(y,C,R){l.list().forEach(I=>U(()=>I(y,C,R)))}function Ee(y,C,R,I,Y){const oe=T(y,C);if(oe)return oe;const u=C===Qe,f=vt?history.state:{};R&&(I||u?r.replace(y.fullPath,X({scroll:u&&f&&f.scroll},Y)):r.push(y.fullPath,Y)),c.value=y,je(y,C,R,u),ze()}let Se;function lt(){Se||(Se=r.listen((y,C,R)=>{if(!en.listening)return;const I=F(y),Y=V(I);if(Y){Z(X(Y,{replace:!0}),I).catch(Dt);return}a=I;const oe=c.value;vt&&xu(Nr(oe.fullPath,R.delta),kn()),ie(I,oe).catch(u=>Ue(u,12)?u:Ue(u,2)?(Z(u.to,I).then(f=>{Ue(f,20)&&!R.delta&&R.type===Jt.pop&&r.go(-1,!1)}).catch(Dt),Promise.reject()):(R.delta&&r.go(-R.delta,!1),Q(u,I,oe))).then(u=>{u=u||Ee(I,oe,!1),u&&(R.delta&&!Ue(u,8)?r.go(-R.delta,!1):R.type===Jt.pop&&Ue(u,20)&&r.go(-1,!1)),pe(I,oe,u)}).catch(Dt)}))}let Re=Mt(),G=Mt(),ee;function Q(y,C,R){ze(y);const I=G.list();return I.length?I.forEach(Y=>Y(y,C,R)):console.error(y),Promise.reject(y)}function ke(){return ee&&c.value!==Qe?Promise.resolve():new Promise((y,C)=>{Re.add([y,C])})}function ze(y){return ee||(ee=!y,lt(),Re.list().forEach(([C,R])=>y?R(y):C()),Re.reset()),y}function je(y,C,R,I){const{scrollBehavior:Y}=e;if(!vt||!Y)return Promise.resolve();const oe=!R&&Su(Nr(y.fullPath,0))||(I||!R)&&history.state&&history.state.scroll||null;return Ln().then(()=>Y(y,C,oe)).then(u=>u&&wu(u)).catch(u=>Q(u,y,C))}const ye=y=>r.go(y);let mt;const _t=new Set,en={currentRoute:c,listening:!0,addRoute:m,removeRoute:A,clearRoutes:t.clearRoutes,hasRoute:K,getRoutes:O,resolve:F,options:e,push:W,replace:z,go:ye,back:()=>ye(-1),forward:()=>ye(1),beforeEach:o.add,beforeResolve:i.add,afterEach:l.add,onError:G.add,isReady:ke,install(y){const C=this;y.component("RouterLink",mn),y.component("RouterView",vi),y.config.globalProperties.$router=C,Object.defineProperty(y.config.globalProperties,"$route",{enumerable:!0,get:()=>Ve(c)}),vt&&!mt&&c.value===Qe&&(mt=!0,W(r.location).catch(Y=>{}));const R={};for(const Y in Qe)Object.defineProperty(R,Y,{get:()=>c.value[Y],enumerable:!0});y.provide(Un,C),y.provide(ks,bo(R)),y.provide(_s,c);const I=y.unmount;_t.add(y),y.unmount=function(){_t.delete(y),_t.size<1&&(a=Qe,Se&&Se(),Se=null,c.value=Qe,mt=!1,ee=!1),I()}}};function ge(y){return y.reduce((C,R)=>C.then(()=>U(R)),Promise.resolve())}return en}function Zu(e,t){const n=[],s=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;iOt(a,l))?s.push(l):n.push(l));const c=e.matched[i];c&&(t.matched.find(a=>Ot(a,c))||r.push(c))}return[n,s,r]}function jf(){return Oe(Un)}function Nf(e){return Oe(ks)}const ef="/logo_protected.png",tf="/assets/default-hat-B72TLDOC.svg",Bn=e=>(To("data-v-af4c0a3a"),e=e(),Mo(),e),nf={class:"forbidden"},sf=Bn(()=>re("img",{alt:"Stair Logo",class:"logo",src:ef,height:"50"},null,-1)),rf=Bn(()=>re("h1",null,"Sign in",-1)),of=Bn(()=>re("span",{class:"material-symbols-rounded"},"login",-1)),lf=Bn(()=>re("aside",null,[re("img",{class:"stan",src:tf,type:"image/svg+xml"})],-1)),cf=$n({__name:"Forbidden",setup(e){const t=()=>window.location.href="/api/auth/signin";return(n,s)=>(Rt(),as("div",nf,[re("main",null,[re("div",{class:"panel"},[sf,rf,re("button",{onClick:t},[of,Vs(" Continue with Microsoft ")])])]),lf]))}}),Ei=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},uf=Ei(cf,[["__scopeId","data-v-af4c0a3a"]]),Wn=e=>(To("data-v-95274282"),e=e(),Mo(),e),ff={key:1},af=Wn(()=>re("img",{alt:"Stair Logo",class:"logo",src:Yc,height:"50"},null,-1)),df=Wn(()=>re("span",{class:"material-symbols-rounded"},"group",-1)),hf=Wn(()=>re("span",{class:"material-symbols-rounded"},"campaign",-1)),pf=Wn(()=>re("div",{class:"action"},[re("a",{href:"/api/auth/signout"},[Vs(" Sign out "),re("span",{class:"material-symbols-rounded"},"logout")])],-1)),gf={class:"data"},mf={id:"container"},_f=$n({__name:"App",setup(e){const t=Wt(null),n=Wt(!1);return No(async()=>{const s=await fetch("/api/auth/me");s.ok?t.value=await s.json():t.value=!1,document.body.addEventListener("click",()=>{n.value=!1})}),(s,r)=>t.value==!1?(Rt(),Hs(uf,{key:0})):t.value?(Rt(),as("div",ff,[re("header",null,[ue(Ve(mn),{to:"/"},{default:an(()=>[af]),_:1}),re("nav",null,[ue(Ve(mn),{title:"Manage Discord Users",to:"/discord/users"},{default:an(()=>[df]),_:1}),ue(Ve(mn),{title:"Announcements",to:"/announcements"},{default:an(()=>[hf]),_:1}),re("div",{onClick:r[1]||(r[1]=Ir(o=>n.value=!0,["stop"])),class:"user"},[re("span",null,un(t.value.displayName),1),n.value?(Rt(),as("div",{key:0,onClick:r[0]||(r[0]=Ir(()=>{},["stop"])),class:"options"},[pf,re("div",gf,[re("h2",null,un(t.value.userPrincipalName),1),re("p",null,un(t.value.mail),1)])])):gr("",!0)])])]),re("div",mf,[ue(Ve(vi))])])):gr("",!0)}}),yf=Ei(_f,[["__scopeId","data-v-95274282"]]),bf="modulepreload",vf=function(e){return"/"+e},Qr={},Lt=function(t,n,s){let r=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),i=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));r=Promise.all(n.map(l=>{if(l=vf(l),l in Qr)return;Qr[l]=!0;const c=l.endsWith(".css"),a=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${a}`))return;const d=document.createElement("link");if(d.rel=c?"stylesheet":bf,c||(d.as="script",d.crossOrigin=""),d.href=l,i&&d.setAttribute("nonce",i),document.head.appendChild(d),c)return new Promise((h,p)=>{d.addEventListener("load",h),d.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${l}`)))})}))}return r.then(()=>t()).catch(o=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o})},Ef=Xu({history:Ou("/"),routes:[{path:"/",name:"home",component:()=>Lt(()=>import("./HomeView-Dw3dayNI.js"),__vite__mapDeps([0,1]))},{path:"/announcements",name:"announcements",component:()=>Lt(()=>import("./Overview-BmrLpnbu.js"),__vite__mapDeps([2,3,4,5]))},{path:"/announcements/:id",name:"announcementWithId",component:()=>Lt(()=>import("./index-BUNPVbzS.js").then(e=>e.i),__vite__mapDeps([6,3,7,8,4,9]))},{path:"/discord/users",name:"discord-users",component:()=>Lt(()=>import("./index-7TvH9hL2.js"),__vite__mapDeps([10,3,7,8,11]))},{path:"/discord/degree-programmes",name:"discord-degree-programmes",component:()=>Lt(()=>import("./DegreeProgrammes-D4o6eMAf.js"),__vite__mapDeps([12,3,13]))}]}),Us=Dc(yf);Us.use(Wc());Us.use(Ef);Us.mount("#app");export{Cf as A,ll as B,Oe as C,Af as D,Rl as E,Ie as F,dn as G,ri as H,Tf as I,ws as J,Of as K,Nf as L,xf as M,Pf as N,Mf as O,Ir as P,Lf as Q,Ei as _,re as a,ue as b,as as c,Mo as d,Vs as e,$n as f,Wt as g,Ce as h,Ht as i,No as j,Sf as k,Rf as l,gr as m,Lt as n,Rt as o,To as p,Fo as q,wf as r,xs as s,un as t,jf as u,If as v,an as w,Hs as x,Ve as y,Ef as z}; + */const vt=typeof document<"u";function Xc(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const X=Object.assign;function Zn(e,t){const n={};for(const s in t){const r=t[s];n[s]=Le(r)?r.map(e):e(r)}return n}const Dt=()=>{},Le=Array.isArray,ui=/#/g,Zc=/&/g,eu=/\//g,tu=/=/g,nu=/\?/g,fi=/\+/g,su=/%5B/g,ru=/%5D/g,ai=/%5E/g,ou=/%60/g,di=/%7B/g,iu=/%7C/g,hi=/%7D/g,lu=/%20/g;function Ds(e){return encodeURI(""+e).replace(iu,"|").replace(su,"[").replace(ru,"]")}function cu(e){return Ds(e).replace(di,"{").replace(hi,"}").replace(ai,"^")}function gs(e){return Ds(e).replace(fi,"%2B").replace(lu,"+").replace(ui,"%23").replace(Zc,"%26").replace(ou,"`").replace(di,"{").replace(hi,"}").replace(ai,"^")}function uu(e){return gs(e).replace(tu,"%3D")}function fu(e){return Ds(e).replace(ui,"%23").replace(nu,"%3F")}function au(e){return e==null?"":fu(e).replace(eu,"%2F")}function Qt(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const du=/\/$/,hu=e=>e.replace(du,"");function es(e,t,n="/"){let s,r={},o="",i="";const l=t.indexOf("#");let c=t.indexOf("?");return l=0&&(c=-1),c>-1&&(s=t.slice(0,c),o=t.slice(c+1,l>-1?l:t.length),r=e(o)),l>-1&&(s=s||t.slice(0,l),i=t.slice(l,t.length)),s=_u(s??t,n),{fullPath:s+(o&&"?")+o+i,path:s,query:r,hash:Qt(i)}}function pu(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Lr(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function gu(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&Ot(t.matched[s],n.matched[r])&&pi(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ot(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function pi(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!mu(e[n],t[n]))return!1;return!0}function mu(e,t){return Le(e)?jr(e,t):Le(t)?jr(t,e):e===t}function jr(e,t){return Le(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function _u(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let o=n.length-1,i,l;for(i=0;i1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(i).join("/")}const Qe={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Jt;(function(e){e.pop="pop",e.push="push"})(Jt||(Jt={}));var kt;(function(e){e.back="back",e.forward="forward",e.unknown=""})(kt||(kt={}));function yu(e){if(!e)if(vt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),hu(e)}const bu=/^[^#]+#/;function vu(e,t){return e.replace(bu,"#")+t}function Eu(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const kn=()=>({left:window.scrollX,top:window.scrollY});function wu(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=Eu(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Nr(e,t){return(history.state?history.state.position-t:-1)+e}const ms=new Map;function xu(e,t){ms.set(e,t)}function Su(e){const t=ms.get(e);return ms.delete(e),t}let Ru=()=>location.protocol+"//"+location.host;function gi(e,t){const{pathname:n,search:s,hash:r}=t,o=e.indexOf("#");if(o>-1){let l=r.includes(e.slice(o))?e.slice(o).length:1,c=r.slice(l);return c[0]!=="/"&&(c="/"+c),Lr(c,"")}return Lr(n,e)+s+r}function Cu(e,t,n,s){let r=[],o=[],i=null;const l=({state:p})=>{const m=gi(e,location),A=n.value,O=t.value;let K=0;if(p){if(n.value=m,t.value=p,i&&i===A){i=null;return}K=O?p.position-O.position:0}else s(m);r.forEach(F=>{F(n.value,A,{delta:K,type:Jt.pop,direction:K?K>0?kt.forward:kt.back:kt.unknown})})};function c(){i=n.value}function a(p){r.push(p);const m=()=>{const A=r.indexOf(p);A>-1&&r.splice(A,1)};return o.push(m),m}function d(){const{history:p}=window;p.state&&p.replaceState(X({},p.state,{scroll:kn()}),"")}function h(){for(const p of o)p();o=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:c,listen:a,destroy:h}}function Fr(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?kn():null}}function Pu(e){const{history:t,location:n}=window,s={value:gi(e,n)},r={value:t.state};r.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(c,a,d){const h=e.indexOf("#"),p=h>-1?(n.host&&document.querySelector("base")?e:e.slice(h))+c:Ru()+e+c;try{t[d?"replaceState":"pushState"](a,"",p),r.value=a}catch(m){console.error(m),n[d?"replace":"assign"](p)}}function i(c,a){const d=X({},t.state,Fr(r.value.back,c,r.value.forward,!0),a,{position:r.value.position});o(c,d,!0),s.value=c}function l(c,a){const d=X({},r.value,t.state,{forward:c,scroll:kn()});o(d.current,d,!0);const h=X({},Fr(s.value,c,null),{position:d.position+1},a);o(c,h,!1),s.value=c}return{location:s,state:r,push:l,replace:i}}function Ou(e){e=yu(e);const t=Pu(e),n=Cu(e,t.state,t.location,t.replace);function s(o,i=!0){i||n.pauseListeners(),history.go(o)}const r=X({location:"",base:e,go:s,createHref:vu.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function Au(e){return typeof e=="string"||e&&typeof e=="object"}function mi(e){return typeof e=="string"||typeof e=="symbol"}const _i=Symbol("");var $r;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})($r||($r={}));function At(e,t){return X(new Error,{type:e,[_i]:!0},t)}function Ue(e,t){return e instanceof Error&&_i in e&&(t==null||!!(e.type&t))}const Hr="[^/]+?",Iu={sensitive:!1,strict:!1,start:!0,end:!0},Tu=/[.+*?^${}()[\]/\\]/g;function Mu(e,t){const n=X({},Iu,t),s=[];let r=n.start?"^":"";const o=[];for(const a of e){const d=a.length?[]:[90];n.strict&&!a.length&&(r+="/");for(let h=0;ht.length?t.length===1&&t[0]===80?1:-1:0}function yi(e,t){let n=0;const s=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const ju={type:0,value:""},Nu=/[a-zA-Z0-9_]/;function Fu(e){if(!e)return[[]];if(e==="/")return[[ju]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${a}": ${m}`)}let n=0,s=n;const r=[];let o;function i(){o&&r.push(o),o=[]}let l=0,c,a="",d="";function h(){a&&(n===0?o.push({type:0,value:a}):n===1||n===2||n===3?(o.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${a}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:a,regexp:d,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),a="")}function p(){a+=c}for(;l{i(T)}:Dt}function i(h){if(mi(h)){const p=s.get(h);p&&(s.delete(h),n.splice(n.indexOf(p),1),p.children.forEach(i),p.alias.forEach(i))}else{const p=n.indexOf(h);p>-1&&(n.splice(p,1),h.record.name&&s.delete(h.record.name),h.children.forEach(i),h.alias.forEach(i))}}function l(){return n}function c(h){const p=ku(h,n);n.splice(p,0,h),h.record.name&&!Dr(h)&&s.set(h.record.name,h)}function a(h,p){let m,A={},O,K;if("name"in h&&h.name){if(m=s.get(h.name),!m)throw At(1,{location:h});K=m.record.name,A=X(Kr(p.params,m.keys.filter(T=>!T.optional).concat(m.parent?m.parent.keys.filter(T=>T.optional):[]).map(T=>T.name)),h.params&&Kr(h.params,m.keys.map(T=>T.name))),O=m.stringify(A)}else if(h.path!=null)O=h.path,m=n.find(T=>T.re.test(O)),m&&(A=m.parse(O),K=m.record.name);else{if(m=p.name?s.get(p.name):n.find(T=>T.re.test(p.path)),!m)throw At(1,{location:h,currentLocation:p});K=m.record.name,A=X({},p.params,h.params),O=m.stringify(A)}const F=[];let j=m;for(;j;)F.unshift(j.record),j=j.parent;return{name:K,path:O,params:A,matched:F,meta:Du(F)}}e.forEach(h=>o(h));function d(){n.length=0,s.clear()}return{addRoute:o,resolve:a,removeRoute:i,clearRoutes:d,getRoutes:l,getRecordMatcher:r}}function Kr(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function Vu(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Ku(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function Ku(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function Dr(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Du(e){return e.reduce((t,n)=>X(t,n.meta),{})}function kr(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function ku(e,t){let n=0,s=t.length;for(;n!==s;){const o=n+s>>1;yi(e,t[o])<0?s=o:n=o+1}const r=Uu(e);return r&&(s=t.lastIndexOf(r,s-1)),s}function Uu(e){let t=e;for(;t=t.parent;)if(bi(t)&&yi(e,t)===0)return t}function bi({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Bu(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;ro&&gs(o)):[s&&gs(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Wu(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Le(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const qu=Symbol(""),Br=Symbol(""),Un=Symbol(""),ks=Symbol(""),_s=Symbol("");function Mt(){let e=[];function t(s){return e.push(s),()=>{const r=e.indexOf(s);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Ze(e,t,n,s,r,o=i=>i()){const i=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((l,c)=>{const a=p=>{p===!1?c(At(4,{from:n,to:t})):p instanceof Error?c(p):Au(p)?c(At(2,{from:t,to:p})):(i&&s.enterCallbacks[r]===i&&typeof p=="function"&&i.push(p),l())},d=o(()=>e.call(s&&s.instances[r],t,n,a));let h=Promise.resolve(d);e.length<3&&(h=h.then(a)),h.catch(p=>c(p))})}function ts(e,t,n,s,r=o=>o()){const o=[];for(const i of e)for(const l in i.components){let c=i.components[l];if(!(t!=="beforeRouteEnter"&&!i.instances[l]))if(zu(c)){const d=(c.__vccOpts||c)[t];d&&o.push(Ze(d,n,s,i,l,r))}else{let a=c();o.push(()=>a.then(d=>{if(!d)return Promise.reject(new Error(`Couldn't resolve component "${l}" at "${i.path}"`));const h=Xc(d)?d.default:d;i.components[l]=h;const m=(h.__vccOpts||h)[t];return m&&Ze(m,n,s,i,l,r)()}))}}return o}function zu(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Wr(e){const t=Oe(Un),n=Oe(ks),s=Ce(()=>{const c=Ve(e.to);return t.resolve(c)}),r=Ce(()=>{const{matched:c}=s.value,{length:a}=c,d=c[a-1],h=n.matched;if(!d||!h.length)return-1;const p=h.findIndex(Ot.bind(null,d));if(p>-1)return p;const m=qr(c[a-2]);return a>1&&qr(d)===m&&h[h.length-1].path!==m?h.findIndex(Ot.bind(null,c[a-2])):p}),o=Ce(()=>r.value>-1&&Ju(n.params,s.value.params)),i=Ce(()=>r.value>-1&&r.value===n.matched.length-1&&pi(n.params,s.value.params));function l(c={}){return Qu(c)?t[Ve(e.replace)?"replace":"push"](Ve(e.to)).catch(Dt):Promise.resolve()}return{route:s,href:Ce(()=>s.value.href),isActive:o,isExactActive:i,navigate:l}}const Gu=$n({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Wr,setup(e,{slots:t}){const n=Xt(Wr(e)),{options:s}=Oe(Un),r=Ce(()=>({[zr(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[zr(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:ri("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),mn=Gu;function Qu(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Ju(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!Le(r)||r.length!==s.length||s.some((o,i)=>o!==r[i]))return!1}return!0}function qr(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const zr=(e,t,n)=>e??t??n,Yu=$n({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=Oe(_s),r=Ce(()=>e.route||s.value),o=Oe(Br,0),i=Ce(()=>{let a=Ve(o);const{matched:d}=r.value;let h;for(;(h=d[a])&&!h.components;)a++;return a}),l=Ce(()=>r.value.matched[i.value]);dn(Br,Ce(()=>i.value+1)),dn(qu,l),dn(_s,r);const c=Wt();return Ht(()=>[c.value,l.value,e.name],([a,d,h],[p,m,A])=>{d&&(d.instances[h]=a,m&&m!==d&&a&&a===p&&(d.leaveGuards.size||(d.leaveGuards=m.leaveGuards),d.updateGuards.size||(d.updateGuards=m.updateGuards))),a&&d&&(!m||!Ot(d,m)||!p)&&(d.enterCallbacks[h]||[]).forEach(O=>O(a))},{flush:"post"}),()=>{const a=r.value,d=e.name,h=l.value,p=h&&h.components[d];if(!p)return Gr(n.default,{Component:p,route:a});const m=h.props[d],A=m?m===!0?a.params:typeof m=="function"?m(a):m:null,K=ri(p,X({},A,t,{onVnodeUnmounted:F=>{F.component.isUnmounted&&(h.instances[d]=null)},ref:c}));return Gr(n.default,{Component:K,route:a})||K}}});function Gr(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const vi=Yu;function Xu(e){const t=Hu(e.routes,e),n=e.parseQuery||Bu,s=e.stringifyQuery||Ur,r=e.history,o=Mt(),i=Mt(),l=Mt(),c=rl(Qe);let a=Qe;vt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=Zn.bind(null,y=>""+y),h=Zn.bind(null,au),p=Zn.bind(null,Qt);function m(y,C){let R,I;return mi(y)?(R=t.getRecordMatcher(y),I=C):I=y,t.addRoute(I,R)}function A(y){const C=t.getRecordMatcher(y);C&&t.removeRoute(C)}function O(){return t.getRoutes().map(y=>y.record)}function K(y){return!!t.getRecordMatcher(y)}function F(y,C){if(C=X({},C||c.value),typeof y=="string"){const f=es(n,y,C.path),g=t.resolve({path:f.path},C),b=r.createHref(f.fullPath);return X(f,g,{params:p(g.params),hash:Qt(f.hash),redirectedFrom:void 0,href:b})}let R;if(y.path!=null)R=X({},y,{path:es(n,y.path,C.path).path});else{const f=X({},y.params);for(const g in f)f[g]==null&&delete f[g];R=X({},y,{params:h(f)}),C.params=h(C.params)}const I=t.resolve(R,C),Y=y.hash||"";I.params=d(p(I.params));const oe=pu(s,X({},y,{hash:cu(Y),path:I.path})),u=r.createHref(oe);return X({fullPath:oe,hash:Y,query:s===Ur?Wu(y.query):y.query||{}},I,{redirectedFrom:void 0,href:u})}function j(y){return typeof y=="string"?es(n,y,c.value.path):X({},y)}function T(y,C){if(a!==y)return At(8,{from:C,to:y})}function W(y){return Z(y)}function z(y){return W(X(j(y),{replace:!0}))}function V(y){const C=y.matched[y.matched.length-1];if(C&&C.redirect){const{redirect:R}=C;let I=typeof R=="function"?R(y):R;return typeof I=="string"&&(I=I.includes("?")||I.includes("#")?I=j(I):{path:I},I.params={}),X({query:y.query,hash:y.hash,params:I.path!=null?{}:y.params},I)}}function Z(y,C){const R=a=F(y),I=c.value,Y=y.state,oe=y.force,u=y.replace===!0,f=V(R);if(f)return Z(X(j(f),{state:typeof f=="object"?X({},Y,f.state):Y,force:oe,replace:u}),C||R);const g=R;g.redirectedFrom=C;let b;return!oe&&gu(s,I,R)&&(b=At(16,{to:g,from:I}),je(I,I,!0,!1)),(b?Promise.resolve(b):ie(g,I)).catch(_=>Ue(_)?Ue(_,2)?_:ze(_):Q(_,g,I)).then(_=>{if(_){if(Ue(_,2))return Z(X({replace:u},j(_.to),{state:typeof _.to=="object"?X({},Y,_.to.state):Y,force:oe}),C||g)}else _=Ee(g,I,!0,u,Y);return pe(g,I,_),_})}function k(y,C){const R=T(y,C);return R?Promise.reject(R):Promise.resolve()}function U(y){const C=_t.values().next().value;return C&&typeof C.runWithContext=="function"?C.runWithContext(y):y()}function ie(y,C){let R;const[I,Y,oe]=Zu(y,C);R=ts(I.reverse(),"beforeRouteLeave",y,C);for(const f of I)f.leaveGuards.forEach(g=>{R.push(Ze(g,y,C))});const u=k.bind(null,y,C);return R.push(u),ge(R).then(()=>{R=[];for(const f of o.list())R.push(Ze(f,y,C));return R.push(u),ge(R)}).then(()=>{R=ts(Y,"beforeRouteUpdate",y,C);for(const f of Y)f.updateGuards.forEach(g=>{R.push(Ze(g,y,C))});return R.push(u),ge(R)}).then(()=>{R=[];for(const f of oe)if(f.beforeEnter)if(Le(f.beforeEnter))for(const g of f.beforeEnter)R.push(Ze(g,y,C));else R.push(Ze(f.beforeEnter,y,C));return R.push(u),ge(R)}).then(()=>(y.matched.forEach(f=>f.enterCallbacks={}),R=ts(oe,"beforeRouteEnter",y,C,U),R.push(u),ge(R))).then(()=>{R=[];for(const f of i.list())R.push(Ze(f,y,C));return R.push(u),ge(R)}).catch(f=>Ue(f,8)?f:Promise.reject(f))}function pe(y,C,R){l.list().forEach(I=>U(()=>I(y,C,R)))}function Ee(y,C,R,I,Y){const oe=T(y,C);if(oe)return oe;const u=C===Qe,f=vt?history.state:{};R&&(I||u?r.replace(y.fullPath,X({scroll:u&&f&&f.scroll},Y)):r.push(y.fullPath,Y)),c.value=y,je(y,C,R,u),ze()}let Se;function lt(){Se||(Se=r.listen((y,C,R)=>{if(!en.listening)return;const I=F(y),Y=V(I);if(Y){Z(X(Y,{replace:!0}),I).catch(Dt);return}a=I;const oe=c.value;vt&&xu(Nr(oe.fullPath,R.delta),kn()),ie(I,oe).catch(u=>Ue(u,12)?u:Ue(u,2)?(Z(u.to,I).then(f=>{Ue(f,20)&&!R.delta&&R.type===Jt.pop&&r.go(-1,!1)}).catch(Dt),Promise.reject()):(R.delta&&r.go(-R.delta,!1),Q(u,I,oe))).then(u=>{u=u||Ee(I,oe,!1),u&&(R.delta&&!Ue(u,8)?r.go(-R.delta,!1):R.type===Jt.pop&&Ue(u,20)&&r.go(-1,!1)),pe(I,oe,u)}).catch(Dt)}))}let Re=Mt(),G=Mt(),ee;function Q(y,C,R){ze(y);const I=G.list();return I.length?I.forEach(Y=>Y(y,C,R)):console.error(y),Promise.reject(y)}function ke(){return ee&&c.value!==Qe?Promise.resolve():new Promise((y,C)=>{Re.add([y,C])})}function ze(y){return ee||(ee=!y,lt(),Re.list().forEach(([C,R])=>y?R(y):C()),Re.reset()),y}function je(y,C,R,I){const{scrollBehavior:Y}=e;if(!vt||!Y)return Promise.resolve();const oe=!R&&Su(Nr(y.fullPath,0))||(I||!R)&&history.state&&history.state.scroll||null;return Ln().then(()=>Y(y,C,oe)).then(u=>u&&wu(u)).catch(u=>Q(u,y,C))}const ye=y=>r.go(y);let mt;const _t=new Set,en={currentRoute:c,listening:!0,addRoute:m,removeRoute:A,clearRoutes:t.clearRoutes,hasRoute:K,getRoutes:O,resolve:F,options:e,push:W,replace:z,go:ye,back:()=>ye(-1),forward:()=>ye(1),beforeEach:o.add,beforeResolve:i.add,afterEach:l.add,onError:G.add,isReady:ke,install(y){const C=this;y.component("RouterLink",mn),y.component("RouterView",vi),y.config.globalProperties.$router=C,Object.defineProperty(y.config.globalProperties,"$route",{enumerable:!0,get:()=>Ve(c)}),vt&&!mt&&c.value===Qe&&(mt=!0,W(r.location).catch(Y=>{}));const R={};for(const Y in Qe)Object.defineProperty(R,Y,{get:()=>c.value[Y],enumerable:!0});y.provide(Un,C),y.provide(ks,bo(R)),y.provide(_s,c);const I=y.unmount;_t.add(y),y.unmount=function(){_t.delete(y),_t.size<1&&(a=Qe,Se&&Se(),Se=null,c.value=Qe,mt=!1,ee=!1),I()}}};function ge(y){return y.reduce((C,R)=>C.then(()=>U(R)),Promise.resolve())}return en}function Zu(e,t){const n=[],s=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;iOt(a,l))?s.push(l):n.push(l));const c=e.matched[i];c&&(t.matched.find(a=>Ot(a,c))||r.push(c))}return[n,s,r]}function jf(){return Oe(Un)}function Nf(e){return Oe(ks)}const ef="/logo_protected.png",tf="/assets/default-hat-B72TLDOC.svg",Bn=e=>(To("data-v-af4c0a3a"),e=e(),Mo(),e),nf={class:"forbidden"},sf=Bn(()=>re("img",{alt:"Stair Logo",class:"logo",src:ef,height:"50"},null,-1)),rf=Bn(()=>re("h1",null,"Sign in",-1)),of=Bn(()=>re("span",{class:"material-symbols-rounded"},"login",-1)),lf=Bn(()=>re("aside",null,[re("img",{class:"stan",src:tf,type:"image/svg+xml"})],-1)),cf=$n({__name:"Forbidden",setup(e){const t=()=>window.location.href="/api/auth/signin";return(n,s)=>(Rt(),as("div",nf,[re("main",null,[re("div",{class:"panel"},[sf,rf,re("button",{onClick:t},[of,Vs(" Continue with Microsoft ")])])]),lf]))}}),Ei=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},uf=Ei(cf,[["__scopeId","data-v-af4c0a3a"]]),Wn=e=>(To("data-v-95274282"),e=e(),Mo(),e),ff={key:1},af=Wn(()=>re("img",{alt:"Stair Logo",class:"logo",src:Yc,height:"50"},null,-1)),df=Wn(()=>re("span",{class:"material-symbols-rounded"},"group",-1)),hf=Wn(()=>re("span",{class:"material-symbols-rounded"},"campaign",-1)),pf=Wn(()=>re("div",{class:"action"},[re("a",{href:"/api/auth/signout"},[Vs(" Sign out "),re("span",{class:"material-symbols-rounded"},"logout")])],-1)),gf={class:"data"},mf={id:"container"},_f=$n({__name:"App",setup(e){const t=Wt(null),n=Wt(!1);return No(async()=>{const s=await fetch("/api/auth/me");s.ok?t.value=await s.json():t.value=!1,document.body.addEventListener("click",()=>{n.value=!1})}),(s,r)=>t.value==!1?(Rt(),Hs(uf,{key:0})):t.value?(Rt(),as("div",ff,[re("header",null,[ue(Ve(mn),{to:"/"},{default:an(()=>[af]),_:1}),re("nav",null,[ue(Ve(mn),{title:"Manage Discord Users",to:"/discord/users"},{default:an(()=>[df]),_:1}),ue(Ve(mn),{title:"Announcements",to:"/announcements"},{default:an(()=>[hf]),_:1}),re("div",{onClick:r[1]||(r[1]=Ir(o=>n.value=!0,["stop"])),class:"user"},[re("span",null,un(t.value.displayName),1),n.value?(Rt(),as("div",{key:0,onClick:r[0]||(r[0]=Ir(()=>{},["stop"])),class:"options"},[pf,re("div",gf,[re("h2",null,un(t.value.userPrincipalName),1),re("p",null,un(t.value.mail),1)])])):gr("",!0)])])]),re("div",mf,[ue(Ve(vi))])])):gr("",!0)}}),yf=Ei(_f,[["__scopeId","data-v-95274282"]]),bf="modulepreload",vf=function(e){return"/"+e},Qr={},Lt=function(t,n,s){let r=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),i=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));r=Promise.all(n.map(l=>{if(l=vf(l),l in Qr)return;Qr[l]=!0;const c=l.endsWith(".css"),a=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${a}`))return;const d=document.createElement("link");if(d.rel=c?"stylesheet":bf,c||(d.as="script",d.crossOrigin=""),d.href=l,i&&d.setAttribute("nonce",i),document.head.appendChild(d),c)return new Promise((h,p)=>{d.addEventListener("load",h),d.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${l}`)))})}))}return r.then(()=>t()).catch(o=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o})},Ef=Xu({history:Ou("/"),routes:[{path:"/",name:"home",component:()=>Lt(()=>import("./HomeView-Dp_Mccdw.js"),__vite__mapDeps([0,1]))},{path:"/announcements",name:"announcements",component:()=>Lt(()=>import("./Overview-C6eQvzhu.js"),__vite__mapDeps([2,3,4,5]))},{path:"/announcements/:id",name:"announcementWithId",component:()=>Lt(()=>import("./index-Cn9EX2GC.js").then(e=>e.i),__vite__mapDeps([6,3,7,8,4,9]))},{path:"/discord/users",name:"discord-users",component:()=>Lt(()=>import("./index-B1k2z2W3.js"),__vite__mapDeps([10,3,7,8,11]))},{path:"/discord/degree-programmes",name:"discord-degree-programmes",component:()=>Lt(()=>import("./DegreeProgrammes-DtRCSLRH.js"),__vite__mapDeps([12,3,13]))}]}),Us=Dc(yf);Us.use(Wc());Us.use(Ef);Us.mount("#app");export{Cf as A,ll as B,Oe as C,Af as D,Rl as E,Ie as F,dn as G,ri as H,Tf as I,ws as J,Of as K,Nf as L,xf as M,Pf as N,Mf as O,Ir as P,Lf as Q,Ei as _,re as a,ue as b,as as c,Mo as d,Vs as e,$n as f,Wt as g,Ce as h,Ht as i,No as j,Sf as k,Rf as l,gr as m,Lt as n,Rt as o,To as p,Fo as q,wf as r,xs as s,un as t,jf as u,If as v,an as w,Hs as x,Ve as y,Ef as z}; diff --git a/ui/dist/assets/javascript-C94guP2z.js b/ui/dist/assets/javascript-CdS9kcBx.js similarity index 81% rename from ui/dist/assets/javascript-C94guP2z.js rename to ui/dist/assets/javascript-CdS9kcBx.js index a315c0a..82c09cb 100644 --- a/ui/dist/assets/javascript-C94guP2z.js +++ b/ui/dist/assets/javascript-CdS9kcBx.js @@ -1,4 +1,4 @@ -import{conf as t,language as e}from"./typescript-7nKRn4jz.js";import"./index-BUNPVbzS.js";import"./index-mddo8Vsu.js";import"./announcements-BrnJwnT_.js";import"./LoadingWithResultModal-C_NNHIwF.js";import"./___vite-browser-external_commonjs-proxy-D5Dao81r.js";/*!----------------------------------------------------------------------------- +import{conf as t,language as e}from"./typescript-At7g-sU_.js";import"./index-Cn9EX2GC.js";import"./index-DpfM9Q-q.js";import"./announcements-DXPjmohv.js";import"./LoadingWithResultModal-B5hmnBBo.js";import"./___vite-browser-external_commonjs-proxy-D5Dao81r.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) * Released under the MIT license diff --git a/ui/dist/assets/jsonMode-CV1B7G11.js b/ui/dist/assets/jsonMode-7AgGqp70.js similarity index 99% rename from ui/dist/assets/jsonMode-CV1B7G11.js rename to ui/dist/assets/jsonMode-7AgGqp70.js index b3c847e..a4eddbc 100644 --- a/ui/dist/assets/jsonMode-CV1B7G11.js +++ b/ui/dist/assets/jsonMode-7AgGqp70.js @@ -1,4 +1,4 @@ -import{m as Et}from"./index-BUNPVbzS.js";import"./index-mddo8Vsu.js";import"./announcements-BrnJwnT_.js";import"./LoadingWithResultModal-C_NNHIwF.js";import"./___vite-browser-external_commonjs-proxy-D5Dao81r.js";/*!----------------------------------------------------------------------------- +import{m as Et}from"./index-Cn9EX2GC.js";import"./index-DpfM9Q-q.js";import"./announcements-DXPjmohv.js";import"./LoadingWithResultModal-B5hmnBBo.js";import"./___vite-browser-external_commonjs-proxy-D5Dao81r.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) * Released under the MIT license diff --git a/ui/dist/assets/liquid-CWEjMak3.js b/ui/dist/assets/liquid-C9UEz-zQ.js similarity index 95% rename from ui/dist/assets/liquid-CWEjMak3.js rename to ui/dist/assets/liquid-C9UEz-zQ.js index f010fed..77f8ec4 100644 --- a/ui/dist/assets/liquid-CWEjMak3.js +++ b/ui/dist/assets/liquid-C9UEz-zQ.js @@ -1,4 +1,4 @@ -import{m as l}from"./index-BUNPVbzS.js";import"./index-mddo8Vsu.js";import"./announcements-BrnJwnT_.js";import"./LoadingWithResultModal-C_NNHIwF.js";import"./___vite-browser-external_commonjs-proxy-D5Dao81r.js";/*!----------------------------------------------------------------------------- +import{m as l}from"./index-Cn9EX2GC.js";import"./index-DpfM9Q-q.js";import"./announcements-DXPjmohv.js";import"./LoadingWithResultModal-B5hmnBBo.js";import"./___vite-browser-external_commonjs-proxy-D5Dao81r.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) * Released under the MIT license diff --git a/ui/dist/assets/mdx-DW_NZpvZ.js b/ui/dist/assets/mdx-CTrDZr5s.js similarity index 96% rename from ui/dist/assets/mdx-DW_NZpvZ.js rename to ui/dist/assets/mdx-CTrDZr5s.js index d0f2fd0..43cb52e 100644 --- a/ui/dist/assets/mdx-DW_NZpvZ.js +++ b/ui/dist/assets/mdx-CTrDZr5s.js @@ -1,4 +1,4 @@ -import{m as s}from"./index-BUNPVbzS.js";import"./index-mddo8Vsu.js";import"./announcements-BrnJwnT_.js";import"./LoadingWithResultModal-C_NNHIwF.js";import"./___vite-browser-external_commonjs-proxy-D5Dao81r.js";/*!----------------------------------------------------------------------------- +import{m as s}from"./index-Cn9EX2GC.js";import"./index-DpfM9Q-q.js";import"./announcements-DXPjmohv.js";import"./LoadingWithResultModal-B5hmnBBo.js";import"./___vite-browser-external_commonjs-proxy-D5Dao81r.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) * Released under the MIT license diff --git a/ui/dist/assets/python-CwXslKsP.js b/ui/dist/assets/python-6SDGJmgD.js similarity index 95% rename from ui/dist/assets/python-CwXslKsP.js rename to ui/dist/assets/python-6SDGJmgD.js index 88a6f81..9276b13 100644 --- a/ui/dist/assets/python-CwXslKsP.js +++ b/ui/dist/assets/python-6SDGJmgD.js @@ -1,4 +1,4 @@ -import{m as o}from"./index-BUNPVbzS.js";import"./index-mddo8Vsu.js";import"./announcements-BrnJwnT_.js";import"./LoadingWithResultModal-C_NNHIwF.js";import"./___vite-browser-external_commonjs-proxy-D5Dao81r.js";/*!----------------------------------------------------------------------------- +import{m as o}from"./index-Cn9EX2GC.js";import"./index-DpfM9Q-q.js";import"./announcements-DXPjmohv.js";import"./LoadingWithResultModal-B5hmnBBo.js";import"./___vite-browser-external_commonjs-proxy-D5Dao81r.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) * Released under the MIT license diff --git a/ui/dist/assets/razor-BSbe7fwy.js b/ui/dist/assets/razor-CnHig80X.js similarity index 97% rename from ui/dist/assets/razor-BSbe7fwy.js rename to ui/dist/assets/razor-CnHig80X.js index 99b8605..d0b1824 100644 --- a/ui/dist/assets/razor-BSbe7fwy.js +++ b/ui/dist/assets/razor-CnHig80X.js @@ -1,4 +1,4 @@ -import{m}from"./index-BUNPVbzS.js";import"./index-mddo8Vsu.js";import"./announcements-BrnJwnT_.js";import"./LoadingWithResultModal-C_NNHIwF.js";import"./___vite-browser-external_commonjs-proxy-D5Dao81r.js";/*!----------------------------------------------------------------------------- +import{m}from"./index-Cn9EX2GC.js";import"./index-DpfM9Q-q.js";import"./announcements-DXPjmohv.js";import"./LoadingWithResultModal-B5hmnBBo.js";import"./___vite-browser-external_commonjs-proxy-D5Dao81r.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) * Released under the MIT license diff --git a/ui/dist/assets/tsMode-CeQsB0gm.js b/ui/dist/assets/tsMode-Bx98Lcxh.js similarity index 99% rename from ui/dist/assets/tsMode-CeQsB0gm.js rename to ui/dist/assets/tsMode-Bx98Lcxh.js index 13f3397..4381253 100644 --- a/ui/dist/assets/tsMode-CeQsB0gm.js +++ b/ui/dist/assets/tsMode-Bx98Lcxh.js @@ -1,4 +1,4 @@ -import{t as O,m as I}from"./index-BUNPVbzS.js";import"./index-mddo8Vsu.js";import"./announcements-BrnJwnT_.js";import"./LoadingWithResultModal-C_NNHIwF.js";import"./___vite-browser-external_commonjs-proxy-D5Dao81r.js";/*!----------------------------------------------------------------------------- +import{t as O,m as I}from"./index-Cn9EX2GC.js";import"./index-DpfM9Q-q.js";import"./announcements-DXPjmohv.js";import"./LoadingWithResultModal-B5hmnBBo.js";import"./___vite-browser-external_commonjs-proxy-D5Dao81r.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) * Released under the MIT license diff --git a/ui/dist/assets/typescript-7nKRn4jz.js b/ui/dist/assets/typescript-At7g-sU_.js similarity index 96% rename from ui/dist/assets/typescript-7nKRn4jz.js rename to ui/dist/assets/typescript-At7g-sU_.js index 30bf3bd..b73b883 100644 --- a/ui/dist/assets/typescript-7nKRn4jz.js +++ b/ui/dist/assets/typescript-At7g-sU_.js @@ -1,4 +1,4 @@ -import{m as s}from"./index-BUNPVbzS.js";import"./index-mddo8Vsu.js";import"./announcements-BrnJwnT_.js";import"./LoadingWithResultModal-C_NNHIwF.js";import"./___vite-browser-external_commonjs-proxy-D5Dao81r.js";/*!----------------------------------------------------------------------------- +import{m as s}from"./index-Cn9EX2GC.js";import"./index-DpfM9Q-q.js";import"./announcements-DXPjmohv.js";import"./LoadingWithResultModal-B5hmnBBo.js";import"./___vite-browser-external_commonjs-proxy-D5Dao81r.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) * Released under the MIT license diff --git a/ui/dist/assets/xml-DpPQ_Q24.js b/ui/dist/assets/xml-Bho0kI7b.js similarity index 93% rename from ui/dist/assets/xml-DpPQ_Q24.js rename to ui/dist/assets/xml-Bho0kI7b.js index d311bbf..585db18 100644 --- a/ui/dist/assets/xml-DpPQ_Q24.js +++ b/ui/dist/assets/xml-Bho0kI7b.js @@ -1,4 +1,4 @@ -import{m as r}from"./index-BUNPVbzS.js";import"./index-mddo8Vsu.js";import"./announcements-BrnJwnT_.js";import"./LoadingWithResultModal-C_NNHIwF.js";import"./___vite-browser-external_commonjs-proxy-D5Dao81r.js";/*!----------------------------------------------------------------------------- +import{m as r}from"./index-Cn9EX2GC.js";import"./index-DpfM9Q-q.js";import"./announcements-DXPjmohv.js";import"./LoadingWithResultModal-B5hmnBBo.js";import"./___vite-browser-external_commonjs-proxy-D5Dao81r.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) * Released under the MIT license diff --git a/ui/dist/assets/yaml-B_Jizig3.js b/ui/dist/assets/yaml-Nqp_BVLm.js similarity index 95% rename from ui/dist/assets/yaml-B_Jizig3.js rename to ui/dist/assets/yaml-Nqp_BVLm.js index e99eba5..2ba59fc 100644 --- a/ui/dist/assets/yaml-B_Jizig3.js +++ b/ui/dist/assets/yaml-Nqp_BVLm.js @@ -1,4 +1,4 @@ -import{m as l}from"./index-BUNPVbzS.js";import"./index-mddo8Vsu.js";import"./announcements-BrnJwnT_.js";import"./LoadingWithResultModal-C_NNHIwF.js";import"./___vite-browser-external_commonjs-proxy-D5Dao81r.js";/*!----------------------------------------------------------------------------- +import{m as l}from"./index-Cn9EX2GC.js";import"./index-DpfM9Q-q.js";import"./announcements-DXPjmohv.js";import"./LoadingWithResultModal-B5hmnBBo.js";import"./___vite-browser-external_commonjs-proxy-D5Dao81r.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87) * Released under the MIT license diff --git a/ui/dist/index.html b/ui/dist/index.html index bd1172b..8ea23cc 100644 --- a/ui/dist/index.html +++ b/ui/dist/index.html @@ -12,7 +12,7 @@ /> STAIR PR Tools - +